@scalar/components 0.6.1 → 0.7.3
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/Hide-CH09NdFy.cjs +1 -0
- package/dist/Hide-Q3GPkIKH.js +21 -0
- package/dist/Show-BLBjkPHV.cjs +1 -0
- package/dist/Show-D86hKz5y.js +21 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +159 -20
- package/dist/index.js +515 -318
- package/dist/main.css +1 -1
- package/package.json +12 -6
- package/src/tailwind/index.ts +1 -1
- package/src/tailwind/tailwind.theme.ts +16 -0
package/dist/index.js
CHANGED
|
@@ -1,29 +1,32 @@
|
|
|
1
1
|
import './main.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { defineConfig as
|
|
4
|
-
import { extendTailwindMerge as
|
|
5
|
-
import { createHash as
|
|
6
|
-
import
|
|
7
|
-
import { Dialog as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
2
|
+
import { defineComponent as y, useCssVars as ee, openBlock as m, createElementBlock as v, normalizeClass as S, unref as o, createElementVNode as h, createCommentVNode as $, createStaticVNode as te, reactive as W, computed as k, useAttrs as O, mergeProps as A, 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 P, Fragment as K, createBlock as x, withCtx as _, defineAsyncComponent as ne, resolveDynamicComponent as Y, normalizeStyle as J, createTextVNode as R, normalizeProps as oe, guardReactiveProps as ie, withKeys as le } from "vue";
|
|
3
|
+
import { defineConfig as de } from "cva";
|
|
4
|
+
import { extendTailwindMerge as ce } from "tailwind-merge";
|
|
5
|
+
import { createHash as ue, ssrState as pe } from "@scalar/oas-utils";
|
|
6
|
+
import L from "prismjs";
|
|
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
|
+
import { getSideAxis as F } from "@floating-ui/utils";
|
|
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 Ce } from "@vueuse/core";
|
|
11
|
+
import { nanoid as Ae } from "nanoid";
|
|
12
|
+
const M = "scalar-component", Te = ce({
|
|
11
13
|
extend: {
|
|
12
14
|
classGroups: {
|
|
15
|
+
"font-size": ["text-xxs"],
|
|
13
16
|
// Add the scalar class prefix as a custom class to be deduped by tailwind-merge
|
|
14
|
-
[
|
|
17
|
+
[M]: [M]
|
|
15
18
|
}
|
|
16
19
|
}
|
|
17
|
-
}), { cva:
|
|
20
|
+
}), { cva: T, cx: E, compose: Dt } = de({
|
|
18
21
|
hooks: {
|
|
19
|
-
onComplete: (a) => `${
|
|
22
|
+
onComplete: (a) => `${Te(a, M)}`
|
|
20
23
|
}
|
|
21
|
-
}),
|
|
24
|
+
}), Le = /* @__PURE__ */ te('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-47faceda></path>', 5), Re = {
|
|
22
25
|
key: 0,
|
|
23
26
|
class: "circular-loader"
|
|
24
27
|
};
|
|
25
|
-
function
|
|
26
|
-
return
|
|
28
|
+
function Ot() {
|
|
29
|
+
return W({
|
|
27
30
|
isValid: !1,
|
|
28
31
|
isInvalid: !1,
|
|
29
32
|
isLoading: !1,
|
|
@@ -56,21 +59,21 @@ function ot() {
|
|
|
56
59
|
}
|
|
57
60
|
});
|
|
58
61
|
}
|
|
59
|
-
const
|
|
62
|
+
const De = /* @__PURE__ */ y({
|
|
60
63
|
__name: "ScalarLoading",
|
|
61
64
|
props: {
|
|
62
65
|
loadingState: {},
|
|
63
66
|
size: { default: "24px" }
|
|
64
67
|
},
|
|
65
68
|
setup(a) {
|
|
66
|
-
return
|
|
69
|
+
return ee((t) => ({
|
|
67
70
|
d6cae758: t.size
|
|
68
|
-
})), (t, e) => t.loadingState ? (
|
|
71
|
+
})), (t, e) => t.loadingState ? (m(), v("div", {
|
|
69
72
|
key: 0,
|
|
70
|
-
class:
|
|
73
|
+
class: S(o(E)("loader-wrapper"))
|
|
71
74
|
}, [
|
|
72
|
-
(
|
|
73
|
-
class:
|
|
75
|
+
(m(), v("svg", {
|
|
76
|
+
class: S(["svg-loader", {
|
|
74
77
|
"icon-is-valid": t.loadingState.isValid,
|
|
75
78
|
"icon-is-invalid": t.loadingState.isInvalid
|
|
76
79
|
}]),
|
|
@@ -78,10 +81,10 @@ const ve = /* @__PURE__ */ _({
|
|
|
78
81
|
xmlns: "http://www.w3.org/2000/svg",
|
|
79
82
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
80
83
|
}, [
|
|
81
|
-
|
|
82
|
-
t.loadingState.isLoading ? (
|
|
83
|
-
|
|
84
|
-
class:
|
|
84
|
+
Le,
|
|
85
|
+
t.loadingState.isLoading ? (m(), v("g", Re, [
|
|
86
|
+
h("circle", {
|
|
87
|
+
class: S(["loader-path", {
|
|
85
88
|
"loader-path-off": t.loadingState.isValid || t.loadingState.isInvalid
|
|
86
89
|
}]),
|
|
87
90
|
cx: "50",
|
|
@@ -90,16 +93,16 @@ const ve = /* @__PURE__ */ _({
|
|
|
90
93
|
r: "20",
|
|
91
94
|
"stroke-width": "2"
|
|
92
95
|
}, null, 2)
|
|
93
|
-
])) :
|
|
96
|
+
])) : $("", !0)
|
|
94
97
|
], 2))
|
|
95
|
-
], 2)) :
|
|
98
|
+
], 2)) : $("", !0);
|
|
96
99
|
}
|
|
97
100
|
}), B = (a, t) => {
|
|
98
101
|
const e = a.__vccOpts || a;
|
|
99
|
-
for (const [
|
|
100
|
-
e[
|
|
102
|
+
for (const [r, c] of t)
|
|
103
|
+
e[r] = c;
|
|
101
104
|
return e;
|
|
102
|
-
}, H = /* @__PURE__ */ B(
|
|
105
|
+
}, H = /* @__PURE__ */ B(De, [["__scopeId", "data-v-47faceda"]]), Z = {
|
|
103
106
|
solid: [
|
|
104
107
|
"scalar-button-solid",
|
|
105
108
|
"bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"
|
|
@@ -116,7 +119,7 @@ const ve = /* @__PURE__ */ _({
|
|
|
116
119
|
"scalar-button-danger",
|
|
117
120
|
"bg-error text-white active:brightness-90 hocus:brightness-90"
|
|
118
121
|
]
|
|
119
|
-
},
|
|
122
|
+
}, Oe = T({
|
|
120
123
|
base: "scalar-button row cursor-pointer items-center justify-center rounded font-medium",
|
|
121
124
|
variants: {
|
|
122
125
|
disabled: {
|
|
@@ -124,7 +127,7 @@ const ve = /* @__PURE__ */ _({
|
|
|
124
127
|
},
|
|
125
128
|
fullWidth: { true: "w-full" },
|
|
126
129
|
size: { md: "h-10 px-6 text-sm" },
|
|
127
|
-
variant:
|
|
130
|
+
variant: Z
|
|
128
131
|
},
|
|
129
132
|
compoundVariants: [
|
|
130
133
|
{
|
|
@@ -133,13 +136,13 @@ const ve = /* @__PURE__ */ _({
|
|
|
133
136
|
class: "bg-transparent text-ghost"
|
|
134
137
|
}
|
|
135
138
|
]
|
|
136
|
-
}),
|
|
139
|
+
}), Pe = ["ariaDisabled"], ze = {
|
|
137
140
|
key: 0,
|
|
138
141
|
class: "mr-2 h-4 w-4"
|
|
139
|
-
},
|
|
142
|
+
}, Be = {
|
|
140
143
|
key: 1,
|
|
141
144
|
class: "ml-2"
|
|
142
|
-
},
|
|
145
|
+
}, Me = /* @__PURE__ */ y({
|
|
143
146
|
inheritAttrs: !1,
|
|
144
147
|
__name: "ScalarButton",
|
|
145
148
|
props: {
|
|
@@ -150,30 +153,30 @@ const ve = /* @__PURE__ */ _({
|
|
|
150
153
|
variant: { default: "solid" }
|
|
151
154
|
},
|
|
152
155
|
setup(a) {
|
|
153
|
-
const t =
|
|
154
|
-
const { class: e, ...
|
|
155
|
-
return { className: e || "", rest:
|
|
156
|
+
const t = k(() => {
|
|
157
|
+
const { class: e, ...r } = O();
|
|
158
|
+
return { className: e || "", rest: r };
|
|
156
159
|
});
|
|
157
|
-
return (e,
|
|
160
|
+
return (e, r) => (m(), v("button", A(t.value.rest, {
|
|
158
161
|
ariaDisabled: e.disabled || void 0,
|
|
159
|
-
class:
|
|
160
|
-
|
|
162
|
+
class: o(E)(
|
|
163
|
+
o(Oe)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
|
|
161
164
|
{ "pl-9 pr-3": e.loading },
|
|
162
165
|
`${t.value.className}`
|
|
163
166
|
),
|
|
164
167
|
type: "button"
|
|
165
168
|
}), [
|
|
166
|
-
e.$slots.icon ? (
|
|
167
|
-
|
|
168
|
-
])) :
|
|
169
|
-
|
|
170
|
-
e.loading ? (
|
|
171
|
-
|
|
169
|
+
e.$slots.icon ? (m(), v("div", ze, [
|
|
170
|
+
b(e.$slots, "icon")
|
|
171
|
+
])) : $("", !0),
|
|
172
|
+
b(e.$slots, "default"),
|
|
173
|
+
e.loading ? (m(), v("div", Be, [
|
|
174
|
+
N(o(H), {
|
|
172
175
|
loadingState: e.loading,
|
|
173
176
|
size: "20px"
|
|
174
177
|
}, null, 8, ["loadingState"])
|
|
175
|
-
])) :
|
|
176
|
-
], 16,
|
|
178
|
+
])) : $("", !0)
|
|
179
|
+
], 16, Pe));
|
|
177
180
|
}
|
|
178
181
|
});
|
|
179
182
|
(function(a) {
|
|
@@ -184,7 +187,7 @@ const ve = /* @__PURE__ */ _({
|
|
|
184
187
|
// this looks reasonably well in all themes
|
|
185
188
|
inside: null
|
|
186
189
|
// see below
|
|
187
|
-
},
|
|
190
|
+
}, r = {
|
|
188
191
|
bash: e,
|
|
189
192
|
environment: {
|
|
190
193
|
pattern: RegExp("\\$" + t),
|
|
@@ -296,7 +299,7 @@ const ve = /* @__PURE__ */ _({
|
|
|
296
299
|
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
297
300
|
lookbehind: !0,
|
|
298
301
|
greedy: !0,
|
|
299
|
-
inside:
|
|
302
|
+
inside: r
|
|
300
303
|
},
|
|
301
304
|
// Here-document with quotes around the tag
|
|
302
305
|
// → No expansion (so no “inside”).
|
|
@@ -314,7 +317,7 @@ const ve = /* @__PURE__ */ _({
|
|
|
314
317
|
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
315
318
|
lookbehind: !0,
|
|
316
319
|
greedy: !0,
|
|
317
|
-
inside:
|
|
320
|
+
inside: r
|
|
318
321
|
},
|
|
319
322
|
{
|
|
320
323
|
// https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
|
|
@@ -327,7 +330,7 @@ const ve = /* @__PURE__ */ _({
|
|
|
327
330
|
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
328
331
|
greedy: !0,
|
|
329
332
|
inside: {
|
|
330
|
-
entity:
|
|
333
|
+
entity: r.entity
|
|
331
334
|
}
|
|
332
335
|
}
|
|
333
336
|
],
|
|
@@ -335,7 +338,7 @@ const ve = /* @__PURE__ */ _({
|
|
|
335
338
|
pattern: RegExp("\\$?" + t),
|
|
336
339
|
alias: "constant"
|
|
337
340
|
},
|
|
338
|
-
variable:
|
|
341
|
+
variable: r.variable,
|
|
339
342
|
function: {
|
|
340
343
|
pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
|
|
341
344
|
lookbehind: !0
|
|
@@ -375,7 +378,7 @@ const ve = /* @__PURE__ */ _({
|
|
|
375
378
|
lookbehind: !0
|
|
376
379
|
}
|
|
377
380
|
}, e.inside = a.languages.bash;
|
|
378
|
-
for (var
|
|
381
|
+
for (var c = [
|
|
379
382
|
"comment",
|
|
380
383
|
"function-name",
|
|
381
384
|
"for-or-select",
|
|
@@ -391,8 +394,8 @@ const ve = /* @__PURE__ */ _({
|
|
|
391
394
|
"operator",
|
|
392
395
|
"punctuation",
|
|
393
396
|
"number"
|
|
394
|
-
],
|
|
395
|
-
|
|
397
|
+
], d = r.variable[1].inside, s = 0; s < c.length; s++)
|
|
398
|
+
d[c[s]] = a.languages.bash[c[s]];
|
|
396
399
|
a.languages.sh = a.languages.bash, a.languages.shell = a.languages.bash;
|
|
397
400
|
})(Prism);
|
|
398
401
|
Prism.languages.json = {
|
|
@@ -431,14 +434,14 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
431
434
|
* @param {number} number line number
|
|
432
435
|
* @returns {Element|undefined}
|
|
433
436
|
*/
|
|
434
|
-
getLine: function(
|
|
435
|
-
if (!(
|
|
436
|
-
var
|
|
437
|
-
if (
|
|
438
|
-
var
|
|
439
|
-
|
|
440
|
-
var
|
|
441
|
-
return
|
|
437
|
+
getLine: function(s, u) {
|
|
438
|
+
if (!(s.tagName !== "PRE" || !s.classList.contains(a))) {
|
|
439
|
+
var i = s.querySelector(".line-numbers-rows");
|
|
440
|
+
if (i) {
|
|
441
|
+
var g = parseInt(s.getAttribute("data-start"), 10) || 1, p = g + (i.children.length - 1);
|
|
442
|
+
u < g && (u = g), u > p && (u = p);
|
|
443
|
+
var n = u - g;
|
|
444
|
+
return i.children[n];
|
|
442
445
|
}
|
|
443
446
|
}
|
|
444
447
|
},
|
|
@@ -450,8 +453,8 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
450
453
|
* @param {HTMLElement} element A `<pre>` element with line numbers.
|
|
451
454
|
* @returns {void}
|
|
452
455
|
*/
|
|
453
|
-
resize: function(
|
|
454
|
-
|
|
456
|
+
resize: function(s) {
|
|
457
|
+
r([s]);
|
|
455
458
|
},
|
|
456
459
|
/**
|
|
457
460
|
* Whether the plugin can assume that the units font sizes and margins are not depended on the size of
|
|
@@ -465,98 +468,98 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
465
468
|
*/
|
|
466
469
|
assumeViewportIndependence: !0
|
|
467
470
|
};
|
|
468
|
-
function
|
|
469
|
-
if (
|
|
470
|
-
var
|
|
471
|
+
function r(s) {
|
|
472
|
+
if (s = s.filter(function(i) {
|
|
473
|
+
var g = c(i), p = g["white-space"];
|
|
471
474
|
return p === "pre-wrap" || p === "pre-line";
|
|
472
|
-
}),
|
|
473
|
-
var
|
|
474
|
-
var
|
|
475
|
-
if (!(!
|
|
476
|
-
var
|
|
477
|
-
|
|
478
|
-
var
|
|
479
|
-
return
|
|
480
|
-
element:
|
|
481
|
-
lines:
|
|
475
|
+
}), s.length != 0) {
|
|
476
|
+
var u = s.map(function(i) {
|
|
477
|
+
var g = i.querySelector("code"), p = i.querySelector(".line-numbers-rows");
|
|
478
|
+
if (!(!g || !p)) {
|
|
479
|
+
var n = i.querySelector(".line-numbers-sizer"), f = g.textContent.split(t);
|
|
480
|
+
n || (n = document.createElement("span"), n.className = "line-numbers-sizer", g.appendChild(n)), n.innerHTML = "0", n.style.display = "block";
|
|
481
|
+
var l = n.getBoundingClientRect().height;
|
|
482
|
+
return n.innerHTML = "", {
|
|
483
|
+
element: i,
|
|
484
|
+
lines: f,
|
|
482
485
|
lineHeights: [],
|
|
483
|
-
oneLinerHeight:
|
|
484
|
-
sizer:
|
|
486
|
+
oneLinerHeight: l,
|
|
487
|
+
sizer: n
|
|
485
488
|
};
|
|
486
489
|
}
|
|
487
490
|
}).filter(Boolean);
|
|
488
|
-
|
|
489
|
-
var
|
|
490
|
-
|
|
491
|
-
if (
|
|
492
|
-
var
|
|
493
|
-
|
|
491
|
+
u.forEach(function(i) {
|
|
492
|
+
var g = i.sizer, p = i.lines, n = i.lineHeights, f = i.oneLinerHeight;
|
|
493
|
+
n[p.length - 1] = void 0, p.forEach(function(l, w) {
|
|
494
|
+
if (l && l.length > 1) {
|
|
495
|
+
var C = g.appendChild(document.createElement("span"));
|
|
496
|
+
C.style.display = "block", C.textContent = l;
|
|
494
497
|
} else
|
|
495
|
-
|
|
498
|
+
n[w] = f;
|
|
496
499
|
});
|
|
497
|
-
}),
|
|
498
|
-
for (var
|
|
499
|
-
p[
|
|
500
|
-
}),
|
|
501
|
-
var
|
|
502
|
-
|
|
503
|
-
p.children[
|
|
500
|
+
}), u.forEach(function(i) {
|
|
501
|
+
for (var g = i.sizer, p = i.lineHeights, n = 0, f = 0; f < p.length; f++)
|
|
502
|
+
p[f] === void 0 && (p[f] = g.children[n++].getBoundingClientRect().height);
|
|
503
|
+
}), u.forEach(function(i) {
|
|
504
|
+
var g = i.sizer, p = i.element.querySelector(".line-numbers-rows");
|
|
505
|
+
g.style.display = "none", g.innerHTML = "", i.lineHeights.forEach(function(n, f) {
|
|
506
|
+
p.children[f].style.height = n + "px";
|
|
504
507
|
});
|
|
505
508
|
});
|
|
506
509
|
}
|
|
507
510
|
}
|
|
508
|
-
function
|
|
509
|
-
return
|
|
511
|
+
function c(s) {
|
|
512
|
+
return s ? window.getComputedStyle ? getComputedStyle(s) : s.currentStyle || null : null;
|
|
510
513
|
}
|
|
511
|
-
var
|
|
514
|
+
var d = void 0;
|
|
512
515
|
window.addEventListener("resize", function() {
|
|
513
|
-
e.assumeViewportIndependence &&
|
|
514
|
-
}), Prism.hooks.add("complete", function(
|
|
515
|
-
if (
|
|
516
|
-
var
|
|
516
|
+
e.assumeViewportIndependence && d === window.innerWidth || (d = window.innerWidth, r(Array.prototype.slice.call(document.querySelectorAll("pre." + a))));
|
|
517
|
+
}), Prism.hooks.add("complete", function(s) {
|
|
518
|
+
if (s.code) {
|
|
519
|
+
var u = (
|
|
517
520
|
/** @type {Element} */
|
|
518
|
-
|
|
519
|
-
),
|
|
521
|
+
s.element
|
|
522
|
+
), i = (
|
|
520
523
|
/** @type {HTMLElement} */
|
|
521
|
-
|
|
524
|
+
u.parentNode
|
|
522
525
|
);
|
|
523
|
-
if (!(!
|
|
524
|
-
|
|
525
|
-
var
|
|
526
|
-
|
|
526
|
+
if (!(!i || !/pre/i.test(i.nodeName)) && !u.querySelector(".line-numbers-rows") && Prism.util.isActive(u, a)) {
|
|
527
|
+
u.classList.remove(a), i.classList.add(a);
|
|
528
|
+
var g = s.code.match(t), p = g ? g.length + 1 : 1, n, f = new Array(p + 1).join("<span></span>");
|
|
529
|
+
n = document.createElement("span"), n.setAttribute("aria-hidden", "true"), n.className = "line-numbers-rows", n.innerHTML = f, i.hasAttribute("data-start") && (i.style.counterReset = "linenumber " + (parseInt(i.getAttribute("data-start"), 10) - 1)), s.element.appendChild(n), r([i]), Prism.hooks.run("line-numbers", s);
|
|
527
530
|
}
|
|
528
531
|
}
|
|
529
|
-
}), Prism.hooks.add("line-numbers", function(
|
|
530
|
-
|
|
532
|
+
}), Prism.hooks.add("line-numbers", function(s) {
|
|
533
|
+
s.plugins = s.plugins || {}, s.plugins.lineNumbers = !0;
|
|
531
534
|
});
|
|
532
535
|
})();
|
|
533
|
-
function
|
|
536
|
+
function He(a) {
|
|
534
537
|
const t = /* @__PURE__ */ new Set();
|
|
535
538
|
return JSON.stringify(
|
|
536
539
|
a,
|
|
537
|
-
(e,
|
|
538
|
-
if (typeof
|
|
539
|
-
if (t.has(
|
|
540
|
+
(e, r) => {
|
|
541
|
+
if (typeof r == "object" && r !== null) {
|
|
542
|
+
if (t.has(r))
|
|
540
543
|
return "[Circular]";
|
|
541
|
-
t.add(
|
|
544
|
+
t.add(r);
|
|
542
545
|
}
|
|
543
|
-
return
|
|
546
|
+
return r;
|
|
544
547
|
},
|
|
545
548
|
2
|
|
546
549
|
);
|
|
547
550
|
}
|
|
548
|
-
function
|
|
551
|
+
function z(a) {
|
|
549
552
|
if (typeof a == "string")
|
|
550
553
|
return a;
|
|
551
554
|
if (typeof a == "object")
|
|
552
555
|
try {
|
|
553
556
|
return JSON.stringify(a, null, 2);
|
|
554
557
|
} catch {
|
|
555
|
-
return
|
|
558
|
+
return He(a);
|
|
556
559
|
}
|
|
557
560
|
return a;
|
|
558
561
|
}
|
|
559
|
-
const
|
|
562
|
+
const Ge = ["innerHTML"], Pt = /* @__PURE__ */ y({
|
|
560
563
|
__name: "ScalarCodeBlock",
|
|
561
564
|
props: {
|
|
562
565
|
content: {},
|
|
@@ -565,81 +568,233 @@ const Ee = ["innerHTML"], it = /* @__PURE__ */ _({
|
|
|
565
568
|
hideCredentials: {}
|
|
566
569
|
},
|
|
567
570
|
setup(a) {
|
|
568
|
-
const t = a, e =
|
|
569
|
-
t.hideCredentials &&
|
|
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(n) {
|
|
570
573
|
if (!t.hideCredentials)
|
|
571
574
|
return;
|
|
572
|
-
let
|
|
573
|
-
typeof t.hideCredentials == "string" ?
|
|
574
|
-
(
|
|
575
|
-
)),
|
|
575
|
+
let f = !1;
|
|
576
|
+
typeof t.hideCredentials == "string" ? n.content.includes(t.hideCredentials) && (f = !0) : Array.isArray(t.hideCredentials) && (f = t.hideCredentials.some(
|
|
577
|
+
(l) => n.content.includes(l)
|
|
578
|
+
)), f && (n.content = n.content.replace(
|
|
576
579
|
/<span class="credentials">.*?<\/span>/g,
|
|
577
|
-
(
|
|
578
|
-
),
|
|
580
|
+
(l) => l.replace(/<span class="credentials">|<\/span>/g, "")
|
|
581
|
+
), n.content = n.content.replace(
|
|
579
582
|
new RegExp(
|
|
580
583
|
typeof t.hideCredentials == "string" ? t.hideCredentials : t.hideCredentials.join("|"),
|
|
581
584
|
"g"
|
|
582
585
|
),
|
|
583
|
-
(
|
|
586
|
+
(l) => `<span class="credentials">${l}</span>`
|
|
584
587
|
));
|
|
585
588
|
});
|
|
586
|
-
const
|
|
587
|
-
|
|
588
|
-
[() => t.lang, () => t.content,
|
|
589
|
+
const s = I(null), u = I(pe[r] ?? ""), i = k(() => t.lang === "node" ? "js" : t.lang), g = t.lang;
|
|
590
|
+
X(
|
|
591
|
+
[() => t.lang, () => t.content, s],
|
|
589
592
|
() => {
|
|
590
|
-
|
|
593
|
+
s.value && t.content && (!u.value || t.lang !== g) && (u.value = "", ae(() => d(s.value)));
|
|
591
594
|
},
|
|
592
595
|
{ immediate: !0 }
|
|
593
596
|
);
|
|
594
597
|
const p = /\n(?!$)/g;
|
|
595
|
-
return
|
|
596
|
-
let
|
|
597
|
-
t.lineNumbers &&
|
|
598
|
-
const
|
|
599
|
-
|
|
598
|
+
return re(async () => {
|
|
599
|
+
let n = "";
|
|
600
|
+
t.lineNumbers && L.hooks.add("after-tokenize", (l) => {
|
|
601
|
+
const w = l.code.match(p), C = w ? w.length + 1 : 1;
|
|
602
|
+
n = `<span aria-hidden="true" class="line-numbers-rows">${new Array(C + 1).join("<span></span>")}</span>`;
|
|
600
603
|
});
|
|
601
|
-
const
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
604
|
+
const f = L.highlight(
|
|
605
|
+
z(t.content),
|
|
606
|
+
L.languages[i.value],
|
|
607
|
+
i.value
|
|
605
608
|
);
|
|
606
|
-
if (
|
|
607
|
-
const
|
|
608
|
-
|
|
609
|
+
if (u.value = f + n, e !== 0) {
|
|
610
|
+
const l = se();
|
|
611
|
+
l.payload.data[r] = f + n;
|
|
609
612
|
}
|
|
610
|
-
}),
|
|
611
|
-
await import("./prism-autoloader-Dlh8Vzlw.js"),
|
|
612
|
-
}), (
|
|
613
|
-
class:
|
|
614
|
-
`scalar-component scalar-codeblock-pre language-${
|
|
613
|
+
}), q(async () => {
|
|
614
|
+
await import("./prism-autoloader-Dlh8Vzlw.js"), c.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/";
|
|
615
|
+
}), (n, f) => (m(), v("pre", {
|
|
616
|
+
class: S([
|
|
617
|
+
`scalar-component scalar-codeblock-pre language-${i.value}`,
|
|
615
618
|
{
|
|
616
|
-
"line-numbers":
|
|
619
|
+
"line-numbers": n.lineNumbers
|
|
617
620
|
}
|
|
618
621
|
])
|
|
619
622
|
}, [
|
|
620
|
-
|
|
623
|
+
u.value ? (m(), v("code", {
|
|
621
624
|
key: 0,
|
|
622
|
-
class:
|
|
623
|
-
innerHTML:
|
|
624
|
-
}, null, 10,
|
|
625
|
+
class: S(`scalar-codeblock-code language-${i.value}`),
|
|
626
|
+
innerHTML: o(z)(u.value)
|
|
627
|
+
}, null, 10, Ge)) : (m(), v("code", {
|
|
625
628
|
key: 1,
|
|
626
629
|
ref_key: "el",
|
|
627
|
-
ref:
|
|
628
|
-
class:
|
|
629
|
-
},
|
|
630
|
+
ref: s,
|
|
631
|
+
class: S(`scalar-codeblock-code language-${i.value}`)
|
|
632
|
+
}, D(o(z)(n.content)), 3))
|
|
630
633
|
], 2));
|
|
631
634
|
}
|
|
632
|
-
})
|
|
635
|
+
});
|
|
636
|
+
function Ve(a, t = { enabled: I(!0) }) {
|
|
637
|
+
const e = I(0), r = I(0), c = I();
|
|
638
|
+
return typeof ResizeObserver < "u" && (c.value = new ResizeObserver(([d]) => {
|
|
639
|
+
var s, u;
|
|
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
|
+
})), X(
|
|
642
|
+
[() => P(t.enabled), () => P(a)],
|
|
643
|
+
([d, s]) => {
|
|
644
|
+
!s || !c.value || (d ? c.value.observe(s) : c.value.disconnect());
|
|
645
|
+
},
|
|
646
|
+
{ immediate: !0 }
|
|
647
|
+
), {
|
|
648
|
+
width: k(
|
|
649
|
+
() => P(t.enabled) ? `${e.value}px` : void 0
|
|
650
|
+
),
|
|
651
|
+
height: k(
|
|
652
|
+
() => P(t.enabled) ? `${r.value}px` : void 0
|
|
653
|
+
)
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
const G = /* @__PURE__ */ y({
|
|
657
|
+
inheritAttrs: !1,
|
|
658
|
+
__name: "ScalarFloating",
|
|
659
|
+
props: {
|
|
660
|
+
placement: {},
|
|
661
|
+
resize: { type: Boolean },
|
|
662
|
+
middleware: {}
|
|
663
|
+
},
|
|
664
|
+
setup(a) {
|
|
665
|
+
const t = a, e = I(null), r = I(null), c = k(
|
|
666
|
+
() => {
|
|
667
|
+
var p, n;
|
|
668
|
+
return (((n = (p = r.value) == null ? void 0 : p.children) == null ? void 0 : n[0]) || r.value) ?? void 0;
|
|
669
|
+
}
|
|
670
|
+
), d = Ve(c, {
|
|
671
|
+
enabled: k(() => t.resize)
|
|
672
|
+
}), s = k(
|
|
673
|
+
() => F(t.placement || "bottom") === "y" ? d.width.value : void 0
|
|
674
|
+
), u = k(
|
|
675
|
+
() => F(t.placement || "bottom") === "x" ? d.height.value : void 0
|
|
676
|
+
), { floatingStyles: i, middlewareData: g } = Ee(c, e, {
|
|
677
|
+
placement: k(() => t.placement),
|
|
678
|
+
whileElementsMounted: $e,
|
|
679
|
+
middleware: k(() => [
|
|
680
|
+
Ie(5),
|
|
681
|
+
Ne(),
|
|
682
|
+
xe(),
|
|
683
|
+
...t.middleware ?? []
|
|
684
|
+
])
|
|
685
|
+
});
|
|
686
|
+
return (p, n) => (m(), v(K, null, [
|
|
687
|
+
h("div", {
|
|
688
|
+
ref_key: "wrapperRef",
|
|
689
|
+
ref: r,
|
|
690
|
+
class: S({ contents: !!p.$slots.default })
|
|
691
|
+
}, [
|
|
692
|
+
b(p.$slots, "default")
|
|
693
|
+
], 2),
|
|
694
|
+
h("div", A({
|
|
695
|
+
ref_key: "floatingRef",
|
|
696
|
+
ref: e,
|
|
697
|
+
class: "relative z-context",
|
|
698
|
+
style: o(i)
|
|
699
|
+
}, p.$attrs), [
|
|
700
|
+
b(p.$slots, "floating", {
|
|
701
|
+
data: o(g),
|
|
702
|
+
height: u.value,
|
|
703
|
+
width: s.value
|
|
704
|
+
})
|
|
705
|
+
], 16)
|
|
706
|
+
], 64));
|
|
707
|
+
}
|
|
708
|
+
}), Fe = /* @__PURE__ */ h("div", { class: "absolute inset-0 -z-1 rounded bg-back-1 shadow-md brightness-lifted" }, null, -1), je = /* @__PURE__ */ y({
|
|
709
|
+
inheritAttrs: !1,
|
|
710
|
+
__name: "ScalarDropdown",
|
|
711
|
+
props: {
|
|
712
|
+
placement: {},
|
|
713
|
+
resize: { type: Boolean }
|
|
714
|
+
},
|
|
715
|
+
setup(a) {
|
|
716
|
+
return (t, e) => (m(), x(o(me), null, {
|
|
717
|
+
default: _(() => [
|
|
718
|
+
N(o(G), {
|
|
719
|
+
placement: t.placement ?? "bottom-start",
|
|
720
|
+
resize: t.resize
|
|
721
|
+
}, {
|
|
722
|
+
floating: _(({ width: r }) => [
|
|
723
|
+
N(o(ge), A({
|
|
724
|
+
class: "relative flex w-56 flex-col p-0.75",
|
|
725
|
+
style: { width: r }
|
|
726
|
+
}, t.$attrs), {
|
|
727
|
+
default: _(() => [
|
|
728
|
+
b(t.$slots, "items"),
|
|
729
|
+
Fe
|
|
730
|
+
]),
|
|
731
|
+
_: 2
|
|
732
|
+
}, 1040, ["style"])
|
|
733
|
+
]),
|
|
734
|
+
default: _(() => [
|
|
735
|
+
N(o(fe), { as: "template" }, {
|
|
736
|
+
default: _(() => [
|
|
737
|
+
b(t.$slots, "default")
|
|
738
|
+
]),
|
|
739
|
+
_: 3
|
|
740
|
+
})
|
|
741
|
+
]),
|
|
742
|
+
_: 3
|
|
743
|
+
}, 8, ["placement", "resize"])
|
|
744
|
+
]),
|
|
745
|
+
_: 3
|
|
746
|
+
}));
|
|
747
|
+
}
|
|
748
|
+
}), Ue = {}, We = { class: "-mx-0.75 my-0.75 h-px bg-border" };
|
|
749
|
+
function Xe(a, t) {
|
|
750
|
+
return m(), v("div", We);
|
|
751
|
+
}
|
|
752
|
+
const qe = /* @__PURE__ */ B(Ue, [["render", Xe]]), Ke = /* @__PURE__ */ y({
|
|
753
|
+
__name: "ScalarDropdownItem",
|
|
754
|
+
props: {
|
|
755
|
+
disabled: { type: Boolean }
|
|
756
|
+
},
|
|
757
|
+
emits: ["click"],
|
|
758
|
+
setup(a) {
|
|
759
|
+
const t = T({
|
|
760
|
+
base: [
|
|
761
|
+
// Layout
|
|
762
|
+
"min-w-0 items-center gap-3 rounded px-2.5 py-1.5 text-left",
|
|
763
|
+
"first-of-type:mt-0.75 last-of-type:mb-0.75",
|
|
764
|
+
// Text / background style
|
|
765
|
+
"truncate bg-transparent text-xs font-medium text-fore-2",
|
|
766
|
+
// Interaction
|
|
767
|
+
"cursor-pointer hover:bg-back-2 hover:text-fore-1"
|
|
768
|
+
],
|
|
769
|
+
variants: {
|
|
770
|
+
disabled: { true: "pointer-events-none text-fore-3" },
|
|
771
|
+
active: { true: "bg-back-2 text-fore-1" }
|
|
772
|
+
}
|
|
773
|
+
});
|
|
774
|
+
return (e, r) => (m(), x(o(he), { disabled: e.disabled }, {
|
|
775
|
+
default: _(({ active: c }) => [
|
|
776
|
+
h("button", {
|
|
777
|
+
class: S(["item", o(E)("scalar-dropdown-item", o(t)({ active: c, disabled: e.disabled }))]),
|
|
778
|
+
type: "button",
|
|
779
|
+
onClick: r[0] || (r[0] = (d) => e.$emit("click", d))
|
|
780
|
+
}, [
|
|
781
|
+
b(e.$slots, "default")
|
|
782
|
+
], 2)
|
|
783
|
+
]),
|
|
784
|
+
_: 3
|
|
785
|
+
}, 8, ["disabled"]));
|
|
786
|
+
}
|
|
787
|
+
}), j = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-ngyZgYXx.js"), "./Brackets.svg": () => import("./Brackets-4I8OKomf.js"), "./Branch.svg": () => import("./Branch-CXwj8YuG.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"), "./DocsPage.svg": () => import("./DocsPage-rh2xwxKN.js"), "./Ellipses.svg": () => import("./Ellipses-Bo_X36Hx.js"), "./ExternalLink.svg": () => import("./ExternalLink-DK8L-EH7.js"), "./GitHub.svg": () => import("./GitHub-NdE6Zs9k.js"), "./Hide.svg": () => import("./Hide-Q3GPkIKH.js"), "./JsonObject.svg": () => import("./JsonObject-hGdHUQ4M.js"), "./LightDarkModeToggle.svg": () => import("./LightDarkModeToggle-BkvMimDa.js"), "./LightMode.svg": () => import("./LightMode-Btz6vyT_.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"), "./Menu.svg": () => import("./Menu-CFK5cOsm.js"), "./PaperAirplane.svg": () => import("./PaperAirplane-BC-4mGEB.js"), "./Search.svg": () => import("./Search-DqtlswRG.js"), "./Show.svg": () => import("./Show-D86hKz5y.js"), "./Terminal.svg": () => import("./Terminal-CKp--su5.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") }), U = (a) => {
|
|
633
788
|
const t = `./${a}.svg`;
|
|
634
|
-
return
|
|
635
|
-
},
|
|
789
|
+
return j[t] ? ne(j[t]) : (console.warn(`Could not find icon: ${a}`), null);
|
|
790
|
+
}, Ye = ["src"], V = /* @__PURE__ */ y({
|
|
636
791
|
__name: "ScalarIcon",
|
|
637
792
|
props: {
|
|
638
793
|
icon: {},
|
|
639
794
|
size: {}
|
|
640
795
|
},
|
|
641
796
|
setup(a) {
|
|
642
|
-
const t = a, e =
|
|
797
|
+
const t = a, e = T({
|
|
643
798
|
variants: {
|
|
644
799
|
size: {
|
|
645
800
|
xs: "h-3 w-3 stroke-[1.4]",
|
|
@@ -655,16 +810,16 @@ const Ee = ["innerHTML"], it = /* @__PURE__ */ _({
|
|
|
655
810
|
defaultVariants: {
|
|
656
811
|
size: "full"
|
|
657
812
|
}
|
|
658
|
-
}),
|
|
659
|
-
return (
|
|
813
|
+
}), r = U(t.icon);
|
|
814
|
+
return (c, d) => o(r) ? (m(), x(Y(o(U)(c.icon)), {
|
|
660
815
|
key: 0,
|
|
661
|
-
class:
|
|
662
|
-
}, null, 8, ["class"])) : (
|
|
816
|
+
class: S(o(E)("scalar-icon", o(e)({ size: c.size })))
|
|
817
|
+
}, null, 8, ["class"])) : (m(), v("img", {
|
|
663
818
|
key: 1,
|
|
664
|
-
src:
|
|
665
|
-
}, null, 8,
|
|
819
|
+
src: c.icon
|
|
820
|
+
}, null, 8, Ye));
|
|
666
821
|
}
|
|
667
|
-
}),
|
|
822
|
+
}), Je = ["ariaDisabled"], Ze = { class: "sr-only" }, Q = /* @__PURE__ */ y({
|
|
668
823
|
__name: "ScalarIconButton",
|
|
669
824
|
props: {
|
|
670
825
|
label: {},
|
|
@@ -674,7 +829,7 @@ const Ee = ["innerHTML"], it = /* @__PURE__ */ _({
|
|
|
674
829
|
size: { default: "md" }
|
|
675
830
|
},
|
|
676
831
|
setup(a) {
|
|
677
|
-
const t =
|
|
832
|
+
const t = T({
|
|
678
833
|
base: "scalar-icon-button grid aspect-square cursor-pointer rounded",
|
|
679
834
|
variants: {
|
|
680
835
|
size: {
|
|
@@ -686,19 +841,19 @@ const Ee = ["innerHTML"], it = /* @__PURE__ */ _({
|
|
|
686
841
|
disabled: {
|
|
687
842
|
true: "cursor-not-allowed shadow-none"
|
|
688
843
|
},
|
|
689
|
-
variant:
|
|
844
|
+
variant: Z
|
|
690
845
|
}
|
|
691
846
|
});
|
|
692
|
-
return (e,
|
|
847
|
+
return (e, r) => (m(), v("button", {
|
|
693
848
|
ariaDisabled: e.disabled || void 0,
|
|
694
|
-
class:
|
|
849
|
+
class: S(o(E)(o(t)({ size: e.size, variant: e.variant, disabled: e.disabled }))),
|
|
695
850
|
type: "button"
|
|
696
851
|
}, [
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
], 10,
|
|
852
|
+
N(o(V), { icon: e.icon }, null, 8, ["icon"]),
|
|
853
|
+
h("span", Ze, D(e.label), 1)
|
|
854
|
+
], 10, Je));
|
|
700
855
|
}
|
|
701
|
-
}),
|
|
856
|
+
}), zt = () => W({
|
|
702
857
|
open: !1,
|
|
703
858
|
show() {
|
|
704
859
|
this.open = !0;
|
|
@@ -706,7 +861,7 @@ const Ee = ["innerHTML"], it = /* @__PURE__ */ _({
|
|
|
706
861
|
hide() {
|
|
707
862
|
this.open = !1;
|
|
708
863
|
}
|
|
709
|
-
}),
|
|
864
|
+
}), Qe = /* @__PURE__ */ y({
|
|
710
865
|
__name: "ScalarModal",
|
|
711
866
|
props: {
|
|
712
867
|
state: {},
|
|
@@ -717,7 +872,7 @@ const Ee = ["innerHTML"], it = /* @__PURE__ */ _({
|
|
|
717
872
|
variant: {}
|
|
718
873
|
},
|
|
719
874
|
setup(a) {
|
|
720
|
-
const t =
|
|
875
|
+
const t = T({
|
|
721
876
|
base: [
|
|
722
877
|
"scalar-modal",
|
|
723
878
|
"col leading-snug relative mx-auto mb-0 mt-20 w-full rounded-lg bg-back-2 text-left text-fore-1 opacity-0"
|
|
@@ -735,46 +890,46 @@ const Ee = ["innerHTML"], it = /* @__PURE__ */ _({
|
|
|
735
890
|
}
|
|
736
891
|
}
|
|
737
892
|
});
|
|
738
|
-
return (e,
|
|
893
|
+
return (e, r) => (m(), x(o(ve), {
|
|
739
894
|
open: e.state.open,
|
|
740
|
-
onClose:
|
|
895
|
+
onClose: r[0] || (r[0] = (c) => e.state.hide())
|
|
741
896
|
}, {
|
|
742
|
-
default:
|
|
743
|
-
|
|
744
|
-
class:
|
|
745
|
-
|
|
897
|
+
default: _(() => [
|
|
898
|
+
h("div", {
|
|
899
|
+
class: S(
|
|
900
|
+
o(E)(
|
|
746
901
|
"scalar-modal-layout fixed left-0 top-0",
|
|
747
902
|
"z-[1001] h-[100dvh] w-[100dvw]",
|
|
748
903
|
"bg-backdrop p-5 opacity-0"
|
|
749
904
|
)
|
|
750
905
|
)
|
|
751
906
|
}, [
|
|
752
|
-
|
|
753
|
-
class:
|
|
754
|
-
style:
|
|
907
|
+
N(o(be), {
|
|
908
|
+
class: S(o(t)({ size: e.size, variant: e.variant })),
|
|
909
|
+
style: J({ maxWidth: e.maxWidth })
|
|
755
910
|
}, {
|
|
756
|
-
default:
|
|
757
|
-
e.title ? (
|
|
911
|
+
default: _(() => [
|
|
912
|
+
e.title ? (m(), x(o(Se), {
|
|
758
913
|
key: 0,
|
|
759
|
-
class:
|
|
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" }])
|
|
760
915
|
}, {
|
|
761
|
-
default:
|
|
762
|
-
|
|
916
|
+
default: _(() => [
|
|
917
|
+
R(D(e.title), 1)
|
|
763
918
|
]),
|
|
764
919
|
_: 1
|
|
765
|
-
}, 8, ["class"])) :
|
|
766
|
-
|
|
767
|
-
class:
|
|
920
|
+
}, 8, ["class"])) : $("", !0),
|
|
921
|
+
N(o(_e), {
|
|
922
|
+
class: S([
|
|
768
923
|
"scalar-modal-body relative max-h-[calc(100dvh-240px)] overflow-y-auto rounded-lg bg-back-1 px-6 pb-4 pt-6",
|
|
769
|
-
|
|
924
|
+
o(E)(
|
|
770
925
|
e.bodyClass,
|
|
771
926
|
e.variant === "history" && "pt-3",
|
|
772
927
|
e.variant === "search" && "col max-h-[440px] overflow-hidden p-0"
|
|
773
928
|
)
|
|
774
929
|
])
|
|
775
930
|
}, {
|
|
776
|
-
default:
|
|
777
|
-
|
|
931
|
+
default: _(() => [
|
|
932
|
+
b(e.$slots, "default", {}, void 0, !0)
|
|
778
933
|
]),
|
|
779
934
|
_: 3
|
|
780
935
|
}, 8, ["class"])
|
|
@@ -786,7 +941,44 @@ const Ee = ["innerHTML"], it = /* @__PURE__ */ _({
|
|
|
786
941
|
_: 3
|
|
787
942
|
}, 8, ["open"]));
|
|
788
943
|
}
|
|
789
|
-
}),
|
|
944
|
+
}), et = /* @__PURE__ */ B(Qe, [["__scopeId", "data-v-ff85ced0"]]), tt = /* @__PURE__ */ h("div", { class: "absolute inset-0 -z-1 rounded bg-back-1 shadow-md brightness-lifted" }, null, -1), at = /* @__PURE__ */ y({
|
|
945
|
+
inheritAttrs: !1,
|
|
946
|
+
__name: "ScalarPopover",
|
|
947
|
+
props: {
|
|
948
|
+
placement: {},
|
|
949
|
+
resize: { type: Boolean }
|
|
950
|
+
},
|
|
951
|
+
setup(a) {
|
|
952
|
+
return (t, e) => (m(), x(o(ye), null, {
|
|
953
|
+
default: _(() => [
|
|
954
|
+
N(o(G), oe(ie(t.$props)), {
|
|
955
|
+
floating: _(({ width: r, height: c }) => [
|
|
956
|
+
N(o(we), A({
|
|
957
|
+
class: "relative flex flex-col p-0.75",
|
|
958
|
+
style: { width: r, height: c }
|
|
959
|
+
}, t.$attrs), {
|
|
960
|
+
default: _(() => [
|
|
961
|
+
b(t.$slots, "popover"),
|
|
962
|
+
tt
|
|
963
|
+
]),
|
|
964
|
+
_: 2
|
|
965
|
+
}, 1040, ["style"])
|
|
966
|
+
]),
|
|
967
|
+
default: _(() => [
|
|
968
|
+
N(o(ke), { as: "template" }, {
|
|
969
|
+
default: _(() => [
|
|
970
|
+
b(t.$slots, "default")
|
|
971
|
+
]),
|
|
972
|
+
_: 3
|
|
973
|
+
})
|
|
974
|
+
]),
|
|
975
|
+
_: 3
|
|
976
|
+
}, 16)
|
|
977
|
+
]),
|
|
978
|
+
_: 3
|
|
979
|
+
}));
|
|
980
|
+
}
|
|
981
|
+
}), rt = { class: "sr-only" }, st = ["value"], nt = /* @__PURE__ */ y({
|
|
790
982
|
inheritAttrs: !1,
|
|
791
983
|
__name: "ScalarSearchInput",
|
|
792
984
|
props: {
|
|
@@ -796,25 +988,25 @@ const Ee = ["innerHTML"], it = /* @__PURE__ */ _({
|
|
|
796
988
|
emits: ["update:modelValue"],
|
|
797
989
|
setup(a, { emit: t }) {
|
|
798
990
|
const e = t;
|
|
799
|
-
function
|
|
800
|
-
e("update:modelValue",
|
|
991
|
+
function r(d) {
|
|
992
|
+
e("update:modelValue", d.target.value);
|
|
801
993
|
}
|
|
802
|
-
const
|
|
803
|
-
const { class:
|
|
804
|
-
return { className:
|
|
994
|
+
const c = k(() => {
|
|
995
|
+
const { class: d, ...s } = O();
|
|
996
|
+
return { className: d || "", rest: s };
|
|
805
997
|
});
|
|
806
|
-
return (
|
|
807
|
-
class:
|
|
998
|
+
return (d, s) => (m(), v("label", A(c.value.rest, {
|
|
999
|
+
class: o(E)(
|
|
808
1000
|
"flex rounded border bg-back-1 text-sm font-medium focus-within:border-fore-1",
|
|
809
|
-
|
|
1001
|
+
c.value.className
|
|
810
1002
|
)
|
|
811
1003
|
}), [
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
1004
|
+
h("span", rt, [
|
|
1005
|
+
b(d.$slots, "label", {}, () => [
|
|
1006
|
+
R("Enter search")
|
|
815
1007
|
])
|
|
816
1008
|
]),
|
|
817
|
-
|
|
1009
|
+
h("input", {
|
|
818
1010
|
autocapitalize: "off",
|
|
819
1011
|
autocomplete: "off",
|
|
820
1012
|
autocorrect: "off",
|
|
@@ -822,58 +1014,58 @@ const Ee = ["innerHTML"], it = /* @__PURE__ */ _({
|
|
|
822
1014
|
placeholder: "Search...",
|
|
823
1015
|
spellcheck: "false",
|
|
824
1016
|
type: "text",
|
|
825
|
-
value:
|
|
826
|
-
onInput:
|
|
827
|
-
}, null, 40,
|
|
828
|
-
|
|
1017
|
+
value: d.modelValue,
|
|
1018
|
+
onInput: r
|
|
1019
|
+
}, null, 40, st),
|
|
1020
|
+
d.loading && d.loading.isLoading ? (m(), x(o(H), {
|
|
829
1021
|
key: 0,
|
|
830
1022
|
class: "mr-3 self-center",
|
|
831
|
-
loadingState:
|
|
1023
|
+
loadingState: d.loading,
|
|
832
1024
|
size: "20px"
|
|
833
|
-
}, null, 8, ["loadingState"])) :
|
|
1025
|
+
}, null, 8, ["loadingState"])) : d.modelValue ? (m(), x(o(Q), {
|
|
834
1026
|
key: 1,
|
|
835
1027
|
class: "self-center",
|
|
836
1028
|
icon: "Close",
|
|
837
1029
|
label: "Clear Search",
|
|
838
1030
|
size: "md",
|
|
839
|
-
onClick:
|
|
840
|
-
})) :
|
|
1031
|
+
onClick: s[0] || (s[0] = (u) => e("update:modelValue", ""))
|
|
1032
|
+
})) : $("", !0)
|
|
841
1033
|
], 16));
|
|
842
1034
|
}
|
|
843
|
-
}),
|
|
1035
|
+
}), ot = { 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({
|
|
844
1036
|
inheritAttrs: !1,
|
|
845
1037
|
__name: "ScalarSearchResultList",
|
|
846
1038
|
props: {
|
|
847
1039
|
noResults: { type: Boolean }
|
|
848
1040
|
},
|
|
849
1041
|
setup(a) {
|
|
850
|
-
const t =
|
|
851
|
-
const { class: e, ...
|
|
852
|
-
return { className: e || "", rest:
|
|
1042
|
+
const t = k(() => {
|
|
1043
|
+
const { class: e, ...r } = O();
|
|
1044
|
+
return { className: e || "", rest: r };
|
|
853
1045
|
});
|
|
854
|
-
return (e,
|
|
855
|
-
class:
|
|
1046
|
+
return (e, r) => (m(), v("ul", A(t.value.rest, {
|
|
1047
|
+
class: o(E)("flex flex-col", t.value.className)
|
|
856
1048
|
}), [
|
|
857
|
-
e.noResults ?
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
e.$slots.query ? (
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
], 64)) :
|
|
1049
|
+
e.noResults ? b(e.$slots, "noResults", { key: 0 }, () => [
|
|
1050
|
+
h("div", ot, [
|
|
1051
|
+
it,
|
|
1052
|
+
h("div", lt, [
|
|
1053
|
+
R(" No results found "),
|
|
1054
|
+
e.$slots.query ? (m(), v(K, { key: 0 }, [
|
|
1055
|
+
R('for "'),
|
|
1056
|
+
b(e.$slots, "query"),
|
|
1057
|
+
R('"')
|
|
1058
|
+
], 64)) : $("", !0)
|
|
867
1059
|
])
|
|
868
1060
|
])
|
|
869
|
-
]) :
|
|
870
|
-
|
|
1061
|
+
]) : $("", !0),
|
|
1062
|
+
b(e.$slots, "default")
|
|
871
1063
|
], 16));
|
|
872
1064
|
}
|
|
873
|
-
}),
|
|
1065
|
+
}), ct = { class: "contents" }, ut = { class: "text-fore-3 group-hover:text-fore-1" }, pt = { class: "flex min-w-0 flex-1 flex-col gap-0.75" }, mt = { class: "flex items-center gap-1" }, gt = { class: "flex-1 truncate text-sm font-medium" }, ft = {
|
|
874
1066
|
key: 0,
|
|
875
1067
|
class: "text-xs text-fore-2"
|
|
876
|
-
},
|
|
1068
|
+
}, ht = { class: "truncate text-xs text-fore-2" }, vt = /* @__PURE__ */ y({
|
|
877
1069
|
inheritAttrs: !1,
|
|
878
1070
|
__name: "ScalarSearchResultItem",
|
|
879
1071
|
props: {
|
|
@@ -881,13 +1073,13 @@ const Ee = ["innerHTML"], it = /* @__PURE__ */ _({
|
|
|
881
1073
|
active: { type: Boolean }
|
|
882
1074
|
},
|
|
883
1075
|
setup(a) {
|
|
884
|
-
const t =
|
|
885
|
-
const { class: e, ...
|
|
886
|
-
return { className: e || "", rest:
|
|
1076
|
+
const t = k(() => {
|
|
1077
|
+
const { class: e, ...r } = O();
|
|
1078
|
+
return { className: e || "", rest: r };
|
|
887
1079
|
});
|
|
888
|
-
return (e,
|
|
889
|
-
|
|
890
|
-
class:
|
|
1080
|
+
return (e, r) => (m(), v("li", ct, [
|
|
1081
|
+
h("a", A(t.value.rest, {
|
|
1082
|
+
class: o(E)(
|
|
891
1083
|
"group flex cursor-pointer gap-3 rounded px-3 py-1.5 no-underline hover:bg-back-2",
|
|
892
1084
|
{
|
|
893
1085
|
"bg-back-2": e.active
|
|
@@ -895,32 +1087,32 @@ const Ee = ["innerHTML"], it = /* @__PURE__ */ _({
|
|
|
895
1087
|
t.value.className
|
|
896
1088
|
)
|
|
897
1089
|
}), [
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
e.icon ? (
|
|
1090
|
+
h("div", ut, [
|
|
1091
|
+
b(e.$slots, "icon", {}, () => [
|
|
1092
|
+
e.icon ? (m(), x(o(V), {
|
|
901
1093
|
key: 0,
|
|
902
1094
|
icon: e.icon,
|
|
903
1095
|
size: "sm"
|
|
904
|
-
}, null, 8, ["icon"])) :
|
|
1096
|
+
}, null, 8, ["icon"])) : $("", !0)
|
|
905
1097
|
])
|
|
906
1098
|
]),
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
1099
|
+
h("div", pt, [
|
|
1100
|
+
h("div", mt, [
|
|
1101
|
+
h("div", gt, [
|
|
1102
|
+
b(e.$slots, "default")
|
|
911
1103
|
]),
|
|
912
|
-
e.$slots.addon ? (
|
|
913
|
-
|
|
914
|
-
])) :
|
|
1104
|
+
e.$slots.addon ? (m(), v("div", ft, [
|
|
1105
|
+
b(e.$slots, "addon")
|
|
1106
|
+
])) : $("", !0)
|
|
915
1107
|
]),
|
|
916
|
-
|
|
917
|
-
|
|
1108
|
+
h("div", ht, [
|
|
1109
|
+
b(e.$slots, "description")
|
|
918
1110
|
])
|
|
919
1111
|
])
|
|
920
1112
|
], 16)
|
|
921
1113
|
]));
|
|
922
1114
|
}
|
|
923
|
-
}),
|
|
1115
|
+
}), bt = { class: "scalar-input-container relative" }, St = ["for"], _t = { class: "icon-slot cursor-pointer text-ghost hover:text-fore-1 !empty:flex !empty:w-7 !empty:items-center !empty:pr-3" }, yt = /* @__PURE__ */ y({
|
|
924
1116
|
__name: "ScalarTextField",
|
|
925
1117
|
props: {
|
|
926
1118
|
modelValue: {},
|
|
@@ -937,7 +1129,7 @@ const Ee = ["innerHTML"], it = /* @__PURE__ */ _({
|
|
|
937
1129
|
},
|
|
938
1130
|
emits: ["submit", "update:modelValue"],
|
|
939
1131
|
setup(a, { emit: t }) {
|
|
940
|
-
const e = a,
|
|
1132
|
+
const e = a, r = t, c = T({
|
|
941
1133
|
base: "scalar-input-wrapper relative flex items-center rounded border border-solid border-border",
|
|
942
1134
|
variants: {
|
|
943
1135
|
focus: {
|
|
@@ -945,97 +1137,102 @@ const Ee = ["innerHTML"], it = /* @__PURE__ */ _({
|
|
|
945
1137
|
},
|
|
946
1138
|
error: { true: "scalar-input-wrapper-error border-error" }
|
|
947
1139
|
}
|
|
948
|
-
}),
|
|
949
|
-
let
|
|
1140
|
+
}), d = O(), s = d.id || `id-${Ae()}`, u = I(), i = I(!1);
|
|
1141
|
+
let g;
|
|
950
1142
|
if (e.isMultiline) {
|
|
951
|
-
const { triggerResize:
|
|
952
|
-
element:
|
|
1143
|
+
const { triggerResize: l } = Ce({
|
|
1144
|
+
element: u,
|
|
953
1145
|
input: e.modelValue
|
|
954
1146
|
});
|
|
955
|
-
|
|
1147
|
+
g = l;
|
|
956
1148
|
}
|
|
957
|
-
function p(
|
|
958
|
-
const
|
|
959
|
-
e.isMultiline &&
|
|
1149
|
+
function p(l) {
|
|
1150
|
+
const w = l.target.value;
|
|
1151
|
+
e.isMultiline && g(), e.handleFieldChange ? e.handleFieldChange(w) : r("update:modelValue", w);
|
|
960
1152
|
}
|
|
961
|
-
function
|
|
962
|
-
const
|
|
963
|
-
e.handleFieldSubmit ? e.handleFieldSubmit(
|
|
1153
|
+
function n(l) {
|
|
1154
|
+
const w = l.target, C = e.disableTrim || e.isMultiline ? w.value : w.value.trim();
|
|
1155
|
+
e.handleFieldSubmit ? e.handleFieldSubmit(C) : r("submit", C);
|
|
964
1156
|
}
|
|
965
|
-
function
|
|
966
|
-
|
|
1157
|
+
function f(l) {
|
|
1158
|
+
i.value = !1, e.emitOnBlur && e.modelValue && n(l);
|
|
967
1159
|
}
|
|
968
|
-
return
|
|
969
|
-
var
|
|
970
|
-
Object.prototype.hasOwnProperty.call(
|
|
971
|
-
}), (
|
|
972
|
-
|
|
973
|
-
class:
|
|
1160
|
+
return q(() => {
|
|
1161
|
+
var l;
|
|
1162
|
+
Object.prototype.hasOwnProperty.call(d, "autofocus") && ((l = u.value) == null || l.focus());
|
|
1163
|
+
}), (l, w) => (m(), v("div", bt, [
|
|
1164
|
+
h("div", {
|
|
1165
|
+
class: S(o(c)({ error: l.error, focus: i.value }))
|
|
974
1166
|
}, [
|
|
975
|
-
(
|
|
1167
|
+
(m(), x(Y(l.isMultiline ? "textarea" : "input"), A({ id: o(s) }, l.$attrs, {
|
|
976
1168
|
ref_key: "input",
|
|
977
|
-
ref:
|
|
1169
|
+
ref: u,
|
|
978
1170
|
class: [
|
|
979
1171
|
"scalar-input",
|
|
980
|
-
|
|
981
|
-
{ "min-h-[77px]":
|
|
1172
|
+
o(E)(
|
|
1173
|
+
{ "min-h-[77px]": l.isMultiline },
|
|
982
1174
|
"z-10 w-full resize-none appearance-none border-0 bg-transparent p-3 text-sm text-fore-1",
|
|
983
1175
|
"outline-none transition-opacity"
|
|
984
1176
|
)
|
|
985
1177
|
],
|
|
986
|
-
placeholder:
|
|
987
|
-
value:
|
|
988
|
-
onBlur:
|
|
989
|
-
onFocus:
|
|
1178
|
+
placeholder: l.placeholder,
|
|
1179
|
+
value: l.modelValue,
|
|
1180
|
+
onBlur: f,
|
|
1181
|
+
onFocus: w[0] || (w[0] = (C) => i.value = !0),
|
|
990
1182
|
onInput: p,
|
|
991
|
-
onKeyup:
|
|
1183
|
+
onKeyup: le(n, ["enter"])
|
|
992
1184
|
}), null, 16, ["id", "class", "placeholder", "value"])),
|
|
993
|
-
|
|
1185
|
+
l.label ? (m(), v("label", {
|
|
994
1186
|
key: 0,
|
|
995
|
-
class:
|
|
996
|
-
|
|
1187
|
+
class: S(
|
|
1188
|
+
o(E)(
|
|
997
1189
|
"scalar-input-label pointer-events-none absolute left-0 top-0 mx-2 my-3 px-1 text-xs",
|
|
998
1190
|
"shadow-current z-10 origin-top-left rounded text-fore-3 transition-transform"
|
|
999
1191
|
)
|
|
1000
1192
|
),
|
|
1001
|
-
for:
|
|
1002
|
-
style:
|
|
1003
|
-
"box-shadow": `0 0 4px 4px ${
|
|
1004
|
-
"background-color":
|
|
1193
|
+
for: o(s),
|
|
1194
|
+
style: J({
|
|
1195
|
+
"box-shadow": `0 0 4px 4px ${l.labelShadowColor}`,
|
|
1196
|
+
"background-color": l.labelShadowColor
|
|
1005
1197
|
})
|
|
1006
|
-
},
|
|
1007
|
-
|
|
1008
|
-
|
|
1198
|
+
}, D(l.label), 15, St)) : $("", !0),
|
|
1199
|
+
h("div", _t, [
|
|
1200
|
+
b(l.$slots, "default", {}, void 0, !0)
|
|
1009
1201
|
])
|
|
1010
1202
|
], 2),
|
|
1011
|
-
|
|
1012
|
-
class:
|
|
1013
|
-
|
|
1203
|
+
h("span", {
|
|
1204
|
+
class: S(
|
|
1205
|
+
o(E)(
|
|
1014
1206
|
"helper-text before:rounded-full mt-1.5 flex items-center text-xs text-error before:font-black",
|
|
1015
1207
|
"before:mr-1.5 before:block before:h-4 before:w-4 before:text-center before:text-xxs before:leading-4",
|
|
1016
1208
|
"before:bg-error before:text-white before:content-['!'] empty:hidden"
|
|
1017
1209
|
)
|
|
1018
1210
|
)
|
|
1019
|
-
},
|
|
1211
|
+
}, D(l.helperText), 3)
|
|
1020
1212
|
]));
|
|
1021
1213
|
}
|
|
1022
|
-
}),
|
|
1214
|
+
}), wt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-4fc2339e"]]), Bt = {
|
|
1023
1215
|
install: (a) => {
|
|
1024
|
-
a.component("ScalarButton",
|
|
1216
|
+
a.component("ScalarButton", Me), a.component("ScalarDropdown", je), 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", nt), a.component("ScalarSearchResultItem", vt), a.component("ScalarSearchResultList", dt), a.component("ScalarTextField", wt);
|
|
1025
1217
|
}
|
|
1026
1218
|
};
|
|
1027
1219
|
export {
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1220
|
+
Me as ScalarButton,
|
|
1221
|
+
Pt as ScalarCodeBlock,
|
|
1222
|
+
je as ScalarDropdown,
|
|
1223
|
+
qe as ScalarDropdownDivider,
|
|
1224
|
+
Ke as ScalarDropdownItem,
|
|
1225
|
+
G as ScalarFloating,
|
|
1226
|
+
V as ScalarIcon,
|
|
1227
|
+
Q as ScalarIconButton,
|
|
1032
1228
|
H as ScalarLoading,
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1229
|
+
et as ScalarModal,
|
|
1230
|
+
at as ScalarPopover,
|
|
1231
|
+
nt as ScalarSearchInput,
|
|
1232
|
+
vt as ScalarSearchResultItem,
|
|
1233
|
+
dt as ScalarSearchResultList,
|
|
1234
|
+
wt as ScalarTextField,
|
|
1235
|
+
Bt as default,
|
|
1236
|
+
Ot as useLoadingState,
|
|
1237
|
+
zt as useModal
|
|
1041
1238
|
};
|