@lynx-js/lynx-ui-input-otp 0.0.0-oidc-bootstrap.0 → 3.136.0

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.
@@ -0,0 +1,340 @@
1
+ import type { ForwardedRef, ReactElement, ReactNode } from '@lynx-js/react';
2
+ import type { ComponentBasicProps } from '@lynx-js/lynx-ui-common';
3
+ /**
4
+ * Positive number of slots managed by InputOTP.
5
+ * @zh InputOTP 管理的输入槽数量,必须为正整数。
6
+ */
7
+ export type InputOTPLength = number;
8
+ /**
9
+ * Character set accepted by InputOTP.
10
+ * @zh InputOTP 接受的字符集。
11
+ */
12
+ export type InputOTPInputType = 'alphabetic' | 'numeric' | 'alphanumeric';
13
+ /**
14
+ * State exposed to an InputOTP render function.
15
+ * @zh 暴露给 InputOTP 渲染函数的状态。
16
+ */
17
+ export interface InputOTPRenderProps {
18
+ /**
19
+ * The normalized OTP or PIN value.
20
+ * @zh 规范化后的 OTP 或 PIN 值。
21
+ */
22
+ value: string;
23
+ /**
24
+ * The configured field length.
25
+ * @zh 配置的输入长度。
26
+ */
27
+ length: InputOTPLength;
28
+ /**
29
+ * The configured input character set.
30
+ * @zh 配置的输入字符集。
31
+ */
32
+ inputType: InputOTPInputType;
33
+ /**
34
+ * Whether the hidden native input is focused.
35
+ * @zh 隐藏的原生输入框是否聚焦。
36
+ */
37
+ focused: boolean;
38
+ /**
39
+ * Whether every slot is filled.
40
+ * @zh 是否所有输入槽均已填充。
41
+ */
42
+ complete: boolean;
43
+ /**
44
+ * Whether input is disabled.
45
+ * @zh 输入是否已禁用。
46
+ */
47
+ disabled: boolean;
48
+ /**
49
+ * Whether the field is invalid.
50
+ * @zh 输入是否处于无效状态。
51
+ */
52
+ invalid: boolean;
53
+ }
54
+ /**
55
+ * State exposed to an InputOTPSlot render function.
56
+ * @zh 暴露给 InputOTPSlot 渲染函数的状态。
57
+ */
58
+ export interface InputOTPSlotRenderProps {
59
+ /**
60
+ * Zero-based slot index.
61
+ * @zh 从零开始的输入槽索引。
62
+ */
63
+ index: number;
64
+ /**
65
+ * Character displayed by this slot.
66
+ * @zh 当前输入槽展示的字符。
67
+ */
68
+ char?: string;
69
+ /**
70
+ * Whether this is the focused slot that contains the visual caret.
71
+ * @zh 当前输入槽是否为包含可视光标的聚焦槽。
72
+ */
73
+ focused: boolean;
74
+ /**
75
+ * Whether this slot contains a character.
76
+ * @zh 当前输入槽是否已经包含字符。
77
+ */
78
+ filled: boolean;
79
+ /**
80
+ * Whether every slot in the field is filled.
81
+ * @zh 当前输入框中的所有输入槽是否均已填充。
82
+ */
83
+ complete: boolean;
84
+ /**
85
+ * Whether input is disabled.
86
+ * @zh 输入是否已禁用。
87
+ */
88
+ disabled: boolean;
89
+ /**
90
+ * Whether the field is invalid.
91
+ * @zh 输入是否处于无效状态。
92
+ */
93
+ invalid: boolean;
94
+ }
95
+ /**
96
+ * UI variants injected by InputOTP for state-based styling.
97
+ * @zh InputOTP 注入的 UI variants,可用于按状态定制样式。
98
+ */
99
+ export interface InputOTPUIVariants {
100
+ /**
101
+ * Applied to the root while the hidden input is focused.
102
+ * @zh 隐藏输入框聚焦时应用于根节点。
103
+ */
104
+ 'ui-focused'?: boolean;
105
+ /**
106
+ * Applied to the root when every slot is filled.
107
+ * @zh 所有输入槽均已填充时应用于根节点。
108
+ */
109
+ 'ui-complete'?: boolean;
110
+ /**
111
+ * Applied to the root while input is disabled.
112
+ * @zh 禁用输入时应用于根节点。
113
+ */
114
+ 'ui-disabled'?: boolean;
115
+ /**
116
+ * Applied to the root while the value is invalid.
117
+ * @zh 输入值无效时应用于根节点。
118
+ */
119
+ 'ui-invalid'?: boolean;
120
+ }
121
+ /**
122
+ * UI variants injected by InputOTPSlot for state-based styling.
123
+ * @zh InputOTPSlot 注入的 UI variants,可用于按状态定制样式。
124
+ */
125
+ export interface InputOTPSlotUIVariants {
126
+ /**
127
+ * Applied to the slot that contains the visual caret.
128
+ * @zh 应用于包含可视光标的输入槽。
129
+ */
130
+ 'ui-focused'?: boolean;
131
+ /**
132
+ * Applied to slots that contain a character.
133
+ * @zh 应用于已经包含字符的输入槽。
134
+ */
135
+ 'ui-filled'?: boolean;
136
+ /**
137
+ * Applied to every slot when the field is complete.
138
+ * @zh 输入完成时应用于每个输入槽。
139
+ */
140
+ 'ui-complete'?: boolean;
141
+ /**
142
+ * Applied to the slot while input is disabled.
143
+ * @zh 禁用输入时应用于输入槽。
144
+ */
145
+ 'ui-disabled'?: boolean;
146
+ /**
147
+ * Applied to the slot while the value is invalid.
148
+ * @zh 输入值无效时应用于输入槽。
149
+ */
150
+ 'ui-invalid'?: boolean;
151
+ }
152
+ /**
153
+ * Imperative methods exposed by InputOTP.
154
+ * @zh InputOTP 暴露的命令式方法。
155
+ */
156
+ export interface InputOTPRef {
157
+ /**
158
+ * Focus the hidden native input and show the configured keyboard.
159
+ * @zh 聚焦隐藏的原生输入框并唤起配置的键盘。
160
+ * @Android
161
+ * @iOS
162
+ * @Harmony
163
+ */
164
+ focus: () => Promise<void>;
165
+ /**
166
+ * Blur the hidden native input and dismiss the keyboard.
167
+ * @zh 让隐藏的原生输入框失焦并收起键盘。
168
+ * @Android
169
+ * @iOS
170
+ * @Harmony
171
+ */
172
+ blur: () => Promise<void>;
173
+ /**
174
+ * Replace the current uncontrolled value. In controlled mode, this requests
175
+ * the next value through onChange and the value prop remains authoritative.
176
+ * Unsupported characters are discarded.
177
+ * @zh 替换当前非受控值。在受控模式下,该方法通过 onChange 请求新值,
178
+ * value 属性仍是唯一数据源。不支持的字符会被丢弃。
179
+ * @Android
180
+ * @iOS
181
+ * @Harmony
182
+ */
183
+ setValue: (value: string) => Promise<void>;
184
+ /**
185
+ * Clear the current uncontrolled value. In controlled mode, update the
186
+ * value prop from the onChange callback.
187
+ * @zh 清空当前非受控值。在受控模式下,请通过 onChange 回调更新 value 属性。
188
+ * @Android
189
+ * @iOS
190
+ * @Harmony
191
+ */
192
+ clear: () => Promise<void>;
193
+ /**
194
+ * Return the currently displayed value.
195
+ * @zh 返回当前展示的值。
196
+ * @Android
197
+ * @iOS
198
+ * @Harmony
199
+ */
200
+ getValue: () => string;
201
+ }
202
+ /**
203
+ * Props for InputOTP.
204
+ * @zh InputOTP 属性。
205
+ */
206
+ export interface InputOTPProps extends ComponentBasicProps {
207
+ ref?: ForwardedRef<InputOTPRef>;
208
+ /**
209
+ * Positive number of OTP or PIN characters. Invalid values fall back to 6.
210
+ * @defaultValue 6
211
+ * @zh OTP 或 PIN 字符数,必须为正整数。无效值会回退为 6。
212
+ * @Android
213
+ * @iOS
214
+ * @Harmony
215
+ */
216
+ length?: InputOTPLength;
217
+ /**
218
+ * Character set accepted by the hidden native input.
219
+ * @defaultValue "numeric"
220
+ * @zh 隐藏的原生输入框接受的字符集。
221
+ * @Android
222
+ * @iOS
223
+ * @Harmony
224
+ */
225
+ inputType?: InputOTPInputType;
226
+ /**
227
+ * Controlled value. Characters outside inputType are discarded.
228
+ * @zh 受控值;不符合 inputType 的字符会被丢弃。
229
+ * @Android
230
+ * @iOS
231
+ * @Harmony
232
+ */
233
+ value?: string;
234
+ /**
235
+ * Initial value in uncontrolled mode.
236
+ * @zh 非受控模式下的初始值。
237
+ * @Android
238
+ * @iOS
239
+ * @Harmony
240
+ */
241
+ defaultValue?: string;
242
+ /**
243
+ * Focus the hidden input after mounting.
244
+ * @defaultValue false
245
+ * @zh 挂载后自动聚焦隐藏输入框。
246
+ * @Android
247
+ * @iOS
248
+ * @Harmony
249
+ */
250
+ autoFocus?: boolean;
251
+ /**
252
+ * Disable keyboard input and focus.
253
+ * @defaultValue false
254
+ * @zh 禁用键盘输入和聚焦。
255
+ * @Android
256
+ * @iOS
257
+ * @Harmony
258
+ */
259
+ disabled?: boolean;
260
+ /**
261
+ * Expose the invalid state to render props and the ui-invalid variant.
262
+ * @defaultValue false
263
+ * @zh 通过渲染属性和 ui-invalid variant 暴露无效状态。
264
+ * @Android
265
+ * @iOS
266
+ * @Harmony
267
+ */
268
+ invalid?: boolean;
269
+ /**
270
+ * InputOTPSlot children, or a render function receiving the field state.
271
+ * InputOTP does not create slots automatically.
272
+ * @zh InputOTPSlot 子节点,或接收输入状态的渲染函数。InputOTP
273
+ * 不会自动创建输入槽。
274
+ * @docTypeFallback ReactNode | ((state: InputOTPRenderProps) => ReactNode)
275
+ * @Android
276
+ * @iOS
277
+ * @Harmony
278
+ */
279
+ children?: ReactNode | ((state: InputOTPRenderProps) => ReactNode);
280
+ /**
281
+ * Called after the normalized value changes.
282
+ * @zh 规范化后的值变化时触发。
283
+ * @Android
284
+ * @iOS
285
+ * @Harmony
286
+ */
287
+ onChange?: (value: string) => void;
288
+ /**
289
+ * Called when the value transitions from incomplete to complete.
290
+ * @zh 输入值从未完成变为完整时触发。
291
+ * @Android
292
+ * @iOS
293
+ * @Harmony
294
+ */
295
+ onComplete?: (value: string) => void;
296
+ /**
297
+ * Called when the hidden input gains focus.
298
+ * @zh 隐藏输入框聚焦时触发。
299
+ * @Android
300
+ * @iOS
301
+ * @Harmony
302
+ */
303
+ onFocus?: () => void;
304
+ /**
305
+ * Called when the hidden input loses focus.
306
+ * @zh 隐藏输入框失焦时触发。
307
+ * @Android
308
+ * @iOS
309
+ * @Harmony
310
+ */
311
+ onBlur?: () => void;
312
+ }
313
+ /**
314
+ * Props for an individual InputOTP visual slot.
315
+ * @zh 单个 InputOTP 可视输入槽的属性。
316
+ */
317
+ export interface InputOTPSlotProps extends ComponentBasicProps {
318
+ /**
319
+ * Zero-based index used to read the corresponding InputOTP character.
320
+ * @zh 从零开始的索引,用于读取 InputOTP 中对应的字符。
321
+ * @Android
322
+ * @iOS
323
+ * @Harmony
324
+ */
325
+ index: number;
326
+ /**
327
+ * Custom slot content. A render function receives the slot state.
328
+ * When omitted, InputOTPSlot renders its character and visual caret.
329
+ * @zh 自定义输入槽内容。渲染函数会接收输入槽状态。省略时,
330
+ * InputOTPSlot 会渲染默认字符和可视光标。
331
+ * @docTypeFallback ReactNode | ((state: InputOTPSlotRenderProps) => ReactNode)
332
+ * @Android
333
+ * @iOS
334
+ * @Harmony
335
+ */
336
+ children?: ReactNode | ((state: InputOTPSlotRenderProps) => ReactNode);
337
+ }
338
+ export type InputOTP = (props: InputOTPProps) => ReactElement;
339
+ export type InputOTPSlot = (props: InputOTPSlotProps) => ReactElement;
340
+ //# sourceMappingURL=index.docs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.docs.d.ts","sourceRoot":"","sources":["../../src/types/index.docs.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,5 @@
1
+ import type { InputOTPInputType, InputOTPLength } from './types';
2
+ export declare const nativeInputFilters: Record<InputOTPInputType, string>;
3
+ export declare function normalizeInputOTPLength(length: number): InputOTPLength;
4
+ export declare function normalizeOTPValue(value: string, length: InputOTPLength, inputType?: InputOTPInputType): string;
5
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAQhE,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAIhE,CAAA;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,CAEtE;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,cAAc,EACtB,SAAS,GAAE,iBAA6B,GACvC,MAAM,CAER"}
package/dist/utils.jsx ADDED
@@ -0,0 +1,19 @@
1
+ const inputPatterns = {
2
+ alphabetic: /[^a-z]/gi,
3
+ numeric: /\D/g,
4
+ alphanumeric: /[^a-z0-9]/gi
5
+ };
6
+ const nativeInputFilters = {
7
+ alphabetic: '[A-Za-z]',
8
+ numeric: '[0-9]',
9
+ alphanumeric: '[A-Za-z0-9]'
10
+ };
11
+ function normalizeInputOTPLength(length) {
12
+ return Number.isInteger(length) && length > 0 ? length : 6;
13
+ }
14
+ function normalizeOTPValue(value, length, inputType = 'numeric') {
15
+ return value.replace(inputPatterns[inputType], '').slice(0, length);
16
+ }
17
+ export { nativeInputFilters, normalizeInputOTPLength, normalizeOTPValue };
18
+
19
+ //# sourceMappingURL=utils.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.jsx","sources":["../src/utils.ts"],"sourcesContent":["// Copyright 2026 The Lynx Authors. All rights reserved.\n// Licensed under the Apache License Version 2.0 that can be found in the\n// LICENSE file in the root directory of this source tree.\n\nimport type { InputOTPInputType, InputOTPLength } from './types'\n\nconst inputPatterns: Record<InputOTPInputType, RegExp> = {\n alphabetic: /[^a-z]/gi,\n numeric: /\\D/g,\n alphanumeric: /[^a-z0-9]/gi,\n}\n\nexport const nativeInputFilters: Record<InputOTPInputType, string> = {\n alphabetic: '[A-Za-z]',\n numeric: '[0-9]',\n alphanumeric: '[A-Za-z0-9]',\n}\n\nexport function normalizeInputOTPLength(length: number): InputOTPLength {\n return Number.isInteger(length) && length > 0 ? length : 6\n}\n\nexport function normalizeOTPValue(\n value: string,\n length: InputOTPLength,\n inputType: InputOTPInputType = 'numeric',\n): string {\n return value.replace(inputPatterns[inputType], '').slice(0, length)\n}\n"],"names":["inputPatterns","nativeInputFilters","normalizeInputOTPLength","length","Number","normalizeOTPValue","value","inputType"],"mappings":"AAMA,MAAMA,gBAAmD;IACvD,YAAY;IACZ,SAAS;IACT,cAAc;AAChB;AAEO,MAAMC,qBAAwD;IACnE,YAAY;IACZ,SAAS;IACT,cAAc;AAChB;AAEO,SAASC,wBAAwBC,MAAc;IACpD,OAAOC,OAAO,SAAS,CAACD,WAAWA,SAAS,IAAIA,SAAS;AAC3D;AAEO,SAASE,kBACdC,KAAa,EACbH,MAAsB,EACtBI,YAA+B,SAAS;IAExC,OAAOD,MAAM,OAAO,CAACN,aAAa,CAACO,UAAU,EAAE,IAAI,KAAK,CAAC,GAAGJ;AAC9D"}
package/package.json CHANGED
@@ -1,14 +1,53 @@
1
1
  {
2
2
  "name": "@lynx-js/lynx-ui-input-otp",
3
- "version": "0.0.0-oidc-bootstrap.0",
4
- "description": "Placeholder package published only to enable npm Trusted Publishing (OIDC) setup.",
3
+ "version": "3.136.0",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/lynx-family/lynx-ui.git",
7
+ "directory": "packages/lynx-ui-input-otp"
8
+ },
5
9
  "license": "Apache-2.0",
