@plasmicpkgs/antd5 0.0.300 → 0.0.302

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
@@ -7052,13 +7052,15 @@ function AntdRate(props) {
7052
7052
  [symbols]
7053
7053
  );
7054
7054
  const countProp = useMemo(() => {
7055
- if (!multiCharacter)
7055
+ if (!multiCharacter) {
7056
7056
  return count;
7057
+ }
7057
7058
  return symbolsProp == null ? void 0 : symbolsProp.length;
7058
7059
  }, [count, multiCharacter, symbolsProp == null ? void 0 : symbolsProp.length]);
7059
7060
  const characterProp = useMemo(() => {
7060
- if (!multiCharacter)
7061
+ if (!multiCharacter) {
7061
7062
  return character || void 0;
7063
+ }
7062
7064
  return (symbolsProp == null ? void 0 : symbolsProp.length) ? ({ index }) => symbolsProp[index] : character || void 0;
7063
7065
  }, [character, multiCharacter, symbolsProp]);
7064
7066
  return /* @__PURE__ */ React.createElement(
@@ -7146,14 +7148,18 @@ function registerRate(loader) {
7146
7148
  nameFunc: (value) => value.label
7147
7149
  },
7148
7150
  validator: (value, ps) => {
7149
- if (!ps.count)
7151
+ if (!ps.count) {
7150
7152
  return true;
7151
- if (!Array.isArray(value) || value.length === 0)
7153
+ }
7154
+ if (!Array.isArray(value) || value.length === 0) {
7152
7155
  return true;
7153
- if (value.length < ps.count)
7156
+ }
7157
+ if (value.length < ps.count) {
7154
7158
  return `You need ${ps.count - value.length} more labels`;
7155
- if (value.length > ps.count)
7159
+ }
7160
+ if (value.length > ps.count) {
7156
7161
  return "You have too many labels. Some labels will not be used";
7162
+ }
7157
7163
  return true;
7158
7164
  }
7159
7165
  },
@@ -7452,8 +7458,9 @@ function registerSegmented(loader) {
7452
7458
  return void 0;
7453
7459
  };
7454
7460
  const newKey = generateNewKey();
7455
- if (!newKey)
7461
+ if (!newKey) {
7456
7462
  return;
7463
+ }
7457
7464
  studioOps.appendToSlot(getDefaultSlotOption(newKey), "optionsSlot");
7458
7465
  }
7459
7466
  },