@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simplybusiness/mobius",
3
3
  "license": "UNLICENSED",
4
- "version": "5.15.6",
4
+ "version": "5.16.0",
5
5
  "description": "Core library of Mobius react components",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1,5 +1,6 @@
1
1
  .mobius-checkbox-group {
2
2
  display: grid;
3
+ gap: var(--size-xs);
3
4
 
4
5
  .mobius-checkbox-group__wrapper {
5
6
  display: grid;
@@ -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 Option = {
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 OptionGroup = {
33
- category: string;
34
- options: Option[];
28
+ type ComboboxOptionGroup = {
29
+ heading: string;
30
+ options: readonly T[];
35
31
  };
36
32
 
37
- type Options = (string | Option | OptionGroup)[];
33
+ type ComboboxOptions = T[] | ComboboxOptionGroup<T>[];
38
34
  ```
39
35
 
40
36
  ### Dynamic / asynchronous use