@plasmicpkgs/antd5 0.0.131 → 0.0.132

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/antd.esm.js CHANGED
@@ -167,43 +167,43 @@ function pick(obj, ...paths) {
167
167
  return res;
168
168
  }
169
169
 
170
- var __defProp$p = Object.defineProperty;
171
- var __defProps$i = Object.defineProperties;
172
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
173
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
174
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
175
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
176
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
177
- var __spreadValues$p = (a, b) => {
170
+ var __defProp$q = Object.defineProperty;
171
+ var __defProps$j = Object.defineProperties;
172
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
173
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
174
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
175
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
176
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
177
+ var __spreadValues$q = (a, b) => {
178
178
  for (var prop in b || (b = {}))
179
- if (__hasOwnProp$p.call(b, prop))
180
- __defNormalProp$p(a, prop, b[prop]);
181
- if (__getOwnPropSymbols$p)
182
- for (var prop of __getOwnPropSymbols$p(b)) {
183
- if (__propIsEnum$p.call(b, prop))
184
- __defNormalProp$p(a, prop, b[prop]);
179
+ if (__hasOwnProp$q.call(b, prop))
180
+ __defNormalProp$q(a, prop, b[prop]);
181
+ if (__getOwnPropSymbols$q)
182
+ for (var prop of __getOwnPropSymbols$q(b)) {
183
+ if (__propIsEnum$q.call(b, prop))
184
+ __defNormalProp$q(a, prop, b[prop]);
185
185
  }
186
186
  return a;
187
187
  };
188
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
189
- var __objRest$i = (source, exclude) => {
188
+ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
189
+ var __objRest$j = (source, exclude) => {
190
190
  var target = {};
191
191
  for (var prop in source)
192
- if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
192
+ if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
193
193
  target[prop] = source[prop];
194
- if (source != null && __getOwnPropSymbols$p)
195
- for (var prop of __getOwnPropSymbols$p(source)) {
196
- if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
194
+ if (source != null && __getOwnPropSymbols$q)
195
+ for (var prop of __getOwnPropSymbols$q(source)) {
196
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
197
197
  target[prop] = source[prop];
198
198
  }
199
199
  return target;
200
200
  };
201
201
  function AntdButton(props) {
202
- const _a = props, { submitsForm = false, children } = _a, rest = __objRest$i(_a, ["submitsForm", "children"]);
202
+ const _a = props, { submitsForm = false, children } = _a, rest = __objRest$j(_a, ["submitsForm", "children"]);
203
203
  const target = props.target === true ? "_blank" : props.target === false ? void 0 : props.target;
204
204
  return /* @__PURE__ */ React.createElement(
205
205
  Button,
206
- __spreadProps$i(__spreadValues$p({}, rest), {
206
+ __spreadProps$j(__spreadValues$q({}, rest), {
207
207
  children: /* @__PURE__ */ React.createElement(
208
208
  "div",
209
209
  {
@@ -284,7 +284,7 @@ function registerButton(loader) {
284
284
  hidden: (props) => !props.href,
285
285
  defaultValueHint: false
286
286
  },
287
- children: __spreadValues$p({
287
+ children: __spreadValues$q({
288
288
  type: "slot",
289
289
  defaultValue: [
290
290
  {
@@ -308,39 +308,39 @@ function registerButton(loader) {
308
308
  });
309
309
  }
310
310
 
311
- var __defProp$o = Object.defineProperty;
312
- var __defProps$h = Object.defineProperties;
313
- var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
314
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
315
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
316
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
317
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
318
- var __spreadValues$o = (a, b) => {
311
+ var __defProp$p = Object.defineProperty;
312
+ var __defProps$i = Object.defineProperties;
313
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
314
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
315
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
316
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
317
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
318
+ var __spreadValues$p = (a, b) => {
319
319
  for (var prop in b || (b = {}))
320
- if (__hasOwnProp$o.call(b, prop))
321
- __defNormalProp$o(a, prop, b[prop]);
322
- if (__getOwnPropSymbols$o)
323
- for (var prop of __getOwnPropSymbols$o(b)) {
324
- if (__propIsEnum$o.call(b, prop))
325
- __defNormalProp$o(a, prop, b[prop]);
320
+ if (__hasOwnProp$p.call(b, prop))
321
+ __defNormalProp$p(a, prop, b[prop]);
322
+ if (__getOwnPropSymbols$p)
323
+ for (var prop of __getOwnPropSymbols$p(b)) {
324
+ if (__propIsEnum$p.call(b, prop))
325
+ __defNormalProp$p(a, prop, b[prop]);
326
326
  }
327
327
  return a;
328
328
  };
329
- var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
330
- var __objRest$h = (source, exclude) => {
329
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
330
+ var __objRest$i = (source, exclude) => {
331
331
  var target = {};
332
332
  for (var prop in source)
333
- if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
333
+ if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
334
334
  target[prop] = source[prop];
335
- if (source != null && __getOwnPropSymbols$o)
336
- for (var prop of __getOwnPropSymbols$o(source)) {
337
- if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
335
+ if (source != null && __getOwnPropSymbols$p)
336
+ for (var prop of __getOwnPropSymbols$p(source)) {
337
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
338
338
  target[prop] = source[prop];
339
339
  }
340
340
  return target;
341
341
  };
342
342
  function AntdCheckbox(props) {
343
- const _a = props, { onChange } = _a, rest = __objRest$h(_a, ["onChange"]);
343
+ const _a = props, { onChange } = _a, rest = __objRest$i(_a, ["onChange"]);
344
344
  const wrappedOnChange = React.useMemo(() => {
345
345
  if (onChange) {
346
346
  return (event) => onChange(event.target.checked);
@@ -348,7 +348,7 @@ function AntdCheckbox(props) {
348
348
  return void 0;
349
349
  }
350
350
  }, [onChange]);
351
- return /* @__PURE__ */ React.createElement(Checkbox, __spreadProps$h(__spreadValues$o({}, rest), { onChange: wrappedOnChange }));
351
+ return /* @__PURE__ */ React.createElement(Checkbox, __spreadProps$i(__spreadValues$p({}, rest), { onChange: wrappedOnChange }));
352
352
  }
353
353
  AntdCheckbox.__plasmicFormFieldMeta = { valueProp: "checked" };
354
354
  const AntdCheckboxGroup = Checkbox.Group;
@@ -383,7 +383,7 @@ function registerCheckbox(loader) {
383
383
  defaultValueHint: false,
384
384
  advanced: true
385
385
  },
386
- children: __spreadValues$o({
386
+ children: __spreadValues$p({
387
387
  type: "slot",
388
388
  defaultValue: [
389
389
  {
@@ -464,33 +464,33 @@ function registerCheckbox(loader) {
464
464
  });
465
465
  }
466
466
 
467
- var __defProp$n = Object.defineProperty;
468
- var __defProps$g = Object.defineProperties;
469
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
470
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
471
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
472
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
473
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
474
- var __spreadValues$n = (a, b) => {
467
+ var __defProp$o = Object.defineProperty;
468
+ var __defProps$h = Object.defineProperties;
469
+ var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
470
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
471
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
472
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
473
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
474
+ var __spreadValues$o = (a, b) => {
475
475
  for (var prop in b || (b = {}))
476
- if (__hasOwnProp$n.call(b, prop))
477
- __defNormalProp$n(a, prop, b[prop]);
478
- if (__getOwnPropSymbols$n)
479
- for (var prop of __getOwnPropSymbols$n(b)) {
480
- if (__propIsEnum$n.call(b, prop))
481
- __defNormalProp$n(a, prop, b[prop]);
476
+ if (__hasOwnProp$o.call(b, prop))
477
+ __defNormalProp$o(a, prop, b[prop]);
478
+ if (__getOwnPropSymbols$o)
479
+ for (var prop of __getOwnPropSymbols$o(b)) {
480
+ if (__propIsEnum$o.call(b, prop))
481
+ __defNormalProp$o(a, prop, b[prop]);
482
482
  }
483
483
  return a;
484
484
  };
485
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
486
- var __objRest$g = (source, exclude) => {
485
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
486
+ var __objRest$h = (source, exclude) => {
487
487
  var target = {};
488
488
  for (var prop in source)
489
- if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
489
+ if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
490
490
  target[prop] = source[prop];
491
- if (source != null && __getOwnPropSymbols$n)
492
- for (var prop of __getOwnPropSymbols$n(source)) {
493
- if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
491
+ if (source != null && __getOwnPropSymbols$o)
492
+ for (var prop of __getOwnPropSymbols$o(source)) {
493
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
494
494
  target[prop] = source[prop];
495
495
  }
496
496
  return target;
@@ -540,12 +540,12 @@ function themeToAntdConfig(opts) {
540
540
  };
541
541
  }
542
542
  function AntdConfigProvider(props) {
543
- const _a = props, { children, themeStyles, loadingText, removeLoading } = _a, rest = __objRest$g(_a, ["children", "themeStyles", "loadingText", "removeLoading"]);
543
+ const _a = props, { children, themeStyles, loadingText, removeLoading } = _a, rest = __objRest$h(_a, ["children", "themeStyles", "loadingText", "removeLoading"]);
544
544
  return /* @__PURE__ */ React.createElement(
545
545
  ConfigProvider,
546
- __spreadValues$n({
546
+ __spreadValues$o({
547
547
  locale: defaultLocale
548
- }, themeToAntdConfig(__spreadProps$g(__spreadValues$n({}, rest), {
548
+ }, themeToAntdConfig(__spreadProps$h(__spreadValues$o({}, rest), {
549
549
  fontFamily: themeStyles.fontFamily,
550
550
  fontSize: themeStyles.fontSize ? parseInt(themeStyles.fontSize) : void 0,
551
551
  lineHeight: themeStyles.lineHeight ? parseInt(themeStyles.lineHeight) : void 0,
@@ -586,9 +586,12 @@ function InnerConfigProvider(props) {
586
586
  const actions = React.useMemo(
587
587
  () => ({
588
588
  showNotification: (opts) => {
589
- var _b;
590
- const _a = opts, rest = __objRest$g(_a, ["type"]);
591
- app.notification[(_b = opts.type) != null ? _b : "info"](__spreadValues$n({}, rest));
589
+ var _b, _c, _d;
590
+ const _a = opts, rest = __objRest$h(_a, ["type"]);
591
+ app.notification[(_b = opts.type) != null ? _b : "info"](__spreadProps$h(__spreadValues$o({}, rest), {
592
+ message: (_c = rest.message) == null ? void 0 : _c.toString(),
593
+ description: (_d = rest.description) == null ? void 0 : _d.toString()
594
+ }));
592
595
  },
593
596
  hideNotifications: () => {
594
597
  app.notification.destroy();
@@ -888,7 +891,7 @@ function registerTokens(loader) {
888
891
  }
889
892
  const registerConfigProvider = makeRegisterGlobalContext(
890
893
  AntdConfigProvider,
891
- __spreadProps$g(__spreadValues$n({
894
+ __spreadProps$h(__spreadValues$o({
892
895
  name: "plasmic-antd5-config-provider",
893
896
  displayName: "Ant Design System Settings",
894
897
  props: {
@@ -1008,25 +1011,25 @@ const registerConfigProvider = makeRegisterGlobalContext(
1008
1011
  })
1009
1012
  );
1010
1013
 
1011
- var __defProp$m = Object.defineProperty;
1012
- var __defProps$f = Object.defineProperties;
1013
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
1014
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
1015
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
1016
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
1017
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1018
- var __spreadValues$m = (a, b) => {
1014
+ var __defProp$n = Object.defineProperty;
1015
+ var __defProps$g = Object.defineProperties;
1016
+ var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
1017
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
1018
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
1019
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
1020
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1021
+ var __spreadValues$n = (a, b) => {
1019
1022
  for (var prop in b || (b = {}))
1020
- if (__hasOwnProp$m.call(b, prop))
1021
- __defNormalProp$m(a, prop, b[prop]);
1022
- if (__getOwnPropSymbols$m)
1023
- for (var prop of __getOwnPropSymbols$m(b)) {
1024
- if (__propIsEnum$m.call(b, prop))
1025
- __defNormalProp$m(a, prop, b[prop]);
1023
+ if (__hasOwnProp$n.call(b, prop))
1024
+ __defNormalProp$n(a, prop, b[prop]);
1025
+ if (__getOwnPropSymbols$n)
1026
+ for (var prop of __getOwnPropSymbols$n(b)) {
1027
+ if (__propIsEnum$n.call(b, prop))
1028
+ __defNormalProp$n(a, prop, b[prop]);
1026
1029
  }
1027
1030
  return a;
1028
1031
  };
1029
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
1032
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
1030
1033
  const AntdMenuDivider = Menu.Divider;
1031
1034
  const AntdMenuItem = Menu.Item;
1032
1035
  const AntdMenuItemGroup = Menu.ItemGroup;
@@ -1081,7 +1084,7 @@ const MENU_ITEM_TYPE = {
1081
1084
  }
1082
1085
  }
1083
1086
  };
1084
- const UNKEYED_MENU_ITEM_TYPE = __spreadProps$f(__spreadValues$m({}, MENU_ITEM_TYPE), {
1087
+ const UNKEYED_MENU_ITEM_TYPE = __spreadProps$g(__spreadValues$n({}, MENU_ITEM_TYPE), {
1085
1088
  fields: Object.fromEntries(
1086
1089
  Object.entries(MENU_ITEM_TYPE.fields).filter(([k]) => k !== "key")
1087
1090
  )
@@ -1186,7 +1189,7 @@ function registerMenu(loader) {
1186
1189
  type: "string",
1187
1190
  description: "Set display title for collapsed item"
1188
1191
  },
1189
- children: __spreadValues$m({
1192
+ children: __spreadValues$n({
1190
1193
  type: "slot",
1191
1194
  defaultValue: [
1192
1195
  {
@@ -1298,33 +1301,33 @@ function registerMenu(loader) {
1298
1301
  });
1299
1302
  }
1300
1303
 
1301
- var __defProp$l = Object.defineProperty;
1302
- var __defProps$e = Object.defineProperties;
1303
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
1304
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
1305
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
1306
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
1307
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1308
- var __spreadValues$l = (a, b) => {
1304
+ var __defProp$m = Object.defineProperty;
1305
+ var __defProps$f = Object.defineProperties;
1306
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
1307
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
1308
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
1309
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
1310
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1311
+ var __spreadValues$m = (a, b) => {
1309
1312
  for (var prop in b || (b = {}))
1310
- if (__hasOwnProp$l.call(b, prop))
1311
- __defNormalProp$l(a, prop, b[prop]);
1312
- if (__getOwnPropSymbols$l)
1313
- for (var prop of __getOwnPropSymbols$l(b)) {
1314
- if (__propIsEnum$l.call(b, prop))
1315
- __defNormalProp$l(a, prop, b[prop]);
1313
+ if (__hasOwnProp$m.call(b, prop))
1314
+ __defNormalProp$m(a, prop, b[prop]);
1315
+ if (__getOwnPropSymbols$m)
1316
+ for (var prop of __getOwnPropSymbols$m(b)) {
1317
+ if (__propIsEnum$m.call(b, prop))
1318
+ __defNormalProp$m(a, prop, b[prop]);
1316
1319
  }
1317
1320
  return a;
1318
1321
  };
1319
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
1320
- var __objRest$f = (source, exclude) => {
1322
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
1323
+ var __objRest$g = (source, exclude) => {
1321
1324
  var target = {};
1322
1325
  for (var prop in source)
1323
- if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
1326
+ if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
1324
1327
  target[prop] = source[prop];
1325
- if (source != null && __getOwnPropSymbols$l)
1326
- for (var prop of __getOwnPropSymbols$l(source)) {
1327
- if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
1328
+ if (source != null && __getOwnPropSymbols$m)
1329
+ for (var prop of __getOwnPropSymbols$m(source)) {
1330
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
1328
1331
  target[prop] = source[prop];
1329
1332
  }
1330
1333
  return target;
@@ -1338,7 +1341,7 @@ function AntdDropdown(props) {
1338
1341
  menuItemsJson,
1339
1342
  trigger = "click",
1340
1343
  dropdownMenuScopeClassName
1341
- } = _a, rest = __objRest$f(_a, [
1344
+ } = _a, rest = __objRest$g(_a, [
1342
1345
  "children",
1343
1346
  "onAction",
1344
1347
  "menuItems",
@@ -1349,7 +1352,7 @@ function AntdDropdown(props) {
1349
1352
  ]);
1350
1353
  return /* @__PURE__ */ React.createElement(
1351
1354
  Dropdown,
1352
- __spreadProps$e(__spreadValues$l({}, rest), {
1355
+ __spreadProps$f(__spreadValues$m({}, rest), {
1353
1356
  trigger: [trigger],
1354
1357
  overlay: () => {
1355
1358
  var _a2;
@@ -1490,7 +1493,7 @@ function registerDropdown(loader) {
1490
1493
  advanced: true,
1491
1494
  description: "Instead of configuring a list of menu items, build the menu items using MenuItem elements. This gives you greater control over item styling."
1492
1495
  },
1493
- children: __spreadValues$l({
1496
+ children: __spreadValues$m({
1494
1497
  type: "slot",
1495
1498
  defaultValue: [
1496
1499
  {
@@ -1515,19 +1518,19 @@ function registerDropdown(loader) {
1515
1518
  });
1516
1519
  }
1517
1520
 
1518
- var __defProp$k = Object.defineProperty;
1519
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
1520
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
1521
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
1522
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1523
- var __spreadValues$k = (a, b) => {
1521
+ var __defProp$l = Object.defineProperty;
1522
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
1523
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
1524
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
1525
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1526
+ var __spreadValues$l = (a, b) => {
1524
1527
  for (var prop in b || (b = {}))
1525
- if (__hasOwnProp$k.call(b, prop))
1526
- __defNormalProp$k(a, prop, b[prop]);
1527
- if (__getOwnPropSymbols$k)
1528
- for (var prop of __getOwnPropSymbols$k(b)) {
1529
- if (__propIsEnum$k.call(b, prop))
1530
- __defNormalProp$k(a, prop, b[prop]);
1528
+ if (__hasOwnProp$l.call(b, prop))
1529
+ __defNormalProp$l(a, prop, b[prop]);
1530
+ if (__getOwnPropSymbols$l)
1531
+ for (var prop of __getOwnPropSymbols$l(b)) {
1532
+ if (__propIsEnum$l.call(b, prop))
1533
+ __defNormalProp$l(a, prop, b[prop]);
1531
1534
  }
1532
1535
  return a;
1533
1536
  };
@@ -1538,7 +1541,7 @@ function mergeProps(props, ...restProps) {
1538
1541
  if (restProps.every((rest) => Object.keys(rest).length === 0)) {
1539
1542
  return props;
1540
1543
  }
1541
- const result = __spreadValues$k({}, props);
1544
+ const result = __spreadValues$l({}, props);
1542
1545
  for (const rest of restProps) {
1543
1546
  for (const key of Object.keys(rest)) {
1544
1547
  result[key] = mergePropVals(key, result[key], rest[key]);
@@ -1575,7 +1578,7 @@ function mergePropVals(name, val1, val2) {
1575
1578
  } else if (name === "className") {
1576
1579
  return classNames(val1, val2);
1577
1580
  } else if (name === "style") {
1578
- return __spreadValues$k(__spreadValues$k({}, val1), val2);
1581
+ return __spreadValues$l(__spreadValues$l({}, val1), val2);
1579
1582
  } else if (name === "ref") {
1580
1583
  return mergeRefs(val1, val2);
1581
1584
  } else if (typeof val1 !== typeof val2) {
@@ -1611,25 +1614,25 @@ function reactNodeToString(reactNode) {
1611
1614
  return string;
1612
1615
  }
1613
1616
 
1614
- var __defProp$j = Object.defineProperty;
1615
- var __defProps$d = Object.defineProperties;
1616
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
1617
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
1618
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
1619
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
1620
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1621
- var __spreadValues$j = (a, b) => {
1617
+ var __defProp$k = Object.defineProperty;
1618
+ var __defProps$e = Object.defineProperties;
1619
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
1620
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
1621
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
1622
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
1623
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1624
+ var __spreadValues$k = (a, b) => {
1622
1625
  for (var prop in b || (b = {}))
1623
- if (__hasOwnProp$j.call(b, prop))
1624
- __defNormalProp$j(a, prop, b[prop]);
1625
- if (__getOwnPropSymbols$j)
1626
- for (var prop of __getOwnPropSymbols$j(b)) {
1627
- if (__propIsEnum$j.call(b, prop))
1628
- __defNormalProp$j(a, prop, b[prop]);
1626
+ if (__hasOwnProp$k.call(b, prop))
1627
+ __defNormalProp$k(a, prop, b[prop]);
1628
+ if (__getOwnPropSymbols$k)
1629
+ for (var prop of __getOwnPropSymbols$k(b)) {
1630
+ if (__propIsEnum$k.call(b, prop))
1631
+ __defNormalProp$k(a, prop, b[prop]);
1629
1632
  }
1630
1633
  return a;
1631
1634
  };
1632
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
1635
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
1633
1636
  const AntdInput = Input;
1634
1637
  const AntdTextArea = Input.TextArea;
1635
1638
  const AntdPassword = Input.Password;
@@ -1719,10 +1722,10 @@ const COMMON_EVENT_HANDLERS = {
1719
1722
  };
1720
1723
  const inputComponentName = "plasmic-antd5-input";
1721
1724
  function registerInput(loader) {
1722
- registerComponentHelper(loader, AntdInput, __spreadProps$d(__spreadValues$j({
1725
+ registerComponentHelper(loader, AntdInput, __spreadProps$e(__spreadValues$k({
1723
1726
  name: inputComponentName,
1724
1727
  displayName: "Input",
1725
- props: __spreadValues$j(__spreadValues$j(__spreadValues$j({
1728
+ props: __spreadValues$k(__spreadValues$k(__spreadValues$k({
1726
1729
  value: {
1727
1730
  type: "string",
1728
1731
  hidden: (ps) => !!ps.__plasmicFormField
@@ -1753,7 +1756,7 @@ function registerInput(loader) {
1753
1756
  defaultValueHint: "text"
1754
1757
  }
1755
1758
  }, COMMON_ADVANCED_PROPS), COMMON_DECORATOR_PROPS), COMMON_EVENT_HANDLERS),
1756
- states: __spreadValues$j({}, COMMON_STATES)
1759
+ states: __spreadValues$k({}, COMMON_STATES)
1757
1760
  }, { trapsSelection: true }), {
1758
1761
  componentHelpers: COMMON_HELPERS_CONFIG,
1759
1762
  importPath: "@plasmicpkgs/antd5/skinny/registerInput",
@@ -1766,7 +1769,7 @@ function registerTextArea(loader) {
1766
1769
  name: textAreaComponentName,
1767
1770
  parentComponentName: inputComponentName,
1768
1771
  displayName: "Text Area",
1769
- props: __spreadValues$j({
1772
+ props: __spreadValues$k({
1770
1773
  value: {
1771
1774
  type: "string",
1772
1775
  hidden: (ps) => !!ps.__plasmicFormField
@@ -1787,7 +1790,7 @@ function registerTextArea(loader) {
1787
1790
  defaultValueHint: true
1788
1791
  }
1789
1792
  }, COMMON_EVENT_HANDLERS),
1790
- states: __spreadValues$j({}, COMMON_STATES),
1793
+ states: __spreadValues$k({}, COMMON_STATES),
1791
1794
  componentHelpers: COMMON_HELPERS_CONFIG,
1792
1795
  importPath: "@plasmicpkgs/antd5/skinny/registerInput",
1793
1796
  importName: "AntdTextArea"
@@ -1799,7 +1802,7 @@ function registerPasswordInput(loader) {
1799
1802
  name: passwordComponentName,
1800
1803
  parentComponentName: inputComponentName,
1801
1804
  displayName: "Password Input",
1802
- props: __spreadValues$j({
1805
+ props: __spreadValues$k({
1803
1806
  value: {
1804
1807
  type: "string",
1805
1808
  hidden: (ps) => !!ps.__plasmicFormField
@@ -1820,7 +1823,7 @@ function registerPasswordInput(loader) {
1820
1823
  defaultValueHint: true
1821
1824
  }
1822
1825
  }, COMMON_EVENT_HANDLERS),
1823
- states: __spreadValues$j({}, COMMON_STATES),
1826
+ states: __spreadValues$k({}, COMMON_STATES),
1824
1827
  componentHelpers: COMMON_HELPERS_CONFIG,
1825
1828
  importPath: "@plasmicpkgs/antd5/skinny/registerInput",
1826
1829
  importName: "AntdPassword"
@@ -1828,11 +1831,11 @@ function registerPasswordInput(loader) {
1828
1831
  }
1829
1832
  const inputNumberComponentName = "plasmic-antd5-input-number";
1830
1833
  function registerNumberInput(loader) {
1831
- registerComponentHelper(loader, AntdInputNumber, __spreadProps$d(__spreadValues$j({
1834
+ registerComponentHelper(loader, AntdInputNumber, __spreadProps$e(__spreadValues$k({
1832
1835
  name: inputNumberComponentName,
1833
1836
  parentComponentName: inputComponentName,
1834
1837
  displayName: "Number Input",
1835
- props: __spreadProps$d(__spreadValues$j(__spreadValues$j(__spreadValues$j({
1838
+ props: __spreadProps$e(__spreadValues$k(__spreadValues$k(__spreadValues$k({
1836
1839
  value: {
1837
1840
  type: "number",
1838
1841
  hidden: (ps) => !!ps.__plasmicFormField
@@ -1870,7 +1873,7 @@ function registerNumberInput(loader) {
1870
1873
  ]
1871
1874
  }
1872
1875
  }),
1873
- states: __spreadValues$j({}, COMMON_STATES)
1876
+ states: __spreadValues$k({}, COMMON_STATES)
1874
1877
  }, { trapsSelection: true }), {
1875
1878
  // don't need component helpers
1876
1879
  importPath: "@plasmicpkgs/antd5/skinny/registerInput",
@@ -1878,33 +1881,33 @@ function registerNumberInput(loader) {
1878
1881
  }));
1879
1882
  }
1880
1883
 
1881
- var __defProp$i = Object.defineProperty;
1882
- var __defProps$c = Object.defineProperties;
1883
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
1884
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
1885
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
1886
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
1887
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1888
- var __spreadValues$i = (a, b) => {
1884
+ var __defProp$j = Object.defineProperty;
1885
+ var __defProps$d = Object.defineProperties;
1886
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
1887
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
1888
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
1889
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
1890
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1891
+ var __spreadValues$j = (a, b) => {
1889
1892
  for (var prop in b || (b = {}))
1890
- if (__hasOwnProp$i.call(b, prop))
1891
- __defNormalProp$i(a, prop, b[prop]);
1892
- if (__getOwnPropSymbols$i)
1893
- for (var prop of __getOwnPropSymbols$i(b)) {
1894
- if (__propIsEnum$i.call(b, prop))
1895
- __defNormalProp$i(a, prop, b[prop]);
1893
+ if (__hasOwnProp$j.call(b, prop))
1894
+ __defNormalProp$j(a, prop, b[prop]);
1895
+ if (__getOwnPropSymbols$j)
1896
+ for (var prop of __getOwnPropSymbols$j(b)) {
1897
+ if (__propIsEnum$j.call(b, prop))
1898
+ __defNormalProp$j(a, prop, b[prop]);
1896
1899
  }
1897
1900
  return a;
1898
1901
  };
1899
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
1900
- var __objRest$e = (source, exclude) => {
1902
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
1903
+ var __objRest$f = (source, exclude) => {
1901
1904
  var target = {};
1902
1905
  for (var prop in source)
1903
- if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
1906
+ if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
1904
1907
  target[prop] = source[prop];
1905
- if (source != null && __getOwnPropSymbols$i)
1906
- for (var prop of __getOwnPropSymbols$i(source)) {
1907
- if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
1908
+ if (source != null && __getOwnPropSymbols$j)
1909
+ for (var prop of __getOwnPropSymbols$j(source)) {
1910
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
1908
1911
  target[prop] = source[prop];
1909
1912
  }
1910
1913
  return target;
@@ -1913,7 +1916,7 @@ const RadioGroup = Radio.Group;
1913
1916
  const AntdRadio = Radio;
1914
1917
  const AntdRadioButton = Radio.Button;
1915
1918
  function AntdRadioGroup(props) {
1916
- const _a = props, { onChange, useChildren } = _a, rest = __objRest$e(_a, ["onChange", "useChildren"]);
1919
+ const _a = props, { onChange, useChildren } = _a, rest = __objRest$f(_a, ["onChange", "useChildren"]);
1917
1920
  const wrappedOnChange = React.useMemo(() => {
1918
1921
  if (onChange) {
1919
1922
  return (event) => onChange(event.target.value);
@@ -1923,7 +1926,7 @@ function AntdRadioGroup(props) {
1923
1926
  }, [onChange]);
1924
1927
  return /* @__PURE__ */ React.createElement(
1925
1928
  RadioGroup,
1926
- __spreadProps$c(__spreadValues$i({}, rest), {
1929
+ __spreadProps$d(__spreadValues$j({}, rest), {
1927
1930
  onChange: wrappedOnChange,
1928
1931
  options: useChildren ? void 0 : rest.options
1929
1932
  })
@@ -1951,7 +1954,7 @@ function registerRadio(loader) {
1951
1954
  defaultValueHint: false,
1952
1955
  advanced: true
1953
1956
  },
1954
- children: __spreadValues$i({
1957
+ children: __spreadValues$j({
1955
1958
  type: "slot",
1956
1959
  defaultValue: [
1957
1960
  {
@@ -1983,7 +1986,7 @@ function registerRadio(loader) {
1983
1986
  defaultValueHint: false,
1984
1987
  advanced: true
1985
1988
  },
1986
- children: __spreadValues$i({
1989
+ children: __spreadValues$j({
1987
1990
  type: "slot",
1988
1991
  defaultValue: [
1989
1992
  {
@@ -1997,7 +2000,7 @@ function registerRadio(loader) {
1997
2000
  importName: "AntdRadioButton",
1998
2001
  parentComponentName: radioGroupComponentName
1999
2002
  });
2000
- registerComponentHelper(loader, AntdRadioGroup, __spreadValues$i({
2003
+ registerComponentHelper(loader, AntdRadioGroup, __spreadValues$j({
2001
2004
  name: radioGroupComponentName,
2002
2005
  displayName: "Radio Group",
2003
2006
  props: {
@@ -2120,33 +2123,33 @@ function registerRadio(loader) {
2120
2123
  }));
2121
2124
  }
2122
2125
 
2123
- var __defProp$h = Object.defineProperty;
2124
- var __defProps$b = Object.defineProperties;
2125
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
2126
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
2127
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
2128
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
2129
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2130
- var __spreadValues$h = (a, b) => {
2126
+ var __defProp$i = Object.defineProperty;
2127
+ var __defProps$c = Object.defineProperties;
2128
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
2129
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
2130
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
2131
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
2132
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2133
+ var __spreadValues$i = (a, b) => {
2131
2134
  for (var prop in b || (b = {}))
2132
- if (__hasOwnProp$h.call(b, prop))
2133
- __defNormalProp$h(a, prop, b[prop]);
2134
- if (__getOwnPropSymbols$h)
2135
- for (var prop of __getOwnPropSymbols$h(b)) {
2136
- if (__propIsEnum$h.call(b, prop))
2137
- __defNormalProp$h(a, prop, b[prop]);
2135
+ if (__hasOwnProp$i.call(b, prop))
2136
+ __defNormalProp$i(a, prop, b[prop]);
2137
+ if (__getOwnPropSymbols$i)
2138
+ for (var prop of __getOwnPropSymbols$i(b)) {
2139
+ if (__propIsEnum$i.call(b, prop))
2140
+ __defNormalProp$i(a, prop, b[prop]);
2138
2141
  }
2139
2142
  return a;
2140
2143
  };
2141
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
2142
- var __objRest$d = (source, exclude) => {
2144
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
2145
+ var __objRest$e = (source, exclude) => {
2143
2146
  var target = {};
2144
2147
  for (var prop in source)
2145
- if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
2148
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
2146
2149
  target[prop] = source[prop];
2147
- if (source != null && __getOwnPropSymbols$h)
2148
- for (var prop of __getOwnPropSymbols$h(source)) {
2149
- if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
2150
+ if (source != null && __getOwnPropSymbols$i)
2151
+ for (var prop of __getOwnPropSymbols$i(source)) {
2152
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
2150
2153
  target[prop] = source[prop];
2151
2154
  }
2152
2155
  return target;
@@ -2161,7 +2164,7 @@ function AntdSelect(props) {
2161
2164
  suffixIcon,
2162
2165
  mode,
2163
2166
  useChildren
2164
- } = _a, rest = __objRest$d(_a, [
2167
+ } = _a, rest = __objRest$e(_a, [
2165
2168
  "popupClassName",
2166
2169
  "popupScopeClassName",
2167
2170
  "defaultStylesClassName",
@@ -2169,13 +2172,13 @@ function AntdSelect(props) {
2169
2172
  "mode",
2170
2173
  "useChildren"
2171
2174
  ]);
2172
- const curated = __spreadValues$h({}, rest);
2175
+ const curated = __spreadValues$i({}, rest);
2173
2176
  if (useChildren) {
2174
2177
  curated.options = void 0;
2175
2178
  }
2176
2179
  return /* @__PURE__ */ React.createElement(
2177
2180
  Select,
2178
- __spreadValues$h(__spreadProps$b(__spreadValues$h({}, curated), {
2181
+ __spreadValues$i(__spreadProps$c(__spreadValues$i({}, curated), {
2179
2182
  mode: !mode || mode === "single" ? void 0 : mode,
2180
2183
  popupClassName: `${defaultStylesClassName} ${popupScopeClassName} ${popupClassName}`,
2181
2184
  optionFilterProp: curated.options ? "label" : void 0,
@@ -2190,7 +2193,7 @@ const selectComponentName = "plasmic-antd5-select";
2190
2193
  const optionComponentName = "plasmic-antd5-option";
2191
2194
  const optionGroupComponentName = "plasmic-antd5-option-group";
2192
2195
  function registerSelect(loader) {
2193
- registerComponentHelper(loader, AntdSelect, __spreadProps$b(__spreadValues$h({
2196
+ registerComponentHelper(loader, AntdSelect, __spreadProps$c(__spreadValues$i({
2194
2197
  name: selectComponentName,
2195
2198
  displayName: "Select",
2196
2199
  props: {
@@ -2426,7 +2429,7 @@ function registerSelect(loader) {
2426
2429
  displayName: "Option",
2427
2430
  parentComponentName: selectComponentName,
2428
2431
  props: {
2429
- children: __spreadValues$h({
2432
+ children: __spreadValues$i({
2430
2433
  type: "slot",
2431
2434
  defaultValue: "Option"
2432
2435
  }, { mergeWithParent: true }),
@@ -2479,24 +2482,24 @@ function registerSelect(loader) {
2479
2482
  });
2480
2483
  }
2481
2484
 
2482
- var __defProp$g = Object.defineProperty;
2483
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
2484
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
2485
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
2486
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2487
- var __spreadValues$g = (a, b) => {
2485
+ var __defProp$h = Object.defineProperty;
2486
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
2487
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
2488
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
2489
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2490
+ var __spreadValues$h = (a, b) => {
2488
2491
  for (var prop in b || (b = {}))
2489
- if (__hasOwnProp$g.call(b, prop))
2490
- __defNormalProp$g(a, prop, b[prop]);
2491
- if (__getOwnPropSymbols$g)
2492
- for (var prop of __getOwnPropSymbols$g(b)) {
2493
- if (__propIsEnum$g.call(b, prop))
2494
- __defNormalProp$g(a, prop, b[prop]);
2492
+ if (__hasOwnProp$h.call(b, prop))
2493
+ __defNormalProp$h(a, prop, b[prop]);
2494
+ if (__getOwnPropSymbols$h)
2495
+ for (var prop of __getOwnPropSymbols$h(b)) {
2496
+ if (__propIsEnum$h.call(b, prop))
2497
+ __defNormalProp$h(a, prop, b[prop]);
2495
2498
  }
2496
2499
  return a;
2497
2500
  };
2498
2501
  function AntdSwitch(props) {
2499
- return /* @__PURE__ */ React.createElement(Switch, __spreadValues$g({}, props));
2502
+ return /* @__PURE__ */ React.createElement(Switch, __spreadValues$h({}, props));
2500
2503
  }
2501
2504
  AntdSwitch.__plasmicFormFieldMeta = { valueProp: "checked" };
2502
2505
  const switchComponentName = "plasmic-antd5-switch";
@@ -2542,33 +2545,33 @@ function registerSwitch(loader) {
2542
2545
  });
2543
2546
  }
2544
2547
 
2545
- var __defProp$f = Object.defineProperty;
2546
- var __defProps$a = Object.defineProperties;
2547
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
2548
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
2549
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
2550
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
2551
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2552
- var __spreadValues$f = (a, b) => {
2548
+ var __defProp$g = Object.defineProperty;
2549
+ var __defProps$b = Object.defineProperties;
2550
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
2551
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
2552
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
2553
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
2554
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2555
+ var __spreadValues$g = (a, b) => {
2553
2556
  for (var prop in b || (b = {}))
2554
- if (__hasOwnProp$f.call(b, prop))
2555
- __defNormalProp$f(a, prop, b[prop]);
2556
- if (__getOwnPropSymbols$f)
2557
- for (var prop of __getOwnPropSymbols$f(b)) {
2558
- if (__propIsEnum$f.call(b, prop))
2559
- __defNormalProp$f(a, prop, b[prop]);
2557
+ if (__hasOwnProp$g.call(b, prop))
2558
+ __defNormalProp$g(a, prop, b[prop]);
2559
+ if (__getOwnPropSymbols$g)
2560
+ for (var prop of __getOwnPropSymbols$g(b)) {
2561
+ if (__propIsEnum$g.call(b, prop))
2562
+ __defNormalProp$g(a, prop, b[prop]);
2560
2563
  }
2561
2564
  return a;
2562
2565
  };
2563
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
2564
- var __objRest$c = (source, exclude) => {
2566
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
2567
+ var __objRest$d = (source, exclude) => {
2565
2568
  var target = {};
2566
2569
  for (var prop in source)
2567
- if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
2570
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
2568
2571
  target[prop] = source[prop];
2569
- if (source != null && __getOwnPropSymbols$f)
2570
- for (var prop of __getOwnPropSymbols$f(source)) {
2571
- if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
2572
+ if (source != null && __getOwnPropSymbols$g)
2573
+ for (var prop of __getOwnPropSymbols$g(source)) {
2574
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
2572
2575
  target[prop] = source[prop];
2573
2576
  }
2574
2577
  return target;
@@ -2577,10 +2580,10 @@ function AntdDatePicker(props) {
2577
2580
  const nativeInput = React.useRef(null);
2578
2581
  const [open, setOpen] = useState(false);
2579
2582
  const strValue = props.value && typeof props.value === "object" && "toISOString" in props.value ? props.value.toISOString() : props.value === null ? void 0 : props.value;
2580
- const _a = props, { picker, popupScopeClassName } = _a, rest = __objRest$c(_a, ["picker", "popupScopeClassName"]);
2583
+ const _a = props, { picker, popupScopeClassName } = _a, rest = __objRest$d(_a, ["picker", "popupScopeClassName"]);
2581
2584
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
2582
2585
  DatePicker,
2583
- __spreadProps$a(__spreadValues$f({}, rest), {
2586
+ __spreadProps$b(__spreadValues$g({}, rest), {
2584
2587
  picker,
2585
2588
  value: props.value === void 0 ? void 0 : !props.value ? null : dayjs(props.value),
2586
2589
  defaultValue: props.defaultValue === void 0 ? void 0 : dayjs(props.defaultValue),
@@ -2746,33 +2749,33 @@ function registerDatePicker(loader) {
2746
2749
  });
2747
2750
  }
2748
2751
 
2749
- var __defProp$e = Object.defineProperty;
2750
- var __defProps$9 = Object.defineProperties;
2751
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
2752
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
2753
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
2754
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
2755
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2756
- var __spreadValues$e = (a, b) => {
2752
+ var __defProp$f = Object.defineProperty;
2753
+ var __defProps$a = Object.defineProperties;
2754
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
2755
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
2756
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
2757
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
2758
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2759
+ var __spreadValues$f = (a, b) => {
2757
2760
  for (var prop in b || (b = {}))
2758
- if (__hasOwnProp$e.call(b, prop))
2759
- __defNormalProp$e(a, prop, b[prop]);
2760
- if (__getOwnPropSymbols$e)
2761
- for (var prop of __getOwnPropSymbols$e(b)) {
2762
- if (__propIsEnum$e.call(b, prop))
2763
- __defNormalProp$e(a, prop, b[prop]);
2761
+ if (__hasOwnProp$f.call(b, prop))
2762
+ __defNormalProp$f(a, prop, b[prop]);
2763
+ if (__getOwnPropSymbols$f)
2764
+ for (var prop of __getOwnPropSymbols$f(b)) {
2765
+ if (__propIsEnum$f.call(b, prop))
2766
+ __defNormalProp$f(a, prop, b[prop]);
2764
2767
  }
2765
2768
  return a;
2766
2769
  };
2767
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
2768
- var __objRest$b = (source, exclude) => {
2770
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
2771
+ var __objRest$c = (source, exclude) => {
2769
2772
  var target = {};
2770
2773
  for (var prop in source)
2771
- if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
2774
+ if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
2772
2775
  target[prop] = source[prop];
2773
- if (source != null && __getOwnPropSymbols$e)
2774
- for (var prop of __getOwnPropSymbols$e(source)) {
2775
- if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
2776
+ if (source != null && __getOwnPropSymbols$f)
2777
+ for (var prop of __getOwnPropSymbols$f(source)) {
2778
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
2776
2779
  target[prop] = source[prop];
2777
2780
  }
2778
2781
  return target;
@@ -2814,7 +2817,7 @@ const Internal = React.forwardRef(
2814
2817
  formLayout,
2815
2818
  internalFieldCtx,
2816
2819
  setInternalFieldCtx
2817
- } = _a, rest = __objRest$b(_a, [
2820
+ } = _a, rest = __objRest$c(_a, [
2818
2821
  "extendedOnValuesChange",
2819
2822
  "forceRemount",
2820
2823
  "formLayout",
@@ -2835,7 +2838,7 @@ const Internal = React.forwardRef(
2835
2838
  },
2836
2839
  /* @__PURE__ */ React.createElement(
2837
2840
  FormItemWrapper,
2838
- __spreadProps$9(__spreadValues$e({}, omit(formItem, "key")), {
2841
+ __spreadProps$a(__spreadValues$f({}, omit(formItem, "key")), {
2839
2842
  noLabel: formItem.inputType === "Checkbox" /* Checkbox */ || formItem.noLabel,
2840
2843
  valuePropName: (_c2 = formItem.valuePropName) != null ? _c2 : formItem.inputType === "Checkbox" /* Checkbox */ ? "checked" : void 0,
2841
2844
  style: { width: "100%" }
@@ -2926,7 +2929,7 @@ const Internal = React.forwardRef(
2926
2929
  },
2927
2930
  /* @__PURE__ */ React.createElement(FormLayoutContext.Provider, { value: formLayout }, /* @__PURE__ */ React.createElement(
2928
2931
  Form,
2929
- __spreadProps$9(__spreadValues$e({}, rest), {
2932
+ __spreadProps$a(__spreadValues$f({}, rest), {
2930
2933
  key: props.initialValues ? JSON.stringify(props.initialValues) : void 0,
2931
2934
  onValuesChange: (...args) => {
2932
2935
  var _a2;
@@ -2965,7 +2968,7 @@ function deriveFormFieldConfigs(dataFormItems, schema, data) {
2965
2968
  schema,
2966
2969
  (field) => {
2967
2970
  var _a;
2968
- return __spreadValues$e({
2971
+ return __spreadValues$f({
2969
2972
  inputType: "Text" /* Text */
2970
2973
  }, field && {
2971
2974
  key: field.id,
@@ -2986,7 +2989,7 @@ function useFormItemDefinitions(rawData, props, formRef, commonFormCtxData) {
2986
2989
  const data = rawData && normalizeData(rawData);
2987
2990
  const schema = data && (data == null ? void 0 : data.schema);
2988
2991
  if (mode !== "simplified" || !rawData || rawData.isLoading || rawData.error || !data || !schema || !data.data) {
2989
- setControlContextData == null ? void 0 : setControlContextData(__spreadValues$e({
2992
+ setControlContextData == null ? void 0 : setControlContextData(__spreadValues$f({
2990
2993
  formInstance
2991
2994
  }, commonFormCtxData));
2992
2995
  return void 0;
@@ -2997,7 +3000,7 @@ function useFormItemDefinitions(rawData, props, formRef, commonFormCtxData) {
2997
3000
  schema,
2998
3001
  row
2999
3002
  );
3000
- setControlContextData == null ? void 0 : setControlContextData(__spreadValues$e({
3003
+ setControlContextData == null ? void 0 : setControlContextData(__spreadValues$f({
3001
3004
  schema: data.schema,
3002
3005
  minimalFullLengthFields,
3003
3006
  mergedFields,
@@ -3038,7 +3041,7 @@ const FormWrapper = React.forwardRef(
3038
3041
  });
3039
3042
  React.useImperativeHandle(
3040
3043
  ref,
3041
- () => wrapperRef.current ? __spreadValues$e({}, wrapperRef.current) : {}
3044
+ () => wrapperRef.current ? __spreadValues$f({}, wrapperRef.current) : {}
3042
3045
  );
3043
3046
  const formLayout = React.useMemo(
3044
3047
  () => {
@@ -3075,7 +3078,7 @@ const FormWrapper = React.forwardRef(
3075
3078
  forceRemount();
3076
3079
  }
3077
3080
  }, [props.data]);
3078
- const _b = props, { dataFormItems, formItems, data } = _b, rest = __objRest$b(_b, ["dataFormItems", "formItems", "data"]);
3081
+ const _b = props, { dataFormItems, formItems, data } = _b, rest = __objRest$c(_b, ["dataFormItems", "formItems", "data"]);
3079
3082
  const actualFormItems = props.mode === "simplified" && formItemDefinitions ? formItemDefinitions : data ? dataFormItems : formItems;
3080
3083
  const previousFormItems = React.useRef([]);
3081
3084
  React.useEffect(() => {
@@ -3090,7 +3093,7 @@ const FormWrapper = React.forwardRef(
3090
3093
  const isLoadingData = rawData == null ? void 0 : rawData.isLoading;
3091
3094
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
3092
3095
  Internal,
3093
- __spreadProps$9(__spreadValues$e({
3096
+ __spreadProps$a(__spreadValues$f({
3094
3097
  key: remountKey
3095
3098
  }, rest), {
3096
3099
  forceRemount,
@@ -3287,7 +3290,7 @@ function registerForm(loader) {
3287
3290
  return true;
3288
3291
  }
3289
3292
  },
3290
- submitSlot: __spreadValues$e({
3293
+ submitSlot: __spreadValues$f({
3291
3294
  type: "slot",
3292
3295
  hidden: () => true,
3293
3296
  defaultValue: {
@@ -3409,12 +3412,12 @@ function registerForm(loader) {
3409
3412
  ]
3410
3413
  },
3411
3414
  validateTrigger: {
3412
- displayName: "Validate rules",
3415
+ displayName: "Validate when",
3413
3416
  type: "choice",
3414
3417
  options: [
3415
- { value: "onBlur", label: "When a field loses focus" },
3416
- { value: "onChange", label: "When a field changes" },
3417
- { value: "onSubmit", label: "When the form is submitted" }
3418
+ { value: "onBlur", label: "a field loses focus" },
3419
+ { value: "onChange", label: "a field changes" },
3420
+ { value: "onSubmit", label: "the form is submitted" }
3418
3421
  ],
3419
3422
  multiSelect: true,
3420
3423
  defaultValueHint: ["onChange"],
@@ -3579,7 +3582,7 @@ function FormItemWrapper(props) {
3579
3582
  customizeProps,
3580
3583
  setControlContextData,
3581
3584
  alignLabellessWithControls = true
3582
- } = _a, rest = __objRest$b(_a, [
3585
+ } = _a, rest = __objRest$c(_a, [
3583
3586
  "rules",
3584
3587
  "description",
3585
3588
  "noLabel",
@@ -3656,7 +3659,7 @@ function FormItemWrapper(props) {
3656
3659
  }, []);
3657
3660
  return /* @__PURE__ */ React.createElement(
3658
3661
  FormItem,
3659
- __spreadProps$9(__spreadValues$e({}, rest), {
3662
+ __spreadProps$a(__spreadValues$f({}, rest), {
3660
3663
  label: noLabel ? void 0 : props.label,
3661
3664
  name: relativeFormItemName,
3662
3665
  rules,
@@ -3721,7 +3724,7 @@ function deriveOnChangePropName(props) {
3721
3724
  return void 0;
3722
3725
  }
3723
3726
  function FormItemForwarder(_a) {
3724
- var _b = _a, { formItemProps } = _b, props = __objRest$b(_b, ["formItemProps"]);
3727
+ var _b = _a, { formItemProps } = _b, props = __objRest$c(_b, ["formItemProps"]);
3725
3728
  var _a2;
3726
3729
  const status = Form.Item.useStatus();
3727
3730
  const internalFormCtx = React.useContext(InternalFormInstanceContext);
@@ -3734,7 +3737,7 @@ function FormItemForwarder(_a) {
3734
3737
  });
3735
3738
  return React.Children.map(formItemProps.children, (child, i) => {
3736
3739
  var _a3;
3737
- let newProps = __spreadProps$9(__spreadValues$e(__spreadValues$e({}, (_a3 = child.props) != null ? _a3 : {}), props), {
3740
+ let newProps = __spreadProps$a(__spreadValues$f(__spreadValues$f({}, (_a3 = child.props) != null ? _a3 : {}), props), {
3738
3741
  __plasmicFormField: true
3739
3742
  });
3740
3743
  if (formItemProps.customizeProps) {
@@ -3921,9 +3924,15 @@ function commonFormItemProps(usage) {
3921
3924
  defaultValueHint: getDefaultValueHint("hidden")
3922
3925
  },
3923
3926
  validateTrigger: {
3927
+ displayName: "Validate when",
3924
3928
  type: "choice",
3925
- options: ["onSubmit", "onChange", "onBlur"],
3929
+ options: [
3930
+ { value: "onBlur", label: "a field loses focus" },
3931
+ { value: "onChange", label: "a field changes" },
3932
+ { value: "onSubmit", label: "the form is submitted" }
3933
+ ],
3926
3934
  multiSelect: true,
3935
+ defaultValueHint: ["onChange"],
3927
3936
  advanced: true
3928
3937
  },
3929
3938
  shouldUpdate: {
@@ -3975,7 +3984,7 @@ function commonFormItemProps(usage) {
3975
3984
  }
3976
3985
  const commonSimplifiedFormArrayItemType = (propName) => ({
3977
3986
  type: "object",
3978
- fields: __spreadValues$e({
3987
+ fields: __spreadValues$f({
3979
3988
  label: {
3980
3989
  type: "string",
3981
3990
  defaultValueHint: getDefaultValueHint("label")
@@ -4071,7 +4080,7 @@ const commonSimplifiedFormArrayItemType = (propName) => ({
4071
4080
  });
4072
4081
  const formItemComponentName = "plasmic-antd5-form-item";
4073
4082
  function registerFormItem(loader) {
4074
- registerComponentHelper(loader, FormItemWrapper, __spreadValues$e({
4083
+ registerComponentHelper(loader, FormItemWrapper, __spreadValues$f({
4075
4084
  name: formItemComponentName,
4076
4085
  displayName: "Form Field",
4077
4086
  parentComponentName: formComponentName,
@@ -4079,8 +4088,8 @@ function registerFormItem(loader) {
4079
4088
  marginBottom: "24px",
4080
4089
  width: "stretch"
4081
4090
  },
4082
- props: __spreadValues$e({
4083
- label: __spreadValues$e({
4091
+ props: __spreadValues$f({
4092
+ label: __spreadValues$f({
4084
4093
  type: "slot",
4085
4094
  defaultValue: {
4086
4095
  type: "text",
@@ -4088,7 +4097,7 @@ function registerFormItem(loader) {
4088
4097
  },
4089
4098
  hidden: (ps) => !!ps.noLabel
4090
4099
  }, { mergeWithParent: true }),
4091
- children: __spreadValues$e({
4100
+ children: __spreadValues$f({
4092
4101
  type: "slot",
4093
4102
  defaultValue: {
4094
4103
  type: "component",
@@ -4265,7 +4274,7 @@ const FormListWrapper = React.forwardRef(function FormListWrapper2(props, ref) {
4265
4274
  }
4266
4275
  }, [props.initialValue, fullFormItemName]);
4267
4276
  }
4268
- return /* @__PURE__ */ React.createElement(FormList, __spreadProps$9(__spreadValues$e({}, props), { name: relativeFormItemName != null ? relativeFormItemName : [] }), (...args) => {
4277
+ return /* @__PURE__ */ React.createElement(FormList, __spreadProps$a(__spreadValues$f({}, props), { name: relativeFormItemName != null ? relativeFormItemName : [] }), (...args) => {
4269
4278
  operationsRef.current = args;
4270
4279
  return args[0].map((field, index) => /* @__PURE__ */ React.createElement(
4271
4280
  PathContext.Provider,
@@ -4392,33 +4401,33 @@ function registerFormList(loader) {
4392
4401
  });
4393
4402
  }
4394
4403
 
4395
- var __defProp$d = Object.defineProperty;
4396
- var __defProps$8 = Object.defineProperties;
4397
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
4398
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
4399
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
4400
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
4401
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4402
- var __spreadValues$d = (a, b) => {
4404
+ var __defProp$e = Object.defineProperty;
4405
+ var __defProps$9 = Object.defineProperties;
4406
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
4407
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
4408
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
4409
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
4410
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4411
+ var __spreadValues$e = (a, b) => {
4403
4412
  for (var prop in b || (b = {}))
4404
- if (__hasOwnProp$d.call(b, prop))
4405
- __defNormalProp$d(a, prop, b[prop]);
4406
- if (__getOwnPropSymbols$d)
4407
- for (var prop of __getOwnPropSymbols$d(b)) {
4408
- if (__propIsEnum$d.call(b, prop))
4409
- __defNormalProp$d(a, prop, b[prop]);
4413
+ if (__hasOwnProp$e.call(b, prop))
4414
+ __defNormalProp$e(a, prop, b[prop]);
4415
+ if (__getOwnPropSymbols$e)
4416
+ for (var prop of __getOwnPropSymbols$e(b)) {
4417
+ if (__propIsEnum$e.call(b, prop))
4418
+ __defNormalProp$e(a, prop, b[prop]);
4410
4419
  }
4411
4420
  return a;
4412
4421
  };
4413
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
4414
- var __objRest$a = (source, exclude) => {
4422
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
4423
+ var __objRest$b = (source, exclude) => {
4415
4424
  var target = {};
4416
4425
  for (var prop in source)
4417
- if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
4426
+ if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
4418
4427
  target[prop] = source[prop];
4419
- if (source != null && __getOwnPropSymbols$d)
4420
- for (var prop of __getOwnPropSymbols$d(source)) {
4421
- if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
4428
+ if (source != null && __getOwnPropSymbols$e)
4429
+ for (var prop of __getOwnPropSymbols$e(source)) {
4430
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
4422
4431
  target[prop] = source[prop];
4423
4432
  }
4424
4433
  return target;
@@ -4433,7 +4442,7 @@ function AntdModal(props) {
4433
4442
  hideFooter,
4434
4443
  modalScopeClassName,
4435
4444
  wrapClassName
4436
- } = _a, rest = __objRest$a(_a, [
4445
+ } = _a, rest = __objRest$b(_a, [
4437
4446
  "onOpenChange",
4438
4447
  "onOk",
4439
4448
  "onCancel",
@@ -4465,7 +4474,7 @@ function AntdModal(props) {
4465
4474
  }, [onOpenChange, onCancel]);
4466
4475
  return /* @__PURE__ */ React.createElement(
4467
4476
  Modal,
4468
- __spreadProps$8(__spreadValues$d({}, rest), {
4477
+ __spreadProps$9(__spreadValues$e({}, rest), {
4469
4478
  onOk: memoOnOk,
4470
4479
  onCancel: memoOnCancel,
4471
4480
  open,
@@ -4595,30 +4604,30 @@ function registerModal(loader) {
4595
4604
  });
4596
4605
  }
4597
4606
 
4598
- var __defProp$c = Object.defineProperty;
4599
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
4600
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
4601
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
4602
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4603
- var __spreadValues$c = (a, b) => {
4607
+ var __defProp$d = Object.defineProperty;
4608
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
4609
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
4610
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
4611
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4612
+ var __spreadValues$d = (a, b) => {
4604
4613
  for (var prop in b || (b = {}))
4605
- if (__hasOwnProp$c.call(b, prop))
4606
- __defNormalProp$c(a, prop, b[prop]);
4607
- if (__getOwnPropSymbols$c)
4608
- for (var prop of __getOwnPropSymbols$c(b)) {
4609
- if (__propIsEnum$c.call(b, prop))
4610
- __defNormalProp$c(a, prop, b[prop]);
4614
+ if (__hasOwnProp$d.call(b, prop))
4615
+ __defNormalProp$d(a, prop, b[prop]);
4616
+ if (__getOwnPropSymbols$d)
4617
+ for (var prop of __getOwnPropSymbols$d(b)) {
4618
+ if (__propIsEnum$d.call(b, prop))
4619
+ __defNormalProp$d(a, prop, b[prop]);
4611
4620
  }
4612
4621
  return a;
4613
4622
  };
4614
- var __objRest$9 = (source, exclude) => {
4623
+ var __objRest$a = (source, exclude) => {
4615
4624
  var target = {};
4616
4625
  for (var prop in source)
4617
- if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
4626
+ if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
4618
4627
  target[prop] = source[prop];
4619
- if (source != null && __getOwnPropSymbols$c)
4620
- for (var prop of __getOwnPropSymbols$c(source)) {
4621
- if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
4628
+ if (source != null && __getOwnPropSymbols$d)
4629
+ for (var prop of __getOwnPropSymbols$d(source)) {
4630
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
4622
4631
  target[prop] = source[prop];
4623
4632
  }
4624
4633
  return target;
@@ -4633,7 +4642,7 @@ const AntdTable = React.forwardRef(function AntdTable2(props, ref) {
4633
4642
  setControlContextData,
4634
4643
  selectedRowKeys,
4635
4644
  defaultSelectedRowKeys
4636
- } = _a, rest = __objRest$9(_a, [
4645
+ } = _a, rest = __objRest$a(_a, [
4637
4646
  "data",
4638
4647
  "onSelectedRowKeysChange",
4639
4648
  "onSelectedRowsChange",
@@ -4699,7 +4708,7 @@ const AntdTable = React.forwardRef(function AntdTable2(props, ref) {
4699
4708
  );
4700
4709
  return /* @__PURE__ */ React.createElement(
4701
4710
  Table,
4702
- __spreadValues$c({
4711
+ __spreadValues$d({
4703
4712
  loading: data == null ? void 0 : data.isLoading,
4704
4713
  dataSource: data == null ? void 0 : data.data,
4705
4714
  rowSelection: selection,
@@ -4808,7 +4817,7 @@ function registerTable(loader) {
4808
4817
  }
4809
4818
  }
4810
4819
  });
4811
- registerComponentHelper(loader, AntdColumn, __spreadValues$c({
4820
+ registerComponentHelper(loader, AntdColumn, __spreadValues$d({
4812
4821
  name: "plasmic-antd5-table-column",
4813
4822
  displayName: "Column",
4814
4823
  parentComponentName: "plasmic-antd5-table",
@@ -4845,7 +4854,7 @@ function registerTable(loader) {
4845
4854
  importPath: "@plasmicpkgs/antd5/skinny/registerTable",
4846
4855
  importName: "AntdColumn"
4847
4856
  }, { isRenderless: true }));
4848
- registerComponentHelper(loader, AntdColumnGroup, __spreadValues$c({
4857
+ registerComponentHelper(loader, AntdColumnGroup, __spreadValues$d({
4849
4858
  name: "plasmic-antd5-table-column-group",
4850
4859
  displayName: "Column Group",
4851
4860
  parentComponentName: "plasmic-antd5-table",
@@ -4864,39 +4873,39 @@ function registerTable(loader) {
4864
4873
  }, { isRenderless: true }));
4865
4874
  }
4866
4875
 
4867
- var __defProp$b = Object.defineProperty;
4868
- var __defProps$7 = Object.defineProperties;
4869
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
4870
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
4871
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
4872
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
4873
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4874
- var __spreadValues$b = (a, b) => {
4876
+ var __defProp$c = Object.defineProperty;
4877
+ var __defProps$8 = Object.defineProperties;
4878
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
4879
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
4880
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
4881
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
4882
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4883
+ var __spreadValues$c = (a, b) => {
4875
4884
  for (var prop in b || (b = {}))
4876
- if (__hasOwnProp$b.call(b, prop))
4877
- __defNormalProp$b(a, prop, b[prop]);
4878
- if (__getOwnPropSymbols$b)
4879
- for (var prop of __getOwnPropSymbols$b(b)) {
4880
- if (__propIsEnum$b.call(b, prop))
4881
- __defNormalProp$b(a, prop, b[prop]);
4885
+ if (__hasOwnProp$c.call(b, prop))
4886
+ __defNormalProp$c(a, prop, b[prop]);
4887
+ if (__getOwnPropSymbols$c)
4888
+ for (var prop of __getOwnPropSymbols$c(b)) {
4889
+ if (__propIsEnum$c.call(b, prop))
4890
+ __defNormalProp$c(a, prop, b[prop]);
4882
4891
  }
4883
4892
  return a;
4884
4893
  };
4885
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
4886
- var __objRest$8 = (source, exclude) => {
4894
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
4895
+ var __objRest$9 = (source, exclude) => {
4887
4896
  var target = {};
4888
4897
  for (var prop in source)
4889
- if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
4898
+ if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
4890
4899
  target[prop] = source[prop];
4891
- if (source != null && __getOwnPropSymbols$b)
4892
- for (var prop of __getOwnPropSymbols$b(source)) {
4893
- if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
4900
+ if (source != null && __getOwnPropSymbols$c)
4901
+ for (var prop of __getOwnPropSymbols$c(source)) {
4902
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
4894
4903
  target[prop] = source[prop];
4895
4904
  }
4896
4905
  return target;
4897
4906
  };
4898
4907
  function UploadWrapper(props) {
4899
- const _a = props, { files, onFilesChange } = _a, rest = __objRest$8(_a, ["files", "onFilesChange"]);
4908
+ const _a = props, { files, onFilesChange } = _a, rest = __objRest$9(_a, ["files", "onFilesChange"]);
4900
4909
  const handleChange = (info) => {
4901
4910
  const { file } = info;
4902
4911
  if (file.status === "removed") {
@@ -4911,7 +4920,7 @@ function UploadWrapper(props) {
4911
4920
  };
4912
4921
  onFilesChange == null ? void 0 : onFilesChange([
4913
4922
  ...files,
4914
- __spreadProps$7(__spreadValues$b({}, metadata), {
4923
+ __spreadProps$8(__spreadValues$c({}, metadata), {
4915
4924
  status: "uploading"
4916
4925
  })
4917
4926
  ]);
@@ -4919,7 +4928,7 @@ function UploadWrapper(props) {
4919
4928
  reader.onload = () => {
4920
4929
  onFilesChange == null ? void 0 : onFilesChange([
4921
4930
  ...files.filter((f) => f.uid !== file.uid),
4922
- __spreadProps$7(__spreadValues$b({}, metadata), {
4931
+ __spreadProps$8(__spreadValues$c({}, metadata), {
4923
4932
  contents: reader.result.replace(
4924
4933
  /^data:[^;]+;base64,/,
4925
4934
  ""
@@ -4931,7 +4940,7 @@ function UploadWrapper(props) {
4931
4940
  reader.onerror = (error) => {
4932
4941
  onFilesChange == null ? void 0 : onFilesChange([
4933
4942
  ...files.filter((f) => f.uid !== file.uid),
4934
- __spreadProps$7(__spreadValues$b({}, metadata), {
4943
+ __spreadProps$8(__spreadValues$c({}, metadata), {
4935
4944
  status: "error"
4936
4945
  })
4937
4946
  ]);
@@ -4943,7 +4952,7 @@ function UploadWrapper(props) {
4943
4952
  };
4944
4953
  return /* @__PURE__ */ React.createElement(
4945
4954
  Upload,
4946
- __spreadProps$7(__spreadValues$b({}, rest), {
4955
+ __spreadProps$8(__spreadValues$c({}, rest), {
4947
4956
  fileList: files,
4948
4957
  beforeUpload: () => {
4949
4958
  return false;
@@ -4962,7 +4971,7 @@ UploadWrapper.__plasmicFormFieldMeta = {
4962
4971
  onChangePropName: "onFilesChange"
4963
4972
  };
4964
4973
  function registerUpload(loader) {
4965
- registerComponentHelper(loader, UploadWrapper, __spreadProps$7(__spreadValues$b({
4974
+ registerComponentHelper(loader, UploadWrapper, __spreadProps$8(__spreadValues$c({
4966
4975
  name: "plasmic-antd5-upload",
4967
4976
  displayName: "Upload",
4968
4977
  props: {
@@ -5049,33 +5058,33 @@ function registerUpload(loader) {
5049
5058
  }));
5050
5059
  }
5051
5060
 
5052
- var __defProp$a = Object.defineProperty;
5053
- var __defProps$6 = Object.defineProperties;
5054
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
5055
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
5056
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
5057
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
5058
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5059
- var __spreadValues$a = (a, b) => {
5061
+ var __defProp$b = Object.defineProperty;
5062
+ var __defProps$7 = Object.defineProperties;
5063
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
5064
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
5065
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
5066
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
5067
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5068
+ var __spreadValues$b = (a, b) => {
5060
5069
  for (var prop in b || (b = {}))
5061
- if (__hasOwnProp$a.call(b, prop))
5062
- __defNormalProp$a(a, prop, b[prop]);
5063
- if (__getOwnPropSymbols$a)
5064
- for (var prop of __getOwnPropSymbols$a(b)) {
5065
- if (__propIsEnum$a.call(b, prop))
5066
- __defNormalProp$a(a, prop, b[prop]);
5070
+ if (__hasOwnProp$b.call(b, prop))
5071
+ __defNormalProp$b(a, prop, b[prop]);
5072
+ if (__getOwnPropSymbols$b)
5073
+ for (var prop of __getOwnPropSymbols$b(b)) {
5074
+ if (__propIsEnum$b.call(b, prop))
5075
+ __defNormalProp$b(a, prop, b[prop]);
5067
5076
  }
5068
5077
  return a;
5069
5078
  };
5070
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
5071
- var __objRest$7 = (source, exclude) => {
5079
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
5080
+ var __objRest$8 = (source, exclude) => {
5072
5081
  var target = {};
5073
5082
  for (var prop in source)
5074
- if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
5083
+ if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
5075
5084
  target[prop] = source[prop];
5076
- if (source != null && __getOwnPropSymbols$a)
5077
- for (var prop of __getOwnPropSymbols$a(source)) {
5078
- if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
5085
+ if (source != null && __getOwnPropSymbols$b)
5086
+ for (var prop of __getOwnPropSymbols$b(source)) {
5087
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
5079
5088
  target[prop] = source[prop];
5080
5089
  }
5081
5090
  return target;
@@ -5085,17 +5094,17 @@ function AntdAvatar(_a) {
5085
5094
  letters,
5086
5095
  href,
5087
5096
  target
5088
- } = _b, props = __objRest$7(_b, [
5097
+ } = _b, props = __objRest$8(_b, [
5089
5098
  "letters",
5090
5099
  "href",
5091
5100
  "target"
5092
5101
  ]);
5093
- const avatar = /* @__PURE__ */ React.createElement(Avatar, __spreadProps$6(__spreadValues$a({}, props), { children: props.children || letters }));
5102
+ const avatar = /* @__PURE__ */ React.createElement(Avatar, __spreadProps$7(__spreadValues$b({}, props), { children: props.children || letters }));
5094
5103
  const PlasmicLink = usePlasmicLink();
5095
5104
  return href ? /* @__PURE__ */ React.createElement(PlasmicLink, { href, target: target ? "_blank" : void 0 }, avatar) : avatar;
5096
5105
  }
5097
5106
  function AntdAvatarGroup(props) {
5098
- return /* @__PURE__ */ React.createElement(Avatar.Group, __spreadValues$a({}, props));
5107
+ return /* @__PURE__ */ React.createElement(Avatar.Group, __spreadValues$b({}, props));
5099
5108
  }
5100
5109
  function registerAvatar(loader) {
5101
5110
  registerComponentHelper(loader, AntdAvatar, {
@@ -5183,27 +5192,27 @@ function registerAvatarGroup(loader) {
5183
5192
  });
5184
5193
  }
5185
5194
 
5186
- var __defProp$9 = Object.defineProperty;
5187
- var __defProps$5 = Object.defineProperties;
5188
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
5189
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
5190
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
5191
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
5192
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5193
- var __spreadValues$9 = (a, b) => {
5195
+ var __defProp$a = Object.defineProperty;
5196
+ var __defProps$6 = Object.defineProperties;
5197
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
5198
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
5199
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
5200
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
5201
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5202
+ var __spreadValues$a = (a, b) => {
5194
5203
  for (var prop in b || (b = {}))
5195
- if (__hasOwnProp$9.call(b, prop))
5196
- __defNormalProp$9(a, prop, b[prop]);
5197
- if (__getOwnPropSymbols$9)
5198
- for (var prop of __getOwnPropSymbols$9(b)) {
5199
- if (__propIsEnum$9.call(b, prop))
5200
- __defNormalProp$9(a, prop, b[prop]);
5204
+ if (__hasOwnProp$a.call(b, prop))
5205
+ __defNormalProp$a(a, prop, b[prop]);
5206
+ if (__getOwnPropSymbols$a)
5207
+ for (var prop of __getOwnPropSymbols$a(b)) {
5208
+ if (__propIsEnum$a.call(b, prop))
5209
+ __defNormalProp$a(a, prop, b[prop]);
5201
5210
  }
5202
5211
  return a;
5203
5212
  };
5204
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
5213
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
5205
5214
  function AntdTooltip(props) {
5206
- return /* @__PURE__ */ React.createElement(Tooltip, __spreadProps$5(__spreadValues$9({}, props), { title: props.title || props.titleText }));
5215
+ return /* @__PURE__ */ React.createElement(Tooltip, __spreadProps$6(__spreadValues$a({}, props), { title: props.title || props.titleText }));
5207
5216
  }
5208
5217
  function registerTooltip(loader) {
5209
5218
  registerComponentHelper(loader, AntdTooltip, {
@@ -5263,33 +5272,33 @@ function registerTooltip(loader) {
5263
5272
  });
5264
5273
  }
5265
5274
 
5266
- var __defProp$8 = Object.defineProperty;
5267
- var __defProps$4 = Object.defineProperties;
5268
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
5269
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
5270
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
5271
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
5272
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5273
- var __spreadValues$8 = (a, b) => {
5275
+ var __defProp$9 = Object.defineProperty;
5276
+ var __defProps$5 = Object.defineProperties;
5277
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
5278
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
5279
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
5280
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
5281
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5282
+ var __spreadValues$9 = (a, b) => {
5274
5283
  for (var prop in b || (b = {}))
5275
- if (__hasOwnProp$8.call(b, prop))
5276
- __defNormalProp$8(a, prop, b[prop]);
5277
- if (__getOwnPropSymbols$8)
5278
- for (var prop of __getOwnPropSymbols$8(b)) {
5279
- if (__propIsEnum$8.call(b, prop))
5280
- __defNormalProp$8(a, prop, b[prop]);
5284
+ if (__hasOwnProp$9.call(b, prop))
5285
+ __defNormalProp$9(a, prop, b[prop]);
5286
+ if (__getOwnPropSymbols$9)
5287
+ for (var prop of __getOwnPropSymbols$9(b)) {
5288
+ if (__propIsEnum$9.call(b, prop))
5289
+ __defNormalProp$9(a, prop, b[prop]);
5281
5290
  }
5282
5291
  return a;
5283
5292
  };
5284
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
5285
- var __objRest$6 = (source, exclude) => {
5293
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
5294
+ var __objRest$7 = (source, exclude) => {
5286
5295
  var target = {};
5287
5296
  for (var prop in source)
5288
- if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
5297
+ if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
5289
5298
  target[prop] = source[prop];
5290
- if (source != null && __getOwnPropSymbols$8)
5291
- for (var prop of __getOwnPropSymbols$8(source)) {
5292
- if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
5299
+ if (source != null && __getOwnPropSymbols$9)
5300
+ for (var prop of __getOwnPropSymbols$9(source)) {
5301
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
5293
5302
  target[prop] = source[prop];
5294
5303
  }
5295
5304
  return target;
@@ -5298,13 +5307,13 @@ function AntdColorPicker(_a) {
5298
5307
  var _b = _a, {
5299
5308
  showTextSwitch,
5300
5309
  onChange
5301
- } = _b, props = __objRest$6(_b, [
5310
+ } = _b, props = __objRest$7(_b, [
5302
5311
  "showTextSwitch",
5303
5312
  "onChange"
5304
5313
  ]);
5305
5314
  return /* @__PURE__ */ React.createElement(
5306
5315
  ColorPicker,
5307
- __spreadProps$4(__spreadValues$8({}, props), {
5316
+ __spreadProps$5(__spreadValues$9({}, props), {
5308
5317
  showText: props.showText || showTextSwitch,
5309
5318
  onChangeComplete: (value) => {
5310
5319
  onChange == null ? void 0 : onChange(typeof value === "string" ? value : value.toHexString());
@@ -5377,39 +5386,39 @@ function registerColorPicker(loader) {
5377
5386
  });
5378
5387
  }
5379
5388
 
5380
- var __defProp$7 = Object.defineProperty;
5381
- var __defProps$3 = Object.defineProperties;
5382
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
5383
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
5384
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
5385
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
5386
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5387
- var __spreadValues$7 = (a, b) => {
5389
+ var __defProp$8 = Object.defineProperty;
5390
+ var __defProps$4 = Object.defineProperties;
5391
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
5392
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
5393
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
5394
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
5395
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5396
+ var __spreadValues$8 = (a, b) => {
5388
5397
  for (var prop in b || (b = {}))
5389
- if (__hasOwnProp$7.call(b, prop))
5390
- __defNormalProp$7(a, prop, b[prop]);
5391
- if (__getOwnPropSymbols$7)
5392
- for (var prop of __getOwnPropSymbols$7(b)) {
5393
- if (__propIsEnum$7.call(b, prop))
5394
- __defNormalProp$7(a, prop, b[prop]);
5398
+ if (__hasOwnProp$8.call(b, prop))
5399
+ __defNormalProp$8(a, prop, b[prop]);
5400
+ if (__getOwnPropSymbols$8)
5401
+ for (var prop of __getOwnPropSymbols$8(b)) {
5402
+ if (__propIsEnum$8.call(b, prop))
5403
+ __defNormalProp$8(a, prop, b[prop]);
5395
5404
  }
5396
5405
  return a;
5397
5406
  };
5398
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
5399
- var __objRest$5 = (source, exclude) => {
5407
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
5408
+ var __objRest$6 = (source, exclude) => {
5400
5409
  var target = {};
5401
5410
  for (var prop in source)
5402
- if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
5411
+ if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
5403
5412
  target[prop] = source[prop];
5404
- if (source != null && __getOwnPropSymbols$7)
5405
- for (var prop of __getOwnPropSymbols$7(source)) {
5406
- if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
5413
+ if (source != null && __getOwnPropSymbols$8)
5414
+ for (var prop of __getOwnPropSymbols$8(source)) {
5415
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
5407
5416
  target[prop] = source[prop];
5408
5417
  }
5409
5418
  return target;
5410
5419
  };
5411
5420
  function AntdDrawer(props) {
5412
- const _a = props, { onOpenChange, onClose, open, footer, drawerScopeClassName } = _a, rest = __objRest$5(_a, ["onOpenChange", "onClose", "open", "footer", "drawerScopeClassName"]);
5421
+ const _a = props, { onOpenChange, onClose, open, footer, drawerScopeClassName } = _a, rest = __objRest$6(_a, ["onOpenChange", "onClose", "open", "footer", "drawerScopeClassName"]);
5413
5422
  const memoOnClose = React.useMemo(() => {
5414
5423
  if (onOpenChange || onClose) {
5415
5424
  return (e) => {
@@ -5422,7 +5431,7 @@ function AntdDrawer(props) {
5422
5431
  }, [onOpenChange, onClose]);
5423
5432
  return /* @__PURE__ */ React.createElement(
5424
5433
  Drawer,
5425
- __spreadProps$3(__spreadValues$7({}, rest), {
5434
+ __spreadProps$4(__spreadValues$8({}, rest), {
5426
5435
  onClose: memoOnClose,
5427
5436
  rootClassName: drawerScopeClassName,
5428
5437
  open,
@@ -5572,24 +5581,24 @@ function registerDrawer(loader) {
5572
5581
  });
5573
5582
  }
5574
5583
 
5575
- var __defProp$6 = Object.defineProperty;
5576
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
5577
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
5578
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
5579
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5580
- var __spreadValues$6 = (a, b) => {
5584
+ var __defProp$7 = Object.defineProperty;
5585
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
5586
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
5587
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
5588
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5589
+ var __spreadValues$7 = (a, b) => {
5581
5590
  for (var prop in b || (b = {}))
5582
- if (__hasOwnProp$6.call(b, prop))
5583
- __defNormalProp$6(a, prop, b[prop]);
5584
- if (__getOwnPropSymbols$6)
5585
- for (var prop of __getOwnPropSymbols$6(b)) {
5586
- if (__propIsEnum$6.call(b, prop))
5587
- __defNormalProp$6(a, prop, b[prop]);
5591
+ if (__hasOwnProp$7.call(b, prop))
5592
+ __defNormalProp$7(a, prop, b[prop]);
5593
+ if (__getOwnPropSymbols$7)
5594
+ for (var prop of __getOwnPropSymbols$7(b)) {
5595
+ if (__propIsEnum$7.call(b, prop))
5596
+ __defNormalProp$7(a, prop, b[prop]);
5588
5597
  }
5589
5598
  return a;
5590
5599
  };
5591
5600
  function AntdSteps(props) {
5592
- return /* @__PURE__ */ React.createElement(Steps, __spreadValues$6({}, props));
5601
+ return /* @__PURE__ */ React.createElement(Steps, __spreadValues$7({}, props));
5593
5602
  }
5594
5603
  function registerSteps(loader) {
5595
5604
  const statusOptions = ["wait", "process", "finish", "error"];
@@ -5696,30 +5705,30 @@ function registerSteps(loader) {
5696
5705
  });
5697
5706
  }
5698
5707
 
5699
- var __defProp$5 = Object.defineProperty;
5700
- var __defProps$2 = Object.defineProperties;
5701
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
5702
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
5703
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
5704
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
5705
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5706
- var __spreadValues$5 = (a, b) => {
5708
+ var __defProp$6 = Object.defineProperty;
5709
+ var __defProps$3 = Object.defineProperties;
5710
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
5711
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
5712
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
5713
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
5714
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5715
+ var __spreadValues$6 = (a, b) => {
5707
5716
  for (var prop in b || (b = {}))
5708
- if (__hasOwnProp$5.call(b, prop))
5709
- __defNormalProp$5(a, prop, b[prop]);
5710
- if (__getOwnPropSymbols$5)
5711
- for (var prop of __getOwnPropSymbols$5(b)) {
5712
- if (__propIsEnum$5.call(b, prop))
5713
- __defNormalProp$5(a, prop, b[prop]);
5717
+ if (__hasOwnProp$6.call(b, prop))
5718
+ __defNormalProp$6(a, prop, b[prop]);
5719
+ if (__getOwnPropSymbols$6)
5720
+ for (var prop of __getOwnPropSymbols$6(b)) {
5721
+ if (__propIsEnum$6.call(b, prop))
5722
+ __defNormalProp$6(a, prop, b[prop]);
5714
5723
  }
5715
5724
  return a;
5716
5725
  };
5717
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
5726
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
5718
5727
  function useMunged(props) {
5719
5728
  const [autoExpandParent, setAutoExpandParent] = useState(
5720
5729
  props.autoExpandParent
5721
5730
  );
5722
- const munged = __spreadProps$2(__spreadValues$5({}, props), { autoExpandParent });
5731
+ const munged = __spreadProps$3(__spreadValues$6({}, props), { autoExpandParent });
5723
5732
  if (!props.expandedKeys) {
5724
5733
  delete munged["expandedKeys"];
5725
5734
  }
@@ -5732,11 +5741,11 @@ function useMunged(props) {
5732
5741
  }
5733
5742
  function AntdTree(props) {
5734
5743
  const munged = useMunged(props);
5735
- return /* @__PURE__ */ React.createElement(Tree, __spreadValues$5({}, munged));
5744
+ return /* @__PURE__ */ React.createElement(Tree, __spreadValues$6({}, munged));
5736
5745
  }
5737
5746
  function AntdDirectoryTree(props) {
5738
5747
  const munged = useMunged(props);
5739
- return /* @__PURE__ */ React.createElement(Tree.DirectoryTree, __spreadValues$5({}, munged));
5748
+ return /* @__PURE__ */ React.createElement(Tree.DirectoryTree, __spreadValues$6({}, munged));
5740
5749
  }
5741
5750
  const treeHelpers_ = {
5742
5751
  states: {
@@ -5966,20 +5975,20 @@ function registerTreeHelper({
5966
5975
  }
5967
5976
  },
5968
5977
  states: {
5969
- checkedKeys: __spreadValues$5({
5978
+ checkedKeys: __spreadValues$6({
5970
5979
  type: "writable",
5971
5980
  valueProp: "checkedKeys",
5972
5981
  onChangeProp: "onCheck",
5973
5982
  variableType: "array",
5974
5983
  initVal: []
5975
5984
  }, treeHelpers_.states.checkedKeys),
5976
- checkedNodes: __spreadValues$5({
5985
+ checkedNodes: __spreadValues$6({
5977
5986
  type: "readonly",
5978
5987
  onChangeProp: "onCheck",
5979
5988
  variableType: "array",
5980
5989
  initVal: []
5981
5990
  }, treeHelpers_.states.checkedNodes),
5982
- checkedDetails: __spreadValues$5({
5991
+ checkedDetails: __spreadValues$6({
5983
5992
  type: "readonly",
5984
5993
  onChangeProp: "onCheck",
5985
5994
  variableType: "object",
@@ -5988,20 +5997,20 @@ function registerTreeHelper({
5988
5997
  halfCheckedKeys: []
5989
5998
  }
5990
5999
  }, treeHelpers_.states.checkedDetails),
5991
- selectedKeys: __spreadValues$5({
6000
+ selectedKeys: __spreadValues$6({
5992
6001
  type: "writable",
5993
6002
  valueProp: "selectedKeys",
5994
6003
  onChangeProp: "onSelect",
5995
6004
  variableType: "array",
5996
6005
  initVal: []
5997
6006
  }, treeHelpers_.states.selectedKeys),
5998
- selectedNodes: __spreadValues$5({
6007
+ selectedNodes: __spreadValues$6({
5999
6008
  type: "readonly",
6000
6009
  onChangeProp: "onSelect",
6001
6010
  variableType: "array",
6002
6011
  initVal: []
6003
6012
  }, treeHelpers_.states.selectedNodes),
6004
- expandedKeys: __spreadValues$5({
6013
+ expandedKeys: __spreadValues$6({
6005
6014
  type: "writable",
6006
6015
  valueProp: "expandedKeys",
6007
6016
  onChangeProp: "onExpand",
@@ -6041,33 +6050,33 @@ function registerDirectoryTree(loader) {
6041
6050
  });
6042
6051
  }
6043
6052
 
6044
- var __defProp$4 = Object.defineProperty;
6045
- var __defProps$1 = Object.defineProperties;
6046
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
6047
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
6048
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
6049
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
6050
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6051
- var __spreadValues$4 = (a, b) => {
6053
+ var __defProp$5 = Object.defineProperty;
6054
+ var __defProps$2 = Object.defineProperties;
6055
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
6056
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
6057
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
6058
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
6059
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6060
+ var __spreadValues$5 = (a, b) => {
6052
6061
  for (var prop in b || (b = {}))
6053
- if (__hasOwnProp$4.call(b, prop))
6054
- __defNormalProp$4(a, prop, b[prop]);
6055
- if (__getOwnPropSymbols$4)
6056
- for (var prop of __getOwnPropSymbols$4(b)) {
6057
- if (__propIsEnum$4.call(b, prop))
6058
- __defNormalProp$4(a, prop, b[prop]);
6062
+ if (__hasOwnProp$5.call(b, prop))
6063
+ __defNormalProp$5(a, prop, b[prop]);
6064
+ if (__getOwnPropSymbols$5)
6065
+ for (var prop of __getOwnPropSymbols$5(b)) {
6066
+ if (__propIsEnum$5.call(b, prop))
6067
+ __defNormalProp$5(a, prop, b[prop]);
6059
6068
  }
6060
6069
  return a;
6061
6070
  };
6062
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
6063
- var __objRest$4 = (source, exclude) => {
6071
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
6072
+ var __objRest$5 = (source, exclude) => {
6064
6073
  var target = {};
6065
6074
  for (var prop in source)
6066
- if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
6075
+ if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
6067
6076
  target[prop] = source[prop];
6068
- if (source != null && __getOwnPropSymbols$4)
6069
- for (var prop of __getOwnPropSymbols$4(source)) {
6070
- if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
6077
+ if (source != null && __getOwnPropSymbols$5)
6078
+ for (var prop of __getOwnPropSymbols$5(source)) {
6079
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop))
6071
6080
  target[prop] = source[prop];
6072
6081
  }
6073
6082
  return target;
@@ -6087,7 +6096,7 @@ function AntdAccordion(props) {
6087
6096
  collapsible,
6088
6097
  disabled,
6089
6098
  rotateCustomExpandIcon
6090
- } = _a, rest = __objRest$4(_a, [
6099
+ } = _a, rest = __objRest$5(_a, [
6091
6100
  "items",
6092
6101
  "activeKey",
6093
6102
  "defaultActiveKey",
@@ -6100,7 +6109,7 @@ function AntdAccordion(props) {
6100
6109
  if (!React.isValidElement(itemsRaw))
6101
6110
  return [];
6102
6111
  return (Array.isArray(itemsRaw.props.children) ? itemsRaw.props.children : [itemsRaw.props.children]).map((currentItem) => {
6103
- const props2 = __spreadProps$1(__spreadValues$4({}, currentItem.props), {
6112
+ const props2 = __spreadProps$2(__spreadValues$5({}, currentItem.props), {
6104
6113
  id: currentItem.props.id,
6105
6114
  key: currentItem.props.id,
6106
6115
  children: React.cloneElement(/* @__PURE__ */ React.createElement(React.Fragment, null, currentItem.props.children))
@@ -6115,7 +6124,7 @@ function AntdAccordion(props) {
6115
6124
  }, [itemsRaw]);
6116
6125
  return /* @__PURE__ */ React.createElement(
6117
6126
  Collapse,
6118
- __spreadValues$4({
6127
+ __spreadValues$5({
6119
6128
  accordion: true,
6120
6129
  items,
6121
6130
  defaultActiveKey,
@@ -6146,7 +6155,7 @@ function AntdSingleCollapse(props) {
6146
6155
  forceRender,
6147
6156
  children,
6148
6157
  headerClass
6149
- } = _a, rest = __objRest$4(_a, [
6158
+ } = _a, rest = __objRest$5(_a, [
6150
6159
  "open",
6151
6160
  "defaultOpen",
6152
6161
  "expandIcon",
@@ -6176,7 +6185,7 @@ function AntdSingleCollapse(props) {
6176
6185
  );
6177
6186
  return /* @__PURE__ */ React.createElement(
6178
6187
  Collapse,
6179
- __spreadValues$4({
6188
+ __spreadValues$5({
6180
6189
  accordion: false,
6181
6190
  items: [item],
6182
6191
  defaultActiveKey: defaultOpen ? item.key : void 0,
@@ -6278,7 +6287,7 @@ const commonAccordionItemProps = {
6278
6287
  type: "class",
6279
6288
  displayName: "Header"
6280
6289
  },
6281
- children: __spreadProps$1(__spreadValues$4({
6290
+ children: __spreadProps$2(__spreadValues$5({
6282
6291
  type: "slot",
6283
6292
  hidePlaceholder: true
6284
6293
  }, { mergeWithParent: true }), {
@@ -6314,7 +6323,7 @@ function registerCollapse(loader) {
6314
6323
  defaultStyles: {
6315
6324
  width: "stretch"
6316
6325
  },
6317
- props: __spreadValues$4(__spreadValues$4(__spreadValues$4({
6326
+ props: __spreadValues$5(__spreadValues$5(__spreadValues$5({
6318
6327
  open: {
6319
6328
  editOnly: true,
6320
6329
  displayName: "Open",
@@ -6324,7 +6333,7 @@ function registerCollapse(loader) {
6324
6333
  }
6325
6334
  }, commonProps$1), commonAccordionItemProps), commonAccordionProps),
6326
6335
  states: {
6327
- open: __spreadValues$4({
6336
+ open: __spreadValues$5({
6328
6337
  type: "writable",
6329
6338
  valueProp: "open",
6330
6339
  onChangeProp: "onChange",
@@ -6345,7 +6354,7 @@ function registerCollapse(loader) {
6345
6354
  defaultStyles: {
6346
6355
  width: "stretch"
6347
6356
  },
6348
- props: __spreadValues$4(__spreadValues$4({
6357
+ props: __spreadValues$5(__spreadValues$5({
6349
6358
  activeKey: {
6350
6359
  editOnly: true,
6351
6360
  displayName: "Active panel ID",
@@ -6354,7 +6363,7 @@ function registerCollapse(loader) {
6354
6363
  description: `ID of Accordion item that is expanded by default.`,
6355
6364
  advanced: true
6356
6365
  },
6357
- items: __spreadProps$1(__spreadValues$4({
6366
+ items: __spreadProps$2(__spreadValues$5({
6358
6367
  type: "slot",
6359
6368
  hidePlaceholder: true,
6360
6369
  allowedComponents: [accordionItemComponentName]
@@ -6394,7 +6403,7 @@ function registerCollapse(loader) {
6394
6403
  })
6395
6404
  }, commonProps$1), commonAccordionProps),
6396
6405
  states: {
6397
- activePanelId: __spreadValues$4({
6406
+ activePanelId: __spreadValues$5({
6398
6407
  type: "writable",
6399
6408
  valueProp: "activeKey",
6400
6409
  onChangeProp: "onChange",
@@ -6412,7 +6421,7 @@ function registerCollapse(loader) {
6412
6421
  registerComponentHelper(loader, AntdAccordionItem, {
6413
6422
  name: accordionItemComponentName,
6414
6423
  displayName: "Accordion Item",
6415
- props: __spreadValues$4(__spreadValues$4({
6424
+ props: __spreadValues$5(__spreadValues$5({
6416
6425
  id: {
6417
6426
  type: "string",
6418
6427
  description: `Unique identifier for this item`,
@@ -6425,30 +6434,30 @@ function registerCollapse(loader) {
6425
6434
  });
6426
6435
  }
6427
6436
 
6428
- var __defProp$3 = Object.defineProperty;
6429
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
6430
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
6431
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
6432
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6433
- var __spreadValues$3 = (a, b) => {
6437
+ var __defProp$4 = Object.defineProperty;
6438
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
6439
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
6440
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
6441
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6442
+ var __spreadValues$4 = (a, b) => {
6434
6443
  for (var prop in b || (b = {}))
6435
- if (__hasOwnProp$3.call(b, prop))
6436
- __defNormalProp$3(a, prop, b[prop]);
6437
- if (__getOwnPropSymbols$3)
6438
- for (var prop of __getOwnPropSymbols$3(b)) {
6439
- if (__propIsEnum$3.call(b, prop))
6440
- __defNormalProp$3(a, prop, b[prop]);
6444
+ if (__hasOwnProp$4.call(b, prop))
6445
+ __defNormalProp$4(a, prop, b[prop]);
6446
+ if (__getOwnPropSymbols$4)
6447
+ for (var prop of __getOwnPropSymbols$4(b)) {
6448
+ if (__propIsEnum$4.call(b, prop))
6449
+ __defNormalProp$4(a, prop, b[prop]);
6441
6450
  }
6442
6451
  return a;
6443
6452
  };
6444
- var __objRest$3 = (source, exclude) => {
6453
+ var __objRest$4 = (source, exclude) => {
6445
6454
  var target = {};
6446
6455
  for (var prop in source)
6447
- if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0)
6456
+ if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
6448
6457
  target[prop] = source[prop];
6449
- if (source != null && __getOwnPropSymbols$3)
6450
- for (var prop of __getOwnPropSymbols$3(source)) {
6451
- if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop))
6458
+ if (source != null && __getOwnPropSymbols$4)
6459
+ for (var prop of __getOwnPropSymbols$4(source)) {
6460
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
6452
6461
  target[prop] = source[prop];
6453
6462
  }
6454
6463
  return target;
@@ -6459,7 +6468,7 @@ function AntdPopover(props) {
6459
6468
  popoverScopeClassName,
6460
6469
  contentText,
6461
6470
  content
6462
- } = _a, rest = __objRest$3(_a, [
6471
+ } = _a, rest = __objRest$4(_a, [
6463
6472
  "overlayClassName",
6464
6473
  "popoverScopeClassName",
6465
6474
  "contentText",
@@ -6467,7 +6476,7 @@ function AntdPopover(props) {
6467
6476
  ]);
6468
6477
  return /* @__PURE__ */ React.createElement(
6469
6478
  Popover,
6470
- __spreadValues$3({
6479
+ __spreadValues$4({
6471
6480
  content: content || contentText,
6472
6481
  overlayClassName: `${overlayClassName} ${popoverScopeClassName}`
6473
6482
  }, rest)
@@ -6599,33 +6608,33 @@ function registerPopover(loader) {
6599
6608
  });
6600
6609
  }
6601
6610
 
6602
- var __defProp$2 = Object.defineProperty;
6603
- var __defProps = Object.defineProperties;
6604
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6605
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
6606
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
6607
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
6608
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6609
- var __spreadValues$2 = (a, b) => {
6611
+ var __defProp$3 = Object.defineProperty;
6612
+ var __defProps$1 = Object.defineProperties;
6613
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
6614
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
6615
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
6616
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
6617
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6618
+ var __spreadValues$3 = (a, b) => {
6610
6619
  for (var prop in b || (b = {}))
6611
- if (__hasOwnProp$2.call(b, prop))
6612
- __defNormalProp$2(a, prop, b[prop]);
6613
- if (__getOwnPropSymbols$2)
6614
- for (var prop of __getOwnPropSymbols$2(b)) {
6615
- if (__propIsEnum$2.call(b, prop))
6616
- __defNormalProp$2(a, prop, b[prop]);
6620
+ if (__hasOwnProp$3.call(b, prop))
6621
+ __defNormalProp$3(a, prop, b[prop]);
6622
+ if (__getOwnPropSymbols$3)
6623
+ for (var prop of __getOwnPropSymbols$3(b)) {
6624
+ if (__propIsEnum$3.call(b, prop))
6625
+ __defNormalProp$3(a, prop, b[prop]);
6617
6626
  }
6618
6627
  return a;
6619
6628
  };
6620
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6621
- var __objRest$2 = (source, exclude) => {
6629
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
6630
+ var __objRest$3 = (source, exclude) => {
6622
6631
  var target = {};
6623
6632
  for (var prop in source)
6624
- if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
6633
+ if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0)
6625
6634
  target[prop] = source[prop];
6626
- if (source != null && __getOwnPropSymbols$2)
6627
- for (var prop of __getOwnPropSymbols$2(source)) {
6628
- if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
6635
+ if (source != null && __getOwnPropSymbols$3)
6636
+ for (var prop of __getOwnPropSymbols$3(source)) {
6637
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop))
6629
6638
  target[prop] = source[prop];
6630
6639
  }
6631
6640
  return target;
@@ -6660,7 +6669,7 @@ function AntdTabs(props) {
6660
6669
  tabPosition,
6661
6670
  tabsScopeClassName,
6662
6671
  tabsDropdownScopeClassName
6663
- } = _a, rest = __objRest$2(_a, [
6672
+ } = _a, rest = __objRest$3(_a, [
6664
6673
  "items",
6665
6674
  "animated",
6666
6675
  "animateTabBar",
@@ -6690,7 +6699,7 @@ function AntdTabs(props) {
6690
6699
  if (!React.isValidElement(currentItem) || !React.isValidElement(currentItem.props.children)) {
6691
6700
  return null;
6692
6701
  }
6693
- return __spreadProps(__spreadValues$2({}, currentItem.props), {
6702
+ return __spreadProps$1(__spreadValues$3({}, currentItem.props), {
6694
6703
  key: currentItem.key,
6695
6704
  children: /* @__PURE__ */ React.createElement(React.Fragment, null, currentItem.props.children)
6696
6705
  });
@@ -6698,7 +6707,7 @@ function AntdTabs(props) {
6698
6707
  }, [itemsRaw]);
6699
6708
  return /* @__PURE__ */ React.createElement(
6700
6709
  Tabs,
6701
- __spreadValues$2({
6710
+ __spreadValues$3({
6702
6711
  className: `${className} ${tabsScopeClassName}`,
6703
6712
  popupClassName: tabsDropdownScopeClassName,
6704
6713
  tabBarExtraContent: {
@@ -6717,7 +6726,7 @@ function AntdTabs(props) {
6717
6726
  },
6718
6727
  /* @__PURE__ */ React.createElement(
6719
6728
  DefaultTabBar,
6720
- __spreadProps(__spreadValues$2({}, props2), {
6729
+ __spreadProps$1(__spreadValues$3({}, props2), {
6721
6730
  style: { backgroundColor: tabBarBackground }
6722
6731
  })
6723
6732
  )
@@ -6783,7 +6792,7 @@ function registerTabs(loader) {
6783
6792
  options: ["line", "card"],
6784
6793
  description: "Basic style of tabs"
6785
6794
  },
6786
- items: __spreadProps(__spreadValues$2({
6795
+ items: __spreadProps$1(__spreadValues$3({
6787
6796
  type: "slot",
6788
6797
  hidePlaceholder: true,
6789
6798
  allowedComponents: [tabItemComponentName]
@@ -7042,36 +7051,36 @@ function registerTabs(loader) {
7042
7051
  });
7043
7052
  }
7044
7053
 
7045
- var __defProp$1 = Object.defineProperty;
7046
- var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
7047
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
7048
- var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
7049
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7050
- var __spreadValues$1 = (a, b) => {
7054
+ var __defProp$2 = Object.defineProperty;
7055
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
7056
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
7057
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
7058
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7059
+ var __spreadValues$2 = (a, b) => {
7051
7060
  for (var prop in b || (b = {}))
7052
- if (__hasOwnProp$1.call(b, prop))
7053
- __defNormalProp$1(a, prop, b[prop]);
7054
- if (__getOwnPropSymbols$1)
7055
- for (var prop of __getOwnPropSymbols$1(b)) {
7056
- if (__propIsEnum$1.call(b, prop))
7057
- __defNormalProp$1(a, prop, b[prop]);
7061
+ if (__hasOwnProp$2.call(b, prop))
7062
+ __defNormalProp$2(a, prop, b[prop]);
7063
+ if (__getOwnPropSymbols$2)
7064
+ for (var prop of __getOwnPropSymbols$2(b)) {
7065
+ if (__propIsEnum$2.call(b, prop))
7066
+ __defNormalProp$2(a, prop, b[prop]);
7058
7067
  }
7059
7068
  return a;
7060
7069
  };
7061
- var __objRest$1 = (source, exclude) => {
7070
+ var __objRest$2 = (source, exclude) => {
7062
7071
  var target = {};
7063
7072
  for (var prop in source)
7064
- if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
7073
+ if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
7065
7074
  target[prop] = source[prop];
7066
- if (source != null && __getOwnPropSymbols$1)
7067
- for (var prop of __getOwnPropSymbols$1(source)) {
7068
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
7075
+ if (source != null && __getOwnPropSymbols$2)
7076
+ for (var prop of __getOwnPropSymbols$2(source)) {
7077
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
7069
7078
  target[prop] = source[prop];
7070
7079
  }
7071
7080
  return target;
7072
7081
  };
7073
7082
  function AntdRate(props) {
7074
- const _a = props, { character, count, tooltips, multiCharacter, symbols } = _a, rest = __objRest$1(_a, ["character", "count", "tooltips", "multiCharacter", "symbols"]);
7083
+ const _a = props, { character, count, tooltips, multiCharacter, symbols } = _a, rest = __objRest$2(_a, ["character", "count", "tooltips", "multiCharacter", "symbols"]);
7075
7084
  const symbolsProp = useMemo(
7076
7085
  () => {
7077
7086
  var _a2, _b, _c;
@@ -7091,7 +7100,7 @@ function AntdRate(props) {
7091
7100
  }, [character, multiCharacter, symbolsProp]);
7092
7101
  return /* @__PURE__ */ React.createElement(
7093
7102
  Rate,
7094
- __spreadValues$1({
7103
+ __spreadValues$2({
7095
7104
  tooltips: tooltips == null ? void 0 : tooltips.map((t) => t == null ? void 0 : t.label),
7096
7105
  count: countProp,
7097
7106
  character: characterProp
@@ -7225,30 +7234,30 @@ function registerRate(loader) {
7225
7234
  });
7226
7235
  }
7227
7236
 
7228
- var __defProp = Object.defineProperty;
7229
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
7230
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7231
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7232
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7233
- var __spreadValues = (a, b) => {
7237
+ var __defProp$1 = Object.defineProperty;
7238
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
7239
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
7240
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
7241
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7242
+ var __spreadValues$1 = (a, b) => {
7234
7243
  for (var prop in b || (b = {}))
7235
- if (__hasOwnProp.call(b, prop))
7236
- __defNormalProp(a, prop, b[prop]);
7237
- if (__getOwnPropSymbols)
7238
- for (var prop of __getOwnPropSymbols(b)) {
7239
- if (__propIsEnum.call(b, prop))
7240
- __defNormalProp(a, prop, b[prop]);
7244
+ if (__hasOwnProp$1.call(b, prop))
7245
+ __defNormalProp$1(a, prop, b[prop]);
7246
+ if (__getOwnPropSymbols$1)
7247
+ for (var prop of __getOwnPropSymbols$1(b)) {
7248
+ if (__propIsEnum$1.call(b, prop))
7249
+ __defNormalProp$1(a, prop, b[prop]);
7241
7250
  }
7242
7251
  return a;
7243
7252
  };
7244
- var __objRest = (source, exclude) => {
7253
+ var __objRest$1 = (source, exclude) => {
7245
7254
  var target = {};
7246
7255
  for (var prop in source)
7247
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
7256
+ if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
7248
7257
  target[prop] = source[prop];
7249
- if (source != null && __getOwnPropSymbols)
7250
- for (var prop of __getOwnPropSymbols(source)) {
7251
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
7258
+ if (source != null && __getOwnPropSymbols$1)
7259
+ for (var prop of __getOwnPropSymbols$1(source)) {
7260
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
7252
7261
  target[prop] = source[prop];
7253
7262
  }
7254
7263
  return target;
@@ -7304,7 +7313,7 @@ function AntdRangeSlider(props) {
7304
7313
  valueMax,
7305
7314
  defaultValueMin,
7306
7315
  defaultValueMax
7307
- } = _a, rest = __objRest(_a, [
7316
+ } = _a, rest = __objRest$1(_a, [
7308
7317
  "marks",
7309
7318
  "stylableMarks",
7310
7319
  "sliderScopeClassName",
@@ -7328,7 +7337,7 @@ function AntdRangeSlider(props) {
7328
7337
  });
7329
7338
  return /* @__PURE__ */ React.createElement(
7330
7339
  Slider,
7331
- __spreadValues({
7340
+ __spreadValues$1({
7332
7341
  value: [valueMin || 0, valueMax || 0],
7333
7342
  defaultValue: [defaultValueMin || 0, defaultValueMax || 0],
7334
7343
  range: { draggableTrack },
@@ -7348,7 +7357,7 @@ function AntdSingleSlider(props) {
7348
7357
  tooltipPlacement,
7349
7358
  tooltipPrefix,
7350
7359
  tooltipSuffix
7351
- } = _a, rest = __objRest(_a, [
7360
+ } = _a, rest = __objRest$1(_a, [
7352
7361
  "marks",
7353
7362
  "stylableMarks",
7354
7363
  "sliderScopeClassName",
@@ -7367,7 +7376,7 @@ function AntdSingleSlider(props) {
7367
7376
  });
7368
7377
  return /* @__PURE__ */ React.createElement(
7369
7378
  Slider,
7370
- __spreadValues({
7379
+ __spreadValues$1({
7371
7380
  className: `${sliderScopeClassName} ${className}`,
7372
7381
  tooltip: tooltipProp,
7373
7382
  marks: marksProp
@@ -7617,7 +7626,7 @@ function registerSlider(loader) {
7617
7626
  defaultStyles: {
7618
7627
  width: "300px"
7619
7628
  },
7620
- props: __spreadValues({
7629
+ props: __spreadValues$1({
7621
7630
  value: {
7622
7631
  type: "number",
7623
7632
  editOnly: true,
@@ -7652,7 +7661,7 @@ function registerSlider(loader) {
7652
7661
  defaultStyles: {
7653
7662
  width: "300px"
7654
7663
  },
7655
- props: __spreadValues({
7664
+ props: __spreadValues$1({
7656
7665
  draggableTrack: {
7657
7666
  type: "boolean",
7658
7667
  defaultValueHint: false,
@@ -7682,13 +7691,13 @@ function registerSlider(loader) {
7682
7691
  }
7683
7692
  }, commonProps),
7684
7693
  states: {
7685
- min: __spreadValues({
7694
+ min: __spreadValues$1({
7686
7695
  type: "writable",
7687
7696
  valueProp: "valueMin",
7688
7697
  onChangeProp: "onChange",
7689
7698
  variableType: "number"
7690
7699
  }, rangeSliderHelpers.states.min),
7691
- max: __spreadValues({
7700
+ max: __spreadValues$1({
7692
7701
  type: "writable",
7693
7702
  valueProp: "valueMax",
7694
7703
  onChangeProp: "onChange",
@@ -7722,6 +7731,404 @@ function registerSlider(loader) {
7722
7731
  });
7723
7732
  }
7724
7733
 
7734
+ var __defProp = Object.defineProperty;
7735
+ var __defProps = Object.defineProperties;
7736
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7737
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
7738
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7739
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7740
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7741
+ var __spreadValues = (a, b) => {
7742
+ for (var prop in b || (b = {}))
7743
+ if (__hasOwnProp.call(b, prop))
7744
+ __defNormalProp(a, prop, b[prop]);
7745
+ if (__getOwnPropSymbols)
7746
+ for (var prop of __getOwnPropSymbols(b)) {
7747
+ if (__propIsEnum.call(b, prop))
7748
+ __defNormalProp(a, prop, b[prop]);
7749
+ }
7750
+ return a;
7751
+ };
7752
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7753
+ var __objRest = (source, exclude) => {
7754
+ var target = {};
7755
+ for (var prop in source)
7756
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
7757
+ target[prop] = source[prop];
7758
+ if (source != null && __getOwnPropSymbols)
7759
+ for (var prop of __getOwnPropSymbols(source)) {
7760
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
7761
+ target[prop] = source[prop];
7762
+ }
7763
+ return target;
7764
+ };
7765
+ const { RangePicker } = DatePicker;
7766
+ function getDayjsRange(dateRange) {
7767
+ return Array.isArray(dateRange) ? [
7768
+ dateRange[0] ? dayjs(dateRange[0]) : null,
7769
+ dateRange[1] ? dayjs(dateRange[1]) : null
7770
+ ] : [null, null];
7771
+ }
7772
+ function getStrRange(dateRange) {
7773
+ return Array.isArray(dateRange) ? dateRange.map(
7774
+ (date) => date && !(typeof date === "string") && "toISOString" in date ? date.toISOString() : date === null ? void 0 : date
7775
+ ) : void 0;
7776
+ }
7777
+ function AntdDateRangePicker(props) {
7778
+ const _a = props, {
7779
+ defaultStartDate,
7780
+ defaultEndDate,
7781
+ startDate,
7782
+ endDate,
7783
+ allowEmpty,
7784
+ allowEmptyEndDate,
7785
+ allowEmptyStartDate,
7786
+ disabled,
7787
+ renderExtraFooter,
7788
+ disableStartDate,
7789
+ disableEndDate,
7790
+ presets,
7791
+ picker,
7792
+ placeholder,
7793
+ onChange,
7794
+ popupScopeClassName,
7795
+ className
7796
+ } = _a, rest = __objRest(_a, [
7797
+ "defaultStartDate",
7798
+ "defaultEndDate",
7799
+ "startDate",
7800
+ "endDate",
7801
+ "allowEmpty",
7802
+ "allowEmptyEndDate",
7803
+ "allowEmptyStartDate",
7804
+ "disabled",
7805
+ "renderExtraFooter",
7806
+ "disableStartDate",
7807
+ "disableEndDate",
7808
+ "presets",
7809
+ "picker",
7810
+ "placeholder",
7811
+ "onChange",
7812
+ "popupScopeClassName",
7813
+ "className"
7814
+ ]);
7815
+ const popupScopeClassNameSelector = popupScopeClassName ? `.${popupScopeClassName}` : "";
7816
+ const css = `
7817
+ @media(max-width: 900px) {
7818
+ .ant-picker-panels{
7819
+ flex-direction: column;
7820
+ }
7821
+ }
7822
+
7823
+ @media(max-width: 500px) {
7824
+ ${popupScopeClassNameSelector}.ant-picker-dropdown {
7825
+ top: 20px !important;
7826
+ left: 10px !important;
7827
+ right: 10px !important;
7828
+ max-height: 95vh;
7829
+ position: fixed;
7830
+ overflow-y: scroll;
7831
+ max-width: 100vw;
7832
+ }
7833
+
7834
+ ${popupScopeClassNameSelector} .ant-picker-panel-container {
7835
+ min-width: 300px;
7836
+ }
7837
+
7838
+ ${popupScopeClassNameSelector} .ant-picker-datetime-panel {
7839
+ flex-direction: column;
7840
+ }
7841
+
7842
+ .${className} .ant-picker-input > input {
7843
+ font-size: 16px !important;
7844
+ }
7845
+
7846
+ ${popupScopeClassNameSelector} .ant-picker-header-view {
7847
+ line-height: unset !important;
7848
+ }
7849
+
7850
+ ${popupScopeClassNameSelector} .ant-picker-content {
7851
+ height: unset !important;
7852
+ }
7853
+
7854
+ ${popupScopeClassNameSelector} .ant-picker-time-panel-column {
7855
+ height: 100px;
7856
+ }
7857
+
7858
+ ${popupScopeClassNameSelector} .ant-picker-range-arrow {
7859
+ display: none;
7860
+ }
7861
+ }
7862
+ `;
7863
+ const presetsDayjs = useMemo(
7864
+ () => presets == null ? void 0 : presets.map((p) => __spreadProps(__spreadValues({}, p), { value: getDayjsRange([p.startDate, p.endDate]) })).filter((p) => {
7865
+ var _a2, _b;
7866
+ return ((_a2 = p.value[0]) == null ? void 0 : _a2.isValid()) && ((_b = p.value[1]) == null ? void 0 : _b.isValid());
7867
+ }),
7868
+ [presets]
7869
+ );
7870
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
7871
+ RangePicker,
7872
+ __spreadProps(__spreadValues({}, rest), {
7873
+ picker,
7874
+ presets: presetsDayjs,
7875
+ allowEmpty: allowEmpty ? [allowEmpty, allowEmpty] : [allowEmptyStartDate, allowEmptyEndDate],
7876
+ value: getDayjsRange([startDate, endDate]),
7877
+ defaultValue: getDayjsRange([defaultStartDate, defaultEndDate]),
7878
+ renderExtraFooter: renderExtraFooter ? () => renderExtraFooter : void 0,
7879
+ className,
7880
+ inputReadOnly: true,
7881
+ disabled: disabled ? disabled : [disableStartDate, disableEndDate],
7882
+ placeholder: placeholder == null ? void 0 : placeholder.split(/,\s*/).slice(0, 2),
7883
+ popupClassName: popupScopeClassName,
7884
+ onChange: (values, _dateStrings) => {
7885
+ onChange == null ? void 0 : onChange(getStrRange(values) || [null, null]);
7886
+ }
7887
+ })
7888
+ ), /* @__PURE__ */ React.createElement("style", { dangerouslySetInnerHTML: { __html: css } }));
7889
+ }
7890
+ const dateRangePickerComponentName = "plasmic-antd5-date-range-picker";
7891
+ const dateRangePickerHelpers = {
7892
+ states: {
7893
+ startDate: {
7894
+ onChangeArgsToValue: (value) => value[0]
7895
+ },
7896
+ endDate: {
7897
+ onChangeArgsToValue: (value) => value[1]
7898
+ }
7899
+ }
7900
+ };
7901
+ function registerDateRangePicker(loader) {
7902
+ registerComponentHelper(loader, AntdDateRangePicker, {
7903
+ name: dateRangePickerComponentName,
7904
+ displayName: "Date Range Picker",
7905
+ props: {
7906
+ startDate: {
7907
+ type: "dateString",
7908
+ editOnly: true,
7909
+ uncontrolledProp: "defaultStartDate",
7910
+ description: "The default start date as ISO strings",
7911
+ // TODO: Can there be a default validator attached to each prop type, so dynamic values can be checked?
7912
+ hidden: (ps) => !!ps.__plasmicFormField
7913
+ },
7914
+ endDate: {
7915
+ type: "dateString",
7916
+ editOnly: true,
7917
+ uncontrolledProp: "defaultEndDate",
7918
+ description: "The default end date as ISO strings",
7919
+ // TODO: Can there be a default validator attached to each prop type, so dynamic values can be checked?
7920
+ hidden: (ps) => !!ps.__plasmicFormField
7921
+ },
7922
+ allowClear: {
7923
+ type: "boolean",
7924
+ advanced: true,
7925
+ defaultValueHint: true,
7926
+ description: "Whether to show the clear button"
7927
+ },
7928
+ autoFocus: {
7929
+ type: "boolean",
7930
+ description: "Focus when component is rendered",
7931
+ defaultValueHint: false,
7932
+ advanced: true
7933
+ },
7934
+ bordered: {
7935
+ type: "boolean",
7936
+ advanced: true,
7937
+ defaultValueHint: true
7938
+ },
7939
+ changeOnBlur: {
7940
+ type: "boolean",
7941
+ advanced: true,
7942
+ description: "Trigger change when blur. e.g. datetime picker no need click confirm button",
7943
+ defaultValueHint: false,
7944
+ hidden: (ps) => !ps.showTime
7945
+ },
7946
+ disabled: {
7947
+ type: "boolean",
7948
+ description: "Disable date range inputs",
7949
+ defaultValueHint: false
7950
+ },
7951
+ disableStartDate: {
7952
+ type: "boolean",
7953
+ defaultValueHint: false,
7954
+ advanced: true,
7955
+ description: "Disable start date input only",
7956
+ hidden: (ps) => ps.disabled
7957
+ },
7958
+ disableEndDate: {
7959
+ type: "boolean",
7960
+ defaultValueHint: false,
7961
+ advanced: true,
7962
+ description: "Disable end date input only",
7963
+ hidden: (ps) => ps.disabled
7964
+ },
7965
+ picker: {
7966
+ type: "choice",
7967
+ options: ["date", "week", "month", "quarter", "year"].map((value) => ({
7968
+ value,
7969
+ label: capitalize(value)
7970
+ })),
7971
+ defaultValueHint: "date"
7972
+ },
7973
+ placeholder: {
7974
+ type: "string",
7975
+ advanced: true,
7976
+ defaultValueHint: "Start date, End date",
7977
+ description: "The placeholders of the start and end date inputs, separated by a comma"
7978
+ },
7979
+ placement: {
7980
+ type: "choice",
7981
+ options: ["bottomLeft", "bottomRight", "topLeft", "topRight"].map(
7982
+ (value) => ({
7983
+ value,
7984
+ label: kebabCase(value)
7985
+ })
7986
+ ),
7987
+ advanced: true,
7988
+ defaultValueHint: "bottom-left",
7989
+ description: "The position where the selection box pops up"
7990
+ },
7991
+ presets: {
7992
+ type: "array",
7993
+ advanced: true,
7994
+ description: "The preset ranges for quick selection",
7995
+ itemType: {
7996
+ type: "object",
7997
+ nameFunc: (item) => item.label,
7998
+ fields: {
7999
+ label: "string",
8000
+ startDate: {
8001
+ type: "dateString"
8002
+ },
8003
+ endDate: {
8004
+ type: "dateString"
8005
+ }
8006
+ }
8007
+ }
8008
+ },
8009
+ size: {
8010
+ type: "choice",
8011
+ advanced: true,
8012
+ options: ["small", "middle", "large"].map((value) => ({
8013
+ value,
8014
+ label: capitalize(value)
8015
+ })),
8016
+ defaultValueHint: "middle"
8017
+ },
8018
+ status: {
8019
+ type: "choice",
8020
+ advanced: true,
8021
+ options: ["error", "warning"].map((value) => ({
8022
+ value,
8023
+ label: capitalize(value)
8024
+ })),
8025
+ description: "Set validation status"
8026
+ },
8027
+ allowEmpty: {
8028
+ type: "boolean",
8029
+ advanced: true,
8030
+ description: "Allow leaving start or end input empty",
8031
+ defaultValueHint: false
8032
+ },
8033
+ allowEmptyStartDate: {
8034
+ type: "boolean",
8035
+ advanced: true,
8036
+ description: "Allow leaving start input empty",
8037
+ defaultValueHint: false,
8038
+ hidden: (ps) => ps.allowEmpty
8039
+ },
8040
+ allowEmptyEndDate: {
8041
+ type: "boolean",
8042
+ advanced: true,
8043
+ description: "Allow leaving end input empty",
8044
+ defaultValueHint: false,
8045
+ hidden: (ps) => ps.allowEmpty
8046
+ },
8047
+ renderExtraFooter: {
8048
+ type: "slot",
8049
+ displayName: "Extra footer",
8050
+ hidePlaceholder: true
8051
+ },
8052
+ showTime: {
8053
+ type: "boolean",
8054
+ description: "Enable time selection",
8055
+ defaultValueHint: false,
8056
+ hidden: (ps) => ps.picker !== void 0 && ps.picker !== "date"
8057
+ },
8058
+ popupScopeClassName: {
8059
+ type: "styleScopeClass",
8060
+ scopeName: "dateRangePickerPopup"
8061
+ },
8062
+ popupClassName: {
8063
+ type: "class",
8064
+ displayName: "Popup container",
8065
+ selectors: [
8066
+ {
8067
+ selector: ":dateRangePickerPopup .ant-picker-panel-container",
8068
+ label: "Base"
8069
+ }
8070
+ ]
8071
+ },
8072
+ popupHeaderClassName: {
8073
+ type: "class",
8074
+ displayName: "Popup header",
8075
+ selectors: [
8076
+ {
8077
+ selector: ":dateRangePickerPopup .ant-picker-header",
8078
+ label: "Base"
8079
+ }
8080
+ ]
8081
+ },
8082
+ popupBodyClassName: {
8083
+ type: "class",
8084
+ displayName: "Popup body",
8085
+ selectors: [
8086
+ {
8087
+ selector: ":dateRangePickerPopup .ant-picker-body",
8088
+ label: "Base"
8089
+ }
8090
+ ]
8091
+ },
8092
+ popupFooterClassName: {
8093
+ type: "class",
8094
+ displayName: "Popup footer",
8095
+ selectors: [
8096
+ {
8097
+ selector: ":dateRangePickerPopup .ant-picker-footer",
8098
+ label: "Base"
8099
+ }
8100
+ ]
8101
+ },
8102
+ onChange: {
8103
+ type: "eventHandler",
8104
+ advanced: true,
8105
+ argTypes: [{ name: "value", type: "object" }]
8106
+ }
8107
+ },
8108
+ states: {
8109
+ startDate: __spreadValues({
8110
+ type: "writable",
8111
+ valueProp: "startDate",
8112
+ onChangeProp: "onChange",
8113
+ variableType: "text"
8114
+ }, dateRangePickerHelpers.states.startDate),
8115
+ endDate: __spreadValues({
8116
+ type: "writable",
8117
+ valueProp: "endDate",
8118
+ onChangeProp: "onChange",
8119
+ variableType: "text"
8120
+ }, dateRangePickerHelpers.states.endDate)
8121
+ },
8122
+ componentHelpers: {
8123
+ helpers: dateRangePickerHelpers,
8124
+ importName: "dateRangePickerHelpers",
8125
+ importPath: "@plasmicpkgs/antd5/skinny/registerDateRangePicker"
8126
+ },
8127
+ importPath: "@plasmicpkgs/antd5/skinny/registerDateRangePicker",
8128
+ importName: "AntdDateRangePicker"
8129
+ });
8130
+ }
8131
+
7725
8132
  function registerAll(loader) {
7726
8133
  registerConfigProvider(loader);
7727
8134
  registerTokens(loader);
@@ -7743,6 +8150,7 @@ function registerAll(loader) {
7743
8150
  registerTextArea(loader);
7744
8151
  registerNumberInput(loader);
7745
8152
  registerDatePicker(loader);
8153
+ registerDateRangePicker(loader);
7746
8154
  registerUpload(loader);
7747
8155
  registerColorPicker(loader);
7748
8156
  registerDrawer(loader);