@plasmicpkgs/antd5 0.0.207 → 0.0.209

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
@@ -7490,7 +7490,8 @@ function AntdRangeSlider(props) {
7490
7490
  valueMin,
7491
7491
  valueMax,
7492
7492
  defaultValueMin,
7493
- defaultValueMax
7493
+ defaultValueMax,
7494
+ onAfterChange
7494
7495
  } = _a, rest = __objRest$3(_a, [
7495
7496
  "marks",
7496
7497
  "stylableMarks",
@@ -7504,7 +7505,8 @@ function AntdRangeSlider(props) {
7504
7505
  "valueMin",
7505
7506
  "valueMax",
7506
7507
  "defaultValueMin",
7507
- "defaultValueMax"
7508
+ "defaultValueMax",
7509
+ "onAfterChange"
7508
7510
  ]);
7509
7511
  const marksProp = useMarks({ simpleMarks: marks, stylableMarks });
7510
7512
  const tooltipProp = useTooltip({
@@ -7521,7 +7523,8 @@ function AntdRangeSlider(props) {
7521
7523
  range: { draggableTrack },
7522
7524
  className: `${sliderScopeClassName} ${className}`,
7523
7525
  tooltip: tooltipProp,
7524
- marks: marksProp
7526
+ marks: marksProp,
7527
+ onChangeComplete: onAfterChange
7525
7528
  }, rest)
7526
7529
  );
7527
7530
  }
@@ -7534,7 +7537,8 @@ function AntdSingleSlider(props) {
7534
7537
  tooltipVisible,
7535
7538
  tooltipPlacement,
7536
7539
  tooltipPrefix,
7537
- tooltipSuffix
7540
+ tooltipSuffix,
7541
+ onAfterChange
7538
7542
  } = _a, rest = __objRest$3(_a, [
7539
7543
  "marks",
7540
7544
  "stylableMarks",
@@ -7543,7 +7547,8 @@ function AntdSingleSlider(props) {
7543
7547
  "tooltipVisible",
7544
7548
  "tooltipPlacement",
7545
7549
  "tooltipPrefix",
7546
- "tooltipSuffix"
7550
+ "tooltipSuffix",
7551
+ "onAfterChange"
7547
7552
  ]);
7548
7553
  const marksProp = useMarks({ simpleMarks: marks, stylableMarks });
7549
7554
  const tooltipProp = useTooltip({
@@ -7557,7 +7562,9 @@ function AntdSingleSlider(props) {
7557
7562
  __spreadValues$7({
7558
7563
  className: `${sliderScopeClassName} ${className}`,
7559
7564
  tooltip: tooltipProp,
7560
- marks: marksProp
7565
+ marks: marksProp,
7566
+ range: false,
7567
+ onChangeComplete: onAfterChange
7561
7568
  }, rest)
7562
7569
  );
7563
7570
  }
@@ -8404,8 +8411,8 @@ const AntdTabItem = ({ children }) => {
8404
8411
  return /* @__PURE__ */ React.createElement("div", null, children);
8405
8412
  };
8406
8413
  function getTabItems(items) {
8407
- var _a;
8408
- return ((_a = items == null ? void 0 : items.type) == null ? void 0 : _a.name) == AntdTabItem.name ? [items] : items == null ? void 0 : items.props.children;
8414
+ var _a, _b, _c;
8415
+ return ((_a = items == null ? void 0 : items.type) == null ? void 0 : _a.name) == AntdTabItem.name ? [items] : (_c = (_b = items == null ? void 0 : items.props) == null ? void 0 : _b.children) == null ? void 0 : _c.flat(1);
8409
8416
  }
8410
8417
  function getTabItemKeys(items) {
8411
8418
  const keys = [];
@@ -8459,9 +8466,10 @@ function AntdTabs(props) {
8459
8466
  return [];
8460
8467
  const tabItems = getTabItems(itemsRaw);
8461
8468
  return tabItems.map((currentItem) => {
8469
+ var _a2;
8462
8470
  return __spreadProps$3(__spreadValues$3({}, currentItem.props), {
8463
8471
  key: currentItem.key,
8464
- children: /* @__PURE__ */ React.createElement(React.Fragment, null, currentItem.props.children)
8472
+ children: /* @__PURE__ */ React.createElement(React.Fragment, null, (_a2 = currentItem.props) == null ? void 0 : _a2.children)
8465
8473
  });
8466
8474
  }).filter((i) => i != null);
8467
8475
  }, [itemsRaw]);