@plasmicpkgs/antd5 0.0.54 → 0.0.55

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.
Files changed (40) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/antd.esm.js +250 -115
  3. package/dist/antd.esm.js.map +1 -1
  4. package/dist/index.js +250 -115
  5. package/dist/index.js.map +1 -1
  6. package/dist/registerForm.d.ts +9 -1
  7. package/package.json +2 -2
  8. package/skinny/registerButton.cjs.js +1 -1
  9. package/skinny/registerButton.esm.js +1 -1
  10. package/skinny/registerCheckbox.cjs.js +1 -1
  11. package/skinny/registerCheckbox.esm.js +1 -1
  12. package/skinny/registerConfigProvider.cjs.js +1 -1
  13. package/skinny/registerConfigProvider.esm.js +1 -1
  14. package/skinny/registerDropdown.cjs.js +1 -1
  15. package/skinny/registerDropdown.esm.js +1 -1
  16. package/skinny/registerForm.cjs.js +227 -97
  17. package/skinny/registerForm.cjs.js.map +1 -1
  18. package/skinny/registerForm.d.ts +9 -1
  19. package/skinny/registerForm.esm.js +227 -97
  20. package/skinny/registerForm.esm.js.map +1 -1
  21. package/skinny/registerInput.cjs.js +1 -1
  22. package/skinny/registerInput.esm.js +1 -1
  23. package/skinny/registerMenu.cjs.js +1 -1
  24. package/skinny/registerMenu.esm.js +1 -1
  25. package/skinny/registerModal.cjs.js +1 -1
  26. package/skinny/registerModal.esm.js +1 -1
  27. package/skinny/registerRadio.cjs.js +25 -8
  28. package/skinny/registerRadio.cjs.js.map +1 -1
  29. package/skinny/registerRadio.esm.js +25 -8
  30. package/skinny/registerRadio.esm.js.map +1 -1
  31. package/skinny/registerSelect.cjs.js +1 -1
  32. package/skinny/registerSelect.esm.js +1 -1
  33. package/skinny/registerTable.cjs.js +1 -1
  34. package/skinny/registerTable.esm.js +1 -1
  35. package/skinny/registerUpload.cjs.js +1 -1
  36. package/skinny/registerUpload.esm.js +1 -1
  37. package/skinny/{utils-dff55ae0.cjs.js → utils-2d964db8.cjs.js} +1 -14
  38. package/skinny/{utils-dff55ae0.cjs.js.map → utils-2d964db8.cjs.js.map} +1 -1
  39. package/skinny/{utils-94b1c934.esm.js → utils-d0e80a56.esm.js} +2 -14
  40. package/skinny/{utils-94b1c934.esm.js.map → utils-d0e80a56.esm.js.map} +1 -1
@@ -1,3 +1,4 @@
1
+ import { Form } from "antd";
1
2
  import type { FormProps } from "antd/es/form";
2
3
  import type { FormItemProps } from "antd/es/form/FormItem";
3
4
  import type { FormListOperation, FormListProps } from "antd/es/form/FormList";
@@ -16,6 +17,11 @@ interface FormWrapperProps extends FormProps {
16
17
  interface InternalFormInstanceContextData {
17
18
  fireOnValuesChange: () => void;
18
19
  forceRemount: () => void;
20
+ layout: FormLayoutContextValue;
21
+ }
22
+ interface FormLayoutContextValue {
23
+ layout: React.ComponentProps<typeof Form>["layout"];
24
+ labelSpan?: number;
19
25
  }
20
26
  export declare function FormWrapper(props: FormWrapperProps): JSX.Element;
21
27
  export declare function registerForm(loader?: Registerable): void;
@@ -27,10 +33,12 @@ interface CuratedFieldData {
27
33
  }
28
34
  interface InternalFormItemProps extends Omit<FormItemProps, "rules"> {
29
35
  rules?: PlasmicRule[];
30
- helpTextMode?: string;
36
+ description?: React.ReactNode;
31
37
  noLabel?: boolean;
38
+ hideValidationMessage?: boolean;
32
39
  customizeProps?: (fieldData: CuratedFieldData, props: InternalFormItemProps) => FormItemProps;
33
40
  setControlContextData?: (data: FormControlContextData) => void;
41
+ alignLabellessWithControls?: boolean;
34
42
  }
35
43
  interface PlasmicRule {
36
44
  ruleType: "enum" | "len" | "max" | "min" | "regex" | "required" | "whitespace" | "advanced";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicpkgs/antd5",
3
- "version": "0.0.54",
3
+ "version": "0.0.55",
4
4
  "description": "Plasmic registration calls for antd components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -76,5 +76,5 @@
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  },
79
- "gitHead": "807918caa253def6a79afdc3439b6d0a924c119e"
79
+ "gitHead": "9046e96d5d51d83325652cfb6b8d160aabdfb201"
80
80
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  var React = require('react');
4
4
  var antd = require('antd');
5
- var utils = require('./utils-dff55ae0.cjs.js');
5
+ var utils = require('./utils-2d964db8.cjs.js');
6
6
  require('@plasmicapp/host/registerComponent');
7
7
  require('@plasmicapp/host/registerGlobalContext');
8
8
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Button } from 'antd';
3
- import { r as registerComponentHelper } from './utils-94b1c934.esm.js';
3
+ import { r as registerComponentHelper } from './utils-d0e80a56.esm.js';
4
4
  import '@plasmicapp/host/registerComponent';
