@volvo-cars/react-forms
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { type BaseInputProps, type GlobalHTMLAttributes } from './types'; | ||
@@ -3,0 +2,0 @@ interface BaseCheckboxProps extends GlobalHTMLAttributes, BaseInputProps { |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { type RangeLikeProps } from './types'; | ||
@@ -3,0 +2,0 @@ interface BaseDateInputProps extends RangeLikeProps { |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { type TextLikeProps } from './types'; | ||
@@ -3,0 +2,0 @@ interface BaseEmailInputProps extends TextLikeProps { |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
export interface HintProps { | ||
@@ -3,0 +2,0 @@ children: React.ReactNode; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { type TextLikeProps } from './types'; | ||
@@ -3,0 +2,0 @@ interface BasePasswordInputProps extends TextLikeProps { |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { type GlobalHTMLAttributes } from './types'; | ||
@@ -3,0 +2,0 @@ interface BaseRadioGroupProps extends GlobalHTMLAttributes { |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { type BaseInputProps, type GlobalHTMLAttributes } from './types'; | ||
@@ -3,0 +2,0 @@ export interface RadioProps extends GlobalHTMLAttributes, BaseInputProps { |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { type GlobalHTMLAttributes } from './types'; | ||
@@ -3,0 +2,0 @@ interface BaseRangeSliderProps extends GlobalHTMLAttributes { |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { type BaseInputProps, type GlobalHTMLAttributes } from './types'; | ||
@@ -3,0 +2,0 @@ interface BaseSelectProps extends GlobalHTMLAttributes, BaseInputProps<HTMLSelectElement> { |
@@ -91,3 +91,3 @@ import { type ReactNode } from 'react'; | ||
*/ | ||
variant?: "outlined" | "filled" | undefined; | ||
variant?: "filled" | "outlined"; | ||
/** | ||
@@ -99,3 +99,3 @@ * The `accent` color can be used to add extra prominence to the button. | ||
*/ | ||
color?: "accent" | "destructive" | "neutral" | undefined; | ||
color?: "accent" | "destructive" | "neutral"; | ||
/** | ||
@@ -106,3 +106,3 @@ * Use the small button in cards and other constrained containers. | ||
*/ | ||
size?: "small" | "medium" | undefined; | ||
size?: "medium" | "small"; | ||
/** | ||
@@ -112,19 +112,19 @@ * Id of a form element that this button should be associated with. Defaults to the containing | ||
*/ | ||
form?: string | undefined; | ||
form?: string; | ||
/** | ||
* The URL that processes the information submitted by the button, overriding the `action` attribute of the button's form. | ||
*/ | ||
formAction?: string | undefined; | ||
formAction?: string; | ||
/** | ||
* Specifies the HTTP method used to submit the form, overriding the `method` attribute of the button's form. | ||
*/ | ||
formMethod?: "post" | "get" | undefined; | ||
formMethod?: "post" | "get"; | ||
/** | ||
* The name of the button, submitted as a pair with the button's value as part of the form data. | ||
*/ | ||
name?: string | undefined; | ||
name?: string; | ||
/** | ||
* The value associated with the button's `name` in the form data when the form is submitted using this button. | ||
*/ | ||
value?: string | undefined; | ||
value?: string; | ||
/** | ||
@@ -137,15 +137,15 @@ * The button label. | ||
*/ | ||
disabled?: boolean | undefined; | ||
disabled?: boolean; | ||
/** | ||
* Renders a spinner in place of the button label and prevents activating the button again. | ||
*/ | ||
loading?: boolean | undefined; | ||
loading?: boolean; | ||
/** | ||
* Label for screen readers while showing the loading spinner. | ||
*/ | ||
loadingLabel?: string | undefined; | ||
loadingLabel?: string; | ||
/** | ||
* @default 'submit' | ||
*/ | ||
type?: "button" | "submit" | undefined; | ||
type?: "submit" | "button"; | ||
/** | ||
@@ -156,12 +156,12 @@ * Called when the button is clicked. | ||
*/ | ||
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined; | ||
onFocus?: import("react").FocusEventHandler<HTMLButtonElement> | undefined; | ||
onBlur?: import("react").FocusEventHandler<HTMLButtonElement> | undefined; | ||
onKeyDown?: import("react").KeyboardEventHandler<HTMLButtonElement> | undefined; | ||
onKeyUp?: import("react").KeyboardEventHandler<HTMLButtonElement> | undefined; | ||
onPointerEnter?: import("react").PointerEventHandler<HTMLButtonElement> | undefined; | ||
onPointerMove?: import("react").PointerEventHandler<HTMLButtonElement> | undefined; | ||
onPointerDown?: import("react").PointerEventHandler<HTMLButtonElement> | undefined; | ||
onPointerUp?: import("react").PointerEventHandler<HTMLButtonElement> | undefined; | ||
onPointerLeave?: import("react").PointerEventHandler<HTMLButtonElement> | undefined; | ||
onClick?: React.MouseEventHandler<HTMLButtonElement>; | ||
onFocus?: React.FocusEventHandler<HTMLButtonElement>; | ||
onBlur?: React.FocusEventHandler<HTMLButtonElement>; | ||
onKeyDown?: React.KeyboardEventHandler<HTMLButtonElement>; | ||
onKeyUp?: React.KeyboardEventHandler<HTMLButtonElement>; | ||
onPointerEnter?: React.PointerEventHandler<HTMLButtonElement>; | ||
onPointerMove?: React.PointerEventHandler<HTMLButtonElement>; | ||
onPointerDown?: React.PointerEventHandler<HTMLButtonElement>; | ||
onPointerUp?: React.PointerEventHandler<HTMLButtonElement>; | ||
onPointerLeave?: React.PointerEventHandler<HTMLButtonElement>; | ||
} & import("react").RefAttributes<HTMLButtonElement>>; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { type TextLikeProps } from './types'; | ||
@@ -3,0 +2,0 @@ interface BaseTelInputProps extends TextLikeProps { |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { type BaseInputProps, type GlobalHTMLAttributes } from './types'; | ||
@@ -3,0 +2,0 @@ interface BaseTextAreaProps extends GlobalHTMLAttributes, BaseInputProps<HTMLTextAreaElement> { |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { type TextLikeProps } from './types'; | ||
@@ -86,5 +85,5 @@ interface BaseTextInputProps extends TextLikeProps { | ||
type: string; | ||
autoComplete?: string | undefined; | ||
inputMode?: "search" | "none" | "email" | "tel" | "text" | "url" | "numeric" | "decimal" | undefined; | ||
autoComplete?: string; | ||
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search"; | ||
} & import("react").RefAttributes<HTMLInputElement>>; | ||
export {}; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
export interface GlobalHTMLAttributes { | ||
@@ -3,0 +2,0 @@ hidden?: boolean; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { type TextLikeProps } from './types'; | ||
@@ -3,0 +2,0 @@ interface BaseUrlInputProps extends TextLikeProps { |
{ | ||
"name": "@volvo-cars/react-forms", | ||
"description": "React form components", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"license": "UNLICENSED", | ||
@@ -38,11 +38,11 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@volvo-cars/react-icons": "^0.20.0" | ||
"@volvo-cars/react-icons": "^0.20.1" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "18.3.2", | ||
"@volvo-cars/browserslist-config": "1.4.3", | ||
"@volvo-cars/css": "1.9.0", | ||
"@types/react": "18.3.3", | ||
"@volvo-cars/browserslist-config": "1.4.4", | ||
"@volvo-cars/css": "1.11.2", | ||
"react": "18.3.1", | ||
"tsup": "8.0.2", | ||
"typescript": "5.4.5" | ||
"tsup": "8.1.0", | ||
"typescript": "5.5.3" | ||
}, | ||
@@ -49,0 +49,0 @@ "browserslist": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
198985
1215