@h-ai/ui 0.1.0-alpha.15 → 0.1.0-alpha.16

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.
@@ -90,6 +90,7 @@
90
90
  type='text'
91
91
  placeholder={uiM('login_username_placeholder')}
92
92
  bind:value={username}
93
+ autocomplete='username'
93
94
  {disabled}
94
95
  required
95
96
  error={errors.username}
@@ -104,6 +105,7 @@
104
105
  <PasswordInput
105
106
  bind:value={password}
106
107
  placeholder={uiM('login_password_placeholder')}
108
+ autocomplete='current-password'
107
109
  {disabled}
108
110
  required
109
111
  error={errors.password}
@@ -21,6 +21,8 @@
21
21
  id?: string
22
22
  /** 值 */
23
23
  value?: string
24
+ /** autocomplete */
25
+ autocomplete?: string
24
26
  /** 占位符 */
25
27
  placeholder?: string
26
28
  /** 尺寸 */
@@ -54,6 +56,7 @@
54
56
  let {
55
57
  id,
56
58
  value = $bindable(''),
59
+ autocomplete,
57
60
  placeholder = '',
58
61
  size = 'md',
59
62
  disabled = false,
@@ -162,6 +165,7 @@
162
165
  bind:value
163
166
  bind:inputRef={inputRef}
164
167
  {placeholder}
168
+ {autocomplete}
165
169
  {disabled}
166
170
  {readonly}
167
171
  {required}
@@ -4,6 +4,8 @@ interface Props {
4
4
  id?: string;
5
5
  /** 值 */
6
6
  value?: string;
7
+ /** autocomplete */
8
+ autocomplete?: string;
7
9
  /** 占位符 */
8
10
  placeholder?: string;
9
11
  /** 尺寸 */
@@ -175,6 +175,7 @@
175
175
  id='register-password'
176
176
  bind:value={password}
177
177
  placeholder={getFieldPlaceholder('password')}
178
+ autocomplete='new-password'
178
179
  {disabled}
179
180
  required
180
181
  showStrength={showPasswordStrength}
@@ -193,6 +194,7 @@
193
194
  id='register-confirm-password'
194
195
  bind:value={confirmPassword}
195
196
  placeholder={getFieldPlaceholder('confirmPassword')}
197
+ autocomplete='new-password'
196
198
  {disabled}
197
199
  required
198
200
  showStrength={false}
@@ -14,6 +14,8 @@ export interface PasswordInputProps {
14
14
  id?: string;
15
15
  /** 值 */
16
16
  value?: string;
17
+ /** autocomplete */
18
+ autocomplete?: string;
17
19
  /** 占位符 */
18
20
  placeholder?: string;
19
21
  /** 尺寸 */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@h-ai/ui",
3
3
  "type": "module",
4
- "version": "0.1.0-alpha.15",
4
+ "version": "0.1.0-alpha.16",
5
5
  "description": "Hai Framework UI component library for Svelte 5 Runes.",
6
6
  "license": "Apache-2.0",
7
7
  "svelte": "./dist/index.js",
@@ -44,7 +44,7 @@
44
44
  "marked": "^18.0.0",
45
45
  "shiki": "^4.0.2",
46
46
  "tailwind-merge": "^3.5.0",
47
- "@h-ai/core": "0.1.0-alpha.15"
47
+ "@h-ai/core": "0.1.0-alpha.16"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@sveltejs/package": "^2.5.7",