@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
@@ -0,0 +1,159 @@
1
+ import { defineComponent as G, useSlots as L, ref as U, computed as p, createElementBlock as f, openBlock as l, normalizeClass as v, unref as a, createCommentVNode as b, createElementVNode as T, renderSlot as g, createTextVNode as q, toDisplayString as H, createBlock as C, Fragment as J, renderList as k, mergeProps as u, createSlots as V, withCtx as c, createVNode as $, normalizeProps as K, guardReactiveProps as Q } from "vue";
2
+ import { g as W } from "./options-JBqnVZUl.js";
3
+ import { useEmitAsProps as X } from "radix-vue";
4
+ import { _ as y, C as Y } from "./ColorSwatch.vue_vue_type_style_index_0_lang-CL9dd69H.js";
5
+ import { i as B } from "./isString-BVAZt9W3.js";
6
+ import { i as M } from "./_flatRest-CHX8vV1P.js";
7
+ import { useVModel as Z } from "@vueuse/core";
8
+ import { g as x, a as ee, b as j } from "./class-DziTeW9B.js";
9
+ import { cva as oe } from "class-variance-authority";
10
+ import { o as te } from "./omit-BEkBWXra.js";
11
+ import { _ as re } from "./Popover.vue_vue_type_style_index_0_lang-C0IwnsU5.js";
12
+ import { _ as se } from "./ColorPicker.vue_vue_type_style_index_0_lang-CEz3bIJG.js";
13
+ import { p as S } from "./pick-DLskPTKb.js";
14
+ const Ce = /* @__PURE__ */ G({
15
+ ...W("ColorSwatchGroup"),
16
+ __name: "ColorSwatchGroup",
17
+ props: {
18
+ format: {},
19
+ defaultFormat: {},
20
+ hideAlpha: { type: Boolean },
21
+ size: { default: "md" },
22
+ customPickerIcon: {},
23
+ icon: {},
24
+ class: {},
25
+ noRemover: { type: Boolean },
26
+ noCustomPicker: { type: Boolean },
27
+ modelValue: {},
28
+ headerCls: {},
29
+ header: {},
30
+ colorsCls: {},
31
+ defaultValue: {},
32
+ colors: {},
33
+ colorMode: { default: "bold" },
34
+ popoverProps: {}
35
+ },
36
+ emits: ["update:format", "update:modelValue"],
37
+ setup(w, { emit: I }) {
38
+ const o = w, A = L(), h = I, s = Z(
39
+ o,
40
+ "modelValue",
41
+ h,
42
+ {
43
+ defaultValue: o.defaultValue,
44
+ passive: o.modelValue === void 0
45
+ }
46
+ ), E = (e) => {
47
+ if (B(e))
48
+ return {
49
+ selected: s.value === e,
50
+ icon: o.icon,
51
+ bg: e
52
+ };
53
+ if (M(e))
54
+ return {
55
+ ...te(e, "value"),
56
+ icon: e.icon ?? o.icon,
57
+ selected: s.value === e.value
58
+ };
59
+ }, i = x("color_swatch_group"), N = oe(i, {
60
+ variants: {
61
+ size: ee(Y, i)
62
+ }
63
+ }), z = U(!1), m = (e) => M(e) ? e.value : e ?? void 0, P = (e) => {
64
+ const t = m(e);
65
+ s.value = t, z.value = !t;
66
+ }, d = p(() => {
67
+ if (o.colors) return o.colors;
68
+ const e = ["red", "orange", "yellow", "lime", "green", "sky", "blue", "violet"];
69
+ return o.colorMode === "subtle" ? e.map((t) => `${t}-subtle`) : typeof o.colorMode == "object" && o.colorMode.value && (o.colorMode.bg || o.colorMode.br || o.colorMode.fg) ? e.map((t) => {
70
+ const r = {
71
+ value: typeof o.colorMode == "object" && o.colorMode.value === "subtle" ? `${t}-subtle` : t
72
+ };
73
+ return typeof o.colorMode == "object" && o.colorMode.bg && (r.bg = o.colorMode.bg === "subtle" ? `${t}-subtle` : t), typeof o.colorMode == "object" && o.colorMode.br && (r.br = o.colorMode.br === "subtle" ? `${t}-subtle` : t), typeof o.colorMode == "object" && o.colorMode.fg && (r.fg = o.colorMode.fg === "subtle" ? `${t}-subtle` : t), r;
74
+ }) : e;
75
+ }), O = p(() => {
76
+ var e;
77
+ if (!((e = d.value) != null && e.length && d.value.some(
78
+ (t) => B(t) && t === s.value || M(t) && s.value === t.value
79
+ )))
80
+ return s.value;
81
+ }), _ = (e) => {
82
+ e && (s.value = e);
83
+ }, F = X(h), R = p(() => ({
84
+ ...S(F, "onUpdate:format"),
85
+ ...S(o, "format", "defaultFormat", "hideAlpha")
86
+ }));
87
+ return (e, t) => (l(), f("div", {
88
+ class: v([o.class, a(N)({ size: e.size })])
89
+ }, [
90
+ A.header || e.header ? (l(), f("div", {
91
+ key: 0,
92
+ class: v([a(j)(a(i), "header"), e.headerCls])
93
+ }, [
94
+ g(e.$slots, "header", {}, () => [
95
+ q(H(e.header), 1)
96
+ ])
97
+ ], 2)) : b("", !0),
98
+ T("div", {
99
+ class: v([a(j)(a(i), "colors"), e.colorsCls])
100
+ }, [
101
+ e.noRemover ? b("", !0) : (l(), C(y, {
102
+ key: 0,
103
+ type: "remover",
104
+ size: e.size,
105
+ onClick: t[0] || (t[0] = (r) => P()),
106
+ selected: !a(s) && z.value
107
+ }, null, 8, ["size", "selected"])),
108
+ (l(!0), f(J, null, k(d.value, (r) => (l(), C(y, u({
109
+ type: "color",
110
+ size: e.size,
111
+ icon: e.icon,
112
+ ref_for: !0
113
+ }, E(r), {
114
+ key: m(r),
115
+ onClick: (n) => P(r)
116
+ }), V({ _: 2 }, [
117
+ k(Object.keys(e.$slots), (n) => ({
118
+ name: n,
119
+ fn: c((D) => [
120
+ g(e.$slots, n, u({ ref_for: !0 }, { ...D, value: m(r) }))
121
+ ])
122
+ }))
123
+ ]), 1040, ["size", "icon", "onClick"]))), 128)),
124
+ e.noCustomPicker ? b("", !0) : (l(), C(re, u({
125
+ key: 1,
126
+ trigger: "click",
127
+ "reverse-placement-on-dir": "rtl",
128
+ placement: "right-start",
129
+ "side-offset": 4
130
+ }, e.popoverProps || {}), {
131
+ content: c(() => [
132
+ $(se, u({
133
+ defaultColor: O.value,
134
+ "onUpdate:color": _
135
+ }, R.value), null, 16, ["defaultColor"])
136
+ ]),
137
+ default: c(() => [
138
+ $(y, {
139
+ type: "custom-picker",
140
+ size: e.size,
141
+ customPickerIcon: e.customPickerIcon
142
+ }, V({ _: 2 }, [
143
+ k(Object.keys(e.$slots), (r) => ({
144
+ name: r,
145
+ fn: c((n) => [
146
+ g(e.$slots, r, K(Q(n)))
147
+ ])
148
+ }))
149
+ ]), 1032, ["size", "customPickerIcon"])
150
+ ]),
151
+ _: 3
152
+ }, 16))
153
+ ], 2)
154
+ ], 2));
155
+ }
156
+ });
157
+ export {
158
+ Ce as _
159
+ };
@@ -1,7 +1,8 @@
1
1
  import { GraphicalObjectProps } from '../GraphicalObject/GraphicalObject';
