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