nexaas-ui-components 1.0.44 → 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
@@ -2118,7 +2118,7 @@ function InputMoney({
2118
2118
  fieldValidationMessages.map((message, index) => /* @__PURE__ */ jsxRuntime.jsx(
2119
2119
  "div",
2120
2120
  {
2121
- className: "text-dangerous-500 text-xs mt-1 ml-[2px]",
2121
+ className: "text-dangerous-500 text-p-xs mt-1 ml-[2px]",
2122
2122
  role: "alert",
2123
2123
  "aria-label": message,
2124
2124
  children: message
@@ -2326,7 +2326,7 @@ function InputNumber({
2326
2326
  fieldValidationMessages.map((message, index) => /* @__PURE__ */ jsxRuntime.jsx(
2327
2327
  "div",
2328
2328
  {
2329
- className: "absolute text-dangerous-500 text-xs left-[4px] -bottom-[18px]",
2329
+ className: "absolute text-dangerous-500 text-p-xs left-[4px] -bottom-[18px]",
2330
2330
  role: "alert",
2331
2331
  "aria-label": message,
2332
2332
  children: message
@@ -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
  }