@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
3
  "type": "module",
4
- "version": "12.7.1",
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/eslint-config": "1.1.1",
71
- "@vygruppen/tsconfig": "0.1.1"
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",
@@ -56,10 +56,10 @@ export const Combobox = (props: ComboboxProps<object>) => {
56
56
  loading,
57
57
  leftIcon,
58
58
  rightIcon,
59
- borderBottomLeftRadius = "sm",
60
- borderBottomRightRadius = "sm",
61
- borderTopLeftRadius = "sm",
62
- borderTopRightRadius = "sm",
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
- variant={"rightSideSquare"}
58
+ sideRadiusVariant={"rightSideSquare"}
59
59
  >
60
60
  {callingCodes.items.map((code) => (
61
61
  <SelectItem as={"option"} key={code.label} item={code}>
@@ -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}
@@ -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 four different variants, core, floating, rightSideSquare, leftSideSquare.
34
- * The last two variants are useful in attachecdInput for example in the PhoneNumberInput and CountryCodeSelect components.
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
@@ -227,6 +227,8 @@ export const selectSlotRecipe = defineSlotRecipe({
227
227
  outlineColor: "floating.outline",
228
228
  },
229
229
  },
230
+ },
231
+ sideRadiusVariant: {
230
232
  rightSideSquare: {
231
233
  control: {
232
234
  outline: "1px solid",