@scalar/components 0.5.1 → 0.5.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/Brackets-BcvH-CzZ.js +21 -0
- package/dist/Brackets-CzpHEZ_D.cjs +1 -0
- package/dist/Branch-CQNB0d00.cjs +1 -0
- package/dist/Branch-H5HxSfdF.js +42 -0
- package/dist/Cookie-Bza3NN_O.js +39 -0
- package/dist/Cookie-CmADtLGF.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +0 -60
- package/dist/index.js +297 -331
- package/package.json +7 -3
- package/src/tailwind/index.ts +1 -0
- package/src/tailwind/tailwind.theme.ts +62 -0
package/dist/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import './main.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { defineConfig as
|
|
4
|
-
import { extendTailwindMerge as
|
|
5
|
-
import { createHash as oe, ssrState as
|
|
6
|
-
import
|
|
7
|
-
import { Dialog as le, DialogPanel as
|
|
8
|
-
import { useTextareaAutosize as
|
|
9
|
-
import { nanoid as
|
|
10
|
-
const
|
|
2
|
+
import { defineComponent as k, useCssVars as K, openBlock as u, createElementBlock as h, normalizeClass as b, unref as l, createElementVNode as v, createCommentVNode as _, createStaticVNode as Y, reactive as j, computed as T, useAttrs as L, mergeProps as x, renderSlot as y, createVNode as D, ref as P, watch as J, nextTick as Z, onServerPrefetch as Q, useSSRContext as ee, onMounted as F, toDisplayString as A, defineAsyncComponent as te, createBlock as N, resolveDynamicComponent as U, withCtx as R, normalizeStyle as W, createTextVNode as C, Fragment as ae, withKeys as re } from "vue";
|
|
3
|
+
import { defineConfig as se } from "cva";
|
|
4
|
+
import { extendTailwindMerge as ne } from "tailwind-merge";
|
|
5
|
+
import { createHash as oe, ssrState as ie } from "@scalar/oas-utils";
|
|
6
|
+
import I from "prismjs";
|
|
7
|
+
import { Dialog as le, DialogPanel as ce, DialogTitle as de, DialogDescription as ue } from "@headlessui/vue";
|
|
8
|
+
import { useTextareaAutosize as pe } from "@vueuse/core";
|
|
9
|
+
import { nanoid as me } from "nanoid";
|
|
10
|
+
const z = "scalar-component", ge = ne({
|
|
11
11
|
extend: {
|
|
12
12
|
classGroups: {
|
|
13
13
|
// Add the scalar class prefix as a custom class to be deduped by tailwind-merge
|
|
14
|
-
[
|
|
14
|
+
[z]: [z]
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
}), { cva: $, cx:
|
|
17
|
+
}), { cva: $, cx: w, compose: nt } = se({
|
|
18
18
|
hooks: {
|
|
19
|
-
onComplete: (
|
|
19
|
+
onComplete: (a) => `${ge(a, z)}`
|
|
20
20
|
}
|
|
21
|
-
}),
|
|
21
|
+
}), fe = /* @__PURE__ */ Y('<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), he = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "circular-loader"
|
|
24
24
|
};
|
|
25
|
-
function
|
|
26
|
-
return
|
|
25
|
+
function ot() {
|
|
26
|
+
return j({
|
|
27
27
|
isValid: !1,
|
|
28
28
|
isInvalid: !1,
|
|
29
29
|
isLoading: !1,
|
|
@@ -33,56 +33,56 @@ function sa() {
|
|
|
33
33
|
stopLoading() {
|
|
34
34
|
this.isLoading = !1;
|
|
35
35
|
},
|
|
36
|
-
validate(
|
|
36
|
+
validate(a = 800) {
|
|
37
37
|
this.isValid = !0;
|
|
38
|
-
const
|
|
38
|
+
const t = a - 300;
|
|
39
39
|
return new Promise(
|
|
40
|
-
(e) => setTimeout(() => this.clear().then(() => e(!0)),
|
|
40
|
+
(e) => setTimeout(() => this.clear().then(() => e(!0)), t)
|
|
41
41
|
);
|
|
42
42
|
},
|
|
43
|
-
invalidate(
|
|
43
|
+
invalidate(a = 1100) {
|
|
44
44
|
this.isInvalid = !0;
|
|
45
|
-
const
|
|
45
|
+
const t = a - 300;
|
|
46
46
|
return new Promise(
|
|
47
|
-
(e) => setTimeout(() => this.clear().then(() => e(!0)),
|
|
47
|
+
(e) => setTimeout(() => this.clear().then(() => e(!0)), t)
|
|
48
48
|
);
|
|
49
49
|
},
|
|
50
|
-
clear(
|
|
51
|
-
return this.isValid = !1, this.isInvalid = !1, this.isLoading = !1, new Promise((
|
|
50
|
+
clear(a = 300) {
|
|
51
|
+
return this.isValid = !1, this.isInvalid = !1, this.isLoading = !1, new Promise((t) => {
|
|
52
52
|
setTimeout(() => {
|
|
53
|
-
|
|
54
|
-
},
|
|
53
|
+
t(!0);
|
|
54
|
+
}, a);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
const
|
|
59
|
+
const ve = /* @__PURE__ */ k({
|
|
60
60
|
__name: "ScalarLoading",
|
|
61
61
|
props: {
|
|
62
62
|
loadingState: {},
|
|
63
63
|
size: { default: "24px" }
|
|
64
64
|
},
|
|
65
|
-
setup(
|
|
66
|
-
return
|
|
67
|
-
d6cae758:
|
|
68
|
-
})), (
|
|
65
|
+
setup(a) {
|
|
66
|
+
return K((t) => ({
|
|
67
|
+
d6cae758: t.size
|
|
68
|
+
})), (t, e) => t.loadingState ? (u(), h("div", {
|
|
69
69
|
key: 0,
|
|
70
|
-
class: b(
|
|
70
|
+
class: b(l(w)("loader-wrapper"))
|
|
71
71
|
}, [
|
|
72
|
-
(u(),
|
|
72
|
+
(u(), h("svg", {
|
|
73
73
|
class: b(["svg-loader", {
|
|
74
|
-
"icon-is-valid":
|
|
75
|
-
"icon-is-invalid":
|
|
74
|
+
"icon-is-valid": t.loadingState.isValid,
|
|
75
|
+
"icon-is-invalid": t.loadingState.isInvalid
|
|
76
76
|
}]),
|
|
77
77
|
viewBox: "0 0 100 100",
|
|
78
78
|
xmlns: "http://www.w3.org/2000/svg",
|
|
79
79
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
80
80
|
}, [
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
fe,
|
|
82
|
+
t.loadingState.isLoading ? (u(), h("g", he, [
|
|
83
83
|
v("circle", {
|
|
84
84
|
class: b(["loader-path", {
|
|
85
|
-
"loader-path-off":
|
|
85
|
+
"loader-path-off": t.loadingState.isValid || t.loadingState.isInvalid
|
|
86
86
|
}]),
|
|
87
87
|
cx: "50",
|
|
88
88
|
cy: "50",
|
|
@@ -90,16 +90,16 @@ const fe = /* @__PURE__ */ _({
|
|
|
90
90
|
r: "20",
|
|
91
91
|
"stroke-width": "2"
|
|
92
92
|
}, null, 2)
|
|
93
|
-
])) :
|
|
93
|
+
])) : _("", !0)
|
|
94
94
|
], 2))
|
|
95
|
-
], 2)) :
|
|
95
|
+
], 2)) : _("", !0);
|
|
96
96
|
}
|
|
97
|
-
}),
|
|
98
|
-
const e =
|
|
99
|
-
for (const [
|
|
100
|
-
e[
|
|
97
|
+
}), B = (a, t) => {
|
|
98
|
+
const e = a.__vccOpts || a;
|
|
99
|
+
for (const [n, f] of t)
|
|
100
|
+
e[n] = f;
|
|
101
101
|
return e;
|
|
102
|
-
}, H = /* @__PURE__ */
|
|
102
|
+
}, H = /* @__PURE__ */ B(ve, [["__scopeId", "data-v-47faceda"]]), X = {
|
|
103
103
|
solid: [
|
|
104
104
|
"scalar-button-solid",
|
|
105
105
|
"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 +116,7 @@ const fe = /* @__PURE__ */ _({
|
|
|
116
116
|
"scalar-button-danger",
|
|
117
117
|
"bg-error text-white active:brightness-90 hocus:brightness-90"
|
|
118
118
|
]
|
|
119
|
-
},
|
|
119
|
+
}, be = $({
|
|
120
120
|
base: "scalar-button row cursor-pointer items-center justify-center rounded font-medium",
|
|
121
121
|
variants: {
|
|
122
122
|
disabled: {
|
|
@@ -124,7 +124,7 @@ const fe = /* @__PURE__ */ _({
|
|
|
124
124
|
},
|
|
125
125
|
fullWidth: { true: "w-full" },
|
|
126
126
|
size: { md: "h-10 px-6 text-sm" },
|
|
127
|
-
variant:
|
|
127
|
+
variant: X
|
|
128
128
|
},
|
|
129
129
|
compoundVariants: [
|
|
130
130
|
{
|
|
@@ -133,13 +133,13 @@ const fe = /* @__PURE__ */ _({
|
|
|
133
133
|
class: "bg-transparent text-ghost"
|
|
134
134
|
}
|
|
135
135
|
]
|
|
136
|
-
}),
|
|
136
|
+
}), Se = ["ariaDisabled"], ye = {
|
|
137
137
|
key: 0,
|
|
138
138
|
class: "mr-2 h-4 w-4"
|
|
139
139
|
}, we = {
|
|
140
140
|
key: 1,
|
|
141
141
|
class: "ml-2"
|
|
142
|
-
},
|
|
142
|
+
}, _e = /* @__PURE__ */ k({
|
|
143
143
|
inheritAttrs: !1,
|
|
144
144
|
__name: "ScalarButton",
|
|
145
145
|
props: {
|
|
@@ -149,45 +149,45 @@ const fe = /* @__PURE__ */ _({
|
|
|
149
149
|
size: { default: "md" },
|
|
150
150
|
variant: { default: "solid" }
|
|
151
151
|
},
|
|
152
|
-
setup(
|
|
153
|
-
const
|
|
154
|
-
const { class: e, ...
|
|
155
|
-
return { className: e || "", rest:
|
|
152
|
+
setup(a) {
|
|
153
|
+
const t = T(() => {
|
|
154
|
+
const { class: e, ...n } = L();
|
|
155
|
+
return { className: e || "", rest: n };
|
|
156
156
|
});
|
|
157
|
-
return (e,
|
|
157
|
+
return (e, n) => (u(), h("button", x(t.value.rest, {
|
|
158
158
|
ariaDisabled: e.disabled || void 0,
|
|
159
|
-
class:
|
|
160
|
-
|
|
159
|
+
class: l(w)(
|
|
160
|
+
l(be)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
|
|
161
161
|
{ "pl-9 pr-3": e.loading },
|
|
162
|
-
`${
|
|
162
|
+
`${t.value.className}`
|
|
163
163
|
),
|
|
164
164
|
type: "button"
|
|
165
165
|
}), [
|
|
166
|
-
e.$slots.icon ? (u(),
|
|
167
|
-
|
|
168
|
-
])) :
|
|
169
|
-
|
|
170
|
-
e.loading ? (u(),
|
|
171
|
-
|
|
166
|
+
e.$slots.icon ? (u(), h("div", ye, [
|
|
167
|
+
y(e.$slots, "icon")
|
|
168
|
+
])) : _("", !0),
|
|
169
|
+
y(e.$slots, "default"),
|
|
170
|
+
e.loading ? (u(), h("div", we, [
|
|
171
|
+
D(l(H), {
|
|
172
172
|
loadingState: e.loading,
|
|
173
173
|
size: "20px"
|
|
174
174
|
}, null, 8, ["loadingState"])
|
|
175
|
-
])) :
|
|
176
|
-
], 16,
|
|
175
|
+
])) : _("", !0)
|
|
176
|
+
], 16, Se));
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
|
-
(function(
|
|
180
|
-
var
|
|
179
|
+
(function(a) {
|
|
180
|
+
var t = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", e = {
|
|
181
181
|
pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
|
|
182
182
|
lookbehind: !0,
|
|
183
183
|
alias: "punctuation",
|
|
184
184
|
// this looks reasonably well in all themes
|
|
185
185
|
inside: null
|
|
186
186
|
// see below
|
|
187
|
-
},
|
|
187
|
+
}, n = {
|
|
188
188
|
bash: e,
|
|
189
189
|
environment: {
|
|
190
|
-
pattern: RegExp("\\$" +
|
|
190
|
+
pattern: RegExp("\\$" + t),
|
|
191
191
|
alias: "constant"
|
|
192
192
|
},
|
|
193
193
|
variable: [
|
|
@@ -227,7 +227,7 @@ const fe = /* @__PURE__ */ _({
|
|
|
227
227
|
operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
|
|
228
228
|
punctuation: /[\[\]]/,
|
|
229
229
|
environment: {
|
|
230
|
-
pattern: RegExp("(\\{)" +
|
|
230
|
+
pattern: RegExp("(\\{)" + t),
|
|
231
231
|
lookbehind: !0,
|
|
232
232
|
alias: "constant"
|
|
233
233
|
}
|
|
@@ -238,7 +238,7 @@ const fe = /* @__PURE__ */ _({
|
|
|
238
238
|
// Escape sequences from echo and printf's manuals, and escaped quotes.
|
|
239
239
|
entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
|
|
240
240
|
};
|
|
241
|
-
|
|
241
|
+
a.languages.bash = {
|
|
242
242
|
shebang: {
|
|
243
243
|
pattern: /^#!\s*\/.*/,
|
|
244
244
|
alias: "important"
|
|
@@ -276,7 +276,7 @@ const fe = /* @__PURE__ */ _({
|
|
|
276
276
|
pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
|
|
277
277
|
inside: {
|
|
278
278
|
environment: {
|
|
279
|
-
pattern: RegExp("(^|[\\s;|&]|[<>]\\()" +
|
|
279
|
+
pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + t),
|
|
280
280
|
lookbehind: !0,
|
|
281
281
|
alias: "constant"
|
|
282
282
|
}
|
|
@@ -296,7 +296,7 @@ const fe = /* @__PURE__ */ _({
|
|
|
296
296
|
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
297
297
|
lookbehind: !0,
|
|
298
298
|
greedy: !0,
|
|
299
|
-
inside:
|
|
299
|
+
inside: n
|
|
300
300
|
},
|
|
301
301
|
// Here-document with quotes around the tag
|
|
302
302
|
// → No expansion (so no “inside”).
|
|
@@ -314,7 +314,7 @@ const fe = /* @__PURE__ */ _({
|
|
|
314
314
|
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
315
315
|
lookbehind: !0,
|
|
316
316
|
greedy: !0,
|
|
317
|
-
inside:
|
|
317
|
+
inside: n
|
|
318
318
|
},
|
|
319
319
|
{
|
|
320
320
|
// https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
|
|
@@ -327,15 +327,15 @@ const fe = /* @__PURE__ */ _({
|
|
|
327
327
|
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
328
328
|
greedy: !0,
|
|
329
329
|
inside: {
|
|
330
|
-
entity:
|
|
330
|
+
entity: n.entity
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
],
|
|
334
334
|
environment: {
|
|
335
|
-
pattern: RegExp("\\$?" +
|
|
335
|
+
pattern: RegExp("\\$?" + t),
|
|
336
336
|
alias: "constant"
|
|
337
337
|
},
|
|
338
|
-
variable:
|
|
338
|
+
variable: n.variable,
|
|
339
339
|
function: {
|
|
340
340
|
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
341
|
lookbehind: !0
|
|
@@ -374,8 +374,8 @@ const fe = /* @__PURE__ */ _({
|
|
|
374
374
|
pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
|
|
375
375
|
lookbehind: !0
|
|
376
376
|
}
|
|
377
|
-
}, e.inside =
|
|
378
|
-
for (var
|
|
377
|
+
}, e.inside = a.languages.bash;
|
|
378
|
+
for (var f = [
|
|
379
379
|
"comment",
|
|
380
380
|
"function-name",
|
|
381
381
|
"for-or-select",
|
|
@@ -391,9 +391,9 @@ const fe = /* @__PURE__ */ _({
|
|
|
391
391
|
"operator",
|
|
392
392
|
"punctuation",
|
|
393
393
|
"number"
|
|
394
|
-
], g =
|
|
395
|
-
g[
|
|
396
|
-
|
|
394
|
+
], g = n.variable[1].inside, r = 0; r < f.length; r++)
|
|
395
|
+
g[f[r]] = a.languages.bash[f[r]];
|
|
396
|
+
a.languages.sh = a.languages.bash, a.languages.shell = a.languages.bash;
|
|
397
397
|
})(Prism);
|
|
398
398
|
Prism.languages.json = {
|
|
399
399
|
property: {
|
|
@@ -423,7 +423,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
423
423
|
(function() {
|
|
424
424
|
if (typeof Prism > "u" || typeof document > "u")
|
|
425
425
|
return;
|
|
426
|
-
var
|
|
426
|
+
var a = "line-numbers", t = /\n(?!$)/g, e = Prism.plugins.lineNumbers = {
|
|
427
427
|
/**
|
|
428
428
|
* Get node for provided line number
|
|
429
429
|
*
|
|
@@ -432,7 +432,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
432
432
|
* @returns {Element|undefined}
|
|
433
433
|
*/
|
|
434
434
|
getLine: function(r, c) {
|
|
435
|
-
if (!(r.tagName !== "PRE" || !r.classList.contains(
|
|
435
|
+
if (!(r.tagName !== "PRE" || !r.classList.contains(a))) {
|
|
436
436
|
var o = r.querySelector(".line-numbers-rows");
|
|
437
437
|
if (o) {
|
|
438
438
|
var d = parseInt(r.getAttribute("data-start"), 10) || 1, p = d + (o.children.length - 1);
|
|
@@ -451,7 +451,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
451
451
|
* @returns {void}
|
|
452
452
|
*/
|
|
453
453
|
resize: function(r) {
|
|
454
|
-
|
|
454
|
+
n([r]);
|
|
455
455
|
},
|
|
456
456
|
/**
|
|
457
457
|
* Whether the plugin can assume that the units font sizes and margins are not depended on the size of
|
|
@@ -465,32 +465,32 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
465
465
|
*/
|
|
466
466
|
assumeViewportIndependence: !0
|
|
467
467
|
};
|
|
468
|
-
function
|
|
468
|
+
function n(r) {
|
|
469
469
|
if (r = r.filter(function(o) {
|
|
470
|
-
var d =
|
|
470
|
+
var d = f(o), p = d["white-space"];
|
|
471
471
|
return p === "pre-wrap" || p === "pre-line";
|
|
472
472
|
}), r.length != 0) {
|
|
473
473
|
var c = r.map(function(o) {
|
|
474
474
|
var d = o.querySelector("code"), p = o.querySelector(".line-numbers-rows");
|
|
475
475
|
if (!(!d || !p)) {
|
|
476
|
-
var s = o.querySelector(".line-numbers-sizer"), m = d.textContent.split(
|
|
476
|
+
var s = o.querySelector(".line-numbers-sizer"), m = d.textContent.split(t);
|
|
477
477
|
s || (s = document.createElement("span"), s.className = "line-numbers-sizer", d.appendChild(s)), s.innerHTML = "0", s.style.display = "block";
|
|
478
|
-
var
|
|
478
|
+
var i = s.getBoundingClientRect().height;
|
|
479
479
|
return s.innerHTML = "", {
|
|
480
480
|
element: o,
|
|
481
481
|
lines: m,
|
|
482
482
|
lineHeights: [],
|
|
483
|
-
oneLinerHeight:
|
|
483
|
+
oneLinerHeight: i,
|
|
484
484
|
sizer: s
|
|
485
485
|
};
|
|
486
486
|
}
|
|
487
487
|
}).filter(Boolean);
|
|
488
488
|
c.forEach(function(o) {
|
|
489
489
|
var d = o.sizer, p = o.lines, s = o.lineHeights, m = o.oneLinerHeight;
|
|
490
|
-
s[p.length - 1] = void 0, p.forEach(function(
|
|
491
|
-
if (
|
|
490
|
+
s[p.length - 1] = void 0, p.forEach(function(i, S) {
|
|
491
|
+
if (i && i.length > 1) {
|
|
492
492
|
var E = d.appendChild(document.createElement("span"));
|
|
493
|
-
E.style.display = "block", E.textContent =
|
|
493
|
+
E.style.display = "block", E.textContent = i;
|
|
494
494
|
} else
|
|
495
495
|
s[S] = m;
|
|
496
496
|
});
|
|
@@ -505,12 +505,12 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
505
505
|
});
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function f(r) {
|
|
509
509
|
return r ? window.getComputedStyle ? getComputedStyle(r) : r.currentStyle || null : null;
|
|
510
510
|
}
|
|
511
511
|
var g = void 0;
|
|
512
512
|
window.addEventListener("resize", function() {
|
|
513
|
-
e.assumeViewportIndependence && g === window.innerWidth || (g = window.innerWidth,
|
|
513
|
+
e.assumeViewportIndependence && g === window.innerWidth || (g = window.innerWidth, n(Array.prototype.slice.call(document.querySelectorAll("pre." + a))));
|
|
514
514
|
}), Prism.hooks.add("complete", function(r) {
|
|
515
515
|
if (r.code) {
|
|
516
516
|
var c = (
|
|
@@ -520,17 +520,43 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
520
520
|
/** @type {HTMLElement} */
|
|
521
521
|
c.parentNode
|
|
522
522
|
);
|
|
523
|
-
if (!(!o || !/pre/i.test(o.nodeName)) && !c.querySelector(".line-numbers-rows") && Prism.util.isActive(c,
|
|
524
|
-
c.classList.remove(
|
|
525
|
-
var d = r.code.match(
|
|
526
|
-
s = document.createElement("span"), s.setAttribute("aria-hidden", "true"), s.className = "line-numbers-rows", s.innerHTML = m, o.hasAttribute("data-start") && (o.style.counterReset = "linenumber " + (parseInt(o.getAttribute("data-start"), 10) - 1)), r.element.appendChild(s),
|
|
523
|
+
if (!(!o || !/pre/i.test(o.nodeName)) && !c.querySelector(".line-numbers-rows") && Prism.util.isActive(c, a)) {
|
|
524
|
+
c.classList.remove(a), o.classList.add(a);
|
|
525
|
+
var d = r.code.match(t), p = d ? d.length + 1 : 1, s, m = new Array(p + 1).join("<span></span>");
|
|
526
|
+
s = document.createElement("span"), s.setAttribute("aria-hidden", "true"), s.className = "line-numbers-rows", s.innerHTML = m, o.hasAttribute("data-start") && (o.style.counterReset = "linenumber " + (parseInt(o.getAttribute("data-start"), 10) - 1)), r.element.appendChild(s), n([o]), Prism.hooks.run("line-numbers", r);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
}), Prism.hooks.add("line-numbers", function(r) {
|
|
530
530
|
r.plugins = r.plugins || {}, r.plugins.lineNumbers = !0;
|
|
531
531
|
});
|
|
532
532
|
})();
|
|
533
|
-
|
|
533
|
+
function ke(a) {
|
|
534
|
+
const t = /* @__PURE__ */ new Set();
|
|
535
|
+
return JSON.stringify(
|
|
536
|
+
a,
|
|
537
|
+
(e, n) => {
|
|
538
|
+
if (typeof n == "object" && n !== null) {
|
|
539
|
+
if (t.has(n))
|
|
540
|
+
return "[Circular]";
|
|
541
|
+
t.add(n);
|
|
542
|
+
}
|
|
543
|
+
return n;
|
|
544
|
+
},
|
|
545
|
+
2
|
|
546
|
+
);
|
|
547
|
+
}
|
|
548
|
+
function O(a) {
|
|
549
|
+
if (typeof a == "string")
|
|
550
|
+
return a;
|
|
551
|
+
if (typeof a == "object")
|
|
552
|
+
try {
|
|
553
|
+
return JSON.stringify(a, null, 2);
|
|
554
|
+
} catch {
|
|
555
|
+
return ke(a);
|
|
556
|
+
}
|
|
557
|
+
return a;
|
|
558
|
+
}
|
|
559
|
+
const Ee = ["innerHTML"], it = /* @__PURE__ */ k({
|
|
534
560
|
__name: "ScalarCodeBlock",
|
|
535
561
|
props: {
|
|
536
562
|
content: {},
|
|
@@ -538,54 +564,52 @@ const ke = ["innerHTML"], oa = /* @__PURE__ */ _({
|
|
|
538
564
|
lineNumbers: { type: Boolean, default: !1 },
|
|
539
565
|
hideCredentials: {}
|
|
540
566
|
},
|
|
541
|
-
setup(
|
|
542
|
-
const a = t, e =
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
a.hideCredentials && x.hooks.add("wrap", function(s) {
|
|
546
|
-
if (!a.hideCredentials)
|
|
567
|
+
setup(a) {
|
|
568
|
+
const t = a, e = oe(O(t.content)), n = `components-scalar-code-block${e}`, { plugins: f, highlightElement: g } = I;
|
|
569
|
+
t.hideCredentials && I.hooks.add("wrap", function(s) {
|
|
570
|
+
if (!t.hideCredentials)
|
|
547
571
|
return;
|
|
548
572
|
let m = !1;
|
|
549
|
-
typeof
|
|
550
|
-
(
|
|
573
|
+
typeof t.hideCredentials == "string" ? s.content.includes(t.hideCredentials) && (m = !0) : Array.isArray(t.hideCredentials) && (m = t.hideCredentials.some(
|
|
574
|
+
(i) => s.content.includes(i)
|
|
551
575
|
)), m && (s.content = s.content.replace(
|
|
552
576
|
/<span class="credentials">.*?<\/span>/g,
|
|
553
|
-
(
|
|
577
|
+
(i) => i.replace(/<span class="credentials">|<\/span>/g, "")
|
|
554
578
|
), s.content = s.content.replace(
|
|
555
579
|
new RegExp(
|
|
556
|
-
typeof
|
|
580
|
+
typeof t.hideCredentials == "string" ? t.hideCredentials : t.hideCredentials.join("|"),
|
|
557
581
|
"g"
|
|
558
582
|
),
|
|
559
|
-
(
|
|
583
|
+
(i) => `<span class="credentials">${i}</span>`
|
|
560
584
|
));
|
|
561
585
|
});
|
|
562
|
-
const r =
|
|
563
|
-
|
|
564
|
-
[() =>
|
|
586
|
+
const r = P(null), c = P(ie[n] ?? ""), o = T(() => t.lang === "node" ? "js" : t.lang), d = t.lang;
|
|
587
|
+
J(
|
|
588
|
+
[() => t.lang, () => t.content, r],
|
|
565
589
|
() => {
|
|
566
|
-
r.value &&
|
|
590
|
+
r.value && t.content && (!c.value || t.lang !== d) && (c.value = "", Z(() => g(r.value)));
|
|
567
591
|
},
|
|
568
592
|
{ immediate: !0 }
|
|
569
593
|
);
|
|
570
594
|
const p = /\n(?!$)/g;
|
|
571
|
-
return
|
|
595
|
+
return Q(async () => {
|
|
572
596
|
let s = "";
|
|
573
|
-
|
|
574
|
-
const S =
|
|
597
|
+
t.lineNumbers && I.hooks.add("after-tokenize", (i) => {
|
|
598
|
+
const S = i.code.match(p), E = S ? S.length + 1 : 1;
|
|
575
599
|
s = `<span aria-hidden="true" class="line-numbers-rows">${new Array(E + 1).join("<span></span>")}</span>`;
|
|
576
600
|
});
|
|
577
|
-
const m =
|
|
578
|
-
|
|
579
|
-
|
|
601
|
+
const m = I.highlight(
|
|
602
|
+
O(t.content),
|
|
603
|
+
I.languages[o.value],
|
|
580
604
|
o.value
|
|
581
605
|
);
|
|
582
606
|
if (c.value = m + s, e !== 0) {
|
|
583
|
-
const
|
|
584
|
-
|
|
607
|
+
const i = ee();
|
|
608
|
+
i.payload.data[n] = m + s;
|
|
585
609
|
}
|
|
586
610
|
}), F(async () => {
|
|
587
|
-
await import("./prism-autoloader-Dlh8Vzlw.js"),
|
|
588
|
-
}), (s, m) => (u(),
|
|
611
|
+
await import("./prism-autoloader-Dlh8Vzlw.js"), f.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/";
|
|
612
|
+
}), (s, m) => (u(), h("pre", {
|
|
589
613
|
class: b([
|
|
590
614
|
`scalar-component scalar-codeblock-pre language-${o.value}`,
|
|
591
615
|
{
|
|
@@ -593,29 +617,29 @@ const ke = ["innerHTML"], oa = /* @__PURE__ */ _({
|
|
|
593
617
|
}
|
|
594
618
|
])
|
|
595
619
|
}, [
|
|
596
|
-
c.value ? (u(),
|
|
620
|
+
c.value ? (u(), h("code", {
|
|
597
621
|
key: 0,
|
|
598
622
|
class: b(`scalar-codeblock-code language-${o.value}`),
|
|
599
|
-
innerHTML: c.value
|
|
600
|
-
}, null, 10,
|
|
623
|
+
innerHTML: l(O)(c.value)
|
|
624
|
+
}, null, 10, Ee)) : (u(), h("code", {
|
|
601
625
|
key: 1,
|
|
602
626
|
ref_key: "el",
|
|
603
627
|
ref: r,
|
|
604
628
|
class: b(`scalar-codeblock-code language-${o.value}`)
|
|
605
|
-
}, A(s.content), 3))
|
|
629
|
+
}, A(l(O)(s.content)), 3))
|
|
606
630
|
], 2));
|
|
607
631
|
}
|
|
608
|
-
}),
|
|
609
|
-
const
|
|
610
|
-
return
|
|
611
|
-
},
|
|
632
|
+
}), G = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-MwmVL5-v.js"), "./Brackets.svg": () => import("./Brackets-BcvH-CzZ.js"), "./Branch.svg": () => import("./Branch-H5HxSfdF.js"), "./CheckMark.svg": () => import("./CheckMark-t0gl4N9U.js"), "./ChevronDown.svg": () => import("./ChevronDown-BfsntkAH.js"), "./ChevronLeft.svg": () => import("./ChevronLeft-gsLd5xOQ.js"), "./ChevronRight.svg": () => import("./ChevronRight-CI_7n_av.js"), "./ChevronUp.svg": () => import("./ChevronUp-CjHRmG59.js"), "./Clipboard.svg": () => import("./Clipboard-CU_KxGEv.js"), "./Close.svg": () => import("./Close-DFM1qMQH.js"), "./CodeFolder.svg": () => import("./CodeFolder-Cf9f6-KB.js"), "./Cookie.svg": () => import("./Cookie-Bza3NN_O.js"), "./DarkMode.svg": () => import("./DarkMode-CBsV8Q_I.js"), "./DocsPage.svg": () => import("./DocsPage-Do-Ol9Hb.js"), "./Ellipses.svg": () => import("./Ellipses-Bo_X36Hx.js"), "./ExternalLink.svg": () => import("./ExternalLink-D5zCsWas.js"), "./GitHub.svg": () => import("./GitHub-NdE6Zs9k.js"), "./JsonObject.svg": () => import("./JsonObject-BvFDNssB.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-DFi9Laso.js"), "./PaperAirplane.svg": () => import("./PaperAirplane-BC-4mGEB.js"), "./Search.svg": () => import("./Search-DqtlswRG.js"), "./Terminal.svg": () => import("./Terminal-CKp--su5.js"), "./arrow-chevron-down.svg": () => import("./arrow-chevron-down-C8nXK33Q.js"), "./arrow-chevron-left.svg": () => import("./arrow-chevron-left-BXUhHSEc.js"), "./arrow-chevron-right.svg": () => import("./arrow-chevron-right-CSqjaNKG.js"), "./arrow-chevron-up.svg": () => import("./arrow-chevron-up-Dr-W1IfM.js"), "./arrow-down.svg": () => import("./arrow-down-rfW-r_qd.js"), "./arrow-left.svg": () => import("./arrow-left-DDkHt-xN.js"), "./arrow-right.svg": () => import("./arrow-right-17dZkGZR.js"), "./arrow-up.svg": () => import("./arrow-up-CexG2Ble.js"), "./brand-software-development-github.svg": () => import("./brand-software-development-github-ZQnPxpDg.js"), "./interface-add.svg": () => import("./interface-add-Bthe4y9O.js"), "./interface-close.svg": () => import("./interface-close-WpJOu-2h.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") }), V = (a) => {
|
|
633
|
+
const t = `./${a}.svg`;
|
|
634
|
+
return G[t] ? te(G[t]) : (console.warn(`Could not find icon: ${a}`), null);
|
|
635
|
+
}, Ne = ["src"], M = /* @__PURE__ */ k({
|
|
612
636
|
__name: "ScalarIcon",
|
|
613
637
|
props: {
|
|
614
638
|
icon: {},
|
|
615
639
|
size: {}
|
|
616
640
|
},
|
|
617
|
-
setup(
|
|
618
|
-
const
|
|
641
|
+
setup(a) {
|
|
642
|
+
const t = a, e = $({
|
|
619
643
|
variants: {
|
|
620
644
|
size: {
|
|
621
645
|
xs: "h-3 w-3",
|
|
@@ -629,16 +653,16 @@ const ke = ["innerHTML"], oa = /* @__PURE__ */ _({
|
|
|
629
653
|
defaultVariants: {
|
|
630
654
|
size: "full"
|
|
631
655
|
}
|
|
632
|
-
}),
|
|
633
|
-
return (
|
|
656
|
+
}), n = V(t.icon);
|
|
657
|
+
return (f, g) => l(n) ? (u(), N(U(l(V)(f.icon)), {
|
|
634
658
|
key: 0,
|
|
635
|
-
class: b(
|
|
636
|
-
}, null, 8, ["class"])) : (u(),
|
|
659
|
+
class: b(l(w)("scalar-icon", l(e)({ size: f.size })))
|
|
660
|
+
}, null, 8, ["class"])) : (u(), h("img", {
|
|
637
661
|
key: 1,
|
|
638
|
-
src:
|
|
639
|
-
}, null, 8,
|
|
662
|
+
src: f.icon
|
|
663
|
+
}, null, 8, Ne));
|
|
640
664
|
}
|
|
641
|
-
}),
|
|
665
|
+
}), Ie = ["ariaDisabled"], Ce = { class: "sr-only" }, q = /* @__PURE__ */ k({
|
|
642
666
|
__name: "ScalarIconButton",
|
|
643
667
|
props: {
|
|
644
668
|
label: {},
|
|
@@ -647,8 +671,8 @@ const ke = ["innerHTML"], oa = /* @__PURE__ */ _({
|
|
|
647
671
|
variant: { default: "ghost" },
|
|
648
672
|
size: { default: "md" }
|
|
649
673
|
},
|
|
650
|
-
setup(
|
|
651
|
-
const
|
|
674
|
+
setup(a) {
|
|
675
|
+
const t = $({
|
|
652
676
|
base: "scalar-icon-button grid aspect-square cursor-pointer rounded",
|
|
653
677
|
variants: {
|
|
654
678
|
size: {
|
|
@@ -660,19 +684,19 @@ const ke = ["innerHTML"], oa = /* @__PURE__ */ _({
|
|
|
660
684
|
disabled: {
|
|
661
685
|
true: "cursor-not-allowed shadow-none"
|
|
662
686
|
},
|
|
663
|
-
variant:
|
|
687
|
+
variant: X
|
|
664
688
|
}
|
|
665
689
|
});
|
|
666
|
-
return (e,
|
|
690
|
+
return (e, n) => (u(), h("button", {
|
|
667
691
|
ariaDisabled: e.disabled || void 0,
|
|
668
|
-
class: b(
|
|
692
|
+
class: b(l(w)(l(t)({ size: e.size, variant: e.variant, disabled: e.disabled }))),
|
|
669
693
|
type: "button"
|
|
670
694
|
}, [
|
|
671
|
-
|
|
672
|
-
v("span",
|
|
673
|
-
], 10,
|
|
695
|
+
D(l(M), { icon: e.icon }, null, 8, ["icon"]),
|
|
696
|
+
v("span", Ce, A(e.label), 1)
|
|
697
|
+
], 10, Ie));
|
|
674
698
|
}
|
|
675
|
-
}),
|
|
699
|
+
}), lt = () => j({
|
|
676
700
|
open: !1,
|
|
677
701
|
show() {
|
|
678
702
|
this.open = !0;
|
|
@@ -680,7 +704,7 @@ const ke = ["innerHTML"], oa = /* @__PURE__ */ _({
|
|
|
680
704
|
hide() {
|
|
681
705
|
this.open = !1;
|
|
682
706
|
}
|
|
683
|
-
}),
|
|
707
|
+
}), Ae = /* @__PURE__ */ k({
|
|
684
708
|
__name: "ScalarModal",
|
|
685
709
|
props: {
|
|
686
710
|
state: {},
|
|
@@ -690,8 +714,8 @@ const ke = ["innerHTML"], oa = /* @__PURE__ */ _({
|
|
|
690
714
|
size: { default: "md" },
|
|
691
715
|
variant: {}
|
|
692
716
|
},
|
|
693
|
-
setup(
|
|
694
|
-
const
|
|
717
|
+
setup(a) {
|
|
718
|
+
const t = $({
|
|
695
719
|
base: [
|
|
696
720
|
"scalar-modal",
|
|
697
721
|
"col leading-snug relative mx-auto mb-0 mt-20 w-full rounded-lg bg-back-2 text-left text-fore-1 opacity-0"
|
|
@@ -709,38 +733,38 @@ const ke = ["innerHTML"], oa = /* @__PURE__ */ _({
|
|
|
709
733
|
}
|
|
710
734
|
}
|
|
711
735
|
});
|
|
712
|
-
return (e,
|
|
736
|
+
return (e, n) => (u(), N(l(le), {
|
|
713
737
|
open: e.state.open,
|
|
714
|
-
onClose:
|
|
738
|
+
onClose: n[0] || (n[0] = (f) => e.state.hide())
|
|
715
739
|
}, {
|
|
716
740
|
default: R(() => [
|
|
717
741
|
v("div", {
|
|
718
742
|
class: b(
|
|
719
|
-
|
|
743
|
+
l(w)(
|
|
720
744
|
"scalar-modal-layout fixed left-0 top-0",
|
|
721
745
|
"z-[1001] h-[100dvh] w-[100dvw]",
|
|
722
746
|
"bg-backdrop p-5 opacity-0"
|
|
723
747
|
)
|
|
724
748
|
)
|
|
725
749
|
}, [
|
|
726
|
-
|
|
727
|
-
class: b(
|
|
728
|
-
style:
|
|
750
|
+
D(l(ce), {
|
|
751
|
+
class: b(l(t)({ size: e.size, variant: e.variant })),
|
|
752
|
+
style: W({ maxWidth: e.maxWidth })
|
|
729
753
|
}, {
|
|
730
754
|
default: R(() => [
|
|
731
|
-
e.title ? (u(), N(
|
|
755
|
+
e.title ? (u(), N(l(de), {
|
|
732
756
|
key: 0,
|
|
733
757
|
class: b(["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" }])
|
|
734
758
|
}, {
|
|
735
759
|
default: R(() => [
|
|
736
|
-
|
|
760
|
+
C(A(e.title), 1)
|
|
737
761
|
]),
|
|
738
762
|
_: 1
|
|
739
|
-
}, 8, ["class"])) :
|
|
740
|
-
|
|
763
|
+
}, 8, ["class"])) : _("", !0),
|
|
764
|
+
D(l(ue), {
|
|
741
765
|
class: b([
|
|
742
766
|
"scalar-modal-body relative max-h-[calc(100dvh-240px)] overflow-y-auto rounded-lg bg-back-1 px-6 pb-4 pt-6",
|
|
743
|
-
|
|
767
|
+
l(w)(
|
|
744
768
|
e.bodyClass,
|
|
745
769
|
e.variant === "history" && "pt-3",
|
|
746
770
|
e.variant === "search" && "col max-h-[440px] overflow-hidden p-0"
|
|
@@ -748,7 +772,7 @@ const ke = ["innerHTML"], oa = /* @__PURE__ */ _({
|
|
|
748
772
|
])
|
|
749
773
|
}, {
|
|
750
774
|
default: R(() => [
|
|
751
|
-
|
|
775
|
+
y(e.$slots, "default", {}, void 0, !0)
|
|
752
776
|
]),
|
|
753
777
|
_: 3
|
|
754
778
|
}, 8, ["class"])
|
|
@@ -760,7 +784,7 @@ const ke = ["innerHTML"], oa = /* @__PURE__ */ _({
|
|
|
760
784
|
_: 3
|
|
761
785
|
}, 8, ["open"]));
|
|
762
786
|
}
|
|
763
|
-
}),
|
|
787
|
+
}), Te = /* @__PURE__ */ B(Ae, [["__scopeId", "data-v-ff85ced0"]]), Le = { class: "sr-only" }, xe = ["value"], $e = /* @__PURE__ */ k({
|
|
764
788
|
inheritAttrs: !1,
|
|
765
789
|
__name: "ScalarSearchInput",
|
|
766
790
|
props: {
|
|
@@ -768,24 +792,24 @@ const ke = ["innerHTML"], oa = /* @__PURE__ */ _({
|
|
|
768
792
|
modelValue: {}
|
|
769
793
|
},
|
|
770
794
|
emits: ["update:modelValue"],
|
|
771
|
-
setup(
|
|
772
|
-
const e =
|
|
773
|
-
function
|
|
795
|
+
setup(a, { emit: t }) {
|
|
796
|
+
const e = t;
|
|
797
|
+
function n(g) {
|
|
774
798
|
e("update:modelValue", g.target.value);
|
|
775
799
|
}
|
|
776
|
-
const
|
|
777
|
-
const { class: g, ...r } =
|
|
800
|
+
const f = T(() => {
|
|
801
|
+
const { class: g, ...r } = L();
|
|
778
802
|
return { className: g || "", rest: r };
|
|
779
803
|
});
|
|
780
|
-
return (g, r) => (u(),
|
|
781
|
-
class:
|
|
804
|
+
return (g, r) => (u(), h("label", x(f.value.rest, {
|
|
805
|
+
class: l(w)(
|
|
782
806
|
"flex rounded border bg-back-1 text-sm font-medium focus-within:border-fore-1",
|
|
783
|
-
|
|
807
|
+
f.value.className
|
|
784
808
|
)
|
|
785
809
|
}), [
|
|
786
|
-
v("span",
|
|
787
|
-
|
|
788
|
-
|
|
810
|
+
v("span", Le, [
|
|
811
|
+
y(g.$slots, "label", {}, () => [
|
|
812
|
+
C("Enter search")
|
|
789
813
|
])
|
|
790
814
|
]),
|
|
791
815
|
v("input", {
|
|
@@ -797,104 +821,104 @@ const ke = ["innerHTML"], oa = /* @__PURE__ */ _({
|
|
|
797
821
|
spellcheck: "false",
|
|
798
822
|
type: "text",
|
|
799
823
|
value: g.modelValue,
|
|
800
|
-
onInput:
|
|
801
|
-
}, null, 40,
|
|
802
|
-
g.loading && g.loading.isLoading ? (u(), N(
|
|
824
|
+
onInput: n
|
|
825
|
+
}, null, 40, xe),
|
|
826
|
+
g.loading && g.loading.isLoading ? (u(), N(l(H), {
|
|
803
827
|
key: 0,
|
|
804
828
|
class: "mr-3 self-center",
|
|
805
829
|
loadingState: g.loading,
|
|
806
830
|
size: "20px"
|
|
807
|
-
}, null, 8, ["loadingState"])) : g.modelValue ? (u(), N(
|
|
831
|
+
}, null, 8, ["loadingState"])) : g.modelValue ? (u(), N(l(q), {
|
|
808
832
|
key: 1,
|
|
809
833
|
class: "self-center",
|
|
810
834
|
icon: "Close",
|
|
811
835
|
label: "Clear Search",
|
|
812
836
|
size: "md",
|
|
813
837
|
onClick: r[0] || (r[0] = (c) => e("update:modelValue", ""))
|
|
814
|
-
})) :
|
|
838
|
+
})) : _("", !0)
|
|
815
839
|
], 16));
|
|
816
840
|
}
|
|
817
|
-
}),
|
|
841
|
+
}), Re = { class: "flex flex-col items-center gap-2 px-3 py-4" }, Oe = /* @__PURE__ */ v("div", { class: "rotate-90 text-lg font-bold" }, ":(", -1), De = { class: "text-sm font-medium text-fore-2" }, Pe = /* @__PURE__ */ k({
|
|
818
842
|
inheritAttrs: !1,
|
|
819
843
|
__name: "ScalarSearchResultList",
|
|
820
844
|
props: {
|
|
821
845
|
noResults: { type: Boolean }
|
|
822
846
|
},
|
|
823
|
-
setup(
|
|
824
|
-
const
|
|
825
|
-
const { class: e, ...
|
|
826
|
-
return { className: e || "", rest:
|
|
847
|
+
setup(a) {
|
|
848
|
+
const t = T(() => {
|
|
849
|
+
const { class: e, ...n } = L();
|
|
850
|
+
return { className: e || "", rest: n };
|
|
827
851
|
});
|
|
828
|
-
return (e,
|
|
829
|
-
class:
|
|
852
|
+
return (e, n) => (u(), h("ul", x(t.value.rest, {
|
|
853
|
+
class: l(w)("flex flex-col", t.value.className)
|
|
830
854
|
}), [
|
|
831
|
-
e.noResults ?
|
|
832
|
-
v("div",
|
|
833
|
-
|
|
834
|
-
v("div",
|
|
835
|
-
|
|
836
|
-
e.$slots.query ? (u(),
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
], 64)) :
|
|
855
|
+
e.noResults ? y(e.$slots, "noResults", { key: 0 }, () => [
|
|
856
|
+
v("div", Re, [
|
|
857
|
+
Oe,
|
|
858
|
+
v("div", De, [
|
|
859
|
+
C(" No results found "),
|
|
860
|
+
e.$slots.query ? (u(), h(ae, { key: 0 }, [
|
|
861
|
+
C('for "'),
|
|
862
|
+
y(e.$slots, "query"),
|
|
863
|
+
C('"')
|
|
864
|
+
], 64)) : _("", !0)
|
|
841
865
|
])
|
|
842
866
|
])
|
|
843
|
-
]) :
|
|
844
|
-
|
|
867
|
+
]) : _("", !0),
|
|
868
|
+
y(e.$slots, "default")
|
|
845
869
|
], 16));
|
|
846
870
|
}
|
|
847
|
-
}),
|
|
871
|
+
}), ze = { class: "contents" }, Be = { class: "text-fore-3 group-hover:text-fore-1" }, He = { class: "flex flex-1 flex-col gap-0.75" }, Me = { class: "flex items-center" }, Ge = { class: "flex-1 truncate text-sm font-medium" }, Ve = {
|
|
848
872
|
key: 0,
|
|
849
873
|
class: "text-xs text-fore-2"
|
|
850
|
-
},
|
|
874
|
+
}, je = { class: "truncate text-xs text-fore-2" }, Fe = /* @__PURE__ */ k({
|
|
851
875
|
inheritAttrs: !1,
|
|
852
876
|
__name: "ScalarSearchResultItem",
|
|
853
877
|
props: {
|
|
854
878
|
icon: {},
|
|
855
879
|
active: { type: Boolean }
|
|
856
880
|
},
|
|
857
|
-
setup(
|
|
858
|
-
const
|
|
859
|
-
const { class: e, ...
|
|
860
|
-
return { className: e || "", rest:
|
|
881
|
+
setup(a) {
|
|
882
|
+
const t = T(() => {
|
|
883
|
+
const { class: e, ...n } = L();
|
|
884
|
+
return { className: e || "", rest: n };
|
|
861
885
|
});
|
|
862
|
-
return (e,
|
|
863
|
-
v("a",
|
|
864
|
-
class:
|
|
886
|
+
return (e, n) => (u(), h("li", ze, [
|
|
887
|
+
v("a", x(t.value.rest, {
|
|
888
|
+
class: l(w)(
|
|
865
889
|
"group flex cursor-pointer gap-3 rounded px-3 py-1.5 no-underline hover:bg-back-2",
|
|
866
890
|
{
|
|
867
891
|
"bg-back-2": e.active
|
|
868
892
|
},
|
|
869
|
-
|
|
893
|
+
t.value.className
|
|
870
894
|
)
|
|
871
895
|
}), [
|
|
872
|
-
v("div",
|
|
873
|
-
|
|
874
|
-
e.icon ? (u(), N(
|
|
896
|
+
v("div", Be, [
|
|
897
|
+
y(e.$slots, "icon", {}, () => [
|
|
898
|
+
e.icon ? (u(), N(l(M), {
|
|
875
899
|
key: 0,
|
|
876
900
|
icon: e.icon,
|
|
877
901
|
size: "sm"
|
|
878
|
-
}, null, 8, ["icon"])) :
|
|
902
|
+
}, null, 8, ["icon"])) : _("", !0)
|
|
879
903
|
])
|
|
880
904
|
]),
|
|
881
|
-
v("div",
|
|
882
|
-
v("div",
|
|
883
|
-
v("div",
|
|
884
|
-
|
|
905
|
+
v("div", He, [
|
|
906
|
+
v("div", Me, [
|
|
907
|
+
v("div", Ge, [
|
|
908
|
+
y(e.$slots, "default")
|
|
885
909
|
]),
|
|
886
|
-
e.$slots.addon ? (u(),
|
|
887
|
-
|
|
888
|
-
])) :
|
|
910
|
+
e.$slots.addon ? (u(), h("div", Ve, [
|
|
911
|
+
y(e.$slots, "addon")
|
|
912
|
+
])) : _("", !0)
|
|
889
913
|
]),
|
|
890
|
-
v("div",
|
|
891
|
-
|
|
914
|
+
v("div", je, [
|
|
915
|
+
y(e.$slots, "description")
|
|
892
916
|
])
|
|
893
917
|
])
|
|
894
918
|
], 16)
|
|
895
919
|
]));
|
|
896
920
|
}
|
|
897
|
-
}),
|
|
921
|
+
}), Ue = { class: "scalar-input-container relative" }, We = ["for"], Xe = { class: "icon-slot cursor-pointer text-ghost hover:text-fore-1 !empty:flex !empty:w-7 !empty:items-center !empty:pr-3" }, qe = /* @__PURE__ */ k({
|
|
898
922
|
__name: "ScalarTextField",
|
|
899
923
|
props: {
|
|
900
924
|
modelValue: {},
|
|
@@ -910,8 +934,8 @@ const ke = ["innerHTML"], oa = /* @__PURE__ */ _({
|
|
|
910
934
|
disableTrim: { type: Boolean, default: !1 }
|
|
911
935
|
},
|
|
912
936
|
emits: ["submit", "update:modelValue"],
|
|
913
|
-
setup(
|
|
914
|
-
const e =
|
|
937
|
+
setup(a, { emit: t }) {
|
|
938
|
+
const e = a, n = t, f = $({
|
|
915
939
|
base: "scalar-input-wrapper relative flex items-center rounded border border-solid border-border",
|
|
916
940
|
variants: {
|
|
917
941
|
focus: {
|
|
@@ -919,155 +943,97 @@ const ke = ["innerHTML"], oa = /* @__PURE__ */ _({
|
|
|
919
943
|
},
|
|
920
944
|
error: { true: "scalar-input-wrapper-error border-error" }
|
|
921
945
|
}
|
|
922
|
-
}), g =
|
|
946
|
+
}), g = L(), r = g.id || `id-${me()}`, c = P(), o = P(!1);
|
|
923
947
|
let d;
|
|
924
948
|
if (e.isMultiline) {
|
|
925
|
-
const { triggerResize:
|
|
949
|
+
const { triggerResize: i } = pe({
|
|
926
950
|
element: c,
|
|
927
951
|
input: e.modelValue
|
|
928
952
|
});
|
|
929
|
-
d =
|
|
953
|
+
d = i;
|
|
930
954
|
}
|
|
931
|
-
function p(
|
|
932
|
-
const S =
|
|
933
|
-
e.isMultiline && d(), e.handleFieldChange ? e.handleFieldChange(S) :
|
|
955
|
+
function p(i) {
|
|
956
|
+
const S = i.target.value;
|
|
957
|
+
e.isMultiline && d(), e.handleFieldChange ? e.handleFieldChange(S) : n("update:modelValue", S);
|
|
934
958
|
}
|
|
935
|
-
function s(
|
|
936
|
-
const S =
|
|
937
|
-
e.handleFieldSubmit ? e.handleFieldSubmit(E) :
|
|
959
|
+
function s(i) {
|
|
960
|
+
const S = i.target, E = e.disableTrim || e.isMultiline ? S.value : S.value.trim();
|
|
961
|
+
e.handleFieldSubmit ? e.handleFieldSubmit(E) : n("submit", E);
|
|
938
962
|
}
|
|
939
|
-
function m(
|
|
940
|
-
o.value = !1, e.emitOnBlur && e.modelValue && s(
|
|
963
|
+
function m(i) {
|
|
964
|
+
o.value = !1, e.emitOnBlur && e.modelValue && s(i);
|
|
941
965
|
}
|
|
942
966
|
return F(() => {
|
|
943
|
-
var
|
|
944
|
-
Object.prototype.hasOwnProperty.call(g, "autofocus") && ((
|
|
945
|
-
}), (
|
|
967
|
+
var i;
|
|
968
|
+
Object.prototype.hasOwnProperty.call(g, "autofocus") && ((i = c.value) == null || i.focus());
|
|
969
|
+
}), (i, S) => (u(), h("div", Ue, [
|
|
946
970
|
v("div", {
|
|
947
|
-
class: b(
|
|
971
|
+
class: b(l(f)({ error: i.error, focus: o.value }))
|
|
948
972
|
}, [
|
|
949
|
-
(u(), N(
|
|
973
|
+
(u(), N(U(i.isMultiline ? "textarea" : "input"), x({ id: l(r) }, i.$attrs, {
|
|
950
974
|
ref_key: "input",
|
|
951
975
|
ref: c,
|
|
952
976
|
class: [
|
|
953
977
|
"scalar-input",
|
|
954
|
-
|
|
955
|
-
{ "min-h-[77px]":
|
|
978
|
+
l(w)(
|
|
979
|
+
{ "min-h-[77px]": i.isMultiline },
|
|
956
980
|
"z-10 w-full resize-none appearance-none border-0 bg-transparent p-3 text-sm text-fore-1",
|
|
957
981
|
"outline-none transition-opacity"
|
|
958
982
|
)
|
|
959
983
|
],
|
|
960
|
-
placeholder:
|
|
961
|
-
value:
|
|
984
|
+
placeholder: i.placeholder,
|
|
985
|
+
value: i.modelValue,
|
|
962
986
|
onBlur: m,
|
|
963
987
|
onFocus: S[0] || (S[0] = (E) => o.value = !0),
|
|
964
988
|
onInput: p,
|
|
965
|
-
onKeyup:
|
|
989
|
+
onKeyup: re(s, ["enter"])
|
|
966
990
|
}), null, 16, ["id", "class", "placeholder", "value"])),
|
|
967
|
-
|
|
991
|
+
i.label ? (u(), h("label", {
|
|
968
992
|
key: 0,
|
|
969
993
|
class: b(
|
|
970
|
-
|
|
994
|
+
l(w)(
|
|
971
995
|
"scalar-input-label pointer-events-none absolute left-0 top-0 mx-2 my-3 px-1 text-xs",
|
|
972
996
|
"shadow-current z-10 origin-top-left rounded text-fore-3 transition-transform"
|
|
973
997
|
)
|
|
974
998
|
),
|
|
975
|
-
for:
|
|
976
|
-
style:
|
|
977
|
-
"box-shadow": `0 0 4px 4px ${
|
|
978
|
-
"background-color":
|
|
999
|
+
for: l(r),
|
|
1000
|
+
style: W({
|
|
1001
|
+
"box-shadow": `0 0 4px 4px ${i.labelShadowColor}`,
|
|
1002
|
+
"background-color": i.labelShadowColor
|
|
979
1003
|
})
|
|
980
|
-
}, A(
|
|
981
|
-
v("div",
|
|
982
|
-
|
|
1004
|
+
}, A(i.label), 15, We)) : _("", !0),
|
|
1005
|
+
v("div", Xe, [
|
|
1006
|
+
y(i.$slots, "default", {}, void 0, !0)
|
|
983
1007
|
])
|
|
984
1008
|
], 2),
|
|
985
1009
|
v("span", {
|
|
986
1010
|
class: b(
|
|
987
|
-
|
|
1011
|
+
l(w)(
|
|
988
1012
|
"helper-text before:rounded-full mt-1.5 flex items-center text-xs text-error before:font-black",
|
|
989
1013
|
"before:mr-1.5 before:block before:h-4 before:w-4 before:text-center before:text-xxs before:leading-4",
|
|
990
1014
|
"before:bg-error before:text-white before:content-['!'] empty:hidden"
|
|
991
1015
|
)
|
|
992
1016
|
)
|
|
993
|
-
}, A(
|
|
1017
|
+
}, A(i.helperText), 3)
|
|
994
1018
|
]));
|
|
995
1019
|
}
|
|
996
|
-
}),
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
md: "var(--scalar-shadow-2)",
|
|
1000
|
-
sm: "rgba(0, 0, 0, 0.09) 0px 1px 4px",
|
|
1001
|
-
none: "0 0 #0000"
|
|
1002
|
-
},
|
|
1003
|
-
colors: {
|
|
1004
|
-
"fore-1": "var(--scalar-color-1)",
|
|
1005
|
-
"fore-2": "var(--scalar-color-2)",
|
|
1006
|
-
"fore-3": "var(--scalar-color-3)",
|
|
1007
|
-
accent: "var(--scalar-color-accent)",
|
|
1008
|
-
"back-1": "var(--scalar-background-1)",
|
|
1009
|
-
"back-2": "var(--scalar-background-2)",
|
|
1010
|
-
"back-3": "var(--scalar-background-3)",
|
|
1011
|
-
"back-accent": "var(--scalar-background-accent)",
|
|
1012
|
-
backdrop: "rgba(0, 0, 0, 0.44)",
|
|
1013
|
-
border: "var(--scalar-border-color)",
|
|
1014
|
-
"back-btn-1": "var(--scalar-button-1)",
|
|
1015
|
-
"fore-btn-1": "var(--scalar-button-1-color)",
|
|
1016
|
-
"hover-btn-1": "var(--scalar-button-1-hover)",
|
|
1017
|
-
white: "#FFF",
|
|
1018
|
-
green: "var(--scalar-color-green)",
|
|
1019
|
-
red: "var(--scalar-color-red)",
|
|
1020
|
-
yellow: "var(--scalar-color-yellow)",
|
|
1021
|
-
blue: "var(--scalar-color-blue)",
|
|
1022
|
-
orange: "var(--scalar-color-orange)",
|
|
1023
|
-
purple: "var(--scalar-color-purple)",
|
|
1024
|
-
error: "var(--scalar-error-color)",
|
|
1025
|
-
ghost: "var(--scalar-color-ghost)",
|
|
1026
|
-
transparent: "transparent"
|
|
1027
|
-
}
|
|
1028
|
-
}, ia = {
|
|
1029
|
-
borderRadius: {
|
|
1030
|
-
DEFAULT: "var(--scalar-radius)",
|
|
1031
|
-
md: "var(--scalar-radius)",
|
|
1032
|
-
lg: "var(--scalar-radius-lg)",
|
|
1033
|
-
xl: "var(--scalar-radius-xl)"
|
|
1034
|
-
},
|
|
1035
|
-
fontSize: {
|
|
1036
|
-
xxs: "var(--scalar-micro, var(--scalar-font-size-5))",
|
|
1037
|
-
xs: "var(--scalar-mini, var(--scalar-font-size-4))",
|
|
1038
|
-
sm: "var(--scalar-small,var(--scalar-font-size-3))",
|
|
1039
|
-
base: "var(--scalar-paragraph, var(--scalar-font-size-2))",
|
|
1040
|
-
lg: "var(--scalar-font-size-1)"
|
|
1041
|
-
},
|
|
1042
|
-
fontWeight: {
|
|
1043
|
-
medium: "var(--scalar-font-medium)",
|
|
1044
|
-
bold: "var(--scalar-font-bold)"
|
|
1045
|
-
},
|
|
1046
|
-
maxWidth: {
|
|
1047
|
-
"screen-xs": "480px",
|
|
1048
|
-
"screen-sm": "540px",
|
|
1049
|
-
"screen-md": "640px",
|
|
1050
|
-
"screen-lg": "800px"
|
|
1051
|
-
}
|
|
1052
|
-
}, ca = {
|
|
1053
|
-
install: (t) => {
|
|
1054
|
-
t.component("ScalarButton", ye), t.component("ScalarIcon", M), t.component("ScalarIconButton", X), t.component("ScalarLoading", H), t.component("ScalarModal", Ie), t.component("ScalarSearchInput", Te), t.component("ScalarSearchResultItem", Ve), t.component("ScalarSearchResultList", Oe), t.component("ScalarTextField", Xe);
|
|
1020
|
+
}), Ke = /* @__PURE__ */ B(qe, [["__scopeId", "data-v-4fc2339e"]]), ct = {
|
|
1021
|
+
install: (a) => {
|
|
1022
|
+
a.component("ScalarButton", _e), a.component("ScalarIcon", M), a.component("ScalarIconButton", q), a.component("ScalarLoading", H), a.component("ScalarModal", Te), a.component("ScalarSearchInput", $e), a.component("ScalarSearchResultItem", Fe), a.component("ScalarSearchResultList", Pe), a.component("ScalarTextField", Ke);
|
|
1055
1023
|
}
|
|
1056
1024
|
};
|
|
1057
1025
|
export {
|
|
1058
|
-
|
|
1059
|
-
|
|
1026
|
+
_e as ScalarButton,
|
|
1027
|
+
it as ScalarCodeBlock,
|
|
1060
1028
|
M as ScalarIcon,
|
|
1061
|
-
|
|
1029
|
+
q as ScalarIconButton,
|
|
1062
1030
|
H as ScalarLoading,
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
sa as useLoadingState,
|
|
1072
|
-
na as useModal
|
|
1031
|
+
Te as ScalarModal,
|
|
1032
|
+
$e as ScalarSearchInput,
|
|
1033
|
+
Fe as ScalarSearchResultItem,
|
|
1034
|
+
Pe as ScalarSearchResultList,
|
|
1035
|
+
Ke as ScalarTextField,
|
|
1036
|
+
ct as default,
|
|
1037
|
+
ot as useLoadingState,
|
|
1038
|
+
lt as useModal
|
|
1073
1039
|
};
|