@simplybusiness/mobius 5.15.6 → 5.16.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 50a3417: Fix: added space between checkbox group and error message
|
|
8
|
+
|
|
9
|
+
## 5.15.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 271b4be: Fix `<Combobox>` types in the docs
|
|
14
|
+
|
|
3
15
|
## 5.15.6
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -23,18 +23,14 @@ The default `onChange` behaviour, while typing, is to filter the options list ba
|
|
|
23
23
|
The `onSelected` prop is called when an option is selected, passing `Option` as its parameter.
|
|
24
24
|
|
|
25
25
|
```ts
|
|
26
|
-
type
|
|
27
|
-
id: string;
|
|
28
|
-
label: string;
|
|
29
|
-
value?: string | number | boolean;
|
|
30
|
-
};
|
|
26
|
+
type ComboboxOption = string | { id?: string; label: string; value: string };
|
|
31
27
|
|
|
32
|
-
type
|
|
33
|
-
|
|
34
|
-
options:
|
|
28
|
+
type ComboboxOptionGroup = {
|
|
29
|
+
heading: string;
|
|
30
|
+
options: readonly T[];
|
|
35
31
|
};
|
|
36
32
|
|
|
37
|
-
type
|
|
33
|
+
type ComboboxOptions = T[] | ComboboxOptionGroup<T>[];
|
|
38
34
|
```
|
|
39
35
|
|
|
40
36
|
### Dynamic / asynchronous use
|