@pantograph/vue 0.6.5 → 0.7.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 (217) hide show
  1. package/dist/ActionButton/ActionButton.d.ts +2 -150
  2. package/dist/ActionButton/{index.es.js → index.js.js} +1 -1
  3. package/dist/ActionButton/{index.cjs.js → index.umd.cjs.js} +1 -1
  4. package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-BRYxIFQL.js → ActionButton.vue_vue_type_script_setup_true_lang-BbIIyV6t.js} +1 -1
  5. package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-9sHS6TT0.js → ActionButton.vue_vue_type_script_setup_true_lang-OA7L3d0i.js} +4 -4
  6. package/dist/Avatar/Avatar.d.ts +10 -17
  7. package/dist/Avatar/index.d.ts +1 -1
  8. package/dist/Avatar/{index.es.js → index.js.js} +1 -1
  9. package/dist/Avatar/{index.cjs.js → index.umd.cjs.js} +1 -1
  10. package/dist/Avatar.vue_vue_type_style_index_0_lang-BmH5aQJ1.js +188 -0
  11. package/dist/Avatar.vue_vue_type_style_index_0_lang-DO7InR4k.js +1 -0
  12. package/dist/AvatarGroup/AvatarGroup.d.ts +10 -2
  13. package/dist/AvatarGroup/{index.es.js → index.js.js} +1 -1
  14. package/dist/AvatarGroup/{index.cjs.js → index.umd.cjs.js} +1 -1
  15. package/dist/Badge/Badge.d.ts +2 -10
  16. package/dist/Badge/{index.es.js → index.js.js} +1 -1
  17. package/dist/Badge/{index.cjs.js → index.umd.cjs.js} +1 -1
  18. package/dist/{Badge.vue_vue_type_script_setup_true_lang-LwccxMER.js → Badge.vue_vue_type_script_setup_true_lang-DrLIHHCe.js} +4 -4
  19. package/dist/{Badge.vue_vue_type_script_setup_true_lang-DzkeQwzH.js → Badge.vue_vue_type_script_setup_true_lang-zP7Q3GsL.js} +1 -1
  20. package/dist/Base/BaseBadge/BaseBadge.d.ts +13 -12
  21. package/dist/Base/BaseButton/BaseButton.d.ts +16 -12
  22. package/dist/Base/Primitive.d.ts +2 -2
  23. package/dist/BaseBadge.vue_vue_type_style_index_0_lang-Cr9n5QQC.js +1 -0
  24. package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-CHhhflIH.js → BaseBadge.vue_vue_type_style_index_0_lang-DBW85mbj.js} +33 -32
  25. package/dist/BaseButton.vue_vue_type_style_index_0_lang-BaS_JGCX.js +1 -0
  26. package/dist/BaseButton.vue_vue_type_style_index_0_lang-D1NHQaTM.js +159 -0
  27. package/dist/Button/Button.d.ts +2 -150
  28. package/dist/Button/{index.es.js → index.js.js} +1 -1
  29. package/dist/Button/{index.cjs.js → index.umd.cjs.js} +1 -1
  30. package/dist/{Button.vue_vue_type_script_setup_true_lang-DNpM6F5j.js → Button.vue_vue_type_script_setup_true_lang-BjTrpQi-.js} +1 -1
  31. package/dist/{Button.vue_vue_type_script_setup_true_lang-DMOtqE4k.js → Button.vue_vue_type_script_setup_true_lang-CVePGLAE.js} +4 -4
  32. package/dist/ButtonGroup/ButtonGroup.d.ts +2 -2
  33. package/dist/ButtonGroup/{index.es.js → index.js.js} +1 -1
  34. package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-DBq7tYaO.js → ButtonGroup.vue_vue_type_script_setup_true_lang-CdSgBboA.js} +3 -3
  35. package/dist/Checkbox/Checkbox.d.ts +8 -7
  36. package/dist/Checkbox/index.d.ts +1 -1
  37. package/dist/Checkbox/{index.es.js → index.js.js} +1 -1
  38. package/dist/Checkbox/{index.cjs.js → index.umd.cjs.js} +1 -1
  39. package/dist/Checkbox.vue_vue_type_style_index_0_lang-BY73A9jA.js +216 -0
  40. package/dist/Checkbox.vue_vue_type_style_index_0_lang-BezXV-lY.js +1 -0
  41. package/dist/CheckboxGroup/CheckboxGroup.d.ts +5 -4
  42. package/dist/CheckboxGroup/{index.es.js → index.js.js} +1 -1
  43. package/dist/CheckboxGroup/{index.cjs.js → index.umd.cjs.js} +1 -1
  44. package/dist/ConfigProvider/index.d.ts +8 -7
  45. package/dist/ConfigProvider/index.js.js +10 -0
  46. package/dist/ConfigProvider/index.umd.cjs.js +1 -0
  47. package/dist/ConfigProvider/utils.d.ts +4 -3
  48. package/dist/Divider/Divider.d.ts +5 -13
  49. package/dist/Divider/index.d.ts +1 -1
  50. package/dist/Divider/{index.es.js → index.js.js} +1 -1
  51. package/dist/{Divider.vue_vue_type_style_index_0_lang-SBMg48di.js → Divider.vue_vue_type_style_index_0_lang-B_4XMyuu.js} +5 -5
  52. package/dist/FloatButton/FloatButton.d.ts +2 -150
  53. package/dist/FloatButton/{index.es.js → index.js.js} +1 -1
  54. package/dist/FloatButton/{index.cjs.js → index.umd.cjs.js} +1 -1
  55. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-BD8KDs-3.js → FloatButton.vue_vue_type_script_setup_true_lang-CtPvptQe.js} +1 -1
  56. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-CLL_AR_I.js → FloatButton.vue_vue_type_script_setup_true_lang-Mq9SbxDf.js} +4 -4
  57. package/dist/GraphicalObject/GraphicalObject.d.ts +2 -10
  58. package/dist/GraphicalObject/{index.es.js → index.js.js} +1 -1
  59. package/dist/GraphicalObject/{index.cjs.js → index.umd.cjs.js} +1 -1
  60. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-DqfDSUXz.js → GraphicalObject.vue_vue_type_script_setup_true_lang-CIVx-hL6.js} +4 -4
  61. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-BKYCNg9l.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DnyJeR9h.js} +1 -1
  62. package/dist/Icon/Icon.d.ts +5 -13
  63. package/dist/Icon/index.d.ts +1 -1
  64. package/dist/Icon/{index.es.js → index.js.js} +1 -1
  65. package/dist/Icon/{index.cjs.js → index.umd.cjs.js} +1 -1
  66. package/dist/Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js +48 -0
  67. package/dist/Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js +1 -0
  68. package/dist/IconButton/IconButton.d.ts +2 -150
  69. package/dist/IconButton/{index.es.js → index.js.js} +1 -1
  70. package/dist/IconButton/{index.cjs.js → index.umd.cjs.js} +1 -1
  71. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DVbz9uji.js → IconButton.vue_vue_type_script_setup_true_lang-CuxyU51W.js} +1 -1
  72. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DCrUZOP9.js → IconButton.vue_vue_type_script_setup_true_lang-PHB94Ft0.js} +4 -4
  73. package/dist/Image/Image.d.ts +8 -16
  74. package/dist/Image/index.d.ts +1 -1
  75. package/dist/Image/index.js.js +8 -0
  76. package/dist/Image/index.umd.cjs.js +1 -0
  77. package/dist/Image.vue_vue_type_style_index_0_lang-C1KxnvZB.js +1 -0
  78. package/dist/Image.vue_vue_type_style_index_0_lang-f4IzwLoA.js +117 -0
  79. package/dist/IndentLevel/IndentLevel.d.ts +7 -15
  80. package/dist/IndentLevel/index.d.ts +1 -1
  81. package/dist/IndentLevel/{index.es.js → index.js.js} +1 -1
  82. package/dist/IndentLevel/{index.cjs.js → index.umd.cjs.js} +1 -1
  83. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-BjBc3Lu1.js +104 -0
  84. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-D5yeMZLa.js +1 -0
  85. package/dist/Indicator/Indicator.d.ts +2 -10
  86. package/dist/Indicator/{index.es.js → index.js.js} +1 -1
  87. package/dist/Indicator/{index.cjs.js → index.umd.cjs.js} +1 -1
  88. package/dist/Indicator.vue_vue_type_script_setup_true_lang-ODS_K3jA.js +34 -0
  89. package/dist/Indicator.vue_vue_type_script_setup_true_lang-nav_IgdR.js +1 -0
  90. package/dist/Kbd/Kbd.d.ts +5 -13
  91. package/dist/Kbd/{index.es.js → index.js.js} +1 -1
  92. package/dist/Kbd/{index.cjs.js → index.umd.cjs.js} +1 -1
  93. package/dist/{Kbd.vue_vue_type_style_index_0_lang-Br1eygIf.js → Kbd.vue_vue_type_style_index_0_lang-BqEaW_kJ.js} +1 -1
  94. package/dist/{Kbd.vue_vue_type_style_index_0_lang-D5D9tTsQ.js → Kbd.vue_vue_type_style_index_0_lang-DbtLbpq-.js} +13 -13
  95. package/dist/Menu/Menu.d.ts +83 -0
  96. package/dist/Menu/Menu.model.d.ts +2 -0
  97. package/dist/Menu/index.d.ts +2 -0
  98. package/dist/Menu/index.js.js +8 -0
  99. package/dist/Menu/index.umd.cjs.js +1 -0
  100. package/dist/Menu.vue_vue_type_style_index_0_lang-CMub1sQn.js +1 -0
  101. package/dist/Menu.vue_vue_type_style_index_0_lang-Da97vR8P.js +513 -0
  102. package/dist/MenuItem/MenuItem.d.ts +30 -32
  103. package/dist/MenuItem/MenuItemContent.d.ts +56 -0
  104. package/dist/MenuItem/index.d.ts +2 -2
  105. package/dist/MenuItem/index.js.js +6 -0
  106. package/dist/MenuItem/index.umd.cjs.js +1 -0
  107. package/dist/Popover/Popover.d.ts +13 -11
  108. package/dist/Popover/index.d.ts +1 -1
  109. package/dist/Popover/{index.es.js → index.js.js} +1 -1
  110. package/dist/Popover/{index.cjs.js → index.umd.cjs.js} +1 -1
  111. package/dist/Popover.vue_vue_type_style_index_0_lang-CjdTaqQ6.js +138 -0
  112. package/dist/Popover.vue_vue_type_style_index_0_lang-RXHBSX6d.js +1 -0
  113. package/dist/RadioGroup/RadioGroup.d.ts +5 -13
  114. package/dist/RadioGroup/RadioGroupItem.d.ts +4 -1
  115. package/dist/RadioGroup/index.js.js +5 -0
  116. package/dist/RadioGroup/index.umd.cjs.js +1 -0
  117. package/dist/{RadioGroup/index.es.js → RadioGroup.vue_vue_type_script_setup_true_lang-CLCQycnR.js} +22 -22
  118. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-CYjzOKgl.js +1 -0
  119. package/dist/Shortcut/index.js.js +5 -0
  120. package/dist/Shortcut/index.umd.cjs.js +1 -0
  121. package/dist/{Shortcut/index.es.js → Shortcut.vue_vue_type_style_index_0_lang-BQb7DjFe.js} +10 -11
  122. package/dist/Shortcut.vue_vue_type_style_index_0_lang-C49ZdQFd.js +1 -0
  123. package/dist/Skeleton/Skeleton.d.ts +3 -3
  124. package/dist/Skeleton/index.d.ts +1 -1
  125. package/dist/Skeleton/{index.es.js → index.js.js} +1 -1
  126. package/dist/{Skeleton.vue_vue_type_style_index_0_lang-BgVkwMj4.js → Skeleton.vue_vue_type_style_index_0_lang-B6bCkLlD.js} +6 -6
  127. package/dist/Spinner/Spinner.d.ts +7 -6
  128. package/dist/Spinner/index.d.ts +1 -1
  129. package/dist/Spinner/{index.es.js → index.js.js} +1 -1
  130. package/dist/Spinner/{index.cjs.js → index.umd.cjs.js} +1 -1
  131. package/dist/Spinner.vue_vue_type_style_index_0_lang-CxNO28J7.js +1 -0
  132. package/dist/{Spinner.vue_vue_type_style_index_0_lang-BOXr-RUw.js → Spinner.vue_vue_type_style_index_0_lang-D6nB06Z8.js} +10 -10
  133. package/dist/Switch/Switch.d.ts +18 -6
  134. package/dist/Switch/index.d.ts +1 -1
  135. package/dist/Switch/index.js.js +6 -0
  136. package/dist/Switch/index.umd.cjs.js +1 -0
  137. package/dist/Switch.vue_vue_type_style_index_0_lang-C2cAawMN.js +1 -0
  138. package/dist/Switch.vue_vue_type_style_index_0_lang-DCrwOHDJ.js +103 -0
  139. package/dist/Tree/Tree.d.ts +3 -15
  140. package/dist/Tree/Tree.model.d.ts +4 -4
  141. package/dist/Tree/TreeNode.d.ts +2 -14
  142. package/dist/Tree/index.d.ts +1 -1
  143. package/dist/Tree/index.js.js +9 -0
  144. package/dist/Tree/index.umd.cjs.js +1 -0
  145. package/dist/Tree.vue_vue_type_style_index_0_lang-BfqlnQLT.js +1 -0
  146. package/dist/Tree.vue_vue_type_style_index_0_lang-CjXY2DNC.js +574 -0
  147. package/dist/{class-DyU-Ox8D.js → class-DziTeW9B.js} +3 -3
  148. package/dist/cloneDeep-mcJFBKk6.js +1 -0
  149. package/dist/cloneDeep-v62P9_F-.js +8 -0
  150. package/dist/element-CddU1vUY.js +23 -0
  151. package/dist/element-uBbpeYVo.js +1 -0
  152. package/dist/index-BCJFpT7y.js +1 -0
  153. package/dist/index-DgVKQuPc.js +124 -0
  154. package/dist/index.d.ts +33 -22
  155. package/dist/index.js.js +109 -0
  156. package/dist/index.umd.cjs.js +1 -0
  157. package/dist/isArray-B7z6QoM5.js +1 -0
  158. package/dist/isArray-WzO_os3q.js +4 -0
  159. package/dist/isNumber-DlKYWCo3.js +8 -0
  160. package/dist/isNumber-eaDdxhkG.js +1 -0
  161. package/dist/isObjectLike-BatpeCIi.js +29 -0
  162. package/dist/isObjectLike-kO9e4B7g.js +1 -0
  163. package/dist/omit-1sFJ_mId.js +1 -0
  164. package/dist/omit-Cxaoa8oo.js +747 -0
  165. package/dist/pick-DKW6-a-5.js +52 -0
  166. package/dist/pick-DojrVogK.js +1 -0
  167. package/dist/style/index.css +1 -1
  168. package/dist/utils/element.d.ts +8 -4
  169. package/dist/utils/index.d.ts +2 -2
  170. package/dist/utils/{index.es.js → index.js.js} +1 -1
  171. package/dist/utils/{index.cjs.js → index.umd.cjs.js} +1 -1
  172. package/package.json +80 -80
  173. package/dist/Avatar.vue_vue_type_style_index_0_lang-eeAtrd5L.js +0 -188
  174. package/dist/Avatar.vue_vue_type_style_index_0_lang-tRhdiXHB.js +0 -1
  175. package/dist/BaseBadge.vue_vue_type_style_index_0_lang-B1Va5X21.js +0 -1
  176. package/dist/BaseButton.vue_vue_type_style_index_0_lang-BLGNTber.js +0 -151
  177. package/dist/BaseButton.vue_vue_type_style_index_0_lang-HdsdAsR3.js +0 -1
  178. package/dist/Checkbox.vue_vue_type_style_index_0_lang-BQeNpCYy.js +0 -1
  179. package/dist/Checkbox.vue_vue_type_style_index_0_lang-gsOfYgHe.js +0 -245
  180. package/dist/ConfigProvider/index.cjs.js +0 -1
  181. package/dist/ConfigProvider/index.es.js +0 -117
  182. package/dist/Icon.vue_vue_type_style_index_0_lang-D-jaUivh.js +0 -1
  183. package/dist/Icon.vue_vue_type_style_index_0_lang-W7sippxn.js +0 -48
  184. package/dist/Image/index.cjs.js +0 -1
  185. package/dist/Image/index.es.js +0 -117
  186. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-B_x8tshB.js +0 -1
  187. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-jaoDj9GA.js +0 -103
  188. package/dist/Indicator.vue_vue_type_script_setup_true_lang-D2iFmRna.js +0 -1
  189. package/dist/Indicator.vue_vue_type_script_setup_true_lang-jv3IND51.js +0 -34
  190. package/dist/MenuItem/index.cjs.js +0 -1
  191. package/dist/MenuItem/index.es.js +0 -244
  192. package/dist/Popover.vue_vue_type_style_index_0_lang-BSe2YFuh.js +0 -1
  193. package/dist/Popover.vue_vue_type_style_index_0_lang-W2dXxEo7.js +0 -135
  194. package/dist/RadioGroup/index.cjs.js +0 -1
  195. package/dist/Shortcut/index.cjs.js +0 -1
  196. package/dist/Spinner.vue_vue_type_style_index_0_lang-DW5QRtWO.js +0 -1
  197. package/dist/Switch/index.cjs.js +0 -1
  198. package/dist/Switch/index.es.js +0 -104
  199. package/dist/Tabs/Tab.model.d.ts +0 -2
  200. package/dist/Tabs/index.cjs.js +0 -1
  201. package/dist/Tabs/index.d.ts +0 -1
  202. package/dist/Tabs/index.es.js +0 -4
  203. package/dist/Tag/Tag.model.d.ts +0 -4
  204. package/dist/Tag/index.cjs.js +0 -1
  205. package/dist/Tag/index.d.ts +0 -1
  206. package/dist/Tag/index.es.js +0 -21
  207. package/dist/Tree/index.cjs.js +0 -1
  208. package/dist/Tree/index.es.js +0 -458
  209. package/dist/element-BSTINJi_.js +0 -1
  210. package/dist/element-Cf07a63h.js +0 -22
  211. package/dist/index.cjs.js +0 -1
  212. package/dist/index.es.js +0 -66
  213. package/dist/omit-C_ZXwm9T.js +0 -1
  214. package/dist/omit-DtumnYm5.js +0 -760
  215. /package/dist/ButtonGroup/{index.cjs.js → index.umd.cjs.js} +0 -0
  216. /package/dist/Divider/{index.cjs.js → index.umd.cjs.js} +0 -0
  217. /package/dist/Skeleton/{index.cjs.js → index.umd.cjs.js} +0 -0
