@scalar/components 0.13.14 → 0.13.15
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarFloating.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFloating/ScalarFloating.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarFloating.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFloating/ScalarFloating.vue"],"names":[],"mappings":"AAyHA,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;AA0F9C,iBAAS,cAAc;WAqDT,OAAO,IAA6B;;QAtIhD,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;;;;;;;EAiIT;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"}
|
|
@@ -16,11 +16,15 @@ const I = /* @__PURE__ */ z({
|
|
|
16
16
|
setup(c) {
|
|
17
17
|
const t = c, n = f(null), r = f(null), i = a(() => {
|
|
18
18
|
var e;
|
|
19
|
-
if (typeof
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
if (typeof window < "u") {
|
|
20
|
+
if (typeof t.target == "string") {
|
|
21
|
+
const o = document.getElementById(t.target);
|
|
22
|
+
if (o) return o;
|
|
23
|
+
console.warn(
|
|
24
|
+
`ScalarFloating: Target with id="${t.target}" not found`
|
|
25
|
+
);
|
|
26
|
+
} else if (t.target instanceof HTMLElement) return t.target;
|
|
27
|
+
}
|
|
24
28
|
if (r.value)
|
|
25
29
|
return ((e = r.value.children) == null ? void 0 : e[0]) || r.value;
|
|
26
30
|
}), s = T(i, {
|
|
@@ -29,7 +33,7 @@ const I = /* @__PURE__ */ z({
|
|
|
29
33
|
() => g(t.placement || "bottom") === "y" ? s.width.value : void 0
|
|
30
34
|
), h = a(
|
|
31
35
|
() => g(t.placement || "bottom") === "x" ? s.height.value : void 0
|
|
32
|
-
), { floatingStyles:
|
|
36
|
+
), { floatingStyles: y, middlewareData: v } = x(i, n, {
|
|
33
37
|
placement: a(() => t.placement),
|
|
34
38
|
whileElementsMounted: C,
|
|
35
39
|
middleware: a(() => [
|
|
@@ -65,10 +69,10 @@ const I = /* @__PURE__ */ z({
|
|
|
65
69
|
ref_key: "floatingRef",
|
|
66
70
|
ref: n,
|
|
67
71
|
class: "relative z-overlay",
|
|
68
|
-
style: R(l(
|
|
72
|
+
style: R(l(y))
|
|
69
73
|
}, [
|
|
70
74
|
p(e.$slots, "floating", {
|
|
71
|
-
data: l(
|
|
75
|
+
data: l(v),
|
|
72
76
|
height: h.value,
|
|
73
77
|
width: u.value
|
|
74
78
|
})
|
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.13.
|
|
13
|
+
"version": "0.13.15",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=18"
|
|
16
16
|
},
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"radix-vue": "^1.9.3",
|
|
39
39
|
"tailwind-merge": "^2.5.5",
|
|
40
40
|
"vue": "^3.5.12",
|
|
41
|
-
"@scalar/themes": "0.9.
|
|
42
|
-
"@scalar/code-highlight": "0.0.
|
|
43
|
-
"@scalar/use-
|
|
44
|
-
"@scalar/use-
|
|
41
|
+
"@scalar/themes": "0.9.61",
|
|
42
|
+
"@scalar/code-highlight": "0.0.20",
|
|
43
|
+
"@scalar/use-toasts": "0.7.8",
|
|
44
|
+
"@scalar/use-hooks": "0.1.15"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@headlessui/tailwindcss": "^0.2.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@scalar/build-tooling": "0.1.12"
|
|
73
73
|
},
|
|
74
74
|
"scripts": {
|
|
75
|
-
"build": "pnpm typegen:icons && pnpm build-only",
|
|
75
|
+
"build": "pnpm typegen:icons && pnpm build:storybook && pnpm build-only",
|
|
76
76
|
"build-only": "scalar-build-vite",
|
|
77
77
|
"build:storybook": "storybook build",
|
|
78
78
|
"dev": "storybook dev -p 5100 --ci",
|