nexaas-ui-components 1.0.100 → 1.0.102

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
@@ -581,7 +581,7 @@ var Input = ({
581
581
  // aqui: eles criam um anel por fora do input, fora do padrao do design system.
582
582
  input: `text-p-md pl-2 peer text-paragraph bg-surface shadow-input border-[0.5px] rounded-lg outline-none block pb-[10px] h-[46px] w-full disabled:bg-[var(--input-bg-disabled)] disabled:border-[var(--input-border-disabled)] disabled:text-disabled disabled:cursor-not-allowed disabled:shadow-none input-focus-ring ${label ? "pt-[22px]" : "pt-[10px]"}
583
583
  ${!hasError ? "border-stroke" : ""}`,
584
- icon: `absolute bg-neutral-100 h-[44px] top-[1px] left-[1.5px] w-[38px] rounded-l-lg text-[20px] ${hasError ? "text-dangerous-500" : "text-label peer-focus:text-blue-500"} peer-focus:border-blue-500`,
584
+ icon: `absolute bg-neutral-100 h-[43px] top-[1.5px] left-[2px] w-[38px] rounded-l-lg text-[20px] ${hasError ? "text-dangerous-500" : "text-label peer-focus:text-blue-500"} peer-focus:border-blue-500`,
585
585
  rightIcon: "absolute h-[44px] top-[1px] right-[1.5px] w-[38px] text-[22px]",
586
586
  // `-translate-y-[10px]` (e nao `-translate-y-3`/12px): o label flutuante ficava colado
587
587
  // demais no topo do campo. Os 2px a menos de deslocamento aproximam o espaco acima do
@@ -2221,7 +2221,8 @@ var FilterSelect = ({
2221
2221
  cancelLabel = "Cancelar",
2222
2222
  clearLabel = "Limpar",
2223
2223
  selectAllLabel = "Marcar todos",
2224
- clearButton = true
2224
+ clearButton = true,
2225
+ preloadOptions = false
2225
2226
  }) => {
2226
2227
  const [currentValue, setCurrentValue] = React6.useState(isMulti ? [] : {});
2227
2228
  const [data, setData] = React6.useState(() => options);
@@ -2231,7 +2232,7 @@ var FilterSelect = ({
2231
2232
  );
2232
2233
  const [loading, setLoading] = React6.useState(false);
2233
2234
  const search = async () => {
2234
- if ((filter == null ? void 0 : filter.length) > 0 || (options == null ? void 0 : options.length) > 0) {
2235
+ if (preloadOptions || (filter == null ? void 0 : filter.length) > 0 || (options == null ? void 0 : options.length) > 0) {
2235
2236
  if (fetch) {
2236
2237
  setData(await fetch(filter, subFilter));
2237
2238
  } else {