@@ -1,6 +1,8 @@
1
1
  import { PrimitiveProps } from 'radix-vue';
2
2
  import { ButtonColor, ButtonSize, ButtonType, ButtonVariant } from './BaseButton.model';
3
3
  import { Class } from '../../types';
4
+ import { BadgeSize } from '../BaseBadge/BaseBadge.model';
5
+ import { BaseBadgeSlots } from '../BaseBadge/BaseBadge';
4
6
  export interface BaseButtonProps extends Omit<PrimitiveProps, 'asChild'> {
5
7
  class?: Class;
6
8
  text?: string | number;
@@ -18,23 +20,25 @@ export interface BaseButtonProps extends Omit<PrimitiveProps, 'asChild'> {
18
20
  postIcon?: string;
19
21
  }
20
22
  export interface BaseButtonSlots {
21
- default?: (props: object) => never;
22
- preIcon?: (props: object) => never;
23
- icon?: (props: object) => never;
24
- badge?: (props: object) => never;
25
- postIcon?: (props: object) => never;
23
+ default?: () => never;
24
+ preIcon?: () => never;
25
+ icon?: () => never;
26
+ badge?: (props?: {
27
+ color: 'gray' | 'primary';
28
+ size: BadgeSize;
29
+ }) => never;
30
+ badgeText?: () => never;
31
+ badgeIcon?: BaseBadgeSlots['icon'];
32
+ postIcon?: () => never;
26
33
  }
27
- declare function __VLS_template(): any;
28
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
29
- declare const __VLS_component: import('vue').DefineComponent<BaseButtonProps, {
34
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<BaseButtonProps, {
30
35
  focus(): void;
31
36
  blur(): void;
32
37
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BaseButtonProps> & Readonly<{}>, {
33
- type: ButtonType;
34
- color: ButtonColor;
38
+ type: "fill" | "outline" | "ghost";
39
+ color: "primary" | "gray" | "danger" | "success" | "warning";
35
40
  as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
36
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, any, any>;
37
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
41
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<BaseButtonSlots> & BaseButtonSlots>;
38
42
  export default _default;
39
43
  type __VLS_WithTemplateSlots<T, S> = T & {
40
44
  new (): {
@@ -19,7 +19,7 @@ export declare const Primitive: import('vue').DefineComponent<import('vue').Extr
19
19
  default: boolean;
20
20
  };
21
21
  as: {
22
- type: PropType<AsTag | Component>;
22
+ type: PropType<Component | AsTag>;
23
23
  default: string;
24
24
  };
25
25
  }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
@@ -30,7 +30,7 @@ export declare const Primitive: import('vue').DefineComponent<import('vue').Extr
30
30
  default: boolean;
31
31
  };
32
32
  as: {
33
- type: PropType<AsTag | Component>;
33
+ type: PropType<Component | AsTag>;
34
34
  default: string;
35
35
  };
36
36
  }>> & Readonly<{}>, {
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),C=require("radix-vue"),o=require("./class-CjZYGZDW.js"),z=require("class-variance-authority"),k=require("./options-B4iSAKol.js");require("@iconify/vue");const V=require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),l=["2xsm","xsm","sm","md","tiny","tinier"],c=["rect","pill","minify"],p=["primary","blue","red","orange","yellow","lime","violet","gray","teal","green","sky","cyan","pink","amber","fuchsia"],u=["bold","subtle"],S=e.defineComponent({...k.getComponentOptions("BaseBadge"),__name:"BaseBadge",props:{size:{default:"md"},class:{},text:{},color:{default:"primary"},type:{default:"pill"},mode:{default:"bold"},icon:{},as:{default:"div"}},setup(f){const a=o.getBemBlock("badge"),s=f,d=[...p,"none"],y=z.cva(a,{variants:{size:o.generateVariantClassList(l,a),type:o.generateVariantClassList(c,a),color:o.generateVariantClassList(d,a),mode:o.generateVariantClassList(u,a),text:o.generateVariantClassList("text",a),icon:o.generateVariantClassList("icon",a)}}),i=e.useSlots(),n=e.computed(()=>c.includes(s.type)?s.type:"pill"),g=e.computed(()=>!!(s.text||i.default)),v=e.computed(()=>!!(s.icon||i.icon)),m=e.computed(()=>{let t=l.includes(s.size)?s.size:"md";return t==="sm"&&n.value!=="rect"?n.value==="minify"?t="tiny":n.value==="pill"&&(t="md"):n.value==="minify"&&!["tiny","tinier"].includes(t)?t="tiny":n.value!=="minify"&&["tiny","tinier"].includes(t)&&(t="md"),t}),B=e.computed(()=>{switch(m.value){case"sm":return"xsm";case"xsm":return"2xsm";case"2xsm":return"3xsm";case"md":default:return"sm"}}),_=e.computed(()=>{const t=u.includes(s.mode)?s.mode:"bold";let r=d.includes(s.color)?s.color:"primary";return r==="none"&&n.value!=="rect"&&(r="primary"),{size:m.value,color:r,mode:t,type:n.value,text:g.value,icon:v.value}}),x=e.computed(()=>{const t=s.icon??i.icon;return s.type==="rect"&&(i.default||s.text)?!1:t});return(t,r)=>(e.openBlock(),e.createBlock(e.unref(C.Primitive),{as:t.as,class:e.normalizeClass([e.unref(y)(_.value),s.class])},{default:e.withCtx(()=>[n.value!=="minify"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[x.value?(e.openBlock(),e.createBlock(e.unref(V._sfc_main),{key:0,icon:t.icon,size:B.value},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),_:3},8,["icon","size"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.text),1)])],64)):e.createCommentVNode("",!0)]),_:3},8,["as","class"]))}});exports.BadgeColors=p;exports.BadgeModes=u;exports.BadgeSizes=l;exports.BadgeTypes=c;exports._sfc_main=S;
@@ -1,9 +1,10 @@
1
- import { defineComponent as h, useSlots as w, computed as n, openBlock as r, createBlock as u, unref as d, normalizeClass as V, withCtx as f, createElementBlock as $, Fragment as I, renderSlot as p, createCommentVNode as y, createTextVNode as N, toDisplayString as P } from "vue";
1
+ import { defineComponent as h, useSlots as w, computed as i, createBlock as d, openBlock as r, unref as c, normalizeClass as V, withCtx as p, createElementBlock as $, createCommentVNode as f, Fragment as I, renderSlot as y, createTextVNode as N, toDisplayString as P } from "vue";
2
2
  import { Primitive as T } from "radix-vue";
