@plasmicpkgs/antd5 0.0.112 → 0.0.113

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
@@ -124,43 +124,43 @@ class ErrorBoundary extends React__default.default.Component {
124
124
  }
125
125
  }
126
126
 
127
- var __defProp$k = Object.defineProperty;
128
- var __defProps$g = Object.defineProperties;
129
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
130
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
131
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
132
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
133
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
134
- var __spreadValues$k = (a, b) => {
127
+ var __defProp$l = Object.defineProperty;
128
+ var __defProps$h = Object.defineProperties;
129
+ var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
130
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
131
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
132
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
133
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
134
+ var __spreadValues$l = (a, b) => {
135
135
  for (var prop in b || (b = {}))
136
- if (__hasOwnProp$k.call(b, prop))
137
- __defNormalProp$k(a, prop, b[prop]);
138
- if (__getOwnPropSymbols$k)
139
- for (var prop of __getOwnPropSymbols$k(b)) {
140
- if (__propIsEnum$k.call(b, prop))
141
- __defNormalProp$k(a, prop, b[prop]);
136
+ if (__hasOwnProp$l.call(b, prop))
137
+ __defNormalProp$l(a, prop, b[prop]);
138
+ if (__getOwnPropSymbols$l)
139
+ for (var prop of __getOwnPropSymbols$l(b)) {
140
+ if (__propIsEnum$l.call(b, prop))
141
+ __defNormalProp$l(a, prop, b[prop]);
142
142
  }
143
143
  return a;
144
144
  };
145
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
146
- var __objRest$d = (source, exclude) => {
145
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
146
+ var __objRest$e = (source, exclude) => {
147
147
  var target = {};
148
148
  for (var prop in source)
149
- if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
149
+ if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
150
150
  target[prop] = source[prop];
151
- if (source != null && __getOwnPropSymbols$k)
152
- for (var prop of __getOwnPropSymbols$k(source)) {
153
- if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
151
+ if (source != null && __getOwnPropSymbols$l)
152
+ for (var prop of __getOwnPropSymbols$l(source)) {
153
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
154
154
  target[prop] = source[prop];
155
155
  }
156
156
  return target;
157
157
  };
158
158
  function AntdButton(props) {
159
- const _a = props, { submitsForm = false } = _a, rest = __objRest$d(_a, ["submitsForm"]);
159
+ const _a = props, { submitsForm = false } = _a, rest = __objRest$e(_a, ["submitsForm"]);
160
160
  const target = props.target === true ? "_blank" : props.target === false ? void 0 : props.target;
161
161
  return /* @__PURE__ */ React__default.default.createElement(
162
162
  antd.Button,
163
- __spreadProps$g(__spreadValues$k(__spreadProps$g(__spreadValues$k({}, rest), {
163
+ __spreadProps$h(__spreadValues$l(__spreadProps$h(__spreadValues$l({}, rest), {
164
164
  htmlType: submitsForm ? "submit" : "button"
165
165
  }), rest), {
166
166
  target
@@ -233,7 +233,7 @@ function registerButton(loader) {
233
233
  hidden: (props) => !props.href,
234
234
  defaultValueHint: false
235
235
  },
236
- children: __spreadValues$k({
236
+ children: __spreadValues$l({
237
237
  type: "slot",
238
238
  defaultValue: [
239
239
  {
@@ -257,39 +257,39 @@ function registerButton(loader) {
257
257
  });
258
258
  }
259
259
 
260
- var __defProp$j = Object.defineProperty;
261
- var __defProps$f = Object.defineProperties;
262
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
263
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
264
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
265
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
266
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
267
- var __spreadValues$j = (a, b) => {
260
+ var __defProp$k = Object.defineProperty;
261
+ var __defProps$g = Object.defineProperties;
262
+ var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
263
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
264
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
265
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
266
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
267
+ var __spreadValues$k = (a, b) => {
268
268
  for (var prop in b || (b = {}))
269
- if (__hasOwnProp$j.call(b, prop))
270
- __defNormalProp$j(a, prop, b[prop]);
271
- if (__getOwnPropSymbols$j)
272
- for (var prop of __getOwnPropSymbols$j(b)) {
273
- if (__propIsEnum$j.call(b, prop))
274
- __defNormalProp$j(a, prop, b[prop]);
269
+ if (__hasOwnProp$k.call(b, prop))
270
+ __defNormalProp$k(a, prop, b[prop]);
271
+ if (__getOwnPropSymbols$k)
272
+ for (var prop of __getOwnPropSymbols$k(b)) {
273
+ if (__propIsEnum$k.call(b, prop))
274
+ __defNormalProp$k(a, prop, b[prop]);
275
275
  }
276
276
  return a;
277
277
  };
278
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
279
- var __objRest$c = (source, exclude) => {
278
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
279
+ var __objRest$d = (source, exclude) => {
280
280
  var target = {};
281
281
  for (var prop in source)
282
- if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
282
+ if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
283
283
  target[prop] = source[prop];
284
- if (source != null && __getOwnPropSymbols$j)
285
- for (var prop of __getOwnPropSymbols$j(source)) {
286
- if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
284
+ if (source != null && __getOwnPropSymbols$k)
285
+ for (var prop of __getOwnPropSymbols$k(source)) {
286
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
287
287
  target[prop] = source[prop];
288
288
  }
289
289
  return target;
290
290
  };
291
291
  function AntdCheckbox(props) {
292
- const _a = props, { onChange } = _a, rest = __objRest$c(_a, ["onChange"]);
292
+ const _a = props, { onChange } = _a, rest = __objRest$d(_a, ["onChange"]);
293
293
  const wrappedOnChange = React__default.default.useMemo(() => {
294
294
  if (onChange) {
295
295
  return (event) => onChange(event.target.checked);
@@ -297,7 +297,7 @@ function AntdCheckbox(props) {
297
297
  return void 0;
298
298
  }
299
299
  }, [onChange]);
300
- return /* @__PURE__ */ React__default.default.createElement(antd.Checkbox, __spreadProps$f(__spreadValues$j({}, rest), { onChange: wrappedOnChange }));
300
+ return /* @__PURE__ */ React__default.default.createElement(antd.Checkbox, __spreadProps$g(__spreadValues$k({}, rest), { onChange: wrappedOnChange }));
301
301
  }
302
302
  AntdCheckbox.__plasmicFormFieldMeta = { valueProp: "checked" };
303
303
  const AntdCheckboxGroup = antd.Checkbox.Group;
@@ -332,7 +332,7 @@ function registerCheckbox(loader) {
332
332
  defaultValueHint: false,
333
333
  advanced: true
334
334
  },
335
- children: __spreadValues$j({
335
+ children: __spreadValues$k({
336
336
  type: "slot",
337
337
  defaultValue: [
338
338
  {
@@ -413,33 +413,33 @@ function registerCheckbox(loader) {
413
413
  });
414
414
  }
415
415
 
416
- var __defProp$i = Object.defineProperty;
417
- var __defProps$e = Object.defineProperties;
418
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
419
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
420
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
421
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
422
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
423
- var __spreadValues$i = (a, b) => {
416
+ var __defProp$j = Object.defineProperty;
417
+ var __defProps$f = Object.defineProperties;
418
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
419
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
420
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
421
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
422
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
423
+ var __spreadValues$j = (a, b) => {
424
424
  for (var prop in b || (b = {}))
425
- if (__hasOwnProp$i.call(b, prop))
426
- __defNormalProp$i(a, prop, b[prop]);
427
- if (__getOwnPropSymbols$i)
428
- for (var prop of __getOwnPropSymbols$i(b)) {
429
- if (__propIsEnum$i.call(b, prop))
430
- __defNormalProp$i(a, prop, b[prop]);
425
+ if (__hasOwnProp$j.call(b, prop))
426
+ __defNormalProp$j(a, prop, b[prop]);
427
+ if (__getOwnPropSymbols$j)
428
+ for (var prop of __getOwnPropSymbols$j(b)) {
429
+ if (__propIsEnum$j.call(b, prop))
430
+ __defNormalProp$j(a, prop, b[prop]);
431
431
  }
432
432
  return a;
433
433
  };
434
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
435
- var __objRest$b = (source, exclude) => {
434
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
435
+ var __objRest$c = (source, exclude) => {
436
436
  var target = {};
437
437
  for (var prop in source)
438
- if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
438
+ if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
439
439
  target[prop] = source[prop];
440
- if (source != null && __getOwnPropSymbols$i)
441
- for (var prop of __getOwnPropSymbols$i(source)) {
442
- if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
440
+ if (source != null && __getOwnPropSymbols$j)
441
+ for (var prop of __getOwnPropSymbols$j(source)) {
442
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
443
443
  target[prop] = source[prop];
444
444
  }
445
445
  return target;
@@ -489,12 +489,12 @@ function themeToAntdConfig(opts) {
489
489
  };
490
490
  }
491
491
  function AntdConfigProvider(props) {
492
- const _a = props, { children, themeStyles, loadingText, removeLoading } = _a, rest = __objRest$b(_a, ["children", "themeStyles", "loadingText", "removeLoading"]);
492
+ const _a = props, { children, themeStyles, loadingText, removeLoading } = _a, rest = __objRest$c(_a, ["children", "themeStyles", "loadingText", "removeLoading"]);
493
493
  return /* @__PURE__ */ React__default.default.createElement(
494
494
  antd.ConfigProvider,
495
- __spreadValues$i({
495
+ __spreadValues$j({
496
496
  locale: defaultLocale
497
- }, themeToAntdConfig(__spreadProps$e(__spreadValues$i({}, rest), {
497
+ }, themeToAntdConfig(__spreadProps$f(__spreadValues$j({}, rest), {
498
498
  fontFamily: themeStyles.fontFamily,
499
499
  fontSize: themeStyles.fontSize ? parseInt(themeStyles.fontSize) : void 0,
500
500
  lineHeight: themeStyles.lineHeight ? parseInt(themeStyles.lineHeight) : void 0,
@@ -536,8 +536,8 @@ function InnerConfigProvider(props) {
536
536
  () => ({
537
537
  showNotification: (opts) => {
538
538
  var _b;
539
- const _a = opts, rest = __objRest$b(_a, ["type"]);
540
- app.notification[(_b = opts.type) != null ? _b : "info"](__spreadValues$i({}, rest));
539
+ const _a = opts, rest = __objRest$c(_a, ["type"]);
540
+ app.notification[(_b = opts.type) != null ? _b : "info"](__spreadValues$j({}, rest));
541
541
  },
542
542
  hideNotifications: () => {
543
543
  app.notification.destroy();
@@ -837,7 +837,7 @@ function registerTokens(loader) {
837
837
  }
838
838
  const registerConfigProvider = makeRegisterGlobalContext(
839
839
  AntdConfigProvider,
840
- __spreadProps$e(__spreadValues$i({
840
+ __spreadProps$f(__spreadValues$j({
841
841
  name: "plasmic-antd5-config-provider",
842
842
  displayName: "Ant Design System Settings",
843
843
  props: {
@@ -957,25 +957,25 @@ const registerConfigProvider = makeRegisterGlobalContext(
957
957
  })
958
958
  );
959
959
 
960
- var __defProp$h = Object.defineProperty;
961
- var __defProps$d = Object.defineProperties;
962
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
963
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
964
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
965
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
966
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
967
- var __spreadValues$h = (a, b) => {
960
+ var __defProp$i = Object.defineProperty;
961
+ var __defProps$e = Object.defineProperties;
962
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
963
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
964
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
965
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
966
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
967
+ var __spreadValues$i = (a, b) => {
968
968
  for (var prop in b || (b = {}))
969
- if (__hasOwnProp$h.call(b, prop))
970
- __defNormalProp$h(a, prop, b[prop]);
971
- if (__getOwnPropSymbols$h)
972
- for (var prop of __getOwnPropSymbols$h(b)) {
973
- if (__propIsEnum$h.call(b, prop))
974
- __defNormalProp$h(a, prop, b[prop]);
969
+ if (__hasOwnProp$i.call(b, prop))
970
+ __defNormalProp$i(a, prop, b[prop]);
971
+ if (__getOwnPropSymbols$i)
972
+ for (var prop of __getOwnPropSymbols$i(b)) {
973
+ if (__propIsEnum$i.call(b, prop))
974
+ __defNormalProp$i(a, prop, b[prop]);
975
975
  }
976
976
  return a;
977
977
  };
978
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
978
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
979
979
  const AntdMenuDivider = antd.Menu.Divider;
980
980
  const AntdMenuItem = antd.Menu.Item;
981
981
  const AntdMenuItemGroup = antd.Menu.ItemGroup;
@@ -1030,7 +1030,7 @@ const MENU_ITEM_TYPE = {
1030
1030
  }
1031
1031
  }
1032
1032
  };
1033
- const UNKEYED_MENU_ITEM_TYPE = __spreadProps$d(__spreadValues$h({}, MENU_ITEM_TYPE), {
1033
+ const UNKEYED_MENU_ITEM_TYPE = __spreadProps$e(__spreadValues$i({}, MENU_ITEM_TYPE), {
1034
1034
  fields: Object.fromEntries(
1035
1035
  Object.entries(MENU_ITEM_TYPE.fields).filter(([k]) => k !== "key")
1036
1036
  )
@@ -1116,7 +1116,7 @@ function registerMenu(loader) {
1116
1116
  type: "string",
1117
1117
  description: "Set display title for collapsed item"
1118
1118
  },
1119
- children: __spreadValues$h({
1119
+ children: __spreadValues$i({
1120
1120
  type: "slot",
1121
1121
  defaultValue: [
1122
1122
  {
@@ -1224,33 +1224,33 @@ function registerMenu(loader) {
1224
1224
  });
1225
1225
  }
1226
1226
 
1227
- var __defProp$g = Object.defineProperty;
1228
- var __defProps$c = Object.defineProperties;
1229
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
1230
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
1231
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
1232
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
1233
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1234
- var __spreadValues$g = (a, b) => {
1227
+ var __defProp$h = Object.defineProperty;
1228
+ var __defProps$d = Object.defineProperties;
1229
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
1230
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
1231
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
1232
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
1233
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1234
+ var __spreadValues$h = (a, b) => {
1235
1235
  for (var prop in b || (b = {}))
1236
- if (__hasOwnProp$g.call(b, prop))
1237
- __defNormalProp$g(a, prop, b[prop]);
1238
- if (__getOwnPropSymbols$g)
1239
- for (var prop of __getOwnPropSymbols$g(b)) {
1240
- if (__propIsEnum$g.call(b, prop))
1241
- __defNormalProp$g(a, prop, b[prop]);
1236
+ if (__hasOwnProp$h.call(b, prop))
1237
+ __defNormalProp$h(a, prop, b[prop]);
1238
+ if (__getOwnPropSymbols$h)
1239
+ for (var prop of __getOwnPropSymbols$h(b)) {
1240
+ if (__propIsEnum$h.call(b, prop))
1241
+ __defNormalProp$h(a, prop, b[prop]);
1242
1242
  }
1243
1243
  return a;
1244
1244
  };
1245
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
1246
- var __objRest$a = (source, exclude) => {
1245
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
1246
+ var __objRest$b = (source, exclude) => {
1247
1247
  var target = {};
1248
1248
  for (var prop in source)
1249
- if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
1249
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
1250
1250
  target[prop] = source[prop];
1251
- if (source != null && __getOwnPropSymbols$g)
1252
- for (var prop of __getOwnPropSymbols$g(source)) {
1253
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
1251
+ if (source != null && __getOwnPropSymbols$h)
1252
+ for (var prop of __getOwnPropSymbols$h(source)) {
1253
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
1254
1254
  target[prop] = source[prop];
1255
1255
  }
1256
1256
  return target;
@@ -1263,7 +1263,7 @@ function AntdDropdown(props) {
1263
1263
  useMenuItemsSlot = false,
1264
1264
  menuItemsJson,
1265
1265
  trigger = "click"
1266
- } = _a, rest = __objRest$a(_a, [
1266
+ } = _a, rest = __objRest$b(_a, [
1267
1267
  "children",
1268
1268
  "onAction",
1269
1269
  "menuItems",
@@ -1273,7 +1273,7 @@ function AntdDropdown(props) {
1273
1273
  ]);
1274
1274
  return /* @__PURE__ */ React__default.default.createElement(
1275
1275
  antd.Dropdown,
1276
- __spreadProps$c(__spreadValues$g({}, rest), {
1276
+ __spreadProps$d(__spreadValues$h({}, rest), {
1277
1277
  trigger: [trigger],
1278
1278
  overlay: () => {
1279
1279
  var _a2;
@@ -1378,7 +1378,7 @@ function registerDropdown(loader) {
1378
1378
  advanced: true,
1379
1379
  description: "Instead of configuring a list of menu items, build the menu items using MenuItem elements. This gives you greater control over item styling."
1380
1380
  },
1381
- children: __spreadValues$g({
1381
+ children: __spreadValues$h({
1382
1382
  type: "slot",
1383
1383
  defaultValue: [
1384
1384
  {
@@ -1403,19 +1403,19 @@ function registerDropdown(loader) {
1403
1403
  });
1404
1404
  }
1405
1405
 
1406
- var __defProp$f = Object.defineProperty;
1407
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
1408
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
1409
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
1410
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1411
- var __spreadValues$f = (a, b) => {
1406
+ var __defProp$g = Object.defineProperty;
1407
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
1408
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
1409
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
1410
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1411
+ var __spreadValues$g = (a, b) => {
1412
1412
  for (var prop in b || (b = {}))
1413
- if (__hasOwnProp$f.call(b, prop))
1414
- __defNormalProp$f(a, prop, b[prop]);
1415
- if (__getOwnPropSymbols$f)
1416
- for (var prop of __getOwnPropSymbols$f(b)) {
1417
- if (__propIsEnum$f.call(b, prop))
1418
- __defNormalProp$f(a, prop, b[prop]);
1413
+ if (__hasOwnProp$g.call(b, prop))
1414
+ __defNormalProp$g(a, prop, b[prop]);
1415
+ if (__getOwnPropSymbols$g)
1416
+ for (var prop of __getOwnPropSymbols$g(b)) {
1417
+ if (__propIsEnum$g.call(b, prop))
1418
+ __defNormalProp$g(a, prop, b[prop]);
1419
1419
  }
1420
1420
  return a;
1421
1421
  };
@@ -1426,7 +1426,7 @@ function mergeProps(props, ...restProps) {
1426
1426
  if (restProps.every((rest) => Object.keys(rest).length === 0)) {
1427
1427
  return props;
1428
1428
  }
1429
- const result = __spreadValues$f({}, props);
1429
+ const result = __spreadValues$g({}, props);
1430
1430
  for (const rest of restProps) {
1431
1431
  for (const key of Object.keys(rest)) {
1432
1432
  result[key] = mergePropVals(key, result[key], rest[key]);
@@ -1463,7 +1463,7 @@ function mergePropVals(name, val1, val2) {
1463
1463
  } else if (name === "className") {
1464
1464
  return classNames__default.default(val1, val2);
1465
1465
  } else if (name === "style") {
1466
- return __spreadValues$f(__spreadValues$f({}, val1), val2);
1466
+ return __spreadValues$g(__spreadValues$g({}, val1), val2);
1467
1467
  } else if (name === "ref") {
1468
1468
  return mergeRefs(val1, val2);
1469
1469
  } else if (typeof val1 !== typeof val2) {
@@ -1499,25 +1499,25 @@ function reactNodeToString(reactNode) {
1499
1499
  return string;
1500
1500
  }
1501
1501
 
1502
- var __defProp$e = Object.defineProperty;
1503
- var __defProps$b = Object.defineProperties;
1504
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
1505
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
1506
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
1507
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
1508
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1509
- var __spreadValues$e = (a, b) => {
1502
+ var __defProp$f = Object.defineProperty;
1503
+ var __defProps$c = Object.defineProperties;
1504
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
1505
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
1506
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
1507
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
1508
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1509
+ var __spreadValues$f = (a, b) => {
1510
1510
  for (var prop in b || (b = {}))
1511
- if (__hasOwnProp$e.call(b, prop))
1512
- __defNormalProp$e(a, prop, b[prop]);
1513
- if (__getOwnPropSymbols$e)
1514
- for (var prop of __getOwnPropSymbols$e(b)) {
1515
- if (__propIsEnum$e.call(b, prop))
1516
- __defNormalProp$e(a, prop, b[prop]);
1511
+ if (__hasOwnProp$f.call(b, prop))
1512
+ __defNormalProp$f(a, prop, b[prop]);
1513
+ if (__getOwnPropSymbols$f)
1514
+ for (var prop of __getOwnPropSymbols$f(b)) {
1515
+ if (__propIsEnum$f.call(b, prop))
1516
+ __defNormalProp$f(a, prop, b[prop]);
1517
1517
  }
1518
1518
  return a;
1519
1519
  };
1520
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
1520
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
1521
1521
  const AntdInput = antd.Input;
1522
1522
  const AntdTextArea = antd.Input.TextArea;
1523
1523
  const AntdPassword = antd.Input.Password;
@@ -1607,10 +1607,10 @@ const COMMON_EVENT_HANDLERS = {
1607
1607
  };
1608
1608
  const inputComponentName = "plasmic-antd5-input";
1609
1609
  function registerInput(loader) {
1610
- registerComponentHelper(loader, AntdInput, __spreadProps$b(__spreadValues$e({
1610
+ registerComponentHelper(loader, AntdInput, __spreadProps$c(__spreadValues$f({
1611
1611
  name: inputComponentName,
1612
1612
  displayName: "Input",
1613
- props: __spreadValues$e(__spreadValues$e(__spreadValues$e({
1613
+ props: __spreadValues$f(__spreadValues$f(__spreadValues$f({
1614
1614
  value: {
1615
1615
  type: "string",
1616
1616
  hidden: (ps) => !!ps.__plasmicFormField
@@ -1641,7 +1641,7 @@ function registerInput(loader) {
1641
1641
  defaultValueHint: "text"
1642
1642
  }
1643
1643
  }, COMMON_ADVANCED_PROPS), COMMON_DECORATOR_PROPS), COMMON_EVENT_HANDLERS),
1644
- states: __spreadValues$e({}, COMMON_STATES)
1644
+ states: __spreadValues$f({}, COMMON_STATES)
1645
1645
  }, { trapsSelection: true }), {
1646
1646
  componentHelpers: COMMON_HELPERS_CONFIG,
1647
1647
  importPath: "@plasmicpkgs/antd5/skinny/registerInput",
@@ -1654,7 +1654,7 @@ function registerTextArea(loader) {
1654
1654
  name: textAreaComponentName,
1655
1655
  parentComponentName: inputComponentName,
1656
1656
  displayName: "Text Area",
1657
- props: __spreadValues$e({
1657
+ props: __spreadValues$f({
1658
1658
  value: {
1659
1659
  type: "string",
1660
1660
  hidden: (ps) => !!ps.__plasmicFormField
@@ -1675,7 +1675,7 @@ function registerTextArea(loader) {
1675
1675
  defaultValueHint: true
1676
1676
  }
1677
1677
  }, COMMON_EVENT_HANDLERS),
1678
- states: __spreadValues$e({}, COMMON_STATES),
1678
+ states: __spreadValues$f({}, COMMON_STATES),
1679
1679
  componentHelpers: COMMON_HELPERS_CONFIG,
1680
1680
  importPath: "@plasmicpkgs/antd5/skinny/registerInput",
1681
1681
  importName: "AntdTextArea"
@@ -1687,7 +1687,7 @@ function registerPasswordInput(loader) {
1687
1687
  name: passwordComponentName,
1688
1688
  parentComponentName: inputComponentName,
1689
1689
  displayName: "Password Input",
1690
- props: __spreadValues$e({
1690
+ props: __spreadValues$f({
1691
1691
  value: {
1692
1692
  type: "string",
1693
1693
  hidden: (ps) => !!ps.__plasmicFormField
@@ -1708,7 +1708,7 @@ function registerPasswordInput(loader) {
1708
1708
  defaultValueHint: true
1709
1709
  }
1710
1710
  }, COMMON_EVENT_HANDLERS),
1711
- states: __spreadValues$e({}, COMMON_STATES),
1711
+ states: __spreadValues$f({}, COMMON_STATES),
1712
1712
  componentHelpers: COMMON_HELPERS_CONFIG,
1713
1713
  importPath: "@plasmicpkgs/antd5/skinny/registerInput",
1714
1714
  importName: "AntdPassword"
@@ -1716,11 +1716,11 @@ function registerPasswordInput(loader) {
1716
1716
  }
1717
1717
  const inputNumberComponentName = "plasmic-antd5-input-number";
1718
1718
  function registerNumberInput(loader) {
1719
- registerComponentHelper(loader, AntdInputNumber, __spreadProps$b(__spreadValues$e({
1719
+ registerComponentHelper(loader, AntdInputNumber, __spreadProps$c(__spreadValues$f({
1720
1720
  name: inputNumberComponentName,
1721
1721
  parentComponentName: inputComponentName,
1722
1722
  displayName: "Number Input",
1723
- props: __spreadProps$b(__spreadValues$e(__spreadValues$e(__spreadValues$e({
1723
+ props: __spreadProps$c(__spreadValues$f(__spreadValues$f(__spreadValues$f({
1724
1724
  value: {
1725
1725
  type: "number",
1726
1726
  hidden: (ps) => !!ps.__plasmicFormField
@@ -1758,7 +1758,7 @@ function registerNumberInput(loader) {
1758
1758
  ]
1759
1759
  }
1760
1760
  }),
1761
- states: __spreadValues$e({}, COMMON_STATES)
1761
+ states: __spreadValues$f({}, COMMON_STATES)
1762
1762
  }, { trapsSelection: true }), {
1763
1763
  // don't need component helpers
1764
1764
  importPath: "@plasmicpkgs/antd5/skinny/registerInput",
@@ -1766,33 +1766,33 @@ function registerNumberInput(loader) {
1766
1766
  }));
1767
1767
  }
1768
1768
 
1769
- var __defProp$d = Object.defineProperty;
1770
- var __defProps$a = Object.defineProperties;
1771
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
1772
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
1773
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
1774
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
1775
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1776
- var __spreadValues$d = (a, b) => {
1769
+ var __defProp$e = Object.defineProperty;
1770
+ var __defProps$b = Object.defineProperties;
1771
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
1772
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
1773
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
1774
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
1775
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1776
+ var __spreadValues$e = (a, b) => {
1777
1777
  for (var prop in b || (b = {}))
1778
- if (__hasOwnProp$d.call(b, prop))
1779
- __defNormalProp$d(a, prop, b[prop]);
1780
- if (__getOwnPropSymbols$d)
1781
- for (var prop of __getOwnPropSymbols$d(b)) {
1782
- if (__propIsEnum$d.call(b, prop))
1783
- __defNormalProp$d(a, prop, b[prop]);
1778
+ if (__hasOwnProp$e.call(b, prop))
1779
+ __defNormalProp$e(a, prop, b[prop]);
1780
+ if (__getOwnPropSymbols$e)
1781
+ for (var prop of __getOwnPropSymbols$e(b)) {
1782
+ if (__propIsEnum$e.call(b, prop))
1783
+ __defNormalProp$e(a, prop, b[prop]);
1784
1784
  }
1785
1785
  return a;
1786
1786
  };
1787
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
1788
- var __objRest$9 = (source, exclude) => {
1787
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
1788
+ var __objRest$a = (source, exclude) => {
1789
1789
  var target = {};
1790
1790
  for (var prop in source)
1791
- if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
1791
+ if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
1792
1792
  target[prop] = source[prop];
1793
- if (source != null && __getOwnPropSymbols$d)
1794
- for (var prop of __getOwnPropSymbols$d(source)) {
1795
- if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
1793
+ if (source != null && __getOwnPropSymbols$e)
1794
+ for (var prop of __getOwnPropSymbols$e(source)) {
1795
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
1796
1796
  target[prop] = source[prop];
1797
1797
  }
1798
1798
  return target;
@@ -1801,7 +1801,7 @@ const RadioGroup = antd.Radio.Group;
1801
1801
  const AntdRadio = antd.Radio;
1802
1802
  const AntdRadioButton = antd.Radio.Button;
1803
1803
  function AntdRadioGroup(props) {
1804
- const _a = props, { onChange, useChildren } = _a, rest = __objRest$9(_a, ["onChange", "useChildren"]);
1804
+ const _a = props, { onChange, useChildren } = _a, rest = __objRest$a(_a, ["onChange", "useChildren"]);
1805
1805
  const wrappedOnChange = React__default.default.useMemo(() => {
1806
1806
  if (onChange) {
1807
1807
  return (event) => onChange(event.target.value);
@@ -1811,7 +1811,7 @@ function AntdRadioGroup(props) {
1811
1811
  }, [onChange]);
1812
1812
  return /* @__PURE__ */ React__default.default.createElement(
1813
1813
  RadioGroup,
1814
- __spreadProps$a(__spreadValues$d({}, rest), {
1814
+ __spreadProps$b(__spreadValues$e({}, rest), {
1815
1815
  onChange: wrappedOnChange,
1816
1816
  options: useChildren ? void 0 : rest.options
1817
1817
  })
@@ -1839,7 +1839,7 @@ function registerRadio(loader) {
1839
1839
  defaultValueHint: false,
1840
1840
  advanced: true
1841
1841
  },
1842
- children: __spreadValues$d({
1842
+ children: __spreadValues$e({
1843
1843
  type: "slot",
1844
1844
  defaultValue: [
1845
1845
  {
@@ -1871,7 +1871,7 @@ function registerRadio(loader) {
1871
1871
  defaultValueHint: false,
1872
1872
  advanced: true
1873
1873
  },
1874
- children: __spreadValues$d({
1874
+ children: __spreadValues$e({
1875
1875
  type: "slot",
1876
1876
  defaultValue: [
1877
1877
  {
@@ -1885,7 +1885,7 @@ function registerRadio(loader) {
1885
1885
  importName: "AntdRadioButton",
1886
1886
  parentComponentName: radioGroupComponentName
1887
1887
  });
1888
- registerComponentHelper(loader, AntdRadioGroup, __spreadValues$d({
1888
+ registerComponentHelper(loader, AntdRadioGroup, __spreadValues$e({
1889
1889
  name: radioGroupComponentName,
1890
1890
  displayName: "Radio Group",
1891
1891
  props: {
@@ -2008,33 +2008,33 @@ function registerRadio(loader) {
2008
2008
  }));
2009
2009
  }
2010
2010
 
2011
- var __defProp$c = Object.defineProperty;
2012
- var __defProps$9 = Object.defineProperties;
2013
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
2014
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
2015
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
2016
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
2017
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2018
- var __spreadValues$c = (a, b) => {
2011
+ var __defProp$d = Object.defineProperty;
2012
+ var __defProps$a = Object.defineProperties;
2013
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
2014
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
2015
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
2016
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
2017
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2018
+ var __spreadValues$d = (a, b) => {
2019
2019
  for (var prop in b || (b = {}))
2020
- if (__hasOwnProp$c.call(b, prop))
2021
- __defNormalProp$c(a, prop, b[prop]);
2022
- if (__getOwnPropSymbols$c)
2023
- for (var prop of __getOwnPropSymbols$c(b)) {
2024
- if (__propIsEnum$c.call(b, prop))
2025
- __defNormalProp$c(a, prop, b[prop]);
2020
+ if (__hasOwnProp$d.call(b, prop))
2021
+ __defNormalProp$d(a, prop, b[prop]);
2022
+ if (__getOwnPropSymbols$d)
2023
+ for (var prop of __getOwnPropSymbols$d(b)) {
2024
+ if (__propIsEnum$d.call(b, prop))
2025
+ __defNormalProp$d(a, prop, b[prop]);
2026
2026
  }
2027
2027
  return a;
2028
2028
  };
2029
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
2030
- var __objRest$8 = (source, exclude) => {
2029
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
2030
+ var __objRest$9 = (source, exclude) => {
2031
2031
  var target = {};
2032
2032
  for (var prop in source)
2033
- if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
2033
+ if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
2034
2034
  target[prop] = source[prop];
2035
- if (source != null && __getOwnPropSymbols$c)
2036
- for (var prop of __getOwnPropSymbols$c(source)) {
2037
- if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
2035
+ if (source != null && __getOwnPropSymbols$d)
2036
+ for (var prop of __getOwnPropSymbols$d(source)) {
2037
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
2038
2038
  target[prop] = source[prop];
2039
2039
  }
2040
2040
  return target;
@@ -2049,7 +2049,7 @@ function AntdSelect(props) {
2049
2049
  suffixIcon,
2050
2050
  mode,
2051
2051
  useChildren
2052
- } = _a, rest = __objRest$8(_a, [
2052
+ } = _a, rest = __objRest$9(_a, [
2053
2053
  "popupClassName",
2054
2054
  "popupScopeClassName",
2055
2055
  "defaultStylesClassName",
@@ -2057,13 +2057,13 @@ function AntdSelect(props) {
2057
2057
  "mode",
2058
2058
  "useChildren"
2059
2059
  ]);
2060
- const curated = __spreadValues$c({}, rest);
2060
+ const curated = __spreadValues$d({}, rest);
2061
2061
  if (useChildren) {
2062
2062
  curated.options = void 0;
2063
2063
  }
2064
2064
  return /* @__PURE__ */ React__default.default.createElement(
2065
2065
  antd.Select,
2066
- __spreadValues$c(__spreadProps$9(__spreadValues$c({}, curated), {
2066
+ __spreadValues$d(__spreadProps$a(__spreadValues$d({}, curated), {
2067
2067
  mode: !mode || mode === "single" ? void 0 : mode,
2068
2068
  popupClassName: `${defaultStylesClassName} ${popupScopeClassName} ${popupClassName}`,
2069
2069
  optionFilterProp: curated.options ? "label" : void 0,
@@ -2078,7 +2078,7 @@ const selectComponentName = "plasmic-antd5-select";
2078
2078
  const optionComponentName = "plasmic-antd5-option";
2079
2079
  const optionGroupComponentName = "plasmic-antd5-option-group";
2080
2080
  function registerSelect(loader) {
2081
- registerComponentHelper(loader, AntdSelect, __spreadProps$9(__spreadValues$c({
2081
+ registerComponentHelper(loader, AntdSelect, __spreadProps$a(__spreadValues$d({
2082
2082
  name: selectComponentName,
2083
2083
  displayName: "Select",
2084
2084
  props: {
@@ -2314,7 +2314,7 @@ function registerSelect(loader) {
2314
2314
  displayName: "Option",
2315
2315
  parentComponentName: selectComponentName,
2316
2316
  props: {
2317
- children: __spreadValues$c({
2317
+ children: __spreadValues$d({
2318
2318
  type: "slot",
2319
2319
  defaultValue: "Option"
2320
2320
  }, { mergeWithParent: true }),
@@ -2367,24 +2367,24 @@ function registerSelect(loader) {
2367
2367
  });
2368
2368
  }
2369
2369
 
2370
- var __defProp$b = Object.defineProperty;
2371
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
2372
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
2373
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
2374
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2375
- var __spreadValues$b = (a, b) => {
2370
+ var __defProp$c = Object.defineProperty;
2371
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
2372
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
2373
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
2374
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2375
+ var __spreadValues$c = (a, b) => {
2376
2376
  for (var prop in b || (b = {}))
2377
- if (__hasOwnProp$b.call(b, prop))
2378
- __defNormalProp$b(a, prop, b[prop]);
2379
- if (__getOwnPropSymbols$b)
2380
- for (var prop of __getOwnPropSymbols$b(b)) {
2381
- if (__propIsEnum$b.call(b, prop))
2382
- __defNormalProp$b(a, prop, b[prop]);
2377
+ if (__hasOwnProp$c.call(b, prop))
2378
+ __defNormalProp$c(a, prop, b[prop]);
2379
+ if (__getOwnPropSymbols$c)
2380
+ for (var prop of __getOwnPropSymbols$c(b)) {
2381
+ if (__propIsEnum$c.call(b, prop))
2382
+ __defNormalProp$c(a, prop, b[prop]);
2383
2383
  }
2384
2384
  return a;
2385
2385
  };
2386
2386
  function AntdSwitch(props) {
2387
- return /* @__PURE__ */ React__default.default.createElement(antd.Switch, __spreadValues$b({}, props));
2387
+ return /* @__PURE__ */ React__default.default.createElement(antd.Switch, __spreadValues$c({}, props));
2388
2388
  }
2389
2389
  AntdSwitch.__plasmicFormFieldMeta = { valueProp: "checked" };
2390
2390
  const switchComponentName = "plasmic-antd5-switch";
@@ -2430,33 +2430,33 @@ function registerSwitch(loader) {
2430
2430
  });
2431
2431
  }
2432
2432
 
2433
- var __defProp$a = Object.defineProperty;
2434
- var __defProps$8 = Object.defineProperties;
2435
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
2436
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
2437
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
2438
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
2439
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2440
- var __spreadValues$a = (a, b) => {
2433
+ var __defProp$b = Object.defineProperty;
2434
+ var __defProps$9 = Object.defineProperties;
2435
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
2436
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
2437
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
2438
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
2439
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2440
+ var __spreadValues$b = (a, b) => {
2441
2441
  for (var prop in b || (b = {}))
2442
- if (__hasOwnProp$a.call(b, prop))
2443
- __defNormalProp$a(a, prop, b[prop]);
2444
- if (__getOwnPropSymbols$a)
2445
- for (var prop of __getOwnPropSymbols$a(b)) {
2446
- if (__propIsEnum$a.call(b, prop))
2447
- __defNormalProp$a(a, prop, b[prop]);
2442
+ if (__hasOwnProp$b.call(b, prop))
2443
+ __defNormalProp$b(a, prop, b[prop]);
2444
+ if (__getOwnPropSymbols$b)
2445
+ for (var prop of __getOwnPropSymbols$b(b)) {
2446
+ if (__propIsEnum$b.call(b, prop))
2447
+ __defNormalProp$b(a, prop, b[prop]);
2448
2448
  }
2449
2449
  return a;
2450
2450
  };
2451
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
2452
- var __objRest$7 = (source, exclude) => {
2451
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
2452
+ var __objRest$8 = (source, exclude) => {
2453
2453
  var target = {};
2454
2454
  for (var prop in source)
2455
- if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
2455
+ if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
2456
2456
  target[prop] = source[prop];
2457
- if (source != null && __getOwnPropSymbols$a)
2458
- for (var prop of __getOwnPropSymbols$a(source)) {
2459
- if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
2457
+ if (source != null && __getOwnPropSymbols$b)
2458
+ for (var prop of __getOwnPropSymbols$b(source)) {
2459
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
2460
2460
  target[prop] = source[prop];
2461
2461
  }
2462
2462
  return target;
@@ -2491,7 +2491,7 @@ const Internal = React__default.default.forwardRef(
2491
2491
  const [form] = antd.Form.useForm();
2492
2492
  const values = form.getFieldsValue(true);
2493
2493
  const lastValue = React__default.default.useRef(values);
2494
- const _a = props, { extendedOnValuesChange, setRemountKey } = _a, rest = __objRest$7(_a, ["extendedOnValuesChange", "setRemountKey"]);
2494
+ const _a = props, { extendedOnValuesChange, setRemountKey } = _a, rest = __objRest$8(_a, ["extendedOnValuesChange", "setRemountKey"]);
2495
2495
  let childrenNode;
2496
2496
  if (props.mode !== "simplified") {
2497
2497
  childrenNode = typeof props.children === "function" ? props.children(values, form) : props.children;
@@ -2506,7 +2506,7 @@ const Internal = React__default.default.forwardRef(
2506
2506
  },
2507
2507
  /* @__PURE__ */ React__default.default.createElement(
2508
2508
  FormItemWrapper,
2509
- __spreadProps$8(__spreadValues$a({}, formItem), {
2509
+ __spreadProps$9(__spreadValues$b({}, formItem), {
2510
2510
  noLabel: formItem.inputType === "Checkbox" /* Checkbox */ || formItem.noLabel,
2511
2511
  style: { width: "100%" }
2512
2512
  }),
@@ -2574,7 +2574,7 @@ const Internal = React__default.default.forwardRef(
2574
2574
  },
2575
2575
  /* @__PURE__ */ React__default.default.createElement(FormLayoutContext.Provider, { value: formLayout }, /* @__PURE__ */ React__default.default.createElement(
2576
2576
  antd.Form,
2577
- __spreadProps$8(__spreadValues$a({}, rest), {
2577
+ __spreadProps$9(__spreadValues$b({}, rest), {
2578
2578
  key: props.initialValues ? JSON.stringify(props.initialValues) : void 0,
2579
2579
  onValuesChange: (...args) => {
2580
2580
  var _a2;
@@ -2610,7 +2610,7 @@ function useFormItemDefinitions(rawData, props, formRef) {
2610
2610
  const { mergedFields, minimalFullLengthFields } = dataSources.deriveFieldConfigs(
2611
2611
  formItems != null ? formItems : [],
2612
2612
  schema,
2613
- (field) => __spreadValues$a({
2613
+ (field) => __spreadValues$b({
2614
2614
  inputType: "Text" /* Text */
2615
2615
  }, field && {
2616
2616
  key: field.id,
@@ -2648,7 +2648,7 @@ const FormWrapper = React__default.default.forwardRef(
2648
2648
  }, [previousInitialValues, props.initialValues]);
2649
2649
  React__default.default.useImperativeHandle(
2650
2650
  ref,
2651
- () => wrapperRef.current ? __spreadValues$a({}, wrapperRef.current) : {}
2651
+ () => wrapperRef.current ? __spreadValues$b({}, wrapperRef.current) : {}
2652
2652
  );
2653
2653
  const rawData = useRawData(props);
2654
2654
  const formItemDefinitions = useFormItemDefinitions(
@@ -2661,7 +2661,7 @@ const FormWrapper = React__default.default.forwardRef(
2661
2661
  setRemountKey((k) => k + 1);
2662
2662
  }
2663
2663
  }, [rawData]);
2664
- const _a = props, { formItems } = _a, rest = __objRest$7(_a, ["formItems"]);
2664
+ const _a = props, { formItems } = _a, rest = __objRest$8(_a, ["formItems"]);
2665
2665
  const actualFormItems = props.mode === "simplified" && formItemDefinitions ? formItemDefinitions : formItems;
2666
2666
  const previousFormItems = React__default.default.useRef([]);
2667
2667
  React__default.default.useEffect(() => {
@@ -2676,7 +2676,7 @@ const FormWrapper = React__default.default.forwardRef(
2676
2676
  const isLoadingData = rawData == null ? void 0 : rawData.isLoading;
2677
2677
  return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(
2678
2678
  Internal,
2679
- __spreadProps$8(__spreadValues$a({
2679
+ __spreadProps$9(__spreadValues$b({
2680
2680
  key: remountKey
2681
2681
  }, rest), {
2682
2682
  setRemountKey,
@@ -2818,7 +2818,7 @@ function registerForm(loader) {
2818
2818
  type: "array",
2819
2819
  itemType: {
2820
2820
  type: "object",
2821
- fields: __spreadValues$a({
2821
+ fields: __spreadValues$b({
2822
2822
  label: {
2823
2823
  type: "string",
2824
2824
  defaultValueHint: getDefaultValueHint("label")
@@ -2945,7 +2945,7 @@ function registerForm(loader) {
2945
2945
  return true;
2946
2946
  }
2947
2947
  },
2948
- submitSlot: __spreadValues$a({
2948
+ submitSlot: __spreadValues$b({
2949
2949
  type: "slot",
2950
2950
  hidden: () => true,
2951
2951
  defaultValue: {
@@ -3222,7 +3222,7 @@ function FormItemWrapper(props) {
3222
3222
  customizeProps,
3223
3223
  setControlContextData,
3224
3224
  alignLabellessWithControls = true
3225
- } = _a, rest = __objRest$7(_a, [
3225
+ } = _a, rest = __objRest$8(_a, [
3226
3226
  "rules",
3227
3227
  "description",
3228
3228
  "noLabel",
@@ -3269,7 +3269,7 @@ function FormItemWrapper(props) {
3269
3269
  }
3270
3270
  return /* @__PURE__ */ React__default.default.createElement(
3271
3271
  FormItem,
3272
- __spreadProps$8(__spreadValues$a({}, rest), {
3272
+ __spreadProps$9(__spreadValues$b({}, rest), {
3273
3273
  label: noLabel ? void 0 : props.label,
3274
3274
  name: relativeFormItemName,
3275
3275
  rules,
@@ -3334,7 +3334,7 @@ function deriveOnChangePropName(props) {
3334
3334
  return void 0;
3335
3335
  }
3336
3336
  function FormItemForwarder(_a) {
3337
- var _b = _a, { formItemProps } = _b, props = __objRest$7(_b, ["formItemProps"]);
3337
+ var _b = _a, { formItemProps } = _b, props = __objRest$8(_b, ["formItemProps"]);
3338
3338
  var _a2;
3339
3339
  const status = antd.Form.Item.useStatus();
3340
3340
  const internalFormCtx = React__default.default.useContext(InternalFormInstanceContext);
@@ -3347,7 +3347,7 @@ function FormItemForwarder(_a) {
3347
3347
  });
3348
3348
  return React__default.default.Children.map(formItemProps.children, (child, i) => {
3349
3349
  var _a3;
3350
- let newProps = __spreadProps$8(__spreadValues$a(__spreadValues$a({}, (_a3 = child.props) != null ? _a3 : {}), props), {
3350
+ let newProps = __spreadProps$9(__spreadValues$b(__spreadValues$b({}, (_a3 = child.props) != null ? _a3 : {}), props), {
3351
3351
  __plasmicFormField: true
3352
3352
  });
3353
3353
  if (formItemProps.customizeProps) {
@@ -3482,7 +3482,7 @@ const commonFormItemProps = {
3482
3482
  };
3483
3483
  const formItemComponentName = "plasmic-antd5-form-item";
3484
3484
  function registerFormItem(loader) {
3485
- registerComponentHelper(loader, FormItemWrapper, __spreadValues$a({
3485
+ registerComponentHelper(loader, FormItemWrapper, __spreadValues$b({
3486
3486
  name: formItemComponentName,
3487
3487
  displayName: "Form Field",
3488
3488
  parentComponentName: formComponentName,
@@ -3490,8 +3490,8 @@ function registerFormItem(loader) {
3490
3490
  marginBottom: "24px",
3491
3491
  width: "stretch"
3492
3492
  },
3493
- props: __spreadValues$a({
3494
- label: __spreadValues$a({
3493
+ props: __spreadValues$b({
3494
+ label: __spreadValues$b({
3495
3495
  type: "slot",
3496
3496
  defaultValue: {
3497
3497
  type: "text",
@@ -3499,7 +3499,7 @@ function registerFormItem(loader) {
3499
3499
  },
3500
3500
  hidden: (ps) => !!ps.noLabel
3501
3501
  }, { mergeWithParent: true }),
3502
- children: __spreadValues$a({
3502
+ children: __spreadValues$b({
3503
3503
  type: "slot",
3504
3504
  defaultValue: {
3505
3505
  type: "component",
@@ -3674,7 +3674,7 @@ const FormListWrapper = React__default.default.forwardRef(function FormListWrapp
3674
3674
  }
3675
3675
  }, [props.initialValue, fullFormItemName]);
3676
3676
  }
3677
- return /* @__PURE__ */ React__default.default.createElement(FormList, __spreadProps$8(__spreadValues$a({}, props), { name: relativeFormItemName != null ? relativeFormItemName : [] }), (...args) => {
3677
+ return /* @__PURE__ */ React__default.default.createElement(FormList, __spreadProps$9(__spreadValues$b({}, props), { name: relativeFormItemName != null ? relativeFormItemName : [] }), (...args) => {
3678
3678
  operationsRef.current = args;
3679
3679
  return args[0].map((field, index) => /* @__PURE__ */ React__default.default.createElement(
3680
3680
  PathContext.Provider,
@@ -3801,39 +3801,39 @@ function registerFormList(loader) {
3801
3801
  });
3802
3802
  }
3803
3803
 
3804
- var __defProp$9 = Object.defineProperty;
3805
- var __defProps$7 = Object.defineProperties;
3806
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
3807
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
3808
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
3809
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
3810
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3811
- var __spreadValues$9 = (a, b) => {
3804
+ var __defProp$a = Object.defineProperty;
3805
+ var __defProps$8 = Object.defineProperties;
3806
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
3807
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
3808
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
3809
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
3810
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3811
+ var __spreadValues$a = (a, b) => {
3812
3812
  for (var prop in b || (b = {}))
3813
- if (__hasOwnProp$9.call(b, prop))
3814
- __defNormalProp$9(a, prop, b[prop]);
3815
- if (__getOwnPropSymbols$9)
3816
- for (var prop of __getOwnPropSymbols$9(b)) {
3817
- if (__propIsEnum$9.call(b, prop))
3818
- __defNormalProp$9(a, prop, b[prop]);
3813
+ if (__hasOwnProp$a.call(b, prop))
3814
+ __defNormalProp$a(a, prop, b[prop]);
3815
+ if (__getOwnPropSymbols$a)
3816
+ for (var prop of __getOwnPropSymbols$a(b)) {
3817
+ if (__propIsEnum$a.call(b, prop))
3818
+ __defNormalProp$a(a, prop, b[prop]);
3819
3819
  }
3820
3820
  return a;
3821
3821
  };
3822
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
3823
- var __objRest$6 = (source, exclude) => {
3822
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
3823
+ var __objRest$7 = (source, exclude) => {
3824
3824
  var target = {};
3825
3825
  for (var prop in source)
3826
- if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
3826
+ if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
3827
3827
  target[prop] = source[prop];
3828
- if (source != null && __getOwnPropSymbols$9)
3829
- for (var prop of __getOwnPropSymbols$9(source)) {
3830
- if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
3828
+ if (source != null && __getOwnPropSymbols$a)
3829
+ for (var prop of __getOwnPropSymbols$a(source)) {
3830
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
3831
3831
  target[prop] = source[prop];
3832
3832
  }
3833
3833
  return target;
3834
3834
  };
3835
3835
  function AntdModal(props) {
3836
- const _a = props, { onOpenChange, onOk, onCancel, open, footer } = _a, rest = __objRest$6(_a, ["onOpenChange", "onOk", "onCancel", "open", "footer"]);
3836
+ const _a = props, { onOpenChange, onOk, onCancel, open, footer } = _a, rest = __objRest$7(_a, ["onOpenChange", "onOk", "onCancel", "open", "footer"]);
3837
3837
  const memoOnOk = React__default.default.useMemo(() => {
3838
3838
  if (onOpenChange || onOk) {
3839
3839
  return (e) => {
@@ -3856,7 +3856,7 @@ function AntdModal(props) {
3856
3856
  }, [onOpenChange, onCancel]);
3857
3857
  return /* @__PURE__ */ React__default.default.createElement(
3858
3858
  antd.Modal,
3859
- __spreadProps$7(__spreadValues$9({}, rest), {
3859
+ __spreadProps$8(__spreadValues$a({}, rest), {
3860
3860
  onOk: memoOnOk,
3861
3861
  onCancel: memoOnCancel,
3862
3862
  open,
@@ -3959,30 +3959,30 @@ function registerModal(loader) {
3959
3959
  });
3960
3960
  }
3961
3961
 
3962
- var __defProp$8 = Object.defineProperty;
3963
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
3964
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
3965
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
3966
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3967
- var __spreadValues$8 = (a, b) => {
3962
+ var __defProp$9 = Object.defineProperty;
3963
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
3964
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
3965
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
3966
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3967
+ var __spreadValues$9 = (a, b) => {
3968
3968
  for (var prop in b || (b = {}))
3969
- if (__hasOwnProp$8.call(b, prop))
3970
- __defNormalProp$8(a, prop, b[prop]);
3971
- if (__getOwnPropSymbols$8)
3972
- for (var prop of __getOwnPropSymbols$8(b)) {
3973
- if (__propIsEnum$8.call(b, prop))
3974
- __defNormalProp$8(a, prop, b[prop]);
3969
+ if (__hasOwnProp$9.call(b, prop))
3970
+ __defNormalProp$9(a, prop, b[prop]);
3971
+ if (__getOwnPropSymbols$9)
3972
+ for (var prop of __getOwnPropSymbols$9(b)) {
3973
+ if (__propIsEnum$9.call(b, prop))
3974
+ __defNormalProp$9(a, prop, b[prop]);
3975
3975
  }
3976
3976
  return a;
3977
3977
  };
3978
- var __objRest$5 = (source, exclude) => {
3978
+ var __objRest$6 = (source, exclude) => {
3979
3979
  var target = {};
3980
3980
  for (var prop in source)
3981
- if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
3981
+ if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
3982
3982
  target[prop] = source[prop];
3983
- if (source != null && __getOwnPropSymbols$8)
3984
- for (var prop of __getOwnPropSymbols$8(source)) {
3985
- if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
3983
+ if (source != null && __getOwnPropSymbols$9)
3984
+ for (var prop of __getOwnPropSymbols$9(source)) {
3985
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
3986
3986
  target[prop] = source[prop];
3987
3987
  }
3988
3988
  return target;
@@ -3997,7 +3997,7 @@ const AntdTable = React__default.default.forwardRef(function AntdTable2(props, r
3997
3997
  setControlContextData,
3998
3998
  selectedRowKeys,
3999
3999
  defaultSelectedRowKeys
4000
- } = _a, rest = __objRest$5(_a, [
4000
+ } = _a, rest = __objRest$6(_a, [
4001
4001
  "data",
4002
4002
  "onSelectedRowKeysChange",
4003
4003
  "onSelectedRowsChange",
@@ -4063,7 +4063,7 @@ const AntdTable = React__default.default.forwardRef(function AntdTable2(props, r
4063
4063
  );
4064
4064
  return /* @__PURE__ */ React__default.default.createElement(
4065
4065
  antd.Table,
4066
- __spreadValues$8({
4066
+ __spreadValues$9({
4067
4067
  loading: data == null ? void 0 : data.isLoading,
4068
4068
  dataSource: data == null ? void 0 : data.data,
4069
4069
  rowSelection: selection,
@@ -4172,7 +4172,7 @@ function registerTable(loader) {
4172
4172
  }
4173
4173
  }
4174
4174
  });
4175
- registerComponentHelper(loader, AntdColumn, __spreadValues$8({
4175
+ registerComponentHelper(loader, AntdColumn, __spreadValues$9({
4176
4176
  name: "plasmic-antd5-table-column",
4177
4177
  displayName: "Column",
4178
4178
  parentComponentName: "plasmic-antd5-table",
@@ -4209,7 +4209,7 @@ function registerTable(loader) {
4209
4209
  importPath: "@plasmicpkgs/antd5/skinny/registerTable",
4210
4210
  importName: "AntdColumn"
4211
4211
  }, { isRenderless: true }));
4212
- registerComponentHelper(loader, AntdColumnGroup, __spreadValues$8({
4212
+ registerComponentHelper(loader, AntdColumnGroup, __spreadValues$9({
4213
4213
  name: "plasmic-antd5-table-column-group",
4214
4214
  displayName: "Column Group",
4215
4215
  parentComponentName: "plasmic-antd5-table",
@@ -4228,39 +4228,39 @@ function registerTable(loader) {
4228
4228
  }, { isRenderless: true }));
4229
4229
  }
4230
4230
 
4231
- var __defProp$7 = Object.defineProperty;
4232
- var __defProps$6 = Object.defineProperties;
4233
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
4234
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
4235
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
4236
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
4237
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4238
- var __spreadValues$7 = (a, b) => {
4231
+ var __defProp$8 = Object.defineProperty;
4232
+ var __defProps$7 = Object.defineProperties;
4233
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
4234
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
4235
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
4236
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
4237
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4238
+ var __spreadValues$8 = (a, b) => {
4239
4239
  for (var prop in b || (b = {}))
4240
- if (__hasOwnProp$7.call(b, prop))
4241
- __defNormalProp$7(a, prop, b[prop]);
4242
- if (__getOwnPropSymbols$7)
4243
- for (var prop of __getOwnPropSymbols$7(b)) {
4244
- if (__propIsEnum$7.call(b, prop))
4245
- __defNormalProp$7(a, prop, b[prop]);
4240
+ if (__hasOwnProp$8.call(b, prop))
4241
+ __defNormalProp$8(a, prop, b[prop]);
4242
+ if (__getOwnPropSymbols$8)
4243
+ for (var prop of __getOwnPropSymbols$8(b)) {
4244
+ if (__propIsEnum$8.call(b, prop))
4245
+ __defNormalProp$8(a, prop, b[prop]);
4246
4246
  }
4247
4247
  return a;
4248
4248
  };
4249
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
4250
- var __objRest$4 = (source, exclude) => {
4249
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
4250
+ var __objRest$5 = (source, exclude) => {
4251
4251
  var target = {};
4252
4252
  for (var prop in source)
4253
- if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
4253
+ if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
4254
4254
  target[prop] = source[prop];
4255
- if (source != null && __getOwnPropSymbols$7)
4256
- for (var prop of __getOwnPropSymbols$7(source)) {
4257
- if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
4255
+ if (source != null && __getOwnPropSymbols$8)
4256
+ for (var prop of __getOwnPropSymbols$8(source)) {
4257
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
4258
4258
  target[prop] = source[prop];
4259
4259
  }
4260
4260
  return target;
4261
4261
  };
4262
4262
  function UploadWrapper(props) {
4263
- const _a = props, { files, onFilesChange } = _a, rest = __objRest$4(_a, ["files", "onFilesChange"]);
4263
+ const _a = props, { files, onFilesChange } = _a, rest = __objRest$5(_a, ["files", "onFilesChange"]);
4264
4264
  const handleChange = (info) => {
4265
4265
  const { file } = info;
4266
4266
  if (file.status === "removed") {
@@ -4275,7 +4275,7 @@ function UploadWrapper(props) {
4275
4275
  };
4276
4276
  onFilesChange == null ? void 0 : onFilesChange([
4277
4277
  ...files,
4278
- __spreadProps$6(__spreadValues$7({}, metadata), {
4278
+ __spreadProps$7(__spreadValues$8({}, metadata), {
4279
4279
  status: "uploading"
4280
4280
  })
4281
4281
  ]);
@@ -4283,7 +4283,7 @@ function UploadWrapper(props) {
4283
4283
  reader.onload = () => {
4284
4284
  onFilesChange == null ? void 0 : onFilesChange([
4285
4285
  ...files.filter((f) => f.uid !== file.uid),
4286
- __spreadProps$6(__spreadValues$7({}, metadata), {
4286
+ __spreadProps$7(__spreadValues$8({}, metadata), {
4287
4287
  contents: reader.result.replace(
4288
4288
  /^data:[^;]+;base64,/,
4289
4289
  ""
@@ -4295,7 +4295,7 @@ function UploadWrapper(props) {
4295
4295
  reader.onerror = (error) => {
4296
4296
  onFilesChange == null ? void 0 : onFilesChange([
4297
4297
  ...files.filter((f) => f.uid !== file.uid),
4298
- __spreadProps$6(__spreadValues$7({}, metadata), {
4298
+ __spreadProps$7(__spreadValues$8({}, metadata), {
4299
4299
  status: "error"
4300
4300
  })
4301
4301
  ]);
@@ -4307,7 +4307,7 @@ function UploadWrapper(props) {
4307
4307
  };
4308
4308
  return /* @__PURE__ */ React__default.default.createElement(
4309
4309
  antd.Upload,
4310
- __spreadProps$6(__spreadValues$7({}, rest), {
4310
+ __spreadProps$7(__spreadValues$8({}, rest), {
4311
4311
  fileList: files,
4312
4312
  beforeUpload: () => {
4313
4313
  return false;
@@ -4326,7 +4326,7 @@ UploadWrapper.__plasmicFormFieldMeta = {
4326
4326
  onChangePropName: "onFilesChange"
4327
4327
  };
4328
4328
  function registerUpload(loader) {
4329
- registerComponentHelper(loader, UploadWrapper, __spreadProps$6(__spreadValues$7({
4329
+ registerComponentHelper(loader, UploadWrapper, __spreadProps$7(__spreadValues$8({
4330
4330
  name: "plasmic-antd5-upload",
4331
4331
  displayName: "Upload",
4332
4332
  props: {
@@ -4413,33 +4413,33 @@ function registerUpload(loader) {
4413
4413
  }));
4414
4414
  }
4415
4415
 
4416
- var __defProp$6 = Object.defineProperty;
4417
- var __defProps$5 = Object.defineProperties;
4418
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
4419
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
4420
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
4421
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
4422
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4423
- var __spreadValues$6 = (a, b) => {
4416
+ var __defProp$7 = Object.defineProperty;
4417
+ var __defProps$6 = Object.defineProperties;
4418
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
4419
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
4420
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
4421
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
4422
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4423
+ var __spreadValues$7 = (a, b) => {
4424
4424
  for (var prop in b || (b = {}))
4425
- if (__hasOwnProp$6.call(b, prop))
4426
- __defNormalProp$6(a, prop, b[prop]);
4427
- if (__getOwnPropSymbols$6)
4428
- for (var prop of __getOwnPropSymbols$6(b)) {
4429
- if (__propIsEnum$6.call(b, prop))
4430
- __defNormalProp$6(a, prop, b[prop]);
4425
+ if (__hasOwnProp$7.call(b, prop))
4426
+ __defNormalProp$7(a, prop, b[prop]);
4427
+ if (__getOwnPropSymbols$7)
4428
+ for (var prop of __getOwnPropSymbols$7(b)) {
4429
+ if (__propIsEnum$7.call(b, prop))
4430
+ __defNormalProp$7(a, prop, b[prop]);
4431
4431
  }
4432
4432
  return a;
4433
4433
  };
4434
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
4435
- var __objRest$3 = (source, exclude) => {
4434
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
4435
+ var __objRest$4 = (source, exclude) => {
4436
4436
  var target = {};
4437
4437
  for (var prop in source)
4438
- if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
4438
+ if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
4439
4439
  target[prop] = source[prop];
4440
- if (source != null && __getOwnPropSymbols$6)
4441
- for (var prop of __getOwnPropSymbols$6(source)) {
4442
- if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
4440
+ if (source != null && __getOwnPropSymbols$7)
4441
+ for (var prop of __getOwnPropSymbols$7(source)) {
4442
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
4443
4443
  target[prop] = source[prop];
4444
4444
  }
4445
4445
  return target;
@@ -4448,10 +4448,10 @@ function AntdDatePicker(props) {
4448
4448
  const nativeInput = React__default.default.useRef(null);
4449
4449
  const [open, setOpen] = React.useState(false);
4450
4450
  const strValue = props.value && !(typeof props.value === "string") && "toISOString" in props.value ? props.value.toISOString() : props.value === null ? void 0 : props.value;
4451
- const _a = props, rest = __objRest$3(_a, ["picker"]);
4451
+ const _a = props, rest = __objRest$4(_a, ["picker"]);
4452
4452
  return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(
4453
4453
  antd.DatePicker,
4454
- __spreadProps$5(__spreadValues$6({}, rest), {
4454
+ __spreadProps$6(__spreadValues$7({}, rest), {
4455
4455
  picker: props.picker,
4456
4456
  value: props.value === void 0 ? void 0 : !props.value ? null : dayjs__default.default(props.value),
4457
4457
  defaultValue: props.defaultValue === void 0 ? void 0 : dayjs__default.default(props.defaultValue),
@@ -4571,33 +4571,33 @@ function registerDatePicker(loader) {
4571
4571
  });
4572
4572
  }
4573
4573
 
4574
- var __defProp$5 = Object.defineProperty;
4575
- var __defProps$4 = Object.defineProperties;
4576
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
4577
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
4578
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
4579
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
4580
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4581
- var __spreadValues$5 = (a, b) => {
4574
+ var __defProp$6 = Object.defineProperty;
4575
+ var __defProps$5 = Object.defineProperties;
4576
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
4577
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
4578
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
4579
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
4580
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4581
+ var __spreadValues$6 = (a, b) => {
4582
4582
  for (var prop in b || (b = {}))
4583
- if (__hasOwnProp$5.call(b, prop))
4584
- __defNormalProp$5(a, prop, b[prop]);
4585
- if (__getOwnPropSymbols$5)
4586
- for (var prop of __getOwnPropSymbols$5(b)) {
4587
- if (__propIsEnum$5.call(b, prop))
4588
- __defNormalProp$5(a, prop, b[prop]);
4583
+ if (__hasOwnProp$6.call(b, prop))
4584
+ __defNormalProp$6(a, prop, b[prop]);
4585
+ if (__getOwnPropSymbols$6)
4586
+ for (var prop of __getOwnPropSymbols$6(b)) {
4587
+ if (__propIsEnum$6.call(b, prop))
4588
+ __defNormalProp$6(a, prop, b[prop]);
4589
4589
  }
4590
4590
  return a;
4591
4591
  };
4592
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
4593
- var __objRest$2 = (source, exclude) => {
4592
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
4593
+ var __objRest$3 = (source, exclude) => {
4594
4594
  var target = {};
4595
4595
  for (var prop in source)
4596
- if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
4596
+ if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
4597
4597
  target[prop] = source[prop];
4598
- if (source != null && __getOwnPropSymbols$5)
4599
- for (var prop of __getOwnPropSymbols$5(source)) {
4600
- if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop))
4598
+ if (source != null && __getOwnPropSymbols$6)
4599
+ for (var prop of __getOwnPropSymbols$6(source)) {
4600
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
4601
4601
  target[prop] = source[prop];
4602
4602
  }
4603
4603
  return target;
@@ -4607,17 +4607,17 @@ function AntdAvatar(_a) {
4607
4607
  letters,
4608
4608
  href,
4609
4609
  target
4610
- } = _b, props = __objRest$2(_b, [
4610
+ } = _b, props = __objRest$3(_b, [
4611
4611
  "letters",
4612
4612
  "href",
4613
4613
  "target"
4614
4614
  ]);
4615
- const avatar = /* @__PURE__ */ React__default.default.createElement(antd.Avatar, __spreadProps$4(__spreadValues$5({}, props), { children: props.children || letters }));
4615
+ const avatar = /* @__PURE__ */ React__default.default.createElement(antd.Avatar, __spreadProps$5(__spreadValues$6({}, props), { children: props.children || letters }));
4616
4616
  const PlasmicLink = host.usePlasmicLink();
4617
4617
  return href ? /* @__PURE__ */ React__default.default.createElement(PlasmicLink, { href, target: target ? "_blank" : void 0 }, avatar) : avatar;
4618
4618
  }
4619
4619
  function AntdAvatarGroup(props) {
4620
- return /* @__PURE__ */ React__default.default.createElement(antd.Avatar.Group, __spreadValues$5({}, props));
4620
+ return /* @__PURE__ */ React__default.default.createElement(antd.Avatar.Group, __spreadValues$6({}, props));
4621
4621
  }
4622
4622
  function registerAvatar(loader) {
4623
4623
  registerComponentHelper(loader, AntdAvatar, {
@@ -4705,27 +4705,27 @@ function registerAvatarGroup(loader) {
4705
4705
  });
4706
4706
  }
4707
4707
 
4708
- var __defProp$4 = Object.defineProperty;
4709
- var __defProps$3 = Object.defineProperties;
4710
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
4711
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
4712
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
4713
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
4714
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4715
- var __spreadValues$4 = (a, b) => {
4708
+ var __defProp$5 = Object.defineProperty;
4709
+ var __defProps$4 = Object.defineProperties;
4710
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
4711
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
4712
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
4713
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
4714
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4715
+ var __spreadValues$5 = (a, b) => {
4716
4716
  for (var prop in b || (b = {}))
4717
- if (__hasOwnProp$4.call(b, prop))
4718
- __defNormalProp$4(a, prop, b[prop]);
4719
- if (__getOwnPropSymbols$4)
4720
- for (var prop of __getOwnPropSymbols$4(b)) {
4721
- if (__propIsEnum$4.call(b, prop))
4722
- __defNormalProp$4(a, prop, b[prop]);
4717
+ if (__hasOwnProp$5.call(b, prop))
4718
+ __defNormalProp$5(a, prop, b[prop]);
4719
+ if (__getOwnPropSymbols$5)
4720
+ for (var prop of __getOwnPropSymbols$5(b)) {
4721
+ if (__propIsEnum$5.call(b, prop))
4722
+ __defNormalProp$5(a, prop, b[prop]);
4723
4723
  }
4724
4724
  return a;
4725
4725
  };
4726
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
4726
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
4727
4727
  function AntdTooltip(props) {
4728
- return /* @__PURE__ */ React__default.default.createElement(antd.Tooltip, __spreadProps$3(__spreadValues$4({}, props), { title: props.title || props.titleText }));
4728
+ return /* @__PURE__ */ React__default.default.createElement(antd.Tooltip, __spreadProps$4(__spreadValues$5({}, props), { title: props.title || props.titleText }));
4729
4729
  }
4730
4730
  function registerTooltip(loader) {
4731
4731
  registerComponentHelper(loader, AntdTooltip, {
@@ -4781,33 +4781,33 @@ function registerTooltip(loader) {
4781
4781
  });
4782
4782
  }
4783
4783
 
4784
- var __defProp$3 = Object.defineProperty;
4785
- var __defProps$2 = Object.defineProperties;
4786
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
4787
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
4788
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
4789
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
4790
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4791
- var __spreadValues$3 = (a, b) => {
4784
+ var __defProp$4 = Object.defineProperty;
4785
+ var __defProps$3 = Object.defineProperties;
4786
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
4787
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
4788
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
4789
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
4790
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4791
+ var __spreadValues$4 = (a, b) => {
4792
4792
  for (var prop in b || (b = {}))
4793
- if (__hasOwnProp$3.call(b, prop))
4794
- __defNormalProp$3(a, prop, b[prop]);
4795
- if (__getOwnPropSymbols$3)
4796
- for (var prop of __getOwnPropSymbols$3(b)) {
4797
- if (__propIsEnum$3.call(b, prop))
4798
- __defNormalProp$3(a, prop, b[prop]);
4793
+ if (__hasOwnProp$4.call(b, prop))
4794
+ __defNormalProp$4(a, prop, b[prop]);
4795
+ if (__getOwnPropSymbols$4)
4796
+ for (var prop of __getOwnPropSymbols$4(b)) {
4797
+ if (__propIsEnum$4.call(b, prop))
4798
+ __defNormalProp$4(a, prop, b[prop]);
4799
4799
  }
4800
4800
  return a;
4801
4801
  };
4802
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
4803
- var __objRest$1 = (source, exclude) => {
4802
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
4803
+ var __objRest$2 = (source, exclude) => {
4804
4804
  var target = {};
4805
4805
  for (var prop in source)
4806
- if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0)
4806
+ if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
4807
4807
  target[prop] = source[prop];
4808
- if (source != null && __getOwnPropSymbols$3)
4809
- for (var prop of __getOwnPropSymbols$3(source)) {
4810
- if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop))
4808
+ if (source != null && __getOwnPropSymbols$4)
4809
+ for (var prop of __getOwnPropSymbols$4(source)) {
4810
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
4811
4811
  target[prop] = source[prop];
4812
4812
  }
4813
4813
  return target;
@@ -4816,13 +4816,13 @@ function AntdColorPicker(_a) {
4816
4816
  var _b = _a, {
4817
4817
  showTextSwitch,
4818
4818
  onChange
4819
- } = _b, props = __objRest$1(_b, [
4819
+ } = _b, props = __objRest$2(_b, [
4820
4820
  "showTextSwitch",
4821
4821
  "onChange"
4822
4822
  ]);
4823
4823
  return /* @__PURE__ */ React__default.default.createElement(
4824
4824
  antd.ColorPicker,
4825
- __spreadProps$2(__spreadValues$3({}, props), {
4825
+ __spreadProps$3(__spreadValues$4({}, props), {
4826
4826
  showText: props.showText || showTextSwitch,
4827
4827
  onChangeComplete: (value) => {
4828
4828
  onChange == null ? void 0 : onChange(typeof value === "string" ? value : value.toHexString());
@@ -4895,39 +4895,39 @@ function registerColorPicker(loader) {
4895
4895
  });
4896
4896
  }
4897
4897
 
4898
- var __defProp$2 = Object.defineProperty;
4899
- var __defProps$1 = Object.defineProperties;
4900
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
4901
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
4902
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
4903
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
4904
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4905
- var __spreadValues$2 = (a, b) => {
4898
+ var __defProp$3 = Object.defineProperty;
4899
+ var __defProps$2 = Object.defineProperties;
4900
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
4901
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
4902
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
4903
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
4904
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4905
+ var __spreadValues$3 = (a, b) => {
4906
4906
  for (var prop in b || (b = {}))
4907
- if (__hasOwnProp$2.call(b, prop))
4908
- __defNormalProp$2(a, prop, b[prop]);
4909
- if (__getOwnPropSymbols$2)
4910
- for (var prop of __getOwnPropSymbols$2(b)) {
4911
- if (__propIsEnum$2.call(b, prop))
4912
- __defNormalProp$2(a, prop, b[prop]);
4907
+ if (__hasOwnProp$3.call(b, prop))
4908
+ __defNormalProp$3(a, prop, b[prop]);
4909
+ if (__getOwnPropSymbols$3)
4910
+ for (var prop of __getOwnPropSymbols$3(b)) {
4911
+ if (__propIsEnum$3.call(b, prop))
4912
+ __defNormalProp$3(a, prop, b[prop]);
4913
4913
  }
4914
4914
  return a;
4915
4915
  };
4916
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
4917
- var __objRest = (source, exclude) => {
4916
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
4917
+ var __objRest$1 = (source, exclude) => {
4918
4918
  var target = {};
4919
4919
  for (var prop in source)
4920
- if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
4920
+ if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0)
4921
4921
  target[prop] = source[prop];
4922
- if (source != null && __getOwnPropSymbols$2)
4923
- for (var prop of __getOwnPropSymbols$2(source)) {
4924
- if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
4922
+ if (source != null && __getOwnPropSymbols$3)
4923
+ for (var prop of __getOwnPropSymbols$3(source)) {
4924
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop))
4925
4925
  target[prop] = source[prop];
4926
4926
  }
4927
4927
  return target;
4928
4928
  };
4929
4929
  function AntdDrawer(props) {
4930
- const _a = props, { onOpenChange, onClose, open, footer } = _a, rest = __objRest(_a, ["onOpenChange", "onClose", "open", "footer"]);
4930
+ const _a = props, { onOpenChange, onClose, open, footer } = _a, rest = __objRest$1(_a, ["onOpenChange", "onClose", "open", "footer"]);
4931
4931
  const memoOnClose = React__default.default.useMemo(() => {
4932
4932
  if (onOpenChange || onClose) {
4933
4933
  return (e) => {
@@ -4940,7 +4940,7 @@ function AntdDrawer(props) {
4940
4940
  }, [onOpenChange, onClose]);
4941
4941
  return /* @__PURE__ */ React__default.default.createElement(
4942
4942
  antd.Drawer,
4943
- __spreadProps$1(__spreadValues$2({}, rest), {
4943
+ __spreadProps$2(__spreadValues$3({}, rest), {
4944
4944
  onClose: memoOnClose,
4945
4945
  open,
4946
4946
  footer: footer != null ? footer : void 0,
@@ -5033,24 +5033,24 @@ function registerDrawer(loader) {
5033
5033
  });
5034
5034
  }
5035
5035
 
5036
- var __defProp$1 = Object.defineProperty;
5037
- var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
5038
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
5039
- var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
5040
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5041
- var __spreadValues$1 = (a, b) => {
5036
+ var __defProp$2 = Object.defineProperty;
5037
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
5038
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
5039
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
5040
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5041
+ var __spreadValues$2 = (a, b) => {
5042
5042
  for (var prop in b || (b = {}))
5043
- if (__hasOwnProp$1.call(b, prop))
5044
- __defNormalProp$1(a, prop, b[prop]);
5045
- if (__getOwnPropSymbols$1)
5046
- for (var prop of __getOwnPropSymbols$1(b)) {
5047
- if (__propIsEnum$1.call(b, prop))
5048
- __defNormalProp$1(a, prop, b[prop]);
5043
+ if (__hasOwnProp$2.call(b, prop))
5044
+ __defNormalProp$2(a, prop, b[prop]);
5045
+ if (__getOwnPropSymbols$2)
5046
+ for (var prop of __getOwnPropSymbols$2(b)) {
5047
+ if (__propIsEnum$2.call(b, prop))
5048
+ __defNormalProp$2(a, prop, b[prop]);
5049
5049
  }
5050
5050
  return a;
5051
5051
  };
5052
5052
  function AntdSteps(props) {
5053
- return /* @__PURE__ */ React__default.default.createElement(antd.Steps, __spreadValues$1({}, props));
5053
+ return /* @__PURE__ */ React__default.default.createElement(antd.Steps, __spreadValues$2({}, props));
5054
5054
  }
5055
5055
  function registerSteps(loader) {
5056
5056
  const statusOptions = ["wait", "process", "finish", "error"];
@@ -5157,30 +5157,30 @@ function registerSteps(loader) {
5157
5157
  });
5158
5158
  }
5159
5159
 
5160
- var __defProp = Object.defineProperty;
5161
- var __defProps = Object.defineProperties;
5162
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5163
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5164
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5165
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
5166
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5167
- var __spreadValues = (a, b) => {
5160
+ var __defProp$1 = Object.defineProperty;
5161
+ var __defProps$1 = Object.defineProperties;
5162
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
5163
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
5164
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
5165
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
5166
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5167
+ var __spreadValues$1 = (a, b) => {
5168
5168
  for (var prop in b || (b = {}))
5169
- if (__hasOwnProp.call(b, prop))
5170
- __defNormalProp(a, prop, b[prop]);
5171
- if (__getOwnPropSymbols)
5172
- for (var prop of __getOwnPropSymbols(b)) {
5173
- if (__propIsEnum.call(b, prop))
5174
- __defNormalProp(a, prop, b[prop]);
5169
+ if (__hasOwnProp$1.call(b, prop))
5170
+ __defNormalProp$1(a, prop, b[prop]);
5171
+ if (__getOwnPropSymbols$1)
5172
+ for (var prop of __getOwnPropSymbols$1(b)) {
5173
+ if (__propIsEnum$1.call(b, prop))
5174
+ __defNormalProp$1(a, prop, b[prop]);
5175
5175
  }
5176
5176
  return a;
5177
5177
  };
5178
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
5178
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
5179
5179
  function useMunged(props) {
5180
5180
  const [autoExpandParent, setAutoExpandParent] = React.useState(
5181
5181
  props.autoExpandParent
5182
5182
  );
5183
- const munged = __spreadProps(__spreadValues({}, props), { autoExpandParent });
5183
+ const munged = __spreadProps$1(__spreadValues$1({}, props), { autoExpandParent });
5184
5184
  if (!props.expandedKeys) {
5185
5185
  delete munged["expandedKeys"];
5186
5186
  }
@@ -5193,11 +5193,11 @@ function useMunged(props) {
5193
5193
  }
5194
5194
  function AntdTree(props) {
5195
5195
  const munged = useMunged(props);
5196
- return /* @__PURE__ */ React__default.default.createElement(antd.Tree, __spreadValues({}, munged));
5196
+ return /* @__PURE__ */ React__default.default.createElement(antd.Tree, __spreadValues$1({}, munged));
5197
5197
  }
5198
5198
  function AntdDirectoryTree(props) {
5199
5199
  const munged = useMunged(props);
5200
- return /* @__PURE__ */ React__default.default.createElement(antd.Tree.DirectoryTree, __spreadValues({}, munged));
5200
+ return /* @__PURE__ */ React__default.default.createElement(antd.Tree.DirectoryTree, __spreadValues$1({}, munged));
5201
5201
  }
5202
5202
  const treeHelpers_ = {
5203
5203
  states: {
@@ -5427,20 +5427,20 @@ function registerTreeHelper({
5427
5427
  }
5428
5428
  },
5429
5429
  states: {
5430
- checkedKeys: __spreadValues({
5430
+ checkedKeys: __spreadValues$1({
5431
5431
  type: "writable",
5432
5432
  valueProp: "checkedKeys",
5433
5433
  onChangeProp: "onCheck",
5434
5434
  variableType: "array",
5435
5435
  initVal: []
5436
5436
  }, treeHelpers_.states.checkedKeys),
5437
- checkedNodes: __spreadValues({
5437
+ checkedNodes: __spreadValues$1({
5438
5438
  type: "readonly",
5439
5439
  onChangeProp: "onCheck",
5440
5440
  variableType: "array",
5441
5441
  initVal: []
5442
5442
  }, treeHelpers_.states.checkedNodes),
5443
- checkedDetails: __spreadValues({
5443
+ checkedDetails: __spreadValues$1({
5444
5444
  type: "readonly",
5445
5445
  onChangeProp: "onCheck",
5446
5446
  variableType: "object",
@@ -5449,20 +5449,20 @@ function registerTreeHelper({
5449
5449
  halfCheckedKeys: []
5450
5450
  }
5451
5451
  }, treeHelpers_.states.checkedDetails),
5452
- selectedKeys: __spreadValues({
5452
+ selectedKeys: __spreadValues$1({
5453
5453
  type: "writable",
5454
5454
  valueProp: "selectedKeys",
5455
5455
  onChangeProp: "onSelect",
5456
5456
  variableType: "array",
5457
5457
  initVal: []
5458
5458
  }, treeHelpers_.states.selectedKeys),
5459
- selectedNodes: __spreadValues({
5459
+ selectedNodes: __spreadValues$1({
5460
5460
  type: "readonly",
5461
5461
  onChangeProp: "onSelect",
5462
5462
  variableType: "array",
5463
5463
  initVal: []
5464
5464
  }, treeHelpers_.states.selectedNodes),
5465
- expandedKeys: __spreadValues({
5465
+ expandedKeys: __spreadValues$1({
5466
5466
  type: "writable",
5467
5467
  valueProp: "expandedKeys",
5468
5468
  onChangeProp: "onExpand",
@@ -5502,6 +5502,287 @@ function registerDirectoryTree(loader) {
5502
5502
  });
5503
5503
  }
5504
5504
 
5505
+ var __defProp = Object.defineProperty;
5506
+ var __defProps = Object.defineProperties;
5507
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5508
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5509
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5510
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
5511
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5512
+ var __spreadValues = (a, b) => {
5513
+ for (var prop in b || (b = {}))
5514
+ if (__hasOwnProp.call(b, prop))
5515
+ __defNormalProp(a, prop, b[prop]);
5516
+ if (__getOwnPropSymbols)
5517
+ for (var prop of __getOwnPropSymbols(b)) {
5518
+ if (__propIsEnum.call(b, prop))
5519
+ __defNormalProp(a, prop, b[prop]);
5520
+ }
5521
+ return a;
5522
+ };
5523
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
5524
+ var __objRest = (source, exclude) => {
5525
+ var target = {};
5526
+ for (var prop in source)
5527
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
5528
+ target[prop] = source[prop];
5529
+ if (source != null && __getOwnPropSymbols)
5530
+ for (var prop of __getOwnPropSymbols(source)) {
5531
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
5532
+ target[prop] = source[prop];
5533
+ }
5534
+ return target;
5535
+ };
5536
+ const collapseComponentName = "plasmic-antd5-collapse";
5537
+ const collapseItemComponentName = "plasmic-antd5-collapse-item";
5538
+ const AntdCollapseItem = ({ children }) => {
5539
+ return /* @__PURE__ */ React__default.default.createElement("div", null, children);
5540
+ };
5541
+ function AntdCollapse(props) {
5542
+ const _a = props, {
5543
+ items: itemsRaw,
5544
+ activeKeys,
5545
+ defaultActiveKeys,
5546
+ expandIcon,
5547
+ collapsible,
5548
+ disabled,
5549
+ rotateCustomExpandIcon
5550
+ } = _a, rest = __objRest(_a, [
5551
+ "items",
5552
+ "activeKeys",
5553
+ "defaultActiveKeys",
5554
+ "expandIcon",
5555
+ "collapsible",
5556
+ "disabled",
5557
+ "rotateCustomExpandIcon"
5558
+ ]);
5559
+ const activeKeyProp = React.useMemo(() => {
5560
+ const res = (activeKeys == null ? void 0 : activeKeys.map((k) => k.key).filter((k) => k)) || [];
5561
+ return res.length ? res : void 0;
5562
+ }, [activeKeys]);
5563
+ const defaultActiveKeysProp = React.useMemo(() => {
5564
+ const res = (defaultActiveKeys == null ? void 0 : defaultActiveKeys.map((k) => k.key).filter((k) => k)) || [];
5565
+ return res.length ? res : void 0;
5566
+ }, [defaultActiveKeys]);
5567
+ const items = React.useMemo(() => {
5568
+ if (!React__default.default.isValidElement(itemsRaw))
5569
+ return [];
5570
+ return (Array.isArray(itemsRaw.props.children) ? itemsRaw.props.children : [itemsRaw.props.children]).map((currentItem) => {
5571
+ if (!React__default.default.isValidElement(currentItem) || !React__default.default.isValidElement(currentItem.props.children)) {
5572
+ return null;
5573
+ }
5574
+ return __spreadProps(__spreadValues({}, currentItem.props), {
5575
+ id: currentItem.props.id,
5576
+ key: currentItem.props.id,
5577
+ children: React__default.default.cloneElement(currentItem.props.children)
5578
+ });
5579
+ }).filter((i) => i != null);
5580
+ }, [itemsRaw]);
5581
+ return /* @__PURE__ */ React__default.default.createElement(
5582
+ antd.Collapse,
5583
+ __spreadValues({
5584
+ items,
5585
+ defaultActiveKey: defaultActiveKeysProp,
5586
+ activeKey: activeKeyProp,
5587
+ collapsible: disabled ? "disabled" : collapsible,
5588
+ expandIcon: (expandIcon == null ? void 0 : expandIcon.key) ? ({ isActive }) => /* @__PURE__ */ React__default.default.createElement(
5589
+ "div",
5590
+ {
5591
+ style: isActive && rotateCustomExpandIcon ? { transform: "rotate(90deg)" } : void 0
5592
+ },
5593
+ expandIcon
5594
+ ) : void 0
5595
+ }, rest)
5596
+ );
5597
+ }
5598
+ const collapseHelpers = {
5599
+ states: {
5600
+ activeKeys: {
5601
+ onChangeArgsToValue: (activeKeys) => activeKeys.map((key) => ({ key }))
5602
+ }
5603
+ }
5604
+ };
5605
+ function registerCollapse(loader) {
5606
+ registerComponentHelper(loader, AntdCollapse, {
5607
+ name: collapseComponentName,
5608
+ displayName: "Collapse",
5609
+ defaultStyles: {
5610
+ width: "stretch"
5611
+ },
5612
+ props: {
5613
+ accordion: {
5614
+ type: "boolean",
5615
+ description: `Allow only one panel to be expanded at a time`
5616
+ },
5617
+ activeKeys: {
5618
+ editOnly: true,
5619
+ displayName: "Active Panel IDs",
5620
+ uncontrolledProp: "defaultActiveKeys",
5621
+ type: "array",
5622
+ description: `A list of panel IDs that are expanded by default.`,
5623
+ advanced: true,
5624
+ itemType: {
5625
+ type: "object",
5626
+ nameFunc: (_item) => `ID: ${_item.key}`,
5627
+ fields: {
5628
+ key: {
5629
+ type: "number",
5630
+ displayName: "Panel ID"
5631
+ }
5632
+ }
5633
+ }
5634
+ },
5635
+ bordered: {
5636
+ type: "boolean",
5637
+ defaultValue: true,
5638
+ description: `Display border around collapse `
5639
+ },
5640
+ disabled: {
5641
+ type: "boolean",
5642
+ description: "Disable the toggle behaviour of panels"
5643
+ },
5644
+ collapsible: {
5645
+ type: "choice",
5646
+ defaultValueHint: "header",
5647
+ description: `Specify the element that can be clicked to toggle a panel`,
5648
+ options: ["header", "icon"],
5649
+ hidden: (ps) => Boolean(ps.disabled)
5650
+ },
5651
+ destroyInactivePanel: {
5652
+ type: "boolean",
5653
+ advanced: true,
5654
+ description: `Destroy/Unmount inactive panels`
5655
+ },
5656
+ expandIcon: {
5657
+ type: "slot",
5658
+ hidePlaceholder: true
5659
+ },
5660
+ rotateCustomExpandIcon: {
5661
+ type: "boolean",
5662
+ description: "Enable rotation of custom expand icon when panel is expanded",
5663
+ advanced: true,
5664
+ hidden: (ps) => {
5665
+ var _a;
5666
+ return !((_a = ps.expandIcon) == null ? void 0 : _a.key);
5667
+ }
5668
+ },
5669
+ expandIconPosition: {
5670
+ type: "choice",
5671
+ defaultValueHint: "start",
5672
+ description: `Set expand icon position`,
5673
+ options: ["start", "end"]
5674
+ },
5675
+ ghost: {
5676
+ type: "boolean",
5677
+ description: `Make the collapse borderless and its background transparent`
5678
+ },
5679
+ size: {
5680
+ type: "choice",
5681
+ defaultValueHint: "middle",
5682
+ description: `Set the size of collapse`,
5683
+ options: ["large", "middle", "small"]
5684
+ },
5685
+ items: __spreadProps(__spreadValues({
5686
+ type: "slot",
5687
+ hidePlaceholder: true,
5688
+ allowedComponents: [collapseItemComponentName]
5689
+ }, { mergeWithParent: true }), {
5690
+ defaultValue: [
5691
+ {
5692
+ type: "component",
5693
+ name: collapseItemComponentName,
5694
+ props: {
5695
+ id: 1,
5696
+ label: "First Item",
5697
+ children: {
5698
+ type: "text",
5699
+ value: "First Children"
5700
+ }
5701
+ }
5702
+ },
5703
+ {
5704
+ type: "component",
5705
+ name: collapseItemComponentName,
5706
+ props: {
5707
+ id: 2,
5708
+ label: "Second Item",
5709
+ children: {
5710
+ type: "text",
5711
+ value: "Second Children"
5712
+ }
5713
+ }
5714
+ }
5715
+ ]
5716
+ }),
5717
+ onChange: {
5718
+ type: "eventHandler",
5719
+ argTypes: [{ name: "activeIds", type: "object" }]
5720
+ }
5721
+ },
5722
+ states: {
5723
+ activePanelIds: __spreadValues({
5724
+ type: "writable",
5725
+ valueProp: "activeKeys",
5726
+ onChangeProp: "onChange",
5727
+ variableType: "array"
5728
+ }, collapseHelpers.states.activeKeys)
5729
+ },
5730
+ componentHelpers: {
5731
+ helpers: collapseHelpers,
5732
+ importName: "collapseHelpers",
5733
+ importPath: "@plasmicpkgs/antd5/skinny/registerCollapse"
5734
+ },
5735
+ importPath: "@plasmicpkgs/antd5/skinny/registerCollapse",
5736
+ importName: "AntdCollapse"
5737
+ });
5738
+ registerComponentHelper(loader, AntdCollapseItem, {
5739
+ name: collapseItemComponentName,
5740
+ displayName: "Collapse Item",
5741
+ props: {
5742
+ id: {
5743
+ type: "string",
5744
+ description: `Unique identifier for this time`
5745
+ },
5746
+ label: {
5747
+ type: "string",
5748
+ description: `Text inside the header`,
5749
+ displayName: "Header Content"
5750
+ },
5751
+ showArrow: {
5752
+ type: "boolean",
5753
+ defaultValue: true,
5754
+ description: `Whether to show animating arrow alongside header text`,
5755
+ advanced: true
5756
+ },
5757
+ destroyInactivePanel: {
5758
+ type: "boolean",
5759
+ description: `Destroy/Unmount panel if inactive`,
5760
+ advanced: true
5761
+ },
5762
+ forceRender: {
5763
+ type: "boolean",
5764
+ description: `Force rendering of content in the panel, instead of lazy rendering it.`,
5765
+ advanced: true
5766
+ },
5767
+ extra: {
5768
+ type: "slot",
5769
+ hidePlaceholder: true
5770
+ },
5771
+ collapsible: {
5772
+ type: "boolean",
5773
+ advanced: true
5774
+ },
5775
+ children: {
5776
+ type: "slot",
5777
+ hidePlaceholder: true
5778
+ }
5779
+ },
5780
+ importPath: "@plasmicpkgs/antd5/skinny/registerCollapse",
5781
+ importName: "AntdCollapseItem",
5782
+ parentComponentName: collapseComponentName
5783
+ });
5784
+ }
5785
+
5505
5786
  function registerAll(loader) {
5506
5787
  registerConfigProvider(loader);
5507
5788
  registerTokens(loader);
@@ -5532,6 +5813,7 @@ function registerAll(loader) {
5532
5813
  registerAvatarGroup(loader);
5533
5814
  registerTree(loader);
5534
5815
  registerDirectoryTree(loader);
5816
+ registerCollapse(loader);
5535
5817
  }
5536
5818
  const componentNameToInputType = {
5537
5819
  [inputComponentName]: InputType.Text,