@page-speed/forms 0.4.1 → 0.4.3

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
@@ -131,6 +131,10 @@ interface CheckboxProps extends Omit<InputProps<boolean>, "onChange" | "placehol
131
131
  * Optional description text below the label (secondary text)
132
132
  */
133
133
  description?: React.ReactNode;
134
+ /**
135
+ * Layout variant
136
+ */
137
+ checkboxVariant?: "boxed" | "inline";
134
138
  /**
135
139
  * Additional native input attributes
136
140
  */
@@ -178,7 +182,7 @@ interface CheckboxProps extends Omit<InputProps<boolean>, "onChange" | "placehol
178
182
  *
179
183
  * @see https://opensite.ai/developers/page-speed/forms/checkbox
180
184
  */
181
- declare function Checkbox({ name, value, onChange, onBlur, disabled, required, error, className, indeterminate, label, description, ...props }: CheckboxProps): React.JSX.Element;
185
+ declare function Checkbox({ name, value, onChange, onBlur, disabled, required, error, className, indeterminate, label, description, checkboxVariant, ...props }: CheckboxProps): React.JSX.Element;
182
186
  declare namespace Checkbox {
183
187
  var displayName: string;
184
188
  }
package/dist/inputs.d.ts CHANGED
@@ -131,6 +131,10 @@ interface CheckboxProps extends Omit<InputProps<boolean>, "onChange" | "placehol
131
131
  * Optional description text below the label (secondary text)
132
132
  */
133
133
  description?: React.ReactNode;
134
+ /**
135
+ * Layout variant
136
+ */
137
+ checkboxVariant?: "boxed" | "inline";
134
138
  /**
135
139
  * Additional native input attributes
136
140
  */
@@ -178,7 +182,7 @@ interface CheckboxProps extends Omit<InputProps<boolean>, "onChange" | "placehol
178
182
  *
179
183
  * @see https://opensite.ai/developers/page-speed/forms/checkbox
180
184
  */
181
- declare function Checkbox({ name, value, onChange, onBlur, disabled, required, error, className, indeterminate, label, description, ...props }: CheckboxProps): React.JSX.Element;
185
+ declare function Checkbox({ name, value, onChange, onBlur, disabled, required, error, className, indeterminate, label, description, checkboxVariant, ...props }: CheckboxProps): React.JSX.Element;
182
186
  declare namespace Checkbox {
183
187
  var displayName: string;
184
188
  }