@plasmicpkgs/antd 2.0.5 → 2.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.
Files changed (76) hide show
  1. package/dist/antd.cjs.development.js +2242 -0
  2. package/dist/antd.cjs.development.js.map +1 -0
  3. package/dist/antd.cjs.production.min.js +2 -0
  4. package/dist/antd.cjs.production.min.js.map +1 -0
  5. package/dist/antd.css +27184 -0
  6. package/dist/antd.esm.js +637 -724
  7. package/dist/antd.esm.js.map +1 -1
  8. package/dist/customControls.d.ts +17 -17
  9. package/dist/index.d.ts +16 -16
  10. package/dist/index.js +5 -2353
  11. package/dist/registerButton.d.ts +5 -5
  12. package/dist/registerCarousel.d.ts +5 -5
  13. package/dist/registerCheckbox.d.ts +8 -8
  14. package/dist/registerCollapse.d.ts +14 -14
  15. package/dist/registerDropdown.d.ts +11 -11
  16. package/dist/registerInput.d.ts +14 -13
  17. package/dist/registerMenu.d.ts +15 -14
  18. package/dist/registerOption.d.ts +8 -8
  19. package/dist/registerRate.d.ts +5 -5
  20. package/dist/registerSelect.d.ts +8 -8
  21. package/dist/registerSlider.d.ts +19 -19
  22. package/dist/registerSwitch.d.ts +5 -5
  23. package/dist/registerTable.d.ts +30 -30
  24. package/dist/registerTabs.d.ts +13 -14
  25. package/dist/registerable.d.ts +4 -4
  26. package/package.json +7 -9
  27. package/skinny/customControls-8143c119.js +27 -0
  28. package/skinny/{customControls-f5378e2f.js.map → customControls-8143c119.js.map} +1 -1
  29. package/skinny/customControls.d.ts +17 -17
  30. package/skinny/index.d.ts +16 -0
  31. package/skinny/package.json +2 -2
  32. package/skinny/registerButton.d.ts +5 -5
  33. package/skinny/registerButton.js +94 -78
  34. package/skinny/registerButton.js.map +1 -1
  35. package/skinny/registerCarousel.d.ts +5 -5
  36. package/skinny/registerCarousel.js +80 -64
  37. package/skinny/registerCarousel.js.map +1 -1
  38. package/skinny/registerCheckbox.d.ts +8 -8
  39. package/skinny/registerCheckbox.js +140 -123
  40. package/skinny/registerCheckbox.js.map +1 -1
  41. package/skinny/registerCollapse.d.ts +14 -14
  42. package/skinny/registerCollapse.js +173 -172
  43. package/skinny/registerCollapse.js.map +1 -1
  44. package/skinny/registerDropdown.d.ts +11 -11
  45. package/skinny/registerDropdown.js +190 -172
  46. package/skinny/registerDropdown.js.map +1 -1
  47. package/skinny/registerInput.d.ts +14 -13
  48. package/skinny/registerInput.js +341 -360
  49. package/skinny/registerInput.js.map +1 -1
  50. package/skinny/registerMenu.d.ts +15 -14
  51. package/skinny/registerMenu.js +326 -274
  52. package/skinny/registerMenu.js.map +1 -1
  53. package/skinny/registerOption.d.ts +8 -8
  54. package/skinny/registerOption.js +95 -72
  55. package/skinny/registerOption.js.map +1 -1
  56. package/skinny/registerRate.d.ts +5 -5
  57. package/skinny/registerSelect.d.ts +8 -8
  58. package/skinny/registerSelect.js +144 -128
  59. package/skinny/registerSelect.js.map +1 -1
  60. package/skinny/registerSlider.d.ts +19 -19
  61. package/skinny/registerSlider.js +120 -130
  62. package/skinny/registerSlider.js.map +1 -1
  63. package/skinny/registerSwitch.d.ts +5 -5
  64. package/skinny/registerSwitch.js +69 -53
  65. package/skinny/registerSwitch.js.map +1 -1
  66. package/skinny/registerTable.d.ts +30 -30
  67. package/skinny/registerTable.js +204 -201
  68. package/skinny/registerTable.js.map +1 -1
  69. package/skinny/registerTabs.d.ts +13 -14
  70. package/skinny/registerTabs.js +330 -342
  71. package/skinny/registerTabs.js.map +1 -1
  72. package/skinny/registerable.d.ts +4 -4
  73. package/skinny/tslib.es6-40998fef.js +59 -0
  74. package/skinny/tslib.es6-40998fef.js.map +1 -0
  75. package/dist/index.js.map +0 -1
  76. package/skinny/customControls-f5378e2f.js +0 -20
