@scalar/components 0.14.28 → 0.14.29
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.
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.js +21 -21
- package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.js +20 -19
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarMenuLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuLink.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarMenuLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuLink.vue"],"names":[],"mappings":"AA2CA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAG9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAGpC,OAAO,EAAE,KAAK,IAAI,EAA2B,MAAM,eAAe,CAAA;AAElE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,IAAI,CAAC,EAAE,IAAI,GAAG,mBAAmB,CAAA;IACjC,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AAqEF,QAAA,IAAI,QAAQ,IAAW,CAAE;AACzB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAsBhD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { defineComponent as i, createBlock as n, openBlock as o, unref as t, mergeProps as l, withCtx as a, createElementBlock as m, createElementVNode as c, normalizeClass as s, renderSlot as f } from "vue";
|
|
2
|
+
import { useBindCx as p } from "@scalar/use-hooks/useBindCx";
|
|
3
|
+
import { DropdownMenu as u } from "radix-vue/namespaced";
|
|
4
|
+
import d from "../ScalarDropdown/ScalarDropdownButton.vue.js";
|
|
5
|
+
import g from "../ScalarIcon/ScalarIconLegacyAdapter.vue.js";
|
|
6
|
+
const h = {
|
|
6
7
|
key: 1,
|
|
7
8
|
class: "size-3"
|
|
8
|
-
},
|
|
9
|
+
}, S = /* @__PURE__ */ i({
|
|
10
|
+
inheritAttrs: !1,
|
|
9
11
|
__name: "ScalarMenuLink",
|
|
10
12
|
props: {
|
|
11
|
-
is: { default: () =>
|
|
13
|
+
is: { default: () => u.Item },
|
|
12
14
|
icon: {},
|
|
13
15
|
strong: { type: Boolean }
|
|
14
16
|
},
|
|
15
|
-
setup(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
default: i(() => [
|
|
21
|
-
e.icon ? (o(), n(s(p), {
|
|
17
|
+
setup(k) {
|
|
18
|
+
const { cx: r } = p();
|
|
19
|
+
return (e, w) => (o(), n(t(d), l(t(r)("flex items-center"), { is: e.is }), {
|
|
20
|
+
default: a(() => [
|
|
21
|
+
e.icon ? (o(), n(t(g), {
|
|
22
22
|
key: 0,
|
|
23
|
-
class:
|
|
23
|
+
class: s([
|
|
24
24
|
e.strong ? "text-c-1" : "text-c-2",
|
|
25
25
|
typeof e.icon == "string" ? "size-3" : "size-3.5 -mx-0.25"
|
|
26
26
|
]),
|
|
27
27
|
icon: e.icon,
|
|
28
28
|
thickness: e.strong ? "2.5" : "2",
|
|
29
29
|
weight: e.strong ? "bold" : "regular"
|
|
30
|
-
}, null, 8, ["class", "icon", "thickness", "weight"])) : (o(),
|
|
31
|
-
|
|
32
|
-
class:
|
|
30
|
+
}, null, 8, ["class", "icon", "thickness", "weight"])) : (o(), m("div", h)),
|
|
31
|
+
c("div", {
|
|
32
|
+
class: s(["flex items-center flex-1 min-w-0 truncate", e.strong ? "font-medium" : "font-normal"])
|
|
33
33
|
}, [
|
|
34
|
-
|
|
34
|
+
f(e.$slots, "default")
|
|
35
35
|
], 2)
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
|
-
},
|
|
38
|
+
}, 16, ["is"]));
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
S as default
|
|
43
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarMenuTeamPicker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuTeamPicker.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarMenuTeamPicker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuTeamPicker.vue"],"names":[],"mappings":"AAyGA,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,IAAI,CAAA;AAG9D,KAAK,WAAW,GAAG;IACjB,kCAAkC;IAClC,IAAI,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAA;IACvC,uCAAuC;IACvC,KAAK,EAAE,oBAAoB,EAAE,CAAA;CAC9B,CAAC;;;;;;;;AAmOF,wBAOG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _, computed as g, createBlock as u, openBlock as n, unref as e, withCtx as
|
|
1
|
+
import { defineComponent as _, computed as g, createBlock as u, openBlock as n, unref as e, withCtx as o, createVNode as a, mergeProps as b, createElementVNode as x, createElementBlock as S, Fragment as w, renderList as v, createTextVNode as C } from "vue";
|
|
2
2
|
import { ScalarIconUserSwitch as k, ScalarIconCaretRight as V, ScalarIconPlus as $ } from "@scalar/icons";
|
|
3
3
|
import { DropdownMenu as s } from "radix-vue/namespaced";
|
|
4
4
|
import I from "./ScalarMenuTeamProfile.vue.js";
|
|
@@ -14,25 +14,25 @@ const y = /* @__PURE__ */ _({
|
|
|
14
14
|
teams: {}
|
|
15
15
|
},
|
|
16
16
|
emits: ["update:team", "add"],
|
|
17
|
-
setup(
|
|
18
|
-
const i =
|
|
17
|
+
setup(f, { emit: p }) {
|
|
18
|
+
const i = f, d = p, m = g({
|
|
19
19
|
get: () => {
|
|
20
|
-
var
|
|
21
|
-
return (
|
|
20
|
+
var r;
|
|
21
|
+
return (r = i.team) == null ? void 0 : r.id;
|
|
22
22
|
},
|
|
23
|
-
set: (
|
|
23
|
+
set: (r) => d(
|
|
24
24
|
"update:team",
|
|
25
|
-
i.teams.find((t) => t.id ===
|
|
25
|
+
i.teams.find((t) => t.id === r)
|
|
26
26
|
)
|
|
27
27
|
});
|
|
28
|
-
return (
|
|
29
|
-
default:
|
|
28
|
+
return (r, t) => (n(), u(e(s).Sub, null, {
|
|
29
|
+
default: o(() => [
|
|
30
30
|
a(e(B), b({
|
|
31
31
|
is: e(s).SubTrigger,
|
|
32
32
|
icon: e(k)
|
|
33
|
-
},
|
|
34
|
-
default:
|
|
35
|
-
t[2] || (t[2] =
|
|
33
|
+
}, r.$attrs), {
|
|
34
|
+
default: o(() => [
|
|
35
|
+
t[2] || (t[2] = x("div", null, "Change team", -1)),
|
|
36
36
|
a(e(V), {
|
|
37
37
|
class: "ml-auto text-c-2 -mr-0.25 size-3",
|
|
38
38
|
weight: "bold"
|
|
@@ -42,26 +42,26 @@ const y = /* @__PURE__ */ _({
|
|
|
42
42
|
__: [2]
|
|
43
43
|
}, 16, ["is", "icon"]),
|
|
44
44
|
a(e(s).Portal, null, {
|
|
45
|
-
default:
|
|
45
|
+
default: o(() => [
|
|
46
46
|
a(e(s).SubContent, {
|
|
47
47
|
as: e(P),
|
|
48
48
|
class: "max-h-radix-popper z-context-plus",
|
|
49
49
|
sideOffset: 3
|
|
50
50
|
}, {
|
|
51
|
-
default:
|
|
51
|
+
default: o(() => [
|
|
52
52
|
a(e(s).RadioGroup, {
|
|
53
53
|
modelValue: m.value,
|
|
54
54
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => m.value = l),
|
|
55
55
|
class: "contents"
|
|
56
56
|
}, {
|
|
57
|
-
default:
|
|
58
|
-
(n(!0), w
|
|
57
|
+
default: o(() => [
|
|
58
|
+
(n(!0), S(w, null, v(r.teams, (l) => (n(), u(e(s).RadioItem, {
|
|
59
59
|
key: l.id,
|
|
60
60
|
as: e(c),
|
|
61
|
-
class: "group/item",
|
|
61
|
+
class: "group/item flex items-center",
|
|
62
62
|
value: l.id
|
|
63
63
|
}, {
|
|
64
|
-
default:
|
|
64
|
+
default: o(() => [
|
|
65
65
|
a(I, {
|
|
66
66
|
class: "-ml-0.75 flex-1 min-w-0",
|
|
67
67
|
label: l.label,
|
|
@@ -79,9 +79,10 @@ const y = /* @__PURE__ */ _({
|
|
|
79
79
|
}, 8, ["modelValue"]),
|
|
80
80
|
a(e(s).Item, {
|
|
81
81
|
as: e(c),
|
|
82
|
+
class: "flex items-center",
|
|
82
83
|
onClick: t[1] || (t[1] = (l) => d("add"))
|
|
83
84
|
}, {
|
|
84
|
-
default:
|
|
85
|
+
default: o(() => [
|
|
85
86
|
a(e($), {
|
|
86
87
|
class: "bg-b-3 -ml-0.75 rounded p-1 size-5 text-c-3",
|
|
87
88
|
weight: "bold"
|
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.
|
|
13
|
+
"version": "0.14.29",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=20"
|
|
16
16
|
},
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"vue": "^3.5.17",
|
|
41
41
|
"vue-component-type-helpers": "^3.0.4",
|
|
42
42
|
"@scalar/code-highlight": "0.1.9",
|
|
43
|
-
"@scalar/icons": "0.4.7",
|
|
44
43
|
"@scalar/helpers": "0.0.9",
|
|
45
|
-
"@scalar/
|
|
46
|
-
"@scalar/
|
|
44
|
+
"@scalar/icons": "0.4.7",
|
|
45
|
+
"@scalar/oas-utils": "0.4.24",
|
|
46
|
+
"@scalar/themes": "0.13.16",
|
|
47
47
|
"@scalar/use-toasts": "0.8.0",
|
|
48
|
-
"@scalar/
|
|
48
|
+
"@scalar/use-hooks": "0.2.4"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@headlessui/tailwindcss": "^0.2.2",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"test": "vitest",
|
|
88
88
|
"test:e2e": "PW_TEST_CONNECT_WS_ENDPOINT=ws://127.0.0.1:5001/ playwright test",
|
|
89
89
|
"test:e2e:ci": "CI=1 playwright test",
|
|
90
|
-
"test:e2e:playwright": "docker run --network=host -e PORT=5001 -
|
|
90
|
+
"test:e2e:playwright": "docker run --network=host -e PORT=5001 --rm --name scalar-playwright scalarapi/playwright:1.55.0",
|
|
91
91
|
"test:e2e:report": "playwright show-report",
|
|
92
92
|
"test:e2e:ui": "pnpm test:e2e --ui",
|
|
93
93
|
"test:e2e:update": "pnpm test:e2e --update-snapshots",
|