@instructure/ui-select 8.14.1-snapshot.17 → 8.14.1-snapshot.27

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.
@@ -121,7 +121,7 @@ let Select = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = t
121
121
  }
122
122
 
123
123
  get focused() {
124
- return this.ref && isActiveElement(this.ref);
124
+ return this.ref ? isActiveElement(this.ref) : false;
125
125
  }
126
126
 
127
127
  get id() {
@@ -133,7 +133,7 @@ let Select = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _
133
133
  }
134
134
 
135
135
  get focused() {
136
- return this.ref && (0, _isActiveElement.isActiveElement)(this.ref);
136
+ return this.ref ? (0, _isActiveElement.isActiveElement)(this.ref) : false;
137
137
  }
138
138
 
139
139
  get id() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-select",
3
- "version": "8.14.1-snapshot.17+737c5b359",
3
+ "version": "8.14.1-snapshot.27+7599d88b8",
4
4
  "description": "A component for select and autocomplete behavior.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -24,30 +24,30 @@
24
24
  },
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@instructure/ui-babel-preset": "8.14.1-snapshot.17+737c5b359",
28
- "@instructure/ui-color-utils": "8.14.1-snapshot.17+737c5b359",
29
- "@instructure/ui-test-locator": "8.14.1-snapshot.17+737c5b359",
30
- "@instructure/ui-test-utils": "8.14.1-snapshot.17+737c5b359",
31
- "@instructure/ui-themes": "8.14.1-snapshot.17+737c5b359"
27
+ "@instructure/ui-babel-preset": "8.14.1-snapshot.27+7599d88b8",
28
+ "@instructure/ui-color-utils": "8.14.1-snapshot.27+7599d88b8",
29
+ "@instructure/ui-test-locator": "8.14.1-snapshot.27+7599d88b8",
30
+ "@instructure/ui-test-utils": "8.14.1-snapshot.27+7599d88b8",
31
+ "@instructure/ui-themes": "8.14.1-snapshot.27+7599d88b8"
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.13.10",
35
- "@instructure/emotion": "8.14.1-snapshot.17+737c5b359",
36
- "@instructure/shared-types": "8.14.1-snapshot.17+737c5b359",
37
- "@instructure/ui-dom-utils": "8.14.1-snapshot.17+737c5b359",
38
- "@instructure/ui-form-field": "8.14.1-snapshot.17+737c5b359",
39
- "@instructure/ui-icons": "8.14.1-snapshot.17+737c5b359",
40
- "@instructure/ui-options": "8.14.1-snapshot.17+737c5b359",
41
- "@instructure/ui-popover": "8.14.1-snapshot.17+737c5b359",
42
- "@instructure/ui-position": "8.14.1-snapshot.17+737c5b359",
43
- "@instructure/ui-prop-types": "8.14.1-snapshot.17+737c5b359",
44
- "@instructure/ui-react-utils": "8.14.1-snapshot.17+737c5b359",
45
- "@instructure/ui-selectable": "8.14.1-snapshot.17+737c5b359",
46
- "@instructure/ui-testable": "8.14.1-snapshot.17+737c5b359",
47
- "@instructure/ui-text-input": "8.14.1-snapshot.17+737c5b359",
48
- "@instructure/ui-utils": "8.14.1-snapshot.17+737c5b359",
49
- "@instructure/ui-view": "8.14.1-snapshot.17+737c5b359",
50
- "@instructure/uid": "8.14.1-snapshot.17+737c5b359",
35
+ "@instructure/emotion": "8.14.1-snapshot.27+7599d88b8",
36
+ "@instructure/shared-types": "8.14.1-snapshot.27+7599d88b8",
37
+ "@instructure/ui-dom-utils": "8.14.1-snapshot.27+7599d88b8",
38
+ "@instructure/ui-form-field": "8.14.1-snapshot.27+7599d88b8",
39
+ "@instructure/ui-icons": "8.14.1-snapshot.27+7599d88b8",
40
+ "@instructure/ui-options": "8.14.1-snapshot.27+7599d88b8",
41
+ "@instructure/ui-popover": "8.14.1-snapshot.27+7599d88b8",
42
+ "@instructure/ui-position": "8.14.1-snapshot.27+7599d88b8",
43
+ "@instructure/ui-prop-types": "8.14.1-snapshot.27+7599d88b8",
44
+ "@instructure/ui-react-utils": "8.14.1-snapshot.27+7599d88b8",
45
+ "@instructure/ui-selectable": "8.14.1-snapshot.27+7599d88b8",
46
+ "@instructure/ui-testable": "8.14.1-snapshot.27+7599d88b8",
47
+ "@instructure/ui-text-input": "8.14.1-snapshot.27+7599d88b8",
48
+ "@instructure/ui-utils": "8.14.1-snapshot.27+7599d88b8",
49
+ "@instructure/ui-view": "8.14.1-snapshot.27+7599d88b8",
50
+ "@instructure/uid": "8.14.1-snapshot.27+7599d88b8",
51
51
  "prop-types": "^15"
52
52
  },
53
53
  "peerDependencies": {
@@ -57,5 +57,5 @@
57
57
  "access": "public"
58
58
  },
59
59
  "sideEffects": false,
60
- "gitHead": "737c5b359b44421c8a6f91c31d55f1579d8c96d9"
60
+ "gitHead": "7599d88b878ed6d8d602ccf58f8d23cfaf93f128"
61
61
  }
@@ -142,7 +142,7 @@ class Select extends Component<SelectProps> {
142
142
  }
143
143
 
144
144
  get focused() {
145
- return this.ref && isActiveElement(this.ref)
145
+ return this.ref ? isActiveElement(this.ref) : false
146
146
  }
147
147
 
148
148
  get id() {
@@ -326,5 +326,5 @@ const allowedProps: AllowedPropKeys = [
326
326
  'shouldNotWrap'
327
327
  ]
328
328
 
329
- export type { SelectProps, SelectStyle }
329
+ export type { SelectProps, SelectOwnProps, SelectStyle }
330
330
  export { propTypes, allowedProps }
package/src/index.ts CHANGED
@@ -24,6 +24,6 @@
24
24
 
25
25
  export { Select } from './Select'
26
26
 
27
- export type { SelectProps } from './Select/props'
27
+ export type { SelectProps, SelectOwnProps } from './Select/props'
28
28
  export type { SelectGroupProps } from './Select/Group/props'
29
29
  export type { SelectOptionProps } from './Select/Option/props'