@mgdis/mg-components 6.15.0 → 6.17.0

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 (155) hide show
  1. package/dist/cjs/events.utils-D5SAtkpQ.js +25 -0
  2. package/dist/cjs/{index-BGxkpQwi.js → index-DCZEYvlH.js} +48 -29
  3. package/dist/cjs/{index-iUZvsp-F.js → index-TUElr4Wv.js} +18 -30
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/mg-action-more_37.cjs.entry.js +100 -365
  6. package/dist/cjs/mg-alert.cjs.entry.js +2 -2
  7. package/dist/cjs/mg-components.cjs.js +3 -3
  8. package/dist/cjs/mg-input-combobox.cjs.entry.js +78 -140
  9. package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +4 -4
  10. package/dist/cjs/{mg-input.conf-CwjEAih3.js → mg-input.conf-WTsvDfpC.js} +0 -7
  11. package/dist/cjs/mg-loader.cjs.entry.js +2 -2
  12. package/dist/cjs/mg-progress.cjs.entry.js +1 -1
  13. package/dist/collection/collection-manifest.json +1 -1
  14. package/dist/collection/components/atoms/internals/mg-character-left/mg-character-left.js +5 -5
  15. package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js +7 -7
  16. package/dist/collection/components/atoms/mg-badge/mg-badge.js +6 -6
  17. package/dist/collection/components/atoms/mg-button/mg-button.js +13 -13
  18. package/dist/collection/components/atoms/mg-card/mg-card.js +2 -2
  19. package/dist/collection/components/atoms/mg-divider/mg-divider.js +1 -1
  20. package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +1 -1
  21. package/dist/collection/components/atoms/mg-icon/mg-icon.js +32 -26
  22. package/dist/collection/components/atoms/mg-tag/mg-tag.js +3 -3
  23. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js +2 -2
  24. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +6 -6
  25. package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js +0 -6
  26. package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +37 -108
  27. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +1 -2
  28. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +6 -8
  29. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +42 -99
  30. package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +82 -167
  31. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +27 -44
  32. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +40 -55
  33. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +26 -26
  34. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +32 -86
  35. package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +26 -27
  36. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +33 -82
  37. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +33 -34
  38. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +32 -32
  39. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +27 -161
  40. package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +2 -4
  41. package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js +4 -5
  42. package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js +7 -7
  43. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +1 -4
  44. package/dist/collection/components/molecules/mg-alert/mg-alert.js +4 -4
  45. package/dist/collection/components/molecules/mg-details/mg-details.js +6 -6
  46. package/dist/collection/components/molecules/mg-form/mg-form.js +13 -13
  47. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +2 -2
  48. package/dist/collection/components/molecules/mg-loader/mg-loader.js +3 -3
  49. package/dist/collection/components/molecules/mg-message/mg-message.js +2 -2
  50. package/dist/collection/components/molecules/mg-modal/mg-modal.js +6 -6
  51. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +7 -8
  52. package/dist/collection/components/molecules/mg-panel/mg-panel.js +13 -13
  53. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +1 -1
  54. package/dist/collection/components/molecules/mg-popover/mg-popover.js +6 -6
  55. package/dist/collection/components/molecules/mg-progress/mg-progress.js +6 -6
  56. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +0 -1
  57. package/dist/collection/components/molecules/mg-table/mg-table.js +2 -3
  58. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +6 -7
  59. package/dist/collection/locales/en/messages.json +8 -13
  60. package/dist/collection/locales/fr/messages.json +8 -13
  61. package/dist/components/index2.js +1 -1
  62. package/dist/components/index3.js +18 -30
  63. package/dist/components/mg-action-more.js +4 -2
  64. package/dist/components/mg-alert.js +4 -2
  65. package/dist/components/mg-badge2.js +4 -2
  66. package/dist/components/mg-button2.js +4 -2
  67. package/dist/components/mg-card2.js +4 -2
  68. package/dist/components/mg-character-left2.js +4 -2
  69. package/dist/components/mg-details.js +99 -1
  70. package/dist/components/mg-divider2.js +4 -2
  71. package/dist/components/mg-form.js +4 -2
  72. package/dist/components/mg-icon2.js +29 -21
  73. package/dist/components/mg-illustrated-message.js +4 -2
  74. package/dist/components/mg-input-checkbox-paginated2.js +6 -7
  75. package/dist/components/mg-input-checkbox.js +23 -65
  76. package/dist/components/mg-input-combobox.js +64 -132
  77. package/dist/components/mg-input-date.js +8 -29
  78. package/dist/components/mg-input-numeric.js +8 -27
  79. package/dist/components/mg-input-password.js +6 -10
  80. package/dist/components/mg-input-radio.js +16 -55
  81. package/dist/components/mg-input-rich-text-editor.js +6 -10
  82. package/dist/components/mg-input-select2.js +12 -46
  83. package/dist/components/mg-input-text2.js +6 -10
  84. package/dist/components/mg-input-textarea.js +6 -10
  85. package/dist/components/mg-input-title2.js +4 -2
  86. package/dist/components/mg-input-toggle.js +15 -98
  87. package/dist/components/mg-input2.js +26 -101
  88. package/dist/components/mg-item-more2.js +8 -4
  89. package/dist/components/mg-loader2.js +4 -2
  90. package/dist/components/mg-menu-item2.js +4 -2
  91. package/dist/components/mg-message2.js +4 -2
  92. package/dist/components/mg-modal.js +4 -2
  93. package/dist/components/mg-pagination.js +6 -10
  94. package/dist/components/mg-panel.js +11 -15
  95. package/dist/components/mg-popover-content2.js +4 -2
  96. package/dist/components/mg-popover2.js +4 -2
  97. package/dist/components/mg-progress.js +4 -2
  98. package/dist/components/mg-skip-links.js +4 -2
  99. package/dist/components/mg-table.js +4 -2
  100. package/dist/components/mg-tabs2.js +4 -2
  101. package/dist/components/mg-tag.js +4 -2
  102. package/dist/components/mg-tooltip-content2.js +4 -2
  103. package/dist/components/mg-tooltip2.js +4 -2
  104. package/dist/esm/events.utils-yMGqY8YG.js +23 -0
  105. package/dist/esm/{index-CKB-AnCZ.js → index-CNX6lq0x.js} +18 -30
  106. package/dist/esm/{index-DhAOnZJn.js → index-T6kOJXP1.js} +48 -29
  107. package/dist/esm/loader.js +3 -3
  108. package/dist/esm/mg-action-more_37.entry.js +96 -361
  109. package/dist/esm/mg-alert.entry.js +2 -2
  110. package/dist/esm/mg-components.js +4 -4
  111. package/dist/esm/mg-input-combobox.entry.js +59 -121
  112. package/dist/esm/mg-input-rich-text-editor.entry.js +4 -4
  113. package/dist/esm/{mg-input.conf-BAUTlb6r.js → mg-input.conf-CNgv8hc5.js} +1 -7
  114. package/dist/esm/mg-loader.entry.js +2 -2
  115. package/dist/esm/mg-progress.entry.js +1 -1
  116. package/dist/mg-components/locales/en/messages.json +8 -13
  117. package/dist/mg-components/locales/fr/messages.json +8 -13
  118. package/dist/mg-components/mg-components.esm.js +1 -1
  119. package/dist/mg-components/{p-47e19783.entry.js → p-0e6b40d6.entry.js} +1 -1
  120. package/dist/mg-components/{p-67af6274.entry.js → p-397bf67b.entry.js} +1 -1
  121. package/dist/mg-components/{p-a0fa44cf.entry.js → p-5dc3a1fb.entry.js} +1 -1
  122. package/dist/mg-components/p-8a69175b.entry.js +1 -0
  123. package/dist/mg-components/p-CNX6lq0x.js +1 -0
  124. package/dist/mg-components/p-CNgv8hc5.js +1 -0
  125. package/dist/mg-components/p-T6kOJXP1.js +2 -0
  126. package/dist/mg-components/{p-420daa1e.entry.js → p-c5da335e.entry.js} +1 -1
  127. package/dist/mg-components/p-d84d87ea.entry.js +1 -0
  128. package/dist/mg-components/p-yMGqY8YG.js +1 -0
  129. package/dist/types/components/atoms/mg-icon/mg-icon.conf.d.ts +1 -1
  130. package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +0 -5
  131. package/dist/types/components/molecules/inputs/mg-input/mg-input.conf.d.ts +0 -13
  132. package/dist/types/components/molecules/inputs/mg-input/mg-input.d.ts +4 -15
  133. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +3 -21
  134. package/dist/types/components/molecules/inputs/mg-input-combobox/mg-input-combobox.d.ts +2 -16
  135. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +0 -18
  136. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +0 -18
  137. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +4 -40
  138. package/dist/types/components.d.ts +7 -63
  139. package/dist/types/stencil-public-runtime.d.ts +39 -2
  140. package/dist/types/types/index.d.ts +1 -1
  141. package/ide/intellij/web-types.json +23 -304
  142. package/ide/vscode/html-custom-data.json +18 -113
  143. package/package.json +22 -22
  144. package/dist/cjs/mg-input.utils-D-ASK4ua.js +0 -49
  145. package/dist/collection/components/molecules/inputs/mg-input/mg-input.utils.js +0 -21
  146. package/dist/components/mg-details2.js +0 -99
  147. package/dist/components/mg-input.utils.js +0 -24
  148. package/dist/esm/mg-input.utils-BYI03zSi.js +0 -46
  149. package/dist/mg-components/p-31856cff.entry.js +0 -1
  150. package/dist/mg-components/p-698dfc6c.entry.js +0 -1
  151. package/dist/mg-components/p-BAUTlb6r.js +0 -1
  152. package/dist/mg-components/p-CKB-AnCZ.js +0 -1
  153. package/dist/mg-components/p-DhAOnZJn.js +0 -2
  154. package/dist/mg-components/p-PuX-pdL4.js +0 -1
  155. package/dist/types/components/molecules/inputs/mg-input/mg-input.utils.d.ts +0 -8