6
- "author": "The Lynx Authors",
10
+ "author": {
11
+ "name": "The Lynx Authors"
12
+ },
13
+ "sideEffects": false,
14
+ "type": "module",
15
+ "main": "./dist/index.jsx",
16
+ "module": "./dist/index.jsx",
17
+ "types": "./dist/index.d.ts",
7
18
  "files": [
19
+ "src/**",
8
20
  "README.md",
9
- "LICENSE"
21
+ "CHANGELOG.md",
22
+ "LICENSE",
23
+ "tsconfig.docs.json",
24
+ "tsconfig.json",
25
+ "dist/**"
10
26
  ],
27
+ "dependencies": {
28
+ "clsx": "^2.1.1",
29
+ "@lynx-js/lynx-ui-common": "3.136.0",
30
+ "@lynx-js/lynx-ui-input": "3.136.0"
31
+ },
32
+ "devDependencies": {
33
+ "@lynx-js/react": "0.123.1",
34
+ "@lynx-js/types": "4.1.0",
35
+ "@rslib/core": "0.23.2",
36
+ "@types/react": "^18.3.8",
37
+ "typescript": "^5.8.0"
38
+ },
39
+ "peerDependencies": {
40
+ "@lynx-js/react": ">=0.100.0",
41
+ "@lynx-js/types": "*",
42
+ "@types/react": "^18"
43
+ },
11
44
  "publishConfig": {
12
45
  "access": "public"
46
+ },
47
+ "jsnext:source": "./src/index.tsx",
48
+ "scripts": {
49
+ "build": "rslib build",
50
+ "build:watch": "rslib build --watch",
51
+ "test": "vitest"
13
52
  }
14
- }
53
+ }