@ray-js/adapter 1.4.0-alpha.3 → 1.4.0-alpha.4

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.
@@ -2,24 +2,16 @@ import * as React from 'react';
2
2
  import { BaseProps, GenericEvent } from '../../types/component';
3
3
  export interface InputProps extends BaseProps {
4
4
  value?: string;
5
- type?: 'text' | 'number' | 'idcard' | 'digit';
5
+ type?: 'text' | 'number';
6
6
  password?: boolean;
7
7
  placeholder?: string;
8
8
  placeholderStyle?: string;
9
9
  disabled?: boolean;
10
10
  maxLength?: number;
11
- focus?: boolean;
12
- cursorSpacing?: number;
13
- cursor?: number;
14
- selectionStart?: number;
15
- selectionEnd?: number;
16
- adjustPosition?: boolean;
17
11
  confirmType?: 'send' | 'search' | 'next' | 'go' | 'done';
18
- confirmHold?: boolean;
19
12
  onInput?: (event: GenericEvent) => void;
20
13
  onFocus?: (event: GenericEvent) => void;
21
14
  onBlur?: (event: GenericEvent) => void;
22
15
  onConfirm?: (event: GenericEvent) => void;
23
- onKeyboardHeightChange?: (event: GenericEvent) => void;
24
16
  }
25
17
  export declare const Input: React.ComponentType<InputProps>;
@@ -5,14 +5,6 @@ const runtime_1 = require("@ray-core/runtime");
5
5
  exports.Input = (0, runtime_1.createHostComponent)('input');
6
6
  exports.Input.defaultProps = {
7
7
  type: 'text',
8
- // password: false,
9
- // disabled: false,
10
8
  maxLength: 140,
11
- cursorSpacing: 0,
12
- // focus: false,
13
9
  confirmType: 'done',
14
- // confirmHold: false,
15
- // selectionEnd: -1,
16
- // selectionStart: -1,
17
- adjustPosition: true,
18
10
  };
@@ -10,19 +10,11 @@ export declare const alias: {
10
10
  placeholderStyle: string;
11
11
  disabled: string;
12
12
  maxLength: string;
13
- focus: string;
14
- cursorSpacing: string;
15
- cursor: string;
16
- selectionStart: string;
17
- selectionEnd: string;
18
- adjustPosition: string;
19
13
  confirmType: string;
20
- confirmHold: string;
21
14
  onInput: string;
22
15
  onFocus: string;
23
16
  onBlur: string;
24
17
  onConfirm: string;
25
- onKeyboardHeightChange: string;
26
18
  disableScroll: string;
27
19
  hoverClass: string;
28
20
  hoverClassName: string;
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.props = exports.alias = void 0;
4
4
  const universal_1 = require("../universal");
5
- exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', value: 'value', type: 'type', password: 'password', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', focus: 'focus', cursorSpacing: 'cursor-spacing', cursor: 'cursor', selectionStart: 'selection-start', selectionEnd: 'selection-end', adjustPosition: 'adjust-position', confirmType: 'confirm-type', confirmHold: 'confirm-hold', onInput: 'bindinput', onFocus: 'bindfocus', onBlur: 'bindblur', onConfirm: 'bindconfirm', onKeyboardHeightChange: 'bindkeyboardheightchange' });
5
+ exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', value: 'value', type: 'type', password: 'password', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', confirmType: 'confirm-type', onInput: 'bindinput', onFocus: 'bindfocus', onBlur: 'bindblur', onConfirm: 'bindconfirm' });
6
6
  exports.props = Object.values(exports.alias);
@@ -5,20 +5,12 @@ export interface TextareaProps extends BaseProps {
5
5
  value?: string;
6
6
  placeholder?: string;
7
7
  placeholderStyle?: string;
8
- disabled?: Boolean;
9
- maxlength?: Number;
10
- focus?: Boolean;
11
- autoHeight?: Boolean;
12
- cursorSpacing?: Number;
13
- cursor?: Number;
14
- selectionStart?: Number;
15
- selectionEnd?: Number;
16
- adjustPosition?: Boolean;
8
+ disabled?: boolean;
9
+ maxlength?: number;
10
+ autoHeight?: boolean;
17
11
  onInput?: (event: GenericEvent) => void;
18
12
  onFocus?: (event: GenericEvent) => void;
19
13
  onBlur?: (event: GenericEvent) => void;
20
- onConfirm?: (event: GenericEvent) => void;
21
14
  onLineChange?: (event: GenericEvent) => void;
22
- onKeyboardHeightChange?: (event: GenericEvent) => void;
23
15
  }
24
16
  export declare const Textarea: React.ComponentType<TextareaProps>;
@@ -4,12 +4,6 @@ exports.Textarea = void 0;
4
4
  const runtime_1 = require("@ray-core/runtime");
5
5
  exports.Textarea = (0, runtime_1.createHostComponent)('textarea');
