@plasmicpkgs/antd5 0.0.205 → 0.0.207

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/antd.esm.js CHANGED
@@ -6050,7 +6050,6 @@ const styleSections = [
6050
6050
  "effects"
6051
6051
  ];
6052
6052
  function AntdModal(props) {
6053
- const [isOpen, setIsOpen] = useState(false);
6054
6053
  const _a = props, {
6055
6054
  onOpenChange,
6056
6055
  onOk,
@@ -6077,7 +6076,6 @@ function AntdModal(props) {
6077
6076
  const memoOnOk = React.useMemo(() => {
6078
6077
  if (onOpenChange || onOk) {
6079
6078
  return (e) => {
6080
- setIsOpen(false);
6081
6079
  onOpenChange == null ? void 0 : onOpenChange(false);
6082
6080
  onOk == null ? void 0 : onOk(e);
6083
6081
  };
@@ -6088,7 +6086,6 @@ function AntdModal(props) {
6088
6086
  const memoOnCancel = React.useMemo(() => {
6089
6087
  if (onOpenChange || onCancel) {
6090
6088
  return (e) => {
6091
- setIsOpen(false);
6092
6089
  onOpenChange == null ? void 0 : onOpenChange(false);
6093
6090
  onCancel == null ? void 0 : onCancel(e);
6094
6091
  };
@@ -6114,12 +6111,12 @@ function AntdModal(props) {
6114
6111
  onOk: memoOnOk,
6115
6112
  width: widthProp,
6116
6113
  onCancel: memoOnCancel,
6117
- open: isOpen || open,
6114
+ open,
6118
6115
  footer: hideFooter ? null : footer != null ? footer : void 0,
6119
6116
  wrapClassName,
6120
6117
  className: `${props.className} ${props.defaultStylesClassName} ${modalScopeClassName}`
6121
6118
  })
6122
- ), trigger ? /* @__PURE__ */ React.createElement("div", { onClick: () => setIsOpen(true) }, trigger) : null);
6119
+ ), trigger ? /* @__PURE__ */ React.createElement("div", { onClick: () => onOpenChange == null ? void 0 : onOpenChange(true) }, trigger) : null);
6123
6120
  }
6124
6121
  function registerModal(loader) {
6125
6122
  registerComponentHelper(loader, AntdModal, {