@scalar/components 0.20.9 → 0.20.11
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/index.d.ts +1 -1
- package/dist/components/ScalarCard/index.d.ts +4 -4
- package/dist/components/ScalarCheckboxInput/index.d.ts +4 -4
- package/dist/components/ScalarCodeBlock/index.d.ts +2 -2
- package/dist/components/ScalarColorModeToggle/index.d.ts +3 -3
- package/dist/components/ScalarCombobox/ScalarCombobox.vue.d.ts +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.d.ts +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts +1 -1
- package/dist/components/ScalarCombobox/index.d.ts +3 -3
- package/dist/components/ScalarContextMenu/index.d.ts +1 -1
- package/dist/components/ScalarCopy/index.d.ts +3 -3
- package/dist/components/ScalarDropdown/index.d.ts +5 -5
- package/dist/components/ScalarErrorBoundary/index.d.ts +1 -1
- package/dist/components/ScalarFileUpload/ScalarFileUpload.vue.d.ts +1 -1
- package/dist/components/ScalarFileUpload/ScalarFileUploadInput.vue.d.ts +1 -1
- package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.d.ts +1 -1
- package/dist/components/ScalarFileUpload/index.d.ts +7 -7
- package/dist/components/ScalarFloating/index.d.ts +2 -2
- package/dist/components/ScalarForm/index.d.ts +6 -6
- package/dist/components/ScalarHeader/index.d.ts +2 -2
- package/dist/components/ScalarHotkey/index.d.ts +2 -2
- package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue.d.ts +1 -1
- package/dist/components/ScalarIcon/index.d.ts +3 -3
- package/dist/components/ScalarIcon/types.d.ts +2 -2
- package/dist/components/ScalarIconButton/index.d.ts +1 -1
- package/dist/components/ScalarListbox/index.d.ts +4 -4
- package/dist/components/ScalarLoading/index.d.ts +2 -2
- package/dist/components/ScalarMarkdown/index.d.ts +2 -2
- package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts +1 -1
- package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.d.ts +1 -1
- package/dist/components/ScalarMenu/index.d.ts +11 -11
- package/dist/components/ScalarMenu/types.d.ts +1 -1
- package/dist/components/ScalarModal/index.d.ts +1 -1
- package/dist/components/ScalarPopover/index.d.ts +1 -1
- package/dist/components/ScalarSearchInput/index.d.ts +1 -1
- package/dist/components/ScalarSearchResults/index.d.ts +2 -2
- package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue.d.ts +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarSpacer.vue.d.ts +1 -1
- package/dist/components/ScalarSidebar/index.d.ts +13 -13
- package/dist/components/ScalarSidebar/types.d.ts +1 -1
- package/dist/components/ScalarTeleport/index.d.ts +3 -3
- package/dist/components/ScalarTextArea/index.d.ts +1 -1
- package/dist/components/ScalarTextInput/index.d.ts +2 -2
- package/dist/components/ScalarThemeSwatches/index.d.ts +2 -2
- package/dist/components/ScalarToggle/index.d.ts +3 -3
- package/dist/components/ScalarTooltip/index.d.ts +3 -3
- package/dist/components/ScalarVirtualText/index.d.ts +1 -1
- package/dist/components/ScalarWrappingText/index.d.ts +1 -1
- package/dist/components/ScalarWrappingText/types.d.ts +1 -1
- package/dist/helpers/index.d.ts +1 -1
- package/dist/index.js +7820 -222
- package/dist/index.js.map +1 -0
- package/dist/style.css +4425 -1
- package/package.json +18 -24
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/components/ScalarButton/ScalarButton.vue.js +0 -99
- package/dist/components/ScalarButton/ScalarButton.vue2.js +0 -4
- package/dist/components/ScalarButton/constants.js +0 -18
- package/dist/components/ScalarCard/ScalarCard.vue.js +0 -25
- package/dist/components/ScalarCard/ScalarCard.vue2.js +0 -4
- package/dist/components/ScalarCard/ScalarCardFooter.vue.js +0 -20
- package/dist/components/ScalarCard/ScalarCardFooter.vue2.js +0 -4
- package/dist/components/ScalarCard/ScalarCardHeader.vue.js +0 -36
- package/dist/components/ScalarCard/ScalarCardHeader.vue2.js +0 -4
- package/dist/components/ScalarCard/ScalarCardSection.vue.js +0 -16
- package/dist/components/ScalarCard/ScalarCardSection.vue2.js +0 -4
- package/dist/components/ScalarCard/useCardHeading.js +0 -15
- package/dist/components/ScalarCheckboxInput/ScalarCheckbox.vue.js +0 -27
- package/dist/components/ScalarCheckboxInput/ScalarCheckbox.vue2.js +0 -4
- package/dist/components/ScalarCheckboxInput/ScalarCheckboxGroup.vue.js +0 -37
- package/dist/components/ScalarCheckboxInput/ScalarCheckboxGroup.vue2.js +0 -4
- package/dist/components/ScalarCheckboxInput/ScalarCheckboxInput.vue.js +0 -45
- package/dist/components/ScalarCheckboxInput/ScalarCheckboxInput.vue2.js +0 -4
- package/dist/components/ScalarCheckboxInput/ScalarCheckboxRadioGroup.vue.js +0 -38
- package/dist/components/ScalarCheckboxInput/ScalarCheckboxRadioGroup.vue2.js +0 -4
- package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue.js +0 -69
- package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue3.js +0 -5
- package/dist/components/ScalarCodeBlock/ScalarCodeBlockCopy.vue.js +0 -57
- package/dist/components/ScalarCodeBlock/ScalarCodeBlockCopy.vue2.js +0 -4
- package/dist/components/ScalarCodeBlock/constants.js +0 -54
- package/dist/components/ScalarColorModeToggle/ScalarColorModeToggle.vue.js +0 -30
- package/dist/components/ScalarColorModeToggle/ScalarColorModeToggle.vue2.js +0 -4
- package/dist/components/ScalarColorModeToggle/ScalarColorModeToggleButton.vue.js +0 -41
- package/dist/components/ScalarColorModeToggle/ScalarColorModeToggleButton.vue2.js +0 -4
- package/dist/components/ScalarColorModeToggle/ScalarColorModeToggleIcon.vue.js +0 -7
- package/dist/components/ScalarColorModeToggle/ScalarColorModeToggleIcon.vue2.js +0 -35
- package/dist/components/ScalarCombobox/ScalarCombobox.vue.js +0 -71
- package/dist/components/ScalarCombobox/ScalarCombobox.vue2.js +0 -4
- package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.js +0 -75
- package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue2.js +0 -4
- package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.js +0 -41
- package/dist/components/ScalarCombobox/ScalarComboboxOption.vue2.js +0 -4
- package/dist/components/ScalarCombobox/ScalarComboboxOptionGroup.vue.js +0 -28
- package/dist/components/ScalarCombobox/ScalarComboboxOptionGroup.vue2.js +0 -4
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.js +0 -181
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue2.js +0 -4
- package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.js +0 -68
- package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue2.js +0 -4
- package/dist/components/ScalarCombobox/types.js +0 -9
- package/dist/components/ScalarContextMenu/ScalarContextMenu.vue.js +0 -52
- package/dist/components/ScalarContextMenu/ScalarContextMenu.vue2.js +0 -4
- package/dist/components/ScalarCopy/ScalarCopy.vue.js +0 -59
- package/dist/components/ScalarCopy/ScalarCopy.vue2.js +0 -4
- package/dist/components/ScalarCopy/ScalarCopyBackdrop.vue.js +0 -14
- package/dist/components/ScalarCopy/ScalarCopyBackdrop.vue2.js +0 -4
- package/dist/components/ScalarCopy/ScalarCopyButton.vue.js +0 -108
- package/dist/components/ScalarCopy/ScalarCopyButton.vue2.js +0 -4
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.js +0 -132
- package/dist/components/ScalarDropdown/ScalarDropdown.vue2.js +0 -4
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.js +0 -7
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue2.js +0 -41
- package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.js +0 -11
- package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue2.js +0 -4
- package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.js +0 -7
- package/dist/components/ScalarDropdown/ScalarDropdownItem.vue2.js +0 -32
- package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.js +0 -32
- package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue2.js +0 -4
- package/dist/components/ScalarDropdown/useDropdown.js +0 -14
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue.js +0 -20
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue2.js +0 -4
- package/dist/components/ScalarFileUpload/ScalarFileUpload.vue.js +0 -124
- package/dist/components/ScalarFileUpload/ScalarFileUpload.vue2.js +0 -4
- package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue.js +0 -28
- package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue2.js +0 -4
- package/dist/components/ScalarFileUpload/ScalarFileUploadError.vue.js +0 -18
- package/dist/components/ScalarFileUpload/ScalarFileUploadError.vue2.js +0 -4
- package/dist/components/ScalarFileUpload/ScalarFileUploadFileList.vue.js +0 -55
- package/dist/components/ScalarFileUpload/ScalarFileUploadFileList.vue2.js +0 -4
- package/dist/components/ScalarFileUpload/ScalarFileUploadInput.vue.js +0 -49
- package/dist/components/ScalarFileUpload/ScalarFileUploadInput.vue2.js +0 -4
- package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.js +0 -41
- package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue2.js +0 -4
- package/dist/components/ScalarFileUpload/ScalarFileUploadLoading.vue.js +0 -27
- package/dist/components/ScalarFileUpload/ScalarFileUploadLoading.vue2.js +0 -4
- package/dist/components/ScalarFileUpload/types.js +0 -6
- package/dist/components/ScalarFloating/ScalarFloating.vue.js +0 -91
- package/dist/components/ScalarFloating/ScalarFloating.vue2.js +0 -4
- package/dist/components/ScalarFloating/ScalarFloatingBackdrop.vue.js +0 -18
- package/dist/components/ScalarFloating/ScalarFloatingBackdrop.vue2.js +0 -4
- package/dist/components/ScalarFloating/useResizeWithTarget.js +0 -19
- package/dist/components/ScalarForm/ScalarForm.vue.js +0 -19
- package/dist/components/ScalarForm/ScalarForm.vue2.js +0 -4
- package/dist/components/ScalarForm/ScalarFormError.vue.js +0 -32
- package/dist/components/ScalarForm/ScalarFormError.vue2.js +0 -4
- package/dist/components/ScalarForm/ScalarFormField.vue.js +0 -34
- package/dist/components/ScalarForm/ScalarFormField.vue2.js +0 -4
- package/dist/components/ScalarForm/ScalarFormInput.vue.js +0 -39
- package/dist/components/ScalarForm/ScalarFormInput.vue2.js +0 -4
- package/dist/components/ScalarForm/ScalarFormInputGroup.vue.js +0 -23
- package/dist/components/ScalarForm/ScalarFormInputGroup.vue2.js +0 -4
- package/dist/components/ScalarForm/ScalarFormSection.vue.js +0 -18
- package/dist/components/ScalarForm/ScalarFormSection.vue2.js +0 -4
- package/dist/components/ScalarForm/useFormGroups.js +0 -8
- package/dist/components/ScalarHeader/ScalarHeader.vue.js +0 -28
- package/dist/components/ScalarHeader/ScalarHeader.vue2.js +0 -4
- package/dist/components/ScalarHeader/ScalarHeaderButton.vue.js +0 -33
- package/dist/components/ScalarHeader/ScalarHeaderButton.vue2.js +0 -4
- package/dist/components/ScalarHotkey/ScalarHotkey.vue.js +0 -30
- package/dist/components/ScalarHotkey/ScalarHotkey.vue2.js +0 -4
- package/dist/components/ScalarHotkey/constants.js +0 -29
- package/dist/components/ScalarHotkey/formatHotkey.js +0 -20
- package/dist/components/ScalarIcon/ScalarIcon.vue.js +0 -7
- package/dist/components/ScalarIcon/ScalarIcon.vue2.js +0 -39
- package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue.js +0 -28
- package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue2.js +0 -4
- package/dist/components/ScalarIcon/icons/Add.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/AddTab.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Alert.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/ArrowLeft.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/ArrowRight.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Brackets.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Branch.svg.js +0 -34
- package/dist/components/ScalarIcon/icons/Changelog.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Checkmark.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/ChevronDown.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/ChevronLeft.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/ChevronRight.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/ChevronUp.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Clipboard.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Close.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/CloseTab.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/CloseTabs.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Cloud.svg.js +0 -19
- package/dist/components/ScalarIcon/icons/CodeFolder.svg.js +0 -28
- package/dist/components/ScalarIcon/icons/Cog.svg.js +0 -20
- package/dist/components/ScalarIcon/icons/Collection.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Cookie.svg.js +0 -25
- package/dist/components/ScalarIcon/icons/DarkMode.svg.js +0 -19
- package/dist/components/ScalarIcon/icons/Delete.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Discord.svg.js +0 -20
- package/dist/components/ScalarIcon/icons/DocsPage.svg.js +0 -28
- package/dist/components/ScalarIcon/icons/Download.svg.js +0 -19
- package/dist/components/ScalarIcon/icons/Duplicate.svg.js +0 -27
- package/dist/components/ScalarIcon/icons/Edit.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Ellipses.svg.js +0 -19
- package/dist/components/ScalarIcon/icons/Email.svg.js +0 -20
- package/dist/components/ScalarIcon/icons/Error.svg.js +0 -20
- package/dist/components/ScalarIcon/icons/Example.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/ExternalLink.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/FilterList.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Folder.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/GitHub.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/GitHubLine.svg.js +0 -19
- package/dist/components/ScalarIcon/icons/Globe.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Google.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/Help.svg.js +0 -20
- package/dist/components/ScalarIcon/icons/Hide.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/History.svg.js +0 -20
- package/dist/components/ScalarIcon/icons/House.svg.js +0 -19
- package/dist/components/ScalarIcon/icons/Import.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Info.svg.js +0 -33
- package/dist/components/ScalarIcon/icons/Key.svg.js +0 -20
- package/dist/components/ScalarIcon/icons/Leave.svg.js +0 -19
- package/dist/components/ScalarIcon/icons/LightDarkModeToggle.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/LightMode.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Link.svg.js +0 -19
- package/dist/components/ScalarIcon/icons/Lock.svg.js +0 -20
- package/dist/components/ScalarIcon/icons/Logo.svg.js +0 -19
- package/dist/components/ScalarIcon/icons/Magic.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Markdown.svg.js +0 -19
- package/dist/components/ScalarIcon/icons/Menu.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/NotAllowed.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Page.svg.js +0 -20
- package/dist/components/ScalarIcon/icons/Pencil.svg.js +0 -19
- package/dist/components/ScalarIcon/icons/Play.svg.js +0 -19
- package/dist/components/ScalarIcon/icons/Refresh.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Roadmap.svg.js +0 -19
- package/dist/components/ScalarIcon/icons/Scribble.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Search.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Server.svg.js +0 -31
- package/dist/components/ScalarIcon/icons/Settings.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Show.svg.js +0 -27
- package/dist/components/ScalarIcon/icons/Sort.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Terminal.svg.js +0 -28
- package/dist/components/ScalarIcon/icons/Trash.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Unlock.svg.js +0 -20
- package/dist/components/ScalarIcon/icons/Unwatch.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Upload.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/User.svg.js +0 -24
- package/dist/components/ScalarIcon/icons/UserSwitch.svg.js +0 -20
- package/dist/components/ScalarIcon/icons/Users.svg.js +0 -19
- package/dist/components/ScalarIcon/icons/Versions.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Wallet.svg.js +0 -20
- package/dist/components/ScalarIcon/icons/Watch.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/Workspace.svg.js +0 -19
- package/dist/components/ScalarIcon/icons/programming-framework-angular.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-framework-astro.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-framework-laravel.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/programming-framework-nextdotjs.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-framework-react.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-framework-vuedotjs.svg.js +0 -17
- package/dist/components/ScalarIcon/icons/programming-language-c.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-language-clojure.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-language-csharp.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-language-css3.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-language-dart.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-language-fsharp.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-language-go.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-language-html5.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-language-http.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-language-java.svg.js +0 -18
- package/dist/components/ScalarIcon/icons/programming-language-javascript.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-language-json.svg.js +0 -17
- package/dist/components/ScalarIcon/icons/programming-language-kotlin.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-language-node.svg.js +0 -17
- package/dist/components/ScalarIcon/icons/programming-language-objc.svg.js +0 -17
- package/dist/components/ScalarIcon/icons/programming-language-ocaml.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-language-php.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-language-powershell.svg.js +0 -20
- package/dist/components/ScalarIcon/icons/programming-language-python.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-language-r.svg.js +0 -20
- package/dist/components/ScalarIcon/icons/programming-language-ruby.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-language-rust.svg.js +0 -19
- package/dist/components/ScalarIcon/icons/programming-language-scala.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-language-shell.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-language-swift.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-language-typescript.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-script-code.svg.js +0 -21
- package/dist/components/ScalarIcon/icons/programming-tool-git.svg.js +0 -16
- package/dist/components/ScalarIcon/icons/programming-tool-tailwindcss.svg.js +0 -16
- package/dist/components/ScalarIcon/logos/Adonisjs.svg.js +0 -21
- package/dist/components/ScalarIcon/logos/Astro.svg.js +0 -14
- package/dist/components/ScalarIcon/logos/Docusaurus.svg.js +0 -16
- package/dist/components/ScalarIcon/logos/Dotnet.svg.js +0 -23
- package/dist/components/ScalarIcon/logos/Elysiajs.svg.js +0 -16
- package/dist/components/ScalarIcon/logos/Express.svg.js +0 -19
- package/dist/components/ScalarIcon/logos/Fastapi.svg.js +0 -19
- package/dist/components/ScalarIcon/logos/Fastify.svg.js +0 -19
- package/dist/components/ScalarIcon/logos/Go.svg.js +0 -23
- package/dist/components/ScalarIcon/logos/Hono.svg.js +0 -24
- package/dist/components/ScalarIcon/logos/Laravel.svg.js +0 -19
- package/dist/components/ScalarIcon/logos/Litestar.svg.js +0 -16
- package/dist/components/ScalarIcon/logos/Nestjs.svg.js +0 -21
- package/dist/components/ScalarIcon/logos/Nextjs.svg.js +0 -19
- package/dist/components/ScalarIcon/logos/Nitro.svg.js +0 -16
- package/dist/components/ScalarIcon/logos/Nuxt.svg.js +0 -19
- package/dist/components/ScalarIcon/logos/Openapi.svg.js +0 -16
- package/dist/components/ScalarIcon/logos/Platformatic.svg.js +0 -28
- package/dist/components/ScalarIcon/logos/React.svg.js +0 -34
- package/dist/components/ScalarIcon/logos/Rust.svg.js +0 -19
- package/dist/components/ScalarIcon/logos/Svelte.svg.js +0 -23
- package/dist/components/ScalarIcon/logos/Vue.svg.js +0 -23
- package/dist/components/ScalarIcon/utils/index.js +0 -287
- package/dist/components/ScalarIcon/variants.js +0 -21
- package/dist/components/ScalarIconButton/ScalarIconButton.vue.js +0 -71
- package/dist/components/ScalarIconButton/ScalarIconButton.vue2.js +0 -4
- package/dist/components/ScalarListbox/ScalarListbox.vue.js +0 -89
- package/dist/components/ScalarListbox/ScalarListbox.vue2.js +0 -4
- package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.js +0 -26
- package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue2.js +0 -4
- package/dist/components/ScalarListbox/ScalarListboxInput.vue.js +0 -26
- package/dist/components/ScalarListbox/ScalarListboxInput.vue2.js +0 -4
- package/dist/components/ScalarListbox/ScalarListboxItem.vue.js +0 -52
- package/dist/components/ScalarListbox/ScalarListboxItem.vue2.js +0 -4
- package/dist/components/ScalarLoading/ScalarLoading.vue.js +0 -7
- package/dist/components/ScalarLoading/ScalarLoading.vue2.js +0 -58
- package/dist/components/ScalarLoading/useLoadingState.js +0 -39
- package/dist/components/ScalarMarkdown/ScalarMarkdown.vue.js +0 -43
- package/dist/components/ScalarMarkdown/ScalarMarkdown.vue3.js +0 -5
- package/dist/components/ScalarMarkdown/ScalarMarkdownSummary.vue.js +0 -61
- package/dist/components/ScalarMarkdown/ScalarMarkdownSummary.vue3.js +0 -5
- package/dist/components/ScalarMenu/ScalarMenu.vue.js +0 -70
- package/dist/components/ScalarMenu/ScalarMenu.vue2.js +0 -4
- package/dist/components/ScalarMenu/ScalarMenuButton.vue.js +0 -34
- package/dist/components/ScalarMenu/ScalarMenuButton.vue2.js +0 -4
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.js +0 -46
- package/dist/components/ScalarMenu/ScalarMenuLink.vue2.js +0 -4
- package/dist/components/ScalarMenu/ScalarMenuProduct.vue.js +0 -37
- package/dist/components/ScalarMenu/ScalarMenuProduct.vue2.js +0 -4
- package/dist/components/ScalarMenu/ScalarMenuProducts.vue.js +0 -67
- package/dist/components/ScalarMenu/ScalarMenuProducts.vue2.js +0 -4
- package/dist/components/ScalarMenu/ScalarMenuResources.vue.js +0 -50
- package/dist/components/ScalarMenu/ScalarMenuResources.vue2.js +0 -4
- package/dist/components/ScalarMenu/ScalarMenuSection.vue.js +0 -15
- package/dist/components/ScalarMenu/ScalarMenuSection.vue2.js +0 -4
- package/dist/components/ScalarMenu/ScalarMenuSupport.vue.js +0 -40
- package/dist/components/ScalarMenu/ScalarMenuSupport.vue2.js +0 -4
- package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.js +0 -103
- package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue2.js +0 -4
- package/dist/components/ScalarMenu/ScalarMenuTeamProfile.vue.js +0 -41
- package/dist/components/ScalarMenu/ScalarMenuTeamProfile.vue2.js +0 -4
- package/dist/components/ScalarMenu/ScalarMenuWorkspacePicker.vue.js +0 -109
- package/dist/components/ScalarMenu/ScalarMenuWorkspacePicker.vue2.js +0 -4
- package/dist/components/ScalarModal/ScalarModal.vue.js +0 -9
- package/dist/components/ScalarModal/ScalarModal.vue2.js +0 -136
- package/dist/components/ScalarPopover/ScalarPopover.vue.js +0 -57
- package/dist/components/ScalarPopover/ScalarPopover.vue2.js +0 -4
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.js +0 -65
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue2.js +0 -4
- package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.js +0 -61
- package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue2.js +0 -4
- package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.js +0 -26
- package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue2.js +0 -4
- package/dist/components/ScalarSidebar/ScalarSidebar.vue.js +0 -18
- package/dist/components/ScalarSidebar/ScalarSidebar.vue2.js +0 -4
- package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.js +0 -81
- package/dist/components/ScalarSidebar/ScalarSidebarButton.vue2.js +0 -4
- package/dist/components/ScalarSidebar/ScalarSidebarFooter.vue.js +0 -31
- package/dist/components/ScalarSidebar/ScalarSidebarFooter.vue2.js +0 -4
- package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.js +0 -120
- package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue2.js +0 -4
- package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.js +0 -46
- package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue2.js +0 -4
- package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue.js +0 -7
- package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue2.js +0 -38
- package/dist/components/ScalarSidebar/ScalarSidebarItem.vue.js +0 -54
- package/dist/components/ScalarSidebar/ScalarSidebarItem.vue2.js +0 -4
- package/dist/components/ScalarSidebar/ScalarSidebarItems.vue.js +0 -28
- package/dist/components/ScalarSidebar/ScalarSidebarItems.vue3.js +0 -5
- package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue.js +0 -126
- package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue2.js +0 -4
- package/dist/components/ScalarSidebar/ScalarSidebarSearchButton.vue.js +0 -39
- package/dist/components/ScalarSidebar/ScalarSidebarSearchButton.vue2.js +0 -4
- package/dist/components/ScalarSidebar/ScalarSidebarSearchInput.vue.js +0 -66
- package/dist/components/ScalarSidebar/ScalarSidebarSearchInput.vue2.js +0 -4
- package/dist/components/ScalarSidebar/ScalarSidebarSection.vue.js +0 -52
- package/dist/components/ScalarSidebar/ScalarSidebarSection.vue3.js +0 -5
- package/dist/components/ScalarSidebar/ScalarSidebarSpacer.vue.js +0 -20
- package/dist/components/ScalarSidebar/ScalarSidebarSpacer.vue2.js +0 -4
- package/dist/components/ScalarSidebar/findScrollContainer.js +0 -22
- package/dist/components/ScalarSidebar/useSidebarGroups.js +0 -9
- package/dist/components/ScalarSidebar/useSidebarNestedItems.js +0 -17
- package/dist/components/ScalarTeleport/ScalarTeleport.vue.js +0 -30
- package/dist/components/ScalarTeleport/ScalarTeleport.vue2.js +0 -4
- package/dist/components/ScalarTeleport/ScalarTeleportRoot.vue.js +0 -23
- package/dist/components/ScalarTeleport/ScalarTeleportRoot.vue2.js +0 -4
- package/dist/components/ScalarTeleport/useTeleport.js +0 -11
- package/dist/components/ScalarTextArea/ScalarTextArea.vue.js +0 -45
- package/dist/components/ScalarTextArea/ScalarTextArea.vue2.js +0 -4
- package/dist/components/ScalarTextInput/ScalarTextInput.vue.js +0 -76
- package/dist/components/ScalarTextInput/ScalarTextInput.vue2.js +0 -4
- package/dist/components/ScalarTextInput/ScalarTextInputCopy.vue.js +0 -68
- package/dist/components/ScalarTextInput/ScalarTextInputCopy.vue2.js +0 -4
- package/dist/components/ScalarThemeSwatches/ScalarThemeSwatches.vue.js +0 -35
- package/dist/components/ScalarThemeSwatches/ScalarThemeSwatches.vue2.js +0 -4
- package/dist/components/ScalarThemeSwatches/useThemeSwatches.js +0 -33
- package/dist/components/ScalarToggle/ScalarToggle.vue.js +0 -45
- package/dist/components/ScalarToggle/ScalarToggle.vue2.js +0 -4
- package/dist/components/ScalarToggle/ScalarToggleGroup.vue.js +0 -35
- package/dist/components/ScalarToggle/ScalarToggleGroup.vue2.js +0 -4
- package/dist/components/ScalarToggle/ScalarToggleInput.vue.js +0 -36
- package/dist/components/ScalarToggle/ScalarToggleInput.vue2.js +0 -4
- package/dist/components/ScalarTooltip/ScalarHotkeyTooltip.vue.js +0 -59
- package/dist/components/ScalarTooltip/ScalarHotkeyTooltip.vue2.js +0 -4
- package/dist/components/ScalarTooltip/ScalarTooltip.vue.js +0 -34
- package/dist/components/ScalarTooltip/ScalarTooltip.vue3.js +0 -5
- package/dist/components/ScalarTooltip/constants.js +0 -7
- package/dist/components/ScalarTooltip/useTooltip.js +0 -79
- package/dist/components/ScalarVirtualText/ScalarVirtualText.vue.js +0 -61
- package/dist/components/ScalarVirtualText/ScalarVirtualText.vue2.js +0 -4
- package/dist/components/ScalarWrappingText/ScalarWrappingText.vue.js +0 -25
- package/dist/components/ScalarWrappingText/ScalarWrappingText.vue2.js +0 -4
- package/dist/components/ScalarWrappingText/constants.js +0 -12
- package/dist/helpers/add-scalar-classes.js +0 -16
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, createBlock as l, openBlock as c, withCtx as t, createVNode as r, unref as n, createTextVNode as e } from "vue";
|
|
2
|
-
import { ScalarIconEnvelopeSimple as s, ScalarIconFileText as p, ScalarIconBookOpenText as m } from "@scalar/icons";
|
|
3
|
-
import a from "./ScalarMenuLink.vue.js";
|
|
4
|
-
import f from "./ScalarMenuSection.vue.js";
|
|
5
|
-
const y = /* @__PURE__ */ i({
|
|
6
|
-
__name: "ScalarMenuResources",
|
|
7
|
-
setup(u) {
|
|
8
|
-
return (d, o) => (c(), l(f, null, {
|
|
9
|
-
title: t(() => [...o[0] || (o[0] = [
|
|
10
|
-
e("Resources", -1)
|
|
11
|
-
])]),
|
|
12
|
-
default: t(() => [
|
|
13
|
-
r(a, {
|
|
14
|
-
href: "mailto:support@scalar.com",
|
|
15
|
-
icon: n(s),
|
|
16
|
-
target: "_blank"
|
|
17
|
-
}, {
|
|
18
|
-
default: t(() => [...o[1] || (o[1] = [
|
|
19
|
-
e(" Sales & Support ", -1)
|
|
20
|
-
])]),
|
|
21
|
-
_: 1
|
|
22
|
-
}, 8, ["icon"]),
|
|
23
|
-
r(a, {
|
|
24
|
-
href: "https://scalar.com/terms-and-conditions",
|
|
25
|
-
icon: n(p),
|
|
26
|
-
target: "_blank"
|
|
27
|
-
}, {
|
|
28
|
-
default: t(() => [...o[2] || (o[2] = [
|
|
29
|
-
e(" Terms & Conditions ", -1)
|
|
30
|
-
])]),
|
|
31
|
-
_: 1
|
|
32
|
-
}, 8, ["icon"]),
|
|
33
|
-
r(a, {
|
|
34
|
-
href: "https://scalar.com/privacy-policy",
|
|
35
|
-
icon: n(m),
|
|
36
|
-
target: "_blank"
|
|
37
|
-
}, {
|
|
38
|
-
default: t(() => [...o[3] || (o[3] = [
|
|
39
|
-
e(" Privacy Policy ", -1)
|
|
40
|
-
])]),
|
|
41
|
-
_: 1
|
|
42
|
-
}, 8, ["icon"])
|
|
43
|
-
]),
|
|
44
|
-
_: 1
|
|
45
|
-
}));
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
export {
|
|
49
|
-
y as default
|
|
50
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, createElementBlock as t, openBlock as n, Fragment as o, createVNode as a, renderSlot as l, unref as c } from "vue";
|
|
2
|
-
import i from "../ScalarDropdown/ScalarDropdownDivider.vue.js";
|
|
3
|
-
const u = /* @__PURE__ */ r({
|
|
4
|
-
inheritAttrs: !1,
|
|
5
|
-
__name: "ScalarMenuSection",
|
|
6
|
-
setup(m) {
|
|
7
|
-
return (e, p) => (n(), t(o, null, [
|
|
8
|
-
a(c(i)),
|
|
9
|
-
l(e.$slots, "default")
|
|
10
|
-
], 64));
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
export {
|
|
14
|
-
u as default
|
|
15
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, createBlock as c, openBlock as l, withCtx as o, createVNode as e, unref as a, createTextVNode as r } from "vue";
|
|
2
|
-
import { ScalarIconDiscordLogo as s, ScalarIconGithubLogo as f } from "@scalar/icons";
|
|
3
|
-
import n from "./ScalarMenuLink.vue.js";
|
|
4
|
-
import u from "./ScalarMenuSection.vue.js";
|
|
5
|
-
const k = /* @__PURE__ */ i({
|
|
6
|
-
__name: "ScalarMenuSupport",
|
|
7
|
-
setup(m) {
|
|
8
|
-
return (p, t) => (l(), c(u, null, {
|
|
9
|
-
title: o(() => [...t[0] || (t[0] = [
|
|
10
|
-
r("Resources", -1)
|
|
11
|
-
])]),
|
|
12
|
-
default: o(() => [
|
|
13
|
-
e(n, {
|
|
14
|
-
href: "https://discord.gg/scalar",
|
|
15
|
-
icon: a(s),
|
|
16
|
-
target: "_blank"
|
|
17
|
-
}, {
|
|
18
|
-
default: o(() => [...t[1] || (t[1] = [
|
|
19
|
-
r(" Discord ", -1)
|
|
20
|
-
])]),
|
|
21
|
-
_: 1
|
|
22
|
-
}, 8, ["icon"]),
|
|
23
|
-
e(n, {
|
|
24
|
-
href: "https://github.com/scalar/scalar",
|
|
25
|
-
icon: a(f),
|
|
26
|
-
target: "_blank"
|
|
27
|
-
}, {
|
|
28
|
-
default: o(() => [...t[2] || (t[2] = [
|
|
29
|
-
r(" GitHub ", -1)
|
|
30
|
-
])]),
|
|
31
|
-
_: 1
|
|
32
|
-
}, 8, ["icon"])
|
|
33
|
-
]),
|
|
34
|
-
_: 1
|
|
35
|
-
}));
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
export {
|
|
39
|
-
k as default
|
|
40
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { defineComponent as g, computed as x, createBlock as c, openBlock as n, unref as e, withCtx as r, createVNode as a, mergeProps as b, createElementVNode as _, createElementBlock as S, Fragment as w, renderList as v, createTextVNode as C } from "vue";
|
|
2
|
-
import { ScalarIconUserSwitch as k, ScalarIconCaretRight as V, ScalarIconPlus as $ } from "@scalar/icons";
|
|
3
|
-
import { DropdownMenu as o } from "radix-vue/namespaced";
|
|
4
|
-
import I from "./ScalarMenuTeamProfile.vue.js";
|
|
5
|
-
import B from "./ScalarMenuLink.vue.js";
|
|
6
|
-
import P from "../ScalarDropdown/ScalarDropdownMenu.vue.js";
|
|
7
|
-
import f from "../ScalarDropdown/ScalarDropdownButton.vue.js";
|
|
8
|
-
import z from "../ScalarListbox/ScalarListboxCheckbox.vue.js";
|
|
9
|
-
const y = /* @__PURE__ */ g({
|
|
10
|
-
inheritAttrs: !1,
|
|
11
|
-
__name: "ScalarMenuTeamPicker",
|
|
12
|
-
props: {
|
|
13
|
-
team: {},
|
|
14
|
-
teams: {}
|
|
15
|
-
},
|
|
16
|
-
emits: ["update:team", "add"],
|
|
17
|
-
setup(i, { emit: p }) {
|
|
18
|
-
const d = i, u = p, s = x({
|
|
19
|
-
get: () => d.team?.id,
|
|
20
|
-
set: (m) => u(
|
|
21
|
-
"update:team",
|
|
22
|
-
d.teams.find((t) => t.id === m)
|
|
23
|
-
)
|
|
24
|
-
});
|
|
25
|
-
return (m, t) => (n(), c(e(o).Sub, null, {
|
|
26
|
-
default: r(() => [
|
|
27
|
-
a(e(B), b({
|
|
28
|
-
is: e(o).SubTrigger,
|
|
29
|
-
icon: e(k)
|
|
30
|
-
}, m.$attrs), {
|
|
31
|
-
default: r(() => [
|
|
32
|
-
t[2] || (t[2] = _("div", null, "Change team", -1)),
|
|
33
|
-
a(e(V), {
|
|
34
|
-
class: "ml-auto text-c-2 -mr-0.25 size-3",
|
|
35
|
-
weight: "bold"
|
|
36
|
-
})
|
|
37
|
-
]),
|
|
38
|
-
_: 1
|
|
39
|
-
}, 16, ["is", "icon"]),
|
|
40
|
-
a(e(o).Portal, null, {
|
|
41
|
-
default: r(() => [
|
|
42
|
-
a(e(o).SubContent, {
|
|
43
|
-
as: e(P),
|
|
44
|
-
class: "max-h-radix-popper z-context-plus",
|
|
45
|
-
sideOffset: 3
|
|
46
|
-
}, {
|
|
47
|
-
default: r(() => [
|
|
48
|
-
a(e(o).RadioGroup, {
|
|
49
|
-
modelValue: s.value,
|
|
50
|
-
"onUpdate:modelValue": t[0] || (t[0] = (l) => s.value = l),
|
|
51
|
-
class: "contents"
|
|
52
|
-
}, {
|
|
53
|
-
default: r(() => [
|
|
54
|
-
(n(!0), S(w, null, v(i.teams, (l) => (n(), c(e(o).RadioItem, {
|
|
55
|
-
key: l.id,
|
|
56
|
-
as: e(f),
|
|
57
|
-
class: "group/item flex items-center",
|
|
58
|
-
value: l.id
|
|
59
|
-
}, {
|
|
60
|
-
default: r(() => [
|
|
61
|
-
a(I, {
|
|
62
|
-
class: "-ml-0.75 flex-1 min-w-0",
|
|
63
|
-
label: l.label,
|
|
64
|
-
src: l.src
|
|
65
|
-
}, null, 8, ["label", "src"]),
|
|
66
|
-
a(e(z), {
|
|
67
|
-
class: "ml-auto",
|
|
68
|
-
selected: l.id === s.value
|
|
69
|
-
}, null, 8, ["selected"])
|
|
70
|
-
]),
|
|
71
|
-
_: 2
|
|
72
|
-
}, 1032, ["as", "value"]))), 128))
|
|
73
|
-
]),
|
|
74
|
-
_: 1
|
|
75
|
-
}, 8, ["modelValue"]),
|
|
76
|
-
a(e(o).Item, {
|
|
77
|
-
as: e(f),
|
|
78
|
-
class: "flex items-center",
|
|
79
|
-
onClick: t[1] || (t[1] = (l) => u("add"))
|
|
80
|
-
}, {
|
|
81
|
-
default: r(() => [
|
|
82
|
-
a(e($), {
|
|
83
|
-
class: "bg-b-3 -ml-0.75 rounded p-1 size-5 text-c-3",
|
|
84
|
-
weight: "bold"
|
|
85
|
-
}),
|
|
86
|
-
t[3] || (t[3] = C(" Create new team ", -1))
|
|
87
|
-
]),
|
|
88
|
-
_: 1
|
|
89
|
-
}, 8, ["as"])
|
|
90
|
-
]),
|
|
91
|
-
_: 1
|
|
92
|
-
}, 8, ["as"])
|
|
93
|
-
]),
|
|
94
|
-
_: 1
|
|
95
|
-
})
|
|
96
|
-
]),
|
|
97
|
-
_: 1
|
|
98
|
-
}));
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
export {
|
|
102
|
-
y as default
|
|
103
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, createElementBlock as l, openBlock as t, normalizeProps as s, guardReactiveProps as i, unref as r, createCommentVNode as o, createBlock as d, Fragment as m, createTextVNode as u, toDisplayString as a } from "vue";
|
|
2
|
-
import { ScalarIconUsers as f } from "@scalar/icons";
|
|
3
|
-
import { useBindCx as x } from "@scalar/use-hooks/useBindCx";
|
|
4
|
-
const b = ["src"], h = {
|
|
5
|
-
key: 1,
|
|
6
|
-
"aria-hidden": "true",
|
|
7
|
-
class: "flex items-center justify-center text-3xs font-medium text-c-3 size-5 bg-b-3 rounded"
|
|
8
|
-
}, g = {
|
|
9
|
-
key: 2,
|
|
10
|
-
class: "flex-1 truncate"
|
|
11
|
-
}, C = /* @__PURE__ */ c({
|
|
12
|
-
inheritAttrs: !1,
|
|
13
|
-
__name: "ScalarMenuTeamProfile",
|
|
14
|
-
props: {
|
|
15
|
-
src: {},
|
|
16
|
-
label: {}
|
|
17
|
-
},
|
|
18
|
-
setup(e) {
|
|
19
|
-
const { cx: n } = x();
|
|
20
|
-
return (k, y) => (t(), l("div", s(i(r(n)("flex h-full items-center gap-1"))), [
|
|
21
|
-
e.src ? (t(), l("img", {
|
|
22
|
-
key: 0,
|
|
23
|
-
class: "size-5 rounded",
|
|
24
|
-
role: "presentation",
|
|
25
|
-
src: e.src
|
|
26
|
-
}, null, 8, b)) : (t(), l("div", h, [
|
|
27
|
-
e.label && e.label.length > 0 ? (t(), l(m, { key: 0 }, [
|
|
28
|
-
u(a(e.label[0]), 1)
|
|
29
|
-
], 64)) : (t(), d(r(f), {
|
|
30
|
-
key: 1,
|
|
31
|
-
class: "size-3",
|
|
32
|
-
weight: "bold"
|
|
33
|
-
}))
|
|
34
|
-
])),
|
|
35
|
-
e.label && e.label.length > 0 ? (t(), l("div", g, a(e.label), 1)) : o("", !0)
|
|
36
|
-
], 16));
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
export {
|
|
40
|
-
C as default
|
|
41
|
-
};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, mergeModels as f, useModel as y, createBlock as i, openBlock as r, unref as e, withCtx as a, createVNode as o, mergeProps as M, createElementVNode as k, createElementBlock as c, Fragment as d, renderList as x, createCommentVNode as b, createTextVNode as g, toDisplayString as S } from "vue";
|
|
2
|
-
import { ScalarIconSwap as $, ScalarIconCaretRight as h, ScalarIconPlus as B } from "@scalar/icons";
|
|
3
|
-
import { DropdownMenu as t } from "radix-vue/namespaced";
|
|
4
|
-
import I from "./ScalarMenuLink.vue.js";
|
|
5
|
-
import N from "../ScalarDropdown/ScalarDropdownMenu.vue.js";
|
|
6
|
-
import V from "../ScalarDropdown/ScalarDropdownButton.vue.js";
|
|
7
|
-
import O from "../ScalarListbox/ScalarListboxCheckbox.vue.js";
|
|
8
|
-
const P = { class: "flex h-full items-center gap-1 flex-1 truncate" }, A = /* @__PURE__ */ C({
|
|
9
|
-
inheritAttrs: !1,
|
|
10
|
-
__name: "ScalarMenuWorkspacePicker",
|
|
11
|
-
props: /* @__PURE__ */ f({
|
|
12
|
-
workspaceOptions: {}
|
|
13
|
-
}, {
|
|
14
|
-
modelValue: {},
|
|
15
|
-
modelModifiers: {}
|
|
16
|
-
}),
|
|
17
|
-
emits: /* @__PURE__ */ f(["createWorkspace"], ["update:modelValue"]),
|
|
18
|
-
setup(m, { emit: _ }) {
|
|
19
|
-
const v = _, u = y(m, "modelValue");
|
|
20
|
-
return (w, l) => (r(), i(e(t).Sub, null, {
|
|
21
|
-
default: a(() => [
|
|
22
|
-
o(I, M({
|
|
23
|
-
is: e(t).SubTrigger,
|
|
24
|
-
icon: e($)
|
|
25
|
-
}, w.$attrs), {
|
|
26
|
-
default: a(() => [
|
|
27
|
-
l[2] || (l[2] = k("div", null, "Change workspace", -1)),
|
|
28
|
-
o(e(h), {
|
|
29
|
-
class: "ml-auto text-c-2 -mr-0.25 size-3",
|
|
30
|
-
weight: "bold"
|
|
31
|
-
})
|
|
32
|
-
]),
|
|
33
|
-
_: 1
|
|
34
|
-
}, 16, ["is", "icon"]),
|
|
35
|
-
o(e(t).Portal, null, {
|
|
36
|
-
default: a(() => [
|
|
37
|
-
o(e(t).SubContent, {
|
|
38
|
-
as: e(N),
|
|
39
|
-
class: "max-h-radix-popper z-context-plus",
|
|
40
|
-
sideOffset: 3
|
|
41
|
-
}, {
|
|
42
|
-
default: a(() => [
|
|
43
|
-
o(e(t).RadioGroup, {
|
|
44
|
-
modelValue: u.value,
|
|
45
|
-
"onUpdate:modelValue": l[0] || (l[0] = (s) => u.value = s),
|
|
46
|
-
class: "contents"
|
|
47
|
-
}, {
|
|
48
|
-
default: a(() => [
|
|
49
|
-
(r(!0), c(d, null, x(m.workspaceOptions, (s, p) => (r(), c(d, { key: p }, [
|
|
50
|
-
s.label ? (r(), i(e(t).Label, {
|
|
51
|
-
key: 0,
|
|
52
|
-
class: "px-3 py-1.5 text-xs font-medium text-c-3 select-none"
|
|
53
|
-
}, {
|
|
54
|
-
default: a(() => [
|
|
55
|
-
g(S(s.label), 1)
|
|
56
|
-
]),
|
|
57
|
-
_: 2
|
|
58
|
-
}, 1024)) : b("", !0),
|
|
59
|
-
(r(!0), c(d, null, x(s.options, (n) => (r(), i(e(t).RadioItem, {
|
|
60
|
-
key: n.id,
|
|
61
|
-
as: e(V),
|
|
62
|
-
class: "group/item flex items-center",
|
|
63
|
-
value: n.id
|
|
64
|
-
}, {
|
|
65
|
-
default: a(() => [
|
|
66
|
-
k("div", P, S(n.label), 1),
|
|
67
|
-
o(e(O), {
|
|
68
|
-
class: "ml-auto",
|
|
69
|
-
selected: n.id === u.value
|
|
70
|
-
}, null, 8, ["selected"])
|
|
71
|
-
]),
|
|
72
|
-
_: 2
|
|
73
|
-
}, 1032, ["as", "value"]))), 128)),
|
|
74
|
-
p < m.workspaceOptions.length - 1 ? (r(), i(e(t).Separator, {
|
|
75
|
-
key: 1,
|
|
76
|
-
class: "h-px bg-b-3 my-1.5"
|
|
77
|
-
})) : b("", !0)
|
|
78
|
-
], 64))), 128))
|
|
79
|
-
]),
|
|
80
|
-
_: 1
|
|
81
|
-
}, 8, ["modelValue"]),
|
|
82
|
-
o(e(t).Item, {
|
|
83
|
-
as: e(V),
|
|
84
|
-
class: "flex items-center",
|
|
85
|
-
onClick: l[1] || (l[1] = (s) => v("createWorkspace"))
|
|
86
|
-
}, {
|
|
87
|
-
default: a(() => [
|
|
88
|
-
o(e(B), {
|
|
89
|
-
class: "bg-b-3 -ml-0.75 rounded p-1 size-5 text-c-3",
|
|
90
|
-
weight: "bold"
|
|
91
|
-
}),
|
|
92
|
-
l[3] || (l[3] = g(" Create workspace ", -1))
|
|
93
|
-
]),
|
|
94
|
-
_: 1
|
|
95
|
-
}, 8, ["as"])
|
|
96
|
-
]),
|
|
97
|
-
_: 1
|
|
98
|
-
}, 8, ["as"])
|
|
99
|
-
]),
|
|
100
|
-
_: 1
|
|
101
|
-
})
|
|
102
|
-
]),
|
|
103
|
-
_: 1
|
|
104
|
-
}));
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
export {
|
|
108
|
-
A as default
|
|
109
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import o from "./ScalarModal.vue2.js";
|
|
2
|
-
import { useModal as e } from "./ScalarModal.vue2.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import a from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const p = /* @__PURE__ */ a(o, [["__scopeId", "data-v-c36b47da"]]);
|
|
6
|
-
export {
|
|
7
|
-
p as default,
|
|
8
|
-
e as useModal
|
|
9
|
-
};
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, createBlock as r, openBlock as l, unref as a, withCtx as s, createElementVNode as b, normalizeClass as o, createVNode as d, createElementBlock as i, createCommentVNode as n, normalizeStyle as g, createTextVNode as z, toDisplayString as k, renderSlot as c, reactive as p } from "vue";
|
|
2
|
-
import { Dialog as C, DialogPanel as S, DialogTitle as D } from "@headlessui/vue";
|
|
3
|
-
import { ScalarIconX as N } from "@scalar/icons";
|
|
4
|
-
import { cva as x, cx as f } from "@scalar/use-hooks/useBindCx";
|
|
5
|
-
import V from "../ScalarIconButton/ScalarIconButton.vue.js";
|
|
6
|
-
const $ = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "close-button z-10 fixed right-2 top-2"
|
|
9
|
-
};
|
|
10
|
-
function I() {
|
|
11
|
-
return p({
|
|
12
|
-
open: !1,
|
|
13
|
-
show() {
|
|
14
|
-
this.open = !0;
|
|
15
|
-
},
|
|
16
|
-
hide() {
|
|
17
|
-
this.open = !1;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
const P = /* @__PURE__ */ y({
|
|
22
|
-
__name: "ScalarModal",
|
|
23
|
-
props: {
|
|
24
|
-
state: {},
|
|
25
|
-
title: {},
|
|
26
|
-
bodyClass: {},
|
|
27
|
-
maxWidth: {},
|
|
28
|
-
size: { default: "md" },
|
|
29
|
-
variant: {}
|
|
30
|
-
},
|
|
31
|
-
emits: ["close"],
|
|
32
|
-
setup(e, { emit: v }) {
|
|
33
|
-
const u = v, h = x({
|
|
34
|
-
base: [
|
|
35
|
-
"scalar-modal",
|
|
36
|
-
"flex flex-col relative mb-0 rounded-lg bg-b-1 p-0 text-left leading-snug text-c-1 opacity-0 w-[calc(100vw-12px)] md:w-[calc(100vw-16px)] lg:w-[calc(100vw-32px)]"
|
|
37
|
-
].join(" "),
|
|
38
|
-
variants: {
|
|
39
|
-
size: {
|
|
40
|
-
xxs: "mt-[20svh] max-h-[60svh] max-w-[360px]",
|
|
41
|
-
xs: "mt-[20svh] max-h-[60svh] max-w-[480px]",
|
|
42
|
-
sm: "mt-[20svh] max-h-[60svh] max-w-[540px]",
|
|
43
|
-
md: "mt-[20svh] max-h-[60svh] max-w-[640px]",
|
|
44
|
-
lg: "m-auto max-h-[80svh] max-w-[800px]",
|
|
45
|
-
xl: "m-auto max-h-[90svh] max-w-[1000px]",
|
|
46
|
-
full: "full-size-styles max-h-dvh mt-0 lg:w-full"
|
|
47
|
-
},
|
|
48
|
-
variant: {
|
|
49
|
-
form: "scalar-modal-form",
|
|
50
|
-
search: "scalar-modal-search mt-[15svh] max-h-[60svh] max-w-[540px]",
|
|
51
|
-
error: "scalar-modal-error"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}), w = x({
|
|
55
|
-
base: ["scalar-modal-body", "relative flex-1 min-h-0 p-3"].join(" "),
|
|
56
|
-
variants: {
|
|
57
|
-
variant: {
|
|
58
|
-
form: "overflow-visible",
|
|
59
|
-
search: "flex flex-col !m-0 overflow-hidden p-0",
|
|
60
|
-
error: "overflow-y-scroll"
|
|
61
|
-
},
|
|
62
|
-
size: {
|
|
63
|
-
xxs: "",
|
|
64
|
-
xs: "",
|
|
65
|
-
sm: "",
|
|
66
|
-
md: "",
|
|
67
|
-
lg: "",
|
|
68
|
-
xl: "m-0 p-0",
|
|
69
|
-
full: " rounded-none"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
return (m, t) => (l(), r(a(C), {
|
|
74
|
-
open: e.state.open,
|
|
75
|
-
onClose: t[1] || (t[1] = () => {
|
|
76
|
-
e.state.hide(), u("close");
|
|
77
|
-
})
|
|
78
|
-
}, {
|
|
79
|
-
default: s(() => [
|
|
80
|
-
b("div", {
|
|
81
|
-
class: o(
|
|
82
|
-
a(f)(
|
|
83
|
-
e.size === "full" ? "scalar-modal-layout-full" : "scalar-modal-layout",
|
|
84
|
-
"fixed left-0 top-0 flex items-start justify-center",
|
|
85
|
-
"z-overlay h-dvh w-dvw",
|
|
86
|
-
"bg-backdrop opacity-0 dark:bg-backdrop-dark",
|
|
87
|
-
e.size === "full" && "flex"
|
|
88
|
-
)
|
|
89
|
-
)
|
|
90
|
-
}, [
|
|
91
|
-
d(a(S), {
|
|
92
|
-
class: o(a(h)({ size: e.size, variant: e.variant })),
|
|
93
|
-
style: g({ maxWidth: e.maxWidth })
|
|
94
|
-
}, {
|
|
95
|
-
default: s(() => [
|
|
96
|
-
e.title ? (l(), r(a(D), {
|
|
97
|
-
key: 0,
|
|
98
|
-
class: "scalar-modal-header m-0 -mb-1 rounded-lg pt-3 px-3 text-left text-sm font-medium text-c-1"
|
|
99
|
-
}, {
|
|
100
|
-
default: s(() => [
|
|
101
|
-
z(k(e.title), 1)
|
|
102
|
-
]),
|
|
103
|
-
_: 1
|
|
104
|
-
})) : n("", !0),
|
|
105
|
-
e.size === "full" ? (l(), i("div", {
|
|
106
|
-
key: 1,
|
|
107
|
-
class: o(e.bodyClass)
|
|
108
|
-
}, [
|
|
109
|
-
c(m.$slots, "default", {}, void 0, !0)
|
|
110
|
-
], 2)) : (l(), i("div", {
|
|
111
|
-
key: 2,
|
|
112
|
-
class: o(a(f)(a(w)({ size: e.size, variant: e.variant }), e.bodyClass))
|
|
113
|
-
}, [
|
|
114
|
-
c(m.$slots, "default", {}, void 0, !0)
|
|
115
|
-
], 2))
|
|
116
|
-
]),
|
|
117
|
-
_: 3
|
|
118
|
-
}, 8, ["class", "style"]),
|
|
119
|
-
e.size === "full" ? (l(), i("div", $, [
|
|
120
|
-
d(a(V), {
|
|
121
|
-
class: "hover:bg-b-3 focus:outline-none",
|
|
122
|
-
icon: a(N),
|
|
123
|
-
label: "Close modal",
|
|
124
|
-
onClick: t[0] || (t[0] = (j) => e.state.hide())
|
|
125
|
-
}, null, 8, ["icon"])
|
|
126
|
-
])) : n("", !0)
|
|
127
|
-
], 2)
|
|
128
|
-
]),
|
|
129
|
-
_: 3
|
|
130
|
-
}, 8, ["open"]));
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
export {
|
|
134
|
-
P as default,
|
|
135
|
-
I as useModal
|
|
136
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, createBlock as i, openBlock as u, unref as e, withCtx as o, createVNode as r, normalizeProps as d, guardReactiveProps as _, renderSlot as l, mergeProps as P } from "vue";
|
|
2
|
-
import { Popover as v, PopoverButton as B, PopoverPanel as y } from "@headlessui/vue";
|
|
3
|
-
import { useBindCx as $ } from "@scalar/use-hooks/useBindCx";
|
|
4
|
-
import g from "../ScalarFloating/ScalarFloating.vue.js";
|
|
5
|
-
import b from "../ScalarFloating/ScalarFloatingBackdrop.vue.js";
|
|
6
|
-
const z = /* @__PURE__ */ c({
|
|
7
|
-
inheritAttrs: !1,
|
|
8
|
-
__name: "ScalarPopover",
|
|
9
|
-
props: {
|
|
10
|
-
focus: { type: Boolean },
|
|
11
|
-
placement: {},
|
|
12
|
-
offset: { type: [Number, Object, Function] },
|
|
13
|
-
resize: { type: Boolean },
|
|
14
|
-
target: {},
|
|
15
|
-
middleware: {},
|
|
16
|
-
teleport: { type: [Boolean, String] }
|
|
17
|
-
},
|
|
18
|
-
setup(s) {
|
|
19
|
-
const { cx: p } = $();
|
|
20
|
-
return (t, h) => (u(), i(e(v), { as: "template" }, {
|
|
21
|
-
default: o(({ open: a }) => [
|
|
22
|
-
r(e(g), d(_(t.$props)), {
|
|
23
|
-
floating: o(({ width: f, height: n }) => [
|
|
24
|
-
r(e(y), P({
|
|
25
|
-
focus: s.focus,
|
|
26
|
-
style: { width: f, height: n }
|
|
27
|
-
}, e(p)("relative flex flex-col p-0.75")), {
|
|
28
|
-
default: o(({ close: m }) => [
|
|
29
|
-
l(t.$slots, "popover", {
|
|
30
|
-
close: () => m(),
|
|
31
|
-
open: a
|
|
32
|
-
}),
|
|
33
|
-
l(t.$slots, "backdrop", { open: a }, () => [
|
|
34
|
-
r(e(b))
|
|
35
|
-
])
|
|
36
|
-
]),
|
|
37
|
-
_: 2
|
|
38
|
-
}, 1040, ["focus", "style"])
|
|
39
|
-
]),
|
|
40
|
-
default: o(() => [
|
|
41
|
-
r(e(B), { as: "template" }, {
|
|
42
|
-
default: o(() => [
|
|
43
|
-
l(t.$slots, "default", { open: a })
|
|
44
|
-
]),
|
|
45
|
-
_: 2
|
|
46
|
-
}, 1024)
|
|
47
|
-
]),
|
|
48
|
-
_: 2
|
|
49
|
-
}, 1040)
|
|
50
|
-
]),
|
|
51
|
-
_: 3
|
|
52
|
-
}));
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
export {
|
|
56
|
-
z as default
|
|
57
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, mergeModels as m, useModel as f, ref as p, createElementBlock as h, openBlock as r, normalizeProps as g, guardReactiveProps as v, unref as e, createVNode as b, withDirectives as x, createBlock as n, createCommentVNode as y, createElementVNode as k, mergeProps as C, vModelText as S, withModifiers as V } from "vue";
|
|
2
|
-
import { ScalarIconMagnifyingGlass as M, ScalarIconX as z } from "@scalar/icons";
|
|
3
|
-
import { useBindCx as _ } from "@scalar/use-hooks/useBindCx";
|
|
4
|
-
import A from "../ScalarLoading/ScalarLoading.vue.js";
|
|
5
|
-
import B from "../ScalarIconButton/ScalarIconButton.vue.js";
|
|
6
|
-
const w = ["aria-label"], E = {}, G = /* @__PURE__ */ d({
|
|
7
|
-
...E,
|
|
8
|
-
inheritAttrs: !1,
|
|
9
|
-
__name: "ScalarSearchInput",
|
|
10
|
-
props: /* @__PURE__ */ m({
|
|
11
|
-
loader: {},
|
|
12
|
-
label: {}
|
|
13
|
-
}, {
|
|
14
|
-
modelValue: {},
|
|
15
|
-
modelModifiers: {}
|
|
16
|
-
}),
|
|
17
|
-
emits: ["update:modelValue"],
|
|
18
|
-
setup(l) {
|
|
19
|
-
const a = f(l, "modelValue"), o = p(null);
|
|
20
|
-
function c() {
|
|
21
|
-
a.value = "", o.value && o.value.focus();
|
|
22
|
-
}
|
|
23
|
-
const { stylingAttrsCx: i, otherAttrs: s } = _();
|
|
24
|
-
return (I, t) => (r(), h("label", g(v(
|
|
25
|
-
e(i)(
|
|
26
|
-
"flex items-center text-lg font-medium h-10 pl-3 pr-1.5 py-2 gap-2.25"
|
|
27
|
-
)
|
|
28
|
-
)), [
|
|
29
|
-
b(e(M), { class: "text-sidebar-c-search size-4" }),
|
|
30
|
-
x(k("input", C({
|
|
31
|
-
ref_key: "inputRef",
|
|
32
|
-
ref: o
|
|
33
|
-
}, e(s), {
|
|
34
|
-
"onUpdate:modelValue": t[0] || (t[0] = (u) => a.value = u),
|
|
35
|
-
"aria-label": l.label ?? "Enter search query",
|
|
36
|
-
autocapitalize: "off",
|
|
37
|
-
autocomplete: "off",
|
|
38
|
-
autocorrect: "off",
|
|
39
|
-
class: "flex-1 appearance-none rounded border-none bg-transparent outline-none",
|
|
40
|
-
placeholder: "Search...",
|
|
41
|
-
spellcheck: "false",
|
|
42
|
-
type: "search"
|
|
43
|
-
}), null, 16, w), [
|
|
44
|
-
[S, a.value]
|
|
45
|
-
]),
|
|
46
|
-
l.loader && l.loader.isActive ? (r(), n(e(A), {
|
|
47
|
-
key: 0,
|
|
48
|
-
class: "mr-1",
|
|
49
|
-
loader: l.loader,
|
|
50
|
-
size: "lg"
|
|
51
|
-
}, null, 8, ["loader"])) : a.value ? (r(), n(e(B), {
|
|
52
|
-
key: 1,
|
|
53
|
-
class: "-my-1",
|
|
54
|
-
icon: e(z),
|
|
55
|
-
label: "Clear Search",
|
|
56
|
-
size: "sm",
|
|
57
|
-
weight: "bold",
|
|
58
|
-
onClick: V(c, ["stop", "prevent"])
|
|
59
|
-
}, null, 8, ["icon"])) : y("", !0)
|
|
60
|
-
], 16));
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
export {
|
|
64
|
-
G as default
|
|
65
|
-
};
|