@ctlyst.id/internal-ui 4.1.1 → 4.1.3

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.mjs CHANGED
@@ -2772,6 +2772,9 @@ var Datepicker = ({
2772
2772
  {
2773
2773
  autoComplete: "off",
2774
2774
  isError,
2775
+ onKeyPress: (e) => {
2776
+ if (props.selectsRange) e.preventDefault();
2777
+ },
2775
2778
  addOnRight: /* @__PURE__ */ jsxs10(InputRightElement, { alignSelf: "center", bottom: 0, flexDir: "row-reverse", width: "auto", mr: 2, gap: 2, children: [
2776
2779
  /* @__PURE__ */ jsx27(Calendar, { size: 4, color: "neutral.400" }),
2777
2780
  value && !props.disabled && /* @__PURE__ */ jsx27(
@@ -5536,7 +5539,7 @@ var styles_default2 = Styles2;
5536
5539
  import { Fragment as Fragment11, jsx as jsx65, jsxs as jsxs30 } from "react/jsx-runtime";
5537
5540
  var CustomCloseButton = (props) => {
5538
5541
  const { closeToast } = props;
5539
- return /* @__PURE__ */ jsx65(Box30, { p: 2, alignItems: "center", display: "flex", "data-test-id": "", cursor: "pointer", onClick: closeToast, children: /* @__PURE__ */ jsx65(Close6, { size: 4, color: "white" }) });
5542
+ return /* @__PURE__ */ jsx65(Box30, { p: 2, mb: 1, alignItems: "center", display: "flex", "data-test-id": "", cursor: "pointer", onClick: closeToast, children: /* @__PURE__ */ jsx65(Close6, { size: 4, color: "white" }) });
5540
5543
  };
5541
5544
  var DEFAULT_OPTIONS = {
5542
5545
  position: "top-right",
@@ -5570,7 +5573,7 @@ var useToast = () => {
5570
5573
  const content = (icon, message, link) => {
5571
5574
  return /* @__PURE__ */ jsxs30(Fragment11, { children: [
5572
5575
  /* @__PURE__ */ jsx65(styles_default2, {}),
5573
- /* @__PURE__ */ jsxs30(Flex18, { justifyContent: "space-between", alignItems: "center", gap: 4, children: [
5576
+ /* @__PURE__ */ jsxs30(Flex18, { justifyContent: "space-between", alignItems: "center", gap: 4, mb: 1, children: [
5574
5577
  /* @__PURE__ */ jsxs30(Flex18, { alignItems: "center", children: [
5575
5578
  icon && /* @__PURE__ */ jsx65(chakra7.span, { mr: 2, w: 4, h: 4, children: renderIcon(icon, "default") }),
5576
5579
  /* @__PURE__ */ jsx65(chakra7.span, { noOfLines: 2, children: message })
@@ -5760,7 +5763,6 @@ var Uploader = ({
5760
5763
  customValidation,
5761
5764
  value,
5762
5765
  isShowCloseButton = true,
5763
- isClosableToast,
5764
5766
  testId,
5765
5767
  isError,
5766
5768
  errorText,
@@ -5776,9 +5778,7 @@ var Uploader = ({
5776
5778
  if (onHandleRejections) {
5777
5779
  onHandleRejections(file, image);
5778
5780
  }
5779
- return toast2.error(message, {
5780
- closeButton: isClosableToast
5781
- });
5781
+ return toast2.error(message);
5782
5782
  },
5783
5783
  // eslint-disable-next-line react-hooks/exhaustive-deps
5784
5784
  [onHandleRejections]