3
- import { g as i, b as D } from "./class-DyU-Ox8D.js";
3
+ import { g as D, a as n } from "./class-DziTeW9B.js";
4
4
  import { cva as E } from "class-variance-authority";
5
- import { _ as F } from "./Icon.vue_vue_type_style_index_0_lang-W7sippxn.js";
6
- import { g as L } from "./options-JBqnVZUl.js";
5
+ import { g as F } from "./options-JBqnVZUl.js";
6
+ import "@iconify/vue";
7
+ import { _ as L } from "./Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
7
8
  const v = ["2xsm", "xsm", "sm", "md", "tiny", "tinier"], g = ["rect", "pill", "minify"], M = [
8
9
  "primary",
9
10
  "blue",
@@ -20,8 +21,8 @@ const v = ["2xsm", "xsm", "sm", "md", "tiny", "tinier"], g = ["rect", "pill", "m
20
21
  "pink",
21
22
  "amber",
22
23
  "fuchsia"
23
- ], B = ["bold", "subtle"], J = /* @__PURE__ */ h({
24
- ...L("BaseBadge"),
24
+ ], B = ["bold", "subtle"], K = /* @__PURE__ */ h({
25
+ ...F("BaseBadge"),
25
26
  __name: "BaseBadge",
26
27
  props: {
27
28
  size: { default: "md" },
@@ -34,20 +35,20 @@ const v = ["2xsm", "xsm", "sm", "md", "tiny", "tinier"], g = ["rect", "pill", "m
34
35
  as: { default: "div" }
35
36
  },
36
37
  setup(x) {
37
- const o = D("badge"), t = x, c = [...M, "none"], z = E(o, {
38
+ const o = D("badge"), t = x, m = [...M, "none"], z = E(o, {
38
39
  variants: {
39
- size: i(v, o),
40
- type: i(g, o),
41
- color: i(c, o),
42
- mode: i(B, o),
43
- text: i("text", o),
44
- icon: i("icon", o)
40
+ size: n(v, o),
41
+ type: n(g, o),
42
+ color: n(m, o),
43
+ mode: n(B, o),
44
+ text: n("text", o),
45
+ icon: n("icon", o)
45
46
  }
46
- }), a = w(), s = n(() => g.includes(t.type) ? t.type : "pill"), _ = n(() => !!(t.text || a.default)), b = n(() => !!(t.icon || a.icon)), m = n(() => {
47
+ }), a = w(), s = i(() => g.includes(t.type) ? t.type : "pill"), _ = i(() => !!(t.text || a.default)), C = i(() => !!(t.icon || a.icon)), u = i(() => {
47
48
  let e = v.includes(t.size) ? t.size : "md";
48
49
  return e === "sm" && s.value !== "rect" ? s.value === "minify" ? e = "tiny" : s.value === "pill" && (e = "md") : s.value === "minify" && !["tiny", "tinier"].includes(e) ? e = "tiny" : s.value !== "minify" && ["tiny", "tinier"].includes(e) && (e = "md"), e;
49
- }), C = n(() => {
50
- switch (m.value) {
50
+ }), b = i(() => {
51
+ switch (u.value) {
51
52
  case "sm":
52
53
  return "xsm";
53
54
  case "xsm":
@@ -58,41 +59,41 @@ const v = ["2xsm", "xsm", "sm", "md", "tiny", "tinier"], g = ["rect", "pill", "m
58
59
  default:
59
60
  return "sm";
60
61
  }
61
- }), k = n(() => {
62
+ }), k = i(() => {
62
63
  const e = B.includes(t.mode) ? t.mode : "bold";
63
- let l = c.includes(t.color) ? t.color : "primary";
64
+ let l = m.includes(t.color) ? t.color : "primary";
64
65
  return l === "none" && s.value !== "rect" && (l = "primary"), {
65
- size: m.value,
66
+ size: u.value,
66
67
  color: l,
67
68
  mode: e,
68
69
  type: s.value,
69
70
  text: _.value,
70
- icon: b.value
71
+ icon: C.value
71
72
  };
72
- }), S = n(() => {
73
+ }), S = i(() => {
73
74
  const e = t.icon ?? a.icon;
74
75
  return t.type === "rect" && (a.default || t.text) ? !1 : e;
75
76
  });
76
- return (e, l) => (r(), u(d(T), {
77
+ return (e, l) => (r(), d(c(T), {
77
78
  as: e.as,
78
- class: V([d(z)(k.value), t.class])
79
+ class: V([c(z)(k.value), t.class])
79
80
  }, {
80
- default: f(() => [
81
+ default: p(() => [
81
82
  s.value !== "minify" ? (r(), $(I, { key: 0 }, [
82
- S.value ? (r(), u(F, {
83
+ S.value ? (r(), d(c(L), {
83
84
  key: 0,
84
85
  icon: e.icon,
85
- size: C.value
86
+ size: b.value
86
87
  }, {
87
- default: f(() => [
88
- p(e.$slots, "icon")
88
+ default: p(() => [
89
+ y(e.$slots, "icon")
89
90
  ]),
90
91
  _: 3
91
- }, 8, ["icon", "size"])) : y("", !0),
92
- p(e.$slots, "default", {}, () => [
92
+ }, 8, ["icon", "size"])) : f("", !0),
93
+ y(e.$slots, "default", {}, () => [
93
94
  N(P(e.text), 1)
94
95
  ])
95
- ], 64)) : y("", !0)
96
+ ], 64)) : f("", !0)
96
97
  ]),
97
98
  _: 3
98
99
  }, 8, ["as", "class"]));
@@ -100,7 +101,7 @@ const v = ["2xsm", "xsm", "sm", "md", "tiny", "tinier"], g = ["rect", "pill", "m
100
101
  });
101
102
  export {
102
103
  v as B,
103
- J as _,
104
+ K as _,
104
105
  g as a,
105
106
  M as b,
106
107
  B as c
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),b=require("radix-vue"),v=require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),k=require("./Spinner.vue_vue_type_style_index_0_lang-CxNO28J7.js"),V=require("./Badge.vue_vue_type_script_setup_true_lang-zP7Q3GsL.js"),s=require("./ButtonGroup.vue_vue_type_script_setup_true_lang-BSj1Y1j2.js"),n=require("./class-CjZYGZDW.js"),S=require("class-variance-authority"),x=require("./options-B4iSAKol.js"),B="2xsm",h=e.defineComponent({...x.getComponentOptions("BaseButton"),__name:"BaseButton",props:{class:{},text:{},size:{},color:{default:"primary"},type:{default:"fill"},variant:{},loading:{type:Boolean},action:{type:Boolean},active:{type:Boolean},badgeText:{},badgeIcon:{},icon:{},preIcon:{},postIcon:{},as:{default:"button"}},setup(y,{expose:_}){const o=y,a=n.getBemBlock("button"),z=S.cva(a,{variants:{size:n.generateVariantClassList(s.ButtonSizes,a),type:n.generateVariantClassList(s.ButtonTypes,a),color:n.generateVariantClassList(s.ButtonColors,a),variant:n.generateVariantClassList(s.ButtonVariants,a),action:n.generateVariantClassList("action",a),active:n.generateVariantClassList("active",a),text:n.generateVariantClassList("text",a),preIcon:n.generateVariantClassList("preIcon",a),postIcon:n.generateVariantClassList("postIcon",a),loading:n.generateVariantClassList("loading",a)}}),f=s.injectButtonGroupContext({size:e.computed(()=>o.size),variant:e.computed(()=>o.variant)}),l=e.computed(()=>o.variant??f.variant.value??"simple"),i=e.computed(()=>["icon","float"].includes(l.value)),r=e.useSlots(),I=e.computed(()=>{let t=s.ButtonTypes.includes(o.type)?o.type:"fill";const c=o.size??f.size.value,g=c&&s.ButtonSizes.includes(c)?c:"md";let u=o.color&&s.ButtonColors.includes(o.color)?o.color:"primary",p=l.value&&s.ButtonVariants.includes(l.value)?l.value:"simple";return o.action?(p==="float"&&(p="icon"),t==="fill"&&(t="outline"),u=void 0):p==="float"&&(t==="ghost"&&(t="fill"),["primary","gray"].includes(u)||(u="primary")),{size:g,type:t,color:u,variant:p,action:o.action,active:o.active,loading:o.loading,text:!i.value&&!!(o.text||r.default),preIcon:!i.value&&!!(o.preIcon||r.preIcon),postIcon:!i.value&&!!(o.postIcon||r.postIcon)}}),d=e.computed(()=>{switch(o.size){case"sm":return"3xsm";default:return"2xsm"}}),C=e.computed(()=>{switch(o.size){case"sm":return"3xsm";case"lg":return"xsm";case"md":default:return"2xsm"}}),m=e.ref();return _({focus(){var t;(t=m.value)==null||t.focus()},blur(){var t;(t=m.value)==null||t.blur()}}),(t,c)=>(e.openBlock(),e.createBlock(e.unref(b.Primitive),{as:t.as,class:e.normalizeClass([e.unref(z)(I.value),o.class]),tabindex:"0",ref_key:"buttonRef",ref:m},{default:e.withCtx(()=>[t.loading?(e.openBlock(),e.createBlock(k._sfc_main,{key:1,class:e.normalizeClass(e.unref(n.getBemElement)(e.unref(a),"loading")),size:d.value},null,8,["class","size"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(t.preIcon||r.preIcon)&&!i.value?(e.openBlock(),e.createBlock(v._sfc_main,{key:0,icon:t.preIcon,size:d.value},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"preIcon")]),_:3},8,["icon","size"])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createBlock(v._sfc_main,{key:1,icon:t.icon,size:C.value},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),_:3},8,["icon","size"])):e.renderSlot(t.$slots,"default",{key:2},()=>[e.createTextVNode(e.toDisplayString(t.text),1)]),t.action&&t.active&&!i.value&&(t.badgeText||r.badgeText||t.badgeIcon||r.badgeIcon)?e.renderSlot(t.$slots,"badge",e.normalizeProps(e.mergeProps({key:3},{color:t.$attrs.disabled?"gray":"primary",size:B})),()=>[e.createVNode(V._sfc_main,{text:t.badgeText,icon:t.badgeIcon,color:t.$attrs.disabled?"gray":"primary",size:B},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"badgeText")]),icon:e.withCtx(g=>[e.renderSlot(t.$slots,"badgeIcon",e.normalizeProps(e.guardReactiveProps(g)))]),_:3},8,["text","icon","color"])]):e.createCommentVNode("",!0),(t.postIcon||r.postIcon)&&!i.value?(e.openBlock(),e.createBlock(v._sfc_main,{key:4,icon:t.postIcon,size:d.value},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"postIcon")]),_:3},8,["icon","size"])):e.createCommentVNode("",!0)],64))]),_:3},8,["as","class"]))}});exports._sfc_main=h;
@@ -0,0 +1,159 @@
1
+ import { defineComponent as E, computed as i, useSlots as j, ref as A, createBlock as u, openBlock as l, unref as v, normalizeClass as k, withCtx as c, createElementBlock as D, Fragment as F, createCommentVNode as z, renderSlot as r, createTextVNode as G, toDisplayString as L, normalizeProps as $, mergeProps as O, createVNode as _, guardReactiveProps as q } from "vue";
2
+ import { Primitive as H } from "radix-vue";
3
+ import { _ as b } from "./Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
4
+ import { _ as J } from "./Spinner.vue_vue_type_style_index_0_lang-D6nB06Z8.js";
5
+ import { _ as K } from "./Badge.vue_vue_type_script_setup_true_lang-DrLIHHCe.js";
6
+ import { i as M, a as C, c as S, b as T, B as h } from "./ButtonGroup.vue_vue_type_script_setup_true_lang-CdSgBboA.js";
7
+ import { g as Q, a, b as U } from "./class-DziTeW9B.js";
8
+ import { cva as W } from "class-variance-authority";
9
+ import { g as X } from "./options-JBqnVZUl.js";
10
+ const x = "2xsm", re = /* @__PURE__ */ E({
11
+ ...X("BaseButton"),
12
+ __name: "BaseButton",
13
+ props: {
14
+ class: {},
15
+ text: {},
16
+ size: {},
17
+ color: { default: "primary" },
18
+ type: { default: "fill" },
19
+ variant: {},
20
+ loading: { type: Boolean },
21
+ action: { type: Boolean },
22
+ active: { type: Boolean },
23
+ badgeText: {},
24
+ badgeIcon: {},
25
+ icon: {},
26
+ preIcon: {},
27
+ postIcon: {},
28
+ as: { default: "button" }
29
+ },
30
+ setup(P, { expose: V }) {
31
+ const o = P, t = Q("button"), w = W(t, {
32
+ variants: {
33
+ size: a(S, t),
34
+ type: a(C, t),
35
+ color: a(T, t),
36
+ variant: a(h, t),
37
+ action: a("action", t),
38
+ active: a("active", t),
39
+ text: a("text", t),
40
+ preIcon: a("preIcon", t),
41
+ postIcon: a("postIcon", t),
42
+ loading: a("loading", t)
43
+ }
44
+ }), B = M({
45
+ size: i(() => o.size),
46
+ variant: i(() => o.variant)
47
+ }), p = i(() => o.variant ?? B.variant.value ?? "simple"), s = i(() => ["icon", "float"].includes(p.value)), n = j(), N = i(() => {
48
+ let e = C.includes(o.type) ? o.type : "fill";
49
+ const m = o.size ?? B.size.value, y = m && S.includes(m) ? m : "md";
50
+ let d = o.color && T.includes(o.color) ? o.color : "primary", f = p.value && h.includes(p.value) ? p.value : "simple";
51
+ return o.action ? (f === "float" && (f = "icon"), e === "fill" && (e = "outline"), d = void 0) : f === "float" && (e === "ghost" && (e = "fill"), ["primary", "gray"].includes(d) || (d = "primary")), {
52
+ size: y,
53
+ type: e,
54
+ color: d,
55
+ variant: f,
56
+ action: o.action,
57
+ active: o.active,
58
+ loading: o.loading,
59
+ text: !s.value && !!(o.text || n.default),
60
+ preIcon: !s.value && !!(o.preIcon || n.preIcon),
61
+ postIcon: !s.value && !!(o.postIcon || n.postIcon)
62
+ };
63
+ }), g = i(() => {
64
+ switch (o.size) {
65
+ case "sm":
66
+ return "3xsm";
67
+ default:
68
+ return "2xsm";
69
+ }
70
+ }), R = i(() => {
71
+ switch (o.size) {
72
+ case "sm":
73
+ return "3xsm";
74
+ case "lg":
75
+ return "xsm";
76
+ case "md":
77
+ default:
78
+ return "2xsm";
79
+ }
80
+ }), I = A();
81
+ return V({
82
+ focus() {
83
+ var e;
84
+ (e = I.value) == null || e.focus();
85
+ },
86
+ blur() {
87
+ var e;
88
+ (e = I.value) == null || e.blur();
89
+ }
90
+ }), (e, m) => (l(), u(v(H), {
91
+ as: e.as,
92
+ class: k([v(w)(N.value), o.class]),
93
+ tabindex: "0",
94
+ ref_key: "buttonRef",
95
+ ref: I
96
+ }, {
97
+ default: c(() => [
98
+ e.loading ? (l(), u(J, {
99
+ key: 1,
100
+ class: k(v(U)(v(t), "loading")),
101
+ size: g.value
102
+ }, null, 8, ["class", "size"])) : (l(), D(F, { key: 0 }, [
103
+ (e.preIcon || n.preIcon) && !s.value ? (l(), u(b, {
104
+ key: 0,
105
+ icon: e.preIcon,
106
+ size: g.value
107
+ }, {
108
+ default: c(() => [
109
+ r(e.$slots, "preIcon")
110
+ ]),
111
+ _: 3
112
+ }, 8, ["icon", "size"])) : z("", !0),
113
+ s.value ? (l(), u(b, {
114
+ key: 1,
115
+ icon: e.icon,
116
+ size: R.value
117
+ }, {
118
+ default: c(() => [
119
+ r(e.$slots, "icon")
120
+ ]),
121
+ _: 3
122
+ }, 8, ["icon", "size"])) : r(e.$slots, "default", { key: 2 }, () => [
123
+ G(L(e.text), 1)
124
+ ]),
125
+ e.action && e.active && !s.value && (e.badgeText || n.badgeText || e.badgeIcon || n.badgeIcon) ? r(e.$slots, "badge", $(O({ key: 3 }, { color: e.$attrs.disabled ? "gray" : "primary", size: x })), () => [
126
+ _(K, {
127
+ text: e.badgeText,
128
+ icon: e.badgeIcon,
129
+ color: e.$attrs.disabled ? "gray" : "primary",
130
+ size: x
131
+ }, {
132
+ default: c(() => [
133
+ r(e.$slots, "badgeText")
134
+ ]),
135
+ icon: c((y) => [
136
+ r(e.$slots, "badgeIcon", $(q(y)))
137
+ ]),
138
+ _: 3
139
+ }, 8, ["text", "icon", "color"])
140
+ ]) : z("", !0),
141
+ (e.postIcon || n.postIcon) && !s.value ? (l(), u(b, {
142
+ key: 4,
143
+ icon: e.postIcon,
144
+ size: g.value
145
+ }, {
146
+ default: c(() => [
147
+ r(e.$slots, "postIcon")
148
+ ]),
149
+ _: 3
150
+ }, 8, ["icon", "size"])) : z("", !0)
151
+ ], 64))
152
+ ]),
153
+ _: 3
154
+ }, 8, ["as", "class"]));
155
+ }
156
+ });
157
+ export {
158
+ re as _
159
+ };
@@ -1,158 +1,10 @@
1
1
  import { BaseButtonSlots, BaseButtonProps } from '../Base/BaseButton/BaseButton';
