@pantograph/vue 0.10.1 → 0.10.2

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 (212) hide show
  1. package/dist/ActionButton/ActionButton.d.ts +79 -3
  2. package/dist/ActionButton/index.js.js +1 -1
  3. package/dist/ActionButton/index.umd.cjs.js +1 -1
  4. package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-KL8JuFlI.js → ActionButton.vue_vue_type_script_setup_true_lang-B8F78aq-.js} +1 -2
  5. package/dist/ActionButton.vue_vue_type_script_setup_true_lang-DYj83ijm.js +1 -0
  6. package/dist/Avatar/Avatar.d.ts +14 -7
  7. package/dist/Avatar/index.js.js +1 -1
  8. package/dist/Avatar/index.umd.cjs.js +1 -1
  9. package/dist/Avatar.vue_vue_type_style_index_0_lang-BwkELI0y.js +1 -0
  10. package/dist/Avatar.vue_vue_type_style_index_0_lang-DheqjJPa.js +182 -0
  11. package/dist/AvatarGroup/AvatarGroup.d.ts +2 -5
  12. package/dist/AvatarGroup/index.js.js +1 -1
  13. package/dist/AvatarGroup/index.umd.cjs.js +1 -1
  14. package/dist/Badge/Badge.d.ts +9 -2
  15. package/dist/Badge/index.js.js +1 -1
  16. package/dist/Badge/index.umd.cjs.js +1 -1
  17. package/dist/{Badge.vue_vue_type_script_setup_true_lang-nmw9qfJ_.js → Badge.vue_vue_type_script_setup_true_lang-CCIamdNB.js} +1 -2
  18. package/dist/Badge.vue_vue_type_script_setup_true_lang-ooDlpl8j.js +1 -0
  19. package/dist/Base/BaseBadge/BaseBadge.d.ts +12 -7
  20. package/dist/Base/BaseButton/BaseButton.d.ts +14 -7
  21. package/dist/BaseBadge.vue_vue_type_style_index_0_lang-BNs69VP4.js +1 -0
  22. package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-MM6bsdzR.js → BaseBadge.vue_vue_type_style_index_0_lang-Bh1152XC.js} +46 -52
  23. package/dist/BaseButton.vue_vue_type_style_index_0_lang-CgEN8K4D.js +1 -0
  24. package/dist/BaseButton.vue_vue_type_style_index_0_lang-D7irHU-6.js +153 -0
  25. package/dist/Button/Button.d.ts +79 -3
  26. package/dist/Button/index.js.js +1 -1
  27. package/dist/Button/index.umd.cjs.js +1 -1
  28. package/dist/Button.vue_vue_type_script_setup_true_lang-BA3bxjLD.js +1 -0
  29. package/dist/{Button.vue_vue_type_script_setup_true_lang-DIj3gT2D.js → Button.vue_vue_type_script_setup_true_lang-NKY7YYCC.js} +5 -6
  30. package/dist/ButtonGroup/ButtonGroup.d.ts +3 -5
  31. package/dist/ButtonGroup/index.js.js +1 -1
  32. package/dist/ButtonGroup/index.umd.cjs.js +1 -1
  33. package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-CT_Kgpjf.js +47 -0
  34. package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-D486_o-Z.js +1 -0
  35. package/dist/Checkbox/Checkbox.d.ts +12 -4
  36. package/dist/Checkbox/index.js.js +1 -1
  37. package/dist/Checkbox/index.umd.cjs.js +1 -1
  38. package/dist/Checkbox.vue_vue_type_style_index_0_lang-CSmeTeZh.js +209 -0
  39. package/dist/Checkbox.vue_vue_type_style_index_0_lang-D0sF0-hW.js +1 -0
  40. package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -5
  41. package/dist/CheckboxGroup/index.js.js +1 -1
  42. package/dist/CheckboxGroup/index.umd.cjs.js +1 -1
  43. package/dist/ColorPicker/index.js.js +1 -1
  44. package/dist/ColorPicker/index.umd.cjs.js +1 -1
  45. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-C36JPo4m.js → ColorPicker.vue_vue_type_style_index_0_lang-B1Rst4Q9.js} +1 -1
  46. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-Dq-kFXox.js → ColorPicker.vue_vue_type_style_index_0_lang-CEz3bIJG.js} +2 -2
  47. package/dist/ColorSwatch/ColorSwatch.d.ts +11 -4
  48. package/dist/ColorSwatch/index.js.js +1 -1
  49. package/dist/ColorSwatch/index.umd.cjs.js +1 -1
  50. package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-BH-NSALx.js +1 -0
  51. package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-CL9dd69H.js +100 -0
  52. package/dist/ColorSwatchGroup/ColorSwatchGroup.d.ts +17 -11
  53. package/dist/ColorSwatchGroup/index.js.js +1 -1
  54. package/dist/ColorSwatchGroup/index.umd.cjs.js +1 -1
  55. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-CpgTgIuE.js +1 -0
  56. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-Cwh2REmh.js +159 -0
  57. package/dist/ColorTrigger/ColorTrigger.d.ts +13 -5
  58. package/dist/ColorTrigger/index.js.js +1 -1
  59. package/dist/ColorTrigger/index.umd.cjs.js +1 -1
  60. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-BNFu93Ns.js +86 -0
  61. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-C8kPa338.js +1 -0
  62. package/dist/ConfigProvider/index.d.ts +6 -6
  63. package/dist/ConfigProvider/utils.d.ts +2 -2
  64. package/dist/Divider/Divider.d.ts +13 -8
  65. package/dist/Divider/index.js.js +1 -1
  66. package/dist/Divider/index.umd.cjs.js +1 -1
  67. package/dist/Divider.vue_vue_type_style_index_0_lang-BELWThBf.js +1 -0
  68. package/dist/Divider.vue_vue_type_style_index_0_lang-CRs1KEcj.js +34 -0
  69. package/dist/FloatButton/FloatButton.d.ts +79 -3
  70. package/dist/FloatButton/index.js.js +1 -1
  71. package/dist/FloatButton/index.umd.cjs.js +1 -1
  72. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-Bapsnc_p.js → FloatButton.vue_vue_type_script_setup_true_lang-BAxKXFb0.js} +1 -2
  73. package/dist/FloatButton.vue_vue_type_script_setup_true_lang-C5hAAZZQ.js +1 -0
  74. package/dist/GraphicalObject/GraphicalObject.d.ts +9 -2
  75. package/dist/GraphicalObject/index.js.js +1 -1
  76. package/dist/GraphicalObject/index.umd.cjs.js +1 -1
  77. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-B3FouRlw.js → GraphicalObject.vue_vue_type_script_setup_true_lang-BEZ6FkRf.js} +1 -2
  78. package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-CdO2zArd.js +1 -0
  79. package/dist/Icon/Icon.d.ts +11 -4
  80. package/dist/IconButton/IconButton.d.ts +79 -3
  81. package/dist/IconButton/index.js.js +1 -1
  82. package/dist/IconButton/index.umd.cjs.js +1 -1
  83. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-dI6-RNyi.js → IconButton.vue_vue_type_script_setup_true_lang-CchpvdkX.js} +1 -2
  84. package/dist/IconButton.vue_vue_type_script_setup_true_lang-c16Xu6mm.js +1 -0
  85. package/dist/Image/Image.d.ts +16 -8
  86. package/dist/Image/index.js.js +1 -1
  87. package/dist/Image/index.umd.cjs.js +1 -1
  88. package/dist/{Image.vue_vue_type_style_index_0_lang-DbqKKOAs.js → Image.vue_vue_type_style_index_0_lang-Hg1jFz-L.js} +1 -1
  89. package/dist/{Image.vue_vue_type_style_index_0_lang-Cku5hiNE.js → Image.vue_vue_type_style_index_0_lang-pkzjPQyu.js} +2 -2
  90. package/dist/IndentLevel/IndentLevel.d.ts +14 -8
  91. package/dist/IndentLevel/index.js.js +1 -1
  92. package/dist/IndentLevel/index.umd.cjs.js +1 -1
  93. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-DqqJTrDF.js +1 -0
  94. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-ZZ1uEhji.js +94 -0
  95. package/dist/Indicator/Indicator.d.ts +9 -2
  96. package/dist/Indicator/index.js.js +1 -1
  97. package/dist/Indicator/index.umd.cjs.js +1 -1
  98. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-ICqvLVbq.js → Indicator.vue_vue_type_script_setup_true_lang-B16OmZLF.js} +1 -2
  99. package/dist/Indicator.vue_vue_type_script_setup_true_lang-BibzfVax.js +1 -0
  100. package/dist/Input/Input.d.ts +15 -7
  101. package/dist/Input/index.js.js +1 -1
  102. package/dist/Input/index.umd.cjs.js +1 -1
  103. package/dist/Input.vue_vue_type_style_index_0_lang-CcR6oCIR.js +407 -0
  104. package/dist/Input.vue_vue_type_style_index_0_lang-DVN491cI.js +1 -0
  105. package/dist/Kbd/Kbd.d.ts +13 -9
  106. package/dist/Kbd/index.js.js +1 -1
  107. package/dist/Kbd/index.umd.cjs.js +1 -1
  108. package/dist/Kbd.vue_vue_type_style_index_0_lang-CpDjSQqg.js +1 -0
  109. package/dist/Kbd.vue_vue_type_style_index_0_lang-D1y-0kBN.js +47 -0
  110. package/dist/Menu/Menu.d.ts +9 -10
  111. package/dist/Menu/index.js.js +1 -1
  112. package/dist/Menu/index.umd.cjs.js +1 -1
  113. package/dist/Menu.vue_vue_type_style_index_0_lang-B64mJSxF.js +481 -0
  114. package/dist/Menu.vue_vue_type_style_index_0_lang-Sq_kFrSI.js +1 -0
  115. package/dist/MenuItem/MenuItem.d.ts +1 -1
  116. package/dist/MenuItem/index.js.js +1 -1
  117. package/dist/MenuItem/index.umd.cjs.js +1 -1
  118. package/dist/Popover/Popover.d.ts +82 -5
  119. package/dist/RadioGroup/RadioGroup.d.ts +12 -5
  120. package/dist/RadioGroup/RadioGroupItem.d.ts +11 -3
  121. package/dist/RadioGroup/index.d.ts +1 -1
  122. package/dist/RadioGroup/index.js.js +3 -2
  123. package/dist/RadioGroup/index.umd.cjs.js +1 -1
  124. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-C8nd4TEI.js +100 -0
  125. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-DjEHmvMo.js +1 -0
  126. package/dist/Shortcut/Shortcut.d.ts +1 -2
  127. package/dist/Shortcut/index.js.js +1 -1
  128. package/dist/Shortcut/index.umd.cjs.js +1 -1
  129. package/dist/Shortcut.vue_vue_type_style_index_0_lang-D4xo_UgO.js +32 -0
  130. package/dist/Shortcut.vue_vue_type_style_index_0_lang-D8_aLpYM.js +1 -0
  131. package/dist/Skeleton/Skeleton.d.ts +3 -7
  132. package/dist/Skeleton/index.js.js +1 -1
  133. package/dist/Skeleton/index.umd.cjs.js +1 -1
  134. package/dist/Skeleton.vue_vue_type_style_index_0_lang-C1I-p4Yn.js +1 -0
  135. package/dist/Skeleton.vue_vue_type_style_index_0_lang-IQEtEnZx.js +58 -0
  136. package/dist/Spinner/Spinner.d.ts +11 -6
  137. package/dist/Spinner/index.js.js +1 -1
  138. package/dist/Spinner/index.umd.cjs.js +1 -1
  139. package/dist/Spinner.vue_vue_type_style_index_0_lang-BP7P5xu8.js +1 -0
  140. package/dist/Spinner.vue_vue_type_style_index_0_lang-BYqqSQAx.js +73 -0
  141. package/dist/Switch/Switch.d.ts +14 -3
  142. package/dist/Switch/index.js.js +1 -1
  143. package/dist/Switch/index.umd.cjs.js +1 -1
  144. package/dist/Switch.vue_vue_type_style_index_0_lang-CoXu3YJ-.js +1 -0
  145. package/dist/Switch.vue_vue_type_style_index_0_lang-CvWay8Wa.js +106 -0
  146. package/dist/Tree/Tree.d.ts +12 -3
  147. package/dist/Tree/TreeNode.d.ts +11 -2
  148. package/dist/Tree/index.js.js +1 -1
  149. package/dist/Tree/index.umd.cjs.js +1 -1
  150. package/dist/Tree.vue_vue_type_style_index_0_lang-BCYjSwUH.js +545 -0
  151. package/dist/Tree.vue_vue_type_style_index_0_lang-CvskECfv.js +1 -0
  152. package/dist/index.js.js +66 -62
  153. package/dist/index.umd.cjs.js +1 -1
  154. package/dist/style/index.css +1 -1
  155. package/dist/useId-DvOSMFGX.js +9 -0
  156. package/dist/useId-Ku3O_8TK.js +1 -0
  157. package/dist/useInputDataStates-CZbdWpyp.js +26 -0
  158. package/dist/useInputDataStates-CbRgNQqU.js +1 -0
  159. package/dist/utils/index.d.ts +2 -0
  160. package/dist/utils/index.js.js +10 -6
  161. package/dist/utils/index.umd.cjs.js +1 -1
  162. package/dist/utils/useId.d.ts +1 -0
  163. package/dist/utils/useInputDataStates.d.ts +19 -0
  164. package/package.json +5 -3
  165. package/dist/ActionButton.vue_vue_type_script_setup_true_lang-BVtP6mpl.js +0 -1
  166. package/dist/Avatar.vue_vue_type_style_index_0_lang-BHYcXGuX.js +0 -188
  167. package/dist/Avatar.vue_vue_type_style_index_0_lang-DKGY3npY.js +0 -1
  168. package/dist/Badge.vue_vue_type_script_setup_true_lang-BcdNUohN.js +0 -1
  169. package/dist/Base/Primitive.d.ts +0 -39
  170. package/dist/Base/Slot.d.ts +0 -6
  171. package/dist/BaseBadge.vue_vue_type_style_index_0_lang-OEeJw0Sy.js +0 -1
  172. package/dist/BaseButton.vue_vue_type_style_index_0_lang-BrQJfrgg.js +0 -159
  173. package/dist/BaseButton.vue_vue_type_style_index_0_lang-CTK5nNR6.js +0 -1
  174. package/dist/Button.vue_vue_type_script_setup_true_lang-7V57ztN4.js +0 -1
  175. package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-BSj1Y1j2.js +0 -1
  176. package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-CdSgBboA.js +0 -52
  177. package/dist/Checkbox.vue_vue_type_style_index_0_lang-C6Mdufam.js +0 -1
  178. package/dist/Checkbox.vue_vue_type_style_index_0_lang-DNlvOQmv.js +0 -216
  179. package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-Bo-zDAyc.js +0 -1
  180. package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-DmLhCPh4.js +0 -102
  181. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-CIkTvqD_.js +0 -165
  182. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-T_L-D2SS.js +0 -1
  183. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-DSZ8fAZ9.js +0 -91
  184. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-DwyinKNj.js +0 -1
  185. package/dist/Divider.vue_vue_type_style_index_0_lang-B_4XMyuu.js +0 -40
  186. package/dist/Divider.vue_vue_type_style_index_0_lang-C6Suy0tD.js +0 -1
  187. package/dist/FloatButton.vue_vue_type_script_setup_true_lang-C56u1xaL.js +0 -1
  188. package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-DlMeNk_1.js +0 -1
  189. package/dist/IconButton.vue_vue_type_script_setup_true_lang-7QB-mmyg.js +0 -1
  190. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-CM6s5E6c.js +0 -1
  191. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-nGsyFkwr.js +0 -104
  192. package/dist/Indicator.vue_vue_type_script_setup_true_lang-C4Ecg4iy.js +0 -1
  193. package/dist/Input.vue_vue_type_style_index_0_lang-D0zx-hd_.js +0 -1
  194. package/dist/Input.vue_vue_type_style_index_0_lang-cjYJlwXf.js +0 -413
  195. package/dist/Kbd.vue_vue_type_style_index_0_lang-BqEaW_kJ.js +0 -1
  196. package/dist/Kbd.vue_vue_type_style_index_0_lang-DbtLbpq-.js +0 -60
  197. package/dist/Menu.vue_vue_type_style_index_0_lang-DHGED80D.js +0 -481
  198. package/dist/Menu.vue_vue_type_style_index_0_lang-DU0Rexv8.js +0 -1
  199. package/dist/Primitive-BT1RjuGS.js +0 -1
  200. package/dist/Primitive-nOVjbfuc.js +0 -47
  201. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-DWfKIuDH.js +0 -100
  202. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-s-m7W1By.js +0 -1
  203. package/dist/Shortcut.vue_vue_type_style_index_0_lang-BQb7DjFe.js +0 -41
  204. package/dist/Shortcut.vue_vue_type_style_index_0_lang-C49ZdQFd.js +0 -1
  205. package/dist/Skeleton.vue_vue_type_style_index_0_lang-B6bCkLlD.js +0 -66
  206. package/dist/Skeleton.vue_vue_type_style_index_0_lang-PNNUgKOq.js +0 -1
  207. package/dist/Spinner.vue_vue_type_style_index_0_lang-CxNO28J7.js +0 -1
  208. package/dist/Spinner.vue_vue_type_style_index_0_lang-D6nB06Z8.js +0 -85
  209. package/dist/Switch.vue_vue_type_style_index_0_lang-BzC8-ylY.js +0 -103
  210. package/dist/Switch.vue_vue_type_style_index_0_lang-DnNHGn1c.js +0 -1
  211. package/dist/Tree.vue_vue_type_style_index_0_lang-B-BPV_p7.js +0 -547
  212. package/dist/Tree.vue_vue_type_style_index_0_lang-BIpFWo5L.js +0 -1
