@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,35 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, createElementBlock as a, openBlock as s, mergeProps as c, unref as e, Fragment as g, renderList as d, normalizeStyle as i } from "vue";
|
|
2
|
-
import { useBindCx as m } from "@scalar/use-hooks/useBindCx";
|
|
3
|
-
import { useThemeSwatches as u, THEME_CSS_VARS as b } from "./useThemeSwatches.js";
|
|
4
|
-
const h = {}, x = /* @__PURE__ */ o({
|
|
5
|
-
...h,
|
|
6
|
-
inheritAttrs: !1,
|
|
7
|
-
__name: "ScalarThemeSwatches",
|
|
8
|
-
props: {
|
|
9
|
-
css: {}
|
|
10
|
-
},
|
|
11
|
-
setup(l) {
|
|
12
|
-
const { colors: r } = u(() => l.css), { cx: n } = m();
|
|
13
|
-
return (k, _) => (s(), a("div", c(
|
|
14
|
-
{
|
|
15
|
-
style: {
|
|
16
|
-
"--bg-light": e(r).light["--scalar-background-1"],
|
|
17
|
-
"--bg-dark": e(r).dark["--scalar-background-1"]
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
e(n)(
|
|
21
|
-
"flex *:size-3 overflow-hidden rounded",
|
|
22
|
-
"bg-(--bg-light) dark:bg-(--bg-dark)"
|
|
23
|
-
)
|
|
24
|
-
), [
|
|
25
|
-
(s(!0), a(g, null, d(e(b), (t) => (s(), a("div", {
|
|
26
|
-
key: t,
|
|
27
|
-
class: "bg-(--bg-light) dark:bg-(--bg-dark)",
|
|
28
|
-
style: i({ "--bg-light": e(r).light[t], "--bg-dark": e(r).dark[t] })
|
|
29
|
-
}, null, 4))), 128))
|
|
30
|
-
], 16));
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
export {
|
|
34
|
-
x as default
|
|
35
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { computed as n, toValue as t } from "vue";
|
|
2
|
-
const m = [
|
|
3
|
-
"--scalar-color-1",
|
|
4
|
-
"--scalar-color-2",
|
|
5
|
-
"--scalar-color-3",
|
|
6
|
-
"--scalar-background-1",
|
|
7
|
-
"--scalar-background-2",
|
|
8
|
-
"--scalar-background-3",
|
|
9
|
-
"--scalar-color-accent"
|
|
10
|
-
];
|
|
11
|
-
function a(r, l) {
|
|
12
|
-
const c = [...l.matchAll(new RegExp(`(${r}): ([^;]+);`, "gm"))];
|
|
13
|
-
return c.length === 0 ? {} : Object.fromEntries(c.map((o) => [o[1], o[2]]));
|
|
14
|
-
}
|
|
15
|
-
function e(r) {
|
|
16
|
-
return r ? {
|
|
17
|
-
...a("--scalar-color-[1-3]", r),
|
|
18
|
-
...a("--scalar-background-[1-3]", r),
|
|
19
|
-
...a("--scalar-color-accent", r)
|
|
20
|
-
} : {};
|
|
21
|
-
}
|
|
22
|
-
function s(r) {
|
|
23
|
-
return {
|
|
24
|
-
colors: n(() => ({
|
|
25
|
-
light: e(t(r).match(/\.light-mode[^{]*{[^}]*}/m)?.[0]),
|
|
26
|
-
dark: e(t(r).match(/\.dark-mode[^{]*{[^}]*}/m)?.[0])
|
|
27
|
-
}))
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
m as THEME_CSS_VARS,
|
|
32
|
-
s as useThemeSwatches
|
|
33
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, mergeModels as i, useModel as u, createElementBlock as t, openBlock as l, normalizeClass as o, unref as n, createElementVNode as m, createCommentVNode as b, toDisplayString as f } from "vue";
|
|
2
|
-
import { cva as p, cx as h } from "@scalar/use-hooks/useBindCx";
|
|
3
|
-
const v = ["aria-checked", "aria-disabled"], g = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "sr-only"
|
|
6
|
-
}, V = /* @__PURE__ */ d({
|
|
7
|
-
__name: "ScalarToggle",
|
|
8
|
-
props: /* @__PURE__ */ i({
|
|
9
|
-
disabled: { type: Boolean },
|
|
10
|
-
label: {}
|
|
11
|
-
}, {
|
|
12
|
-
modelValue: { type: Boolean, default: !1 },
|
|
13
|
-
modelModifiers: {}
|
|
14
|
-
}),
|
|
15
|
-
emits: ["update:modelValue"],
|
|
16
|
-
setup(e) {
|
|
17
|
-
const r = e, a = u(e, "modelValue");
|
|
18
|
-
function s() {
|
|
19
|
-
r.disabled || (a.value = !a.value);
|
|
20
|
-
}
|
|
21
|
-
const c = p({
|
|
22
|
-
base: "relative h-3.5 min-w-6 w-6 cursor-pointer rounded-full bg-b-3 transition-colors duration-300",
|
|
23
|
-
variants: {
|
|
24
|
-
checked: { true: "bg-c-accent" },
|
|
25
|
-
disabled: { true: "cursor-not-allowed opacity-40" }
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
return (k, x) => (l(), t("button", {
|
|
29
|
-
"aria-checked": a.value,
|
|
30
|
-
"aria-disabled": e.disabled,
|
|
31
|
-
class: o(n(h)(n(c)({ checked: a.value, disabled: e.disabled }))),
|
|
32
|
-
role: "switch",
|
|
33
|
-
type: "button",
|
|
34
|
-
onClick: s
|
|
35
|
-
}, [
|
|
36
|
-
m("div", {
|
|
37
|
-
class: o(["absolute left-px top-px flex h-3 w-3 items-center justify-center rounded-full bg-b-1 text-c-accent transition-transform duration-300", { "translate-x-2.5": a.value }])
|
|
38
|
-
}, null, 2),
|
|
39
|
-
e.label ? (l(), t("span", g, f(e.label), 1)) : b("", !0)
|
|
40
|
-
], 10, v));
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
export {
|
|
44
|
-
V as default
|
|
45
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, mergeModels as n, useModel as s, createBlock as u, openBlock as t, unref as c, withCtx as r, createElementBlock as f, Fragment as _, renderList as i, createTextVNode as p, toDisplayString as V } from "vue";
|
|
2
|
-
import v from "./ScalarToggleInput.vue.js";
|
|
3
|
-
import g from "../ScalarForm/ScalarFormInputGroup.vue.js";
|
|
4
|
-
const k = {}, C = /* @__PURE__ */ d({
|
|
5
|
-
...k,
|
|
6
|
-
__name: "ScalarToggleGroup",
|
|
7
|
-
props: /* @__PURE__ */ n({
|
|
8
|
-
options: { default: () => [] }
|
|
9
|
-
}, {
|
|
10
|
-
modelValue: { default: [] },
|
|
11
|
-
modelModifiers: {}
|
|
12
|
-
}),
|
|
13
|
-
emits: ["update:modelValue"],
|
|
14
|
-
setup(o) {
|
|
15
|
-
const l = s(o, "modelValue");
|
|
16
|
-
return (x, B) => (t(), u(c(g), null, {
|
|
17
|
-
default: r(() => [
|
|
18
|
-
(t(!0), f(_, null, i(o.options, (e) => (t(), u(v, {
|
|
19
|
-
key: e.value,
|
|
20
|
-
modelValue: l.value?.some(({ value: a }) => a === e.value),
|
|
21
|
-
"onUpdate:modelValue": (a) => l.value = a ? [...l.value, e] : l.value.filter(({ value: m }) => m !== e.value)
|
|
22
|
-
}, {
|
|
23
|
-
default: r(() => [
|
|
24
|
-
p(V(e.label), 1)
|
|
25
|
-
]),
|
|
26
|
-
_: 2
|
|
27
|
-
}, 1032, ["modelValue", "onUpdate:modelValue"]))), 128))
|
|
28
|
-
]),
|
|
29
|
-
_: 1
|
|
30
|
-
}));
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
export {
|
|
34
|
-
C as default
|
|
35
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, useModel as d, createBlock as i, openBlock as c, unref as t, mergeProps as l, withCtx as f, createElementVNode as p, createVNode as _, renderSlot as V } from "vue";
|
|
2
|
-
import { useBindCx as x } from "@scalar/use-hooks/useBindCx";
|
|
3
|
-
import g from "./ScalarToggle.vue.js";
|
|
4
|
-
import h from "../ScalarForm/ScalarFormInput.vue.js";
|
|
5
|
-
const v = { class: "flex-1 text-left min-w-0 truncate" }, B = {}, $ = /* @__PURE__ */ u({
|
|
6
|
-
...B,
|
|
7
|
-
inheritAttrs: !1,
|
|
8
|
-
__name: "ScalarToggleInput",
|
|
9
|
-
props: {
|
|
10
|
-
modelValue: { type: Boolean },
|
|
11
|
-
modelModifiers: {}
|
|
12
|
-
},
|
|
13
|
-
emits: ["update:modelValue"],
|
|
14
|
-
setup(r) {
|
|
15
|
-
const e = d(r, "modelValue"), { stylingAttrsCx: a, otherAttrs: s } = x();
|
|
16
|
-
return (n, o) => (c(), i(t(h), l(
|
|
17
|
-
{ is: "label" },
|
|
18
|
-
t(a)("cursor-pointer gap-2 hover:bg-b-2", { "text-c-1": e.value })
|
|
19
|
-
), {
|
|
20
|
-
default: f(() => [
|
|
21
|
-
p("div", v, [
|
|
22
|
-
V(n.$slots, "default")
|
|
23
|
-
]),
|
|
24
|
-
_(g, l({
|
|
25
|
-
modelValue: e.value,
|
|
26
|
-
"onUpdate:modelValue": o[0] || (o[0] = (m) => e.value = m),
|
|
27
|
-
class: "shrink-0"
|
|
28
|
-
}, t(s)), null, 16, ["modelValue"])
|
|
29
|
-
]),
|
|
30
|
-
_: 3
|
|
31
|
-
}, 16));
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
export {
|
|
35
|
-
$ as default
|
|
36
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, ref as i, computed as o, render as f, h as l, createElementBlock as m, openBlock as s, normalizeClass as u, renderSlot as h } from "vue";
|
|
2
|
-
import { DEFAULT_OFFSET as y, DEFAULT_DELAY as k } from "./constants.js";
|
|
3
|
-
import { useTooltip as p } from "./useTooltip.js";
|
|
4
|
-
import a from "../ScalarHotkey/ScalarHotkey.vue.js";
|
|
5
|
-
const T = {}, w = /* @__PURE__ */ c({
|
|
6
|
-
...T,
|
|
7
|
-
__name: "ScalarHotkeyTooltip",
|
|
8
|
-
props: {
|
|
9
|
-
content: { default: "" },
|
|
10
|
-
hotkey: {},
|
|
11
|
-
modifier: {},
|
|
12
|
-
delay: { default: () => k },
|
|
13
|
-
placement: { default: "top" },
|
|
14
|
-
offset: { default: () => y }
|
|
15
|
-
},
|
|
16
|
-
setup(e) {
|
|
17
|
-
const n = i(null), d = o(() => {
|
|
18
|
-
if (!document) return "";
|
|
19
|
-
const t = document.createElement("div"), r = "-m-0.5 border-none p-0 grid grid-flow-col *:border *:h-5 *:min-w-5 *:border-border-tooltip *:rounded *:px-1 *:flex *:items-center *:justify-center";
|
|
20
|
-
return e.content ? f(
|
|
21
|
-
l("div", { class: "flex items-center gap-2" }, [
|
|
22
|
-
e.content,
|
|
23
|
-
l(a, {
|
|
24
|
-
class: r,
|
|
25
|
-
hotkey: e.hotkey,
|
|
26
|
-
modifier: e.modifier
|
|
27
|
-
})
|
|
28
|
-
]),
|
|
29
|
-
t
|
|
30
|
-
) : f(
|
|
31
|
-
l(a, {
|
|
32
|
-
class: r,
|
|
33
|
-
hotkey: e.hotkey,
|
|
34
|
-
modifier: e.modifier
|
|
35
|
-
}),
|
|
36
|
-
t
|
|
37
|
-
), t.innerHTML;
|
|
38
|
-
});
|
|
39
|
-
return p({
|
|
40
|
-
content: d,
|
|
41
|
-
contentTarget: "innerHTML",
|
|
42
|
-
delay: o(() => e.delay),
|
|
43
|
-
placement: o(() => e.placement),
|
|
44
|
-
offset: o(() => e.offset),
|
|
45
|
-
targetRef: o(
|
|
46
|
-
() => n.value?.children?.[0] || n.value || void 0
|
|
47
|
-
)
|
|
48
|
-
}), (t, r) => (s(), m("div", {
|
|
49
|
-
ref_key: "wrapperRef",
|
|
50
|
-
ref: n,
|
|
51
|
-
class: u({ contents: !!t.$slots.default })
|
|
52
|
-
}, [
|
|
53
|
-
h(t.$slots, "default")
|
|
54
|
-
], 2));
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
export {
|
|
58
|
-
w as default
|
|
59
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { defineComponent as a, ref as n, computed as e, createElementBlock as f, openBlock as r, normalizeClass as c, renderSlot as d } from "vue";
|
|
2
|
-
import { DEFAULT_OFFSET as s, DEFAULT_DELAY as u } from "./constants.js";
|
|
3
|
-
import { useTooltip as m } from "./useTooltip.js";
|
|
4
|
-
const p = {}, v = /* @__PURE__ */ a({
|
|
5
|
-
...p,
|
|
6
|
-
__name: "ScalarTooltip",
|
|
7
|
-
props: {
|
|
8
|
-
content: { default: "" },
|
|
9
|
-
delay: { default: () => u },
|
|
10
|
-
placement: { default: "top" },
|
|
11
|
-
offset: { default: () => s }
|
|
12
|
-
},
|
|
13
|
-
setup(t) {
|
|
14
|
-
const l = n(null);
|
|
15
|
-
return m({
|
|
16
|
-
content: e(() => t.content),
|
|
17
|
-
delay: e(() => t.delay),
|
|
18
|
-
placement: e(() => t.placement),
|
|
19
|
-
offset: e(() => t.offset),
|
|
20
|
-
targetRef: e(
|
|
21
|
-
() => l.value?.children?.[0] || l.value || void 0
|
|
22
|
-
)
|
|
23
|
-
}), (o, i) => (r(), f("div", {
|
|
24
|
-
ref_key: "wrapperRef",
|
|
25
|
-
ref: l,
|
|
26
|
-
class: c({ contents: !!o.$slots.default })
|
|
27
|
-
}, [
|
|
28
|
-
d(o.$slots, "default")
|
|
29
|
-
], 2));
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
export {
|
|
33
|
-
v as default
|
|
34
|
-
};
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { useFloating as E, autoUpdate as y, flip as T, shift as g } from "@floating-ui/vue";
|
|
2
|
-
import { watch as m, unref as o, ref as p, computed as c } from "vue";
|
|
3
|
-
import { ELEMENT_ID as v, ELEMENT_CLASS as L, DEFAULT_DELAY as h, DEFAULT_OFFSET as b } from "./constants.js";
|
|
4
|
-
const d = p(), t = p(), s = p(), { floatingStyles: i } = E(
|
|
5
|
-
c(() => o(s.value?.targetRef)),
|
|
6
|
-
t,
|
|
7
|
-
{
|
|
8
|
-
placement: c(() => o(s.value?.placement)),
|
|
9
|
-
whileElementsMounted: y,
|
|
10
|
-
middleware: c(() => [T(), g()])
|
|
11
|
-
}
|
|
12
|
-
);
|
|
13
|
-
m(i, () => {
|
|
14
|
-
t.value && (t.value.style.position = i.value.position, t.value.style.top = i.value.top, t.value.style.left = i.value.left, t.value.style.transform = i.value.transform ?? "", t.value.style.willChange = i.value.willChange ?? "");
|
|
15
|
-
});
|
|
16
|
-
m(
|
|
17
|
-
s,
|
|
18
|
-
(e) => {
|
|
19
|
-
if (t.value)
|
|
20
|
-
if (e) {
|
|
21
|
-
const a = o(e?.contentTarget) ?? "textContent";
|
|
22
|
-
t.value[a] = o(e?.content) ?? "";
|
|
23
|
-
const n = o(e?.offset) ?? b;
|
|
24
|
-
t.value.style.setProperty("--scalar-tooltip-offset", `${n}px`), t.value.style.setProperty("display", "block");
|
|
25
|
-
} else
|
|
26
|
-
t.value.innerHTML = "", t.value.style.removeProperty("--scalar-tooltip-offset"), t.value.style.setProperty("display", "none");
|
|
27
|
-
},
|
|
28
|
-
{ deep: !0 }
|
|
29
|
-
);
|
|
30
|
-
function A() {
|
|
31
|
-
if (typeof document > "u" || typeof window > "u" || t.value)
|
|
32
|
-
return;
|
|
33
|
-
const e = document.getElementById(v);
|
|
34
|
-
e ? t.value = e : (t.value = document.createElement("div"), t.value.role = "tooltip", t.value.id = v, t.value.classList.add(L), t.value.classList.add("scalar-app"), t.value.style.setProperty("display", "none"), t.value.addEventListener("mouseleave", u), document.body.appendChild(t.value));
|
|
35
|
-
}
|
|
36
|
-
function u(e) {
|
|
37
|
-
M(e) && (f(), s.value = void 0);
|
|
38
|
-
}
|
|
39
|
-
function P(e) {
|
|
40
|
-
e.key === "Escape" && (e.stopPropagation(), u(e));
|
|
41
|
-
}
|
|
42
|
-
function f() {
|
|
43
|
-
d.value && (clearTimeout(d.value), d.value = void 0);
|
|
44
|
-
}
|
|
45
|
-
function w(e) {
|
|
46
|
-
const a = [];
|
|
47
|
-
let n = e.parentElement;
|
|
48
|
-
for (; n; )
|
|
49
|
-
a.push(n), n = n.parentElement;
|
|
50
|
-
return a;
|
|
51
|
-
}
|
|
52
|
-
function M(e) {
|
|
53
|
-
const a = o(s.value?.targetRef);
|
|
54
|
-
if (e instanceof MouseEvent && e.relatedTarget instanceof Element && a) {
|
|
55
|
-
const n = w(e.relatedTarget);
|
|
56
|
-
return e.relatedTarget.id !== v && !n.some((l) => l.id === v) && e.relatedTarget !== a;
|
|
57
|
-
}
|
|
58
|
-
return !0;
|
|
59
|
-
}
|
|
60
|
-
function F(e) {
|
|
61
|
-
A();
|
|
62
|
-
function a(l) {
|
|
63
|
-
const r = o(e.delay) ?? h;
|
|
64
|
-
f(), r > 0 ? d.value = setTimeout(() => n(), r) : n();
|
|
65
|
-
}
|
|
66
|
-
function n(l) {
|
|
67
|
-
f(), document.addEventListener("keydown", P, { once: !0, capture: !0 }), s.value = e;
|
|
68
|
-
}
|
|
69
|
-
m(
|
|
70
|
-
() => o(e.targetRef),
|
|
71
|
-
(l, r) => {
|
|
72
|
-
r && (r.removeEventListener("mouseenter", a), r.removeEventListener("mouseleave", u), r.removeEventListener("focus", n), r.removeEventListener("blur", u), r.removeAttribute("aria-describedby")), l && (l.addEventListener("mouseenter", a), l.addEventListener("mouseleave", u), l.addEventListener("focus", n), l.addEventListener("blur", u), l.setAttribute("aria-describedby", v));
|
|
73
|
-
},
|
|
74
|
-
{ immediate: !0 }
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
export {
|
|
78
|
-
F as useTooltip
|
|
79
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, ref as o, computed as t, onMounted as w, onBeforeUnmount as E, watchEffect as k, createElementBlock as v, openBlock as f, normalizeClass as h, createElementVNode as $, normalizeStyle as m, Fragment as z, renderList as L, toDisplayString as R } from "vue";
|
|
2
|
-
const I = /* @__PURE__ */ b({
|
|
3
|
-
__name: "ScalarVirtualText",
|
|
4
|
-
props: {
|
|
5
|
-
text: {},
|
|
6
|
-
lineHeight: { default: 20 },
|
|
7
|
-
containerClass: { default: "" },
|
|
8
|
-
contentClass: { default: "" },
|
|
9
|
-
lineClass: { default: "" }
|
|
10
|
-
},
|
|
11
|
-
setup(l) {
|
|
12
|
-
const e = l, n = o(null), s = o(null), r = o(0), d = o(0), a = t(() => e.text.split(`
|
|
13
|
-
`)), x = t(() => a.value.length * e.lineHeight), i = t(
|
|
14
|
-
() => Math.floor(r.value / e.lineHeight)
|
|
15
|
-
), p = t(
|
|
16
|
-
() => Math.min(
|
|
17
|
-
Math.ceil(
|
|
18
|
-
(r.value + d.value) / e.lineHeight
|
|
19
|
-
),
|
|
20
|
-
a.value.length
|
|
21
|
-
)
|
|
22
|
-
), H = t(() => {
|
|
23
|
-
const g = Math.max(0, i.value - 10), u = Math.min(a.value.length, p.value + 10);
|
|
24
|
-
return a.value.slice(g, u);
|
|
25
|
-
}), y = t(() => ({
|
|
26
|
-
height: `${x.value}px`,
|
|
27
|
-
transform: `translateY(${Math.max(0, i.value - 10) * e.lineHeight}px)`
|
|
28
|
-
})), C = () => n.value && (r.value = n.value.scrollTop), c = () => n.value && (d.value = n.value.clientHeight);
|
|
29
|
-
return w(() => {
|
|
30
|
-
c(), window.addEventListener("resize", c);
|
|
31
|
-
}), E(() => {
|
|
32
|
-
window.removeEventListener("resize", c);
|
|
33
|
-
}), k(() => {
|
|
34
|
-
s.value && (s.value.style.transform = `translateY(${Math.max(0, i.value - 10) * e.lineHeight}px)`);
|
|
35
|
-
}), (M, g) => (f(), v("div", {
|
|
36
|
-
ref_key: "containerRef",
|
|
37
|
-
ref: n,
|
|
38
|
-
class: h(["scalar-virtual-text overflow-auto", l.containerClass]),
|
|
39
|
-
onScroll: C
|
|
40
|
-
}, [
|
|
41
|
-
$("code", {
|
|
42
|
-
ref_key: "contentRef",
|
|
43
|
-
ref: s,
|
|
44
|
-
class: h(["scalar-virtual-text-content", l.contentClass]),
|
|
45
|
-
style: m(y.value)
|
|
46
|
-
}, [
|
|
47
|
-
(f(!0), v(z, null, L(H.value, (u, S) => (f(), v("div", {
|
|
48
|
-
key: i.value + S,
|
|
49
|
-
class: h(["scalar-virtual-text-line", l.lineClass]),
|
|
50
|
-
style: m({
|
|
51
|
-
height: `${e.lineHeight}px`,
|
|
52
|
-
lineHeight: `${e.lineHeight}px`
|
|
53
|
-
})
|
|
54
|
-
}, R(u), 7))), 128))
|
|
55
|
-
], 6)
|
|
56
|
-
], 34));
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
export {
|
|
60
|
-
I as default
|
|
61
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, computed as c, createElementBlock as n, openBlock as a, Fragment as l, renderList as m, createElementVNode as d, createTextVNode as i, toDisplayString as f } from "vue";
|
|
2
|
-
import { PRESETS as x } from "./constants.js";
|
|
3
|
-
const g = {}, w = /* @__PURE__ */ u({
|
|
4
|
-
...g,
|
|
5
|
-
inheritAttrs: !1,
|
|
6
|
-
__name: "ScalarWrappingText",
|
|
7
|
-
props: {
|
|
8
|
-
text: { default: "" },
|
|
9
|
-
preset: { default: "path" },
|
|
10
|
-
regex: {}
|
|
11
|
-
},
|
|
12
|
-
setup(e) {
|
|
13
|
-
const o = c(() => {
|
|
14
|
-
const r = new RegExp(e.regex ?? x[e.preset], "g");
|
|
15
|
-
return e.text.replace(r, "$&").split("").filter(Boolean);
|
|
16
|
-
});
|
|
17
|
-
return (r, t) => (a(!0), n(l, null, m(o.value, (s, p) => (a(), n(l, { key: p }, [
|
|
18
|
-
t[0] || (t[0] = d("wbr", null, null, -1)),
|
|
19
|
-
i(f(s), 1)
|
|
20
|
-
], 64))), 128));
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
export {
|
|
24
|
-
w as default
|
|
25
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const p = {
|
|
2
|
-
/** Breaks on `/`, '.' and `-` for urls or file paths */
|
|
3
|
-
path: /[\/\.-]/,
|
|
4
|
-
/**
|
|
5
|
-
* Breaks on capitals, `_` and `.` for properties written in
|
|
6
|
-
* camel, pascal or snake case
|
|
7
|
-
*/
|
|
8
|
-
property: /[A-Z\_\.-]/
|
|
9
|
-
};
|
|
10
|
-
export {
|
|
11
|
-
p as PRESETS
|
|
12
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const e = "scalar-app", a = "headlessui-portal-root", c = (s) => s !== null && s instanceof HTMLElement, o = (s) => {
|
|
2
|
-
!s || s.classList.contains(e) || s.classList.add(e);
|
|
3
|
-
}, d = () => {
|
|
4
|
-
o(document.getElementById(a));
|
|
5
|
-
const s = new MutationObserver(
|
|
6
|
-
(r) => r.forEach(
|
|
7
|
-
({ addedNodes: n }) => n.forEach((t) => {
|
|
8
|
-
c(t) && t.id === a && o(t);
|
|
9
|
-
})
|
|
10
|
-
)
|
|
11
|
-
);
|
|
12
|
-
return s.observe(document.body, { childList: !0 }), s;
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
d as addScalarClassesToHeadless
|
|
16
|
-
};
|