@plasmicpkgs/antd 2.0.19 → 2.0.21
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/.tsbuildinfo +1 -0
- package/dist/antd.esm.js +703 -616
- 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 +2352 -5
- package/dist/index.js.map +1 -0
- 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 -14
- package/dist/registerMenu.d.ts +15 -15
- 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 +14 -13
- package/dist/registerable.d.ts +4 -4
- package/package.json +10 -9
- package/skinny/customControls-fb0b7e5f.js +22 -0
- package/skinny/{customControls-ff79afdf.js.map → customControls-fb0b7e5f.js.map} +1 -1
- package/skinny/customControls.d.ts +17 -17
- package/skinny/registerButton.d.ts +5 -5
- package/skinny/registerButton.js +80 -81
- package/skinny/registerButton.js.map +1 -1
- package/skinny/registerCarousel.d.ts +5 -5
- package/skinny/registerCarousel.js +66 -67
- package/skinny/registerCarousel.js.map +1 -1
- package/skinny/registerCheckbox.d.ts +8 -8
- package/skinny/registerCheckbox.js +125 -121
- package/skinny/registerCheckbox.js.map +1 -1
- package/skinny/registerCollapse.d.ts +14 -14
- package/skinny/registerCollapse.js +174 -153
- package/skinny/registerCollapse.js.map +1 -1
- package/skinny/registerDropdown.d.ts +11 -11
- package/skinny/registerDropdown.js +175 -171
- package/skinny/registerDropdown.js.map +1 -1
- package/skinny/registerInput.d.ts +14 -14
- package/skinny/registerInput.js +362 -312
- package/skinny/registerInput.js.map +1 -1
- package/skinny/registerMenu.d.ts +15 -15
- package/skinny/registerMenu.js +275 -298
- package/skinny/registerMenu.js.map +1 -1
- package/skinny/registerOption.d.ts +8 -8
- package/skinny/registerOption.js +73 -81
- package/skinny/registerOption.js.map +1 -1
- package/skinny/registerRate.d.ts +5 -5
- package/skinny/registerRate.js +66 -0
- package/skinny/registerRate.js.map +1 -0
- package/skinny/registerSelect.d.ts +8 -8
- package/skinny/registerSelect.js +129 -130
- package/skinny/registerSelect.js.map +1 -1
- package/skinny/registerSlider.d.ts +19 -19
- package/skinny/registerSlider.js +132 -104
- package/skinny/registerSlider.js.map +1 -1
- package/skinny/registerSwitch.d.ts +5 -5
- package/skinny/registerSwitch.js +55 -56
- package/skinny/registerSwitch.js.map +1 -1
- package/skinny/registerTable.d.ts +30 -30
- package/skinny/registerTable.js +202 -183
- package/skinny/registerTable.js.map +1 -1
- package/skinny/registerTabs.d.ts +14 -13
- package/skinny/registerTabs.js +344 -311
- package/skinny/registerTabs.js.map +1 -1
- package/skinny/registerable.d.ts +4 -4
- package/skinny/registerable.js +3 -0
- package/skinny/registerable.js.map +1 -0
- package/dist/antd.cjs.development.js +0 -2243
- package/dist/antd.cjs.development.js.map +0 -1
- package/dist/antd.cjs.production.min.js +0 -2
- package/dist/antd.cjs.production.min.js.map +0 -1
- package/skinny/customControls-ff79afdf.js +0 -27
- package/skinny/index.d.ts +0 -16
- package/skinny/tslib.es6-b92c4a81.js +0 -59
- package/skinny/tslib.es6-b92c4a81.js.map +0 -1
|
@@ -1,181 +1,185 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('./tslib.es6-b92c4a81.js');
|
|
4
3
|
var registerComponent = require('@plasmicapp/host/registerComponent');
|
|
5
4
|
var AntdDropdown = require('antd/lib/dropdown');
|
|
6
5
|
var DropdownButton = require('antd/lib/dropdown/dropdown-button');
|
|
7
6
|
var React = require('react');
|
|
8
7
|
|
|
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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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);
|
|
14
|
+
|
|
15
|
+
var __defProp = Object.defineProperty;
|
|
16
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
17
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
18
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
19
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
20
|
+
var __spreadValues = (a, b) => {
|
|
21
|
+
for (var prop in b || (b = {}))
|
|
22
|
+
if (__hasOwnProp.call(b, prop))
|
|
23
|
+
__defNormalProp(a, prop, b[prop]);
|
|
24
|
+
if (__getOwnPropSymbols)
|
|
25
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
26
|
+
if (__propIsEnum.call(b, prop))
|
|
27
|
+
__defNormalProp(a, prop, b[prop]);
|
|
28
|
+
}
|
|
29
|
+
return a;
|
|
30
|
+
};
|
|
31
|
+
class Dropdown extends React__default.default.Component {
|
|
32
|
+
render() {
|
|
33
|
+
const thisProps = this.props;
|
|
34
|
+
const finalProps = __spreadValues({}, thisProps);
|
|
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));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
const dropdownMeta = {
|
|
40
|
+
name: "AntdDropdown",
|
|
41
|
+
displayName: "Antd Dropdown",
|
|
42
|
+
props: {
|
|
43
|
+
arrow: {
|
|
44
|
+
type: "boolean",
|
|
45
|
+
description: "Whether the dropdown arrow should be visible",
|
|
46
|
+
defaultValueHint: false
|
|
47
|
+
},
|
|
48
|
+
disabled: {
|
|
49
|
+
type: "boolean",
|
|
50
|
+
description: "Whether the dropdown menu is disabled",
|
|
51
|
+
defaultValueHint: false
|
|
52
|
+
},
|
|
53
|
+
overlay: {
|
|
54
|
+
type: "slot",
|
|
55
|
+
allowedComponents: ["AntdMenu"],
|
|
56
|
+
defaultValue: [
|
|
57
|
+
{
|
|
58
|
+
type: "component",
|
|
59
|
+
name: "AntdMenu"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
placement: {
|
|
64
|
+
type: "choice",
|
|
65
|
+
options: [
|
|
66
|
+
"bottomLeft",
|
|
67
|
+
"bottomCenter",
|
|
68
|
+
"bottomRight",
|
|
69
|
+
"topLeft",
|
|
70
|
+
"topCenter",
|
|
71
|
+
"topRight"
|
|
72
|
+
],
|
|
73
|
+
description: "Placement of popup menu",
|
|
74
|
+
defaultValueHint: "bottomLeft"
|
|
75
|
+
},
|
|
76
|
+
trigger: {
|
|
77
|
+
type: "choice",
|
|
78
|
+
options: ["click", "hover", "contextMenu"],
|
|
79
|
+
description: "The trigger mode which executes the dropdown action",
|
|
80
|
+
defaultValueHint: "hover"
|
|
81
|
+
},
|
|
82
|
+
visible: {
|
|
83
|
+
type: "boolean",
|
|
84
|
+
description: "Toggle visibility of dropdown menu in Plasmic Editor",
|
|
85
|
+
editOnly: true,
|
|
86
|
+
defaultValueHint: false
|
|
87
|
+
},
|
|
88
|
+
children: {
|
|
89
|
+
type: "slot",
|
|
90
|
+
defaultValue: [
|
|
91
|
+
{
|
|
92
|
+
type: "text",
|
|
93
|
+
value: "Dropdown"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
importPath: "@plasmicpkgs/antd/skinny/registerDropdown",
|
|
99
|
+
importName: "Dropdown"
|
|
100
|
+
};
|
|
101
|
+
function registerDropdown(loader, customDropdownMeta) {
|
|
102
|
+
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
|
|
103
|
+
doRegisterComponent(Dropdown, customDropdownMeta != null ? customDropdownMeta : dropdownMeta);
|
|
104
|
+
}
|
|
105
|
+
const dropdownButtonMeta = {
|
|
106
|
+
name: "AntdDropdownButton",
|
|
107
|
+
displayName: "Antd Dropdown Button",
|
|
108
|
+
props: {
|
|
109
|
+
disabled: {
|
|
110
|
+
type: "boolean",
|
|
111
|
+
description: "Whether the dropdown menu is disabled",
|
|
112
|
+
defaultValueHint: false
|
|
113
|
+
},
|
|
114
|
+
icon: {
|
|
115
|
+
type: "slot",
|
|
116
|
+
hidePlaceholder: true
|
|
117
|
+
},
|
|
118
|
+
overlay: {
|
|
119
|
+
type: "slot",
|
|
120
|
+
allowedComponents: ["AntdMenu"],
|
|
121
|
+
defaultValue: [
|
|
122
|
+
{
|
|
123
|
+
type: "component",
|
|
124
|
+
name: "AntdMenu"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
placement: {
|
|
129
|
+
type: "choice",
|
|
130
|
+
options: [
|
|
131
|
+
"bottomLeft",
|
|
132
|
+
"bottomCenter",
|
|
133
|
+
"bottomRight",
|
|
134
|
+
"topLeft",
|
|
135
|
+
"topCenter",
|
|
136
|
+
"topRight"
|
|
137
|
+
],
|
|
138
|
+
description: "Placement of popup menu",
|
|
139
|
+
defaultValueHint: "bottomLeft"
|
|
140
|
+
},
|
|
141
|
+
size: {
|
|
142
|
+
type: "choice",
|
|
143
|
+
options: ["small", "medium", "large"],
|
|
144
|
+
description: "Set the size of button",
|
|
145
|
+
defaultValueHint: "medium"
|
|
146
|
+
},
|
|
147
|
+
trigger: {
|
|
148
|
+
type: "choice",
|
|
149
|
+
options: ["click", "hover", "contextMenu"],
|
|
150
|
+
description: "The trigger mode which executes the dropdown action",
|
|
151
|
+
defaultValueHint: "hover"
|
|
152
|
+
},
|
|
153
|
+
type: {
|
|
154
|
+
type: "choice",
|
|
155
|
+
options: ["default", "primary", "ghost", "dashed", "link", "text"],
|
|
156
|
+
description: "Can be set to primary, ghost, dashed, link, text, default",
|
|
157
|
+
defaultValueHint: "default"
|
|
158
|
+
},
|
|
159
|
+
visible: {
|
|
160
|
+
type: "boolean",
|
|
161
|
+
description: "Toggle visibility of dropdown menu in Plasmic Editor",
|
|
162
|
+
editOnly: true,
|
|
163
|
+
defaultValueHint: false
|
|
164
|
+
},
|
|
165
|
+
children: {
|
|
166
|
+
type: "slot",
|
|
167
|
+
defaultValue: [
|
|
168
|
+
{
|
|
169
|
+
type: "text",
|
|
170
|
+
value: "Dropdown"
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
importPath: "antd/lib/dropdown/dropdown-button",
|
|
176
|
+
importName: "DropdownButton",
|
|
177
|
+
parentComponentName: "AntdDropdown",
|
|
178
|
+
isDefaultExport: true
|
|
179
|
+
};
|
|
180
|
+
function registerDropdownButton(loader, customDropdownButtonMeta) {
|
|
181
|
+
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
|
|
182
|
+
doRegisterComponent(DropdownButton__default.default, customDropdownButtonMeta != null ? customDropdownButtonMeta : dropdownButtonMeta);
|
|
179
183
|
}
|
|
180
184
|
|
|
181
185
|
exports.Dropdown = Dropdown;
|
|
@@ -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":["
|
|
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,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,OA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A,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,14 +1,14 @@
|
|
|
1
|
-
import { ComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
-
import { InputProps } from "antd/lib/input";
|
|
3
|
-
import { GroupProps, PasswordProps, SearchProps, TextAreaProps } from "antd/lib/input";
|
|
4
|
-
import { Registerable } from "./registerable";
|
|
5
|
-
export declare const inputMeta: ComponentMeta<InputProps>;
|
|
6
|
-
export declare function registerInput(loader?: Registerable, customInputMeta?: ComponentMeta<InputProps>): void;
|
|
7
|
-
export declare const inputTextAreaMeta: ComponentMeta<TextAreaProps>;
|
|
8
|
-
export declare function registerInputTextArea(loader?: Registerable, customInputTextAreaMeta?: ComponentMeta<TextAreaProps>): void;
|
|
9
|
-
export declare const inputSearchMeta: ComponentMeta<SearchProps>;
|
|
10
|
-
export declare function registerInputSearch(loader?: Registerable, customInputSearchMeta?: ComponentMeta<SearchProps>): void;
|
|
11
|
-
export declare const inputPasswordMeta: ComponentMeta<PasswordProps>;
|
|
12
|
-
export declare function registerInputPassword(loader?: Registerable, customInputPasswordMeta?: ComponentMeta<PasswordProps>): void;
|
|
13
|
-
export declare const inputGroupMeta: ComponentMeta<GroupProps>;
|
|
14
|
-
export declare function registerInputGroup(loader?: Registerable, customInputGroupMeta?: ComponentMeta<GroupProps>): void;
|
|
1
|
+
import { ComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import { InputProps } from "antd/lib/input";
|
|
3
|
+
import { GroupProps, PasswordProps, SearchProps, TextAreaProps } from "antd/lib/input";
|
|
4
|
+
import { Registerable } from "./registerable";
|
|
5
|
+
export declare const inputMeta: ComponentMeta<InputProps>;
|
|
6
|
+
export declare function registerInput(loader?: Registerable, customInputMeta?: ComponentMeta<InputProps>): void;
|
|
7
|
+
export declare const inputTextAreaMeta: ComponentMeta<TextAreaProps>;
|
|
8
|
+
export declare function registerInputTextArea(loader?: Registerable, customInputTextAreaMeta?: ComponentMeta<TextAreaProps>): void;
|
|
9
|
+
export declare const inputSearchMeta: ComponentMeta<SearchProps>;
|
|
10
|
+
export declare function registerInputSearch(loader?: Registerable, customInputSearchMeta?: ComponentMeta<SearchProps>): void;
|
|
11
|
+
export declare const inputPasswordMeta: ComponentMeta<PasswordProps>;
|
|
12
|
+
export declare function registerInputPassword(loader?: Registerable, customInputPasswordMeta?: ComponentMeta<PasswordProps>): void;
|
|
13
|
+
export declare const inputGroupMeta: ComponentMeta<GroupProps>;
|
|
14
|
+
export declare function registerInputGroup(loader?: Registerable, customInputGroupMeta?: ComponentMeta<GroupProps>): void;
|