@instructure/ui-select 10.26.1 → 11.0.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 +23 -2
- package/es/Select/Group/index.js +1 -2
- package/es/Select/Group/props.js +1 -8
- package/es/Select/Option/index.js +1 -2
- package/es/Select/Option/props.js +1 -11
- package/es/Select/index.js +10 -7
- package/es/Select/props.js +1 -45
- package/lib/Select/Group/index.js +0 -1
- package/lib/Select/Group/props.js +1 -9
- package/lib/Select/Option/index.js +0 -1
- package/lib/Select/Option/props.js +1 -12
- package/lib/Select/index.js +9 -6
- package/lib/Select/props.js +1 -45
- package/package.json +21 -24
- package/src/Select/Group/index.tsx +1 -2
- package/src/Select/Group/props.ts +2 -16
- package/src/Select/Option/index.tsx +1 -2
- package/src/Select/Option/props.ts +2 -19
- package/src/Select/index.tsx +6 -5
- package/src/Select/props.ts +1 -48
- package/tsconfig.build.json +1 -3
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Select/Group/index.d.ts +0 -4
- package/types/Select/Group/index.d.ts.map +1 -1
- package/types/Select/Group/props.d.ts +2 -3
- package/types/Select/Group/props.d.ts.map +1 -1
- package/types/Select/Option/index.d.ts +0 -7
- package/types/Select/Option/index.d.ts.map +1 -1
- package/types/Select/Option/props.d.ts +2 -3
- package/types/Select/Option/props.d.ts.map +1 -1
- package/types/Select/index.d.ts +2 -33
- package/types/Select/index.d.ts.map +1 -1
- package/types/Select/props.d.ts +2 -3
- package/types/Select/props.d.ts.map +1 -1
package/src/Select/props.ts
CHANGED
|
@@ -23,18 +23,9 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import { InputHTMLAttributes } from 'react'
|
|
26
|
-
import PropTypes from 'prop-types'
|
|
27
|
-
|
|
28
|
-
import { Children as ChildrenPropTypes } from '@instructure/ui-prop-types'
|
|
29
|
-
import { FormPropTypes } from '@instructure/ui-form-field'
|
|
30
|
-
import { PositionPropTypes } from '@instructure/ui-position'
|
|
31
|
-
|
|
32
|
-
import { Group } from './Group'
|
|
33
|
-
import { Option } from './Option'
|
|
34
26
|
|
|
35
27
|
import type {
|
|
36
28
|
OtherHTMLAttributes,
|
|
37
|
-
PropValidators,
|
|
38
29
|
SelectTheme
|
|
39
30
|
} from '@instructure/shared-types'
|
|
40
31
|
import type { FormMessage } from '@instructure/ui-form-field'
|
|
@@ -302,44 +293,6 @@ type SelectStyle = ComponentStyle<
|
|
|
302
293
|
'select' | 'icon' | 'assistiveText' | 'popoverBorderWidth'
|
|
303
294
|
>
|
|
304
295
|
|
|
305
|
-
const propTypes: PropValidators<PropKeys> = {
|
|
306
|
-
renderLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
|
|
307
|
-
inputValue: PropTypes.string,
|
|
308
|
-
id: PropTypes.string,
|
|
309
|
-
size: PropTypes.oneOf(['small', 'medium', 'large']),
|
|
310
|
-
assistiveText: PropTypes.string,
|
|
311
|
-
placeholder: PropTypes.string,
|
|
312
|
-
interaction: PropTypes.oneOf(['enabled', 'disabled', 'readonly']),
|
|
313
|
-
isRequired: PropTypes.bool,
|
|
314
|
-
isInline: PropTypes.bool,
|
|
315
|
-
width: PropTypes.string,
|
|
316
|
-
htmlSize: PropTypes.number,
|
|
317
|
-
visibleOptionsCount: PropTypes.number,
|
|
318
|
-
isOptionContentAppliedToInput: PropTypes.bool,
|
|
319
|
-
optionsMaxHeight: PropTypes.string,
|
|
320
|
-
optionsMaxWidth: PropTypes.string,
|
|
321
|
-
messages: PropTypes.arrayOf(FormPropTypes.message),
|
|
322
|
-
placement: PositionPropTypes.placement,
|
|
323
|
-
constrain: PositionPropTypes.constrain,
|
|
324
|
-
mountNode: PositionPropTypes.mountNode,
|
|
325
|
-
onFocus: PropTypes.func,
|
|
326
|
-
onBlur: PropTypes.func,
|
|
327
|
-
onInputChange: PropTypes.func,
|
|
328
|
-
isShowingOptions: PropTypes.bool,
|
|
329
|
-
onRequestShowOptions: PropTypes.func,
|
|
330
|
-
onRequestHideOptions: PropTypes.func,
|
|
331
|
-
onRequestHighlightOption: PropTypes.func,
|
|
332
|
-
onRequestSelectOption: PropTypes.func,
|
|
333
|
-
inputRef: PropTypes.func,
|
|
334
|
-
listRef: PropTypes.func,
|
|
335
|
-
renderBeforeInput: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
|
|
336
|
-
renderAfterInput: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
|
|
337
|
-
children: ChildrenPropTypes.oneOf([Group, Option]),
|
|
338
|
-
shouldNotWrap: PropTypes.bool,
|
|
339
|
-
scrollToHighlightedOption: PropTypes.bool,
|
|
340
|
-
layout: PropTypes.oneOf(['stacked', 'inline'])
|
|
341
|
-
}
|
|
342
|
-
|
|
343
296
|
const allowedProps: AllowedPropKeys = [
|
|
344
297
|
'renderLabel',
|
|
345
298
|
'inputValue',
|
|
@@ -379,4 +332,4 @@ const allowedProps: AllowedPropKeys = [
|
|
|
379
332
|
]
|
|
380
333
|
|
|
381
334
|
export type { SelectProps, SelectOwnProps, SelectStyle }
|
|
382
|
-
export {
|
|
335
|
+
export { allowedProps }
|
package/tsconfig.build.json
CHANGED
|
@@ -18,10 +18,8 @@
|
|
|
18
18
|
{ "path": "../ui-options/tsconfig.build.json" },
|
|
19
19
|
{ "path": "../ui-popover/tsconfig.build.json" },
|
|
20
20
|
{ "path": "../ui-position/tsconfig.build.json" },
|
|
21
|
-
{ "path": "../ui-prop-types/tsconfig.build.json" },
|
|
22
|
-
{ "path": "../ui-scripts/tsconfig.build.json" },
|
|
23
21
|
{ "path": "../ui-selectable/tsconfig.build.json" },
|
|
24
|
-
{ "path": "../ui-
|
|
22
|
+
{ "path": "../ui-scripts/tsconfig.build.json" },
|
|
25
23
|
{ "path": "../ui-text-input/tsconfig.build.json" },
|
|
26
24
|
{ "path": "../ui-utils/tsconfig.build.json" },
|
|
27
25
|
{ "path": "../ui-view/tsconfig.build.json" },
|