@@ -1,6 +1,6 @@
1
- import { RadioGroupItemProps as RadixRadioGroupItemProps, PrimitiveProps } from 'radix-vue';
1
+ import { RadioGroupItemProps as RadixRadioGroupItemProps } from 'radix-vue';
2
2
  import { Class } from '../types';
3
- export interface RadioGroupItemProps extends Omit<PrimitiveProps, 'asChild'>, Omit<RadixRadioGroupItemProps, 'asChild'> {
3
+ export interface RadioGroupItemProps extends Omit<RadixRadioGroupItemProps, 'asChild' | 'as'> {
4
4
  class?: Class;
5
5
  rootCls?: Class;
6
6
  labelCls?: Class;
@@ -10,7 +10,15 @@ export declare const radioGroupPrefix: string;
10
10
  export interface RadioGroupSlots {
11
11
  label?: () => never;
12
12
  }
13
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<RadioGroupItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<RadioGroupSlots> & RadioGroupSlots>;
13
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ blur: (e: InputEvent) => any;
15
+ focus: (e: InputEvent) => any;
16
+ "update:modelValue": (payload: string) => any;
17
+ }, string, import('vue').PublicProps, Readonly<RadioGroupItemProps> & Readonly<{
18
+ onBlur?: ((e: InputEvent) => any) | undefined;
19
+ onFocus?: ((e: InputEvent) => any) | undefined;
20
+ "onUpdate:modelValue"?: ((payload: string) => any) | undefined;
21
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<RadioGroupSlots> & RadioGroupSlots>;
14
22
  export default _default;
15
23
  type __VLS_WithTemplateSlots<T, S> = T & {
16
24
  new (): {
@@ -1,2 +1,2 @@
1
- export { default as RadioGroup, type RadioGroupProps } from './RadioGroup';
1
+ export { default as RadioGroup, type RadioGroupProps, default } from './RadioGroup';
2
2
  export { default as RadioGroupItem, type RadioGroupItemProps } from './RadioGroupItem';
@@ -1,5 +1,6 @@
1
- import { _ as r, a as p } from "../RadioGroup.vue_vue_type_script_setup_true_lang-DWfKIuDH.js";
1
+ import { _ as r, a as d, _ as e } from "../RadioGroup.vue_vue_type_script_setup_true_lang-C8nd4TEI.js";
2
2
  export {
3
3
  r as RadioGroup,
4
- p as RadioGroupItem
4
+ d as RadioGroupItem,
5
+ e as default
5
6
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../RadioGroup.vue_vue_type_script_setup_true_lang-s-m7W1By.js");exports.RadioGroup=e._sfc_main;exports.RadioGroupItem=e._sfc_main$1;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../RadioGroup.vue_vue_type_script_setup_true_lang-DjEHmvMo.js");exports.RadioGroup=e._sfc_main;exports.RadioGroupItem=e._sfc_main$1;exports.default=e._sfc_main;
@@ -0,0 +1,100 @@
1
+ import { defineComponent as G, useSlots as P, computed as m, createElementBlock as g, openBlock as t, mergeProps as d, unref as e, createVNode as _, createCommentVNode as R, withCtx as V, normalizeClass as v, renderSlot as h, createTextVNode as S, toDisplayString as z, createBlock as y, Fragment as w, renderList as x } from "vue";
2
+ import { RadioGroupItem as D, RadioGroupIndicator as E, useForwardPropsEmits as L, RadioGroupRoot as N } from "radix-vue";
3
+ import { cva as $ } from "class-variance-authority";
4
+ import { o as k } from "./omit-BEkBWXra.js";
5
+ import { g as I } from "./options-JBqnVZUl.js";
6
+ import { u as q } from "./useId-DvOSMFGX.js";
7
+ import { U as F } from "./useInputDataStates-CZbdWpyp.js";
8
+ import { g as U, b as n, a as O } from "./class-DziTeW9B.js";
9
+ const T = ["for"], B = U("radio_group"), j = /* @__PURE__ */ G({
10
+ ...I("RadioGroupItem"),
11
+ __name: "RadioGroupItem",
12
+ props: {
13
+ class: {},
14
+ rootCls: {},
15
+ labelCls: {},
16
+ label: {},
17
+ id: {},
18
+ value: {},
19
+ disabled: { type: Boolean },
20
+ required: { type: Boolean },
21
+ name: {}
22
+ },
23
+ emits: ["update:modelValue", "blur", "focus"],
24
+ setup(u, { emit: p }) {
25
+ const o = u, s = n(B, "item"), c = P(), f = p, l = m(() => o.id ?? q(s)), { rootBindings: a, inputBindings: C } = F({
26
+ getDisabled: () => o.disabled,
27
+ emit: f
28
+ }), r = m(() => ({
29
+ ...k(o, "class", "id", "rootCls", "labelCls", "label"),
30
+ id: l.value,
31
+ ...C.value
32
+ })), b = m(() => !!(c.label || o.label));
33
+ return (i, H) => (t(), g("div", d({
34
+ class: [e(n)(e(s), "root"), i.rootCls]
35
+ }, e(a)), [
36
+ _(e(D), d({
37
+ class: [e(s), o.class]
38
+ }, r.value), {
39
+ default: V(() => [
40
+ _(e(E), {
41
+ class: v(e(n)(e(s), "indicator"))
42
+ }, null, 8, ["class"])
43
+ ]),
44
+ _: 1
45
+ }, 16, ["class"]),
46
+ b.value ? (t(), g("label", {
47
+ key: 0,
48
+ class: v([e(n)(e(s), "label"), i.labelCls]),
49
+ for: l.value
50
+ }, [
51
+ h(i.$slots, "label", {}, () => [
52
+ S(z(i.label), 1)
53
+ ])
54
+ ], 10, T)) : R("", !0)
55
+ ], 16));
56
+ }
57
+ }), A = ["2xsm", "xsm"], ee = /* @__PURE__ */ G({
58
+ ...I("RadioGroup"),
59
+ __name: "RadioGroup",
60
+ props: {
61
+ items: {},
62
+ size: { default: "xsm" },
63
+ class: {},
64
+ modelValue: {},
65
+ defaultValue: {},
66
+ disabled: { type: Boolean },
67
+ name: {},
68
+ required: { type: Boolean },
69
+ orientation: {},
70
+ dir: {},
71
+ loop: { type: Boolean },
72
+ asChild: { type: Boolean },
73
+ as: {}
74
+ },
75
+ emits: ["update:modelValue"],
76
+ setup(u, { emit: p }) {
77
+ const o = u, s = p, c = m(() => k(o, "items", "class")), f = L(c, s), l = $(B, {
78
+ variants: {
79
+ size: O(A, B)
80
+ }
81
+ });
82
+ return (a, C) => (t(), y(e(N), d(e(f), {
83
+ class: [e(l)(o), o.class]
84
+ }), {
85
+ default: V(() => [
86
+ h(a.$slots, "default", {}, () => {
87
+ var r;
88
+ return [
89
+ (r = a.items) != null && r.length ? (t(!0), g(w, { key: 0 }, x(a.items, (b) => (t(), y(j, d({ ref_for: !0 }, b), null, 16))), 256)) : R("", !0)
90
+ ];
91
+ })
92
+ ]),
93
+ _: 3
94
+ }, 16, ["class"]));
95
+ }
96
+ });
97
+ export {
98
+ ee as _,
99
+ j as a
100
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),i=require("radix-vue"),_=require("class-variance-authority"),g=require("./omit-BKPbELUG.js"),C=require("./options-B4iSAKol.js"),k=require("./useId-Ku3O_8TK.js"),V=require("./useInputDataStates-CbRgNQqU.js"),s=require("./class-CjZYGZDW.js"),v=["for"],f=s.getBemBlock("radio_group"),b=e.defineComponent({...C.getComponentOptions("RadioGroupItem"),__name:"RadioGroupItem",props:{class:{},rootCls:{},labelCls:{},label:{},id:{},value:{},disabled:{type:Boolean},required:{type:Boolean},name:{}},emits:["update:modelValue","blur","focus"],setup(u,{emit:c}){const o=u,t=s.getBemElement(f,"item"),d=e.useSlots(),m=c,a=e.computed(()=>o.id??k.usePCId(t)),{rootBindings:r,inputBindings:B}=V.UseInputDataStates({getDisabled:()=>o.disabled,emit:m}),l=e.computed(()=>({...g.omit(o,"class","id","rootCls","labelCls","label"),id:a.value,...B.value})),p=e.computed(()=>!!(d.label||o.label));return(n,h)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:[e.unref(s.getBemElement)(e.unref(t),"root"),n.rootCls]},e.unref(r)),[e.createVNode(e.unref(i.RadioGroupItem),e.mergeProps({class:[e.unref(t),o.class]},l.value),{default:e.withCtx(()=>[e.createVNode(e.unref(i.RadioGroupIndicator),{class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(t),"indicator"))},null,8,["class"])]),_:1},16,["class"]),p.value?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass([e.unref(s.getBemElement)(e.unref(t),"label"),n.labelCls]),for:a.value},[e.renderSlot(n.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(n.label),1)])],10,v)):e.createCommentVNode("",!0)],16))}}),q=["2xsm","xsm"],y=e.defineComponent({...C.getComponentOptions("RadioGroup"),__name:"RadioGroup",props:{items:{},size:{default:"xsm"},class:{},modelValue:{},defaultValue:{},disabled:{type:Boolean},name:{},required:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(u,{emit:c}){const o=u,t=c,d=e.computed(()=>g.omit(o,"items","class")),m=i.useForwardPropsEmits(d,t),a=_.cva(f,{variants:{size:s.generateVariantClassList(q,f)}});return(r,B)=>(e.openBlock(),e.createBlock(e.unref(i.RadioGroupRoot),e.mergeProps(e.unref(m),{class:[e.unref(a)(o),o.class]}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>{var l;return[(l=r.items)!=null&&l.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.items,p=>(e.openBlock(),e.createBlock(b,e.mergeProps({ref_for:!0},p),null,16))),256)):e.createCommentVNode("",!0)]})]),_:3},16,["class"]))}});exports._sfc_main=y;exports._sfc_main$1=b;
@@ -1,7 +1,6 @@
1
- import { PrimitiveProps } from 'radix-vue';
2
1
  import { Class } from '../types';
