nexaas-ui-components 1.0.83 → 1.0.85

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
@@ -573,7 +573,9 @@ var Input = ({
573
573
  const hasError = fieldValidationMessages.some((item) => item !== void 0);
574
574
  const [showPassword, setShowPassword] = React5__namespace.default.useState(false);
575
575
  const styles = {
576
- 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 focus-visible:ring-[1.5px] focus-visible:ring-blue-500 focus-visible:ring-offset-[2px] focus-visible:rounded-[2px] ${label ? "pt-[22px]" : "pt-[10px]"}
576
+ // Sem `focus-visible:rounded-*`: o anel de foco tem que seguir o mesmo raio do campo
577
+ // (`rounded-lg`) — reduzir pra 2px no foco deixava o anel quadrado sobre um campo arredondado.
578
+ 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 focus-visible:ring-[1.5px] focus-visible:ring-blue-500 focus-visible:ring-offset-[2px] ${label ? "pt-[22px]" : "pt-[10px]"}
577
579
  ${!hasError ? "border-stroke" : ""}`,
578
580
  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`,
579
581
  rightIcon: "absolute h-[44px] top-[1px] right-[1.5px] w-[38px] text-[22px]",
@@ -1572,7 +1574,7 @@ var FilterCalendar = ({
1572
1574
  as: "button",
1573
1575
  className: clsx9__default.default(
1574
1576
  "group/chip flex items-center justify-center gap-[6px] rounded-lg px-3 py-2 text-p-md font-bold outline-none focus-visible:ring-[1.5px] focus-visible:ring-blue-500 focus-visible:ring-offset-[2px]",
1575
- hasValue ? "bg-blue-100 border-[0.5px] border-blue-500 text-blue-500 shadow-[0px_1px_3px_0px_rgba(0,158,219,0.2)] hover:bg-blue-500 hover:border-transparent hover:text-white active:bg-[#007fb0] active:border-transparent active:text-white" : `bg-surface border-[0.5px] border-stroke ${labelClassName != null ? labelClassName : "text-paragraph"} shadow-[0px_1px_2px_0px_rgba(56,61,77,0.1)] hover:bg-neutral-50 active:bg-blue-100 active:border-blue-500 active:text-blue-500`
1577
+ hasValue ? "bg-blue-100 border-[0.5px] border-blue-500 text-blue-500 shadow-[0px_1px_3px_0px_rgba(0,158,219,0.2)] group-hover:bg-blue-500 group-hover:border-transparent group-hover:text-white active:bg-[#007fb0] active:border-transparent active:text-white" : `bg-surface border-[0.5px] border-stroke ${labelClassName != null ? labelClassName : "text-paragraph"} shadow-[0px_1px_2px_0px_rgba(56,61,77,0.1)] hover:bg-neutral-50 active:bg-blue-100 active:border-blue-500 active:text-blue-500`
1576
1578
  ),
1577
1579
  children: [
1578
1580
  icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[18px] leading-none", children: icon }),
@@ -2295,7 +2297,7 @@ var FilterSelect = ({
2295
2297
  as: "button",
2296
2298
  className: clsx9__default.default(
2297
2299
  "group/chip flex items-center justify-center gap-[6px] rounded-lg px-3 py-2 text-p-md font-bold outline-none focus-visible:ring-[1.5px] focus-visible:ring-blue-500 focus-visible:ring-offset-[2px]",
2298
- hasValue ? "bg-blue-100 border-[0.5px] border-blue-500 text-blue-500 shadow-[0px_1px_3px_0px_rgba(0,158,219,0.2)] hover:bg-blue-500 hover:border-transparent hover:text-white active:bg-[#007fb0] active:border-transparent active:text-white" : "bg-surface border-[0.5px] border-stroke text-paragraph shadow-[0px_1px_2px_0px_rgba(56,61,77,0.1)] hover:bg-neutral-50 active:bg-blue-100 active:border-blue-500 active:text-blue-500"
2300
+ hasValue ? "bg-blue-100 border-[0.5px] border-blue-500 text-blue-500 shadow-[0px_1px_3px_0px_rgba(0,158,219,0.2)] group-hover:bg-blue-500 group-hover:border-transparent group-hover:text-white active:bg-[#007fb0] active:border-transparent active:text-white" : "bg-surface border-[0.5px] border-stroke text-paragraph shadow-[0px_1px_2px_0px_rgba(56,61,77,0.1)] hover:bg-neutral-50 active:bg-blue-100 active:border-blue-500 active:text-blue-500"
2299
2301
  ),
2300
2302
  children: [
2301
2303
  icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[18px] leading-none", children: icon }),
@@ -3281,7 +3283,9 @@ var customStyles = {
3281
3283
  border,
3282
3284
  boxShadow: state.isDisabled ? "none" : state.isFocused ? "0 0 0 2px var(--surface), 0 0 0 3.5px var(--blue-500)" : "0px 1px 1.5px 0px rgba(56,61,77,0.12)",
3283
3285
  outline: "none",
3284
- borderRadius: state.isFocused ? "2px" : "0.5rem",
3286
+ // Raio fixo: o anel de foco é desenhado por box-shadow, que segue o borderRadius do
3287
+ // control — trocar pra 2px no foco deixava o anel quadrado sobre um campo arredondado.
3288
+ borderRadius: "0.5rem",
3285
3289
  placeholder: " ",
3286
3290
  height: state.selectProps.smallField ? "30px" : "46px",
3287
3291
  backgroundColor: state.isDisabled ? "var(--light-100)" : "var(--surface)",
@@ -3702,7 +3706,9 @@ var customStyles2 = {
3702
3706
  border,
3703
3707
  boxShadow: state.isDisabled ? "none" : state.isFocused ? "0 0 0 2px var(--surface), 0 0 0 3.5px var(--blue-500)" : "0px 1px 1.5px 0px rgba(56,61,77,0.12)",
3704
3708
  outline: "none",
3705
- borderRadius: state.isFocused ? "2px" : "0.5rem",
3709
+ // Raio fixo: o anel de foco é desenhado por box-shadow, que segue o borderRadius do
3710
+ // control — trocar pra 2px no foco deixava o anel quadrado sobre um campo arredondado.
3711
+ borderRadius: "0.5rem",
3706
3712
  placeholder: " ",
3707
3713
  height: "46px",
3708
3714
  backgroundColor: state.isDisabled ? "var(--input-bg-disabled)" : "var(--surface)",