@scalar/components 0.20.8 → 0.20.10
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/ScalarTextArea.vue.d.ts +2 -2
- package/dist/components/ScalarTextArea/ScalarTextArea.vue.d.ts.map +1 -1
- 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 -46
- 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,68 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, ref as u, createBlock as c, openBlock as _, unref as o, withCtx as t, createVNode as r, normalizeProps as v, guardReactiveProps as y, createSlots as w, renderSlot as p, mergeProps as x } from "vue";
|
|
2
|
-
import { Popover as B, PopoverButton as P, PopoverPanel as h } from "@headlessui/vue";
|
|
3
|
-
import { useBindCx as k } 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__ */ d({
|
|
7
|
-
inheritAttrs: !1,
|
|
8
|
-
__name: "ScalarComboboxPopover",
|
|
9
|
-
props: {
|
|
10
|
-
placement: {},
|
|
11
|
-
offset: { type: [Number, Object, Function] },
|
|
12
|
-
resize: { type: Boolean },
|
|
13
|
-
target: {},
|
|
14
|
-
middleware: {},
|
|
15
|
-
teleport: { type: [Boolean, String] }
|
|
16
|
-
},
|
|
17
|
-
setup($, { expose: l }) {
|
|
18
|
-
const { cx: s } = k(), a = u(null), f = (e) => {
|
|
19
|
-
["ArrowUp", "ArrowDown"].includes(e.key) && (e.preventDefault(), e.target?.dispatchEvent(new KeyboardEvent("keydown", { key: "Enter" })));
|
|
20
|
-
};
|
|
21
|
-
return l({ popoverButtonRef: a }), (e, C) => (_(), c(o(B), { as: "template" }, {
|
|
22
|
-
default: t(({ open: n }) => [
|
|
23
|
-
r(o(g), v(y(e.$props)), w({
|
|
24
|
-
default: t(() => [
|
|
25
|
-
r(o(P), {
|
|
26
|
-
ref_key: "popoverButtonRef",
|
|
27
|
-
ref: a,
|
|
28
|
-
as: "template",
|
|
29
|
-
onKeydown: f
|
|
30
|
-
}, {
|
|
31
|
-
default: t(() => [
|
|
32
|
-
p(e.$slots, "default", { open: n })
|
|
33
|
-
]),
|
|
34
|
-
_: 2
|
|
35
|
-
}, 1536)
|
|
36
|
-
]),
|
|
37
|
-
_: 2
|
|
38
|
-
}, [
|
|
39
|
-
n ? {
|
|
40
|
-
name: "floating",
|
|
41
|
-
fn: t(({ width: i }) => [
|
|
42
|
-
r(o(h), x(
|
|
43
|
-
{
|
|
44
|
-
style: { width: i }
|
|
45
|
-
},
|
|
46
|
-
o(s)("relative flex flex-col max-h-[inherit] w-40 rounded text-sm")
|
|
47
|
-
), {
|
|
48
|
-
default: t(({ close: m }) => [
|
|
49
|
-
p(e.$slots, "popover", {
|
|
50
|
-
close: m,
|
|
51
|
-
open: n
|
|
52
|
-
}),
|
|
53
|
-
r(o(b))
|
|
54
|
-
]),
|
|
55
|
-
_: 2
|
|
56
|
-
}, 1040, ["style"])
|
|
57
|
-
]),
|
|
58
|
-
key: "0"
|
|
59
|
-
} : void 0
|
|
60
|
-
]), 1040)
|
|
61
|
-
]),
|
|
62
|
-
_: 3
|
|
63
|
-
}));
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
export {
|
|
67
|
-
z as default
|
|
68
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
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 o } from "vue";
|
|
2
|
-
import { ContextMenuRoot as u, ContextMenuTrigger as c, ContextMenuPortal as g, ContextMenuContent as C, ContextMenuItem as m } from "radix-vue";
|
|
3
|
-
const M = /* @__PURE__ */ d({
|
|
4
|
-
__name: "ScalarContextMenu",
|
|
5
|
-
props: {
|
|
6
|
-
align: { default: "center" },
|
|
7
|
-
side: { default: "bottom" },
|
|
8
|
-
sideOffset: {},
|
|
9
|
-
disabled: { type: Boolean, default: !1 },
|
|
10
|
-
triggerClass: {}
|
|
11
|
-
},
|
|
12
|
-
setup(s) {
|
|
13
|
-
const l = s;
|
|
14
|
-
return (a, p) => (i(), r(e(u), null, {
|
|
15
|
-
default: t(() => [
|
|
16
|
-
n(e(c), {
|
|
17
|
-
class: f(s.triggerClass),
|
|
18
|
-
disabled: l.disabled
|
|
19
|
-
}, {
|
|
20
|
-
default: t(() => [
|
|
21
|
-
o(a.$slots, "trigger")
|
|
22
|
-
]),
|
|
23
|
-
_: 3
|
|
24
|
-
}, 8, ["class", "disabled"]),
|
|
25
|
-
n(e(g), null, {
|
|
26
|
-
default: t(() => [
|
|
27
|
-
n(e(C), {
|
|
28
|
-
align: l.align,
|
|
29
|
-
side: l.side,
|
|
30
|
-
sideOffset: l.sideOffset
|
|
31
|
-
}, {
|
|
32
|
-
default: t(() => [
|
|
33
|
-
n(e(m), null, {
|
|
34
|
-
default: t(() => [
|
|
35
|
-
o(a.$slots, "content")
|
|
36
|
-
]),
|
|
37
|
-
_: 3
|
|
38
|
-
})
|
|
39
|
-
]),
|
|
40
|
-
_: 3
|
|
41
|
-
}, 8, ["align", "side", "sideOffset"])
|
|
42
|
-
]),
|
|
43
|
-
_: 3
|
|
44
|
-
})
|
|
45
|
-
]),
|
|
46
|
-
_: 3
|
|
47
|
-
}));
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
export {
|
|
51
|
-
M as default
|
|
52
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, mergeModels as s, useModel as m, onMounted as r, watch as u, createBlock as f, openBlock as y, unref as c, createSlots as b, withCtx as t, renderSlot as a } from "vue";
|
|
2
|
-
import { useClipboard as k } from "@vueuse/core";
|
|
3
|
-
import $ from "./ScalarCopyButton.vue.js";
|
|
4
|
-
const v = {}, L = /* @__PURE__ */ p({
|
|
5
|
-
...v,
|
|
6
|
-
__name: "ScalarCopy",
|
|
7
|
-
props: /* @__PURE__ */ s({
|
|
8
|
-
content: { default: "" },
|
|
9
|
-
placement: {},
|
|
10
|
-
showLabel: { type: Boolean },
|
|
11
|
-
duration: { default: 1500 },
|
|
12
|
-
immediate: { type: Boolean }
|
|
13
|
-
}, {
|
|
14
|
-
copied: { type: Boolean, default: !1 },
|
|
15
|
-
copiedModifiers: {}
|
|
16
|
-
}),
|
|
17
|
-
emits: ["update:copied"],
|
|
18
|
-
setup(o) {
|
|
19
|
-
const n = m(o, "copied");
|
|
20
|
-
r(() => {
|
|
21
|
-
o.immediate && d(o.content);
|
|
22
|
-
});
|
|
23
|
-
const { copy: d, copied: i } = k({
|
|
24
|
-
legacy: !0,
|
|
25
|
-
copiedDuring: o.duration
|
|
26
|
-
});
|
|
27
|
-
return u(i, (e) => n.value = e), (e, l) => (y(), f($, {
|
|
28
|
-
copied: n.value || c(i),
|
|
29
|
-
placement: o.placement,
|
|
30
|
-
showLabel: o.showLabel,
|
|
31
|
-
onClick: l[0] || (l[0] = (w) => c(d)(o.content))
|
|
32
|
-
}, b({ _: 2 }, [
|
|
33
|
-
e.$slots.copy ? {
|
|
34
|
-
name: "copy",
|
|
35
|
-
fn: t(() => [
|
|
36
|
-
a(e.$slots, "copy")
|
|
37
|
-
]),
|
|
38
|
-
key: "0"
|
|
39
|
-
} : void 0,
|
|
40
|
-
e.$slots.copied ? {
|
|
41
|
-
name: "copied",
|
|
42
|
-
fn: t(() => [
|
|
43
|
-
a(e.$slots, "copied")
|
|
44
|
-
]),
|
|
45
|
-
key: "1"
|
|
46
|
-
} : void 0,
|
|
47
|
-
e.$slots.backdrop ? {
|
|
48
|
-
name: "backdrop",
|
|
49
|
-
fn: t(() => [
|
|
50
|
-
a(e.$slots, "backdrop")
|
|
51
|
-
]),
|
|
52
|
-
key: "2"
|
|
53
|
-
} : void 0
|
|
54
|
-
]), 1032, ["copied", "placement", "showLabel"]));
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
export {
|
|
58
|
-
L as default
|
|
59
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { defineComponent as t, createElementBlock as r, openBlock as o, normalizeProps as n, guardReactiveProps as a, unref as c } from "vue";
|
|
2
|
-
import { useBindCx as s } from "@scalar/use-hooks/useBindCx";
|
|
3
|
-
const i = {}, f = /* @__PURE__ */ t({
|
|
4
|
-
...i,
|
|
5
|
-
inheritAttrs: !1,
|
|
6
|
-
__name: "ScalarCopyBackdrop",
|
|
7
|
-
setup(l) {
|
|
8
|
-
const { cx: e } = s();
|
|
9
|
-
return (p, _) => (o(), r("div", n(a(c(e)("absolute inset-y-0.5 -z-2 left-0 right-0 bg-b-1 rounded"))), null, 16));
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
export {
|
|
13
|
-
f as default
|
|
14
|
-
};
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, mergeModels as v, useModel as C, computed as b, createElementBlock as a, openBlock as t, mergeProps as k, unref as x, createVNode as i, createElementVNode as c, Transition as d, withCtx as p, createBlock as h, resolveDynamicComponent as g, normalizeClass as u, renderSlot as l, createTextVNode as r } from "vue";
|
|
2
|
-
import { ScalarIconCheck as w, ScalarIconCopy as B } from "@scalar/icons";
|
|
3
|
-
import { useBindCx as T } from "@scalar/use-hooks/useBindCx";
|
|
4
|
-
import $ from "./ScalarCopyBackdrop.vue.js";
|
|
5
|
-
const z = {
|
|
6
|
-
"aria-hidden": "true",
|
|
7
|
-
class: "flex items-center py-1.5 mask-y-from-[calc(100%-8px)] mask-y-to-100%"
|
|
8
|
-
}, A = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "whitespace-nowrap px-1.5"
|
|
11
|
-
}, F = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "sr-only",
|
|
14
|
-
role: "alert"
|
|
15
|
-
}, S = {
|
|
16
|
-
key: 1,
|
|
17
|
-
class: "sr-only"
|
|
18
|
-
}, M = {}, L = /* @__PURE__ */ y({
|
|
19
|
-
...M,
|
|
20
|
-
inheritAttrs: !1,
|
|
21
|
-
__name: "ScalarCopyButton",
|
|
22
|
-
props: /* @__PURE__ */ v({
|
|
23
|
-
showLabel: { type: Boolean },
|
|
24
|
-
placement: { default: "right" }
|
|
25
|
-
}, {
|
|
26
|
-
copied: { type: Boolean, default: !1 },
|
|
27
|
-
copiedModifiers: {}
|
|
28
|
-
}),
|
|
29
|
-
emits: ["update:copied"],
|
|
30
|
-
setup(n) {
|
|
31
|
-
const o = C(n, "copied"), { cx: m } = T(), f = b(() => o.value ? w : B);
|
|
32
|
-
return (s, e) => (t(), a("button", k(
|
|
33
|
-
{ type: "button" },
|
|
34
|
-
x(m)(
|
|
35
|
-
"group/copy-button relative z-0 flex items-center justify-center",
|
|
36
|
-
"size-6 p-1.25 -m-1 rounded text-xs bg-b-2",
|
|
37
|
-
o.value ? "text-c-1" : "text-c-2 hover:text-c-1"
|
|
38
|
-
)
|
|
39
|
-
), [
|
|
40
|
-
i(d, {
|
|
41
|
-
enterActiveClass: "transition-transform",
|
|
42
|
-
enterFromClass: "scale-0",
|
|
43
|
-
enterToClass: "scale-100",
|
|
44
|
-
leaveActiveClass: "transition-transform",
|
|
45
|
-
leaveFromClass: "scale-100",
|
|
46
|
-
leaveToClass: "scale-0",
|
|
47
|
-
mode: "out-in"
|
|
48
|
-
}, {
|
|
49
|
-
default: p(() => [
|
|
50
|
-
(t(), h(g(f.value), { class: "size-full" }))
|
|
51
|
-
]),
|
|
52
|
-
_: 1
|
|
53
|
-
}),
|
|
54
|
-
e[4] || (e[4] = c("div", { class: "bg-inherit rounded-[inherit] absolute inset-0 -z-1" }, null, -1)),
|
|
55
|
-
c("div", {
|
|
56
|
-
class: u(["group/copy-label absolute flex items-center -inset-y-0.5 rounded", {
|
|
57
|
-
"left-0 pl-[100%]": n.placement === "right",
|
|
58
|
-
"right-0 pr-[100%]": n.placement === "left"
|
|
59
|
-
}])
|
|
60
|
-
}, [
|
|
61
|
-
c("div", z, [
|
|
62
|
-
i(d, {
|
|
63
|
-
enterActiveClass: "transition-transform ease-out",
|
|
64
|
-
enterFromClass: "translate-y-1.5",
|
|
65
|
-
enterToClass: "translate-y-0",
|
|
66
|
-
leaveActiveClass: "transition-transform ease-in",
|
|
67
|
-
leaveFromClass: "translate-y-0",
|
|
68
|
-
leaveToClass: "-translate-y-1.5",
|
|
69
|
-
mode: "out-in"
|
|
70
|
-
}, {
|
|
71
|
-
default: p(() => [
|
|
72
|
-
o.value ? (t(), a("div", A, [
|
|
73
|
-
l(s.$slots, "copied", {}, () => [
|
|
74
|
-
e[0] || (e[0] = r("Copied", -1))
|
|
75
|
-
])
|
|
76
|
-
])) : (t(), a("div", {
|
|
77
|
-
key: 1,
|
|
78
|
-
class: u(["whitespace-nowrap px-1.5", {
|
|
79
|
-
"group-hocus/copy-button:block hidden": !n.showLabel && !o.value
|
|
80
|
-
}])
|
|
81
|
-
}, [
|
|
82
|
-
l(s.$slots, "copy", {}, () => [
|
|
83
|
-
e[1] || (e[1] = r("Copy", -1))
|
|
84
|
-
])
|
|
85
|
-
], 2))
|
|
86
|
-
]),
|
|
87
|
-
_: 3
|
|
88
|
-
})
|
|
89
|
-
]),
|
|
90
|
-
o.value ? (t(), a("div", F, [
|
|
91
|
-
l(s.$slots, "copied", {}, () => [
|
|
92
|
-
e[2] || (e[2] = r("Copied", -1))
|
|
93
|
-
])
|
|
94
|
-
])) : (t(), a("div", S, [
|
|
95
|
-
l(s.$slots, "copy", {}, () => [
|
|
96
|
-
e[3] || (e[3] = r("Copy", -1))
|
|
97
|
-
])
|
|
98
|
-
])),
|
|
99
|
-
l(s.$slots, "backdrop", {}, () => [
|
|
100
|
-
i($)
|
|
101
|
-
])
|
|
102
|
-
], 2)
|
|
103
|
-
], 16));
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
export {
|
|
107
|
-
L as default
|
|
108
|
-
};
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { defineComponent as B, mergeModels as D, ref as b, useModel as g, useId as $, watch as I, computed as K, createBlock as L, openBlock as M, unref as m, mergeProps as R, createSlots as N, withCtx as A, renderSlot as C, createVNode as q, createElementVNode as O, withKeys as a, withModifiers as r, nextTick as E } from "vue";
|
|
2
|
-
import { useBindCx as U } from "@scalar/use-hooks/useBindCx";
|
|
3
|
-
import { onClickOutside as V } from "@vueuse/core";
|
|
4
|
-
import j from "./ScalarDropdownMenu.vue.js";
|
|
5
|
-
import { useDropdown as z } from "./useDropdown.js";
|
|
6
|
-
import F from "../ScalarFloating/ScalarFloating.vue.js";
|
|
7
|
-
const P = ["id", "aria-activedescendant", "aria-labelledby", "onKeydown"], G = {}, Z = /* @__PURE__ */ B({
|
|
8
|
-
...G,
|
|
9
|
-
inheritAttrs: !1,
|
|
10
|
-
__name: "ScalarDropdown",
|
|
11
|
-
props: /* @__PURE__ */ D({
|
|
12
|
-
placement: {},
|
|
13
|
-
offset: { type: [Number, Object, Function] },
|
|
14
|
-
resize: { type: Boolean },
|
|
15
|
-
target: {},
|
|
16
|
-
middleware: {},
|
|
17
|
-
teleport: { type: [Boolean, String] }
|
|
18
|
-
}, {
|
|
19
|
-
open: { type: Boolean, default: !1 },
|
|
20
|
-
openModifiers: {}
|
|
21
|
-
}),
|
|
22
|
-
emits: ["update:open"],
|
|
23
|
-
setup(k) {
|
|
24
|
-
const l = b(), i = b(), n = g(k, "open"), { active: o } = z(), v = $(), f = b(v), y = $();
|
|
25
|
-
async function x() {
|
|
26
|
-
n.value = !n.value, await E(), n.value && i.value?.focus();
|
|
27
|
-
}
|
|
28
|
-
async function h(e) {
|
|
29
|
-
if (["ArrowDown", "ArrowUp", " ", "Enter"].includes(e.key))
|
|
30
|
-
e.preventDefault();
|
|
31
|
-
else return;
|
|
32
|
-
n.value || (n.value = !0), await E(), i.value?.focus(), ["ArrowDown", " ", "Enter"].includes(e.key) ? c(1) : e.key === "ArrowUp" && c(-1);
|
|
33
|
-
}
|
|
34
|
-
I(
|
|
35
|
-
() => l.value?.targetRef,
|
|
36
|
-
(e, t) => {
|
|
37
|
-
e && (e.id ? f.value = e.id : (f.value = v, e.setAttribute("id", f.value)), e.setAttribute("aria-haspopup", "menu"), e.setAttribute("aria-expanded", `${n.value}`), n.value && e.setAttribute("aria-controls", y), e.addEventListener("click", x), e.addEventListener("keydown", h)), t && t !== e && (t.id === v && t.removeAttribute("id"), t.removeAttribute("aria-controls"), t.removeAttribute("aria-haspopup"), t.removeAttribute("aria-expanded"), t.removeEventListener("click", x), t.removeEventListener("keydown", h));
|
|
38
|
-
},
|
|
39
|
-
{ immediate: !0 }
|
|
40
|
-
), I(
|
|
41
|
-
n,
|
|
42
|
-
(e) => {
|
|
43
|
-
const t = l.value?.targetRef;
|
|
44
|
-
t && (t.setAttribute("aria-expanded", `${e}`), e ? t.setAttribute("aria-controls", y) : t.removeAttribute("aria-controls"));
|
|
45
|
-
},
|
|
46
|
-
{ immediate: !0 }
|
|
47
|
-
);
|
|
48
|
-
async function u() {
|
|
49
|
-
l.value?.targetRef?.focus(), n.value = !1;
|
|
50
|
-
}
|
|
51
|
-
function w() {
|
|
52
|
-
if (!o.value || !i.value) return;
|
|
53
|
-
const e = i.value.querySelector(
|
|
54
|
-
`#${o.value}[role="menuitem"]:not([aria-disabled="true"])`
|
|
55
|
-
);
|
|
56
|
-
e && (e.click(), u());
|
|
57
|
-
}
|
|
58
|
-
function c(e) {
|
|
59
|
-
if (!n.value || !i.value) return;
|
|
60
|
-
const t = Array.from(
|
|
61
|
-
i.value.querySelectorAll(
|
|
62
|
-
'[role="menuitem"]:not([aria-disabled="true"])'
|
|
63
|
-
)
|
|
64
|
-
);
|
|
65
|
-
if (t.length === 0) return;
|
|
66
|
-
const d = t.findIndex((p) => p.id === o.value);
|
|
67
|
-
if (d === -1) {
|
|
68
|
-
const p = t[e > 0 ? 0 : t.length - 1];
|
|
69
|
-
p?.id && (o.value = p.id);
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
const s = d + e;
|
|
73
|
-
if (s < 0 || s > t.length - 1)
|
|
74
|
-
return;
|
|
75
|
-
const _ = t[s];
|
|
76
|
-
_?.id && (o.value = _.id);
|
|
77
|
-
}
|
|
78
|
-
V(i, u, {
|
|
79
|
-
ignore: [K(() => l.value?.targetRef)]
|
|
80
|
-
});
|
|
81
|
-
const { cx: S } = U();
|
|
82
|
-
return (e, t) => (M(), L(m(F), R({
|
|
83
|
-
ref_key: "floatingRef",
|
|
84
|
-
ref: l
|
|
85
|
-
}, e.$props, {
|
|
86
|
-
placement: k.placement ?? "bottom-start"
|
|
87
|
-
}), N({
|
|
88
|
-
default: A(() => [
|
|
89
|
-
C(e.$slots, "default", { open: n.value })
|
|
90
|
-
]),
|
|
91
|
-
_: 2
|
|
92
|
-
}, [
|
|
93
|
-
n.value ? {
|
|
94
|
-
name: "floating",
|
|
95
|
-
fn: A(({ width: d }) => [
|
|
96
|
-
q(j, R({
|
|
97
|
-
style: { width: d }
|
|
98
|
-
}, m(S)("max-h-[inherit] max-w-[inherit]")), {
|
|
99
|
-
menu: A(() => [
|
|
100
|
-
O("div", {
|
|
101
|
-
id: m(y),
|
|
102
|
-
ref_key: "menuRef",
|
|
103
|
-
ref: i,
|
|
104
|
-
"aria-activedescendant": m(o),
|
|
105
|
-
"aria-labelledby": f.value,
|
|
106
|
-
class: "flex flex-col p-0.75 outline-none",
|
|
107
|
-
role: "menu",
|
|
108
|
-
tabindex: "-1",
|
|
109
|
-
onClick: r(u, ["stop"]),
|
|
110
|
-
onKeydown: [
|
|
111
|
-
t[0] || (t[0] = a(r((s) => c(1), ["prevent", "stop"]), ["down"])),
|
|
112
|
-
a(r(w, ["prevent", "stop"]), ["enter"]),
|
|
113
|
-
a(r(u, ["prevent", "stop"]), ["escape"]),
|
|
114
|
-
a(r(w, ["prevent", "stop"]), ["space"]),
|
|
115
|
-
a(r(u, ["prevent", "stop"]), ["tab"]),
|
|
116
|
-
t[1] || (t[1] = a(r((s) => c(-1), ["prevent", "stop"]), ["up"]))
|
|
117
|
-
]
|
|
118
|
-
}, [
|
|
119
|
-
C(e.$slots, "items", { open: n.value })
|
|
120
|
-
], 40, P)
|
|
121
|
-
]),
|
|
122
|
-
_: 3
|
|
123
|
-
}, 16, ["style"])
|
|
124
|
-
]),
|
|
125
|
-
key: "0"
|
|
126
|
-
} : void 0
|
|
127
|
-
]), 1040, ["placement"]));
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
export {
|
|
131
|
-
Z as default
|
|
132
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, createBlock as i, openBlock as s, resolveDynamicComponent as r, normalizeClass as d, unref as t, withCtx as l, renderSlot as c } from "vue";
|
|
2
|
-
import { cva as u, cx as b } from "@scalar/use-hooks/useBindCx";
|
|
3
|
-
const m = {}, x = /* @__PURE__ */ o({
|
|
4
|
-
...m,
|
|
5
|
-
__name: "ScalarDropdownButton",
|
|
6
|
-
props: {
|
|
7
|
-
is: { default: "button" },
|
|
8
|
-
active: { type: Boolean },
|
|
9
|
-
disabled: { type: Boolean }
|
|
10
|
-
},
|
|
11
|
-
setup(e) {
|
|
12
|
-
const a = u({
|
|
13
|
-
base: [
|
|
14
|
-
// Layout
|
|
15
|
-
"block h-8 min-w-0 gap-1.5 rounded px-2.5 py-1.5 text-left",
|
|
16
|
-
// Text / background style
|
|
17
|
-
"truncate no-underline text-sm text-c-1",
|
|
18
|
-
// Interaction
|
|
19
|
-
"cursor-pointer hover:bg-b-2"
|
|
20
|
-
],
|
|
21
|
-
variants: {
|
|
22
|
-
disabled: { true: "pointer-events-none text-c-3" },
|
|
23
|
-
active: { true: "" }
|
|
24
|
-
},
|
|
25
|
-
compoundVariants: [{ disabled: !1, active: !0, class: "bg-b-2" }]
|
|
26
|
-
});
|
|
27
|
-
return (n, p) => (s(), i(r(e.is), {
|
|
28
|
-
"aria-disabled": e.disabled,
|
|
29
|
-
class: d(["item", t(b)("scalar-dropdown-item", t(a)({ active: e.active, disabled: e.disabled }))]),
|
|
30
|
-
type: e.is === "button" ? "button" : void 0
|
|
31
|
-
}, {
|
|
32
|
-
default: l(() => [
|
|
33
|
-
c(n.$slots, "default", {}, void 0, !0)
|
|
34
|
-
]),
|
|
35
|
-
_: 3
|
|
36
|
-
}, 8, ["aria-disabled", "class", "type"]));
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
export {
|
|
40
|
-
x as default
|
|
41
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import r from "./ScalarDropdownDivider.vue2.js";
|
|
2
|
-
import { createElementBlock as o, openBlock as e } from "vue";
|
|
3
|
-
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const c = { class: "-mx-0.75 my-0.75 h-border bg-border" };
|
|
5
|
-
function n(s, p, a, d, i, m) {
|
|
6
|
-
return e(), o("div", c);
|
|
7
|
-
}
|
|
8
|
-
const u = /* @__PURE__ */ t(r, [["render", n]]);
|
|
9
|
-
export {
|
|
10
|
-
u as default
|
|
11
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { defineComponent as n, useId as l, createBlock as r, openBlock as a, unref as u, withCtx as m, renderSlot as s } from "vue";
|
|
2
|
-
import f from "./ScalarDropdownButton.vue.js";
|
|
3
|
-
import { useDropdownItem as c } from "./useDropdown.js";
|
|
4
|
-
const p = {}, w = /* @__PURE__ */ n({
|
|
5
|
-
...p,
|
|
6
|
-
__name: "ScalarDropdownItem",
|
|
7
|
-
props: {
|
|
8
|
-
id: { default: () => l() },
|
|
9
|
-
disabled: { type: Boolean }
|
|
10
|
-
},
|
|
11
|
-
emits: ["click"],
|
|
12
|
-
setup(e) {
|
|
13
|
-
const { active: o } = c();
|
|
14
|
-
return (d, t) => (a(), r(f, {
|
|
15
|
-
id: e.id,
|
|
16
|
-
active: u(o) === e.id,
|
|
17
|
-
disabled: e.disabled,
|
|
18
|
-
role: "menuitem",
|
|
19
|
-
tabindex: "-1",
|
|
20
|
-
onClick: t[0] || (t[0] = (i) => d.$emit("click", i)),
|
|
21
|
-
onMouseenter: t[1] || (t[1] = (i) => o.value = e.id)
|
|
22
|
-
}, {
|
|
23
|
-
default: m(() => [
|
|
24
|
-
s(d.$slots, "default", {}, void 0, !0)
|
|
25
|
-
]),
|
|
26
|
-
_: 3
|
|
27
|
-
}, 8, ["id", "active", "disabled"]));
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
export {
|
|
31
|
-
w as default
|
|
32
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { defineComponent as l, createBlock as a, openBlock as c, resolveDynamicComponent as i, normalizeProps as d, guardReactiveProps as m, unref as t, withCtx as f, createElementVNode as s, renderSlot as o, createVNode as p } from "vue";
|
|
2
|
-
import { useBindCx as _ } from "@scalar/use-hooks/useBindCx";
|
|
3
|
-
import u from "../ScalarFloating/ScalarFloatingBackdrop.vue.js";
|
|
4
|
-
const h = { class: "custom-scroll min-h-0 flex-1" }, v = { class: "flex flex-col p-0.75" }, x = {}, B = /* @__PURE__ */ l({
|
|
5
|
-
...x,
|
|
6
|
-
inheritAttrs: !1,
|
|
7
|
-
__name: "ScalarDropdownMenu",
|
|
8
|
-
props: {
|
|
9
|
-
is: {}
|
|
10
|
-
},
|
|
11
|
-
setup(r) {
|
|
12
|
-
const { cx: n } = _();
|
|
13
|
-
return (e, C) => (c(), a(i(r.is ?? "div"), d(m(t(n)("relative flex w-56"))), {
|
|
14
|
-
default: f(() => [
|
|
15
|
-
s("div", h, [
|
|
16
|
-
o(e.$slots, "menu", {}, () => [
|
|
17
|
-
s("div", v, [
|
|
18
|
-
o(e.$slots, "default")
|
|
19
|
-
])
|
|
20
|
-
]),
|
|
21
|
-
o(e.$slots, "backdrop", {}, () => [
|
|
22
|
-
p(t(u))
|
|
23
|
-
])
|
|
24
|
-
])
|
|
25
|
-
]),
|
|
26
|
-
_: 3
|
|
27
|
-
}, 16));
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
export {
|
|
31
|
-
B as default
|
|
32
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ref as e, provide as t, inject as r } from "vue";
|
|
2
|
-
const n = /* @__PURE__ */ Symbol();
|
|
3
|
-
function i() {
|
|
4
|
-
const o = e();
|
|
5
|
-
return t(n, o), { active: o };
|
|
6
|
-
}
|
|
7
|
-
function s() {
|
|
8
|
-
const o = r(n);
|
|
9
|
-
return o || console.warn("useDropdownItem must be used within a ScalarDropdown"), { active: o };
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
i as useDropdown,
|
|
13
|
-
s as useDropdownItem
|
|
14
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, ref as n, onErrorCaptured as c, renderSlot as m, createElementBlock as s, openBlock as a, createElementVNode as p, createCommentVNode as i, toDisplayString as l } from "vue";
|
|
2
|
-
const _ = {
|
|
3
|
-
key: 1,
|
|
4
|
-
class: "rounded border bg-b-2 p-3 text-sm"
|
|
5
|
-
}, f = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "mt-2 rounded border bg-b-1 p-2 font-code text-c-2"
|
|
8
|
-
}, g = /* @__PURE__ */ u({
|
|
9
|
-
__name: "ScalarErrorBoundary",
|
|
10
|
-
setup(v) {
|
|
11
|
-
const t = n(!1), e = n();
|
|
12
|
-
return c((r, o, d) => (console.error("[ERROR]", r, d), t.value = !0, e.value = r, !1)), (r, o) => t.value ? (a(), s("div", _, [
|
|
13
|
-
o[0] || (o[0] = p("div", { class: "p-2" }, "Oops, something went wrong here.", -1)),
|
|
14
|
-
e.value ? (a(), s("div", f, l(e.value?.name) + ": " + l(e.value?.message), 1)) : i("", !0)
|
|
15
|
-
])) : m(r.$slots, "default", { key: 0 });
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
export {
|
|
19
|
-
g as default
|
|
20
|
-
};
|