@scalar/components 0.13.56 → 0.13.57
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/components/ScalarButton/ScalarButton.vue.js +9 -9
- package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue.js +8 -8
- package/dist/components/ScalarColorModeToggle/ScalarColorModeToggle.vue.js +3 -3
- package/dist/components/ScalarColorModeToggle/ScalarColorModeToggleButton.vue.js +2 -2
- package/dist/components/ScalarColorModeToggle/ScalarColorModeToggleIcon.vue2.js +2 -2
- package/dist/components/ScalarCombobox/ScalarCombobox.vue.js +2 -2
- package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.js +5 -5
- package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.js +7 -7
- package/dist/components/ScalarCombobox/ScalarComboboxOptionGroup.vue.js +3 -3
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.js +3 -3
- package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.js +2 -2
- package/dist/components/ScalarContextMenu/ScalarContextMenu.vue.js +2 -2
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.js +5 -5
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue2.js +2 -2
- package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.js +2 -2
- package/dist/components/ScalarDropdown/ScalarDropdownItem.vue2.js +2 -2
- package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.js +2 -2
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue.js +3 -3
- package/dist/components/ScalarFloating/ScalarFloating.vue.js +6 -6
- package/dist/components/ScalarFloating/ScalarFloatingBackdrop.vue.js +2 -2
- package/dist/components/ScalarForm/ScalarForm.vue.js +2 -2
- package/dist/components/ScalarForm/ScalarFormField.vue.js +1 -1
- package/dist/components/ScalarForm/ScalarFormSection.vue.js +2 -2
- package/dist/components/ScalarHeader/ScalarHeader.vue.js +2 -2
- package/dist/components/ScalarHeader/ScalarHeaderButton.vue.js +2 -2
- package/dist/components/ScalarIcon/ScalarIcon.vue2.js +2 -2
- package/dist/components/ScalarIcon/icons/Add.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/AddTab.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Alert.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/ArrowLeft.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/ArrowRight.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Brackets.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Branch.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Changelog.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Checkmark.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/ChevronDown.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/ChevronLeft.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/ChevronRight.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/ChevronUp.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Clipboard.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Close.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/CloseTab.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/CloseTabs.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Cloud.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/CodeFolder.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Cog.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Collection.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Cookie.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/DarkMode.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Delete.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Discord.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/DocsPage.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Download.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Duplicate.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Edit.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Ellipses.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Email.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Error.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Example.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/ExternalLink.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/FilterList.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Folder.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/GitHub.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/GitHubLine.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Globe.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Google.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Help.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Hide.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/History.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/House.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Import.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Info.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Key.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Leave.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/LightDarkModeToggle.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/LightMode.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Link.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Lock.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Logo.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Magic.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Markdown.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Menu.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/NotAllowed.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Page.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Pencil.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Play.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Refresh.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Roadmap.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Scribble.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Search.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Server.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Settings.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Show.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Sort.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Terminal.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Trash.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Unlock.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Unwatch.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Upload.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/User.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/UserSwitch.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Users.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Versions.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Wallet.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Watch.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/Workspace.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-framework-angular.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-framework-astro.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-framework-laravel.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-framework-nextdotjs.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-framework-react.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-framework-vuedotjs.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-c.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-clojure.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-csharp.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-css3.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-dart.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-go.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-html5.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-http.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-java.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-javascript.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-json.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-kotlin.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-node.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-objc.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-ocaml.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-php.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-powershell.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-python.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-r.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-ruby.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-scala.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-shell.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-swift.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-language-typescript.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-script-code.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-tool-git.svg.js +2 -2
- package/dist/components/ScalarIcon/icons/programming-tool-tailwindcss.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Adonisjs.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Docusaurus.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Dotnet.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Elysiajs.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Express.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Fastapi.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Fastify.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Go.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Hono.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Laravel.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Litestar.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Nestjs.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Nextjs.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Nitro.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Nuxt.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Openapi.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Platformatic.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/React.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Rust.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Svelte.svg.js +2 -2
- package/dist/components/ScalarIcon/logos/Vue.svg.js +2 -2
- package/dist/components/ScalarIconButton/ScalarIconButton.vue.js +2 -2
- package/dist/components/ScalarListbox/ScalarListbox.vue.js +8 -8
- package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.js +3 -3
- package/dist/components/ScalarListbox/ScalarListboxItem.vue.js +2 -2
- package/dist/components/ScalarLoading/ScalarLoading.vue2.js +8 -8
- package/dist/components/ScalarMarkdown/ScalarMarkdown.vue.js +4 -4
- package/dist/components/ScalarMenu/ScalarMenu.vue.js +2 -2
- package/dist/components/ScalarMenu/ScalarMenuButton.vue.js +6 -6
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.js +1 -1
- package/dist/components/ScalarMenu/ScalarMenuProduct.vue.js +2 -2
- package/dist/components/ScalarMenu/ScalarMenuProducts.vue.js +2 -2
- package/dist/components/ScalarMenu/ScalarMenuResources.vue.js +2 -2
- package/dist/components/ScalarMenu/ScalarMenuSection.vue.js +4 -4
- package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.js +1 -1
- package/dist/components/ScalarMenu/ScalarMenuTeamProfile.vue.js +5 -5
- package/dist/components/ScalarModal/ScalarModal.vue2.js +1 -1
- package/dist/components/ScalarPopover/ScalarPopover.vue.js +5 -5
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue2.js +1 -1
- package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.js +13 -13
- package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.js +2 -2
- package/dist/components/ScalarSidebar/ScalarSidebar.vue.js +2 -2
- package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.js +7 -7
- package/dist/components/ScalarSidebar/ScalarSidebarFooter.vue.js +2 -2
- package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.js +3 -3
- package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.js +4 -4
- package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue2.js +6 -6
- package/dist/components/ScalarSidebar/ScalarSidebarItem.vue.js +2 -2
- package/dist/components/ScalarSidebar/ScalarSidebarItems.vue.js +2 -2
- package/dist/components/ScalarTeleport/ScalarTeleport.vue.js +2 -2
- package/dist/components/ScalarTeleport/ScalarTeleportRoot.vue.js +2 -2
- package/dist/components/ScalarTextArea/ScalarTextArea.vue.js +2 -2
- package/dist/components/ScalarTextInput/ScalarTextInput.vue.js +6 -6
- package/dist/components/ScalarToggle/ScalarToggle.vue.js +3 -3
- package/dist/components/ScalarTooltip/ScalarTooltip.vue.js +3 -3
- package/dist/components/ScalarVirtualText/ScalarVirtualText.vue.js +3 -3
- package/dist/index.js +112 -112
- package/package.json +8 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f,
|
|
1
|
+
import { defineComponent as f, createElementBlock as a, openBlock as i, mergeProps as m, unref as o, createCommentVNode as r, renderSlot as l, normalizeClass as u, createVNode as g } from "vue";
|
|
2
2
|
import { useBindCx as b } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
import { variants as v } from "./variants.js";
|
|
4
4
|
import y from "../ScalarLoading/ScalarLoading.vue.js";
|
|
@@ -20,7 +20,7 @@ const h = ["ariaDisabled", "type"], c = {
|
|
|
20
20
|
const { cx: p } = b();
|
|
21
21
|
return (e, B) => {
|
|
22
22
|
var s, n, t, d;
|
|
23
|
-
return
|
|
23
|
+
return i(), a("button", m(
|
|
24
24
|
{
|
|
25
25
|
ariaDisabled: e.disabled || void 0,
|
|
26
26
|
type: e.type
|
|
@@ -29,24 +29,24 @@ const h = ["ariaDisabled", "type"], c = {
|
|
|
29
29
|
relative: (s = e.loading) == null ? void 0 : s.isLoading
|
|
30
30
|
})
|
|
31
31
|
), [
|
|
32
|
-
e.$slots.icon ? (
|
|
32
|
+
e.$slots.icon ? (i(), a("div", {
|
|
33
33
|
key: 0,
|
|
34
|
-
class:
|
|
34
|
+
class: u(["mr-2 h-4 w-4", { invisible: (n = e.loading) == null ? void 0 : n.isLoading }])
|
|
35
35
|
}, [
|
|
36
36
|
l(e.$slots, "icon")
|
|
37
|
-
], 2)) :
|
|
38
|
-
e.loading ? (
|
|
37
|
+
], 2)) : r("", !0),
|
|
38
|
+
e.loading ? (i(), a("span", {
|
|
39
39
|
key: 1,
|
|
40
|
-
class:
|
|
40
|
+
class: u({ invisible: (t = e.loading) == null ? void 0 : t.isLoading })
|
|
41
41
|
}, [
|
|
42
42
|
l(e.$slots, "default")
|
|
43
43
|
], 2)) : l(e.$slots, "default", { key: 2 }),
|
|
44
|
-
(d = e.loading) != null && d.isLoading ? (
|
|
44
|
+
(d = e.loading) != null && d.isLoading ? (i(), a("div", c, [
|
|
45
45
|
g(o(y), {
|
|
46
46
|
loadingState: e.loading,
|
|
47
47
|
size: "xs"
|
|
48
48
|
}, null, 8, ["loadingState"])
|
|
49
|
-
])) :
|
|
49
|
+
])) : r("", !0)
|
|
50
50
|
], 16, h);
|
|
51
51
|
};
|
|
52
52
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, computed as s,
|
|
1
|
+
import { defineComponent as f, computed as s, createElementBlock as o, openBlock as n, createCommentVNode as a, createElementVNode as c, unref as l, createVNode as y } from "vue";
|
|
2
2
|
import { syntaxHighlight as b, standardLanguages as C } from "@scalar/code-highlight";
|
|
3
3
|
import { useClipboard as g } from "@scalar/use-hooks/useClipboard";
|
|
4
4
|
import { prettyPrintJson as i } from "../../helpers/oas-utils.js";
|
|
@@ -25,22 +25,22 @@ const k = {
|
|
|
25
25
|
lineNumbers: e.lineNumbers,
|
|
26
26
|
maskCredentials: e.hideCredentials
|
|
27
27
|
}).slice(5, -6)), { copyToClipboard: p } = g(), m = s(() => e.content !== null && e.content !== "null" && e.content !== "404 Not Found");
|
|
28
|
-
return (r, t) => (
|
|
29
|
-
r.copy ? (
|
|
30
|
-
m.value ? (
|
|
28
|
+
return (r, t) => (n(), o("div", k, [
|
|
29
|
+
r.copy ? (n(), o("div", N, [
|
|
30
|
+
m.value ? (n(), o("button", {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "copy-button",
|
|
33
33
|
type: "button",
|
|
34
34
|
onClick: t[0] || (t[0] = (v) => l(p)(l(i)(e.content)))
|
|
35
35
|
}, [
|
|
36
|
-
t[1] || (t[1] =
|
|
36
|
+
t[1] || (t[1] = c("span", { class: "sr-only" }, "Copy content", -1)),
|
|
37
37
|
y(l(h), {
|
|
38
38
|
icon: "Clipboard",
|
|
39
39
|
size: "md"
|
|
40
40
|
})
|
|
41
|
-
])) :
|
|
42
|
-
])) :
|
|
43
|
-
|
|
41
|
+
])) : a("", !0)
|
|
42
|
+
])) : a("", !0),
|
|
43
|
+
c("pre", {
|
|
44
44
|
class: "scalar-codeblock-pre",
|
|
45
45
|
innerHTML: u.value
|
|
46
46
|
}, null, 8, _)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, computed as c,
|
|
1
|
+
import { defineComponent as u, computed as c, createBlock as r, openBlock as t, unref as o, isRef as s } from "vue";
|
|
2
2
|
import { useColorMode as p } from "@scalar/use-hooks/useColorMode";
|
|
3
3
|
import f from "./ScalarColorModeToggleButton.vue.js";
|
|
4
4
|
import _ from "./ScalarColorModeToggleIcon.vue.js";
|
|
@@ -12,12 +12,12 @@ const k = {}, S = /* @__PURE__ */ u({
|
|
|
12
12
|
const { isDarkMode: e, toggleColorMode: n, darkLightMode: i } = p(), l = c(
|
|
13
13
|
() => e.value ? "Set light mode" : "Set dark mode"
|
|
14
14
|
);
|
|
15
|
-
return (d, a) => d.variant === "switch" ? (
|
|
15
|
+
return (d, a) => d.variant === "switch" ? (t(), r(f, {
|
|
16
16
|
key: 0,
|
|
17
17
|
modelValue: o(e),
|
|
18
18
|
"onUpdate:modelValue": a[0] || (a[0] = (m) => s(e) ? e.value = m : null),
|
|
19
19
|
"aria-label": l.value
|
|
20
|
-
}, null, 8, ["modelValue", "aria-label"])) : (
|
|
20
|
+
}, null, 8, ["modelValue", "aria-label"])) : (t(), r(_, {
|
|
21
21
|
key: 1,
|
|
22
22
|
"aria-label": l.value,
|
|
23
23
|
mode: o(i),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n, useModel as s,
|
|
1
|
+
import { defineComponent as n, useModel as s, createElementBlock as i, openBlock as u, mergeProps as a, unref as d, createElementVNode as t, normalizeClass as m, createVNode as f } from "vue";
|
|
2
2
|
import { useBindCx as p } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
import c from "./ScalarColorModeToggleIcon.vue.js";
|
|
4
4
|
const g = ["aria-pressed"], x = {}, B = /* @__PURE__ */ n({
|
|
@@ -12,7 +12,7 @@ const g = ["aria-pressed"], x = {}, B = /* @__PURE__ */ n({
|
|
|
12
12
|
emits: ["update:modelValue"],
|
|
13
13
|
setup(l) {
|
|
14
14
|
const { cx: r } = p(), e = s(l, "modelValue");
|
|
15
|
-
return (b, o) => (
|
|
15
|
+
return (b, o) => (u(), i("button", a(
|
|
16
16
|
{
|
|
17
17
|
"aria-pressed": e.value,
|
|
18
18
|
type: "button"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as a, computed as r,
|
|
1
|
+
import { defineComponent as a, computed as r, createBlock as i, openBlock as c, resolveDynamicComponent as u, mergeProps as m, unref as p, withCtx as g, createElementVNode as e } from "vue";
|
|
2
2
|
import { useBindCx as d } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
const f = {}, _ = /* @__PURE__ */ a({
|
|
4
4
|
...f,
|
|
@@ -12,7 +12,7 @@ const f = {}, _ = /* @__PURE__ */ a({
|
|
|
12
12
|
const { cx: n } = d(), s = r(
|
|
13
13
|
() => l.mode === "dark" ? "Set light mode" : "Set dark mode"
|
|
14
14
|
);
|
|
15
|
-
return (o, t) => (
|
|
15
|
+
return (o, t) => (c(), i(u(o.is), m({
|
|
16
16
|
"aria-label": s.value,
|
|
17
17
|
class: `toggle-icon-${o.mode}`,
|
|
18
18
|
type: o.is === "button" ? "button" : void 0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m,
|
|
1
|
+
import { defineComponent as m, createBlock as p, openBlock as d, withCtx as l, createVNode as s, createSlots as n, renderSlot as t } from "vue";
|
|
2
2
|
import f from "./ScalarComboboxOptions.vue.js";
|
|
3
3
|
import i from "./ScalarComboboxPopover.vue.js";
|
|
4
4
|
const c = /* @__PURE__ */ m({
|
|
@@ -16,7 +16,7 @@ const c = /* @__PURE__ */ m({
|
|
|
16
16
|
},
|
|
17
17
|
emits: ["update:modelValue"],
|
|
18
18
|
setup(u) {
|
|
19
|
-
return (e, V) => (
|
|
19
|
+
return (e, V) => (d(), p(i, {
|
|
20
20
|
middleware: e.middleware,
|
|
21
21
|
offset: e.offset,
|
|
22
22
|
placement: e.placement ?? "bottom-start",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, ref as f,
|
|
1
|
+
import { defineComponent as d, ref as f, createBlock as p, openBlock as n, withCtx as l, renderSlot as a, createCommentVNode as u, createSlots as b } from "vue";
|
|
2
2
|
import $ from "./ScalarComboboxOptions.vue.js";
|
|
3
3
|
import V from "./ScalarComboboxPopover.vue.js";
|
|
4
4
|
const w = /* @__PURE__ */ d({
|
|
@@ -18,7 +18,7 @@ const w = /* @__PURE__ */ d({
|
|
|
18
18
|
emits: ["update:modelValue", "delete"],
|
|
19
19
|
setup(y, { expose: i }) {
|
|
20
20
|
const s = f(null);
|
|
21
|
-
return i({ comboboxPopoverRef: s }), (e, o) => (
|
|
21
|
+
return i({ comboboxPopoverRef: s }), (e, o) => (n(), p(V, {
|
|
22
22
|
ref_key: "comboboxPopoverRef",
|
|
23
23
|
ref: s,
|
|
24
24
|
middleware: e.middleware,
|
|
@@ -31,7 +31,7 @@ const w = /* @__PURE__ */ d({
|
|
|
31
31
|
popover: l(({ open: t }) => {
|
|
32
32
|
var m;
|
|
33
33
|
return [
|
|
34
|
-
(m = e.options) != null && m.length ? (
|
|
34
|
+
(m = e.options) != null && m.length ? (n(), p($, {
|
|
35
35
|
key: 0,
|
|
36
36
|
isDeletable: e.isDeletable,
|
|
37
37
|
modelValue: e.modelValue,
|
|
@@ -41,7 +41,7 @@ const w = /* @__PURE__ */ d({
|
|
|
41
41
|
placeholder: e.placeholder,
|
|
42
42
|
onDelete: o[0] || (o[0] = (r) => e.$emit("delete", r)),
|
|
43
43
|
"onUpdate:modelValue": o[1] || (o[1] = (r) => e.$emit("update:modelValue", r))
|
|
44
|
-
},
|
|
44
|
+
}, b({ _: 2 }, [
|
|
45
45
|
e.$slots.before ? {
|
|
46
46
|
name: "before",
|
|
47
47
|
fn: l(() => [
|
|
@@ -56,7 +56,7 @@ const w = /* @__PURE__ */ d({
|
|
|
56
56
|
]),
|
|
57
57
|
key: "1"
|
|
58
58
|
} : void 0
|
|
59
|
-
]), 1032, ["isDeletable", "modelValue", "open", "options", "placeholder"])) :
|
|
59
|
+
]), 1032, ["isDeletable", "modelValue", "open", "options", "placeholder"])) : u("", !0)
|
|
60
60
|
];
|
|
61
61
|
}),
|
|
62
62
|
default: l(() => [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as s,
|
|
1
|
+
import { defineComponent as s, createElementBlock as r, openBlock as l, normalizeClass as n, unref as t, createVNode as i, createElementVNode as c, createBlock as p, createCommentVNode as m, normalizeStyle as d, renderSlot as u, withModifiers as f } from "vue";
|
|
2
2
|
import { cva as b, cx as y } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
import v from "../ScalarListbox/ScalarListboxCheckbox.vue.js";
|
|
4
4
|
import k from "../ScalarIcon/ScalarIcon.vue.js";
|
|
@@ -36,20 +36,20 @@ const g = ["aria-selected"], B = { class: "inline-block min-w-0 flex-1 truncate
|
|
|
36
36
|
}, [
|
|
37
37
|
i(t(v), {
|
|
38
38
|
selected: e.selected,
|
|
39
|
-
style:
|
|
39
|
+
style: d(e.style)
|
|
40
40
|
}, null, 8, ["selected", "style"]),
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
c("span", B, [
|
|
42
|
+
u(e.$slots, "default")
|
|
43
43
|
]),
|
|
44
|
-
e.isDeletable ? (l(),
|
|
44
|
+
e.isDeletable ? (l(), p(t(k), {
|
|
45
45
|
key: 0,
|
|
46
46
|
"aria-label": "Delete",
|
|
47
47
|
class: "text-c-2 opacity-0 group-hover/item:opacity-100",
|
|
48
48
|
icon: "Delete",
|
|
49
49
|
size: "md",
|
|
50
50
|
thickness: "1.5",
|
|
51
|
-
onClick: o[0] || (o[0] =
|
|
52
|
-
})) :
|
|
51
|
+
onClick: o[0] || (o[0] = f((x) => e.$emit("delete"), ["stop"]))
|
|
52
|
+
})) : m("", !0)
|
|
53
53
|
], 10, g));
|
|
54
54
|
}
|
|
55
55
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as t, useId as a,
|
|
1
|
+
import { defineComponent as t, useId as a, createElementBlock as o, openBlock as d, createCommentVNode as i, renderSlot as l } from "vue";
|
|
2
2
|
const n = ["id", "aria-labelledby", "role"], r = ["id"], m = /* @__PURE__ */ t({
|
|
3
3
|
__name: "ScalarComboboxOptionGroup",
|
|
4
4
|
props: {
|
|
@@ -6,13 +6,13 @@ const n = ["id", "aria-labelledby", "role"], r = ["id"], m = /* @__PURE__ */ t({
|
|
|
6
6
|
hidden: { type: Boolean, default: !1 }
|
|
7
7
|
},
|
|
8
8
|
setup(s) {
|
|
9
|
-
return (e, p) => (
|
|
9
|
+
return (e, p) => (d(), o("div", {
|
|
10
10
|
id: e.id,
|
|
11
11
|
"aria-labelledby": e.id ? `${e.id}-label` : void 0,
|
|
12
12
|
class: "contents",
|
|
13
13
|
role: e.hidden ? void 0 : "group"
|
|
14
14
|
}, [
|
|
15
|
-
e.hidden ? i("", !0) : (
|
|
15
|
+
e.hidden ? i("", !0) : (d(), o("div", {
|
|
16
16
|
key: 0,
|
|
17
17
|
id: `${e.id}-label`,
|
|
18
18
|
class: "min-w-0 truncate px-2.5 py-1.5 text-left text-c-2"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as O, useId as q, computed as b, ref as D, onMounted as F, watch as G,
|
|
1
|
+
import { defineComponent as O, useId as q, computed as b, ref as D, onMounted as F, watch as G, createElementBlock as y, openBlock as c, Fragment as $, createElementVNode as w, withDirectives as C, createVNode as U, unref as j, withKeys as x, withModifiers as h, vModelText as H, renderSlot as S, renderList as B, createBlock as M, withCtx as V, createCommentVNode as J, normalizeStyle as P, createTextVNode as E, toDisplayString as N, vShow as Q } from "vue";
|
|
2
2
|
import R from "./ScalarComboboxOption.vue.js";
|
|
3
3
|
import W from "./ScalarComboboxOptionGroup.vue.js";
|
|
4
4
|
import { isGroups as L } from "./types.js";
|
|
@@ -116,7 +116,7 @@ const Y = { class: "relative flex" }, Z = ["aria-activedescendant", "placeholder
|
|
|
116
116
|
active: ((u = o.value) == null ? void 0 : u.id) === l.id,
|
|
117
117
|
isDeletable: l.isDeletable ?? e.isDeletable,
|
|
118
118
|
selected: s.value.some((i) => i.id === l.id),
|
|
119
|
-
style:
|
|
119
|
+
style: P(e.multiselect ? "checkbox" : "radio"),
|
|
120
120
|
onClick: (i) => g(l),
|
|
121
121
|
onDelete: (i) => e.$emit("delete", l),
|
|
122
122
|
onMousedown: t[4] || (t[4] = h(() => {
|
|
@@ -127,7 +127,7 @@ const Y = { class: "relative flex" }, Z = ["aria-activedescendant", "placeholder
|
|
|
127
127
|
E(N(l.label), 1)
|
|
128
128
|
]),
|
|
129
129
|
_: 2
|
|
130
|
-
}, 1032, ["id", "active", "isDeletable", "selected", "style", "onClick", "onDelete", "onMouseenter"])) :
|
|
130
|
+
}, 1032, ["id", "active", "isDeletable", "selected", "style", "onClick", "onDelete", "onMouseenter"])) : J("", !0)
|
|
131
131
|
], 64);
|
|
132
132
|
}), 128))
|
|
133
133
|
]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, ref as c,
|
|
1
|
+
import { defineComponent as u, ref as c, createBlock as _, openBlock as v, unref as o, withCtx as t, createVNode as r, normalizeProps as y, guardReactiveProps as w, createSlots as x, renderSlot as l, mergeProps as B } from "vue";
|
|
2
2
|
import { Popover as P, PopoverButton as h, PopoverPanel as k } from "@headlessui/vue";
|
|
3
3
|
import { useBindCx as g } from "@scalar/use-hooks/useBindCx";
|
|
4
4
|
import $ from "../ScalarFloating/ScalarFloating.vue.js";
|
|
@@ -19,7 +19,7 @@ const z = /* @__PURE__ */ u({
|
|
|
19
19
|
var n;
|
|
20
20
|
["ArrowUp", "ArrowDown"].includes(e.key) && (e.preventDefault(), (n = e.target) == null || n.dispatchEvent(new KeyboardEvent("keydown", { key: "Enter" })));
|
|
21
21
|
};
|
|
22
|
-
return s({ popoverButtonRef: p }), (e, n) => (
|
|
22
|
+
return s({ popoverButtonRef: p }), (e, n) => (v(), _(o(P), { as: "template" }, {
|
|
23
23
|
default: t(({ open: a }) => [
|
|
24
24
|
r(o($), y(w(e.$props)), x({
|
|
25
25
|
default: t(() => [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d,
|
|
1
|
+
import { defineComponent as d, createBlock as r, openBlock as i, unref as e, withCtx as t, createVNode as n, normalizeClass as f, renderSlot as a } from "vue";
|
|
2
2
|
import { ContextMenuRoot as u, ContextMenuTrigger as c, ContextMenuPortal as g, ContextMenuContent as C, ContextMenuItem as p } from "radix-vue";
|
|
3
3
|
const M = /* @__PURE__ */ d({
|
|
4
4
|
__name: "ScalarContextMenu",
|
|
@@ -11,7 +11,7 @@ const M = /* @__PURE__ */ d({
|
|
|
11
11
|
},
|
|
12
12
|
setup(o) {
|
|
13
13
|
const l = o;
|
|
14
|
-
return (s, m) => (
|
|
14
|
+
return (s, m) => (i(), r(e(u), null, {
|
|
15
15
|
default: t(() => [
|
|
16
16
|
n(e(c), {
|
|
17
17
|
class: f(s.triggerClass),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as p,
|
|
2
|
-
import { Menu as u,
|
|
1
|
+
import { defineComponent as p, createBlock as i, openBlock as f, unref as e, withCtx as t, createVNode as r, mergeProps as n, renderSlot as s } from "vue";
|
|
2
|
+
import { Menu as u, MenuButton as _, MenuItems as c } from "@headlessui/vue";
|
|
3
3
|
import { useBindCx as d } from "@scalar/use-hooks/useBindCx";
|
|
4
4
|
import B from "./ScalarDropdownMenu.vue.js";
|
|
5
5
|
import h from "../ScalarFloating/ScalarFloating.vue.js";
|
|
@@ -17,14 +17,14 @@ const $ = {}, x = /* @__PURE__ */ p({
|
|
|
17
17
|
},
|
|
18
18
|
setup(g) {
|
|
19
19
|
const { cx: l } = d();
|
|
20
|
-
return (o, y) => (
|
|
20
|
+
return (o, y) => (f(), i(e(u), null, {
|
|
21
21
|
default: t(({ open: a }) => [
|
|
22
22
|
r(e(h), n(o.$props, {
|
|
23
23
|
placement: o.placement ?? "bottom-start"
|
|
24
24
|
}), {
|
|
25
25
|
floating: t(({ width: m }) => [
|
|
26
26
|
r(B, n({
|
|
27
|
-
is: e(
|
|
27
|
+
is: e(c),
|
|
28
28
|
style: { width: m }
|
|
29
29
|
}, e(l)("max-h-[inherit]")), {
|
|
30
30
|
default: t(() => [
|
|
@@ -34,7 +34,7 @@ const $ = {}, x = /* @__PURE__ */ p({
|
|
|
34
34
|
}, 1040, ["is", "style"])
|
|
35
35
|
]),
|
|
36
36
|
default: t(() => [
|
|
37
|
-
r(e(
|
|
37
|
+
r(e(_), { as: "template" }, {
|
|
38
38
|
default: t(() => [
|
|
39
39
|
s(o.$slots, "default", { open: a })
|
|
40
40
|
]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n,
|
|
1
|
+
import { defineComponent as n, createBlock as a, openBlock as r, resolveDynamicComponent as s, normalizeClass as i, unref as t, withCtx as l, renderSlot as c } from "vue";
|
|
2
2
|
import { cva as d, cx as p } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
const u = {}, _ = /* @__PURE__ */ n({
|
|
4
4
|
...u,
|
|
@@ -23,7 +23,7 @@ const u = {}, _ = /* @__PURE__ */ n({
|
|
|
23
23
|
active: { true: "bg-b-2 text-c-1" }
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
return (e, v) => (
|
|
26
|
+
return (e, v) => (r(), a(s(e.is), {
|
|
27
27
|
class: i(["item", t(p)("scalar-dropdown-item", t(o)({ active: e.active, disabled: e.disabled }))]),
|
|
28
28
|
type: e.is === "button" ? "button" : void 0
|
|
29
29
|
}, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import r from "./ScalarDropdownDivider.vue2.js";
|
|
2
|
-
import {
|
|
2
|
+
import { createElementBlock as o, openBlock as e } from "vue";
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const c = { class: "-mx-0.75 my-0.75 h-border bg-border" };
|
|
5
5
|
function n(s, p, a, d, i, m) {
|
|
6
|
-
return
|
|
6
|
+
return e(), o("div", c);
|
|
7
7
|
}
|
|
8
8
|
const u = /* @__PURE__ */ t(r, [["render", n]]);
|
|
9
9
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as a,
|
|
1
|
+
import { defineComponent as a, createBlock as l, openBlock as i, unref as n, withCtx as t, createVNode as s, renderSlot as p } from "vue";
|
|
2
2
|
import { MenuItem as m } from "@headlessui/vue";
|
|
3
3
|
import u from "./ScalarDropdownButton.vue.js";
|
|
4
4
|
const f = {}, B = /* @__PURE__ */ a({
|
|
@@ -9,7 +9,7 @@ const f = {}, B = /* @__PURE__ */ a({
|
|
|
9
9
|
},
|
|
10
10
|
emits: ["click"],
|
|
11
11
|
setup(c) {
|
|
12
|
-
return (e, o) => (
|
|
12
|
+
return (e, o) => (i(), l(n(m), { disabled: e.disabled }, {
|
|
13
13
|
default: t(({ active: d }) => [
|
|
14
14
|
s(u, {
|
|
15
15
|
active: d,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n,
|
|
1
|
+
import { defineComponent as n, createBlock as l, openBlock as a, resolveDynamicComponent as c, mergeProps as i, unref as o, withCtx as d, createElementVNode as t, renderSlot as r, createVNode as m } from "vue";
|
|
2
2
|
import { useBindCx as f } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
import p from "../ScalarFloating/ScalarFloatingBackdrop.vue.js";
|
|
4
4
|
const _ = { class: "custom-scroll min-h-0 flex-1" }, u = { class: "flex flex-col p-0.75" }, x = {}, B = /* @__PURE__ */ n({
|
|
@@ -10,7 +10,7 @@ const _ = { class: "custom-scroll min-h-0 flex-1" }, u = { class: "flex flex-col
|
|
|
10
10
|
},
|
|
11
11
|
setup(h) {
|
|
12
12
|
const { cx: s } = f();
|
|
13
|
-
return (e, v) => (
|
|
13
|
+
return (e, v) => (a(), l(c(e.is ?? "div"), i({
|
|
14
14
|
role: "menu",
|
|
15
15
|
tabindex: "0"
|
|
16
16
|
}, o(s)("relative flex w-56")), {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, ref as a, onErrorCaptured as m, renderSlot as p,
|
|
1
|
+
import { defineComponent as c, ref as a, onErrorCaptured as m, renderSlot as p, createElementBlock as l, openBlock as d, createElementVNode as i, createCommentVNode as _, toDisplayString as u } from "vue";
|
|
2
2
|
const f = {
|
|
3
3
|
key: 1,
|
|
4
4
|
class: "rounded border bg-b-2 p-3 text-sm"
|
|
@@ -11,9 +11,9 @@ const f = {
|
|
|
11
11
|
const n = a(!1), e = a();
|
|
12
12
|
return m((r, t, o) => (console.error("[ERROR]", r, o), n.value = !0, e.value = r, !1)), (r, t) => {
|
|
13
13
|
var o, s;
|
|
14
|
-
return n.value ? (
|
|
14
|
+
return n.value ? (d(), l("div", f, [
|
|
15
15
|
t[0] || (t[0] = i("div", { class: "p-2" }, "Oops, something went wrong here.", -1)),
|
|
16
|
-
e.value ? (
|
|
16
|
+
e.value ? (d(), l("div", v, u((o = e.value) == null ? void 0 : o.name) + ": " + u((s = e.value) == null ? void 0 : s.message), 1)) : _("", !0)
|
|
17
17
|
])) : p(r.$slots, "default", { key: 0 });
|
|
18
18
|
};
|
|
19
19
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as w, ref as d, computed as a,
|
|
1
|
+
import { defineComponent as w, ref as d, computed as a, createElementBlock as z, openBlock as s, Fragment as S, createElementVNode as m, createBlock as $, createCommentVNode as k, normalizeClass as B, renderSlot as u, unref as o, withCtx as R, normalizeStyle as b } from "vue";
|
|
2
2
|
import { getSideAxis as g } from "@floating-ui/utils";
|
|
3
3
|
import { useFloating as x, autoUpdate as E, offset as C, flip as F, shift as M, size as H } from "@floating-ui/vue";
|
|
4
4
|
import { useResizeWithTarget as T } from "./useResizeWithTarget.js";
|
|
@@ -55,21 +55,21 @@ const I = /* @__PURE__ */ w({
|
|
|
55
55
|
m("div", {
|
|
56
56
|
ref_key: "wrapperRef",
|
|
57
57
|
ref: n,
|
|
58
|
-
class:
|
|
58
|
+
class: B({ contents: !!e.$slots.default })
|
|
59
59
|
}, [
|
|
60
60
|
u(e.$slots, "default")
|
|
61
61
|
], 2),
|
|
62
|
-
e.$slots.floating ? (s(),
|
|
62
|
+
e.$slots.floating ? (s(), $(o(W), {
|
|
63
63
|
key: 0,
|
|
64
64
|
disabled: !e.teleport,
|
|
65
65
|
to: typeof e.teleport == "string" ? e.teleport : void 0
|
|
66
66
|
}, {
|
|
67
|
-
default:
|
|
67
|
+
default: R(() => [
|
|
68
68
|
m("div", {
|
|
69
69
|
ref_key: "floatingRef",
|
|
70
70
|
ref: i,
|
|
71
71
|
class: "relative z-context",
|
|
72
|
-
style:
|
|
72
|
+
style: b(o(p))
|
|
73
73
|
}, [
|
|
74
74
|
u(e.$slots, "floating", {
|
|
75
75
|
data: o(y),
|
|
@@ -79,7 +79,7 @@ const I = /* @__PURE__ */ w({
|
|
|
79
79
|
], 4)
|
|
80
80
|
]),
|
|
81
81
|
_: 3
|
|
82
|
-
}, 8, ["disabled", "to"])) :
|
|
82
|
+
}, 8, ["disabled", "to"])) : k("", !0)
|
|
83
83
|
], 64));
|
|
84
84
|
}
|
|
85
85
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as o,
|
|
1
|
+
import { defineComponent as o, createElementBlock as r, openBlock as n, normalizeProps as s, guardReactiveProps as a, unref as l, renderSlot as i } from "vue";
|
|
2
2
|
import { useBindCx as c } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
const d = {}, m = /* @__PURE__ */ o({
|
|
4
4
|
...d,
|
|
@@ -6,7 +6,7 @@ const d = {}, m = /* @__PURE__ */ o({
|
|
|
6
6
|
__name: "ScalarFloatingBackdrop",
|
|
7
7
|
setup(p) {
|
|
8
8
|
const { cx: e } = c();
|
|
9
|
-
return (t, u) => (
|
|
9
|
+
return (t, u) => (n(), r("div", s(a(
|
|
10
10
|
l(e)("absolute inset-0 -z-1 rounded bg-b-1 shadow-lg brightness-lifted")
|
|
11
11
|
)), [
|
|
12
12
|
i(t.$slots, "default")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n,
|
|
1
|
+
import { defineComponent as n, createElementBlock as s, openBlock as m, mergeProps as i, unref as f, withModifiers as l, renderSlot as u } from "vue";
|
|
2
2
|
import { useBindCx as p } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
const a = {}, x = /* @__PURE__ */ n({
|
|
4
4
|
...a,
|
|
@@ -7,7 +7,7 @@ const a = {}, x = /* @__PURE__ */ n({
|
|
|
7
7
|
emits: ["submit"],
|
|
8
8
|
setup(_) {
|
|
9
9
|
const { cx: r } = p();
|
|
10
|
-
return (e, t) => (
|
|
10
|
+
return (e, t) => (m(), s("form", i(f(r)("flex flex-col"), {
|
|
11
11
|
onSubmit: t[0] || (t[0] = l((o) => e.$emit("submit", o), ["prevent"]))
|
|
12
12
|
}), [
|
|
13
13
|
u(e.$slots, "default")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n,
|
|
1
|
+
import { defineComponent as n, createBlock as i, openBlock as t, resolveDynamicComponent as m, normalizeProps as p, guardReactiveProps as c, unref as l, withCtx as d, createElementBlock as a, createCommentVNode as r, renderSlot as o, normalizeClass as f } from "vue";
|
|
2
2
|
import { useBindCx as u } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
const _ = {
|
|
4
4
|
key: 0,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import s from "./ScalarFormSection.vue2.js";
|
|
2
|
-
import {
|
|
2
|
+
import { createElementBlock as n, openBlock as c, createElementVNode as t, renderSlot as o } from "vue";
|
|
3
3
|
import l from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const r = { class: "flex min-w-0 flex-col gap-4" }, a = { class: "contents" }, d = { class: "text-lg font-medium text-c-1" };
|
|
5
5
|
function f(e, i, m, p, _, u) {
|
|
6
|
-
return
|
|
6
|
+
return c(), n("fieldset", r, [
|
|
7
7
|
t("legend", a, [
|
|
8
8
|
t("span", d, [
|
|
9
9
|
o(e.$slots, "label")
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as n,
|
|
1
|
+
import { defineComponent as n, createElementBlock as o, openBlock as a, normalizeProps as i, guardReactiveProps as c, unref as d, createElementVNode as t, renderSlot as s } from "vue";
|
|
2
2
|
import { useBindCx as l } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
const m = { class: "justify-start" }, f = { class: "justify-center" }, _ = { class: "justify-end" }, p = {}, g = /* @__PURE__ */ n({
|
|
4
4
|
...p,
|
|
5
5
|
__name: "ScalarHeader",
|
|
6
6
|
setup(u) {
|
|
7
7
|
const { cx: r } = l();
|
|
8
|
-
return (e, h) => (
|
|
8
|
+
return (e, h) => (a(), o("header", i(c(
|
|
9
9
|
d(r)(
|
|
10
10
|
"flex min-h-header items-center justify-between gap-2 bg-b-2 border-b px-2 text-sm min-w-min",
|
|
11
11
|
"*:flex *:flex-1 *:items-center *:gap-px"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as r,
|
|
1
|
+
import { defineComponent as r, createBlock as a, openBlock as s, resolveDynamicComponent as i, mergeProps as u, unref as t, withCtx as p, renderSlot as c } from "vue";
|
|
2
2
|
import { cva as l, useBindCx as d } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
const f = {}, g = /* @__PURE__ */ r({
|
|
4
4
|
...f,
|
|
@@ -18,7 +18,7 @@ const f = {}, g = /* @__PURE__ */ r({
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
}), { cx: n } = d();
|
|
21
|
-
return (e, b) => (
|
|
21
|
+
return (e, b) => (s(), a(i(e.is), u({
|
|
22
22
|
type: e.is === "button" ? "button" : void 0
|
|
23
23
|
}, t(n)(t(o)({ active: e.active }))), {
|
|
24
24
|
default: p(() => [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, useCssVars as p, computed as s,
|
|
1
|
+
import { defineComponent as u, useCssVars as p, computed as s, createBlock as m, openBlock as f, resolveDynamicComponent as z, normalizeProps as d, guardReactiveProps as g, unref as i } from "vue";
|
|
2
2
|
import { useBindCx as v, cva as x } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
import { getIcon as _, getLogo as b } from "./utils/index.js";
|
|
4
4
|
const P = /* @__PURE__ */ u({
|
|
@@ -42,7 +42,7 @@ const P = /* @__PURE__ */ u({
|
|
|
42
42
|
if (e.logo)
|
|
43
43
|
return b(e.logo);
|
|
44
44
|
});
|
|
45
|
-
return (o, k) => (
|
|
45
|
+
return (o, k) => (f(), m(z(c.value), d(g({
|
|
46
46
|
...i(t)("scalar-icon", i(n)({ size: o.size })),
|
|
47
47
|
...a.value
|
|
48
48
|
})), null, 16));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as o, openBlock as n, createElementVNode as r } from "vue";
|
|
2
2
|
const t = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
fill: "none",
|
|
5
5
|
viewBox: "0 0 24 24"
|
|
6
6
|
};
|
|
7
7
|
function l(d, e) {
|
|
8
|
-
return
|
|
8
|
+
return n(), o("svg", t, e[0] || (e[0] = [
|
|
9
9
|
r("path", {
|
|
10
10
|
stroke: "currentColor",
|
|
11
11
|
"stroke-linecap": "round",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as o, openBlock as n, createElementVNode as r } from "vue";
|
|
2
2
|
const t = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
fill: "none",
|
|
5
5
|
viewBox: "0 0 24 24"
|
|
6
6
|
};
|
|
7
7
|
function l(d, e) {
|
|
8
|
-
return
|
|
8
|
+
return n(), o("svg", t, e[0] || (e[0] = [
|
|
9
9
|
r("path", {
|
|
10
10
|
stroke: "currentColor",
|
|
11
11
|
"stroke-linecap": "round",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as o, openBlock as r, createElementVNode as t } from "vue";
|
|
2
2
|
const n = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
fill: "none",
|
|
5
5
|
viewBox: "0 0 24 24"
|
|
6
6
|
};
|
|
7
7
|
function l(s, e) {
|
|
8
|
-
return
|
|
8
|
+
return r(), o("svg", n, e[0] || (e[0] = [
|
|
9
9
|
t("path", {
|
|
10
10
|
stroke: "currentColor",
|
|
11
11
|
"stroke-linecap": "round",
|