@box/blueprint-web 18.5.2 → 18.5.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.
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef, type ForwardedRef } from 'react';
|
|
2
2
|
import { type NumberFieldProps } from './types';
|
|
3
3
|
type NumberFieldControlProps = {
|
|
4
|
-
ariaValueMax?: number;
|
|
5
|
-
ariaValueMin?: number;
|
|
6
4
|
decrementAriaLabel: string;
|
|
7
5
|
hasError: boolean;
|
|
8
6
|
incrementAriaLabel: string;
|
|
@@ -23,5 +21,5 @@ type NumberFieldControlProps = {
|
|
|
23
21
|
showDecrementTooltip: boolean;
|
|
24
22
|
showIncrementTooltip: boolean;
|
|
25
23
|
};
|
|
26
|
-
export declare const NumberFieldControl: ({
|
|
24
|
+
export declare const NumberFieldControl: ({ decrementAriaLabel, hasError, incrementAriaLabel, inputMaxLength, inputProps, inputRef, isAnimationEnabled, isDecrementDisabled, isDecrementLoading, isIncrementDisabled, isIncrementLoading, labelId, loadingAriaLabel, maxReachedTooltipContent, minReachedTooltipContent, onBlur, onInputChange, showDecrementTooltip, showIncrementTooltip, }: NumberFieldControlProps) => React.ReactElement;
|
|
27
25
|
export {};
|
|
@@ -8,8 +8,6 @@ import { StepperButton } from './stepper-button.js';
|
|
|
8
8
|
import styles from './number-field.module.js';
|
|
9
9
|
|
|
10
10
|
const NumberFieldControl = ({
|
|
11
|
-
ariaValueMax,
|
|
12
|
-
ariaValueMin,
|
|
13
11
|
decrementAriaLabel,
|
|
14
12
|
hasError,
|
|
15
13
|
incrementAriaLabel,
|
|
@@ -72,8 +70,6 @@ const NumberFieldControl = ({
|
|
|
72
70
|
...inputProps,
|
|
73
71
|
...racDomProps,
|
|
74
72
|
ref: racInputRef,
|
|
75
|
-
"aria-valuemax": ariaValueMax,
|
|
76
|
-
"aria-valuemin": ariaValueMin,
|
|
77
73
|
className: styles.input,
|
|
78
74
|
"data-bp-animated": isAnimationEnabled ? 'true' : 'false',
|
|
79
75
|
invalid: hasError,
|
|
@@ -119,8 +119,6 @@ const NumberField = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
119
119
|
hideLabel: hideLabel,
|
|
120
120
|
id: labelId
|
|
121
121
|
}), jsx(NumberFieldControl, {
|
|
122
|
-
ariaValueMax: max,
|
|
123
|
-
ariaValueMin: min,
|
|
124
122
|
decrementAriaLabel: decrementAriaLabel,
|
|
125
123
|
hasError: hasError,
|
|
126
124
|
incrementAriaLabel: incrementAriaLabel,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "18.5.
|
|
3
|
+
"version": "18.5.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@ariakit/react": "0.4.21",
|
|
57
57
|
"@ariakit/react-core": "0.4.21",
|
|
58
|
-
"@box/blueprint-web-assets": "^5.
|
|
58
|
+
"@box/blueprint-web-assets": "^5.13.0",
|
|
59
59
|
"@internationalized/date": "^3.12.0",
|
|
60
60
|
"@radix-ui/react-accordion": "1.1.2",
|
|
61
61
|
"@radix-ui/react-checkbox": "1.0.4",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@box/box-test-client": "^3.2.7",
|
|
87
87
|
"@box/playwright-utils": "^2.8.5",
|
|
88
|
-
"@box/storybook-utils": "^1.4.
|
|
88
|
+
"@box/storybook-utils": "^1.4.19",
|
|
89
89
|
"@figma/code-connect": "1.4.4",
|
|
90
90
|
"@playwright/test": "1.46.1",
|
|
91
91
|
"@types/js-yaml": "^4.0.9",
|