6
6
  exports.Textarea.defaultProps = {
7
- // disabled: false,
8
- // focus: false,
9
- // autoHeight: false,
10
- // cursor: -1,
11
- // selectionStart: -1,
12
- // selectionEnd: -1,
13
7
  /**
14
8
  * 修复 <Textarea maxLength={1000} />
15
9
  * 在编译时会将 maxLength 转为 maxlength,但实际 defaultProps 中 仍然使用 maxLength
@@ -18,6 +12,4 @@ exports.Textarea.defaultProps = {
18
12
  * 最终导致值错误
19
13
  */
20
14
  maxlength: 140,
21
- cursorSpacing: 0,
22
- adjustPosition: true,
23
15
  };
@@ -10,19 +10,11 @@ export declare const alias: {
10
10
  disabled: string;
11
11
  maxLength: string;
12
12
  maxlength: string;
13
- focus: string;
14
13
  autoHeight: string;
15
- cursorSpacing: string;
16
- cursor: string;
17
- selectionStart: string;
18
- selectionEnd: string;
19
- adjustPosition: string;
20
14
  onInput: string;
21
15
  onFocus: string;
22
16
  onBlur: string;
23
- onConfirm: string;
24
17
  onLineChange: string;
25
- onKeyboardHeightChange: string;
26
18
  disableScroll: string;
27
19
  hoverClass: string;
28
20
  hoverClassName: string;
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.props = exports.alias = void 0;
4
4
  const universal_1 = require("../universal");
5
- exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', name: 'name', value: 'value', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', maxlength: 'maxlength', focus: 'focus', autoHeight: 'auto-height', cursorSpacing: 'cursor-spacing', cursor: 'cursor', selectionStart: 'selection-start', selectionEnd: 'selection-end', adjustPosition: 'adjust-position', onInput: 'bindinput', onFocus: 'bindfocus', onBlur: 'bindblur', onConfirm: 'bindconfirm', onLineChange: 'bindline-change', onKeyboardHeightChange: 'bindkeyboardheightchange' });
5
+ exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', name: 'name', value: 'value', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', maxlength: 'maxlength', autoHeight: 'auto-height', onInput: 'bindinput', onFocus: 'bindfocus', onBlur: 'bindblur', onLineChange: 'bindlinechange' });
6
6
  exports.props = Object.values(exports.alias);
@@ -2,24 +2,16 @@ import * as React from 'react';
2
2
  import { BaseProps, GenericEvent } from '../../types/component';
3
3
  export interface InputProps extends BaseProps {
4
4
  value?: string;
5
- type?: 'text' | 'number' | 'idcard' | 'digit';
5
+ type?: 'text' | 'number';
6
6
  password?: boolean;
7
7
  placeholder?: string;
8
8
  placeholderStyle?: string;
9
9
  disabled?: boolean;
10
10
  maxLength?: number;
11
- focus?: boolean;
12
- cursorSpacing?: number;
13
- cursor?: number;
14
- selectionStart?: number;
15
- selectionEnd?: number;
16
- adjustPosition?: boolean;
17
11
  confirmType?: 'send' | 'search' | 'next' | 'go' | 'done';
18
- confirmHold?: boolean;
19
12
  onInput?: (event: GenericEvent) => void;
20
13
  onFocus?: (event: GenericEvent) => void;
21
14
  onBlur?: (event: GenericEvent) => void;
22
15
  onConfirm?: (event: GenericEvent) => void;
23
- onKeyboardHeightChange?: (event: GenericEvent) => void;
24
16
  }
25
17
  export declare const Input: React.ComponentType<InputProps>;
@@ -2,14 +2,6 @@ import { createHostComponent } from '@ray-core/runtime';
2
2
  export const Input = createHostComponent('input');
3
3
  Input.defaultProps = {
4
4
  type: 'text',
5
- // password: false,
6
- // disabled: false,
7
5
  maxLength: 140,
8
- cursorSpacing: 0,
9
- // focus: false,
10
6
  confirmType: 'done',
11
- // confirmHold: false,
12
- // selectionEnd: -1,
13
- // selectionStart: -1,
14
- adjustPosition: true,
15
7
  };
@@ -10,19 +10,11 @@ export declare const alias: {
10
10
  placeholderStyle: string;
11
11
  disabled: string;
12
12
  maxLength: string;
13
- focus: string;
14
- cursorSpacing: string;
15
- cursor: string;
16
- selectionStart: string;
17
- selectionEnd: string;
18
- adjustPosition: string;
19
13
  confirmType: string;
20
- confirmHold: string;
21
14
  onInput: string;
22
15
  onFocus: string;
23
16
  onBlur: string;
24
17
  onConfirm: string;
25
- onKeyboardHeightChange: string;
26
18
  disableScroll: string;
27
19
  hoverClass: string;
28
20
  hoverClassName: string;
@@ -1,3 +1,3 @@
1
1
  import { universalAlias } from '../universal';
2
- export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', value: 'value', type: 'type', password: 'password', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', focus: 'focus', cursorSpacing: 'cursor-spacing', cursor: 'cursor', selectionStart: 'selection-start', selectionEnd: 'selection-end', adjustPosition: 'adjust-position', confirmType: 'confirm-type', confirmHold: 'confirm-hold', onInput: 'bindinput', onFocus: 'bindfocus', onBlur: 'bindblur', onConfirm: 'bindconfirm', onKeyboardHeightChange: 'bindkeyboardheightchange' });
2
+ export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', value: 'value', type: 'type', password: 'password', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', confirmType: 'confirm-type', onInput: 'bindinput', onFocus: 'bindfocus', onBlur: 'bindblur', onConfirm: 'bindconfirm' });
3
3
  export const props = Object.values(alias);