@@ -13,7 +13,7 @@ import { RadiusSizeType } from "./components/atoms/mg-card/mg-card.conf";
13
13
  import { AriaRoleType, RequiredMessageStatusType } from "./components/molecules/mg-form/mg-form.conf";
14
14
  import { IconSizeType, IconType, IconVariantStyleType, IconVariantType } from "./components/atoms/mg-icon/mg-icon.conf";
15
15
  import { IllustratedMessageDirectionType, IllustratedMessageSizeType } from "./components/molecules/mg-illustrated-message/mg-illustrated-message.conf";
16
- import { ErrorMessageDetailsType, TooltipPosition, Width } from "./components/molecules/inputs/mg-input/mg-input.conf";
16
+ import { TooltipPosition, Width } from "./components/molecules/inputs/mg-input/mg-input.conf";
17
17
  import { CheckboxItem, CheckboxType, CheckboxValue } from "./components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf";
18
18
  import { Direction, Option } from "./types";
19
19
  import { RequestMappingType, ResponseMappingType } from "./components/molecules/inputs/mg-input-combobox/mg-input-combobox.conf";
@@ -45,7 +45,7 @@ export { RadiusSizeType } from "./components/atoms/mg-card/mg-card.conf";
45
45
  export { AriaRoleType, RequiredMessageStatusType } from "./components/molecules/mg-form/mg-form.conf";