5
5
  import '@plasmicapp/host/registerGlobalContext';
6
6
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  var antd = require('antd');
4
4
  var React = require('react');
5
- var utils = require('./utils-dff55ae0.cjs.js');
5
+ var utils = require('./utils-2d964db8.cjs.js');
6
6
  require('@plasmicapp/host/registerComponent');
7
7
  require('@plasmicapp/host/registerGlobalContext');
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { Checkbox } from 'antd';
2
2
  import React from 'react';
3
- import { r as registerComponentHelper, t as traverseReactEltTree } from './utils-94b1c934.esm.js';
3
+ import { r as registerComponentHelper, t as traverseReactEltTree } from './utils-d0e80a56.esm.js';
4
4
  import '@plasmicapp/host/registerComponent';
5
5
  import '@plasmicapp/host/registerGlobalContext';
6
6
 
@@ -6,7 +6,7 @@ var query = require('@plasmicapp/query');
6
6
  var antd = require('antd');
7
7
  var enUS = require('antd/lib/locale/en_US.js');
8
8
  var React = require('react');
9
- var utils = require('./utils-dff55ae0.cjs.js');
9
+ var utils = require('./utils-2d964db8.cjs.js');
10
10
  require('@plasmicapp/host/registerComponent');
11
11
  require('@plasmicapp/host/registerGlobalContext');
12
12
 
@@ -4,7 +4,7 @@ import { addLoadingStateListener } from '@plasmicapp/query';
4
4
  import { ConfigProvider, theme, message, notification } from 'antd';
5
5
  import enUS from 'antd/lib/locale/en_US.js';
6
6
  import React from 'react';
7
- import { m as makeRegisterGlobalContext } from './utils-94b1c934.esm.js';
7
+ import { m as makeRegisterGlobalContext } from './utils-d0e80a56.esm.js';
8
8
  import '@plasmicapp/host/registerComponent';
9
9
  import '@plasmicapp/host/registerGlobalContext';
10
10
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  var antd = require('antd');
4
4
  var React = require('react');
5
- var utils = require('./utils-dff55ae0.cjs.js');
5
+ var utils = require('./utils-2d964db8.cjs.js');
6
6
  require('@plasmicapp/host/registerComponent');
7
7
  require('@plasmicapp/host/registerGlobalContext');
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { Dropdown, Menu } from 'antd';
2
2
  import React from 'react';
3
- import { r as registerComponentHelper } from './utils-94b1c934.esm.js';
3
+ import { r as registerComponentHelper } from './utils-d0e80a56.esm.js';
4
4
  import '@plasmicapp/host/registerComponent';
5
5
  import '@plasmicapp/host/registerGlobalContext';
6
6
 
@@ -5,7 +5,7 @@ var antd = require('antd');
5
5
  var equal = require('fast-deep-equal');
6
6
  var React = require('react');
7
7
  var classNames = require('classnames');
8
- var utils = require('./utils-dff55ae0.cjs.js');
8
+ var utils = require('./utils-2d964db8.cjs.js');
9
9
  require('@plasmicapp/host/registerComponent');
10
10
  require('@plasmicapp/host/registerGlobalContext');
11
11
 
@@ -149,8 +149,9 @@ const FormItem = antd.Form.Item;
149
149
  const FormList = antd.Form.List;
