fis-component 0.1.35 → 0.1.36

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
@@ -9295,14 +9295,14 @@ const defaultGetPrefixCls = (suffixCls, customizePrefixCls) => {
9295
9295
  return suffixCls ? `${defaultPrefixCls}-${suffixCls}` : defaultPrefixCls;
9296
9296
  };
9297
9297
  // zombieJ: 🚨 Do not pass `defaultRenderEmpty` here since it will cause circular dependency.
9298
- const ConfigContext = /*#__PURE__*/React__namespace.createContext({
9298
+ const ConfigContext$1 = /*#__PURE__*/React__namespace.createContext({
9299
9299
  // We provide a default function for Context without provider
9300
9300
  getPrefixCls: defaultGetPrefixCls,
9301
9301
  iconPrefixCls: defaultIconPrefixCls
9302
9302
  });
9303
9303
  const {
9304
9304
  Consumer: ConfigConsumer
9305
- } = ConfigContext;
9305
+ } = ConfigContext$1;
9306
9306
  const EMPTY_OBJECT = {};
9307
9307
  /**
9308
9308
  * Get ConfigProvider configured component props.
@@ -9313,7 +9313,7 @@ const EMPTY_OBJECT = {};
9313
9313
  * which will waste both compare calculation & memory.
9314
9314
  */
9315
9315
  function useComponentConfig(propName) {
9316
- const context = React__namespace.useContext(ConfigContext);
9316
+ const context = React__namespace.useContext(ConfigContext$1);
9317
9317
  const {
9318
9318
  getPrefixCls,
9319
9319
  direction,
@@ -10667,7 +10667,7 @@ const {
10667
10667
  const {
10668
10668
  getPrefixCls,
10669
10669
  iconPrefixCls
10670
- } = React.useContext(ConfigContext);
10670
+ } = React.useContext(ConfigContext$1);
10671
10671
  const rootPrefixCls = getPrefixCls();
10672
10672
  return {
10673
10673
  rootPrefixCls,
@@ -10687,7 +10687,7 @@ const {
10687
10687
  useCSP: () => {
10688
10688
  const {
10689
10689
  csp
10690
- } = React.useContext(ConfigContext);
10690
+ } = React.useContext(ConfigContext$1);
10691
10691
  return csp !== null && csp !== void 0 ? csp : {};
10692
10692
  },
10693
10693
  getResetStyles: (token, config) => {
@@ -12028,19 +12028,19 @@ const ProviderChildren = props => {
12028
12028
  disabled: componentDisabled
12029
12029
  }, childNode);
12030
12030
  }
12031
- return /*#__PURE__*/React__namespace.createElement(ConfigContext.Provider, {
12031
+ return /*#__PURE__*/React__namespace.createElement(ConfigContext$1.Provider, {
12032
12032
  value: memoedConfig
12033
12033
  }, childNode);
12034
12034
  };
12035
12035
  const ConfigProvider = props => {
12036
- const context = React__namespace.useContext(ConfigContext);
12036
+ const context = React__namespace.useContext(ConfigContext$1);
12037
12037
  const antLocale = React__namespace.useContext(LocaleContext);
12038
12038
  return /*#__PURE__*/React__namespace.createElement(ProviderChildren, Object.assign({
12039
12039
  parentContext: context,
12040
12040
  legacyLocale: antLocale
12041
12041
  }, props));
12042
12042
  };
12043
- ConfigProvider.ConfigContext = ConfigContext;
12043
+ ConfigProvider.ConfigContext = ConfigContext$1;
12044
12044
  ConfigProvider.SizeContext = SizeContext;
12045
12045
  ConfigProvider.config = setGlobalConfig;
12046
12046
  ConfigProvider.useConfig = useConfig;
@@ -14157,7 +14157,7 @@ const showWaveEffect = (target, info) => {
14157
14157
  const useWave = (nodeRef, className, component) => {
14158
14158
  const {
14159
14159
  wave
14160
- } = React__namespace.useContext(ConfigContext);
14160
+ } = React__namespace.useContext(ConfigContext$1);
14161
14161
  const [, token, hashId] = useToken();
14162
14162
  const showWave = useEvent(event => {
14163
14163
  const node = nodeRef.current;
@@ -14196,7 +14196,7 @@ const Wave = props => {
14196
14196
  } = props;
14197
14197
  const {
14198
14198
  getPrefixCls
14199
- } = React.useContext(ConfigContext);
14199
+ } = React.useContext(ConfigContext$1);
14200
14200
  const containerRef = React.useRef(null);
14201
14201
  // ============================== Style ===============================
14202
14202
  const prefixCls = getPrefixCls('wave');
@@ -14336,7 +14336,7 @@ const Compact$1 = props => {
14336
14336
  const {
14337
14337
  getPrefixCls,
14338
14338
  direction: directionConfig
14339
- } = React__namespace.useContext(ConfigContext);
14339
+ } = React__namespace.useContext(ConfigContext$1);
14340
14340
  const {
14341
14341
  size,
14342
14342
  direction,
@@ -14389,7 +14389,7 @@ const ButtonGroup = props => {
14389
14389
  const {
14390
14390
  getPrefixCls,
14391
14391
  direction
14392
- } = React__namespace.useContext(ConfigContext);
14392
+ } = React__namespace.useContext(ConfigContext$1);
14393
14393
  const {
14394
14394
  prefixCls: customizePrefixCls,
14395
14395
  size,
@@ -15701,7 +15701,7 @@ const CollapsePanel = /*#__PURE__*/React__namespace.forwardRef((props, ref) => {
15701
15701
  }
15702
15702
  const {
15703
15703
  getPrefixCls
15704
- } = React__namespace.useContext(ConfigContext);
15704
+ } = React__namespace.useContext(ConfigContext$1);
15705
15705
  const {
15706
15706
  prefixCls: customizePrefixCls,
15707
15707
  className,
@@ -17385,7 +17385,7 @@ const InternalCompoundedButton = /*#__PURE__*/React.forwardRef((props, ref) => {
17385
17385
  const mergedType = type || 'default';
17386
17386
  const {
17387
17387
  button
17388
- } = React.useContext(ConfigContext);
17388
+ } = React.useContext(ConfigContext$1);
17389
17389
  const shape = customizeShape || (button === null || button === void 0 ? void 0 : button.shape) || 'default';
17390
17390
  const [mergedColor, mergedVariant] = React.useMemo(() => {
17391
17391
  // >>>>> Local
@@ -22184,7 +22184,7 @@ const PurePanel$5 = props => {
22184
22184
  restProps = __rest$n(props, ["prefixCls", "className", "icon", "type", "message", "description", "btn", "actions", "closable", "closeIcon", "className"]);
22185
22185
  const {
22186
22186
  getPrefixCls
22187
- } = React__namespace.useContext(ConfigContext);
22187
+ } = React__namespace.useContext(ConfigContext$1);
22188
22188
  const mergedActions = actions !== null && actions !== void 0 ? actions : btn;
22189
22189
  if (process.env.NODE_ENV !== 'production') {
22190
22190
  const warning = devUseWarning('Notification');
@@ -22334,7 +22334,7 @@ const Holder = /*#__PURE__*/React.forwardRef((props, ref) => {
22334
22334
  getPopupContainer,
22335
22335
  notification,
22336
22336
  direction
22337
- } = React.useContext(ConfigContext);
22337
+ } = React.useContext(ConfigContext$1);
22338
22338
  const [, token] = useToken();
22339
22339
  const prefixCls = staticPrefixCls || getPrefixCls('notification');
22340
22340
  // =============================== Style ===============================
@@ -22491,7 +22491,7 @@ const genPurePanel = (Component, alignPropName, postProps, defaultPrefixCls, get
22491
22491
  });
22492
22492
  const {
22493
22493
  getPrefixCls
22494
- } = React__namespace.useContext(ConfigContext);
22494
+ } = React__namespace.useContext(ConfigContext$1);
22495
22495
  const prefixCls = getPrefixCls(defaultPrefixCls || 'select', customizePrefixCls);
22496
22496
  React__namespace.useEffect(() => {
22497
22497
  // We do not care about ssr
@@ -29217,7 +29217,7 @@ const DefaultRenderEmpty = props => {
29217
29217
  } = props;
29218
29218
  const {
29219
29219
  getPrefixCls
29220
- } = React.useContext(ConfigContext);
29220
+ } = React.useContext(ConfigContext$1);
29221
29221
  const prefix = getPrefixCls('empty');
29222
29222
  switch (componentName) {
29223
29223
  case 'Table':
@@ -29256,7 +29256,7 @@ const useVariant = (component, variant, legacyBordered) => {
29256
29256
  const {
29257
29257
  variant: configVariant,
29258
29258
  [component]: componentConfig
29259
- } = React__namespace.useContext(ConfigContext);
29259
+ } = React__namespace.useContext(ConfigContext$1);
29260
29260
  const ctxVariant = React__namespace.useContext(VariantContext);
29261
29261
  const configComponentVariant = componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.variant;
29262
29262
  let mergedVariant;
@@ -30617,7 +30617,7 @@ const InternalSelect = (props, ref) => {
30617
30617
  virtual,
30618
30618
  popupMatchSelectWidth: contextPopupMatchSelectWidth,
30619
30619
  popupOverflow
30620
- } = React__namespace.useContext(ConfigContext);
30620
+ } = React__namespace.useContext(ConfigContext$1);
30621
30621
  const {
30622
30622
  showSearch,
30623
30623
  style: contextStyle,
@@ -31684,7 +31684,7 @@ const PurePanel$3 = props => {
31684
31684
  } = props;
31685
31685
  const {
31686
31686
  getPrefixCls
31687
- } = React__namespace.useContext(ConfigContext);
31687
+ } = React__namespace.useContext(ConfigContext$1);
31688
31688
  const prefixCls = getPrefixCls('tooltip', customizePrefixCls);
31689
31689
  const [wrapCSSVar, hashId, cssVarCls] = useStyle$d(prefixCls);
31690
31690
  // Color
@@ -34396,7 +34396,7 @@ const Sider = /*#__PURE__*/React__namespace.forwardRef((props, ref) => {
34396
34396
  const {
34397
34397
  getPrefixCls,
34398
34398
  direction
34399
- } = React.useContext(ConfigContext);
34399
+ } = React.useContext(ConfigContext$1);
34400
34400
  const prefixCls = getPrefixCls('layout-sider', customizePrefixCls);
34401
34401
  const [wrapCSSVar, hashId, cssVarCls] = useStyle$c(prefixCls);
34402
34402
  // ========================= Responsive =========================
@@ -34524,7 +34524,7 @@ const MenuDivider = props => {
34524
34524
  restProps = __rest$h(props, ["prefixCls", "className", "dashed"]);
34525
34525
  const {
34526
34526
  getPrefixCls
34527
- } = React__namespace.useContext(ConfigContext);
34527
+ } = React__namespace.useContext(ConfigContext$1);
34528
34528
  const prefixCls = getPrefixCls('menu', customizePrefixCls);
34529
34529
  const classString = classNames({
34530
34530
  [`${prefixCls}-item-divider-dashed`]: !!dashed
@@ -35725,7 +35725,7 @@ const InternalMenu = /*#__PURE__*/React.forwardRef((props, ref) => {
35725
35725
  getPopupContainer,
35726
35726
  direction,
35727
35727
  menu
35728
- } = React__namespace.useContext(ConfigContext);
35728
+ } = React__namespace.useContext(ConfigContext$1);
35729
35729
  const rootPrefixCls = getPrefixCls();
35730
35730
  const {
35731
35731
  prefixCls: customizePrefixCls,
@@ -36204,7 +36204,7 @@ const Dropdown$1 = props => {
36204
36204
  getPrefixCls,
36205
36205
  direction,
36206
36206
  dropdown
36207
- } = React__namespace.useContext(ConfigContext);
36207
+ } = React__namespace.useContext(ConfigContext$1);
36208
36208
  const mergedPopupRender = popupRender || dropdownRender;
36209
36209
  // Warning for deprecated usage
36210
36210
  const warning = devUseWarning('Dropdown');
@@ -43286,7 +43286,7 @@ const InternalRadio = (props, ref) => {
43286
43286
  getPrefixCls,
43287
43287
  direction,
43288
43288
  radio
43289
- } = React__namespace.useContext(ConfigContext);
43289
+ } = React__namespace.useContext(ConfigContext$1);
43290
43290
  const innerRef = React__namespace.useRef(null);
43291
43291
  const mergedRef = composeRef(ref, innerRef);
43292
43292
  const {
@@ -43389,7 +43389,7 @@ const RadioGroup$1 = /*#__PURE__*/React__namespace.forwardRef((props, ref) => {
43389
43389
  const {
43390
43390
  getPrefixCls,
43391
43391
  direction
43392
- } = React__namespace.useContext(ConfigContext);
43392
+ } = React__namespace.useContext(ConfigContext$1);
43393
43393
  const {
43394
43394
  name: formItemName
43395
43395
  } = React__namespace.useContext(FormItemInputContext);
@@ -43506,7 +43506,7 @@ var __rest$d = undefined && undefined.__rest || function (s, e) {
43506
43506
  const RadioButton = (props, ref) => {
43507
43507
  const {
43508
43508
  getPrefixCls
43509
- } = React__namespace.useContext(ConfigContext);
43509
+ } = React__namespace.useContext(ConfigContext$1);
43510
43510
  const {
43511
43511
  prefixCls: customizePrefixCls
43512
43512
  } = props,
@@ -46716,7 +46716,7 @@ const InternalCheckbox = (props, ref) => {
46716
46716
  getPrefixCls,
46717
46717
  direction,
46718
46718
  checkbox
46719
- } = React__namespace.useContext(ConfigContext);
46719
+ } = React__namespace.useContext(ConfigContext$1);
46720
46720
  const checkboxGroup = React__namespace.useContext(GroupContext);
46721
46721
  const {
46722
46722
  isFormItemInput
@@ -46828,7 +46828,7 @@ const CheckboxGroup = /*#__PURE__*/React__namespace.forwardRef((props, ref) => {
46828
46828
  const {
46829
46829
  getPrefixCls,
46830
46830
  direction
46831
- } = React__namespace.useContext(ConfigContext);
46831
+ } = React__namespace.useContext(ConfigContext$1);
46832
46832
  const [value, setValue] = React__namespace.useState(restProps.value || defaultValue || []);
46833
46833
  const [registeredValues, setRegisteredValues] = React__namespace.useState([]);
46834
46834
  React__namespace.useEffect(() => {
@@ -47791,7 +47791,7 @@ const generateRangePicker = generateConfig => {
47791
47791
  direction,
47792
47792
  getPopupContainer,
47793
47793
  rangePicker
47794
- } = React.useContext(ConfigContext);
47794
+ } = React.useContext(ConfigContext$1);
47795
47795
  const prefixCls = getPrefixCls('picker', customizePrefixCls);
47796
47796
  const {
47797
47797
  compactSize,
@@ -47944,7 +47944,7 @@ const generatePicker$1 = generateConfig => {
47944
47944
  getPopupContainer,
47945
47945
  // Consume different styles according to different names
47946
47946
  [consumerName]: consumerStyle
47947
- } = React.useContext(ConfigContext);
47947
+ } = React.useContext(ConfigContext$1);
47948
47948
  const prefixCls = getPrefixCls('picker', customizePrefixCls);
47949
47949
  const {
47950
47950
  compactSize,
@@ -48207,7 +48207,7 @@ const SpaceAddon = /*#__PURE__*/React.forwardRef((props, ref) => {
48207
48207
  const {
48208
48208
  getPrefixCls,
48209
48209
  direction: directionConfig
48210
- } = React.useContext(ConfigContext);
48210
+ } = React.useContext(ConfigContext$1);
48211
48211
  const prefixCls = getPrefixCls('space-addon', customizePrefixCls);
48212
48212
  const [wrapCSSVar, hashId, cssVarCls] = useStyle$5(prefixCls);
48213
48213
  const {
@@ -48441,7 +48441,7 @@ const DropdownButton = props => {
48441
48441
  getPopupContainer: getContextPopupContainer,
48442
48442
  getPrefixCls,
48443
48443
  direction
48444
- } = React__namespace.useContext(ConfigContext);
48444
+ } = React__namespace.useContext(ConfigContext$1);
48445
48445
  const {
48446
48446
  prefixCls: customizePrefixCls,
48447
48447
  type = 'default',
@@ -50551,7 +50551,7 @@ const GlobalHolder = /*#__PURE__*/React.forwardRef((props, ref) => {
50551
50551
  } = props;
50552
50552
  const {
50553
50553
  getPrefixCls
50554
- } = React.useContext(ConfigContext);
50554
+ } = React.useContext(ConfigContext$1);
50555
50555
  const prefixCls = defaultGlobalConfig.prefixCls || getPrefixCls('notification');
50556
50556
  const appConfig = React.useContext(AppConfigContext);
50557
50557
  const [api, holder] = useInternalNotification(Object.assign(Object.assign(Object.assign({}, notificationConfig), {
@@ -57631,7 +57631,7 @@ const Tree$1 = /*#__PURE__*/React.forwardRef((props, ref) => {
57631
57631
  direction,
57632
57632
  virtual,
57633
57633
  tree
57634
- } = React.useContext(ConfigContext);
57634
+ } = React.useContext(ConfigContext$1);
57635
57635
  const {
57636
57636
  prefixCls: customizePrefixCls,
57637
57637
  className,
@@ -57922,7 +57922,7 @@ const DirectoryTree = (_a, ref) => {
57922
57922
  const {
57923
57923
  getPrefixCls,
57924
57924
  direction
57925
- } = React__namespace.useContext(ConfigContext);
57925
+ } = React__namespace.useContext(ConfigContext$1);
57926
57926
  const {
57927
57927
  prefixCls: customizePrefixCls,
57928
57928
  className,
@@ -58266,7 +58266,7 @@ const FilterDropdown = props => {
58266
58266
  const {
58267
58267
  direction,
58268
58268
  renderEmpty
58269
- } = React__namespace.useContext(ConfigContext);
58269
+ } = React__namespace.useContext(ConfigContext$1);
58270
58270
  if (typeof column.filterDropdown === 'function') {
58271
58271
  dropdownContent = column.filterDropdown({
58272
58272
  prefixCls: `${dropdownPrefixCls}-custom`,
@@ -60589,7 +60589,7 @@ const InternalTable = (props, ref) => {
60589
60589
  renderEmpty,
60590
60590
  getPrefixCls,
60591
60591
  getPopupContainer: getContextPopupContainer
60592
- } = React__namespace.useContext(ConfigContext);
60592
+ } = React__namespace.useContext(ConfigContext$1);
60593
60593
  const mergedSize = useSize(customizeSize);
60594
60594
  const tableLocale = Object.assign(Object.assign({}, contextLocale.Table), locale);
60595
60595
  const rawData = dataSource || EMPTY_LIST;
@@ -63677,7 +63677,20 @@ const ToastProvider = ({ children, }) => {
63677
63677
  return (jsxRuntime.jsxs(ToastContext.Provider, { value: { showToast }, children: [children, toasts.length > 0 && (jsxRuntime.jsx(ToastWrapper, { "$position": toasts[0].position || "top-right", children: toasts.map((toast, index) => (jsxRuntime.jsx(FISToast, { ...toast }, index))) }))] }));
63678
63678
  };
63679
63679
 
63680
- const FISThemeProvider = ({ theme: theme$1 = theme, children, }) => (jsxRuntime.jsxs(styled.ThemeProvider, { theme: theme$1, children: [jsxRuntime.jsx(GlobalStyle, { theme: theme$1 }), jsxRuntime.jsx(NotificationProvider, { children: jsxRuntime.jsx(ToastProvider, { children: children }) })] }));
63680
+ const ConfigContext = React.createContext({});
63681
+ /** Có thể lồng nhau, config bên trong ghi đè config bên ngoài theo từng component */
63682
+ const FISConfigProvider = ({ config, children, }) => {
63683
+ const parent = React.useContext(ConfigContext);
63684
+ const value = React.useMemo(() => ({
63685
+ ...parent,
63686
+ ...config,
63687
+ select: { ...parent.select, ...config?.select },
63688
+ }), [parent, config]);
63689
+ return (jsxRuntime.jsx(ConfigContext.Provider, { value: value, children: children }));
63690
+ };
63691
+ const useFISConfig = () => React.useContext(ConfigContext);
63692
+
63693
+ const FISThemeProvider = ({ theme: theme$1 = theme, config, children, }) => (jsxRuntime.jsxs(styled.ThemeProvider, { theme: theme$1, children: [jsxRuntime.jsx(GlobalStyle, { theme: theme$1 }), jsxRuntime.jsx(FISConfigProvider, { config: config, children: jsxRuntime.jsx(NotificationProvider, { children: jsxRuntime.jsx(ToastProvider, { children: children }) }) })] }));
63681
63694
 
63682
63695
  const DivSwitchLabelContainerSC = styled.div `
63683
63696
  display: flex;
@@ -75747,13 +75760,25 @@ const SelectedTagsWrapper = styled.div `
75747
75760
  ${getTheme("com/combo-box/selected-data/horizontal-gap")}
75748
75761
  );
75749
75762
  `;
75763
+ const SpanClearIconSC = styled.span `
75764
+ display: flex;
75765
+ align-items: center;
75766
+ justify-content: center;
75767
+ width: 100%;
75768
+ height: 100%;
75769
+ cursor: pointer;
75770
+ pointer-events: auto;
75771
+ `;
75750
75772
 
75751
75773
  function isMenuSize(value) {
75752
75774
  return value === "sm" || value === "md";
75753
75775
  }
75754
75776
 
75755
- const FISSelect = React.forwardRef(({ className, style, size = "md", options, value, disabled = false, textLabel = "", iconLabel, required, negative, message, positive, multi, placeholder, placeholderSearch, loading, onChange, renderOption, onClickIconLabel, displayValue, multiDisplayText, searchValue, onSearchChange, portal = true, maxHeight, onPopupScroll, onOpen, hideChip, tooltipTitle, tooltipVariant = "primary", noData, noResult, noDataText, noResultText, footer, searchDebounce, showSearch, onSearchInput, virtualized, virtualItemHeight, removeSelectedText, selectedGroupLabel, ...restProps }, ref) => {
75777
+ const FISSelect = React.forwardRef(({ className, style, size = "md", options, value, disabled = false, textLabel = "", iconLabel, required, negative, message, positive, multi, placeholder, placeholderSearch, loading, onChange, renderOption, onClickIconLabel, displayValue, multiDisplayText, searchValue, onSearchChange, portal = true, maxHeight, onPopupScroll, onOpen, hideChip, tooltipTitle, tooltipVariant = "primary", noData, noResult, noDataText, noResultText, footer, searchDebounce, showSearch, onSearchInput, virtualized, virtualItemHeight, removeSelectedText, selectedGroupLabel, allowClear: allowClearProp, onClear, ...restProps }, ref) => {
75778
+ const config = useFISConfig();
75779
+ const allowClear = allowClearProp ?? config.select?.allowClear ?? false;
75756
75780
  const [isOpen, setIsOpen] = React.useState(false);
75781
+ const [isHovered, setIsHovered] = React.useState(false);
75757
75782
  const [referenceElement, setReferenceElement] = React.useState(null);
75758
75783
  const [popperElement, setPopperElement] = React.useState(null);
75759
75784
  const [cachedSelectedItem, setCachedSelectedItem] = React.useState(null);
@@ -75843,6 +75868,23 @@ const FISSelect = React.forwardRef(({ className, style, size = "md", options, va
75843
75868
  onOpen?.();
75844
75869
  }
75845
75870
  }, [disabled, onOpen]);
75871
+ const hasSelectedValue = multi
75872
+ ? Array.isArray(value) && value.length > 0
75873
+ : value !== undefined && value !== null && value !== "";
75874
+ const showClearIcon = allowClear && !disabled && hasSelectedValue && isHovered;
75875
+ const handleClear = React.useCallback((event) => {
75876
+ // Không để click lan lên wrapper làm mở dropdown
75877
+ event.stopPropagation();
75878
+ setIsOpen(false);
75879
+ if (multi) {
75880
+ onChange([]);
75881
+ }
75882
+ else {
75883
+ onChange(undefined);
75884
+ }
75885
+ setCachedSelectedItem(null);
75886
+ onClear?.();
75887
+ }, [multi, onChange, onClear]);
75846
75888
  const handleOptionRemove = React.useCallback((option) => {
75847
75889
  if (multi && Array.isArray(value)) {
75848
75890
  const newValues = value.filter((v) => v !== option.value);
@@ -75964,7 +76006,7 @@ const FISSelect = React.forwardRef(({ className, style, size = "md", options, va
75964
76006
  }
75965
76007
  }, [isOpen, multi]);
75966
76008
  const renderSelectInput = () => {
75967
- const selectInput = (jsxRuntime.jsx(DivInputWrapperSC, { ref: setReferenceElement, onClick: handleToggle, "$hasValue": !!value && !disabled, children: jsxRuntime.jsx(FISSelectItem, { ...restProps, onBlur: handleBlur, ref: inputRef, size: size, placeholder: placeholder, iconSuffix: isOpen ? jsxRuntime.jsx(ArrowUpIcon, {}) : jsxRuntime.jsx(ArrowDownIcon, {}), value: computedDisplayValue, onChange: () => undefined, disabled: disabled, activeDropdown: isOpen, negative: negative }) }));
76009
+ const selectInput = (jsxRuntime.jsx(DivInputWrapperSC, { ref: setReferenceElement, onClick: handleToggle, onMouseEnter: () => setIsHovered(true), onMouseLeave: () => setIsHovered(false), "$hasValue": !!value && !disabled, children: jsxRuntime.jsx(FISSelectItem, { ...restProps, onBlur: handleBlur, ref: inputRef, size: size, placeholder: placeholder, iconSuffix: showClearIcon ? (jsxRuntime.jsx(SpanClearIconSC, { role: "button", "aria-label": "Xo\u00E1", onMouseDown: (e) => e.preventDefault(), onClick: handleClear, children: jsxRuntime.jsx(CloseIcon, {}) })) : isOpen ? (jsxRuntime.jsx(ArrowUpIcon, {})) : (jsxRuntime.jsx(ArrowDownIcon, {})), value: computedDisplayValue, onChange: () => undefined, disabled: disabled, activeDropdown: isOpen, negative: negative }) }));
75968
76010
  if (tooltipTitle) {
75969
76011
  return (jsxRuntime.jsx(FISTooltip, { title: tooltipTitle, variant: tooltipVariant, smartPlacement: true, children: selectInput }));
75970
76012
  }
@@ -76676,6 +76718,7 @@ exports.FISCheckboxGroup = FISCheckboxGroup;
76676
76718
  exports.FISChipButton = FISChipButton;
76677
76719
  exports.FISCollapse = FISCollapse;
76678
76720
  exports.FISCombobox = FISCombobox;
76721
+ exports.FISConfigProvider = FISConfigProvider;
76679
76722
  exports.FISDateRange = FISDateRange;
76680
76723
  exports.FISDivider = FISDivider;
76681
76724
  exports.FISIconButton = FISIconButton;
@@ -76712,6 +76755,7 @@ exports.FISToast = FISToast;
76712
76755
  exports.FISTooltip = FISTooltip;
76713
76756
  exports.SegmentedPanelItem = SegmentedPanelItem;
76714
76757
  exports.TabPanelItem = TabPanelItem;
76758
+ exports.useFISConfig = useFISConfig;
76715
76759
  exports.useNotification = useNotification;
76716
76760
  exports.useToast = useToast;
76717
76761
  //# sourceMappingURL=index.js.map