nexaas-ui-components 1.0.59 → 1.0.61

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
@@ -112,7 +112,7 @@ var variants = {
112
112
  text: "shadow-button bg-surface border-[0.5px] border-rose-500 text-rose-500 hover:bg-rose-50 hover:text-rose-600 active:bg-rose-100 active:text-rose-600 disabled:bg-surface disabled:border-[0.5px] disabled:border-rose-700 disabled:opacity-50 active:shadow-none"
113
113
  },
114
114
  link: {
115
- text: "shadow-button text-left text-blue-500 hover:text-blue-600 hover:underline active:text-blue-600 disabled:text-blue-400 disabled:no-underline outline-none focus:outline-none shadow-none font-normal"
115
+ text: "text-left text-blue-500 hover:text-blue-600 hover:underline active:text-blue-600 disabled:text-blue-400 disabled:no-underline outline-none focus:outline-none shadow-none font-normal"
116
116
  },
117
117
  dangerOutline: {
118
118
  text: "shadow-button text-dangerous-500 bg-surface border-[0.5px] border-dangerous-300 hover:bg-dangerous-100 hover:text-dangerous-600 active:bg-dangerous-500 active:text-white disabled:opacity-50 disabled:bg-white disabled:text-dangerous-500 active:shadow-none"
@@ -748,7 +748,7 @@ var DatePickerInput = React5.forwardRef(
748
748
  ];
749
749
  const hasError = fieldValidationMessages.some((item) => item !== void 0);
750
750
  const styles = {
751
- input: `text-p-md border rounded block pb-[10px] h-[46px] w-full disabled:bg-light-gray-100 `,
751
+ input: `text-p-md border border-dark-blue-300 rounded block pb-[10px] h-[46px] w-full disabled:bg-light-gray-100 focus:border-blue-500 `,
752
752
  icon: `absolute bg-light-gray-100 h-[44px] w-[38px] top-[1px] left-[1px] rounded-l-lg rounded-r-none ${hasError ? "text-dangerous-700" : "text-label"}`,
753
753
  label: "absolute text-label text-sm",
754
754
  clear: "absolute top-[8px] right-[8px] cursor-pointer text-label text-[22px]"
@@ -822,10 +822,16 @@ var DatePickerInput = React5.forwardRef(
822
822
  disabled,
823
823
  onChange: (e, isUserChange) => {
824
824
  if (isUserChange) {
825
- field.onChange(e);
825
+ let value = e;
826
+ if (e) {
827
+ const date = new Date(e);
828
+ date.setUTCHours(23, 59, 59, 0);
829
+ value = date.toISOString();
830
+ }
831
+ field.onChange(value);
826
832
  setShowCalendar(false);
827
833
  if (onChangeFunction) {
828
- onChangeFunction(e);
834
+ onChangeFunction(value);
829
835
  }
830
836
  setInvalidDate(false);
831
837
  }
@@ -834,7 +840,9 @@ var DatePickerInput = React5.forwardRef(
834
840
  locale: "pt-BR",
835
841
  highlightCurrentDay: true,
836
842
  formatDate: (value) => {
837
- const adjusted = new Date(value.getTime() + value.getTimezoneOffset() * 6e4);
843
+ const adjusted = new Date(
844
+ value.getTime() + value.getTimezoneOffset() * 6e4
845
+ );
838
846
  return dateFns.format(adjusted, dateFnsFormat);
839
847
  },
840
848
  parseDate: (value) => dateFns.parse(value, dateFnsFormat, /* @__PURE__ */ new Date()),