3
2
  import { KbdProps } from '../Kbd';
4
- export interface ShortcutProps extends PrimitiveProps {
3
+ export interface ShortcutProps {
5
4
  class?: Class;
6
5
  items: KbdProps[];
7
6
  plus?: boolean;
@@ -1,4 +1,4 @@
1
- import { _ as o, _ as r } from "../Shortcut.vue_vue_type_style_index_0_lang-BQb7DjFe.js";
1
+ import { _ as o, _ as r } from "../Shortcut.vue_vue_type_style_index_0_lang-D4xo_UgO.js";
2
2
  export {
3
3
  o as Shortcut,
4
4
  r as default
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Shortcut.vue_vue_type_style_index_0_lang-C49ZdQFd.js");exports.Shortcut=e._sfc_main;exports.default=e._sfc_main;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Shortcut.vue_vue_type_style_index_0_lang-D8_aLpYM.js");exports.Shortcut=e._sfc_main;exports.default=e._sfc_main;
@@ -0,0 +1,32 @@
1
+ import { defineComponent as i, createElementBlock as r, openBlock as e, normalizeClass as p, unref as o, Fragment as s, renderList as u, createVNode as f, createBlock as _, createCommentVNode as g, mergeProps as d } from "vue";
2
+ import { g as h } from "./class-DziTeW9B.js";
3
+ import { g as B } from "./options-JBqnVZUl.js";
4
+ import { _ as k } from "./Kbd.vue_vue_type_style_index_0_lang-D1y-0kBN.js";
5
+ import { _ as C } from "./Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
6
+ const b = /* @__PURE__ */ i({
7
+ ...B("Shortcut"),
8
+ __name: "Shortcut",
9
+ props: {
10
+ class: {},
11
+ items: {},
12
+ plus: { type: Boolean, default: !0 }
13
+ },
14
+ setup(n) {
15
+ const m = n, a = h("shortcut");
16
+ return (t, y) => (e(), r("div", {
17
+ class: p([o(a), m.class])
18
+ }, [
19
+ (e(!0), r(s, null, u(t.items, (l, c) => (e(), r(s, null, [
20
+ f(o(k), d({ ref_for: !0 }, l), null, 16),
21
+ t.items.length > 1 && c < t.items.length - 1 ? (e(), _(C, {
22
+ key: 0,
23
+ icon: "tabler:plus",
24
+ size: "3xsm"
25
+ })) : g("", !0)
26
+ ], 64))), 256))
27
+ ], 2));
28
+ }
29
+ });
30
+ export {
31
+ b as _
32
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),l=require("./class-CjZYGZDW.js"),u=require("./options-B4iSAKol.js"),a=require("./Kbd.vue_vue_type_style_index_0_lang-CpDjSQqg.js"),i=require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),_=e.defineComponent({...u.getComponentOptions("Shortcut"),__name:"Shortcut",props:{class:{},items:{},plus:{type:Boolean,default:!0}},setup(n){const r=n,o=l.getBemBlock("shortcut");return(t,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(o),r.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(s,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(a._sfc_main),e.mergeProps({ref_for:!0},s),null,16),t.items.length>1&&c<t.items.length-1?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,icon:"tabler:plus",size:"3xsm"})):e.createCommentVNode("",!0)],64))),256))],2))}});exports._sfc_main=_;
@@ -1,20 +1,16 @@
1
- import { PrimitiveProps } from 'radix-vue';
2
1
  import { SkeletonSize, SkeletonType } from './Skeleton.model';
