carbon-react 134.1.0 → 134.1.2

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.
Files changed (27) hide show
  1. package/esm/__internal__/input/input.component.js +5 -0
  2. package/esm/__internal__/input/input.style.d.ts +3 -1
  3. package/esm/__internal__/input/input.style.js +3 -0
  4. package/esm/components/button/button.style.d.ts +2 -1
  5. package/esm/components/button/button.style.js +1 -1
  6. package/esm/components/pager/pager.style.js +1 -1
  7. package/esm/components/select/__internal__/select-text/select-text.component.js +2 -2
  8. package/esm/components/select/__internal__/select-text/select-text.style.d.ts +2 -1
  9. package/esm/components/select/__internal__/select-text/select-text.style.js +7 -4
  10. package/esm/components/select/select-textbox/select-textbox-context.d.ts +5 -0
  11. package/esm/components/select/select-textbox/select-textbox-context.js +2 -0
  12. package/esm/components/select/select-textbox/select-textbox.component.js +7 -2
  13. package/esm/components/split-button/split-button-toggle.style.d.ts +2 -1
  14. package/lib/__internal__/input/input.component.js +5 -0
  15. package/lib/__internal__/input/input.style.d.ts +3 -1
  16. package/lib/__internal__/input/input.style.js +3 -0
  17. package/lib/components/button/button.style.d.ts +2 -1
  18. package/lib/components/button/button.style.js +1 -1
  19. package/lib/components/pager/pager.style.js +2 -2
  20. package/lib/components/select/__internal__/select-text/select-text.component.js +3 -3
  21. package/lib/components/select/__internal__/select-text/select-text.style.d.ts +2 -1
  22. package/lib/components/select/__internal__/select-text/select-text.style.js +8 -6
  23. package/lib/components/select/select-textbox/select-textbox-context.d.ts +5 -0
  24. package/lib/components/select/select-textbox/select-textbox-context.js +9 -0
  25. package/lib/components/select/select-textbox/select-textbox.component.js +7 -2
  26. package/lib/components/split-button/split-button-toggle.style.d.ts +2 -1
  27. package/package.json +1 -1
@@ -3,6 +3,7 @@ import React, { useEffect, useContext, useRef, useCallback } from "react";
3
3
  import PropTypes from "prop-types";
4
4
  import StyledInput from "./input.style";
5
5
  import { InputContext, InputGroupContext } from "../input-behaviour";
