magneto365.ui 2.48.1 → 2.48.4

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/dist/cjs/index.js CHANGED
@@ -1154,7 +1154,7 @@ var EXPANDABLE_INFO_ACTION_ICONS = {
1154
1154
  _c)
1155
1155
  };
1156
1156
 
1157
- var styles$1Q = {"magneto-ui-expandable-info-action__button":"mg_expandable_info_action_magneto-ui-expandable-info-action_button_11ax1","magneto-ui-expandable-info-action__button--dark-blue":"mg_expandable_info_action_magneto-ui-expandable-info-action_button--dark-blue_11ax1","magneto-ui-expandable-info-action__button--light-blue":"mg_expandable_info_action_magneto-ui-expandable-info-action_button--light-blue_11ax1","magneto-ui-expandable-info-action__button--white":"mg_expandable_info_action_magneto-ui-expandable-info-action_button--white_11ax1","magneto-ui-expandable-info-action__button--green":"mg_expandable_info_action_magneto-ui-expandable-info-action_button--green_11ax1","magneto-ui-expandable-info-action__title":"mg_expandable_info_action_magneto-ui-expandable-info-action_title_11ax1"};
1157
+ var styles$1Q = {"magneto-ui-expandable-info-action__button":"mg_expandable_info_action_magneto-ui-expandable-info-action_button_1ajzq","magneto-ui-expandable-info-action__button--dark-blue":"mg_expandable_info_action_magneto-ui-expandable-info-action_button--dark-blue_1ajzq","magneto-ui-expandable-info-action__button--light-blue":"mg_expandable_info_action_magneto-ui-expandable-info-action_button--light-blue_1ajzq","magneto-ui-expandable-info-action__button--white":"mg_expandable_info_action_magneto-ui-expandable-info-action_button--white_1ajzq","magneto-ui-expandable-info-action__button--green":"mg_expandable_info_action_magneto-ui-expandable-info-action_button--green_1ajzq","magneto-ui-expandable-info-action__title":"mg_expandable_info_action_magneto-ui-expandable-info-action_title_1ajzq"};
1158
1158
 
1159
1159
  var Component$1S = function (_a) {
1160
1160
  var className = _a.className, loading = _a.loading, onAction = _a.onAction, prefixIcon = _a.prefixIcon, suffixIcon = _a.suffixIcon, title = _a.title, _b = _a.variant, variant = _b === void 0 ? 'blue' : _b;
@@ -1187,16 +1187,16 @@ var Component$1S = function (_a) {
1187
1187
  return (React__default["default"].createElement("div", { className: CNM.get({ styles: styles$1Q, cls: ['expandable-info-action', className] }) },
1188
1188
  React__default["default"].createElement("div", { className: CNM.get({ styles: styles$1Q, cls: ['expandable-info-action__container'] }) },
1189
1189
  React__default["default"].createElement(Component, __assign({}, componentProps),
1190
- (prefixIcon || loading) && React__default["default"].createElement(IconItem, __assign({ size: 18 }, prefixIcon, { icon: icon(prefixIcon === null || prefixIcon === void 0 ? void 0 : prefixIcon.icon) })),
1190
+ (prefixIcon || loading) && React__default["default"].createElement(IconItem, __assign({ size: 12 }, prefixIcon, { icon: icon(prefixIcon === null || prefixIcon === void 0 ? void 0 : prefixIcon.icon) })),
1191
1191
  React__default["default"].createElement("span", { className: CNM.get({ styles: styles$1Q, cls: ['expandable-info-action__title'] }) }, title),
1192
- suffixIcon && React__default["default"].createElement(IconItem, __assign({ size: 18 }, suffixIcon, { icon: icon(suffixIcon.icon) }))))));
1192
+ suffixIcon && React__default["default"].createElement(IconItem, __assign({ size: 12 }, suffixIcon, { icon: icon(suffixIcon.icon) }))))));
1193
1193
  };
1194
1194
  /**
1195
1195
  * Molecule UI child component of expandable info
1196
1196
  */
1197
1197
  var ExpandableInfoAction = Component$1S;
1198
1198
 
