@daouypkgs/antd 2.0.157

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 (106) hide show
  1. package/README.md +1 -0
  2. package/dist/.tsbuildinfo +1 -0
  3. package/dist/antd.css +29217 -0
  4. package/dist/antd.esm.js +2557 -0
  5. package/dist/antd.esm.js.map +1 -0
  6. package/dist/customControls.d.ts +17 -0
  7. package/dist/index.d.ts +16 -0
  8. package/dist/index.js +2644 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/registerButton.d.ts +7 -0
  11. package/dist/registerCarousel.d.ts +6 -0
  12. package/dist/registerCheckbox.d.ts +19 -0
  13. package/dist/registerCollapse.d.ts +15 -0
  14. package/dist/registerDropdown.d.ts +13 -0
  15. package/dist/registerInput.d.ts +26 -0
  16. package/dist/registerMenu.d.ts +20 -0
  17. package/dist/registerOption.d.ts +10 -0
  18. package/dist/registerRate.d.ts +6 -0
  19. package/dist/registerSelect.d.ts +16 -0
  20. package/dist/registerSlider.d.ts +19 -0
  21. package/dist/registerSwitch.d.ts +7 -0
  22. package/dist/registerTable.d.ts +30 -0
  23. package/dist/registerTabs.d.ts +14 -0
  24. package/dist/registerable.d.ts +4 -0
  25. package/package.json +83 -0
  26. package/skinny/customControls-82aa5d0c.esm.js +20 -0
  27. package/skinny/customControls-82aa5d0c.esm.js.map +1 -0
  28. package/skinny/customControls-fb0b7e5f.cjs.js +22 -0
  29. package/skinny/customControls-fb0b7e5f.cjs.js.map +1 -0
  30. package/skinny/customControls.d.ts +17 -0
  31. package/skinny/package.json +1 -0
  32. package/skinny/registerButton.cjs.js +90 -0
  33. package/skinny/registerButton.cjs.js.map +1 -0
  34. package/skinny/registerButton.d.ts +7 -0
  35. package/skinny/registerButton.esm.js +82 -0
  36. package/skinny/registerButton.esm.js.map +1 -0
  37. package/skinny/registerCarousel.cjs.js +76 -0
  38. package/skinny/registerCarousel.cjs.js.map +1 -0
  39. package/skinny/registerCarousel.d.ts +6 -0
  40. package/skinny/registerCarousel.esm.js +68 -0
  41. package/skinny/registerCarousel.esm.js.map +1 -0
  42. package/skinny/registerCheckbox.cjs.js +190 -0
  43. package/skinny/registerCheckbox.cjs.js.map +1 -0
  44. package/skinny/registerCheckbox.d.ts +19 -0
  45. package/skinny/registerCheckbox.esm.js +177 -0
  46. package/skinny/registerCheckbox.esm.js.map +1 -0
  47. package/skinny/registerCollapse.cjs.js +214 -0
  48. package/skinny/registerCollapse.cjs.js.map +1 -0
  49. package/skinny/registerCollapse.d.ts +15 -0
  50. package/skinny/registerCollapse.esm.js +202 -0
  51. package/skinny/registerCollapse.esm.js.map +1 -0
  52. package/skinny/registerDropdown.cjs.js +191 -0
  53. package/skinny/registerDropdown.cjs.js.map +1 -0
  54. package/skinny/registerDropdown.d.ts +13 -0
  55. package/skinny/registerDropdown.esm.js +179 -0
  56. package/skinny/registerDropdown.esm.js.map +1 -0
  57. package/skinny/registerInput.cjs.js +468 -0
  58. package/skinny/registerInput.cjs.js.map +1 -0
  59. package/skinny/registerInput.d.ts +26 -0
  60. package/skinny/registerInput.esm.js +447 -0
  61. package/skinny/registerInput.esm.js.map +1 -0
  62. package/skinny/registerMenu.cjs.js +319 -0
  63. package/skinny/registerMenu.cjs.js.map +1 -0
  64. package/skinny/registerMenu.d.ts +20 -0
  65. package/skinny/registerMenu.esm.js +299 -0
  66. package/skinny/registerMenu.esm.js.map +1 -0
  67. package/skinny/registerOption.cjs.js +89 -0
  68. package/skinny/registerOption.cjs.js.map +1 -0
  69. package/skinny/registerOption.d.ts +10 -0
  70. package/skinny/registerOption.esm.js +78 -0
  71. package/skinny/registerOption.esm.js.map +1 -0
  72. package/skinny/registerRate.cjs.js +82 -0
  73. package/skinny/registerRate.cjs.js.map +1 -0
  74. package/skinny/registerRate.d.ts +6 -0
  75. package/skinny/registerRate.esm.js +74 -0
  76. package/skinny/registerRate.esm.js.map +1 -0
  77. package/skinny/registerSelect.cjs.js +173 -0
  78. package/skinny/registerSelect.cjs.js.map +1 -0
  79. package/skinny/registerSelect.d.ts +16 -0
  80. package/skinny/registerSelect.esm.js +165 -0
  81. package/skinny/registerSelect.esm.js.map +1 -0
  82. package/skinny/registerSlider.cjs.js +162 -0
  83. package/skinny/registerSlider.cjs.js.map +1 -0
  84. package/skinny/registerSlider.d.ts +19 -0
  85. package/skinny/registerSlider.esm.js +153 -0
  86. package/skinny/registerSlider.esm.js.map +1 -0
  87. package/skinny/registerSwitch.cjs.js +84 -0
  88. package/skinny/registerSwitch.cjs.js.map +1 -0
  89. package/skinny/registerSwitch.d.ts +7 -0
  90. package/skinny/registerSwitch.esm.js +76 -0
  91. package/skinny/registerSwitch.esm.js.map +1 -0
  92. package/skinny/registerTable.cjs.js +217 -0
  93. package/skinny/registerTable.cjs.js.map +1 -0
  94. package/skinny/registerTable.d.ts +30 -0
  95. package/skinny/registerTable.esm.js +203 -0
  96. package/skinny/registerTable.esm.js.map +1 -0
  97. package/skinny/registerTabs.cjs.js +390 -0
  98. package/skinny/registerTabs.cjs.js.map +1 -0
  99. package/skinny/registerTabs.d.ts +14 -0
  100. package/skinny/registerTabs.esm.js +378 -0
  101. package/skinny/registerTabs.esm.js.map +1 -0
  102. package/skinny/registerable.cjs.js +3 -0
  103. package/skinny/registerable.cjs.js.map +1 -0
  104. package/skinny/registerable.d.ts +4 -0
  105. package/skinny/registerable.esm.js +2 -0
  106. package/skinny/registerable.esm.js.map +1 -0
