@plasmicpkgs/antd5 0.0.27 → 0.0.28

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
@@ -24,6 +24,8 @@ import RadioGroup from 'antd/es/radio/group';
24
24
  import 'antd/es/radio/radioButton';
25
25
  import Select from 'antd/es/select';
26
26
  import Table from 'antd/es/table';
27
+ import Input from 'antd/es/input';
28
+ import InputNumber from 'antd/es/input-number';
27
29
 
28
30
  function makeRegisterGlobalContext(component, meta) {
29
31
  return function(loader) {
@@ -154,33 +156,33 @@ function registerButton(loader) {
154
156
  });
155
157
  }
156
158
 
157
- var __defProp$7 = Object.defineProperty;
158
- var __defProps$6 = Object.defineProperties;
159
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
160
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
161
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
162
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
163
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
164
- var __spreadValues$7 = (a, b) => {
159
+ var __defProp$8 = Object.defineProperty;
160
+ var __defProps$7 = Object.defineProperties;
161
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
162
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
163
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
164
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
165
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
166
+ var __spreadValues$8 = (a, b) => {
165
167
  for (var prop in b || (b = {}))
166
- if (__hasOwnProp$7.call(b, prop))
167
- __defNormalProp$7(a, prop, b[prop]);
168
- if (__getOwnPropSymbols$7)
169
- for (var prop of __getOwnPropSymbols$7(b)) {
170
- if (__propIsEnum$7.call(b, prop))
171
- __defNormalProp$7(a, prop, b[prop]);
168
+ if (__hasOwnProp$8.call(b, prop))
169
+ __defNormalProp$8(a, prop, b[prop]);
170
+ if (__getOwnPropSymbols$8)
171
+ for (var prop of __getOwnPropSymbols$8(b)) {
172
+ if (__propIsEnum$8.call(b, prop))
173
+ __defNormalProp$8(a, prop, b[prop]);
172
174
  }
173
175
  return a;
174
176
  };
175
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
177
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
176
178
  var __objRest$6 = (source, exclude) => {
177
179
  var target = {};
178
180
  for (var prop in source)
179
- if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
181
+ if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
180
182
  target[prop] = source[prop];
181
- if (source != null && __getOwnPropSymbols$7)
182
- for (var prop of __getOwnPropSymbols$7(source)) {
183
- if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
183
+ if (source != null && __getOwnPropSymbols$8)
184
+ for (var prop of __getOwnPropSymbols$8(source)) {
185
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
184
186
  target[prop] = source[prop];
185
187
  }
186
188
  return target;
@@ -194,7 +196,7 @@ function AntdCheckbox(props) {
194
196
  return void 0;
195
197
  }
196
198
  }, [onChange]);
197
- return /* @__PURE__ */ React.createElement(Checkbox, __spreadProps$6(__spreadValues$7({}, rest), {
199
+ return /* @__PURE__ */ React.createElement(Checkbox, __spreadProps$7(__spreadValues$8({}, rest), {
198
200
  onChange: wrappedOnChange
199
201
  }));
200
202
  }
@@ -305,33 +307,33 @@ function registerCheckbox(loader) {
305
307
  });
306
308
  }
307
309
 
308
- var __defProp$6 = Object.defineProperty;
309
- var __defProps$5 = Object.defineProperties;
310
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
311
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
312
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
313
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
314
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
315
- var __spreadValues$6 = (a, b) => {
310
+ var __defProp$7 = Object.defineProperty;
311
+ var __defProps$6 = Object.defineProperties;
312
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
313
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
314
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
315
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
316
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
317
+ var __spreadValues$7 = (a, b) => {
316
318
  for (var prop in b || (b = {}))
317
- if (__hasOwnProp$6.call(b, prop))
318
- __defNormalProp$6(a, prop, b[prop]);
319
- if (__getOwnPropSymbols$6)
320
- for (var prop of __getOwnPropSymbols$6(b)) {
321
- if (__propIsEnum$6.call(b, prop))
322
- __defNormalProp$6(a, prop, b[prop]);
319
+ if (__hasOwnProp$7.call(b, prop))
320
+ __defNormalProp$7(a, prop, b[prop]);
321
+ if (__getOwnPropSymbols$7)
322
+ for (var prop of __getOwnPropSymbols$7(b)) {
323
+ if (__propIsEnum$7.call(b, prop))
324
+ __defNormalProp$7(a, prop, b[prop]);
323
325
  }
324
326
  return a;
325
327
  };
326
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
328
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
327
329
  var __objRest$5 = (source, exclude) => {
328
330
  var target = {};
329
331
  for (var prop in source)
330
- if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
332
+ if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
331
333
  target[prop] = source[prop];
332
- if (source != null && __getOwnPropSymbols$6)
333
- for (var prop of __getOwnPropSymbols$6(source)) {
334
- if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
334
+ if (source != null && __getOwnPropSymbols$7)
335
+ for (var prop of __getOwnPropSymbols$7(source)) {
336
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
335
337
  target[prop] = source[prop];
336
338
  }
337
339
  return target;
@@ -353,7 +355,7 @@ function themeToAntdConfig(opts) {
353
355
  wireframe,
354
356
  spacing
355
357
  } = opts;
356
- return __spreadProps$5(__spreadValues$6({}, spacing && { size: spacing }), {
358
+ return __spreadProps$6(__spreadValues$7({}, spacing && { size: spacing }), {
357
359
  theme: {
358
360
  token: Object.fromEntries(Object.entries({
359
361
  colorTextBase,
@@ -375,9 +377,9 @@ function themeToAntdConfig(opts) {
375
377
  }
376
378
  function AntdConfigProvider(props) {
377
379
  const _a = props, { children, themeStyles } = _a, rest = __objRest$5(_a, ["children", "themeStyles"]);
378
- return /* @__PURE__ */ React.createElement(ConfigProvider, __spreadValues$6({
380
+ return /* @__PURE__ */ React.createElement(ConfigProvider, __spreadValues$7({
379
381
  locale: enUS
380
- }, themeToAntdConfig(__spreadProps$5(__spreadValues$6({}, rest), {
382
+ }, themeToAntdConfig(__spreadProps$6(__spreadValues$7({}, rest), {
381
383
  fontFamily: themeStyles.fontFamily,
382
384
  fontSize: themeStyles.fontSize ? parseInt(themeStyles.fontSize) : void 0,
383
385
  lineHeight: themeStyles.lineHeight ? parseInt(themeStyles.lineHeight) : void 0,
@@ -398,7 +400,7 @@ function InnerConfigProvider(props) {
398
400
  showNotification: (opts) => {
399
401
  var _b;
400
402
  const _a = opts, rest = __objRest$5(_a, ["type"]);
401
- app.notification[(_b = opts.type) != null ? _b : "info"](__spreadValues$6({}, rest));
403
+ app.notification[(_b = opts.type) != null ? _b : "info"](__spreadValues$7({}, rest));
402
404
  },
403
405
  hideNotifications: () => {
404
406
  app.notification.destroy();
@@ -654,7 +656,7 @@ function registerTokens(loader) {
654
656
  regs.forEach((t) => registerToken(t));
655
657
  }
656
658
  }
657
- const registerConfigProvider = makeRegisterGlobalContext(AntdConfigProvider, __spreadProps$5(__spreadValues$6({
659
+ const registerConfigProvider = makeRegisterGlobalContext(AntdConfigProvider, __spreadProps$6(__spreadValues$7({
658
660
  name: "plasmic-antd5-config-provider",
659
661
  displayName: "Ant Design System Settings",
660
662
  props: {
@@ -759,40 +761,40 @@ const registerConfigProvider = makeRegisterGlobalContext(AntdConfigProvider, __s
759
761
  importName: "AntdConfigProvider"
760
762
  }));
761
763
 
762
- var __defProp$5 = Object.defineProperty;
763
- var __defProps$4 = Object.defineProperties;
764
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
765
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
766
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
767
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
768
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
769
- var __spreadValues$5 = (a, b) => {
764
+ var __defProp$6 = Object.defineProperty;
765
+ var __defProps$5 = Object.defineProperties;
766
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
767
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
768
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
769
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
770
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
771
+ var __spreadValues$6 = (a, b) => {
770
772
  for (var prop in b || (b = {}))
771
- if (__hasOwnProp$5.call(b, prop))
772
- __defNormalProp$5(a, prop, b[prop]);
773
- if (__getOwnPropSymbols$5)
774
- for (var prop of __getOwnPropSymbols$5(b)) {
775
- if (__propIsEnum$5.call(b, prop))
776
- __defNormalProp$5(a, prop, b[prop]);
773
+ if (__hasOwnProp$6.call(b, prop))
774
+ __defNormalProp$6(a, prop, b[prop]);
775
+ if (__getOwnPropSymbols$6)
776
+ for (var prop of __getOwnPropSymbols$6(b)) {
777
+ if (__propIsEnum$6.call(b, prop))
778
+ __defNormalProp$6(a, prop, b[prop]);
777
779
  }
778
780
  return a;
779
781
  };
780
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
782
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
781
783
  var __objRest$4 = (source, exclude) => {
782
784
  var target = {};
783
785
  for (var prop in source)
784
- if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
786
+ if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
785
787
  target[prop] = source[prop];
786
- if (source != null && __getOwnPropSymbols$5)
787
- for (var prop of __getOwnPropSymbols$5(source)) {
788
- if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop))
788
+ if (source != null && __getOwnPropSymbols$6)
789
+ for (var prop of __getOwnPropSymbols$6(source)) {
790
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
789
791
  target[prop] = source[prop];
790
792
  }
791
793
  return target;
792
794
  };
793
795
  function AntdDropdown(props) {
794
796
  const _a = props, { children, onAction, menuItems } = _a, rest = __objRest$4(_a, ["children", "onAction", "menuItems"]);
795
- return /* @__PURE__ */ React.createElement(Dropdown, __spreadProps$4(__spreadValues$5({}, rest), {
797
+ return /* @__PURE__ */ React.createElement(Dropdown, __spreadProps$5(__spreadValues$6({}, rest), {
796
798
  overlay: () => {
797
799
  var _a2;
798
800
  const items = (_a2 = menuItems == null ? void 0 : menuItems()) != null ? _a2 : [];
@@ -896,25 +898,25 @@ function registerDropdown(loader) {
896
898
  });
897
899
  }
898
900
 
899
- var __defProp$4 = Object.defineProperty;
900
- var __defProps$3 = Object.defineProperties;
901
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
902
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
903
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
904
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
905
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
906
- var __spreadValues$4 = (a, b) => {
901
+ var __defProp$5 = Object.defineProperty;
902
+ var __defProps$4 = Object.defineProperties;
903
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
904
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
905
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
906
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
907
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
908
+ var __spreadValues$5 = (a, b) => {
907
909
  for (var prop in b || (b = {}))
908
- if (__hasOwnProp$4.call(b, prop))
909
- __defNormalProp$4(a, prop, b[prop]);
910
- if (__getOwnPropSymbols$4)
911
- for (var prop of __getOwnPropSymbols$4(b)) {
912
- if (__propIsEnum$4.call(b, prop))
913
- __defNormalProp$4(a, prop, b[prop]);
910
+ if (__hasOwnProp$5.call(b, prop))
911
+ __defNormalProp$5(a, prop, b[prop]);
912
+ if (__getOwnPropSymbols$5)
913
+ for (var prop of __getOwnPropSymbols$5(b)) {
914
+ if (__propIsEnum$5.call(b, prop))
915
+ __defNormalProp$5(a, prop, b[prop]);
914
916
  }
915
917
  return a;
916
918
  };
917
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
919
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
918
920
  const PathContext = React.createContext({ relativePath: [], fullPath: [] });
919
921
  const InternalFormInstanceContext = React.createContext(void 0);
920
922
  const Internal = (props) => {
@@ -938,7 +940,7 @@ const Internal = (props) => {
938
940
  fireOnValuesChange,
939
941
  forceRemount: () => props.setRemountKey((k) => k + 1)
940
942
  }
941
- }, /* @__PURE__ */ React.createElement(Form, __spreadProps$3(__spreadValues$4({}, props), {
943
+ }, /* @__PURE__ */ React.createElement(Form, __spreadProps$4(__spreadValues$5({}, props), {
942
944
  onValuesChange: (...args) => {
943
945
  var _a, _b;
944
946
  (_a = props.onValuesChange) == null ? void 0 : _a.call(props, ...args);
@@ -949,7 +951,7 @@ const Internal = (props) => {
949
951
  };
950
952
  function FormWrapper(props) {
951
953
  const [remountKey, setRemountKey] = React.useState(0);
952
- return /* @__PURE__ */ React.createElement(Internal, __spreadProps$3(__spreadValues$4({
954
+ return /* @__PURE__ */ React.createElement(Internal, __spreadProps$4(__spreadValues$5({
953
955
  key: remountKey
954
956
  }, props), {
955
957
  setRemountKey
@@ -1164,7 +1166,7 @@ function FormItemWrapper(props) {
1164
1166
  fireOnValuesChange == null ? void 0 : fireOnValuesChange();
1165
1167
  }, [props.initialValue, fullFormItemName]);
1166
1168
  }
1167
- return /* @__PURE__ */ React.createElement(FormItem, __spreadProps$3(__spreadValues$4({}, omit(props, "rules")), {
1169
+ return /* @__PURE__ */ React.createElement(FormItem, __spreadProps$4(__spreadValues$5({}, omit(props, "rules")), {
1168
1170
  name: relativeFormItemName,
1169
1171
  rules
1170
1172
  }));
@@ -1185,8 +1187,8 @@ function registerFormItem(loader) {
1185
1187
  children: {
1186
1188
  type: "slot",
1187
1189
  defaultValue: {
1188
- type: "default-component",
1189
- kind: "text-input"
1190
+ type: "component",
1191
+ name: "plasmic-antd5-input"
1190
1192
  }
1191
1193
  },
1192
1194
  name: {
@@ -1292,7 +1294,7 @@ const FormListWrapper = React.forwardRef(function FormListWrapper2(props, ref) {
1292
1294
  }
1293
1295
  }, [props.initialValue, fullFormItemName]);
1294
1296
  }
1295
- return /* @__PURE__ */ React.createElement(FormList, __spreadProps$3(__spreadValues$4({}, props), {
1297
+ return /* @__PURE__ */ React.createElement(FormList, __spreadProps$4(__spreadValues$5({}, props), {
1296
1298
  name: relativeFormItemName != null ? relativeFormItemName : []
1297
1299
  }), (...args) => {
1298
1300
  operationsRef.current = args;
@@ -1587,33 +1589,33 @@ function registerMenu(loader) {
1587
1589
  });
1588
1590
  }
1589
1591
 
1590
- var __defProp$3 = Object.defineProperty;
1591
- var __defProps$2 = Object.defineProperties;
1592
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
1593
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
1594
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
1595
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
1596
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1597
- var __spreadValues$3 = (a, b) => {
1592
+ var __defProp$4 = Object.defineProperty;
1593
+ var __defProps$3 = Object.defineProperties;
1594
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
1595
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
1596
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
1597
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
1598
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1599
+ var __spreadValues$4 = (a, b) => {
1598
1600
  for (var prop in b || (b = {}))
1599
- if (__hasOwnProp$3.call(b, prop))
1600
- __defNormalProp$3(a, prop, b[prop]);
1601
- if (__getOwnPropSymbols$3)
1602
- for (var prop of __getOwnPropSymbols$3(b)) {
1603
- if (__propIsEnum$3.call(b, prop))
1604
- __defNormalProp$3(a, prop, b[prop]);
1601
+ if (__hasOwnProp$4.call(b, prop))
1602
+ __defNormalProp$4(a, prop, b[prop]);
1603
+ if (__getOwnPropSymbols$4)
1604
+ for (var prop of __getOwnPropSymbols$4(b)) {
1605
+ if (__propIsEnum$4.call(b, prop))
1606
+ __defNormalProp$4(a, prop, b[prop]);
1605
1607
  }
1606
1608
  return a;
1607
1609
  };
1608
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
1610
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
1609
1611
  var __objRest$3 = (source, exclude) => {
1610
1612
  var target = {};
1611
1613
  for (var prop in source)
1612
- if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0)
1614
+ if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
1613
1615
  target[prop] = source[prop];
1614
- if (source != null && __getOwnPropSymbols$3)
1615
- for (var prop of __getOwnPropSymbols$3(source)) {
1616
- if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop))
1616
+ if (source != null && __getOwnPropSymbols$4)
1617
+ for (var prop of __getOwnPropSymbols$4(source)) {
1618
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
1617
1619
  target[prop] = source[prop];
1618
1620
  }
1619
1621
  return target;
@@ -1640,7 +1642,7 @@ function AntdModal(props) {
1640
1642
  return void 0;
1641
1643
  }
1642
1644
  }, [onOpenChange, onCancel]);
1643
- return /* @__PURE__ */ React.createElement(Modal, __spreadProps$2(__spreadValues$3({}, rest), {
1645
+ return /* @__PURE__ */ React.createElement(Modal, __spreadProps$3(__spreadValues$4({}, rest), {
1644
1646
  onOk: memoOnOk,
1645
1647
  onCancel: memoOnCancel,
1646
1648
  open,
@@ -1741,33 +1743,33 @@ function registerModal(loader) {
1741
1743
  });
1742
1744
  }
1743
1745
 
1744
- var __defProp$2 = Object.defineProperty;
1745
- var __defProps$1 = Object.defineProperties;
1746
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
1747
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
1748
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
1749
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
1750
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1751
- var __spreadValues$2 = (a, b) => {
1746
+ var __defProp$3 = Object.defineProperty;
1747
+ var __defProps$2 = Object.defineProperties;
1748
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
1749
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
1750
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
1751
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
1752
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1753
+ var __spreadValues$3 = (a, b) => {
1752
1754
  for (var prop in b || (b = {}))
1753
- if (__hasOwnProp$2.call(b, prop))
1754
- __defNormalProp$2(a, prop, b[prop]);
1755
- if (__getOwnPropSymbols$2)
1756
- for (var prop of __getOwnPropSymbols$2(b)) {
1757
- if (__propIsEnum$2.call(b, prop))
1758
- __defNormalProp$2(a, prop, b[prop]);
1755
+ if (__hasOwnProp$3.call(b, prop))
1756
+ __defNormalProp$3(a, prop, b[prop]);
1757
+ if (__getOwnPropSymbols$3)
1758
+ for (var prop of __getOwnPropSymbols$3(b)) {
1759
+ if (__propIsEnum$3.call(b, prop))
1760
+ __defNormalProp$3(a, prop, b[prop]);
1759
1761
  }
1760
1762
  return a;
1761
1763
  };
1762
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
1764
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
1763
1765
  var __objRest$2 = (source, exclude) => {
1764
1766
  var target = {};
1765
1767
  for (var prop in source)
1766
- if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
1768
+ if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0)
1767
1769
  target[prop] = source[prop];
1768
- if (source != null && __getOwnPropSymbols$2)
1769
- for (var prop of __getOwnPropSymbols$2(source)) {
1770
- if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
1770
+ if (source != null && __getOwnPropSymbols$3)
1771
+ for (var prop of __getOwnPropSymbols$3(source)) {
1772
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop))
1771
1773
  target[prop] = source[prop];
1772
1774
  }
1773
1775
  return target;
@@ -1782,7 +1784,7 @@ function AntdRadioGroup(props) {
1782
1784
  return void 0;
1783
1785
  }
1784
1786
  }, [onChange]);
1785
- return /* @__PURE__ */ React.createElement(RadioGroup, __spreadProps$1(__spreadValues$2({}, rest), {
1787
+ return /* @__PURE__ */ React.createElement(RadioGroup, __spreadProps$2(__spreadValues$3({}, rest), {
1786
1788
  onChange: wrappedOnChange
1787
1789
  }));
1788
1790
  }
@@ -1901,33 +1903,33 @@ function registerRadio(loader) {
1901
1903
  });
1902
1904
  }
1903
1905
 
1904
- var __defProp$1 = Object.defineProperty;
1905
- var __defProps = Object.defineProperties;
1906
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
1907
- var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
1908
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
1909
- var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
1910
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1911
- var __spreadValues$1 = (a, b) => {
1906
+ var __defProp$2 = Object.defineProperty;
1907
+ var __defProps$1 = Object.defineProperties;
1908
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
1909
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
1910
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
1911
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
1912
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1913
+ var __spreadValues$2 = (a, b) => {
1912
1914
  for (var prop in b || (b = {}))
1913
- if (__hasOwnProp$1.call(b, prop))
1914
- __defNormalProp$1(a, prop, b[prop]);
1915
- if (__getOwnPropSymbols$1)
1916
- for (var prop of __getOwnPropSymbols$1(b)) {
1917
- if (__propIsEnum$1.call(b, prop))
1918
- __defNormalProp$1(a, prop, b[prop]);
1915
+ if (__hasOwnProp$2.call(b, prop))
1916
+ __defNormalProp$2(a, prop, b[prop]);
1917
+ if (__getOwnPropSymbols$2)
1918
+ for (var prop of __getOwnPropSymbols$2(b)) {
1919
+ if (__propIsEnum$2.call(b, prop))
1920
+ __defNormalProp$2(a, prop, b[prop]);
1919
1921
  }
1920
1922
  return a;
1921
1923
  };
1922
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1924
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
1923
1925
  var __objRest$1 = (source, exclude) => {
1924
1926
  var target = {};
1925
1927
  for (var prop in source)
1926
- if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
1928
+ if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
1927
1929
  target[prop] = source[prop];
1928
- if (source != null && __getOwnPropSymbols$1)
1929
- for (var prop of __getOwnPropSymbols$1(source)) {
1930
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
1930
+ if (source != null && __getOwnPropSymbols$2)
1931
+ for (var prop of __getOwnPropSymbols$2(source)) {
1932
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
1931
1933
  target[prop] = source[prop];
1932
1934
  }
1933
1935
  return target;
@@ -1947,7 +1949,7 @@ function AntdSelect(props) {
1947
1949
  "suffixIcon",
1948
1950
  "mode"
1949
1951
  ]);
1950
- return /* @__PURE__ */ React.createElement(Select, __spreadValues$1(__spreadProps(__spreadValues$1({}, rest), {
1952
+ return /* @__PURE__ */ React.createElement(Select, __spreadValues$2(__spreadProps$1(__spreadValues$2({}, rest), {
1951
1953
  mode: !mode || mode === "single" ? void 0 : mode,
1952
1954
  popupClassName: `${defaultStylesClassName} ${popupScopeClassName} ${popupClassName}`
1953
1955
  }), suffixIcon && { suffixIcon }));
@@ -2133,30 +2135,30 @@ function registerSelect(loader) {
2133
2135
  });
2134
2136
  }
2135
2137
 
2136
- var __defProp = Object.defineProperty;
2137
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
2138
- var __hasOwnProp = Object.prototype.hasOwnProperty;
2139
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
2140
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2141
- var __spreadValues = (a, b) => {
2138
+ var __defProp$1 = Object.defineProperty;
2139
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
2140
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
2141
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
2142
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2143
+ var __spreadValues$1 = (a, b) => {
2142
2144
  for (var prop in b || (b = {}))
2143
- if (__hasOwnProp.call(b, prop))
2144
- __defNormalProp(a, prop, b[prop]);
2145
- if (__getOwnPropSymbols)
2146
- for (var prop of __getOwnPropSymbols(b)) {
2147
- if (__propIsEnum.call(b, prop))
2148
- __defNormalProp(a, prop, b[prop]);
2145
+ if (__hasOwnProp$1.call(b, prop))
2146
+ __defNormalProp$1(a, prop, b[prop]);
2147
+ if (__getOwnPropSymbols$1)
2148
+ for (var prop of __getOwnPropSymbols$1(b)) {
2149
+ if (__propIsEnum$1.call(b, prop))
2150
+ __defNormalProp$1(a, prop, b[prop]);
2149
2151
  }
2150
2152
  return a;
2151
2153
  };
2152
2154
  var __objRest = (source, exclude) => {
2153
2155
  var target = {};
2154
2156
  for (var prop in source)
2155
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
2157
+ if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
2156
2158
  target[prop] = source[prop];
2157
- if (source != null && __getOwnPropSymbols)
2158
- for (var prop of __getOwnPropSymbols(source)) {
2159
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
2159
+ if (source != null && __getOwnPropSymbols$1)
2160
+ for (var prop of __getOwnPropSymbols$1(source)) {
2161
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
2160
2162
  target[prop] = source[prop];
2161
2163
  }
2162
2164
  return target;
@@ -2234,7 +2236,7 @@ const AntdTable = React.forwardRef(function AntdTable2(props, ref) {
2234
2236
  }
2235
2237
  }
2236
2238
  }), [data, onSelectedRowKeysChange, onSelectedRowsChange, isSelectable, rowKey]);
2237
- return /* @__PURE__ */ React.createElement(Table, __spreadValues({
2239
+ return /* @__PURE__ */ React.createElement(Table, __spreadValues$1({
2238
2240
  loading: data == null ? void 0 : data.isLoading,
2239
2241
  dataSource: data == null ? void 0 : data.data,
2240
2242
  rowSelection: selection,
@@ -2338,7 +2340,7 @@ function registerTable(loader) {
2338
2340
  }
2339
2341
  }
2340
2342
  });
2341
- registerComponentHelper(loader, AntdColumn, __spreadValues({
2343
+ registerComponentHelper(loader, AntdColumn, __spreadValues$1({
2342
2344
  name: "plasmic-antd5-table-column",
2343
2345
  displayName: "Column",
2344
2346
  parentComponentName: "plasmic-antd5-table",
@@ -2375,7 +2377,7 @@ function registerTable(loader) {
2375
2377
  importPath: "@plasmicpkgs/antd5/skinny/registerTable",
2376
2378
  importName: "AntdColumn"
2377
2379
  }, { isRenderless: true }));
2378
- registerComponentHelper(loader, AntdColumnGroup, __spreadValues({
2380
+ registerComponentHelper(loader, AntdColumnGroup, __spreadValues$1({
2379
2381
  name: "plasmic-antd5-table-column-group",
2380
2382
  displayName: "Column Group",
2381
2383
  parentComponentName: "plasmic-antd5-table",
@@ -2394,6 +2396,246 @@ function registerTable(loader) {
2394
2396
  }, { isRenderless: true }));
2395
2397
  }
2396
2398
 
2399
+ var __defProp = Object.defineProperty;
2400
+ var __defProps = Object.defineProperties;
2401
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
2402
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
2403
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
2404
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
2405
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2406
+ var __spreadValues = (a, b) => {
2407
+ for (var prop in b || (b = {}))
2408
+ if (__hasOwnProp.call(b, prop))
2409
+ __defNormalProp(a, prop, b[prop]);
2410
+ if (__getOwnPropSymbols)
2411
+ for (var prop of __getOwnPropSymbols(b)) {
2412
+ if (__propIsEnum.call(b, prop))
2413
+ __defNormalProp(a, prop, b[prop]);
2414
+ }
2415
+ return a;
2416
+ };
2417
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2418
+ const AntdInput = Input;
2419
+ const AntdTextArea = Input.TextArea;
2420
+ const AntdPassword = Input.Password;
2421
+ const AntdInputNumber = InputNumber;
2422
+ const inputHelpers = {
2423
+ states: {
2424
+ value: {
2425
+ onChangeArgsToValue: (e) => {
2426
+ return e.target.value;
2427
+ }
2428
+ }
2429
+ }
2430
+ };
2431
+ const COMMON_HELPERS_CONFIG = {
2432
+ helpers: inputHelpers,
2433
+ importName: "inputHelpers",
2434
+ importPath: "@plasmicpkgs/antd5/skinny/registerInput"
2435
+ };
2436
+ const COMMON_STATES = {
2437
+ value: {
2438
+ type: "writable",
2439
+ valueProp: "value",
2440
+ variableType: "text",
2441
+ onChangeProp: "onChange"
2442
+ }
2443
+ };
2444
+ const COMMON_DECORATOR_PROPS = {
2445
+ prefix: {
2446
+ type: "slot",
2447
+ hidePlaceholder: true
2448
+ },
2449
+ suffix: {
2450
+ type: "slot",
2451
+ hidePlaceholder: true
2452
+ },
2453
+ addonAfter: {
2454
+ type: "slot",
2455
+ hidePlaceholder: true
2456
+ },
2457
+ addonBefore: {
2458
+ type: "slot",
2459
+ hidePlaceholder: true
2460
+ }
2461
+ };
2462
+ const COMMON_ADVANCED_PROPS = {
2463
+ maxLength: {
2464
+ type: "number",
2465
+ advanced: true
2466
+ },
2467
+ bordered: {
2468
+ type: "boolean",
2469
+ advanced: true,
2470
+ defaultValueHint: true
2471
+ },
2472
+ allowClear: {
2473
+ type: "boolean",
2474
+ advanced: true
2475
+ },
2476
+ autoFocus: {
2477
+ type: "boolean",
2478
+ advanced: true
2479
+ },
2480
+ readOnly: {
2481
+ type: "boolean",
2482
+ advanced: true
2483
+ }
2484
+ };
2485
+ const COMMON_EVENT_HANDLERS = {
2486
+ onChange: {
2487
+ type: "eventHandler",
2488
+ argTypes: [
2489
+ {
2490
+ name: "event",
2491
+ type: "object"
2492
+ }
2493
+ ]
2494
+ },
2495
+ onPressEnter: {
2496
+ type: "eventHandler",
2497
+ argTypes: [
2498
+ {
2499
+ name: "event",
2500
+ type: "object"
2501
+ }
2502
+ ]
2503
+ }
2504
+ };
2505
+ function registerInput(loader) {
2506
+ registerComponentHelper(loader, AntdInput, {
2507
+ name: "plasmic-antd5-input",
2508
+ displayName: "Input",
2509
+ props: __spreadValues(__spreadValues(__spreadValues({
2510
+ value: {
2511
+ type: "string"
2512
+ },
2513
+ placholder: {
2514
+ type: "string"
2515
+ },
2516
+ size: {
2517
+ type: "choice",
2518
+ options: ["large", "middle", "small"]
2519
+ },
2520
+ disabled: {
2521
+ type: "boolean"
2522
+ }
2523
+ }, COMMON_ADVANCED_PROPS), COMMON_DECORATOR_PROPS), COMMON_EVENT_HANDLERS),
2524
+ states: __spreadValues({}, COMMON_STATES),
2525
+ componentHelpers: COMMON_HELPERS_CONFIG,
2526
+ importPath: "@plasmicpkgs/antd5/skinny/registerInput",
2527
+ importName: "AntdInput"
2528
+ });
2529
+ }
2530
+ function registerTextArea(loader) {
2531
+ registerComponentHelper(loader, AntdTextArea, {
2532
+ name: "plasmic-antd5-textarea",
2533
+ parentComponentName: "plasmic-antd5-input",
2534
+ displayName: "Text Area",
2535
+ props: __spreadValues({
2536
+ value: {
2537
+ type: "string"
2538
+ },
2539
+ placholder: {
2540
+ type: "string"
2541
+ },
2542
+ disabled: {
2543
+ type: "boolean"
2544
+ },
2545
+ maxLength: {
2546
+ type: "number",
2547
+ advanced: true
2548
+ },
2549
+ bordered: {
2550
+ type: "boolean",
2551
+ advanced: true,
2552
+ defaultValueHint: true
2553
+ }
2554
+ }, COMMON_EVENT_HANDLERS),
2555
+ states: __spreadValues({}, COMMON_STATES),
2556
+ componentHelpers: COMMON_HELPERS_CONFIG,
2557
+ importPath: "@plasmicpkgs/antd5/skinny/registerInput",
2558
+ importName: "AntdTextArea"
2559
+ });
2560
+ }
2561
+ function registerPasswordInput(loader) {
2562
+ registerComponentHelper(loader, AntdPassword, {
2563
+ name: "plasmic-antd5-input-password",
2564
+ parentComponentName: "plasmic-antd5-input",
2565
+ displayName: "Password Input",
2566
+ props: __spreadValues({
2567
+ value: {
2568
+ type: "string"
2569
+ },
2570
+ placholder: {
2571
+ type: "string"
2572
+ },
2573
+ disabled: {
2574
+ type: "boolean"
2575
+ },
2576
+ maxLength: {
2577
+ type: "number",
2578
+ advanced: true
2579
+ },
2580
+ bordered: {
2581
+ type: "boolean",
2582
+ advanced: true,
2583
+ defaultValueHint: true
2584
+ }
2585
+ }, COMMON_EVENT_HANDLERS),
2586
+ states: __spreadValues({}, COMMON_STATES),
2587
+ componentHelpers: COMMON_HELPERS_CONFIG,
2588
+ importPath: "@plasmicpkgs/antd5/skinny/registerInput",
2589
+ importName: "AntdPassword"
2590
+ });
2591
+ }
2592
+ function registerNumberInput(loader) {
2593
+ registerComponentHelper(loader, AntdInputNumber, {
2594
+ name: "plasmic-antd5-input-number",
2595
+ parentComponentName: "plasmic-antd5-input",
2596
+ displayName: "Number Input",
2597
+ props: __spreadProps(__spreadValues(__spreadValues(__spreadValues({
2598
+ value: {
2599
+ type: "number"
2600
+ },
2601
+ placholder: {
2602
+ type: "string"
2603
+ },
2604
+ disabled: {
2605
+ type: "boolean"
2606
+ },
2607
+ max: {
2608
+ type: "number"
2609
+ },
2610
+ min: {
2611
+ type: "number"
2612
+ },
2613
+ step: {
2614
+ type: "number",
2615
+ helpText: "Increment or decrement step"
2616
+ },
2617
+ controls: {
2618
+ type: "boolean",
2619
+ displayName: "Show add/minus controls?",
2620
+ advanced: true
2621
+ }
2622
+ }, COMMON_DECORATOR_PROPS), COMMON_ADVANCED_PROPS), COMMON_EVENT_HANDLERS), {
2623
+ onChange: {
2624
+ type: "eventHandler",
2625
+ argTypes: [
2626
+ {
2627
+ name: "value",
2628
+ type: "number"
2629
+ }
2630
+ ]
2631
+ }
2632
+ }),
2633
+ states: __spreadValues({}, COMMON_STATES),
2634
+ importPath: "@plasmicpkgs/antd5/skinny/registerInput",
2635
+ importName: "AntdInputNumber"
2636
+ });
2637
+ }
2638
+
2397
2639
  function registerAll(loader) {
2398
2640
  registerConfigProvider(loader);
2399
2641
  registerTokens(loader);
@@ -2409,6 +2651,10 @@ function registerAll(loader) {
2409
2651
  registerFormItem(loader);
2410
2652
  registerFormGroup(loader);
2411
2653
  registerFormList(loader);
2654
+ registerInput(loader);
2655
+ registerPasswordInput(loader);
2656
+ registerTextArea(loader);
2657
+ registerNumberInput(loader);
2412
2658
  }
2413
2659
 
2414
2660
  export { registerAll };