@@ -1,82 +1,98 @@
1
- import registerComponent from '@plasmicapp/host/registerComponent';
2
- import Button from 'antd/es/button';
1
+ 'use strict';
3
2
 
4
- const buttonMeta = {
5
- name: "AntdButton",
6
- displayName: "Antd Button",
7
- props: {
8
- type: {
9
- type: "choice",
10
- options: ["default", "primary", "ghost", "dashed", "link", "text"],
11
- description: "Can be set to primary, ghost, dashed, link, text, default",
12
- defaultValueHint: "default"
13
- },
14
- size: {
15
- type: "choice",
16
- options: ["small", "medium", "large"],
17
- description: "Set the size of button",
18
- defaultValueHint: "medium"
19
- },
20
- shape: {
21
- type: "choice",
22
- options: ["default", "circle", "round"],
23
- description: "Can be set button shape",
24
- defaultValueHint: "default"
25
- },
26
- disabled: {
27
- type: "boolean",
28
- description: "Disabled state of button",
29
- defaultValueHint: false
30
- },
31
- ghost: {
32
- type: "boolean",
33
- description: "Make background transparent and invert text and border colors",
34
- defaultValueHint: false
35
- },
36
- danger: {
37
- type: "boolean",
38
- description: "Set the danger status of button",
39
- defaultValueHint: false
40
- },
41
- block: {
42
- type: "boolean",
43
- description: "Option to fit button width to its parent width",
44
- defaultValueHint: false
45
- },
46
- loading: {
47
- type: "boolean",
48
- description: "Set the loading status of button",
49
- defaultValueHint: false
50
- },
51
- href: {
52
- type: "string",
53
- description: "Redirect url of link button"
54
- },
55
- target: {
56
- type: "choice",
57
- options: ["_blank", "_self", "_parent", "_top"],
58
- description: "Same as target attribute of a, works when href is specified",
59
- hidden: (props) => !props.href,
60
- defaultValueHint: "_self"
61
- },
62
- children: {
63
- type: "slot",
64
- defaultValue: [
65
- {
66
- type: "text",
67
- value: "Button"
68
- }
69
- ]
70
- }
71
- },
72
- importPath: "antd/es/button",
73
- isDefaultExport: true,
74
- importName: "Button"
75
- };
76
- function registerButton(loader, customButtonMeta) {
77
- const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
78
- doRegisterComponent(Button, customButtonMeta != null ? customButtonMeta : buttonMeta);
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var registerComponent = require('@plasmicapp/host/registerComponent');
6
+ var Button = require('antd/lib/button');
7
+
8
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
+
10
+ var registerComponent__default = /*#__PURE__*/_interopDefaultLegacy(registerComponent);
11
+ var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
12
+
13
+ var buttonMeta = {
14
+ name: "AntdButton",
15
+ displayName: "Antd Button",
16
+ props: {
17
+ type: {
18
+ type: "choice",
19
+ options: ["default", "primary", "ghost", "dashed", "link", "text"],
20
+ description: "Can be set to primary, ghost, dashed, link, text, default",
21
+ defaultValueHint: "default",
22
+ },
23
+ size: {
24
+ type: "choice",
25
+ options: ["small", "medium", "large"],
26
+ description: "Set the size of button",
27
+ defaultValueHint: "medium",
28
+ },
29
+ shape: {
30
+ type: "choice",
31
+ options: ["default", "circle", "round"],
32
+ description: "Can be set button shape",
33
+ defaultValueHint: "default",
34
+ },
35
+ disabled: {
36
+ type: "boolean",
37
+ description: "Disabled state of button",
38
+ defaultValueHint: false,
39
+ },
40
+ ghost: {
41
+ type: "boolean",
42
+ description: "Make background transparent and invert text and border colors",
43
+ defaultValueHint: false,
44
+ },
45
+ danger: {
46
+ type: "boolean",
47
+ description: "Set the danger status of button",
48
+ defaultValueHint: false,
49
+ },
50
+ block: {
51
+ type: "boolean",
52
+ description: "Option to fit button width to its parent width",
53
+ defaultValueHint: false,
54
+ },
55
+ loading: {
56
+ type: "boolean",
57
+ description: "Set the loading status of button",
58
+ defaultValueHint: false,
59
+ },
60
+ href: {
61
+ type: "string",
62
+ description: "Redirect url of link button",
63
+ },
64
+ target: {
65
+ type: "choice",
66
+ options: ["_blank", "_self", "_parent", "_top"],
67
+ description: "Same as target attribute of a, works when href is specified",
68
+ hidden: function (props) { return !props.href; },
69
+ defaultValueHint: "_self",
70
+ },
71
+ children: {
72
+ type: "slot",
73
+ defaultValue: [
74
+ {
75
+ type: "text",
76
+ value: "Button",
77
+ },
78
+ ],
79
+ },
80
+ },
81
+ importPath: "antd/lib/button",
82
+ isDefaultExport: true,
83
+ importName: "Button",
84
+ };
85
+ function registerButton(loader, customButtonMeta) {
86
+ var doRegisterComponent = function () {
87
+ var args = [];
88
+ for (var _i = 0; _i < arguments.length; _i++) {
89
+ args[_i] = arguments[_i];
90
+ }
91
+ return loader ? loader.registerComponent.apply(loader, args) : registerComponent__default['default'].apply(void 0, args);
92
+ };
93
+ doRegisterComponent(Button__default['default'], customButtonMeta !== null && customButtonMeta !== void 0 ? customButtonMeta : buttonMeta);
79
94
  }
80
95
 
81
- export { buttonMeta, registerButton };
96
+ exports.buttonMeta = buttonMeta;
97
+ exports.registerButton = registerButton;
82
98
  //# 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/es/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/es/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":";;;MAKa,aAAyC;AAAA,EACpD,MAAM;AAAA,EACN,aAAa;AAAA,EACb,OAAO;AAAA,IACL,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS,CAAC,WAAW,WAAW,SAAS,UAAU,QAAQ,MAAM;AAAA,MACjE,aAAa;AAAA,MACb,kBAAkB;AAAA;AACpB,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS,CAAC,SAAS,UAAU,OAAO;AAAA,MACpC,aAAa;AAAA,MACb,kBAAkB;AAAA;AACpB,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,SAAS,CAAC,WAAW,UAAU,OAAO;AAAA,MACtC,aAAa;AAAA,MACb,kBAAkB;AAAA;AACpB,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,aAAa;AAAA,MACb,kBAAkB;AAAA;AACpB,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,aACE;AAAA,MACF,kBAAkB;AAAA;AACpB,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,aAAa;AAAA,MACb,kBAAkB;AAAA;AACpB,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,aAAa;AAAA,MACb,kBAAkB;AAAA;AACpB,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,aAAa;AAAA,MACb,kBAAkB;AAAA;AACpB,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,aAAa;AAAA;AACf,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,SAAS,CAAC,UAAU,SAAS,WAAW,MAAM;AAAA,MAC9C,aACE;AAAA,MACF,QAAQ,CAAC,UAAU,CAAC,MAAM;AAAA,MAC1B,kBAAkB;AAAA;AACpB,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,cAAc;AAAA,QACZ;AAAA,UACE,MAAM;AAAA,UACN,OAAO;AAAA;AACT;AACF;AACF;AACF,EACA,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,YAAY;AACd;wBAGE,QACA,kBACA;AACA,QAAM,sBAAgD,IAAI,SACxD,SAAS,OAAO,kBAAkB,GAAG,IAAI,IAAI,kBAAkB,GAAG,IAAI;AACxE,sBAAoB,QAAQ,8CAAoB,UAAU;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":";;;;;;;;;;;;IAKa,UAAU,GAA+B;IACpD,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,aAAa;IAC1B,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC;YAClE,WAAW,EAAE,2DAA2D;YACxE,gBAAgB,EAAE,SAAS;SAC5B;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;YACrC,WAAW,EAAE,wBAAwB;YACrC,gBAAgB,EAAE,QAAQ;SAC3B;QACD,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC;YACvC,WAAW,EAAE,yBAAyB;YACtC,gBAAgB,EAAE,SAAS;SAC5B;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0BAA0B;YACvC,gBAAgB,EAAE,KAAK;SACxB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,SAAS;YACf,WAAW,EACT,+DAA+D;YACjE,gBAAgB,EAAE,KAAK;SACxB;QACD,MAAM,EAAE;YACN,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,iCAAiC;YAC9C,gBAAgB,EAAE,KAAK;SACxB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,gDAAgD;YAC7D,gBAAgB,EAAE,KAAK;SACxB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,kCAAkC;YAC/C,gBAAgB,EAAE,KAAK;SACxB;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,6BAA6B;SAC3C;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC;YAC/C,WAAW,EACT,6DAA6D;YAC/D,MAAM,EAAE,UAAA,KAAK,IAAI,OAAA,CAAC,KAAK,CAAC,IAAI,GAAA;YAC5B,gBAAgB,EAAE,OAAO;SAC1B;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM;YACZ,YAAY,EAAE;gBACZ;oBACE,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,QAAQ;iBAChB;aACF;SACF;KACF;IACD,UAAU,EAAE,iBAAiB;IAC7B,eAAe,EAAE,IAAI;IACrB,UAAU,EAAE,QAAQ;EACpB;SAEc,cAAc,CAC5B,MAAqB,EACrB,gBAA6C;IAE7C,IAAM,mBAAmB,GAA6B;QAAC,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QAC5D,OAAA,MAAM,GAAG,MAAM,CAAC,iBAAiB,OAAxB,MAAM,EAAsB,IAAI,IAAIA,qCAAiB,eAAI,IAAI,CAAC;KAAA,CAAC;IAC1E,mBAAmB,CAACC,0BAAM,EAAE,gBAAgB,aAAhB,gBAAgB,cAAhB,gBAAgB,GAAI,UAAU,CAAC,CAAC;AAC9D;;;;;"}
@@ -1,5 +1,5 @@
1
- import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
- import { CarouselProps } from "antd/es/carousel";
3
- import { Registerable } from "./registerable";
4
- export declare const carouselMeta: ComponentMeta<CarouselProps>;
5
- export declare function registerCarousel(loader?: Registerable, customCarouselMeta?: ComponentMeta<CarouselProps>): void;
1
+ import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
+ import { CarouselProps } from "antd/lib/carousel";
3
+ import { Registerable } from "./registerable";
4
+ export declare const carouselMeta: ComponentMeta<CarouselProps>;
5
+ export declare function registerCarousel(loader?: Registerable, customCarouselMeta?: ComponentMeta<CarouselProps>): void;
@@ -1,68 +1,84 @@
1
- import registerComponent from '@plasmicapp/host/registerComponent';
2
- import Carousel from 'antd/es/carousel';
1
+ 'use strict';
3
2
 
4
- const contentStyle = {
5
- height: "160px",
6
- color: "#fff",
7
- lineHeight: "160px",
8
- textAlign: "center",
9
- backgroundColor: "#364d79"
10
- };
11
- const carouselMeta = {
12
- name: "AntdCarousel",
13
- displayName: "Antd Carousel",
14
- props: {
15
- autoplay: {
16
- type: "boolean",
17
- description: "Whether to scroll automatically",
18
- defaultValueHint: false
19
- },
20
- dotPosition: {
21
- type: "choice",
22
- options: ["top", "bottom", "left", "right"],
23
- description: "The position of the dots",
24
- defaultValueHint: "bottom"
25
- },
26
- dots: {
27
- type: "boolean",
28
- description: "Whether to show the dots at the bottom of the gallery",
29
- defaultValueHint: true
30
- },
31
- effect: {
32
- type: "choice",
33
- options: ["scrollx", "fade"],
34
- defaultValueHint: "scrollx"
35
- },
36
- children: {
37
- type: "slot",
38
- defaultValue: [
39
- {
40
- type: "vbox",
41
- children: {
42
- type: "text",
43
- value: "1",
44
- styles: contentStyle
45
- }
46
- },
47
- {
48
- type: "vbox",
49
- children: {
50
- type: "text",
51
- value: "2",
52
- styles: contentStyle
53
- }
54
- }
55
- ]
56
- }
57
- },
58
- importPath: "antd/es/carousel",
59
- importName: "Carousel",
60
- isDefaultExport: true
61
- };
62
- function registerCarousel(loader, customCarouselMeta) {
63
- const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
64
- doRegisterComponent(Carousel, customCarouselMeta != null ? customCarouselMeta : carouselMeta);
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var registerComponent = require('@plasmicapp/host/registerComponent');
6
+ var Carousel = require('antd/lib/carousel');
7
+
8
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
+
10
+ var registerComponent__default = /*#__PURE__*/_interopDefaultLegacy(registerComponent);
11
+ var Carousel__default = /*#__PURE__*/_interopDefaultLegacy(Carousel);
12
+
13
+ var contentStyle = {
14
+ height: "160px",
15
+ color: "#fff",
16
+ lineHeight: "160px",
17
+ textAlign: "center",
18
+ backgroundColor: "#364d79",
19
+ };
20
+ var carouselMeta = {
21
+ name: "AntdCarousel",
22
+ displayName: "Antd Carousel",
23
+ props: {
24
+ autoplay: {
25
+ type: "boolean",
26
+ description: "Whether to scroll automatically",
27
+ defaultValueHint: false,
28
+ },
29
+ dotPosition: {
30
+ type: "choice",
31
+ options: ["top", "bottom", "left", "right"],
32
+ description: "The position of the dots",
33
+ defaultValueHint: "bottom",
34
+ },
35
+ dots: {
36
+ type: "boolean",
37
+ description: "Whether to show the dots at the bottom of the gallery",
38
+ defaultValueHint: true,
39
+ },
40
+ effect: {
41
+ type: "choice",
42
+ options: ["scrollx", "fade"],
43
+ defaultValueHint: "scrollx",
44
+ },
45
+ children: {
46
+ type: "slot",
47
+ defaultValue: [
48
+ {
49
+ type: "vbox",
50
+ children: {
51
+ type: "text",
52
+ value: "1",
53
+ styles: contentStyle,
54
+ },
55
+ },
56
+ {
57
+ type: "vbox",
58
+ children: {
59
+ type: "text",
60
+ value: "2",
61
+ styles: contentStyle,
62
+ },
63
+ },
64
+ ],
65
+ },
66
+ },
67
+ importPath: "antd/lib/carousel",
68
+ importName: "Carousel",
69
+ isDefaultExport: true,
70
+ };
71
+ function registerCarousel(loader, customCarouselMeta) {
72
+ var doRegisterComponent = function () {
73
+ var args = [];
74
+ for (var _i = 0; _i < arguments.length; _i++) {
75
+ args[_i] = arguments[_i];
76
+ }
77
+ return loader ? loader.registerComponent.apply(loader, args) : registerComponent__default['default'].apply(void 0, args);
78
+ };
79
+ doRegisterComponent(Carousel__default['default'], customCarouselMeta !== null && customCarouselMeta !== void 0 ? customCarouselMeta : carouselMeta);
65
80
  }
66
81
 
67
- export { carouselMeta, registerCarousel };
82
+ exports.carouselMeta = carouselMeta;
83
+ exports.registerCarousel = registerCarousel;
68
84
  //# 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/es/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/es/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,eAA8B;AAAA,EAClC,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,iBAAiB;AACnB;MAEa,eAA6C;AAAA,EACxD,MAAM;AAAA,EACN,aAAa;AAAA,EACb,OAAO;AAAA,IACL,UAAU;AAAA,MACR,MAAM;AAAA,MACN,aAAa;AAAA,MACb,kBAAkB;AAAA;AACpB,IACA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,SAAS,CAAC,OAAO,UAAU,QAAQ,OAAO;AAAA,MAC1C,aAAa;AAAA,MACb,kBAAkB;AAAA;AACpB,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,aAAa;AAAA,MACb,kBAAkB;AAAA;AACpB,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,SAAS,CAAC,WAAW,MAAM;AAAA,MAC3B,kBAAkB;AAAA;AACpB,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,cAAc;AAAA,QACZ;AAAA,UACE,MAAM;AAAA,UACN,UAAU;AAAA,YACR,MAAM;AAAA,YACN,OAAO;AAAA,YACP,QAAQ;AAAA;AACV;AACF,QACA;AAAA,UACE,MAAM;AAAA,UACN,UAAU;AAAA,YACR,MAAM;AAAA,YACN,OAAO;AAAA,YACP,QAAQ;AAAA;AACV;AACF;AACF;AACF;AACF,EACA,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,iBAAiB;AACnB;0BAGE,QACA,oBACA;AACA,QAAM,sBAAgD,IAAI,SACxD,SAAS,OAAO,kBAAkB,GAAG,IAAI,IAAI,kBAAkB,GAAG,IAAI;AACxE,sBAAoB,UAAU,kDAAsB,YAAY;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,IAAM,YAAY,GAAkB;IAClC,MAAM,EAAE,OAAO;IACf,KAAK,EAAE,MAAM;IACb,UAAU,EAAE,OAAO;IACnB,SAAS,EAAE,QAAQ;IACnB,eAAe,EAAE,SAAS;CAC3B,CAAC;IAEW,YAAY,GAAiC;IACxD,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,eAAe;IAC5B,KAAK,EAAE;QACL,QAAQ,EAAE;YACR,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,iCAAiC;YAC9C,gBAAgB,EAAE,KAAK;SACxB;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC;YAC3C,WAAW,EAAE,0BAA0B;YACvC,gBAAgB,EAAE,QAAQ;SAC3B;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,uDAAuD;YACpE,gBAAgB,EAAE,IAAI;SACvB;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;YAC5B,gBAAgB,EAAE,SAAS;SAC5B;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM;YACZ,YAAY,EAAE;gBACZ;oBACE,IAAI,EAAE,MAAM;oBACZ,QAAQ,EAAE;wBACR,IAAI,EAAE,MAAM;wBACZ,KAAK,EAAE,GAAG;wBACV,MAAM,EAAE,YAAY;qBACrB;iBACF;gBACD;oBACE,IAAI,EAAE,MAAM;oBACZ,QAAQ,EAAE;wBACR,IAAI,EAAE,MAAM;wBACZ,KAAK,EAAE,GAAG;wBACV,MAAM,EAAE,YAAY;qBACrB;iBACF;aACF;SACF;KACF;IACD,UAAU,EAAE,mBAAmB;IAC/B,UAAU,EAAE,UAAU;IACtB,eAAe,EAAE,IAAI;EACrB;SAEc,gBAAgB,CAC9B,MAAqB,EACrB,kBAAiD;IAEjD,IAAM,mBAAmB,GAA6B;QAAC,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QAC5D,OAAA,MAAM,GAAG,MAAM,CAAC,iBAAiB,OAAxB,MAAM,EAAsB,IAAI,IAAIA,qCAAiB,eAAI,IAAI,CAAC;KAAA,CAAC;IAC1E,mBAAmB,CAACC,4BAAQ,EAAE,kBAAkB,aAAlB,kBAAkB,cAAlB,kBAAkB,GAAI,YAAY,CAAC,CAAC;AACpE;;;;;"}
@@ -1,8 +1,8 @@
1
- import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
- import { CheckboxProps } from "antd/es/checkbox/Checkbox";
3
- import { CheckboxGroupProps } from "antd/es/checkbox/Group";
4
- import { Registerable } from "./registerable";
5
- export declare const checkboxMeta: ComponentMeta<CheckboxProps>;
6
- export declare function registerCheckbox(loader?: Registerable, customCheckboxMeta?: ComponentMeta<CheckboxProps>): void;
7
- export declare const checkboxGroupMeta: ComponentMeta<CheckboxGroupProps>;
8
- export declare function registerCheckboxGroup(loader?: Registerable, customCheckboxGroupMeta?: ComponentMeta<CheckboxGroupProps>): void;
1
+ import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
+ import { CheckboxProps } from "antd/lib/checkbox/Checkbox";
3
+ import { CheckboxGroupProps } from "antd/lib/checkbox/Group";
4
+ import { Registerable } from "./registerable";
5
+ export declare const checkboxMeta: ComponentMeta<CheckboxProps>;
6
+ export declare function registerCheckbox(loader?: Registerable, customCheckboxMeta?: ComponentMeta<CheckboxProps>): void;
7
+ export declare const checkboxGroupMeta: ComponentMeta<CheckboxGroupProps>;
8
+ export declare function registerCheckboxGroup(loader?: Registerable, customCheckboxGroupMeta?: ComponentMeta<CheckboxGroupProps>): void;