@vygruppen/spor-react 12.4.11 → 12.4.13

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.4.11",
3
+ "version": "12.4.13",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",
@@ -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",
@@ -21,8 +21,8 @@ export type ComboboxProps<T> = Exclude<
21
21
  inputRef?: React.RefObject<HTMLInputElement>;
22
22
  /** If you want to allow an empty collection */
23
23
  allowsEmptyCollection?: boolean;
24
- lefticon?: ReactNode;
25
- righticon?: ReactNode;
24
+ leftIcon?: ReactNode;
25
+ rightIcon?: ReactNode;
26
26
  variant?: "core" | "floating";
27
27
  children?: React.ReactNode;
28
28
  };
@@ -54,8 +54,8 @@ export const Combobox = (props: ComboboxProps<object>) => {
54
54
  const {
55
55
  label,
56
56
  loading,
57
- lefticon,
58
- righticon,
57
+ leftIcon,
58
+ rightIcon,
59
59
  borderBottomLeftRadius = "sm",
60
60
  borderBottomRightRadius = "sm",
61
61
  borderTopLeftRadius = "sm",
@@ -109,7 +109,7 @@ export const Combobox = (props: ComboboxProps<object>) => {
109
109
  paddingLeft,
110
110
  paddingX,
111
111
  paddingY,
112
- lefticon,
112
+ leftIcon,
113
113
  };
114
114
 
115
115
  const {
@@ -150,6 +150,7 @@ export const Combobox = (props: ComboboxProps<object>) => {
150
150
  }
151
151
  _active={{ backgroundColor: "core.surface.active" }}
152
152
  {...inputProps}
153
+ startElement={leftIcon}
153
154
  endElement={
154
155
  loading ? (
155
156
  <ColorSpinner
@@ -164,7 +165,7 @@ export const Combobox = (props: ComboboxProps<object>) => {
164
165
  }}
165
166
  />
166
167
  ) : (
167
- righticon
168
+ rightIcon
168
169
  )
169
170
  }
170
171
  placeholder=""
@@ -32,7 +32,6 @@ export const alertSlotRecipe = defineSlotRecipe({
32
32
  borderRadius: "sm",
33
33
  padding: 2,
34
34
  display: "flex",
35
- maxWidth: "300px",
36
35
  justifyContent: "space-between",
37
36
  alignItems: "flex-start",
38
37
  position: "relative",