46
46
  export { IconSizeType, IconType, IconVariantStyleType, IconVariantType } from "./components/atoms/mg-icon/mg-icon.conf";
47
47
  export { IllustratedMessageDirectionType, IllustratedMessageSizeType } from "./components/molecules/mg-illustrated-message/mg-illustrated-message.conf";
48
- export { ErrorMessageDetailsType, TooltipPosition, Width } from "./components/molecules/inputs/mg-input/mg-input.conf";
48
+ export { TooltipPosition, Width } from "./components/molecules/inputs/mg-input/mg-input.conf";
49
49
  export { CheckboxItem, CheckboxType, CheckboxValue } from "./components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf";
50
50
  export { Direction, Option } from "./types";
51
51
  export { RequestMappingType, ResponseMappingType } from "./components/molecules/inputs/mg-input-combobox/mg-input-combobox.conf";
@@ -319,7 +319,7 @@ export namespace Components {
319
319
  /**
320
320
  * Define error message to display
321
321
  */
322
- "errorMessage"?: string | ErrorMessageDetailsType;
322
+ "errorMessage"?: string;
323
323
  /**
324
324
  * Define help text to display
325
325
  */
@@ -375,7 +375,7 @@ export namespace Components {
375
375
  /**
376
376
  * Overwrite default "edit" button message
377
377
  */
378
- "editButtonMessage"?: string;
378
+ "editButtonMessage": string;
379
379
  /**
380
380
  * Add a help text under the input, usually expected data format and example
381
381
  */
@@ -412,10 +412,6 @@ export namespace Components {
412
412
  * @default this.identifier
413
413
  */
414
414
  "name": string;
415
- /**
416
- * Define no value error detail
417
- */
418
- "noValueErrorDetail"?: string;
419
415
  /**
420
416
  * Define if mg-input-checkbox is readonly
421
417
  * @default false
@@ -433,7 +429,7 @@ export namespace Components {
433
429
  /**
434
430
  * Overwrite default "select" button message
435
431
  */
436
- "selectButtonMessage"?: string;
432
+ "selectButtonMessage": string;
437
433
  /**
438
434
  * Set an error and display a custom error message. This method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter. It must be paired with an error message to display for the given context. When used to set validity to `false`, you should use this method again to reset the validity to `true`.
439
435
  * @param valid - value indicating the validity
@@ -447,7 +443,7 @@ export namespace Components {
447
443
  /**
448
444
  * Overwrite default "show" button message
449
445
  */
450
- "showButtonMessage"?: string;
446
+ "showButtonMessage": string;
451
447
  /**
452
448
  * Add a tooltip message next to the input
453
449
  */
@@ -576,10 +572,6 @@ export namespace Components {
576
572
  * @default this.identifier
577
573
  */
578
574
  "name": string;
579
- /**
580
- * Define no value error detail
581
- */
582
- "noValueErrorDetail"?: string;
583
575
  /**
584
576
  * Define input placeholder. It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help combobox.
585
577
  */
@@ -997,10 +989,6 @@ export namespace Components {
997
989
  * @default this.identifier
998
990
  */
999
991
  "name": string;
1000
- /**
1001
- * Define no value error detail
1002
- */
1003
- "noValueErrorDetail"?: string;
1004
992
  /**
1005
993
  * Define if input is readonly
1006
994
  * @default false
@@ -1202,10 +1190,6 @@ export namespace Components {
1202
1190
  * @default this.identifier
1203
1191
  */
1204
1192
  "name": string;
1205
- /**
1206
- * Define no value error detail
1207
- */
1208
- "noValueErrorDetail"?: string;
1209
1193
  /**
1210
1194
  * Input placeholder. It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.
1211
1195
  */
@@ -1538,10 +1522,6 @@ export namespace Components {
1538
1522
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
1539
1523
  */
1540
1524
  "identifier": string;
1541
- /**
1542
- * Define input invalid state
1543
- */
1544
- "invalid": boolean;
1545
1525
  /**
1546
1526
  * Define if toggle display icon
1547
1527
  * @default false
@@ -1575,10 +1555,6 @@ export namespace Components {
1575
1555
  * @default this.identifier
1576
1556
  */
1577
1557
  "name": string;
1578
- /**
1579
- * Define no value error detail
1580
- */
1581
- "noValueErrorDetail"?: string;
1582
1558
  /**
1583
1559
  * Define if input is readonly
1584
1560
  * @default false
@@ -1607,10 +1583,6 @@ export namespace Components {
1607
1583
  * @default 'input'
1608
1584
  */
1609
1585
  "tooltipPosition": TooltipPosition;
1610
- /**
1611
- * Define input valid state
1612
- */
1613
- "valid": boolean;
1614
1586
  /**
1615
1587
  * Component value
1616
1588
  */
@@ -2919,7 +2891,7 @@ declare namespace LocalJSX {
2919
2891
  /**
2920
2892
  * Define error message to display
2921
2893
  */
2922
- "errorMessage"?: string | ErrorMessageDetailsType;
2894
+ "errorMessage"?: string;
2923
2895
  /**
2924
2896
  * Define help text to display
2925
2897
  */
@@ -3008,10 +2980,6 @@ declare namespace LocalJSX {
3008
2980
  * @default this.identifier
3009
2981
  */
3010
2982
  "name"?: string;
3011
- /**
3012
- * Define no value error detail
3013
- */
3014
- "noValueErrorDetail"?: string;
3015
2983
  /**
3016
2984
  * Emited event when checking validity
3017
2985
  */
@@ -3158,10 +3126,6 @@ declare namespace LocalJSX {
3158
3126
  * @default this.identifier
3159
3127
  */
3160
3128
  "name"?: string;
3161
- /**
3162
- * Define no value error detail
3163
- */
3164
- "noValueErrorDetail"?: string;
3165
3129
  /**
3166
3130
  * Emited event when fetch API throw an error
3167
3131
  */
@@ -3551,10 +3515,6 @@ declare namespace LocalJSX {
3551
3515
  * @default this.identifier
3552
3516
  */
3553
3517
  "name"?: string;
3554
- /**
3555
- * Define no value error detail
3556
- */
3557
- "noValueErrorDetail"?: string;
3558
3518
  /**
3559
3519
  * Emited event when checking validity
3560
3520
  */
@@ -3726,10 +3686,6 @@ declare namespace LocalJSX {
3726
3686
  * @default this.identifier
3727
3687
  */
3728
3688
  "name"?: string;
3729
- /**
3730
- * Define no value error detail
3731
- */
3732
- "noValueErrorDetail"?: string;
3733
3689
  /**
3734
3690
  * Emited event when checking validity
3735
3691
  */
@@ -4036,10 +3992,6 @@ declare namespace LocalJSX {
4036
3992
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
4037
3993
  */
4038
3994
  "identifier": string;
4039
- /**
4040
- * Define input invalid state
4041
- */
4042
- "invalid"?: boolean;
4043
3995
  /**
4044
3996
  * Define if toggle display icon
4045
3997
  * @default false
@@ -4073,10 +4025,6 @@ declare namespace LocalJSX {
4073
4025
  * @default this.identifier
4074
4026
  */
4075
4027
  "name"?: string;
4076
- /**
4077
- * Define no value error detail
4078
- */
4079
- "noValueErrorDetail"?: string;
4080
4028
  /**
4081
4029
  * Emited event when checking validity
4082
4030
  */
@@ -4099,10 +4047,6 @@ declare namespace LocalJSX {
4099
4047
  * @default 'input'
4100
4048
  */
4101
4049
  "tooltipPosition"?: TooltipPosition;
4102
- /**
4103
- * Define input valid state
4104
- */
4105
- "valid"?: boolean;
4106
4050
  /**
4107
4051
  * Component value
4108
4052
  */
@@ -1,4 +1,5 @@
1
- declare type CustomMethodDecorator<T> = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
1
+ type CustomMethodDecorator<T> = (target: object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
2
+ type UnionToIntersection<U> = (U extends any ? (x: U) => void : never) extends (x: infer I) => void ? I : never;
2
3
  export interface ComponentDecorator {
3
4
  (opts?: ComponentOptions): ClassDecorator;
4
5
  }
@@ -151,7 +152,13 @@ export interface StateDecorator {
151
152
  (): PropertyDecorator;
152
153
  }
153
154
  export interface WatchDecorator {
154
- (propName: string): CustomMethodDecorator<any>;
155
+ (propName: any): CustomMethodDecorator<(newValue?: any, oldValue?: any, propName?: any, ...args: any[]) => any | void>;
156
+ }
157
+ export interface PropSerializeDecorator {
158
+ (propName: any): CustomMethodDecorator<(newValue?: any, propName?: string, ...args: any[]) => string | null>;
159
+ }
160
+ export interface AttrDeserializeDecorator {
161
+ (propName: any): CustomMethodDecorator<(newValue?: any, propName?: string, ...args: any[]) => any>;
155
162
  }
156
163
  export interface UserBuildConditionals {
157
164
  isDev: boolean;
@@ -233,6 +240,14 @@ export declare const State: StateDecorator;
233
240
  * https://stenciljs.com/docs/reactive-data#watch-decorator
234
241
  */
235
242
  export declare const Watch: WatchDecorator;
243
+ /**
244
+ * Decorator to serialize a property to an attribute string.
245
+ */
246
+ export declare const PropSerialize: PropSerializeDecorator;
247
+ /**
248
+ * Decorator to deserialize an attribute string to a property.
249
+ */
250
+ export declare const AttrDeserialize: AttrDeserializeDecorator;
236
251
  export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
237
252
  export type ErrorHandler = (err: any, element?: HTMLElement) => void;
238
253
  /**
@@ -349,6 +364,28 @@ export declare function readTask(task: RafCallback): void;
349
364
  * Unhandled exception raised while rendering, during event handling, or lifecycles will trigger the custom event handler.
350
365
  */
351
366
  export declare const setErrorHandler: (handler: ErrorHandler) => void;
367
+ export type MixinFactory = <TBase extends new (...args: any[]) => any>(base: TBase) => abstract new (...args: ConstructorParameters<TBase>) => any;
368
+ /**
369
+ * Compose multiple mixin classes into a single constructor.
370
+ * The resulting class has the combined instance types of all mixed-in classes.
371
+ *
372
+ * Example:
373
+ * ```
374
+ * import { Mixin, MixinFactory } from '@stencil/core';
375
+ *
376
+ * const AWrap: MixinFactory = (Base) => {class A extends Base { propA = A }; return A;}
377
+ * const BWrap: MixinFactory = (Base) => {class B extends Base { propB = B }; return B;}
378
+ * const CWrap: MixinFactory = (Base) => {class C extends Base { propC = C }; return C;}
379
+ *
380
+ * class X extends Mixin(AWrap, BWrap, CWrap) {
381
+ * render() { return <div>{this.propA} {this.propB} {this.propC}</div>; }
382
+ * }
383
+ * ```
384
+ *
385
+ * @param mixinFactories mixin factory functions that return a class which extends from the provided class.
386
+ * @returns a class that that is composed from extending each of the provided classes in the order they were provided.
387
+ */
388
+ export declare function Mixin<TMixins extends readonly MixinFactory[]>(...mixinFactories: TMixins): abstract new (...args: any[]) => UnionToIntersection<InstanceType<ReturnType<TMixins[number]>>>;
352
389
  /**
353
390
  * This file gets copied to all distributions of stencil component collections.
354
391
  * - no imports
@@ -5,7 +5,7 @@ export type Size = 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge
5
5
  /**
6
6
  * Defines the possible values for variant
7
7
  */
8
- export type Variant = 'info' | 'success' | 'warning' | 'danger' | 'danger-alt' | 'primary' | 'secondary' | 'app' | 'light' | 'dark' | 'flat' | 'text-color' | 'link';
8
+ export type Variant = 'info' | 'success' | 'warning' | 'danger' | 'danger-alt' | 'primary' | 'secondary' | 'app' | 'light' | 'dark' | 'flat' | 'text-color' | 'link' | 'neutral';
9
9
  /**
10
10
  * Defines the possible values for directions
11
11
  */