@scalar/components 0.4.6 → 0.4.7
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/Add-CBZFHBcY.cjs +1 -0
- package/dist/Add-MwmVL5-v.js +22 -0
- package/dist/CheckMark-CUqur5Kp.cjs +1 -0
- package/dist/CheckMark-t0gl4N9U.js +16 -0
- package/dist/ChevronDown-CSOB0535.js +24 -0
- package/dist/ChevronDown-D2jvCaVO.cjs +1 -0
- package/dist/ChevronLeft-Dfx7KVqN.cjs +1 -0
- package/dist/ChevronLeft-DusxsQw-.js +24 -0
- package/dist/ChevronRight-D0boeQmp.cjs +1 -0
- package/dist/ChevronRight-DgANAl_6.js +24 -0
- package/dist/ChevronUp-BbfQZGKP.js +24 -0
- package/dist/ChevronUp-CIRvwOqb.cjs +1 -0
- package/dist/Clipboard-CMP6ZrLh.cjs +1 -0
- package/dist/Clipboard-CU_KxGEv.js +16 -0
- package/dist/Close-CAHbQGHc.cjs +1 -0
- package/dist/Close-DFM1qMQH.js +19 -0
- package/dist/DarkMode-CBsV8Q_I.js +18 -0
- package/dist/DarkMode-t_GIbUfw.cjs +1 -0
- package/dist/Ellipses-Bo_X36Hx.js +16 -0
- package/dist/Ellipses-lwFMwsvO.cjs +1 -0
- package/dist/ExternalLink-D5zCsWas.js +28 -0
- package/dist/ExternalLink-DtcGwFBe.cjs +1 -0
- package/dist/GitHub-DgVS74mp.cjs +1 -0
- package/dist/GitHub-NdE6Zs9k.js +16 -0
- package/dist/LightDarkModeToggle-BkvMimDa.js +20 -0
- package/dist/LightDarkModeToggle-Cy5svZ9_.cjs +1 -0
- package/dist/LightMode-Btz6vyT_.js +18 -0
- package/dist/LightMode-Lb_EorlU.cjs +1 -0
- package/dist/Logo-C5GTctOK.cjs +1 -0
- package/dist/Logo-mtzeKD8M.js +19 -0
- package/dist/LogoAPI-CaU5E6FK.js +19 -0
- package/dist/LogoAPI-O6MKaQjJ.cjs +1 -0
- package/dist/LogoClient-DdC-t_7P.js +18 -0
- package/dist/LogoClient-euoCjMaH.cjs +1 -0
- package/dist/LogoMarket-Bpc5LKT8.cjs +1 -0
- package/dist/LogoMarket-DwlApcab.js +16 -0
- package/dist/LogoSwagger-CH60H5qW.js +16 -0
- package/dist/LogoSwagger-DezmPG0T.cjs +1 -0
- package/dist/Menu-B_NU9F5B.cjs +1 -0
- package/dist/Menu-DFi9Laso.js +20 -0
- package/dist/PaperAirplane-BC-4mGEB.js +21 -0
- package/dist/PaperAirplane-CCHkYifV.cjs +1 -0
- package/dist/Search-Bd6LPK9x.cjs +1 -0
- package/dist/Search-DqtlswRG.js +19 -0
- package/dist/arrow-chevron-down-DraTmtzQ.js +22 -0
- package/dist/arrow-chevron-down-DsP2EBEF.cjs +1 -0
- package/dist/arrow-chevron-left-AE5dugcd.js +22 -0
- package/dist/arrow-chevron-left-Dfe2kDts.cjs +1 -0
- package/dist/arrow-chevron-right-DBdUpZwy.cjs +1 -0
- package/dist/arrow-chevron-right-DbHwONUO.js +22 -0
- package/dist/arrow-chevron-up-C2T-G4GN.js +22 -0
- package/dist/arrow-chevron-up-thHGRsbS.cjs +1 -0
- package/dist/arrow-down-DnS6m4SR.cjs +1 -0
- package/dist/arrow-down-rfW-r_qd.js +22 -0
- package/dist/arrow-left-DDkHt-xN.js +22 -0
- package/dist/arrow-left-emDLQg2h.cjs +1 -0
- package/dist/arrow-right-17dZkGZR.js +22 -0
- package/dist/arrow-right-BRwS4DF5.cjs +1 -0
- package/dist/arrow-up-CexG2Ble.js +22 -0
- package/dist/arrow-up-CqB6AANQ.cjs +1 -0
- package/dist/brand-software-development-github-B1bOMa2g.cjs +1 -0
- package/dist/brand-software-development-github-ZQnPxpDg.js +16 -0
- package/dist/index.cjs +1 -92
- package/dist/index.d.ts +2 -2
- package/dist/index.js +218 -321
- package/dist/interface-add-BNnR60L_.cjs +1 -0
- package/dist/interface-add-Bthe4y9O.js +22 -0
- package/dist/interface-close-39qEDDsB.cjs +1 -0
- package/dist/interface-close-WpJOu-2h.js +22 -0
- package/dist/programming-framework-angular-Cb3hOem2.cjs +1 -0
- package/dist/programming-framework-angular-DD4Vjgbk.js +16 -0
- package/dist/programming-framework-astro-CLfrRt19.js +16 -0
- package/dist/programming-framework-astro-CqzXmk7-.cjs +1 -0
- package/dist/programming-framework-laravel-DPR0ohMY.cjs +1 -0
- package/dist/programming-framework-laravel-kAy2wVLy.js +21 -0
- package/dist/programming-framework-nextdotjs-BKdd_DY_.js +16 -0
- package/dist/programming-framework-nextdotjs-CEJkEXh_.cjs +1 -0
- package/dist/programming-framework-react-C8QbUlg2.cjs +1 -0
- package/dist/programming-framework-react-PDgmtZuN.js +16 -0
- package/dist/programming-framework-vuedotjs-CqJyDH8h.cjs +1 -0
- package/dist/programming-framework-vuedotjs-Cv46W2aB.js +18 -0
- package/dist/programming-language-c-D_xNi2oU.cjs +1 -0
- package/dist/programming-language-c-hPGu2Zvg.js +16 -0
- package/dist/programming-language-clojure-Cvmzky8x.js +15 -0
- package/dist/programming-language-clojure-CyHK-jLJ.cjs +1 -0
- package/dist/programming-language-csharp-DoGoDJTM.cjs +1 -0
- package/dist/programming-language-csharp-lqX1oWgb.js +15 -0
- package/dist/programming-language-css3-Dpp4Cr6b.js +16 -0
- package/dist/programming-language-css3-wgDmqbZB.cjs +1 -0
- package/dist/programming-language-go-DoJxWwT6.js +15 -0
- package/dist/programming-language-go-esKd64tz.cjs +1 -0
- package/dist/programming-language-html5-CtUUccLl.cjs +1 -0
- package/dist/programming-language-html5-DlqJK4EL.js +16 -0
- package/dist/programming-language-http-Dc1qvDmx.cjs +1 -0
- package/dist/programming-language-http-wMYwFS1I.js +20 -0
- package/dist/programming-language-java-BCxG2T_w.js +26 -0
- package/dist/programming-language-java-CZGMYk6G.cjs +1 -0
- package/dist/programming-language-javascript-BV0cufZy.cjs +1 -0
- package/dist/programming-language-javascript-VxLvi1QG.js +16 -0
- package/dist/programming-language-json-42R7ZDyF.cjs +1 -0
- package/dist/programming-language-json-vEX_g7Zi.js +22 -0
- package/dist/programming-language-kotlin-B_hFLazE.cjs +1 -0
- package/dist/programming-language-kotlin-DKV8vP9h.js +15 -0
- package/dist/programming-language-node-CNeD_Nz_.cjs +1 -0
- package/dist/programming-language-node-Xsgx38lm.js +18 -0
- package/dist/programming-language-objc-BQXSOBsX.js +16 -0
- package/dist/programming-language-objc-C1h8n_Ep.cjs +1 -0
- package/dist/programming-language-ocaml-BEz7gGv7.js +15 -0
- package/dist/programming-language-ocaml-D4ghEb5c.cjs +1 -0
- package/dist/programming-language-php-GY38f8r4.js +16 -0
- package/dist/programming-language-php-L-yPjdeD.cjs +1 -0
- package/dist/programming-language-powershell-C9DkSp36.js +19 -0
- package/dist/programming-language-powershell-CuA4_aWv.cjs +1 -0
- package/dist/programming-language-python-Ct-_kNjo.js +16 -0
- package/dist/programming-language-python-D81TlBUm.cjs +1 -0
- package/dist/programming-language-r-BGoKwua9.js +19 -0
- package/dist/programming-language-r-CKcjfC5A.cjs +1 -0
- package/dist/programming-language-ruby-CZdOfp80.cjs +1 -0
- package/dist/programming-language-ruby-DhdM4d7g.js +16 -0
- package/dist/programming-language-scala-BVg0dToJ.js +16 -0
- package/dist/programming-language-scala-DXPi3PgB.cjs +1 -0
- package/dist/programming-language-shell-BoAtoYbq.cjs +1 -0
- package/dist/programming-language-shell-BsTa1xI7.js +16 -0
- package/dist/programming-language-swift-ARCBHgkE.cjs +1 -0
- package/dist/programming-language-swift-Dn72xPjg.js +16 -0
- package/dist/programming-language-typescript-CdF-HuRi.js +16 -0
- package/dist/programming-language-typescript-DCLuAk73.cjs +1 -0
- package/dist/programming-script-code-Beg2Hk5g.cjs +1 -0
- package/dist/programming-script-code-DQN1veb2.js +22 -0
- package/dist/programming-tool-git-Cs6kKawk.cjs +1 -0
- package/dist/programming-tool-git-DDnQ1zGD.js +18 -0
- package/dist/programming-tool-tailwindcss-Cog36cMC.cjs +1 -0
- package/dist/programming-tool-tailwindcss-xjXi0E6g.js +16 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import "./main.css";
|
|
2
|
-
import { defineComponent as
|
|
2
|
+
import { defineComponent as k, useCssVars as W, openBlock as g, createElementBlock as v, normalizeClass as m, unref as c, createElementVNode as w, createCommentVNode as E, createStaticVNode as X, reactive as z, computed as $, useAttrs as M, mergeProps as H, renderSlot as N, createVNode as C, ref as x, watch as q, nextTick as K, onServerPrefetch as Y, onMounted as B, toDisplayString as _, defineAsyncComponent as J, createBlock as L, resolveDynamicComponent as G, withCtx as T, normalizeStyle as F, createTextVNode as Z, withKeys as Q } from "vue";
|
|
3
3
|
import { defineConfig as ee } from "cva";
|
|
4
4
|
import { extendTailwindMerge as te } from "tailwind-merge";
|
|
5
|
-
import
|
|
6
|
-
import { Dialog as re, DialogPanel as
|
|
5
|
+
import A from "prismjs";
|
|
6
|
+
import { Dialog as re, DialogPanel as ae, DialogTitle as oe, DialogDescription as ne } from "@headlessui/vue";
|
|
7
7
|
import { useTextareaAutosize as se } from "@vueuse/core";
|
|
8
|
-
import { nanoid as
|
|
9
|
-
const
|
|
8
|
+
import { nanoid as ie } from "nanoid";
|
|
9
|
+
const O = "scalar-component", le = te({
|
|
10
10
|
extend: {
|
|
11
11
|
classGroups: {
|
|
12
12
|
// Add the scalar class prefix as a custom class to be deduped by tailwind-merge
|
|
13
|
-
[
|
|
13
|
+
[O]: [O]
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
}), { cva:
|
|
16
|
+
}), { cva: I, cx: S, compose: $e } = ee({
|
|
17
17
|
hooks: {
|
|
18
|
-
onComplete: (r) => `${
|
|
18
|
+
onComplete: (r) => `${le(r, O)}`
|
|
19
19
|
}
|
|
20
|
-
}), de = /* @__PURE__ */
|
|
20
|
+
}), de = /* @__PURE__ */ X('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-42a08e16></path>', 5), ce = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "circular-loader"
|
|
23
23
|
};
|
|
24
|
-
function
|
|
25
|
-
return
|
|
24
|
+
function Me() {
|
|
25
|
+
return z({
|
|
26
26
|
isValid: !1,
|
|
27
27
|
isInvalid: !1,
|
|
28
28
|
isLoading: !1,
|
|
@@ -55,21 +55,21 @@ function dt() {
|
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
const ue = /* @__PURE__ */
|
|
58
|
+
const ue = /* @__PURE__ */ k({
|
|
59
59
|
__name: "ScalarLoading",
|
|
60
60
|
props: {
|
|
61
61
|
loadingState: {},
|
|
62
62
|
size: { default: "24px" }
|
|
63
63
|
},
|
|
64
64
|
setup(r) {
|
|
65
|
-
return
|
|
65
|
+
return W((t) => ({
|
|
66
66
|
"8d3a1414": t.size
|
|
67
|
-
})), (t, e) => t.loadingState ? (
|
|
67
|
+
})), (t, e) => t.loadingState ? (g(), v("div", {
|
|
68
68
|
key: 0,
|
|
69
|
-
class:
|
|
69
|
+
class: m(c(S)("loader-wrapper"))
|
|
70
70
|
}, [
|
|
71
|
-
(
|
|
72
|
-
class:
|
|
71
|
+
(g(), v("svg", {
|
|
72
|
+
class: m(["svg-loader", {
|
|
73
73
|
"icon-is-valid": t.loadingState.isValid,
|
|
74
74
|
"icon-is-invalid": t.loadingState.isInvalid
|
|
75
75
|
}]),
|
|
@@ -78,9 +78,9 @@ const ue = /* @__PURE__ */ S({
|
|
|
78
78
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
79
79
|
}, [
|
|
80
80
|
de,
|
|
81
|
-
t.loadingState.isLoading ? (
|
|
82
|
-
|
|
83
|
-
class:
|
|
81
|
+
t.loadingState.isLoading ? (g(), v("g", ce, [
|
|
82
|
+
w("circle", {
|
|
83
|
+
class: m(["loader-path", {
|
|
84
84
|
"loader-path-off": t.loadingState.isValid || t.loadingState.isInvalid
|
|
85
85
|
}]),
|
|
86
86
|
cx: "50",
|
|
@@ -89,16 +89,16 @@ const ue = /* @__PURE__ */ S({
|
|
|
89
89
|
r: "20",
|
|
90
90
|
"stroke-width": "2"
|
|
91
91
|
}, null, 2)
|
|
92
|
-
])) :
|
|
92
|
+
])) : E("", !0)
|
|
93
93
|
], 2))
|
|
94
|
-
], 2)) :
|
|
94
|
+
], 2)) : E("", !0);
|
|
95
95
|
}
|
|
96
|
-
}),
|
|
96
|
+
}), D = (r, t) => {
|
|
97
97
|
const e = r.__vccOpts || r;
|
|
98
|
-
for (const [
|
|
99
|
-
e[
|
|
98
|
+
for (const [d, u] of t)
|
|
99
|
+
e[d] = u;
|
|
100
100
|
return e;
|
|
101
|
-
},
|
|
101
|
+
}, U = /* @__PURE__ */ D(ue, [["__scopeId", "data-v-42a08e16"]]), V = {
|
|
102
102
|
solid: [
|
|
103
103
|
"scalar-button-solid",
|
|
104
104
|
"bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"
|
|
@@ -115,7 +115,7 @@ const ue = /* @__PURE__ */ S({
|
|
|
115
115
|
"scalar-button-danger",
|
|
116
116
|
"bg-error text-white active:brightness-90 hocus:brightness-90"
|
|
117
117
|
]
|
|
118
|
-
}, pe =
|
|
118
|
+
}, pe = I({
|
|
119
119
|
base: "scalar-button row cursor-pointer items-center justify-center rounded font-medium",
|
|
120
120
|
variants: {
|
|
121
121
|
disabled: {
|
|
@@ -123,7 +123,7 @@ const ue = /* @__PURE__ */ S({
|
|
|
123
123
|
},
|
|
124
124
|
fullWidth: { true: "w-full" },
|
|
125
125
|
size: { md: "h-10 px-6 text-sm" },
|
|
126
|
-
variant:
|
|
126
|
+
variant: V
|
|
127
127
|
},
|
|
128
128
|
compoundVariants: [
|
|
129
129
|
{
|
|
@@ -132,13 +132,13 @@ const ue = /* @__PURE__ */ S({
|
|
|
132
132
|
class: "bg-transparent text-ghost"
|
|
133
133
|
}
|
|
134
134
|
]
|
|
135
|
-
}),
|
|
135
|
+
}), me = ["ariaDisabled"], ge = {
|
|
136
136
|
key: 0,
|
|
137
137
|
class: "mr-2 h-4 w-4"
|
|
138
|
-
},
|
|
138
|
+
}, he = {
|
|
139
139
|
key: 1,
|
|
140
140
|
class: "ml-2"
|
|
141
|
-
},
|
|
141
|
+
}, fe = /* @__PURE__ */ k({
|
|
142
142
|
inheritAttrs: !1,
|
|
143
143
|
__name: "ScalarButton",
|
|
144
144
|
props: {
|
|
@@ -149,30 +149,30 @@ const ue = /* @__PURE__ */ S({
|
|
|
149
149
|
variant: { default: "solid" }
|
|
150
150
|
},
|
|
151
151
|
setup(r) {
|
|
152
|
-
const t =
|
|
153
|
-
const { class: e, ...
|
|
154
|
-
return { className: e || "", rest:
|
|
152
|
+
const t = $(() => {
|
|
153
|
+
const { class: e, ...d } = M();
|
|
154
|
+
return { className: e || "", rest: d };
|
|
155
155
|
});
|
|
156
|
-
return (e,
|
|
156
|
+
return (e, d) => (g(), v("button", H(t.value.rest, {
|
|
157
157
|
ariaDisabled: e.disabled || void 0,
|
|
158
|
-
class: c(
|
|
158
|
+
class: c(S)(
|
|
159
159
|
c(pe)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
|
|
160
160
|
{ "pl-9 pr-3": e.loading },
|
|
161
161
|
`${t.value.className}`
|
|
162
162
|
),
|
|
163
163
|
type: "button"
|
|
164
164
|
}), [
|
|
165
|
-
e.$slots.icon ? (
|
|
166
|
-
|
|
167
|
-
])) :
|
|
168
|
-
|
|
169
|
-
e.loading ? (
|
|
170
|
-
|
|
165
|
+
e.$slots.icon ? (g(), v("div", ge, [
|
|
166
|
+
N(e.$slots, "icon")
|
|
167
|
+
])) : E("", !0),
|
|
168
|
+
N(e.$slots, "default"),
|
|
169
|
+
e.loading ? (g(), v("div", he, [
|
|
170
|
+
C(c(U), {
|
|
171
171
|
loadingState: e.loading,
|
|
172
172
|
size: "20px"
|
|
173
173
|
}, null, 8, ["loadingState"])
|
|
174
|
-
])) :
|
|
175
|
-
], 16,
|
|
174
|
+
])) : E("", !0)
|
|
175
|
+
], 16, me));
|
|
176
176
|
}
|
|
177
177
|
});
|
|
178
178
|
(function(r) {
|
|
@@ -183,7 +183,7 @@ const ue = /* @__PURE__ */ S({
|
|
|
183
183
|
// this looks reasonably well in all themes
|
|
184
184
|
inside: null
|
|
185
185
|
// see below
|
|
186
|
-
},
|
|
186
|
+
}, d = {
|
|
187
187
|
bash: e,
|
|
188
188
|
environment: {
|
|
189
189
|
pattern: RegExp("\\$" + t),
|
|
@@ -295,7 +295,7 @@ const ue = /* @__PURE__ */ S({
|
|
|
295
295
|
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
296
296
|
lookbehind: !0,
|
|
297
297
|
greedy: !0,
|
|
298
|
-
inside:
|
|
298
|
+
inside: d
|
|
299
299
|
},
|
|
300
300
|
// Here-document with quotes around the tag
|
|
301
301
|
// → No expansion (so no “inside”).
|
|
@@ -313,7 +313,7 @@ const ue = /* @__PURE__ */ S({
|
|
|
313
313
|
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
314
314
|
lookbehind: !0,
|
|
315
315
|
greedy: !0,
|
|
316
|
-
inside:
|
|
316
|
+
inside: d
|
|
317
317
|
},
|
|
318
318
|
{
|
|
319
319
|
// https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
|
|
@@ -326,7 +326,7 @@ const ue = /* @__PURE__ */ S({
|
|
|
326
326
|
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
327
327
|
greedy: !0,
|
|
328
328
|
inside: {
|
|
329
|
-
entity:
|
|
329
|
+
entity: d.entity
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
],
|
|
@@ -334,7 +334,7 @@ const ue = /* @__PURE__ */ S({
|
|
|
334
334
|
pattern: RegExp("\\$?" + t),
|
|
335
335
|
alias: "constant"
|
|
336
336
|
},
|
|
337
|
-
variable:
|
|
337
|
+
variable: d.variable,
|
|
338
338
|
function: {
|
|
339
339
|
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;|&])/,
|
|
340
340
|
lookbehind: !0
|
|
@@ -390,8 +390,8 @@ const ue = /* @__PURE__ */ S({
|
|
|
390
390
|
"operator",
|
|
391
391
|
"punctuation",
|
|
392
392
|
"number"
|
|
393
|
-
],
|
|
394
|
-
|
|
393
|
+
], f = d.variable[1].inside, a = 0; a < u.length; a++)
|
|
394
|
+
f[u[a]] = r.languages.bash[u[a]];
|
|
395
395
|
r.languages.sh = r.languages.bash, r.languages.shell = r.languages.bash;
|
|
396
396
|
})(Prism);
|
|
397
397
|
Prism.languages.json = {
|
|
@@ -430,14 +430,14 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
430
430
|
* @param {number} number line number
|
|
431
431
|
* @returns {Element|undefined}
|
|
432
432
|
*/
|
|
433
|
-
getLine: function(a,
|
|
433
|
+
getLine: function(a, n) {
|
|
434
434
|
if (!(a.tagName !== "PRE" || !a.classList.contains(r))) {
|
|
435
|
-
var
|
|
436
|
-
if (
|
|
437
|
-
var
|
|
438
|
-
|
|
439
|
-
var
|
|
440
|
-
return
|
|
435
|
+
var o = a.querySelector(".line-numbers-rows");
|
|
436
|
+
if (o) {
|
|
437
|
+
var s = parseInt(a.getAttribute("data-start"), 10) || 1, p = s + (o.children.length - 1);
|
|
438
|
+
n < s && (n = s), n > p && (n = p);
|
|
439
|
+
var l = n - s;
|
|
440
|
+
return o.children[l];
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
},
|
|
@@ -450,7 +450,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
450
450
|
* @returns {void}
|
|
451
451
|
*/
|
|
452
452
|
resize: function(a) {
|
|
453
|
-
|
|
453
|
+
d([a]);
|
|
454
454
|
},
|
|
455
455
|
/**
|
|
456
456
|
* Whether the plugin can assume that the units font sizes and margins are not depended on the size of
|
|
@@ -464,42 +464,42 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
464
464
|
*/
|
|
465
465
|
assumeViewportIndependence: !0
|
|
466
466
|
};
|
|
467
|
-
function
|
|
468
|
-
if (a = a.filter(function(
|
|
469
|
-
var
|
|
467
|
+
function d(a) {
|
|
468
|
+
if (a = a.filter(function(o) {
|
|
469
|
+
var s = u(o), p = s["white-space"];
|
|
470
470
|
return p === "pre-wrap" || p === "pre-line";
|
|
471
471
|
}), a.length != 0) {
|
|
472
|
-
var
|
|
473
|
-
var
|
|
474
|
-
if (!(!
|
|
475
|
-
var
|
|
476
|
-
|
|
477
|
-
var i =
|
|
478
|
-
return
|
|
479
|
-
element:
|
|
480
|
-
lines:
|
|
472
|
+
var n = a.map(function(o) {
|
|
473
|
+
var s = o.querySelector("code"), p = o.querySelector(".line-numbers-rows");
|
|
474
|
+
if (!(!s || !p)) {
|
|
475
|
+
var l = o.querySelector(".line-numbers-sizer"), h = s.textContent.split(t);
|
|
476
|
+
l || (l = document.createElement("span"), l.className = "line-numbers-sizer", s.appendChild(l)), l.innerHTML = "0", l.style.display = "block";
|
|
477
|
+
var i = l.getBoundingClientRect().height;
|
|
478
|
+
return l.innerHTML = "", {
|
|
479
|
+
element: o,
|
|
480
|
+
lines: h,
|
|
481
481
|
lineHeights: [],
|
|
482
482
|
oneLinerHeight: i,
|
|
483
|
-
sizer:
|
|
483
|
+
sizer: l
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
486
|
}).filter(Boolean);
|
|
487
|
-
|
|
488
|
-
var
|
|
489
|
-
|
|
487
|
+
n.forEach(function(o) {
|
|
488
|
+
var s = o.sizer, p = o.lines, l = o.lineHeights, h = o.oneLinerHeight;
|
|
489
|
+
l[p.length - 1] = void 0, p.forEach(function(i, b) {
|
|
490
490
|
if (i && i.length > 1) {
|
|
491
|
-
var
|
|
492
|
-
|
|
491
|
+
var y = s.appendChild(document.createElement("span"));
|
|
492
|
+
y.style.display = "block", y.textContent = i;
|
|
493
493
|
} else
|
|
494
|
-
|
|
494
|
+
l[b] = h;
|
|
495
495
|
});
|
|
496
|
-
}),
|
|
497
|
-
for (var
|
|
498
|
-
p[
|
|
499
|
-
}),
|
|
500
|
-
var
|
|
501
|
-
|
|
502
|
-
p.children[
|
|
496
|
+
}), n.forEach(function(o) {
|
|
497
|
+
for (var s = o.sizer, p = o.lineHeights, l = 0, h = 0; h < p.length; h++)
|
|
498
|
+
p[h] === void 0 && (p[h] = s.children[l++].getBoundingClientRect().height);
|
|
499
|
+
}), n.forEach(function(o) {
|
|
500
|
+
var s = o.sizer, p = o.element.querySelector(".line-numbers-rows");
|
|
501
|
+
s.style.display = "none", s.innerHTML = "", o.lineHeights.forEach(function(l, h) {
|
|
502
|
+
p.children[h].style.height = l + "px";
|
|
503
503
|
});
|
|
504
504
|
});
|
|
505
505
|
}
|
|
@@ -507,29 +507,29 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
507
507
|
function u(a) {
|
|
508
508
|
return a ? window.getComputedStyle ? getComputedStyle(a) : a.currentStyle || null : null;
|
|
509
509
|
}
|
|
510
|
-
var
|
|
510
|
+
var f = void 0;
|
|
511
511
|
window.addEventListener("resize", function() {
|
|
512
|
-
e.assumeViewportIndependence &&
|
|
512
|
+
e.assumeViewportIndependence && f === window.innerWidth || (f = window.innerWidth, d(Array.prototype.slice.call(document.querySelectorAll("pre." + r))));
|
|
513
513
|
}), Prism.hooks.add("complete", function(a) {
|
|
514
514
|
if (a.code) {
|
|
515
|
-
var
|
|
515
|
+
var n = (
|
|
516
516
|
/** @type {Element} */
|
|
517
517
|
a.element
|
|
518
|
-
),
|
|
518
|
+
), o = (
|
|
519
519
|
/** @type {HTMLElement} */
|
|
520
|
-
|
|
520
|
+
n.parentNode
|
|
521
521
|
);
|
|
522
|
-
if (!(!
|
|
523
|
-
|
|
524
|
-
var
|
|
525
|
-
|
|
522
|
+
if (!(!o || !/pre/i.test(o.nodeName)) && !n.querySelector(".line-numbers-rows") && Prism.util.isActive(n, r)) {
|
|
523
|
+
n.classList.remove(r), o.classList.add(r);
|
|
524
|
+
var s = a.code.match(t), p = s ? s.length + 1 : 1, l, h = new Array(p + 1).join("<span></span>");
|
|
525
|
+
l = document.createElement("span"), l.setAttribute("aria-hidden", "true"), l.className = "line-numbers-rows", l.innerHTML = h, o.hasAttribute("data-start") && (o.style.counterReset = "linenumber " + (parseInt(o.getAttribute("data-start"), 10) - 1)), a.element.appendChild(l), d([o]), Prism.hooks.run("line-numbers", a);
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
}), Prism.hooks.add("line-numbers", function(a) {
|
|
529
529
|
a.plugins = a.plugins || {}, a.plugins.lineNumbers = !0;
|
|
530
530
|
});
|
|
531
531
|
})();
|
|
532
|
-
const
|
|
532
|
+
const ve = ["innerHTML"], He = /* @__PURE__ */ k({
|
|
533
533
|
__name: "ScalarCodeBlock",
|
|
534
534
|
props: {
|
|
535
535
|
content: {},
|
|
@@ -538,183 +538,78 @@ const fe = ["innerHTML"], ct = /* @__PURE__ */ S({
|
|
|
538
538
|
hideCredentials: {}
|
|
539
539
|
},
|
|
540
540
|
setup(r) {
|
|
541
|
-
const t = r, { plugins: e, highlightElement:
|
|
542
|
-
t.hideCredentials &&
|
|
541
|
+
const t = r, { plugins: e, highlightElement: d } = A;
|
|
542
|
+
t.hideCredentials && A.hooks.add("wrap", function(n) {
|
|
543
543
|
if (!t.hideCredentials)
|
|
544
544
|
return;
|
|
545
|
-
let
|
|
546
|
-
typeof t.hideCredentials == "string" ?
|
|
547
|
-
(
|
|
548
|
-
)),
|
|
545
|
+
let o = !1;
|
|
546
|
+
typeof t.hideCredentials == "string" ? n.content.includes(t.hideCredentials) && (o = !0) : Array.isArray(t.hideCredentials) && (o = t.hideCredentials.some(
|
|
547
|
+
(s) => n.content.includes(s)
|
|
548
|
+
)), o && (n.content = n.content.replace(
|
|
549
549
|
/<span class="credentials">.*?<\/span>/g,
|
|
550
|
-
(
|
|
551
|
-
),
|
|
550
|
+
(s) => s.replace(/<span class="credentials">|<\/span>/g, "")
|
|
551
|
+
), n.content = n.content.replace(
|
|
552
552
|
new RegExp(
|
|
553
553
|
typeof t.hideCredentials == "string" ? t.hideCredentials : t.hideCredentials.join("|"),
|
|
554
554
|
"g"
|
|
555
555
|
),
|
|
556
|
-
(
|
|
556
|
+
(s) => `<span class="credentials">${s}</span>`
|
|
557
557
|
));
|
|
558
558
|
});
|
|
559
|
-
const u =
|
|
560
|
-
return
|
|
559
|
+
const u = x(null), f = x(""), a = $(() => t.lang === "node" ? "js" : t.lang);
|
|
560
|
+
return q(
|
|
561
561
|
() => [t.lang, t.content],
|
|
562
562
|
() => {
|
|
563
|
-
u.value &&
|
|
563
|
+
u.value && K(() => d(u.value));
|
|
564
564
|
}
|
|
565
|
-
),
|
|
566
|
-
const
|
|
565
|
+
), Y(async () => {
|
|
566
|
+
const n = A.highlight(
|
|
567
567
|
typeof t.content == "object" ? JSON.stringify(t.content) : t.content,
|
|
568
|
-
|
|
568
|
+
A.languages[a.value],
|
|
569
569
|
a.value
|
|
570
570
|
);
|
|
571
|
-
|
|
572
|
-
}),
|
|
573
|
-
u.value &&
|
|
574
|
-
}), (
|
|
571
|
+
f.value = n;
|
|
572
|
+
}), B(async () => {
|
|
573
|
+
u.value && d(u.value), await import("./prism-autoloader-Dlh8Vzlw.js"), e.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/";
|
|
574
|
+
}), (n, o) => f.value ? (g(), v("pre", {
|
|
575
575
|
key: 0,
|
|
576
|
-
class:
|
|
576
|
+
class: m([
|
|
577
577
|
`scalar-component scalar-codeblock-pre language-${a.value}`,
|
|
578
578
|
{
|
|
579
|
-
"line-numbers":
|
|
579
|
+
"line-numbers": n.lineNumbers
|
|
580
580
|
}
|
|
581
581
|
])
|
|
582
582
|
}, [
|
|
583
|
-
|
|
583
|
+
w("code", {
|
|
584
584
|
ref_key: "el",
|
|
585
585
|
ref: u,
|
|
586
|
-
class:
|
|
587
|
-
innerHTML:
|
|
588
|
-
}, null, 10,
|
|
589
|
-
], 2)) : (
|
|
586
|
+
class: m(`scalar-codeblock-code language-${a.value}`),
|
|
587
|
+
innerHTML: f.value
|
|
588
|
+
}, null, 10, ve)
|
|
589
|
+
], 2)) : (g(), v("pre", {
|
|
590
590
|
key: 1,
|
|
591
|
-
class:
|
|
592
|
-
"line-numbers":
|
|
591
|
+
class: m(["scalar-component scalar-codeblock-pre", {
|
|
592
|
+
"line-numbers": n.lineNumbers
|
|
593
593
|
}])
|
|
594
594
|
}, [
|
|
595
|
-
|
|
595
|
+
w("code", {
|
|
596
596
|
ref_key: "el",
|
|
597
597
|
ref: u,
|
|
598
|
-
class:
|
|
599
|
-
},
|
|
598
|
+
class: m(`scalar-codeblock-code lang-${a.value}`)
|
|
599
|
+
}, _(n.content), 3)
|
|
600
600
|
], 2));
|
|
601
601
|
}
|
|
602
|
-
}),
|
|
603
|
-
const s = new r().parseFromString(t, "image/svg+xml");
|
|
604
|
-
if (s.getElementsByTagName("parsererror").length)
|
|
605
|
-
return;
|
|
606
|
-
const u = s.documentElement, g = be(u.attributes), { width: a, height: o, ...n } = g;
|
|
607
|
-
return K("svg", { ...n, innerHTML: u.innerHTML });
|
|
608
|
-
}, _e = q(async () => {
|
|
609
|
-
const r = typeof DOMParser > "u" ? (await import("@xmldom/xmldom")).DOMParser : DOMParser, t = we(r);
|
|
610
|
-
return t.props = {
|
|
611
|
-
raw: {
|
|
612
|
-
type: String,
|
|
613
|
-
required: !0
|
|
614
|
-
}
|
|
615
|
-
}, t;
|
|
616
|
-
}), ke = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
|
|
617
|
-
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.429"
|
|
618
|
-
d="M24 1.714v44.572M1.714 24h44.572" />
|
|
619
|
-
</svg>`, Se = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.5 23.5" fill="currentColor">
|
|
620
|
-
<path d="M11.2 23.5 0 12.3l2.15-2.15 9.05 9.05L30.4 0l2.15 2.15z" />
|
|
621
|
-
</svg>`, Ce = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
622
|
-
<path d="M4.5 8.25L12 15.75L19.5 8.25" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
623
|
-
</svg>
|
|
624
|
-
`, xe = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
625
|
-
<path d="M15.75 19.5L8.25 12L15.75 4.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
626
|
-
</svg>
|
|
627
|
-
`, ye = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
628
|
-
<path d="M8.25 19.5L15.75 12L8.25 4.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
629
|
-
</svg>`, Ee = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
630
|
-
<path d="M19.5 15.75L12 8.25L4.5 15.75" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
631
|
-
</svg>
|
|
632
|
-
`, Le = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 16">
|
|
633
|
-
<path d="M6,5h4c1.7,0,2-1.3,2-3c1.1,0,2,0.9,2,2v10c0,1.1-0.9,2-2,2H4c-1.1,0-2-0.9-2-2V4c0-1.1,0.9-2,2-2C4,3.7,4.3,5,6,5z M6,2V1
|
|
634
|
-
c0-0.6,0.5-1,1-1h2c0.5,0,1,0.4,1,1v1.3C10,2.9,9.6,3,9,3H7C6.4,3,6,2.6,6,2z" />
|
|
635
|
-
</svg>`, Ae = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
|
|
636
|
-
<path stroke="currentColor" d="m12.5 1.5-11 11m0-11 11 11" />
|
|
637
|
-
</svg>`, Te = `<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
|
|
638
|
-
<path
|
|
639
|
-
d="M9.557,7.243A.456.456,0,0,0,9.1,6.991C9.023,7,8.951,7,8.877,7A4,4,0,0,1,5.546.781.5.5,0,0,0,5.564.256.476.476,0,0,0,5.1,0,5,5,0,1,0,9.539,7.767.5.5,0,0,0,9.557,7.243Z"
|
|
640
|
-
fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
641
|
-
</svg>`, Me = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
|
642
|
-
<path
|
|
643
|
-
d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" />
|
|
644
|
-
</svg>`, Ie = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 9">
|
|
645
|
-
<g fill="none" fill-rule="evenodd" transform="translate(.67 .67)">
|
|
646
|
-
<rect transform="rotate(180 4 4)" />
|
|
647
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width=".5"
|
|
648
|
-
d="M2.85 1.73h3.4v3.4m0-3.4L1.74 6.24" />
|
|
649
|
-
</g>
|
|
650
|
-
</svg>`, Ne = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 1024 1024">
|
|
651
|
-
<path
|
|
652
|
-
d="M512 0a512 512 0 0 0-162 998c26 4 35-11 35-25l-1-95c-128 23-161-32-172-60-6-15-31-61-52-73-18-10-44-33-1-33 40-1 69 37 78 52 46 78 120 56 149 43 5-33 18-56 33-69-114-13-234-56-234-253 0-56 20-101 53-137-5-13-23-65 5-136 0 0 43-13 141 53a487 487 0 0 1 256 0c98-66 141-53 141-53 28 71 10 123 5 136 33 36 53 81 53 137 0 197-120 240-234 253 18 16 35 47 35 95l-1 140c0 14 9 30 35 25A512 512 0 0 0 512 0z" />
|
|
653
|
-
</svg>`, Oe = `<svg
|
|
654
|
-
height="24"
|
|
655
|
-
viewBox="0 0 24 24"
|
|
656
|
-
width="24"
|
|
657
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
658
|
-
<path
|
|
659
|
-
d="M24 12a1 1 0 0 0 -1 -1h-3.91a0.51 0.51 0 0 1 -0.49 -0.4 6.83 6.83 0 0 0 -0.94 -2.28 0.5 0.5 0 0 1 0.06 -0.63l2.77 -2.76a1 1 0 1 0 -1.42 -1.42l-2.76 2.77a0.5 0.5 0 0 1 -0.63 0.06 6.83 6.83 0 0 0 -2.28 -0.94 0.5 0.5 0 0 1 -0.4 -0.49V1a1 1 0 0 0 -2 0v3.91a0.51 0.51 0 0 1 -0.4 0.49 6.83 6.83 0 0 0 -2.28 0.94 0.5 0.5 0 0 1 -0.63 -0.06L4.93 3.51a1 1 0 0 0 -1.42 1.42l2.77 2.76a0.5 0.5 0 0 1 0.06 0.63 6.83 6.83 0 0 0 -0.94 2.28 0.5 0.5 0 0 1 -0.49 0.4H1a1 1 0 0 0 0 2h3.91a0.51 0.51 0 0 1 0.49 0.4 6.83 6.83 0 0 0 0.94 2.28 0.5 0.5 0 0 1 -0.06 0.63l-2.77 2.76a1 1 0 1 0 1.42 1.42l2.76 -2.77a0.5 0.5 0 0 1 0.63 -0.06 6.83 6.83 0 0 0 2.28 0.94 0.5 0.5 0 0 1 0.4 0.49V23a1 1 0 0 0 2 0v-3.91a0.51 0.51 0 0 1 0.4 -0.49 6.83 6.83 0 0 0 2.28 -0.94 0.5 0.5 0 0 1 0.63 0.06l2.76 2.77a1 1 0 1 0 1.42 -1.42l-2.77 -2.76a0.5 0.5 0 0 1 -0.06 -0.63 6.83 6.83 0 0 0 0.94 -2.28 0.5 0.5 0 0 1 0.49 -0.4H23a1 1 0 0 0 1 -1Zm-8.74 2.5A5.76 5.76 0 0 1 9.5 8.74a5.66 5.66 0 0 1 0.16 -1.31 0.49 0.49 0 0 1 0.34 -0.36 5.36 5.36 0 0 1 1.8 -0.31 5.47 5.47 0 0 1 5.46 5.46 5.36 5.36 0 0 1 -0.31 1.8 0.49 0.49 0 0 1 -0.35 0.32 5.53 5.53 0 0 1 -1.34 0.16Z"
|
|
660
|
-
fill="currentColor"
|
|
661
|
-
stroke-width="1"></path>
|
|
662
|
-
</svg>`, Be = `<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
|
|
663
|
-
<path d="M3.500 5.000 A1.500 1.500 0 1 0 6.500 5.000 A1.500 1.500 0 1 0 3.500 5.000 Z" fill="currentColor"
|
|
664
|
-
stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
665
|
-
<path d="M5,2.25a.625.625,0,0,1-.625-.625v-1a.625.625,0,0,1,1.25,0v1A.625.625,0,0,1,5,2.25Z" fill="currentColor"
|
|
666
|
-
stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
667
|
-
<path d="M6.945,3.055a.623.623,0,0,1,0-.883l.707-.708a.625.625,0,0,1,.884.884l-.708.707A.623.623,0,0,1,6.945,3.055Z"
|
|
668
|
-
fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
669
|
-
<path d="M7.75,5a.625.625,0,0,1,.625-.625h1a.625.625,0,0,1,0,1.25h-1A.625.625,0,0,1,7.75,5Z" fill="currentColor"
|
|
670
|
-
stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
671
|
-
<path d="M6.945,6.945a.623.623,0,0,1,.883,0l.708.707a.625.625,0,0,1-.884.884l-.707-.708A.623.623,0,0,1,6.945,6.945Z"
|
|
672
|
-
fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
673
|
-
<path d="M5,7.75a.625.625,0,0,1,.625.625v1a.625.625,0,0,1-1.25,0v-1A.625.625,0,0,1,5,7.75Z" fill="currentColor"
|
|
674
|
-
stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
675
|
-
<path
|
|
676
|
-
d="M3.055,6.945a.623.623,0,0,1,0,.883l-.707.708a.625.625,0,0,1-.884-.884l.708-.707A.623.623,0,0,1,3.055,6.945Z"
|
|
677
|
-
fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
678
|
-
<path d="M2.25,5a.625.625,0,0,1-.625.625h-1a.625.625,0,0,1,0-1.25h1A.625.625,0,0,1,2.25,5Z" fill="currentColor"
|
|
679
|
-
stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
680
|
-
<path
|
|
681
|
-
d="M3.055,3.055a.623.623,0,0,1-.883,0l-.708-.707a.625.625,0,0,1,.884-.884l.707.708A.623.623,0,0,1,3.055,3.055Z"
|
|
682
|
-
fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
683
|
-
</svg>`, De = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 593 593">
|
|
684
|
-
<path fill="currentColor" fill-rule="evenodd"
|
|
685
|
-
d="M347 0c6 0 12 5 12 12v134l94-95c5-5 13-5 17 0l72 72c4 4 5 12 0 16v1l-95 94h134c7 0 12 5 12 12v101c0 7-5 12-12 12H447l95 94c4 5 5 13 0 17l-72 72c-4 4-12 5-16 0h-1l-94-95v134c0 7-5 12-12 12H246c-7 0-12-5-12-12v-70c0-22 9-43 24-59l130-130c14-14 14-37 0-51L259 142a84 84 0 0 1-25-59V12c0-7 5-12 12-12h101ZM138 52h1l219 219c14 14 14 37 0 51L139 542c-4 5-12 5-17 0l-71-70c-4-5-5-12 0-17l95-96H12c-7 0-12-5-12-12V246c0-7 5-12 12-12h134l-95-94c-4-5-4-12 0-17l71-71c4-5 12-5 16 0Z" />
|
|
686
|
-
</svg>`, Re = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 662 662">
|
|
687
|
-
<path fill-rule="evenodd" fill="currentColor"
|
|
688
|
-
d="M331 0a331 331 0 1 1 0 662 331 331 0 0 1 0-662Zm148.5 109 .6.9a187 187 0 1 1-297.6-.9 267 267 0 1 0 297 0Z" />
|
|
689
|
-
</svg>`, ze = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 620">
|
|
690
|
-
<path fill="currentColor"
|
|
691
|
-
d="M-.653 309.29c-.078 82.272 31.848 159.735 89.739 218.178l.283.283c122.379 121.247 319.824 121.184 440.16-.283 119.967-121.1 119.409-316.933-.998-437.339l-.99-.99C468.681 30.845 390.716-1.017 307.893-.67c-82.83.354-160.443 32.994-218.814 91.79C31.209 149.555-.724 227.025-.653 309.29Zm469.271-160.789.778.778c87.9 87.9 88.325 231.005.707 319.33-77.753 78.46-199.786 87.412-288.959 26.862l198.513-198.513-.007 166.361 83.68-.07v-306.22H157.11l-.008 83.6h160.584L121.994 436.323c-59.347-87.689-50.536-208.59 26.51-286.343C236.34 61.294 379.94 60.67 468.61 148.494Z" />
|
|
692
|
-
</svg>`, Pe = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 642 642" fill="currentColor">
|
|
693
|
-
<path
|
|
694
|
-
d="M321 0a321 321 0 1 1 0 642 321 321 0 0 1 0-642Zm51.3 63L321 189.5 269.7 63l1 136.5-95.8-97.2L228 228l-125.7-53.1 97.2 95.8-136.5-1L189.5 321 63 372.3l136.5-1-97.2 95.8 125.7-53-53.1 125.6 95.8-97.2-1 136.5L321 452.5 372.3 579l-1-136.5 95.8 97.2-53-125.7 125.6 53.1-97.2-95.8 136.5 1L452.5 321 579 269.7l-136.5 1 97.2-95.8L414 228l53.1-125.7-95.8 97.2 1-136.5Z" />
|
|
695
|
-
</svg>`, He = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 620" fill="currentColor">
|
|
696
|
-
<path
|
|
697
|
-
d="M529.2 90.8A310 310 0 1 0 90.8 529.2 310 310 0 0 0 529.2 90.8M122.4 498.2c-54.9-55-15.4-183.5 88.2-287 103.6-103.7 232.1-143.2 287-88.3 54.9 54.8 15.4 183.4-88.3 287-103.5 103.6-232 143.1-286.9 88.3m261.8-262.7A104.7 104.7 0 1 1 236 383.7a104.7 104.7 0 0 1 148.2-148.2" />
|
|
698
|
-
</svg>`, $e = `<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 14 14">
|
|
699
|
-
<path fill="none" stroke="currentColor" d="M14 3.4H0m14 7.2H0" />
|
|
700
|
-
</svg>`, Ge = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
|
|
701
|
-
<path fill="currentColor" fill-rule="evenodd"
|
|
702
|
-
d="M11.8214 0.0977942C12.1097 -0.00745677 12.4219 -0.0286524 12.7219 0.0367783C13.0248 0.102864 13.3024 0.254542 13.5216 0.47378C13.7408 0.693018 13.8925 0.970598 13.9586 1.27352C14.024 1.57344 14.0028 1.88572 13.8976 2.17395L10.3236 12.8859L10.3234 12.8866C10.2363 13.1501 10.083 13.3868 9.8781 13.574C9.6738 13.7606 9.42509 13.8918 9.15572 13.9549C8.8863 14.0206 8.60441 14.0151 8.33774 13.9389C8.07131 13.8628 7.82926 13.7187 7.63529 13.5209L5.71795 11.6124L3.70389 12.6538C3.54684 12.7351 3.35857 12.7273 3.20874 12.6334C3.05892 12.5395 2.96981 12.3735 2.9744 12.1967L3.05697 9.013L10.1019 3.8956C10.3812 3.69273 10.4432 3.30188 10.2403 3.02261C10.0374 2.74333 9.64659 2.68139 9.36731 2.88425L2.20283 8.08846L0.473125 6.35875L0.473067 6.3587L0.472941 6.35857C0.285618 6.17138 0.147716 5.9406 0.0716193 5.68694C-0.00393616 5.43509 -0.0162115 5.16853 0.0358379 4.91085C0.0879545 4.62934 0.213796 4.36664 0.400577 4.14957C0.588637 3.93101 0.83165 3.76664 1.1045 3.67345L1.10787 3.6723L1.10787 3.67231L11.8214 0.0977942Z"
|
|
703
|
-
clip-rule="evenodd"></path>
|
|
704
|
-
</svg>`, je = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor">
|
|
705
|
-
<path fill-rule="evenodd"
|
|
706
|
-
d="M12.6 11.2h.1l3 3a1 1 0 1 1-1.4 1.5l-3-3a1 1 0 0 1-.1-.1 7 7 0 1 1 1.4-1.4zM7 12A5 5 0 1 0 7 2a5 5 0 0 0 0 10z" />
|
|
707
|
-
</svg>`, D = /* @__PURE__ */ Object.assign({ "./Add.svg": ke, "./CheckMark.svg": Se, "./ChevronDown.svg": Ce, "./ChevronLeft.svg": xe, "./ChevronRight.svg": ye, "./ChevronUp.svg": Ee, "./Clipboard.svg": Le, "./Close.svg": Ae, "./DarkMode.svg": Te, "./Ellipses.svg": Me, "./ExternalLink.svg": Ie, "./GitHub.svg": Ne, "./LightDarkModeToggle.svg": Oe, "./LightMode.svg": Be, "./Logo.svg": De, "./LogoAPI.svg": Re, "./LogoClient.svg": ze, "./LogoMarket.svg": Pe, "./LogoSwagger.svg": He, "./Menu.svg": $e, "./PaperAirplane.svg": Ge, "./Search.svg": je }), Ve = (r) => {
|
|
602
|
+
}), R = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-MwmVL5-v.js"), "./CheckMark.svg": () => import("./CheckMark-t0gl4N9U.js"), "./ChevronDown.svg": () => import("./ChevronDown-CSOB0535.js"), "./ChevronLeft.svg": () => import("./ChevronLeft-DusxsQw-.js"), "./ChevronRight.svg": () => import("./ChevronRight-DgANAl_6.js"), "./ChevronUp.svg": () => import("./ChevronUp-BbfQZGKP.js"), "./Clipboard.svg": () => import("./Clipboard-CU_KxGEv.js"), "./Close.svg": () => import("./Close-DFM1qMQH.js"), "./DarkMode.svg": () => import("./DarkMode-CBsV8Q_I.js"), "./Ellipses.svg": () => import("./Ellipses-Bo_X36Hx.js"), "./ExternalLink.svg": () => import("./ExternalLink-D5zCsWas.js"), "./GitHub.svg": () => import("./GitHub-NdE6Zs9k.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"), "./arrow-chevron-down.svg": () => import("./arrow-chevron-down-DraTmtzQ.js"), "./arrow-chevron-left.svg": () => import("./arrow-chevron-left-AE5dugcd.js"), "./arrow-chevron-right.svg": () => import("./arrow-chevron-right-DbHwONUO.js"), "./arrow-chevron-up.svg": () => import("./arrow-chevron-up-C2T-G4GN.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") }), P = (r) => {
|
|
708
603
|
const t = `./${r}.svg`;
|
|
709
|
-
return
|
|
710
|
-
},
|
|
604
|
+
return R[t] ? J(R[t]) : (console.warn(`Could not find icon: ${r}`), null);
|
|
605
|
+
}, be = ["src"], j = /* @__PURE__ */ k({
|
|
711
606
|
__name: "ScalarIcon",
|
|
712
607
|
props: {
|
|
713
608
|
icon: {},
|
|
714
609
|
size: {}
|
|
715
610
|
},
|
|
716
611
|
setup(r) {
|
|
717
|
-
const t = r, e =
|
|
612
|
+
const t = r, e = I({
|
|
718
613
|
variants: {
|
|
719
614
|
size: {
|
|
720
615
|
xs: "h-3 w-3",
|
|
@@ -728,14 +623,16 @@ const fe = ["innerHTML"], ct = /* @__PURE__ */ S({
|
|
|
728
623
|
defaultVariants: {
|
|
729
624
|
size: "full"
|
|
730
625
|
}
|
|
731
|
-
}),
|
|
732
|
-
return (u,
|
|
626
|
+
}), d = P(t.icon);
|
|
627
|
+
return (u, f) => c(d) ? (g(), L(G(c(P)(u.icon)), {
|
|
733
628
|
key: 0,
|
|
734
|
-
class:
|
|
735
|
-
|
|
736
|
-
|
|
629
|
+
class: m(c(S)("scalar-icon", c(e)({ size: u.size })))
|
|
630
|
+
}, null, 8, ["class"])) : (g(), v("img", {
|
|
631
|
+
key: 1,
|
|
632
|
+
src: u.icon
|
|
633
|
+
}, null, 8, be));
|
|
737
634
|
}
|
|
738
|
-
}),
|
|
635
|
+
}), Se = ["ariaDisabled"], we = { class: "sr-only" }, ke = /* @__PURE__ */ k({
|
|
739
636
|
__name: "ScalarIconButton",
|
|
740
637
|
props: {
|
|
741
638
|
label: {},
|
|
@@ -745,7 +642,7 @@ const fe = ["innerHTML"], ct = /* @__PURE__ */ S({
|
|
|
745
642
|
size: { default: "md" }
|
|
746
643
|
},
|
|
747
644
|
setup(r) {
|
|
748
|
-
const t =
|
|
645
|
+
const t = I({
|
|
749
646
|
base: "scalar-icon-button grid aspect-square cursor-pointer rounded",
|
|
750
647
|
variants: {
|
|
751
648
|
size: {
|
|
@@ -757,19 +654,19 @@ const fe = ["innerHTML"], ct = /* @__PURE__ */ S({
|
|
|
757
654
|
disabled: {
|
|
758
655
|
true: "cursor-not-allowed shadow-none"
|
|
759
656
|
},
|
|
760
|
-
variant:
|
|
657
|
+
variant: V
|
|
761
658
|
}
|
|
762
659
|
});
|
|
763
|
-
return (e,
|
|
660
|
+
return (e, d) => (g(), v("button", {
|
|
764
661
|
ariaDisabled: e.disabled || void 0,
|
|
765
|
-
class:
|
|
662
|
+
class: m(c(S)(c(t)({ size: e.size, variant: e.variant, disabled: e.disabled }))),
|
|
766
663
|
type: "button"
|
|
767
664
|
}, [
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
], 10,
|
|
665
|
+
C(c(j), { icon: e.icon }, null, 8, ["icon"]),
|
|
666
|
+
w("span", we, _(e.label), 1)
|
|
667
|
+
], 10, Se));
|
|
771
668
|
}
|
|
772
|
-
}),
|
|
669
|
+
}), Be = () => z({
|
|
773
670
|
open: !1,
|
|
774
671
|
show() {
|
|
775
672
|
this.open = !0;
|
|
@@ -777,7 +674,7 @@ const fe = ["innerHTML"], ct = /* @__PURE__ */ S({
|
|
|
777
674
|
hide() {
|
|
778
675
|
this.open = !1;
|
|
779
676
|
}
|
|
780
|
-
}),
|
|
677
|
+
}), ye = /* @__PURE__ */ k({
|
|
781
678
|
__name: "ScalarModal",
|
|
782
679
|
props: {
|
|
783
680
|
state: {},
|
|
@@ -788,7 +685,7 @@ const fe = ["innerHTML"], ct = /* @__PURE__ */ S({
|
|
|
788
685
|
variant: {}
|
|
789
686
|
},
|
|
790
687
|
setup(r) {
|
|
791
|
-
const t =
|
|
688
|
+
const t = I({
|
|
792
689
|
base: [
|
|
793
690
|
"scalar-modal",
|
|
794
691
|
"col leading-snug relative mx-auto mb-0 mt-20 w-full rounded-lg bg-back-2 text-left text-fore-1 opacity-0"
|
|
@@ -806,46 +703,46 @@ const fe = ["innerHTML"], ct = /* @__PURE__ */ S({
|
|
|
806
703
|
}
|
|
807
704
|
}
|
|
808
705
|
});
|
|
809
|
-
return (e,
|
|
706
|
+
return (e, d) => (g(), L(c(re), {
|
|
810
707
|
open: e.state.open,
|
|
811
|
-
onClose:
|
|
708
|
+
onClose: d[0] || (d[0] = (u) => e.state.hide())
|
|
812
709
|
}, {
|
|
813
|
-
default:
|
|
814
|
-
|
|
815
|
-
class:
|
|
816
|
-
c(
|
|
710
|
+
default: T(() => [
|
|
711
|
+
w("div", {
|
|
712
|
+
class: m(
|
|
713
|
+
c(S)(
|
|
817
714
|
"scalar-modal-layout fixed left-0 top-0",
|
|
818
715
|
"z-[1001] h-[100dvh] w-[100dvw]",
|
|
819
716
|
"bg-backdrop p-5 opacity-0"
|
|
820
717
|
)
|
|
821
718
|
)
|
|
822
719
|
}, [
|
|
823
|
-
|
|
824
|
-
class:
|
|
825
|
-
style:
|
|
720
|
+
C(c(ae), {
|
|
721
|
+
class: m(c(t)({ size: e.size, variant: e.variant })),
|
|
722
|
+
style: F({ maxWidth: e.maxWidth })
|
|
826
723
|
}, {
|
|
827
|
-
default:
|
|
828
|
-
e.title ? (
|
|
724
|
+
default: T(() => [
|
|
725
|
+
e.title ? (g(), L(c(oe), {
|
|
829
726
|
key: 0,
|
|
830
|
-
class:
|
|
727
|
+
class: m(["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" }])
|
|
831
728
|
}, {
|
|
832
|
-
default:
|
|
833
|
-
|
|
729
|
+
default: T(() => [
|
|
730
|
+
Z(_(e.title), 1)
|
|
834
731
|
]),
|
|
835
732
|
_: 1
|
|
836
|
-
}, 8, ["class"])) :
|
|
837
|
-
|
|
838
|
-
class:
|
|
733
|
+
}, 8, ["class"])) : E("", !0),
|
|
734
|
+
C(c(ne), {
|
|
735
|
+
class: m([
|
|
839
736
|
"scalar-modal-body relative max-h-[calc(100dvh-240px)] overflow-y-auto rounded-lg bg-back-1 px-6 pb-4 pt-6",
|
|
840
|
-
c(
|
|
737
|
+
c(S)(
|
|
841
738
|
e.bodyClass,
|
|
842
739
|
e.variant === "history" && "pt-3",
|
|
843
740
|
e.variant === "search" && "col max-h-[440px] overflow-hidden p-0"
|
|
844
741
|
)
|
|
845
742
|
])
|
|
846
743
|
}, {
|
|
847
|
-
default:
|
|
848
|
-
|
|
744
|
+
default: T(() => [
|
|
745
|
+
N(e.$slots, "default", {}, void 0, !0)
|
|
849
746
|
]),
|
|
850
747
|
_: 3
|
|
851
748
|
}, 8, ["class"])
|
|
@@ -857,7 +754,7 @@ const fe = ["innerHTML"], ct = /* @__PURE__ */ S({
|
|
|
857
754
|
_: 3
|
|
858
755
|
}, 8, ["open"]));
|
|
859
756
|
}
|
|
860
|
-
}),
|
|
757
|
+
}), Ee = /* @__PURE__ */ D(ye, [["__scopeId", "data-v-ff85ced0"]]), _e = { class: "scalar-input-container relative" }, Ie = ["for"], Te = { class: "icon-slot cursor-pointer text-ghost hover:text-fore-1 !empty:flex !empty:w-7 !empty:items-center !empty:pr-3" }, Ae = /* @__PURE__ */ k({
|
|
861
758
|
__name: "ScalarTextField",
|
|
862
759
|
props: {
|
|
863
760
|
modelValue: {},
|
|
@@ -874,7 +771,7 @@ const fe = ["innerHTML"], ct = /* @__PURE__ */ S({
|
|
|
874
771
|
},
|
|
875
772
|
emits: ["submit", "update:modelValue"],
|
|
876
773
|
setup(r, { emit: t }) {
|
|
877
|
-
const e = r,
|
|
774
|
+
const e = r, d = t, u = I({
|
|
878
775
|
base: "scalar-input-wrapper relative flex items-center rounded border border-solid border-border",
|
|
879
776
|
variants: {
|
|
880
777
|
focus: {
|
|
@@ -882,39 +779,39 @@ const fe = ["innerHTML"], ct = /* @__PURE__ */ S({
|
|
|
882
779
|
},
|
|
883
780
|
error: { true: "scalar-input-wrapper-error border-error" }
|
|
884
781
|
}
|
|
885
|
-
}),
|
|
886
|
-
let
|
|
782
|
+
}), f = M(), a = f.id || `id-${ie()}`, n = x(), o = x(!1);
|
|
783
|
+
let s;
|
|
887
784
|
if (e.isMultiline) {
|
|
888
785
|
const { triggerResize: i } = se({
|
|
889
|
-
element:
|
|
786
|
+
element: n,
|
|
890
787
|
input: e.modelValue
|
|
891
788
|
});
|
|
892
|
-
|
|
789
|
+
s = i;
|
|
893
790
|
}
|
|
894
791
|
function p(i) {
|
|
895
792
|
const b = i.target.value;
|
|
896
|
-
e.isMultiline &&
|
|
793
|
+
e.isMultiline && s(), e.handleFieldChange ? e.handleFieldChange(b) : d("update:modelValue", b);
|
|
897
794
|
}
|
|
898
|
-
function
|
|
899
|
-
const b = i.target,
|
|
900
|
-
e.handleFieldSubmit ? e.handleFieldSubmit(
|
|
795
|
+
function l(i) {
|
|
796
|
+
const b = i.target, y = e.disableTrim || e.isMultiline ? b.value : b.value.trim();
|
|
797
|
+
e.handleFieldSubmit ? e.handleFieldSubmit(y) : d("submit", y);
|
|
901
798
|
}
|
|
902
|
-
function
|
|
903
|
-
|
|
799
|
+
function h(i) {
|
|
800
|
+
o.value = !1, e.emitOnBlur && e.modelValue && l(i);
|
|
904
801
|
}
|
|
905
|
-
return
|
|
802
|
+
return B(() => {
|
|
906
803
|
var i;
|
|
907
|
-
Object.prototype.hasOwnProperty.call(
|
|
908
|
-
}), (i, b) => (
|
|
909
|
-
|
|
910
|
-
class:
|
|
804
|
+
Object.prototype.hasOwnProperty.call(f, "autofocus") && ((i = n.value) == null || i.focus());
|
|
805
|
+
}), (i, b) => (g(), v("div", _e, [
|
|
806
|
+
w("div", {
|
|
807
|
+
class: m(c(u)({ error: i.error, focus: o.value }))
|
|
911
808
|
}, [
|
|
912
|
-
(
|
|
809
|
+
(g(), L(G(i.isMultiline ? "textarea" : "input"), H({ id: c(a) }, i.$attrs, {
|
|
913
810
|
ref_key: "input",
|
|
914
|
-
ref:
|
|
811
|
+
ref: n,
|
|
915
812
|
class: [
|
|
916
813
|
"scalar-input",
|
|
917
|
-
c(
|
|
814
|
+
c(S)(
|
|
918
815
|
{ "min-h-[77px]": i.isMultiline },
|
|
919
816
|
"z-10 w-full resize-none appearance-none border-0 bg-transparent p-3 text-sm text-fore-1",
|
|
920
817
|
"outline-none transition-opacity"
|
|
@@ -922,41 +819,41 @@ const fe = ["innerHTML"], ct = /* @__PURE__ */ S({
|
|
|
922
819
|
],
|
|
923
820
|
placeholder: i.placeholder,
|
|
924
821
|
value: i.modelValue,
|
|
925
|
-
onBlur:
|
|
926
|
-
onFocus: b[0] || (b[0] = (
|
|
822
|
+
onBlur: h,
|
|
823
|
+
onFocus: b[0] || (b[0] = (y) => o.value = !0),
|
|
927
824
|
onInput: p,
|
|
928
|
-
onKeyup: Q(
|
|
825
|
+
onKeyup: Q(l, ["enter"])
|
|
929
826
|
}), null, 16, ["id", "class", "placeholder", "value"])),
|
|
930
|
-
i.label ? (
|
|
827
|
+
i.label ? (g(), v("label", {
|
|
931
828
|
key: 0,
|
|
932
|
-
class:
|
|
933
|
-
c(
|
|
829
|
+
class: m(
|
|
830
|
+
c(S)(
|
|
934
831
|
"scalar-input-label pointer-events-none absolute left-0 top-0 mx-2 my-3 px-1 text-xs",
|
|
935
832
|
"shadow-current z-10 origin-top-left rounded text-fore-3 transition-transform"
|
|
936
833
|
)
|
|
937
834
|
),
|
|
938
835
|
for: c(a),
|
|
939
|
-
style:
|
|
836
|
+
style: F({
|
|
940
837
|
"box-shadow": `0 0 4px 4px ${i.labelShadowColor}`,
|
|
941
838
|
"background-color": i.labelShadowColor
|
|
942
839
|
})
|
|
943
|
-
},
|
|
944
|
-
|
|
945
|
-
|
|
840
|
+
}, _(i.label), 15, Ie)) : E("", !0),
|
|
841
|
+
w("div", Te, [
|
|
842
|
+
N(i.$slots, "default", {}, void 0, !0)
|
|
946
843
|
])
|
|
947
844
|
], 2),
|
|
948
|
-
|
|
949
|
-
class:
|
|
950
|
-
c(
|
|
845
|
+
w("span", {
|
|
846
|
+
class: m(
|
|
847
|
+
c(S)(
|
|
951
848
|
"helper-text before:rounded-full mt-1.5 flex items-center text-xs text-error before:font-black",
|
|
952
849
|
"before:mr-1.5 before:block before:h-4 before:w-4 before:text-center before:text-xxs before:leading-4",
|
|
953
850
|
"before:bg-error before:text-white before:content-['!'] empty:hidden"
|
|
954
851
|
)
|
|
955
852
|
)
|
|
956
|
-
},
|
|
853
|
+
}, _(i.helperText), 3)
|
|
957
854
|
]));
|
|
958
855
|
}
|
|
959
|
-
}),
|
|
856
|
+
}), Ne = /* @__PURE__ */ D(Ae, [["__scopeId", "data-v-4717ec50"]]), Ge = {
|
|
960
857
|
boxShadow: {
|
|
961
858
|
DEFAULT: "var(--theme-shadow-1, var(--default-theme-shadow-1))",
|
|
962
859
|
md: "var(--theme-shadow-2, var(--default-theme-shadow-2))",
|
|
@@ -988,7 +885,7 @@ const fe = ["innerHTML"], ct = /* @__PURE__ */ S({
|
|
|
988
885
|
ghost: "var(--theme-color-ghost, var(--default-theme-color-ghost))",
|
|
989
886
|
transparent: "transparent"
|
|
990
887
|
}
|
|
991
|
-
},
|
|
888
|
+
}, Fe = {
|
|
992
889
|
borderRadius: {
|
|
993
890
|
DEFAULT: "var(--theme-radius, var(--default-theme-radius))",
|
|
994
891
|
md: "var(--theme-radius, var(--default-theme-radius))",
|
|
@@ -1012,22 +909,22 @@ const fe = ["innerHTML"], ct = /* @__PURE__ */ S({
|
|
|
1012
909
|
"screen-md": "640px",
|
|
1013
910
|
"screen-lg": "800px"
|
|
1014
911
|
}
|
|
1015
|
-
},
|
|
912
|
+
}, Ue = {
|
|
1016
913
|
install: (r) => {
|
|
1017
|
-
r.component("ScalarButton",
|
|
914
|
+
r.component("ScalarButton", fe), r.component("ScalarIcon", j), r.component("ScalarIconButton", ke), r.component("ScalarLoading", U), r.component("ScalarModal", Ee), r.component("ScalarTextField", Ne);
|
|
1018
915
|
}
|
|
1019
916
|
};
|
|
1020
917
|
export {
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
918
|
+
fe as ScalarButton,
|
|
919
|
+
He as ScalarCodeBlock,
|
|
920
|
+
j as ScalarIcon,
|
|
921
|
+
ke as ScalarIconButton,
|
|
922
|
+
U as ScalarLoading,
|
|
923
|
+
Ee as ScalarModal,
|
|
924
|
+
Ne as ScalarTextField,
|
|
925
|
+
Ue as default,
|
|
926
|
+
Fe as extend,
|
|
927
|
+
Ge as theme,
|
|
928
|
+
Me as useLoadingState,
|
|
929
|
+
Be as useModal
|
|
1033
930
|
};
|