@plasmicpkgs/antd 2.0.37 → 2.0.39

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 (34) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/package.json +3 -13
  3. package/skinny/{customControls-82aa5d0c.js → customControls-fb0b7e5f.js} +4 -2
  4. package/skinny/{customControls-82aa5d0c.js.map → customControls-fb0b7e5f.js.map} +1 -1
  5. package/skinny/registerButton.js +13 -5
  6. package/skinny/registerButton.js.map +1 -1
  7. package/skinny/registerCarousel.js +13 -5
  8. package/skinny/registerCarousel.js.map +1 -1
  9. package/skinny/registerCheckbox.js +25 -12
  10. package/skinny/registerCheckbox.js.map +1 -1
  11. package/skinny/registerCollapse.js +25 -12
  12. package/skinny/registerCollapse.js.map +1 -1
  13. package/skinny/registerDropdown.js +24 -11
  14. package/skinny/registerDropdown.js.map +1 -1
  15. package/skinny/registerInput.js +38 -17
  16. package/skinny/registerInput.js.map +1 -1
  17. package/skinny/registerMenu.js +41 -22
  18. package/skinny/registerMenu.js.map +1 -1
  19. package/skinny/registerOption.js +16 -7
  20. package/skinny/registerOption.js.map +1 -1
  21. package/skinny/registerRate.js +13 -5
  22. package/skinny/registerRate.js.map +1 -1
  23. package/skinny/registerSelect.js +17 -9
  24. package/skinny/registerSelect.js.map +1 -1
  25. package/skinny/registerSlider.js +17 -7
  26. package/skinny/registerSlider.js.map +1 -1
  27. package/skinny/registerSwitch.js +13 -5
  28. package/skinny/registerSwitch.js.map +1 -1
  29. package/skinny/registerTable.js +31 -16
  30. package/skinny/registerTable.js.map +1 -1
  31. package/skinny/registerTabs.js +31 -18
  32. package/skinny/registerTabs.js.map +1 -1
  33. package/skinny/registerable.js +1 -0
  34. package/skinny/registerable.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicpkgs/antd",
3
- "version": "2.0.37",
3
+ "version": "2.0.39",
4
4
  "description": "Plasmic registration calls for antd components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,16 +25,6 @@
25
25
  "dist",
26
26
  "skinny"
27
27
  ],
28
- "exports": {
29
- ".": {
30
- "require": "./dist/index.js",
31
- "import": "./dist/antd.esm.js"
32
- },
33
- "./skinny/register*": {
34
- "import": "./skinny/register*.js"
35
- },
36
- "./dist/antd.css": "./dist/antd.css"
37
- },
38
28
  "size-limit": [
39
29
  {
40
30
  "path": "dist/antd.cjs.production.min.js",
@@ -57,7 +47,7 @@
57
47
  "antd": "^4.19.5"
58
48
  },
59
49
  "devDependencies": {
60
- "@plasmicapp/host": "1.0.120",
50
+ "@plasmicapp/host": "1.0.122",
61
51
  "@size-limit/preset-small-lib": "^4.11.0",
62
52
  "@types/node": "^14.0.26",
63
53
  "react": "^18.2.0",
@@ -72,5 +62,5 @@
72
62
  "@plasmicapp/host": ">=1.0.0",
73
63
  "react": ">=16.8.0"
74
64
  },
75
- "gitHead": "2cb3089f8d7cc316d0bade8890694f2c7ca6ccc7"
65
+ "gitHead": "96b7db457fb8ad72167bc8a793d2718406d763a5"
76
66
  }