3
2
  import { Class } from '../types';
4
- export interface SkeletonProps extends Omit<PrimitiveProps, 'asChild'> {
3
+ export interface SkeletonProps {
5
4
  type?: SkeletonType;
6
5
  size?: SkeletonSize;
7
- childAs?: PrimitiveProps['as'];
8
6
  inactive?: boolean;
9
7
  class?: Class;
10
8
  itemClass?: Class;
11
9
  itemsCount?: number;
12
10
  }
13
11
  declare const _default: import('vue').DefineComponent<SkeletonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
14
- size: "2xsm" | "sm" | "md" | "lg";
15
- type: "input" | "base" | "button" | "avatar" | "paragraph" | "headline" | "list" | "custom" | "custom-items";
16
- as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
17
- childAs: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
12
+ size: SkeletonSize;
13
+ type: SkeletonType;
18
14
  inactive: boolean;
19
15
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
16
  export default _default;
@@ -1,4 +1,4 @@
1
- import { _ as s, a as o, S as t, _ as S } from "../Skeleton.vue_vue_type_style_index_0_lang-B6bCkLlD.js";
1
+ import { _ as s, a as o, S as t, _ as S } from "../Skeleton.vue_vue_type_style_index_0_lang-IQEtEnZx.js";
2
2
  export {
3
3
  s as Skeleton,
4
4
  o as SkeletonSizes,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Skeleton.vue_vue_type_style_index_0_lang-PNNUgKOq.js");exports.Skeleton=e._sfc_main;exports.SkeletonSizes=e.SkeletonSizes;exports.SkeletonTypes=e.SkeletonTypes;exports.default=e._sfc_main;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Skeleton.vue_vue_type_style_index_0_lang-C1I-p4Yn.js");exports.Skeleton=e._sfc_main;exports.SkeletonSizes=e.SkeletonSizes;exports.SkeletonTypes=e.SkeletonTypes;exports.default=e._sfc_main;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),n=require("./class-CjZYGZDW.js"),m=require("class-variance-authority"),p=require("./options-B4iSAKol.js"),a=["avatar","input","button","paragraph","headline","list","base","custom","custom-items"],r=["2xsm","sm","md","lg"],k=e.defineComponent({...p.getComponentOptions("Skeleton"),__name:"Skeleton",props:{type:{default:"base"},size:{default:"md"},inactive:{type:Boolean,default:!1},class:{},itemClass:{},itemsCount:{}},setup(i){const s=n.getBemBlock("skeleton"),t=i,o=m.cva(s,{variants:{inactive:n.generateVariantClassList("inactive",s),size:n.generateVariantClassList(r,s),type:n.generateVariantClassList(a,s)}}),l=e.computed(()=>{if(t.type==="custom-items"&&t.itemsCount)return t.itemsCount;switch(t.type){case"paragraph":return 4;case"list":return 2;default:return 0}});return(c,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(o)(t),t.class])},[["paragraph","list","custom-items"].includes(c.type)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.value,u=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(n.getBemElement)(e.unref(s),"item"),t.itemClass]),key:u},null,2))),128)):e.createCommentVNode("",!0)],2))}});exports.SkeletonSizes=r;exports.SkeletonTypes=a;exports._sfc_main=k;
