@page-speed/forms 0.3.4 → 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/inputs.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { I as InputProps } from './types-WxAFrgDW.cjs';
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-WxAFrgDW.js';
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,
@@ -1312,7 +1314,7 @@ function DatePicker({
1312
1314
  "aria-label": "Previous month"
1313
1315
  },
1314
1316
  "\u2190"
1315
- ), /* @__PURE__ */ React7.createElement("div", { className: "datepicker-calendar-month" }, monthNames[month], " ", year), /* @__PURE__ */ React7.createElement(
1317
+ ), /* @__PURE__ */ React7.createElement("div", { className: "datepicker-calendar-month" }, `${monthNames[month]} ${year}`), /* @__PURE__ */ React7.createElement(
1316
1318
  "button",
1317
1319
  {
1318
1320
  type: "button",
@@ -1785,7 +1787,7 @@ function DateRangePicker({
1785
1787
  "aria-label": "Previous month"
1786
1788
  },
1787
1789
  "\u2190"
1788
- ), /* @__PURE__ */ React7.createElement("div", { className: "daterangepicker-calendar-month" }, monthNames[month], " ", year), /* @__PURE__ */ React7.createElement(
1790
+ ), /* @__PURE__ */ React7.createElement("div", { className: "daterangepicker-calendar-month" }, `${monthNames[month]} ${year}`), /* @__PURE__ */ React7.createElement(
1789
1791
  "button",
1790
1792
  {
1791
1793
  type: "button",