@launchpad-ui/form
Advanced tools
Comparing version 0.11.4 to 0.11.5
@@ -0,3 +1,3 @@ | ||
import type { ComponentProps } from 'react'; | ||
import type { FieldPath } from './utils'; | ||
import type { ComponentProps } from 'react'; | ||
type FieldErrorProps = ComponentProps<'span'> & { | ||
@@ -4,0 +4,0 @@ name: FieldPath; |
@@ -318,2 +318,3 @@ import './style.css'; | ||
className, | ||
// biome-ignore lint/correctness/noUnusedVariables: <explanation> | ||
name, | ||
@@ -360,3 +361,3 @@ ignoreValidation, | ||
const handleBlur = () => { | ||
onBlur && onBlur(name); | ||
onBlur == null ? void 0 : onBlur(name); | ||
}; | ||
@@ -550,3 +551,4 @@ return /* @__PURE__ */ jsxs( | ||
const useNumberField = ({ | ||
className: rootClassName, | ||
// biome-ignore lint/correctness/noUnusedVariables: <explanation> | ||
className, | ||
"data-test-id": testId = "input", | ||
@@ -598,3 +600,12 @@ id, | ||
const { buttonProps } = useButton(props, buttonRef); | ||
return /* @__PURE__ */ jsx("button", { ...buttonProps, className: styles["numberField-stepper"], ref: buttonRef, children: props.children }); | ||
return /* @__PURE__ */ jsx( | ||
"button", | ||
{ | ||
type: "button", | ||
...buttonProps, | ||
className: styles["numberField-stepper"], | ||
ref: buttonRef, | ||
children: props.children | ||
} | ||
); | ||
}; | ||
@@ -601,0 +612,0 @@ export { |
@@ -320,2 +320,3 @@ require('./style.css'); | ||
className, | ||
// biome-ignore lint/correctness/noUnusedVariables: <explanation> | ||
name, | ||
@@ -362,3 +363,3 @@ ignoreValidation, | ||
const handleBlur = () => { | ||
onBlur && onBlur(name); | ||
onBlur == null ? void 0 : onBlur(name); | ||
}; | ||
@@ -552,3 +553,4 @@ return /* @__PURE__ */ jsxRuntime.jsxs( | ||
const useNumberField = ({ | ||
className: rootClassName, | ||
// biome-ignore lint/correctness/noUnusedVariables: <explanation> | ||
className, | ||
"data-test-id": testId = "input", | ||
@@ -600,3 +602,12 @@ id, | ||
const { buttonProps } = button$1.useButton(props, buttonRef); | ||
return /* @__PURE__ */ jsxRuntime.jsx("button", { ...buttonProps, className: styles["numberField-stepper"], ref: buttonRef, children: props.children }); | ||
return /* @__PURE__ */ jsxRuntime.jsx( | ||
"button", | ||
{ | ||
type: "button", | ||
...buttonProps, | ||
className: styles["numberField-stepper"], | ||
ref: buttonRef, | ||
children: props.children | ||
} | ||
); | ||
}; | ||
@@ -603,0 +614,0 @@ exports.Checkbox = Checkbox; |
@@ -10,3 +10,3 @@ /// <reference types="react" /> | ||
}; | ||
declare const useNumberField: ({ className: rootClassName, "data-test-id": testId, id, name, ...otherProps }?: UseNumberFieldProps) => { | ||
declare const useNumberField: ({ className, "data-test-id": testId, id, name, ...otherProps }?: UseNumberFieldProps) => { | ||
fieldErrorProps: ReturnType<typeof useReactAriaNumberField>['errorMessageProps']; | ||
@@ -13,0 +13,0 @@ formHintProps: ReturnType<typeof useReactAriaNumberField>['descriptionProps']; |
{ | ||
"name": "@launchpad-ui/form", | ||
"version": "0.11.4", | ||
"version": "0.11.5", | ||
"status": "beta", | ||
@@ -29,12 +29,12 @@ "publishConfig": { | ||
"dependencies": { | ||
"@react-aria/button": "3.9.2", | ||
"@react-aria/i18n": "3.10.1", | ||
"@react-aria/numberfield": "3.11.0", | ||
"@react-aria/visually-hidden": "3.8.9", | ||
"@react-stately/numberfield": "3.9.0", | ||
"@react-aria/button": "3.9.3", | ||
"@react-aria/i18n": "3.10.2", | ||
"@react-aria/numberfield": "3.11.1", | ||
"@react-aria/visually-hidden": "3.8.10", | ||
"@react-stately/numberfield": "3.9.1", | ||
"classix": "2.1.17", | ||
"@launchpad-ui/button": "~0.12.3", | ||
"@launchpad-ui/icons": "~0.16.3", | ||
"@launchpad-ui/tokens": "~0.9.6", | ||
"@launchpad-ui/tooltip": "~0.9.4" | ||
"@launchpad-ui/button": "~0.12.4", | ||
"@launchpad-ui/icons": "~0.16.4", | ||
"@launchpad-ui/tokens": "~0.9.7", | ||
"@launchpad-ui/tooltip": "~0.9.5" | ||
}, | ||
@@ -52,5 +52,5 @@ "peerDependencies": { | ||
"clean": "rm -rf dist", | ||
"lint": "eslint '**/*.{ts,tsx,js}' && stylelint '**/*.css' --ignore-path ../../.stylelintignore", | ||
"lint": "stylelint '**/*.css' --ignore-path ../../.stylelintignore", | ||
"test": "vitest run --coverage" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
145054
1538
141
7
9
2
60
+ Added@react-aria/button@3.9.3(transitive)
+ Added@react-aria/i18n@3.10.2(transitive)
+ Added@react-aria/numberfield@3.11.1(transitive)
+ Added@react-aria/visually-hidden@3.8.10(transitive)
+ Added@react-stately/numberfield@3.9.1(transitive)
- Removed@react-aria/button@3.9.2(transitive)
- Removed@react-aria/i18n@3.10.1(transitive)
- Removed@react-aria/numberfield@3.11.0(transitive)
- Removed@react-aria/visually-hidden@3.8.9(transitive)
- Removed@react-stately/numberfield@3.9.0(transitive)
Updated@launchpad-ui/button@~0.12.4
Updated@launchpad-ui/icons@~0.16.4
Updated@launchpad-ui/tokens@~0.9.7
Updated@launchpad-ui/tooltip@~0.9.5
Updated@react-aria/button@3.9.3
Updated@react-aria/i18n@3.10.2