6
+ import { SelectTextboxContext } from "../../components/select/select-textbox/select-textbox-context";
6
7
  function selectTextOnFocus(input) {
7
8
  // setTimeout is required so the dom has a chance to place the cursor in the input
8
9
  setTimeout(() => {
@@ -48,6 +49,9 @@ const Input = /*#__PURE__*/React.forwardRef(({
48
49
  }, ref) => {
49
50
  const context = useContext(InputContext);
50
51
  const groupContext = useContext(InputGroupContext);
52
+ const {
53
+ isInputInSelect
54
+ } = useContext(SelectTextboxContext);
51
55
  const deferredTimeout = useRef(null);
52
56
  let input = useRef(null);
53
57
  if (ref && "current" in ref) {
@@ -129,6 +133,7 @@ const Input = /*#__PURE__*/React.forwardRef(({
129
133
  }
130
134
  const combinedDescription = descriptionList.length ? descriptionList.filter(Boolean).join(" ") : undefined;
131
135
  return /*#__PURE__*/React.createElement(StyledInput, _extends({}, rest, {
136
+ isInputInSelect: isInputInSelect,
132
137
  "data-has-autofocus": autoFocus ? true : undefined,
133
138
  "aria-describedby": combinedDescription,
134
139
  "aria-labelledby": ariaLabelledBy,
@@ -1,3 +1,5 @@
1
1
  import { CommonInputProps } from "./input.component";
2
- declare const StyledInput: import("styled-components").StyledComponent<"input", any, Pick<CommonInputProps, "disabled" | "align" | "inputBorderRadius">, never>;
2
+ declare const StyledInput: import("styled-components").StyledComponent<"input", any, Pick<CommonInputProps, "disabled" | "align" | "inputBorderRadius"> & {
3
+ isInputInSelect: boolean;
4
+ }, never>;
3
5
  export default StyledInput;
@@ -1,5 +1,8 @@
1
1
  import styled, { css } from "styled-components";
2
2
  const StyledInput = styled.input`
3
+ ${({
4
+ isInputInSelect
5
+ }) => isInputInSelect && "text-overflow: ellipsis"};
3
6
  background: transparent;
4
7
  border: none;
5
8
  color: var(--colorsUtilityYin090);
@@ -1,7 +1,8 @@
1
1
  import { SpaceProps } from "styled-system";
2
2
  import { ButtonProps } from "./button.component";
3
- declare const StyledButton: import("styled-components").StyledComponent<"button", any, SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & ButtonProps & {
3
+ declare const StyledButton: import("styled-components").StyledComponent<"button", any, SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & Omit<ButtonProps, "buttonType"> & {
4
4
  iconOnly?: boolean | undefined;
5
+ buttonType: Required<ButtonProps>["buttonType"];
5
6
  }, never>;
6
7
  export declare const StyledButtonSubtext: import("styled-components").StyledComponent<"span", any, {}, never>;
7
8
  export declare const StyledButtonMainText: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -28,7 +28,7 @@ function stylingForIconOnly(size) {
28
28
  function stylingForType({
29
29
  iconOnly,
30
30
  disabled,
31
- buttonType = "secondary",
31
+ buttonType,
32
32
  size,
33
33
  destructive
34
34
  }) {
@@ -3,7 +3,7 @@ import StyledInput from "../../__internal__/input/input.style";
3
3
  import StyledInputPresentation from "../../__internal__/input/input-presentation.style";
4
4
  import StyledFormField from "../../__internal__/form-field/form-field.style";
5
5
  import InputIconToggleStyle from "../../__internal__/input-icon-toggle/input-icon-toggle.style";
6
- import StyledSelectText from "../select/__internal__/select-text/select-text.style";
6
+ import { StyledSelectText } from "../select/__internal__/select-text/select-text.style";
7
7
  import Link from "../link";
8
8
  const StyledSelectContainer = styled.div`
9
9
  height: 26px;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import PropTypes from "prop-types";
3
- import StyledSelectText from "./select-text.style";
3
+ import { StyledSelectText, StyledSelectTextChildrenWrapper } from "./select-text.style";
4
4
  const SelectText = ({
5
5
  disabled,
6
6
  formattedValue = "",
@@ -22,6 +22,6 @@ const SelectText = ({
22
22
  readOnly: readOnly,
23
23
  transparent: transparent,
24
24
  size: size
25
- }, hasPlaceholder ? placeholder : formattedValue);
25
+ }, /*#__PURE__*/React.createElement(StyledSelectTextChildrenWrapper, null, hasPlaceholder ? placeholder : formattedValue));
26
26
  };
27
27
  export default SelectText;
@@ -4,4 +4,5 @@ interface StyledSelectTextProps extends Pick<SelectTextProps, "disabled" | "read
4
4
  size: NonNullable<SelectTextProps["size"]>;
5
5
  }
6
6
  declare const StyledSelectText: import("styled-components").StyledComponent<"span", any, StyledSelectTextProps, never>;
7
- export default StyledSelectText;
7
+ declare const StyledSelectTextChildrenWrapper: import("styled-components").StyledComponent<"span", any, {}, never>;
8
+ export { StyledSelectText, StyledSelectTextChildrenWrapper };
@@ -13,10 +13,7 @@ const StyledSelectText = styled.span`
13
13
  flex-grow: 1;
14
14
  font-size: 14px;
15
15
  height: auto;
16
- overflow: hidden;
17
16
  outline: none;
18
- text-overflow: ellipsis;
19
- white-space: nowrap;
20
17
  width: 30px;
21
18
  z-index: 1;
22
19
  padding-left: ${sizes[size].horizontalPadding};
@@ -46,4 +43,10 @@ const StyledSelectText = styled.span`
46
43
  `}
47
44
  `}
48
45
  `;
49
- export default StyledSelectText;
46
+ const StyledSelectTextChildrenWrapper = styled.span`
47
+ display: block;
48
+ white-space: nowrap;
49
+ overflow: hidden;
50
+ text-overflow: ellipsis;
51
+ `;
52
+ export { StyledSelectText, StyledSelectTextChildrenWrapper };
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ export declare type SelectTextboxContextProps = {
3
+ isInputInSelect?: boolean;
4
+ };
5
+ export declare const SelectTextboxContext: React.Context<SelectTextboxContextProps>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export const SelectTextboxContext = /*#__PURE__*/React.createContext({});
@@ -6,6 +6,7 @@ import useFloating from "../../../hooks/__internal__/useFloating";
6
6
  import Textbox from "../../textbox";
7
7
  import SelectText from "../__internal__/select-text";
8
8
  import useLocale from "../../../hooks/__internal__/useLocale";
9
+ import { SelectTextboxContext } from "./select-textbox-context";
9
10
  const floatingMiddleware = [offset(({
10
11
  rects
11
12
  }) => ({
@@ -100,7 +101,11 @@ const SelectTextbox = /*#__PURE__*/React.forwardRef(({
100
101
  role: readOnly ? undefined : "combobox"
101
102
  };
102
103
  const hasStringValue = typeof selectedValue === "string" || Array.isArray(selectedValue) && typeof selectedValue[0] === "string";
103
- return /*#__PURE__*/React.createElement(Textbox, _extends({
104
+ return /*#__PURE__*/React.createElement(SelectTextboxContext.Provider, {
105
+ value: {
106
+ isInputInSelect: true
107
+ }
108
+ }, /*#__PURE__*/React.createElement(Textbox, _extends({
104
109
  "aria-label": ariaLabel,
105
110
  "data-element": "select-input",
106
111
  inputIcon: "dropdown",
@@ -118,7 +123,7 @@ const SelectTextbox = /*#__PURE__*/React.forwardRef(({
118
123
  disabled: disabled,
119
124
  readOnly: readOnly,
120
125
  size: size
121
- }, restProps)));
126
+ }, restProps))));
122
127
  });
123
128
  if (process.env.NODE_ENV !== "production") {
124
129
  SelectTextbox.propTypes = {
@@ -4,7 +4,8 @@ declare type StyledSplitButtonToggleProps = {
4
4
  displayed: boolean;
5
5
  size: "small" | "medium" | "large";
6
6
  };
7
- declare const StyledSplitButtonToggle: import("styled-components").StyledComponent<"button", any, import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../button").ButtonProps & {
7
+ declare const StyledSplitButtonToggle: import("styled-components").StyledComponent<"button", any, import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & Omit<import("../button").ButtonProps, "buttonType"> & {
8
8
  iconOnly?: boolean | undefined;
9
+ buttonType: import("../button/button.component").ButtonTypes;
9
10
  } & StyledSplitButtonToggleProps, never>;
10
11
  export default StyledSplitButtonToggle;
@@ -8,6 +8,7 @@ var _react = _interopRequireWildcard(require("react"));
8
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
  var _input = _interopRequireDefault(require("./input.style"));
10
10
  var _inputBehaviour = require("../input-behaviour");
11
+ var _selectTextboxContext = require("../../components/select/select-textbox/select-textbox-context");
11
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
13
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
14
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -57,6 +58,9 @@ const Input = /*#__PURE__*/_react.default.forwardRef(({
57
58
  }, ref) => {
58
59
  const context = (0, _react.useContext)(_inputBehaviour.InputContext);
59
60
  const groupContext = (0, _react.useContext)(_inputBehaviour.InputGroupContext);
61
+ const {
62
+ isInputInSelect
63
+ } = (0, _react.useContext)(_selectTextboxContext.SelectTextboxContext);
60
64
  const deferredTimeout = (0, _react.useRef)(null);
61
65
  let input = (0, _react.useRef)(null);
62
66
  if (ref && "current" in ref) {
@@ -138,6 +142,7 @@ const Input = /*#__PURE__*/_react.default.forwardRef(({
138
142
  }
139
143
  const combinedDescription = descriptionList.length ? descriptionList.filter(Boolean).join(" ") : undefined;
140
144
  return /*#__PURE__*/_react.default.createElement(_input.default, _extends({}, rest, {
145
+ isInputInSelect: isInputInSelect,
141
146
  "data-has-autofocus": autoFocus ? true : undefined,
142
147
  "aria-describedby": combinedDescription,
143
148
  "aria-labelledby": ariaLabelledBy,
@@ -1,3 +1,5 @@
1
1
  import { CommonInputProps } from "./input.component";
2
- declare const StyledInput: import("styled-components").StyledComponent<"input", any, Pick<CommonInputProps, "disabled" | "align" | "inputBorderRadius">, never>;
2
+ declare const StyledInput: import("styled-components").StyledComponent<"input", any, Pick<CommonInputProps, "disabled" | "align" | "inputBorderRadius"> & {
3
+ isInputInSelect: boolean;
4
+ }, never>;
3
5
  export default StyledInput;
@@ -8,6 +8,9 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
8
8
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
9
9
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
10
10
  const StyledInput = _styledComponents.default.input`
11
+ ${({
12
+ isInputInSelect
13
+ }) => isInputInSelect && "text-overflow: ellipsis"};
11
14
  background: transparent;
12
15
  border: none;
13
16
  color: var(--colorsUtilityYin090);
@@ -1,7 +1,8 @@
1
1
  import { SpaceProps } from "styled-system";
2
2
  import { ButtonProps } from "./button.component";
3
- declare const StyledButton: import("styled-components").StyledComponent<"button", any, SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & ButtonProps & {
3
+ declare const StyledButton: import("styled-components").StyledComponent<"button", any, SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & Omit<ButtonProps, "buttonType"> & {
4
4
  iconOnly?: boolean | undefined;
5
+ buttonType: Required<ButtonProps>["buttonType"];
5
6
  }, never>;
6
7
  export declare const StyledButtonSubtext: import("styled-components").StyledComponent<"span", any, {}, never>;
7
8
  export declare const StyledButtonMainText: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -37,7 +37,7 @@ function stylingForIconOnly(size) {
37
37
  function stylingForType({
38
38
  iconOnly,
39
39
  disabled,
40
- buttonType = "secondary",
40
+ buttonType,
41
41
  size,
42
42
  destructive
43
43
  }) {
@@ -9,7 +9,7 @@ var _input = _interopRequireDefault(require("../../__internal__/input/input.styl
9
9
  var _inputPresentation = _interopRequireDefault(require("../../__internal__/input/input-presentation.style"));
10
10
  var _formField = _interopRequireDefault(require("../../__internal__/form-field/form-field.style"));
11
11
  var _inputIconToggle = _interopRequireDefault(require("../../__internal__/input-icon-toggle/input-icon-toggle.style"));
12
- var _selectText = _interopRequireDefault(require("../select/__internal__/select-text/select-text.style"));
12
+ var _selectText = require("../select/__internal__/select-text/select-text.style");
13
13
  var _link = _interopRequireDefault(require("../link"));
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
@@ -51,7 +51,7 @@ const StyledPagerSizeOptions = exports.StyledPagerSizeOptions = _styledComponent
51
51
  min-width: 10px;
52
52
  margin: 0px;
53
53
 
54
- ${_selectText.default} {
54
+ ${_selectText.StyledSelectText} {
55
55
  font-size: 14px;
56
56
  padding-right: 0px;
57
57
  padding-left: 8px;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
- var _selectText = _interopRequireDefault(require("./select-text.style"));
9
+ var _selectText = require("./select-text.style");
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
  const SelectText = ({
12
12
  disabled,
@@ -19,7 +19,7 @@ const SelectText = ({
19
19
  size = "medium"
20
20
  }) => {
21
21
  const hasPlaceholder = !disabled && !readOnly && !formattedValue;
22
- return /*#__PURE__*/_react.default.createElement(_selectText.default, {
22
+ return /*#__PURE__*/_react.default.createElement(_selectText.StyledSelectText, {
23
23
  "aria-hidden": true,
24
24
  "data-element": "select-text",
25
25
  disabled: disabled,
@@ -29,6 +29,6 @@ const SelectText = ({
29
29
  readOnly: readOnly,
30
30
  transparent: transparent,
31
31
  size: size
32
- }, hasPlaceholder ? placeholder : formattedValue);
32
+ }, /*#__PURE__*/_react.default.createElement(_selectText.StyledSelectTextChildrenWrapper, null, hasPlaceholder ? placeholder : formattedValue));
33
33
  };
34
34
  var _default = exports.default = SelectText;
@@ -4,4 +4,5 @@ interface StyledSelectTextProps extends Pick<SelectTextProps, "disabled" | "read
4
4
  size: NonNullable<SelectTextProps["size"]>;
5
5
  }
6
6
  declare const StyledSelectText: import("styled-components").StyledComponent<"span", any, StyledSelectTextProps, never>;
7
- export default StyledSelectText;
7
+ declare const StyledSelectTextChildrenWrapper: import("styled-components").StyledComponent<"span", any, {}, never>;
8
+ export { StyledSelectText, StyledSelectTextChildrenWrapper };
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.StyledSelectTextChildrenWrapper = exports.StyledSelectText = void 0;
7
7
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
8
8
  var _inputSizes = _interopRequireDefault(require("../../../../__internal__/input/input-sizes.style"));
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
10
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
11
11
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
- const StyledSelectText = _styledComponents.default.span`
12
+ const StyledSelectText = exports.StyledSelectText = _styledComponents.default.span`
13
13
  ${({
14
14
  disabled,
15
15
  hasPlaceholder,
@@ -22,10 +22,7 @@ const StyledSelectText = _styledComponents.default.span`
22
22
  flex-grow: 1;
23
23
  font-size: 14px;
24
24
  height: auto;
25
- overflow: hidden;
26
25
  outline: none;
27
- text-overflow: ellipsis;
28
- white-space: nowrap;
29
26
  width: 30px;
30
27
  z-index: 1;
31
28
  padding-left: ${_inputSizes.default[size].horizontalPadding};
@@ -55,4 +52,9 @@ const StyledSelectText = _styledComponents.default.span`
55
52
  `}
56
53
  `}
57
54
  `;
58
- var _default = exports.default = StyledSelectText;
55
+ const StyledSelectTextChildrenWrapper = exports.StyledSelectTextChildrenWrapper = _styledComponents.default.span`
56
+ display: block;
57
+ white-space: nowrap;
58
+ overflow: hidden;
59
+ text-overflow: ellipsis;
60
+ `;
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ export declare type SelectTextboxContextProps = {
3
+ isInputInSelect?: boolean;
4
+ };
5
+ export declare const SelectTextboxContext: React.Context<SelectTextboxContextProps>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SelectTextboxContext = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ const SelectTextboxContext = exports.SelectTextboxContext = /*#__PURE__*/_react.default.createContext({});
@@ -11,6 +11,7 @@ var _useFloating = _interopRequireDefault(require("../../../hooks/__internal__/u
11
11
  var _textbox = _interopRequireDefault(require("../../textbox"));
12
12
  var _selectText = _interopRequireDefault(require("../__internal__/select-text"));
13
13
  var _useLocale = _interopRequireDefault(require("../../../hooks/__internal__/useLocale"));
14
+ var _selectTextboxContext = require("./select-textbox-context");
14
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
16
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
16
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -109,7 +110,11 @@ const SelectTextbox = /*#__PURE__*/_react.default.forwardRef(({
109
110
  role: readOnly ? undefined : "combobox"
110
111
  };
111
112
  const hasStringValue = typeof selectedValue === "string" || Array.isArray(selectedValue) && typeof selectedValue[0] === "string";
112
- return /*#__PURE__*/_react.default.createElement(_textbox.default, _extends({
113
+ return /*#__PURE__*/_react.default.createElement(_selectTextboxContext.SelectTextboxContext.Provider, {
114
+ value: {
115
+ isInputInSelect: true
116
+ }
117
+ }, /*#__PURE__*/_react.default.createElement(_textbox.default, _extends({
113
118
  "aria-label": ariaLabel,
114
119
  "data-element": "select-input",
115
120
  inputIcon: "dropdown",
@@ -127,7 +132,7 @@ const SelectTextbox = /*#__PURE__*/_react.default.forwardRef(({
127
132
  disabled: disabled,
128
133
  readOnly: readOnly,
129
134
  size: size
130
- }, restProps)));
135
+ }, restProps))));
131
136
  });
132
137
  if (process.env.NODE_ENV !== "production") {
133
138
  SelectTextbox.propTypes = {
@@ -4,7 +4,8 @@ declare type StyledSplitButtonToggleProps = {
4
4
  displayed: boolean;
5
5
  size: "small" | "medium" | "large";
6
6
  };
7
- declare const StyledSplitButtonToggle: import("styled-components").StyledComponent<"button", any, import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../button").ButtonProps & {
7
+ declare const StyledSplitButtonToggle: import("styled-components").StyledComponent<"button", any, import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & Omit<import("../button").ButtonProps, "buttonType"> & {
8
8
  iconOnly?: boolean | undefined;
9
+ buttonType: import("../button/button.component").ButtonTypes;
9
10
  } & StyledSplitButtonToggleProps, never>;
10
11
  export default StyledSplitButtonToggle;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "134.1.0",
3
+ "version": "134.1.2",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",