@plasmicpkgs/antd5 0.0.82 → 0.0.83

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 (50) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/antd.esm.js +24 -19
  3. package/dist/antd.esm.js.map +1 -1
  4. package/dist/index.js +24 -19
  5. package/dist/index.js.map +1 -1
  6. package/dist/react-utils.d.ts +2 -1
  7. package/dist/utils.d.ts +1 -0
  8. package/package.json +2 -2
  9. package/skinny/react-utils.d.ts +2 -1
  10. package/skinny/registerButton.cjs.js +1 -1
  11. package/skinny/registerButton.esm.js +1 -1
  12. package/skinny/registerCheckbox.cjs.js +1 -1
  13. package/skinny/registerCheckbox.esm.js +1 -1
  14. package/skinny/registerConfigProvider.cjs.js +1 -1
  15. package/skinny/registerConfigProvider.esm.js +1 -1
  16. package/skinny/registerDatePicker.cjs.js +1 -1
  17. package/skinny/registerDatePicker.esm.js +1 -1
  18. package/skinny/registerDropdown.cjs.js +1 -1
  19. package/skinny/registerDropdown.esm.js +1 -1
  20. package/skinny/registerForm.cjs.js +5 -105
  21. package/skinny/registerForm.cjs.js.map +1 -1
  22. package/skinny/registerForm.esm.js +3 -102
  23. package/skinny/registerForm.esm.js.map +1 -1
  24. package/skinny/registerInput.cjs.js +1 -1
  25. package/skinny/registerInput.esm.js +1 -1
  26. package/skinny/registerMenu.cjs.js +1 -1
  27. package/skinny/registerMenu.esm.js +1 -1
  28. package/skinny/registerModal.cjs.js +1 -1
  29. package/skinny/registerModal.esm.js +1 -1
  30. package/skinny/registerRadio.cjs.js +1 -1
  31. package/skinny/registerRadio.esm.js +1 -1
  32. package/skinny/registerSelect-97163424.esm.js +462 -0
  33. package/skinny/registerSelect-97163424.esm.js.map +1 -0
  34. package/skinny/registerSelect-9c951faf.cjs.js +477 -0
  35. package/skinny/registerSelect-9c951faf.cjs.js.map +1 -0
  36. package/skinny/registerSelect.cjs.js +12 -366
  37. package/skinny/registerSelect.cjs.js.map +1 -1
  38. package/skinny/registerSelect.esm.js +5 -359
  39. package/skinny/registerSelect.esm.js.map +1 -1
  40. package/skinny/registerSwitch.cjs.js +1 -1
  41. package/skinny/registerSwitch.esm.js +1 -1
  42. package/skinny/registerTable.cjs.js +1 -1
  43. package/skinny/registerTable.esm.js +1 -1
  44. package/skinny/registerUpload.cjs.js +1 -1
  45. package/skinny/registerUpload.esm.js +1 -1
  46. package/skinny/{utils-b2751954.esm.js → utils-6bd7e3c6.esm.js} +5 -2
  47. package/skinny/{utils-403deb7b.cjs.js.map → utils-6bd7e3c6.esm.js.map} +1 -1
  48. package/skinny/{utils-403deb7b.cjs.js → utils-dbc32c4f.cjs.js} +5 -1
  49. package/skinny/{utils-b2751954.esm.js.map → utils-dbc32c4f.cjs.js.map} +1 -1
  50. package/skinny/utils.d.ts +1 -0
@@ -1,374 +1,20 @@
1
1
  'use strict';
2
2
 
3
- var antd = require('antd');
4
- var React = require('react');
5
- var utils = require('./utils-403deb7b.cjs.js');
3
+ require('antd');
4
+ require('react');
5
+ require('./utils-dbc32c4f.cjs.js');
6
+ var registerSelect = require('./registerSelect-9c951faf.cjs.js');
6
7
  require('@plasmicapp/host/registerComponent');
7
8
  require('@plasmicapp/host/registerGlobalContext');
9
+ require('classnames');
8
10
 
9
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
11
 
11
- var React__default = /*#__PURE__*/_interopDefault(React);
12
12
 
