nexaas-ui-components 1.0.101 → 1.0.103

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
@@ -126,11 +126,15 @@ var variants = {
126
126
  primary: {
127
127
  text: "relative isolate bg-rose-500 text-white shadow-[0_1px_4px_0_rgba(217,48,99,0.3)] before:content-[''] before:absolute before:inset-0 before:-z-10 before:rounded-lg before:pointer-events-none before:mix-blend-plus-lighter before:bg-gradient-to-b before:from-[rgba(218,48,99,0.2)] before:to-[rgba(218,48,99,0)] hover:bg-gradient-to-b hover:from-rose-start hover:to-rose-end hover:shadow-[0_2px_3px_0_rgba(56,61,77,0.12)] hover:before:opacity-0 active:bg-rose-600 active:shadow-none active:before:opacity-0 disabled:opacity-50 disabled:shadow-none"
128
128
  },
129
+ // Borda button/secondary/border do Figma (#e8e8e9 = neutral-200); neutral-300 era escura demais.
129
130
  secondary: {
130
- text: "bg-surface border-[0.5px] border-neutral-300 text-neutral-600 hover:bg-neutral-100 hover:text-neutral-600 active:text-neutral-600 active:bg-neutral-200 active:shadow-none disabled:opacity-50"
131
+ text: "bg-surface border-[0.5px] border-neutral-200 text-neutral-600 hover:bg-neutral-100 hover:text-neutral-600 active:text-neutral-600 active:bg-neutral-200 active:shadow-none disabled:opacity-50"
131
132
  },
133
+ // Figma "Actions/Icon button" secundário: borda button/secondary/border (#e8e8e9 =
134
+ // neutral-200) e ícone #393c4d (neutral-600). Antes neutral-300/500 deixavam a
135
+ // borda marcada demais e o ícone mais claro que o design.
132
136
  icon: {
133
- text: "shadow-[0_1px_1px_0_rgba(56,61,77,0.1)] gap-1 bg-surface border-[0.5px] border-neutral-300 text-neutral-500 hover:bg-neutral-100 hover:text-neutral-600 active:bg-neutral-200 active:text-neutral-600 disabled:text-neutral-400 disabled:border-[0.5px] disabled:border-disabled disabled:bg-surface disabled:opacity-50 active:shadow-none"
137
+ text: "shadow-[0_1px_1px_0_rgba(56,61,77,0.1)] gap-1 bg-surface border-[0.5px] border-neutral-200 text-neutral-600 hover:bg-neutral-100 hover:text-neutral-600 active:bg-neutral-200 active:text-neutral-600 disabled:text-neutral-400 disabled:border-[0.5px] disabled:border-disabled disabled:bg-surface disabled:opacity-50 active:shadow-none"
134
138
  },
135
139
  // Figma: borda rose-400 (mais clara que o texto rose-500), sem escurecer o
136
140
  // texto em hover/active. Active vira preenchimento sólido rose-500 com
@@ -1342,7 +1346,7 @@ var Popover = ({
1342
1346
  reactTooltip.Tooltip,
1343
1347
  {
1344
1348
  id,
1345
- className: "absolute bg-neutral-700 text-p-md text-neutral-0 rounded-lg shadow-dropdown py-[6px] px-3 max-w-[430px] break-words whitespace-normal",
1349
+ className: "absolute bg-neutral-700 text-p-md text-neutral-0 rounded-lg shadow-dropdown py-[6px] px-3 max-w-[430px] break-words whitespace-normal [&_.react-tooltip-content-wrapper]:p-0",
1346
1350
  classNameArrow: !displayArrow ? style.noArrow : "",
1347
1351
  openOnClick,
1348
1352
  delayHide: 0,
@@ -2221,7 +2225,8 @@ var FilterSelect = ({
2221
2225
  cancelLabel = "Cancelar",
2222
2226
  clearLabel = "Limpar",
2223
2227
  selectAllLabel = "Marcar todos",
2224
- clearButton = true
2228
+ clearButton = true,
2229
+ preloadOptions = false
2225
2230
  }) => {
2226
2231
  const [currentValue, setCurrentValue] = React6.useState(isMulti ? [] : {});
2227
2232
  const [data, setData] = React6.useState(() => options);
@@ -2231,7 +2236,7 @@ var FilterSelect = ({
2231
2236
  );
2232
2237
  const [loading, setLoading] = React6.useState(false);
2233
2238
  const search = async () => {
2234
- if ((filter == null ? void 0 : filter.length) > 0 || (options == null ? void 0 : options.length) > 0) {
2239
+ if (preloadOptions || (filter == null ? void 0 : filter.length) > 0 || (options == null ? void 0 : options.length) > 0) {
2235
2240
  if (fetch) {
2236
2241
  setData(await fetch(filter, subFilter));
2237
2242
  } else {
@@ -3724,16 +3729,16 @@ var customStyles2 = {
3724
3729
  }),
3725
3730
  menu: (provided) => ({
3726
3731
  ...provided,
3727
- marginTop: "4px",
3728
- border: "1px solid var(--neutral-300)",
3729
- boxShadow: "none",
3732
+ marginTop: "8px",
3733
+ border: "0.5px solid var(--stroke)",
3734
+ boxShadow: "2px 4px 8px 0px rgba(57,60,77,0.1)",
3730
3735
  borderRadius: "8px",
3731
3736
  background: "var(--surface)",
3732
3737
  zIndex: 60
3733
3738
  }),
3734
3739
  menuList: (provided) => ({
3735
3740
  ...provided,
3736
- padding: "0px 8px"
3741
+ padding: "8px"
3737
3742
  }),
3738
3743
  singleValue: (base, state) => ({
3739
3744
  ...base,
@@ -3796,13 +3801,17 @@ var customStyles2 = {
3796
3801
  cursor: state.isDisabled ? "auto" : "pointer",
3797
3802
  pointerEvents: state.isDisabled ? "none" : "",
3798
3803
  borderRadius: "8px",
3799
- margin: "4px 0px",
3800
- padding: "10px 12px",
3804
+ // 4px entre opções; a última encosta no padding de 8px da lista.
3805
+ margin: "0px 0px 4px",
3806
+ padding: "12px",
3807
+ "&:last-child": {
3808
+ marginBottom: "0px"
3809
+ },
3801
3810
  backgroundColor: state.isSelected ? "var(--blue-700)" : "var(--surface)",
3802
3811
  color,
3803
3812
  fontWeight: state.isSelected ? 700 : 400,
3804
3813
  "&:hover": {
3805
- backgroundColor: state.isSelected ? "var(--blue-700)" : "var(--light-200)"
3814
+ backgroundColor: state.isSelected ? "var(--blue-700)" : "var(--light-100)"
3806
3815
  },
3807
3816
  "&:active": {
3808
3817
  backgroundColor: "var(--blue-700)",