@@ -0,0 +1,58 @@
1
+ import { defineComponent as u, computed as d, createElementBlock as s, openBlock as a, normalizeClass as r, unref as n, createCommentVNode as f, Fragment as C, renderList as g } from "vue";
2
+ import { g as v, a as o, b as k } from "./class-DziTeW9B.js";
3
+ import { cva as y } from "class-variance-authority";
4
+ import { g as h } from "./options-JBqnVZUl.js";
5
+ const B = [
6
+ "avatar",
7
+ "input",
8
+ "button",
9
+ "paragraph",
10
+ "headline",
11
+ "list",
12
+ "base",
13
+ "custom",
14
+ "custom-items"
15
+ ], S = ["2xsm", "sm", "md", "lg"], L = /* @__PURE__ */ u({
16
+ ...h("Skeleton"),
17
+ __name: "Skeleton",
18
+ props: {
19
+ type: { default: "base" },
20
+ size: { default: "md" },
21
+ inactive: { type: Boolean, default: !1 },
22
+ class: {},
23
+ itemClass: {},
24
+ itemsCount: {}
25
+ },
26
+ setup(i) {
27
+ const t = v("skeleton"), e = i, m = y(t, {
28
+ variants: {
29
+ inactive: o("inactive", t),
30
+ size: o(S, t),
31
+ type: o(B, t)
32
+ }
33
+ }), l = d(() => {
34
+ if (e.type === "custom-items" && e.itemsCount) return e.itemsCount;
35
+ switch (e.type) {
36
+ case "paragraph":
37
+ return 4;
38
+ case "list":
39
+ return 2;
40
+ default:
41
+ return 0;
42
+ }
43
+ });
44
+ return (c, _) => (a(), s("div", {
45
+ class: r([n(m)(e), e.class])
46
+ }, [
47
+ ["paragraph", "list", "custom-items"].includes(c.type) ? (a(!0), s(C, { key: 0 }, g(l.value, (p) => (a(), s("div", {
48
+ class: r([n(k)(n(t), "item"), e.itemClass]),
49
+ key: p
50
+ }, null, 2))), 128)) : f("", !0)
51
+ ], 2));
52
+ }
53
+ });
54
+ export {
55
+ B as S,
56
+ L as _,
57
+ S as a
58
+ };
@@ -1,7 +1,6 @@
1
- import { PrimitiveProps } from 'radix-vue';
2
1
  import { Class } from '../types';