@@ -1,3 +1,5 @@
1
+ 'use strict';
2
+
1
3
  function traverseReactEltTree(children, callback) {
2
4
  const rec = (elts) => {
3
5
  (Array.isArray(elts) ? elts : [elts]).forEach((elt) => {
@@ -16,5 +18,5 @@ function traverseReactEltTree(children, callback) {
16
18
  rec(children);
17
19
  }
18
20
 
19
- export { traverseReactEltTree as t };
20
- //# sourceMappingURL=customControls-82aa5d0c.js.map
21
+ exports.traverseReactEltTree = traverseReactEltTree;
22
+ //# sourceMappingURL=customControls-fb0b7e5f.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"customControls-82aa5d0c.js","sources":["../src/customControls.ts"],"sourcesContent":["import type React from \"react\";\n\ntype ReactElt = {\n children: ReactElt | ReactElt[];\n props: {\n children: ReactElt | ReactElt[];\n [prop: string]: any;\n } | null;\n type: React.ComponentType<any> | null;\n key: string | null;\n} | null;\n\n/**\n * Traverses the tree of elements from a `React.createElement`. Notice we can't\n * traverse elements created within the children's render function since this is\n * the tree before rendering.\n */\nexport function traverseReactEltTree(\n children: React.ReactNode,\n callback: (elt: ReactElt) => void\n) {\n const rec = (elts: ReactElt | ReactElt[] | null) => {\n (Array.isArray(elts) ? elts : [elts]).forEach((elt) => {\n if (elt) {\n callback(elt);\n if (elt.children) {\n rec(elt.children);\n }\n if (elt.props?.children && elt.props.children !== elt.children) {\n rec(elt.props.children);\n }\n }\n });\n };\n rec(children as any);\n}\n"],"names":[],"mappings":"AAiBO,SAAA,oBAAA,CACL,UACA,QACA,EAAA;AACA,EAAM,MAAA,GAAA,GAAM,CAAC,IAAuC,KAAA;AAClD,IAAC,CAAA,KAAA,CAAM,OAAQ,CAAA,IAAI,CAAI,GAAA,IAAA,GAAO,CAAC,IAAI,CAAA,EAAG,OAAQ,CAAA,CAAC,GAAQ,KAAA;AAtB3D,MAAA,IAAA,EAAA,CAAA;AAuBM,MAAA,IAAI,GAAK,EAAA;AACP,QAAA,QAAA,CAAS,GAAG,CAAA,CAAA;AACZ,QAAA,IAAI,IAAI,QAAU,EAAA;AAChB,UAAA,GAAA,CAAI,IAAI,QAAQ,CAAA,CAAA;AAAA,SAClB;AACA,QAAI,IAAA,CAAA,CAAA,EAAA,GAAA,GAAA,CAAI,UAAJ,IAAW,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,QAAA,KAAY,IAAI,KAAM,CAAA,QAAA,KAAa,IAAI,QAAU,EAAA;AAC9D,UAAI,GAAA,CAAA,GAAA,CAAI,MAAM,QAAQ,CAAA,CAAA;AAAA,SACxB;AAAA,OACF;AAAA,KACD,CAAA,CAAA;AAAA,GACH,CAAA;AACA,EAAA,GAAA,CAAI,QAAe,CAAA,CAAA;AACrB;;;;"}
1
+ {"version":3,"file":"customControls-fb0b7e5f.js","sources":["../src/customControls.ts"],"sourcesContent":["import type React from \"react\";\n\ntype ReactElt = {\n children: ReactElt | ReactElt[];\n props: {\n children: ReactElt | ReactElt[];\n [prop: string]: any;\n } | null;\n type: React.ComponentType<any> | null;\n key: string | null;\n} | null;\n\n/**\n * Traverses the tree of elements from a `React.createElement`. Notice we can't\n * traverse elements created within the children's render function since this is\n * the tree before rendering.\n */\nexport function traverseReactEltTree(\n children: React.ReactNode,\n callback: (elt: ReactElt) => void\n) {\n const rec = (elts: ReactElt | ReactElt[] | null) => {\n (Array.isArray(elts) ? elts : [elts]).forEach((elt) => {\n if (elt) {\n callback(elt);\n if (elt.children) {\n rec(elt.children);\n }\n if (elt.props?.children && elt.props.children !== elt.children) {\n rec(elt.props.children);\n }\n }\n });\n };\n rec(children as any);\n}\n"],"names":[],"mappings":";;AAiBO,SAAA,oBAAA,CACL,UACA,QACA,EAAA;AACA,EAAM,MAAA,GAAA,GAAM,CAAC,IAAuC,KAAA;AAClD,IAAC,CAAA,KAAA,CAAM,OAAQ,CAAA,IAAI,CAAI,GAAA,IAAA,GAAO,CAAC,IAAI,CAAA,EAAG,OAAQ,CAAA,CAAC,GAAQ,KAAA;AAtB3D,MAAA,IAAA,EAAA,CAAA;AAuBM,MAAA,IAAI,GAAK,EAAA;AACP,QAAA,QAAA,CAAS,GAAG,CAAA,CAAA;AACZ,QAAA,IAAI,IAAI,QAAU,EAAA;AAChB,UAAA,GAAA,CAAI,IAAI,QAAQ,CAAA,CAAA;AAAA,SAClB;AACA,QAAI,IAAA,CAAA,CAAA,EAAA,GAAA,GAAA,CAAI,UAAJ,IAAW,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,QAAA,KAAY,IAAI,KAAM,CAAA,QAAA,KAAa,IAAI,QAAU,EAAA;AAC9D,UAAI,GAAA,CAAA,GAAA,CAAI,MAAM,QAAQ,CAAA,CAAA;AAAA,SACxB;AAAA,OACF;AAAA,KACD,CAAA,CAAA;AAAA,GACH,CAAA;AACA,EAAA,GAAA,CAAI,QAAe,CAAA,CAAA;AACrB;;;;"}
@@ -1,5 +1,12 @@
1
- import registerComponent from '@plasmicapp/host/registerComponent';
2
- import Button from 'antd/lib/button';
1
+ 'use strict';
2
+
3
+ var registerComponent = require('@plasmicapp/host/registerComponent');
4
+ var Button = require('antd/lib/button');
5
+
6
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
+
8
+ var registerComponent__default = /*#__PURE__*/_interopDefault(registerComponent);
9
+ var Button__default = /*#__PURE__*/_interopDefault(Button);
3
10
 
4
11
  const buttonMeta = {
5
12
  name: "AntdButton",
@@ -74,9 +81,10 @@ const buttonMeta = {
74
81
  importName: "Button"
75
82
  };
76
83
  function registerButton(loader, customButtonMeta) {
77
- const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
78
- doRegisterComponent(Button, customButtonMeta != null ? customButtonMeta : buttonMeta);
84
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
85
+ doRegisterComponent(Button__default.default, customButtonMeta != null ? customButtonMeta : buttonMeta);
79
86
  }
80
87
 
81
- export { buttonMeta, registerButton };
88
+ exports.buttonMeta = buttonMeta;
89
+ exports.registerButton = registerButton;
82
90
  //# sourceMappingURL=registerButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"registerButton.js","sources":["../src/registerButton.ts"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport Button, { ButtonProps } from \"antd/lib/button\";\nimport { Registerable } from \"./registerable\";\nexport const buttonMeta: ComponentMeta<ButtonProps> = {\n name: \"AntdButton\",\n displayName: \"Antd Button\",\n props: {\n type: {\n type: \"choice\",\n options: [\"default\", \"primary\", \"ghost\", \"dashed\", \"link\", \"text\"],\n description: \"Can be set to primary, ghost, dashed, link, text, default\",\n defaultValueHint: \"default\",\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"medium\", \"large\"],\n description: \"Set the size of button\",\n defaultValueHint: \"medium\",\n },\n shape: {\n type: \"choice\",\n options: [\"default\", \"circle\", \"round\"],\n description: \"Can be set button shape\",\n defaultValueHint: \"default\",\n },\n disabled: {\n type: \"boolean\",\n description: \"Disabled state of button\",\n defaultValueHint: false,\n },\n ghost: {\n type: \"boolean\",\n description:\n \"Make background transparent and invert text and border colors\",\n defaultValueHint: false,\n },\n danger: {\n type: \"boolean\",\n description: \"Set the danger status of button\",\n defaultValueHint: false,\n },\n block: {\n type: \"boolean\",\n description: \"Option to fit button width to its parent width\",\n defaultValueHint: false,\n },\n loading: {\n type: \"boolean\",\n description: \"Set the loading status of button\",\n defaultValueHint: false,\n },\n href: {\n type: \"string\",\n description: \"Redirect url of link button\",\n },\n target: {\n type: \"choice\",\n options: [\"_blank\", \"_self\", \"_parent\", \"_top\"],\n description:\n \"Same as target attribute of a, works when href is specified\",\n hidden: props => !props.href,\n defaultValueHint: \"_self\",\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Button\",\n },\n ],\n },\n },\n importPath: \"antd/lib/button\",\n isDefaultExport: true,\n importName: \"Button\",\n};\n\nexport function registerButton(\n loader?: Registerable,\n customButtonMeta?: ComponentMeta<ButtonProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Button, customButtonMeta ?? buttonMeta);\n}\n"],"names":[],"mappings":";;;AAKO,MAAM,UAAyC,GAAA;AAAA,EACpD,IAAM,EAAA,YAAA;AAAA,EACN,WAAa,EAAA,aAAA;AAAA,EACb,KAAO,EAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,IAAM,EAAA,QAAA;AAAA,MACN,SAAS,CAAC,SAAA,EAAW,WAAW,OAAS,EAAA,QAAA,EAAU,QAAQ,MAAM,CAAA;AAAA,MACjE,WAAa,EAAA,2DAAA;AAAA,MACb,gBAAkB,EAAA,SAAA;AAAA,KACpB;AAAA,IACA,IAAM,EAAA;AAAA,MACJ,IAAM,EAAA,QAAA;AAAA,MACN,OAAS,EAAA,CAAC,OAAS,EAAA,QAAA,EAAU,O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AAkB,EAAA,OAAA;AAAA,KACpB;AAAA,IACA,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,MAAA;AAAA,MACN,YAAc,EAAA;AAAA,QACZ;AAAA,UACE,IAAM,EAAA,MAAA;AAAA,UACN,KAAO,EAAA,QAAA;AAAA,SACT;AAAA,OACF;AAAA,KACF;AAAA,GACF;AAAA,EACA,UAAY,EAAA,iBAAA;AAAA,EACZ,eAAiB,EAAA,IAAA;AAAA,EACjB,UAAY,EAAA,QAAA;AACd,EAAA;AAEO,SAAA,cAAA,CACL,QACA,gBACA,EAAA;AACA,EAAM,MAAA,mBAAA,GAAgD,CAAI,GAAA,IAAA,KACxD,MAAS,GAAA,MAAA,CAAO,iBAAkB,CAAA,GAAG,IAAI,CAAA,GAAI,iBAAkB,CAAA,GAAG,IAAI,CAAA,CAAA;AACxE,EAAoB,mBAAA,CAAA,MAAA,EAAQ,8CAAoB,UAAU,CAAA,CAAA;AAC5D;;;;"}
1
+ {"version":3,"file":"registerButton.js","sources":["../src/registerButton.ts"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport Button, { ButtonProps } from \"antd/lib/button\";\nimport { Registerable } from \"./registerable\";\nexport const buttonMeta: ComponentMeta<ButtonProps> = {\n name: \"AntdButton\",\n displayName: \"Antd Button\",\n props: {\n type: {\n type: \"choice\",\n options: [\"default\", \"primary\", \"ghost\", \"dashed\", \"link\", \"text\"],\n description: \"Can be set to primary, ghost, dashed, link, text, default\",\n defaultValueHint: \"default\",\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"medium\", \"large\"],\n description: \"Set the size of button\",\n defaultValueHint: \"medium\",\n },\n shape: {\n type: \"choice\",\n options: [\"default\", \"circle\", \"round\"],\n description: \"Can be set button shape\",\n defaultValueHint: \"default\",\n },\n disabled: {\n type: \"boolean\",\n description: \"Disabled state of button\",\n defaultValueHint: false,\n },\n ghost: {\n type: \"boolean\",\n description:\n \"Make background transparent and invert text and border colors\",\n defaultValueHint: false,\n },\n danger: {\n type: \"boolean\",\n description: \"Set the danger status of button\",\n defaultValueHint: false,\n },\n block: {\n type: \"boolean\",\n description: \"Option to fit button width to its parent width\",\n defaultValueHint: false,\n },\n loading: {\n type: \"boolean\",\n description: \"Set the loading status of button\",\n defaultValueHint: false,\n },\n href: {\n type: \"string\",\n description: \"Redirect url of link button\",\n },\n target: {\n type: \"choice\",\n options: [\"_blank\", \"_self\", \"_parent\", \"_top\"],\n description:\n \"Same as target attribute of a, works when href is specified\",\n hidden: props => !props.href,\n defaultValueHint: \"_self\",\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Button\",\n },\n ],\n },\n },\n importPath: \"antd/lib/button\",\n isDefaultExport: true,\n importName: \"Button\",\n};\n\nexport function registerButton(\n loader?: Registerable,\n customButtonMeta?: ComponentMeta<ButtonProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Button, customButtonMeta ?? buttonMeta);\n}\n"],"names":["registerComponent","Button"],"mappings":";;;;;;;;;;AAKO,MAAM,UAAyC,GAAA;AAAA,EACpD,IAAM,EAAA,YAAA;AAAA,EACN,WAAa,EAAA,aAAA;AAAA,EACb,KAAO,EAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,IAAM,EAAA,QAAA;AAAA,MACN,SAAS,CAAC,SAAA,EAAW,WAAW,OAAS,EAAA,QAAA,EAAU,QAAQ,MAAM,CAAA;AAAA,MACjE,WAAa,EAAA,2DAAA;AAAA,MACb,gBAAkB,EAAA,SAAA;AAAA,KACpB;AAAA,IACA,IAAM,EAAA;AAAA,MACJ,IAAM,EAAA,QAAA;AAAA,MACN,OAAS,EAAA,CAAC,OAAS,EAAA,QAAA,EAAU,OAAO,CAAA;AAAA,MACpC,WAAa,EAAA,wBAAA;AAAA,MACb,gBAAkB,EAAA,QAAA;AAAA,KACpB;AAAA,IACA,KAAO,EAAA;AA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QACZ;AAAA,UACE,IAAM,EAAA,MAAA;AAAA,UACN,KAAO,EAAA,QAAA;AAAA,SACT;AAAA,OACF;AAAA,KACF;AAAA,GACF;AAAA,EACA,UAAY,EAAA,iBAAA;AAAA,EACZ,eAAiB,EAAA,IAAA;AAAA,EACjB,UAAY,EAAA,QAAA;AACd,EAAA;AAEO,SAAA,cAAA,CACL,QACA,gBACA,EAAA;AACA,EAAM,MAAA,mBAAA,GAAgD,CAAI,GAAA,IAAA,KACxD,MAAS,GAAA,MAAA,CAAO,iBAAkB,CAAA,GAAG,IAAI,CAAA,GAAIA,kCAAkB,CAAA,GAAG,IAAI,CAAA,CAAA;AACxE,EAAoB,mBAAA,CAAAC,uBAAA,EAAQ,8CAAoB,UAAU,CAAA,CAAA;AAC5D;;;;;"}
@@ -1,5 +1,12 @@
1
- import registerComponent from '@plasmicapp/host/registerComponent';
2
- import Carousel from 'antd/lib/carousel';
1
+ 'use strict';
2
+
3
+ var registerComponent = require('@plasmicapp/host/registerComponent');
4
+ var Carousel = require('antd/lib/carousel');
5
+
6
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
+
8
+ var registerComponent__default = /*#__PURE__*/_interopDefault(registerComponent);
9
+ var Carousel__default = /*#__PURE__*/_interopDefault(Carousel);
3
10
 
4
11
  const contentStyle = {
5
12
  height: "160px",
@@ -60,9 +67,10 @@ const carouselMeta = {
60
67
  isDefaultExport: true
61
68
  };
62
69
  function registerCarousel(loader, customCarouselMeta) {
63
- const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
64
- doRegisterComponent(Carousel, customCarouselMeta != null ? customCarouselMeta : carouselMeta);
70
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
71
+ doRegisterComponent(Carousel__default.default, customCarouselMeta != null ? customCarouselMeta : carouselMeta);
65
72
  }
66
73
 
67
- export { carouselMeta, registerCarousel };
74
+ exports.carouselMeta = carouselMeta;
75
+ exports.registerCarousel = registerCarousel;
68
76
  //# sourceMappingURL=registerCarousel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"registerCarousel.js","sources":["../src/registerCarousel.ts"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport Carousel, { CarouselProps } from \"antd/lib/carousel\";\nimport { CSSProperties } from \"react\";\nimport { Registerable } from \"./registerable\";\n\nconst contentStyle: CSSProperties = {\n height: \"160px\",\n color: \"#fff\",\n lineHeight: \"160px\",\n textAlign: \"center\",\n backgroundColor: \"#364d79\",\n};\n\nexport const carouselMeta: ComponentMeta<CarouselProps> = {\n name: \"AntdCarousel\",\n displayName: \"Antd Carousel\",\n props: {\n autoplay: {\n type: \"boolean\",\n description: \"Whether to scroll automatically\",\n defaultValueHint: false,\n },\n dotPosition: {\n type: \"choice\",\n options: [\"top\", \"bottom\", \"left\", \"right\"],\n description: \"The position of the dots\",\n defaultValueHint: \"bottom\",\n },\n dots: {\n type: \"boolean\",\n description: \"Whether to show the dots at the bottom of the gallery\",\n defaultValueHint: true,\n },\n effect: {\n type: \"choice\",\n options: [\"scrollx\", \"fade\"],\n defaultValueHint: \"scrollx\",\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"vbox\",\n children: {\n type: \"text\",\n value: \"1\",\n styles: contentStyle,\n },\n },\n {\n type: \"vbox\",\n children: {\n type: \"text\",\n value: \"2\",\n styles: contentStyle,\n },\n },\n ],\n },\n },\n importPath: \"antd/lib/carousel\",\n importName: \"Carousel\",\n isDefaultExport: true,\n};\n\nexport function registerCarousel(\n loader?: Registerable,\n customCarouselMeta?: ComponentMeta<CarouselProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Carousel, customCarouselMeta ?? carouselMeta);\n}\n"],"names":[],"mappings":";;;AAOA,MAAM,YAA8B,GAAA;AAAA,EAClC,MAAQ,EAAA,OAAA;AAAA,EACR,KAAO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A,WACV;AAAA,SACF;AAAA,OACF;AAAA,KACF;AAAA,GACF;AAAA,EACA,UAAY,EAAA,mBAAA;AAAA,EACZ,UAAY,EAAA,UAAA;AAAA,EACZ,eAAiB,EAAA,IAAA;AACnB,EAAA;AAEO,SAAA,gBAAA,CACL,QACA,kBACA,EAAA;AACA,EAAM,MAAA,mBAAA,GAAgD,CAAI,GAAA,IAAA,KACxD,MAAS,GAAA,MAAA,CAAO,iBAAkB,CAAA,GAAG,IAAI,CAAA,GAAI,iBAAkB,CAAA,GAAG,IAAI,CAAA,CAAA;AACxE,EAAoB,mBAAA,CAAA,QAAA,EAAU,kDAAsB,YAAY,CAAA,CAAA;AAClE;;;;"}
1
+ {"version":3,"file":"registerCarousel.js","sources":["../src/registerCarousel.ts"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport Carousel, { CarouselProps } from \"antd/lib/carousel\";\nimport { CSSProperties } from \"react\";\nimport { Registerable } from \"./registerable\";\n\nconst contentStyle: CSSProperties = {\n height: \"160px\",\n color: \"#fff\",\n lineHeight: \"160px\",\n textAlign: \"center\",\n backgroundColor: \"#364d79\",\n};\n\nexport const carouselMeta: ComponentMeta<CarouselProps> = {\n name: \"AntdCarousel\",\n displayName: \"Antd Carousel\",\n props: {\n autoplay: {\n type: \"boolean\",\n description: \"Whether to scroll automatically\",\n defaultValueHint: false,\n },\n dotPosition: {\n type: \"choice\",\n options: [\"top\", \"bottom\", \"left\", \"right\"],\n description: \"The position of the dots\",\n defaultValueHint: \"bottom\",\n },\n dots: {\n type: \"boolean\",\n description: \"Whether to show the dots at the bottom of the gallery\",\n defaultValueHint: true,\n },\n effect: {\n type: \"choice\",\n options: [\"scrollx\", \"fade\"],\n defaultValueHint: \"scrollx\",\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"vbox\",\n children: {\n type: \"text\",\n value: \"1\",\n styles: contentStyle,\n },\n },\n {\n type: \"vbox\",\n children: {\n type: \"text\",\n value: \"2\",\n styles: contentStyle,\n },\n },\n ],\n },\n },\n importPath: \"antd/lib/carousel\",\n importName: \"Carousel\",\n isDefaultExport: true,\n};\n\nexport function registerCarousel(\n loader?: Registerable,\n customCarouselMeta?: ComponentMeta<CarouselProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Carousel, customCarouselMeta ?? carouselMeta);\n}\n"],"names":["registerComponent","Carousel"],"mappings":";;;;;;;;;;AAOA,MAAM,YAA8B,GAAA;AAAA,EAClC,MAAQ,EAAA,OAAA;AAAA,EACR,KAAO,EAAA,MAAA;AAAA,EACP,UAAY,EAAA,OAAA;AAAA,EACZ,SAAW,EAAA,QAAA;AAAA,EACX,eAAiB,EAAA,SAAA;AACnB,CAAA,CAAA;AAEO,MAAM,YAA6C,GAAA;AAAA,EACxD,IAAM,EAAA,cAAA;AAAA,EACN,WAAa,EAAA,eAAA;AAAA,EACb,KAAO,EAAA;AAAA,IACL,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,iCAAA;AAAA,MACb,gBAAkB,EAAA,KAAA;AAAA,KACpB;AAAA,IACA,WAAa,EAAA;AAAA,MACX,IAAM,EAAA,QAAA;AAAA,MACN,OAAS,EAAA,CAAC,KAAO,EAAA,QAAA,EAAU,QAAQ,OAAO,CAAA;AAAA,MAC1C,WAAa,EAAA,0BAAA;AAAA,MACb,gBAAkB,EAAA,QAAA;AAAA,KACpB;AAAA,IACA,IAAM,EAAA;AAAA,MACJ,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,uDAAA;AAAA,MACb,gBAAkB,EAAA,IAAA;AAAA,KACpB;AAAA,IACA,MAAQ,EAAA;AAAA,MACN,IAAM,EAAA,QAAA;AAAA,MACN,OAAA,EAAS,CAAC,SAAA,EAAW,MAAM,CAAA;AAAA,MAC3B,gBAAkB,EAAA,SAAA;AAAA,KACpB;AAAA,IACA,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,MAAA;AAAA,MACN,YAAc,EAAA;AAAA,QACZ;AAAA,UACE,IAAM,EAAA,MAAA;AAAA,UACN,QAAU,EAAA;AAAA,YACR,IAAM,EAAA,MAAA;AAAA,YACN,KAAO,EAAA,GAAA;AAAA,YACP,MAAQ,EAAA,YAAA;AAAA,WACV;AAAA,SACF;AAAA,QACA;AAAA,UACE,IAAM,EAAA,MAAA;AAAA,UACN,QAAU,EAAA;AAAA,YACR,IAAM,EAAA,MAAA;AAAA,YACN,KAAO,EAAA,GAAA;AAAA,YACP,MAAQ,EAAA,YAAA;AAAA,WACV;AAAA,SACF;AAAA,OACF;AAAA,KACF;AAAA,GACF;AAAA,EACA,UAAY,EAAA,mBAAA;AAAA,EACZ,UAAY,EAAA,UAAA;AAAA,EACZ,eAAiB,EAAA,IAAA;AACnB,EAAA;AAEO,SAAA,gBAAA,CACL,QACA,kBACA,EAAA;AACA,EAAM,MAAA,mBAAA,GAAgD,CAAI,GAAA,IAAA,KACxD,MAAS,GAAA,MAAA,CAAO,iBAAkB,CAAA,GAAG,IAAI,CAAA,GAAIA,kCAAkB,CAAA,GAAG,IAAI,CAAA,CAAA;AACxE,EAAoB,mBAAA,CAAAC,yBAAA,EAAU,kDAAsB,YAAY,CAAA,CAAA;AAClE;;;;;"}
@@ -1,8 +1,17 @@
1
- import registerComponent from '@plasmicapp/host/registerComponent';
2
- import Checkbox from 'antd/lib/checkbox/Checkbox';
3
- import CheckboxGroup from 'antd/lib/checkbox/Group';
4
- import React from 'react';
5
- import { t as traverseReactEltTree } from './customControls-82aa5d0c.js';
1
+ 'use strict';
2
+
3
+ var registerComponent = require('@plasmicapp/host/registerComponent');
4
+ var Checkbox = require('antd/lib/checkbox/Checkbox');
5
+ var CheckboxGroup = require('antd/lib/checkbox/Group');
6
+ var React = require('react');
7
+ var customControls = require('./customControls-fb0b7e5f.js');
8
+
9
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
+
11
+ var registerComponent__default = /*#__PURE__*/_interopDefault(registerComponent);
12
+ var Checkbox__default = /*#__PURE__*/_interopDefault(Checkbox);
13
+ var CheckboxGroup__default = /*#__PURE__*/_interopDefault(CheckboxGroup);
14
+ var React__default = /*#__PURE__*/_interopDefault(React);
6
15
 
7
16
  var __defProp = Object.defineProperty;
8
17
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
@@ -20,9 +29,9 @@ var __spreadValues = (a, b) => {
20
29
  }
21
30
  return a;
22
31
  };
23
- class CheckboxWrapper extends React.Component {
32
+ class CheckboxWrapper extends React__default.default.Component {
24
33
  render() {
25
- return /* @__PURE__ */ React.createElement(Checkbox, __spreadValues({}, this.props));
34
+ return /* @__PURE__ */ React__default.default.createElement(Checkbox__default.default, __spreadValues({}, this.props));
26
35
  }
27
36
  }
28
37
  const checkboxHelpers = {
@@ -100,7 +109,7 @@ const checkboxMeta = {
100
109
  isDefaultExport: true
101
110
  };
102
111
  function registerCheckbox(loader, customCheckboxMeta) {
103
- const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
112
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
104
113
  doRegisterComponent(CheckboxWrapper, customCheckboxMeta != null ? customCheckboxMeta : checkboxMeta);
105
114
  }
106
115
  const checkboxGroupMeta = {
@@ -120,7 +129,7 @@ const checkboxGroupMeta = {
120
129
  multiSelect: true,
121
130
  options: (componentProps) => {
122
131
  const options = /* @__PURE__ */ new Set();
123
- traverseReactEltTree(componentProps.children, (elt) => {
132
+ customControls.traverseReactEltTree(componentProps.children, (elt) => {
124
133
  var _a;
125
134
  if ((elt == null ? void 0 : elt.type) === CheckboxWrapper && typeof ((_a = elt == null ? void 0 : elt.props) == null ? void 0 : _a.value) === "string") {
126
135
  options.add(elt.props.value);
@@ -146,9 +155,13 @@ const checkboxGroupMeta = {
146
155
  isDefaultExport: true
147
156
  };
148
157
  function registerCheckboxGroup(loader, customCheckboxGroupMeta) {
149
- const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
150
- doRegisterComponent(CheckboxGroup, customCheckboxGroupMeta != null ? customCheckboxGroupMeta : checkboxGroupMeta);
158
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
159
+ doRegisterComponent(CheckboxGroup__default.default, customCheckboxGroupMeta != null ? customCheckboxGroupMeta : checkboxGroupMeta);
151
160
  }
152
161
 
153
- export { checkboxGroupMeta, checkboxHelpers, checkboxMeta, registerCheckbox, registerCheckboxGroup };
162
+ exports.checkboxGroupMeta = checkboxGroupMeta;
163
+ exports.checkboxHelpers = checkboxHelpers;
164
+ exports.checkboxMeta = checkboxMeta;
165
+ exports.registerCheckbox = registerCheckbox;
166
+ exports.registerCheckboxGroup = registerCheckboxGroup;
154
167
  //# sourceMappingURL=registerCheckbox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"registerCheckbox.js","sources":["../src/registerCheckbox.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport Checkbox, { CheckboxProps } from \"antd/lib/checkbox/Checkbox\";\nimport CheckboxGroup, { CheckboxGroupProps } from \"antd/lib/checkbox/Group\";\nimport React from \"react\";\nimport { traverseReactEltTree } from \"./customControls\";\nimport { Registerable } from \"./registerable\";\n\nclass CheckboxWrapper extends React.Component<CheckboxProps> {\n render() {\n return <Checkbox {...this.props} />;\n }\n}\n\nexport const checkboxHelpers = {\n states: {\n value: {\n onChangeArgsToValue: (\n e: Parameters<NonNullable<CheckboxProps[\"onChange\"]>>[0]\n ) => e.target.checked,\n },\n },\n};\n\nexport const checkboxMeta: ComponentMeta<CheckboxProps> = {\n name: \"AntdCheckbox\",\n displayName: \"Antd Checkbox\",\n props: {\n autoFocus: {\n type: \"boolean\",\n description: \"If get focus when component mounted\",\n defaultValueHint: false,\n },\n checked: {\n type: \"boolean\",\n description:\n \"Specifies the initial state: whether or not the checkbox is selected\",\n defaultValueHint: false,\n },\n disabled: {\n type: \"boolean\",\n description: \"If disable checkbox\",\n defaultValueHint: false,\n },\n indeterminate: {\n type: \"boolean\",\n description: \"The indeterminate checked state of checkbox\",\n defaultValueHint: false,\n },\n value: {\n type: \"string\",\n description: \"The checkbox value\",\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Checkbox\",\n },\n ],\n },\n onChange: {\n type: \"eventHandler\",\n argTypes: [\n {\n name: \"event\",\n type: \"object\",\n },\n ],\n },\n },\n states: {\n value: {\n type: \"writable\",\n variableType: \"boolean\",\n onChangeProp: \"onChange\",\n valueProp: \"checked\",\n },\n },\n componentHelpers: {\n helpers: checkboxHelpers,\n importName: \"checkboxHelpers\",\n importPath: \"@plasmicpkgs/antd/skinny/registerCheckbox\",\n },\n importPath: \"antd/lib/checkbox/Checkbox\",\n importName: \"Checkbox\",\n defaultStyles: {\n marginLeft: 0,\n },\n isDefaultExport: true,\n};\n\nexport function registerCheckbox(\n loader?: Registerable,\n customCheckboxMeta?: ComponentMeta<CheckboxProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(CheckboxWrapper, customCheckboxMeta ?? checkboxMeta);\n}\n\nexport const checkboxGroupMeta: ComponentMeta<CheckboxGroupProps> = {\n name: \"AntdCheckboxGroup\",\n displayName: \"Antd Checkbox Group\",\n props: {\n disabled: {\n type: \"boolean\",\n description: \"If disable all checkboxes\",\n defaultValueHint: false,\n },\n value: {\n type: \"choice\",\n editOnly: true,\n uncontrolledProp: \"defaultValue\",\n description: \"Default selected value\",\n multiSelect: true,\n options: (componentProps) => {\n const options = new Set<string>();\n traverseReactEltTree(componentProps.children, (elt) => {\n if (\n elt?.type === CheckboxWrapper &&\n typeof elt?.props?.value === \"string\"\n ) {\n options.add(elt.props.value);\n }\n });\n return Array.from(options.keys());\n },\n },\n children: {\n type: \"slot\",\n allowedComponents: [\"AntdCheckbox\"],\n defaultValue: [\n {\n type: \"component\",\n name: \"AntdCheckbox\",\n },\n ],\n },\n },\n importPath: \"antd/lib/checkbox/Group\",\n importName: \"CheckboxGroup\",\n parentComponentName: \"AntdCheckbox\",\n isDefaultExport: true,\n};\n\nexport function registerCheckboxGroup(\n loader?: Registerable,\n customCheckboxGroupMeta?: ComponentMeta<CheckboxGroupProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(\n CheckboxGroup,\n customCheckboxGroupMeta ?? checkboxGroupMeta\n );\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AASA,MAAM,eAAA,SAAwB,MAAM,SAAyB,CAAA;AAAA,EAC3D,MAAS,GAAA;AACP,IAAO,uBAAA,KAAA,CAAA,aAAA,CAAC,QAAa,EAAA,cAAA,CAAA,EAAA,EAAA,IAAA,CAAK,KAAO,CAAA,CAAA,CAAA;AAAA,GACnC;AACF,CAAA;AAEO,MAAM,eAAkB,GAAA;AAAA,EAC7B,MAAQ,EAAA;AAAA,IACN,KAAO,EAAA;AAAA,MACL,mBAAqB,EAAA,CACnB,CACG,KAAA,CAAA,CAAE,MAAO,CAAA,OAAA;AAAA,KAChB;AAAA,GACF;AACF,EAAA;AAEO,MAAM,YAA6C,GAAA;AAAA,EACxD,IAAM,EAAA,cAAA;AAAA,EACN,WAAa,EAAA,eAAA;AAAA,EACb,KAAO,EAAA;AAAA,IACL,SAAW,EAAA;AAAA,MACT,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,qCAAA;AAAA,MACb,gBAAkB,EAAA,KAAA;AAAA,KACpB;AAAA,IACA,OAAS,EAAA;AAAA,MACP,IAAM,EAAA,SAAA;AAAA,MACN,WACE,EAAA,sEAAA;AAAA,MACF,gBAAkB,EAAA,KAAA;AAAA,KACpB;AAAA,IACA,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,SAAA;AAAA,MACN,W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B,CAAC,cAAc,CAAA;AAAA,MAClC,YAAc,EAAA;AAAA,QACZ;AAAA,UACE,IAAM,EAAA,WAAA;AAAA,UACN,IAAM,EAAA,cAAA;AAAA,SACR;AAAA,OACF;AAAA,KACF;AAAA,GACF;AAAA,EACA,UAAY,EAAA,yBAAA;AAAA,EACZ,UAAY,EAAA,eAAA;AAAA,EACZ,mBAAqB,EAAA,cAAA;AAAA,EACrB,eAAiB,EAAA,IAAA;AACnB,EAAA;AAEO,SAAA,qBAAA,CACL,QACA,uBACA,EAAA;AACA,EAAM,MAAA,mBAAA,GAAgD,CAAI,GAAA,IAAA,KACxD,MAAS,GAAA,MAAA,CAAO,iBAAkB,CAAA,GAAG,IAAI,CAAA,GAAI,iBAAkB,CAAA,GAAG,IAAI,CAAA,CAAA;AACxE,EACE,mBAAA,CAAA,aAAA,EACA,4DAA2B,iBAC7B,CAAA,CAAA;AACF;;;;"}
1
+ {"version":3,"file":"registerCheckbox.js","sources":["../src/registerCheckbox.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport Checkbox, { CheckboxProps } from \"antd/lib/checkbox/Checkbox\";\nimport CheckboxGroup, { CheckboxGroupProps } from \"antd/lib/checkbox/Group\";\nimport React from \"react\";\nimport { traverseReactEltTree } from \"./customControls\";\nimport { Registerable } from \"./registerable\";\n\nclass CheckboxWrapper extends React.Component<CheckboxProps> {\n render() {\n return <Checkbox {...this.props} />;\n }\n}\n\nexport const checkboxHelpers = {\n states: {\n value: {\n onChangeArgsToValue: (\n e: Parameters<NonNullable<CheckboxProps[\"onChange\"]>>[0]\n ) => e.target.checked,\n },\n },\n};\n\nexport const checkboxMeta: ComponentMeta<CheckboxProps> = {\n name: \"AntdCheckbox\",\n displayName: \"Antd Checkbox\",\n props: {\n autoFocus: {\n type: \"boolean\",\n description: \"If get focus when component mounted\",\n defaultValueHint: false,\n },\n checked: {\n type: \"boolean\",\n description:\n \"Specifies the initial state: whether or not the checkbox is selected\",\n defaultValueHint: false,\n },\n disabled: {\n type: \"boolean\",\n description: \"If disable checkbox\",\n defaultValueHint: false,\n },\n indeterminate: {\n type: \"boolean\",\n description: \"The indeterminate checked state of checkbox\",\n defaultValueHint: false,\n },\n value: {\n type: \"string\",\n description: \"The checkbox value\",\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Checkbox\",\n },\n ],\n },\n onChange: {\n type: \"eventHandler\",\n argTypes: [\n {\n name: \"event\",\n type: \"object\",\n },\n ],\n },\n },\n states: {\n value: {\n type: \"writable\",\n variableType: \"boolean\",\n onChangeProp: \"onChange\",\n valueProp: \"checked\",\n },\n },\n componentHelpers: {\n helpers: checkboxHelpers,\n importName: \"checkboxHelpers\",\n importPath: \"@plasmicpkgs/antd/skinny/registerCheckbox\",\n },\n importPath: \"antd/lib/checkbox/Checkbox\",\n importName: \"Checkbox\",\n defaultStyles: {\n marginLeft: 0,\n },\n isDefaultExport: true,\n};\n\nexport function registerCheckbox(\n loader?: Registerable,\n customCheckboxMeta?: ComponentMeta<CheckboxProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(CheckboxWrapper, customCheckboxMeta ?? checkboxMeta);\n}\n\nexport const checkboxGroupMeta: ComponentMeta<CheckboxGroupProps> = {\n name: \"AntdCheckboxGroup\",\n displayName: \"Antd Checkbox Group\",\n props: {\n disabled: {\n type: \"boolean\",\n description: \"If disable all checkboxes\",\n defaultValueHint: false,\n },\n value: {\n type: \"choice\",\n editOnly: true,\n uncontrolledProp: \"defaultValue\",\n description: \"Default selected value\",\n multiSelect: true,\n options: (componentProps) => {\n const options = new Set<string>();\n traverseReactEltTree(componentProps.children, (elt) => {\n if (\n elt?.type === CheckboxWrapper &&\n typeof elt?.props?.value === \"string\"\n ) {\n options.add(elt.props.value);\n }\n });\n return Array.from(options.keys());\n },\n },\n children: {\n type: \"slot\",\n allowedComponents: [\"AntdCheckbox\"],\n defaultValue: [\n {\n type: \"component\",\n name: \"AntdCheckbox\",\n },\n ],\n },\n },\n importPath: \"antd/lib/checkbox/Group\",\n importName: \"CheckboxGroup\",\n parentComponentName: \"AntdCheckbox\",\n isDefaultExport: true,\n};\n\nexport function registerCheckboxGroup(\n loader?: Registerable,\n customCheckboxGroupMeta?: ComponentMeta<CheckboxGroupProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(\n CheckboxGroup,\n customCheckboxGroupMeta ?? checkboxGroupMeta\n );\n}\n"],"names":["React","Checkbox","registerComponent","traverseReactEltTree","CheckboxGroup"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,MAAM,eAAA,SAAwBA,uBAAM,SAAyB,CAAA;AAAA,EAC3D,MAAS,GAAA;AACP,IAAO,uBAAAA,sBAAA,CAAA,aAAA,CAACC,yBAAa,EAAA,cAAA,CAAA,EAAA,EAAA,IAAA,CAAK,KAAO,CAAA,CAAA,CAAA;AAAA,GACnC;AACF,CAAA;AAEO,MAAM,eAAkB,GAAA;AAAA,EAC7B,MAAQ,EAAA;AAAA,IACN,KAAO,EAAA;AAAA,MACL,mBAAqB,EAAA,CACnB,CACG,KAAA,CAAA,CAAE,MAAO,CAAA,OAAA;AAAA,KAChB;AAAA,GACF;AACF,EAAA;AAEO,MAAM,YAA6C,GAAA;AAAA,EACxD,IAAM,EAAA,cAAA;AAAA,EACN,WAAa,EAAA,eAAA;AAAA,EACb,KAAO,EAAA;AAAA,IACL,SAAW,EAAA;AAAA,MACT,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,qCAAA;AAAA,MACb,gBAAkB,EAAA,KAAA;AAAA,KACpB;AAAA,IACA,OAAS,EAAA;AAAA,MACP,IAAM,EAAA,SAAA;AAAA,MACN,WACE,EAAA,sEAAA;AAAA,MACF,gBAAkB,EAAA,KAAA;AAAA,KACpB;AAAA,IACA,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AA;AAAA,MACR,IAAM,EAAA,MAAA;AAAA,MACN,iBAAA,EAAmB,CAAC,cAAc,CAAA;AAAA,MAClC,YAAc,EAAA;AAAA,QACZ;AAAA,UACE,IAAM,EAAA,WAAA;AAAA,UACN,IAAM,EAAA,cAAA;AAAA,SACR;AAAA,OACF;AAAA,KACF;AAAA,GACF;AAAA,EACA,UAAY,EAAA,yBAAA;AAAA,EACZ,UAAY,EAAA,eAAA;AAAA,EACZ,mBAAqB,EAAA,cAAA;AAAA,EACrB,eAAiB,EAAA,IAAA;AACnB,EAAA;AAEO,SAAA,qBAAA,CACL,QACA,uBACA,EAAA;AACA,EAAM,MAAA,mBAAA,GAAgD,CAAI,GAAA,IAAA,KACxD,MAAS,GAAA,MAAA,CAAO,iBAAkB,CAAA,GAAG,IAAI,CAAA,GAAID,kCAAkB,CAAA,GAAG,IAAI,CAAA,CAAA;AACxE,EACE,mBAAA,CAAAE,8BAAA,EACA,4DAA2B,iBAC7B,CAAA,CAAA;AACF;;;;;;;;"}
@@ -1,8 +1,17 @@
1
- import registerComponent from '@plasmicapp/host/registerComponent';
2
- import AntdCollapse from 'antd/lib/collapse/Collapse';
3
- import CollapsePanel from 'antd/lib/collapse/CollapsePanel';
4
- import React from 'react';
5
- import { t as traverseReactEltTree } from './customControls-82aa5d0c.js';
1
+ 'use strict';
2
+
3
+ var registerComponent = require('@plasmicapp/host/registerComponent');
4
+ var AntdCollapse = require('antd/lib/collapse/Collapse');
5
+ var CollapsePanel = require('antd/lib/collapse/CollapsePanel');
6
+ var React = require('react');
7
+ var customControls = require('./customControls-fb0b7e5f.js');
8
+
9
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
+
11
+ var registerComponent__default = /*#__PURE__*/_interopDefault(registerComponent);
12
+ var AntdCollapse__default = /*#__PURE__*/_interopDefault(AntdCollapse);
13
+ var CollapsePanel__default = /*#__PURE__*/_interopDefault(CollapsePanel);
14
+ var React__default = /*#__PURE__*/_interopDefault(React);
6
15
 
7
16
  var __defProp = Object.defineProperty;
8
17
  var __defProps = Object.defineProperties;
@@ -87,8 +96,8 @@ const collapstePanelMeta = {
87
96
  isDefaultExport: true
88
97
  };
89
98
  function registerCollapsePanel(loader, customCollapsePanelMeta) {
90
- const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
91
- doRegisterComponent(CollapsePanel, customCollapsePanelMeta != null ? customCollapsePanelMeta : collapstePanelMeta);
99
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
100
+ doRegisterComponent(CollapsePanel__default.default, customCollapsePanelMeta != null ? customCollapsePanelMeta : collapstePanelMeta);
92
101
  }
93
102
  const collapsteMeta = {
94
103
  name: "AntdCollapse",
@@ -107,8 +116,8 @@ const collapsteMeta = {
107
116
  multiSelect: true,
108
117
  options: (componentProps) => {
109
118
  const options = /* @__PURE__ */ new Set();
110
- traverseReactEltTree(componentProps.children, (elt) => {
111
- if ((elt == null ? void 0 : elt.type) === CollapsePanel && typeof (elt == null ? void 0 : elt.key) === "string") {
119
+ customControls.traverseReactEltTree(componentProps.children, (elt) => {
120
+ if ((elt == null ? void 0 : elt.type) === CollapsePanel__default.default && typeof (elt == null ? void 0 : elt.key) === "string") {
112
121
  options.add(elt.key);
113
122
  }
114
123
  });
@@ -163,14 +172,18 @@ const collapsteMeta = {
163
172
  };
164
173
  function Collapse(props) {
165
174
  const _a = props, { openIcon, closeIcon } = _a, rest = __objRest(_a, ["openIcon", "closeIcon"]);
166
- return /* @__PURE__ */ React.createElement(AntdCollapse, __spreadProps(__spreadValues({}, rest), {
175
+ return /* @__PURE__ */ React__default.default.createElement(AntdCollapse__default.default, __spreadProps(__spreadValues({}, rest), {
167
176
  expandIcon: openIcon || closeIcon ? ({ isActive }) => isActive ? openIcon : closeIcon : void 0
168
177
  }));
169
178
  }
170
179
  function registerCollapse(loader, customCollapseMeta) {
171
- const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
180
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
172
181
  doRegisterComponent(Collapse, customCollapseMeta != null ? customCollapseMeta : collapsteMeta);
173
182
  }
174
183
 
175
- export { Collapse, collapsteMeta, collapstePanelMeta, registerCollapse, registerCollapsePanel };
184
+ exports.Collapse = Collapse;
185
+ exports.collapsteMeta = collapsteMeta;
186
+ exports.collapstePanelMeta = collapstePanelMeta;
187
+ exports.registerCollapse = registerCollapse;
188
+ exports.registerCollapsePanel = registerCollapsePanel;
176
189
  //# sourceMappingURL=registerCollapse.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"registerCollapse.js","sources":["../src/registerCollapse.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport {\n CollapsePanelProps,\n CollapseProps as AntdCollapseProps,\n} from \"antd/lib/collapse\";\nimport AntdCollapse from \"antd/lib/collapse/Collapse\";\nimport CollapsePanel from \"antd/lib/collapse/CollapsePanel\";\nimport React from \"react\";\nimport { traverseReactEltTree } from \"./customControls\";\nimport { Registerable } from \"./registerable\";\n\nexport const collapstePanelMeta: ComponentMeta<CollapsePanelProps> = {\n name: \"AntdCollapsePanel\",\n displayName: \"Antd Collapse Panel\",\n props: {\n collapsible: {\n type: \"choice\",\n options: [\"header\", \"disabled\"],\n description:\n \"Specify whether the panel be collapsible or the trigger area of collapsible\",\n },\n forceRender: {\n type: \"boolean\",\n description:\n \"Forced render of content on panel, instead of lazy rending after clicking on header\",\n defaultValueHint: false,\n },\n header: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Header\",\n },\n ],\n },\n key: {\n type: \"string\",\n description: \"Unique key identifying the panel from among its siblings\",\n },\n showArrow: {\n type: \"boolean\",\n description: \"If false, panel will not show arrow icon\",\n defaultValueHint: true,\n },\n extra: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Insert text here\",\n },\n ],\n },\n },\n importPath: \"antd/lib/collapse/CollapsePanel\",\n importName: \"CollapsePanel\",\n parentComponentName: \"AntdCollapse\",\n isDefaultExport: true,\n};\n\nexport function registerCollapsePanel(\n loader?: Registerable,\n customCollapsePanelMeta?: ComponentMeta<CollapsePanelProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(\n CollapsePanel,\n customCollapsePanelMeta ?? collapstePanelMeta\n );\n}\n\ntype CollapseProps = {\n openIcon?: React.ReactNode;\n closeIcon?: React.ReactNode;\n} & AntdCollapseProps;\n\nexport const collapsteMeta: ComponentMeta<CollapseProps> = {\n name: \"AntdCollapse\",\n displayName: \"Antd Collapse\",\n props: {\n accordion: {\n type: \"boolean\",\n description: \"If true, Collapse renders as Accordion\",\n defaultValueHint: false,\n },\n activeKey: {\n type: \"choice\",\n editOnly: true,\n uncontrolledProp: \"defaultActiveKey\",\n description: \"Key of the active panel\",\n multiSelect: true,\n options: (componentProps) => {\n const options = new Set<string>();\n // `children` is not defined in the Collapse props\n traverseReactEltTree((componentProps as any).children, (elt) => {\n if (elt?.type === CollapsePanel && typeof elt?.key === \"string\") {\n options.add(elt.key);\n }\n });\n return Array.from(options.keys());\n },\n },\n bordered: {\n type: \"boolean\",\n description: \"Toggles rendering of the border around the collapse block\",\n defaultValueHint: true,\n },\n collapsible: {\n type: \"choice\",\n options: [\"header\", \"disabled\"],\n description:\n \"Specify whether the panels of children be collapsible or the trigger area of collapsible\",\n },\n expandIconPosition: {\n type: \"choice\",\n options: [\"left\", \"right\"],\n description: \"Set expand icon position\",\n defaultValueHint: \"left\",\n },\n ghost: {\n type: \"boolean\",\n description:\n \"Make the collapse borderless and its background transparent\",\n defaultValueHint: false,\n },\n children: {\n type: \"slot\",\n allowedComponents: [\"AntdCollapsePanel\"],\n defaultValue: [\n {\n type: \"component\",\n name: \"AntdCollapsePanel\",\n props: {\n key: \"1\",\n },\n },\n ],\n },\n openIcon: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n closeIcon: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n },\n importPath: \"@plasmicpkgs/antd/skinny/registerCollapse\",\n importName: \"Collapse\",\n};\n\nexport function Collapse(props: CollapseProps) {\n const { openIcon, closeIcon, ...rest } = props;\n return (\n <AntdCollapse\n {...rest}\n expandIcon={\n openIcon || closeIcon\n ? ({ isActive }) => (isActive ? openIcon : closeIcon)\n : undefined\n }\n />\n );\n}\n\nexport function registerCollapse(\n loader?: Registerable,\n customCollapseMeta?: ComponentMeta<CollapseProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Collapse, customCollapseMeta ?? collapsteMeta);\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaO,MAAM,kBAAwD,GAAA;AAAA,EACnE,IAAM,EAAA,mBAAA;AAAA,EACN,WAAa,EAAA,qBAAA;AAAA,EACb,KAAO,EAAA;AAAA,IACL,WAAa,EAAA;AAAA,MACX,IAAM,EAAA,QAAA;AAAA,MACN,OAAA,EAAS,CAAC,QAAA,EAAU,UAAU,CAAA;AAAA,MAC9B,WACE,EAAA,6EAAA;AAAA,KACJ;AAAA,IACA,WAAa,EAAA;AAAA,MACX,IAAM,EAAA,SAAA;AAAA,MACN,WACE,EAAA,qFAAA;AAAA,MACF,gBAAkB,EAAA,KAAA;AAAA,KACpB;AAAA,IACA,MAAQ,EAAA;AAAA,MACN,IAAM,EAAA,MAAA;AAAA,MACN,YAAc,EAAA;AAAA,QACZ;AAAA,UACE,IAAM,EAAA,MAAA;AAAA,UACN,KAAO,EAAA,QAAA;AAAA,SACT;AAAA,OACF;AAAA,KACF;AAAA,IACA,GAAK,EAAA;AAAA,MACH,IAAM,EAAA,QAAA;AAAA,MACN,WAAa,EAAA,0DAAA;AAAA,KACf;AAAA,IACA,SAAW,EAAA;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A;AAAA,UACN,KAAO,EAAA;AAAA,YACL,GAAK,EAAA,GAAA;AAAA,WACP;AAAA,SACF;AAAA,OACF;AAAA,KACF;AAAA,IACA,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,MAAA;AAAA,MACN,eAAiB,EAAA,IAAA;AAAA,KACnB;AAAA,IACA,SAAW,EAAA;AAAA,MACT,IAAM,EAAA,MAAA;AAAA,MACN,eAAiB,EAAA,IAAA;AAAA,KACnB;AAAA,GACF;AAAA,EACA,UAAY,EAAA,2CAAA;AAAA,EACZ,UAAY,EAAA,UAAA;AACd,EAAA;AAEO,SAAA,QAAA,CAAkB,KAAsB,EAAA;AAC7C,EAAA,MAAyC,YAAjC,EAAU,QAAA,EAAA,SAAA,EAAA,GAAuB,IAAT,IAAS,GAAA,SAAA,CAAA,EAAA,EAAT,CAAxB,UAAU,EAAA,WAAA,CAAA,CAAA,CAAA;AAClB,EACE,uBAAA,KAAA,CAAA,aAAA,CAAC,+CACK,IADL,CAAA,EAAA;AAAA,IAEC,UAAA,EACE,YAAY,SACR,GAAA,CAAC,EAAE,QAAgB,EAAA,KAAA,QAAA,GAAW,WAAW,SACzC,GAAA,KAAA,CAAA;AAAA,GAER,CAAA,CAAA,CAAA;AAEJ,CAAA;AAEO,SAAA,gBAAA,CACL,QACA,kBACA,EAAA;AACA,EAAM,MAAA,mBAAA,GAAgD,CAAI,GAAA,IAAA,KACxD,MAAS,GAAA,MAAA,CAAO,iBAAkB,CAAA,GAAG,IAAI,CAAA,GAAI,iBAAkB,CAAA,GAAG,IAAI,CAAA,CAAA;AACxE,EAAoB,mBAAA,CAAA,QAAA,EAAU,kDAAsB,aAAa,CAAA,CAAA;AACnE;;;;"}
1
+ {"version":3,"file":"registerCollapse.js","sources":["../src/registerCollapse.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport {\n CollapsePanelProps,\n CollapseProps as AntdCollapseProps,\n} from \"antd/lib/collapse\";\nimport AntdCollapse from \"antd/lib/collapse/Collapse\";\nimport CollapsePanel from \"antd/lib/collapse/CollapsePanel\";\nimport React from \"react\";\nimport { traverseReactEltTree } from \"./customControls\";\nimport { Registerable } from \"./registerable\";\n\nexport const collapstePanelMeta: ComponentMeta<CollapsePanelProps> = {\n name: \"AntdCollapsePanel\",\n displayName: \"Antd Collapse Panel\",\n props: {\n collapsible: {\n type: \"choice\",\n options: [\"header\", \"disabled\"],\n description:\n \"Specify whether the panel be collapsible or the trigger area of collapsible\",\n },\n forceRender: {\n type: \"boolean\",\n description:\n \"Forced render of content on panel, instead of lazy rending after clicking on header\",\n defaultValueHint: false,\n },\n header: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Header\",\n },\n ],\n },\n key: {\n type: \"string\",\n description: \"Unique key identifying the panel from among its siblings\",\n },\n showArrow: {\n type: \"boolean\",\n description: \"If false, panel will not show arrow icon\",\n defaultValueHint: true,\n },\n extra: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Insert text here\",\n },\n ],\n },\n },\n importPath: \"antd/lib/collapse/CollapsePanel\",\n importName: \"CollapsePanel\",\n parentComponentName: \"AntdCollapse\",\n isDefaultExport: true,\n};\n\nexport function registerCollapsePanel(\n loader?: Registerable,\n customCollapsePanelMeta?: ComponentMeta<CollapsePanelProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(\n CollapsePanel,\n customCollapsePanelMeta ?? collapstePanelMeta\n );\n}\n\ntype CollapseProps = {\n openIcon?: React.ReactNode;\n closeIcon?: React.ReactNode;\n} & AntdCollapseProps;\n\nexport const collapsteMeta: ComponentMeta<CollapseProps> = {\n name: \"AntdCollapse\",\n displayName: \"Antd Collapse\",\n props: {\n accordion: {\n type: \"boolean\",\n description: \"If true, Collapse renders as Accordion\",\n defaultValueHint: false,\n },\n activeKey: {\n type: \"choice\",\n editOnly: true,\n uncontrolledProp: \"defaultActiveKey\",\n description: \"Key of the active panel\",\n multiSelect: true,\n options: (componentProps) => {\n const options = new Set<string>();\n // `children` is not defined in the Collapse props\n traverseReactEltTree((componentProps as any).children, (elt) => {\n if (elt?.type === CollapsePanel && typeof elt?.key === \"string\") {\n options.add(elt.key);\n }\n });\n return Array.from(options.keys());\n },\n },\n bordered: {\n type: \"boolean\",\n description: \"Toggles rendering of the border around the collapse block\",\n defaultValueHint: true,\n },\n collapsible: {\n type: \"choice\",\n options: [\"header\", \"disabled\"],\n description:\n \"Specify whether the panels of children be collapsible or the trigger area of collapsible\",\n },\n expandIconPosition: {\n type: \"choice\",\n options: [\"left\", \"right\"],\n description: \"Set expand icon position\",\n defaultValueHint: \"left\",\n },\n ghost: {\n type: \"boolean\",\n description:\n \"Make the collapse borderless and its background transparent\",\n defaultValueHint: false,\n },\n children: {\n type: \"slot\",\n allowedComponents: [\"AntdCollapsePanel\"],\n defaultValue: [\n {\n type: \"component\",\n name: \"AntdCollapsePanel\",\n props: {\n key: \"1\",\n },\n },\n ],\n },\n openIcon: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n closeIcon: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n },\n importPath: \"@plasmicpkgs/antd/skinny/registerCollapse\",\n importName: \"Collapse\",\n};\n\nexport function Collapse(props: CollapseProps) {\n const { openIcon, closeIcon, ...rest } = props;\n return (\n <AntdCollapse\n {...rest}\n expandIcon={\n openIcon || closeIcon\n ? ({ isActive }) => (isActive ? openIcon : closeIcon)\n : undefined\n }\n />\n );\n}\n\nexport function registerCollapse(\n loader?: Registerable,\n customCollapseMeta?: ComponentMeta<CollapseProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Collapse, customCollapseMeta ?? collapsteMeta);\n}\n"],"names":["registerComponent","CollapsePanel","traverseReactEltTree","React","AntdCollapse"],"mappings":";;;;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A,EAAA,EAAT,CAAxB,UAAU,EAAA,WAAA,CAAA,CAAA,CAAA;AAClB,EACE,uBAAAE,sBAAA,CAAA,aAAA,CAACC,gEACK,IADL,CAAA,EAAA;AAAA,IAEC,UAAA,EACE,YAAY,SACR,GAAA,CAAC,EAAE,QAAgB,EAAA,KAAA,QAAA,GAAW,WAAW,SACzC,GAAA,KAAA,CAAA;AAAA,GAER,CAAA,CAAA,CAAA;AAEJ,CAAA;AAEO,SAAA,gBAAA,CACL,QACA,kBACA,EAAA;AACA,EAAM,MAAA,mBAAA,GAAgD,CAAI,GAAA,IAAA,KACxD,MAAS,GAAA,MAAA,CAAO,iBAAkB,CAAA,GAAG,IAAI,CAAA,GAAIJ,kCAAkB,CAAA,GAAG,IAAI,CAAA,CAAA;AACxE,EAAoB,mBAAA,CAAA,QAAA,EAAU,kDAAsB,aAAa,CAAA,CAAA;AACnE;;;;;;;;"}
@@ -1,7 +1,16 @@
1
- import registerComponent from '@plasmicapp/host/registerComponent';
2
- import AntdDropdown from 'antd/lib/dropdown';
3
- import DropdownButton from 'antd/lib/dropdown/dropdown-button';
4
- import React from 'react';
1
+ 'use strict';
2
+
3
+ var registerComponent = require('@plasmicapp/host/registerComponent');
4
+ var AntdDropdown = require('antd/lib/dropdown');
5
+ var DropdownButton = require('antd/lib/dropdown/dropdown-button');
6
+ var React = require('react');
7
+
8
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
+
10
+ var registerComponent__default = /*#__PURE__*/_interopDefault(registerComponent);
11
+ var AntdDropdown__default = /*#__PURE__*/_interopDefault(AntdDropdown);
12
+ var DropdownButton__default = /*#__PURE__*/_interopDefault(DropdownButton);
13
+ var React__default = /*#__PURE__*/_interopDefault(React);
5
14
 
6
15
  var __defProp = Object.defineProperty;
7
16
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
@@ -19,12 +28,12 @@ var __spreadValues = (a, b) => {
19
28
  }
20
29
  return a;
21
30
  };
22
- class Dropdown extends React.Component {
31
+ class Dropdown extends React__default.default.Component {
23
32
  render() {
24
33
  const thisProps = this.props;
25
34
  const finalProps = __spreadValues({}, thisProps);
26
- finalProps.children = typeof thisProps.children === "string" ? /* @__PURE__ */ React.createElement("div", null, thisProps.children) : thisProps.children;
27
- return /* @__PURE__ */ React.createElement(AntdDropdown, __spreadValues({}, finalProps));
35
+ finalProps.children = typeof thisProps.children === "string" ? /* @__PURE__ */ React__default.default.createElement("div", null, thisProps.children) : thisProps.children;
36
+ return /* @__PURE__ */ React__default.default.createElement(AntdDropdown__default.default, __spreadValues({}, finalProps));
28
37
  }
29
38
  }
30
39
  const dropdownMeta = {
@@ -90,7 +99,7 @@ const dropdownMeta = {
90
99
  importName: "Dropdown"
91
100
  };
92
101
  function registerDropdown(loader, customDropdownMeta) {
93
- const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
102
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
94
103
  doRegisterComponent(Dropdown, customDropdownMeta != null ? customDropdownMeta : dropdownMeta);
95
104
  }
96
105
  const dropdownButtonMeta = {
@@ -169,9 +178,13 @@ const dropdownButtonMeta = {
169
178
  isDefaultExport: true
170
179
  };
171
180
  function registerDropdownButton(loader, customDropdownButtonMeta) {
172
- const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
173
- doRegisterComponent(DropdownButton, customDropdownButtonMeta != null ? customDropdownButtonMeta : dropdownButtonMeta);
181
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
182
+ doRegisterComponent(DropdownButton__default.default, customDropdownButtonMeta != null ? customDropdownButtonMeta : dropdownButtonMeta);
174
183
  }
175
184
 
176
- export { Dropdown, dropdownButtonMeta, dropdownMeta, registerDropdown, registerDropdownButton };
185
+ exports.Dropdown = Dropdown;
186
+ exports.dropdownButtonMeta = dropdownButtonMeta;
187
+ exports.dropdownMeta = dropdownMeta;
188
+ exports.registerDropdown = registerDropdown;
189
+ exports.registerDropdownButton = registerDropdownButton;
177
190
  //# sourceMappingURL=registerDropdown.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"registerDropdown.js","sources":["../src/registerDropdown.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport AntdDropdown, {\n DropdownButtonProps,\n DropDownProps,\n} from \"antd/lib/dropdown\";\nimport DropdownButton from \"antd/lib/dropdown/dropdown-button\";\nimport React from \"react\";\nimport { Registerable } from \"./registerable\";\n\nexport class Dropdown extends React.Component<DropDownProps> {\n render() {\n const thisProps = this.props as any;\n const finalProps = { ...thisProps };\n finalProps.children =\n typeof thisProps.children === \"string\" ? (\n <div>{thisProps.children}</div>\n ) : (\n thisProps.children\n );\n return <AntdDropdown {...finalProps}>{}</AntdDropdown>;\n }\n}\n\nexport const dropdownMeta: ComponentMeta<DropDownProps> = {\n name: \"AntdDropdown\",\n displayName: \"Antd Dropdown\",\n props: {\n arrow: {\n type: \"boolean\",\n description: \"Whether the dropdown arrow should be visible\",\n defaultValueHint: false,\n },\n disabled: {\n type: \"boolean\",\n description: \"Whether the dropdown menu is disabled\",\n defaultValueHint: false,\n },\n overlay: {\n type: \"slot\",\n allowedComponents: [\"AntdMenu\"],\n defaultValue: [\n {\n type: \"component\",\n name: \"AntdMenu\",\n },\n ],\n },\n placement: {\n type: \"choice\",\n options: [\n \"bottomLeft\",\n \"bottomCenter\",\n \"bottomRight\",\n \"topLeft\",\n \"topCenter\",\n \"topRight\",\n ],\n description: \"Placement of popup menu\",\n defaultValueHint: \"bottomLeft\",\n },\n trigger: {\n type: \"choice\",\n options: [\"click\", \"hover\", \"contextMenu\"],\n description: \"The trigger mode which executes the dropdown action\",\n defaultValueHint: \"hover\",\n },\n visible: {\n type: \"boolean\",\n description: \"Toggle visibility of dropdown menu in Plasmic Editor\",\n editOnly: true,\n defaultValueHint: false,\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Dropdown\",\n },\n ],\n },\n },\n importPath: \"@plasmicpkgs/antd/skinny/registerDropdown\",\n importName: \"Dropdown\",\n};\n\nexport function registerDropdown(\n loader?: Registerable,\n customDropdownMeta?: ComponentMeta<DropDownProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Dropdown, customDropdownMeta ?? dropdownMeta);\n}\n\nexport const dropdownButtonMeta: ComponentMeta<DropdownButtonProps> = {\n name: \"AntdDropdownButton\",\n displayName: \"Antd Dropdown Button\",\n props: {\n disabled: {\n type: \"boolean\",\n description: \"Whether the dropdown menu is disabled\",\n defaultValueHint: false,\n },\n icon: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n overlay: {\n type: \"slot\",\n allowedComponents: [\"AntdMenu\"],\n defaultValue: [\n {\n type: \"component\",\n name: \"AntdMenu\",\n },\n ],\n },\n placement: {\n type: \"choice\",\n options: [\n \"bottomLeft\",\n \"bottomCenter\",\n \"bottomRight\",\n \"topLeft\",\n \"topCenter\",\n \"topRight\",\n ],\n description: \"Placement of popup menu\",\n defaultValueHint: \"bottomLeft\",\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"medium\", \"large\"],\n description: \"Set the size of button\",\n defaultValueHint: \"medium\",\n },\n trigger: {\n type: \"choice\",\n options: [\"click\", \"hover\", \"contextMenu\"],\n description: \"The trigger mode which executes the dropdown action\",\n defaultValueHint: \"hover\",\n },\n type: {\n type: \"choice\",\n options: [\"default\", \"primary\", \"ghost\", \"dashed\", \"link\", \"text\"],\n description: \"Can be set to primary, ghost, dashed, link, text, default\",\n defaultValueHint: \"default\",\n },\n visible: {\n type: \"boolean\",\n description: \"Toggle visibility of dropdown menu in Plasmic Editor\",\n editOnly: true,\n defaultValueHint: false,\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Dropdown\",\n },\n ],\n },\n },\n importPath: \"antd/lib/dropdown/dropdown-button\",\n importName: \"DropdownButton\",\n parentComponentName: \"AntdDropdown\",\n isDefaultExport: true,\n};\n\nexport function registerDropdownButton(\n loader?: Registerable,\n customDropdownButtonMeta?: ComponentMeta<DropDownProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(\n DropdownButton,\n customDropdownButtonMeta ?? dropdownButtonMeta\n );\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAWa,MAAA,QAAA,SAAiB,MAAM,SAAyB,CAAA;AAAA,EAC3D,MAAS,GAAA;AACP,IAAA,MAAM,YAAY,IAAK,CAAA,KAAA,CAAA;AACvB,IAAA,MAAM,aAAa,cAAK,CAAA,EAAA,EAAA,SAAA,CAAA,CAAA;AACxB,IAAW,UAAA,CAAA,QAAA,GACT,OAAO,SAAA,CAAU,QAAa,KAAA,QAAA,uCAC3B,KAAK,EAAA,IAAA,EAAA,SAAA,CAAU,QAAS,CAAA,GAEzB,SAAU,CAAA,QAAA,CAAA;AAEd,IAAO,uBAAA,KAAA,CAAA,aAAA,CAAC,iCAAiB,UAAc,CAAA,CAAA,CAAA;AAAA,GACzC;AACF,CAAA;AAEO,MAAM,YAA6C,GAAA;AAAA,EACxD,IAAM,EAAA,cAAA;AAAA,EACN,WAAa,EAAA,eAAA;AAAA,EACb,KAAO,EAAA;AAAA,IACL,KAAO,EAAA;AAAA,MACL,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,8CAAA;AAAA,MACb,gBAAkB,EAAA,KAAA;AAAA,KACpB;AAAA,IACA,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,uCAAA;AAAA,MACb,gBAAkB,EAAA,KAAA;AAAA,KACpB;AAAA,IACA,OAAS,EAAA;AAAA,MACP,IAAM,EAAA,MAAA;AAAA,MACN,iBAAA,EAAmB,CAAC,UAAU,CAAA;AAAA,MAC9B,YAAc,EAAA;AAAA,QACZ;A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,EAAA,QAAA;AAAA,MACN,SAAS,CAAC,SAAA,EAAW,WAAW,OAAS,EAAA,QAAA,EAAU,QAAQ,MAAM,CAAA;AAAA,MACjE,WAAa,EAAA,2DAAA;AAAA,MACb,gBAAkB,EAAA,SAAA;AAAA,KACpB;AAAA,IACA,OAAS,EAAA;AAAA,MACP,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,sDAAA;AAAA,MACb,QAAU,EAAA,IAAA;AAAA,MACV,gBAAkB,EAAA,KAAA;AAAA,KACpB;AAAA,IACA,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,MAAA;AAAA,MACN,YAAc,EAAA;AAAA,QACZ;AAAA,UACE,IAAM,EAAA,MAAA;AAAA,UACN,KAAO,EAAA,UAAA;AAAA,SACT;AAAA,OACF;AAAA,KACF;AAAA,GACF;AAAA,EACA,UAAY,EAAA,mCAAA;AAAA,EACZ,UAAY,EAAA,gBAAA;AAAA,EACZ,mBAAqB,EAAA,cAAA;AAAA,EACrB,eAAiB,EAAA,IAAA;AACnB,EAAA;AAEO,SAAA,sBAAA,CACL,QACA,wBACA,EAAA;AACA,EAAM,MAAA,mBAAA,GAAgD,CAAI,GAAA,IAAA,KACxD,MAAS,GAAA,MAAA,CAAO,iBAAkB,CAAA,GAAG,IAAI,CAAA,GAAI,iBAAkB,CAAA,GAAG,IAAI,CAAA,CAAA;AACxE,EACE,mBAAA,CAAA,cAAA,EACA,8DAA4B,kBAC9B,CAAA,CAAA;AACF;;;;"}
1
+ {"version":3,"file":"registerDropdown.js","sources":["../src/registerDropdown.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport AntdDropdown, {\n DropdownButtonProps,\n DropDownProps,\n} from \"antd/lib/dropdown\";\nimport DropdownButton from \"antd/lib/dropdown/dropdown-button\";\nimport React from \"react\";\nimport { Registerable } from \"./registerable\";\n\nexport class Dropdown extends React.Component<DropDownProps> {\n render() {\n const thisProps = this.props as any;\n const finalProps = { ...thisProps };\n finalProps.children =\n typeof thisProps.children === \"string\" ? (\n <div>{thisProps.children}</div>\n ) : (\n thisProps.children\n );\n return <AntdDropdown {...finalProps}>{}</AntdDropdown>;\n }\n}\n\nexport const dropdownMeta: ComponentMeta<DropDownProps> = {\n name: \"AntdDropdown\",\n displayName: \"Antd Dropdown\",\n props: {\n arrow: {\n type: \"boolean\",\n description: \"Whether the dropdown arrow should be visible\",\n defaultValueHint: false,\n },\n disabled: {\n type: \"boolean\",\n description: \"Whether the dropdown menu is disabled\",\n defaultValueHint: false,\n },\n overlay: {\n type: \"slot\",\n allowedComponents: [\"AntdMenu\"],\n defaultValue: [\n {\n type: \"component\",\n name: \"AntdMenu\",\n },\n ],\n },\n placement: {\n type: \"choice\",\n options: [\n \"bottomLeft\",\n \"bottomCenter\",\n \"bottomRight\",\n \"topLeft\",\n \"topCenter\",\n \"topRight\",\n ],\n description: \"Placement of popup menu\",\n defaultValueHint: \"bottomLeft\",\n },\n trigger: {\n type: \"choice\",\n options: [\"click\", \"hover\", \"contextMenu\"],\n description: \"The trigger mode which executes the dropdown action\",\n defaultValueHint: \"hover\",\n },\n visible: {\n type: \"boolean\",\n description: \"Toggle visibility of dropdown menu in Plasmic Editor\",\n editOnly: true,\n defaultValueHint: false,\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Dropdown\",\n },\n ],\n },\n },\n importPath: \"@plasmicpkgs/antd/skinny/registerDropdown\",\n importName: \"Dropdown\",\n};\n\nexport function registerDropdown(\n loader?: Registerable,\n customDropdownMeta?: ComponentMeta<DropDownProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Dropdown, customDropdownMeta ?? dropdownMeta);\n}\n\nexport const dropdownButtonMeta: ComponentMeta<DropdownButtonProps> = {\n name: \"AntdDropdownButton\",\n displayName: \"Antd Dropdown Button\",\n props: {\n disabled: {\n type: \"boolean\",\n description: \"Whether the dropdown menu is disabled\",\n defaultValueHint: false,\n },\n icon: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n overlay: {\n type: \"slot\",\n allowedComponents: [\"AntdMenu\"],\n defaultValue: [\n {\n type: \"component\",\n name: \"AntdMenu\",\n },\n ],\n },\n placement: {\n type: \"choice\",\n options: [\n \"bottomLeft\",\n \"bottomCenter\",\n \"bottomRight\",\n \"topLeft\",\n \"topCenter\",\n \"topRight\",\n ],\n description: \"Placement of popup menu\",\n defaultValueHint: \"bottomLeft\",\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"medium\", \"large\"],\n description: \"Set the size of button\",\n defaultValueHint: \"medium\",\n },\n trigger: {\n type: \"choice\",\n options: [\"click\", \"hover\", \"contextMenu\"],\n description: \"The trigger mode which executes the dropdown action\",\n defaultValueHint: \"hover\",\n },\n type: {\n type: \"choice\",\n options: [\"default\", \"primary\", \"ghost\", \"dashed\", \"link\", \"text\"],\n description: \"Can be set to primary, ghost, dashed, link, text, default\",\n defaultValueHint: \"default\",\n },\n visible: {\n type: \"boolean\",\n description: \"Toggle visibility of dropdown menu in Plasmic Editor\",\n editOnly: true,\n defaultValueHint: false,\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Dropdown\",\n },\n ],\n },\n },\n importPath: \"antd/lib/dropdown/dropdown-button\",\n importName: \"DropdownButton\",\n parentComponentName: \"AntdDropdown\",\n isDefaultExport: true,\n};\n\nexport function registerDropdownButton(\n loader?: Registerable,\n customDropdownButtonMeta?: ComponentMeta<DropDownProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(\n DropdownButton,\n customDropdownButtonMeta ?? dropdownButtonMeta\n );\n}\n"],"names":["React","AntdDropdown","registerComponent","DropdownButton"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWa,MAAA,QAAA,SAAiBA,uBAAM,SAAyB,CAAA;AAAA,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;AAAA,MACR,IAAM,EAAA,MAAA;AAAA,MACN,YAAc,EAAA;AAAA,QACZ;AAAA,UACE,IAAM,EAAA,MAAA;AAAA,UACN,KAAO,EAAA,UAAA;AAAA,SACT;AAAA,OACF;AAAA,KACF;AAAA,GACF;AAAA,EACA,UAAY,EAAA,mCAAA;AAAA,EACZ,UAAY,EAAA,gBAAA;AAAA,EACZ,mBAAqB,EAAA,cAAA;AAAA,EACrB,eAAiB,EAAA,IAAA;AACnB,EAAA;AAEO,SAAA,sBAAA,CACL,QACA,wBACA,EAAA;AACA,EAAM,MAAA,mBAAA,GAAgD,CAAI,GAAA,IAAA,KACxD,MAAS,GAAA,MAAA,CAAO,iBAAkB,CAAA,GAAG,IAAI,CAAA,GAAIA,kCAAkB,CAAA,GAAG,IAAI,CAAA,CAAA;AACxE,EACE,mBAAA,CAAAC,+BAAA,EACA,8DAA4B,kBAC9B,CAAA,CAAA;AACF;;;;;;;;"}
@@ -1,9 +1,20 @@
1
- import registerComponent from '@plasmicapp/host/registerComponent';
2
- import Input from 'antd/lib/input';
3
- import InputGroup from 'antd/lib/input/Group';
4
- import Password from 'antd/lib/input/Password';
5
- import Search from 'antd/lib/input/Search';
6
- import TextArea from 'antd/lib/input/TextArea';
1
+ 'use strict';
2
+
3
+ var registerComponent = require('@plasmicapp/host/registerComponent');
4
+ var Input = require('antd/lib/input');
5
+ var InputGroup = require('antd/lib/input/Group');
6
+ var Password = require('antd/lib/input/Password');
7
+ var Search = require('antd/lib/input/Search');
8
+ var TextArea = require('antd/lib/input/TextArea');
9
+
10
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
+
12
+ var registerComponent__default = /*#__PURE__*/_interopDefault(registerComponent);
13
+ var Input__default = /*#__PURE__*/_interopDefault(Input);
14
+ var InputGroup__default = /*#__PURE__*/_interopDefault(InputGroup);
15
+ var Password__default = /*#__PURE__*/_interopDefault(Password);
16
+ var Search__default = /*#__PURE__*/_interopDefault(Search);
17
+ var TextArea__default = /*#__PURE__*/_interopDefault(TextArea);
7
18
 
8
19
  var __defProp = Object.defineProperty;
9
20
  var __defProps = Object.defineProperties;
@@ -140,8 +151,8 @@ const inputMeta = {
140
151
  isDefaultExport: true
141
152
  };
142
153
  function registerInput(loader, customInputMeta) {
143
- const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
144
- doRegisterComponent(Input, customInputMeta != null ? customInputMeta : inputMeta);
154
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
155
+ doRegisterComponent(Input__default.default, customInputMeta != null ? customInputMeta : inputMeta);
145
156
  }
146
157
  const inputTextAreaMeta = {
147
158
  name: "AntdInputTextArea",
@@ -215,8 +226,8 @@ const inputTextAreaMeta = {
215
226
  parentComponentName: "AntdInput"
216
227
  };
217
228
  function registerInputTextArea(loader, customInputTextAreaMeta) {
218
- const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
219
- doRegisterComponent(TextArea, customInputTextAreaMeta != null ? customInputTextAreaMeta : inputTextAreaMeta);
229
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
230
+ doRegisterComponent(TextArea__default.default, customInputTextAreaMeta != null ? customInputTextAreaMeta : inputTextAreaMeta);
220
231
  }
221
232
  const inputSearchMeta = {
222
233
  name: "AntdInputSearch",
@@ -312,8 +323,8 @@ const inputSearchMeta = {
312
323
  parentComponentName: "AntdInput"
313
324
  };
314
325
  function registerInputSearch(loader, customInputSearchMeta) {
315
- const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
316
- doRegisterComponent(Search, customInputSearchMeta != null ? customInputSearchMeta : inputSearchMeta);
326
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
327
+ doRegisterComponent(Search__default.default, customInputSearchMeta != null ? customInputSearchMeta : inputSearchMeta);
317
328
  }
318
329
  const inputPasswordMeta = {
319
330
  name: "AntdInputPassword",
@@ -405,8 +416,8 @@ const inputPasswordMeta = {
405
416
  parentComponentName: "AntdInput"
406
417
  };
407
418
  function registerInputPassword(loader, customInputPasswordMeta) {
408
- const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
409
- doRegisterComponent(Password, customInputPasswordMeta != null ? customInputPasswordMeta : inputPasswordMeta);
419
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
420
+ doRegisterComponent(Password__default.default, customInputPasswordMeta != null ? customInputPasswordMeta : inputPasswordMeta);
410
421
  }
411
422
  const inputGroupMeta = {
412
423
  name: "AntdInputGroup",
@@ -443,9 +454,19 @@ const inputGroupMeta = {
443
454
  parentComponentName: "AntdInput"
444
455
  };
445
456
  function registerInputGroup(loader, customInputGroupMeta) {
446
- const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
447
- doRegisterComponent(InputGroup, customInputGroupMeta != null ? customInputGroupMeta : inputGroupMeta);
457
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
458
+ doRegisterComponent(InputGroup__default.default, customInputGroupMeta != null ? customInputGroupMeta : inputGroupMeta);
448
459
  }
449
460
 
450
- export { inputGroupMeta, inputHelpers, inputMeta, inputPasswordMeta, inputSearchMeta, inputTextAreaMeta, registerInput, registerInputGroup, registerInputPassword, registerInputSearch, registerInputTextArea };
461
+ exports.inputGroupMeta = inputGroupMeta;
462
+ exports.inputHelpers = inputHelpers;
463
+ exports.inputMeta = inputMeta;
464
+ exports.inputPasswordMeta = inputPasswordMeta;
465
+ exports.inputSearchMeta = inputSearchMeta;
466
+ exports.inputTextAreaMeta = inputTextAreaMeta;
467
+ exports.registerInput = registerInput;
468
+ exports.registerInputGroup = registerInputGroup;
469
+ exports.registerInputPassword = registerInputPassword;
470
+ exports.registerInputSearch = registerInputSearch;
471
+ exports.registerInputTextArea = registerInputTextArea;
451
472
  //# sourceMappingURL=registerInput.js.map