@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.js CHANGED
@@ -3119,6 +3119,9 @@ var Datepicker = ({
3119
3119
  {
3120
3120
  autoComplete: "off",
3121
3121
  isError,
3122
+ onKeyPress: (e) => {
3123
+ if (props.selectsRange) e.preventDefault();
3124
+ },
3122
3125
  addOnRight: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react20.InputRightElement, { alignSelf: "center", bottom: 0, flexDir: "row-reverse", width: "auto", mr: 2, gap: 2, children: [
3123
3126
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_internal_icon6.Calendar, { size: 4, color: "neutral.400" }),
3124
3127
  value && !props.disabled && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
@@ -5677,7 +5680,7 @@ var styles_default2 = Styles2;
5677
5680
  var import_jsx_runtime65 = require("react/jsx-runtime");
5678
5681
  var CustomCloseButton = (props) => {
5679
5682
  const { closeToast } = props;
5680
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react88.Box, { p: 2, alignItems: "center", display: "flex", "data-test-id": "", cursor: "pointer", onClick: closeToast, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_internal_icon11.Close, { size: 4, color: "white" }) });
5683
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react88.Box, { p: 2, mb: 1, alignItems: "center", display: "flex", "data-test-id": "", cursor: "pointer", onClick: closeToast, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_internal_icon11.Close, { size: 4, color: "white" }) });
5681
5684
  };
5682
5685
  var DEFAULT_OPTIONS = {
5683
5686
  position: "top-right",
@@ -5711,7 +5714,7 @@ var useToast = () => {
5711
5714
  const content = (icon, message, link) => {
5712
5715
  return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
5713
5716
  /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(styles_default2, {}),
5714
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react88.Flex, { justifyContent: "space-between", alignItems: "center", gap: 4, children: [
5717
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react88.Flex, { justifyContent: "space-between", alignItems: "center", gap: 4, mb: 1, children: [
5715
5718
  /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react88.Flex, { alignItems: "center", children: [
5716
5719
  icon && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react88.chakra.span, { mr: 2, w: 4, h: 4, children: renderIcon(icon, "default") }),
5717
5720
  /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react88.chakra.span, { noOfLines: 2, children: message })
@@ -5889,7 +5892,6 @@ var Uploader = ({
5889
5892
  customValidation,
5890
5893
  value,
5891
5894
  isShowCloseButton = true,
5892
- isClosableToast,
5893
5895
  testId,
5894
5896
  isError,
5895
5897
  errorText,
@@ -5905,9 +5907,7 @@ var Uploader = ({
5905
5907
  if (onHandleRejections) {
5906
5908
  onHandleRejections(file, image);
5907
5909
  }
5908
- return toast2.error(message, {
5909
- closeButton: isClosableToast
5910
- });
5910
+ return toast2.error(message);
5911
5911
  },
5912
5912
  // eslint-disable-next-line react-hooks/exhaustive-deps
5913
5913
  [onHandleRejections]