@mureka-fe/ui 1.1.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 (177) hide show
  1. package/dist/assets/ui-B50B6qET.css +1 -0
  2. package/dist/internal/docs/schema.d.ts +107 -0
  3. package/dist/internal/docs/schema.d.ts.map +1 -0
  4. package/dist/internal/guides/custom/colors-overview.d.ts +4 -0
  5. package/dist/internal/guides/custom/colors-overview.d.ts.map +1 -0
  6. package/dist/internal/guides/custom/icons.d.ts +4 -0
  7. package/dist/internal/guides/custom/icons.d.ts.map +1 -0
  8. package/dist/internal/icons/manifest.d.ts +3 -0
  9. package/dist/internal/icons/manifest.d.ts.map +1 -0
  10. package/dist/internal/icons/types.d.ts +21 -0
  11. package/dist/internal/icons/types.d.ts.map +1 -0
  12. package/dist/llms.txt +358 -0
  13. package/dist/src/components/button/Button.vue.d.ts +32 -0
  14. package/dist/src/components/button/Button.vue.d.ts.map +1 -0
  15. package/dist/src/components/button/__docs__/demos/basic.demo.vue.d.ts +3 -0
  16. package/dist/src/components/button/__docs__/demos/basic.demo.vue.d.ts.map +1 -0
  17. package/dist/src/components/button/__docs__/demos/danger.demo.vue.d.ts +3 -0
  18. package/dist/src/components/button/__docs__/demos/danger.demo.vue.d.ts.map +1 -0
  19. package/dist/src/components/button/__docs__/demos/icon.demo.vue.d.ts +3 -0
  20. package/dist/src/components/button/__docs__/demos/icon.demo.vue.d.ts.map +1 -0
  21. package/dist/src/components/button/__docs__/demos/loading.demo.vue.d.ts +3 -0
  22. package/dist/src/components/button/__docs__/demos/loading.demo.vue.d.ts.map +1 -0
  23. package/dist/src/components/button/__docs__/demos/shape.demo.vue.d.ts +3 -0
  24. package/dist/src/components/button/__docs__/demos/shape.demo.vue.d.ts.map +1 -0
  25. package/dist/src/components/button/__docs__/demos/size.demo.vue.d.ts +3 -0
  26. package/dist/src/components/button/__docs__/demos/size.demo.vue.d.ts.map +1 -0
  27. package/dist/src/components/button/__docs__/meta.d.ts +4 -0
  28. package/dist/src/components/button/__docs__/meta.d.ts.map +1 -0
  29. package/dist/src/components/button/button.spec.d.ts +2 -0
  30. package/dist/src/components/button/button.spec.d.ts.map +1 -0
  31. package/dist/src/components/button/button.types.d.ts +51 -0
  32. package/dist/src/components/button/button.types.d.ts.map +1 -0
  33. package/dist/src/components/button/index.d.ts +2 -0
  34. package/dist/src/components/button/index.d.ts.map +1 -0
  35. package/dist/src/components/message/MessageList.vue.d.ts +3 -0
  36. package/dist/src/components/message/MessageList.vue.d.ts.map +1 -0
  37. package/dist/src/components/message/__docs__/demos/basic.demo.vue.d.ts +3 -0
  38. package/dist/src/components/message/__docs__/demos/basic.demo.vue.d.ts.map +1 -0
  39. package/dist/src/components/message/__docs__/demos/closable.demo.vue.d.ts +3 -0
  40. package/dist/src/components/message/__docs__/demos/closable.demo.vue.d.ts.map +1 -0
  41. package/dist/src/components/message/__docs__/demos/icon.demo.vue.d.ts +3 -0
  42. package/dist/src/components/message/__docs__/demos/icon.demo.vue.d.ts.map +1 -0
  43. package/dist/src/components/message/__docs__/meta.d.ts +4 -0
  44. package/dist/src/components/message/__docs__/meta.d.ts.map +1 -0
  45. package/dist/src/components/message/index.d.ts +3 -0
  46. package/dist/src/components/message/index.d.ts.map +1 -0
  47. package/dist/src/components/message/message.d.ts +39 -0
  48. package/dist/src/components/message/message.d.ts.map +1 -0
  49. package/dist/src/components/message/message.spec.d.ts +2 -0
  50. package/dist/src/components/message/message.spec.d.ts.map +1 -0
  51. package/dist/src/components/modal/Modal.vue.d.ts +42 -0
  52. package/dist/src/components/modal/Modal.vue.d.ts.map +1 -0
  53. package/dist/src/components/modal/__docs__/demos/basic.demo.vue.d.ts +3 -0
  54. package/dist/src/components/modal/__docs__/demos/basic.demo.vue.d.ts.map +1 -0
  55. package/dist/src/components/modal/__docs__/demos/danger.demo.vue.d.ts +3 -0
  56. package/dist/src/components/modal/__docs__/demos/danger.demo.vue.d.ts.map +1 -0
  57. package/dist/src/components/modal/__docs__/demos/feedback-dual.demo.vue.d.ts +3 -0
  58. package/dist/src/components/modal/__docs__/demos/feedback-dual.demo.vue.d.ts.map +1 -0
  59. package/dist/src/components/modal/__docs__/demos/feedback.demo.vue.d.ts +3 -0
  60. package/dist/src/components/modal/__docs__/demos/feedback.demo.vue.d.ts.map +1 -0
  61. package/dist/src/components/modal/__docs__/demos/imperative.demo.vue.d.ts +3 -0
  62. package/dist/src/components/modal/__docs__/demos/imperative.demo.vue.d.ts.map +1 -0
  63. package/dist/src/components/modal/__docs__/demos/matrix.demo.vue.d.ts +3 -0
  64. package/dist/src/components/modal/__docs__/demos/matrix.demo.vue.d.ts.map +1 -0
  65. package/dist/src/components/modal/__docs__/demos/size.demo.vue.d.ts +3 -0
  66. package/dist/src/components/modal/__docs__/demos/size.demo.vue.d.ts.map +1 -0
  67. package/dist/src/components/modal/__docs__/meta.d.ts +4 -0
  68. package/dist/src/components/modal/__docs__/meta.d.ts.map +1 -0
  69. package/dist/src/components/modal/index.d.ts +4 -0
  70. package/dist/src/components/modal/index.d.ts.map +1 -0
  71. package/dist/src/components/modal/modal.imperative.d.ts +19 -0
  72. package/dist/src/components/modal/modal.imperative.d.ts.map +1 -0
  73. package/dist/src/components/modal/modal.imperative.spec.d.ts +2 -0
  74. package/dist/src/components/modal/modal.imperative.spec.d.ts.map +1 -0
  75. package/dist/src/components/modal/modal.spec.d.ts +2 -0
  76. package/dist/src/components/modal/modal.spec.d.ts.map +1 -0
  77. package/dist/src/components/modal/modal.types.d.ts +41 -0
  78. package/dist/src/components/modal/modal.types.d.ts.map +1 -0
  79. package/dist/src/components/radio/Radio.vue.d.ts +30 -0
  80. package/dist/src/components/radio/Radio.vue.d.ts.map +1 -0
  81. package/dist/src/components/radio/RadioGroup.vue.d.ts +26 -0
  82. package/dist/src/components/radio/RadioGroup.vue.d.ts.map +1 -0
  83. package/dist/src/components/radio/__docs__/demos/basic.demo.vue.d.ts +3 -0
  84. package/dist/src/components/radio/__docs__/demos/basic.demo.vue.d.ts.map +1 -0
  85. package/dist/src/components/radio/__docs__/demos/direction.demo.vue.d.ts +3 -0
  86. package/dist/src/components/radio/__docs__/demos/direction.demo.vue.d.ts.map +1 -0
  87. package/dist/src/components/radio/__docs__/demos/disabled.demo.vue.d.ts +3 -0
  88. package/dist/src/components/radio/__docs__/demos/disabled.demo.vue.d.ts.map +1 -0
  89. package/dist/src/components/radio/__docs__/demos/standalone.demo.vue.d.ts +3 -0
  90. package/dist/src/components/radio/__docs__/demos/standalone.demo.vue.d.ts.map +1 -0
  91. package/dist/src/components/radio/__docs__/meta.d.ts +4 -0
  92. package/dist/src/components/radio/__docs__/meta.d.ts.map +1 -0
  93. package/dist/src/components/radio/index.d.ts +4 -0
  94. package/dist/src/components/radio/index.d.ts.map +1 -0
  95. package/dist/src/components/radio/radio.context.d.ts +10 -0
  96. package/dist/src/components/radio/radio.context.d.ts.map +1 -0
  97. package/dist/src/components/radio/radio.spec.d.ts +2 -0
  98. package/dist/src/components/radio/radio.spec.d.ts.map +1 -0
  99. package/dist/src/components/radio/radio.types.d.ts +42 -0
  100. package/dist/src/components/radio/radio.types.d.ts.map +1 -0
  101. package/dist/src/components/switch/Switch.vue.d.ts +39 -0
  102. package/dist/src/components/switch/Switch.vue.d.ts.map +1 -0
  103. package/dist/src/components/switch/__docs__/demos/async-change.demo.vue.d.ts +3 -0
  104. package/dist/src/components/switch/__docs__/demos/async-change.demo.vue.d.ts.map +1 -0
  105. package/dist/src/components/switch/__docs__/demos/basic.demo.vue.d.ts +3 -0
  106. package/dist/src/components/switch/__docs__/demos/basic.demo.vue.d.ts.map +1 -0
  107. package/dist/src/components/switch/__docs__/demos/custom-icon.demo.vue.d.ts +3 -0
  108. package/dist/src/components/switch/__docs__/demos/custom-icon.demo.vue.d.ts.map +1 -0
  109. package/dist/src/components/switch/__docs__/demos/custom-text.demo.vue.d.ts +3 -0
  110. package/dist/src/components/switch/__docs__/demos/custom-text.demo.vue.d.ts.map +1 -0
  111. package/dist/src/components/switch/__docs__/demos/disabled-loading.demo.vue.d.ts +3 -0
  112. package/dist/src/components/switch/__docs__/demos/disabled-loading.demo.vue.d.ts.map +1 -0
  113. package/dist/src/components/switch/__docs__/demos/size.demo.vue.d.ts +3 -0
  114. package/dist/src/components/switch/__docs__/demos/size.demo.vue.d.ts.map +1 -0
  115. package/dist/src/components/switch/__docs__/demos/type.demo.vue.d.ts +3 -0
  116. package/dist/src/components/switch/__docs__/demos/type.demo.vue.d.ts.map +1 -0
  117. package/dist/src/components/switch/__docs__/meta.d.ts +4 -0
  118. package/dist/src/components/switch/__docs__/meta.d.ts.map +1 -0
  119. package/dist/src/components/switch/index.d.ts +3 -0
  120. package/dist/src/components/switch/index.d.ts.map +1 -0
  121. package/dist/src/components/switch/switch.spec.d.ts +2 -0
  122. package/dist/src/components/switch/switch.spec.d.ts.map +1 -0
  123. package/dist/src/components/switch/switch.types.d.ts +45 -0
  124. package/dist/src/components/switch/switch.types.d.ts.map +1 -0
  125. package/dist/src/components/tabs/Tab.vue.d.ts +22 -0
  126. package/dist/src/components/tabs/Tab.vue.d.ts.map +1 -0
  127. package/dist/src/components/tabs/Tabs.vue.d.ts +32 -0
  128. package/dist/src/components/tabs/Tabs.vue.d.ts.map +1 -0
  129. package/dist/src/components/tabs/__docs__/demos/disabled.demo.vue.d.ts +3 -0
  130. package/dist/src/components/tabs/__docs__/demos/disabled.demo.vue.d.ts.map +1 -0
  131. package/dist/src/components/tabs/__docs__/demos/layout.demo.vue.d.ts +3 -0
  132. package/dist/src/components/tabs/__docs__/demos/layout.demo.vue.d.ts.map +1 -0
  133. package/dist/src/components/tabs/__docs__/demos/line.demo.vue.d.ts +3 -0
  134. package/dist/src/components/tabs/__docs__/demos/line.demo.vue.d.ts.map +1 -0
  135. package/dist/src/components/tabs/__docs__/demos/segment-ghost.demo.vue.d.ts +3 -0
  136. package/dist/src/components/tabs/__docs__/demos/segment-ghost.demo.vue.d.ts.map +1 -0
  137. package/dist/src/components/tabs/__docs__/demos/segment-white.demo.vue.d.ts +3 -0
  138. package/dist/src/components/tabs/__docs__/demos/segment-white.demo.vue.d.ts.map +1 -0
  139. package/dist/src/components/tabs/__docs__/demos/size.demo.vue.d.ts +3 -0
  140. package/dist/src/components/tabs/__docs__/demos/size.demo.vue.d.ts.map +1 -0
  141. package/dist/src/components/tabs/__docs__/meta.d.ts +4 -0
  142. package/dist/src/components/tabs/__docs__/meta.d.ts.map +1 -0
  143. package/dist/src/components/tabs/index.d.ts +4 -0
  144. package/dist/src/components/tabs/index.d.ts.map +1 -0
  145. package/dist/src/components/tabs/tabs.context.d.ts +15 -0
  146. package/dist/src/components/tabs/tabs.context.d.ts.map +1 -0
  147. package/dist/src/components/tabs/tabs.spec.d.ts +2 -0
  148. package/dist/src/components/tabs/tabs.spec.d.ts.map +1 -0
  149. package/dist/src/components/tabs/tabs.types.d.ts +47 -0
  150. package/dist/src/components/tabs/tabs.types.d.ts.map +1 -0
  151. package/dist/src/components/tag/Tag.vue.d.ts +35 -0
  152. package/dist/src/components/tag/Tag.vue.d.ts.map +1 -0
  153. package/dist/src/components/tag/__docs__/demos/basic.demo.vue.d.ts +3 -0
  154. package/dist/src/components/tag/__docs__/demos/basic.demo.vue.d.ts.map +1 -0
  155. package/dist/src/components/tag/__docs__/demos/icon.demo.vue.d.ts +3 -0
  156. package/dist/src/components/tag/__docs__/demos/icon.demo.vue.d.ts.map +1 -0
  157. package/dist/src/components/tag/__docs__/demos/preset.demo.vue.d.ts +3 -0
  158. package/dist/src/components/tag/__docs__/demos/preset.demo.vue.d.ts.map +1 -0
  159. package/dist/src/components/tag/__docs__/demos/size.demo.vue.d.ts +3 -0
  160. package/dist/src/components/tag/__docs__/demos/size.demo.vue.d.ts.map +1 -0
  161. package/dist/src/components/tag/__docs__/demos/variant.demo.vue.d.ts +3 -0
  162. package/dist/src/components/tag/__docs__/demos/variant.demo.vue.d.ts.map +1 -0
  163. package/dist/src/components/tag/__docs__/meta.d.ts +4 -0
  164. package/dist/src/components/tag/__docs__/meta.d.ts.map +1 -0
  165. package/dist/src/components/tag/index.d.ts +3 -0
  166. package/dist/src/components/tag/index.d.ts.map +1 -0
  167. package/dist/src/components/tag/tag.spec.d.ts +2 -0
  168. package/dist/src/components/tag/tag.spec.d.ts.map +1 -0
  169. package/dist/src/components/tag/tag.types.d.ts +40 -0
  170. package/dist/src/components/tag/tag.types.d.ts.map +1 -0
  171. package/dist/src/index.d.ts +13 -0
  172. package/dist/src/index.d.ts.map +1 -0
  173. package/dist/src/styles/index.spec.d.ts +2 -0
  174. package/dist/src/styles/index.spec.d.ts.map +1 -0
  175. package/dist/ui.js +1288 -0
  176. package/dist/ui.umd.cjs +1 -0
  177. package/package.json +38 -0
