@scalar/components 0.7.4 → 0.7.6
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/ArrowLeft-aY17W2aS.js +21 -0
- package/dist/ArrowLeft-viI9aZKt.cjs +1 -0
- package/dist/ArrowRight-DEMtdoE7.js +21 -0
- package/dist/ArrowRight-OAz1WjoZ.cjs +1 -0
- package/dist/Background-DcRhSHgf.js +18 -0
- package/dist/Background-QBySRwqH.cjs +1 -0
- package/dist/CallToAction-EyQKkvbg.js +21 -0
- package/dist/CallToAction-tK0jnM6o.cjs +1 -0
- package/dist/Delete-BCZmxrDD.js +21 -0
- package/dist/Delete-C5KJApGv.cjs +1 -0
- package/dist/Discord-BHYOFBB2.js +16 -0
- package/dist/Discord-bYns0mfM.cjs +1 -0
- package/dist/Duplicate-BPlzNpcf.js +22 -0
- package/dist/Duplicate-BwzvckcF.cjs +1 -0
- package/dist/Edit-B2Dib3l9.cjs +1 -0
- package/dist/Edit-Br04RNYb.js +19 -0
- package/dist/Error-B_RGtWJI.js +18 -0
- package/dist/Error-rLMN5IPB.cjs +1 -0
- package/dist/FilterList-CsAcE9em.js +21 -0
- package/dist/FilterList-DBmJyPv8.cjs +1 -0
- package/dist/Folder-Cdcj4evh.js +18 -0
- package/dist/Folder-D8himkl0.cjs +1 -0
- package/dist/History-CIjAbmel.cjs +1 -0
- package/dist/History-D9nmhNIn.js +27 -0
- package/dist/Key-C9vNtSgp.cjs +1 -0
- package/dist/Key-CWXJqX28.js +21 -0
- package/dist/Leave-DNKXl2pb.cjs +1 -0
- package/dist/Leave-K1J3uwoG.js +21 -0
- package/dist/Link-Bzuc__Nc.js +21 -0
- package/dist/Link-NVOZGmsH.cjs +1 -0
- package/dist/Lock-CEwhrvWA.cjs +1 -0
- package/dist/Lock-xhiH1mKz.js +21 -0
- package/dist/Magic-D_nChUbo.cjs +1 -0
- package/dist/Magic-Dsi9_bEc.js +21 -0
- package/dist/Page-B7rVuhpl.js +18 -0
- package/dist/Page-BekQLn-H.cjs +1 -0
- package/dist/Payment-D0GqQgZi.cjs +1 -0
- package/dist/Payment-hzcXP1Xb.js +21 -0
- package/dist/Play-BrVagRQA.js +19 -0
- package/dist/Play-CEtr3_zC.cjs +1 -0
- package/dist/Refresh-Be6vHEEi.js +28 -0
- package/dist/Refresh-DZWDJwT9.cjs +1 -0
- package/dist/Response-DK6XqSvH.cjs +1 -0
- package/dist/Response-Dq9pM-ZU.js +21 -0
- package/dist/Sort-DZNcq1Ys.cjs +1 -0
- package/dist/Sort-oTjBhJFQ.js +19 -0
- package/dist/ThumbsDown-BMgnsASL.js +21 -0
- package/dist/ThumbsDown-CaDWC79Q.cjs +1 -0
- package/dist/ThumbsUp-2Uv5cZwr.cjs +1 -0
- package/dist/ThumbsUp-C1j6zY2j.js +21 -0
- package/dist/Trash-BpA3zWPD.js +21 -0
- package/dist/Trash-Cu7tKxXp.cjs +1 -0
- package/dist/Unlock-CY8UqJoE.js +18 -0
- package/dist/Unlock-DStL1IeV.cjs +1 -0
- package/dist/Upload-REIdL7RI.js +18 -0
- package/dist/Upload-VVhUOddU.cjs +1 -0
- package/dist/User-Df5svMQ3.js +18 -0
- package/dist/User-DwiuN2sY.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +116 -116
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './main.css';
|
|
2
|
-
import { defineComponent as y, useCssVars as ee, openBlock as m, createElementBlock as v, normalizeClass as S, unref as
|
|
2
|
+
import { defineComponent as y, useCssVars as ee, openBlock as m, createElementBlock as v, normalizeClass as S, unref as n, createElementVNode as h, createCommentVNode as $, createStaticVNode as te, reactive as W, computed as k, useAttrs as P, mergeProps as C, renderSlot as b, createVNode as N, ref as I, watch as X, nextTick as ae, onServerPrefetch as re, useSSRContext as se, onMounted as q, toDisplayString as D, toValue as O, Fragment as K, createBlock as x, withCtx as _, defineAsyncComponent as oe, resolveDynamicComponent as Y, normalizeStyle as J, createTextVNode as R, normalizeProps as ne, guardReactiveProps as ie, withKeys as le } from "vue";
|
|
3
3
|
import { defineConfig as de } from "cva";
|
|
4
4
|
import { extendTailwindMerge as ce } from "tailwind-merge";
|
|
5
5
|
import { createHash as ue, ssrState as pe } from "@scalar/oas-utils";
|
|
@@ -7,8 +7,8 @@ import L from "prismjs";
|
|
|
7
7
|
import { Menu as me, MenuItems as ge, MenuButton as fe, MenuItem as he, Dialog as ve, DialogPanel as be, DialogTitle as Se, DialogDescription as _e, Popover as ye, PopoverPanel as we, PopoverButton as ke } from "@headlessui/vue";
|
|
8
8
|
import { getSideAxis as F } from "@floating-ui/utils";
|
|
9
9
|
import { useFloating as Ee, autoUpdate as $e, offset as Ie, flip as Ne, shift as xe } from "@floating-ui/vue";
|
|
10
|
-
import { useTextareaAutosize as
|
|
11
|
-
import { nanoid as
|
|
10
|
+
import { useTextareaAutosize as Ae } from "@vueuse/core";
|
|
11
|
+
import { nanoid as Ce } from "nanoid";
|
|
12
12
|
const M = "scalar-component", Te = ce({
|
|
13
13
|
extend: {
|
|
14
14
|
classGroups: {
|
|
@@ -25,7 +25,7 @@ const M = "scalar-component", Te = ce({
|
|
|
25
25
|
key: 0,
|
|
26
26
|
class: "circular-loader"
|
|
27
27
|
};
|
|
28
|
-
function
|
|
28
|
+
function Pt() {
|
|
29
29
|
return W({
|
|
30
30
|
isValid: !1,
|
|
31
31
|
isInvalid: !1,
|
|
@@ -70,7 +70,7 @@ const De = /* @__PURE__ */ y({
|
|
|
70
70
|
d6cae758: t.size
|
|
71
71
|
})), (t, e) => t.loadingState ? (m(), v("div", {
|
|
72
72
|
key: 0,
|
|
73
|
-
class: S(
|
|
73
|
+
class: S(n(E)("loader-wrapper"))
|
|
74
74
|
}, [
|
|
75
75
|
(m(), v("svg", {
|
|
76
76
|
class: S(["svg-loader", {
|
|
@@ -119,7 +119,7 @@ const De = /* @__PURE__ */ y({
|
|
|
119
119
|
"scalar-button-danger",
|
|
120
120
|
"bg-error text-white active:brightness-90 hocus:brightness-90"
|
|
121
121
|
]
|
|
122
|
-
},
|
|
122
|
+
}, Pe = T({
|
|
123
123
|
base: "scalar-button row cursor-pointer items-center justify-center rounded font-medium",
|
|
124
124
|
variants: {
|
|
125
125
|
disabled: {
|
|
@@ -136,7 +136,7 @@ const De = /* @__PURE__ */ y({
|
|
|
136
136
|
class: "bg-transparent text-ghost"
|
|
137
137
|
}
|
|
138
138
|
]
|
|
139
|
-
}),
|
|
139
|
+
}), Oe = ["ariaDisabled"], ze = {
|
|
140
140
|
key: 0,
|
|
141
141
|
class: "mr-2 h-4 w-4"
|
|
142
142
|
}, Be = {
|
|
@@ -154,13 +154,13 @@ const De = /* @__PURE__ */ y({
|
|
|
154
154
|
},
|
|
155
155
|
setup(a) {
|
|
156
156
|
const t = k(() => {
|
|
157
|
-
const { class: e, ...r } =
|
|
157
|
+
const { class: e, ...r } = P();
|
|
158
158
|
return { className: e || "", rest: r };
|
|
159
159
|
});
|
|
160
|
-
return (e, r) => (m(), v("button",
|
|
160
|
+
return (e, r) => (m(), v("button", C(t.value.rest, {
|
|
161
161
|
ariaDisabled: e.disabled || void 0,
|
|
162
|
-
class:
|
|
163
|
-
|
|
162
|
+
class: n(E)(
|
|
163
|
+
n(Pe)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
|
|
164
164
|
{ "pl-9 pr-3": e.loading },
|
|
165
165
|
`${t.value.className}`
|
|
166
166
|
),
|
|
@@ -171,12 +171,12 @@ const De = /* @__PURE__ */ y({
|
|
|
171
171
|
])) : $("", !0),
|
|
172
172
|
b(e.$slots, "default"),
|
|
173
173
|
e.loading ? (m(), v("div", Be, [
|
|
174
|
-
N(
|
|
174
|
+
N(n(H), {
|
|
175
175
|
loadingState: e.loading,
|
|
176
176
|
size: "20px"
|
|
177
177
|
}, null, 8, ["loadingState"])
|
|
178
178
|
])) : $("", !0)
|
|
179
|
-
], 16,
|
|
179
|
+
], 16, Oe));
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
182
|
(function(a) {
|
|
@@ -440,8 +440,8 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
440
440
|
if (i) {
|
|
441
441
|
var g = parseInt(s.getAttribute("data-start"), 10) || 1, p = g + (i.children.length - 1);
|
|
442
442
|
u < g && (u = g), u > p && (u = p);
|
|
443
|
-
var
|
|
444
|
-
return i.children[
|
|
443
|
+
var o = u - g;
|
|
444
|
+
return i.children[o];
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
},
|
|
@@ -476,34 +476,34 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
476
476
|
var u = s.map(function(i) {
|
|
477
477
|
var g = i.querySelector("code"), p = i.querySelector(".line-numbers-rows");
|
|
478
478
|
if (!(!g || !p)) {
|
|
479
|
-
var
|
|
480
|
-
|
|
481
|
-
var l =
|
|
482
|
-
return
|
|
479
|
+
var o = i.querySelector(".line-numbers-sizer"), f = g.textContent.split(t);
|
|
480
|
+
o || (o = document.createElement("span"), o.className = "line-numbers-sizer", g.appendChild(o)), o.innerHTML = "0", o.style.display = "block";
|
|
481
|
+
var l = o.getBoundingClientRect().height;
|
|
482
|
+
return o.innerHTML = "", {
|
|
483
483
|
element: i,
|
|
484
484
|
lines: f,
|
|
485
485
|
lineHeights: [],
|
|
486
486
|
oneLinerHeight: l,
|
|
487
|
-
sizer:
|
|
487
|
+
sizer: o
|
|
488
488
|
};
|
|
489
489
|
}
|
|
490
490
|
}).filter(Boolean);
|
|
491
491
|
u.forEach(function(i) {
|
|
492
|
-
var g = i.sizer, p = i.lines,
|
|
493
|
-
|
|
492
|
+
var g = i.sizer, p = i.lines, o = i.lineHeights, f = i.oneLinerHeight;
|
|
493
|
+
o[p.length - 1] = void 0, p.forEach(function(l, w) {
|
|
494
494
|
if (l && l.length > 1) {
|
|
495
|
-
var
|
|
496
|
-
|
|
495
|
+
var A = g.appendChild(document.createElement("span"));
|
|
496
|
+
A.style.display = "block", A.textContent = l;
|
|
497
497
|
} else
|
|
498
|
-
|
|
498
|
+
o[w] = f;
|
|
499
499
|
});
|
|
500
500
|
}), u.forEach(function(i) {
|
|
501
|
-
for (var g = i.sizer, p = i.lineHeights,
|
|
502
|
-
p[f] === void 0 && (p[f] = g.children[
|
|
501
|
+
for (var g = i.sizer, p = i.lineHeights, o = 0, f = 0; f < p.length; f++)
|
|
502
|
+
p[f] === void 0 && (p[f] = g.children[o++].getBoundingClientRect().height);
|
|
503
503
|
}), u.forEach(function(i) {
|
|
504
504
|
var g = i.sizer, p = i.element.querySelector(".line-numbers-rows");
|
|
505
|
-
g.style.display = "none", g.innerHTML = "", i.lineHeights.forEach(function(
|
|
506
|
-
p.children[f].style.height =
|
|
505
|
+
g.style.display = "none", g.innerHTML = "", i.lineHeights.forEach(function(o, f) {
|
|
506
|
+
p.children[f].style.height = o + "px";
|
|
507
507
|
});
|
|
508
508
|
});
|
|
509
509
|
}
|
|
@@ -525,8 +525,8 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
525
525
|
);
|
|
526
526
|
if (!(!i || !/pre/i.test(i.nodeName)) && !u.querySelector(".line-numbers-rows") && Prism.util.isActive(u, a)) {
|
|
527
527
|
u.classList.remove(a), i.classList.add(a);
|
|
528
|
-
var g = s.code.match(t), p = g ? g.length + 1 : 1,
|
|
529
|
-
|
|
528
|
+
var g = s.code.match(t), p = g ? g.length + 1 : 1, o, f = new Array(p + 1).join("<span></span>");
|
|
529
|
+
o = document.createElement("span"), o.setAttribute("aria-hidden", "true"), o.className = "line-numbers-rows", o.innerHTML = f, i.hasAttribute("data-start") && (i.style.counterReset = "linenumber " + (parseInt(i.getAttribute("data-start"), 10) - 1)), s.element.appendChild(o), r([i]), Prism.hooks.run("line-numbers", s);
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
}), Prism.hooks.add("line-numbers", function(s) {
|
|
@@ -559,7 +559,7 @@ function z(a) {
|
|
|
559
559
|
}
|
|
560
560
|
return a;
|
|
561
561
|
}
|
|
562
|
-
const Ge = ["innerHTML"],
|
|
562
|
+
const Ge = ["innerHTML"], Ot = /* @__PURE__ */ y({
|
|
563
563
|
__name: "ScalarCodeBlock",
|
|
564
564
|
props: {
|
|
565
565
|
content: {},
|
|
@@ -569,16 +569,16 @@ const Ge = ["innerHTML"], Pt = /* @__PURE__ */ y({
|
|
|
569
569
|
},
|
|
570
570
|
setup(a) {
|
|
571
571
|
const t = a, e = ue(z(t.content)), r = `components-scalar-code-block${e}`, { plugins: c, highlightElement: d } = L;
|
|
572
|
-
t.hideCredentials && L.hooks.add("wrap", function(
|
|
572
|
+
t.hideCredentials && L.hooks.add("wrap", function(o) {
|
|
573
573
|
if (!t.hideCredentials)
|
|
574
574
|
return;
|
|
575
575
|
let f = !1;
|
|
576
|
-
typeof t.hideCredentials == "string" ?
|
|
577
|
-
(l) =>
|
|
578
|
-
)), f && (
|
|
576
|
+
typeof t.hideCredentials == "string" ? o.content.includes(t.hideCredentials) && (f = !0) : Array.isArray(t.hideCredentials) && (f = t.hideCredentials.some(
|
|
577
|
+
(l) => o.content.includes(l)
|
|
578
|
+
)), f && (o.content = o.content.replace(
|
|
579
579
|
/<span class="credentials">.*?<\/span>/g,
|
|
580
580
|
(l) => l.replace(/<span class="credentials">|<\/span>/g, "")
|
|
581
|
-
),
|
|
581
|
+
), o.content = o.content.replace(
|
|
582
582
|
new RegExp(
|
|
583
583
|
typeof t.hideCredentials == "string" ? t.hideCredentials : t.hideCredentials.join("|"),
|
|
584
584
|
"g"
|
|
@@ -596,40 +596,40 @@ const Ge = ["innerHTML"], Pt = /* @__PURE__ */ y({
|
|
|
596
596
|
);
|
|
597
597
|
const p = /\n(?!$)/g;
|
|
598
598
|
return re(async () => {
|
|
599
|
-
let
|
|
599
|
+
let o = "";
|
|
600
600
|
t.lineNumbers && L.hooks.add("after-tokenize", (l) => {
|
|
601
|
-
const w = l.code.match(p),
|
|
602
|
-
|
|
601
|
+
const w = l.code.match(p), A = w ? w.length + 1 : 1;
|
|
602
|
+
o = `<span aria-hidden="true" class="line-numbers-rows">${new Array(A + 1).join("<span></span>")}</span>`;
|
|
603
603
|
});
|
|
604
604
|
const f = L.highlight(
|
|
605
605
|
z(t.content),
|
|
606
606
|
L.languages[i.value],
|
|
607
607
|
i.value
|
|
608
608
|
);
|
|
609
|
-
if (u.value = f +
|
|
609
|
+
if (u.value = f + o, e !== 0) {
|
|
610
610
|
const l = se();
|
|
611
|
-
l.payload.data[r] = f +
|
|
611
|
+
l.payload.data[r] = f + o;
|
|
612
612
|
}
|
|
613
613
|
}), q(async () => {
|
|
614
614
|
await import("./prism-autoloader-Dlh8Vzlw.js"), c.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/";
|
|
615
|
-
}), (
|
|
615
|
+
}), (o, f) => (m(), v("pre", {
|
|
616
616
|
class: S([
|
|
617
617
|
`scalar-component scalar-codeblock-pre language-${i.value}`,
|
|
618
618
|
{
|
|
619
|
-
"line-numbers":
|
|
619
|
+
"line-numbers": o.lineNumbers
|
|
620
620
|
}
|
|
621
621
|
])
|
|
622
622
|
}, [
|
|
623
623
|
u.value ? (m(), v("code", {
|
|
624
624
|
key: 0,
|
|
625
625
|
class: S(`scalar-codeblock-code language-${i.value}`),
|
|
626
|
-
innerHTML:
|
|
626
|
+
innerHTML: n(z)(u.value)
|
|
627
627
|
}, null, 10, Ge)) : (m(), v("code", {
|
|
628
628
|
key: 1,
|
|
629
629
|
ref_key: "el",
|
|
630
630
|
ref: s,
|
|
631
631
|
class: S(`scalar-codeblock-code language-${i.value}`)
|
|
632
|
-
}, D(
|
|
632
|
+
}, D(n(z)(o.content)), 3))
|
|
633
633
|
], 2));
|
|
634
634
|
}
|
|
635
635
|
});
|
|
@@ -639,17 +639,17 @@ function Ve(a, t = { enabled: I(!0) }) {
|
|
|
639
639
|
var s, u;
|
|
640
640
|
d && (e.value = ((s = d.borderBoxSize[0]) == null ? void 0 : s.inlineSize) ?? 0, r.value = ((u = d.borderBoxSize[0]) == null ? void 0 : u.blockSize) ?? 0);
|
|
641
641
|
})), X(
|
|
642
|
-
[() =>
|
|
642
|
+
[() => O(t.enabled), () => O(a)],
|
|
643
643
|
([d, s]) => {
|
|
644
644
|
!s || !c.value || (d ? c.value.observe(s) : c.value.disconnect());
|
|
645
645
|
},
|
|
646
646
|
{ immediate: !0 }
|
|
647
647
|
), {
|
|
648
648
|
width: k(
|
|
649
|
-
() =>
|
|
649
|
+
() => O(t.enabled) ? `${e.value}px` : void 0
|
|
650
650
|
),
|
|
651
651
|
height: k(
|
|
652
|
-
() =>
|
|
652
|
+
() => O(t.enabled) ? `${r.value}px` : void 0
|
|
653
653
|
)
|
|
654
654
|
};
|
|
655
655
|
}
|
|
@@ -664,8 +664,8 @@ const G = /* @__PURE__ */ y({
|
|
|
664
664
|
setup(a) {
|
|
665
665
|
const t = a, e = I(null), r = I(null), c = k(
|
|
666
666
|
() => {
|
|
667
|
-
var p,
|
|
668
|
-
return (((
|
|
667
|
+
var p, o;
|
|
668
|
+
return (((o = (p = r.value) == null ? void 0 : p.children) == null ? void 0 : o[0]) || r.value) ?? void 0;
|
|
669
669
|
}
|
|
670
670
|
), d = Ve(c, {
|
|
671
671
|
enabled: k(() => t.resize)
|
|
@@ -683,7 +683,7 @@ const G = /* @__PURE__ */ y({
|
|
|
683
683
|
...t.middleware ?? []
|
|
684
684
|
])
|
|
685
685
|
});
|
|
686
|
-
return (p,
|
|
686
|
+
return (p, o) => (m(), v(K, null, [
|
|
687
687
|
h("div", {
|
|
688
688
|
ref_key: "wrapperRef",
|
|
689
689
|
ref: r,
|
|
@@ -691,21 +691,21 @@ const G = /* @__PURE__ */ y({
|
|
|
691
691
|
}, [
|
|
692
692
|
b(p.$slots, "default")
|
|
693
693
|
], 2),
|
|
694
|
-
h("div",
|
|
694
|
+
h("div", C({
|
|
695
695
|
ref_key: "floatingRef",
|
|
696
696
|
ref: e,
|
|
697
697
|
class: "relative z-context",
|
|
698
|
-
style:
|
|
698
|
+
style: n(i)
|
|
699
699
|
}, p.$attrs), [
|
|
700
700
|
b(p.$slots, "floating", {
|
|
701
|
-
data:
|
|
701
|
+
data: n(g),
|
|
702
702
|
height: u.value,
|
|
703
703
|
width: s.value
|
|
704
704
|
})
|
|
705
705
|
], 16)
|
|
706
706
|
], 64));
|
|
707
707
|
}
|
|
708
|
-
}), Fe = /* @__PURE__ */ h("div", { class: "absolute inset-0 -z-1 rounded bg-back-1 shadow-md brightness-lifted" }, null, -1),
|
|
708
|
+
}), Fe = /* @__PURE__ */ h("div", { class: "absolute inset-0 -z-1 rounded bg-back-1 shadow-md brightness-lifted" }, null, -1), Ue = /* @__PURE__ */ y({
|
|
709
709
|
inheritAttrs: !1,
|
|
710
710
|
__name: "ScalarDropdown",
|
|
711
711
|
props: {
|
|
@@ -713,14 +713,14 @@ const G = /* @__PURE__ */ y({
|
|
|
713
713
|
resize: { type: Boolean }
|
|
714
714
|
},
|
|
715
715
|
setup(a) {
|
|
716
|
-
return (t, e) => (m(), x(
|
|
716
|
+
return (t, e) => (m(), x(n(me), null, {
|
|
717
717
|
default: _(() => [
|
|
718
|
-
N(
|
|
718
|
+
N(n(G), {
|
|
719
719
|
placement: t.placement ?? "bottom-start",
|
|
720
720
|
resize: t.resize
|
|
721
721
|
}, {
|
|
722
722
|
floating: _(({ width: r }) => [
|
|
723
|
-
N(
|
|
723
|
+
N(n(ge), C({
|
|
724
724
|
class: "relative flex w-56 flex-col p-0.75",
|
|
725
725
|
style: { width: r }
|
|
726
726
|
}, t.$attrs), {
|
|
@@ -732,7 +732,7 @@ const G = /* @__PURE__ */ y({
|
|
|
732
732
|
}, 1040, ["style"])
|
|
733
733
|
]),
|
|
734
734
|
default: _(() => [
|
|
735
|
-
N(
|
|
735
|
+
N(n(fe), { as: "template" }, {
|
|
736
736
|
default: _(() => [
|
|
737
737
|
b(t.$slots, "default")
|
|
738
738
|
]),
|
|
@@ -745,11 +745,11 @@ const G = /* @__PURE__ */ y({
|
|
|
745
745
|
_: 3
|
|
746
746
|
}));
|
|
747
747
|
}
|
|
748
|
-
}),
|
|
748
|
+
}), je = {}, We = { class: "-mx-0.75 my-0.75 h-px bg-border" };
|
|
749
749
|
function Xe(a, t) {
|
|
750
750
|
return m(), v("div", We);
|
|
751
751
|
}
|
|
752
|
-
const qe = /* @__PURE__ */ B(
|
|
752
|
+
const qe = /* @__PURE__ */ B(je, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
753
753
|
__name: "ScalarDropdownItem",
|
|
754
754
|
props: {
|
|
755
755
|
disabled: { type: Boolean }
|
|
@@ -771,10 +771,10 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
771
771
|
active: { true: "bg-back-2 text-fore-1" }
|
|
772
772
|
}
|
|
773
773
|
});
|
|
774
|
-
return (e, r) => (m(), x(
|
|
774
|
+
return (e, r) => (m(), x(n(he), { disabled: e.disabled }, {
|
|
775
775
|
default: _(({ active: c }) => [
|
|
776
776
|
h("button", {
|
|
777
|
-
class: S(["item",
|
|
777
|
+
class: S(["item", n(E)("scalar-dropdown-item", n(t)({ active: c, disabled: e.disabled }))]),
|
|
778
778
|
type: "button",
|
|
779
779
|
onClick: r[0] || (r[0] = (d) => e.$emit("click", d))
|
|
780
780
|
}, [
|
|
@@ -784,9 +784,9 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
784
784
|
_: 3
|
|
785
785
|
}, 8, ["disabled"]));
|
|
786
786
|
}
|
|
787
|
-
}),
|
|
787
|
+
}), U = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-ngyZgYXx.js"), "./ArrowLeft.svg": () => import("./ArrowLeft-aY17W2aS.js"), "./ArrowRight.svg": () => import("./ArrowRight-DEMtdoE7.js"), "./Background.svg": () => import("./Background-DcRhSHgf.js"), "./Brackets.svg": () => import("./Brackets-4I8OKomf.js"), "./Branch.svg": () => import("./Branch-CXwj8YuG.js"), "./CallToAction.svg": () => import("./CallToAction-EyQKkvbg.js"), "./Checkmark.svg": () => import("./Checkmark-De7nq6cG.js"), "./ChevronDown.svg": () => import("./ChevronDown-Co7EAKAv.js"), "./ChevronLeft.svg": () => import("./ChevronLeft-DYt0idAu.js"), "./ChevronRight.svg": () => import("./ChevronRight-ylxToVWl.js"), "./ChevronUp.svg": () => import("./ChevronUp-xAnukIfj.js"), "./Clipboard.svg": () => import("./Clipboard-CU_KxGEv.js"), "./Close.svg": () => import("./Close-CW3z42qZ.js"), "./CodeFolder.svg": () => import("./CodeFolder-Cv_igzJE.js"), "./Cookie.svg": () => import("./Cookie-CEHvXpqB.js"), "./DarkMode.svg": () => import("./DarkMode-CBsV8Q_I.js"), "./Delete.svg": () => import("./Delete-BCZmxrDD.js"), "./Discord.svg": () => import("./Discord-BHYOFBB2.js"), "./DocsPage.svg": () => import("./DocsPage-rh2xwxKN.js"), "./Duplicate.svg": () => import("./Duplicate-BPlzNpcf.js"), "./Edit.svg": () => import("./Edit-Br04RNYb.js"), "./Ellipses.svg": () => import("./Ellipses-Bo_X36Hx.js"), "./Error.svg": () => import("./Error-B_RGtWJI.js"), "./ExternalLink.svg": () => import("./ExternalLink-DK8L-EH7.js"), "./FilterList.svg": () => import("./FilterList-CsAcE9em.js"), "./Folder.svg": () => import("./Folder-Cdcj4evh.js"), "./GitHub.svg": () => import("./GitHub-NdE6Zs9k.js"), "./Hide.svg": () => import("./Hide-Q3GPkIKH.js"), "./History.svg": () => import("./History-D9nmhNIn.js"), "./JsonObject.svg": () => import("./JsonObject-hGdHUQ4M.js"), "./Key.svg": () => import("./Key-CWXJqX28.js"), "./Leave.svg": () => import("./Leave-K1J3uwoG.js"), "./LightDarkModeToggle.svg": () => import("./LightDarkModeToggle-BkvMimDa.js"), "./LightMode.svg": () => import("./LightMode-Btz6vyT_.js"), "./Link.svg": () => import("./Link-Bzuc__Nc.js"), "./Lock.svg": () => import("./Lock-xhiH1mKz.js"), "./Logo.svg": () => import("./Logo-mtzeKD8M.js"), "./LogoAPI.svg": () => import("./LogoAPI-CaU5E6FK.js"), "./LogoClient.svg": () => import("./LogoClient-DdC-t_7P.js"), "./LogoMarket.svg": () => import("./LogoMarket-DwlApcab.js"), "./LogoSwagger.svg": () => import("./LogoSwagger-CH60H5qW.js"), "./Magic.svg": () => import("./Magic-Dsi9_bEc.js"), "./Menu.svg": () => import("./Menu-CFK5cOsm.js"), "./Page.svg": () => import("./Page-B7rVuhpl.js"), "./PaperAirplane.svg": () => import("./PaperAirplane-BC-4mGEB.js"), "./Payment.svg": () => import("./Payment-hzcXP1Xb.js"), "./Play.svg": () => import("./Play-BrVagRQA.js"), "./Refresh.svg": () => import("./Refresh-Be6vHEEi.js"), "./Response.svg": () => import("./Response-Dq9pM-ZU.js"), "./Search.svg": () => import("./Search-DqtlswRG.js"), "./Show.svg": () => import("./Show-D86hKz5y.js"), "./SideBarClosed.svg": () => import("./SideBarClosed-CYUNS2XM.js"), "./SideBarOpen.svg": () => import("./SideBarOpen-BOxW49_U.js"), "./Sort.svg": () => import("./Sort-oTjBhJFQ.js"), "./Terminal.svg": () => import("./Terminal-CKp--su5.js"), "./ThumbsDown.svg": () => import("./ThumbsDown-BMgnsASL.js"), "./ThumbsUp.svg": () => import("./ThumbsUp-C1j6zY2j.js"), "./Trash.svg": () => import("./Trash-BpA3zWPD.js"), "./Unlock.svg": () => import("./Unlock-CY8UqJoE.js"), "./Upload.svg": () => import("./Upload-REIdL7RI.js"), "./User.svg": () => import("./User-Df5svMQ3.js"), "./programming-framework-angular.svg": () => import("./programming-framework-angular-DD4Vjgbk.js"), "./programming-framework-astro.svg": () => import("./programming-framework-astro-CLfrRt19.js"), "./programming-framework-laravel.svg": () => import("./programming-framework-laravel-kAy2wVLy.js"), "./programming-framework-nextdotjs.svg": () => import("./programming-framework-nextdotjs-BKdd_DY_.js"), "./programming-framework-react.svg": () => import("./programming-framework-react-PDgmtZuN.js"), "./programming-framework-vuedotjs.svg": () => import("./programming-framework-vuedotjs-Cv46W2aB.js"), "./programming-language-c.svg": () => import("./programming-language-c-hPGu2Zvg.js"), "./programming-language-clojure.svg": () => import("./programming-language-clojure-Cvmzky8x.js"), "./programming-language-csharp.svg": () => import("./programming-language-csharp-lqX1oWgb.js"), "./programming-language-css3.svg": () => import("./programming-language-css3-Dpp4Cr6b.js"), "./programming-language-go.svg": () => import("./programming-language-go-DoJxWwT6.js"), "./programming-language-html5.svg": () => import("./programming-language-html5-DlqJK4EL.js"), "./programming-language-http.svg": () => import("./programming-language-http-wMYwFS1I.js"), "./programming-language-java.svg": () => import("./programming-language-java-BCxG2T_w.js"), "./programming-language-javascript.svg": () => import("./programming-language-javascript-VxLvi1QG.js"), "./programming-language-json.svg": () => import("./programming-language-json-vEX_g7Zi.js"), "./programming-language-kotlin.svg": () => import("./programming-language-kotlin-DKV8vP9h.js"), "./programming-language-node.svg": () => import("./programming-language-node-Xsgx38lm.js"), "./programming-language-objc.svg": () => import("./programming-language-objc-BQXSOBsX.js"), "./programming-language-ocaml.svg": () => import("./programming-language-ocaml-BEz7gGv7.js"), "./programming-language-php.svg": () => import("./programming-language-php-GY38f8r4.js"), "./programming-language-powershell.svg": () => import("./programming-language-powershell-C9DkSp36.js"), "./programming-language-python.svg": () => import("./programming-language-python-Ct-_kNjo.js"), "./programming-language-r.svg": () => import("./programming-language-r-BGoKwua9.js"), "./programming-language-ruby.svg": () => import("./programming-language-ruby-DhdM4d7g.js"), "./programming-language-scala.svg": () => import("./programming-language-scala-BVg0dToJ.js"), "./programming-language-shell.svg": () => import("./programming-language-shell-BsTa1xI7.js"), "./programming-language-swift.svg": () => import("./programming-language-swift-Dn72xPjg.js"), "./programming-language-typescript.svg": () => import("./programming-language-typescript-CdF-HuRi.js"), "./programming-script-code.svg": () => import("./programming-script-code-DQN1veb2.js"), "./programming-tool-git.svg": () => import("./programming-tool-git-DDnQ1zGD.js"), "./programming-tool-tailwindcss.svg": () => import("./programming-tool-tailwindcss-xjXi0E6g.js") }), j = (a) => {
|
|
788
788
|
const t = `./${a}.svg`;
|
|
789
|
-
return
|
|
789
|
+
return U[t] ? oe(U[t]) : (console.warn(`Could not find icon: ${a}`), null);
|
|
790
790
|
}, Ye = ["src"], V = /* @__PURE__ */ y({
|
|
791
791
|
__name: "ScalarIcon",
|
|
792
792
|
props: {
|
|
@@ -810,10 +810,10 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
810
810
|
defaultVariants: {
|
|
811
811
|
size: "full"
|
|
812
812
|
}
|
|
813
|
-
}), r =
|
|
814
|
-
return (c, d) =>
|
|
813
|
+
}), r = j(t.icon);
|
|
814
|
+
return (c, d) => n(r) ? (m(), x(Y(n(j)(c.icon)), {
|
|
815
815
|
key: 0,
|
|
816
|
-
class: S(
|
|
816
|
+
class: S(n(E)("scalar-icon", n(e)({ size: c.size })))
|
|
817
817
|
}, null, 8, ["class"])) : (m(), v("img", {
|
|
818
818
|
key: 1,
|
|
819
819
|
src: c.icon
|
|
@@ -846,10 +846,10 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
846
846
|
});
|
|
847
847
|
return (e, r) => (m(), v("button", {
|
|
848
848
|
ariaDisabled: e.disabled || void 0,
|
|
849
|
-
class: S(
|
|
849
|
+
class: S(n(E)(n(t)({ size: e.size, variant: e.variant, disabled: e.disabled }))),
|
|
850
850
|
type: "button"
|
|
851
851
|
}, [
|
|
852
|
-
N(
|
|
852
|
+
N(n(V), { icon: e.icon }, null, 8, ["icon"]),
|
|
853
853
|
h("span", Ze, D(e.label), 1)
|
|
854
854
|
], 10, Je));
|
|
855
855
|
}
|
|
@@ -890,26 +890,26 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
892
|
});
|
|
893
|
-
return (e, r) => (m(), x(
|
|
893
|
+
return (e, r) => (m(), x(n(ve), {
|
|
894
894
|
open: e.state.open,
|
|
895
895
|
onClose: r[0] || (r[0] = (c) => e.state.hide())
|
|
896
896
|
}, {
|
|
897
897
|
default: _(() => [
|
|
898
898
|
h("div", {
|
|
899
899
|
class: S(
|
|
900
|
-
|
|
900
|
+
n(E)(
|
|
901
901
|
"scalar-modal-layout fixed left-0 top-0",
|
|
902
902
|
"z-[1001] h-[100dvh] w-[100dvw]",
|
|
903
903
|
"bg-backdrop p-5 opacity-0"
|
|
904
904
|
)
|
|
905
905
|
)
|
|
906
906
|
}, [
|
|
907
|
-
N(
|
|
908
|
-
class: S(
|
|
907
|
+
N(n(be), {
|
|
908
|
+
class: S(n(t)({ size: e.size, variant: e.variant })),
|
|
909
909
|
style: J({ maxWidth: e.maxWidth })
|
|
910
910
|
}, {
|
|
911
911
|
default: _(() => [
|
|
912
|
-
e.title ? (m(), x(
|
|
912
|
+
e.title ? (m(), x(n(Se), {
|
|
913
913
|
key: 0,
|
|
914
914
|
class: S(["scalar-modal-header font-semiBold m-0 rounded-lg px-6 py-3 text-left text-xs text-fore-1", { "pb-0 pt-6": e.variant === "history" }])
|
|
915
915
|
}, {
|
|
@@ -918,10 +918,10 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
918
918
|
]),
|
|
919
919
|
_: 1
|
|
920
920
|
}, 8, ["class"])) : $("", !0),
|
|
921
|
-
N(
|
|
921
|
+
N(n(_e), {
|
|
922
922
|
class: S([
|
|
923
923
|
"scalar-modal-body relative max-h-[calc(100dvh-240px)] overflow-y-auto rounded-lg bg-back-1 px-6 pb-4 pt-6",
|
|
924
|
-
|
|
924
|
+
n(E)(
|
|
925
925
|
e.bodyClass,
|
|
926
926
|
e.variant === "history" && "pt-3",
|
|
927
927
|
e.variant === "search" && "col max-h-[440px] overflow-hidden p-0"
|
|
@@ -949,11 +949,11 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
949
949
|
resize: { type: Boolean }
|
|
950
950
|
},
|
|
951
951
|
setup(a) {
|
|
952
|
-
return (t, e) => (m(), x(
|
|
952
|
+
return (t, e) => (m(), x(n(ye), null, {
|
|
953
953
|
default: _(() => [
|
|
954
|
-
N(
|
|
954
|
+
N(n(G), ne(ie(t.$props)), {
|
|
955
955
|
floating: _(({ width: r, height: c }) => [
|
|
956
|
-
N(
|
|
956
|
+
N(n(we), C({
|
|
957
957
|
class: "relative flex flex-col p-0.75",
|
|
958
958
|
style: { width: r, height: c }
|
|
959
959
|
}, t.$attrs), {
|
|
@@ -965,7 +965,7 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
965
965
|
}, 1040, ["style"])
|
|
966
966
|
]),
|
|
967
967
|
default: _(() => [
|
|
968
|
-
N(
|
|
968
|
+
N(n(ke), { as: "template" }, {
|
|
969
969
|
default: _(() => [
|
|
970
970
|
b(t.$slots, "default")
|
|
971
971
|
]),
|
|
@@ -978,7 +978,7 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
978
978
|
_: 3
|
|
979
979
|
}));
|
|
980
980
|
}
|
|
981
|
-
}), rt = { class: "sr-only" }, st = ["value"],
|
|
981
|
+
}), rt = { class: "sr-only" }, st = ["value"], ot = /* @__PURE__ */ y({
|
|
982
982
|
inheritAttrs: !1,
|
|
983
983
|
__name: "ScalarSearchInput",
|
|
984
984
|
props: {
|
|
@@ -992,11 +992,11 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
992
992
|
e("update:modelValue", d.target.value);
|
|
993
993
|
}
|
|
994
994
|
const c = k(() => {
|
|
995
|
-
const { class: d, ...s } =
|
|
995
|
+
const { class: d, ...s } = P();
|
|
996
996
|
return { className: d || "", rest: s };
|
|
997
997
|
});
|
|
998
|
-
return (d, s) => (m(), v("label",
|
|
999
|
-
class:
|
|
998
|
+
return (d, s) => (m(), v("label", C(c.value.rest, {
|
|
999
|
+
class: n(E)(
|
|
1000
1000
|
"flex rounded border bg-back-1 text-sm font-medium focus-within:border-fore-1",
|
|
1001
1001
|
c.value.className
|
|
1002
1002
|
)
|
|
@@ -1017,12 +1017,12 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
1017
1017
|
value: d.modelValue,
|
|
1018
1018
|
onInput: r
|
|
1019
1019
|
}, null, 40, st),
|
|
1020
|
-
d.loading && d.loading.isLoading ? (m(), x(
|
|
1020
|
+
d.loading && d.loading.isLoading ? (m(), x(n(H), {
|
|
1021
1021
|
key: 0,
|
|
1022
1022
|
class: "mr-3 self-center",
|
|
1023
1023
|
loadingState: d.loading,
|
|
1024
1024
|
size: "20px"
|
|
1025
|
-
}, null, 8, ["loadingState"])) : d.modelValue ? (m(), x(
|
|
1025
|
+
}, null, 8, ["loadingState"])) : d.modelValue ? (m(), x(n(Q), {
|
|
1026
1026
|
key: 1,
|
|
1027
1027
|
class: "self-center",
|
|
1028
1028
|
icon: "Close",
|
|
@@ -1032,7 +1032,7 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
1032
1032
|
})) : $("", !0)
|
|
1033
1033
|
], 16));
|
|
1034
1034
|
}
|
|
1035
|
-
}),
|
|
1035
|
+
}), nt = { class: "flex flex-col items-center gap-2 px-3 py-4" }, it = /* @__PURE__ */ h("div", { class: "rotate-90 text-lg font-bold" }, ":(", -1), lt = { class: "text-sm font-medium text-fore-2" }, dt = /* @__PURE__ */ y({
|
|
1036
1036
|
inheritAttrs: !1,
|
|
1037
1037
|
__name: "ScalarSearchResultList",
|
|
1038
1038
|
props: {
|
|
@@ -1040,14 +1040,14 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
1040
1040
|
},
|
|
1041
1041
|
setup(a) {
|
|
1042
1042
|
const t = k(() => {
|
|
1043
|
-
const { class: e, ...r } =
|
|
1043
|
+
const { class: e, ...r } = P();
|
|
1044
1044
|
return { className: e || "", rest: r };
|
|
1045
1045
|
});
|
|
1046
|
-
return (e, r) => (m(), v("ul",
|
|
1047
|
-
class:
|
|
1046
|
+
return (e, r) => (m(), v("ul", C(t.value.rest, {
|
|
1047
|
+
class: n(E)("flex flex-col", t.value.className)
|
|
1048
1048
|
}), [
|
|
1049
1049
|
e.noResults ? b(e.$slots, "noResults", { key: 0 }, () => [
|
|
1050
|
-
h("div",
|
|
1050
|
+
h("div", nt, [
|
|
1051
1051
|
it,
|
|
1052
1052
|
h("div", lt, [
|
|
1053
1053
|
R(" No results found "),
|
|
@@ -1074,12 +1074,12 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
1074
1074
|
},
|
|
1075
1075
|
setup(a) {
|
|
1076
1076
|
const t = k(() => {
|
|
1077
|
-
const { class: e, ...r } =
|
|
1077
|
+
const { class: e, ...r } = P();
|
|
1078
1078
|
return { className: e || "", rest: r };
|
|
1079
1079
|
});
|
|
1080
1080
|
return (e, r) => (m(), v("li", ct, [
|
|
1081
|
-
h("a",
|
|
1082
|
-
class:
|
|
1081
|
+
h("a", C(t.value.rest, {
|
|
1082
|
+
class: n(E)(
|
|
1083
1083
|
"group flex cursor-pointer gap-3 rounded px-3 py-1.5 no-underline hover:bg-back-2",
|
|
1084
1084
|
{
|
|
1085
1085
|
"bg-back-2": e.active
|
|
@@ -1089,7 +1089,7 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
1089
1089
|
}), [
|
|
1090
1090
|
h("div", ut, [
|
|
1091
1091
|
b(e.$slots, "icon", {}, () => [
|
|
1092
|
-
e.icon ? (m(), x(
|
|
1092
|
+
e.icon ? (m(), x(n(V), {
|
|
1093
1093
|
key: 0,
|
|
1094
1094
|
icon: e.icon,
|
|
1095
1095
|
size: "sm"
|
|
@@ -1137,10 +1137,10 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
1137
1137
|
},
|
|
1138
1138
|
error: { true: "scalar-input-wrapper-error border-error" }
|
|
1139
1139
|
}
|
|
1140
|
-
}), d =
|
|
1140
|
+
}), d = P(), s = d.id || `id-${Ce()}`, u = I(), i = I(!1);
|
|
1141
1141
|
let g;
|
|
1142
1142
|
if (e.isMultiline) {
|
|
1143
|
-
const { triggerResize: l } =
|
|
1143
|
+
const { triggerResize: l } = Ae({
|
|
1144
1144
|
element: u,
|
|
1145
1145
|
input: e.modelValue
|
|
1146
1146
|
});
|
|
@@ -1150,26 +1150,26 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
1150
1150
|
const w = l.target.value;
|
|
1151
1151
|
e.isMultiline && g(), e.handleFieldChange ? e.handleFieldChange(w) : r("update:modelValue", w);
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1154
|
-
const w = l.target,
|
|
1155
|
-
e.handleFieldSubmit ? e.handleFieldSubmit(
|
|
1153
|
+
function o(l) {
|
|
1154
|
+
const w = l.target, A = e.disableTrim || e.isMultiline ? w.value : w.value.trim();
|
|
1155
|
+
e.handleFieldSubmit ? e.handleFieldSubmit(A) : r("submit", A);
|
|
1156
1156
|
}
|
|
1157
1157
|
function f(l) {
|
|
1158
|
-
i.value = !1, e.emitOnBlur && e.modelValue &&
|
|
1158
|
+
i.value = !1, e.emitOnBlur && e.modelValue && o(l);
|
|
1159
1159
|
}
|
|
1160
1160
|
return q(() => {
|
|
1161
1161
|
var l;
|
|
1162
1162
|
Object.prototype.hasOwnProperty.call(d, "autofocus") && ((l = u.value) == null || l.focus());
|
|
1163
1163
|
}), (l, w) => (m(), v("div", bt, [
|
|
1164
1164
|
h("div", {
|
|
1165
|
-
class: S(
|
|
1165
|
+
class: S(n(c)({ error: l.error, focus: i.value }))
|
|
1166
1166
|
}, [
|
|
1167
|
-
(m(), x(Y(l.isMultiline ? "textarea" : "input"),
|
|
1167
|
+
(m(), x(Y(l.isMultiline ? "textarea" : "input"), C({ id: n(s) }, l.$attrs, {
|
|
1168
1168
|
ref_key: "input",
|
|
1169
1169
|
ref: u,
|
|
1170
1170
|
class: [
|
|
1171
1171
|
"scalar-input",
|
|
1172
|
-
|
|
1172
|
+
n(E)(
|
|
1173
1173
|
{ "min-h-[77px]": l.isMultiline },
|
|
1174
1174
|
"z-10 w-full resize-none appearance-none border-0 bg-transparent p-3 text-sm text-fore-1",
|
|
1175
1175
|
"outline-none transition-opacity"
|
|
@@ -1178,19 +1178,19 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
1178
1178
|
placeholder: l.placeholder,
|
|
1179
1179
|
value: l.modelValue,
|
|
1180
1180
|
onBlur: f,
|
|
1181
|
-
onFocus: w[0] || (w[0] = (
|
|
1181
|
+
onFocus: w[0] || (w[0] = (A) => i.value = !0),
|
|
1182
1182
|
onInput: p,
|
|
1183
|
-
onKeyup: le(
|
|
1183
|
+
onKeyup: le(o, ["enter"])
|
|
1184
1184
|
}), null, 16, ["id", "class", "placeholder", "value"])),
|
|
1185
1185
|
l.label ? (m(), v("label", {
|
|
1186
1186
|
key: 0,
|
|
1187
1187
|
class: S(
|
|
1188
|
-
|
|
1188
|
+
n(E)(
|
|
1189
1189
|
"scalar-input-label pointer-events-none absolute left-0 top-0 mx-2 my-3 px-1 text-xs",
|
|
1190
1190
|
"shadow-current z-10 origin-top-left rounded text-fore-3 transition-transform"
|
|
1191
1191
|
)
|
|
1192
1192
|
),
|
|
1193
|
-
for:
|
|
1193
|
+
for: n(s),
|
|
1194
1194
|
style: J({
|
|
1195
1195
|
"box-shadow": `0 0 4px 4px ${l.labelShadowColor}`,
|
|
1196
1196
|
"background-color": l.labelShadowColor
|
|
@@ -1202,7 +1202,7 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
1202
1202
|
], 2),
|
|
1203
1203
|
h("span", {
|
|
1204
1204
|
class: S(
|
|
1205
|
-
|
|
1205
|
+
n(E)(
|
|
1206
1206
|
"helper-text before:rounded-full mt-1.5 flex items-center text-xs text-error before:font-black",
|
|
1207
1207
|
"before:mr-1.5 before:block before:h-4 before:w-4 before:text-center before:text-xxs before:leading-4",
|
|
1208
1208
|
"before:bg-error before:text-white before:content-['!'] empty:hidden"
|
|
@@ -1213,13 +1213,13 @@ const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
|
1213
1213
|
}
|
|
1214
1214
|
}), wt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-4fc2339e"]]), Bt = {
|
|
1215
1215
|
install: (a) => {
|
|
1216
|
-
a.component("ScalarButton", Me), a.component("ScalarDropdown",
|
|
1216
|
+
a.component("ScalarButton", Me), a.component("ScalarDropdown", Ue), a.component("ScalarDropdownDivider", qe), a.component("ScalarDropdownItem", Ke), a.component("ScalarFloating", G), a.component("ScalarIcon", V), a.component("ScalarIconButton", Q), a.component("ScalarLoading", H), a.component("ScalarModal", et), a.component("ScalarPopover", at), a.component("ScalarSearchInput", ot), a.component("ScalarSearchResultItem", vt), a.component("ScalarSearchResultList", dt), a.component("ScalarTextField", wt);
|
|
1217
1217
|
}
|
|
1218
1218
|
};
|
|
1219
1219
|
export {
|
|
1220
1220
|
Me as ScalarButton,
|
|
1221
|
-
|
|
1222
|
-
|
|
1221
|
+
Ot as ScalarCodeBlock,
|
|
1222
|
+
Ue as ScalarDropdown,
|
|
1223
1223
|
qe as ScalarDropdownDivider,
|
|
1224
1224
|
Ke as ScalarDropdownItem,
|
|
1225
1225
|
G as ScalarFloating,
|
|
@@ -1228,11 +1228,11 @@ export {
|
|
|
1228
1228
|
H as ScalarLoading,
|
|
1229
1229
|
et as ScalarModal,
|
|
1230
1230
|
at as ScalarPopover,
|
|
1231
|
-
|
|
1231
|
+
ot as ScalarSearchInput,
|
|
1232
1232
|
vt as ScalarSearchResultItem,
|
|
1233
1233
|
dt as ScalarSearchResultList,
|
|
1234
1234
|
wt as ScalarTextField,
|
|
1235
1235
|
Bt as default,
|
|
1236
|
-
|
|
1236
|
+
Pt as useLoadingState,
|
|
1237
1237
|
zt as useModal
|
|
1238
1238
|
};
|