@plasmicpkgs/antd5 0.0.301 → 0.0.303

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
@@ -7069,13 +7069,15 @@ function AntdRate(props) {
7069
7069
  [symbols]
7070
7070
  );
7071
7071
  const countProp = React.useMemo(() => {
7072
- if (!multiCharacter)
7072
+ if (!multiCharacter) {
7073
7073
  return count;
7074
+ }
7074
7075
  return symbolsProp == null ? void 0 : symbolsProp.length;
7075
7076
  }, [count, multiCharacter, symbolsProp == null ? void 0 : symbolsProp.length]);
7076
7077
  const characterProp = React.useMemo(() => {
7077
- if (!multiCharacter)
7078
+ if (!multiCharacter) {
7078
7079
  return character || void 0;
7080
+ }
7079
7081
  return (symbolsProp == null ? void 0 : symbolsProp.length) ? ({ index }) => symbolsProp[index] : character || void 0;
7080
7082
  }, [character, multiCharacter, symbolsProp]);
7081
7083
  return /* @__PURE__ */ React__default.default.createElement(
@@ -7163,14 +7165,18 @@ function registerRate(loader) {
7163
7165
  nameFunc: (value) => value.label
7164
7166
  },
7165
7167
  validator: (value, ps) => {
7166
- if (!ps.count)
7168
+ if (!ps.count) {
7167
7169
  return true;
7168
- if (!Array.isArray(value) || value.length === 0)
7170
+ }
7171
+ if (!Array.isArray(value) || value.length === 0) {
7169
7172
  return true;
7170
- if (value.length < ps.count)
7173
+ }
7174
+ if (value.length < ps.count) {
7171
7175
  return `You need ${ps.count - value.length} more labels`;
7172
- if (value.length > ps.count)
7176
+ }
7177
+ if (value.length > ps.count) {
7173
7178
  return "You have too many labels. Some labels will not be used";
7179
+ }
7174
7180
  return true;
7175
7181
  }
7176
7182
  },
@@ -7469,8 +7475,9 @@ function registerSegmented(loader) {
7469
7475
  return void 0;
7470
7476
  };
7471
7477
  const newKey = generateNewKey();
7472
- if (!newKey)
7478
+ if (!newKey) {
7473
7479
  return;
7480
+ }
7474
7481
  studioOps.appendToSlot(getDefaultSlotOption(newKey), "optionsSlot");
7475
7482
  }
7476
7483
  },