3
2
  import { SpinnerSize } from './Spinner.model';
4
- export interface SpinnerProps extends Omit<PrimitiveProps, 'asChild'> {
3
+ export interface SpinnerProps {
5
4
  size?: SpinnerSize;
6
5
  class?: Class;
7
6
  text?: string | boolean;
@@ -11,11 +10,17 @@ export interface SpinnerSlots {
11
10
  default?: () => never;
12
11
  icon?: () => never;
13
12
  }
14
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<SpinnerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SpinnerProps> & Readonly<{}>, {
15
- size: "3xsm" | "2xsm" | "sm";
13
+ declare function __VLS_template(): {
14
+ slots: Readonly<SpinnerSlots> & SpinnerSlots;
15
+ refs: {};
16
+ attrs: Partial<{}>;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue').DefineComponent<SpinnerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SpinnerProps> & Readonly<{}>, {
20
+ size: SpinnerSize;
16
21
  text: string | boolean;
17
- as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
18
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<SpinnerSlots> & SpinnerSlots>;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
24
  export default _default;
20
25
  type __VLS_WithTemplateSlots<T, S> = T & {
21
26
  new (): {
@@ -1,4 +1,4 @@
1
- import { _ as n, S as r, _ as s } from "../Spinner.vue_vue_type_style_index_0_lang-D6nB06Z8.js";
1
+ import { _ as n, S as r, _ as s } from "../Spinner.vue_vue_type_style_index_0_lang-BYqqSQAx.js";
2
2
  export {
3
3
  n as Spinner,
4
4
  r as SpinnerSizes,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Spinner.vue_vue_type_style_index_0_lang-CxNO28J7.js");exports.Spinner=e._sfc_main;exports.SpinnerSizes=e.SpinnerSizes;exports.default=e._sfc_main;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Spinner.vue_vue_type_style_index_0_lang-BP7P5xu8.js");exports.Spinner=e._sfc_main;exports.SpinnerSizes=e.SpinnerSizes;exports.default=e._sfc_main;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),o=require("./class-CjZYGZDW.js"),C=require("class-variance-authority"),p=require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),d=require("./options-B4iSAKol.js"),a=["3xsm","2xsm","sm"],f={key:0,width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none"},B=e.defineComponent({...d.getComponentOptions("Spinner"),__name:"Spinner",props:{size:{default:"sm"},class:{},text:{type:[String,Boolean],default:void 0},icon:{}},setup(l){const s=l,n=o.getBemBlock("spinner"),c=C.cva(n,{variants:{size:o.generateVariantClassList(a,n),icon:o.generateVariantClassList("icon",n)}}),i=e.useSlots(),u=e.computed(()=>!!s.text||!!i.default),m=e.computed(()=>s.text);return(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(c)({size:t.size,icon:!!t.icon||!!i.icon}),s.class])},[e.createVNode(p._sfc_main,{class:e.normalizeClass(e.unref(o.getBemElement)(e.unref(n),"icon")),size:t.size,icon:t.icon},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon",{},()=>[t.icon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",f,r[0]||(r[0]=[e.createElementVNode("path",{d:"M22.5 12C23.3284 12 24.0097 12.6742 23.9064 13.4961C23.6748 15.3394 23.0173 17.1109 21.9776 18.6668C20.6591 20.6402 18.7849 22.1783 16.5922 23.0866C14.3995 23.9948 11.9867 24.2324 9.65892 23.7694C7.33114 23.3064 5.19295 22.1635 3.51472 20.4853C1.83649 18.8071 0.693599 16.6689 0.230577 14.3411C-0.232446 12.0133 0.00519403 9.60051 0.913446 7.4078C1.8217 5.21509 3.35977 3.34094 5.33316 2.02236C6.88913 0.982696 8.66064 0.32524 10.5039 0.0936235C11.3258 -0.0096629 12 0.671573 12 1.5C12 2.32843 11.3239 2.98727 10.5069 3.12471C9.2582 3.33479 8.06207 3.80703 6.99987 4.51677C5.51983 5.50571 4.36627 6.91131 3.68508 8.55585C3.0039 10.2004 2.82567 12.01 3.17293 13.7558C3.5202 15.5016 4.37737 17.1053 5.63604 18.364C6.89471 19.6226 8.49836 20.4798 10.2442 20.8271C11.99 21.1743 13.7996 20.9961 15.4442 20.3149C17.0887 19.6337 18.4943 18.4802 19.4832 17.0001C20.193 15.9379 20.6652 14.7418 20.8753 13.4931C21.0127 12.6761 21.6716 12 22.5 12Z",fill:"currentColor"},[e.createElementVNode("animateTransform",{attributeName:"transform",dur:"1s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})],-1)])))])]),_:3},8,["class","size","icon"]),u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o.getBemElement)(e.unref(n),"text"))},[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(m.value),1)])],2)):e.createCommentVNode("",!0)],2))}});exports.SpinnerSizes=a;exports._sfc_main=B;
