@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "12.5.2",
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.21.1",
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",
@@ -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
 
@@ -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 = Exclude<
18
- ChakraInputProps,
19
- "size" | "label" | "colorPalette" | "placeholder"
20
- > &
21
- FieldProps & {
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
- <chakra.text
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
- </chakra.text>
169
+ </Text>
170
170
  )}
171
171
  <VerySmallButton
172
172
  ref={addButtonRef}
@@ -39,6 +39,7 @@ export const listBoxSlotRecipe = defineSlotRecipe({
39
39
  backgroundColor: "ghost.surface.active",
40
40
  },
41
41
  _focus: {
42
+ outline: "2px solid",
42
43
  outlineColor: "outline.focus",
43
44
  },
44
45
  },