@scalar/components 0.13.0 → 0.13.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 (138) hide show
  1. package/dist/components/ScalarButton/ScalarButton.test.d.ts +2 -0
  2. package/dist/components/ScalarButton/ScalarButton.test.d.ts.map +1 -0
  3. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.test.d.ts +2 -0
  4. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.test.d.ts.map +1 -0
  5. package/dist/components/ScalarCombobox/ScalarCombobox.test.d.ts +2 -0
  6. package/dist/components/ScalarCombobox/ScalarCombobox.test.d.ts.map +1 -0
  7. package/dist/components/ScalarContextMenu/ScalarContextMenu.test.d.ts +2 -0
  8. package/dist/components/ScalarContextMenu/ScalarContextMenu.test.d.ts.map +1 -0
  9. package/dist/components/ScalarDropdown/ScalarDropdown.test.d.ts +2 -0
  10. package/dist/components/ScalarDropdown/ScalarDropdown.test.d.ts.map +1 -0
  11. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.test.d.ts +2 -0
  12. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.test.d.ts.map +1 -0
  13. package/dist/components/ScalarFloating/ScalarFloating.test.d.ts +2 -0
  14. package/dist/components/ScalarFloating/ScalarFloating.test.d.ts.map +1 -0
  15. package/dist/components/ScalarFloating/ScalarFloating.vue.d.ts.map +1 -1
  16. package/dist/components/ScalarFloating/ScalarFloating.vue.js +33 -31
  17. package/dist/components/ScalarFloating/types.d.ts +3 -1
  18. package/dist/components/ScalarFloating/types.d.ts.map +1 -1
  19. package/dist/components/ScalarFloating/useResizeWithTarget.test.d.ts +2 -0
  20. package/dist/components/ScalarFloating/useResizeWithTarget.test.d.ts.map +1 -0
  21. package/dist/components/ScalarHeaderButton/ScalarHeaderButton.test.d.ts +2 -0
  22. package/dist/components/ScalarHeaderButton/ScalarHeaderButton.test.d.ts.map +1 -0
  23. package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts +8 -8
  24. package/dist/components/ScalarIcon/ScalarIcon.test.d.ts +2 -0
  25. package/dist/components/ScalarIcon/ScalarIcon.test.d.ts.map +1 -0
  26. package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts +1 -1
  27. package/dist/components/ScalarIcon/icons/Add.svg.js +2 -2
  28. package/dist/components/ScalarIcon/icons/ChevronDown.svg.js +1 -1
  29. package/dist/components/ScalarIcon/icons/ChevronRight.svg.js +1 -1
  30. package/dist/components/ScalarIcon/icons/ChevronUp.svg.js +1 -1
  31. package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts +3 -3
  32. package/dist/components/ScalarIconButton/ScalarIconButton.test.d.ts +2 -0
  33. package/dist/components/ScalarIconButton/ScalarIconButton.test.d.ts.map +1 -0
  34. package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts +2 -2
  35. package/dist/components/ScalarListbox/ScalarListbox.test.d.ts +2 -0
  36. package/dist/components/ScalarListbox/ScalarListbox.test.d.ts.map +1 -0
  37. package/dist/components/ScalarLoading/ScalarLoading.stories.d.ts +8 -8
  38. package/dist/components/ScalarLoading/ScalarLoading.test.d.ts +2 -0
  39. package/dist/components/ScalarLoading/ScalarLoading.test.d.ts.map +1 -0
  40. package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts +2 -2
  41. package/dist/components/ScalarMenu/ScalarMenu.test.d.ts +2 -0
  42. package/dist/components/ScalarMenu/ScalarMenu.test.d.ts.map +1 -0
  43. package/dist/components/ScalarMenu/ScalarMenuButton.vue.d.ts.map +1 -1
  44. package/dist/components/ScalarMenu/ScalarMenuButton.vue.js +3 -4
  45. package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.d.ts.map +1 -1
  46. package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.js +19 -20
  47. package/dist/components/ScalarModal/ScalarModal.stories.d.ts +6 -6
  48. package/dist/components/ScalarModal/ScalarModal.test.d.ts +2 -0
  49. package/dist/components/ScalarModal/ScalarModal.test.d.ts.map +1 -0
  50. package/dist/components/ScalarModal/ScalarModal.vue.d.ts +3 -3
  51. package/dist/components/ScalarPopover/ScalarPopover.test.d.ts +2 -0
  52. package/dist/components/ScalarPopover/ScalarPopover.test.d.ts.map +1 -0
  53. package/dist/components/ScalarSearchInput/ScalarSearchInput.test.d.ts +2 -0
  54. package/dist/components/ScalarSearchInput/ScalarSearchInput.test.d.ts.map +1 -0
  55. package/dist/components/ScalarSearchResults/ScalarSearchResults.test.d.ts +2 -0
  56. package/dist/components/ScalarSearchResults/ScalarSearchResults.test.d.ts.map +1 -0
  57. package/dist/components/ScalarTeleport/ScalarTeleport.stories.d.ts +7 -0
  58. package/dist/components/ScalarTeleport/ScalarTeleport.stories.d.ts.map +1 -0
  59. package/dist/components/ScalarTeleport/ScalarTeleport.test.d.ts +2 -0
  60. package/dist/components/ScalarTeleport/ScalarTeleport.test.d.ts.map +1 -0
  61. package/dist/components/ScalarTeleport/ScalarTeleport.vue.d.ts +58 -0
  62. package/dist/components/ScalarTeleport/ScalarTeleport.vue.d.ts.map +1 -0
  63. package/dist/components/ScalarTeleport/ScalarTeleport.vue.js +30 -0
  64. package/dist/components/ScalarTeleport/ScalarTeleport.vue2.js +4 -0
  65. package/dist/components/ScalarTeleport/ScalarTeleportRoot.vue.d.ts +38 -0
  66. package/dist/components/ScalarTeleport/ScalarTeleportRoot.vue.d.ts.map +1 -0
  67. package/dist/components/ScalarTeleport/ScalarTeleportRoot.vue.js +23 -0
  68. package/dist/components/ScalarTeleport/ScalarTeleportRoot.vue2.js +4 -0
  69. package/dist/components/ScalarTeleport/index.d.ts +4 -0
  70. package/dist/components/ScalarTeleport/index.d.ts.map +1 -0
  71. package/dist/components/ScalarTeleport/useTeleport.d.ts +20 -0
  72. package/dist/components/ScalarTeleport/useTeleport.d.ts.map +1 -0
  73. package/dist/components/ScalarTeleport/useTeleport.js +11 -0
  74. package/dist/components/ScalarTeleport/useTeleport.test.d.ts +2 -0
  75. package/dist/components/ScalarTeleport/useTeleport.test.d.ts.map +1 -0
  76. package/dist/components/ScalarTextField/ScalarTextField.test.d.ts +2 -0
  77. package/dist/components/ScalarTextField/ScalarTextField.test.d.ts.map +1 -0
  78. package/dist/components/ScalarToggle/ScalarToggle.test.d.ts +2 -0
  79. package/dist/components/ScalarToggle/ScalarToggle.test.d.ts.map +1 -0
  80. package/dist/components/ScalarTooltip/ScalarTooltip.test.d.ts +2 -0
  81. package/dist/components/ScalarTooltip/ScalarTooltip.test.d.ts.map +1 -0
  82. package/dist/components/ScalarTooltip/ScalarTooltip.vue.js +5 -5
  83. package/dist/components/ScalarVirtualText/ScalarVirtualText.test.d.ts +2 -0
  84. package/dist/components/ScalarVirtualText/ScalarVirtualText.test.d.ts.map +1 -0
  85. package/dist/cva.js +7 -7
  86. package/dist/cva.test.d.ts +2 -0
  87. package/dist/cva.test.d.ts.map +1 -0
  88. package/dist/hooks/useBindCx.d.ts.map +1 -1
  89. package/dist/hooks/useBindCx.js +8 -8
  90. package/dist/index.d.ts +2 -0
  91. package/dist/index.d.ts.map +1 -1
  92. package/dist/index.js +91 -78
  93. package/dist/style.css +1 -1
  94. package/package.json +6 -6
  95. package/dist/components/ScalarButton/ScalarButton.spec.d.ts +0 -2
  96. package/dist/components/ScalarButton/ScalarButton.spec.d.ts.map +0 -1
  97. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.spec.d.ts +0 -2
  98. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.spec.d.ts.map +0 -1
  99. package/dist/components/ScalarCombobox/ScalarCombobox.spec.d.ts +0 -2
  100. package/dist/components/ScalarCombobox/ScalarCombobox.spec.d.ts.map +0 -1
  101. package/dist/components/ScalarContextMenu/ScalarContextMenu.spec.d.ts +0 -2
  102. package/dist/components/ScalarContextMenu/ScalarContextMenu.spec.d.ts.map +0 -1
  103. package/dist/components/ScalarDropdown/ScalarDropdown.spec.d.ts +0 -2
  104. package/dist/components/ScalarDropdown/ScalarDropdown.spec.d.ts.map +0 -1
  105. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.spec.d.ts +0 -2
  106. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.spec.d.ts.map +0 -1
  107. package/dist/components/ScalarFloating/ScalarFloating.spec.d.ts +0 -2
  108. package/dist/components/ScalarFloating/ScalarFloating.spec.d.ts.map +0 -1
  109. package/dist/components/ScalarFloating/useResizeWithTarget.spec.d.ts +0 -2
  110. package/dist/components/ScalarFloating/useResizeWithTarget.spec.d.ts.map +0 -1
  111. package/dist/components/ScalarHeaderButton/ScalarHeaderButton.spec.d.ts +0 -2
  112. package/dist/components/ScalarHeaderButton/ScalarHeaderButton.spec.d.ts.map +0 -1
  113. package/dist/components/ScalarIcon/ScalarIcon.spec.d.ts +0 -2
  114. package/dist/components/ScalarIcon/ScalarIcon.spec.d.ts.map +0 -1
  115. package/dist/components/ScalarIconButton/ScalarIconButton.spec.d.ts +0 -2
  116. package/dist/components/ScalarIconButton/ScalarIconButton.spec.d.ts.map +0 -1
  117. package/dist/components/ScalarListbox/ScalarListbox.spec.d.ts +0 -2
  118. package/dist/components/ScalarListbox/ScalarListbox.spec.d.ts.map +0 -1
  119. package/dist/components/ScalarLoading/ScalarLoading.spec.d.ts +0 -2
  120. package/dist/components/ScalarLoading/ScalarLoading.spec.d.ts.map +0 -1
  121. package/dist/components/ScalarMenu/ScalarMenu.spec.d.ts +0 -2
  122. package/dist/components/ScalarMenu/ScalarMenu.spec.d.ts.map +0 -1
  123. package/dist/components/ScalarModal/ScalarModal.spec.d.ts +0 -2
  124. package/dist/components/ScalarModal/ScalarModal.spec.d.ts.map +0 -1
  125. package/dist/components/ScalarPopover/ScalarPopover.spec.d.ts +0 -2
  126. package/dist/components/ScalarPopover/ScalarPopover.spec.d.ts.map +0 -1
  127. package/dist/components/ScalarSearchInput/ScalarSearchInput.spec.d.ts +0 -2
  128. package/dist/components/ScalarSearchInput/ScalarSearchInput.spec.d.ts.map +0 -1
  129. package/dist/components/ScalarSearchResults/ScalarSearchResults.spec.d.ts +0 -2
  130. package/dist/components/ScalarSearchResults/ScalarSearchResults.spec.d.ts.map +0 -1
  131. package/dist/components/ScalarTextField/ScalarTextField.spec.d.ts +0 -2
  132. package/dist/components/ScalarTextField/ScalarTextField.spec.d.ts.map +0 -1
  133. package/dist/components/ScalarToggle/ScalarToggle.spec.d.ts +0 -2
  134. package/dist/components/ScalarToggle/ScalarToggle.spec.d.ts.map +0 -1
  135. package/dist/components/ScalarTooltip/ScalarTooltip.spec.d.ts +0 -2
  136. package/dist/components/ScalarTooltip/ScalarTooltip.spec.d.ts.map +0 -1
  137. package/dist/components/ScalarVirtualText/ScalarVirtualText.spec.d.ts +0 -2
  138. package/dist/components/ScalarVirtualText/ScalarVirtualText.spec.d.ts.map +0 -1
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarButton.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarButton.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarButton/ScalarButton.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarCodeBlock.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarCodeBlock.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCodeBlock/ScalarCodeBlock.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarCombobox.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarCombobox.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarCombobox.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarContextMenu.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarContextMenu.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarContextMenu/ScalarContextMenu.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarDropdown.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarDropdown.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarDropdown/ScalarDropdown.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarErrorBoundary.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarErrorBoundary.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarErrorBoundary/ScalarErrorBoundary.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarFloating.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarFloating.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFloating/ScalarFloating.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarFloating.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFloating/ScalarFloating.vue"],"names":[],"mappings":"AAsHA,OAAO,EACL,KAAK,cAAc,EAOpB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAY,KAAK,IAAI,EAAiB,MAAM,KAAK,CAAA;AAExD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAsF9C,iBAAS,cAAc;WAuDT,OAAO,IAA6B;;QApIhD,kEAAkE;mBACvD,IAAI;QACf,2BAA2B;wBACX;YACd,4FAA4F;YAC5F,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,6FAA6F;YAC7F,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,gDAAgD;YAChD,IAAI,CAAC,EAAE,cAAc,CAAA;SACtB,GAAG,IAAI;;QAVR,kEAAkE;mBACvD,IAAI;QACf,2BAA2B;wBACX;YACd,4FAA4F;YAC5F,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,6FAA6F;YAC7F,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,gDAAgD;YAChD,IAAI,CAAC,EAAE,cAAc,CAAA;SACtB,GAAG,IAAI;;;;;;;EA+HT;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0SAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarFloating.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFloating/ScalarFloating.vue"],"names":[],"mappings":"AAqHA,OAAO,EACL,KAAK,cAAc,EAOpB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAY,KAAK,IAAI,EAAiB,MAAM,KAAK,CAAA;AAGxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAsF9C,iBAAS,cAAc;WAqDT,OAAO,IAA6B;;QAlIhD,kEAAkE;mBACvD,IAAI;QACf,2BAA2B;wBACX;YACd,4FAA4F;YAC5F,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,6FAA6F;YAC7F,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,gDAAgD;YAChD,IAAI,CAAC,EAAE,cAAc,CAAA;SACtB,GAAG,IAAI;;QAVR,kEAAkE;mBACvD,IAAI;QACf,2BAA2B;wBACX;YACd,4FAA4F;YAC5F,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,6FAA6F;YAC7F,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,gDAAgD;YAChD,IAAI,CAAC,EAAE,cAAc,CAAA;SACtB,GAAG,IAAI;;;;;;;EA6HT;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0SAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,8 +1,9 @@
1
- import { defineComponent as z, ref as d, computed as a, openBlock as f, createElementBlock as S, Fragment as b, createElementVNode as r, normalizeClass as $, renderSlot as p, createBlock as k, Teleport as B, normalizeStyle as R, unref as m, createCommentVNode as E } from "vue";
2
- import { getSideAxis as c } from "@floating-ui/utils";
3
- import { useFloating as F, autoUpdate as M, offset as T, flip as x, shift as C, size as H } from "@floating-ui/vue";
4
- import { useResizeWithTarget as W } from "./useResizeWithTarget.js";
5
- const _ = { class: "scalar-app" }, D = /* @__PURE__ */ z({
1
+ import { defineComponent as z, ref as f, computed as a, openBlock as d, createElementBlock as S, Fragment as $, createElementVNode as m, normalizeClass as b, renderSlot as p, createBlock as k, unref as l, withCtx as B, normalizeStyle as R, createCommentVNode as E } from "vue";
2
+ import { getSideAxis as g } from "@floating-ui/utils";
3
+ import { useFloating as x, autoUpdate as C, offset as F, flip as M, shift as _, size as H } from "@floating-ui/vue";
4
+ import { useResizeWithTarget as T } from "./useResizeWithTarget.js";
5
+ import W from "../ScalarTeleport/ScalarTeleport.vue.js";
6
+ const I = /* @__PURE__ */ z({
6
7
  inheritAttrs: !1,
7
8
  __name: "ScalarFloating",
8
9
  props: {
@@ -12,29 +13,29 @@ const _ = { class: "scalar-app" }, D = /* @__PURE__ */ z({
12
13
  middleware: {},
13
14
  teleport: { type: [Boolean, String] }
14
15
  },
15
- setup(g) {
16
- const t = g, n = d(null), l = d(null), i = a(() => {
16
+ setup(c) {
17
+ const t = c, n = f(null), r = f(null), i = a(() => {
17
18
  var e;
18
19
  if (typeof t.target == "string") {
19
20
  const o = document.getElementById(t.target);
20
21
  if (o) return o;
21
22
  console.warn(`ScalarFloating: Target with id="${t.target}" not found`);
22
23
  } else if (t.target instanceof HTMLElement) return t.target;
23
- if (l.value)
24
- return ((e = l.value.children) == null ? void 0 : e[0]) || l.value;
25
- }), s = W(i, {
24
+ if (r.value)
25
+ return ((e = r.value.children) == null ? void 0 : e[0]) || r.value;
26
+ }), s = T(i, {
26
27
  enabled: a(() => t.resize)
27
28
  }), u = a(
28
- () => c(t.placement || "bottom") === "y" ? s.width.value : void 0
29
+ () => g(t.placement || "bottom") === "y" ? s.width.value : void 0
29
30
  ), h = a(
30
- () => c(t.placement || "bottom") === "x" ? s.height.value : void 0
31
- ), { floatingStyles: y, middlewareData: v } = F(i, n, {
31
+ () => g(t.placement || "bottom") === "x" ? s.height.value : void 0
32
+ ), { floatingStyles: v, middlewareData: y } = x(i, n, {
32
33
  placement: a(() => t.placement),
33
- whileElementsMounted: M,
34
+ whileElementsMounted: C,
34
35
  middleware: a(() => [
35
- T(5),
36
- x(),
37
- C(),
36
+ F(5),
37
+ M(),
38
+ _(),
38
39
  H({
39
40
  apply({ availableWidth: e, availableHeight: o, elements: w }) {
40
41
  Object.assign(w.floating.style, {
@@ -46,37 +47,38 @@ const _ = { class: "scalar-app" }, D = /* @__PURE__ */ z({
46
47
  ...t.middleware ?? []
47
48
  ])
48
49
  });
49
- return (e, o) => (f(), S(b, null, [
50
- r("div", {
50
+ return (e, o) => (d(), S($, null, [
51
+ m("div", {
51
52
  ref_key: "wrapperRef",
52
- ref: l,
53
- class: $({ contents: !!e.$slots.default })
53
+ ref: r,
54
+ class: b({ contents: !!e.$slots.default })
54
55
  }, [
55
56
  p(e.$slots, "default")
56
57
  ], 2),
57
- e.$slots.floating ? (f(), k(B, {
58
+ e.$slots.floating ? (d(), k(l(W), {
58
59
  key: 0,
59
60
  disabled: !e.teleport,
60
- to: typeof e.teleport == "string" ? e.teleport : "body"
61
- }, [
62
- r("div", _, [
63
- r("div", {
61
+ to: typeof e.teleport == "string" ? e.teleport : void 0
62
+ }, {
63
+ default: B(() => [
64
+ m("div", {
64
65
  ref_key: "floatingRef",
65
66
  ref: n,
66
67
  class: "relative z-overlay",
67
- style: R(m(y))
68
+ style: R(l(v))
68
69
  }, [
69
70
  p(e.$slots, "floating", {
70
- data: m(v),
71
+ data: l(y),
71
72
  height: h.value,
72
73
  width: u.value
73
74
  })
74
75
  ], 4)
75
- ])
76
- ], 8, ["disabled", "to"])) : E("", !0)
76
+ ]),
77
+ _: 3
78
+ }, 8, ["disabled", "to"])) : E("", !0)
77
79
  ], 64));
78
80
  }
79
81
  });
80
82
  export {
81
- D as default
83
+ I as default
82
84
  };
@@ -35,7 +35,9 @@ export type FloatingOptions = {
35
35
  middleware?: Middleware[];
36
36
  /**
37
37
  * Whether to teleport the floating element.
38
- * Can be an `id` to teleport to or `true` to teleport to the `<body>`.
38
+ * Can be an `id` to teleport to or `true` to teleport to the nearest `<ScalarTeleportRoot>` (or `<body>`).
39
+ *
40
+ * @see {@link ScalarTeleportRoot}
39
41
  * @default false
40
42
  */
41
43
  teleport?: boolean | string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFloating/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAE7D,iDAAiD;AACjD,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAA;IAC7B;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,EAAE,UAAU,EAAE,CAAA;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;CAC5B,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFloating/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAI7D,iDAAiD;AACjD,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAA;IAC7B;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,EAAE,UAAU,EAAE,CAAA;IACzB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;CAC5B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=useResizeWithTarget.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useResizeWithTarget.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFloating/useResizeWithTarget.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarHeaderButton.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarHeaderButton.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarHeaderButton/ScalarHeaderButton.test.ts"],"names":[],"mappings":""}
@@ -3,13 +3,13 @@ declare const meta: {
3
3
  component: import("vue").DefineComponent<{
4
4
  icon?: import("./index.js").Icon;
5
5
  logo?: import("./utils/index.js").Logo;
6
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
6
+ size?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "full" | undefined;
7
7
  thickness?: string;
8
8
  label?: string;
9
9
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
10
10
  icon?: import("./index.js").Icon;
11
11
  logo?: import("./utils/index.js").Logo;
12
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
12
+ size?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "full" | undefined;
13
13
  thickness?: string;
14
14
  label?: string;
15
15
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -48,13 +48,13 @@ declare const meta: {
48
48
  render: (args: import("@storybook/vue3").ComponentPropsAndSlots<import("vue").DefineComponent<{
49
49
  icon?: import("./index.js").Icon;
50
50
  logo?: import("./utils/index.js").Logo;
51
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
51
+ size?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "full" | undefined;
52
52
  thickness?: string;
53
53
  label?: string;
54
54
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
55
55
  icon?: import("./index.js").Icon;
56
56
  logo?: import("./utils/index.js").Logo;
57
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
57
+ size?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "full" | undefined;
58
58
  thickness?: string;
59
59
  label?: string;
60
60
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>) => {
@@ -62,13 +62,13 @@ declare const meta: {
62
62
  ScalarIcon: import("vue").DefineComponent<{
63
63
  icon?: import("./index.js").Icon;
64
64
  logo?: import("./utils/index.js").Logo;
65
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
65
+ size?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "full" | undefined;
66
66
  thickness?: string;
67
67
  label?: string;
68
68
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
69
69
  icon?: import("./index.js").Icon;
70
70
  logo?: import("./utils/index.js").Logo;
71
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
71
+ size?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "full" | undefined;
72
72
  thickness?: string;
73
73
  label?: string;
74
74
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -77,13 +77,13 @@ declare const meta: {
77
77
  args: import("@storybook/vue3").ComponentPropsAndSlots<import("vue").DefineComponent<{
78
78
  icon?: import("./index.js").Icon;
79
79
  logo?: import("./utils/index.js").Logo;
80
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
80
+ size?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "full" | undefined;
81
81
  thickness?: string;
82
82
  label?: string;
83
83
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
84
84
  icon?: import("./index.js").Icon;
85
85
  logo?: import("./utils/index.js").Logo;
86
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
86
+ size?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "full" | undefined;
87
87
  thickness?: string;
88
88
  label?: string;
89
89
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarIcon.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarIcon.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIcon/ScalarIcon.test.ts"],"names":[],"mappings":""}
@@ -12,7 +12,7 @@ type __VLS_Props = {
12
12
  label?: string;
13
13
  };
14
14
  declare const iconProps: (props?: ({
15
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
15
+ size?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "full" | undefined;
16
16
  } & ({
17
17
  class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
18
18
  [x: string]: any;
@@ -1,16 +1,16 @@
1
1
  import { openBlock as o, createElementBlock as n, createElementVNode as r } from "vue";
2
2
  const t = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
+ fill: "none",
4
5
  viewBox: "0 0 24 24"
5
6
  };
6
7
  function l(d, e) {
7
8
  return o(), n("svg", t, e[0] || (e[0] = [
8
9
  r("path", {
9
- fill: "none",
10
10
  stroke: "currentColor",
11
11
  "stroke-linecap": "round",
12
12
  "stroke-linejoin": "round",
13
- d: "M2 12h20M12 2v20"
13
+ d: "M5 11.988h14M12.006 5v14"
14
14
  }, null, -1)
15
15
  ]));
16
16
  }
@@ -10,7 +10,7 @@ function l(s, e) {
10
10
  stroke: "currentColor",
11
11
  "stroke-linecap": "round",
12
12
  "stroke-linejoin": "round",
13
- d: "m4.5 8.25 7.5 7.5 7.5-7.5"
13
+ d: "m18 10-6 6-6-6"
14
14
  }, null, -1)
15
15
  ]));
16
16
  }
@@ -10,7 +10,7 @@ function l(s, e) {
10
10
  stroke: "currentColor",
11
11
  "stroke-linecap": "round",
12
12
  "stroke-linejoin": "round",
13
- d: "m8.25 19.5 7.5-7.5-7.5-7.5"
13
+ d: "m9 18 6-6-6-6"
14
14
  }, null, -1)
15
15
  ]));
16
16
  }
@@ -10,7 +10,7 @@ function l(s, e) {
10
10
  stroke: "currentColor",
11
11
  "stroke-linecap": "round",
12
12
  "stroke-linejoin": "round",
13
- d: "M19.5 15.75 12 8.25l-7.5 7.5"
13
+ d: "m18 15-6-6-6 6"
14
14
  }, null, -1)
15
15
  ]));
16
16
  }
@@ -8,17 +8,17 @@ declare const meta: {
8
8
  icon: import("../ScalarIcon").Icon;
9
9
  disabled?: boolean;
10
10
  variant?: string | undefined;
11
- size?: "xs" | "sm" | "md" | "full" | "xxs" | undefined;
11
+ size?: "sm" | "xs" | "md" | "full" | "xxs" | undefined;
12
12
  thickness?: string;
13
13
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
14
14
  label: string;
15
15
  icon: import("../ScalarIcon").Icon;
16
16
  disabled?: boolean;
17
17
  variant?: string | undefined;
18
- size?: "xs" | "sm" | "md" | "full" | "xxs" | undefined;
18
+ size?: "sm" | "xs" | "md" | "full" | "xxs" | undefined;
19
19
  thickness?: string;
20
20
  }> & Readonly<{}>, {
21
- size: "xs" | "sm" | "md" | "full" | "xxs";
21
+ size: "sm" | "xs" | "md" | "full" | "xxs";
22
22
  variant: string;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  tags: string[];
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarIconButton.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarIconButton.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarIconButton/ScalarIconButton.test.ts"],"names":[],"mappings":""}
@@ -10,7 +10,7 @@ type __VLS_Props = {
10
10
  thickness?: string;
11
11
  };
12
12
  declare const variants: (props?: ({
13
- size?: "xs" | "sm" | "md" | "full" | "xxs" | undefined;
13
+ size?: "sm" | "xs" | "md" | "full" | "xxs" | undefined;
14
14
  disabled?: boolean | undefined;
15
15
  variant?: string | undefined;
16
16
  } & ({
@@ -69,7 +69,7 @@ declare const variants: (props?: ({
69
69
  } | null | undefined;
70
70
  })) | undefined) => string;
71
71
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
72
- size: "xs" | "sm" | "md" | "full" | "xxs";
72
+ size: "sm" | "xs" | "md" | "full" | "xxs";
73
73
  variant: string;
74
74
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
75
75
  export default _default;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarListbox.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarListbox.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarListbox/ScalarListbox.test.ts"],"names":[],"mappings":""}
@@ -5,10 +5,10 @@ import type { StoryObj } from '@storybook/vue3';
5
5
  declare const meta: {
6
6
  component: import("vue").DefineComponent<{
7
7
  loadingState?: import("./ScalarLoading.vue.js").LoadingState;
8
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
8
+ size?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "full" | undefined;
9
9
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
10
10
  loadingState?: import("./ScalarLoading.vue.js").LoadingState;
11
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
11
+ size?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "full" | undefined;
12
12
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
13
  tags: string[];
14
14
  argTypes: {
@@ -22,10 +22,10 @@ declare const meta: {
22
22
  };
23
23
  render: (args: import("@storybook/vue3").ComponentPropsAndSlots<import("vue").DefineComponent<{
24
24
  loadingState?: import("./ScalarLoading.vue.js").LoadingState;
25
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
25
+ size?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "full" | undefined;
26
26
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
27
27
  loadingState?: import("./ScalarLoading.vue.js").LoadingState;
28
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
28
+ size?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "full" | undefined;
29
29
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>) => {
30
30
  components: {
31
31
  ScalarButton: {
@@ -85,19 +85,19 @@ declare const meta: {
85
85
  });
86
86
  ScalarLoading: import("vue").DefineComponent<{
87
87
  loadingState?: import("./ScalarLoading.vue.js").LoadingState;
88
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
88
+ size?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "full" | undefined;
89
89
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
90
90
  loadingState?: import("./ScalarLoading.vue.js").LoadingState;
91
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
91
+ size?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "full" | undefined;
92
92
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
93
93
  };
94
94
  setup(this: void): {
95
95
  args: import("@storybook/vue3").ComponentPropsAndSlots<import("vue").DefineComponent<{
96
96
  loadingState?: import("./ScalarLoading.vue.js").LoadingState;
97
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
97
+ size?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "full" | undefined;
98
98
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
99
99
  loadingState?: import("./ScalarLoading.vue.js").LoadingState;
100
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
100
+ size?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "full" | undefined;
101
101
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>;
102
102
  loadingState: {
103
103
  isValid: boolean;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarLoading.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarLoading.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarLoading/ScalarLoading.test.ts"],"names":[],"mappings":""}
@@ -16,10 +16,10 @@ export declare function useLoadingState(): {
16
16
  };
17
17
  declare const _default: import("vue").DefineComponent<{
18
18
  loadingState?: LoadingState;
19
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
19
+ size?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "full" | undefined;
20
20
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
21
21
  loadingState?: LoadingState;
22
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
22
+ size?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "full" | undefined;
23
23
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  export default _default;
25
25
  //# sourceMappingURL=ScalarLoading.vue.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarMenu.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarMenu.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenu.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarMenuButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuButton.vue"],"names":[],"mappings":"AAwCA,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAWF,iBAAS,cAAc;WA6DT,OAAO,IAA6B;;yBATrB,GAAG;uBACL,GAAG;;;;EAa7B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarMenuButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuButton.vue"],"names":[],"mappings":"AAuCA,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAWF,iBAAS,cAAc;WA6DT,OAAO,IAA6B;;yBATrB,GAAG;uBACL,GAAG;;;;EAa7B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as p, openBlock as c, createElementBlock as l, mergeProps as u, unref as o, createElementVNode as t, renderSlot as n, createVNode as r, createTextVNode as i, toDisplayString as m } from "vue";
1
+ import { defineComponent as p, openBlock as l, createElementBlock as c, mergeProps as u, unref as o, createElementVNode as t, renderSlot as n, createVNode as r, createTextVNode as i, toDisplayString as m } from "vue";
2
2
  import { useBindCx as d } from "../../hooks/useBindCx.js";
3
3
  import s from "../ScalarIcon/ScalarIcon.vue.js";
4
4
  const f = { class: "h-5 w-auto" }, h = { class: "sr-only" }, y = /* @__PURE__ */ p({
@@ -9,7 +9,7 @@ const f = { class: "h-5 w-auto" }, h = { class: "sr-only" }, y = /* @__PURE__ */
9
9
  },
10
10
  setup(b) {
11
11
  const { cx: a } = d();
12
- return (e, g) => (c(), l("button", u(
12
+ return (e, g) => (l(), c("button", u(
13
13
  {
14
14
  class: "",
15
15
  type: "button"
@@ -31,8 +31,7 @@ const f = { class: "h-5 w-auto" }, h = { class: "sr-only" }, y = /* @__PURE__ */
31
31
  r(o(s), {
32
32
  class: "text-c-3 group-hover/button:text-c-1",
33
33
  icon: e.open ? "ChevronUp" : "ChevronDown",
34
- size: "sm",
35
- thickness: "2.5"
34
+ size: "sm"
36
35
  }, null, 8, ["icon"])
37
36
  ], 16));
38
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarMenuTeamPicker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuTeamPicker.vue"],"names":[],"mappings":"AAoDA,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,OAAO,CAAA;AAKd,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAA;IACtC,KAAK,EAAE,mBAAmB,EAAE,CAAA;CAC7B,CAAC;;;;;;AAwGF,wBAOG"}
1
+ {"version":3,"file":"ScalarMenuTeamPicker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuTeamPicker.vue"],"names":[],"mappings":"AAmDA,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,OAAO,CAAA;AAKd,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAA;IACtC,KAAK,EAAE,mBAAmB,EAAE,CAAA;CAC7B,CAAC;;;;;;AAwGF,wBAOG"}
@@ -1,8 +1,8 @@
1
- import { defineComponent as d, computed as u, openBlock as f, createElementBlock as x, normalizeProps as _, guardReactiveProps as v, unref as o, createVNode as a, withCtx as s, createTextVNode as h, toDisplayString as V } from "vue";
2
- import { useBindCx as g } from "../../hooks/useBindCx.js";
3
- import k from "../ScalarListbox/ScalarListbox.vue.js";
4
- import C from "../ScalarButton/ScalarButton.vue.js";
5
- import b from "../ScalarIcon/ScalarIcon.vue.js";
1
+ import { defineComponent as d, computed as u, openBlock as f, createElementBlock as x, normalizeProps as _, guardReactiveProps as v, unref as o, createVNode as a, withCtx as r, createTextVNode as V, toDisplayString as g } from "vue";
2
+ import { useBindCx as h } from "../../hooks/useBindCx.js";
3
+ import C from "../ScalarListbox/ScalarListbox.vue.js";
4
+ import b from "../ScalarButton/ScalarButton.vue.js";
5
+ import k from "../ScalarIcon/ScalarIcon.vue.js";
6
6
  const y = /* @__PURE__ */ d({
7
7
  inheritAttrs: !1,
8
8
  __name: "ScalarMenuTeamPicker",
@@ -11,33 +11,32 @@ const y = /* @__PURE__ */ d({
11
11
  teams: {}
12
12
  },
13
13
  emits: ["update:team"],
14
- setup(r, { emit: i }) {
15
- const l = r, p = i, n = u({
16
- get: () => l.team,
14
+ setup(s, { emit: l }) {
15
+ const i = s, p = l, m = u({
16
+ get: () => i.team,
17
17
  set: (e) => p("update:team", e)
18
- }), { cx: c } = g();
19
- return (e, m) => (f(), x("div", _(v(o(c)("flex flex-col pb-px"))), [
20
- a(o(k), {
21
- modelValue: n.value,
22
- "onUpdate:modelValue": m[0] || (m[0] = (t) => n.value = t),
18
+ }), { cx: c } = h();
19
+ return (e, n) => (f(), x("div", _(v(o(c)("flex flex-col pb-px"))), [
20
+ a(o(C), {
21
+ modelValue: m.value,
22
+ "onUpdate:modelValue": n[0] || (n[0] = (t) => m.value = t),
23
23
  options: e.teams,
24
24
  placement: "bottom-end",
25
25
  resize: ""
26
26
  }, {
27
- default: s(() => [
28
- a(o(C), {
27
+ default: r(() => [
28
+ a(o(b), {
29
29
  class: "h-auto px-2.5 py-1 text-xs leading shadow-none",
30
30
  variant: "outlined"
31
31
  }, {
32
- default: s(() => {
32
+ default: r(() => {
33
33
  var t;
34
34
  return [
35
- h(V((t = e.team) == null ? void 0 : t.label) + " ", 1),
36
- a(o(b), {
35
+ V(g((t = e.team) == null ? void 0 : t.label) + " ", 1),
36
+ a(o(k), {
37
37
  class: "ml-auto text-c-2",
38
38
  icon: "ChevronDown",
39
- size: "xs",
40
- thickness: "2.5"
39
+ size: "sm"
41
40
  })
42
41
  ];
43
42
  }),