@vygruppen/spor-react 12.24.8 → 12.24.10
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 +10 -10
- package/.turbo/turbo-postinstall.log +3 -4
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +4 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +4 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/input/Autocomplete.tsx +1 -1
- package/src/layout/RadioCard.tsx +3 -10
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vygruppen/spor-react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "12.24.
|
|
4
|
+
"version": "12.24.10",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"react-swipeable": "^7.0.1",
|
|
48
48
|
"usehooks-ts": "^3.1.0",
|
|
49
49
|
"@vygruppen/spor-design-tokens": "4.3.3",
|
|
50
|
-
"@vygruppen/spor-
|
|
51
|
-
"@vygruppen/spor-
|
|
50
|
+
"@vygruppen/spor-loader": "0.7.0",
|
|
51
|
+
"@vygruppen/spor-icon-react": "4.5.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@react-types/datepicker": "^3.10.0",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"vitest": "^0.26.3",
|
|
69
69
|
"vitest-axe": "^0.1.0",
|
|
70
70
|
"vitest-canvas-mock": "^0.2.2",
|
|
71
|
-
"@vygruppen/
|
|
72
|
-
"@vygruppen/
|
|
71
|
+
"@vygruppen/tsconfig": "0.1.1",
|
|
72
|
+
"@vygruppen/eslint-config": "2.1.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"react": ">=18.0.0 <19.0.0",
|
|
@@ -113,7 +113,7 @@ export const Autocomplete = ({
|
|
|
113
113
|
</Combobox.Input>
|
|
114
114
|
<Combobox.IndicatorGroup>
|
|
115
115
|
<Combobox.ClearTrigger asChild aria-label={t(texts.clearValue)}>
|
|
116
|
-
<CloseButton size="xs" />
|
|
116
|
+
<CloseButton size="xs" tabIndex={0} />
|
|
117
117
|
</Combobox.ClearTrigger>
|
|
118
118
|
</Combobox.IndicatorGroup>
|
|
119
119
|
</Combobox.Control>
|
package/src/layout/RadioCard.tsx
CHANGED
|
@@ -36,24 +36,17 @@ type RadioCardItemProps = Exclude<
|
|
|
36
36
|
RadioCardVariantProps & {
|
|
37
37
|
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
38
38
|
ariaLabel?: string;
|
|
39
|
-
value?: string;
|
|
40
39
|
};
|
|
41
40
|
|
|
42
41
|
export const RadioCard = forwardRef<HTMLInputElement, RadioCardItemProps>(
|
|
43
42
|
(props, ref) => {
|
|
44
|
-
const { inputProps, children
|
|
43
|
+
const { inputProps, children } = props;
|
|
45
44
|
|
|
46
45
|
return (
|
|
47
46
|
<ChakraRadioCard.Item {...props}>
|
|
48
|
-
<ChakraRadioCard.ItemHiddenInput
|
|
49
|
-
ref={ref}
|
|
50
|
-
{...inputProps}
|
|
51
|
-
aria-label={value}
|
|
52
|
-
/>
|
|
47
|
+
<ChakraRadioCard.ItemHiddenInput ref={ref} {...inputProps} />
|
|
53
48
|
|
|
54
|
-
<ChakraRadioCard.ItemControl
|
|
55
|
-
{children}
|
|
56
|
-
</ChakraRadioCard.ItemControl>
|
|
49
|
+
<ChakraRadioCard.ItemControl>{children}</ChakraRadioCard.ItemControl>
|
|
57
50
|
</ChakraRadioCard.Item>
|
|
58
51
|
);
|
|
59
52
|
},
|