2
2
  export type ButtonProps = Partial<Pick<BaseButtonProps, 'as' | 'class' | 'type' | 'color' | 'loading' | 'preIcon' | 'postIcon' | 'size' | 'text'>>;
3
3
  type ButtonSlots = Omit<BaseButtonSlots, 'icon' | 'badge'>;
4
- declare function __VLS_template(): {
5
- attrs: Partial<{}>;
6
- slots: Readonly<ButtonSlots> & ButtonSlots;
7
- refs: {
8
- buttonRef: ({
9
- $: import('vue').ComponentInternalInstance;
10
- $data: {};
11
- $props: {
12
- readonly class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class | undefined;
13
- readonly text?: (string | number) | undefined;
14
- readonly size?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonSize | undefined;
15
- readonly color?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor | undefined;
16
- readonly type?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType | undefined;
17
- readonly variant?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonVariant | undefined;
18
- readonly loading?: boolean | undefined;
19
- readonly action?: boolean | undefined;
20
- readonly active?: boolean | undefined;
21
- readonly badgeText?: string | undefined;
22
- readonly badgeIcon?: string | undefined;
23
- readonly icon?: string | undefined;
24
- readonly preIcon?: string | undefined;
25
- readonly postIcon?: string | undefined;
26
- readonly as?: (import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component) | undefined;
27
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
28
- $attrs: {
29
- [x: string]: unknown;
30
- };
31
- $refs: any;
32
- $slots: Readonly<{
33
- [name: string]: import('vue').Slot<any> | undefined;
34
- }>;
35
- $root: import('vue').ComponentPublicInstance | null;
36
- $parent: import('vue').ComponentPublicInstance | null;
37
- $host: Element | null;
38
- $emit: (event: string, ...args: any[]) => void;
39
- $el: any;
40
- $options: import('vue').ComponentOptionsBase<Readonly<BaseButtonProps> & Readonly<{}>, {
41
- focus(): void;
42
- blur(): void;
43
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
44
- type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
45
- color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
46
- as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
47
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
48
- beforeCreate?: (() => void) | (() => void)[];
49
- created?: (() => void) | (() => void)[];
50
- beforeMount?: (() => void) | (() => void)[];
51
- mounted?: (() => void) | (() => void)[];
52
- beforeUpdate?: (() => void) | (() => void)[];
53
- updated?: (() => void) | (() => void)[];
54
- activated?: (() => void) | (() => void)[];
55
- deactivated?: (() => void) | (() => void)[];
56
- beforeDestroy?: (() => void) | (() => void)[];
57
- beforeUnmount?: (() => void) | (() => void)[];
58
- destroyed?: (() => void) | (() => void)[];
59
- unmounted?: (() => void) | (() => void)[];
60
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
61
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
62
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
63
- };
64
- $forceUpdate: () => void;
65
- $nextTick: typeof import('vue').nextTick;
66
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
67
- } & Readonly<{
68
- type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
69
- color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
70
- as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
71
- }> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "blur" | "focus" | ("type" | "color" | "as")> & import('vue').ShallowUnwrapRef<{
72
- focus(): void;
73
- blur(): void;
74
- }> & {} & import('vue').ComponentCustomProperties & {} & {
75
- $slots: any;
76
- }) | null;
77
- };
78
- rootEl: any;
79
- };
80
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
81
- declare const __VLS_component: import('vue').DefineComponent<Partial<Pick<BaseButtonProps, "size" | "class" | "type" | "color" | "text" | "as" | "loading" | "preIcon" | "postIcon">>, {
4
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Partial<Pick<BaseButtonProps, "size" | "class" | "type" | "color" | "text" | "as" | "loading" | "preIcon" | "postIcon">>, {
82
5
  focus(): void;
83
6
  blur(): void;
84
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Partial<Pick<BaseButtonProps, "size" | "class" | "type" | "color" | "text" | "as" | "loading" | "preIcon" | "postIcon">>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
85
- buttonRef: ({
86
- $: import('vue').ComponentInternalInstance;
87
- $data: {};
88
- $props: {
89
- readonly class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class | undefined;
90
- readonly text?: (string | number) | undefined;
91
- readonly size?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonSize | undefined;
92
- readonly color?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor | undefined;
93
- readonly type?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType | undefined;
94
- readonly variant?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonVariant | undefined;
95
- readonly loading?: boolean | undefined;
96
- readonly action?: boolean | undefined;
97
- readonly active?: boolean | undefined;
98
- readonly badgeText?: string | undefined;
99
- readonly badgeIcon?: string | undefined;
100
- readonly icon?: string | undefined;
101
- readonly preIcon?: string | undefined;
102
- readonly postIcon?: string | undefined;
103
- readonly as?: (import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component) | undefined;
104
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
105
- $attrs: {
106
- [x: string]: unknown;
107
- };
108
- $refs: any;
109
- $slots: Readonly<{
110
- [name: string]: import('vue').Slot<any> | undefined;
111
- }>;
112
- $root: import('vue').ComponentPublicInstance | null;
113
- $parent: import('vue').ComponentPublicInstance | null;
114
- $host: Element | null;
115
- $emit: (event: string, ...args: any[]) => void;
116
- $el: any;
117
- $options: import('vue').ComponentOptionsBase<Readonly<BaseButtonProps> & Readonly<{}>, {
118
- focus(): void;
119
- blur(): void;
120
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
121
- type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
122
- color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
123
- as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
124
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
125
- beforeCreate?: (() => void) | (() => void)[];
126
- created?: (() => void) | (() => void)[];
127
- beforeMount?: (() => void) | (() => void)[];
128
- mounted?: (() => void) | (() => void)[];
129
- beforeUpdate?: (() => void) | (() => void)[];
130
- updated?: (() => void) | (() => void)[];
131
- activated?: (() => void) | (() => void)[];
132
- deactivated?: (() => void) | (() => void)[];
133
- beforeDestroy?: (() => void) | (() => void)[];
134
- beforeUnmount?: (() => void) | (() => void)[];
135
- destroyed?: (() => void) | (() => void)[];
136
- unmounted?: (() => void) | (() => void)[];
137
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
138
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
139
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
140
- };
141
- $forceUpdate: () => void;
142
- $nextTick: typeof import('vue').nextTick;
143
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
144
- } & Readonly<{
145
- type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
146
- color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
147
- as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
148
- }> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "blur" | "focus" | ("type" | "color" | "as")> & import('vue').ShallowUnwrapRef<{
149
- focus(): void;
150
- blur(): void;
151
- }> & {} & import('vue').ComponentCustomProperties & {} & {
152
- $slots: any;
153
- }) | null;
154
- }, any>;
155
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
7
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Partial<Pick<BaseButtonProps, "size" | "class" | "type" | "color" | "text" | "as" | "loading" | "preIcon" | "postIcon">>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<ButtonSlots> & ButtonSlots>;
156
8
  export default _default;
157
9
  type __VLS_WithTemplateSlots<T, S> = T & {
158
10
  new (): {
@@ -1,4 +1,4 @@
1
- import { _ as o, _ as e } from "../Button.vue_vue_type_script_setup_true_lang-DMOtqE4k.js";
1
+ import { _ as o, _ as e } from "../Button.vue_vue_type_script_setup_true_lang-CVePGLAE.js";
2
2
  export {
3
3
  o as Button,
4
4
  e as default
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Button.vue_vue_type_script_setup_true_lang-DNpM6F5j.js");exports.Button=e._sfc_main;exports.default=e._sfc_main;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Button.vue_vue_type_script_setup_true_lang-BjTrpQi-.js");exports.Button=e._sfc_main;exports.default=e._sfc_main;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),p=require("./omit-C_ZXwm9T.js"),l=require("./BaseButton.vue_vue_type_style_index_0_lang-HdsdAsR3.js"),_=require("./options-B4iSAKol.js"),f=e.defineComponent({..._.getComponentOptions("IconButton",!1),__name:"Button",props:{as:{},class:{},type:{},color:{},loading:{type:Boolean},preIcon:{},postIcon:{},size:{},text:{}},setup(s,{expose:r}){const c=s,a=e.useAttrs(),i=e.computed(()=>({...p.omit(a,"variant","icon","action","active","badgeText"),...c})),o=e.ref();return r({focus(){var t;(t=o.value)==null||t.focus()},blur(){var t;(t=o.value)==null||t.blur()}}),(t,m)=>(e.openBlock(),e.createBlock(l._sfc_main,e.mergeProps(i.value,{variant:"simple",ref_key:"buttonRef",ref:o}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),n=>({name:n,fn:e.withCtx(u=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(u)))])}))]),1040))}});exports._sfc_main=f;
1
+ "use strict";const e=require("vue"),p=require("./omit-1sFJ_mId.js"),l=require("./BaseButton.vue_vue_type_style_index_0_lang-BaS_JGCX.js"),_=require("./options-B4iSAKol.js"),f=e.defineComponent({..._.getComponentOptions("IconButton",!1),__name:"Button",props:{as:{},class:{},type:{},color:{},loading:{type:Boolean},preIcon:{},postIcon:{},size:{},text:{}},setup(s,{expose:r}){const c=s,a=e.useAttrs(),i=e.computed(()=>({...p.omit(a,"variant","icon","action","active","badgeText"),...c})),o=e.ref();return r({focus(){var t;(t=o.value)==null||t.focus()},blur(){var t;(t=o.value)==null||t.blur()}}),(t,m)=>(e.openBlock(),e.createBlock(l._sfc_main,e.mergeProps(i.value,{variant:"simple",ref_key:"buttonRef",ref:o}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),n=>({name:n,fn:e.withCtx(u=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(u)))])}))]),1040))}});exports._sfc_main=f;
@@ -1,6 +1,6 @@
1
- import { defineComponent as i, useAttrs as m, computed as u, ref as l, openBlock as f, createBlock as _, mergeProps as d, createSlots as b, renderList as g, withCtx as v, renderSlot as B, normalizeProps as k, guardReactiveProps as x } from "vue";
2
- import { o as y } from "./omit-DtumnYm5.js";
3
- import { _ as C } from "./BaseButton.vue_vue_type_style_index_0_lang-BLGNTber.js";
1
+ import { defineComponent as i, useAttrs as m, computed as u, ref as l, createBlock as f, openBlock as _, mergeProps as d, createSlots as b, renderList as g, withCtx as v, renderSlot as B, normalizeProps as k, guardReactiveProps as x } from "vue";
2
+ import { o as y } from "./omit-Cxaoa8oo.js";
3
+ import { _ as C } from "./BaseButton.vue_vue_type_style_index_0_lang-D1NHQaTM.js";
4
4
  import { g as I } from "./options-JBqnVZUl.js";
