nexaas-ui-components 1.0.45 → 1.0.46

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 CHANGED
@@ -2822,7 +2822,8 @@ var SelectField = ({
2822
2822
  valueStyle,
2823
2823
  icon,
2824
2824
  emptyMessage,
2825
- small = false
2825
+ small = false,
2826
+ initialMessage
2826
2827
  }) => {
2827
2828
  var _a;
2828
2829
  const { Option, DropdownIndicator, ClearIndicator, SingleValue } = Select.components;
@@ -2938,6 +2939,8 @@ var SelectField = ({
2938
2939
  debounce2,
2939
2940
  " ou mais caracteres para pesquisar"
2940
2941
  ] });
2942
+ } else if (initialMessage && !debounce2 && isSearchable && props.selectProps.inputValue.length === 0) {
2943
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-2 text-neutral-300", children: initialMessage });
2941
2944
  } else if ((props.selectProps.inputValue.length > 0 && isSearchable || !isSearchable || isSearchable && ((_a2 = props == null ? void 0 : props.options) == null ? void 0 : _a2.length) == 0) && ((_b = props == null ? void 0 : props.options) == null ? void 0 : _b.length) == 0) {
2942
2945
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-2 text-dark-blue-300", children: emptyMessage || "Sem opc\u0327o\u0303es disponi\u0301veis" });
2943
2946
  }