@scalar/components 0.6.1 → 0.7.4

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