@@ -0,0 +1,73 @@
1
+ import { defineComponent as z, useSlots as S, computed as m, createElementBlock as n, openBlock as a, normalizeClass as i, unref as o, createVNode as x, createCommentVNode as c, withCtx as h, renderSlot as C, createElementVNode as p, createTextVNode as k, toDisplayString as y } from "vue";
2
+ import { g as N, a as u, b as d } from "./class-DziTeW9B.js";
3
+ import { cva as V } from "class-variance-authority";
4
+ import { _ as T } from "./Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
5
+ import { g as _ } from "./options-JBqnVZUl.js";
6
+ const w = ["3xsm", "2xsm", "sm"], E = {
7
+ key: 0,
8
+ width: "1em",
9
+ height: "1em",
10
+ viewBox: "0 0 24 24",
11
+ fill: "none"
12
+ }, O = /* @__PURE__ */ z({
13
+ ..._("Spinner"),
14
+ __name: "Spinner",
15
+ props: {
16
+ size: { default: "sm" },
17
+ class: {},
18
+ text: { type: [String, Boolean], default: void 0 },
19
+ icon: {}
20
+ },
21
+ setup(f) {
22
+ const s = f, t = N("spinner"), g = V(t, {
23
+ variants: {
24
+ size: u(w, t),
25
+ icon: u("icon", t)
26
+ }
27
+ }), r = S(), v = m(() => !!s.text || !!r.default), B = m(() => s.text);
28
+ return (e, l) => (a(), n("div", {
29
+ class: i([
30
+ o(g)({ size: e.size, icon: !!e.icon || !!r.icon }),
31
+ s.class
32
+ ])
33
+ }, [
34
+ x(T, {
35
+ class: i(o(d)(o(t), "icon")),
36
+ size: e.size,
37
+ icon: e.icon
38
+ }, {
39
+ default: h(() => [
40
+ C(e.$slots, "icon", {}, () => [
41
+ e.icon ? c("", !0) : (a(), n("svg", E, l[0] || (l[0] = [
42
+ p("path", {
43
+ d: "M22.5 12C23.3284 12 24.0097 12.6742 23.9064 13.4961C23.6748 15.3394 23.0173 17.1109 21.9776 18.6668C20.6591 20.6402 18.7849 22.1783 16.5922 23.0866C14.3995 23.9948 11.9867 24.2324 9.65892 23.7694C7.33114 23.3064 5.19295 22.1635 3.51472 20.4853C1.83649 18.8071 0.693599 16.6689 0.230577 14.3411C-0.232446 12.0133 0.00519403 9.60051 0.913446 7.4078C1.8217 5.21509 3.35977 3.34094 5.33316 2.02236C6.88913 0.982696 8.66064 0.32524 10.5039 0.0936235C11.3258 -0.0096629 12 0.671573 12 1.5C12 2.32843 11.3239 2.98727 10.5069 3.12471C9.2582 3.33479 8.06207 3.80703 6.99987 4.51677C5.51983 5.50571 4.36627 6.91131 3.68508 8.55585C3.0039 10.2004 2.82567 12.01 3.17293 13.7558C3.5202 15.5016 4.37737 17.1053 5.63604 18.364C6.89471 19.6226 8.49836 20.4798 10.2442 20.8271C11.99 21.1743 13.7996 20.9961 15.4442 20.3149C17.0887 19.6337 18.4943 18.4802 19.4832 17.0001C20.193 15.9379 20.6652 14.7418 20.8753 13.4931C21.0127 12.6761 21.6716 12 22.5 12Z",
44
+ fill: "currentColor"
45
+ }, [
46
+ p("animateTransform", {
47
+ attributeName: "transform",
48
+ dur: "1s",
49
+ repeatCount: "indefinite",
50
+ type: "rotate",
51
+ values: "0 12 12;360 12 12"
52
+ })
53
+ ], -1)
54
+ ])))
55
+ ])
56
+ ]),
57
+ _: 3
58
+ }, 8, ["class", "size", "icon"]),
59
+ v.value ? (a(), n("div", {
60
+ key: 0,
61
+ class: i(o(d)(o(t), "text"))
62
+ }, [
63
+ C(e.$slots, "default", {}, () => [
64
+ k(y(B.value), 1)
65
+ ])
66
+ ], 2)) : c("", !0)
67
+ ], 2));
68
+ }
69
+ });
70
+ export {
71
+ w as S,
72
+ O as _
73
+ };
@@ -23,16 +23,27 @@ export interface SwitchSlots {
23
23
  size: IconSize;
24
24
  }) => never;
25
25
  }
26
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<SwitchProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
+ declare function __VLS_template(): {
27
+ slots: Readonly<SwitchSlots> & SwitchSlots;
28
+ refs: {};
29
+ attrs: Partial<{}>;
30
+ };
31
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
32
+ declare const __VLS_component: import('vue').DefineComponent<SwitchProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
33
+ blur: (e: InputEvent) => any;
34
+ focus: (e: InputEvent) => any;
27
35
  "update:checked": (payload: boolean) => any;
