@hi-ui/input 4.0.0-beta.18 → 4.0.0-beta.20

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.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { HiBaseHTMLFieldProps } from '@hi-ui/core';
3
- import { InputAppearanceEnum } from './types';
3
+ import { InputAppearanceEnum, InputTypeEnum } from './types';
4
4
  /**
5
5
  * 输入框
6
6
  *
@@ -34,9 +34,9 @@ export interface InputProps extends HiBaseHTMLFieldProps<'input'> {
34
34
  */
35
35
  defaultValue?: string;
36
36
  /**
37
- * 设置输入框类型,支持原生 input 的 type 属性所有值
37
+ * 设置输入框类型
38
38
  */
39
- type?: 'text' | 'id' | 'tel' | 'card' | 'amount' | 'email' | string;
39
+ type?: InputTypeEnum;
40
40
  /**
41
41
  * 输入最大长度
42
42
  */
@@ -1,2 +1,3 @@
1
1
  import { HiBaseAppearanceEnum } from '@hi-ui/core';
2
2
  export declare type InputAppearanceEnum = HiBaseAppearanceEnum | 'underline';
3
+ export declare type InputTypeEnum = 'text' | 'id' | 'tel' | 'card' | 'amount' | 'email' | 'password';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/input",
3
- "version": "4.0.0-beta.18",
3
+ "version": "4.0.0-beta.20",
4
4
  "description": "A sub-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HIUI <mi-hiui@xiaomi.com>",
@@ -48,7 +48,7 @@
48
48
  "@hi-ui/core-css": "^4.0.0-beta.5",
49
49
  "@hi-ui/dom-utils": "^4.0.0-beta.6",
50
50
  "@hi-ui/env": "^4.0.0-beta.1",
51
- "@hi-ui/icons": "^4.0.0-beta.11",
51
+ "@hi-ui/icons": "^4.0.0-beta.13",
52
52
  "@hi-ui/use-latest": "^4.0.0-beta.5",
53
53
  "@hi-ui/use-merge-refs": "^4.0.0-beta.5",
54
54
  "@hi-ui/use-uncontrolled-state": "^4.0.0-beta.5"
@@ -62,5 +62,5 @@
62
62
  "react": "^17.0.1",
63
63
  "react-dom": "^17.0.1"
64
64
  },
65
- "gitHead": "3dc9f628767f463b67ba9a7911cc57de84182b85"
65
+ "gitHead": "71cab05b6e2458cc962438f9bb4c4690c15557de"
66
66
  }