@@ -0,0 +1,51 @@
1
+ export type ButtonType = 'primary' | 'secondary' | 'tonal' | 'ghost';
2
+ export type ButtonStatus = 'danger' | 'success';
3
+ export type ButtonAppearance = 'default' | 'inverse';
4
+ export type ButtonGhostTextTone = 'secondary' | 'primary';
5
+ export type ButtonSize = 'small' | 'medium' | 'large';
6
+ export type ButtonShape = 'rectangular' | 'pill';
7
+ export type ButtonNativeType = 'button' | 'submit' | 'reset';
8
+ export interface ButtonProps {
9
+ type?: ButtonType;
10
+ status?: ButtonStatus;
11
+ appearance?: ButtonAppearance;
12
+ ghostTextTone?: ButtonGhostTextTone;
13
+ size?: ButtonSize;
14
+ shape?: ButtonShape;
15
+ disabled?: boolean;
16
+ loading?: boolean;
17
+ iconOnly?: boolean;
18
+ nativeType?: ButtonNativeType;
19
+ }
20
+ export interface ResolvedButtonProps {
21
+ type: ButtonType;
22
+ status?: ButtonStatus;
23
+ appearance: ButtonAppearance;
24
+ ghostTextTone: ButtonGhostTextTone;
25
+ size: ButtonSize;
26
+ shape: ButtonShape;
27
+ disabled: boolean;
28
+ loading: boolean;
29
+ iconOnly: boolean;
30
+ nativeType: ButtonNativeType;
31
+ }
32
+ export interface ButtonContentStateInput {
33
+ iconOnly?: boolean;
34
+ hasPrefix?: boolean;
35
+ hasSuffix?: boolean;
36
+ loading?: boolean;
37
+ hasDefaultSlot?: boolean;
38
+ hasAriaLabel?: boolean;
39
+ }
40
+ export interface ButtonContentState {
41
+ showPrefixSlot: boolean;
42
+ showSuffixSlot: boolean;
43
+ showLoadingIndicator: boolean;
44
+ requiresAriaLabel: boolean;
45
+ isInvalidIconOnlyCombination: boolean;
46
+ }
47
+ export declare function resolveButtonProps(props?: ButtonProps): ResolvedButtonProps;
48
+ export declare function getButtonClassNames(props?: ButtonProps): string[];
49
+ export declare function isButtonInteractive(props?: ButtonProps): boolean;
50
+ export declare function getButtonContentState(input?: ButtonContentStateInput): ButtonContentState;
51
+ //# sourceMappingURL=button.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.types.d.ts","sourceRoot":"","sources":["../../../../src/components/button/button.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,OAAO,CAAC;AACrE,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,SAAS,CAAC;AAChD,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,CAAC;AACrD,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,SAAS,CAAC;AAC1D,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AACtD,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,MAAM,CAAC;AACjD,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE7D,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,aAAa,EAAE,mBAAmB,CAAC;IACnC,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,4BAA4B,EAAE,OAAO,CAAC;CACvC;AAED,wBAAgB,kBAAkB,CAAC,KAAK,GAAE,WAAgB,GAAG,mBAAmB,CAa/E;AAED,wBAAgB,mBAAmB,CAAC,KAAK,GAAE,WAAgB,GAAG,MAAM,EAAE,CAkCrE;AAED,wBAAgB,mBAAmB,CAAC,KAAK,GAAE,WAAgB,GAAG,OAAO,CAGpE;AAED,wBAAgB,qBAAqB,CAAC,KAAK,GAAE,uBAA4B,GAAG,kBAAkB,CAgB7F"}
@@ -0,0 +1,2 @@
1
+ export { default as MuButton } from './Button.vue';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=MessageList.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/message/MessageList.vue"],"names":[],"mappings":";AAqiBA,wBAKG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=basic.demo.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basic.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/message/__docs__/demos/basic.demo.vue"],"names":[],"mappings":";AA0OA,wBAKG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=closable.demo.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"closable.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/message/__docs__/demos/closable.demo.vue"],"names":[],"mappings":";AA8JA,wBAKG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=icon.demo.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/message/__docs__/demos/icon.demo.vue"],"names":[],"mappings":";AAgMA,wBAKG"}
@@ -0,0 +1,4 @@
1
+ import type { ComponentDocMeta } from '../../../../internal/docs/schema';
2
+ declare const meta: ComponentDocMeta;
3
+ export default meta;
4
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../../../src/components/message/__docs__/meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,QAAA,MAAM,IAAI,EAAE,gBAwEX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as MessageList } from './MessageList.vue';
2
+ export { message } from './message';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/message/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,39 @@
1
+ import type { Component } from 'vue';
2
+ export type MessageType = 'success' | 'warning' | 'loading' | 'error' | 'danger';
3
+ export type MessageIcon = string | Component;
4
+ export interface MessageOptions {
5
+ duration?: number;
6
+ closable?: boolean;
7
+ resetOnHover?: boolean;
8
+ icon?: MessageIcon;
9
+ }
10
+ export interface MessagePayload extends MessageOptions {
11
+ title: string;
12
+ description?: string;
13
+ }
14
+ export interface MessageItem extends MessagePayload {
15
+ id: number;
16
+ type: MessageType;
17
+ duration: number;
18
+ closable: boolean;
19
+ resetOnHover: boolean;
20
+ }
21
+ export interface MessageState {
22
+ items: MessageItem[];
23
+ }
24
+ export declare const messageState: MessageState;
25
+ interface MessageMethod {
26
+ (text: string): {
27
+ close: () => void;
28
+ };
29
+ (payload: MessagePayload): {
30
+ close: () => void;
31
+ };
32
+ }
33
+ export declare const message: Record<MessageType, MessageMethod>;
34
+ export declare function closeMessage(id: number): void;
35
+ export declare function pauseMessageAutoClose(id: number): void;
36
+ export declare function resumeMessageAutoClose(id: number): void;
37
+ export declare function resetMessageStateForTest(): void;
38
+ export {};
39
+ //# sourceMappingURL=message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../../src/components/message/message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAGrC,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AACjF,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAED,MAAM,WAAW,cAAe,SAAQ,cAAc;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB;AAgBD,eAAO,MAAM,YAAY,EAAE,YAEzB,CAAC;AA4GH,UAAU,aAAa;IACrB,CAAC,IAAI,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;IACtC,CAAC,OAAO,EAAE,cAAc,GAAG;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;CAClD;AAMD,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,WAAW,EAAE,aAAa,CAMtD,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAE7C;AAED,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAetD;AAED,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAavD;AAED,wBAAgB,wBAAwB,IAAI,IAAI,CAO/C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=message.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/message/message.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
1
+ import type { ModalProps } from './modal.types';
2
+ declare var __VLS_5: {}, __VLS_7: {}, __VLS_9: {};
3
+ type __VLS_Slots = {} & {
4
+ title?: (props: typeof __VLS_5) => any;
5
+ } & {
6
+ default?: (props: typeof __VLS_7) => any;
7
+ } & {
8
+ footer?: (props: typeof __VLS_9) => any;
9
+ };
10
+ declare const __VLS_component: import("vue").DefineComponent<ModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ cancel: (event: MouseEvent) => any;
12
+ close: () => any;
13
+ "update:visible": (value: boolean) => any;
14
+ ok: (event: MouseEvent) => any;
15
+ }, string, import("vue").PublicProps, Readonly<ModalProps> & Readonly<{
16
+ onCancel?: ((event: MouseEvent) => any) | undefined;
17
+ onClose?: (() => any) | undefined;
18
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
19
+ onOk?: ((event: MouseEvent) => any) | undefined;
20
+ }>, {
21
+ status: import("./modal.types").ModalStatus;
22
+ size: import("./modal.types").ModalSize;
23
+ title: string;
24
+ closable: boolean;
25
+ variant: import("./modal.types").ModalVariant;
26
+ visible: boolean;
27
+ maskClosable: boolean;
28
+ escToClose: boolean;
29
+ okText: string;
30
+ cancelText: string;
31
+ okLoading: boolean;
32
+ hideOk: boolean;
33
+ hideCancel: boolean;
34
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
36
+ export default _default;
37
+ type __VLS_WithSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
42
+ //# sourceMappingURL=Modal.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/modal/Modal.vue"],"names":[],"mappings":"AAwXA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AA2ThD,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC9D,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAiC9C,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;6EAQnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=basic.demo.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basic.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modal/__docs__/demos/basic.demo.vue"],"names":[],"mappings":";AAkJA,wBAKG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=danger.demo.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"danger.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modal/__docs__/demos/danger.demo.vue"],"names":[],"mappings":";AAsJA,wBAKG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=feedback-dual.demo.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feedback-dual.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modal/__docs__/demos/feedback-dual.demo.vue"],"names":[],"mappings":";AA+IA,wBAKG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=feedback.demo.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feedback.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modal/__docs__/demos/feedback.demo.vue"],"names":[],"mappings":";AA2NA,wBAKG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=imperative.demo.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imperative.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modal/__docs__/demos/imperative.demo.vue"],"names":[],"mappings":";AA2MA,wBAKG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=matrix.demo.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matrix.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modal/__docs__/demos/matrix.demo.vue"],"names":[],"mappings":";AA4VA,wBAKG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=size.demo.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"size.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modal/__docs__/demos/size.demo.vue"],"names":[],"mappings":";AAyNA,wBAKG"}
@@ -0,0 +1,4 @@
1
+ import type { ComponentDocMeta } from '../../../../internal/docs/schema';
2
+ declare const meta: ComponentDocMeta;
3
+ export default meta;
4
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../../../src/components/modal/__docs__/meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,QAAA,MAAM,IAAI,EAAE,gBA+NX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { default as MuModal } from './Modal.vue';
2
+ export { muModal, open as openMuModal } from './modal.imperative';
3
+ export type { ImperativeModalProps } from './modal.imperative';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAClE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { type VNode } from 'vue';
2
+ import type { ModalProps } from './modal.types';
3
+ type ContentInput = string | (() => VNode | string | null);
4
+ export interface ImperativeModalProps extends Omit<ModalProps, 'visible'> {
5
+ content?: ContentInput;
6
+ }
7
+ export declare function open(props?: ImperativeModalProps): Promise<boolean>;
8
+ export declare const muModal: {
9
+ /** 通用版本,透传所有 props,默认 variant='form'。 */
10
+ show: typeof open;
11
+ /** 通用确认弹窗,等价于 show,使用 form 形态 + 自定义 status。 */
12
+ confirm: (props?: ImperativeModalProps) => Promise<boolean>;
13
+ /** 反馈形态 + status='success'。 */
14
+ success: (props?: ImperativeModalProps) => Promise<boolean>;
15
+ /** 反馈形态 + status='danger'。 */
16
+ danger: (props?: ImperativeModalProps) => Promise<boolean>;
17
+ };
18
+ export {};
19
+ //# sourceMappingURL=modal.imperative.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modal.imperative.d.ts","sourceRoot":"","sources":["../../../../src/components/modal/modal.imperative.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,KAAK,EAAE,MAAM,KAAK,CAAC;AAE9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,KAAK,YAAY,GAAG,MAAM,GAAG,CAAC,MAAM,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC,CAAC;AAE3D,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC;IACvE,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;AAQD,wBAAgB,IAAI,CAAC,KAAK,GAAE,oBAAyB,GAAG,OAAO,CAAC,OAAO,CAAC,CA2DvE;AAED,eAAO,MAAM,OAAO;IAClB,yCAAyC;;IAEzC,+CAA+C;sBAC9B,oBAAoB;IACrC,+BAA+B;sBACd,oBAAoB;IAErC,8BAA8B;qBACd,oBAAoB;CAErC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=modal.imperative.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modal.imperative.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/modal/modal.imperative.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=modal.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modal.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/modal/modal.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,41 @@
1
+ import type { ButtonProps } from '../button/button.types';
2
+ export type ModalStatus = 'default' | 'success' | 'danger';
3
+ export type ModalVariant = 'form' | 'feedback';
4
+ export type ModalSize = 'medium' | 'large';
5
+ export interface ModalProps {
6
+ visible?: boolean;
7
+ title?: string;
8
+ status?: ModalStatus;
9
+ variant?: ModalVariant;
10
+ size?: ModalSize;
11
+ width?: string;
12
+ maskClosable?: boolean;
13
+ escToClose?: boolean;
14
+ closable?: boolean;
15
+ okText?: string;
16
+ cancelText?: string;
17
+ okLoading?: boolean;
18
+ hideOk?: boolean;
19
+ hideCancel?: boolean;
20
+ }
21
+ export interface ModalResolvedProps {
22
+ visible: boolean;
23
+ title: string;
24
+ status: ModalStatus;
25
+ variant: ModalVariant;
26
+ size: ModalSize;
27
+ width: string;
28
+ minHeight: string;
29
+ maskClosable: boolean;
30
+ escToClose: boolean;
31
+ closable: boolean;
32
+ okText: string;
33
+ cancelText: string;
34
+ hideOk: boolean;
35
+ hideCancel: boolean;
36
+ okLoading: boolean;
37
+ }
38
+ export declare function resolveModalProps(props?: ModalProps): ModalResolvedProps;
39
+ export declare function getModalClassNames(props?: Pick<ModalProps, 'size' | 'status' | 'variant'>): string[];
40
+ export declare function getModalOkButtonProps(props?: Pick<ModalProps, 'status' | 'variant'>): Pick<ButtonProps, 'type' | 'status'>;
41
+ //# sourceMappingURL=modal.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modal.types.d.ts","sourceRoot":"","sources":["../../../../src/components/modal/modal.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC3D,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,UAAU,CAAC;AAC/C,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE3C,MAAM,WAAW,UAAU;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,YAAY,CAAC;IACtB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;CACpB;AAaD,wBAAgB,iBAAiB,CAAC,KAAK,GAAE,UAAe,GAAG,kBAAkB,CAuB5E;AAED,wBAAgB,kBAAkB,CAChC,KAAK,GAAE,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAM,GAC1D,MAAM,EAAE,CAcV;AAED,wBAAgB,qBAAqB,CACnC,KAAK,GAAE,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,SAAS,CAAM,GACjD,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,QAAQ,CAAC,CAsBtC"}
@@ -0,0 +1,30 @@
1
+ import type { RadioProps, RadioValue } from './radio.types';
2
+ declare var __VLS_1: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ };
6
+ declare const __VLS_component: import("vue").DefineComponent<RadioProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ blur: (event: FocusEvent) => any;
8
+ change: (value: RadioValue, originalEvent: Event) => any;
9
+ focus: (event: FocusEvent) => any;
10
+ "update:modelValue": (value: RadioValue) => any;
11
+ }, string, import("vue").PublicProps, Readonly<RadioProps> & Readonly<{
12
+ onBlur?: ((event: FocusEvent) => any) | undefined;
13
+ onChange?: ((value: RadioValue, originalEvent: Event) => any) | undefined;
14
+ onFocus?: ((event: FocusEvent) => any) | undefined;
15
+ "onUpdate:modelValue"?: ((value: RadioValue) => any) | undefined;
16
+ }>, {
17
+ disabled: boolean;
18
+ name: string;
19
+ value: RadioValue;
20
+ modelValue: RadioValue;
21
+ defaultChecked: boolean;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
24
+ export default _default;
25
+ type __VLS_WithSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
30
+ //# sourceMappingURL=Radio.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Radio.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/radio/Radio.vue"],"names":[],"mappings":"AAoOA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AA4K5D,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA+B/C,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;6EAQnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { RadioGroupProps, RadioValue } from './radio.types';
2
+ declare var __VLS_1: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ };
6
+ declare const __VLS_component: import("vue").DefineComponent<RadioGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ change: (value: RadioValue, originalEvent: Event) => any;
8
+ "update:modelValue": (value: RadioValue) => any;
9
+ }, string, import("vue").PublicProps, Readonly<RadioGroupProps> & Readonly<{
10
+ onChange?: ((value: RadioValue, originalEvent: Event) => any) | undefined;
11
+ "onUpdate:modelValue"?: ((value: RadioValue) => any) | undefined;
12
+ }>, {
13
+ disabled: boolean;
14
+ name: string;
15
+ modelValue: RadioValue;
16
+ defaultValue: RadioValue;
17
+ direction: import("./radio.types").RadioGroupDirection;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
26
+ //# sourceMappingURL=RadioGroup.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/radio/RadioGroup.vue"],"names":[],"mappings":"AAiGA,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAyFjE,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAwB/C,QAAA,MAAM,eAAe;;;;;;;;;;;;6EAQnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=basic.demo.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basic.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/radio/__docs__/demos/basic.demo.vue"],"names":[],"mappings":";AAgJA,wBAKG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=direction.demo.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"direction.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/radio/__docs__/demos/direction.demo.vue"],"names":[],"mappings":";AAqHA,wBAKG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=disabled.demo.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disabled.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/radio/__docs__/demos/disabled.demo.vue"],"names":[],"mappings":";AAwJA,wBAKG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=standalone.demo.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standalone.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/radio/__docs__/demos/standalone.demo.vue"],"names":[],"mappings":";AAgHA,wBAKG"}
@@ -0,0 +1,4 @@
1
+ import type { ComponentDocMeta } from '../../../../internal/docs/schema';
2
+ declare const meta: ComponentDocMeta;
3
+ export default meta;
4
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../../../src/components/radio/__docs__/meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,QAAA,MAAM,IAAI,EAAE,gBA8GX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { default as MuRadio } from './Radio.vue';
2
+ export { default as MuRadioGroup } from './RadioGroup.vue';
3
+ export type { RadioGroupDirection, RadioGroupProps, RadioProps, RadioValue, ResolvedRadioGroupProps, ResolvedRadioProps, } from './radio.types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/radio/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC3D,YAAY,EACV,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,UAAU,EACV,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,eAAe,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ComputedRef, InjectionKey } from 'vue';
2
+ import type { RadioValue } from './radio.types';
3
+ export interface RadioGroupContext {
4
+ value: ComputedRef<RadioValue | undefined>;
5
+ disabled: ComputedRef<boolean>;
6
+ name: ComputedRef<string | undefined>;
7
+ select: (value: RadioValue, event: Event) => void;
8
+ }
9
+ export declare const radioGroupContextKey: InjectionKey<RadioGroupContext>;
10
+ //# sourceMappingURL=radio.context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio.context.d.ts","sourceRoot":"","sources":["../../../../src/components/radio/radio.context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,WAAW,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;IAC3C,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC/B,IAAI,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtC,MAAM,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACnD;AAED,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,iBAAiB,CAA0B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=radio.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/radio/radio.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
1
+ export type RadioValue = string | number | boolean;
2
+ export type RadioGroupDirection = 'horizontal' | 'vertical';
3
+ export interface RadioProps {
4
+ modelValue?: RadioValue;
5
+ value?: RadioValue;
6
+ defaultChecked?: boolean;
7
+ disabled?: boolean;
8
+ name?: string;
9
+ }
10
+ export interface RadioGroupProps {
11
+ modelValue?: RadioValue;
12
+ defaultValue?: RadioValue;
13
+ disabled?: boolean;
14
+ name?: string;
15
+ direction?: RadioGroupDirection;
16
+ }
17
+ export interface ResolvedRadioProps {
18
+ modelValue?: RadioValue;
19
+ value: RadioValue;
20
+ defaultChecked: boolean;
21
+ disabled: boolean;
22
+ name?: string;
23
+ }
24
+ export interface ResolvedRadioGroupProps {
25
+ modelValue?: RadioValue;
26
+ defaultValue?: RadioValue;
27
+ disabled: boolean;
28
+ name?: string;
29
+ direction: RadioGroupDirection;
30
+ }
31
+ export interface RadioClassState {
32
+ checked?: boolean;
33
+ disabled?: boolean;
34
+ }
35
+ export declare function resolveRadioProps(props?: RadioProps): ResolvedRadioProps;
36
+ export declare function resolveRadioGroupProps(props?: RadioGroupProps): ResolvedRadioGroupProps;
37
+ export declare function isRadioControlled(props?: Pick<RadioProps, 'modelValue'>): boolean;
38
+ export declare function isRadioGroupControlled(props?: Pick<RadioGroupProps, 'modelValue'>): boolean;
39
+ export declare function isRadioSelected(currentValue: RadioValue | undefined, radioValue: RadioValue): boolean;
40
+ export declare function getRadioClassNames(props?: RadioProps, state?: RadioClassState): string[];
41
+ export declare function getRadioGroupClassNames(props?: RadioGroupProps): string[];
42
+ //# sourceMappingURL=radio.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio.types.d.ts","sourceRoot":"","sources":["../../../../src/components/radio/radio.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AACnD,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,UAAU,CAAC;AAE5D,MAAM,WAAW,UAAU;IACzB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,mBAAmB,CAAC;CACjC;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,KAAK,EAAE,UAAU,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,mBAAmB,CAAC;CAChC;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAYD,wBAAgB,iBAAiB,CAAC,KAAK,GAAE,UAAe,GAAG,kBAAkB,CAQ5E;AAED,wBAAgB,sBAAsB,CAAC,KAAK,GAAE,eAAoB,GAAG,uBAAuB,CAQ3F;AAED,wBAAgB,iBAAiB,CAAC,KAAK,GAAE,IAAI,CAAC,UAAU,EAAE,YAAY,CAAM,GAAG,OAAO,CAErF;AAED,wBAAgB,sBAAsB,CAAC,KAAK,GAAE,IAAI,CAAC,eAAe,EAAE,YAAY,CAAM,GAAG,OAAO,CAE/F;AAED,wBAAgB,eAAe,CAC7B,YAAY,EAAE,UAAU,GAAG,SAAS,EACpC,UAAU,EAAE,UAAU,GACrB,OAAO,CAET;AAED,wBAAgB,kBAAkB,CAAC,KAAK,GAAE,UAAe,EAAE,KAAK,GAAE,eAAoB,GAAG,MAAM,EAAE,CAahG;AAED,wBAAgB,uBAAuB,CAAC,KAAK,GAAE,eAAoB,GAAG,MAAM,EAAE,CAS7E"}