@plasmicpkgs/antd5 0.0.206 → 0.0.208

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, {
@@ -7493,7 +7490,8 @@ function AntdRangeSlider(props) {
7493
7490
  valueMin,
7494
7491
  valueMax,
7495
7492
  defaultValueMin,
7496
- defaultValueMax
7493
+ defaultValueMax,
7494
+ onAfterChange
7497
7495
  } = _a, rest = __objRest$3(_a, [
7498
7496
  "marks",
7499
7497
  "stylableMarks",
@@ -7507,7 +7505,8 @@ function AntdRangeSlider(props) {
7507
7505
  "valueMin",
7508
7506
  "valueMax",
7509
7507
  "defaultValueMin",
7510
- "defaultValueMax"
7508
+ "defaultValueMax",
7509
+ "onAfterChange"
7511
7510
  ]);
7512
7511
  const marksProp = useMarks({ simpleMarks: marks, stylableMarks });
7513
7512
  const tooltipProp = useTooltip({
@@ -7524,7 +7523,8 @@ function AntdRangeSlider(props) {
7524
7523
  range: { draggableTrack },
7525
7524
  className: `${sliderScopeClassName} ${className}`,
7526
7525
  tooltip: tooltipProp,
7527
- marks: marksProp
7526
+ marks: marksProp,
7527
+ onChangeComplete: onAfterChange
7528
7528
  }, rest)
7529
7529
  );
7530
7530
  }
@@ -7537,7 +7537,8 @@ function AntdSingleSlider(props) {
7537
7537
  tooltipVisible,
7538
7538
  tooltipPlacement,
7539
7539
  tooltipPrefix,
7540
- tooltipSuffix
7540
+ tooltipSuffix,
7541
+ onAfterChange
7541
7542
  } = _a, rest = __objRest$3(_a, [
7542
7543
  "marks",
7543
7544
  "stylableMarks",
@@ -7546,7 +7547,8 @@ function AntdSingleSlider(props) {
7546
7547
  "tooltipVisible",
7547
7548
  "tooltipPlacement",
7548
7549
  "tooltipPrefix",
7549
- "tooltipSuffix"
7550
+ "tooltipSuffix",
7551
+ "onAfterChange"
7550
7552
  ]);
7551
7553
  const marksProp = useMarks({ simpleMarks: marks, stylableMarks });
7552
7554
  const tooltipProp = useTooltip({
@@ -7560,7 +7562,9 @@ function AntdSingleSlider(props) {
7560
7562
  __spreadValues$7({
7561
7563
  className: `${sliderScopeClassName} ${className}`,
7562
7564
  tooltip: tooltipProp,
7563
- marks: marksProp
7565
+ marks: marksProp,
7566
+ range: false,
7567
+ onChangeComplete: onAfterChange
7564
7568
  }, rest)
7565
7569
  );
7566
7570
  }