28
36
  }, string, import('vue').PublicProps, Readonly<SwitchProps> & Readonly<{
37
+ onBlur?: ((e: InputEvent) => any) | undefined;
38
+ onFocus?: ((e: InputEvent) => any) | undefined;
29
39
  "onUpdate:checked"?: ((payload: boolean) => any) | undefined;
30
40
  }>, {
31
- size: "2xsm" | "xsm" | "sm";
41
+ size: SwitchSize;
32
42
  disabled: boolean;
33
43
  required: boolean;
34
44
  checked: boolean;
35
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<SwitchSlots> & SwitchSlots>;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
46
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
47
  export default _default;
37
48
  type __VLS_WithTemplateSlots<T, S> = T & {
38
49
  new (): {
@@ -1,4 +1,4 @@
1
- import { _ as t, S, _ as e } from "../Switch.vue_vue_type_style_index_0_lang-BzC8-ylY.js";
1
+ import { _ as t, S, _ as e } from "../Switch.vue_vue_type_style_index_0_lang-CvWay8Wa.js";
2
2
  export {
3
3
  t as Switch,
4
4
  S as SwitchSizes,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Switch.vue_vue_type_style_index_0_lang-DnNHGn1c.js");exports.Switch=e._sfc_main;exports.SwitchSizes=e.SwitchSizes;exports.default=e._sfc_main;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Switch.vue_vue_type_style_index_0_lang-CoXu3YJ-.js");exports.Switch=e._sfc_main;exports.SwitchSizes=e.SwitchSizes;exports.default=e._sfc_main;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),n=require("./class-CjZYGZDW.js"),v=require("class-variance-authority"),a=require("radix-vue"),b=require("./omit-BKPbELUG.js"),S=require("./options-B4iSAKol.js");require("@iconify/vue");require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js");const g=require("./useId-Ku3O_8TK.js"),z=require("./useInputDataStates-CbRgNQqU.js"),d=["2xsm","xsm","sm"],E=["for"],V=e.defineComponent({...S.getComponentOptions("Switch"),__name:"Switch",props:{size:{default:"xsm"},class:{},rootCls:{},labelCls:{},label:{},defaultChecked:{type:Boolean},checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},required:{type:Boolean,default:void 0},name:{},id:{},value:{},as:{}},emits:["update:checked","blur","focus"],setup(m,{emit:f}){const o=m,i=f,p=a.useEmitAsProps(i),s=n.getBemBlock("switch"),h=v.cva(s,{variants:{size:n.generateVariantClassList(d,s),innerText:n.generateVariantClassList("inner-text",s),innerIcon:n.generateVariantClassList("inner-icon",s)}}),l=e.useSlots(),c=e.computed(()=>o.id??g.usePCId(s)),{rootBindings:k,inputBindings:B}=z.UseInputDataStates({getDisabled:()=>o.disabled,emit:i}),C=e.computed(()=>({...b.omit(o,"size","class","id","rootCls","labelCls","label"),...p,id:c.value,...B.value})),r=e.computed(()=>o.size==="xsm"?"2xsm":"xsm"),u=e.computed(()=>!!(l.label||o.label));return(t,q)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:u.value,class:[e.unref(n.getBemElement)(e.unref(s),"root"),o.rootCls]},e.unref(k)),[e.createVNode(e.unref(a.SwitchRoot),e.mergeProps({class:[e.unref(h)({size:t.size,innerText:!!(l.checkedText||l.uncheckedText),innerIcon:!!(l.checkedIcon||l.uncheckedIcon)}),o.class]},C.value),{default:e.withCtx(()=>[e.createVNode(e.unref(a.SwitchThumb),{class:e.normalizeClass(e.unref(n.getBemElement)(e.unref(s),"thumb"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"thumb",{size:r.value})]),_:3},8,["class"]),["xsm","sm"].includes(t.size)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(n.getBemElement)(e.unref(s),"inner"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(n.getBemElement)(e.unref(s),"inner__checked"))},[e.renderSlot(t.$slots,"checkedText",{},()=>[e.renderSlot(t.$slots,"checkedIcon",{size:r.value})])],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(n.getBemElement)(e.unref(s),"inner__unchecked"))},[e.renderSlot(t.$slots,"uncheckedText",{},()=>[e.renderSlot(t.$slots,"uncheckedIcon",{size:r.value})])],2)],2)):e.createCommentVNode("",!0)]),_:3},16,["class"]),u.value?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass([e.unref(n.getBemElement)(e.unref(s),"label"),t.labelCls]),for:c.value},[e.renderSlot(t.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])],10,E)):e.createCommentVNode("",!0)],16))}});exports.SwitchSizes=d;exports._sfc_main=V;
@@ -0,0 +1,106 @@
1
+ import { defineComponent as w, useSlots as $, computed as c, createElementBlock as d, openBlock as m, mergeProps as b, unref as e, createVNode as v, createCommentVNode as k, withCtx as C, normalizeClass as i, renderSlot as l, createElementVNode as B, createTextVNode as P, toDisplayString as V } from "vue";
2
+ import { g as _, a as u, b as a } from "./class-DziTeW9B.js";
3
+ import { cva as E } from "class-variance-authority";
4
+ import { useEmitAsProps as N, SwitchRoot as D, SwitchThumb as A } from "radix-vue";
5
+ import { o as L } from "./omit-BEkBWXra.js";
6
+ import { g as U } from "./options-JBqnVZUl.js";
7
+ import "@iconify/vue";
8
+ import "./Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
9
+ import { u as q } from "./useId-DvOSMFGX.js";
10
+ import { U as O } from "./useInputDataStates-CZbdWpyp.js";
11
+ const R = ["2xsm", "xsm", "sm"], j = ["for"], ee = /* @__PURE__ */ w({
12
+ ...U("Switch"),
13
+ __name: "Switch",
14
+ props: {
15
+ size: { default: "xsm" },
16
+ class: {},
17
+ rootCls: {},
18
+ labelCls: {},
19
+ label: {},
20
+ defaultChecked: { type: Boolean },
21
+ checked: { type: Boolean, default: void 0 },
22
+ disabled: { type: Boolean, default: void 0 },
23
+ required: { type: Boolean, default: void 0 },
24
+ name: {},
25
+ id: {},
26
+ value: {},
27
+ as: {}
28
+ },
29
+ emits: ["update:checked", "blur", "focus"],
30
+ setup(z, { emit: g }) {
31
+ const t = z, p = g, S = N(p), s = _("switch"), x = E(s, {
32
+ variants: {
33
+ size: u(R, s),
34
+ innerText: u("inner-text", s),
35
+ innerIcon: u("inner-icon", s)
36
+ }
37
+ }), n = $(), h = c(() => t.id ?? q(s)), { rootBindings: I, inputBindings: y } = O({
38
+ getDisabled: () => t.disabled,
39
+ emit: p
40
+ }), T = c(() => ({
41
+ ...L(t, "size", "class", "id", "rootCls", "labelCls", "label"),
42
+ ...S,
43
+ id: h.value,
44
+ ...y.value
45
+ })), r = c(() => t.size === "xsm" ? "2xsm" : "xsm"), f = c(() => !!(n.label || t.label));
46
+ return (o, F) => (m(), d("div", b({
47
+ key: f.value,
48
+ class: [e(a)(e(s), "root"), t.rootCls]
49
+ }, e(I)), [
50
+ v(e(D), b({
51
+ class: [
52
+ e(x)({
53
+ size: o.size,
54
+ innerText: !!(n.checkedText || n.uncheckedText),
55
+ innerIcon: !!(n.checkedIcon || n.uncheckedIcon)
56
+ }),
57
+ t.class
58
+ ]
59
+ }, T.value), {
60
+ default: C(() => [
61
+ v(e(A), {
62
+ class: i(e(a)(e(s), "thumb"))
63
+ }, {
64
+ default: C(() => [
65
+ l(o.$slots, "thumb", { size: r.value })
66
+ ]),
67
+ _: 3
68
+ }, 8, ["class"]),
69
+ ["xsm", "sm"].includes(o.size) ? (m(), d("div", {
70
+ key: 0,
71
+ class: i(e(a)(e(s), "inner"))
72
+ }, [
73
+ B("div", {
74
+ class: i(e(a)(e(s), "inner__checked"))
75
+ }, [
76
+ l(o.$slots, "checkedText", {}, () => [
77
+ l(o.$slots, "checkedIcon", { size: r.value })
78
+ ])
79
+ ], 2),
80
+ B("div", {
81
+ class: i(e(a)(e(s), "inner__unchecked"))
82
+ }, [
83
+ l(o.$slots, "uncheckedText", {}, () => [
84
+ l(o.$slots, "uncheckedIcon", { size: r.value })
85
+ ])
86
+ ], 2)
87
+ ], 2)) : k("", !0)
88
+ ]),
89
+ _: 3
90
+ }, 16, ["class"]),
91
+ f.value ? (m(), d("label", {
92
+ key: 0,
93
+ class: i([e(a)(e(s), "label"), o.labelCls]),
94
+ for: h.value
95
+ }, [
96
+ l(o.$slots, "label", {}, () => [
97
+ P(V(o.label), 1)
98
+ ])
99
+ ], 10, j)) : k("", !0)
100
+ ], 16));
101
+ }
102
+ });
103
+ export {
104
+ R as S,
105
+ ee as _
106
+ };
@@ -25,7 +25,15 @@ export interface DragEndData extends SortableEvent {
25
25
  oldParents?: TreeNodeKey[];
26
26
  newParents?: TreeNodeKey[];
27
27
  }
28
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<TreeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
28
+ declare function __VLS_template(): {
29
+ slots: Readonly<TreeNodeSlots> & TreeNodeSlots;
30
+ refs: {
31
+ root: HTMLDivElement;
32
+ };
33
+ attrs: Partial<{}>;
34
+ };
35
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
36
+ declare const __VLS_component: import('vue').DefineComponent<TreeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
29
37
  select: (node: object | TreeNode, selected: boolean) => any;
30
38
  "update:value": (value: string[]) => any;
31
39
  expand: (node: object | TreeNode, expanded: boolean) => any;
@@ -44,8 +52,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Tr
44
52
  onDragStart?: ((data: Sortable.SortableEvent) => any) | undefined;
45
53
  onDragEnd?: ((data: DragEndData) => any) | undefined;
46
54
  }>, {
47
- size: "sm" | "md" | "lg";
48
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<TreeNodeSlots> & TreeNodeSlots>;
55
+ size: TreeSize;
56
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
57
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
49
58
  export default _default;
50
59
  type __VLS_WithTemplateSlots<T, S> = T & {
51
60
  new (): {