1199
- var styles$1P = {"magneto-ui-expandable-info-details__container":"mg_expandable_info_details_magneto-ui-expandable-info-details_container_1l94q","magneto-ui-expandable-info-details__section":"mg_expandable_info_details_magneto-ui-expandable-info-details_section_1l94q","magneto-ui-expandable-info-details__section--multiple":"mg_expandable_info_details_magneto-ui-expandable-info-details_section--multiple_1l94q","magneto-ui-expandable-info-details__sub-section":"mg_expandable_info_details_magneto-ui-expandable-info-details_sub-section_1l94q","magneto-ui-expandable-info-details__sub-section--initial":"mg_expandable_info_details_magneto-ui-expandable-info-details_sub-section--initial_1l94q","magneto-ui-expandable-info-details__item":"mg_expandable_info_details_magneto-ui-expandable-info-details_item_1l94q","magneto-ui-expandable-info-details__item--first":"mg_expandable_info_details_magneto-ui-expandable-info-details_item--first_1l94q","magneto-ui-expandable-info-details__text":"mg_expandable_info_details_magneto-ui-expandable-info-details_text_1l94q","magneto-ui-expandable-info-details__text--bold":"mg_expandable_info_details_magneto-ui-expandable-info-details_text--bold_1l94q","magneto-ui-expandable-info-details__footer":"mg_expandable_info_details_magneto-ui-expandable-info-details_footer_1l94q","magneto-ui-expandable-info-details__action":"mg_expandable_info_details_magneto-ui-expandable-info-details_action_1l94q"};
1199
+ var styles$1P = {"magneto-ui-expandable-info-details__container":"mg_expandable_info_details_magneto-ui-expandable-info-details_container_1o8tr","magneto-ui-expandable-info-details__section":"mg_expandable_info_details_magneto-ui-expandable-info-details_section_1o8tr","magneto-ui-expandable-info-details__section--multiple":"mg_expandable_info_details_magneto-ui-expandable-info-details_section--multiple_1o8tr","magneto-ui-expandable-info-details__sub-section":"mg_expandable_info_details_magneto-ui-expandable-info-details_sub-section_1o8tr","magneto-ui-expandable-info-details__sub-section--initial":"mg_expandable_info_details_magneto-ui-expandable-info-details_sub-section--initial_1o8tr","magneto-ui-expandable-info-details__item":"mg_expandable_info_details_magneto-ui-expandable-info-details_item_1o8tr","magneto-ui-expandable-info-details__item--first":"mg_expandable_info_details_magneto-ui-expandable-info-details_item--first_1o8tr","magneto-ui-expandable-info-details__text":"mg_expandable_info_details_magneto-ui-expandable-info-details_text_1o8tr","magneto-ui-expandable-info-details__text--bold":"mg_expandable_info_details_magneto-ui-expandable-info-details_text--bold_1o8tr","magneto-ui-expandable-info-details__footer":"mg_expandable_info_details_magneto-ui-expandable-info-details_footer_1o8tr","magneto-ui-expandable-info-details__action":"mg_expandable_info_details_magneto-ui-expandable-info-details_action_1o8tr"};
1200
1200
 
