@vygruppen/spor-react 12.4.12 → 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/.turbo/turbo-build.log +8 -8
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/input/Combobox.tsx +7 -6
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vygruppen/spor-react",
|
3
|
-
"version": "12.4.
|
3
|
+
"version": "12.4.13",
|
4
4
|
"exports": {
|
5
5
|
".": {
|
6
6
|
"types": "./dist/index.d.ts",
|
@@ -45,8 +45,8 @@
|
|
45
45
|
"react-stately": "^3.31.1",
|
46
46
|
"react-swipeable": "^7.0.1",
|
47
47
|
"usehooks-ts": "^3.1.0",
|
48
|
-
"@vygruppen/spor-icon-react": "4.1.0",
|
49
48
|
"@vygruppen/spor-design-tokens": "4.0.7",
|
49
|
+
"@vygruppen/spor-icon-react": "4.1.0",
|
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/
|
70
|
-
"@vygruppen/
|
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",
|
package/src/input/Combobox.tsx
CHANGED
@@ -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
|
-
|
25
|
-
|
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
|
-
|
58
|
-
|
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
|
-
|
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
|
-
|
168
|
+
rightIcon
|
168
169
|
)
|
169
170
|
}
|
170
171
|
placeholder=""
|