@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/index.js CHANGED
@@ -6067,7 +6067,6 @@ const styleSections = [
6067
6067
  "effects"
6068
6068
  ];
6069
6069
  function AntdModal(props) {
6070
- const [isOpen, setIsOpen] = React.useState(false);
6071
6070
  const _a = props, {
6072
6071
  onOpenChange,
6073
6072
  onOk,
@@ -6094,7 +6093,6 @@ function AntdModal(props) {
6094
6093
  const memoOnOk = React__default.default.useMemo(() => {
6095
6094
  if (onOpenChange || onOk) {
6096
6095
  return (e) => {
6097
- setIsOpen(false);
6098
6096
  onOpenChange == null ? void 0 : onOpenChange(false);
6099
6097
  onOk == null ? void 0 : onOk(e);
6100
6098
  };
@@ -6105,7 +6103,6 @@ function AntdModal(props) {
6105
6103
  const memoOnCancel = React__default.default.useMemo(() => {
6106
6104
  if (onOpenChange || onCancel) {
6107
6105
  return (e) => {
6108
- setIsOpen(false);
6109
6106
  onOpenChange == null ? void 0 : onOpenChange(false);
6110
6107
  onCancel == null ? void 0 : onCancel(e);
6111
6108
  };
@@ -6131,12 +6128,12 @@ function AntdModal(props) {
6131
6128
  onOk: memoOnOk,
6132
6129
  width: widthProp,
6133
6130
  onCancel: memoOnCancel,
6134
- open: isOpen || open,
6131
+ open,
6135
6132
  footer: hideFooter ? null : footer != null ? footer : void 0,
6136
6133
  wrapClassName,
6137
6134
  className: `${props.className} ${props.defaultStylesClassName} ${modalScopeClassName}`
6138
6135
  })
6139
- ), trigger ? /* @__PURE__ */ React__default.default.createElement("div", { onClick: () => setIsOpen(true) }, trigger) : null);
6136
+ ), trigger ? /* @__PURE__ */ React__default.default.createElement("div", { onClick: () => onOpenChange == null ? void 0 : onOpenChange(true) }, trigger) : null);
6140
6137
  }
6141
6138
  function registerModal(loader) {
6142
6139
  registerComponentHelper(loader, AntdModal, {
@@ -7510,7 +7507,8 @@ function AntdRangeSlider(props) {
7510
7507
  valueMin,
7511
7508
  valueMax,
7512
7509
  defaultValueMin,
7513
- defaultValueMax
7510
+ defaultValueMax,
7511
+ onAfterChange
7514
7512
  } = _a, rest = __objRest$3(_a, [
7515
7513
  "marks",
7516
7514
  "stylableMarks",
@@ -7524,7 +7522,8 @@ function AntdRangeSlider(props) {
7524
7522
  "valueMin",
7525
7523
  "valueMax",
7526
7524
  "defaultValueMin",
7527
- "defaultValueMax"
7525
+ "defaultValueMax",
7526
+ "onAfterChange"
7528
7527
  ]);
7529
7528
  const marksProp = useMarks({ simpleMarks: marks, stylableMarks });
7530
7529
  const tooltipProp = useTooltip({
@@ -7541,7 +7540,8 @@ function AntdRangeSlider(props) {
7541
7540
  range: { draggableTrack },
7542
7541
  className: `${sliderScopeClassName} ${className}`,
7543
7542
  tooltip: tooltipProp,
7544
- marks: marksProp
7543
+ marks: marksProp,
7544
+ onChangeComplete: onAfterChange
7545
7545
  }, rest)
7546
7546
  );
7547
7547
  }
@@ -7554,7 +7554,8 @@ function AntdSingleSlider(props) {
7554
7554
  tooltipVisible,
7555
7555
  tooltipPlacement,
7556
7556
  tooltipPrefix,
7557
- tooltipSuffix
7557
+ tooltipSuffix,
7558
+ onAfterChange
7558
7559
  } = _a, rest = __objRest$3(_a, [
7559
7560
  "marks",
7560
7561
  "stylableMarks",
@@ -7563,7 +7564,8 @@ function AntdSingleSlider(props) {
7563
7564
  "tooltipVisible",
7564
7565
  "tooltipPlacement",
7565
7566
  "tooltipPrefix",
7566
- "tooltipSuffix"
7567
+ "tooltipSuffix",
7568
+ "onAfterChange"
7567
7569
  ]);
7568
7570
  const marksProp = useMarks({ simpleMarks: marks, stylableMarks });
7569
7571
  const tooltipProp = useTooltip({
@@ -7577,7 +7579,9 @@ function AntdSingleSlider(props) {
7577
7579
  __spreadValues$7({
7578
7580
  className: `${sliderScopeClassName} ${className}`,
7579
7581
  tooltip: tooltipProp,
7580
- marks: marksProp
7582
+ marks: marksProp,
7583
+ range: false,
7584
+ onChangeComplete: onAfterChange
7581
7585
  }, rest)
7582
7586
  );
7583
7587
  }