@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.
Files changed (51) hide show
  1. package/dist/antd.cjs.development.js +5 -5
  2. package/dist/antd.cjs.development.js.map +1 -1
  3. package/dist/antd.cjs.production.min.js +1 -1
  4. package/dist/antd.cjs.production.min.js.map +1 -1
  5. package/dist/antd.esm.js +5 -5
  6. package/dist/antd.esm.js.map +1 -1
  7. package/package.json +7 -6
  8. package/skinny/customControls-8143c119.js +27 -0
  9. package/skinny/customControls-8143c119.js.map +1 -0
  10. package/skinny/customControls.d.ts +17 -0
  11. package/skinny/index.d.ts +15 -0
  12. package/skinny/package.json +3 -0
  13. package/skinny/registerButton.d.ts +5 -0
  14. package/skinny/registerButton.js +98 -0
  15. package/skinny/registerButton.js.map +1 -0
  16. package/skinny/registerCarousel.d.ts +5 -0
  17. package/skinny/registerCarousel.js +84 -0
  18. package/skinny/registerCarousel.js.map +1 -0
  19. package/skinny/registerCheckbox.d.ts +8 -0
  20. package/skinny/registerCheckbox.js +144 -0
  21. package/skinny/registerCheckbox.js.map +1 -0
  22. package/skinny/registerCollapse.d.ts +14 -0
  23. package/skinny/registerCollapse.js +177 -0
  24. package/skinny/registerCollapse.js.map +1 -0
  25. package/skinny/registerDropdown.d.ts +11 -0
  26. package/skinny/registerDropdown.js +194 -0
  27. package/skinny/registerDropdown.js.map +1 -0
  28. package/skinny/registerInput.d.ts +14 -0
  29. package/skinny/registerInput.js +345 -0
  30. package/skinny/registerInput.js.map +1 -0
  31. package/skinny/registerMenu.d.ts +15 -0
  32. package/skinny/registerMenu.js +330 -0
  33. package/skinny/registerMenu.js.map +1 -0
  34. package/skinny/registerOption.d.ts +8 -0
  35. package/skinny/registerOption.js +99 -0
  36. package/skinny/registerOption.js.map +1 -0
  37. package/skinny/registerSelect.d.ts +8 -0
  38. package/skinny/registerSelect.js +148 -0
  39. package/skinny/registerSelect.js.map +1 -0
  40. package/skinny/registerSlider.d.ts +19 -0
  41. package/skinny/registerSlider.js +124 -0
  42. package/skinny/registerSlider.js.map +1 -0
  43. package/skinny/registerSwitch.d.ts +5 -0
  44. package/skinny/registerSwitch.js +73 -0
  45. package/skinny/registerSwitch.js.map +1 -0
  46. package/skinny/registerTabs.d.ts +13 -0
  47. package/skinny/registerTabs.js +259 -0
  48. package/skinny/registerTabs.js.map +1 -0
  49. package/skinny/registerable.d.ts +4 -0
  50. package/skinny/tslib.es6-40998fef.js +59 -0
  51. package/skinny/tslib.es6-40998fef.js.map +1 -0