2
2
  import { ColorTriggerSize } from './ColorTrigger.model';
3
- export type ColorTriggerProps = Partial<Pick<GraphicalObjectProps, 'icon' | 'bg' | 'br' | 'fg' | 'as' | 'class'>> & {
3
+ export type ColorTriggerProps = Partial<Pick<GraphicalObjectProps, 'icon' | 'bg' | 'br' | 'fg' | 'class'>> & {
4
4
  size?: ColorTriggerSize;
5
+ disabled?: boolean;
5
6
  borderless?: boolean;
6
7
  suffixIcon?: boolean | string;
7
8
  };
@@ -10,10 +11,17 @@ export interface ColorTriggerSlots {
10
11
  icon?: () => never;
11
12
  suffixIcon?: () => never;
12
13
  }
13
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ColorTriggerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ColorTriggerProps> & Readonly<{}>, {
14
- size: "sm" | "md" | "lg";
15
- suffixIcon: string | boolean;
16
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<ColorTriggerSlots> & ColorTriggerSlots>;
14
+ declare function __VLS_template(): {
15
+ slots: Readonly<ColorTriggerSlots> & ColorTriggerSlots;
16
+ refs: {};
17
+ attrs: Partial<{}>;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<ColorTriggerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ColorTriggerProps> & Readonly<{}>, {
21
+ size: ColorTriggerSize;
22
+ suffixIcon: boolean | string;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
25
  export default _default;
18
26
  type __VLS_WithTemplateSlots<T, S> = T & {
19
27
  new (): {
@@ -1,4 +1,4 @@
1
- import { _ as e, C as a, _ as g } from "../ColorTrigger.vue_vue_type_style_index_0_lang-DSZ8fAZ9.js";
1
+ import { _ as e, C as a, _ as g } from "../ColorTrigger.vue_vue_type_style_index_0_lang-BNFu93Ns.js";
2
2
  export {
3
3
  e as ColorTrigger,
4
4
  a as ColorTriggerSizes,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ColorTrigger.vue_vue_type_style_index_0_lang-DwyinKNj.js");exports.ColorTrigger=e._sfc_main;exports.ColorTriggerSizes=e.ColorTriggerSizes;exports.default=e._sfc_main;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ColorTrigger.vue_vue_type_style_index_0_lang-C8kPa338.js");exports.ColorTrigger=e._sfc_main;exports.ColorTriggerSizes=e.ColorTriggerSizes;exports.default=e._sfc_main;
@@ -0,0 +1,86 @@
1
+ import { defineComponent as _, computed as r, useSlots as B, createElementBlock as S, openBlock as n, normalizeClass as v, unref as a, createVNode as k, createBlock as x, createCommentVNode as h, normalizeProps as c, guardReactiveProps as l, createSlots as I, renderList as y, withCtx as m, renderSlot as d } from "vue";
2
+ import { _ as w } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-BEZ6FkRf.js";
3
+ import { g as O } from "./options-JBqnVZUl.js";
4
+ import { g as $, a as f } from "./class-DziTeW9B.js";
5
+ import { cva as T } from "class-variance-authority";
6
+ import { _ as V } from "./Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
7
+ import { i as G } from "./isString-BVAZt9W3.js";
8
+ import { p as L } from "./pick-DLskPTKb.js";
9
+ const u = ["sm", "md", "lg"], N = ["disabled"], J = /* @__PURE__ */ _({
10
+ ...O("ColorTrigger"),
11
+ __name: "ColorTrigger",
12
+ props: {
13
+ icon: {},
14
+ bg: {},
15
+ br: {},
16
+ fg: {},
17
+ class: {},
18
+ size: { default: "md" },
19
+ disabled: { type: Boolean },
20
+ borderless: { type: Boolean },
21
+ suffixIcon: { type: [Boolean, String], default: "tabler:chevron-down" }
22
+ },
23
+ setup(g) {
24
+ const e = g, o = $("color_trigger"), p = T(o, {
25
+ variants: {
26
+ size: f(u, o),
27
+ borderless: f("borderless", o)
28
+ }
29
+ }), z = r(
30
+ () => e.size && u.includes(e.size) ? e.size : "md"
31
+ ), b = r(() => ({
32
+ size: (() => {
33
+ switch (e.size) {
34
+ case "sm":
35
+ return "2xsm";
36
+ case "md":
37
+ return "xsm";
38
+ case "lg":
39
+ return "sm";
40
+ }
41
+ })(),
42
+ ...L(e, "icon", "bg", "br", "fg")
43
+ })), t = B(), C = r(() => {
44
+ switch (e.size) {
45
+ case "sm":
46
+ return "2xsm";
47
+ case "md":
48
+ case "lg":
49
+ return "xsm";
50
+ }
51
+ });
52
+ return (s, P) => (n(), S("button", {
53
+ class: v([
54
+ a(p)({
55
+ size: z.value,
56
+ borderless: s.borderless
57
+ }),
58
+ e.class
59
+ ]),
60
+ disabled: s.disabled
61
+ }, [
62
+ k(w, c(l(b.value)), I({ _: 2 }, [
63
+ y(Object.keys(t), (i) => ({
64
+ name: i,
65
+ fn: m(() => [
66
+ d(s.$slots, i, c(l(e)))
67
+ ])
68
+ }))
69
+ ]), 1040),
70
+ s.suffixIcon || t.suffixIcon ? (n(), x(V, {
71
+ key: 0,
72
+ icon: a(G)(s.suffixIcon) ? s.suffixIcon : void 0,
73
+ size: C.value
74
+ }, {
75
+ default: m(() => [
76
+ d(s.$slots, "suffixIcon")
77
+ ]),
78
+ _: 3
79
+ }, 8, ["icon", "size"])) : h("", !0)
80
+ ], 10, N));
81
+ }
82
+ });
83
+ export {
84
+ u as C,
85
+ J as _
86
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),m=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-CdO2zArd.js"),p=require("./options-B4iSAKol.js"),t=require("./class-CjZYGZDW.js"),f=require("class-variance-authority"),_=require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),z=require("./isString-CKmTJsel.js"),b=require("./pick-C-ap2Lj0.js"),n=["sm","md","lg"],v=["disabled"],C=e.defineComponent({...p.getComponentOptions("ColorTrigger"),__name:"ColorTrigger",props:{icon:{},bg:{},br:{},fg:{},class:{},size:{default:"md"},disabled:{type:Boolean},borderless:{type:Boolean},suffixIcon:{type:[Boolean,String],default:"tabler:chevron-down"}},setup(a){const s=a,o=t.getBemBlock("color_trigger"),l=f.cva(o,{variants:{size:t.generateVariantClassList(n,o),borderless:t.generateVariantClassList("borderless",o)}}),u=e.computed(()=>s.size&&n.includes(s.size)?s.size:"md"),d=e.computed(()=>({size:(()=>{switch(s.size){case"sm":return"2xsm";case"md":return"xsm";case"lg":return"sm"}})(),...b.pick(s,"icon","bg","br","fg")})),i=e.useSlots(),g=e.computed(()=>{switch(s.size){case"sm":return"2xsm";case"md":case"lg":return"xsm"}});return(r,S)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass([e.unref(l)({size:u.value,borderless:r.borderless}),s.class]),disabled:r.disabled},[e.createVNode(m._sfc_main,e.normalizeProps(e.guardReactiveProps(d.value)),e.createSlots({_:2},[e.renderList(Object.keys(i),c=>({name:c,fn:e.withCtx(()=>[e.renderSlot(r.$slots,c,e.normalizeProps(e.guardReactiveProps(s)))])}))]),1040),r.suffixIcon||i.suffixIcon?(e.openBlock(),e.createBlock(_._sfc_main,{key:0,icon:e.unref(z.isString)(r.suffixIcon)?r.suffixIcon:void 0,size:g.value},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"suffixIcon")]),_:3},8,["icon","size"])):e.createCommentVNode("",!0)],10,v))}});exports.ColorTriggerSizes=n;exports._sfc_main=C;
@@ -23,17 +23,17 @@ declare const provideConfigContext: (contextValue: Context) => Context;
23
23
  declare const injectConfigContext: () => Context;
24
24
  export { provideConfigContext, injectConfigContext };
25
25
  export declare const ConfigProvider: import('vue').DefineComponent<{
26
- locale?: object | "fa" | "en" | undefined;
26
+ locale?: ("fa" | "en" | object) | undefined;
27
27
  theme?: _Config | undefined;
28
- changeAbleDirectionElement?: string | HTMLElement | Ref<string | HTMLElement, string | HTMLElement> | undefined;
29
- changeAbleDarkElement?: string | HTMLElement | Ref<string | HTMLElement, string | HTMLElement> | undefined;
28
+ changeAbleDirectionElement?: (string | HTMLElement | Ref<string | HTMLElement>) | undefined;
29
+ changeAbleDarkElement?: (string | HTMLElement | Ref<string | HTMLElement>) | undefined;
30
30
  }, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
31
31
  [key: string]: any;
32
32
  }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
33
- locale?: object | "fa" | "en" | undefined;
33
+ locale?: ("fa" | "en" | object) | undefined;
34
34
  theme?: _Config | undefined;
35
- changeAbleDirectionElement?: string | HTMLElement | Ref<string | HTMLElement, string | HTMLElement> | undefined;
36
- changeAbleDarkElement?: string | HTMLElement | Ref<string | HTMLElement, string | HTMLElement> | undefined;
35
+ changeAbleDirectionElement?: (string | HTMLElement | Ref<string | HTMLElement>) | undefined;
36
+ changeAbleDarkElement?: (string | HTMLElement | Ref<string | HTMLElement>) | undefined;
37
37
  }> & Readonly<{}>, {
38
38
  changeAbleDirectionElement: string | HTMLElement | Ref<string | HTMLElement, string | HTMLElement>;
39
39
  changeAbleDarkElement: string | HTMLElement | Ref<string | HTMLElement, string | HTMLElement>;
@@ -1,5 +1,5 @@
1
1
  import { Ref } from 'vue';
2
2
  export type Element = string | HTMLElement | Ref<string | HTMLElement>;
3
3
  export type Direction = 'ltr' | 'rtl';
4
- export declare const useDir: (changeAbleDirectionElement?: Element) => [Ref<Direction, Direction>, (value?: Direction) => void];
5
- export declare const useDark: (changeAbleDirectionElement?: Element) => [Ref<boolean, boolean>, (dark?: boolean) => void];
4
+ export declare const useDir: (changeAbleDirectionElement?: Element) => [Ref<Direction>, (value?: Direction) => void];
5
+ export declare const useDark: (changeAbleDirectionElement?: Element) => [Ref<boolean>, (dark?: boolean) => void];
@@ -1,16 +1,21 @@
1
- import { PrimitiveProps } from 'radix-vue';
2
1
  import { Class } from '../types';
3
2
  import { DividerType } from './Divider.model.js';
4
- export interface DividerProps extends Omit<PrimitiveProps, 'asChild'> {
3
+ export interface DividerProps {
5
4
  type?: DividerType;
6
5
  class?: Class;
7
6
  }
8
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<DividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DividerProps> & Readonly<{}>, {
9
- type: "horizontal" | "vertical";
10
- as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
11
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
12
- default?(_: {}): any;
13
- }>;
7
+ declare function __VLS_template(): {
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ attrs: Partial<{}>;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<DividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DividerProps> & Readonly<{}>, {
16
+ type: DividerType;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
19
  export default _default;
15
20
  type __VLS_WithTemplateSlots<T, S> = T & {
16
21
  new (): {
@@ -1,4 +1,4 @@
1
- import { _ as i, D as r, _ as s } from "../Divider.vue_vue_type_style_index_0_lang-B_4XMyuu.js";
1
+ import { _ as i, D as r, _ as s } from "../Divider.vue_vue_type_style_index_0_lang-CRs1KEcj.js";
2
2
  export {
3
3
  i as Divider,
4
4
  r as DividerTypes,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Divider.vue_vue_type_style_index_0_lang-C6Suy0tD.js");exports.Divider=e._sfc_main;exports.DividerTypes=e.DividerTypes;exports.default=e._sfc_main;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Divider.vue_vue_type_style_index_0_lang-BELWThBf.js");exports.Divider=e._sfc_main;exports.DividerTypes=e.DividerTypes;exports.default=e._sfc_main;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),r=require("./class-CjZYGZDW.js"),c=require("class-variance-authority"),l=require("./options-B4iSAKol.js"),n=["horizontal","vertical"],p=e.defineComponent({...l.getComponentOptions("Divider"),__name:"Divider",props:{type:{default:"horizontal"},class:{}},setup(i){const o=i,s=r.getBemBlock("divider"),a=c.cva(s,{variants:{type:r.generateVariantClassList(n,s)}});return(t,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(a)({type:t.type}),o.class])},[e.renderSlot(t.$slots,"default")],2))}});exports.DividerTypes=n;exports._sfc_main=p;
@@ -0,0 +1,34 @@
1
+ import { defineComponent as a, createElementBlock as n, openBlock as i, normalizeClass as p, unref as l, renderSlot as c } from "vue";
2
+ import { g as m, a as d } from "./class-DziTeW9B.js";
3
+ import { cva as f } from "class-variance-authority";
4
+ import { g as v } from "./options-JBqnVZUl.js";
5
+ const u = ["horizontal", "vertical"], D = /* @__PURE__ */ a({
6
+ ...v("Divider"),
7
+ __name: "Divider",
8
+ props: {
9
+ type: { default: "horizontal" },
10
+ class: {}
11
+ },
12
+ setup(s) {
13
+ const o = s, e = m("divider"), r = f(e, {
14
+ variants: {
15
+ type: d(u, e)
16
+ // hasChild: generateVariantClassList('has-child', prefix),
17
+ }
18
+ });
19
+ return (t, g) => (i(), n("div", {
20
+ class: p([
21
+ l(r)({
22
+ type: t.type
23
+ }),
24
+ o.class
25
+ ])
26
+ }, [
27
+ c(t.$slots, "default")
28
+ ], 2));
29
+ }
30
+ });
31
+ export {
32
+ u as D,
33
+ D as _
34
+ };
@@ -1,12 +1,88 @@
1
1
  import { BaseButtonSlots, BaseButtonProps } from '../Base/BaseButton/BaseButton';
2
- export type FloatButtonProps = Partial<Pick<BaseButtonProps, 'as' | 'class' | 'color' | 'loading' | 'size' | 'icon'>> & {
2
+ export type FloatButtonProps = Partial<Pick<BaseButtonProps, 'class' | 'color' | 'loading' | 'size' | 'icon'>> & {
3
3
  type?: 'fill' | 'outline';
4
4
  };
5
5
  type FloatButtonSlots = Omit<BaseButtonSlots, 'preIcon' | 'badge' | 'postIcon' | 'default'>;
6
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<FloatButtonProps, {
6
+ declare function __VLS_template(): {
7
+ slots: Readonly<FloatButtonSlots> & FloatButtonSlots;
8
+ refs: {
9
+ buttonRef: ({
10
+ $: import('vue').ComponentInternalInstance;
11
+ $data: {};
12
+ $props: {
13
+ readonly class?: import('../index.ts', { with: { "resolution-mode": "import" } }).Class | undefined;
14
+ readonly text?: (string | number) | undefined;
15
+ readonly size?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonSize | undefined;
16
+ readonly color?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor | undefined;
17
+ readonly type?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType | undefined;
18
+ readonly variant?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonVariant | undefined;
19
+ readonly loading?: boolean | undefined;
20
+ readonly action?: boolean | undefined;
21
+ readonly active?: boolean | undefined;
22
+ readonly badgeText?: string | undefined;
23
+ readonly badgeIcon?: string | undefined;
24
+ readonly icon?: string | undefined;
25
+ readonly preIcon?: string | undefined;
26
+ readonly postIcon?: string | undefined;
27
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
28
+ $attrs: {
29
+ [x: string]: unknown;
30
+ };
31
+ $refs: {
32
+ [x: string]: unknown;
33
+ };
34
+ $slots: Readonly<{
35
+ [name: string]: import('vue').Slot<any> | undefined;
36
+ }>;
37
+ $root: import('vue').ComponentPublicInstance | null;
38
+ $parent: import('vue').ComponentPublicInstance | null;
39
+ $host: Element | null;
40
+ $emit: (event: string, ...args: any[]) => void;
41
+ $el: any;
42
+ $options: import('vue').ComponentOptionsBase<Readonly<BaseButtonProps> & Readonly<{}>, {
43
+ focus(): void;
44
+ blur(): void;
45
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
46
+ type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
47
+ color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
48
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
49
+ beforeCreate?: (() => void) | (() => void)[];
50
+ created?: (() => void) | (() => void)[];
51
+ beforeMount?: (() => void) | (() => void)[];
52
+ mounted?: (() => void) | (() => void)[];
53
+ beforeUpdate?: (() => void) | (() => void)[];
54
+ updated?: (() => void) | (() => void)[];
55
+ activated?: (() => void) | (() => void)[];
56
+ deactivated?: (() => void) | (() => void)[];
57
+ beforeDestroy?: (() => void) | (() => void)[];
58
+ beforeUnmount?: (() => void) | (() => void)[];
59
+ destroyed?: (() => void) | (() => void)[];
60
+ unmounted?: (() => void) | (() => void)[];
61
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
62
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
63
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
64
+ };
65
+ $forceUpdate: () => void;
66
+ $nextTick: typeof import('vue').nextTick;
67
+ $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;
68
+ } & Readonly<{
69
+ type: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType;
70
+ color: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor;
71
+ }> & Omit<Readonly<BaseButtonProps> & Readonly<{}>, "blur" | "focus" | ("type" | "color")> & import('vue').ShallowUnwrapRef<{
72
+ focus(): void;
73
+ blur(): void;
74
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
75
+ $slots: Readonly<BaseButtonSlots> & BaseButtonSlots;
76
+ }) | null;
77
+ };
78
+ attrs: Partial<{}>;
79
+ };
80
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
81
+ declare const __VLS_component: import('vue').DefineComponent<FloatButtonProps, {
7
82
  focus(): void;
8
83
  blur(): void;
9
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FloatButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<FloatButtonSlots> & FloatButtonSlots>;
84
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FloatButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
85
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
10
86
  export default _default;
11
87
  type __VLS_WithTemplateSlots<T, S> = T & {
12
88
  new (): {
@@ -1,4 +1,4 @@
1
- import { _ as o, _ as e } from "../FloatButton.vue_vue_type_script_setup_true_lang-Bapsnc_p.js";
1
+ import { _ as o, _ as e } from "../FloatButton.vue_vue_type_script_setup_true_lang-BAxKXFb0.js";
2
2
  export {
3
3
  o as FloatButton,
4
4
  e as default
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../FloatButton.vue_vue_type_script_setup_true_lang-C56u1xaL.js");exports.FloatButton=e._sfc_main;exports.default=e._sfc_main;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../FloatButton.vue_vue_type_script_setup_true_lang-C5hAAZZQ.js");exports.FloatButton=e._sfc_main;exports.default=e._sfc_main;
@@ -1,12 +1,11 @@
1
1
  import { defineComponent as i, useAttrs as l, computed as m, ref as u, 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
2
  import { o as y } from "./omit-BEkBWXra.js";
3
- import { _ as C } from "./BaseButton.vue_vue_type_style_index_0_lang-BrQJfrgg.js";
3
+ import { _ as C } from "./BaseButton.vue_vue_type_style_index_0_lang-D7irHU-6.js";
4
4
  import { g as P } from "./options-JBqnVZUl.js";
5
5
  const I = /* @__PURE__ */ i({
6
6
  ...P("FloatButton", !1),
7
7
  __name: "FloatButton",
8
8
  props: {
9
- as: {},
10
9
  class: {},
11
10
  color: {},
12
11
  loading: { type: Boolean },
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),l=require("./omit-BKPbELUG.js"),p=require("./BaseButton.vue_vue_type_style_index_0_lang-CgEN8K4D.js"),_=require("./options-B4iSAKol.js"),f=e.defineComponent({..._.getComponentOptions("FloatButton",!1),__name:"FloatButton",props:{class:{},color:{},loading:{type:Boolean},size:{},icon:{},type:{}},setup(s,{expose:r}){const a=s,c=e.useAttrs(),i=e.computed(()=>({...l.omit(c,"variant","text","preIcon","postIcon","action","active","badgeText"),...a})),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(p._sfc_main,e.mergeProps(i.value,{variant:"float",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,13 +1,20 @@
1
1
  import { BaseBadgeSlots, BaseBadgeProps } from '../Base/BaseBadge/BaseBadge';
2
2
  import { BadgeSize } from '../Base/BaseBadge/BaseBadge.model';
3
3
  import { GraphicalObjectBG, GraphicalObjectBR, GraphicalObjectFG } from './GraphicalObject.model.js';
4
- export type GraphicalObjectProps = Partial<Pick<BaseBadgeProps, 'as' | 'class' | 'icon'>> & {
4
+ export type GraphicalObjectProps = Partial<Pick<BaseBadgeProps, 'class' | 'icon'>> & {
5
5
  fg?: GraphicalObjectFG | string;
6
6
  bg?: GraphicalObjectBG | string;
7
7
  br?: GraphicalObjectBR | string;
8
8
  size?: Exclude<BadgeSize, 'tiny' | 'tinier'>;
9
9
  };
10
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<GraphicalObjectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GraphicalObjectProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<BaseBadgeSlots> & BaseBadgeSlots>;
10
+ declare function __VLS_template(): {
11
+ slots: Readonly<BaseBadgeSlots> & BaseBadgeSlots;
12
+ refs: {};
13
+ attrs: Partial<{}>;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<GraphicalObjectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GraphicalObjectProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
11
18
  export default _default;
12
19
  type __VLS_WithTemplateSlots<T, S> = T & {
13
20
  new (): {
@@ -1,4 +1,4 @@
1
- import { _ as r, _ as t } from "../GraphicalObject.vue_vue_type_script_setup_true_lang-B3FouRlw.js";
1
+ import { _ as r, _ as t } from "../GraphicalObject.vue_vue_type_script_setup_true_lang-BEZ6FkRf.js";
2
2
  export {
3
3
  r as GraphicalObject,
4
4
  t as default
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../GraphicalObject.vue_vue_type_script_setup_true_lang-DlMeNk_1.js");exports.GraphicalObject=e._sfc_main;exports.default=e._sfc_main;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../GraphicalObject.vue_vue_type_script_setup_true_lang-CdO2zArd.js");exports.GraphicalObject=e._sfc_main;exports.default=e._sfc_main;
@@ -1,13 +1,12 @@
1
1
  import { defineComponent as i, computed as n, useAttrs as m, createBlock as b, openBlock as f, mergeProps as u, createSlots as d, renderList as y, withCtx as _, renderSlot as h, normalizeProps as C, guardReactiveProps as O } from "vue";
2
2
  import { o as j } from "./omit-BEkBWXra.js";
3
- import { a as B, B as $, _ as k } from "./BaseBadge.vue_vue_type_style_index_0_lang-MM6bsdzR.js";
3
+ import { a as B, B as $, _ as k } from "./BaseBadge.vue_vue_type_style_index_0_lang-Bh1152XC.js";
4
4
  import { g as v } from "./options-JBqnVZUl.js";
5
5
  import { getCssVar as t } from "@pantograph/tokens";
6
6
  const z = /* @__PURE__ */ i({
7
7
  ...v("GraphicalObject", !1),
8
8
  __name: "GraphicalObject",
9
9
  props: {
10
- as: {},
11
10
  class: {},
12
11
  icon: {},
13
12
  fg: {},
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),u=require("./omit-BKPbELUG.js"),g=require("./BaseBadge.vue_vue_type_style_index_0_lang-BNs69VP4.js"),b=require("./options-B4iSAKol.js"),t=require("@pantograph/tokens"),m=e.defineComponent({...b.getComponentOptions("GraphicalObject",!1),__name:"GraphicalObject",props:{class:{},icon:{},fg:{},bg:{},br:{},size:{}},setup(c){const s=c,i=e.computed(()=>{const a=Object.fromEntries(g.BadgeColors.map(r=>[r,t.getCssVar(`${r}-5`)])),o={...a,...Object.fromEntries(g.BadgeColorsSubtle.map(r=>[r,t.getCssVar(`${r.replace("-subtle","")}-0`)])),transparent:"transparent","gray-subtle":t.getCssVar("gray-1")},n={...a,gray:t.getCssVar("gray-6"),default:t.getCssVar("gray-8"),"default-subtle":t.getCssVar("gray-5"),white:t.getCssVar("grayscale-light-0"),black:t.getCssVar("grayscale-light-10")};return{bg:o[s.bg]??s.bg,br:o[s.br]??(s.bg==="transparent"?t.getCssVar("gray-2"):void 0),fg:n[s.fg??"default"]??s.fg}}),l=e.useAttrs(),p=e.computed(()=>({...u.omit(l,"type","text"),...s,...i.value}));return(a,o)=>(e.openBlock(),e.createBlock(g._sfc_main,e.mergeProps(p.value,{type:"rect"}),e.createSlots({_:2},[e.renderList(Object.keys(a.$slots),n=>({name:n,fn:e.withCtx(r=>[e.renderSlot(a.$slots,n,e.normalizeProps(e.guardReactiveProps(r)))])}))]),1040))}});exports._sfc_main=m;
@@ -8,11 +8,18 @@ export interface IconProps {
8
8
  flipX?: boolean;
9
9
  flipY?: boolean;
10
10
  }
11
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<IconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IconProps> & Readonly<{}>, {
11
+ declare function __VLS_template(): {
12
+ slots: {
13
+ default?(_: {}): any;
14
+ };
15
+ refs: {};
16
+ attrs: Partial<{}>;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue').DefineComponent<IconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IconProps> & Readonly<{}>, {
12
20
  size: IconSize;
13
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
14
- default?(_: {}): any;
15
- }>;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
23
  export default _default;
17
24
  type __VLS_WithTemplateSlots<T, S> = T & {
18
25
  new (): {