carbon-react 127.1.1 → 128.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/esm/components/select/filterable-select/filterable-select.component.d.ts +0 -2
- package/esm/components/select/filterable-select/filterable-select.component.js +0 -3
- package/esm/components/select/multi-select/multi-select.component.d.ts +0 -2
- package/esm/components/select/multi-select/multi-select.component.js +0 -3
- package/esm/components/select/select-list/select-list.component.d.ts +0 -2
- package/esm/components/select/select-list/select-list.component.js +1 -3
- package/esm/components/select/simple-select/simple-select.component.d.ts +0 -2
- package/esm/components/select/simple-select/simple-select.component.js +0 -3
- package/lib/components/select/filterable-select/filterable-select.component.d.ts +0 -2
- package/lib/components/select/filterable-select/filterable-select.component.js +0 -3
- package/lib/components/select/multi-select/multi-select.component.d.ts +0 -2
- package/lib/components/select/multi-select/multi-select.component.js +0 -3
- package/lib/components/select/select-list/select-list.component.d.ts +0 -2
- package/lib/components/select/select-list/select-list.component.js +1 -3
- package/lib/components/select/simple-select/simple-select.component.d.ts +0 -2
- package/lib/components/select/simple-select/simple-select.component.js +0 -3
- package/package.json +1 -1
|
@@ -17,8 +17,6 @@ export interface FilterableSelectProps extends Omit<FormInputPropTypes, "default
|
|
|
17
17
|
children: React.ReactNode;
|
|
18
18
|
/** The default selected value(s), when the component is operating in uncontrolled mode */
|
|
19
19
|
defaultValue?: string | Record<string, unknown>;
|
|
20
|
-
/** Boolean to toggle where SelectList is rendered in relation to the Select Input */
|
|
21
|
-
disablePortal?: boolean;
|
|
22
20
|
/** If true the loader animation is displayed in the option list */
|
|
23
21
|
isLoading?: boolean;
|
|
24
22
|
/** True for default text button or a Button Component to be rendered */
|
|
@@ -35,7 +35,6 @@ const FilterableSelect = /*#__PURE__*/React.forwardRef(({
|
|
|
35
35
|
onBlur,
|
|
36
36
|
openOnFocus,
|
|
37
37
|
noResultsMessage,
|
|
38
|
-
disablePortal,
|
|
39
38
|
listActionButton,
|
|
40
39
|
listMaxHeight,
|
|
41
40
|
onListAction,
|
|
@@ -412,7 +411,6 @@ const FilterableSelect = /*#__PURE__*/React.forwardRef(({
|
|
|
412
411
|
filterText: filterText.trim(),
|
|
413
412
|
highlightedValue,
|
|
414
413
|
noResultsMessage,
|
|
415
|
-
disablePortal,
|
|
416
414
|
listActionButton,
|
|
417
415
|
listMaxHeight,
|
|
418
416
|
onListAction: handleOnListAction,
|
|
@@ -537,7 +535,6 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
537
535
|
"dir": PropTypes.string,
|
|
538
536
|
"disabled": PropTypes.bool,
|
|
539
537
|
"disableDefaultFiltering": PropTypes.bool,
|
|
540
|
-
"disablePortal": PropTypes.bool,
|
|
541
538
|
"draggable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
542
539
|
"enableVirtualScroll": PropTypes.bool,
|
|
543
540
|
"enterKeyHint": PropTypes.oneOf(["done", "enter", "go", "next", "previous", "search", "send"]),
|
|
@@ -18,8 +18,6 @@ export interface MultiSelectProps extends Omit<FormInputPropTypes, "defaultValue
|
|
|
18
18
|
children: React.ReactNode;
|
|
19
19
|
/** The default selected value(s), when the component is operating in uncontrolled mode */
|
|
20
20
|
defaultValue?: string[] | Record<string, unknown>[];
|
|
21
|
-
/** Boolean to toggle where SelectList is rendered in relation to the Select Input */
|
|
22
|
-
disablePortal?: boolean;
|
|
23
21
|
/** If true the loader animation is displayed in the option list */
|
|
24
22
|
isLoading?: boolean;
|
|
25
23
|
/** When true component will work in multi column mode.
|
|
@@ -40,7 +40,6 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
|
|
|
40
40
|
openOnFocus = false,
|
|
41
41
|
noResultsMessage,
|
|
42
42
|
placeholder,
|
|
43
|
-
disablePortal,
|
|
44
43
|
isLoading,
|
|
45
44
|
tableHeader,
|
|
46
45
|
multiColumn,
|
|
@@ -420,7 +419,6 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
|
|
|
420
419
|
filterText: filterText.trim(),
|
|
421
420
|
highlightedValue: highlightedValue,
|
|
422
421
|
noResultsMessage: noResultsMessage,
|
|
423
|
-
disablePortal: disablePortal,
|
|
424
422
|
isLoading: isLoading,
|
|
425
423
|
tableHeader: tableHeader,
|
|
426
424
|
multiColumn: multiColumn,
|
|
@@ -546,7 +544,6 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
546
544
|
"deferTimeout": PropTypes.number,
|
|
547
545
|
"dir": PropTypes.string,
|
|
548
546
|
"disabled": PropTypes.bool,
|
|
549
|
-
"disablePortal": PropTypes.bool,
|
|
550
547
|
"draggable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
551
548
|
"enableVirtualScroll": PropTypes.bool,
|
|
552
549
|
"enterKeyHint": PropTypes.oneOf(["done", "enter", "go", "next", "previous", "search", "send"]),
|
|
@@ -7,8 +7,6 @@ export interface SelectListProps {
|
|
|
7
7
|
labelId?: string;
|
|
8
8
|
/** Child components (such as <Option>) */
|
|
9
9
|
children?: React.ReactNode;
|
|
10
|
-
/** Boolean to toggle where DatePicker is rendered in relation to the Date Input */
|
|
11
|
-
disablePortal?: boolean;
|
|
12
10
|
/** DOM element to position the dropdown menu list relative to */
|
|
13
11
|
anchorElement?: HTMLElement;
|
|
14
12
|
/** A callback for when a child is selected */
|
|
@@ -33,7 +33,6 @@ const SelectList = /*#__PURE__*/React.forwardRef(({
|
|
|
33
33
|
filterText,
|
|
34
34
|
anchorElement,
|
|
35
35
|
highlightedValue,
|
|
36
|
-
disablePortal,
|
|
37
36
|
onListAction,
|
|
38
37
|
isLoading,
|
|
39
38
|
onListScrollBottom,
|
|
@@ -395,7 +394,7 @@ const SelectList = /*#__PURE__*/React.forwardRef(({
|
|
|
395
394
|
}
|
|
396
395
|
}, /*#__PURE__*/React.createElement(Popover, {
|
|
397
396
|
placement: listPlacement,
|
|
398
|
-
disablePortal:
|
|
397
|
+
disablePortal: true,
|
|
399
398
|
reference: anchorRef,
|
|
400
399
|
middleware: popoverMiddleware,
|
|
401
400
|
isOpen: isOpen,
|
|
@@ -432,7 +431,6 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
432
431
|
}
|
|
433
432
|
},
|
|
434
433
|
"children": PropTypes.node,
|
|
435
|
-
"disablePortal": PropTypes.bool,
|
|
436
434
|
"enableVirtualScroll": PropTypes.bool,
|
|
437
435
|
"filterText": PropTypes.string,
|
|
438
436
|
"flipEnabled": PropTypes.bool,
|
|
@@ -26,8 +26,6 @@ export interface SimpleSelectProps extends Omit<FormInputPropTypes, "defaultValu
|
|
|
26
26
|
children: React.ReactNode;
|
|
27
27
|
/** The default selected value(s), when the component is operating in uncontrolled mode */
|
|
28
28
|
defaultValue?: string | Record<string, unknown>;
|
|
29
|
-
/** Boolean to toggle where SelectList is rendered in relation to the Select Input */
|
|
30
|
-
disablePortal?: boolean;
|
|
31
29
|
/** If true the loader animation is displayed in the option list */
|
|
32
30
|
isLoading?: boolean;
|
|
33
31
|
/** When true component will work in multi column mode.
|
|
@@ -34,7 +34,6 @@ const SimpleSelect = /*#__PURE__*/React.forwardRef(({
|
|
|
34
34
|
onFocus,
|
|
35
35
|
onKeyDown,
|
|
36
36
|
onBlur,
|
|
37
|
-
disablePortal = false,
|
|
38
37
|
isLoading,
|
|
39
38
|
listMaxHeight,
|
|
40
39
|
onListScrollBottom,
|
|
@@ -329,7 +328,6 @@ const SimpleSelect = /*#__PURE__*/React.forwardRef(({
|
|
|
329
328
|
onMouseDown: handleListMouseDown,
|
|
330
329
|
onSelectListClose: onSelectListClose,
|
|
331
330
|
highlightedValue: selectedValue,
|
|
332
|
-
disablePortal: disablePortal,
|
|
333
331
|
listMaxHeight: listMaxHeight,
|
|
334
332
|
isLoading: isLoading,
|
|
335
333
|
onListScrollBottom: onListScrollBottom,
|
|
@@ -448,7 +446,6 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
448
446
|
"deferTimeout": PropTypes.number,
|
|
449
447
|
"dir": PropTypes.string,
|
|
450
448
|
"disabled": PropTypes.bool,
|
|
451
|
-
"disablePortal": PropTypes.bool,
|
|
452
449
|
"draggable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
453
450
|
"enableVirtualScroll": PropTypes.bool,
|
|
454
451
|
"enterKeyHint": PropTypes.oneOf(["done", "enter", "go", "next", "previous", "search", "send"]),
|
|
@@ -17,8 +17,6 @@ export interface FilterableSelectProps extends Omit<FormInputPropTypes, "default
|
|
|
17
17
|
children: React.ReactNode;
|
|
18
18
|
/** The default selected value(s), when the component is operating in uncontrolled mode */
|
|
19
19
|
defaultValue?: string | Record<string, unknown>;
|
|
20
|
-
/** Boolean to toggle where SelectList is rendered in relation to the Select Input */
|
|
21
|
-
disablePortal?: boolean;
|
|
22
20
|
/** If true the loader animation is displayed in the option list */
|
|
23
21
|
isLoading?: boolean;
|
|
24
22
|
/** True for default text button or a Button Component to be rendered */
|
|
@@ -44,7 +44,6 @@ const FilterableSelect = exports.FilterableSelect = /*#__PURE__*/_react.default.
|
|
|
44
44
|
onBlur,
|
|
45
45
|
openOnFocus,
|
|
46
46
|
noResultsMessage,
|
|
47
|
-
disablePortal,
|
|
48
47
|
listActionButton,
|
|
49
48
|
listMaxHeight,
|
|
50
49
|
onListAction,
|
|
@@ -421,7 +420,6 @@ const FilterableSelect = exports.FilterableSelect = /*#__PURE__*/_react.default.
|
|
|
421
420
|
filterText: filterText.trim(),
|
|
422
421
|
highlightedValue,
|
|
423
422
|
noResultsMessage,
|
|
424
|
-
disablePortal,
|
|
425
423
|
listActionButton,
|
|
426
424
|
listMaxHeight,
|
|
427
425
|
onListAction: handleOnListAction,
|
|
@@ -546,7 +544,6 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
546
544
|
"dir": _propTypes.default.string,
|
|
547
545
|
"disabled": _propTypes.default.bool,
|
|
548
546
|
"disableDefaultFiltering": _propTypes.default.bool,
|
|
549
|
-
"disablePortal": _propTypes.default.bool,
|
|
550
547
|
"draggable": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
551
548
|
"enableVirtualScroll": _propTypes.default.bool,
|
|
552
549
|
"enterKeyHint": _propTypes.default.oneOf(["done", "enter", "go", "next", "previous", "search", "send"]),
|
|
@@ -18,8 +18,6 @@ export interface MultiSelectProps extends Omit<FormInputPropTypes, "defaultValue
|
|
|
18
18
|
children: React.ReactNode;
|
|
19
19
|
/** The default selected value(s), when the component is operating in uncontrolled mode */
|
|
20
20
|
defaultValue?: string[] | Record<string, unknown>[];
|
|
21
|
-
/** Boolean to toggle where SelectList is rendered in relation to the Select Input */
|
|
22
|
-
disablePortal?: boolean;
|
|
23
21
|
/** If true the loader animation is displayed in the option list */
|
|
24
22
|
isLoading?: boolean;
|
|
25
23
|
/** When true component will work in multi column mode.
|
|
@@ -49,7 +49,6 @@ const MultiSelect = exports.MultiSelect = /*#__PURE__*/_react.default.forwardRef
|
|
|
49
49
|
openOnFocus = false,
|
|
50
50
|
noResultsMessage,
|
|
51
51
|
placeholder,
|
|
52
|
-
disablePortal,
|
|
53
52
|
isLoading,
|
|
54
53
|
tableHeader,
|
|
55
54
|
multiColumn,
|
|
@@ -429,7 +428,6 @@ const MultiSelect = exports.MultiSelect = /*#__PURE__*/_react.default.forwardRef
|
|
|
429
428
|
filterText: filterText.trim(),
|
|
430
429
|
highlightedValue: highlightedValue,
|
|
431
430
|
noResultsMessage: noResultsMessage,
|
|
432
|
-
disablePortal: disablePortal,
|
|
433
431
|
isLoading: isLoading,
|
|
434
432
|
tableHeader: tableHeader,
|
|
435
433
|
multiColumn: multiColumn,
|
|
@@ -555,7 +553,6 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
555
553
|
"deferTimeout": _propTypes.default.number,
|
|
556
554
|
"dir": _propTypes.default.string,
|
|
557
555
|
"disabled": _propTypes.default.bool,
|
|
558
|
-
"disablePortal": _propTypes.default.bool,
|
|
559
556
|
"draggable": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
560
557
|
"enableVirtualScroll": _propTypes.default.bool,
|
|
561
558
|
"enterKeyHint": _propTypes.default.oneOf(["done", "enter", "go", "next", "previous", "search", "send"]),
|
|
@@ -7,8 +7,6 @@ export interface SelectListProps {
|
|
|
7
7
|
labelId?: string;
|
|
8
8
|
/** Child components (such as <Option>) */
|
|
9
9
|
children?: React.ReactNode;
|
|
10
|
-
/** Boolean to toggle where DatePicker is rendered in relation to the Date Input */
|
|
11
|
-
disablePortal?: boolean;
|
|
12
10
|
/** DOM element to position the dropdown menu list relative to */
|
|
13
11
|
anchorElement?: HTMLElement;
|
|
14
12
|
/** A callback for when a child is selected */
|
|
@@ -42,7 +42,6 @@ const SelectList = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
42
42
|
filterText,
|
|
43
43
|
anchorElement,
|
|
44
44
|
highlightedValue,
|
|
45
|
-
disablePortal,
|
|
46
45
|
onListAction,
|
|
47
46
|
isLoading,
|
|
48
47
|
onListScrollBottom,
|
|
@@ -404,7 +403,7 @@ const SelectList = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
404
403
|
}
|
|
405
404
|
}, /*#__PURE__*/_react.default.createElement(_popover.default, {
|
|
406
405
|
placement: listPlacement,
|
|
407
|
-
disablePortal:
|
|
406
|
+
disablePortal: true,
|
|
408
407
|
reference: anchorRef,
|
|
409
408
|
middleware: popoverMiddleware,
|
|
410
409
|
isOpen: isOpen,
|
|
@@ -441,7 +440,6 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
441
440
|
}
|
|
442
441
|
},
|
|
443
442
|
"children": _propTypes.default.node,
|
|
444
|
-
"disablePortal": _propTypes.default.bool,
|
|
445
443
|
"enableVirtualScroll": _propTypes.default.bool,
|
|
446
444
|
"filterText": _propTypes.default.string,
|
|
447
445
|
"flipEnabled": _propTypes.default.bool,
|
|
@@ -26,8 +26,6 @@ export interface SimpleSelectProps extends Omit<FormInputPropTypes, "defaultValu
|
|
|
26
26
|
children: React.ReactNode;
|
|
27
27
|
/** The default selected value(s), when the component is operating in uncontrolled mode */
|
|
28
28
|
defaultValue?: string | Record<string, unknown>;
|
|
29
|
-
/** Boolean to toggle where SelectList is rendered in relation to the Select Input */
|
|
30
|
-
disablePortal?: boolean;
|
|
31
29
|
/** If true the loader animation is displayed in the option list */
|
|
32
30
|
isLoading?: boolean;
|
|
33
31
|
/** When true component will work in multi column mode.
|
|
@@ -43,7 +43,6 @@ const SimpleSelect = exports.SimpleSelect = /*#__PURE__*/_react.default.forwardR
|
|
|
43
43
|
onFocus,
|
|
44
44
|
onKeyDown,
|
|
45
45
|
onBlur,
|
|
46
|
-
disablePortal = false,
|
|
47
46
|
isLoading,
|
|
48
47
|
listMaxHeight,
|
|
49
48
|
onListScrollBottom,
|
|
@@ -338,7 +337,6 @@ const SimpleSelect = exports.SimpleSelect = /*#__PURE__*/_react.default.forwardR
|
|
|
338
337
|
onMouseDown: handleListMouseDown,
|
|
339
338
|
onSelectListClose: onSelectListClose,
|
|
340
339
|
highlightedValue: selectedValue,
|
|
341
|
-
disablePortal: disablePortal,
|
|
342
340
|
listMaxHeight: listMaxHeight,
|
|
343
341
|
isLoading: isLoading,
|
|
344
342
|
onListScrollBottom: onListScrollBottom,
|
|
@@ -457,7 +455,6 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
457
455
|
"deferTimeout": _propTypes.default.number,
|
|
458
456
|
"dir": _propTypes.default.string,
|
|
459
457
|
"disabled": _propTypes.default.bool,
|
|
460
|
-
"disablePortal": _propTypes.default.bool,
|
|
461
458
|
"draggable": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
462
459
|
"enableVirtualScroll": _propTypes.default.bool,
|
|
463
460
|
"enterKeyHint": _propTypes.default.oneOf(["done", "enter", "go", "next", "previous", "search", "send"]),
|