@plasmicpkgs/antd 0.0.9 → 0.0.13

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.
@@ -23,6 +23,7 @@ var MenuItem = _interopDefault(require('antd/lib/menu/MenuItem'));
23
23
  var SubMenu = _interopDefault(require('antd/lib/menu/SubMenu'));
24
24
  var rcMenu = require('rc-menu');
25
25
  var rcSelect = require('rc-select');
26
+ var rcTabs = require('rc-tabs');
26
27
 
27
28
  var buttonMeta = {
28
29
  name: "AntdButton",
@@ -31,37 +32,45 @@ var buttonMeta = {
31
32
  type: {
32
33
  type: "choice",
33
34
  options: ["default", "primary", "ghost", "dashed", "link", "text"],
34
- description: "Can be set to primary, ghost, dashed, link, text, default"
35
+ description: "Can be set to primary, ghost, dashed, link, text, default",
36
+ defaultValueHint: "default"
35
37
  },
36
38
  size: {
37
39
  type: "choice",
38
40
  options: ["small", "medium", "large"],
39
- description: "Set the size of button"
41
+ description: "Set the size of button",
42
+ defaultValueHint: "medium"
40
43
  },
41
44
  shape: {
42
45
  type: "choice",
43
46
  options: ["default", "circle", "round"],
44
- description: "Can be set button shape"
47
+ description: "Can be set button shape",
48
+ defaultValueHint: "default"
45
49
  },
46
50
  disabled: {
47
51
  type: "boolean",
48
- description: "Disabled state of button"
52
+ description: "Disabled state of button",
53
+ defaultValueHint: false
49
54
  },
50
55
  ghost: {
51
56
  type: "boolean",
52
- description: "Make background transparent and invert text and border colors"
57
+ description: "Make background transparent and invert text and border colors",
58
+ defaultValueHint: false
53
59
  },
54
60
  danger: {
55
61
  type: "boolean",
56
- description: "Set the danger status of button"
62
+ description: "Set the danger status of button",
63
+ defaultValueHint: false
57
64
  },
58
65
  block: {
59
66
  type: "boolean",
60
- description: "Option to fit button width to its parent width"
67
+ description: "Option to fit button width to its parent width",
68
+ defaultValueHint: false
61
69
  },
62
70
  loading: {
63
71
  type: "boolean",
64
- description: "Set the loading status of button"
72
+ description: "Set the loading status of button",
73
+ defaultValueHint: false
65
74
  },
66
75
  href: {
67
76
  type: "string",
@@ -70,7 +79,11 @@ var buttonMeta = {
70
79
  target: {
71
80
  type: "choice",
72
81
  options: ["_blank", "_self", "_parent", "_top"],
73
- description: "Same as target attribute of a, works when href is specified"
82
+ description: "Same as target attribute of a, works when href is specified",
83
+ hidden: function hidden(props) {
84
+ return !props.href;
85
+ },
86
+ defaultValueHint: "_self"
74
87
  },
75
88
  children: {
76
89
  type: "slot",
@@ -189,21 +202,25 @@ var checkboxMeta = {
189
202
  props: {
190
203
  autoFocus: {
191
204
  type: "boolean",
192
- description: "If get focus when component mounted"
205
+ description: "If get focus when component mounted",
206
+ defaultValueHint: false
193
207
  },
194
208
  checked: {
195
209
  type: "boolean",
196
210
  editOnly: true,
197
211
  uncontrolledProp: "defaultChecked",
198
- description: "Specifies the initial state: whether or not the checkbox is selected"
212
+ description: "Specifies the initial state: whether or not the checkbox is selected",
213
+ defaultValueHint: false
199
214
  },
200
215
  disabled: {
201
216
  type: "boolean",
202
- description: "If disable checkbox"
217
+ description: "If disable checkbox",
218
+ defaultValueHint: false
203
219
  },
204
220
  indeterminate: {
205
221
  type: "boolean",
206
- description: "The indeterminate checked state of checkbox"
222
+ description: "The indeterminate checked state of checkbox",
223
+ defaultValueHint: false
207
224
  },
208
225
  value: {
209
226
  type: "string",
@@ -237,7 +254,8 @@ var checkboxGroupMeta = {
237
254
  props: {
238
255
  disabled: {
239
256
  type: "boolean",
240
- description: "If disable all checkboxes"
257
+ description: "If disable all checkboxes",
258
+ defaultValueHint: false
241
259
  },
242
260
  value: {
243
261
  type: "choice",
@@ -292,20 +310,24 @@ var carouselMeta = {
292
310
  props: {
293
311
  autoplay: {
294
312
  type: "boolean",
295
- description: "Whether to scroll automatically"
313
+ description: "Whether to scroll automatically",
314
+ defaultValueHint: false
296
315
  },
297
316
  dotPosition: {
298
317
  type: "choice",
299
318
  options: ["top", "bottom", "left", "right"],
300
- description: "The position of the dots"
319
+ description: "The position of the dots",
320
+ defaultValueHint: "bottom"
301
321
  },
302
322
  dots: {
303
323
  type: "boolean",
304
- description: "Whether to show the dots at the bottom of the gallery"
324
+ description: "Whether to show the dots at the bottom of the gallery",
325
+ defaultValueHint: true
305
326
  },
306
327
  effect: {
307
328
  type: "choice",
308
- options: ["scrollx", "fade"]
329
+ options: ["scrollx", "fade"],
330
+ defaultValueHint: "scrollx"
309
331
  },
310
332
  children: {
311
333
  type: "slot",
@@ -348,7 +370,8 @@ var collapstePanelMeta = {
348
370
  },
349
371
  forceRender: {
350
372
  type: "boolean",
351
- description: "Forced render of content on panel, instead of lazy rending after clicking on header"
373
+ description: "Forced render of content on panel, instead of lazy rending after clicking on header",
374
+ defaultValueHint: false
352
375
  },
353
376
  header: {
354
377
  type: "slot",
@@ -363,7 +386,8 @@ var collapstePanelMeta = {
363
386
  },
364
387
  showArrow: {
365
388
  type: "boolean",
366
- description: "If false, panel will not show arrow icon"
389
+ description: "If false, panel will not show arrow icon",
390
+ defaultValueHint: true
367
391
  },
368
392
  children: {
369
393
  type: "slot",
@@ -391,7 +415,8 @@ var collapsteMeta = {
391
415
  props: {
392
416
  accordion: {
393
417
  type: "boolean",
394
- description: "If true, Collapse renders as Accordion"
418
+ description: "If true, Collapse renders as Accordion",
419
+ defaultValueHint: false
395
420
  },
396
421
  activeKey: {
397
422
  type: "choice",
@@ -412,7 +437,8 @@ var collapsteMeta = {
412
437
  },
413
438
  bordered: {
414
439
  type: "boolean",
415
- description: "Toggles rendering of the border around the collapse block"
440
+ description: "Toggles rendering of the border around the collapse block",
441
+ defaultValueHint: true
416
442
  },
417
443
  collapsible: {
418
444
  type: "choice",
@@ -422,11 +448,13 @@ var collapsteMeta = {
422
448
  expandIconPosition: {
423
449
  type: "choice",
424
450
  options: ["left", "right"],
425
- description: "Set expand icon position"
451
+ description: "Set expand icon position",
452
+ defaultValueHint: "left"
426
453
  },
427
454
  ghost: {
428
455
  type: "boolean",
429
- description: "Make the collapse borderless and its background transparent"
456
+ description: "Make the collapse borderless and its background transparent",
457
+ defaultValueHint: false
430
458
  },
431
459
  children: {
432
460
  type: "slot",
@@ -473,11 +501,13 @@ var dropdownMeta = {
473
501
  props: {
474
502
  arrow: {
475
503
  type: "boolean",
476
- description: "Whether the dropdown arrow should be visible"
504
+ description: "Whether the dropdown arrow should be visible",
505
+ defaultValueHint: false
477
506
  },
478
507
  disabled: {
479
508
  type: "boolean",
480
- description: "Whether the dropdown menu is disabled"
509
+ description: "Whether the dropdown menu is disabled",
510
+ defaultValueHint: false
481
511
  },
482
512
  overlay: {
483
513
  type: "slot",
@@ -490,17 +520,20 @@ var dropdownMeta = {
490
520
  placement: {
491
521
  type: "choice",
492
522
  options: ["bottomLeft", "bottomCenter", "bottomRight", "topLeft", "topCenter", "topRight"],
493
- description: "Placement of popup menu"
523
+ description: "Placement of popup menu",
524
+ defaultValueHint: "bottomLeft"
494
525
  },
495
526
  trigger: {
496
527
  type: "choice",
497
528
  options: ["click", "hover", "contextMenu"],
498
- description: "The trigger mode which executes the dropdown action"
529
+ description: "The trigger mode which executes the dropdown action",
530
+ defaultValueHint: "hover"
499
531
  },
500
532
  visible: {
501
533
  type: "boolean",
502
534
  description: "Toggle visibility of dropdown menu in Plasmic Editor",
503
- editOnly: true
535
+ editOnly: true,
536
+ defaultValueHint: false
504
537
  },
505
538
  children: {
506
539
  type: "slot",
@@ -526,7 +559,8 @@ var dropdownButtonMeta = {
526
559
  props: {
527
560
  disabled: {
528
561
  type: "boolean",
529
- description: "Whether the dropdown menu is disabled"
562
+ description: "Whether the dropdown menu is disabled",
563
+ defaultValueHint: false
530
564
  },
531
565
  icon: {
532
566
  type: "slot",
@@ -543,27 +577,32 @@ var dropdownButtonMeta = {
543
577
  placement: {
544
578
  type: "choice",
545
579
  options: ["bottomLeft", "bottomCenter", "bottomRight", "topLeft", "topCenter", "topRight"],
546
- description: "Placement of popup menu"
580
+ description: "Placement of popup menu",
581
+ defaultValueHint: "bottomLeft"
547
582
  },
548
583
  size: {
549
584
  type: "choice",
550
585
  options: ["small", "medium", "large"],
551
- description: "Set the size of button"
586
+ description: "Set the size of button",
587
+ defaultValueHint: "medium"
552
588
  },
553
589
  trigger: {
554
590
  type: "choice",
555
591
  options: ["click", "hover", "contextMenu"],
556
- description: "The trigger mode which executes the dropdown action"
592
+ description: "The trigger mode which executes the dropdown action",
593
+ defaultValueHint: "hover"
557
594
  },
558
595
  type: {
559
596
  type: "choice",
560
597
  options: ["default", "primary", "ghost", "dashed", "link", "text"],
561
- description: "Can be set to primary, ghost, dashed, link, text, default"
598
+ description: "Can be set to primary, ghost, dashed, link, text, default",
599
+ defaultValueHint: "default"
562
600
  },
563
601
  visible: {
564
602
  type: "boolean",
565
603
  description: "Toggle visibility of dropdown menu in Plasmic Editor",
566
- editOnly: true
604
+ editOnly: true,
605
+ defaultValueHint: false
567
606
  },
568
607
  children: {
569
608
  type: "slot",
@@ -600,15 +639,18 @@ var inputMeta = {
600
639
  },
601
640
  allowClear: {
602
641
  type: "boolean",
603
- description: "If allow to remove input content with clear icon"
642
+ description: "If allow to remove input content with clear icon",
643
+ defaultValueHint: false
604
644
  },
605
645
  bordered: {
606
646
  type: "boolean",
607
- description: "Whether has border style"
647
+ description: "Whether has border style",
648
+ defaultValueHint: true
608
649
  },
609
650
  disabled: {
610
651
  type: "boolean",
611
- description: "Whether the input is disabled"
652
+ description: "Whether the input is disabled",
653
+ defaultValueHint: false
612
654
  },
613
655
  id: {
614
656
  type: "string",
@@ -629,7 +671,8 @@ var inputMeta = {
629
671
  size: {
630
672
  type: "choice",
631
673
  options: ["small", "middle", "large"],
632
- description: "The size of the input box"
674
+ description: "The size of the input box",
675
+ defaultValueHint: "middle,"
633
676
  },
634
677
  suffix: {
635
678
  type: "slot",
@@ -637,7 +680,8 @@ var inputMeta = {
637
680
  },
638
681
  type: {
639
682
  type: "string",
640
- description: "The type of input"
683
+ description: "The type of input",
684
+ defaultValueHint: "text"
641
685
  },
642
686
  value: {
643
687
  type: "string",
@@ -661,7 +705,8 @@ var inputTextAreaMeta = {
661
705
  props: {
662
706
  allowClear: {
663
707
  type: "boolean",
664
- description: "If allow to remove input content with clear icon"
708
+ description: "If allow to remove input content with clear icon",
709
+ defaultValueHint: false
665
710
  },
666
711
  autoSize: {
667
712
  type: "object",
@@ -669,15 +714,18 @@ var inputTextAreaMeta = {
669
714
  },
670
715
  disabled: {
671
716
  type: "boolean",
672
- description: "Whether the input is disabled"
717
+ description: "Whether the input is disabled",
718
+ defaultValueHint: false
673
719
  },
674
720
  bordered: {
675
721
  type: "boolean",
676
- description: "Whether has border style"
722
+ description: "Whether has border style",
723
+ defaultValueHint: true
677
724
  },
678
725
  showCount: {
679
726
  type: "boolean",
680
- description: "Whether show text count"
727
+ description: "Whether show text count",
728
+ defaultValueHint: false
681
729
  },
682
730
  id: {
683
731
  type: "string",
@@ -719,15 +767,18 @@ var inputSearchMeta = {
719
767
  },
720
768
  allowClear: {
721
769
  type: "boolean",
722
- description: "If allow to remove input content with clear icon"
770
+ description: "If allow to remove input content with clear icon",
771
+ defaultValueHint: false
723
772
  },
724
773
  bordered: {
725
774
  type: "boolean",
726
- description: "Whether has border style"
775
+ description: "Whether has border style",
776
+ defaultValueHint: true
727
777
  },
728
778
  disabled: {
729
779
  type: "boolean",
730
- description: "Whether the input is disabled"
780
+ description: "Whether the input is disabled",
781
+ defaultValueHint: false
731
782
  },
732
783
  enterButton: {
733
784
  type: "slot",
@@ -739,7 +790,8 @@ var inputSearchMeta = {
739
790
  },
740
791
  loading: {
741
792
  type: "boolean",
742
- description: "Search box with loading"
793
+ description: "Search box with loading",
794
+ defaultValueHint: false
743
795
  },
744
796
  maxLength: {
745
797
  type: "number",
@@ -756,7 +808,8 @@ var inputSearchMeta = {
756
808
  size: {
757
809
  type: "choice",
758
810
  options: ["small", "middle", "large"],
759
- description: "The size of the input box"
811
+ description: "The size of the input box",
812
+ defaultValueHint: "middle"
760
813
  },
761
814
  suffix: {
762
815
  type: "slot",
@@ -798,15 +851,18 @@ var inputPasswordMeta = {
798
851
  },
799
852
  allowClear: {
800
853
  type: "boolean",
801
- description: "If allow to remove input content with clear icon"
854
+ description: "If allow to remove input content with clear icon",
855
+ defaultValueHint: false
802
856
  },
803
857
  bordered: {
804
858
  type: "boolean",
805
- description: "Whether has border style"
859
+ description: "Whether has border style",
860
+ defaultValueHint: true
806
861
  },
807
862
  disabled: {
808
863
  type: "boolean",
809
- description: "Whether the input is disabled"
864
+ description: "Whether the input is disabled",
865
+ defaultValueHint: false
810
866
  },
811
867
  id: {
812
868
  type: "string",
@@ -827,7 +883,8 @@ var inputPasswordMeta = {
827
883
  size: {
828
884
  type: "choice",
829
885
  options: ["small", "middle", "large"],
830
- description: "The size of the input box"
886
+ description: "The size of the input box",
887
+ defaultValueHint: "middle"
831
888
  },
832
889
  type: {
833
890
  type: "string",
@@ -840,7 +897,8 @@ var inputPasswordMeta = {
840
897
  },
841
898
  visibilityToggle: {
842
899
  type: "boolean",
843
- description: "Whether show toggle button"
900
+ description: "Whether show toggle button",
901
+ defaultValueHint: true
844
902
  }
845
903
  },
846
904
  importPath: "antd/lib/input/Password",
@@ -861,12 +919,14 @@ var inputGroupMeta = {
861
919
  props: {
862
920
  compact: {
863
921
  type: "boolean",
864
- description: "Whether use compact style"
922
+ description: "Whether use compact style",
923
+ defaultValueHint: false
865
924
  },
866
925
  size: {
867
926
  type: "choice",
868
927
  options: ["small", "default", "large"],
869
- description: "The size of Input.Group specifies the size of the included Input fields"
928
+ description: "The size of Input.Group specifies the size of the included Input fields",
929
+ defaultValueHint: "default"
870
930
  },
871
931
  children: {
872
932
  type: "slot",
@@ -898,7 +958,8 @@ var menuDividerMeta = {
898
958
  props: {
899
959
  dashed: {
900
960
  type: "boolean",
901
- description: "Whether line is dashed"
961
+ description: "Whether line is dashed",
962
+ defaultValueHint: false
902
963
  }
903
964
  },
904
965
  importPath: "antd/lib/menu/MenuDivider",
@@ -919,11 +980,13 @@ var menuItemMeta = {
919
980
  props: {
920
981
  danger: {
921
982
  type: "boolean",
922
- description: "Display the danger style"
983
+ description: "Display the danger style",
984
+ defaultValueHint: false
923
985
  },
924
986
  disabled: {
925
987
  type: "boolean",
926
- description: "Whether disabled select"
988
+ description: "Whether disabled select",
989
+ defaultValueHint: false
927
990
  },
928
991
  key: {
929
992
  type: "string",
@@ -991,7 +1054,8 @@ var subMenuMeta = {
991
1054
  props: {
992
1055
  disabled: {
993
1056
  type: "boolean",
994
- description: "Whether sub-menu is disabled"
1057
+ description: "Whether sub-menu is disabled",
1058
+ defaultValueHint: false
995
1059
  },
996
1060
  key: {
997
1061
  type: "string",
@@ -1008,13 +1072,19 @@ var subMenuMeta = {
1008
1072
  children: {
1009
1073
  type: "slot",
1010
1074
  allowedComponents: ["AntdMenuItem", "AntdMenuDivider", "AntdMenuItemGroup", "AntdSubMenu"],
1011
- defaultValue: [{
1012
- type: "component",
1013
- name: "AntdMenuItem",
1014
- props: {
1015
- key: "subMenuItemKey"
1016
- }
1017
- }]
1075
+ defaultValue: /*#__PURE__*/[1, 2].map(function (i) {
1076
+ return {
1077
+ type: "component",
1078
+ name: "AntdMenuItem",
1079
+ props: {
1080
+ key: "subMenuItemKey" + i,
1081
+ children: [{
1082
+ type: "text",
1083
+ value: "Sub-menu item " + i
1084
+ }]
1085
+ }
1086
+ };
1087
+ })
1018
1088
  }
1019
1089
  },
1020
1090
  importPath: "antd/lib/menu/SubMenu",
@@ -1039,20 +1109,24 @@ var menuMeta = {
1039
1109
  },
1040
1110
  forceSubMenuRender: {
1041
1111
  type: "boolean",
1042
- description: "Render submenu into DOM before it becomes visible"
1112
+ description: "Render submenu into DOM before it becomes visible",
1113
+ defaultValueHint: false
1043
1114
  },
1044
1115
  inlineIndent: {
1045
1116
  type: "number",
1046
- description: "Indent (in pixels) of inline menu items on each level"
1117
+ description: "Indent (in pixels) of inline menu items on each level",
1118
+ defaultValueHint: 24
1047
1119
  },
1048
1120
  mode: {
1049
1121
  type: "choice",
1050
1122
  options: ["horizontal", "vertical", "inline"],
1051
- description: "Type of menu"
1123
+ description: "Type of menu",
1124
+ defaultValueHint: "vertical"
1052
1125
  },
1053
1126
  multiple: {
1054
1127
  type: "boolean",
1055
- description: "Allows selection of multiple items"
1128
+ description: "Allows selection of multiple items",
1129
+ defaultValueHint: false
1056
1130
  },
1057
1131
  openKeys: {
1058
1132
  type: "choice",
@@ -1076,7 +1150,8 @@ var menuMeta = {
1076
1150
  },
1077
1151
  selectable: {
1078
1152
  type: "boolean",
1079
- description: "Allows selecting menu items"
1153
+ description: "Allows selecting menu items",
1154
+ defaultValueHint: true
1080
1155
  },
1081
1156
  selectedKeys: {
1082
1157
  type: "choice",
@@ -1096,21 +1171,25 @@ var menuMeta = {
1096
1171
  },
1097
1172
  subMenuCloseDelay: {
1098
1173
  type: "number",
1099
- description: "Delay time to hide submenu when mouse leaves (in seconds)"
1174
+ description: "Delay time to hide submenu when mouse leaves (in seconds)",
1175
+ defaultValueHint: 0.1
1100
1176
  },
1101
1177
  subMenuOpenDelay: {
1102
1178
  type: "number",
1103
- description: "Delay time to show submenu when mouse enters, (in seconds)"
1179
+ description: "Delay time to show submenu when mouse enters, (in seconds)",
1180
+ defaultValueHint: 0
1104
1181
  },
1105
1182
  theme: {
1106
1183
  type: "choice",
1107
1184
  options: ["light", "dark"],
1108
- description: "Color theme of the menu"
1185
+ description: "Color theme of the menu",
1186
+ defaultValueHint: "light"
1109
1187
  },
1110
1188
  triggerSubMenuAction: {
1111
1189
  type: "choice",
1112
1190
  options: ["hover", "click"],
1113
- description: "Which action can trigger submenu open/close"
1191
+ description: "Which action can trigger submenu open/close",
1192
+ defaultValueHint: "hover"
1114
1193
  },
1115
1194
  children: {
1116
1195
  type: "slot",
@@ -1142,7 +1221,8 @@ var optionMeta = {
1142
1221
  props: {
1143
1222
  disabled: {
1144
1223
  type: "boolean",
1145
- description: "Disable this option"
1224
+ description: "Disable this option",
1225
+ defaultValueHint: false
1146
1226
  },
1147
1227
  title: {
1148
1228
  type: "string",
@@ -1212,25 +1292,43 @@ var selectMeta = {
1212
1292
  name: "AntdSelect",
1213
1293
  displayName: "Antd Select",
1214
1294
  props: {
1295
+ allowClear: {
1296
+ type: "boolean",
1297
+ description: "Show clear button",
1298
+ defaultValueHint: false
1299
+ },
1300
+ autoClearSearchValue: {
1301
+ type: "boolean",
1302
+ description: "Whether the current search will be cleared on selecting an item",
1303
+ defaultValueHint: true,
1304
+ hidden: function hidden(props) {
1305
+ return props.mode !== "multiple" && props.mode !== "tags";
1306
+ }
1307
+ },
1215
1308
  autoFocus: {
1216
1309
  type: "boolean",
1217
- description: "Get focus by default"
1310
+ description: "Get focus by default",
1311
+ defaultValueHint: false
1218
1312
  },
1219
1313
  bordered: {
1220
1314
  type: "boolean",
1221
- description: "Whether has border style"
1315
+ description: "Whether has border style",
1316
+ defaultValueHint: true
1222
1317
  },
1223
1318
  disabled: {
1224
1319
  type: "boolean",
1225
- description: "Whether disabled select"
1320
+ description: "Whether disabled select",
1321
+ defaultValueHint: false
1226
1322
  },
1227
1323
  listHeight: {
1228
1324
  type: "number",
1229
- description: "Config popup height"
1325
+ description: "Config popup height",
1326
+ defaultValueHint: 256
1230
1327
  },
1231
1328
  loading: {
1232
1329
  type: "boolean",
1233
- description: "Indicate loading state"
1330
+ description: "Indicate loading state",
1331
+ defaultValueHint: false
1234
1332
  },
1235
1333
  mode: {
1236
1334
  type: "choice",
@@ -1241,7 +1339,8 @@ var selectMeta = {
1241
1339
  type: "boolean",
1242
1340
  editOnly: true,
1243
1341
  uncontrolledProp: "defaultOpen",
1244
- description: "Initial open state of dropdown"
1342
+ description: "Initial open state of dropdown",
1343
+ defaultValueHint: false
1245
1344
  },
1246
1345
  placeholder: {
1247
1346
  type: "slot",
@@ -1252,16 +1351,19 @@ var selectMeta = {
1252
1351
  },
1253
1352
  showArrow: {
1254
1353
  type: "boolean",
1255
- description: "Whether to show the drop-down arrow"
1354
+ description: "Whether to show the drop-down arrow",
1355
+ defaultValueHint: true
1256
1356
  },
1257
1357
  showSearch: {
1258
1358
  type: "boolean",
1259
- description: "Whether show search input in single mode"
1359
+ description: "Whether show search input in single mode",
1360
+ defaultValueHint: false
1260
1361
  },
1261
1362
  size: {
1262
1363
  type: "choice",
1263
1364
  options: ["large", "middle", "small"],
1264
- description: "Set mode of Select"
1365
+ description: "Set mode of Select",
1366
+ defaultValueHint: "middle"
1265
1367
  },
1266
1368
  value: {
1267
1369
  type: "choice",
@@ -1282,7 +1384,8 @@ var selectMeta = {
1282
1384
  },
1283
1385
  virtual: {
1284
1386
  type: "boolean",
1285
- description: "Disable virtual scroll when set to false"
1387
+ description: "Disable virtual scroll when set to false",
1388
+ defaultValueHint: true
1286
1389
  },
1287
1390
  children: {
1288
1391
  type: "slot",
@@ -1348,31 +1451,38 @@ var sliderMeta = {
1348
1451
  props: {
1349
1452
  max: {
1350
1453
  type: "number",
1351
- description: "The maximum value the slider can slide to"
1454
+ description: "The maximum value the slider can slide to",
1455
+ defaultValueHint: 100
1352
1456
  },
1353
1457
  min: {
1354
1458
  type: "number",
1355
- description: "The minimum value the slider can slide to"
1459
+ description: "The minimum value the slider can slide to",
1460
+ defaultValueHint: 0
1356
1461
  },
1357
1462
  included: {
1358
1463
  type: "boolean",
1359
- description: "Make effect when marks not null, true means containment and false means coordinative"
1464
+ description: "Make effect when marks not null, true means containment and false means coordinative",
1465
+ defaultValueHint: true
1360
1466
  },
1361
1467
  disabled: {
1362
1468
  type: "boolean",
1363
- description: "If true, the slider will not be interactable"
1469
+ description: "If true, the slider will not be interactable",
1470
+ defaultValueHint: false
1364
1471
  },
1365
1472
  range: {
1366
1473
  type: "boolean",
1367
- description: "Dual thumb mode"
1474
+ description: "Dual thumb mode",
1475
+ defaultValueHint: false
1368
1476
  },
1369
1477
  reverse: {
1370
1478
  type: "boolean",
1371
- description: "Reverse the component"
1479
+ description: "Reverse the component",
1480
+ defaultValueHint: false
1372
1481
  },
1373
1482
  vertical: {
1374
1483
  type: "boolean",
1375
- description: "If true, the slider will be vertical"
1484
+ description: "If true, the slider will be vertical",
1485
+ defaultValueHint: false
1376
1486
  },
1377
1487
  value: {
1378
1488
  type: "number",
@@ -1421,21 +1531,25 @@ var switchMeta = {
1421
1531
  props: {
1422
1532
  autoFocus: {
1423
1533
  type: "boolean",
1424
- description: "Whether get focus when component mounted"
1534
+ description: "Whether get focus when component mounted",
1535
+ defaultValueHint: false
1425
1536
  },
1426
1537
  checked: {
1427
1538
  type: "boolean",
1428
1539
  editOnly: true,
1429
1540
  uncontrolledProp: "defaultChecked",
1430
- description: "Whether to set the initial state"
1541
+ description: "Whether to set the initial state",
1542
+ defaultValueHint: false
1431
1543
  },
1432
1544
  disabled: {
1433
1545
  type: "boolean",
1434
- description: "Disable switch"
1546
+ description: "Disable switch",
1547
+ defaultValueHint: false
1435
1548
  },
1436
1549
  loading: {
1437
1550
  type: "boolean",
1438
- description: "Loading state of switch"
1551
+ description: "Loading state of switch",
1552
+ defaultValueHint: false
1439
1553
  },
1440
1554
  checkedChildren: {
1441
1555
  type: "slot",
@@ -1450,7 +1564,8 @@ var switchMeta = {
1450
1564
  size: {
1451
1565
  type: "choice",
1452
1566
  options: ["small", "default"],
1453
- description: "The size of the Switch"
1567
+ description: "The size of the Switch",
1568
+ defaultValueHint: "default"
1454
1569
  }
1455
1570
  },
1456
1571
  importPath: "antd",
@@ -1464,6 +1579,186 @@ function registerSwitch(loader, customSwitchMeta) {
1464
1579
  doRegisterComponent(antd.Switch, customSwitchMeta != null ? customSwitchMeta : switchMeta);
1465
1580
  }
1466
1581
 
1582
+ var tabPaneMeta = {
1583
+ name: "AntdTabPane",
1584
+ displayName: "Antd Tab Pane",
1585
+ props: {
1586
+ tab: {
1587
+ type: "slot",
1588
+ defaultValue: [{
1589
+ type: "text",
1590
+ value: "Tab"
1591
+ }]
1592
+ },
1593
+ key: {
1594
+ type: "string",
1595
+ description: "Unique TabPane's key",
1596
+ defaultValue: "tabPaneKey"
1597
+ },
1598
+ closable: {
1599
+ type: "boolean",
1600
+ description: "Wether the tab can be closed or not. Only works for editable tabs",
1601
+ defaultValueHint: true
1602
+ },
1603
+ disabled: {
1604
+ type: "boolean",
1605
+ description: "Disabled state of tab",
1606
+ defaultValueHint: false
1607
+ },
1608
+ forceRender: {
1609
+ type: "boolean",
1610
+ description: "Forced render of content in tabs, not lazy render after clicking on tabs",
1611
+ defaultValueHint: false
1612
+ },
1613
+ closeIcon: {
1614
+ type: "slot",
1615
+ hidePlaceholder: true
1616
+ },
1617
+ children: {
1618
+ type: "slot",
1619
+ defaultValue: [{
1620
+ type: "text",
1621
+ value: "Tab Content"
1622
+ }]
1623
+ }
1624
+ },
1625
+ parentComponentName: "AntdTabs",
1626
+ importPath: "rc-tabs",
1627
+ importName: "TabPane"
1628
+ };
1629
+ function registerTabPane(loader, customTabPaneMeta) {
1630
+ var doRegisterComponent = function doRegisterComponent() {
1631
+ return loader ? loader.registerComponent.apply(loader, arguments) : registerComponent.apply(void 0, arguments);
1632
+ };
1633
+
1634
+ doRegisterComponent(rcTabs.TabPane, customTabPaneMeta != null ? customTabPaneMeta : tabPaneMeta);
1635
+ }
1636
+ function Tabs(props) {
1637
+ var leftTabBarExtraContent = props.leftTabBarExtraContent,
1638
+ rightTabBarExtraContent = props.rightTabBarExtraContent,
1639
+ otherProps = _objectWithoutPropertiesLoose(props, ["leftTabBarExtraContent", "rightTabBarExtraContent"]);
1640
+
1641
+ return React.createElement(antd.Tabs, Object.assign({}, otherProps, {
1642
+ tabBarExtraContent: {
1643
+ left: leftTabBarExtraContent,
1644
+ right: rightTabBarExtraContent
1645
+ }
1646
+ }));
1647
+ }
1648
+ var tabsMeta = {
1649
+ name: "AntdTabs",
1650
+ displayName: "Antd Tabs",
1651
+ props: {
1652
+ type: {
1653
+ type: "choice",
1654
+ options: ["line", "card", "editable-card"],
1655
+ defaultValueHint: "line",
1656
+ description: "Basic style of tabs"
1657
+ },
1658
+ addIcon: {
1659
+ type: "slot",
1660
+ hidePlaceholder: true
1661
+ },
1662
+ animated: {
1663
+ type: "object",
1664
+ hidden: function hidden(props) {
1665
+ return props.tabPosition !== "top" && !!props.tabPosition;
1666
+ },
1667
+ defaultValueHint: {
1668
+ inkBar: true,
1669
+ tabPane: false
1670
+ },
1671
+ description: "Whether to change tabs with animation. Can be either a boolean or specify for inkBar and tabPane"
1672
+ },
1673
+ hideAdd: {
1674
+ type: "boolean",
1675
+ hidden: function hidden(props) {
1676
+ return props.type !== "editable-card";
1677
+ },
1678
+ defaultValueHint: false,
1679
+ description: "Hide plus icon or not"
1680
+ },
1681
+ moreIcon: {
1682
+ type: "slot",
1683
+ hidePlaceholder: true
1684
+ },
1685
+ size: {
1686
+ type: "choice",
1687
+ options: ["large", "default", "small"],
1688
+ defaultValueHint: "default",
1689
+ description: "Preset tab bar size"
1690
+ },
1691
+ tabPosition: {
1692
+ type: "choice",
1693
+ options: ["top", "right", "bottom", "left"],
1694
+ defaultValueHint: "top",
1695
+ description: "Position of tabs"
1696
+ },
1697
+ tabBarGutter: {
1698
+ type: "number",
1699
+ description: "The gap between tabs"
1700
+ },
1701
+ centered: {
1702
+ type: "boolean",
1703
+ description: "Centers tabs",
1704
+ defaultValueHint: false
1705
+ },
1706
+ leftTabBarExtraContent: {
1707
+ type: "slot",
1708
+ hidePlaceholder: true
1709
+ },
1710
+ rightTabBarExtraContent: {
1711
+ type: "slot",
1712
+ hidePlaceholder: true
1713
+ },
1714
+ tabBarStyle: {
1715
+ type: "object",
1716
+ description: "CSS for the Tab Bar style"
1717
+ },
1718
+ activeKey: {
1719
+ type: "choice",
1720
+ editOnly: true,
1721
+ uncontrolledProp: "defaultActiveKey",
1722
+ description: "Initial active TabPane's key",
1723
+ options: function options(props) {
1724
+ var options = new Set();
1725
+ traverseReactEltTree(props.children, function (elt) {
1726
+ if ((elt == null ? void 0 : elt.type) === rcTabs.TabPane && typeof (elt == null ? void 0 : elt.key) === "string") {
1727
+ options.add(elt.key);
1728
+ }
1729
+ });
1730
+ return Array.from(options.keys());
1731
+ }
1732
+ },
1733
+ children: {
1734
+ type: "slot",
1735
+ allowedComponents: ["AntdTabPane"],
1736
+ defaultValue: [{
1737
+ type: "component",
1738
+ name: "AntdTabPane",
1739
+ props: {
1740
+ key: "1"
1741
+ }
1742
+ }, {
1743
+ type: "component",
1744
+ name: "AntdTabPane",
1745
+ props: {
1746
+ key: "2"
1747
+ }
1748
+ }]
1749
+ }
1750
+ },
1751
+ importPath: "@plasmicpkgs/antd",
1752
+ importName: "Tabs"
1753
+ };
1754
+ function registerTabs(loader, customTabsMeta) {
1755
+ var doRegisterComponent = function doRegisterComponent() {
1756
+ return loader ? loader.registerComponent.apply(loader, arguments) : registerComponent.apply(void 0, arguments);
1757
+ };
1758
+
1759
+ doRegisterComponent(Tabs, customTabsMeta != null ? customTabsMeta : tabsMeta);
1760
+ }
1761
+
1467
1762
  function registerAll(loader) {
1468
1763
  registerButton(loader);
1469
1764
  registerSlider(loader);
@@ -1488,10 +1783,13 @@ function registerAll(loader) {
1488
1783
  registerInputSearch(loader);
1489
1784
  registerInputPassword(loader);
1490
1785
  registerInputGroup(loader);
1786
+ registerTabPane(loader);
1787
+ registerTabs(loader);
1491
1788
  }
1492
1789
 
1493
1790
  exports.Dropdown = Dropdown;
1494
1791
  exports.Slider = Slider;
1792
+ exports.Tabs = Tabs;
1495
1793
  exports.buttonMeta = buttonMeta;
1496
1794
  exports.carouselMeta = carouselMeta;
1497
1795
  exports.checkboxGroupMeta = checkboxGroupMeta;
@@ -1535,8 +1833,12 @@ exports.registerSelect = registerSelect;
1535
1833
  exports.registerSlider = registerSlider;
1536
1834
  exports.registerSubMenu = registerSubMenu;
1537
1835
  exports.registerSwitch = registerSwitch;
1836
+ exports.registerTabPane = registerTabPane;
1837
+ exports.registerTabs = registerTabs;
1538
1838
  exports.selectMeta = selectMeta;
1539
1839
  exports.sliderMeta = sliderMeta;
1540
1840
  exports.subMenuMeta = subMenuMeta;
1541
1841
  exports.switchMeta = switchMeta;
1842
+ exports.tabPaneMeta = tabPaneMeta;
1843
+ exports.tabsMeta = tabsMeta;
1542
1844
  //# sourceMappingURL=antd.cjs.development.js.map