@@ -0,0 +1,345 @@
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 Input = require('antd/lib/input');
8
+ var InputGroup = require('antd/lib/input/Group');
9
+ var Password = require('antd/lib/input/Password');
10
+ var Search = require('antd/lib/input/Search');
11
+ var TextArea = require('antd/lib/input/TextArea');
12
+
13
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14
+
15
+ var registerComponent__default = /*#__PURE__*/_interopDefaultLegacy(registerComponent);
16
+ var Input__default = /*#__PURE__*/_interopDefaultLegacy(Input);
17
+ var InputGroup__default = /*#__PURE__*/_interopDefaultLegacy(InputGroup);
18
+ var Password__default = /*#__PURE__*/_interopDefaultLegacy(Password);
19
+ var Search__default = /*#__PURE__*/_interopDefaultLegacy(Search);
20
+ var TextArea__default = /*#__PURE__*/_interopDefaultLegacy(TextArea);
21
+
22
+ function sortObjectKeys(obj) {
23
+ return Object.fromEntries(Object.entries(obj).sort());
24
+ }
25
+ function sortProps(props) {
26
+ return sortObjectKeys(props);
27
+ }
28
+ var commonHtmlAttributes = {
29
+ "aria-label": {
30
+ type: "string",
31
+ description: "The ARIA label for this input",
32
+ },
33
+ "aria-labelledby": {
34
+ type: "string",
35
+ description: "Identifies the element(s) that labels this input",
36
+ },
37
+ name: {
38
+ type: "string",
39
+ description: "The HTML name of the input",
40
+ },
41
+ };
42
+ var inputMeta = {
43
+ name: "AntdInput",
44
+ displayName: "Antd Input",
45
+ props: sortProps(tslib_es6.__assign(tslib_es6.__assign({}, commonHtmlAttributes), { addonAfter: {
46
+ type: "slot",
47
+ hidePlaceholder: true,
48
+ }, addonBefore: {
49
+ type: "slot",
50
+ hidePlaceholder: true,
51
+ }, allowClear: {
52
+ type: "boolean",
53
+ description: "If allow to remove input content with clear icon",
54
+ defaultValueHint: false,
55
+ }, bordered: {
56
+ type: "boolean",
57
+ description: "Whether has border style",
58
+ defaultValueHint: true,
59
+ }, disabled: {
60
+ type: "boolean",
61
+ description: "Whether the input is disabled",
62
+ defaultValueHint: false,
63
+ }, id: {
64
+ type: "string",
65
+ description: "The ID for input",
66
+ }, maxLength: {
67
+ type: "number",
68
+ description: "The max length",
69
+ }, placeholder: {
70
+ type: "string",
71
+ description: "Placeholder for the input",
72
+ }, prefix: {
73
+ type: "slot",
74
+ hidePlaceholder: true,
75
+ }, size: {
76
+ type: "choice",
77
+ options: ["small", "middle", "large"],
78
+ description: "The size of the input box",
79
+ defaultValueHint: "middle,",
80
+ }, suffix: {
81
+ type: "slot",
82
+ hidePlaceholder: true,
83
+ }, type: {
84
+ type: "string",
85
+ description: "The type of input",
86
+ defaultValueHint: "text",
87
+ }, value: {
88
+ type: "string",
89
+ editOnly: true,
90
+ uncontrolledProp: "defaultValue",
91
+ } })),
92
+ importPath: "antd/lib/input",
93
+ importName: "Input",
94
+ isDefaultExport: true,
95
+ };
96
+ function registerInput(loader, customInputMeta) {
97
+ var doRegisterComponent = function () {
98
+ var args = [];
99
+ for (var _i = 0; _i < arguments.length; _i++) {
100
+ args[_i] = arguments[_i];
101
+ }
102
+ return loader ? loader.registerComponent.apply(loader, args) : registerComponent__default['default'].apply(void 0, args);
103
+ };
104
+ doRegisterComponent(Input__default['default'], customInputMeta !== null && customInputMeta !== void 0 ? customInputMeta : inputMeta);
105
+ }
106
+ var inputTextAreaMeta = {
107
+ name: "AntdInputTextArea",
108
+ displayName: "Antd Input Text Area",
109
+ props: sortProps(tslib_es6.__assign(tslib_es6.__assign({}, commonHtmlAttributes), { allowClear: {
110
+ type: "boolean",
111
+ description: "If allow to remove input content with clear icon",
112
+ defaultValueHint: false,
113
+ }, autoSize: {
114
+ type: "object",
115
+ description: "Height autosize feature, can be set to true | false or an object { minRows: 2, maxRows: 6 }",
116
+ }, disabled: {
117
+ type: "boolean",
118
+ description: "Whether the input is disabled",
119
+ defaultValueHint: false,
120
+ }, bordered: {
121
+ type: "boolean",
122
+ description: "Whether has border style",
123
+ defaultValueHint: true,
124
+ }, showCount: {
125
+ type: "boolean",
126
+ description: "Whether show text count",
127
+ defaultValueHint: false,
128
+ }, id: {
129
+ type: "string",
130
+ description: "The ID for input",
131
+ }, maxLength: {
132
+ type: "number",
133
+ description: "The max length",
134
+ }, placeholder: {
135
+ type: "string",
136
+ description: "Placeholder for the input",
137
+ }, value: {
138
+ type: "string",
139
+ editOnly: true,
140
+ uncontrolledProp: "defaultValue",
141
+ } })),
142
+ importPath: "antd/lib/input/TextArea",
143
+ importName: "TextArea",
144
+ isDefaultExport: true,
145
+ parentComponentName: "AntdInput",
146
+ };
147
+ function registerInputTextArea(loader, customInputTextAreaMeta) {
148
+ var doRegisterComponent = function () {
149
+ var args = [];
150
+ for (var _i = 0; _i < arguments.length; _i++) {
151
+ args[_i] = arguments[_i];
152
+ }
153
+ return loader ? loader.registerComponent.apply(loader, args) : registerComponent__default['default'].apply(void 0, args);
154
+ };
155
+ doRegisterComponent(TextArea__default['default'], customInputTextAreaMeta !== null && customInputTextAreaMeta !== void 0 ? customInputTextAreaMeta : inputTextAreaMeta);
156
+ }
157
+ var inputSearchMeta = {
158
+ name: "AntdInputSearch",
159
+ displayName: "Antd Input Search",
160
+ props: sortProps(tslib_es6.__assign(tslib_es6.__assign({}, commonHtmlAttributes), { addonBefore: {
161
+ type: "slot",
162
+ hidePlaceholder: true,
163
+ }, allowClear: {
164
+ type: "boolean",
165
+ description: "If allow to remove input content with clear icon",
166
+ defaultValueHint: false,
167
+ }, bordered: {
168
+ type: "boolean",
169
+ description: "Whether has border style",
170
+ defaultValueHint: true,
171
+ }, disabled: {
172
+ type: "boolean",
173
+ description: "Whether the input is disabled",
174
+ defaultValueHint: false,
175
+ }, enterButton: {
176
+ type: "slot",
177
+ hidePlaceholder: true,
178
+ }, id: {
179
+ type: "string",
180
+ description: "The ID for input",
181
+ }, loading: {
182
+ type: "boolean",
183
+ description: "Search box with loading",
184
+ defaultValueHint: false,
185
+ }, maxLength: {
186
+ type: "number",
187
+ description: "The max length",
188
+ }, placeholder: {
189
+ type: "string",
190
+ description: "Placeholder for the input",
191
+ }, prefix: {
192
+ type: "slot",
193
+ hidePlaceholder: true,
194
+ }, size: {
195
+ type: "choice",
196
+ options: ["small", "middle", "large"],
197
+ description: "The size of the input box",
198
+ defaultValueHint: "middle",
199
+ }, suffix: {
200
+ type: "slot",
201
+ hidePlaceholder: true,
202
+ }, type: {
203
+ type: "string",
204
+ description: "The type of input",
205
+ }, value: {
206
+ type: "string",
207
+ editOnly: true,
208
+ uncontrolledProp: "defaultValue",
209
+ } })),
210
+ importPath: "antd/lib/input/Search",
211
+ importName: "Search",
212
+ isDefaultExport: true,
213
+ parentComponentName: "AntdInput",
214
+ };
215
+ function registerInputSearch(loader, customInputSearchMeta) {
216
+ var doRegisterComponent = function () {
217
+ var args = [];
218
+ for (var _i = 0; _i < arguments.length; _i++) {
219
+ args[_i] = arguments[_i];
220
+ }
221
+ return loader ? loader.registerComponent.apply(loader, args) : registerComponent__default['default'].apply(void 0, args);
222
+ };
223
+ doRegisterComponent(Search__default['default'], customInputSearchMeta !== null && customInputSearchMeta !== void 0 ? customInputSearchMeta : inputSearchMeta);
224
+ }
225
+ var inputPasswordMeta = {
226
+ name: "AntdInputPassword",
227
+ displayName: "Antd Input Password",
228
+ props: sortProps(tslib_es6.__assign(tslib_es6.__assign({}, commonHtmlAttributes), { addonAfter: {
229
+ type: "slot",
230
+ hidePlaceholder: true,
231
+ }, addonBefore: {
232
+ type: "slot",
233
+ hidePlaceholder: true,
234
+ }, allowClear: {
235
+ type: "boolean",
236
+ description: "If allow to remove input content with clear icon",
237
+ defaultValueHint: false,
238
+ }, bordered: {
239
+ type: "boolean",
240
+ description: "Whether has border style",
241
+ defaultValueHint: true,
242
+ }, disabled: {
243
+ type: "boolean",
244
+ description: "Whether the input is disabled",
245
+ defaultValueHint: false,
246
+ }, id: {
247
+ type: "string",
248
+ description: "The ID for input",
249
+ }, maxLength: {
250
+ type: "number",
251
+ description: "The max length",
252
+ }, placeholder: {
253
+ type: "string",
254
+ description: "Placeholder for the input",
255
+ }, prefix: {
256
+ type: "slot",
257
+ hidePlaceholder: true,
258
+ }, size: {
259
+ type: "choice",
260
+ options: ["small", "middle", "large"],
261
+ description: "The size of the input box",
262
+ defaultValueHint: "middle",
263
+ }, type: {
264
+ type: "string",
265
+ description: "The type of input",
266
+ }, value: {
267
+ type: "string",
268
+ editOnly: true,
269
+ uncontrolledProp: "defaultValue",
270
+ }, visibilityToggle: {
271
+ type: "boolean",
272
+ description: "Whether show toggle button",
273
+ defaultValueHint: true,
274
+ } })),
275
+ importPath: "antd/lib/input/Password",
276
+ importName: "Password",
277
+ isDefaultExport: true,
278
+ parentComponentName: "AntdInput",
279
+ };
280
+ function registerInputPassword(loader, customInputPasswordMeta) {
281
+ var doRegisterComponent = function () {
282
+ var args = [];
283
+ for (var _i = 0; _i < arguments.length; _i++) {
284
+ args[_i] = arguments[_i];
285
+ }
286
+ return loader ? loader.registerComponent.apply(loader, args) : registerComponent__default['default'].apply(void 0, args);
287
+ };
288
+ doRegisterComponent(Password__default['default'], customInputPasswordMeta !== null && customInputPasswordMeta !== void 0 ? customInputPasswordMeta : inputPasswordMeta);
289
+ }
290
+ var inputGroupMeta = {
291
+ name: "AntdInputGroup",
292
+ displayName: "Antd Input Group",
293
+ props: {
294
+ compact: {
295
+ type: "boolean",
296
+ description: "Whether use compact style",
297
+ defaultValueHint: false,
298
+ },
299
+ size: {
300
+ type: "choice",
301
+ options: ["small", "default", "large"],
302
+ description: "The size of Input.Group specifies the size of the included Input fields",
303
+ defaultValueHint: "default",
304
+ },
305
+ children: {
306
+ type: "slot",
307
+ defaultValue: [
308
+ {
309
+ type: "component",
310
+ name: "AntdInput",
311
+ },
312
+ {
313
+ type: "component",
314
+ name: "AntdInput",
315
+ },
316
+ ],
317
+ },
318
+ },
319
+ importPath: "antd/lib/input/Group",
320
+ importName: "InputGroup",
321
+ isDefaultExport: true,
322
+ parentComponentName: "AntdInput",
323
+ };
324
+ function registerInputGroup(loader, customInputGroupMeta) {
325
+ var doRegisterComponent = function () {
326
+ var args = [];
327
+ for (var _i = 0; _i < arguments.length; _i++) {
328
+ args[_i] = arguments[_i];
329
+ }
330
+ return loader ? loader.registerComponent.apply(loader, args) : registerComponent__default['default'].apply(void 0, args);
331
+ };
332
+ doRegisterComponent(InputGroup__default['default'], customInputGroupMeta !== null && customInputGroupMeta !== void 0 ? customInputGroupMeta : inputGroupMeta);
333
+ }
334
+
335
+ exports.inputGroupMeta = inputGroupMeta;
336
+ exports.inputMeta = inputMeta;
337
+ exports.inputPasswordMeta = inputPasswordMeta;
338
+ exports.inputSearchMeta = inputSearchMeta;
339
+ exports.inputTextAreaMeta = inputTextAreaMeta;
340
+ exports.registerInput = registerInput;
341
+ exports.registerInputGroup = registerInputGroup;
342
+ exports.registerInputPassword = registerInputPassword;
343
+ exports.registerInputSearch = registerInputSearch;
344
+ exports.registerInputTextArea = registerInputTextArea;
345
+ //# sourceMappingURL=registerInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerInput.js","sources":["../src/registerInput.ts"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport Input, { InputProps } from \"antd/lib/input\";\nimport {\n GroupProps,\n PasswordProps,\n SearchProps,\n TextAreaProps,\n} from \"antd/lib/input\";\nimport InputGroup from \"antd/lib/input/Group\";\nimport Password from \"antd/lib/input/Password\";\nimport Search from \"antd/lib/input/Search\";\nimport TextArea from \"antd/lib/input/TextArea\";\nimport { Registerable } from \"./registerable\";\n\nfunction sortObjectKeys<T extends {}>(obj: T): T {\n return Object.fromEntries(Object.entries(obj).sort()) as T;\n}\n\ntype PropSpec<T> = ComponentMeta<T>[\"props\"];\n\nfunction sortProps<T>(props: PropSpec<T>): PropSpec<T> {\n return sortObjectKeys(props);\n}\n\nconst commonHtmlAttributes = {\n \"aria-label\": {\n type: \"string\",\n description: \"The ARIA label for this input\",\n },\n \"aria-labelledby\": {\n type: \"string\",\n description: \"Identifies the element(s) that labels this input\",\n },\n name: {\n type: \"string\",\n description: \"The HTML name of the input\",\n },\n} as const;\n\nexport const inputMeta: ComponentMeta<InputProps> = {\n name: \"AntdInput\",\n displayName: \"Antd Input\",\n props: sortProps<InputProps>({\n ...commonHtmlAttributes,\n addonAfter: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n addonBefore: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n allowClear: {\n type: \"boolean\",\n description: \"If allow to remove input content with clear icon\",\n defaultValueHint: false,\n },\n bordered: {\n type: \"boolean\",\n description: \"Whether has border style\",\n defaultValueHint: true,\n },\n disabled: {\n type: \"boolean\",\n description: \"Whether the input is disabled\",\n defaultValueHint: false,\n },\n id: {\n type: \"string\",\n description: \"The ID for input\",\n },\n maxLength: {\n type: \"number\",\n description: \"The max length\",\n },\n placeholder: {\n type: \"string\",\n description: \"Placeholder for the input\",\n },\n prefix: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"middle\", \"large\"],\n description: \"The size of the input box\",\n defaultValueHint: \"middle,\",\n },\n suffix: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n type: {\n type: \"string\",\n description: \"The type of input\",\n defaultValueHint: \"text\",\n },\n value: {\n type: \"string\",\n editOnly: true,\n uncontrolledProp: \"defaultValue\",\n },\n }),\n importPath: \"antd/lib/input\",\n importName: \"Input\",\n isDefaultExport: true,\n};\n\nexport function registerInput(\n loader?: Registerable,\n customInputMeta?: ComponentMeta<InputProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Input, customInputMeta ?? inputMeta);\n}\n\nexport const inputTextAreaMeta: ComponentMeta<TextAreaProps> = {\n name: \"AntdInputTextArea\",\n displayName: \"Antd Input Text Area\",\n props: sortProps<TextAreaProps>({\n ...commonHtmlAttributes,\n allowClear: {\n type: \"boolean\",\n description: \"If allow to remove input content with clear icon\",\n defaultValueHint: false,\n },\n autoSize: {\n type: \"object\",\n description:\n \"Height autosize feature, can be set to true | false or an object { minRows: 2, maxRows: 6 }\",\n },\n disabled: {\n type: \"boolean\",\n description: \"Whether the input is disabled\",\n defaultValueHint: false,\n },\n bordered: {\n type: \"boolean\",\n description: \"Whether has border style\",\n defaultValueHint: true,\n },\n showCount: {\n type: \"boolean\",\n description: \"Whether show text count\",\n defaultValueHint: false,\n },\n id: {\n type: \"string\",\n description: \"The ID for input\",\n },\n maxLength: {\n type: \"number\",\n description: \"The max length\",\n },\n placeholder: {\n type: \"string\",\n description: \"Placeholder for the input\",\n },\n value: {\n type: \"string\",\n editOnly: true,\n uncontrolledProp: \"defaultValue\",\n },\n }),\n importPath: \"antd/lib/input/TextArea\",\n importName: \"TextArea\",\n isDefaultExport: true,\n parentComponentName: \"AntdInput\",\n};\n\nexport function registerInputTextArea(\n loader?: Registerable,\n customInputTextAreaMeta?: ComponentMeta<TextAreaProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(TextArea, customInputTextAreaMeta ?? inputTextAreaMeta);\n}\n\nexport const inputSearchMeta: ComponentMeta<SearchProps> = {\n name: \"AntdInputSearch\",\n displayName: \"Antd Input Search\",\n props: sortProps<SearchProps>({\n ...commonHtmlAttributes,\n addonBefore: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n allowClear: {\n type: \"boolean\",\n description: \"If allow to remove input content with clear icon\",\n defaultValueHint: false,\n },\n bordered: {\n type: \"boolean\",\n description: \"Whether has border style\",\n defaultValueHint: true,\n },\n disabled: {\n type: \"boolean\",\n description: \"Whether the input is disabled\",\n defaultValueHint: false,\n },\n enterButton: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n id: {\n type: \"string\",\n description: \"The ID for input\",\n },\n loading: {\n type: \"boolean\",\n description: \"Search box with loading\",\n defaultValueHint: false,\n },\n maxLength: {\n type: \"number\",\n description: \"The max length\",\n },\n placeholder: {\n type: \"string\",\n description: \"Placeholder for the input\",\n },\n prefix: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"middle\", \"large\"],\n description: \"The size of the input box\",\n defaultValueHint: \"middle\",\n },\n suffix: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n type: {\n type: \"string\",\n description: \"The type of input\",\n },\n value: {\n type: \"string\",\n editOnly: true,\n uncontrolledProp: \"defaultValue\",\n },\n }),\n importPath: \"antd/lib/input/Search\",\n importName: \"Search\",\n isDefaultExport: true,\n parentComponentName: \"AntdInput\",\n};\n\nexport function registerInputSearch(\n loader?: Registerable,\n customInputSearchMeta?: ComponentMeta<SearchProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Search, customInputSearchMeta ?? inputSearchMeta);\n}\n\nexport const inputPasswordMeta: ComponentMeta<PasswordProps> = {\n name: \"AntdInputPassword\",\n displayName: \"Antd Input Password\",\n props: sortProps<PasswordProps>({\n ...commonHtmlAttributes,\n addonAfter: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n addonBefore: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n allowClear: {\n type: \"boolean\",\n description: \"If allow to remove input content with clear icon\",\n defaultValueHint: false,\n },\n bordered: {\n type: \"boolean\",\n description: \"Whether has border style\",\n defaultValueHint: true,\n },\n disabled: {\n type: \"boolean\",\n description: \"Whether the input is disabled\",\n defaultValueHint: false,\n },\n id: {\n type: \"string\",\n description: \"The ID for input\",\n },\n maxLength: {\n type: \"number\",\n description: \"The max length\",\n },\n placeholder: {\n type: \"string\",\n description: \"Placeholder for the input\",\n },\n prefix: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"middle\", \"large\"],\n description: \"The size of the input box\",\n defaultValueHint: \"middle\",\n },\n type: {\n type: \"string\",\n description: \"The type of input\",\n },\n value: {\n type: \"string\",\n editOnly: true,\n uncontrolledProp: \"defaultValue\",\n },\n visibilityToggle: {\n type: \"boolean\",\n description: \"Whether show toggle button\",\n defaultValueHint: true,\n },\n }),\n importPath: \"antd/lib/input/Password\",\n importName: \"Password\",\n isDefaultExport: true,\n parentComponentName: \"AntdInput\",\n};\n\nexport function registerInputPassword(\n loader?: Registerable,\n customInputPasswordMeta?: ComponentMeta<PasswordProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Password, customInputPasswordMeta ?? inputPasswordMeta);\n}\n\nexport const inputGroupMeta: ComponentMeta<GroupProps> = {\n name: \"AntdInputGroup\",\n displayName: \"Antd Input Group\",\n props: {\n compact: {\n type: \"boolean\",\n description: \"Whether use compact style\",\n defaultValueHint: false,\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"default\", \"large\"],\n description:\n \"The size of Input.Group specifies the size of the included Input fields\",\n defaultValueHint: \"default\",\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"component\",\n name: \"AntdInput\",\n },\n {\n type: \"component\",\n name: \"AntdInput\",\n },\n ],\n },\n },\n importPath: \"antd/lib/input/Group\",\n importName: \"InputGroup\",\n isDefaultExport: true,\n parentComponentName: \"AntdInput\",\n};\n\nexport function registerInputGroup(\n loader?: Registerable,\n customInputGroupMeta?: ComponentMeta<GroupProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(InputGroup, customInputGroupMeta ?? inputGroupMeta);\n}\n"],"names":["registerComponent","Input","TextArea","Search","Password","InputGroup"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAgBA,SAAS,cAAc,CAAe,GAAM;IAC1C,OAAO,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAM,CAAC;AAC7D,CAAC;AAID,SAAS,SAAS,CAAI,KAAkB;IACtC,OAAO,cAAc,CAAC,KAAK,CAAC,CAAC;AAC/B,CAAC;AAED,IAAM,oBAAoB,GAAG;IAC3B,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,+BAA+B;KAC7C;IACD,iBAAiB,EAAE;QACjB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,kDAAkD;KAChE;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,4BAA4B;KAC1C;CACO,CAAC;IAEE,SAAS,GAA8B;IAClD,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,YAAY;IACzB,KAAK,EAAE,SAAS,2CACX,oBAAoB,KACvB,UAAU,EAAE;YACV,IAAI,EAAE,MAAM;YACZ,eAAe,EAAE,IAAI;SACtB,EACD,WAAW,EAAE;YACX,IAAI,EAAE,MAAM;YACZ,eAAe,EAAE,IAAI;SACtB,EACD,UAAU,EAAE;YACV,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,kDAAkD;YAC/D,gBAAgB,EAAE,KAAK;SACxB,EACD,QAAQ,EAAE;YACR,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0BAA0B;YACvC,gBAAgB,EAAE,IAAI;SACvB,EACD,QAAQ,EAAE;YACR,IAAI,E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AEY,cAAc,GAA8B;IACvD,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,kBAAkB;IAC/B,KAAK,EAAE;QACL,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,2BAA2B;YACxC,gBAAgB,EAAE,KAAK;SACxB;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC;YACtC,WAAW,EACT,yEAAyE;YAC3E,gBAAgB,EAAE,SAAS;SAC5B;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM;YACZ,YAAY,EAAE;gBACZ;oBACE,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,WAAW;iBAClB;gBACD;oBACE,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,WAAW;iBAClB;aACF;SACF;KACF;IACD,UAAU,EAAE,sBAAsB;IAClC,UAAU,EAAE,YAAY;IACxB,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,WAAW;EAChC;SAEc,kBAAkB,CAChC,MAAqB,EACrB,oBAAgD;IAEhD,IAAM,mBAAmB,GAA6B;QAAC,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QAC5D,OAAA,MAAM,GAAG,MAAM,CAAC,iBAAiB,OAAxB,MAAM,EAAsB,IAAI,IAAIJ,qCAAiB,eAAI,IAAI,CAAC;KAAA,CAAC;IAC1E,mBAAmB,CAACK,8BAAU,EAAE,oBAAoB,aAApB,oBAAoB,cAApB,oBAAoB,GAAI,cAAc,CAAC,CAAC;AAC1E;;;;;;;;;;;;;"}
@@ -0,0 +1,15 @@
1
+ import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
+ import { MenuItemProps, MenuProps, SubMenuProps } from "antd/lib/menu";
3
+ import { MenuDividerProps } from "antd/lib/menu";
4
+ import { MenuItemGroupProps } from "rc-menu";
5
+ import { Registerable } from "./registerable";
6
+ export declare const menuDividerMeta: ComponentMeta<MenuDividerProps>;
7
+ export declare function registerMenuDivider(loader?: Registerable, customMenuDividerMeta?: ComponentMeta<MenuDividerProps>): void;
8
+ export declare const menuItemMeta: ComponentMeta<MenuItemProps>;
9
+ export declare function registerMenuItem(loader?: Registerable, customMenuItemMeta?: ComponentMeta<MenuItemProps>): void;
10
+ export declare const menuItemGroupMeta: ComponentMeta<MenuItemGroupProps>;
11
+ export declare function registerMenuItemGroup(loader?: Registerable, customMenuItemGroupMeta?: ComponentMeta<MenuItemProps>): void;
12
+ export declare const subMenuMeta: ComponentMeta<SubMenuProps>;
13
+ export declare function registerSubMenu(loader?: Registerable, customSubMenuMeta?: ComponentMeta<SubMenuProps>): void;
14
+ export declare const menuMeta: ComponentMeta<MenuProps>;
15
+ export declare function registerMenu(loader?: Registerable, customMenuMeta?: ComponentMeta<MenuProps>): void;