1201
1201
  var Component$1R = function (_a) {
1202
1202
  var sections = _a.sections, footer = _a.footer;
@@ -1294,7 +1294,7 @@ var Component$1Q = function (_a) {
1294
1294
  */
1295
1295
  var ExpandableInfoMessage = Component$1Q;
1296
1296
 
1297
- var styles$1N = {"magneto-ui-expandable-info-modal":"mg_expandable_info_modal_magneto-ui-expandable-info-modal_mka0n"};
1297
+ var styles$1N = {"magneto-ui-expandable-info-modal":"mg_expandable_info_modal_magneto-ui-expandable-info-modal_56w98"};
1298
1298
 
1299
1299
  var Component$1P = function (_a) {
1300
1300
  var toggler = _a.toggler, details = _a.details;
@@ -1402,7 +1402,7 @@ var EXPANDABLE_INFO_TOGGLER_ICONS = {
1402
1402
  coin: CoinBlackOutline
1403
1403
  };
1404
1404
 
1405
- var styles$1I = {"magneto-ui-expandable-info-toggler__container":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container_uiv7v","magneto-ui-expandable-info-toggler__container--no-details":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container--no-details_uiv7v","magneto-ui-expandable-info-toggler__container--blue":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container--blue_uiv7v","magneto-ui-expandable-info-toggler__container--white":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container--white_uiv7v","magneto-ui-expandable-info-toggler__container--small":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container--small_uiv7v","magneto-ui-expandable-info-toggler__text":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_text_uiv7v","magneto-ui-expandable-info-toggler__text--blue":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_text--blue_uiv7v","magneto-ui-expandable-info-toggler__text--white":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_text--white_uiv7v","magneto-ui-expandable-info-toggler__text--small":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_text--small_uiv7v","magneto-ui-expandable-info-toggler__summary":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_summary_uiv7v","magneto-ui-expandable-info-toggler__summary--small":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_summary--small_uiv7v","magneto-ui-expandable-info-toggler__summary--large":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_summary--large_uiv7v"};
1405
+ var styles$1I = {"magneto-ui-expandable-info-toggler__container":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container_x381d","magneto-ui-expandable-info-toggler__container--no-details":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container--no-details_x381d","magneto-ui-expandable-info-toggler__container--blue":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container--blue_x381d","magneto-ui-expandable-info-toggler__container--white":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container--white_x381d","magneto-ui-expandable-info-toggler__container--small":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container--small_x381d","magneto-ui-expandable-info-toggler__text":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_text_x381d","magneto-ui-expandable-info-toggler__text--blue":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_text--blue_x381d","magneto-ui-expandable-info-toggler__text--white":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_text--white_x381d","magneto-ui-expandable-info-toggler__text--small":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_text--small_x381d","magneto-ui-expandable-info-toggler__summary":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_summary_x381d","magneto-ui-expandable-info-toggler__summary--small":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_summary--small_x381d","magneto-ui-expandable-info-toggler__summary--large":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_summary--large_x381d"};
1406
1406
 
1407
1407
  var Component$1N = function (_a) {
1408
1408
  var details = _a.details, onToggle = _a.onToggle, prefixIcon = _a.prefixIcon, size = _a.size, suffixIcon = _a.suffixIcon, summary = _a.summary, title = _a.title, _b = _a.variant, variant = _b === void 0 ? 'white' : _b;
@@ -6803,14 +6803,14 @@ var SelectContext = React__default["default"].createContext({
6803
6803
  });
6804
6804
  var useSelectContext = function () { return React.useContext(SelectContext); };
6805
6805
 
6806
- var styles$c = {"select-input":"mg_select_input_select-input_17ogp","select-input--no-placeholder":"mg_select_input_select-input--no-placeholder_17ogp","select-input--with-icon":"mg_select_input_select-input--with-icon_17ogp","select-button":"mg_select_input_select-button_17ogp","select-button__placeholder":"mg_select_input_select-button_placeholder_17ogp","select-button__placeholder--open":"mg_select_input_select-button_placeholder--open_17ogp","select-button__placeholder--selected":"mg_select_input_select-button_placeholder--selected_17ogp"};
6806
+ var styles$c = {"select-input":"mg_select_input_select-input_1mcnp","select-input--disabled":"mg_select_input_select-input--disabled_1mcnp","select-input--no-placeholder":"mg_select_input_select-input--no-placeholder_1mcnp","select-input--with-icon":"mg_select_input_select-input--with-icon_1mcnp","select-button":"mg_select_input_select-button_1mcnp","select-button--disabled":"mg_select_input_select-button--disabled_1mcnp","select-button__input":"mg_select_input_select-button_input_1mcnp","select-button__placeholder":"mg_select_input_select-button_placeholder_1mcnp","select-button__placeholder--open":"mg_select_input_select-button_placeholder--open_1mcnp","select-button__placeholder--selected":"mg_select_input_select-button_placeholder--selected_1mcnp","select-button__value":"mg_select_input_select-button_value_1mcnp"};
6807
6807
 
6808
6808
  var cx$5 = classNames.bind(styles$c);
6809
6809
  var getDefaulSelected = function (selected) {
6810
6810
  return selected.map(function (select) { return select.value; }).join(', ');
6811
6811
  };
6812
6812
  var Component$a = function (_a) {
6813
- var onChange = _a.onChange, value = _a.value, className = _a.className, onClick = _a.onClick, _b = _a.open, open = _b === void 0 ? false : _b, _c = _a.actionIcon, actionIcon = _c === void 0 ? ArrowDown2 : _c, selected = _a.selected, _d = _a.getLabel, getLabel = _d === void 0 ? getDefaulSelected : _d, readOnly = _a.readOnly, rest = __rest(_a, ["onChange", "value", "className", "onClick", "open", "actionIcon", "selected", "getLabel", "readOnly"]);
6813
+ var _b = _a.onChange, onChange = _b === void 0 ? stubTrue : _b, _c = _a.value, value = _c === void 0 ? '' : _c, className = _a.className, _d = _a.onClick, onClick = _d === void 0 ? stubUndefined : _d, _e = _a.open, open = _e === void 0 ? false : _e, _f = _a.actionIcon, actionIcon = _f === void 0 ? ArrowDown2 : _f, _g = _a.selected, selected = _g === void 0 ? [] : _g, _h = _a.getLabel, getLabel = _h === void 0 ? getDefaulSelected : _h, readOnly = _a.readOnly, disabled = _a.disabled, _j = _a.placeholder, placeholder = _j === void 0 ? '' : _j, _k = _a.type, type = _k === void 0 ? 'text' : _k, rest = __rest(_a, ["onChange", "value", "className", "onClick", "open", "actionIcon", "selected", "getLabel", "readOnly", "disabled", "placeholder", "type"]);
6814
6814
  var ref = React.useRef({ onChange: onChange, id: generateID() });
6815
6815
  React.useEffect(function () {
6816
6816
  ref.current.onChange = onChange;
@@ -6826,15 +6826,20 @@ var Component$a = function (_a) {
6826
6826
  if (!readOnly) {
6827
6827
  return (React__default["default"].createElement("div", { className: cx$5('select-input', className, {
6828
6828
  'select-input--with-icon': actionIcon !== undefined,
6829
- 'select-input--no-placeholder': rest.placeholder.length === 0
6830
- }), onClick: onClick },
6831
- React__default["default"].createElement(Input, __assign({ name: ref.current.id, value: open ? value : getLabel(selected), onChange: onChange, actionIcon: actionIcon }, rest))));
6829
+ 'select-input--no-placeholder': placeholder.length === 0,
6830
+ 'select-input--disabled': disabled
6831
+ }), onClick: function () { return (disabled ? null : onClick()); }, "data-name": "select-input", "data-selected": selected.length > 0, "data-is-open": open },
6832
+ React__default["default"].createElement(Input, __assign({ name: ref.current.id, disabled: disabled, value: open ? value : getLabel(selected), onChange: onChange, actionIcon: actionIcon, placeholder: placeholder, type: type }, rest))));
6832
6833
  }
6833
- return (React__default["default"].createElement("button", { className: cx$5('select-button', className), onClick: onClick },
6834
- React__default["default"].createElement("span", { className: cx$5('select-button__placeholder', {
6835
- 'select-button__placeholder--selected': selected.length > 0,
6836
- 'select-button__placeholder--open': open
6837
- }) }, open ? rest.placeholder : selected.length > 0 ? getLabel(selected) : rest.placeholder),
6834
+ return (React__default["default"].createElement("button", { className: cx$5('select-button', { 'select-button--disabled': disabled }, className), disabled: disabled, onClick: onClick, "data-name": "select-button", "data-selected": selected.length > 0, "data-is-open": open, type: "button" },
6835
+ React__default["default"].createElement("div", { className: cx$5('select-button__input') },
6836
+ placeholder.length > 0 ? (React__default["default"].createElement("span", { className: cx$5('select-button__placeholder', {
6837
+ 'select-button__placeholder--open': open,
6838
+ 'select-button__placeholder--selected': selected.length > 0
6839
+ }) }, placeholder)) : null,
6840
+ selected.length > 0 ? (React__default["default"].createElement("span", { className: cx$5('select-button__value', {
6841
+ 'select-button__placeholder--open': open
6842
+ }) }, getLabel(selected))) : null),
6838
6843
  actionIcon ? React__default["default"].createElement(IconItem, { icon: actionIcon, size: 20 }) : null));
6839
6844
  };
6840
6845
  var SelectInput = Component$a;
@@ -6863,7 +6868,7 @@ var SelectClickout = function (_a) {
6863
6868
  };
6864
6869
  var SelectClickout$1 = withClickOut(SelectClickout);
6865
6870
 
6866
- var styles$a = {"select-drawer":"mg_select_drawer_select-drawer_1d398"};
6871
+ var styles$a = {"select-drawer":"mg_select_drawer_select-drawer_tv0qc"};
6867
6872
 
6868
6873
  var cx$3 = classNames.bind(styles$a);
6869
6874
  var SelectDrawer = function (_a) {
@@ -6872,15 +6877,22 @@ var SelectDrawer = function (_a) {
6872
6877
  return (React__default["default"].createElement(MobileDrawer, { className: cx$3('select-drawer', className), isOpen: open, onClose: function () { return onSwitch(false); }, blockBackgroundClose: true }, children));
6873
6878
  };
6874
6879
 
6875
- var styles$9 = {"checkbox":"mg_checkbox_checkbox_1fdbz","checkbox--inline":"mg_checkbox_checkbox--inline_1fdbz","checkbox--block":"mg_checkbox_checkbox--block_1fdbz","checkbox--checked":"mg_checkbox_checkbox--checked_1fdbz","checkbox--background":"mg_checkbox_checkbox--background_1fdbz","custom-checked":"mg_checkbox_custom-checked_1fdbz"};
6880
+ var styles$9 = {"checkbox":"mg_checkbox_checkbox_1h0ys","checkbox--inline":"mg_checkbox_checkbox--inline_1h0ys","checkbox--block":"mg_checkbox_checkbox--block_1h0ys","checkbox--background":"mg_checkbox_checkbox--background_1h0ys","checkbox--checked":"mg_checkbox_checkbox--checked_1h0ys","custom-checked":"mg_checkbox_custom-checked_1h0ys","checkbox__box":"mg_checkbox_checkbox_box_1h0ys","checkbox__box--checked":"mg_checkbox_checkbox_box--checked_1h0ys"};
6876
6881
 
6877
6882
  var cx$2 = classNames.bind(styles$9);
6883
+ var defaultCheck = function (_a) {
6884
+ var type = _a.type, checked = _a.checked;
6885
+ if (type === 'background')
6886
+ return;
6887
+ return (React__default["default"].createElement("div", { "aria-checked": checked, role: "checkbox", className: cx$2('checkbox__box', { 'checkbox__box--checked': checked }) }, checked ? React__default["default"].createElement(React__default["default"].Fragment, null, "\u2713") : null));
6888
+ };
6878
6889
  var Component$9 = function (_a) {
6879
- var id = _a.id, checked = _a.checked, _b = _a.onChange, onChange = _b === void 0 ? stubTrue : _b, children = _a.children, _c = _a.type, type = _c === void 0 ? 'box' : _c, className = _a.className, _d = _a.display, display = _d === void 0 ? 'inline' : _d, rest = __rest(_a, ["id", "checked", "onChange", "children", "type", "className", "display"]);
6890
+ var id = _a.id, checked = _a.checked, _b = _a.onChange, onChange = _b === void 0 ? stubTrue : _b, children = _a.children, _c = _a.type, type = _c === void 0 ? 'box' : _c, className = _a.className, _d = _a.display, display = _d === void 0 ? 'inline' : _d, _e = _a.renderCheck, renderCheck = _e === void 0 ? defaultCheck : _e, rest = __rest(_a, ["id", "checked", "onChange", "children", "type", "className", "display", "renderCheck"]);
6880
6891
  return (React__default["default"].createElement("label", { className: cx$2('checkbox', "checkbox--".concat(display), className, {
6881
6892
  'checkbox--checked': checked,
6882
6893
  'checkbox--background': type === 'background'
6883
6894
  }), "data-name": "checkbox-container", htmlFor: id },
6895
+ renderCheck({ checked: checked, type: type }),
6884
6896
  React__default["default"].createElement("input", __assign({ "data-name": "checkbox", checked: checked, onChange: function (_a) {
6885
6897
  var target = _a.target;
6886
6898
  return onChange(target.checked);
@@ -6889,7 +6901,7 @@ var Component$9 = function (_a) {
6889
6901
  };
6890
6902
  var Checkbox = Component$9;
6891
6903
 
6892
- var styles$8 = {"select-list":"mg_select_list_check_select-list_1boet","select-list--visible":"mg_select_list_check_select-list--visible_1boet","select-list__item":"mg_select_list_check_select-list_item_1boet","select-list__checkbox":"mg_select_list_check_select-list_checkbox_1boet"};
6904
+ var styles$8 = {"select-list":"mg_select_list_check_select-list_g3qb1","select-list--visible":"mg_select_list_check_select-list--visible_g3qb1","select-list__item":"mg_select_list_check_select-list_item_g3qb1","select-list__checkbox":"mg_select_list_check_select-list_checkbox_g3qb1"};
6893
6905
 
6894
6906
  var cx$1 = classNames.bind(styles$8);
6895
6907
  var defaultRenderItem = function (option) { return React__default["default"].createElement(React__default["default"].Fragment, null, option.label); };
@@ -6927,24 +6939,26 @@ var defaultSelect = function (props) {
6927
6939
  return (React__default["default"].createElement(Select.Input, __assign({ hideIcon: true, className: cx('select-input', { 'select-input--open': props.open }), actionIcon: ArrowDown2 }, props)));
6928
6940
  };
6929
6941
  var Component$7 = function (_a) {
6930
- var children = _a.children, _b = _a.renderSelect, renderSelect = _b === void 0 ? defaultSelect : _b, _c = _a.placeholder, placeholder = _c === void 0 ? '' : _c, options = _a.options, value = _a.value, _d = _a.onChange, onChange = _d === void 0 ? stubTrue : _d, _e = _a.inputReadonly, inputReadonly = _e === void 0 ? false : _e;
6942
+ var children = _a.children, _b = _a.renderSelect, renderSelect = _b === void 0 ? defaultSelect : _b, _c = _a.placeholder, placeholder = _c === void 0 ? '' : _c, options = _a.options, value = _a.value, _d = _a.onChange, onChange = _d === void 0 ? stubTrue : _d, _e = _a.inputReadonly, inputReadonly = _e === void 0 ? false : _e, className = _a.className, getLabel = _a.getLabel;
6931
6943
  var _f = React.useState(false), open = _f[0], setOpen = _f[1];
6932
6944
  var _g = React.useState(''), search = _g[0], setSearch = _g[1];
6933
6945
  return (React__default["default"].createElement(SelectContext.Provider, { value: { options: options, value: value, onSwitch: setOpen, onChange: onChange, search: search, open: open, onSearch: setSearch } },
6934
- renderSelect({
6935
- placeholder: placeholder,
6936
- readOnly: inputReadonly,
6937
- onChange: function (_a) {
6938
- var target = _a.target;
6939
- return setSearch(target.value);
6940
- },
6941
- type: 'text',
6942
- value: search,
6943
- open: open,
6944
- onClick: function () { return setOpen(true); },
6945
- selected: value
6946
- }),
6947
- React__default["default"].createElement("div", { className: cx('select__list-container'), "data-name": "select-list-container" }, children)));
6946
+ React__default["default"].createElement("div", { className: className },
6947
+ renderSelect({
6948
+ placeholder: placeholder,
6949
+ readOnly: inputReadonly,
6950
+ onChange: function (_a) {
6951
+ var target = _a.target;
6952
+ return setSearch(target.value);
6953
+ },
6954
+ type: 'text',
6955
+ value: search,
6956
+ open: open,
6957
+ onClick: function () { return setOpen(true); },
6958
+ selected: value,
6959
+ getLabel: getLabel
6960
+ }),
6961
+ React__default["default"].createElement("div", { className: cx('select__list-container'), "data-name": "select-list-container" }, children))));
6948
6962
  };
6949
6963
  /**
6950
6964
  * @experimental this component is early, so that the interface component and behavrior could change.