@scalar/components 0.14.36 → 0.14.37

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.
@@ -1,6 +1,6 @@
1
- import { defineComponent as b, mergeModels as m, useModel as y, useSlots as c, ref as k, createBlock as i, openBlock as f, withCtx as t, createCommentVNode as V, createSlots as w, renderSlot as r, normalizeProps as s, guardReactiveProps as d } from "vue";
2
- import z from "./ScalarComboboxOptions.vue.js";
3
- import S from "./ScalarComboboxPopover.vue.js";
1
+ import { defineComponent as b, mergeModels as m, useModel as y, ref as c, createBlock as i, openBlock as f, withCtx as t, createCommentVNode as k, createSlots as V, renderSlot as r, normalizeProps as d, guardReactiveProps as s } from "vue";
2
+ import w from "./ScalarComboboxOptions.vue.js";
3
+ import z from "./ScalarComboboxPopover.vue.js";
4
4
  const P = /* @__PURE__ */ b({
5
5
  __name: "ScalarComboboxMultiselect",
6
6
  props: /* @__PURE__ */ m({
@@ -18,10 +18,8 @@ const P = /* @__PURE__ */ b({
18
18
  }),
19
19
  emits: /* @__PURE__ */ m(["add"], ["update:modelValue"]),
20
20
  setup(u, { expose: g, emit: v }) {
21
- const n = y(u, "modelValue"), $ = v;
22
- c();
23
- const p = k(null);
24
- return g({ comboboxPopoverRef: p }), (e, l) => (f(), i(S, {
21
+ const $ = v, n = y(u, "modelValue"), p = c(null);
22
+ return g({ comboboxPopoverRef: p }), (e, l) => (f(), i(z, {
25
23
  ref_key: "comboboxPopoverRef",
26
24
  ref: p,
27
25
  middleware: e.middleware,
@@ -35,7 +33,7 @@ const P = /* @__PURE__ */ b({
35
33
  r(e.$slots, "default", { open: a })
36
34
  ]),
37
35
  popover: t(({ open: a }) => [
38
- e.options?.length ? (f(), i(z, {
36
+ e.options?.length ? (f(), i(w, {
39
37
  key: 0,
40
38
  modelValue: n.value,
41
39
  "onUpdate:modelValue": l[0] || (l[0] = (o) => n.value = o),
@@ -44,29 +42,29 @@ const P = /* @__PURE__ */ b({
44
42
  options: e.options,
45
43
  placeholder: e.placeholder,
46
44
  onAdd: l[1] || (l[1] = (o) => $("add"))
47
- }, w({ _: 2 }, [
45
+ }, V({ _: 2 }, [
48
46
  e.$slots.option ? {
49
47
  name: "option",
50
48
  fn: t((o) => [
51
- r(e.$slots, "option", s(d(o)))
49
+ r(e.$slots, "option", d(s(o)))
52
50
  ]),
53
51
  key: "0"
54
52
  } : void 0,
55
53
  e.$slots.group ? {
56
54
  name: "group",
57
55
  fn: t((o) => [
58
- r(e.$slots, "group", s(d(o)))
56
+ r(e.$slots, "group", d(s(o)))
59
57
  ]),
60
58
  key: "1"
61
59
  } : void 0,
62
60
  e.$slots.add ? {
63
61
  name: "add",
64
62
  fn: t((o) => [
65
- r(e.$slots, "add", s(d(o)))
63
+ r(e.$slots, "add", d(s(o)))
66
64
  ]),
67
65
  key: "2"
68
66
  } : void 0
69
- ]), 1032, ["modelValue", "open", "options", "placeholder"])) : V("", !0)
67
+ ]), 1032, ["modelValue", "open", "options", "placeholder"])) : k("", !0)
70
68
  ]),
71
69
  _: 3
72
70
  }, 8, ["middleware", "offset", "placement", "resize", "target", "teleport"]));
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "git+https://github.com/scalar/scalar.git",
11
11
  "directory": "packages/components"
12
12
  },
13
- "version": "0.14.36",
13
+ "version": "0.14.37",
14
14
  "engines": {
15
15
  "node": ">=20"
16
16
  },
@@ -39,13 +39,13 @@
39
39
  "radix-vue": "^1.9.3",
40
40
  "vue": "^3.5.17",
41
41
  "vue-component-type-helpers": "^3.0.4",
42
- "@scalar/helpers": "0.0.11",
43
42
  "@scalar/code-highlight": "0.2.0",
43
+ "@scalar/helpers": "0.0.11",
44
44
  "@scalar/icons": "0.4.7",
45
- "@scalar/oas-utils": "0.4.31",
45
+ "@scalar/oas-utils": "0.4.32",
46
+ "@scalar/themes": "0.13.18",
46
47
  "@scalar/use-hooks": "0.2.5",
47
- "@scalar/use-toasts": "0.8.0",
48
- "@scalar/themes": "0.13.18"
48
+ "@scalar/use-toasts": "0.8.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@headlessui/tailwindcss": "^0.2.2",