@plasmicpkgs/antd 0.0.4 → 0.0.8

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.
@@ -268,6 +268,7 @@ var checkboxGroupMeta = {
268
268
  },
269
269
  importPath: "antd/lib/checkbox/Group",
270
270
  importName: "CheckboxGroup",
271
+ parentComponentName: "AntdCheckbox",
271
272
  isDefaultExport: true
272
273
  };
273
274
  function registerCheckboxGroup(loader, customCheckboxGroupMeta) {
@@ -374,6 +375,7 @@ var collapstePanelMeta = {
374
375
  },
375
376
  importPath: "antd/lib/collapse/CollapsePanel",
376
377
  importName: "CollapsePanel",
378
+ parentComponentName: "AntdCollapse",
377
379
  isDefaultExport: true
378
380
  };
379
381
  function registerCollapsePanel(loader, customCollapsePanelMeta) {
@@ -497,7 +499,8 @@ var dropdownMeta = {
497
499
  },
498
500
  visible: {
499
501
  type: "boolean",
500
- description: "Whether the dropdown menu is currently visible"
502
+ description: "Toggle visibility of dropdown menu in Plasmic Editor",
503
+ editOnly: true
501
504
  },
502
505
  children: {
503
506
  type: "slot",
@@ -559,7 +562,8 @@ var dropdownButtonMeta = {
559
562
  },
560
563
  visible: {
561
564
  type: "boolean",
562
- description: "Whether the dropdown menu is currently visible"
565
+ description: "Toggle visibility of dropdown menu in Plasmic Editor",
566
+ editOnly: true
563
567
  },
564
568
  children: {
565
569
  type: "slot",
@@ -571,6 +575,7 @@ var dropdownButtonMeta = {
571
575
  },
572
576
  importPath: "antd/lib/dropdown/dropdown-button",
573
577
  importName: "DropdownButton",
578
+ parentComponentName: "AntdDropdown",
574
579
  isDefaultExport: true
575
580
  };
576
581
  function registerDropdownButton(loader, customDropdownButtonMeta) {
@@ -694,7 +699,8 @@ var inputTextAreaMeta = {
694
699
  },
695
700
  importPath: "antd/lib/input/TextArea",
696
701
  importName: "TextArea",
697
- isDefaultExport: true
702
+ isDefaultExport: true,
703
+ parentComponentName: "AntdInput"
698
704
  };
699
705
  function registerInputTextArea(loader, customInputTextAreaMeta) {
700
706
  var doRegisterComponent = function doRegisterComponent() {
@@ -768,7 +774,8 @@ var inputSearchMeta = {
768
774
  },
769
775
  importPath: "antd/lib/input/Search",
770
776
  importName: "Search",
771
- isDefaultExport: true
777
+ isDefaultExport: true,
778
+ parentComponentName: "AntdInput"
772
779
  };
773
780
  function registerInputSearch(loader, customInputSearchMeta) {
774
781
  var doRegisterComponent = function doRegisterComponent() {
@@ -838,7 +845,8 @@ var inputPasswordMeta = {
838
845
  },
839
846
  importPath: "antd/lib/input/Password",
840
847
  importName: "Password",
841
- isDefaultExport: true
848
+ isDefaultExport: true,
849
+ parentComponentName: "AntdInput"
842
850
  };
843
851
  function registerInputPassword(loader, customInputPasswordMeta) {
844
852
  var doRegisterComponent = function doRegisterComponent() {
@@ -873,7 +881,8 @@ var inputGroupMeta = {
873
881
  },
874
882
  importPath: "antd/lib/input/Group",
875
883
  importName: "InputGroup",
876
- isDefaultExport: true
884
+ isDefaultExport: true,
885
+ parentComponentName: "AntdInput"
877
886
  };
878
887
  function registerInputGroup(loader, customInputGroupMeta) {
879
888
  var doRegisterComponent = function doRegisterComponent() {
@@ -894,7 +903,8 @@ var menuDividerMeta = {
894
903
  },
895
904
  importPath: "antd/lib/menu/MenuDivider",
896
905
  importName: "MenuDivider",
897
- isDefaultExport: true
906
+ isDefaultExport: true,
907
+ parentComponentName: "AntdMenu"
898
908
  };
899
909
  function registerMenuDivider(loader, customMenuDividerMeta) {
900
910
  var doRegisterComponent = function doRegisterComponent() {
@@ -917,7 +927,8 @@ var menuItemMeta = {
917
927
  },
918
928
  key: {
919
929
  type: "string",
920
- description: "Unique ID of the menu item"
930
+ description: "Unique ID of the menu item",
931
+ defaultValue: "menuItemKey"
921
932
  },
922
933
  title: {
923
934
  type: "string",
@@ -933,7 +944,8 @@ var menuItemMeta = {
933
944
  },
934
945
  importPath: "antd/lib/menu/MenuItem",
935
946
  importName: "MenuItem",
936
- isDefaultExport: true
947
+ isDefaultExport: true,
948
+ parentComponentName: "AntdMenu"
937
949
  };
938
950
  function registerMenuItem(loader, customMenuItemMeta) {
939
951
  var doRegisterComponent = function doRegisterComponent() {
@@ -963,7 +975,8 @@ var menuItemGroupMeta = {
963
975
  }
964
976
  },
965
977
  importPath: "rc-menu",
966
- importName: "ItemGroup"
978
+ importName: "ItemGroup",
979
+ parentComponentName: "AntdMenu"
967
980
  };
968
981
  function registerMenuItemGroup(loader, customMenuItemGroupMeta) {
969
982
  var doRegisterComponent = function doRegisterComponent() {
@@ -982,7 +995,8 @@ var subMenuMeta = {
982
995
  },
983
996
  key: {
984
997
  type: "string",
985
- description: "Unique ID of the sub-menu"
998
+ description: "Unique ID of the sub-menu",
999
+ defaultValue: "subMenuKey"
986
1000
  },
987
1001
  title: {
988
1002
  type: "slot",
@@ -996,13 +1010,17 @@ var subMenuMeta = {
996
1010
  allowedComponents: ["AntdMenuItem", "AntdMenuDivider", "AntdMenuItemGroup", "AntdSubMenu"],
997
1011
  defaultValue: [{
998
1012
  type: "component",
999
- name: "AntdMenuItem"
1013
+ name: "AntdMenuItem",
1014
+ props: {
1015
+ key: "subMenuItemKey"
1016
+ }
1000
1017
  }]
1001
1018
  }
1002
1019
  },
1003
1020
  importPath: "antd/lib/menu/SubMenu",
1004
1021
  importName: "SubMenu",
1005
- isDefaultExport: true
1022
+ isDefaultExport: true,
1023
+ parentComponentName: "AntdMenu"
1006
1024
  };
1007
1025
  function registerSubMenu(loader, customSubMenuMeta) {
1008
1026
  var doRegisterComponent = function doRegisterComponent() {
@@ -1016,7 +1034,8 @@ var menuMeta = {
1016
1034
  displayName: "Antd Menu",
1017
1035
  props: {
1018
1036
  expandIcon: {
1019
- type: "slot"
1037
+ type: "slot",
1038
+ hidePlaceholder: true
1020
1039
  },
1021
1040
  forceSubMenuRender: {
1022
1041
  type: "boolean",
@@ -1044,7 +1063,7 @@ var menuMeta = {
1044
1063
  options: function options(componentProps) {
1045
1064
  var options = new Set();
1046
1065
  traverseReactEltTree(componentProps.children, function (elt) {
1047
- if ([SubMenu, MenuItem].includes(elt == null ? void 0 : elt.type) && typeof (elt == null ? void 0 : elt.key) === "string") {
1066
+ if ((elt == null ? void 0 : elt.type) === SubMenu && typeof (elt == null ? void 0 : elt.key) === "string") {
1048
1067
  options.add(elt.key);
1049
1068
  }
1050
1069
  });
@@ -1052,7 +1071,8 @@ var menuMeta = {
1052
1071
  }
1053
1072
  },
1054
1073
  overflowedIndicator: {
1055
- type: "slot"
1074
+ type: "slot",
1075
+ hidePlaceholder: true
1056
1076
  },
1057
1077
  selectable: {
1058
1078
  type: "boolean",
@@ -1145,7 +1165,8 @@ var optionMeta = {
1145
1165
  }
1146
1166
  },
1147
1167
  importPath: "rc-select",
1148
- importName: "Option"
1168
+ importName: "Option",
1169
+ parentComponentName: "AntdSelect"
1149
1170
  };
1150
1171
  function registerOption(loader, customOptionMeta) {
1151
1172
  var doRegisterComponent = function doRegisterComponent() {
@@ -1176,7 +1197,8 @@ var optGroupMeta = {
1176
1197
  }
1177
1198
  },
1178
1199
  importPath: "rc-select",
1179
- importName: "OptGroup"
1200
+ importName: "OptGroup",
1201
+ parentComponentName: "AntdSelect"
1180
1202
  };
1181
1203
  function registerOptGroup(loader, customOptGroupMeta) {
1182
1204
  var doRegisterComponent = function doRegisterComponent() {
@@ -1307,8 +1329,13 @@ var Slider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1307
1329
  newProps.defaultValue = [defaultValue != null ? defaultValue : 0, defaultValue2 != null ? defaultValue2 : 0];
1308
1330
  }
1309
1331
  } else {
1310
- newProps.value = value;
1311
- newProps.defaultValue = defaultValue;
1332
+ if (typeof value === "number") {
1333
+ newProps.value = value;
1334
+ }
1335
+
1336
+ if (typeof defaultValue === "number") {
1337
+ newProps.defaultValue = defaultValue;
1338
+ }
1312
1339
  }
1313
1340
 
1314
1341
  return React.createElement(antd.Slider, Object.assign({}, newProps, {