150
150
  const PathContext = React__default.default.createContext({ relativePath: [], fullPath: [] });
151
151
  const InternalFormInstanceContext = React__default.default.createContext(void 0);
152
+ const FormLayoutContext = React__default.default.createContext(void 0);
152
153
  const Internal = (props) => {
153
- var _b, _c;
154
+ var _b, _c, _d;
154
155
  const [form] = antd.Form.useForm();
155
156
  const values = form.getFieldsValue(true);
156
157
  const lastValue = React__default.default.useRef(values);
@@ -166,15 +167,26 @@ const Internal = (props) => {
166
167
  React__default.default.useEffect(() => {
167
168
  fireOnValuesChange();
168
169
  }, []);
170
+ const formLayout = React__default.default.useMemo(
171
+ () => {
172
+ var _a2;
173
+ return {
174
+ layout: props.layout,
175
+ labelSpan: (_a2 = props.labelCol) == null ? void 0 : _a2.span
176
+ };
177
+ },
178
+ [props.layout, (_b = props.labelCol) == null ? void 0 : _b.span]
179
+ );
169
180
  return /* @__PURE__ */ React__default.default.createElement(
170
181
  InternalFormInstanceContext.Provider,
171
182
  {
172
183
  value: {
184
+ layout: formLayout,
173
185
  fireOnValuesChange,
174
186
  forceRemount: () => setRemountKey((k) => k + 1)
175
187
  }
176
188
  },
177
- /* @__PURE__ */ React__default.default.createElement(
189
+ /* @__PURE__ */ React__default.default.createElement(FormLayoutContext.Provider, { value: formLayout }, /* @__PURE__ */ React__default.default.createElement(
178
190
  antd.Form,
179
191
  __spreadProps(__spreadValues({}, rest), {
180
192
  key: props.initialValues ? JSON.stringify(props.initialValues) : void 0,
@@ -184,16 +196,16 @@ const Internal = (props) => {
184
196
  extendedOnValuesChange == null ? void 0 : extendedOnValuesChange(args[1]);
185
197
  },
186
198
  form,
187
- labelCol: ((_b = props.labelCol) == null ? void 0 : _b.horizontalOnly) && props.layout !== "horizontal" ? void 0 : props.labelCol,
188
- wrapperCol: ((_c = props.wrapperCol) == null ? void 0 : _c.horizontalOnly) && props.layout !== "horizontal" ? void 0 : props.wrapperCol
199
+ labelCol: ((_c = props.labelCol) == null ? void 0 : _c.horizontalOnly) && props.layout !== "horizontal" ? void 0 : props.labelCol,
200
+ wrapperCol: ((_d = props.wrapperCol) == null ? void 0 : _d.horizontalOnly) && props.layout !== "horizontal" ? void 0 : props.wrapperCol
189
201
  }),
190
202
  /* @__PURE__ */ React__default.default.createElement("style", null, `
191
- .ant-form-item-explain + div, .ant-form-item-margin-offset {
192
- display: none;
193
- }
194
- `),
203
+ .ant-form-item-explain + div, .ant-form-item-margin-offset {
204
+ display: none;
205
+ }
206
+ `),
195
207
  childrenNode
196
- )
208
+ ))
197
209
  );
198
210
  };
199
211
  function FormWrapper(props) {
@@ -247,40 +259,41 @@ const COMMON_ACTIONS = [
247
259
  // },
248
260
  // },
249
261
  ];
250
- function registerForm(loader) {
251
- const colProp = (displayName, defaultValue) => ({
252
- type: "object",
253
- displayName,
254
- advanced: true,
255
- fields: {
256
- span: {
257
- type: "number",
258
- displayName: "Grid columns",
259
- description: "The number of grid columns to span (24 columns available)",
260
- min: 1,
261
- max: 24
262
- },
263
- offset: {
264
- type: "number",
265
- displayName: "Offset columns",
266
- description: "Number of grid columns to skip from the left",
267
- min: 0,
268
- max: 23
269
- },
270
- horizontalOnly: {
271
- type: "boolean",
272
- displayName: "Horizontal only",
273
- description: "Only apply to horizontal layout"
274
- }
262
+ const colProp = (displayName, defaultValue, description) => ({
263
+ type: "object",
264
+ displayName,
265
+ advanced: true,
266
+ fields: {
267
+ span: {
268
+ type: "number",
269
+ displayName: "Width",
270
+ description: "The number of grid columns to span in width (out of 24 columns total)",
271
+ min: 1,
272
+ max: 24
275
273
  },
276
- defaultValue
277
- });
274
+ offset: {
275
+ type: "number",
276
+ displayName: "Offset",
277
+ description: "Number of grid columns to skip from the left (out of 24 columns total)",
278
+ min: 0,
279
+ max: 23
280
+ },
281
+ horizontalOnly: {
282
+ type: "boolean",
283
+ displayName: "Horizontal only",
284
+ description: "Only apply to horizontal layout"
285
+ }
286
+ },
287
+ description,
288
+ defaultValue
289
+ });
290
+ function registerForm(loader) {
278
291
  utils.registerComponentHelper(loader, FormWrapper, {
279
292
  name: "plasmic-antd5-form",
280
293
  displayName: "Form",
281
294
  defaultStyles: {
282
- display: "plasmic-content-layout",
283
- gridRowGap: "10px"
295
+ layout: "vbox",
296
+ alignItems: "flex-start"
284
297
  },
285
298
  props: {
286
299
  children: {
@@ -318,13 +331,21 @@ function registerForm(loader) {
318
331
  },
319
332
  {
320
333
  type: "component",
321
- name: "plasmic-antd5-button",
334
+ name: "plasmic-antd5-form-item",
322
335
  props: {
336
+ noLabel: true,
323
337
  children: {
324
- type: "text",
325
- value: "Submit"
326
- },
327
- submitsForm: true
338
+ type: "component",
339
+ name: "plasmic-antd5-button",
340
+ props: {
341
+ children: {
342
+ type: "text",
343
+ value: "Submit"
344
+ },
345
+ type: "primary",
346
+ submitsForm: true
347
+ }
348
+ }
328
349
  }
329
350
  }
330
351
  ]
@@ -341,16 +362,25 @@ function registerForm(loader) {
341
362
  type: "choice",
342
363
  options: ["left", "right"],
343
364
  defaultValueHint: "right",
344
- advanced: true
365
+ advanced: true,
366
+ hidden: (ps) => ps.layout !== "horizontal"
345
367
  },
346
- labelCol: colProp("Label layout", {
347
- span: 8,
348
- horizontalOnly: true
349
- }),
350
- wrapperCol: colProp("Field layout", {
351
- span: 16,
352
- horizontalOnly: true
353
- }),
368
+ labelCol: colProp(
369
+ "Label layout",
370
+ {
371
+ span: 8,
372
+ horizontalOnly: true
373
+ },
374
+ "Set the width and offset of the labels"
375
+ ),
376
+ wrapperCol: colProp(
377
+ "Control layout",
378
+ {
379
+ span: 16,
380
+ horizontalOnly: true
381
+ },
382
+ "Set the width and offset of the form controls"
383
+ ),
354
384
  colon: {
355
385
  type: "boolean",
356
386
  description: `Show a colon after labels by default (only for horizontal layout)`,
@@ -503,14 +533,34 @@ function useFormInstanceMaybe() {
503
533
  return antd.Form.useFormInstance();
504
534
  }
505
535
  function FormItemWrapper(props) {
506
- var _a, _b;
507
- const relativeFormItemName = useFormItemRelativeName(props.name);
508
- const fullFormItemName = useFormItemFullName(props.name);
509
- const bestEffortLabel = !props.noLabel && reactNodeToString(props.label) || ensureArray(props.name).slice(-1)[0];
510
- const rules = props.rules ? plasmicRulesToAntdRules(
511
- props.rules,
536
+ var _b;
537
+ const _a = props, {
538
+ rules: plasmicRules,
539
+ description,
540
+ noLabel,
541
+ name,
542
+ hideValidationMessage,
543
+ customizeProps,
544
+ setControlContextData,
545
+ alignLabellessWithControls = true
546
+ } = _a, rest = __objRest(_a, [
547
+ "rules",
548
+ "description",
549
+ "noLabel",
550
+ "name",
551
+ "hideValidationMessage",
552
+ "customizeProps",
553
+ "setControlContextData",
554
+ "alignLabellessWithControls"
555
+ ]);
556
+ const relativeFormItemName = useFormItemRelativeName(name);
557
+ const fullFormItemName = useFormItemFullName(name);
558
+ const bestEffortLabel = !noLabel && reactNodeToString(props.label) || ensureArray(props.name).slice(-1)[0];
559
+ const rules = plasmicRules ? plasmicRulesToAntdRules(
560
+ plasmicRules,
512
561
  typeof bestEffortLabel === "number" ? "" + bestEffortLabel : bestEffortLabel
513
562
  ) : void 0;
563
+ const layoutContext = React__default.default.useContext(FormLayoutContext);
514
564
  const inCanvas = !!host.usePlasmicCanvasContext();
515
565
  if (inCanvas) {
516
566
  const form = useFormInstanceMaybe();
@@ -520,7 +570,7 @@ function FormItemWrapper(props) {
520
570
  });
521
571
  const internalFormCtx = React__default.default.useContext(InternalFormInstanceContext);
522
572
  const { fireOnValuesChange, forceRemount } = internalFormCtx != null ? internalFormCtx : {};
523
- (_a = props.setControlContextData) == null ? void 0 : _a.call(props, {
573
+ (_b = props.setControlContextData) == null ? void 0 : _b.call(props, {
524
574
  internalFormCtx
525
575
  });
526
576
  React__default.default.useEffect(() => {
@@ -537,14 +587,15 @@ function FormItemWrapper(props) {
537
587
  }
538
588
  return /* @__PURE__ */ React__default.default.createElement(
539
589
  FormItem,
540
- __spreadValues(__spreadProps(__spreadValues({}, utils.omit(props, "rules")), {
541
- label: props.noLabel ? void 0 : props.label,
590
+ __spreadProps(__spreadValues({}, rest), {
591
+ label: noLabel ? void 0 : props.label,
542
592
  name: relativeFormItemName,
543
- rules
544
- }), props.helpTextMode === "extra" ? { extra: props.help } : props.helpTextMode === "help" ? (
545
- // Never show validation errors in this mode, even if user didn't specify help
546
- { help: (_b = props.help) != null ? _b : "" }
547
- ) : {}),
593
+ rules,
594
+ extra: description,
595
+ help: hideValidationMessage ? "" : props.help,
596
+ colon: noLabel ? false : void 0,
597
+ wrapperCol: (layoutContext == null ? void 0 : layoutContext.layout) === "horizontal" && noLabel && alignLabellessWithControls && layoutContext.labelSpan ? { offset: layoutContext.labelSpan } : void 0
598
+ }),
548
599
  props.customizeProps ? /* @__PURE__ */ React__default.default.createElement(FormItemForwarder, { formItemProps: props }) : props.children
549
600
  );
550
601
  }
@@ -574,13 +625,18 @@ function registerFormItem(loader) {
574
625
  name: "plasmic-antd5-form-item",
575
626
  displayName: "Form Item",
576
627
  parentComponentName: "plasmic-antd5-form",
628
+ defaultStyles: {
629
+ marginBottom: "24px",
630
+ width: "stretch"
631
+ },
577
632
  props: {
578
633
  label: {
579
634
  type: "slot",
580
635
  defaultValue: {
581
636
  type: "text",
582
637
  value: "Label"
583
- }
638
+ },
639
+ hidden: (ps) => !!ps.noLabel
584
640
  },
585
641
  children: {
586
642
  type: "slot",
@@ -598,10 +654,26 @@ function registerFormItem(loader) {
598
654
  rules: {
599
655
  type: "formValidationRules"
600
656
  },
657
+ valuePropName: {
658
+ type: "string",
659
+ advanced: true,
660
+ defaultValueHint: "value",
661
+ description: "The prop name for specifying the value of the form control component"
662
+ },
601
663
  noLabel: {
602
664
  type: "boolean",
603
665
  advanced: true
604
666
  },
667
+ alignLabellessWithControls: {
668
+ type: "boolean",
669
+ displayName: "Align with controls?",
670
+ description: "Aligns the content with form controls in the grid",
671
+ hidden: (ps, ctx) => {
672
+ var _a;
673
+ return !ps.noLabel || ((_a = ctx == null ? void 0 : ctx.internalFormCtx) == null ? void 0 : _a.layout.layout) !== "horizontal";
674
+ },
675
+ defaultValueHint: true
676
+ },
605
677
  colon: {
606
678
  type: "boolean",
607
679
  defaultValueHint: true,
@@ -611,7 +683,11 @@ function registerFormItem(loader) {
611
683
  labelAlign: {
612
684
  type: "choice",
613
685
  options: ["left", "right"],
614
- advanced: true
686
+ advanced: true,
687
+ hidden: (ps, ctx) => {
688
+ var _a;
689
+ return !!ps.noLabel || ((_a = ctx == null ? void 0 : ctx.internalFormCtx) == null ? void 0 : _a.layout.layout) !== "horizontal";
690
+ }
615
691
  },
616
692
  hidden: {
617
693
  type: "boolean",
@@ -635,34 +711,16 @@ function registerFormItem(loader) {
635
711
  displayName: "Dependencies",
636
712
  description: "Form items can depend on other form items. This forces it to reevaluate the validation rules when the other form item changes."
637
713
  },
638
- helpTextMode: {
639
- type: "choice",
640
- displayName: "Help text",
641
- options: [
642
- {
643
- value: "errors",
644
- label: "Validation errors"
645
- },
646
- {
647
- value: "extra",
648
- label: "Custom help text and validation errors"
649
- },
650
- {
651
- value: "help",
652
- label: "Custom help text, no validation errors"
653
- }
654
- ],
655
- defaultValueHint: "Show validation errors",
656
- description: "What to show in the help text. Edit help text by editing the 'help' slot in the outline."
714
+ hideValidationMessage: {
715
+ type: "boolean",
716
+ displayName: "Hide validation message?",
717
+ description: "If true, will hide the validation error message",
718
+ defaultValueHint: false,
719
+ advanced: true
657
720
  },
658
- help: {
721
+ description: {
659
722
  type: "slot",
660
- hidden: (ps) => {
661
- var _a;
662
- return !["extra", "help"].includes((_a = ps.helpTextMode) != null ? _a : "");
663
- },
664
723
  hidePlaceholder: true
665
- // advanced: true,
666
724
  },
667
725
  customizeProps: {
668
726
  type: "function",
@@ -680,13 +738,85 @@ function registerFormItem(loader) {
680
738
  },
681
739
  noStyle: {
682
740
  type: "boolean",
683
- displayName: "Field only",
684
- description: "Don't render anything but the wrapped field component - so no label, help text, validation error, etc.",
741
+ displayName: "Field control only",
742
+ description: "Don't render anything but the field control - so no label, help text, validation error, etc.",
685
743
  advanced: true
686
744
  }
687
745
  },
688
746
  importPath: "@plasmicpkgs/antd5/skinny/registerForm",
689
- importName: "FormItemWrapper"
747
+ importName: "FormItemWrapper",
748
+ templates: {
749
+ Text: {
750
+ props: {
751
+ children: {
752
+ type: "component",
753
+ name: "plasmic-antd5-input"
754
+ }
755
+ }
756
+ },
757
+ "Long Text": {
758
+ props: {
759
+ children: {
760
+ type: "component",
761
+ name: "plasmic-antd5-textarea"
762
+ }
763
+ }
764
+ },
765
+ "Select dropdown": {
766
+ props: {
767
+ children: {
768
+ type: "component",
769
+ name: "plasmic-antd5-select"
770
+ }
771
+ }
772
+ },
773
+ Number: {
774
+ props: {
775
+ children: {
776
+ type: "component",
777
+ name: "plasmic-antd5-input-number"
778
+ }
779
+ }
780
+ },
781
+ Checkbox: {
782
+ props: {
783
+ children: {
784
+ type: "component",
785
+ name: "plasmic-antd5-checkbox"
786
+ },
787
+ valuePropName: "checked",
788
+ noLabel: true
789
+ }
790
+ },
791
+ Radios: {
792
+ props: {
793
+ children: {
794
+ type: "component",
795
+ name: "plasmic-antd5-radio-group"
796
+ }
797
+ }
798
+ },
799
+ Password: {
800
+ props: {
801
+ children: {
802
+ type: "component",
803
+ name: "plasmic-antd5-input-password"
804
+ }
805
+ }
806
+ },
807
+ "Submit button": {
808
+ props: {
809
+ children: {
810
+ type: "component",
811
+ name: "plasmic-antd5-button",
812
+ props: {
813
+ type: "primary"
814
+ }
815
+ },
816
+ noLabel: true
817
+ }
818
+ }
819
+ }
690
820
  });
691
821
  }
692
822
  function FormGroup(props) {