@page-speed/forms 0.3.5 → 0.3.6
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.
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/inputs.cjs +2 -0
- package/dist/inputs.cjs.map +1 -1
- package/dist/inputs.d.cts +2 -2
- package/dist/inputs.d.ts +2 -2
- package/dist/inputs.js +2 -0
- package/dist/inputs.js.map +1 -1
- package/dist/{types-WxAFrgDW.d.cts → types-BBif0kuP.d.cts} +4 -0
- package/dist/{types-WxAFrgDW.d.ts → types-BBif0kuP.d.ts} +4 -0
- package/dist/validation-rules.d.cts +1 -1
- package/dist/validation-rules.d.ts +1 -1
- package/dist/validation-utils.d.cts +1 -1
- package/dist/validation-utils.d.ts +1 -1
- package/dist/validation-valibot.d.cts +1 -1
- package/dist/validation-valibot.d.ts +1 -1
- package/dist/validation.d.cts +1 -1
- package/dist/validation.d.ts +1 -1
- package/package.json +2 -2
package/dist/inputs.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { I as InputProps } from './types-
|
|
2
|
+
import { I as InputProps } from './types-BBif0kuP.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* TextInput - High-performance text input component
|
|
@@ -29,7 +29,7 @@ import { I as InputProps } from './types-WxAFrgDW.cjs';
|
|
|
29
29
|
*
|
|
30
30
|
* @see https://opensite.ai/developers/page-speed/forms/text-input
|
|
31
31
|
*/
|
|
32
|
-
declare function TextInput({ name, value, onChange, onBlur, placeholder, disabled, required, error, className, type, ...props }: InputProps<string> & {
|
|
32
|
+
declare function TextInput({ name, value, onChange, onBlur, placeholder, disabled, required, error, className, type, id, ...props }: InputProps<string> & {
|
|
33
33
|
type?: "text" | "email" | "password" | "url" | "tel" | "search";
|
|
34
34
|
}): React.JSX.Element;
|
|
35
35
|
declare namespace TextInput {
|
package/dist/inputs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { I as InputProps } from './types-
|
|
2
|
+
import { I as InputProps } from './types-BBif0kuP.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* TextInput - High-performance text input component
|
|
@@ -29,7 +29,7 @@ import { I as InputProps } from './types-WxAFrgDW.js';
|
|
|
29
29
|
*
|
|
30
30
|
* @see https://opensite.ai/developers/page-speed/forms/text-input
|
|
31
31
|
*/
|
|
32
|
-
declare function TextInput({ name, value, onChange, onBlur, placeholder, disabled, required, error, className, type, ...props }: InputProps<string> & {
|
|
32
|
+
declare function TextInput({ name, value, onChange, onBlur, placeholder, disabled, required, error, className, type, id, ...props }: InputProps<string> & {
|
|
33
33
|
type?: "text" | "email" | "password" | "url" | "tel" | "search";
|
|
34
34
|
}): React.JSX.Element;
|
|
35
35
|
declare namespace TextInput {
|
package/dist/inputs.js
CHANGED
|
@@ -12,6 +12,7 @@ function TextInput({
|
|
|
12
12
|
error = false,
|
|
13
13
|
className = "",
|
|
14
14
|
type = "text",
|
|
15
|
+
id = "text",
|
|
15
16
|
...props
|
|
16
17
|
}) {
|
|
17
18
|
const handleChange = (e) => {
|
|
@@ -27,6 +28,7 @@ function TextInput({
|
|
|
27
28
|
"input",
|
|
28
29
|
{
|
|
29
30
|
type,
|
|
31
|
+
id,
|
|
30
32
|
name,
|
|
31
33
|
value: value ?? "",
|
|
32
34
|
onChange: handleChange,
|