@vygruppen/spor-react 12.5.1 → 12.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.
- package/.turbo/turbo-build.log +9 -9
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +1 -7
- package/dist/index.d.ts +1 -7
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/input/NumericStepper.tsx +4 -4
- package/src/input/PhoneNumberInput.tsx +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vygruppen/spor-react",
|
3
|
-
"version": "12.5.
|
3
|
+
"version": "12.5.3",
|
4
4
|
"exports": {
|
5
5
|
".": {
|
6
6
|
"types": "./dist/index.d.ts",
|
@@ -45,9 +45,9 @@
|
|
45
45
|
"react-stately": "^3.31.1",
|
46
46
|
"react-swipeable": "^7.0.1",
|
47
47
|
"usehooks-ts": "^3.1.0",
|
48
|
-
"@vygruppen/spor-design-tokens": "4.0.7",
|
49
48
|
"@vygruppen/spor-icon-react": "4.2.0",
|
50
|
-
"@vygruppen/spor-loader": "0.6.0"
|
49
|
+
"@vygruppen/spor-loader": "0.6.0",
|
50
|
+
"@vygruppen/spor-design-tokens": "4.0.7"
|
51
51
|
},
|
52
52
|
"devDependencies": {
|
53
53
|
"@react-types/datepicker": "^3.10.0",
|
@@ -8,7 +8,7 @@ import {
|
|
8
8
|
} from "@chakra-ui/react";
|
9
9
|
import React, { PropsWithChildren, useRef } from "react";
|
10
10
|
|
11
|
-
import { BoxProps, createTexts, IconButton, useTranslation } from "..";
|
11
|
+
import { BoxProps, createTexts, IconButton, Text, useTranslation } from "..";
|
12
12
|
import { numericStepperRecipe } from "../theme/slot-recipes/numeric-stepper";
|
13
13
|
import { Field, FieldBaseProps } from "./Field";
|
14
14
|
|
@@ -155,10 +155,10 @@ export const NumericStepper = React.forwardRef<
|
|
155
155
|
}}
|
156
156
|
/>
|
157
157
|
) : (
|
158
|
-
<
|
159
|
-
css={styles}
|
158
|
+
<Text
|
160
159
|
visibility={!showZero && value === 0 ? "hidden" : "visible"}
|
161
160
|
aria-live="assertive"
|
161
|
+
paddingX="0.95rem"
|
162
162
|
aria-label={
|
163
163
|
ariaLabelContext.plural === ""
|
164
164
|
? ""
|
@@ -166,7 +166,7 @@ export const NumericStepper = React.forwardRef<
|
|
166
166
|
}
|
167
167
|
>
|
168
168
|
{value}
|
169
|
-
</
|
169
|
+
</Text>
|
170
170
|
)}
|
171
171
|
<VerySmallButton
|
172
172
|
ref={addButtonRef}
|
@@ -11,7 +11,7 @@ export type CountryCodeAndPhoneNumber = {
|
|
11
11
|
nationalNumber: string;
|
12
12
|
};
|
13
13
|
|
14
|
-
type PhoneNumberInputProps = InputProps & {
|
14
|
+
type PhoneNumberInputProps = Omit<InputProps, "value"> & {
|
15
15
|
/** The label. Defaults to a localized version of "Phone number" */
|
16
16
|
label?: string;
|
17
17
|
/** Callback for when the country code or phone number changes */
|