trotl-filter 1.0.3 → 1.0.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/index.cjs.js +92 -92
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +46 -46
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import React__default, { useState, useCallback, forwardRef, useContext, useLayoutEffect, useRef, useMemo, createContext, Component, Fragment, useEffect } from 'react';
|
|
3
3
|
import { createPortal } from 'react-dom';
|
|
4
4
|
|
|
@@ -2274,12 +2274,12 @@ var syncFallback = function syncFallback(create) {
|
|
|
2274
2274
|
return create();
|
|
2275
2275
|
};
|
|
2276
2276
|
|
|
2277
|
-
var useInsertionEffect = React
|
|
2277
|
+
var useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;
|
|
2278
2278
|
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$1 ? syncFallback : useInsertionEffect || syncFallback;
|
|
2279
2279
|
|
|
2280
2280
|
var isBrowser = typeof document !== 'undefined';
|
|
2281
2281
|
|
|
2282
|
-
var EmotionCacheContext = /* #__PURE__ */React
|
|
2282
|
+
var EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
2283
2283
|
// because this module is primarily intended for the browser and node
|
|
2284
2284
|
// but it's also required in react native and similar environments sometimes
|
|
2285
2285
|
// and we could have a special build just for that
|
|
@@ -2313,7 +2313,7 @@ if (!isBrowser) {
|
|
|
2313
2313
|
cache = createCache({
|
|
2314
2314
|
key: 'css'
|
|
2315
2315
|
});
|
|
2316
|
-
return /*#__PURE__*/React
|
|
2316
|
+
return /*#__PURE__*/React.createElement(EmotionCacheContext.Provider, {
|
|
2317
2317
|
value: cache
|
|
2318
2318
|
}, func(props, cache));
|
|
2319
2319
|
} else {
|
|
@@ -2323,7 +2323,7 @@ if (!isBrowser) {
|
|
|
2323
2323
|
};
|
|
2324
2324
|
}
|
|
2325
2325
|
|
|
2326
|
-
var ThemeContext = /* #__PURE__ */React
|
|
2326
|
+
var ThemeContext = /* #__PURE__ */React.createContext({});
|
|
2327
2327
|
|
|
2328
2328
|
var hasOwn = {}.hasOwnProperty;
|
|
2329
2329
|
|
|
@@ -2363,7 +2363,7 @@ var Insertion = function Insertion(_ref) {
|
|
|
2363
2363
|
next = next.next;
|
|
2364
2364
|
}
|
|
2365
2365
|
|
|
2366
|
-
return /*#__PURE__*/React
|
|
2366
|
+
return /*#__PURE__*/React.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
|
|
2367
2367
|
__html: rules
|
|
2368
2368
|
}, _ref2.nonce = cache.sheet.nonce, _ref2));
|
|
2369
2369
|
}
|
|
@@ -2390,7 +2390,7 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
|
2390
2390
|
className = props.className + " ";
|
|
2391
2391
|
}
|
|
2392
2392
|
|
|
2393
|
-
var serialized = serializeStyles(registeredStyles, undefined, React
|
|
2393
|
+
var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));
|
|
2394
2394
|
|
|
2395
2395
|
className += cache.key + "-" + serialized.name;
|
|
2396
2396
|
var newProps = {};
|
|
@@ -2407,11 +2407,11 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
|
2407
2407
|
newProps.ref = ref;
|
|
2408
2408
|
}
|
|
2409
2409
|
|
|
2410
|
-
return /*#__PURE__*/React
|
|
2410
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {
|
|
2411
2411
|
cache: cache,
|
|
2412
2412
|
serialized: serialized,
|
|
2413
2413
|
isStringTag: typeof WrappedComponent === 'string'
|
|
2414
|
-
}), /*#__PURE__*/React
|
|
2414
|
+
}), /*#__PURE__*/React.createElement(WrappedComponent, newProps));
|
|
2415
2415
|
});
|
|
2416
2416
|
|
|
2417
2417
|
var Emotion$1 = Emotion;
|
|
@@ -2421,7 +2421,7 @@ var jsx = function jsx(type, props) {
|
|
|
2421
2421
|
var args = arguments;
|
|
2422
2422
|
|
|
2423
2423
|
if (props == null || !hasOwn.call(props, 'css')) {
|
|
2424
|
-
return React
|
|
2424
|
+
return React.createElement.apply(undefined, args);
|
|
2425
2425
|
}
|
|
2426
2426
|
|
|
2427
2427
|
var argsLength = args.length;
|
|
@@ -2433,7 +2433,7 @@ var jsx = function jsx(type, props) {
|
|
|
2433
2433
|
createElementArgArray[i] = args[i];
|
|
2434
2434
|
}
|
|
2435
2435
|
|
|
2436
|
-
return React
|
|
2436
|
+
return React.createElement.apply(null, createElementArgArray);
|
|
2437
2437
|
};
|
|
2438
2438
|
|
|
2439
2439
|
(function (_jsx) {
|
|
@@ -6437,7 +6437,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6437
6437
|
});
|
|
6438
6438
|
if (!isSearchable) {
|
|
6439
6439
|
// use a dummy input to maintain focus/blur functionality
|
|
6440
|
-
return /*#__PURE__*/React
|
|
6440
|
+
return /*#__PURE__*/React.createElement(DummyInput, _extends({
|
|
6441
6441
|
id: id,
|
|
6442
6442
|
innerRef: this.getInputRef,
|
|
6443
6443
|
onBlur: this.onInputBlur,
|
|
@@ -6450,7 +6450,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6450
6450
|
value: ""
|
|
6451
6451
|
}, ariaAttributes));
|
|
6452
6452
|
}
|
|
6453
|
-
return /*#__PURE__*/React
|
|
6453
|
+
return /*#__PURE__*/React.createElement(Input, _extends({}, commonProps, {
|
|
6454
6454
|
autoCapitalize: "none",
|
|
6455
6455
|
autoComplete: "off",
|
|
6456
6456
|
autoCorrect: "off",
|
|
@@ -6491,7 +6491,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6491
6491
|
focusedValue = _this$state5.focusedValue,
|
|
6492
6492
|
isFocused = _this$state5.isFocused;
|
|
6493
6493
|
if (!this.hasValue() || !controlShouldRenderValue) {
|
|
6494
|
-
return inputValue ? null : /*#__PURE__*/React
|
|
6494
|
+
return inputValue ? null : /*#__PURE__*/React.createElement(Placeholder, _extends({}, commonProps, {
|
|
6495
6495
|
key: "placeholder",
|
|
6496
6496
|
isDisabled: isDisabled,
|
|
6497
6497
|
isFocused: isFocused,
|
|
@@ -6504,7 +6504,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6504
6504
|
return selectValue.map(function (opt, index) {
|
|
6505
6505
|
var isOptionFocused = opt === focusedValue;
|
|
6506
6506
|
var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
|
|
6507
|
-
return /*#__PURE__*/React
|
|
6507
|
+
return /*#__PURE__*/React.createElement(MultiValue, _extends({}, commonProps, {
|
|
6508
6508
|
components: {
|
|
6509
6509
|
Container: MultiValueContainer,
|
|
6510
6510
|
Label: MultiValueLabel,
|
|
@@ -6533,7 +6533,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6533
6533
|
return null;
|
|
6534
6534
|
}
|
|
6535
6535
|
var singleValue = selectValue[0];
|
|
6536
|
-
return /*#__PURE__*/React
|
|
6536
|
+
return /*#__PURE__*/React.createElement(SingleValue, _extends({}, commonProps, {
|
|
6537
6537
|
data: singleValue,
|
|
6538
6538
|
isDisabled: isDisabled
|
|
6539
6539
|
}), this.formatOptionLabel(singleValue, 'value'));
|
|
@@ -6556,7 +6556,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6556
6556
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
6557
6557
|
'aria-hidden': 'true'
|
|
6558
6558
|
};
|
|
6559
|
-
return /*#__PURE__*/React
|
|
6559
|
+
return /*#__PURE__*/React.createElement(ClearIndicator, _extends({}, commonProps, {
|
|
6560
6560
|
innerProps: innerProps,
|
|
6561
6561
|
isFocused: isFocused
|
|
6562
6562
|
}));
|
|
@@ -6575,7 +6575,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6575
6575
|
var innerProps = {
|
|
6576
6576
|
'aria-hidden': 'true'
|
|
6577
6577
|
};
|
|
6578
|
-
return /*#__PURE__*/React
|
|
6578
|
+
return /*#__PURE__*/React.createElement(LoadingIndicator, _extends({}, commonProps, {
|
|
6579
6579
|
innerProps: innerProps,
|
|
6580
6580
|
isDisabled: isDisabled,
|
|
6581
6581
|
isFocused: isFocused
|
|
@@ -6593,7 +6593,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6593
6593
|
var commonProps = this.commonProps;
|
|
6594
6594
|
var isDisabled = this.props.isDisabled;
|
|
6595
6595
|
var isFocused = this.state.isFocused;
|
|
6596
|
-
return /*#__PURE__*/React
|
|
6596
|
+
return /*#__PURE__*/React.createElement(IndicatorSeparator, _extends({}, commonProps, {
|
|
6597
6597
|
isDisabled: isDisabled,
|
|
6598
6598
|
isFocused: isFocused
|
|
6599
6599
|
}));
|
|
@@ -6612,7 +6612,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6612
6612
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
6613
6613
|
'aria-hidden': 'true'
|
|
6614
6614
|
};
|
|
6615
|
-
return /*#__PURE__*/React
|
|
6615
|
+
return /*#__PURE__*/React.createElement(DropdownIndicator, _extends({}, commonProps, {
|
|
6616
6616
|
innerProps: innerProps,
|
|
6617
6617
|
isDisabled: isDisabled,
|
|
6618
6618
|
isFocused: isFocused
|
|
@@ -6677,7 +6677,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6677
6677
|
'aria-selected': _this4.state.isAppleDevice ? undefined : isSelected // is not supported on Apple devices
|
|
6678
6678
|
};
|
|
6679
6679
|
|
|
6680
|
-
return /*#__PURE__*/React
|
|
6680
|
+
return /*#__PURE__*/React.createElement(Option, _extends({}, commonProps, {
|
|
6681
6681
|
innerProps: innerProps,
|
|
6682
6682
|
data: data,
|
|
6683
6683
|
isDisabled: isDisabled,
|
|
@@ -6699,7 +6699,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6699
6699
|
groupIndex = item.index;
|
|
6700
6700
|
var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
|
|
6701
6701
|
var headingId = "".concat(groupId, "-heading");
|
|
6702
|
-
return /*#__PURE__*/React
|
|
6702
|
+
return /*#__PURE__*/React.createElement(Group, _extends({}, commonProps, {
|
|
6703
6703
|
key: groupId,
|
|
6704
6704
|
data: _data,
|
|
6705
6705
|
options: options,
|
|
@@ -6721,13 +6721,13 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6721
6721
|
inputValue: inputValue
|
|
6722
6722
|
});
|
|
6723
6723
|
if (message === null) return null;
|
|
6724
|
-
menuUI = /*#__PURE__*/React
|
|
6724
|
+
menuUI = /*#__PURE__*/React.createElement(LoadingMessage, commonProps, message);
|
|
6725
6725
|
} else {
|
|
6726
6726
|
var _message = noOptionsMessage({
|
|
6727
6727
|
inputValue: inputValue
|
|
6728
6728
|
});
|
|
6729
6729
|
if (_message === null) return null;
|
|
6730
|
-
menuUI = /*#__PURE__*/React
|
|
6730
|
+
menuUI = /*#__PURE__*/React.createElement(NoOptionsMessage, commonProps, _message);
|
|
6731
6731
|
}
|
|
6732
6732
|
var menuPlacementProps = {
|
|
6733
6733
|
minMenuHeight: minMenuHeight,
|
|
@@ -6736,12 +6736,12 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6736
6736
|
menuPosition: menuPosition,
|
|
6737
6737
|
menuShouldScrollIntoView: menuShouldScrollIntoView
|
|
6738
6738
|
};
|
|
6739
|
-
var menuElement = /*#__PURE__*/React
|
|
6739
|
+
var menuElement = /*#__PURE__*/React.createElement(MenuPlacer, _extends({}, commonProps, menuPlacementProps), function (_ref4) {
|
|
6740
6740
|
var ref = _ref4.ref,
|
|
6741
6741
|
_ref4$placerProps = _ref4.placerProps,
|
|
6742
6742
|
placement = _ref4$placerProps.placement,
|
|
6743
6743
|
maxHeight = _ref4$placerProps.maxHeight;
|
|
6744
|
-
return /*#__PURE__*/React
|
|
6744
|
+
return /*#__PURE__*/React.createElement(Menu, _extends({}, commonProps, menuPlacementProps, {
|
|
6745
6745
|
innerRef: ref,
|
|
6746
6746
|
innerProps: {
|
|
6747
6747
|
onMouseDown: _this4.onMenuMouseDown,
|
|
@@ -6749,13 +6749,13 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6749
6749
|
},
|
|
6750
6750
|
isLoading: isLoading,
|
|
6751
6751
|
placement: placement
|
|
6752
|
-
}), /*#__PURE__*/React
|
|
6752
|
+
}), /*#__PURE__*/React.createElement(ScrollManager, {
|
|
6753
6753
|
captureEnabled: captureMenuScroll,
|
|
6754
6754
|
onTopArrive: onMenuScrollToTop,
|
|
6755
6755
|
onBottomArrive: onMenuScrollToBottom,
|
|
6756
6756
|
lockEnabled: menuShouldBlockScroll
|
|
6757
6757
|
}, function (scrollTargetRef) {
|
|
6758
|
-
return /*#__PURE__*/React
|
|
6758
|
+
return /*#__PURE__*/React.createElement(MenuList, _extends({}, commonProps, {
|
|
6759
6759
|
innerRef: function innerRef(instance) {
|
|
6760
6760
|
_this4.getMenuListRef(instance);
|
|
6761
6761
|
scrollTargetRef(instance);
|
|
@@ -6775,7 +6775,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6775
6775
|
// positioning behaviour is almost identical for portalled and fixed,
|
|
6776
6776
|
// so we use the same component. the actual portalling logic is forked
|
|
6777
6777
|
// within the component based on `menuPosition`
|
|
6778
|
-
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React
|
|
6778
|
+
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React.createElement(MenuPortal, _extends({}, commonProps, {
|
|
6779
6779
|
appendTo: menuPortalTarget,
|
|
6780
6780
|
controlElement: this.controlRef,
|
|
6781
6781
|
menuPlacement: menuPlacement,
|
|
@@ -6794,7 +6794,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6794
6794
|
required = _this$props13.required;
|
|
6795
6795
|
var selectValue = this.state.selectValue;
|
|
6796
6796
|
if (required && !this.hasValue() && !isDisabled) {
|
|
6797
|
-
return /*#__PURE__*/React
|
|
6797
|
+
return /*#__PURE__*/React.createElement(RequiredInput$1, {
|
|
6798
6798
|
name: name,
|
|
6799
6799
|
onFocus: this.onValueInputFocus
|
|
6800
6800
|
});
|
|
@@ -6805,29 +6805,29 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6805
6805
|
var value = selectValue.map(function (opt) {
|
|
6806
6806
|
return _this5.getOptionValue(opt);
|
|
6807
6807
|
}).join(delimiter);
|
|
6808
|
-
return /*#__PURE__*/React
|
|
6808
|
+
return /*#__PURE__*/React.createElement("input", {
|
|
6809
6809
|
name: name,
|
|
6810
6810
|
type: "hidden",
|
|
6811
6811
|
value: value
|
|
6812
6812
|
});
|
|
6813
6813
|
} else {
|
|
6814
6814
|
var input = selectValue.length > 0 ? selectValue.map(function (opt, i) {
|
|
6815
|
-
return /*#__PURE__*/React
|
|
6815
|
+
return /*#__PURE__*/React.createElement("input", {
|
|
6816
6816
|
key: "i-".concat(i),
|
|
6817
6817
|
name: name,
|
|
6818
6818
|
type: "hidden",
|
|
6819
6819
|
value: _this5.getOptionValue(opt)
|
|
6820
6820
|
});
|
|
6821
|
-
}) : /*#__PURE__*/React
|
|
6821
|
+
}) : /*#__PURE__*/React.createElement("input", {
|
|
6822
6822
|
name: name,
|
|
6823
6823
|
type: "hidden",
|
|
6824
6824
|
value: ""
|
|
6825
6825
|
});
|
|
6826
|
-
return /*#__PURE__*/React
|
|
6826
|
+
return /*#__PURE__*/React.createElement("div", null, input);
|
|
6827
6827
|
}
|
|
6828
6828
|
} else {
|
|
6829
6829
|
var _value = selectValue[0] ? this.getOptionValue(selectValue[0]) : '';
|
|
6830
|
-
return /*#__PURE__*/React
|
|
6830
|
+
return /*#__PURE__*/React.createElement("input", {
|
|
6831
6831
|
name: name,
|
|
6832
6832
|
type: "hidden",
|
|
6833
6833
|
value: _value
|
|
@@ -6845,7 +6845,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6845
6845
|
isFocused = _this$state6.isFocused,
|
|
6846
6846
|
selectValue = _this$state6.selectValue;
|
|
6847
6847
|
var focusableOptions = this.getFocusableOptions();
|
|
6848
|
-
return /*#__PURE__*/React
|
|
6848
|
+
return /*#__PURE__*/React.createElement(LiveRegion$1, _extends({}, commonProps, {
|
|
6849
6849
|
id: this.getElementId('live-region'),
|
|
6850
6850
|
ariaSelection: ariaSelection,
|
|
6851
6851
|
focusedOption: focusedOption,
|
|
@@ -6871,7 +6871,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6871
6871
|
menuIsOpen = _this$props14.menuIsOpen;
|
|
6872
6872
|
var isFocused = this.state.isFocused;
|
|
6873
6873
|
var commonProps = this.commonProps = this.getCommonProps();
|
|
6874
|
-
return /*#__PURE__*/React
|
|
6874
|
+
return /*#__PURE__*/React.createElement(SelectContainer, _extends({}, commonProps, {
|
|
6875
6875
|
className: className,
|
|
6876
6876
|
innerProps: {
|
|
6877
6877
|
id: id,
|
|
@@ -6879,7 +6879,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6879
6879
|
},
|
|
6880
6880
|
isDisabled: isDisabled,
|
|
6881
6881
|
isFocused: isFocused
|
|
6882
|
-
}), this.renderLiveRegion(), /*#__PURE__*/React
|
|
6882
|
+
}), this.renderLiveRegion(), /*#__PURE__*/React.createElement(Control, _extends({}, commonProps, {
|
|
6883
6883
|
innerRef: this.getControlRef,
|
|
6884
6884
|
innerProps: {
|
|
6885
6885
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -6888,9 +6888,9 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6888
6888
|
isDisabled: isDisabled,
|
|
6889
6889
|
isFocused: isFocused,
|
|
6890
6890
|
menuIsOpen: menuIsOpen
|
|
6891
|
-
}), /*#__PURE__*/React
|
|
6891
|
+
}), /*#__PURE__*/React.createElement(ValueContainer, _extends({}, commonProps, {
|
|
6892
6892
|
isDisabled: isDisabled
|
|
6893
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React
|
|
6893
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React.createElement(IndicatorsContainer, _extends({}, commonProps, {
|
|
6894
6894
|
isDisabled: isDisabled
|
|
6895
6895
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
6896
6896
|
}
|
|
@@ -6962,7 +6962,7 @@ Select.defaultProps = defaultProps;
|
|
|
6962
6962
|
|
|
6963
6963
|
var StateManagedSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
6964
6964
|
var baseSelectProps = useStateManager(props);
|
|
6965
|
-
return /*#__PURE__*/React
|
|
6965
|
+
return /*#__PURE__*/React.createElement(Select, _extends({
|
|
6966
6966
|
ref: ref
|
|
6967
6967
|
}, baseSelectProps));
|
|
6968
6968
|
});
|
|
@@ -7004,11 +7004,11 @@ const MultiSelectDropdown = ({
|
|
|
7004
7004
|
const allSelected = getValue();
|
|
7005
7005
|
const hiddenCount = allSelected.length - maxVisible;
|
|
7006
7006
|
if (index < maxVisible) {
|
|
7007
|
-
return /*#__PURE__*/
|
|
7007
|
+
return /*#__PURE__*/React__default.createElement(components.MultiValue, props);
|
|
7008
7008
|
}
|
|
7009
7009
|
if (index === maxVisible && hiddenCount > 0) {
|
|
7010
7010
|
const hiddenLabels = allSelected.slice(maxVisible).map(opt => opt.label).join(", ");
|
|
7011
|
-
return /*#__PURE__*/
|
|
7011
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
7012
7012
|
className: "multi-value-extra",
|
|
7013
7013
|
title: hiddenLabels,
|
|
7014
7014
|
style: {
|
|
@@ -7086,13 +7086,13 @@ const MultiSelectDropdown = ({
|
|
|
7086
7086
|
})
|
|
7087
7087
|
};
|
|
7088
7088
|
const showRequiredError = required && (!selected || selected.length === 0);
|
|
7089
|
-
return /*#__PURE__*/
|
|
7089
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
7090
7090
|
style: {
|
|
7091
7091
|
width: "100%"
|
|
7092
7092
|
},
|
|
7093
7093
|
ref: containerRef,
|
|
7094
7094
|
className: showRequiredError ? "select-required-error" : ""
|
|
7095
|
-
}, /*#__PURE__*/
|
|
7095
|
+
}, /*#__PURE__*/React__default.createElement(StateManagedSelect$1, {
|
|
7096
7096
|
isMulti: isMulti,
|
|
7097
7097
|
options: options,
|
|
7098
7098
|
value: selectedOptions,
|
|
@@ -7105,7 +7105,7 @@ const MultiSelectDropdown = ({
|
|
|
7105
7105
|
menuPortalTarget: document.body,
|
|
7106
7106
|
closeMenuOnSelect: closeMenuOnSelect,
|
|
7107
7107
|
"aria-required": required // ✅ Accessibility hint
|
|
7108
|
-
}), showRequiredError && /*#__PURE__*/
|
|
7108
|
+
}), showRequiredError && /*#__PURE__*/React__default.createElement("div", {
|
|
7109
7109
|
className: "error-text"
|
|
7110
7110
|
}, "This field is required."));
|
|
7111
7111
|
};
|