@vygruppen/spor-react 12.6.1 → 12.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "12.6.1",
3
+ "version": "12.6.3",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",
@@ -46,7 +46,7 @@
46
46
  "react-swipeable": "^7.0.1",
47
47
  "usehooks-ts": "^3.1.0",
48
48
  "@vygruppen/spor-design-tokens": "4.0.7",
49
- "@vygruppen/spor-icon-react": "4.2.0",
49
+ "@vygruppen/spor-icon-react": "4.2.1",
50
50
  "@vygruppen/spor-loader": "0.6.0"
51
51
  },
52
52
  "devDependencies": {
@@ -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/eslint-config": "1.1.1",
70
- "@vygruppen/tsconfig": "0.1.0"
69
+ "@vygruppen/tsconfig": "0.1.0",
70
+ "@vygruppen/eslint-config": "1.1.1"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "react": ">=18.0.0 <19.0.0",
@@ -76,6 +76,7 @@ export const Combobox = (props: ComboboxProps<object>) => {
76
76
  inputRef: externalInputRef,
77
77
  children,
78
78
  variant,
79
+ ...restProps
79
80
  } = props;
80
81
  const { contains } = useFilter({ sensitivity: "base" });
81
82
 
@@ -128,6 +129,7 @@ export const Combobox = (props: ComboboxProps<object>) => {
128
129
  return (
129
130
  <>
130
131
  <Input
132
+ {...restProps}
131
133
  {...styleProps(comboBoxProps)}
132
134
  aria-haspopup="listbox"
133
135
  ref={inputRef}
@@ -6,7 +6,7 @@ import {
6
6
  useControllableState,
7
7
  useSlotRecipe,
8
8
  } from "@chakra-ui/react";
9
- import React, { PropsWithChildren, useRef } from "react";
9
+ import React, { useRef } from "react";
10
10
 
11
11
  import { BoxProps, createTexts, IconButton, Text, useTranslation } from "..";
12
12
  import { numericStepperRecipe } from "../theme/slot-recipes/numeric-stepper";
@@ -14,10 +14,9 @@ import { Field, FieldBaseProps } from "./Field";
14
14
 
15
15
  type NumericStepperVariants = RecipeVariantProps<typeof numericStepperRecipe>;
16
16
 
17
- export type NumericStepperProps = BoxProps &
18
- FieldBaseProps &
19
- PropsWithChildren<NumericStepperVariants> & {
20
- children: React.ReactNode;
17
+ export type NumericStepperProps = FieldBaseProps &
18
+ NumericStepperVariants & {
19
+ children?: React.ReactNode;
21
20
  /** The name of the input field */
22
21
  name?: string;
23
22
  /** The current value */
@@ -145,36 +145,42 @@ export const dialogSlotRecipe = defineSlotRecipe({
145
145
  xs: {
146
146
  content: {
147
147
  maxWidth: "sm",
148
+ height: "auto",
148
149
  },
149
150
  },
150
151
  sm: {
151
152
  content: {
152
153
  maxWidth: "md",
154
+ height: "auto",
153
155
  },
154
156
  },
155
157
  md: {
156
158
  content: {
157
159
  maxWidth: "lg",
160
+ height: "auto",
158
161
  },
159
162
  },
160
163
  lg: {
161
164
  content: {
162
165
  maxWidth: "2xl",
166
+ height: "auto",
163
167
  },
164
168
  },
165
169
  xl: {
166
170
  content: {
167
171
  maxWidth: "4xl",
172
+ height: "auto",
168
173
  },
169
174
  },
170
175
  cover: {
171
176
  positioner: {
172
- padding: "10",
177
+ padding: "4",
173
178
  },
174
179
  content: {
175
180
  width: "100%",
176
181
  height: "100%",
177
182
  "--dialog-margin": "0",
183
+ margin: "0",
178
184
  },
179
185
  },
180
186
  },
@@ -84,6 +84,9 @@ export const tabsSlotRecipe = defineSlotRecipe({
84
84
  _selected: {
85
85
  backgroundColor: "brand.surface",
86
86
  color: "brand.text",
87
+ _hover: {
88
+ outline: "none",
89
+ },
87
90
  },
88
91
  _disabled: {
89
92
  backgroundColor: "surface.disabled",
@@ -98,6 +101,7 @@ export const tabsSlotRecipe = defineSlotRecipe({
98
101
  },
99
102
  trigger: {
100
103
  color: "accent.text",
104
+
101
105
  _disabled: {
102
106
  backgroundColor: "surface.disabled",
103
107
  color: "accent.text.disabled",
@@ -115,6 +119,7 @@ export const tabsSlotRecipe = defineSlotRecipe({
115
119
  _hover: {
116
120
  backgroundColor: "brand.surface.hover",
117
121
  color: "brand.text",
122
+ outline: "none",
118
123
  },
119
124
  },
120
125
  },