@scalar/api-reference 0.5.0 → 0.5.2
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/Content/Introduction/BaseUrl.vue.d.ts.map +1 -1
- package/dist/components/Content/MarkdownRenderer.vue.d.ts.map +1 -1
- package/dist/components/Content/ReferenceEndpoint/Copy.vue.d.ts.map +1 -1
- package/dist/components/Content/ReferenceEndpoint/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/components/Content/ReferenceEndpoint/{ExampleResponses.vue.d.ts → ExampleResponses/ExampleResponses.vue.d.ts} +1 -1
- package/dist/components/Content/ReferenceEndpoint/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -0
- package/dist/components/Content/ReferenceEndpoint/ExampleResponses/Headers.vue.d.ts +14 -0
- package/dist/components/Content/ReferenceEndpoint/ExampleResponses/Headers.vue.d.ts.map +1 -0
- package/dist/components/Content/ReferenceEndpoint/ExampleResponses/SelectExample.vue.d.ts +13 -0
- package/dist/components/Content/ReferenceEndpoint/ExampleResponses/SelectExample.vue.d.ts.map +1 -0
- package/dist/components/Content/ReferenceEndpoint/ExampleResponses/index.d.ts +2 -0
- package/dist/components/Content/ReferenceEndpoint/ExampleResponses/index.d.ts.map +1 -0
- package/dist/components/Sidebar.vue.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/mapFromObject.d.ts +8 -0
- package/dist/helpers/mapFromObject.d.ts.map +1 -0
- package/dist/index.js +8898 -11685
- package/dist/types.d.ts +9 -7
- package/dist/types.d.ts.map +1 -1
- package/package.json +10 -10
- package/dist/components/Content/ReferenceEndpoint/ExampleResponses.vue.d.ts.map +0 -1
- package/src/components/ApiClientModal.vue +0 -205
- package/src/components/ApiReference.vue +0 -750
- package/src/components/Card/Card.vue +0 -12
- package/src/components/Card/CardContent.vue +0 -45
- package/src/components/Card/CardFooter.vue +0 -13
- package/src/components/Card/CardHeader.vue +0 -37
- package/src/components/Card/CardTab.vue +0 -32
- package/src/components/Card/CardTabHeader.vue +0 -32
- package/src/components/Card/index.ts +0 -6
- package/src/components/Content/Content.vue +0 -145
- package/src/components/Content/Introduction/BaseUrl.vue +0 -32
- package/src/components/Content/Introduction/Introduction.vue +0 -141
- package/src/components/Content/Introduction/LanguageSelector.vue +0 -361
- package/src/components/Content/Introduction/index.ts +0 -1
- package/src/components/Content/MarkdownRenderer.vue +0 -174
- package/src/components/Content/ReferenceEndpoint/Copy.vue +0 -100
- package/src/components/Content/ReferenceEndpoint/ExampleRequest.vue +0 -318
- package/src/components/Content/ReferenceEndpoint/ExampleResponseTab.vue +0 -22
- package/src/components/Content/ReferenceEndpoint/ExampleResponses.vue +0 -169
- package/src/components/Content/ReferenceEndpoint/ParameterItem.vue +0 -26
- package/src/components/Content/ReferenceEndpoint/Parameters.vue +0 -23
- package/src/components/Content/ReferenceEndpoint/ReferenceEndpoint.vue +0 -29
- package/src/components/Content/ReferenceEndpoint/RequestBody.vue +0 -125
- package/src/components/Content/ReferenceEndpoint/RequestBodyProperties.vue +0 -54
- package/src/components/Content/ReferenceEndpoint/RequestBodyPropertiesChild.vue +0 -39
- package/src/components/Content/ReferenceEndpoint/index.ts +0 -1
- package/src/components/Content/ReferenceTag.vue +0 -99
- package/src/components/Content/Spinner.vue +0 -51
- package/src/components/Content/index.ts +0 -1
- package/src/components/FindAnythingButton.vue +0 -76
- package/src/components/FlowButton.vue +0 -184
- package/src/components/FlowIconButton.vue +0 -25
- package/src/components/FlowLoader.vue +0 -207
- package/src/components/FlowModal.vue +0 -133
- package/src/components/HelpfulLink.vue +0 -19
- package/src/components/Icon/FlowIcon.vue +0 -19
- package/src/components/Icon/Icon.vue +0 -23
- package/src/components/Icon/SvgRenderer.ts +0 -66
- package/src/components/Icon/brand/brand-adobe.svg +0 -1
- package/src/components/Icon/brand/brand-amazon.svg +0 -1
- package/src/components/Icon/brand/brand-browser-firefox.svg +0 -5
- package/src/components/Icon/brand/brand-browser-googlechrome.svg +0 -5
- package/src/components/Icon/brand/brand-creative-commons.svg +0 -1
- package/src/components/Icon/brand/brand-ecommerce-etsy.svg +0 -1
- package/src/components/Icon/brand/brand-ecommerce-patreon.svg +0 -1
- package/src/components/Icon/brand/brand-ecommerce-shopify.svg +0 -5
- package/src/components/Icon/brand/brand-ecommerce-wordpress.svg +0 -1
- package/src/components/Icon/brand/brand-gaming-nintendo-switch.svg +0 -5
- package/src/components/Icon/brand/brand-gaming-playstation.svg +0 -1
- package/src/components/Icon/brand/brand-gaming-xbox-live.svg +0 -5
- package/src/components/Icon/brand/brand-google-drive.svg +0 -5
- package/src/components/Icon/brand/brand-google-gmail.svg +0 -5
- package/src/components/Icon/brand/brand-google.svg +0 -1
- package/src/components/Icon/brand/brand-music-itunes.svg +0 -1
- package/src/components/Icon/brand/brand-music-soundcloud.svg +0 -1
- package/src/components/Icon/brand/brand-music-spotify.svg +0 -1
- package/src/components/Icon/brand/brand-office-dropbox.svg +0 -5
- package/src/components/Icon/brand/brand-office-slack.svg +0 -5
- package/src/components/Icon/brand/brand-office-zoom.svg +0 -1
- package/src/components/Icon/brand/brand-payments-alipay.svg +0 -1
- package/src/components/Icon/brand/brand-payments-paypal.svg +0 -1
- package/src/components/Icon/brand/brand-payments-stripe.svg +0 -1
- package/src/components/Icon/brand/brand-platform-android.svg +0 -1
- package/src/components/Icon/brand/brand-platform-apple.svg +0 -5
- package/src/components/Icon/brand/brand-platform-linux.svg +0 -5
- package/src/components/Icon/brand/brand-platform-microsoft-windows.svg +0 -4
- package/src/components/Icon/brand/brand-social-chat-discord.svg +0 -5
- package/src/components/Icon/brand/brand-social-chat-kuaishou.svg +0 -5
- package/src/components/Icon/brand/brand-social-chat-line.svg +0 -5
- package/src/components/Icon/brand/brand-social-chat-messenger.svg +0 -5
- package/src/components/Icon/brand/brand-social-chat-signal.svg +0 -5
- package/src/components/Icon/brand/brand-social-chat-snapchat.svg +0 -5
- package/src/components/Icon/brand/brand-social-chat-telegram.svg +0 -5
- package/src/components/Icon/brand/brand-social-chat-wechat.svg +0 -5
- package/src/components/Icon/brand/brand-social-chat-whatsapp.svg +0 -5
- package/src/components/Icon/brand/brand-social-media-deviantart.svg +0 -5
- package/src/components/Icon/brand/brand-social-media-dribbble.svg +0 -1
- package/src/components/Icon/brand/brand-social-media-facebook.svg +0 -1
- package/src/components/Icon/brand/brand-social-media-instagram.svg +0 -5
- package/src/components/Icon/brand/brand-social-media-linkedin.svg +0 -5
- package/src/components/Icon/brand/brand-social-media-pinterest.svg +0 -5
- package/src/components/Icon/brand/brand-social-media-reddit.svg +0 -1
- package/src/components/Icon/brand/brand-social-media-sina-weibo.svg +0 -5
- package/src/components/Icon/brand/brand-social-media-threads.svg +0 -1
- package/src/components/Icon/brand/brand-social-media-tiktok.svg +0 -5
- package/src/components/Icon/brand/brand-social-media-tinder.svg +0 -1
- package/src/components/Icon/brand/brand-social-media-tumblr.svg +0 -5
- package/src/components/Icon/brand/brand-social-media-twitter.svg +0 -5
- package/src/components/Icon/brand/brand-software-design-figma.svg +0 -1
- package/src/components/Icon/brand/brand-software-development-authy.svg +0 -1
- package/src/components/Icon/brand/brand-software-development-digital-ocean.svg +0 -1
- package/src/components/Icon/brand/brand-software-development-docker.svg +0 -5
- package/src/components/Icon/brand/brand-software-development-github.svg +0 -5
- package/src/components/Icon/brand/brand-software-development-jira.svg +0 -1
- package/src/components/Icon/brand/brand-software-development-openai.svg +0 -1
- package/src/components/Icon/brand/brand-software-development-stackexchange.svg +0 -5
- package/src/components/Icon/brand/brand-software-development-stackoverflow.svg +0 -1
- package/src/components/Icon/brand/brand-video-netflix.svg +0 -5
- package/src/components/Icon/brand/brand-video-twitch.svg +0 -1
- package/src/components/Icon/brand/brand-video-vimeo.svg +0 -5
- package/src/components/Icon/brand/brand-video-youtube.svg +0 -5
- package/src/components/Icon/brand/programming-framework-angular.svg +0 -5
- package/src/components/Icon/brand/programming-framework-astro.svg +0 -5
- package/src/components/Icon/brand/programming-framework-laravel.svg +0 -1
- package/src/components/Icon/brand/programming-framework-nextdotjs.svg +0 -5
- package/src/components/Icon/brand/programming-framework-react.svg +0 -5
- package/src/components/Icon/brand/programming-framework-vuedotjs.svg +0 -1
- package/src/components/Icon/brand/programming-language-c.svg +0 -5
- package/src/components/Icon/brand/programming-language-clojure.svg +0 -5
- package/src/components/Icon/brand/programming-language-csharp.svg +0 -4
- package/src/components/Icon/brand/programming-language-css3.svg +0 -4
- package/src/components/Icon/brand/programming-language-go.svg +0 -4
- package/src/components/Icon/brand/programming-language-html5.svg +0 -4
- package/src/components/Icon/brand/programming-language-java.svg +0 -21
- package/src/components/Icon/brand/programming-language-javascript-js.svg +0 -4
- package/src/components/Icon/brand/programming-language-json.svg +0 -8
- package/src/components/Icon/brand/programming-language-kotlin.svg +0 -3
- package/src/components/Icon/brand/programming-language-node.svg +0 -10
- package/src/components/Icon/brand/programming-language-objc.svg +0 -6
- package/src/components/Icon/brand/programming-language-ocaml.svg +0 -4
- package/src/components/Icon/brand/programming-language-php.svg +0 -4
- package/src/components/Icon/brand/programming-language-powershell.svg +0 -10
- package/src/components/Icon/brand/programming-language-python.svg +0 -4
- package/src/components/Icon/brand/programming-language-r.svg +0 -7
- package/src/components/Icon/brand/programming-language-ruby.svg +0 -5
- package/src/components/Icon/brand/programming-language-scala.svg +0 -5
- package/src/components/Icon/brand/programming-language-shell.svg +0 -5
- package/src/components/Icon/brand/programming-language-swift.svg +0 -4
- package/src/components/Icon/brand/programming-language-typescript.svg +0 -5
- package/src/components/Icon/brand/programming-tool-git.svg +0 -1
- package/src/components/Icon/brand/programming-tool-tailwindcss.svg +0 -5
- package/src/components/Icon/icons/Add.svg +0 -4
- package/src/components/Icon/icons/ArrowDown.svg +0 -3
- package/src/components/Icon/icons/ArrowLeft.svg +0 -3
- package/src/components/Icon/icons/ArrowRight.svg +0 -3
- package/src/components/Icon/icons/ArrowUp.svg +0 -3
- package/src/components/Icon/icons/Background.svg +0 -8
- package/src/components/Icon/icons/CallToAction.svg +0 -5
- package/src/components/Icon/icons/CheckMark.svg +0 -3
- package/src/components/Icon/icons/ChevronDown.svg +0 -3
- package/src/components/Icon/icons/ChevronLeft.svg +0 -3
- package/src/components/Icon/icons/ChevronRight.svg +0 -3
- package/src/components/Icon/icons/ChevronUp.svg +0 -3
- package/src/components/Icon/icons/Close.svg +0 -3
- package/src/components/Icon/icons/DarkMode.svg +0 -4
- package/src/components/Icon/icons/Delete.svg +0 -5
- package/src/components/Icon/icons/Discord.svg +0 -5
- package/src/components/Icon/icons/Duplicate.svg +0 -6
- package/src/components/Icon/icons/Edit.svg +0 -4
- package/src/components/Icon/icons/EditorBold.svg +0 -4
- package/src/components/Icon/icons/EditorCode.svg +0 -6
- package/src/components/Icon/icons/EditorHighlight.svg +0 -12
- package/src/components/Icon/icons/EditorItalic.svg +0 -4
- package/src/components/Icon/icons/EditorLink.svg +0 -8
- package/src/components/Icon/icons/EditorStrike.svg +0 -4
- package/src/components/Icon/icons/EditorUnderline.svg +0 -6
- package/src/components/Icon/icons/Ellipses.svg +0 -4
- package/src/components/Icon/icons/Error.svg +0 -4
- package/src/components/Icon/icons/ExternalLink.svg +0 -7
- package/src/components/Icon/icons/Folder.svg +0 -4
- package/src/components/Icon/icons/GitHub.svg +0 -4
- package/src/components/Icon/icons/Google.svg +0 -4
- package/src/components/Icon/icons/Hide.svg +0 -5
- package/src/components/Icon/icons/Key.svg +0 -5
- package/src/components/Icon/icons/Leave.svg +0 -5
- package/src/components/Icon/icons/LightMode.svg +0 -6
- package/src/components/Icon/icons/Link.svg +0 -5
- package/src/components/Icon/icons/Lock.svg +0 -4
- package/src/components/Icon/icons/Logo.svg +0 -4
- package/src/components/Icon/icons/LogoAPI.svg +0 -4
- package/src/components/Icon/icons/LogoClient.svg +0 -4
- package/src/components/Icon/icons/LogoMarket.svg +0 -4
- package/src/components/Icon/icons/LogoSwagger.svg +0 -4
- package/src/components/Icon/icons/Magic.svg +0 -5
- package/src/components/Icon/icons/Menu.svg +0 -3
- package/src/components/Icon/icons/Page.svg +0 -8
- package/src/components/Icon/icons/Payment.svg +0 -5
- package/src/components/Icon/icons/Refresh.svg +0 -4
- package/src/components/Icon/icons/Search.svg +0 -4
- package/src/components/Icon/icons/Show.svg +0 -5
- package/src/components/Icon/icons/Sigma.svg +0 -4
- package/src/components/Icon/icons/Trash.svg +0 -5
- package/src/components/Icon/icons/index.ts +0 -65
- package/src/components/Icon/index.ts +0 -2
- package/src/components/Icon/line/arrow-chevron-down.svg +0 -1
- package/src/components/Icon/line/arrow-chevron-left.svg +0 -1
- package/src/components/Icon/line/arrow-chevron-right.svg +0 -1
- package/src/components/Icon/line/arrow-chevron-up.svg +0 -1
- package/src/components/Icon/line/arrow-down.svg +0 -1
- package/src/components/Icon/line/arrow-left.svg +0 -1
- package/src/components/Icon/line/arrow-right.svg +0 -1
- package/src/components/Icon/line/arrow-up.svg +0 -1
- package/src/components/Icon/line/basic-shape-diamond.svg +0 -1
- package/src/components/Icon/line/basic-shape-hexagon.svg +0 -1
- package/src/components/Icon/line/basic-shape-primary-circle-ellipse-round.svg +0 -1
- package/src/components/Icon/line/basic-shape-primary-square-rectangle.svg +0 -1
- package/src/components/Icon/line/basic-shape-shield.svg +0 -1
- package/src/components/Icon/line/computer-device-desktop-monitor.svg +0 -1
- package/src/components/Icon/line/computer-device-desktop.svg +0 -1
- package/src/components/Icon/line/computer-device-laptop.svg +0 -1
- package/src/components/Icon/line/computer-device-mobile-phone-android-samsung-back.svg +0 -1
- package/src/components/Icon/line/computer-device-mobile-phone-android-samsung.svg +0 -1
- package/src/components/Icon/line/computer-device-mobile-phone-iphone-x-back.svg +0 -1
- package/src/components/Icon/line/computer-device-mobile-phone-iphone-x.svg +0 -1
- package/src/components/Icon/line/computer-device-mobile-tablet-touch.svg +0 -1
- package/src/components/Icon/line/computer-device-mobile-tablet.svg +0 -1
- package/src/components/Icon/line/computer-device-network-ethernet-cat6.svg +0 -1
- package/src/components/Icon/line/computer-device-network-lan-www.svg +0 -1
- package/src/components/Icon/line/computer-device-network-wifi-connection.svg +0 -1
- package/src/components/Icon/line/computer-device-network-wifi-router.svg +0 -1
- package/src/components/Icon/line/computer-keyboard-alt.svg +0 -1
- package/src/components/Icon/line/computer-keyboard-command-cmd-control-ctrl.svg +0 -1
- package/src/components/Icon/line/computer-keyboard-option.svg +0 -1
- package/src/components/Icon/line/computer-keyboard-shift.svg +0 -1
- package/src/components/Icon/line/ecology-science-erlenmeyer-flask.svg +0 -1
- package/src/components/Icon/line/entertainment-control-button-circle-left-arrow-rewind.svg +0 -1
- package/src/components/Icon/line/entertainment-control-button-circle-pause.svg +0 -1
- package/src/components/Icon/line/entertainment-control-button-circle-right-arrow-fast-forward.svg +0 -1
- package/src/components/Icon/line/entertainment-control-button-circle-stop-square.svg +0 -1
- package/src/components/Icon/line/entertainment-control-button-play-circle.svg +0 -1
- package/src/components/Icon/line/entertainment-party-popper-confetti.svg +0 -1
- package/src/components/Icon/line/image-flash-lightning.svg +0 -1
- package/src/components/Icon/line/image-photo-frame.svg +0 -1
- package/src/components/Icon/line/image-picture-flower.svg +0 -1
- package/src/components/Icon/line/interface-add.svg +0 -1
- package/src/components/Icon/line/interface-alert-error-exclamation-block-square.svg +0 -1
- package/src/components/Icon/line/interface-alert-error-x-block-square.svg +0 -1
- package/src/components/Icon/line/interface-alert-exclamation-diamond.svg +0 -1
- package/src/components/Icon/line/interface-alert-exclamation-triangle-warning.svg +0 -1
- package/src/components/Icon/line/interface-alert-information-circle.svg +0 -1
- package/src/components/Icon/line/interface-award-crown.svg +0 -1
- package/src/components/Icon/line/interface-bookmark-tag.svg +0 -1
- package/src/components/Icon/line/interface-bookmark.svg +0 -1
- package/src/components/Icon/line/interface-calendar-date-one.svg +0 -1
- package/src/components/Icon/line/interface-close.svg +0 -1
- package/src/components/Icon/line/interface-content-book-open-pages.svg +0 -1
- package/src/components/Icon/line/interface-content-book-page.svg +0 -1
- package/src/components/Icon/line/interface-content-file.svg +0 -8
- package/src/components/Icon/line/interface-content-folder.svg +0 -1
- package/src/components/Icon/line/interface-copy-clipboard.svg +0 -1
- package/src/components/Icon/line/interface-delete-bin-trash.svg +0 -1
- package/src/components/Icon/line/interface-dots-horizontal.svg +0 -1
- package/src/components/Icon/line/interface-dots-vertical.svg +0 -1
- package/src/components/Icon/line/interface-edit-attachment.svg +0 -1
- package/src/components/Icon/line/interface-edit-binocular.svg +0 -1
- package/src/components/Icon/line/interface-edit-magic-wand.svg +0 -1
- package/src/components/Icon/line/interface-edit-tool-eraser.svg +0 -1
- package/src/components/Icon/line/interface-edit-tool-paint-brush.svg +0 -1
- package/src/components/Icon/line/interface-edit-tool-paint-roller.svg +0 -1
- package/src/components/Icon/line/interface-edit-tool-pen.svg +0 -1
- package/src/components/Icon/line/interface-edit-tool-pencil.svg +0 -1
- package/src/components/Icon/line/interface-edit-view-eye.svg +0 -1
- package/src/components/Icon/line/interface-favorite-award.svg +0 -1
- package/src/components/Icon/line/interface-favorite-flag.svg +0 -1
- package/src/components/Icon/line/interface-favorite-heart.svg +0 -1
- package/src/components/Icon/line/interface-favorite-star.svg +0 -1
- package/src/components/Icon/line/interface-favorite-stars-shining.svg +0 -1
- package/src/components/Icon/line/interface-favorite-stars-sparkles.svg +0 -1
- package/src/components/Icon/line/interface-hierarchy-flowchart.svg +0 -1
- package/src/components/Icon/line/interface-home-house.svg +0 -1
- package/src/components/Icon/line/interface-hyperlink.svg +0 -1
- package/src/components/Icon/line/interface-lighting-brightness.svg +0 -1
- package/src/components/Icon/line/interface-lock-closed.svg +0 -1
- package/src/components/Icon/line/interface-lock-open-unlock.svg +0 -1
- package/src/components/Icon/line/interface-login-key.svg +0 -1
- package/src/components/Icon/line/interface-search.svg +0 -1
- package/src/components/Icon/line/interface-setting-cog.svg +0 -1
- package/src/components/Icon/line/interface-share-megaphone-bullhorn.svg +0 -1
- package/src/components/Icon/line/interface-share-rocket.svg +0 -1
- package/src/components/Icon/line/interface-share-satellite.svg +0 -1
- package/src/components/Icon/line/interface-share-space-ship.svg +0 -1
- package/src/components/Icon/line/interface-share.svg +0 -1
- package/src/components/Icon/line/interface-signal-square.svg +0 -1
- package/src/components/Icon/line/interface-text-formatting-left-open-quote.svg +0 -1
- package/src/components/Icon/line/interface-text-formatting-right-close-quote.svg +0 -1
- package/src/components/Icon/line/interface-time-clock-circle.svg +0 -1
- package/src/components/Icon/line/interface-time-hour-glass.svg +0 -1
- package/src/components/Icon/line/interface-users-multiple.svg +0 -1
- package/src/components/Icon/line/interface-validation-checkbox-square.svg +0 -1
- package/src/components/Icon/line/interface-weather-moon.svg +0 -1
- package/src/components/Icon/line/legal-justice-hammer-gavel.svg +0 -1
- package/src/components/Icon/line/mail-chat-bubble-square.svg +0 -1
- package/src/components/Icon/line/mail-send-email-paper-airplane.svg +0 -1
- package/src/components/Icon/line/mail-send-envelope.svg +0 -1
- package/src/components/Icon/line/mail-sign-hashtag.svg +0 -1
- package/src/components/Icon/line/money-cashier-receipt.svg +0 -1
- package/src/components/Icon/line/money-currency-dollar-pay.svg +0 -1
- package/src/components/Icon/line/money-graph-arrow-increase.svg +0 -1
- package/src/components/Icon/line/money-graph-bar-chart-increase.svg +0 -1
- package/src/components/Icon/line/nature-ecology-leaf.svg +0 -1
- package/src/components/Icon/line/phone-telephone.svg +0 -1
- package/src/components/Icon/line/programming-bug.svg +0 -1
- package/src/components/Icon/line/programming-cloud.svg +0 -1
- package/src/components/Icon/line/programming-computer-database-server.svg +0 -1
- package/src/components/Icon/line/programming-computer-database.svg +0 -1
- package/src/components/Icon/line/programming-module-four-layout.svg +0 -1
- package/src/components/Icon/line/programming-module-three.svg +0 -1
- package/src/components/Icon/line/programming-module.svg +0 -1
- package/src/components/Icon/line/programming-script-code.svg +0 -1
- package/src/components/Icon/line/shopping-cart.svg +0 -8
- package/src/components/Icon/line/shopping-gift-present.svg +0 -1
- package/src/components/Icon/line/shopping-shipping-box-parcel-package.svg +0 -1
- package/src/components/Icon/line/tag-new-circle.svg +0 -1
- package/src/components/Icon/line/travel-map-earth-globe.svg +0 -1
- package/src/components/Icon/localIcons.ts +0 -68
- package/src/components/Icon/solid/arrow-chevron-down.svg +0 -1
- package/src/components/Icon/solid/arrow-chevron-left.svg +0 -1
- package/src/components/Icon/solid/arrow-chevron-right.svg +0 -1
- package/src/components/Icon/solid/arrow-chevron-up.svg +0 -1
- package/src/components/Icon/solid/arrow-down.svg +0 -1
- package/src/components/Icon/solid/arrow-left.svg +0 -1
- package/src/components/Icon/solid/arrow-right.svg +0 -1
- package/src/components/Icon/solid/arrow-up.svg +0 -1
- package/src/components/Icon/solid/basic-shape-diamond.svg +0 -1
- package/src/components/Icon/solid/basic-shape-hexagon.svg +0 -1
- package/src/components/Icon/solid/basic-shape-primary-circle-ellipse-round.svg +0 -1
- package/src/components/Icon/solid/basic-shape-primary-square-rectangle.svg +0 -1
- package/src/components/Icon/solid/basic-shape-shield.svg +0 -1
- package/src/components/Icon/solid/computer-device-desktop-monitor.svg +0 -1
- package/src/components/Icon/solid/computer-device-desktop.svg +0 -1
- package/src/components/Icon/solid/computer-device-laptop.svg +0 -1
- package/src/components/Icon/solid/computer-device-mobile-phone-android-samsung-back.svg +0 -1
- package/src/components/Icon/solid/computer-device-mobile-phone-android-samsung.svg +0 -1
- package/src/components/Icon/solid/computer-device-mobile-phone-iphone-x-back.svg +0 -1
- package/src/components/Icon/solid/computer-device-mobile-phone-iphone-x.svg +0 -1
- package/src/components/Icon/solid/computer-device-mobile-tablet-touch.svg +0 -1
- package/src/components/Icon/solid/computer-device-mobile-tablet.svg +0 -1
- package/src/components/Icon/solid/computer-device-network-ethernet-cat6.svg +0 -1
- package/src/components/Icon/solid/computer-device-network-lan-www.svg +0 -1
- package/src/components/Icon/solid/computer-device-network-wifi-connection.svg +0 -5
- package/src/components/Icon/solid/computer-device-network-wifi-router.svg +0 -1
- package/src/components/Icon/solid/computer-keyboard-alt.svg +0 -1
- package/src/components/Icon/solid/computer-keyboard-command-cmd-control-ctrl.svg +0 -1
- package/src/components/Icon/solid/computer-keyboard-option.svg +0 -1
- package/src/components/Icon/solid/computer-keyboard-shift.svg +0 -1
- package/src/components/Icon/solid/ecology-science-erlenmeyer-flask.svg +0 -1
- package/src/components/Icon/solid/entertainment-control-button-circle-left-arrow-rewind.svg +0 -1
- package/src/components/Icon/solid/entertainment-control-button-circle-pause.svg +0 -1
- package/src/components/Icon/solid/entertainment-control-button-circle-play.svg +0 -5
- package/src/components/Icon/solid/entertainment-control-button-circle-right-arrow-fast-forward.svg +0 -1
- package/src/components/Icon/solid/entertainment-control-button-circle-stop-square.svg +0 -1
- package/src/components/Icon/solid/entertainment-party-popper-confetti.svg +0 -1
- package/src/components/Icon/solid/image-flash-lightning.svg +0 -5
- package/src/components/Icon/solid/image-photo-frame.svg +0 -11
- package/src/components/Icon/solid/image-picture-flower.svg +0 -5
- package/src/components/Icon/solid/interface-add-square.svg +0 -5
- package/src/components/Icon/solid/interface-alert-error-exclamation-block-square.svg +0 -1
- package/src/components/Icon/solid/interface-alert-error-x-block-square.svg +0 -1
- package/src/components/Icon/solid/interface-alert-exclamation-diamond.svg +0 -1
- package/src/components/Icon/solid/interface-alert-exclamation-triangle-warning.svg +0 -1
- package/src/components/Icon/solid/interface-alert-information-circle.svg +0 -5
- package/src/components/Icon/solid/interface-award-crown.svg +0 -5
- package/src/components/Icon/solid/interface-bookmark-tag.svg +0 -1
- package/src/components/Icon/solid/interface-bookmark.svg +0 -5
- package/src/components/Icon/solid/interface-calendar-date-one.svg +0 -5
- package/src/components/Icon/solid/interface-close.svg +0 -8
- package/src/components/Icon/solid/interface-content-book-open-pages.svg +0 -13
- package/src/components/Icon/solid/interface-content-book-page.svg +0 -5
- package/src/components/Icon/solid/interface-content-file.svg +0 -5
- package/src/components/Icon/solid/interface-content-folder.svg +0 -1
- package/src/components/Icon/solid/interface-copy-clipboard.svg +0 -5
- package/src/components/Icon/solid/interface-delete-bin-trash.svg +0 -1
- package/src/components/Icon/solid/interface-dots-horizontal.svg +0 -1
- package/src/components/Icon/solid/interface-dots-vertical.svg +0 -1
- package/src/components/Icon/solid/interface-edit-attachment.svg +0 -5
- package/src/components/Icon/solid/interface-edit-binocular.svg +0 -5
- package/src/components/Icon/solid/interface-edit-magic-wand.svg +0 -7
- package/src/components/Icon/solid/interface-edit-tool-eraser.svg +0 -1
- package/src/components/Icon/solid/interface-edit-tool-paint-brush.svg +0 -1
- package/src/components/Icon/solid/interface-edit-tool-paint-roller.svg +0 -5
- package/src/components/Icon/solid/interface-edit-tool-pen.svg +0 -5
- package/src/components/Icon/solid/interface-edit-tool-pencil.svg +0 -1
- package/src/components/Icon/solid/interface-edit-view-eye.svg +0 -7
- package/src/components/Icon/solid/interface-favorite-award.svg +0 -5
- package/src/components/Icon/solid/interface-favorite-flag.svg +0 -1
- package/src/components/Icon/solid/interface-favorite-heart.svg +0 -5
- package/src/components/Icon/solid/interface-favorite-star.svg +0 -5
- package/src/components/Icon/solid/interface-favorite-stars-shining.svg +0 -1
- package/src/components/Icon/solid/interface-favorite-stars-sparkles.svg +0 -1
- package/src/components/Icon/solid/interface-hierarchy-flowchart.svg +0 -5
- package/src/components/Icon/solid/interface-home-house.svg +0 -5
- package/src/components/Icon/solid/interface-hyperlink.svg +0 -5
- package/src/components/Icon/solid/interface-lighting-brightness.svg +0 -22
- package/src/components/Icon/solid/interface-lock-closed.svg +0 -5
- package/src/components/Icon/solid/interface-lock-open-unlock.svg +0 -1
- package/src/components/Icon/solid/interface-login-key.svg +0 -5
- package/src/components/Icon/solid/interface-search.svg +0 -5
- package/src/components/Icon/solid/interface-setting-cog.svg +0 -5
- package/src/components/Icon/solid/interface-share-megaphone-bullhorn.svg +0 -5
- package/src/components/Icon/solid/interface-share-rocket.svg +0 -1
- package/src/components/Icon/solid/interface-share-satellite.svg +0 -8
- package/src/components/Icon/solid/interface-share-space-ship.svg +0 -1
- package/src/components/Icon/solid/interface-share.svg +0 -5
- package/src/components/Icon/solid/interface-signal-square.svg +0 -5
- package/src/components/Icon/solid/interface-text-formatting-left-open-quote.svg +0 -1
- package/src/components/Icon/solid/interface-text-formatting-right-close-quote.svg +0 -1
- package/src/components/Icon/solid/interface-time-clock-circle.svg +0 -5
- package/src/components/Icon/solid/interface-time-hour-glass.svg +0 -1
- package/src/components/Icon/solid/interface-users-multiple.svg +0 -11
- package/src/components/Icon/solid/interface-validation-checkbox-square.svg +0 -5
- package/src/components/Icon/solid/interface-weather-moon.svg +0 -5
- package/src/components/Icon/solid/legal-justice-hammer-gavel.svg +0 -1
- package/src/components/Icon/solid/mail-chat-bubble-square.svg +0 -5
- package/src/components/Icon/solid/mail-send-email-paper-airplane.svg +0 -5
- package/src/components/Icon/solid/mail-send-envelope.svg +0 -1
- package/src/components/Icon/solid/mail-sign-hashtag.svg +0 -5
- package/src/components/Icon/solid/money-cashier-receipt.svg +0 -1
- package/src/components/Icon/solid/money-currency-dollar-pay.svg +0 -5
- package/src/components/Icon/solid/money-graph-arrow-increase.svg +0 -5
- package/src/components/Icon/solid/money-graph-bar-chart-increase.svg +0 -1
- package/src/components/Icon/solid/nature-ecology-leaf.svg +0 -5
- package/src/components/Icon/solid/phone-telephone.svg +0 -5
- package/src/components/Icon/solid/programming-bug.svg +0 -5
- package/src/components/Icon/solid/programming-cloud.svg +0 -4
- package/src/components/Icon/solid/programming-computer-database-server.svg +0 -5
- package/src/components/Icon/solid/programming-computer-database.svg +0 -5
- package/src/components/Icon/solid/programming-module-four-layout.svg +0 -1
- package/src/components/Icon/solid/programming-module-three.svg +0 -1
- package/src/components/Icon/solid/programming-module.svg +0 -1
- package/src/components/Icon/solid/programming-script-code.svg +0 -5
- package/src/components/Icon/solid/shopping-cart.svg +0 -1
- package/src/components/Icon/solid/shopping-gift-present.svg +0 -16
- package/src/components/Icon/solid/shopping-shipping-box-parcel-package.svg +0 -11
- package/src/components/Icon/solid/tag-new-circle.svg +0 -7
- package/src/components/Icon/solid/travel-map-earth-globe.svg +0 -5
- package/src/components/SearchModal.vue +0 -305
- package/src/components/Sidebar.vue +0 -289
- package/src/components/SidebarElement.vue +0 -133
- package/src/components/SidebarGroup.vue +0 -12
- package/src/components/SimpleTable/SimpleCell.vue +0 -46
- package/src/components/SimpleTable/SimpleHeader.vue +0 -17
- package/src/components/SimpleTable/SimpleRow.vue +0 -5
- package/src/components/SimpleTable/SimpleTable.vue +0 -13
- package/src/components/SimpleTable/index.ts +0 -4
- package/src/declarations/typographic-base.d.ts +0 -1
- package/src/helpers/generateAxiosCodeFromRequest.ts +0 -42
- package/src/helpers/generateLaravelCodeFromRequest.ts +0 -20
- package/src/helpers/index.ts +0 -4
- package/src/helpers/objectMerge.ts +0 -19
- package/src/helpers/specHelpers.ts +0 -62
- package/src/helpers/transformToJson.test.ts +0 -7
- package/src/helpers/transformToJson.ts +0 -22
- package/src/hooks/useRefOnMount.ts +0 -12
- package/src/index.ts +0 -9
- package/src/standalone.ts +0 -27
- package/src/stores/template.ts +0 -66
- package/src/stores/utility.ts +0 -23
- package/src/types.ts +0 -150
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref } from 'vue'
|
|
3
|
-
|
|
4
|
-
import type { ContentProperties } from '../../../types'
|
|
5
|
-
import RequestBodyPropertiesChild from './RequestBodyPropertiesChild.vue'
|
|
6
|
-
|
|
7
|
-
defineProps<{ contentProperties: ContentProperties; required: string[] }>()
|
|
8
|
-
|
|
9
|
-
const open = ref(true)
|
|
10
|
-
</script>
|
|
11
|
-
<template>
|
|
12
|
-
<li
|
|
13
|
-
v-for="name in Object.keys(contentProperties || {})"
|
|
14
|
-
:key="contentProperties[name].type">
|
|
15
|
-
<span class="parameter-name">{{ name }}</span>
|
|
16
|
-
<span
|
|
17
|
-
class="parameter-required"
|
|
18
|
-
:class="required?.includes(name) ? 'marc_required' : ''">
|
|
19
|
-
{{ required?.includes(name) ? 'required' : 'optional' }}
|
|
20
|
-
</span>
|
|
21
|
-
<span class="parameter-type">{{ contentProperties[name].type }}</span>
|
|
22
|
-
<p
|
|
23
|
-
v-if="contentProperties[name].description"
|
|
24
|
-
class="parameter-description">
|
|
25
|
-
description
|
|
26
|
-
</p>
|
|
27
|
-
<div
|
|
28
|
-
v-if="Object.keys(contentProperties[name].properties || {}).length > 0"
|
|
29
|
-
class="parameter-child"
|
|
30
|
-
:class="{ 'parameter-child__open': open }">
|
|
31
|
-
<div
|
|
32
|
-
class="parameter-child-trigger"
|
|
33
|
-
@click="open = !open">
|
|
34
|
-
<svg
|
|
35
|
-
fill="currentColor"
|
|
36
|
-
height="14"
|
|
37
|
-
viewBox="0 0 14 14"
|
|
38
|
-
width="14"
|
|
39
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
40
|
-
<polygon
|
|
41
|
-
fill-rule="nonzero"
|
|
42
|
-
points="14 8 8 8 8 14 6 14 6 8 0 8 0 6 6 6 6 0 8 0 8 6 14 6" />
|
|
43
|
-
</svg>
|
|
44
|
-
<span>Child Attributes</span>
|
|
45
|
-
</div>
|
|
46
|
-
<ul
|
|
47
|
-
v-show="open"
|
|
48
|
-
class="parameter">
|
|
49
|
-
<RequestBodyPropertiesChild
|
|
50
|
-
:contentProperties="contentProperties[name].properties || {}" />
|
|
51
|
-
</ul>
|
|
52
|
-
</div>
|
|
53
|
-
</li>
|
|
54
|
-
</template>
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { ContentProperties } from '../../../types'
|
|
3
|
-
|
|
4
|
-
defineProps<{ contentProperties: ContentProperties }>()
|
|
5
|
-
</script>
|
|
6
|
-
<template>
|
|
7
|
-
<li
|
|
8
|
-
v-for="(value, key) in contentProperties"
|
|
9
|
-
:key="key">
|
|
10
|
-
<div class="param-editor">
|
|
11
|
-
<div class="param-editor-flex">
|
|
12
|
-
<span class="parameter-name">{{ key }}</span>
|
|
13
|
-
<span class="parameter-type">{{ value.type }}</span>
|
|
14
|
-
</div>
|
|
15
|
-
<p
|
|
16
|
-
v-if="value.description"
|
|
17
|
-
class="parameter-description">
|
|
18
|
-
{{ value.description }}
|
|
19
|
-
</p>
|
|
20
|
-
<div
|
|
21
|
-
v-if="value.type === 'object'"
|
|
22
|
-
class="parameter-child parameter-child__on">
|
|
23
|
-
<div class="parameter-child-trigger">
|
|
24
|
-
<svg
|
|
25
|
-
fill="currentColor"
|
|
26
|
-
height="14"
|
|
27
|
-
viewBox="0 0 14 14"
|
|
28
|
-
width="14"
|
|
29
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
30
|
-
<polygon
|
|
31
|
-
fill-rule="nonzero"
|
|
32
|
-
points="14 8 8 8 8 14 6 14 6 8 0 8 0 6 6 6 6 0 8 0 8 6 14 6" />
|
|
33
|
-
</svg>
|
|
34
|
-
<span>Child Attributes</span>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
</li>
|
|
39
|
-
</template>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as default } from './ReferenceEndpoint.vue'
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { useApiClientStore } from '@scalar/api-client'
|
|
3
|
-
import { useIntersectionObserver } from '@vueuse/core'
|
|
4
|
-
import { nextTick, onMounted, ref } from 'vue'
|
|
5
|
-
|
|
6
|
-
import { useTemplateStore } from '../../stores/template'
|
|
7
|
-
import type { Operation, Tag } from '../../types'
|
|
8
|
-
import { Card, CardContent, CardHeader } from '../Card'
|
|
9
|
-
import MarkdownRenderer from './MarkdownRenderer.vue'
|
|
10
|
-
|
|
11
|
-
const props = defineProps<{ tag: Tag; index: number }>()
|
|
12
|
-
|
|
13
|
-
const { setCollapsedSidebarItem } = useTemplateStore()
|
|
14
|
-
|
|
15
|
-
const { setActiveSidebar } = useApiClientStore()
|
|
16
|
-
|
|
17
|
-
const scrollToEndpoint = async (item: Operation) => {
|
|
18
|
-
setCollapsedSidebarItem(props.tag.name, true)
|
|
19
|
-
await nextTick()
|
|
20
|
-
setActiveSidebar(item.operationId)
|
|
21
|
-
document.getElementById(`endpoint/${item.operationId}`)?.scrollIntoView()
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
onMounted(() => {
|
|
25
|
-
const root = document.getElementById('tippy')
|
|
26
|
-
|
|
27
|
-
const tagHeader = ref<HTMLElement>()
|
|
28
|
-
|
|
29
|
-
useIntersectionObserver(
|
|
30
|
-
tagHeader,
|
|
31
|
-
([{ isIntersecting }]) => {
|
|
32
|
-
if (isIntersecting) {
|
|
33
|
-
if (props.index === 0) {
|
|
34
|
-
const newUrl = `${window.location.origin}${window.location.pathname}`
|
|
35
|
-
window.history.replaceState({}, '', newUrl)
|
|
36
|
-
setCollapsedSidebarItem(props.tag.name, true)
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
rootMargin: '0px 0px 0px 0px', // Trigger when the header touches the top of the viewport
|
|
42
|
-
threshold: 0,
|
|
43
|
-
root,
|
|
44
|
-
},
|
|
45
|
-
)
|
|
46
|
-
})
|
|
47
|
-
</script>
|
|
48
|
-
|
|
49
|
-
<template>
|
|
50
|
-
<div
|
|
51
|
-
:id="`tag/${tag.name}`"
|
|
52
|
-
class="reference-container"
|
|
53
|
-
:data-section-id="tag.name">
|
|
54
|
-
<div class="copy">
|
|
55
|
-
<div class="editor-heading">
|
|
56
|
-
<h1
|
|
57
|
-
ref="tagHeader"
|
|
58
|
-
class="heading">
|
|
59
|
-
{{ tag.name }}
|
|
60
|
-
</h1>
|
|
61
|
-
</div>
|
|
62
|
-
<div
|
|
63
|
-
v-if="tag.description"
|
|
64
|
-
class="tag-description">
|
|
65
|
-
<MarkdownRenderer :value="tag.description" />
|
|
66
|
-
</div>
|
|
67
|
-
</div>
|
|
68
|
-
<div
|
|
69
|
-
v-if="tag.operations?.length > 0"
|
|
70
|
-
class="example">
|
|
71
|
-
<Card>
|
|
72
|
-
<CardHeader muted>Endpoints</CardHeader>
|
|
73
|
-
<CardContent muted>
|
|
74
|
-
<div class="endpoints custom-scroll">
|
|
75
|
-
<a
|
|
76
|
-
v-for="child in tag.operations"
|
|
77
|
-
:key="child.operationId"
|
|
78
|
-
class="endpoint"
|
|
79
|
-
@click="scrollToEndpoint(child)">
|
|
80
|
-
<span :class="child.httpVerb">{{ child.httpVerb }}</span>
|
|
81
|
-
<span>{{ child.path }}</span>
|
|
82
|
-
</a>
|
|
83
|
-
</div>
|
|
84
|
-
</CardContent>
|
|
85
|
-
</Card>
|
|
86
|
-
</div>
|
|
87
|
-
</div>
|
|
88
|
-
</template>
|
|
89
|
-
<style scoped>
|
|
90
|
-
.endpoints {
|
|
91
|
-
overflow: auto;
|
|
92
|
-
background: var(--theme-background-2);
|
|
93
|
-
}
|
|
94
|
-
.endpoints span + span {
|
|
95
|
-
text-align: left;
|
|
96
|
-
margin-left: 12px;
|
|
97
|
-
text-transform: initial;
|
|
98
|
-
}
|
|
99
|
-
</style>
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<span class="scalar-logo-animation scalar-logo-animation-load">
|
|
3
|
-
<i class="line line-1"></i>
|
|
4
|
-
<i class="line line-2"></i>
|
|
5
|
-
<i class="line line-3"></i>
|
|
6
|
-
<i class="line line-4"></i>
|
|
7
|
-
</span>
|
|
8
|
-
</template>
|
|
9
|
-
<style scoped>
|
|
10
|
-
.scalar-logo-animation {
|
|
11
|
-
width: 38px;
|
|
12
|
-
height: 38px;
|
|
13
|
-
position: relative;
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
}
|
|
17
|
-
.scalar-logo-animation .line:before {
|
|
18
|
-
content: '';
|
|
19
|
-
width: 100%;
|
|
20
|
-
height: 100%;
|
|
21
|
-
background: #4c4316;
|
|
22
|
-
display: block;
|
|
23
|
-
position: absolute;
|
|
24
|
-
}
|
|
25
|
-
.scalar-logo-animation .line {
|
|
26
|
-
position: absolute;
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 1px;
|
|
29
|
-
overflow: hidden;
|
|
30
|
-
}
|
|
31
|
-
.scalar-logo-animation .line-2 {
|
|
32
|
-
transform: rotate(90deg);
|
|
33
|
-
}
|
|
34
|
-
.scalar-logo-animation .line-3 {
|
|
35
|
-
transform: rotate(45deg);
|
|
36
|
-
}
|
|
37
|
-
.scalar-logo-animation .line-4 {
|
|
38
|
-
transform: rotate(-45deg);
|
|
39
|
-
}
|
|
40
|
-
.scalar-logo-animation-load {
|
|
41
|
-
animation: rotate 2s linear infinite;
|
|
42
|
-
}
|
|
43
|
-
@keyframes rotate {
|
|
44
|
-
from {
|
|
45
|
-
transform: rotate(0deg);
|
|
46
|
-
}
|
|
47
|
-
to {
|
|
48
|
-
transform: rotate(360deg);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Content } from './Content.vue'
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { isMacOS } from '@scalar/use-tooltip'
|
|
3
|
-
|
|
4
|
-
import FlowIcon from './Icon/FlowIcon.vue'
|
|
5
|
-
</script>
|
|
6
|
-
<template>
|
|
7
|
-
<button
|
|
8
|
-
class="sidebar-search"
|
|
9
|
-
type="button">
|
|
10
|
-
<FlowIcon
|
|
11
|
-
class="search-icon"
|
|
12
|
-
icon="Search" />
|
|
13
|
-
<div class="sidebar-search-input">
|
|
14
|
-
<span
|
|
15
|
-
class="sidebar-search-placeholder"
|
|
16
|
-
type="text">
|
|
17
|
-
Search
|
|
18
|
-
</span>
|
|
19
|
-
<span class="sidebar-search-shortcut">
|
|
20
|
-
<span class="sidebar-search-key">{{ isMacOS() ? '⌘' : '⌃' }}</span>
|
|
21
|
-
<span class="sidebar-search-key">k</span>
|
|
22
|
-
</span>
|
|
23
|
-
</div>
|
|
24
|
-
</button>
|
|
25
|
-
</template>
|
|
26
|
-
<style scoped>
|
|
27
|
-
.sidebar-search {
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
position: relative;
|
|
31
|
-
/* Sub */
|
|
32
|
-
--margin-x: 12px;
|
|
33
|
-
width: calc(100% - 2 * var(--margin-x));
|
|
34
|
-
margin: 12px var(--margin-x) 6px var(--margin-x);
|
|
35
|
-
padding: 0 3px 0 12px;
|
|
36
|
-
|
|
37
|
-
color: var(--sidebar-color-2, var(--theme-color-2));
|
|
38
|
-
outline: none;
|
|
39
|
-
border-radius: var(--theme-radius-lg);
|
|
40
|
-
border: 1px solid var(--theme-border-color);
|
|
41
|
-
/* prettier-ignore */
|
|
42
|
-
background: var(--scalar-api-reference-sidebar-search-background, var(--theme-background-1));
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
appearance: none;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.sidebar-search-input {
|
|
48
|
-
font-size: var(--theme-small);
|
|
49
|
-
font-weight: var(--theme-semibold);
|
|
50
|
-
height: 31px;
|
|
51
|
-
|
|
52
|
-
user-select: none;
|
|
53
|
-
z-index: 10;
|
|
54
|
-
position: relative;
|
|
55
|
-
display: flex;
|
|
56
|
-
width: 100%;
|
|
57
|
-
justify-content: space-between;
|
|
58
|
-
align-items: center;
|
|
59
|
-
}
|
|
60
|
-
.sidebar-search-shortcut {
|
|
61
|
-
text-transform: uppercase;
|
|
62
|
-
}
|
|
63
|
-
.sidebar-search-key {
|
|
64
|
-
background-color: var(--theme-background-2);
|
|
65
|
-
padding: 3px 5px;
|
|
66
|
-
margin: 2px;
|
|
67
|
-
border-radius: var(--theme-radius);
|
|
68
|
-
color: var(--theme-color-3);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.search-icon {
|
|
72
|
-
padding: 0;
|
|
73
|
-
margin-right: 9px;
|
|
74
|
-
width: 12px;
|
|
75
|
-
}
|
|
76
|
-
</style>
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
defineProps<{
|
|
3
|
-
label: string
|
|
4
|
-
error?: boolean
|
|
5
|
-
loaderState?: LoadingState
|
|
6
|
-
variant?: ButtonVariant
|
|
7
|
-
title?: string
|
|
8
|
-
icon?: boolean
|
|
9
|
-
}>()
|
|
10
|
-
</script>
|
|
11
|
-
<script lang="ts">
|
|
12
|
-
import FlowLoader, {
|
|
13
|
-
type LoadingState,
|
|
14
|
-
useLoaderState as useLoadButtonState,
|
|
15
|
-
} from './FlowLoader.vue'
|
|
16
|
-
|
|
17
|
-
export type ButtonVariant = 'solid' | 'outlined' | 'clear' | 'text'
|
|
18
|
-
export { useLoadButtonState }
|
|
19
|
-
</script>
|
|
20
|
-
<template>
|
|
21
|
-
<button
|
|
22
|
-
class="flow-button"
|
|
23
|
-
:class="{
|
|
24
|
-
'flow-button-outlined': !error && variant === 'outlined',
|
|
25
|
-
'flow-button-clear': !error && variant === 'clear',
|
|
26
|
-
'flow-button-text': !error && variant === 'text',
|
|
27
|
-
'flow-button--delete': error,
|
|
28
|
-
'flow-button-icon-only': icon,
|
|
29
|
-
}"
|
|
30
|
-
:title="title || label"
|
|
31
|
-
type="button">
|
|
32
|
-
<div
|
|
33
|
-
v-if="$slots.default"
|
|
34
|
-
class="flow-button-decorator">
|
|
35
|
-
<slot />
|
|
36
|
-
</div>
|
|
37
|
-
<span :class="{ 'sr-only': icon }">{{ label }}</span>
|
|
38
|
-
<div class="flow-button-loader">
|
|
39
|
-
<FlowLoader
|
|
40
|
-
v-if="loaderState"
|
|
41
|
-
:loaderState="loaderState" />
|
|
42
|
-
</div>
|
|
43
|
-
</button>
|
|
44
|
-
</template>
|
|
45
|
-
<style scoped>
|
|
46
|
-
.flow-button {
|
|
47
|
-
display: flex;
|
|
48
|
-
align-items: center;
|
|
49
|
-
justify-content: center;
|
|
50
|
-
z-index: 1;
|
|
51
|
-
position: relative;
|
|
52
|
-
appearance: none;
|
|
53
|
-
-webkit-appearance: none;
|
|
54
|
-
height: 40px;
|
|
55
|
-
padding: 0px 24px;
|
|
56
|
-
border-radius: var(--theme-radius-lg);
|
|
57
|
-
color: var(--theme-button-1-color);
|
|
58
|
-
font-size: var(--theme-small);
|
|
59
|
-
font-weight: 500;
|
|
60
|
-
cursor: pointer;
|
|
61
|
-
background: var(--theme-button-1);
|
|
62
|
-
border: none;
|
|
63
|
-
width: 100%;
|
|
64
|
-
box-shadow: rgba(0, 0, 0, 0.09) 0px 1px 4px;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.flow-button:hover,
|
|
68
|
-
.flow-button:focus-visible {
|
|
69
|
-
background: var(--theme-button-1-hover);
|
|
70
|
-
}
|
|
71
|
-
.flow-button:active {
|
|
72
|
-
box-shadow: none;
|
|
73
|
-
background: var(--theme-button-1);
|
|
74
|
-
}
|
|
75
|
-
.flow-button[disabled] {
|
|
76
|
-
background: var(--theme-background-2);
|
|
77
|
-
color: var(--theme-color-3);
|
|
78
|
-
cursor: unset;
|
|
79
|
-
box-shadow: none;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.flow-button.flow-button-icon-only {
|
|
83
|
-
width: 24px;
|
|
84
|
-
height: 24px;
|
|
85
|
-
padding: 0;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/* ----------------------------------------------------- */
|
|
89
|
-
.flow-button-outlined {
|
|
90
|
-
background: var(--theme-background-1);
|
|
91
|
-
color: var(--theme-color-1);
|
|
92
|
-
padding: 11px 23px;
|
|
93
|
-
border: 1px solid var(--theme-border-color);
|
|
94
|
-
box-shadow: rgba(0, 0, 0, 0.09) 0px 1px 4px;
|
|
95
|
-
}
|
|
96
|
-
.flow-button-outlined:hover,
|
|
97
|
-
.flow-button-outlined:focus-visible {
|
|
98
|
-
background: var(--theme-background-2);
|
|
99
|
-
}
|
|
100
|
-
.flow-button-outlined:active {
|
|
101
|
-
background: var(--theme-background-2);
|
|
102
|
-
}
|
|
103
|
-
.flow-button-outlined[disabled] {
|
|
104
|
-
background: var(--theme-background-2);
|
|
105
|
-
color: var(--theme-color-3);
|
|
106
|
-
cursor: unset;
|
|
107
|
-
box-shadow: none;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/* ----------------------------------------------------- */
|
|
111
|
-
.flow-button-clear {
|
|
112
|
-
background: transparent;
|
|
113
|
-
box-shadow: none;
|
|
114
|
-
color: var(--theme-color-3);
|
|
115
|
-
}
|
|
116
|
-
.flow-button-clear:active {
|
|
117
|
-
background: transparent;
|
|
118
|
-
}
|
|
119
|
-
.flow-button-clear:hover,
|
|
120
|
-
.flow-button-clear:focus-visible {
|
|
121
|
-
background: var(--theme-background-2);
|
|
122
|
-
box-shadow: none;
|
|
123
|
-
}
|
|
124
|
-
.flow-button-clear[disabled] {
|
|
125
|
-
background: var(--theme-background-2);
|
|
126
|
-
color: var(--theme-color-3);
|
|
127
|
-
cursor: unset;
|
|
128
|
-
box-shadow: none;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/* ----------------------------------------------------- */
|
|
132
|
-
.flow-button-text {
|
|
133
|
-
background: transparent;
|
|
134
|
-
box-shadow: none;
|
|
135
|
-
color: var(--theme-color-3);
|
|
136
|
-
}
|
|
137
|
-
.flow-button-text:active {
|
|
138
|
-
background: transparent;
|
|
139
|
-
}
|
|
140
|
-
.flow-button-text:hover,
|
|
141
|
-
.flow-button-text:focus-visible {
|
|
142
|
-
color: var(--theme-color-2);
|
|
143
|
-
background: transparent;
|
|
144
|
-
box-shadow: none;
|
|
145
|
-
}
|
|
146
|
-
.flow-button-text[disabled] {
|
|
147
|
-
background: transparent;
|
|
148
|
-
color: var(--theme-color-ghost);
|
|
149
|
-
cursor: unset;
|
|
150
|
-
box-shadow: none;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/* ----------------------------------------------------- */
|
|
154
|
-
|
|
155
|
-
.flow-button--delete {
|
|
156
|
-
background: var(--theme-error-color);
|
|
157
|
-
color: white;
|
|
158
|
-
}
|
|
159
|
-
.flow-button--delete:active {
|
|
160
|
-
background: var(--theme-error-color);
|
|
161
|
-
}
|
|
162
|
-
.flow-button--delete:hover {
|
|
163
|
-
background: var(--theme-error-color);
|
|
164
|
-
opacity: 0.86;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/* ----------------------------------------------------- */
|
|
168
|
-
|
|
169
|
-
.flow-button-loader {
|
|
170
|
-
position: absolute;
|
|
171
|
-
right: 8px;
|
|
172
|
-
}
|
|
173
|
-
.flow-button-decorator {
|
|
174
|
-
margin-right: 9px;
|
|
175
|
-
color: currentColor;
|
|
176
|
-
display: flex;
|
|
177
|
-
align-items: center;
|
|
178
|
-
height: 14px;
|
|
179
|
-
width: 14px;
|
|
180
|
-
}
|
|
181
|
-
.flow-button-icon-only .flow-button-decorator {
|
|
182
|
-
margin-right: 0;
|
|
183
|
-
}
|
|
184
|
-
</style>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import FlowButton, { type ButtonVariant } from './FlowButton.vue'
|
|
3
|
-
import { FlowIcon } from './Icon'
|
|
4
|
-
import { type Icon } from './Icon/icons'
|
|
5
|
-
|
|
6
|
-
withDefaults(
|
|
7
|
-
defineProps<{
|
|
8
|
-
label: string
|
|
9
|
-
icon: Icon
|
|
10
|
-
variant?: ButtonVariant
|
|
11
|
-
}>(),
|
|
12
|
-
{
|
|
13
|
-
variant: 'clear',
|
|
14
|
-
},
|
|
15
|
-
)
|
|
16
|
-
</script>
|
|
17
|
-
<template>
|
|
18
|
-
<FlowButton
|
|
19
|
-
class="icon-button"
|
|
20
|
-
icon
|
|
21
|
-
:label="label"
|
|
22
|
-
:variant="variant">
|
|
23
|
-
<FlowIcon :icon="icon" />
|
|
24
|
-
</FlowButton>
|
|
25
|
-
</template>
|