@plasmicpkgs/antd 0.0.75 → 0.0.78
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 +5 -5
- package/dist/antd.cjs.development.js.map +1 -1
- package/dist/antd.cjs.production.min.js +1 -1
- package/dist/antd.cjs.production.min.js.map +1 -1
- package/dist/antd.esm.js +5 -5
- package/dist/antd.esm.js.map +1 -1
- package/package.json +7 -6
- package/skinny/customControls-8143c119.js +27 -0
- package/skinny/customControls-8143c119.js.map +1 -0
- package/skinny/customControls.d.ts +17 -0
- package/skinny/index.d.ts +15 -0
- package/skinny/package.json +3 -0
- package/skinny/registerButton.d.ts +5 -0
- package/skinny/registerButton.js +98 -0
- package/skinny/registerButton.js.map +1 -0
- package/skinny/registerCarousel.d.ts +5 -0
- package/skinny/registerCarousel.js +84 -0
- package/skinny/registerCarousel.js.map +1 -0
- package/skinny/registerCheckbox.d.ts +8 -0
- package/skinny/registerCheckbox.js +144 -0
- package/skinny/registerCheckbox.js.map +1 -0
- package/skinny/registerCollapse.d.ts +14 -0
- package/skinny/registerCollapse.js +177 -0
- package/skinny/registerCollapse.js.map +1 -0
- package/skinny/registerDropdown.d.ts +11 -0
- package/skinny/registerDropdown.js +194 -0
- package/skinny/registerDropdown.js.map +1 -0
- package/skinny/registerInput.d.ts +14 -0
- package/skinny/registerInput.js +345 -0
- package/skinny/registerInput.js.map +1 -0
- package/skinny/registerMenu.d.ts +15 -0
- package/skinny/registerMenu.js +330 -0
- package/skinny/registerMenu.js.map +1 -0
- package/skinny/registerOption.d.ts +8 -0
- package/skinny/registerOption.js +99 -0
- package/skinny/registerOption.js.map +1 -0
- package/skinny/registerSelect.d.ts +8 -0
- package/skinny/registerSelect.js +148 -0
- package/skinny/registerSelect.js.map +1 -0
- package/skinny/registerSlider.d.ts +19 -0
- package/skinny/registerSlider.js +124 -0
- package/skinny/registerSlider.js.map +1 -0
- package/skinny/registerSwitch.d.ts +5 -0
- package/skinny/registerSwitch.js +73 -0
- package/skinny/registerSwitch.js.map +1 -0
- package/skinny/registerTabs.d.ts +13 -0
- package/skinny/registerTabs.js +259 -0
- package/skinny/registerTabs.js.map +1 -0
- package/skinny/registerable.d.ts +4 -0
- package/skinny/tslib.es6-40998fef.js +59 -0
- package/skinny/tslib.es6-40998fef.js.map +1 -0
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicpkgs/antd",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.78",
|
|
4
4
|
"description": "Plasmic registration calls for antd components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"module": "dist/antd.esm.js",
|
|
8
8
|
"files": [
|
|
9
|
-
"dist"
|
|
9
|
+
"dist",
|
|
10
|
+
"skinny"
|
|
10
11
|
],
|
|
11
12
|
"size-limit": [
|
|
12
13
|
{
|
|
@@ -19,17 +20,17 @@
|
|
|
19
20
|
}
|
|
20
21
|
],
|
|
21
22
|
"scripts": {
|
|
22
|
-
"build": "tsdx build && yarn copy_css_files",
|
|
23
|
+
"build": "tsdx build && yarn copy_css_files && rollup -c rollup.config.js",
|
|
23
24
|
"start": "tsdx watch",
|
|
24
25
|
"test": "tsdx test --passWithNoTests",
|
|
25
26
|
"lint": "tsdx lint",
|
|
26
|
-
"prepare": "tsdx build && yarn copy_css_files",
|
|
27
|
+
"prepare": "tsdx build && yarn copy_css_files && yarn rollup -c rollup.config.js",
|
|
27
28
|
"copy_css_files": "cp src/*.css dist/",
|
|
28
29
|
"size": "size-limit",
|
|
29
30
|
"analyze": "size-limit --why"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
|
-
"@plasmicapp/host": "1.0.
|
|
33
|
+
"@plasmicapp/host": "1.0.66",
|
|
33
34
|
"@size-limit/preset-small-lib": "^4.11.0",
|
|
34
35
|
"@types/node": "^14.0.26",
|
|
35
36
|
"antd": "^4.17.2",
|
|
@@ -44,5 +45,5 @@
|
|
|
44
45
|
"antd": "^4.0.0",
|
|
45
46
|
"react": ">=16.8.0"
|
|
46
47
|
},
|
|
47
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "77f273e648ceba7d9ecaf1310b639a812d6d1b00"
|
|
48
49
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Traverses the tree of elements from a `React.createElement`. Notice we can't
|
|
5
|
+
* traverse elements created within the children's render function since this is
|
|
6
|
+
* the tree before rendering.
|
|
7
|
+
*/
|
|
8
|
+
function traverseReactEltTree(children, callback) {
|
|
9
|
+
var rec = function (elts) {
|
|
10
|
+
(Array.isArray(elts) ? elts : [elts]).forEach(function (elt) {
|
|
11
|
+
var _a;
|
|
12
|
+
if (elt) {
|
|
13
|
+
callback(elt);
|
|
14
|
+
if (elt.children) {
|
|
15
|
+
rec(elt.children);
|
|
16
|
+
}
|
|
17
|
+
if (((_a = elt.props) === null || _a === void 0 ? void 0 : _a.children) && elt.props.children !== elt.children) {
|
|
18
|
+
rec(elt.props.children);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
rec(children);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.traverseReactEltTree = traverseReactEltTree;
|
|
27
|
+
//# sourceMappingURL=customControls-8143c119.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customControls-8143c119.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":";;AAYA;;;;;SAKgB,oBAAoB,CAClC,QAAyB,EACzB,QAAiC;IAEjC,IAAM,GAAG,GAAG,UAAC,IAAkC;QAC7C,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,UAAC,GAAG;;YAChD,IAAI,GAAG,EAAE;gBACP,QAAQ,CAAC,GAAG,CAAC,CAAC;gBACd,IAAI,GAAG,CAAC,QAAQ,EAAE;oBAChB,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;iBACnB;gBACD,IAAI,OAAA,GAAG,CAAC,KAAK,0CAAE,QAAQ,KAAI,GAAG,CAAC,KAAK,CAAC,QAAQ,KAAK,GAAG,CAAC,QAAQ,EAAE;oBAC9D,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;iBACzB;aACF;SACF,CAAC,CAAC;KACJ,CAAC;IACF,GAAG,CAAC,QAAe,CAAC,CAAC;AACvB;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
declare type ReactElt = {
|
|
3
|
+
children: ReactElt | ReactElt[];
|
|
4
|
+
props: {
|
|
5
|
+
children: ReactElt | ReactElt[];
|
|
6
|
+
[prop: string]: any;
|
|
7
|
+
} | null;
|
|
8
|
+
type: React.ComponentType<any> | null;
|
|
9
|
+
key: string | null;
|
|
10
|
+
} | null;
|
|
11
|
+
/**
|
|
12
|
+
* Traverses the tree of elements from a `React.createElement`. Notice we can't
|
|
13
|
+
* traverse elements created within the children's render function since this is
|
|
14
|
+
* the tree before rendering.
|
|
15
|
+
*/
|
|
16
|
+
export declare function traverseReactEltTree(children: React.ReactNode, callback: (elt: ReactElt) => void): void;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Registerable } from "./registerable";
|
|
2
|
+
export * from "./registerable";
|
|
3
|
+
export * from "./registerButton";
|
|
4
|
+
export * from "./registerCheckbox";
|
|
5
|
+
export * from "./registerCollapse";
|
|
6
|
+
export * from "./registerDropdown";
|
|
7
|
+
export * from "./registerInput";
|
|
8
|
+
export * from "./registerMenu";
|
|
9
|
+
export * from "./registerOption";
|
|
10
|
+
export * from "./registerSelect";
|
|
11
|
+
export * from "./registerSlider";
|
|
12
|
+
export * from "./registerSwitch";
|
|
13
|
+
export * from "./registerCarousel";
|
|
14
|
+
export * from "./registerTabs";
|
|
15
|
+
export declare function registerAll(loader?: Registerable): void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import { ButtonProps } from "antd/lib/button";
|
|
3
|
+
import { Registerable } from "./registerable";
|
|
4
|
+
export declare const buttonMeta: ComponentMeta<ButtonProps>;
|
|
5
|
+
export declare function registerButton(loader?: Registerable, customButtonMeta?: ComponentMeta<ButtonProps>): void;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
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);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
exports.buttonMeta = buttonMeta;
|
|
97
|
+
exports.registerButton = registerButton;
|
|
98
|
+
//# sourceMappingURL=registerButton.js.map
|
|
@@ -0,0 +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":["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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AAM;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;;;;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
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;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
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);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
exports.carouselMeta = carouselMeta;
|
|
83
|
+
exports.registerCarousel = registerCarousel;
|
|
84
|
+
//# sourceMappingURL=registerCarousel.js.map
|
|
@@ -0,0 +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":["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;;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib_es6 = require('./tslib.es6-40998fef.js');
|
|
6
|
+
var registerComponent = require('@plasmicapp/host/registerComponent');
|
|
7
|
+
var Checkbox = require('antd/lib/checkbox/Checkbox');
|
|
8
|
+
var CheckboxGroup = require('antd/lib/checkbox/Group');
|
|
9
|
+
var React = require('react');
|
|
10
|
+
var customControls = require('./customControls-8143c119.js');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var registerComponent__default = /*#__PURE__*/_interopDefaultLegacy(registerComponent);
|
|
15
|
+
var Checkbox__default = /*#__PURE__*/_interopDefaultLegacy(Checkbox);
|
|
16
|
+
var CheckboxGroup__default = /*#__PURE__*/_interopDefaultLegacy(CheckboxGroup);
|
|
17
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
18
|
+
|
|
19
|
+
var CheckboxWrapper = /** @class */ (function (_super) {
|
|
20
|
+
tslib_es6.__extends(CheckboxWrapper, _super);
|
|
21
|
+
function CheckboxWrapper() {
|
|
22
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
+
}
|
|
24
|
+
CheckboxWrapper.prototype.render = function () {
|
|
25
|
+
return React__default['default'].createElement(Checkbox__default['default'], tslib_es6.__assign({}, this.props));
|
|
26
|
+
};
|
|
27
|
+
return CheckboxWrapper;
|
|
28
|
+
}(React__default['default'].Component));
|
|
29
|
+
var checkboxMeta = {
|
|
30
|
+
name: "AntdCheckbox",
|
|
31
|
+
displayName: "Antd Checkbox",
|
|
32
|
+
props: {
|
|
33
|
+
autoFocus: {
|
|
34
|
+
type: "boolean",
|
|
35
|
+
description: "If get focus when component mounted",
|
|
36
|
+
defaultValueHint: false,
|
|
37
|
+
},
|
|
38
|
+
checked: {
|
|
39
|
+
type: "boolean",
|
|
40
|
+
editOnly: true,
|
|
41
|
+
uncontrolledProp: "defaultChecked",
|
|
42
|
+
description: "Specifies the initial state: whether or not the checkbox is selected",
|
|
43
|
+
defaultValueHint: false,
|
|
44
|
+
},
|
|
45
|
+
disabled: {
|
|
46
|
+
type: "boolean",
|
|
47
|
+
description: "If disable checkbox",
|
|
48
|
+
defaultValueHint: false,
|
|
49
|
+
},
|
|
50
|
+
indeterminate: {
|
|
51
|
+
type: "boolean",
|
|
52
|
+
description: "The indeterminate checked state of checkbox",
|
|
53
|
+
defaultValueHint: false,
|
|
54
|
+
},
|
|
55
|
+
value: {
|
|
56
|
+
type: "string",
|
|
57
|
+
description: "The checkbox value",
|
|
58
|
+
},
|
|
59
|
+
children: {
|
|
60
|
+
type: "slot",
|
|
61
|
+
defaultValue: [
|
|
62
|
+
{
|
|
63
|
+
type: "text",
|
|
64
|
+
value: "Checkbox",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
importPath: "antd/lib/checkbox/Checkbox",
|
|
70
|
+
importName: "Checkbox",
|
|
71
|
+
defaultStyles: {
|
|
72
|
+
marginLeft: 0,
|
|
73
|
+
},
|
|
74
|
+
isDefaultExport: true,
|
|
75
|
+
};
|
|
76
|
+
function registerCheckbox(loader, customCheckboxMeta) {
|
|
77
|
+
var doRegisterComponent = function () {
|
|
78
|
+
var args = [];
|
|
79
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
80
|
+
args[_i] = arguments[_i];
|
|
81
|
+
}
|
|
82
|
+
return loader ? loader.registerComponent.apply(loader, args) : registerComponent__default['default'].apply(void 0, args);
|
|
83
|
+
};
|
|
84
|
+
doRegisterComponent(CheckboxWrapper, customCheckboxMeta !== null && customCheckboxMeta !== void 0 ? customCheckboxMeta : checkboxMeta);
|
|
85
|
+
}
|
|
86
|
+
var checkboxGroupMeta = {
|
|
87
|
+
name: "AntdCheckboxGroup",
|
|
88
|
+
displayName: "Antd Checkbox Group",
|
|
89
|
+
props: {
|
|
90
|
+
disabled: {
|
|
91
|
+
type: "boolean",
|
|
92
|
+
description: "If disable all checkboxes",
|
|
93
|
+
defaultValueHint: false,
|
|
94
|
+
},
|
|
95
|
+
value: {
|
|
96
|
+
type: "choice",
|
|
97
|
+
editOnly: true,
|
|
98
|
+
uncontrolledProp: "defaultValue",
|
|
99
|
+
description: "Default selected value",
|
|
100
|
+
multiSelect: true,
|
|
101
|
+
options: function (componentProps) {
|
|
102
|
+
var options = new Set();
|
|
103
|
+
customControls.traverseReactEltTree(componentProps.children, function (elt) {
|
|
104
|
+
var _a;
|
|
105
|
+
if ((elt === null || elt === void 0 ? void 0 : elt.type) === CheckboxWrapper &&
|
|
106
|
+
typeof ((_a = elt === null || elt === void 0 ? void 0 : elt.props) === null || _a === void 0 ? void 0 : _a.value) === "string") {
|
|
107
|
+
options.add(elt.props.value);
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
return Array.from(options.keys());
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
children: {
|
|
114
|
+
type: "slot",
|
|
115
|
+
allowedComponents: ["AntdCheckbox"],
|
|
116
|
+
defaultValue: [
|
|
117
|
+
{
|
|
118
|
+
type: "component",
|
|
119
|
+
name: "AntdCheckbox",
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
importPath: "antd/lib/checkbox/Group",
|
|
125
|
+
importName: "CheckboxGroup",
|
|
126
|
+
parentComponentName: "AntdCheckbox",
|
|
127
|
+
isDefaultExport: true,
|
|
128
|
+
};
|
|
129
|
+
function registerCheckboxGroup(loader, customCheckboxGroupMeta) {
|
|
130
|
+
var doRegisterComponent = function () {
|
|
131
|
+
var args = [];
|
|
132
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
133
|
+
args[_i] = arguments[_i];
|
|
134
|
+
}
|
|
135
|
+
return loader ? loader.registerComponent.apply(loader, args) : registerComponent__default['default'].apply(void 0, args);
|
|
136
|
+
};
|
|
137
|
+
doRegisterComponent(CheckboxGroup__default['default'], customCheckboxGroupMeta !== null && customCheckboxGroupMeta !== void 0 ? customCheckboxGroupMeta : checkboxGroupMeta);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
exports.checkboxGroupMeta = checkboxGroupMeta;
|
|
141
|
+
exports.checkboxMeta = checkboxMeta;
|
|
142
|
+
exports.registerCheckbox = registerCheckbox;
|
|
143
|
+
exports.registerCheckboxGroup = registerCheckboxGroup;
|
|
144
|
+
//# sourceMappingURL=registerCheckbox.js.map
|
|
@@ -0,0 +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 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 editOnly: true,\n uncontrolledProp: \"defaultChecked\",\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 },\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":["__extends","React","Checkbox","registerComponent","traverseReactEltTree","CheckboxGroup"],"mappings":";;;;;;;;;;;;;;;;;;AASA;IAA8BA,6CAA8B;IAA5D;;KAIC;IAHC,gCAAM,GAAN;QACE,OAAOC,wCAACC,4BAAQ,yBAAK,IAAI,CAAC,KAAK,EAAI,CAAC;KACrC;IACH,sBAAC;AAAD,CAAC,CAJ6B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P,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QAC5D,OAAA,MAAM,GAAG,MAAM,CAAC,iBAAiB,OAAxB,MAAM,EAAsB,IAAI,IAAID,qCAAiB,eAAI,IAAI,CAAC;KAAA,CAAC;IAC1E,mBAAmB,CACjBE,iCAAa,EACb,uBAAuB,aAAvB,uBAAuB,cAAvB,uBAAuB,GAAI,iBAAiB,CAC7C,CAAC;AACJ;;;;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import { CollapsePanelProps, CollapseProps as AntdCollapseProps } from "antd/lib/collapse";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { Registerable } from "./registerable";
|
|
5
|
+
export declare const collapstePanelMeta: ComponentMeta<CollapsePanelProps>;
|
|
6
|
+
export declare function registerCollapsePanel(loader?: Registerable, customCollapsePanelMeta?: ComponentMeta<CollapsePanelProps>): void;
|
|
7
|
+
declare type CollapseProps = {
|
|
8
|
+
openIcon?: React.ReactNode;
|
|
9
|
+
closeIcon?: React.ReactNode;
|
|
10
|
+
} & AntdCollapseProps;
|
|
11
|
+
export declare const collapsteMeta: ComponentMeta<CollapseProps>;
|
|
12
|
+
export declare function Collapse(props: CollapseProps): JSX.Element;
|
|
13
|
+
export declare function registerCollapse(loader?: Registerable, customCollapseMeta?: ComponentMeta<CollapseProps>): void;
|
|
14
|
+
export {};
|