@vygruppen/spor-react 12.7.1 → 12.8.0
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 +1 -1
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +11 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +11 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/input/Combobox.tsx +5 -4
- package/src/input/CountryCodeSelect.tsx +1 -1
- package/src/input/Field.tsx +1 -1
- package/src/input/Select.tsx +3 -2
- package/src/theme/slot-recipes/select.ts +2 -0
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vygruppen/spor-react",
|
3
3
|
"type": "module",
|
4
|
-
"version": "12.
|
4
|
+
"version": "12.8.0",
|
5
5
|
"exports": {
|
6
6
|
".": {
|
7
7
|
"types": "./dist/index.d.ts",
|
@@ -67,8 +67,8 @@
|
|
67
67
|
"vitest": "^0.26.3",
|
68
68
|
"vitest-axe": "^0.1.0",
|
69
69
|
"vitest-canvas-mock": "^0.2.2",
|
70
|
-
"@vygruppen/
|
71
|
-
"@vygruppen/
|
70
|
+
"@vygruppen/tsconfig": "0.1.1",
|
71
|
+
"@vygruppen/eslint-config": "1.1.1"
|
72
72
|
},
|
73
73
|
"peerDependencies": {
|
74
74
|
"react": ">=18.0.0 <19.0.0",
|
package/src/input/Combobox.tsx
CHANGED
@@ -56,10 +56,10 @@ export const Combobox = (props: ComboboxProps<object>) => {
|
|
56
56
|
loading,
|
57
57
|
leftIcon,
|
58
58
|
rightIcon,
|
59
|
-
borderBottomLeftRadius
|
60
|
-
borderBottomRightRadius
|
61
|
-
borderTopLeftRadius
|
62
|
-
borderTopRightRadius
|
59
|
+
borderBottomLeftRadius,
|
60
|
+
borderBottomRightRadius,
|
61
|
+
borderTopLeftRadius,
|
62
|
+
borderTopRightRadius,
|
63
63
|
marginBottom,
|
64
64
|
marginTop,
|
65
65
|
marginX,
|
@@ -171,6 +171,7 @@ export const Combobox = (props: ComboboxProps<object>) => {
|
|
171
171
|
)
|
172
172
|
}
|
173
173
|
placeholder=""
|
174
|
+
data-attachable
|
174
175
|
/>
|
175
176
|
<span aria-hidden="true" data-trigger="multiselect"></span>
|
176
177
|
{state.isOpen && !loading && (
|
@@ -55,7 +55,7 @@ export const CountryCodeSelect = forwardRef<
|
|
55
55
|
collection={callingCodes}
|
56
56
|
lazyMount
|
57
57
|
aria-label={t(texts.countryCode)}
|
58
|
-
|
58
|
+
sideRadiusVariant={"rightSideSquare"}
|
59
59
|
>
|
60
60
|
{callingCodes.items.map((code) => (
|
61
61
|
<SelectItem as={"option"} key={code.label} item={code}>
|
package/src/input/Field.tsx
CHANGED
@@ -68,7 +68,7 @@ export const Field = React.forwardRef<HTMLDivElement, FieldProps>(
|
|
68
68
|
const styles = recipe();
|
69
69
|
|
70
70
|
return (
|
71
|
-
<Stack gap="2" ref={ref} {...rest}>
|
71
|
+
<Stack gap="2" ref={ref} width="100%" {...rest}>
|
72
72
|
<ChakraField.Root
|
73
73
|
disabled={disabled}
|
74
74
|
invalid={invalid}
|
package/src/input/Select.tsx
CHANGED
@@ -30,8 +30,9 @@ export type SelectProps = ChakraSelectRootProps &
|
|
30
30
|
/**
|
31
31
|
* A Select component.
|
32
32
|
*
|
33
|
-
* This component is useful to choose an item from a dropdown list of items. The list has
|
34
|
-
*
|
33
|
+
* This component is useful to choose an item from a dropdown list of items. The list has two different variants, core, floating and floating.
|
34
|
+
* It also has a sideRadiusVariant that can be used to make the sides square, rightSideSquare, leftSideSquare.
|
35
|
+
* The sideRadiusVariant is useful in attachecdInput for example in the PhoneNumberInput and CountryCodeSelect components.
|
35
36
|
*
|
36
37
|
* @example
|
37
38
|
* ```tsx
|