@@ -0,0 +1,2557 @@
1
+ import registerComponent from '@daouy/host/registerComponent';
2
+ import { Button as Button$1, Carousel as Carousel$1, Checkbox as Checkbox$1, Collapse as Collapse$1, Dropdown as Dropdown$1, Input as Input$1, Menu as Menu$1, Select as Select$1, Rate as Rate$1, Slider as Slider$1, Switch as Switch$1, Table, Tabs as Tabs$1 } from 'antd';
3
+ import React from 'react';
4
+ import { registerComponent as registerComponent$1, useSelector, DataProvider, repeatedElement } from '@daouy/host';
5
+
6
+ const Button = Button$1;
7
+ const buttonMeta = {
8
+ name: "AntdButton",
9
+ displayName: "Antd Button",
10
+ props: {
11
+ type: {
12
+ type: "choice",
13
+ options: ["default", "primary", "ghost", "dashed", "link", "text"],
14
+ description: "Can be set to primary, ghost, dashed, link, text, default",
15
+ defaultValueHint: "default"
16
+ },
17
+ size: {
18
+ type: "choice",
19
+ options: ["small", "medium", "large"],
20
+ description: "Set the size of button",
21
+ defaultValueHint: "medium"
22
+ },
23
+ shape: {
24
+ type: "choice",
25
+ options: ["default", "circle", "round"],
26
+ description: "Can be set button shape",
27
+ defaultValueHint: "default"
28
+ },
29
+ disabled: {
30
+ type: "boolean",
31
+ description: "Disabled state of button",
32
+ defaultValueHint: false
33
+ },
34
+ ghost: {
35
+ type: "boolean",
36
+ description: "Make background transparent and invert text and border colors",
37
+ defaultValueHint: false
38
+ },
39
+ danger: {
40
+ type: "boolean",
41
+ description: "Set the danger status of button",
42
+ defaultValueHint: false
43
+ },
44
+ block: {
45
+ type: "boolean",
46
+ description: "Option to fit button width to its parent width",
47
+ defaultValueHint: false
48
+ },
49
+ loading: {
50
+ type: "boolean",
51
+ description: "Set the loading status of button",
52
+ defaultValueHint: false
53
+ },
54
+ href: {
55
+ type: "string",
56
+ description: "Redirect url of link button"
57
+ },
58
+ target: {
59
+ type: "choice",
60
+ options: ["_blank", "_self", "_parent", "_top"],
61
+ description: "Same as target attribute of a, works when href is specified",
62
+ hidden: (props) => !props.href,
63
+ defaultValueHint: "_self"
64
+ },
65
+ children: {
66
+ type: "slot",
67
+ defaultValue: [
68
+ {
69
+ type: "text",
70
+ value: "Button"
71
+ }
72
+ ]
73
+ }
74
+ },
75
+ importPath: "@daouypkgs/antd/skinny/registerButton",
76
+ importName: "Button"
77
+ };
78
+ function registerButton(loader, customButtonMeta) {
79
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
80
+ doRegisterComponent(Button$1, customButtonMeta != null ? customButtonMeta : buttonMeta);
81
+ }
82
+
83
+ const Carousel = Carousel$1;
84
+ const contentStyle = {
85
+ height: 160,
86
+ color: "#fff",
87
+ lineHeight: 160,
88
+ textAlign: "center",
89
+ backgroundColor: "#364d79"
90
+ };
91
+ const carouselMeta = {
92
+ name: "AntdCarousel",
93
+ displayName: "Antd Carousel",
94
+ props: {
95
+ autoplay: {
96
+ type: "boolean",
97
+ description: "Whether to scroll automatically",
98
+ defaultValueHint: false
99
+ },
100
+ dotPosition: {
101
+ type: "choice",
102
+ options: ["top", "bottom", "left", "right"],
103
+ description: "The position of the dots",
104
+ defaultValueHint: "bottom"
105
+ },
106
+ dots: {
107
+ type: "boolean",
108
+ description: "Whether to show the dots at the bottom of the gallery",
109
+ defaultValueHint: true
110
+ },
111
+ effect: {
112
+ type: "choice",
113
+ options: ["scrollx", "fade"],
114
+ defaultValueHint: "scrollx"
115
+ },
116
+ children: {
117
+ type: "slot",
118
+ defaultValue: [
119
+ {
120
+ type: "vbox",
121
+ children: {
122
+ type: "text",
123
+ value: "1",
124
+ styles: contentStyle
125
+ }
126
+ },
127
+ {
128
+ type: "vbox",
129
+ children: {
130
+ type: "text",
131
+ value: "2",
132
+ styles: contentStyle
133
+ }
134
+ }
135
+ ]
136
+ }
137
+ },
138
+ importPath: "@daouypkgs/antd/skinny/registerCarousel",
139
+ importName: "Carousel"
140
+ };
141
+ function registerCarousel(loader, customCarouselMeta) {
142
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
143
+ doRegisterComponent(Carousel, customCarouselMeta != null ? customCarouselMeta : carouselMeta);
144
+ }
145
+
146
+ function traverseReactEltTree(children, callback) {
147
+ const rec = (elts) => {
148
+ (Array.isArray(elts) ? elts : [elts]).forEach((elt) => {
149
+ var _a;
150
+ if (elt) {
151
+ callback(elt);
152
+ if (elt.children) {
153
+ rec(elt.children);
154
+ }
155
+ if (((_a = elt.props) == null ? void 0 : _a.children) && elt.props.children !== elt.children) {
156
+ rec(elt.props.children);
157
+ }
158
+ }
159
+ });
160
+ };
161
+ rec(children);
162
+ }
163
+
164
+ var __defProp$6 = Object.defineProperty;
165
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
166
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
167
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
168
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
169
+ var __spreadValues$6 = (a, b) => {
170
+ for (var prop in b || (b = {}))
171
+ if (__hasOwnProp$6.call(b, prop))
172
+ __defNormalProp$6(a, prop, b[prop]);
173
+ if (__getOwnPropSymbols$6)
174
+ for (var prop of __getOwnPropSymbols$6(b)) {
175
+ if (__propIsEnum$6.call(b, prop))
176
+ __defNormalProp$6(a, prop, b[prop]);
177
+ }
178
+ return a;
179
+ };
180
+ const Checkbox = Checkbox$1;
181
+ const CheckboxGroup = Checkbox.Group;
182
+ class CheckboxWrapper extends React.Component {
183
+ render() {
184
+ return /* @__PURE__ */ React.createElement(Checkbox, __spreadValues$6({}, this.props));
185
+ }
186
+ }
187
+ const checkboxHelpers = {
188
+ states: {
189
+ value: {
190
+ onChangeArgsToValue: (e) => e.target.checked
191
+ }
192
+ }
193
+ };
194
+ const checkboxMeta = {
195
+ name: "AntdCheckbox",
196
+ displayName: "Antd Checkbox",
197
+ props: {
198
+ autoFocus: {
199
+ type: "boolean",
200
+ description: "If get focus when component mounted",
201
+ defaultValueHint: false
202
+ },
203
+ checked: {
204
+ type: "boolean",
205
+ description: "Specifies the initial state: whether or not the checkbox is selected",
206
+ defaultValueHint: false
207
+ },
208
+ disabled: {
209
+ type: "boolean",
210
+ description: "If disable checkbox",
211
+ defaultValueHint: false
212
+ },
213
+ indeterminate: {
214
+ type: "boolean",
215
+ description: "The indeterminate checked state of checkbox",
216
+ defaultValueHint: false
217
+ },
218
+ value: {
219
+ type: "string",
220
+ description: "The checkbox value"
221
+ },
222
+ children: {
223
+ type: "slot",
224
+ defaultValue: [
225
+ {
226
+ type: "text",
227
+ value: "Checkbox"
228
+ }
229
+ ]
230
+ },
231
+ onChange: {
232
+ type: "eventHandler",
233
+ argTypes: [
234
+ {
235
+ name: "event",
236
+ type: "object"
237
+ }
238
+ ]
239
+ }
240
+ },
241
+ states: {
242
+ value: {
243
+ type: "writable",
244
+ variableType: "boolean",
245
+ onChangeProp: "onChange",
246
+ valueProp: "checked"
247
+ }
248
+ },
249
+ componentHelpers: {
250
+ helpers: checkboxHelpers,
251
+ importName: "checkboxHelpers",
252
+ importPath: "@daouypkgs/antd/skinny/registerCheckbox"
253
+ },
254
+ importPath: "@daouypkgs/antd/skinny/registerCheckbox",
255
+ importName: "Checkbox",
256
+ defaultStyles: {
257
+ marginLeft: 0
258
+ }
259
+ };
260
+ function registerCheckbox(loader, customCheckboxMeta) {
261
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
262
+ doRegisterComponent(CheckboxWrapper, customCheckboxMeta != null ? customCheckboxMeta : checkboxMeta);
263
+ }
264
+ function getGroupOptions(componentProps) {
265
+ const options = /* @__PURE__ */ new Set();
266
+ traverseReactEltTree(componentProps.children, (elt) => {
267
+ var _a;
268
+ if ((elt == null ? void 0 : elt.type) === CheckboxWrapper && typeof ((_a = elt == null ? void 0 : elt.props) == null ? void 0 : _a.value) === "string") {
269
+ options.add(elt.props.value);
270
+ }
271
+ });
272
+ return Array.from(options.keys());
273
+ }
274
+ const checkboxGroupMeta = {
275
+ name: "AntdCheckboxGroup",
276
+ displayName: "Antd Checkbox Group",
277
+ props: {
278
+ disabled: {
279
+ type: "boolean",
280
+ description: "If disable all checkboxes",
281
+ defaultValueHint: false
282
+ },
283
+ value: {
284
+ type: "choice",
285
+ editOnly: true,
286
+ description: "Default selected value",
287
+ multiSelect: true,
288
+ options: getGroupOptions
289
+ },
290
+ onChange: {
291
+ type: "eventHandler",
292
+ argTypes: [
293
+ {
294
+ name: "value",
295
+ type: {
296
+ type: "choice",
297
+ multiSelect: true,
298
+ options: getGroupOptions
299
+ }
300
+ }
301
+ ]
302
+ },
303
+ children: {
304
+ type: "slot",
305
+ allowedComponents: ["AntdCheckbox"],
306
+ defaultValue: [
307
+ {
308
+ type: "component",
309
+ name: "AntdCheckbox"
310
+ }
311
+ ]
312
+ }
313
+ },
314
+ states: {
315
+ value: {
316
+ type: "writable",
317
+ variableType: "array",
318
+ valueProp: "value",
319
+ onChangeProp: "onChange"
320
+ }
321
+ },
322
+ importPath: "@daouypkgs/antd/skinny/registerCheckbox",
323
+ importName: "CheckboxGroup",
324
+ parentComponentName: "AntdCheckbox"
325
+ };
326
+ function registerCheckboxGroup(loader, customCheckboxGroupMeta) {
327
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
328
+ doRegisterComponent(
329
+ CheckboxGroup,
330
+ customCheckboxGroupMeta != null ? customCheckboxGroupMeta : checkboxGroupMeta
331
+ );
332
+ }
333
+
334
+ var __defProp$5 = Object.defineProperty;
335
+ var __defProps$3 = Object.defineProperties;
336
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
337
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
338
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
339
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
340
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
341
+ var __spreadValues$5 = (a, b) => {
342
+ for (var prop in b || (b = {}))
343
+ if (__hasOwnProp$5.call(b, prop))
344
+ __defNormalProp$5(a, prop, b[prop]);
345
+ if (__getOwnPropSymbols$5)
346
+ for (var prop of __getOwnPropSymbols$5(b)) {
347
+ if (__propIsEnum$5.call(b, prop))
348
+ __defNormalProp$5(a, prop, b[prop]);
349
+ }
350
+ return a;
351
+ };
352
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
353
+ var __objRest$3 = (source, exclude) => {
354
+ var target = {};
355
+ for (var prop in source)
356
+ if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
357
+ target[prop] = source[prop];
358
+ if (source != null && __getOwnPropSymbols$5)
359
+ for (var prop of __getOwnPropSymbols$5(source)) {
360
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop))
361
+ target[prop] = source[prop];
362
+ }
363
+ return target;
364
+ };
365
+ const CollapsePanel = Collapse$1.Panel;
366
+ const collapstePanelMeta = {
367
+ name: "AntdCollapsePanel",
368
+ displayName: "Antd Collapse Panel",
369
+ props: {
370
+ collapsible: {
371
+ type: "choice",
372
+ options: ["header", "disabled"],
373
+ description: "Specify whether the panel be collapsible or the trigger area of collapsible"
374
+ },
375
+ forceRender: {
376
+ type: "boolean",
377
+ description: "Forced render of content on panel, instead of lazy rending after clicking on header",
378
+ defaultValueHint: false
379
+ },
380
+ header: {
381
+ type: "slot",
382
+ defaultValue: [
383
+ {
384
+ type: "text",
385
+ value: "Header"
386
+ }
387
+ ]
388
+ },
389
+ key: {
390
+ type: "string",
391
+ description: "Unique key identifying the panel from among its siblings"
392
+ },
393
+ showArrow: {
394
+ type: "boolean",
395
+ description: "If false, panel will not show arrow icon",
396
+ defaultValueHint: true
397
+ },
398
+ extra: {
399
+ type: "slot",
400
+ hidePlaceholder: true
401
+ },
402
+ children: {
403
+ type: "slot",
404
+ defaultValue: [
405
+ {
406
+ type: "text",
407
+ value: "Insert text here"
408
+ }
409
+ ]
410
+ }
411
+ },
412
+ importPath: "@daouypkgs/antd/skinny/registerCollapse",
413
+ importName: "CollapsePanel",
414
+ parentComponentName: "AntdCollapse"
415
+ };
416
+ function registerCollapsePanel(loader, customCollapsePanelMeta) {
417
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
418
+ doRegisterComponent(
419
+ CollapsePanel,
420
+ customCollapsePanelMeta != null ? customCollapsePanelMeta : collapstePanelMeta
421
+ );
422
+ }
423
+ function getOptions(componentProps) {
424
+ const options = /* @__PURE__ */ new Set();
425
+ traverseReactEltTree(componentProps.children, (elt) => {
426
+ if ((elt == null ? void 0 : elt.type) === CollapsePanel && typeof (elt == null ? void 0 : elt.key) === "string") {
427
+ options.add(elt.key);
428
+ }
429
+ });
430
+ return Array.from(options.keys());
431
+ }
432
+ const collapsteMeta = {
433
+ name: "AntdCollapse",
434
+ displayName: "Antd Collapse",
435
+ props: {
436
+ accordion: {
437
+ type: "boolean",
438
+ description: "If true, Collapse renders as Accordion",
439
+ defaultValueHint: false
440
+ },
441
+ activeKey: {
442
+ type: "choice",
443
+ editOnly: true,
444
+ description: "Key of the active panel",
445
+ multiSelect: true,
446
+ options: getOptions
447
+ },
448
+ onChange: {
449
+ type: "eventHandler",
450
+ argTypes: [
451
+ {
452
+ name: "value",
453
+ type: {
454
+ type: "choice",
455
+ multiSelect: true,
456
+ options: getOptions
457
+ }
458
+ }
459
+ ]
460
+ },
461
+ bordered: {
462
+ type: "boolean",
463
+ description: "Toggles rendering of the border around the collapse block",
464
+ defaultValueHint: true
465
+ },
466
+ collapsible: {
467
+ type: "choice",
468
+ options: ["header", "disabled"],
469
+ description: "Specify whether the panels of children be collapsible or the trigger area of collapsible"
470
+ },
471
+ expandIconPosition: {
472
+ type: "choice",
473
+ options: ["left", "right"],
474
+ description: "Set expand icon position",
475
+ defaultValueHint: "left"
476
+ },
477
+ ghost: {
478
+ type: "boolean",
479
+ description: "Make the collapse borderless and its background transparent",
480
+ defaultValueHint: false
481
+ },
482
+ children: {
483
+ type: "slot",
484
+ allowedComponents: ["AntdCollapsePanel"],
485
+ defaultValue: [
486
+ {
487
+ type: "component",
488
+ name: "AntdCollapsePanel",
489
+ props: {
490
+ key: "1"
491
+ }
492
+ }
493
+ ]
494
+ },
495
+ openIcon: {
496
+ type: "slot",
497
+ hidePlaceholder: true
498
+ },
499
+ closeIcon: {
500
+ type: "slot",
501
+ hidePlaceholder: true
502
+ }
503
+ },
504
+ states: {
505
+ activeKey: {
506
+ type: "writable",
507
+ variableType: "array",
508
+ valueProp: "activeKey",
509
+ onChangeProp: "onChange"
510
+ }
511
+ },
512
+ importPath: "@daouypkgs/antd/skinny/registerCollapse",
513
+ importName: "Collapse"
514
+ };
515
+ function Collapse(props) {
516
+ const _a = props, { openIcon, closeIcon } = _a, rest = __objRest$3(_a, ["openIcon", "closeIcon"]);
517
+ return /* @__PURE__ */ React.createElement(
518
+ Collapse$1,
519
+ __spreadProps$3(__spreadValues$5({}, rest), {
520
+ expandIcon: openIcon || closeIcon ? ({ isActive }) => isActive ? openIcon : closeIcon : void 0
521
+ })
522
+ );
523
+ }
524
+ function registerCollapse(loader, customCollapseMeta) {
525
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
526
+ doRegisterComponent(Collapse, customCollapseMeta != null ? customCollapseMeta : collapsteMeta);
527
+ }
528
+
529
+ var __defProp$4 = Object.defineProperty;
530
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
531
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
532
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
533
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
534
+ var __spreadValues$4 = (a, b) => {
535
+ for (var prop in b || (b = {}))
536
+ if (__hasOwnProp$4.call(b, prop))
537
+ __defNormalProp$4(a, prop, b[prop]);
538
+ if (__getOwnPropSymbols$4)
539
+ for (var prop of __getOwnPropSymbols$4(b)) {
540
+ if (__propIsEnum$4.call(b, prop))
541
+ __defNormalProp$4(a, prop, b[prop]);
542
+ }
543
+ return a;
544
+ };
545
+ const DropdownButton = Dropdown$1.Button;
546
+ class Dropdown extends React.Component {
547
+ render() {
548
+ const thisProps = this.props;
549
+ const finalProps = __spreadValues$4({}, thisProps);
550
+ finalProps.children = typeof thisProps.children === "string" ? /* @__PURE__ */ React.createElement("div", null, thisProps.children) : thisProps.children;
551
+ return /* @__PURE__ */ React.createElement(Dropdown$1, __spreadValues$4({}, finalProps));
552
+ }
553
+ }
554
+ const dropdownMeta = {
555
+ name: "AntdDropdown",
556
+ displayName: "Antd Dropdown",
557
+ props: {
558
+ arrow: {
559
+ type: "boolean",
560
+ description: "Whether the dropdown arrow should be visible",
561
+ defaultValueHint: false
562
+ },
563
+ disabled: {
564
+ type: "boolean",
565
+ description: "Whether the dropdown menu is disabled",
566
+ defaultValueHint: false
567
+ },
568
+ overlay: {
569
+ type: "slot",
570
+ allowedComponents: ["AntdMenu"],
571
+ defaultValue: [
572
+ {
573
+ type: "component",
574
+ name: "AntdMenu"
575
+ }
576
+ ]
577
+ },
578
+ placement: {
579
+ type: "choice",
580
+ options: [
581
+ "bottomLeft",
582
+ "bottomCenter",
583
+ "bottomRight",
584
+ "topLeft",
585
+ "topCenter",
586
+ "topRight"
587
+ ],
588
+ description: "Placement of popup menu",
589
+ defaultValueHint: "bottomLeft"
590
+ },
591
+ trigger: {
592
+ type: "choice",
593
+ options: ["click", "hover", "contextMenu"],
594
+ description: "The trigger mode which executes the dropdown action",
595
+ defaultValueHint: "hover"
596
+ },
597
+ visible: {
598
+ type: "boolean",
599
+ description: "Toggle visibility of dropdown menu in Daouy Editor",
600
+ editOnly: true,
601
+ defaultValueHint: false
602
+ },
603
+ children: {
604
+ type: "slot",
605
+ defaultValue: [
606
+ {
607
+ type: "text",
608
+ value: "Dropdown"
609
+ }
610
+ ]
611
+ }
612
+ },
613
+ importPath: "@daouypkgs/antd/skinny/registerDropdown",
614
+ importName: "Dropdown"
615
+ };
616
+ function registerDropdown(loader, customDropdownMeta) {
617
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
618
+ doRegisterComponent(Dropdown, customDropdownMeta != null ? customDropdownMeta : dropdownMeta);
619
+ }
620
+ const dropdownButtonMeta = {
621
+ name: "AntdDropdownButton",
622
+ displayName: "Antd Dropdown Button",
623
+ props: {
624
+ disabled: {
625
+ type: "boolean",
626
+ description: "Whether the dropdown menu is disabled",
627
+ defaultValueHint: false
628
+ },
629
+ icon: {
630
+ type: "slot",
631
+ hidePlaceholder: true
632
+ },
633
+ overlay: {
634
+ type: "slot",
635
+ allowedComponents: ["AntdMenu"],
636
+ defaultValue: [
637
+ {
638
+ type: "component",
639
+ name: "AntdMenu"
640
+ }
641
+ ]
642
+ },
643
+ placement: {
644
+ type: "choice",
645
+ options: [
646
+ "bottomLeft",
647
+ "bottomCenter",
648
+ "bottomRight",
649
+ "topLeft",
650
+ "topCenter",
651
+ "topRight"
652
+ ],
653
+ description: "Placement of popup menu",
654
+ defaultValueHint: "bottomLeft"
655
+ },
656
+ size: {
657
+ type: "choice",
658
+ options: ["small", "medium", "large"],
659
+ description: "Set the size of button",
660
+ defaultValueHint: "medium"
661
+ },
662
+ trigger: {
663
+ type: "choice",
664
+ options: ["click", "hover", "contextMenu"],
665
+ description: "The trigger mode which executes the dropdown action",
666
+ defaultValueHint: "hover"
667
+ },
668
+ type: {
669
+ type: "choice",
670
+ options: ["default", "primary", "ghost", "dashed", "link", "text"],
671
+ description: "Can be set to primary, ghost, dashed, link, text, default",
672
+ defaultValueHint: "default"
673
+ },
674
+ visible: {
675
+ type: "boolean",
676
+ description: "Toggle visibility of dropdown menu in Daouy Editor",
677
+ editOnly: true,
678
+ defaultValueHint: false
679
+ },
680
+ children: {
681
+ type: "slot",
682
+ defaultValue: [
683
+ {
684
+ type: "text",
685
+ value: "Dropdown"
686
+ }
687
+ ]
688
+ }
689
+ },
690
+ importPath: "@daouypkgs/antd/skinny/registerDropdown",
691
+ importName: "DropdownButton",
692
+ parentComponentName: "AntdDropdown"
693
+ };
694
+ function registerDropdownButton(loader, customDropdownButtonMeta) {
695
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
696
+ doRegisterComponent(
697
+ DropdownButton,
698
+ customDropdownButtonMeta != null ? customDropdownButtonMeta : dropdownButtonMeta
699
+ );
700
+ }
701
+
702
+ var __defProp$3 = Object.defineProperty;
703
+ var __defProps$2 = Object.defineProperties;
704
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
705
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
706
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
707
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
708
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
709
+ var __spreadValues$3 = (a, b) => {
710
+ for (var prop in b || (b = {}))
711
+ if (__hasOwnProp$3.call(b, prop))
712
+ __defNormalProp$3(a, prop, b[prop]);
713
+ if (__getOwnPropSymbols$3)
714
+ for (var prop of __getOwnPropSymbols$3(b)) {
715
+ if (__propIsEnum$3.call(b, prop))
716
+ __defNormalProp$3(a, prop, b[prop]);
717
+ }
718
+ return a;
719
+ };
720
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
721
+ const Input = Input$1;
722
+ const InputGroup = Input.Group;
723
+ const Password = Input.Password;
724
+ const Search = Input.Search;
725
+ const TextArea = Input.TextArea;
726
+ function sortObjectKeys(obj) {
727
+ return Object.fromEntries(Object.entries(obj).sort());
728
+ }
729
+ function sortProps(props) {
730
+ return sortObjectKeys(props);
731
+ }
732
+ const commonHtmlAttributes = {
733
+ "aria-label": {
734
+ type: "string",
735
+ description: "The ARIA label for this input"
736
+ },
737
+ "aria-labelledby": {
738
+ type: "string",
739
+ description: "Identifies the element(s) that labels this input"
740
+ },
741
+ name: {
742
+ type: "string",
743
+ description: "The HTML name of the input"
744
+ }
745
+ };
746
+ const inputHelpers = {
747
+ states: {
748
+ value: {
749
+ onChangeArgsToValue: (e) => e.target.value
750
+ }
751
+ }
752
+ };
753
+ const inputMeta = {
754
+ name: "AntdInput",
755
+ displayName: "Antd Input",
756
+ props: sortProps(__spreadProps$2(__spreadValues$3({}, commonHtmlAttributes), {
757
+ addonAfter: {
758
+ type: "slot",
759
+ hidePlaceholder: true
760
+ },
761
+ addonBefore: {
762
+ type: "slot",
763
+ hidePlaceholder: true
764
+ },
765
+ allowClear: {
766
+ type: "boolean",
767
+ description: "If allow to remove input content with clear icon",
768
+ defaultValueHint: false
769
+ },
770
+ bordered: {
771
+ type: "boolean",
772
+ description: "Whether has border style",
773
+ defaultValueHint: true
774
+ },
775
+ disabled: {
776
+ type: "boolean",
777
+ description: "Whether the input is disabled",
778
+ defaultValueHint: false
779
+ },
780
+ id: {
781
+ type: "string",
782
+ description: "The ID for input"
783
+ },
784
+ maxLength: {
785
+ type: "number",
786
+ description: "The max length"
787
+ },
788
+ placeholder: {
789
+ type: "string",
790
+ description: "Placeholder for the input"
791
+ },
792
+ prefix: {
793
+ type: "slot",
794
+ hidePlaceholder: true
795
+ },
796
+ size: {
797
+ type: "choice",
798
+ options: ["small", "middle", "large"],
799
+ description: "The size of the input box",
800
+ defaultValueHint: "middle,"
801
+ },
802
+ suffix: {
803
+ type: "slot",
804
+ hidePlaceholder: true
805
+ },
806
+ type: {
807
+ type: "string",
808
+ description: "The type of input",
809
+ defaultValueHint: "text"
810
+ },
811
+ value: {
812
+ type: "string"
813
+ },
814
+ onChange: {
815
+ type: "eventHandler",
816
+ argTypes: [
817
+ {
818
+ name: "event",
819
+ type: "object"
820
+ }
821
+ ]
822
+ }
823
+ })),
824
+ states: {
825
+ value: {
826
+ type: "writable",
827
+ variableType: "text",
828
+ onChangeProp: "onChange",
829
+ valueProp: "value"
830
+ }
831
+ },
832
+ componentHelpers: {
833
+ helpers: inputHelpers,
834
+ importName: "inputHelpers",
835
+ importPath: "@daouypkgs/antd/skinny/registerInput"
836
+ },
837
+ importPath: "@daouypkgs/antd/skinny/registerInput",
838
+ importName: "Input"
839
+ };
840
+ function registerInput(loader, customInputMeta) {
841
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
842
+ doRegisterComponent(Input, customInputMeta != null ? customInputMeta : inputMeta);
843
+ }
844
+ const inputTextAreaMeta = {
845
+ name: "AntdInputTextArea",
846
+ displayName: "Antd Input Text Area",
847
+ props: sortProps(__spreadProps$2(__spreadValues$3({}, commonHtmlAttributes), {
848
+ allowClear: {
849
+ type: "boolean",
850
+ description: "If allow to remove input content with clear icon",
851
+ defaultValueHint: false
852
+ },
853
+ autoSize: {
854
+ type: "object",
855
+ description: "Height autosize feature, can be set to true | false or an object { minRows: 2, maxRows: 6 }"
856
+ },
857
+ disabled: {
858
+ type: "boolean",
859
+ description: "Whether the input is disabled",
860
+ defaultValueHint: false
861
+ },
862
+ bordered: {
863
+ type: "boolean",
864
+ description: "Whether has border style",
865
+ defaultValueHint: true
866
+ },
867
+ showCount: {
868
+ type: "boolean",
869
+ description: "Whether show text count",
870
+ defaultValueHint: false
871
+ },
872
+ id: {
873
+ type: "string",
874
+ description: "The ID for input"
875
+ },
876
+ maxLength: {
877
+ type: "number",
878
+ description: "The max length"
879
+ },
880
+ placeholder: {
881
+ type: "string",
882
+ description: "Placeholder for the input"
883
+ },
884
+ value: {
885
+ type: "string"
886
+ },
887
+ onChange: {
888
+ type: "eventHandler",
889
+ argTypes: [
890
+ {
891
+ name: "event",
892
+ type: "object"
893
+ }
894
+ ]
895
+ }
896
+ })),
897
+ states: {
898
+ value: {
899
+ type: "writable",
900
+ variableType: "text",
901
+ onChangeProp: "onChange",
902
+ valueProp: "value"
903
+ }
904
+ },
905
+ componentHelpers: {
906
+ helpers: inputHelpers,
907
+ importName: "inputHelpers",
908
+ importPath: "@daouypkgs/antd/skinny/registerInput"
909
+ },
910
+ importPath: "@daouypkgs/antd/skinny/registerInput",
911
+ importName: "TextArea",
912
+ parentComponentName: "AntdInput"
913
+ };
914
+ function registerInputTextArea(loader, customInputTextAreaMeta) {
915
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
916
+ doRegisterComponent(TextArea, customInputTextAreaMeta != null ? customInputTextAreaMeta : inputTextAreaMeta);
917
+ }
918
+ const inputSearchMeta = {
919
+ name: "AntdInputSearch",
920
+ displayName: "Antd Input Search",
921
+ props: sortProps(__spreadProps$2(__spreadValues$3({}, commonHtmlAttributes), {
922
+ addonBefore: {
923
+ type: "slot",
924
+ hidePlaceholder: true
925
+ },
926
+ allowClear: {
927
+ type: "boolean",
928
+ description: "If allow to remove input content with clear icon",
929
+ defaultValueHint: false
930
+ },
931
+ bordered: {
932
+ type: "boolean",
933
+ description: "Whether has border style",
934
+ defaultValueHint: true
935
+ },
936
+ disabled: {
937
+ type: "boolean",
938
+ description: "Whether the input is disabled",
939
+ defaultValueHint: false
940
+ },
941
+ enterButton: {
942
+ type: "slot",
943
+ hidePlaceholder: true
944
+ },
945
+ id: {
946
+ type: "string",
947
+ description: "The ID for input"
948
+ },
949
+ loading: {
950
+ type: "boolean",
951
+ description: "Search box with loading",
952
+ defaultValueHint: false
953
+ },
954
+ maxLength: {
955
+ type: "number",
956
+ description: "The max length"
957
+ },
958
+ placeholder: {
959
+ type: "string",
960
+ description: "Placeholder for the input"
961
+ },
962
+ prefix: {
963
+ type: "slot",
964
+ hidePlaceholder: true
965
+ },
966
+ size: {
967
+ type: "choice",
968
+ options: ["small", "middle", "large"],
969
+ description: "The size of the input box",
970
+ defaultValueHint: "middle"
971
+ },
972
+ suffix: {
973
+ type: "slot",
974
+ hidePlaceholder: true
975
+ },
976
+ type: {
977
+ type: "string",
978
+ description: "The type of input"
979
+ },
980
+ value: {
981
+ type: "string"
982
+ },
983
+ onChange: {
984
+ type: "eventHandler",
985
+ argTypes: [
986
+ {
987
+ name: "event",
988
+ type: "object"
989
+ }
990
+ ]
991
+ }
992
+ })),
993
+ states: {
994
+ value: {
995
+ type: "writable",
996
+ variableType: "text",
997
+ onChangeProp: "onChange",
998
+ valueProp: "value"
999
+ }
1000
+ },
1001
+ componentHelpers: {
1002
+ helpers: inputHelpers,
1003
+ importName: "inputHelpers",
1004
+ importPath: "@daouypkgs/antd/skinny/registerInput"
1005
+ },
1006
+ importPath: "@daouypkgs/antd/skinny/registerInput",
1007
+ importName: "Search",
1008
+ parentComponentName: "AntdInput"
1009
+ };
1010
+ function registerInputSearch(loader, customInputSearchMeta) {
1011
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
1012
+ doRegisterComponent(Search, customInputSearchMeta != null ? customInputSearchMeta : inputSearchMeta);
1013
+ }
1014
+ const inputPasswordMeta = {
1015
+ name: "AntdInputPassword",
1016
+ displayName: "Antd Input Password",
1017
+ props: sortProps(__spreadProps$2(__spreadValues$3({}, commonHtmlAttributes), {
1018
+ addonAfter: {
1019
+ type: "slot",
1020
+ hidePlaceholder: true
1021
+ },
1022
+ addonBefore: {
1023
+ type: "slot",
1024
+ hidePlaceholder: true
1025
+ },
1026
+ allowClear: {
1027
+ type: "boolean",
1028
+ description: "If allow to remove input content with clear icon",
1029
+ defaultValueHint: false
1030
+ },
1031
+ bordered: {
1032
+ type: "boolean",
1033
+ description: "Whether has border style",
1034
+ defaultValueHint: true
1035
+ },
1036
+ disabled: {
1037
+ type: "boolean",
1038
+ description: "Whether the input is disabled",
1039
+ defaultValueHint: false
1040
+ },
1041
+ id: {
1042
+ type: "string",
1043
+ description: "The ID for input"
1044
+ },
1045
+ maxLength: {
1046
+ type: "number",
1047
+ description: "The max length"
1048
+ },
1049
+ placeholder: {
1050
+ type: "string",
1051
+ description: "Placeholder for the input"
1052
+ },
1053
+ prefix: {
1054
+ type: "slot",
1055
+ hidePlaceholder: true
1056
+ },
1057
+ size: {
1058
+ type: "choice",
1059
+ options: ["small", "middle", "large"],
1060
+ description: "The size of the input box",
1061
+ defaultValueHint: "middle"
1062
+ },
1063
+ type: {
1064
+ type: "string",
1065
+ description: "The type of input"
1066
+ },
1067
+ value: {
1068
+ type: "string"
1069
+ },
1070
+ visibilityToggle: {
1071
+ type: "boolean",
1072
+ description: "Whether show toggle button",
1073
+ defaultValueHint: true
1074
+ },
1075
+ onChange: {
1076
+ type: "eventHandler",
1077
+ argTypes: [
1078
+ {
1079
+ name: "event",
1080
+ type: "object"
1081
+ }
1082
+ ]
1083
+ }
1084
+ })),
1085
+ states: {
1086
+ value: {
1087
+ type: "writable",
1088
+ variableType: "text",
1089
+ onChangeProp: "onChange",
1090
+ valueProp: "value"
1091
+ }
1092
+ },
1093
+ componentHelpers: {
1094
+ helpers: inputHelpers,
1095
+ importName: "inputHelpers",
1096
+ importPath: "@daouypkgs/antd/skinny/registerInput"
1097
+ },
1098
+ importPath: "@daouypkgs/antd/skinny/registerInput",
1099
+ importName: "Password",
1100
+ parentComponentName: "AntdInput"
1101
+ };
1102
+ function registerInputPassword(loader, customInputPasswordMeta) {
1103
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
1104
+ doRegisterComponent(Password, customInputPasswordMeta != null ? customInputPasswordMeta : inputPasswordMeta);
1105
+ }
1106
+ const inputGroupMeta = {
1107
+ name: "AntdInputGroup",
1108
+ displayName: "Antd Input Group",
1109
+ props: {
1110
+ compact: {
1111
+ type: "boolean",
1112
+ description: "Whether use compact style",
1113
+ defaultValueHint: false
1114
+ },
1115
+ size: {
1116
+ type: "choice",
1117
+ options: ["small", "default", "large"],
1118
+ description: "The size of Input.Group specifies the size of the included Input fields",
1119
+ defaultValueHint: "default"
1120
+ },
1121
+ children: {
1122
+ type: "slot",
1123
+ defaultValue: [
1124
+ {
1125
+ type: "component",
1126
+ name: "AntdInput"
1127
+ },
1128
+ {
1129
+ type: "component",
1130
+ name: "AntdInput"
1131
+ }
1132
+ ]
1133
+ }
1134
+ },
1135
+ importPath: "@daouypkgs/antd/skinny/registerInput",
1136
+ importName: "InputGroup",
1137
+ parentComponentName: "AntdInput"
1138
+ };
1139
+ function registerInputGroup(loader, customInputGroupMeta) {
1140
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
1141
+ doRegisterComponent(InputGroup, customInputGroupMeta != null ? customInputGroupMeta : inputGroupMeta);
1142
+ }
1143
+
1144
+ const Menu = Menu$1;
1145
+ const MenuDivider = Menu.Divider;
1146
+ const MenuItemGroup = Menu.ItemGroup;
1147
+ const MenuItem = Menu.Item;
1148
+ const SubMenu = Menu.SubMenu;
1149
+ const menuDividerMeta = {
1150
+ name: "AntdMenuDivider",
1151
+ displayName: "Antd Menu Divider",
1152
+ props: {
1153
+ dashed: {
1154
+ type: "boolean",
1155
+ description: "Whether line is dashed",
1156
+ defaultValueHint: false
1157
+ }
1158
+ },
1159
+ importPath: "@daouypkgs/antd/skinny/registerMenu",
1160
+ importName: "MenuDivider",
1161
+ parentComponentName: "AntdMenu"
1162
+ };
1163
+ function registerMenuDivider(loader, customMenuDividerMeta) {
1164
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
1165
+ doRegisterComponent(MenuDivider, customMenuDividerMeta != null ? customMenuDividerMeta : menuDividerMeta);
1166
+ }
1167
+ const menuItemMeta = {
1168
+ name: "AntdMenuItem",
1169
+ displayName: "Antd Menu Item",
1170
+ props: {
1171
+ danger: {
1172
+ type: "boolean",
1173
+ description: "Display the danger style",
1174
+ defaultValueHint: false
1175
+ },
1176
+ disabled: {
1177
+ type: "boolean",
1178
+ description: "Whether disabled select",
1179
+ defaultValueHint: false
1180
+ },
1181
+ key: {
1182
+ type: "string",
1183
+ description: "Unique ID of the menu item",
1184
+ defaultValue: "menuItemKey"
1185
+ },
1186
+ title: {
1187
+ type: "string",
1188
+ description: "Set display title for collapsed item"
1189
+ },
1190
+ children: {
1191
+ type: "slot",
1192
+ defaultValue: [
1193
+ {
1194
+ type: "text",
1195
+ value: "Option"
1196
+ }
1197
+ ]
1198
+ }
1199
+ },
1200
+ importPath: "@daouypkgs/antd/skinny/registerMenu",
1201
+ importName: "MenuItem",
1202
+ parentComponentName: "AntdMenu"
1203
+ };
1204
+ function registerMenuItem(loader, customMenuItemMeta) {
1205
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
1206
+ doRegisterComponent(MenuItem, customMenuItemMeta != null ? customMenuItemMeta : menuItemMeta);
1207
+ }
1208
+ const menuItemGroupMeta = {
1209
+ name: "AntdMenuItemGroup",
1210
+ displayName: "Antd Menu Item Group",
1211
+ props: {
1212
+ title: {
1213
+ type: "slot",
1214
+ defaultValue: [
1215
+ {
1216
+ type: "text",
1217
+ value: "Group"
1218
+ }
1219
+ ]
1220
+ },
1221
+ children: {
1222
+ type: "slot",
1223
+ allowedComponents: [
1224
+ "AntdMenuItem",
1225
+ "AntdMenuDivider",
1226
+ "AntdMenuItemGroup"
1227
+ ],
1228
+ defaultValue: [
1229
+ {
1230
+ type: "component",
1231
+ name: "AntdMenuItem"
1232
+ }
1233
+ ]
1234
+ }
1235
+ },
1236
+ importPath: "@daouypkgs/antd/skinny/registerMenu",
1237
+ importName: "MenuItemGroup",
1238
+ parentComponentName: "AntdMenu"
1239
+ };
1240
+ function registerMenuItemGroup(loader, customMenuItemGroupMeta) {
1241
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
1242
+ doRegisterComponent(
1243
+ MenuItemGroup,
1244
+ customMenuItemGroupMeta != null ? customMenuItemGroupMeta : menuItemGroupMeta
1245
+ );
1246
+ }
1247
+ const subMenuMeta = {
1248
+ name: "AntdSubMenu",
1249
+ displayName: "Antd SubMenu",
1250
+ props: {
1251
+ disabled: {
1252
+ type: "boolean",
1253
+ description: "Whether sub-menu is disabled",
1254
+ defaultValueHint: false
1255
+ },
1256
+ key: {
1257
+ type: "string",
1258
+ description: "Unique ID of the sub-menu",
1259
+ defaultValue: "subMenuKey"
1260
+ },
1261
+ title: {
1262
+ type: "slot",
1263
+ defaultValue: [
1264
+ {
1265
+ type: "text",
1266
+ value: "Sub-menu"
1267
+ }
1268
+ ]
1269
+ },
1270
+ children: {
1271
+ type: "slot",
1272
+ allowedComponents: [
1273
+ "AntdMenuItem",
1274
+ "AntdMenuDivider",
1275
+ "AntdMenuItemGroup",
1276
+ "AntdSubMenu"
1277
+ ],
1278
+ defaultValue: [1, 2].map((i) => ({
1279
+ type: "component",
1280
+ name: "AntdMenuItem",
1281
+ props: {
1282
+ key: `subMenuItemKey${i}`,
1283
+ children: [
1284
+ {
1285
+ type: "text",
1286
+ value: `Sub-menu item ${i}`
1287
+ }
1288
+ ]
1289
+ }
1290
+ }))
1291
+ }
1292
+ },
1293
+ importPath: "@daouypkgs/antd/skinny/registerMenu",
1294
+ importName: "SubMenu",
1295
+ parentComponentName: "AntdMenu"
1296
+ };
1297
+ function registerSubMenu(loader, customSubMenuMeta) {
1298
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
1299
+ doRegisterComponent(SubMenu, customSubMenuMeta != null ? customSubMenuMeta : subMenuMeta);
1300
+ }
1301
+ function getOpenKeysOptions(componentProps) {
1302
+ const options = /* @__PURE__ */ new Set();
1303
+ traverseReactEltTree(componentProps.children, (elt) => {
1304
+ if ((elt == null ? void 0 : elt.type) === SubMenu && typeof (elt == null ? void 0 : elt.key) === "string") {
1305
+ options.add(elt.key);
1306
+ }
1307
+ });
1308
+ return Array.from(options.keys());
1309
+ }
1310
+ const menuMeta = {
1311
+ name: "AntdMenu",
1312
+ displayName: "Antd Menu",
1313
+ props: {
1314
+ expandIcon: {
1315
+ type: "slot",
1316
+ hidePlaceholder: true
1317
+ },
1318
+ forceSubMenuRender: {
1319
+ type: "boolean",
1320
+ description: "Render submenu into DOM before it becomes visible",
1321
+ defaultValueHint: false
1322
+ },
1323
+ inlineIndent: {
1324
+ type: "number",
1325
+ description: "Indent (in pixels) of inline menu items on each level",
1326
+ defaultValueHint: 24
1327
+ },
1328
+ mode: {
1329
+ type: "choice",
1330
+ options: ["horizontal", "vertical", "inline"],
1331
+ description: "Type of menu",
1332
+ defaultValueHint: "vertical"
1333
+ },
1334
+ multiple: {
1335
+ type: "boolean",
1336
+ description: "Allows selection of multiple items",
1337
+ defaultValueHint: false
1338
+ },
1339
+ openKeys: {
1340
+ type: "choice",
1341
+ editOnly: true,
1342
+ description: "Array with the keys of default opened sub menus",
1343
+ multiSelect: true,
1344
+ options: getOpenKeysOptions
1345
+ },
1346
+ onOpenChange: {
1347
+ type: "eventHandler",
1348
+ argTypes: [
1349
+ {
1350
+ name: "openKeys",
1351
+ type: {
1352
+ type: "choice",
1353
+ multiSelect: true,
1354
+ options: getOpenKeysOptions
1355
+ }
1356
+ }
1357
+ ]
1358
+ },
1359
+ overflowedIndicator: {
1360
+ type: "slot",
1361
+ hidePlaceholder: true
1362
+ },
1363
+ selectable: {
1364
+ type: "boolean",
1365
+ description: "Allows selecting menu items",
1366
+ defaultValueHint: true
1367
+ },
1368
+ selectedKeys: {
1369
+ type: "choice",
1370
+ editOnly: true,
1371
+ uncontrolledProp: "defaultSelectedKeys",
1372
+ description: "Array with the keys of default selected menu items",
1373
+ multiSelect: true,
1374
+ options: (componentProps) => {
1375
+ const options = /* @__PURE__ */ new Set();
1376
+ traverseReactEltTree(componentProps.children, (elt) => {
1377
+ if ([SubMenu, MenuItem].includes(elt == null ? void 0 : elt.type) && typeof (elt == null ? void 0 : elt.key) === "string") {
1378
+ options.add(elt.key);
1379
+ }
1380
+ });
1381
+ return Array.from(options.keys());
1382
+ }
1383
+ },
1384
+ subMenuCloseDelay: {
1385
+ type: "number",
1386
+ description: "Delay time to hide submenu when mouse leaves (in seconds)",
1387
+ defaultValueHint: 0.1
1388
+ },
1389
+ subMenuOpenDelay: {
1390
+ type: "number",
1391
+ description: "Delay time to show submenu when mouse enters, (in seconds)",
1392
+ defaultValueHint: 0
1393
+ },
1394
+ theme: {
1395
+ type: "choice",
1396
+ options: ["light", "dark"],
1397
+ description: "Color theme of the menu",
1398
+ defaultValueHint: "light"
1399
+ },
1400
+ triggerSubMenuAction: {
1401
+ type: "choice",
1402
+ options: ["hover", "click"],
1403
+ description: "Which action can trigger submenu open/close",
1404
+ defaultValueHint: "hover"
1405
+ },
1406
+ children: {
1407
+ type: "slot",
1408
+ allowedComponents: ["AntdMenuItem", "AntdMenuDivider", "AntdSubMenu"],
1409
+ defaultValue: [
1410
+ {
1411
+ type: "component",
1412
+ name: "AntdMenuItem"
1413
+ },
1414
+ {
1415
+ type: "component",
1416
+ name: "AntdSubMenu"
1417
+ }
1418
+ ]
1419
+ }
1420
+ },
1421
+ states: {
1422
+ openKeys: {
1423
+ type: "writable",
1424
+ variableType: "array",
1425
+ valueProp: "openKeys",
1426
+ onChangeProp: "onOpenChange"
1427
+ }
1428
+ },
1429
+ importPath: "@daouypkgs/antd/skinny/registerMenu",
1430
+ importName: "Menu"
1431
+ };
1432
+ function registerMenu(loader, customMenuMeta) {
1433
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
1434
+ doRegisterComponent(Menu, customMenuMeta != null ? customMenuMeta : menuMeta);
1435
+ }
1436
+
1437
+ const Option$1 = Select$1.Option;
1438
+ const OptGroup = Select$1.OptGroup;
1439
+ const optionMeta = {
1440
+ name: "AntdOption",
1441
+ displayName: "Antd Option",
1442
+ props: {
1443
+ disabled: {
1444
+ type: "boolean",
1445
+ description: "Disable this option",
1446
+ defaultValueHint: false
1447
+ },
1448
+ title: {
1449
+ type: "string",
1450
+ description: "title of Select after select this Option"
1451
+ },
1452
+ value: {
1453
+ type: "string",
1454
+ description: "Default to filter with this property"
1455
+ },
1456
+ key: {
1457
+ type: "string",
1458
+ description: "Option key"
1459
+ },
1460
+ children: {
1461
+ type: "slot",
1462
+ defaultValue: [
1463
+ {
1464
+ type: "text",
1465
+ value: "Option"
1466
+ }
1467
+ ]
1468
+ }
1469
+ },
1470
+ importPath: "@daouypkgs/antd/skinny/registerOption",
1471
+ importName: "Option",
1472
+ parentComponentName: "AntdSelect"
1473
+ };
1474
+ function registerOption(loader, customOptionMeta) {
1475
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
1476
+ doRegisterComponent(Option$1, customOptionMeta != null ? customOptionMeta : optionMeta);
1477
+ }
1478
+ const optGroupMeta = {
1479
+ name: "AntdOptionGroup",
1480
+ displayName: "Antd Option Group",
1481
+ props: {
1482
+ key: {
1483
+ type: "string",
1484
+ description: "Group key"
1485
+ },
1486
+ label: {
1487
+ type: "string",
1488
+ description: "Group label"
1489
+ },
1490
+ children: {
1491
+ type: "slot",
1492
+ allowedComponents: ["AntdOption"],
1493
+ defaultValue: [
1494
+ {
1495
+ type: "component",
1496
+ name: "AntdOption"
1497
+ }
1498
+ ]
1499
+ }
1500
+ },
1501
+ importPath: "@daouypkgs/antd/skinny/registerOption",
1502
+ importName: "OptGroup",
1503
+ parentComponentName: "AntdSelect"
1504
+ };
1505
+ function registerOptGroup(loader, customOptGroupMeta) {
1506
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
1507
+ doRegisterComponent(OptGroup, customOptGroupMeta != null ? customOptGroupMeta : optGroupMeta);
1508
+ }
1509
+
1510
+ const Rate = Rate$1;
1511
+ const rateMeta = {
1512
+ name: "AntdRate",
1513
+ displayName: "Antd Rate",
1514
+ props: {
1515
+ allowClear: {
1516
+ type: "boolean",
1517
+ description: "Whether to allow clear when clicking again",
1518
+ defaultValueHint: true
1519
+ },
1520
+ allowHalf: {
1521
+ type: "boolean",
1522
+ description: "Whether to allow semi selection",
1523
+ defaultValueHint: false
1524
+ },
1525
+ autoFocus: {
1526
+ type: "boolean",
1527
+ description: "If componet is focused when mounted",
1528
+ defaultValueHint: false
1529
+ },
1530
+ count: {
1531
+ type: "number",
1532
+ description: "Star count"
1533
+ },
1534
+ disabled: {
1535
+ type: "boolean",
1536
+ description: "Disabled state of component",
1537
+ defaultValueHint: false
1538
+ },
1539
+ tooltips: {
1540
+ type: "array",
1541
+ description: "Array to customize tooltip for each icon"
1542
+ },
1543
+ value: {
1544
+ type: "number",
1545
+ description: "The default value",
1546
+ editOnly: true,
1547
+ defaultValueHint: 0
1548
+ },
1549
+ onChange: {
1550
+ type: "eventHandler",
1551
+ argTypes: [
1552
+ {
1553
+ name: "value",
1554
+ type: "number"
1555
+ }
1556
+ ]
1557
+ },
1558
+ character: {
1559
+ type: "slot",
1560
+ hidePlaceholder: true
1561
+ }
1562
+ },
1563
+ states: {
1564
+ value: {
1565
+ type: "writable",
1566
+ variableType: "text",
1567
+ onChangeProp: "onChange",
1568
+ valueProp: "value"
1569
+ }
1570
+ },
1571
+ importPath: "@daouypkgs/antd/skinny/registerRate",
1572
+ importName: "Rate"
1573
+ };
1574
+ function registerRate(loader, customRateMeta) {
1575
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
1576
+ doRegisterComponent(Rate, customRateMeta != null ? customRateMeta : rateMeta);
1577
+ }
1578
+
1579
+ const Select = Select$1;
1580
+ const Option = Select.Option;
1581
+ const selectMeta = {
1582
+ name: "AntdSelect",
1583
+ displayName: "Antd Select",
1584
+ props: {
1585
+ allowClear: {
1586
+ type: "boolean",
1587
+ description: "Show clear button",
1588
+ defaultValueHint: false
1589
+ },
1590
+ autoClearSearchValue: {
1591
+ type: "boolean",
1592
+ description: "Whether the current search will be cleared on selecting an item",
1593
+ defaultValueHint: true,
1594
+ hidden: (props) => props.mode !== "multiple" && props.mode !== "tags"
1595
+ },
1596
+ autoFocus: {
1597
+ type: "boolean",
1598
+ description: "Get focus by default",
1599
+ defaultValueHint: false
1600
+ },
1601
+ bordered: {
1602
+ type: "boolean",
1603
+ description: "Whether has border style",
1604
+ defaultValueHint: true
1605
+ },
1606
+ disabled: {
1607
+ type: "boolean",
1608
+ description: "Whether disabled select",
1609
+ defaultValueHint: false
1610
+ },
1611
+ listHeight: {
1612
+ type: "number",
1613
+ description: "Config popup height",
1614
+ defaultValueHint: 256
1615
+ },
1616
+ loading: {
1617
+ type: "boolean",
1618
+ description: "Indicate loading state",
1619
+ defaultValueHint: false
1620
+ },
1621
+ mode: {
1622
+ type: "choice",
1623
+ options: ["multiple", "tags"],
1624
+ description: "Set mode of Select"
1625
+ },
1626
+ open: {
1627
+ type: "boolean",
1628
+ editOnly: true,
1629
+ description: "Initial open state of dropdown",
1630
+ defaultValueHint: false
1631
+ },
1632
+ onDropdownVisibleChange: {
1633
+ type: "eventHandler",
1634
+ argTypes: [
1635
+ {
1636
+ name: "open",
1637
+ type: "boolean"
1638
+ }
1639
+ ]
1640
+ },
1641
+ placeholder: {
1642
+ type: "slot",
1643
+ defaultValue: [
1644
+ {
1645
+ type: "text",
1646
+ value: "Select"
1647
+ }
1648
+ ]
1649
+ },
1650
+ showArrow: {
1651
+ type: "boolean",
1652
+ description: "Whether to show the drop-down arrow",
1653
+ defaultValueHint: true
1654
+ },
1655
+ showSearch: {
1656
+ type: "boolean",
1657
+ description: "Whether show search input in single mode",
1658
+ defaultValueHint: false
1659
+ },
1660
+ size: {
1661
+ type: "choice",
1662
+ options: ["large", "middle", "small"],
1663
+ description: "Set mode of Select",
1664
+ defaultValueHint: "middle"
1665
+ },
1666
+ value: {
1667
+ type: "choice",
1668
+ description: "Initial selected option",
1669
+ options: (componentProps) => {
1670
+ const options = /* @__PURE__ */ new Set();
1671
+ traverseReactEltTree(componentProps.children, (elt) => {
1672
+ var _a;
1673
+ if ((elt == null ? void 0 : elt.type) === Option && typeof ((_a = elt == null ? void 0 : elt.props) == null ? void 0 : _a.value) === "string") {
1674
+ options.add(elt.props.value);
1675
+ }
1676
+ });
1677
+ return Array.from(options.keys());
1678
+ }
1679
+ },
1680
+ virtual: {
1681
+ type: "boolean",
1682
+ description: "Disable virtual scroll when set to false",
1683
+ defaultValueHint: true
1684
+ },
1685
+ children: {
1686
+ type: "slot",
1687
+ allowedComponents: ["AntdOption, AntdOptionGroup"],
1688
+ defaultValue: [
1689
+ {
1690
+ type: "component",
1691
+ name: "AntdOption",
1692
+ props: {
1693
+ value: "Option",
1694
+ children: {
1695
+ type: "text",
1696
+ value: "Option"
1697
+ }
1698
+ }
1699
+ }
1700
+ ]
1701
+ },
1702
+ onChange: {
1703
+ type: "eventHandler",
1704
+ argTypes: [
1705
+ {
1706
+ name: "value",
1707
+ type: "string"
1708
+ },
1709
+ {
1710
+ name: "option",
1711
+ type: "object"
1712
+ }
1713
+ ]
1714
+ }
1715
+ },
1716
+ states: {
1717
+ value: {
1718
+ type: "writable",
1719
+ variableType: "text",
1720
+ onChangeProp: "onChange",
1721
+ valueProp: "value"
1722
+ },
1723
+ open: {
1724
+ type: "writable",
1725
+ variableType: "boolean",
1726
+ onChangeProp: "onDropdownVisibleChange",
1727
+ valueProp: "open"
1728
+ }
1729
+ },
1730
+ importPath: "@daouypkgs/antd/skinny/registerSelect",
1731
+ importName: "Select"
1732
+ };
1733
+ function registerSelect(loader, customSelectMeta) {
1734
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
1735
+ doRegisterComponent(Select, customSelectMeta != null ? customSelectMeta : selectMeta);
1736
+ }
1737
+
1738
+ var __defProp$2 = Object.defineProperty;
1739
+ var __defProps$1 = Object.defineProperties;
1740
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
1741
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
1742
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
1743
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
1744
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1745
+ var __spreadValues$2 = (a, b) => {
1746
+ for (var prop in b || (b = {}))
1747
+ if (__hasOwnProp$2.call(b, prop))
1748
+ __defNormalProp$2(a, prop, b[prop]);
1749
+ if (__getOwnPropSymbols$2)
1750
+ for (var prop of __getOwnPropSymbols$2(b)) {
1751
+ if (__propIsEnum$2.call(b, prop))
1752
+ __defNormalProp$2(a, prop, b[prop]);
1753
+ }
1754
+ return a;
1755
+ };
1756
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
1757
+ var __objRest$2 = (source, exclude) => {
1758
+ var target = {};
1759
+ for (var prop in source)
1760
+ if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
1761
+ target[prop] = source[prop];
1762
+ if (source != null && __getOwnPropSymbols$2)
1763
+ for (var prop of __getOwnPropSymbols$2(source)) {
1764
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
1765
+ target[prop] = source[prop];
1766
+ }
1767
+ return target;
1768
+ };
1769
+ const Slider = React.forwardRef(function Slider2(_a, ref) {
1770
+ var _b = _a, { value, value2, onChange, onChange2 } = _b, props = __objRest$2(_b, ["value", "value2", "onChange", "onChange2"]);
1771
+ const newProps = __spreadValues$2({}, props);
1772
+ if (props.range) {
1773
+ if (typeof value === "number" || typeof value2 === "number") {
1774
+ newProps.value = [value != null ? value : 0, value2 != null ? value2 : 0];
1775
+ }
1776
+ newProps.onChange = (values) => {
1777
+ onChange(values[0]);
1778
+ onChange2(values[1]);
1779
+ };
1780
+ } else {
1781
+ if (typeof value === "number") {
1782
+ newProps.value = value;
1783
+ }
1784
+ newProps.onChange = onChange;
1785
+ }
1786
+ return /* @__PURE__ */ React.createElement(Slider$1, __spreadProps$1(__spreadValues$2({}, newProps), { ref }));
1787
+ });
1788
+ const sliderMeta = {
1789
+ name: "AntdSlider",
1790
+ displayName: "Antd Slider",
1791
+ props: {
1792
+ max: {
1793
+ type: "number",
1794
+ description: "The maximum value the slider can slide to",
1795
+ defaultValueHint: 100
1796
+ },
1797
+ min: {
1798
+ type: "number",
1799
+ description: "The minimum value the slider can slide to",
1800
+ defaultValueHint: 0
1801
+ },
1802
+ included: {
1803
+ type: "boolean",
1804
+ description: "Make effect when marks not null, true means containment and false means coordinative",
1805
+ defaultValueHint: true
1806
+ },
1807
+ disabled: {
1808
+ type: "boolean",
1809
+ description: "If true, the slider will not be interactable",
1810
+ defaultValueHint: false
1811
+ },
1812
+ range: {
1813
+ type: "boolean",
1814
+ description: "Dual thumb mode",
1815
+ defaultValueHint: false
1816
+ },
1817
+ reverse: {
1818
+ type: "boolean",
1819
+ description: "Reverse the component",
1820
+ defaultValueHint: false
1821
+ },
1822
+ vertical: {
1823
+ type: "boolean",
1824
+ description: "If true, the slider will be vertical",
1825
+ defaultValueHint: false
1826
+ },
1827
+ value: {
1828
+ type: "number",
1829
+ displayName: "Value",
1830
+ editOnly: true,
1831
+ description: "Initial value for the slider"
1832
+ },
1833
+ onChange: {
1834
+ type: "eventHandler",
1835
+ argTypes: [{ name: "value", type: "number" }]
1836
+ },
1837
+ value2: {
1838
+ type: "number",
1839
+ displayName: "Second Value",
1840
+ editOnly: true,
1841
+ description: "Initial second value for the slider",
1842
+ hidden: (props) => !props.range
1843
+ },
1844
+ onChange2: {
1845
+ type: "eventHandler",
1846
+ argTypes: [{ name: "value", type: "number" }],
1847
+ hidden: (props) => !props.range
1848
+ },
1849
+ step: {
1850
+ type: "number",
1851
+ description: "The granularity the slider can step through values. Must greater than 0, and be divided by (max - min). When marks no null, step can be null",
1852
+ defaultValueHint: 1
1853
+ },
1854
+ marks: {
1855
+ type: "object",
1856
+ description: "Tick mark of Slider, type of key must be number, and must in closed interval [min, max], each mark can declare its own style"
1857
+ }
1858
+ },
1859
+ states: {
1860
+ value: {
1861
+ type: "writable",
1862
+ variableType: "number",
1863
+ valueProp: "value",
1864
+ onChangeProp: "onChange"
1865
+ },
1866
+ value2: {
1867
+ type: "writable",
1868
+ variableType: "number",
1869
+ valueProp: "value2",
1870
+ onChangeProp: "onChange2"
1871
+ }
1872
+ },
1873
+ defaultStyles: {
1874
+ width: "200px",
1875
+ maxWidth: "100%"
1876
+ },
1877
+ importPath: "@daouypkgs/antd/skinny/registerSlider",
1878
+ importName: "Slider"
1879
+ };
1880
+ function registerSlider(loader, customSliderMeta) {
1881
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
1882
+ doRegisterComponent(Slider, customSliderMeta != null ? customSliderMeta : sliderMeta);
1883
+ }
1884
+
1885
+ const Switch = Switch$1;
1886
+ const switchMeta = {
1887
+ name: "AntdSwitch",
1888
+ displayName: "Antd Switch",
1889
+ props: {
1890
+ autoFocus: {
1891
+ type: "boolean",
1892
+ description: "Whether get focus when component mounted",
1893
+ defaultValueHint: false
1894
+ },
1895
+ checked: {
1896
+ type: "boolean",
1897
+ description: "Whether to set the initial state",
1898
+ defaultValueHint: false
1899
+ },
1900
+ disabled: {
1901
+ type: "boolean",
1902
+ description: "Disable switch",
1903
+ defaultValueHint: false
1904
+ },
1905
+ loading: {
1906
+ type: "boolean",
1907
+ description: "Loading state of switch",
1908
+ defaultValueHint: false
1909
+ },
1910
+ checkedChildren: {
1911
+ type: "slot",
1912
+ defaultValue: [],
1913
+ hidePlaceholder: true
1914
+ },
1915
+ unCheckedChildren: {
1916
+ type: "slot",
1917
+ defaultValue: [],
1918
+ hidePlaceholder: true
1919
+ },
1920
+ size: {
1921
+ type: "choice",
1922
+ options: ["small", "default"],
1923
+ description: "The size of the Switch",
1924
+ defaultValueHint: "default"
1925
+ },
1926
+ onChange: {
1927
+ type: "eventHandler",
1928
+ argTypes: [
1929
+ {
1930
+ name: "checked",
1931
+ type: "boolean"
1932
+ },
1933
+ {
1934
+ name: "event",
1935
+ type: "object"
1936
+ }
1937
+ ]
1938
+ }
1939
+ },
1940
+ states: {
1941
+ value: {
1942
+ type: "writable",
1943
+ variableType: "boolean",
1944
+ onChangeProp: "onChange",
1945
+ valueProp: "checked"
1946
+ }
1947
+ },
1948
+ importPath: "@daouypkgs/antd/skinny/registerSwitch",
1949
+ importName: "Switch"
1950
+ };
1951
+ function registerSwitch(loader, customSwitchMeta) {
1952
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
1953
+ doRegisterComponent(Switch, customSwitchMeta != null ? customSwitchMeta : switchMeta);
1954
+ }
1955
+
1956
+ var __defProp$1 = Object.defineProperty;
1957
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
1958
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
1959
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
1960
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1961
+ var __spreadValues$1 = (a, b) => {
1962
+ for (var prop in b || (b = {}))
1963
+ if (__hasOwnProp$1.call(b, prop))
1964
+ __defNormalProp$1(a, prop, b[prop]);
1965
+ if (__getOwnPropSymbols$1)
1966
+ for (var prop of __getOwnPropSymbols$1(b)) {
1967
+ if (__propIsEnum$1.call(b, prop))
1968
+ __defNormalProp$1(a, prop, b[prop]);
1969
+ }
1970
+ return a;
1971
+ };
1972
+ var __objRest$1 = (source, exclude) => {
1973
+ var target = {};
1974
+ for (var prop in source)
1975
+ if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
1976
+ target[prop] = source[prop];
1977
+ if (source != null && __getOwnPropSymbols$1)
1978
+ for (var prop of __getOwnPropSymbols$1(source)) {
1979
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
1980
+ target[prop] = source[prop];
1981
+ }
1982
+ return target;
1983
+ };
1984
+ function TableColumn(_props) {
1985
+ return null;
1986
+ }
1987
+ function TableValue(props) {
1988
+ var _a;
1989
+ const { className } = props;
1990
+ const column = useSelector("currentColumn");
1991
+ return /* @__PURE__ */ React.createElement("div", { className }, (_a = column == null ? void 0 : column.toString()) != null ? _a : "");
1992
+ }
1993
+ function ColumnWrapper(props) {
1994
+ return props.children;
1995
+ }
1996
+ function TableWrapper(props) {
1997
+ var _a, _b;
1998
+ const { className, items, columns, size, onSelect, pagination } = props;
1999
+ const tableColumns = (_b = (_a = columns == null ? void 0 : columns.props) == null ? void 0 : _a.children) != null ? _b : columns;
2000
+ const columnDefinitions = React.useMemo(() => {
2001
+ return React.Children.map(
2002
+ tableColumns,
2003
+ (column, columnIndex) => {
2004
+ if (!column) {
2005
+ return void 0;
2006
+ }
2007
+ const _a2 = column.props, { columnTemplate, title, dataIndex } = _a2, rest = __objRest$1(_a2, ["columnTemplate", "title", "dataIndex"]);
2008
+ const columnDefinition = {
2009
+ columnIndex,
2010
+ title,
2011
+ dataIndex,
2012
+ key: columnIndex,
2013
+ render: (value, record, rowIndex) => {
2014
+ return /* @__PURE__ */ React.createElement(DataProvider, { name: "currentRow", data: record }, /* @__PURE__ */ React.createElement(DataProvider, { name: "currentRowIndex", data: rowIndex }, /* @__PURE__ */ React.createElement(DataProvider, { name: "currentColumn", data: value }, repeatedElement(
2015
+ rowIndex,
2016
+ /* @__PURE__ */ React.createElement(ColumnWrapper, __spreadValues$1({}, rest), columnTemplate)
2017
+ ))));
2018
+ }
2019
+ };
2020
+ return columnDefinition;
2021
+ }
2022
+ ).filter(Boolean);
2023
+ }, [tableColumns]);
2024
+ return /* @__PURE__ */ React.createElement(
2025
+ Table,
2026
+ {
2027
+ className,
2028
+ columns: columnDefinitions,
2029
+ dataSource: items,
2030
+ size,
2031
+ onRow: (record) => {
2032
+ return {
2033
+ onMouseUp: () => {
2034
+ return onSelect == null ? void 0 : onSelect(record.id);
2035
+ }
2036
+ };
2037
+ },
2038
+ pagination: pagination ? void 0 : pagination,
2039
+ rowKey: "id"
2040
+ }
2041
+ );
2042
+ }
2043
+ const DEFAULT_ITEMS = [
2044
+ {
2045
+ name: "John Brown",
2046
+ age: 19,
2047
+ address: "New York No. 1 Lake Park",
2048
+ tags: ["student", "developer"]
2049
+ },
2050
+ {
2051
+ name: "Jim Green",
2052
+ age: 42,
2053
+ address: "London No. 1 Lake Park",
2054
+ tags: ["teacher"]
2055
+ },
2056
+ {
2057
+ name: "Joe Black",
2058
+ age: 32,
2059
+ address: "Sidney No. 1 Lake Park",
2060
+ tags: ["cool", "teacher"]
2061
+ }
2062
+ ];
2063
+ function capitalize(input) {
2064
+ return input.charAt(0).toUpperCase() + input.slice(1);
2065
+ }
2066
+ const tableMeta = {
2067
+ name: "AntdTable",
2068
+ displayName: "Antd Table",
2069
+ props: {
2070
+ items: {
2071
+ type: "array",
2072
+ description: "The data to display in the table, as a list of objects (one object per row)",
2073
+ defaultValue: DEFAULT_ITEMS
2074
+ },
2075
+ columns: {
2076
+ type: "slot",
2077
+ allowedComponents: ["AntdTableColumn"],
2078
+ defaultValue: Object.keys(DEFAULT_ITEMS[0]).map((columnName) => ({
2079
+ type: "component",
2080
+ name: "AntdTableColumn",
2081
+ props: {
2082
+ title: capitalize(columnName),
2083
+ dataIndex: columnName
2084
+ }
2085
+ }))
2086
+ },
2087
+ size: {
2088
+ type: "choice",
2089
+ options: ["large", "middle", "small"],
2090
+ defaultValueHint: "large"
2091
+ },
2092
+ pagination: {
2093
+ type: "boolean",
2094
+ defaultValueHint: true
2095
+ }
2096
+ },
2097
+ importPath: "@daouypkgs/antd/skinny/registerTable",
2098
+ importName: "TableWrapper"
2099
+ };
2100
+ const tableColumnMeta = {
2101
+ name: "AntdTableColumn",
2102
+ parentComponentName: "AntdTable",
2103
+ providesData: true,
2104
+ props: {
2105
+ title: {
2106
+ type: "string",
2107
+ defaultValue: "Name"
2108
+ },
2109
+ dataIndex: {
2110
+ type: "string",
2111
+ defaultValue: "name",
2112
+ description: "The field to show. The table accepts some data as a list of objects, and this is the name of the field in those objects that this column will display."
2113
+ },
2114
+ columnTemplate: {
2115
+ type: "slot",
2116
+ defaultValue: {
2117
+ type: "vbox",
2118
+ styles: {
2119
+ padding: 0
2120
+ },
2121
+ children: [
2122
+ {
2123
+ type: "component",
2124
+ name: "AntdTableValue"
2125
+ }
2126
+ ]
2127
+ }
2128
+ }
2129
+ },
2130
+ importPath: "@daouypkgs/antd/skinny/registerTable",
2131
+ importName: "TableColumn"
2132
+ };
2133
+ const tableValueMeta = {
2134
+ name: "AntdTableValue",
2135
+ parentComponentName: "AntdTableColumn",
2136
+ props: {},
2137
+ importPath: "@daouypkgs/antd/skinny/registerTable",
2138
+ importName: "TableValue"
2139
+ };
2140
+ function registerTable(loader, customMeta) {
2141
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent$1(...args);
2142
+ doRegisterComponent(TableWrapper, customMeta != null ? customMeta : tableMeta);
2143
+ }
2144
+ function registerTableColumn(loader, customMeta) {
2145
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent$1(...args);
2146
+ doRegisterComponent(TableColumn, customMeta != null ? customMeta : tableColumnMeta);
2147
+ }
2148
+ function registerTableValue(loader, customMeta) {
2149
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent$1(...args);
2150
+ doRegisterComponent(TableValue, customMeta != null ? customMeta : tableValueMeta);
2151
+ }
2152
+
2153
+ var __defProp = Object.defineProperty;
2154
+ var __defProps = Object.defineProperties;
2155
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
2156
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
2157
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
2158
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
2159
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2160
+ var __spreadValues = (a, b) => {
2161
+ for (var prop in b || (b = {}))
2162
+ if (__hasOwnProp.call(b, prop))
2163
+ __defNormalProp(a, prop, b[prop]);
2164
+ if (__getOwnPropSymbols)
2165
+ for (var prop of __getOwnPropSymbols(b)) {
2166
+ if (__propIsEnum.call(b, prop))
2167
+ __defNormalProp(a, prop, b[prop]);
2168
+ }
2169
+ return a;
2170
+ };
2171
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2172
+ var __objRest = (source, exclude) => {
2173
+ var target = {};
2174
+ for (var prop in source)
2175
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
2176
+ target[prop] = source[prop];
2177
+ if (source != null && __getOwnPropSymbols)
2178
+ for (var prop of __getOwnPropSymbols(source)) {
2179
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
2180
+ target[prop] = source[prop];
2181
+ }
2182
+ return target;
2183
+ };
2184
+ const TabPane = Tabs$1.TabPane;
2185
+ const tabPaneMeta = {
2186
+ name: "AntdTabPane",
2187
+ displayName: "Antd Tab Pane",
2188
+ props: {
2189
+ tab: {
2190
+ type: "slot",
2191
+ defaultValue: [
2192
+ {
2193
+ type: "text",
2194
+ value: "Tab"
2195
+ }
2196
+ ]
2197
+ },
2198
+ key: {
2199
+ type: "string",
2200
+ description: "Unique TabPane's key",
2201
+ defaultValue: "tabPaneKey"
2202
+ },
2203
+ closable: {
2204
+ type: "boolean",
2205
+ description: "Wether the tab can be closed or not. Only works for editable tabs",
2206
+ defaultValueHint: true
2207
+ },
2208
+ disabled: {
2209
+ type: "boolean",
2210
+ description: "Disabled state of tab",
2211
+ defaultValueHint: false
2212
+ },
2213
+ forceRender: {
2214
+ type: "boolean",
2215
+ description: "Forced render of content in tabs, not lazy render after clicking on tabs",
2216
+ defaultValueHint: false
2217
+ },
2218
+ closeIcon: {
2219
+ type: "slot",
2220
+ hidePlaceholder: true
2221
+ },
2222
+ children: {
2223
+ type: "slot",
2224
+ defaultValue: [
2225
+ {
2226
+ type: "text",
2227
+ value: "Tab Content"
2228
+ }
2229
+ ]
2230
+ }
2231
+ },
2232
+ parentComponentName: "AntdTabs",
2233
+ importPath: "@daouypkgs/antd/skinny/registerTabs",
2234
+ importName: "TabPane"
2235
+ };
2236
+ function registerTabPane(loader, customTabPaneMeta) {
2237
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
2238
+ doRegisterComponent(TabPane, customTabPaneMeta != null ? customTabPaneMeta : tabPaneMeta);
2239
+ }
2240
+ function Tabs(props) {
2241
+ const _a = props, { leftTabBarExtraContent, rightTabBarExtraContent } = _a, otherProps = __objRest(_a, ["leftTabBarExtraContent", "rightTabBarExtraContent"]);
2242
+ return /* @__PURE__ */ React.createElement(
2243
+ Tabs$1,
2244
+ __spreadProps(__spreadValues({}, otherProps), {
2245
+ tabBarExtraContent: {
2246
+ left: leftTabBarExtraContent,
2247
+ right: rightTabBarExtraContent
2248
+ }
2249
+ })
2250
+ );
2251
+ }
2252
+ function NavigateTabs({ componentProps, studioOps }) {
2253
+ const tabPanes = [];
2254
+ traverseReactEltTree(componentProps.children, (elt) => {
2255
+ if ((elt == null ? void 0 : elt.type) === TabPane && typeof (elt == null ? void 0 : elt.key) === "string") {
2256
+ tabPanes.push(elt.key);
2257
+ }
2258
+ });
2259
+ const activeKey = componentProps.activeKey;
2260
+ const currTabPos = activeKey ? tabPanes.findIndex((tabKey) => {
2261
+ return tabKey === activeKey;
2262
+ }) : 0;
2263
+ return /* @__PURE__ */ React.createElement(
2264
+ "div",
2265
+ {
2266
+ style: {
2267
+ width: "100%",
2268
+ display: "flex",
2269
+ flexDirection: "row",
2270
+ gap: "10px",
2271
+ justifyContent: "space-between"
2272
+ }
2273
+ },
2274
+ /* @__PURE__ */ React.createElement(
2275
+ Button$1,
2276
+ {
2277
+ style: { width: "100%" },
2278
+ onClick: () => {
2279
+ if (tabPanes.length > 0) {
2280
+ const prevTabPos = (currTabPos - 1 + tabPanes.length) % tabPanes.length;
2281
+ studioOps.updateProps({ activeKey: tabPanes[prevTabPos] });
2282
+ }
2283
+ }
2284
+ },
2285
+ "Prev tab"
2286
+ ),
2287
+ /* @__PURE__ */ React.createElement(
2288
+ Button$1,
2289
+ {
2290
+ style: { width: "100%" },
2291
+ onClick: () => {
2292
+ if (tabPanes.length > 0) {
2293
+ const nextTabPos = (currTabPos + 1) % tabPanes.length;
2294
+ studioOps.updateProps({ activeKey: tabPanes[nextTabPos] });
2295
+ }
2296
+ }
2297
+ },
2298
+ "Next tab"
2299
+ )
2300
+ );
2301
+ }
2302
+ function OutlineMessage() {
2303
+ return /* @__PURE__ */ React.createElement("div", null, "* To re-arrange tab panes, use the Outline panel");
2304
+ }
2305
+ function getActiveKeyOptions(props) {
2306
+ const options = /* @__PURE__ */ new Set();
2307
+ traverseReactEltTree(props.children, (elt) => {
2308
+ if ((elt == null ? void 0 : elt.type) === TabPane && typeof (elt == null ? void 0 : elt.key) === "string") {
2309
+ options.add(elt.key);
2310
+ }
2311
+ });
2312
+ return Array.from(options.keys());
2313
+ }
2314
+ const tabsMeta = {
2315
+ name: "AntdTabs",
2316
+ displayName: "Antd Tabs",
2317
+ props: {
2318
+ type: {
2319
+ type: "choice",
2320
+ options: ["line", "card", "editable-card"],
2321
+ defaultValueHint: "line",
2322
+ description: "Basic style of tabs"
2323
+ },
2324
+ addIcon: {
2325
+ type: "slot",
2326
+ hidePlaceholder: true
2327
+ },
2328
+ animated: {
2329
+ type: "object",
2330
+ hidden: (props) => props.tabPosition !== "top" && !!props.tabPosition,
2331
+ defaultValueHint: { inkBar: true, tabPane: false },
2332
+ description: "Whether to change tabs with animation. Can be either a boolean or specify for inkBar and tabPane"
2333
+ },
2334
+ hideAdd: {
2335
+ type: "boolean",
2336
+ hidden: (props) => props.type !== "editable-card",
2337
+ defaultValueHint: false,
2338
+ description: "Hide plus icon or not"
2339
+ },
2340
+ moreIcon: {
2341
+ type: "slot",
2342
+ hidePlaceholder: true
2343
+ },
2344
+ size: {
2345
+ type: "choice",
2346
+ options: ["large", "default", "small"],
2347
+ defaultValueHint: "default",
2348
+ description: "Preset tab bar size"
2349
+ },
2350
+ tabPosition: {
2351
+ type: "choice",
2352
+ options: ["top", "right", "bottom", "left"],
2353
+ defaultValueHint: "top",
2354
+ description: "Position of tabs"
2355
+ },
2356
+ tabBarGutter: {
2357
+ type: "number",
2358
+ description: "The gap between tabs"
2359
+ },
2360
+ centered: {
2361
+ type: "boolean",
2362
+ description: "Centers tabs",
2363
+ defaultValueHint: false
2364
+ },
2365
+ leftTabBarExtraContent: {
2366
+ type: "slot",
2367
+ hidePlaceholder: true
2368
+ },
2369
+ rightTabBarExtraContent: {
2370
+ type: "slot",
2371
+ hidePlaceholder: true
2372
+ },
2373
+ tabBarStyle: {
2374
+ type: "object",
2375
+ description: "CSS for the Tab Bar style"
2376
+ },
2377
+ activeKey: {
2378
+ type: "choice",
2379
+ editOnly: true,
2380
+ description: "Initial active TabPane's key",
2381
+ options: getActiveKeyOptions
2382
+ },
2383
+ onChange: {
2384
+ type: "eventHandler",
2385
+ argTypes: [
2386
+ {
2387
+ name: "activeKey",
2388
+ type: {
2389
+ type: "choice",
2390
+ options: getActiveKeyOptions
2391
+ }
2392
+ }
2393
+ ]
2394
+ },
2395
+ children: {
2396
+ type: "slot",
2397
+ allowedComponents: ["AntdTabPane"],
2398
+ defaultValue: [
2399
+ {
2400
+ type: "component",
2401
+ name: "AntdTabPane",
2402
+ props: {
2403
+ key: "1",
2404
+ tab: [
2405
+ {
2406
+ type: "text",
2407
+ value: "Tab"
2408
+ }
2409
+ ],
2410
+ children: [
2411
+ {
2412
+ type: "text",
2413
+ value: "Tab content"
2414
+ }
2415
+ ]
2416
+ }
2417
+ },
2418
+ {
2419
+ type: "component",
2420
+ name: "AntdTabPane",
2421
+ props: {
2422
+ key: "2",
2423
+ tab: [
2424
+ {
2425
+ type: "text",
2426
+ value: "Tab"
2427
+ }
2428
+ ],
2429
+ children: [
2430
+ {
2431
+ type: "text",
2432
+ value: "Tab content"
2433
+ }
2434
+ ]
2435
+ }
2436
+ }
2437
+ ]
2438
+ }
2439
+ },
2440
+ states: {
2441
+ activeKey: {
2442
+ type: "writable",
2443
+ variableType: "array",
2444
+ valueProp: "activeKey",
2445
+ onChangeProp: "onChange"
2446
+ }
2447
+ },
2448
+ actions: [
2449
+ {
2450
+ type: "custom-action",
2451
+ control: NavigateTabs
2452
+ },
2453
+ {
2454
+ type: "button-action",
2455
+ label: "Add new tab",
2456
+ onClick: ({ componentProps, studioOps }) => {
2457
+ const generateNewKey = () => {
2458
+ const keysSet = /* @__PURE__ */ new Set();
2459
+ traverseReactEltTree(componentProps.children, (elt) => {
2460
+ if ((elt == null ? void 0 : elt.type) === TabPane && typeof (elt == null ? void 0 : elt.key) === "string") {
2461
+ keysSet.add(elt.key);
2462
+ }
2463
+ });
2464
+ for (let keyCandidate = 1; keyCandidate <= keysSet.size + 1; keyCandidate++) {
2465
+ const strKey = keyCandidate.toString();
2466
+ if (!keysSet.has(strKey)) {
2467
+ return strKey;
2468
+ }
2469
+ }
2470
+ return void 0;
2471
+ };
2472
+ const tabKey = generateNewKey();
2473
+ studioOps.appendToSlot(
2474
+ {
2475
+ type: "component",
2476
+ name: "AntdTabPane",
2477
+ props: {
2478
+ key: tabKey
2479
+ }
2480
+ },
2481
+ "children"
2482
+ );
2483
+ studioOps.updateProps({ activeKey: tabKey });
2484
+ }
2485
+ },
2486
+ {
2487
+ type: "button-action",
2488
+ label: "Delete current tab",
2489
+ onClick: ({ componentProps, studioOps }) => {
2490
+ if (componentProps.activeKey) {
2491
+ const tabPanes = [];
2492
+ traverseReactEltTree(componentProps.children, (elt) => {
2493
+ if ((elt == null ? void 0 : elt.type) === TabPane && typeof (elt == null ? void 0 : elt.key) === "string") {
2494
+ tabPanes.push(elt.key);
2495
+ }
2496
+ });
2497
+ const activeKey = componentProps.activeKey;
2498
+ const currTabPos = tabPanes.findIndex((tabKey) => {
2499
+ return tabKey === activeKey;
2500
+ });
2501
+ if (currTabPos !== -1) {
2502
+ studioOps.removeFromSlotAt(currTabPos, "children");
2503
+ if (tabPanes.length - 1 > 0) {
2504
+ const prevTabPos = (currTabPos - 1 + tabPanes.length) % tabPanes.length;
2505
+ studioOps.updateProps({ activeKey: tabPanes[prevTabPos] });
2506
+ }
2507
+ }
2508
+ }
2509
+ }
2510
+ },
2511
+ {
2512
+ type: "custom-action",
2513
+ control: OutlineMessage
2514
+ }
2515
+ ],
2516
+ importPath: "@daouypkgs/antd/skinny/registerTabs",
2517
+ importName: "Tabs"
2518
+ };
2519
+ function registerTabs(loader, customTabsMeta) {
2520
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
2521
+ doRegisterComponent(Tabs, customTabsMeta != null ? customTabsMeta : tabsMeta);
2522
+ }
2523
+
2524
+ function registerAll(loader) {
2525
+ registerButton(loader);
2526
+ registerSlider(loader);
2527
+ registerSwitch(loader);
2528
+ registerOption(loader);
2529
+ registerOptGroup(loader);
2530
+ registerSelect(loader);
2531
+ registerCollapsePanel(loader);
2532
+ registerCollapse(loader);
2533
+ registerCheckbox(loader);
2534
+ registerCheckboxGroup(loader);
2535
+ registerMenuDivider(loader);
2536
+ registerMenuItem(loader);
2537
+ registerMenuItemGroup(loader);
2538
+ registerSubMenu(loader);
2539
+ registerMenu(loader);
2540
+ registerDropdown(loader);
2541
+ registerDropdownButton(loader);
2542
+ registerCarousel(loader);
2543
+ registerInput(loader);
2544
+ registerInputTextArea(loader);
2545
+ registerInputSearch(loader);
2546
+ registerInputPassword(loader);
2547
+ registerInputGroup(loader);
2548
+ registerTabPane(loader);
2549
+ registerTable(loader);
2550
+ registerTableColumn(loader);
2551
+ registerTableValue(loader);
2552
+ registerTabs(loader);
2553
+ registerRate(loader);
2554
+ }
2555
+
2556
+ export { Button, Carousel, Checkbox, CheckboxGroup, Collapse, CollapsePanel, Dropdown, DropdownButton, Input, InputGroup, Menu, MenuDivider, MenuItem, MenuItemGroup, OptGroup, Option$1 as Option, Password, Rate, Search, Select, Slider, SubMenu, Switch, TabPane, Tabs, TextArea, buttonMeta, carouselMeta, checkboxGroupMeta, checkboxHelpers, checkboxMeta, collapsteMeta, collapstePanelMeta, dropdownButtonMeta, dropdownMeta, inputGroupMeta, inputHelpers, inputMeta, inputPasswordMeta, inputSearchMeta, inputTextAreaMeta, menuDividerMeta, menuItemGroupMeta, menuItemMeta, menuMeta, optGroupMeta, optionMeta, rateMeta, registerAll, registerButton, registerCarousel, registerCheckbox, registerCheckboxGroup, registerCollapse, registerCollapsePanel, registerDropdown, registerDropdownButton, registerInput, registerInputGroup, registerInputPassword, registerInputSearch, registerInputTextArea, registerMenu, registerMenuDivider, registerMenuItem, registerMenuItemGroup, registerOptGroup, registerOption, registerRate, registerSelect, registerSlider, registerSubMenu, registerSwitch, registerTabPane, registerTabs, selectMeta, sliderMeta, subMenuMeta, switchMeta, tabPaneMeta, tabsMeta };
2557
+ //# sourceMappingURL=antd.esm.js.map