@vygruppen/spor-react 12.5.2 → 12.5.4
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 +12 -12
- package/.turbo/turbo-postinstall.log +2 -3
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +26 -41
- package/dist/index.d.ts +26 -41
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/input/Field.tsx +1 -1
- package/src/input/Input.tsx +8 -7
- package/src/input/NumericStepper.tsx +4 -4
- package/src/theme/slot-recipes/listbox.ts +1 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vygruppen/spor-react",
|
3
|
-
"version": "12.5.
|
3
|
+
"version": "12.5.4",
|
4
4
|
"exports": {
|
5
5
|
".": {
|
6
6
|
"types": "./dist/index.d.ts",
|
@@ -24,7 +24,7 @@
|
|
24
24
|
"dependencies": {
|
25
25
|
"@ark-ui/react": "^4.9.2",
|
26
26
|
"@chakra-ui/anatomy": "^2.3.4",
|
27
|
-
"@chakra-ui/react": "^3.
|
27
|
+
"@chakra-ui/react": "^3.24.0",
|
28
28
|
"@chakra-ui/cli": "^3.8.0",
|
29
29
|
"@chakra-ui/react-use-size": "^2.1.0",
|
30
30
|
"@chakra-ui/styled-system": "^2.12.0",
|
package/src/input/Field.tsx
CHANGED
@@ -28,7 +28,7 @@ export type FieldBaseProps = {
|
|
28
28
|
floatingLabel?: boolean;
|
29
29
|
};
|
30
30
|
|
31
|
-
export type FieldProps = Omit<ChakraField.RootProps, "label"> &
|
31
|
+
export type FieldProps = Omit<ChakraField.RootProps, "label" | "onChange"> &
|
32
32
|
React.PropsWithChildren<FieldVariantProps> &
|
33
33
|
FieldBaseProps;
|
34
34
|
|
package/src/input/Input.tsx
CHANGED
@@ -6,19 +6,20 @@ import {
|
|
6
6
|
Flex,
|
7
7
|
Input as ChakraInput,
|
8
8
|
InputElement,
|
9
|
-
InputProps as ChakraInputProps,
|
10
9
|
} from "@chakra-ui/react";
|
11
|
-
import React, { forwardRef, ReactNode } from "react";
|
10
|
+
import React, { ComponentProps, forwardRef, ReactNode } from "react";
|
11
|
+
|
12
|
+
type ChakraInputProps = ComponentProps<typeof ChakraInput>;
|
12
13
|
|
13
14
|
import { inputRecipe } from "@/theme/recipes/input";
|
14
15
|
|
15
16
|
import { Field, FieldProps } from "./Field";
|
16
17
|
|
17
|
-
export type InputProps =
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
export type InputProps = FieldProps &
|
19
|
+
Exclude<
|
20
|
+
ChakraInputProps,
|
21
|
+
"size" | "label" | "colorPalette" | "placeholder"
|
22
|
+
> & {
|
22
23
|
/** The input's label */
|
23
24
|
label: ReactNode;
|
24
25
|
/** Element that shows up to the left */
|
@@ -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}
|