@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.
- package/dist/antd.cjs.development.js +2242 -0
- package/dist/antd.cjs.development.js.map +1 -0
- package/dist/antd.cjs.production.min.js +2 -0
- package/dist/antd.cjs.production.min.js.map +1 -0
- package/dist/antd.css +27184 -0
- package/dist/antd.esm.js +637 -724
- package/dist/antd.esm.js.map +1 -1
- package/dist/customControls.d.ts +17 -17
- package/dist/index.d.ts +16 -16
- package/dist/index.js +5 -2353
- package/dist/registerButton.d.ts +5 -5
- package/dist/registerCarousel.d.ts +5 -5
- package/dist/registerCheckbox.d.ts +8 -8
- package/dist/registerCollapse.d.ts +14 -14
- package/dist/registerDropdown.d.ts +11 -11
- package/dist/registerInput.d.ts +14 -13
- package/dist/registerMenu.d.ts +15 -14
- package/dist/registerOption.d.ts +8 -8
- package/dist/registerRate.d.ts +5 -5
- package/dist/registerSelect.d.ts +8 -8
- package/dist/registerSlider.d.ts +19 -19
- package/dist/registerSwitch.d.ts +5 -5
- package/dist/registerTable.d.ts +30 -30
- package/dist/registerTabs.d.ts +13 -14
- package/dist/registerable.d.ts +4 -4
- package/package.json +7 -9
- package/skinny/customControls-8143c119.js +27 -0
- package/skinny/{customControls-f5378e2f.js.map → customControls-8143c119.js.map} +1 -1
- package/skinny/customControls.d.ts +17 -17
- package/skinny/index.d.ts +16 -0
- package/skinny/package.json +2 -2
- package/skinny/registerButton.d.ts +5 -5
- package/skinny/registerButton.js +94 -78
- package/skinny/registerButton.js.map +1 -1
- package/skinny/registerCarousel.d.ts +5 -5
- package/skinny/registerCarousel.js +80 -64
- package/skinny/registerCarousel.js.map +1 -1
- package/skinny/registerCheckbox.d.ts +8 -8
- package/skinny/registerCheckbox.js +140 -123
- package/skinny/registerCheckbox.js.map +1 -1
- package/skinny/registerCollapse.d.ts +14 -14
- package/skinny/registerCollapse.js +173 -172
- package/skinny/registerCollapse.js.map +1 -1
- package/skinny/registerDropdown.d.ts +11 -11
- package/skinny/registerDropdown.js +190 -172
- package/skinny/registerDropdown.js.map +1 -1
- package/skinny/registerInput.d.ts +14 -13
- package/skinny/registerInput.js +341 -360
- package/skinny/registerInput.js.map +1 -1
- package/skinny/registerMenu.d.ts +15 -14
- package/skinny/registerMenu.js +326 -274
- package/skinny/registerMenu.js.map +1 -1
- package/skinny/registerOption.d.ts +8 -8
- package/skinny/registerOption.js +95 -72
- package/skinny/registerOption.js.map +1 -1
- package/skinny/registerRate.d.ts +5 -5
- package/skinny/registerSelect.d.ts +8 -8
- package/skinny/registerSelect.js +144 -128
- package/skinny/registerSelect.js.map +1 -1
- package/skinny/registerSlider.d.ts +19 -19
- package/skinny/registerSlider.js +120 -130
- package/skinny/registerSlider.js.map +1 -1
- package/skinny/registerSwitch.d.ts +5 -5
- package/skinny/registerSwitch.js +69 -53
- package/skinny/registerSwitch.js.map +1 -1
- package/skinny/registerTable.d.ts +30 -30
- package/skinny/registerTable.js +204 -201
- package/skinny/registerTable.js.map +1 -1
- package/skinny/registerTabs.d.ts +13 -14
- package/skinny/registerTabs.js +330 -342
- package/skinny/registerTabs.js.map +1 -1
- package/skinny/registerable.d.ts +4 -4
- package/skinny/tslib.es6-40998fef.js +59 -0
- package/skinny/tslib.es6-40998fef.js.map +1 -0
- package/dist/index.js.map +0 -1
- package/skinny/customControls-f5378e2f.js +0 -20
package/skinny/registerButton.js
CHANGED
|
@@ -1,82 +1,98 @@
|
|
|
1
|
-
|
|
2
|
-
import Button from 'antd/es/button';
|
|
1
|
+
'use strict';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
{
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
|
|
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/
|
|
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/
|
|
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
|
-
|
|
2
|
-
import Carousel from 'antd/es/carousel';
|
|
1
|
+
'use strict';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
type: "
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
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/
|
|
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/
|
|
3
|
-
import { CheckboxGroupProps } from "antd/
|
|
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;
|