@plasmicpkgs/antd 0.0.3 → 0.0.7

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
@@ -262,6 +262,7 @@ var checkboxGroupMeta = {
262
262
  },
263
263
  importPath: "antd/lib/checkbox/Group",
264
264
  importName: "CheckboxGroup",
265
+ parentComponentName: "AntdCheckbox",
265
266
  isDefaultExport: true
266
267
  };
267
268
  function registerCheckboxGroup(loader, customCheckboxGroupMeta) {
@@ -368,6 +369,7 @@ var collapstePanelMeta = {
368
369
  },
369
370
  importPath: "antd/lib/collapse/CollapsePanel",
370
371
  importName: "CollapsePanel",
372
+ parentComponentName: "AntdCollapse",
371
373
  isDefaultExport: true
372
374
  };
373
375
  function registerCollapsePanel(loader, customCollapsePanelMeta) {
@@ -491,7 +493,8 @@ var dropdownMeta = {
491
493
  },
492
494
  visible: {
493
495
  type: "boolean",
494
- description: "Whether the dropdown menu is currently visible"
496
+ description: "Toggle visibility of dropdown menu in Plasmic Editor",
497
+ editOnly: true
495
498
  },
496
499
  children: {
497
500
  type: "slot",
@@ -553,7 +556,8 @@ var dropdownButtonMeta = {
553
556
  },
554
557
  visible: {
555
558
  type: "boolean",
556
- description: "Whether the dropdown menu is currently visible"
559
+ description: "Toggle visibility of dropdown menu in Plasmic Editor",
560
+ editOnly: true
557
561
  },
558
562
  children: {
559
563
  type: "slot",
@@ -565,6 +569,7 @@ var dropdownButtonMeta = {
565
569
  },
566
570
  importPath: "antd/lib/dropdown/dropdown-button",
567
571
  importName: "DropdownButton",
572
+ parentComponentName: "AntdDropdown",
568
573
  isDefaultExport: true
569
574
  };
570
575
  function registerDropdownButton(loader, customDropdownButtonMeta) {
@@ -688,7 +693,8 @@ var inputTextAreaMeta = {
688
693
  },
689
694
  importPath: "antd/lib/input/TextArea",
690
695
  importName: "TextArea",
691
- isDefaultExport: true
696
+ isDefaultExport: true,
697
+ parentComponentName: "AntdInput"
692
698
  };
693
699
  function registerInputTextArea(loader, customInputTextAreaMeta) {
694
700
  var doRegisterComponent = function doRegisterComponent() {
@@ -762,7 +768,8 @@ var inputSearchMeta = {
762
768
  },
763
769
  importPath: "antd/lib/input/Search",
764
770
  importName: "Search",
765
- isDefaultExport: true
771
+ isDefaultExport: true,
772
+ parentComponentName: "AntdInput"
766
773
  };
767
774
  function registerInputSearch(loader, customInputSearchMeta) {
768
775
  var doRegisterComponent = function doRegisterComponent() {
@@ -832,7 +839,8 @@ var inputPasswordMeta = {
832
839
  },
833
840
  importPath: "antd/lib/input/Password",
834
841
  importName: "Password",
835
- isDefaultExport: true
842
+ isDefaultExport: true,
843
+ parentComponentName: "AntdInput"
836
844
  };
837
845
  function registerInputPassword(loader, customInputPasswordMeta) {
838
846
  var doRegisterComponent = function doRegisterComponent() {
@@ -867,7 +875,8 @@ var inputGroupMeta = {
867
875
  },
868
876
  importPath: "antd/lib/input/Group",
869
877
  importName: "InputGroup",
870
- isDefaultExport: true
878
+ isDefaultExport: true,
879
+ parentComponentName: "AntdInput"
871
880
  };
872
881
  function registerInputGroup(loader, customInputGroupMeta) {
873
882
  var doRegisterComponent = function doRegisterComponent() {
@@ -888,7 +897,8 @@ var menuDividerMeta = {
888
897
  },
889
898
  importPath: "antd/lib/menu/MenuDivider",
890
899
  importName: "MenuDivider",
891
- isDefaultExport: true
900
+ isDefaultExport: true,
901
+ parentComponentName: "AntdMenu"
892
902
  };
893
903
  function registerMenuDivider(loader, customMenuDividerMeta) {
894
904
  var doRegisterComponent = function doRegisterComponent() {
@@ -911,7 +921,8 @@ var menuItemMeta = {
911
921
  },
912
922
  key: {
913
923
  type: "string",
914
- description: "Unique ID of the menu item"
924
+ description: "Unique ID of the menu item",
925
+ defaultValue: "menuItemKey"
915
926
  },
916
927
  title: {
917
928
  type: "string",
@@ -927,7 +938,8 @@ var menuItemMeta = {
927
938
  },
928
939
  importPath: "antd/lib/menu/MenuItem",
929
940
  importName: "MenuItem",
930
- isDefaultExport: true
941
+ isDefaultExport: true,
942
+ parentComponentName: "AntdMenu"
931
943
  };
932
944
  function registerMenuItem(loader, customMenuItemMeta) {
933
945
  var doRegisterComponent = function doRegisterComponent() {
@@ -957,7 +969,8 @@ var menuItemGroupMeta = {
957
969
  }
958
970
  },
959
971
  importPath: "rc-menu",
960
- importName: "ItemGroup"
972
+ importName: "ItemGroup",
973
+ parentComponentName: "AntdMenu"
961
974
  };
962
975
  function registerMenuItemGroup(loader, customMenuItemGroupMeta) {
963
976
  var doRegisterComponent = function doRegisterComponent() {
@@ -976,7 +989,8 @@ var subMenuMeta = {
976
989
  },
977
990
  key: {
978
991
  type: "string",
979
- description: "Unique ID of the sub-menu"
992
+ description: "Unique ID of the sub-menu",
993
+ defaultValue: "subMenuKey"
980
994
  },
981
995
  title: {
982
996
  type: "slot",
@@ -990,13 +1004,17 @@ var subMenuMeta = {
990
1004
  allowedComponents: ["AntdMenuItem", "AntdMenuDivider", "AntdMenuItemGroup", "AntdSubMenu"],
991
1005
  defaultValue: [{
992
1006
  type: "component",
993
- name: "AntdMenuItem"
1007
+ name: "AntdMenuItem",
1008
+ props: {
1009
+ key: "subMenuItemKey"
1010
+ }
994
1011
  }]
995
1012
  }
996
1013
  },
997
1014
  importPath: "antd/lib/menu/SubMenu",
998
1015
  importName: "SubMenu",
999
- isDefaultExport: true
1016
+ isDefaultExport: true,
1017
+ parentComponentName: "AntdMenu"
1000
1018
  };
1001
1019
  function registerSubMenu(loader, customSubMenuMeta) {
1002
1020
  var doRegisterComponent = function doRegisterComponent() {
@@ -1010,7 +1028,8 @@ var menuMeta = {
1010
1028
  displayName: "Antd Menu",
1011
1029
  props: {
1012
1030
  expandIcon: {
1013
- type: "slot"
1031
+ type: "slot",
1032
+ hidePlaceholder: true
1014
1033
  },
1015
1034
  forceSubMenuRender: {
1016
1035
  type: "boolean",
@@ -1038,7 +1057,7 @@ var menuMeta = {
1038
1057
  options: function options(componentProps) {
1039
1058
  var options = new Set();
1040
1059
  traverseReactEltTree(componentProps.children, function (elt) {
1041
- if ([SubMenu, MenuItem].includes(elt == null ? void 0 : elt.type) && typeof (elt == null ? void 0 : elt.key) === "string") {
1060
+ if ((elt == null ? void 0 : elt.type) === SubMenu && typeof (elt == null ? void 0 : elt.key) === "string") {
1042
1061
  options.add(elt.key);
1043
1062
  }
1044
1063
  });
@@ -1046,7 +1065,8 @@ var menuMeta = {
1046
1065
  }
1047
1066
  },
1048
1067
  overflowedIndicator: {
1049
- type: "slot"
1068
+ type: "slot",
1069
+ hidePlaceholder: true
1050
1070
  },
1051
1071
  selectable: {
1052
1072
  type: "boolean",
@@ -1139,7 +1159,8 @@ var optionMeta = {
1139
1159
  }
1140
1160
  },
1141
1161
  importPath: "rc-select",
1142
- importName: "Option"
1162
+ importName: "Option",
1163
+ parentComponentName: "AntdSelect"
1143
1164
  };
1144
1165
  function registerOption(loader, customOptionMeta) {
1145
1166
  var doRegisterComponent = function doRegisterComponent() {
@@ -1170,7 +1191,8 @@ var optGroupMeta = {
1170
1191
  }
1171
1192
  },
1172
1193
  importPath: "rc-select",
1173
- importName: "OptGroup"
1194
+ importName: "OptGroup",
1195
+ parentComponentName: "AntdSelect"
1174
1196
  };
1175
1197
  function registerOptGroup(loader, customOptGroupMeta) {
1176
1198
  var doRegisterComponent = function doRegisterComponent() {
@@ -1301,8 +1323,13 @@ var Slider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1301
1323
  newProps.defaultValue = [defaultValue != null ? defaultValue : 0, defaultValue2 != null ? defaultValue2 : 0];
1302
1324
  }
1303
1325
  } else {
1304
- newProps.value = value;
1305
- newProps.defaultValue = defaultValue;
1326
+ if (typeof value === "number") {
1327
+ newProps.value = value;
1328
+ }
1329
+
1330
+ if (typeof defaultValue === "number") {
1331
+ newProps.defaultValue = defaultValue;
1332
+ }
1306
1333
  }
1307
1334
 
1308
1335
  return React.createElement(Slider$1, Object.assign({}, newProps, {
@@ -1359,7 +1386,8 @@ var sliderMeta = {
1359
1386
  },
1360
1387
  step: {
1361
1388
  type: "number",
1362
- description: "The granularity the slider can step through values. Must greater than 0, and be divided by (max - min)." + " When marks no null, step can be null"
1389
+ description: "The granularity the slider can step through values. Must greater than 0, and be divided by (max - min)." + " When marks no null, step can be null",
1390
+ defaultValueHint: 1
1363
1391
  },
1364
1392
  marks: {
1365
1393
  type: "object",