nexaas-ui-components 1.0.102 → 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,
@@ -3725,16 +3729,16 @@ var customStyles2 = {
3725
3729
  }),
3726
3730
  menu: (provided) => ({
3727
3731
  ...provided,
3728
- marginTop: "4px",
3729
- border: "1px solid var(--neutral-300)",
3730
- boxShadow: "none",
3732
+ marginTop: "8px",
3733
+ border: "0.5px solid var(--stroke)",
3734
+ boxShadow: "2px 4px 8px 0px rgba(57,60,77,0.1)",
3731
3735
  borderRadius: "8px",
3732
3736
  background: "var(--surface)",
3733
3737
  zIndex: 60
3734
3738
  }),
3735
3739
  menuList: (provided) => ({
3736
3740
  ...provided,
3737
- padding: "0px 8px"
3741
+ padding: "8px"
3738
3742
  }),
3739
3743
  singleValue: (base, state) => ({
3740
3744
  ...base,
@@ -3797,13 +3801,17 @@ var customStyles2 = {
3797
3801
  cursor: state.isDisabled ? "auto" : "pointer",
3798
3802
  pointerEvents: state.isDisabled ? "none" : "",
3799
3803
  borderRadius: "8px",
3800
- margin: "4px 0px",
3801
- 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
+ },
3802
3810
  backgroundColor: state.isSelected ? "var(--blue-700)" : "var(--surface)",
3803
3811
  color,
3804
3812
  fontWeight: state.isSelected ? 700 : 400,
3805
3813
  "&:hover": {
3806
- backgroundColor: state.isSelected ? "var(--blue-700)" : "var(--light-200)"
3814
+ backgroundColor: state.isSelected ? "var(--blue-700)" : "var(--light-100)"
3807
3815
  },
3808
3816
  "&:active": {
3809
3817
  backgroundColor: "var(--blue-700)",