13
- var __defProp = Object.defineProperty;
14
- var __defProps = Object.defineProperties;
15
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
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
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
32
- var __objRest = (source, exclude) => {
33
- var target = {};
34
- for (var prop in source)
35
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
36
- target[prop] = source[prop];
37
- if (source != null && __getOwnPropSymbols)
38
- for (var prop of __getOwnPropSymbols(source)) {
39
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
40
- target[prop] = source[prop];
41
- }
42
- return target;
43
- };
44
- const AntdOption = antd.Select.Option;
45
- const AntdOptionGroup = antd.Select.OptGroup;
46
- function AntdSelect(props) {
47
- const _a = props, {
48
- popupClassName,
49
- popupScopeClassName,
50
- defaultStylesClassName,
51
- suffixIcon,
52
- mode,
53
- useChildren
54
- } = _a, rest = __objRest(_a, [
55
- "popupClassName",
56
- "popupScopeClassName",
57
- "defaultStylesClassName",
58
- "suffixIcon",
59
- "mode",
60
- "useChildren"
61
- ]);
62
- const curated = __spreadValues({}, rest);
63
- if (useChildren) {
64
- curated.options = void 0;
65
- }
66
- return /* @__PURE__ */ React__default.default.createElement(
67
- antd.Select,
68
- __spreadValues(__spreadProps(__spreadValues({}, curated), {
69
- mode: !mode || mode === "single" ? void 0 : mode,
70
- popupClassName: `${defaultStylesClassName} ${popupScopeClassName} ${popupClassName}`
71
- }), suffixIcon && { suffixIcon })
72
- );
73
- }
74
- const selectComponentName = "plasmic-antd5-select";
75
- const optionComponentName = "plasmic-antd5-option";
76
- const optionGroupComponentName = "plasmic-antd5-option-group";
77
- function registerSelect(loader) {
78
- utils.registerComponentHelper(loader, AntdSelect, __spreadProps(__spreadValues({
79
- name: selectComponentName,
80
- displayName: "Select",
81
- props: {
82
- options: {
83
- type: "array",
84
- hidden: (ps) => !!ps.useChildren,
85
- itemType: {
86
- type: "object",
87
- nameFunc: (item) => item.label || item.value,
88
- fields: {
89
- type: {
90
- type: "choice",
91
- options: [
92
- { value: "option", label: "Option" },
93
- { value: "option-group", label: "Option Group" }
94
- ],
95
- defaultValue: "option"
96
- },
97
- value: {
98
- type: "string",
99
- hidden: (_ps, _ctx, { item }) => item.type !== "option"
100
- },
101
- label: "string",
102
- options: {
103
- type: "array",
104
- hidden: (_ps, _ctx, { item }) => {
105
- return item.type !== "option-group";
106
- },
107
- itemType: {
108
- type: "object",
109
- nameFunc: (item) => item.label || item.value,
110
- fields: {
111
- value: "string",
112
- label: "string"
113
- }
114
- }
115
- }
116
- }
117
- },
118
- defaultValue: [
119
- {
120
- value: "option1",
121
- label: "Option 1",
122
- type: "option"
123
- },
124
- {
125
- value: "option2",
126
- label: "Option 2",
127
- type: "option"
128
- }
129
- ]
130
- },
131
- useChildren: {
132
- displayName: "Use slot",
133
- type: "boolean",
134
- defaultValueHint: false,
135
- advanced: true,
136
- description: "Instead of configuring a list of options, customize the contents of the Select by dragging and dropping options in the outline/canvas, inside the 'children' slot. Lets you use any content or formatting within the Options, and also use Option Groups."
137
- },
138
- children: {
139
- type: "slot",
140
- allowedComponents: [optionComponentName, optionGroupComponentName],
141
- hidden: (ps) => !ps.useChildren
142
- },
143
- placeholder: {
144
- type: "slot",
145
- defaultValue: "Select..."
146
- },
147
- suffixIcon: {
148
- type: "slot",
149
- hidePlaceholder: true
150
- },
151
- open: {
152
- type: "boolean",
153
- editOnly: true,
154
- uncontrolledProp: "defaultOpen"
155
- },
156
- value: {
157
- type: "choice",
158
- displayName: "Selected value",
159
- editOnly: true,
160
- uncontrolledProp: "defaultValue",
161
- description: "Initial selected option",
162
- multiSelect: (ps) => ps.mode === "multiple",
163
- options: (ps) => {
164
- var _a;
165
- const options = /* @__PURE__ */ new Set();
166
- if (!ps.useChildren) {
167
- const rec = (op) => {
168
- var _a2;
169
- if (typeof op === "string") {
170
- return [{ value: op, label: op }];
171
- } else if ("options" in op) {
172
- return ((_a2 = op.options) != null ? _a2 : []).flatMap((sub) => rec(sub));
173
- } else {
174
- return [{ value: op.value, label: op.label || op.value }];
175
- }
176
- };
177
- return ((_a = ps.options) != null ? _a : []).flatMap((o) => rec(o));
178
- } else {
179
- utils.traverseReactEltTree(ps.children, (elt) => {
180
- var _a2;
181
- if ((elt == null ? void 0 : elt.type) === antd.Select.Option && typeof ((_a2 = elt == null ? void 0 : elt.props) == null ? void 0 : _a2.value) === "string") {
182
- options.add(elt.props.value);
183
- }
184
- });
185
- }
186
- return Array.from(options.keys());
187
- },
188
- hidden: (ps) => !!ps.__plasmicFormField
189
- },
190
- mode: {
191
- type: "choice",
192
- options: ["single", "multiple"],
193
- defaultValueHint: "single"
194
- },
195
- size: {
196
- type: "choice",
197
- options: ["small", "middle", "large"]
198
- },
199
- disabled: {
200
- type: "boolean",
201
- defaultValueHint: false
202
- },
203
- showSearch: {
204
- type: "boolean",
205
- defaultValueHint: false,
206
- advanced: true
207
- },
208
- status: {
209
- type: "choice",
210
- options: ["error", "warning"],
211
- advanced: true
212
- },
213
- bordered: {
214
- type: "boolean",
215
- defaultValueHint: true
216
- },
217
- autoFocus: {
218
- type: "boolean",
219
- displayName: "Focus automatically",
220
- defaultValueHint: false,
221
- advanced: true
222
- },
223
- onChange: {
224
- type: "eventHandler",
225
- argTypes: [
226
- { name: "value", type: "string" },
227
- { name: "option", type: "object" }
228
- ]
229
- },
230
- dropdownMatchSelectWidth: {
231
- type: "boolean",
232
- displayName: "Should dropdown match trigger button width?",
233
- defaultValueHint: true,
234
- advanced: true
235
- },
236
- triggerClassName: {
237
- type: "class",
238
- displayName: "Trigger styles",
239
- noSelf: true,
240
- selectors: [
241
- {
242
- selector: ":component .ant-select-selector.ant-select-selector",
243
- label: "Base"
244
- },
245
- {
246
- selector: ":component .ant-select-selector:hover",
247
- label: "Hovered"
248
- }
249
- ],
250
- advanced: true
251
- },
252
- popupScopeClassName: {
253
- type: "styleScopeClass",
254
- scopeName: "popup"
255
- },
256
- popupClassName: {
257
- type: "class",
258
- displayName: "Popup styles",
259
- selectors: [],
260
- advanced: true
261
- },
262
- optionClassName: {
263
- type: "class",
264
- displayName: "Option styles",
265
- noSelf: true,
266
- selectors: [
267
- {
268
- selector: ":popup.ant-select-dropdown .ant-select-item-option",
269
- label: "Base"
270
- },
271
- {
272
- selector: ":popup.ant-select-dropdown .ant-select-item-option-active",
273
- label: "Focused"
274
- },
275
- {
276
- selector: ":popup.ant-select-dropdown .ant-select-item-option-selected",
277
- label: "Selected"
278
- }
279
- ],
280
- advanced: true
281
- },
282
- placeholderClassName: {
283
- type: "class",
284
- displayName: "Placeholder styles",
285
- selectors: [
286
- {
287
- selector: ":component .ant-select-selector .ant-select-selection-placeholder",
288
- label: "Base"
289
- }
290
- ],
291
- advanced: true
292
- },
293
- defaultStylesClassName: {
294
- type: "themeResetClass"
295
- }
296
- },
297
- states: {
298
- value: {
299
- type: "writable",
300
- valueProp: "value",
301
- onChangeProp: "onChange",
302
- variableType: "text"
303
- }
304
- }
305
- }, { trapsSelection: true }), {
306
- importPath: "@plasmicpkgs/antd5/skinny/registerSelect",
307
- importName: "AntdSelect"
308
- }));
309
- utils.registerComponentHelper(loader, AntdOption, {
310
- name: optionComponentName,
311
- displayName: "Option",
312
- parentComponentName: selectComponentName,
313
- props: {
314
- children: __spreadValues({
315
- type: "slot",
316
- defaultValue: "Option"
317
- }, { mergeWithParent: true }),
318
- value: {
319
- type: "string"
320
- }
321
- },
322
- importPath: "@plasmicpkgs/antd5/skinny/registerSelect",
323
- importName: "AntdOption"
324
- });
325
- utils.registerComponentHelper(loader, AntdOptionGroup, {
326
- name: optionGroupComponentName,
327
- displayName: "Option Group",
328
- parentComponentName: selectComponentName,
329
- props: {
330
- children: {
331
- type: "slot",
332
- defaultValue: [
333
- {
334
- type: "component",
335
- name: "plasmic-antd5-option",
336
- props: {
337
- value: "option1",
338
- children: {
339
- type: "text",
340
- value: "Option 1"
341
- }
342
- }
343
- },
344
- {
345
- type: "component",
346
- name: "plasmic-antd5-option",
347
- props: {
348
- value: "option2",
349
- children: {
350
- type: "text",
351
- value: "Option 1"
352
- }
353
- }
354
- }
355
- ]
356
- },
357
- label: {
358
- type: "slot",
359
- defaultValue: "Group label"
360
- }
361
- },
362
- importPath: "@plasmicpkgs/antd5/skinny/registerSelect",
363
- importName: "AntdOptionGroup"
364
- });
365
- }
366
-
367
- exports.AntdOption = AntdOption;
368
- exports.AntdOptionGroup = AntdOptionGroup;
369
- exports.AntdSelect = AntdSelect;
370
- exports.optionComponentName = optionComponentName;
371
- exports.optionGroupComponentName = optionGroupComponentName;
372
- exports.registerSelect = registerSelect;
373
- exports.selectComponentName = selectComponentName;
13
+ exports.AntdOption = registerSelect.AntdOption;
14
+ exports.AntdOptionGroup = registerSelect.AntdOptionGroup;
15
+ exports.AntdSelect = registerSelect.AntdSelect;
16
+ exports.optionComponentName = registerSelect.optionComponentName;
17
+ exports.optionGroupComponentName = registerSelect.optionGroupComponentName;
18
+ exports.registerSelect = registerSelect.registerSelect;
19
+ exports.selectComponentName = registerSelect.selectComponentName;
374
20
  //# sourceMappingURL=registerSelect.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"registerSelect.cjs.js","sources":["../src/registerSelect.tsx"],"sourcesContent":["import { Select } from \"antd\";\nimport React, { ComponentProps } from \"react\";\nimport {\n Registerable,\n registerComponentHelper,\n traverseReactEltTree,\n} from \"./utils\";\n\nexport const AntdOption = Select.Option;\nexport const AntdOptionGroup = Select.OptGroup;\n\nexport function AntdSelect(\n props: ComponentProps<typeof Select> & {\n popupScopeClassName?: string;\n popupClassName?: string;\n defaultStylesClassName?: string;\n useChildren?: boolean;\n }\n) {\n const {\n popupClassName,\n popupScopeClassName,\n defaultStylesClassName,\n suffixIcon,\n mode,\n useChildren,\n ...rest\n } = props;\n const curated = { ...rest };\n if (useChildren) {\n curated.options = undefined;\n }\n return (\n <Select\n {...curated}\n mode={!mode || (mode as any) === \"single\" ? undefined : mode}\n popupClassName={`${defaultStylesClassName} ${popupScopeClassName} ${popupClassName}`}\n {...(suffixIcon && { suffixIcon })}\n />\n );\n}\n\nexport const selectComponentName = \"plasmic-antd5-select\";\nexport const optionComponentName = \"plasmic-antd5-option\";\nexport const optionGroupComponentName = \"plasmic-antd5-option-group\";\n\nexport function registerSelect(loader?: Registerable) {\n registerComponentHelper(loader, AntdSelect, {\n name: selectComponentName,\n displayName: \"Select\",\n props: {\n options: {\n type: \"array\",\n hidden: (ps) => !!ps.useChildren,\n itemType: {\n type: \"object\",\n nameFunc: (item: any) => item.label || item.value,\n fields: {\n type: {\n type: \"choice\",\n options: [\n { value: \"option\", label: \"Option\" },\n { value: \"option-group\", label: \"Option Group\" },\n ],\n defaultValue: \"option\",\n },\n value: {\n type: \"string\",\n hidden: (_ps: any, _ctx: any, { item }: any) =>\n item.type !== \"option\",\n },\n label: \"string\",\n options: {\n type: \"array\",\n hidden: (_ps: any, _ctx: any, { item }: any) => {\n return item.type !== \"option-group\";\n },\n itemType: {\n type: \"object\",\n nameFunc: (item: any) => item.label || item.value,\n fields: {\n value: \"string\",\n label: \"string\",\n },\n },\n },\n },\n },\n defaultValue: [\n {\n value: \"option1\",\n label: \"Option 1\",\n type: \"option\",\n },\n {\n value: \"option2\",\n label: \"Option 2\",\n type: \"option\",\n },\n ],\n },\n\n useChildren: {\n displayName: \"Use slot\",\n type: \"boolean\",\n defaultValueHint: false,\n advanced: true,\n description:\n \"Instead of configuring a list of options, customize the contents of the Select by dragging and dropping options in the outline/canvas, inside the 'children' slot. Lets you use any content or formatting within the Options, and also use Option Groups.\",\n },\n\n children: {\n type: \"slot\",\n allowedComponents: [optionComponentName, optionGroupComponentName],\n hidden: (ps) => !ps.useChildren,\n },\n\n placeholder: {\n type: \"slot\",\n defaultValue: \"Select...\",\n },\n suffixIcon: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n open: {\n type: \"boolean\",\n editOnly: true,\n uncontrolledProp: \"defaultOpen\",\n },\n value: {\n type: \"choice\",\n displayName: \"Selected value\",\n editOnly: true,\n uncontrolledProp: \"defaultValue\",\n description: \"Initial selected option\",\n multiSelect: (ps) => ps.mode === \"multiple\",\n options: (ps) => {\n const options = new Set<string>();\n if (!ps.useChildren) {\n const rec = (op: any) => {\n if (typeof op === \"string\") {\n return [{ value: op, label: op }];\n } else if (\"options\" in op) {\n return (op.options ?? []).flatMap((sub: any) => rec(sub));\n } else {\n return [{ value: op.value, label: op.label || op.value }];\n }\n };\n return (ps.options ?? []).flatMap((o: any) => rec(o));\n } else {\n traverseReactEltTree(ps.children, (elt) => {\n if (\n elt?.type === Select.Option &&\n typeof elt?.props?.value === \"string\"\n ) {\n options.add(elt.props.value);\n }\n });\n }\n return Array.from(options.keys());\n },\n hidden: (ps: any) => !!ps.__plasmicFormField,\n },\n mode: {\n type: \"choice\",\n options: [\"single\", \"multiple\"],\n defaultValueHint: \"single\",\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"middle\", \"large\"],\n },\n disabled: {\n type: \"boolean\",\n defaultValueHint: false,\n },\n showSearch: {\n type: \"boolean\",\n defaultValueHint: false,\n advanced: true,\n },\n status: {\n type: \"choice\",\n options: [\"error\", \"warning\"],\n advanced: true,\n },\n bordered: {\n type: \"boolean\",\n defaultValueHint: true,\n },\n autoFocus: {\n type: \"boolean\",\n displayName: \"Focus automatically\",\n defaultValueHint: false,\n advanced: true,\n },\n onChange: {\n type: \"eventHandler\",\n argTypes: [\n { name: \"value\", type: \"string\" },\n { name: \"option\", type: \"object\" },\n ],\n } as any,\n dropdownMatchSelectWidth: {\n type: \"boolean\",\n displayName: \"Should dropdown match trigger button width?\",\n defaultValueHint: true,\n advanced: true,\n },\n triggerClassName: {\n type: \"class\",\n displayName: \"Trigger styles\",\n noSelf: true,\n selectors: [\n {\n selector: \":component .ant-select-selector.ant-select-selector\",\n label: \"Base\",\n },\n {\n selector: \":component .ant-select-selector:hover\",\n label: \"Hovered\",\n },\n ],\n advanced: true,\n } as any,\n popupScopeClassName: {\n type: \"styleScopeClass\",\n scopeName: \"popup\",\n } as any,\n popupClassName: {\n type: \"class\",\n displayName: \"Popup styles\",\n selectors: [],\n advanced: true,\n } as any,\n optionClassName: {\n type: \"class\",\n displayName: \"Option styles\",\n noSelf: true,\n selectors: [\n {\n selector: \":popup.ant-select-dropdown .ant-select-item-option\",\n label: \"Base\",\n },\n {\n selector:\n \":popup.ant-select-dropdown .ant-select-item-option-active\",\n label: \"Focused\",\n },\n {\n selector:\n \":popup.ant-select-dropdown .ant-select-item-option-selected\",\n label: \"Selected\",\n },\n ],\n advanced: true,\n } as any,\n placeholderClassName: {\n type: \"class\",\n displayName: \"Placeholder styles\",\n selectors: [\n {\n selector:\n \":component .ant-select-selector .ant-select-selection-placeholder\",\n label: \"Base\",\n },\n ],\n advanced: true,\n } as any,\n defaultStylesClassName: {\n type: \"themeResetClass\",\n } as any,\n },\n states: {\n value: {\n type: \"writable\",\n valueProp: \"value\",\n onChangeProp: \"onChange\",\n variableType: \"text\",\n },\n },\n ...({ trapsSelection: true } as any),\n importPath: \"@plasmicpkgs/antd5/skinny/registerSelect\",\n importName: \"AntdSelect\",\n });\n\n registerComponentHelper(loader, AntdOption, {\n name: optionComponentName,\n displayName: \"Option\",\n parentComponentName: selectComponentName,\n props: {\n children: {\n type: \"slot\",\n defaultValue: \"Option\",\n ...({ mergeWithParent: true } as any),\n },\n value: {\n type: \"string\",\n },\n },\n importPath: \"@plasmicpkgs/antd5/skinny/registerSelect\",\n importName: \"AntdOption\",\n });\n\n registerComponentHelper(loader, AntdOptionGroup, {\n name: optionGroupComponentName,\n displayName: \"Option Group\",\n parentComponentName: selectComponentName,\n props: {\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"component\",\n name: \"plasmic-antd5-option\",\n props: {\n value: \"option1\",\n children: {\n type: \"text\",\n value: \"Option 1\",\n },\n },\n },\n {\n type: \"component\",\n name: \"plasmic-antd5-option\",\n props: {\n value: \"option2\",\n children: {\n type: \"text\",\n value: \"Option 1\",\n },\n },\n },\n ],\n },\n label: {\n type: \"slot\",\n defaultValue: \"Group label\",\n },\n },\n importPath: \"@plasmicpkgs/antd5/skinny/registerSelect\",\n importName: \"AntdOptionGroup\",\n });\n}\n"],"names":["Select","React","registerComponentHelper","_a","traverseReactEltTree"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQO,MAAM,aAAaA,WAAO,CAAA,OAAA;AAC1B,MAAM,kBAAkBA,WAAO,CAAA,SAAA;AAE/B,SAAS,WACd,KAMA,EAAA;AACA,EAAA,MAQI,EAPF,GAAA,KAAA,EAAA;AAAA,IAAA,cAAA;AAAA,IACA,mBAAA;AAAA,IACA,sBAAA;AAAA,IACA,UAAA;AAAA,IACA,IAAA;AAAA,IACA,WAAA;AAAA,GAzBJ,GA2BM,EADC,EAAA,IAAA,GAAA,SAAA,CACD,EADC,EAAA;AAAA,IANH,gBAAA;AAAA,IACA,qBAAA;AAAA,IACA,wBAAA;AAAA,IACA,YAAA;AAAA,IACA,MAAA;AAAA,IACA,aAAA;AAAA,GAAA,CAAA,CAAA;AAGF,EAAA,MAAM,UAAU,cAAK,CAAA,EAAA,EAAA,IAAA,CAAA,CAAA;AACrB,EAAA,IAAI,WAAa,EAAA;AACf,IAAA,OAAA,CAAQ,OAAU,GAAA,KAAA,CAAA,CAAA;AAAA,GACpB;AACA,EACE,uBAAAC,sBAAA,CAAA,aAAA;AAAA,IAACD,WAAA;AAAA,IAAA,cAAA,CAAA,aAAA,CAAA,cAAA,CAAA,EAAA,EACK,OADL,CAAA,EAAA;AAAA,MAEC,IAAM,EAAA,CAAC,IAAS,IAAA,IAAA,KAAiB,WAAW,KAAY,CAAA,GAAA,IAAA;AAAA,MACxD,cAAA,EAAgB,CAAG,EAAA,sBAAA,CAAA,CAAA,EAA0B,mBAAuB,CAAA,CAAA,EAAA,cAAA,CAAA,CAAA;AAAA,KAC/D,CAAA,EAAA,UAAA,IAAc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