braid-design-system 31.21.0 → 31.21.1

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,11 @@
1
1
  # braid-design-system
2
2
 
3
+ ## 31.21.1
4
+
5
+ ### Patch Changes
6
+
7
+ - **TextDropdown:** Fix a type error affecting consumers on TypeScript versions >=4.9.0 ([#1187](https://github.com/seek-oss/braid-design-system/pull/1187))
8
+
3
9
  ## 31.21.0
4
10
 
5
11
  ### Minor Changes
@@ -29,8 +29,8 @@ export interface TextDropdownProps<Value> {
29
29
  export function parseSimpleToComplexOption<Value>(
30
30
  option: TextDropdownProps<Value>['options'][number],
31
31
  ) {
32
- return typeof option !== 'string' &&
33
- typeof option !== 'number' &&
32
+ return typeof option === 'object' &&
33
+ option !== null &&
34
34
  'text' in option &&
35
35
  'value' in option
36
36
  ? option
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-design-system",
3
- "version": "31.21.0",
3
+ "version": "31.21.1",
4
4
  "description": "Themeable design system for the SEEK Group",
5
5
  "main": "lib/components/index.ts",
6
6
  "bin": {