@vygruppen/spor-react 12.5.3 → 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.3",
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",
@@ -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",
48
49
  "@vygruppen/spor-icon-react": "4.2.0",
49
- "@vygruppen/spor-loader": "0.6.0",
50
- "@vygruppen/spor-design-tokens": "4.0.7"
50
+ "@vygruppen/spor-loader": "0.6.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@react-types/datepicker": "^3.10.0",
@@ -66,8 +66,8 @@
66
66
  "vitest": "^0.26.3",
67
67
  "vitest-axe": "^0.1.0",
68
68
  "vitest-canvas-mock": "^0.2.2",
69
- "@vygruppen/tsconfig": "0.1.0",
70
- "@vygruppen/eslint-config": "1.1.1"
69
+ "@vygruppen/eslint-config": "1.1.1",
70
+ "@vygruppen/tsconfig": "0.1.0"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "react": ">=18.0.0 <19.0.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 */
@@ -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
  },