5
5
  const O = /* @__PURE__ */ i({
6
6
  ...I("IconButton", !1),
@@ -30,7 +30,7 @@ const O = /* @__PURE__ */ i({
30
30
  var e;
31
31
  (e = o.value) == null || e.blur();
32
32
  }
33
- }), (e, P) => (f(), _(C, d(c.value, {
33
+ }), (e, P) => (_(), f(C, d(c.value, {
34
34
  variant: "simple",
35
35
  ref_key: "buttonRef",
36
36
  ref: o
@@ -30,10 +30,10 @@ export declare const injectButtonGroupContext: <T extends {
30
30
  variant: ComputedRef<ButtonVariant | undefined>;
31
31
  };
32
32
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
33
- size: ButtonSize;
33
+ size: "sm" | "md" | "lg";
34
34
  split: boolean;
35
35
  as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
36
- variant: ButtonVariant;
36
+ variant: "icon" | "simple" | "float";
37
37
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
38
38
  default?(_: {}): any;
39
39
  }>;
@@ -1,4 +1,4 @@
1
- import { _ as u, _ as e, i as n, p } from "../ButtonGroup.vue_vue_type_script_setup_true_lang-DBq7tYaO.js";
1
+ import { _ as u, _ as e, i as n, p } from "../ButtonGroup.vue_vue_type_script_setup_true_lang-CdSgBboA.js";
2
2
  export {
3
3
  u as ButtonGroup,
4
4
  e as default,
@@ -1,6 +1,6 @@
1
- import { defineComponent as l, computed as a, openBlock as u, createBlock as c, unref as e, normalizeClass as m, withCtx as f, renderSlot as B } from "vue";
1
+ import { defineComponent as l, computed as a, createBlock as u, openBlock as c, unref as e, normalizeClass as m, withCtx as f, renderSlot as B } from "vue";
2
2
  import { createContext as g, Primitive as d } from "radix-vue";
3
- import { g as n, a as C, b as v } from "./class-DyU-Ox8D.js";
3
+ import { b as C, a as n, g as v } from "./class-DziTeW9B.js";
4
4
  import { g as G } from "./options-JBqnVZUl.js";
5
5
  import { cva as z } from "class-variance-authority";
6
6
  const j = ["simple", "icon", "float"], E = ["fill", "outline", "ghost"], L = ["primary", "danger", "success", "warning", "gray"], x = ["sm", "md", "lg"], _ = [...x, "none"], [O, y] = g("ButtonGroup"), P = /* @__PURE__ */ l({
@@ -24,7 +24,7 @@ const j = ["simple", "icon", "float"], E = ["fill", "outline", "ghost"], L = ["p
24
24
  return y({
25
25
  size: a(() => t.size),
26
26
  variant: a(() => t.variant)
27
- }), (o, b) => (u(), c(e(d), {
27
+ }), (o, b) => (c(), u(e(d), {
28
28
  as: o.as,
29
29
  class: m([
30
30
  e(p)({