@@ -5,20 +5,12 @@ export interface TextareaProps extends BaseProps {
5
5
  value?: string;
6
6
  placeholder?: string;
7
7
  placeholderStyle?: string;
8
- disabled?: Boolean;
9
- maxlength?: Number;
10
- focus?: Boolean;
11
- autoHeight?: Boolean;
12
- cursorSpacing?: Number;
13
- cursor?: Number;
14
- selectionStart?: Number;
15
- selectionEnd?: Number;
16
- adjustPosition?: Boolean;
8
+ disabled?: boolean;
9
+ maxlength?: number;
10
+ autoHeight?: boolean;
17
11
  onInput?: (event: GenericEvent) => void;
18
12
  onFocus?: (event: GenericEvent) => void;
19
13
  onBlur?: (event: GenericEvent) => void;
20
- onConfirm?: (event: GenericEvent) => void;
21
14
  onLineChange?: (event: GenericEvent) => void;
22
- onKeyboardHeightChange?: (event: GenericEvent) => void;
23
15
  }
24
16
  export declare const Textarea: React.ComponentType<TextareaProps>;
@@ -1,12 +1,6 @@
1
1
  import { createHostComponent } from '@ray-core/runtime';
2
2
  export const Textarea = createHostComponent('textarea');
3
3
  Textarea.defaultProps = {
4
- // disabled: false,
5
- // focus: false,
6
- // autoHeight: false,
7
- // cursor: -1,
8
- // selectionStart: -1,
9
- // selectionEnd: -1,
10
4
  /**
11
5
  * 修复 <Textarea maxLength={1000} />
12
6
  * 在编译时会将 maxLength 转为 maxlength,但实际 defaultProps 中 仍然使用 maxLength
@@ -15,6 +9,4 @@ Textarea.defaultProps = {
15
9
  * 最终导致值错误
16
10
  */
17
11
  maxlength: 140,
18
- cursorSpacing: 0,
19
- adjustPosition: true,
20
12
  };
@@ -10,19 +10,11 @@ export declare const alias: {
10
10
  disabled: string;
11
11
  maxLength: string;
12
12
  maxlength: string;
13
- focus: string;
14
13
  autoHeight: string;
15
- cursorSpacing: string;
16
- cursor: string;
17
- selectionStart: string;
18
- selectionEnd: string;
19
- adjustPosition: string;
20
14
  onInput: string;
21
15
  onFocus: string;
22
16
  onBlur: string;
23
- onConfirm: string;
24
17
  onLineChange: string;
25
- onKeyboardHeightChange: string;
26
18
  disableScroll: string;
27
19
  hoverClass: string;
28
20
  hoverClassName: string;
@@ -1,3 +1,3 @@
1
1
  import { universalAlias } from '../universal';
2
- export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', name: 'name', value: 'value', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', maxlength: 'maxlength', focus: 'focus', autoHeight: 'auto-height', cursorSpacing: 'cursor-spacing', cursor: 'cursor', selectionStart: 'selection-start', selectionEnd: 'selection-end', adjustPosition: 'adjust-position', onInput: 'bindinput', onFocus: 'bindfocus', onBlur: 'bindblur', onConfirm: 'bindconfirm', onLineChange: 'bindline-change', onKeyboardHeightChange: 'bindkeyboardheightchange' });
2
+ export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', name: 'name', value: 'value', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', maxlength: 'maxlength', autoHeight: 'auto-height', onInput: 'bindinput', onFocus: 'bindfocus', onBlur: 'bindblur', onLineChange: 'bindlinechange' });
3
3
  export const props = Object.values(alias);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/adapter",
3
- "version": "1.4.0-alpha.3",
3
+ "version": "1.4.0-alpha.4",
4
4
  "description": "Ray adapter for tuya",
5
5
  "keywords": [
6
6
  "ray"
@@ -21,7 +21,7 @@
21
21
  "watch": "concurrently 'yarn build:cjs --watch' 'yarn build:esm --watch'"
22
22
  },
23
23
  "devDependencies": {
24
- "@ray-js/types": "^1.4.0-alpha.3",
24
+ "@ray-js/types": "^1.4.0-alpha.4",
25
25
  "concurrently": "^6.2.1"
26
26
  },
27
27
  "maintainers": [
@@ -35,6 +35,6 @@
35
35
  "@ray-core/shared": "^0.3.5",
36
36
  "@ray-core/types": "^0.3.5"
37
37
  },
38
- "gitHead": "438a6262377009a49dd569adab1079542e4e857a",
38
+ "gitHead": "ae3621a47944287771e18e926c76ea92d0516097",
39
39
  "repository": {}
40
40
  }