Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
feat: introducing a new smart input hoppscotch ui component (#3089)
Joel Jacob Stephen81fbb22c51e0
diff --git a/packages/hoppscotch-common/src/components.d.ts b/packages/hoppscotch-common/src/components.d.tsindex 849ec7515..86af05744 100644--- a/packages/hoppscotch-common/src/components.d.ts+++ b/packages/hoppscotch-common/src/components.d.ts@@ -1,202 +1,203 @@// generated by unplugin-vue-components// We suggest you to commit this file into source control// Read more: https://github.com/vuejs/core/pull/3399-import '@vue/runtime-core'+import "@vue/runtime-core"export {}-declare module '@vue/runtime-core' {+declare module "@vue/runtime-core" {export interface GlobalComponents {- AppActionHandler: typeof import('./components/app/ActionHandler.vue')['default']- AppAnnouncement: typeof import('./components/app/Announcement.vue')['default']- AppContextMenu: typeof import('./components/app/ContextMenu.vue')['default']- AppDeveloperOptions: typeof import('./components/app/DeveloperOptions.vue')['default']- AppFooter: typeof import('./components/app/Footer.vue')['default']- AppGitHubStarButton: typeof import('./components/app/GitHubStarButton.vue')['default']- AppHeader: typeof import('./components/app/Header.vue')['default']- AppInterceptor: typeof import('./components/app/Interceptor.vue')['default']- AppLogo: typeof import('./components/app/Logo.vue')['default']- AppOptions: typeof import('./components/app/Options.vue')['default']- AppPaneLayout: typeof import('./components/app/PaneLayout.vue')['default']- AppShare: typeof import('./components/app/Share.vue')['default']- AppShortcuts: typeof import('./components/app/Shortcuts.vue')['default']- AppShortcutsEntry: typeof import('./components/app/ShortcutsEntry.vue')['default']- AppShortcutsPrompt: typeof import('./components/app/ShortcutsPrompt.vue')['default']- AppSidenav: typeof import('./components/app/Sidenav.vue')['default']- AppSpotlight: typeof import('./components/app/spotlight/index.vue')['default']- AppSpotlightEntry: typeof import('./components/app/spotlight/Entry.vue')['default']- AppSpotlightEntryGQLHistory: typeof import('./components/app/spotlight/entry/GQLHistory.vue')['default']- AppSpotlightEntryRESTHistory: typeof import('./components/app/spotlight/entry/RESTHistory.vue')['default']- AppSupport: typeof import('./components/app/Support.vue')['default']- ButtonPrimary: typeof import('./../../hoppscotch-ui/src/components/button/Primary.vue')['default']- ButtonSecondary: typeof import('./../../hoppscotch-ui/src/components/button/Secondary.vue')['default']- Collections: typeof import('./components/collections/index.vue')['default']- CollectionsAdd: typeof import('./components/collections/Add.vue')['default']- CollectionsAddFolder: typeof import('./components/collections/AddFolder.vue')['default']- CollectionsAddRequest: typeof import('./components/collections/AddRequest.vue')['default']- CollectionsCollection: typeof import('./components/collections/Collection.vue')['default']- CollectionsEdit: typeof import('./components/collections/Edit.vue')['default']- CollectionsEditFolder: typeof import('./components/collections/EditFolder.vue')['default']- CollectionsEditRequest: typeof import('./components/collections/EditRequest.vue')['default']- CollectionsGraphql: typeof import('./components/collections/graphql/index.vue')['default']- CollectionsGraphqlAdd: typeof import('./components/collections/graphql/Add.vue')['default']- CollectionsGraphqlAddFolder: typeof import('./components/collections/graphql/AddFolder.vue')['default']- CollectionsGraphqlAddRequest: typeof import('./components/collections/graphql/AddRequest.vue')['default']- CollectionsGraphqlCollection: typeof import('./components/collections/graphql/Collection.vue')['default']- CollectionsGraphqlEdit: typeof import('./components/collections/graphql/Edit.vue')['default']- CollectionsGraphqlEditFolder: typeof import('./components/collections/graphql/EditFolder.vue')['default']- CollectionsGraphqlEditRequest: typeof import('./components/collections/graphql/EditRequest.vue')['default']- CollectionsGraphqlFolder: typeof import('./components/collections/graphql/Folder.vue')['default']- CollectionsGraphqlImportExport: typeof import('./components/collections/graphql/ImportExport.vue')['default']- CollectionsGraphqlRequest: typeof import('./components/collections/graphql/Request.vue')['default']- CollectionsImportExport: typeof import('./components/collections/ImportExport.vue')['default']- CollectionsMyCollections: typeof import('./components/collections/MyCollections.vue')['default']- CollectionsRequest: typeof import('./components/collections/Request.vue')['default']- CollectionsSaveRequest: typeof import('./components/collections/SaveRequest.vue')['default']- CollectionsTeamCollections: typeof import('./components/collections/TeamCollections.vue')['default']- Environments: typeof import('./components/environments/index.vue')['default']- EnvironmentsAdd: typeof import('./components/environments/Add.vue')['default']- EnvironmentsImportExport: typeof import('./components/environments/ImportExport.vue')['default']- EnvironmentsMy: typeof import('./components/environments/my/index.vue')['default']- EnvironmentsMyDetails: typeof import('./components/environments/my/Details.vue')['default']- EnvironmentsMyEnvironment: typeof import('./components/environments/my/Environment.vue')['default']- EnvironmentsSelector: typeof import('./components/environments/Selector.vue')['default']- EnvironmentsTeams: typeof import('./components/environments/teams/index.vue')['default']- EnvironmentsTeamsDetails: typeof import('./components/environments/teams/Details.vue')['default']- EnvironmentsTeamsEnvironment: typeof import('./components/environments/teams/Environment.vue')['default']- FirebaseLogin: typeof import('./components/firebase/Login.vue')['default']- FirebaseLogout: typeof import('./components/firebase/Logout.vue')['default']- GraphqlAuthorization: typeof import('./components/graphql/Authorization.vue')['default']- GraphqlField: typeof import('./components/graphql/Field.vue')['default']- GraphqlRequest: typeof import('./components/graphql/Request.vue')['default']- GraphqlRequestOptions: typeof import('./components/graphql/RequestOptions.vue')['default']- GraphqlResponse: typeof import('./components/graphql/Response.vue')['default']- GraphqlSidebar: typeof import('./components/graphql/Sidebar.vue')['default']- GraphqlType: typeof import('./components/graphql/Type.vue')['default']- GraphqlTypeLink: typeof import('./components/graphql/TypeLink.vue')['default']- History: typeof import('./components/history/index.vue')['default']- HistoryGraphqlCard: typeof import('./components/history/graphql/Card.vue')['default']- HistoryRestCard: typeof import('./components/history/rest/Card.vue')['default']- HoppButtonPrimary: typeof import('@hoppscotch/ui')['HoppButtonPrimary']- HoppButtonSecondary: typeof import('@hoppscotch/ui')['HoppButtonSecondary']- HoppSmartAnchor: typeof import('@hoppscotch/ui')['HoppSmartAnchor']- HoppSmartAutoComplete: typeof import('@hoppscotch/ui')['HoppSmartAutoComplete']- HoppSmartCheckbox: typeof import('@hoppscotch/ui')['HoppSmartCheckbox']- HoppSmartConfirmModal: typeof import('@hoppscotch/ui')['HoppSmartConfirmModal']- HoppSmartExpand: typeof import('@hoppscotch/ui')['HoppSmartExpand']- HoppSmartFileChip: typeof import('@hoppscotch/ui')['HoppSmartFileChip']- HoppSmartItem: typeof import('@hoppscotch/ui')['HoppSmartItem']- HoppSmartLink: typeof import('@hoppscotch/ui')['HoppSmartLink']- HoppSmartModal: typeof import('@hoppscotch/ui')['HoppSmartModal']- HoppSmartPicture: typeof import('@hoppscotch/ui')['HoppSmartPicture']- HoppSmartPlaceholder: typeof import('@hoppscotch/ui')['HoppSmartPlaceholder']- HoppSmartProgressRing: typeof import('@hoppscotch/ui')['HoppSmartProgressRing']- HoppSmartRadioGroup: typeof import('@hoppscotch/ui')['HoppSmartRadioGroup']- HoppSmartSlideOver: typeof import('@hoppscotch/ui')['HoppSmartSlideOver']- HoppSmartSpinner: typeof import('@hoppscotch/ui')['HoppSmartSpinner']- HoppSmartTab: typeof import('@hoppscotch/ui')['HoppSmartTab']- HoppSmartTabs: typeof import('@hoppscotch/ui')['HoppSmartTabs']- HoppSmartWindow: typeof import('@hoppscotch/ui')['HoppSmartWindow']- HoppSmartWindows: typeof import('@hoppscotch/ui')['HoppSmartWindows']- HttpAuthorization: typeof import('./components/http/Authorization.vue')['default']- HttpAuthorizationApiKey: typeof import('./components/http/authorization/ApiKey.vue')['default']- HttpAuthorizationBasic: typeof import('./components/http/authorization/Basic.vue')['default']- HttpBody: typeof import('./components/http/Body.vue')['default']- HttpBodyParameters: typeof import('./components/http/BodyParameters.vue')['default']- HttpCodegenModal: typeof import('./components/http/CodegenModal.vue')['default']- HttpHeaders: typeof import('./components/http/Headers.vue')['default']- HttpImportCurl: typeof import('./components/http/ImportCurl.vue')['default']- HttpOAuth2Authorization: typeof import('./components/http/OAuth2Authorization.vue')['default']- HttpParameters: typeof import('./components/http/Parameters.vue')['default']- HttpPreRequestScript: typeof import('./components/http/PreRequestScript.vue')['default']- HttpRawBody: typeof import('./components/http/RawBody.vue')['default']- HttpReqChangeConfirmModal: typeof import('./components/http/ReqChangeConfirmModal.vue')['default']- HttpRequest: typeof import('./components/http/Request.vue')['default']- HttpRequestOptions: typeof import('./components/http/RequestOptions.vue')['default']- HttpRequestTab: typeof import('./components/http/RequestTab.vue')['default']- HttpResponse: typeof import('./components/http/Response.vue')['default']- HttpResponseMeta: typeof import('./components/http/ResponseMeta.vue')['default']- HttpSidebar: typeof import('./components/http/Sidebar.vue')['default']- HttpTestResult: typeof import('./components/http/TestResult.vue')['default']- HttpTestResultEntry: typeof import('./components/http/TestResultEntry.vue')['default']- HttpTestResultEnv: typeof import('./components/http/TestResultEnv.vue')['default']- HttpTestResultReport: typeof import('./components/http/TestResultReport.vue')['default']- HttpTests: typeof import('./components/http/Tests.vue')['default']- HttpURLEncodedParams: typeof import('./components/http/URLEncodedParams.vue')['default']- IconLucideAlertTriangle: typeof import('~icons/lucide/alert-triangle')['default']- IconLucideArrowLeft: typeof import('~icons/lucide/arrow-left')['default']- IconLucideCheckCircle: typeof import('~icons/lucide/check-circle')['default']- IconLucideChevronRight: typeof import('~icons/lucide/chevron-right')['default']- IconLucideGlobe: typeof import('~icons/lucide/globe')['default']- IconLucideHelpCircle: typeof import('~icons/lucide/help-circle')['default']- IconLucideInbox: typeof import('~icons/lucide/inbox')['default']- IconLucideInfo: typeof import('~icons/lucide/info')['default']- IconLucideLayers: typeof import('~icons/lucide/layers')['default']- IconLucideListEnd: typeof import('~icons/lucide/list-end')['default']- IconLucideMinus: typeof import('~icons/lucide/minus')['default']- IconLucideRss: typeof import('~icons/lucide/rss')['default']- IconLucideSearch: typeof import('~icons/lucide/search')['default']- IconLucideUsers: typeof import('~icons/lucide/users')['default']- LensesHeadersRenderer: typeof import('./components/lenses/HeadersRenderer.vue')['default']- LensesHeadersRendererEntry: typeof import('./components/lenses/HeadersRendererEntry.vue')['default']- LensesRenderersAudioLensRenderer: typeof import('./components/lenses/renderers/AudioLensRenderer.vue')['default']- LensesRenderersHTMLLensRenderer: typeof import('./components/lenses/renderers/HTMLLensRenderer.vue')['default']- LensesRenderersImageLensRenderer: typeof import('./components/lenses/renderers/ImageLensRenderer.vue')['default']- LensesRenderersJSONLensRenderer: typeof import('./components/lenses/renderers/JSONLensRenderer.vue')['default']- LensesRenderersPDFLensRenderer: typeof import('./components/lenses/renderers/PDFLensRenderer.vue')['default']- LensesRenderersRawLensRenderer: typeof import('./components/lenses/renderers/RawLensRenderer.vue')['default']- LensesRenderersVideoLensRenderer: typeof import('./components/lenses/renderers/VideoLensRenderer.vue')['default']- LensesRenderersXMLLensRenderer: typeof import('./components/lenses/renderers/XMLLensRenderer.vue')['default']- LensesResponseBodyRenderer: typeof import('./components/lenses/ResponseBodyRenderer.vue')['default']- ProfileShortcode: typeof import('./components/profile/Shortcode.vue')['default']- ProfileShortcodes: typeof import('./components/profile/Shortcodes.vue')['default']- ProfileUserDelete: typeof import('./components/profile/UserDelete.vue')['default']- RealtimeCommunication: typeof import('./components/realtime/Communication.vue')['default']- RealtimeConnectionConfig: typeof import('./components/realtime/ConnectionConfig.vue')['default']- RealtimeLog: typeof import('./components/realtime/Log.vue')['default']- RealtimeLogEntry: typeof import('./components/realtime/LogEntry.vue')['default']- RealtimeSubscription: typeof import('./components/realtime/Subscription.vue')['default']- SmartAccentModePicker: typeof import('./components/smart/AccentModePicker.vue')['default']- SmartAnchor: typeof import('./../../hoppscotch-ui/src/components/smart/Anchor.vue')['default']- SmartAutoComplete: typeof import('./../../hoppscotch-ui/src/components/smart/AutoComplete.vue')['default']- SmartChangeLanguage: typeof import('./components/smart/ChangeLanguage.vue')['default']- SmartCheckbox: typeof import('./../../hoppscotch-ui/src/components/smart/Checkbox.vue')['default']- SmartColorModePicker: typeof import('./components/smart/ColorModePicker.vue')['default']- SmartConfirmModal: typeof import('./../../hoppscotch-ui/src/components/smart/ConfirmModal.vue')['default']- SmartEnvInput: typeof import('./components/smart/EnvInput.vue')['default']- SmartExpand: typeof import('./../../hoppscotch-ui/src/components/smart/Expand.vue')['default']- SmartFileChip: typeof import('./../../hoppscotch-ui/src/components/smart/FileChip.vue')['default']- SmartFontSizePicker: typeof import('./components/smart/FontSizePicker.vue')['default']- SmartIntersection: typeof import('./../../hoppscotch-ui/src/components/smart/Intersection.vue')['default']- SmartItem: typeof import('./../../hoppscotch-ui/src/components/smart/Item.vue')['default']- SmartLink: typeof import('./../../hoppscotch-ui/src/components/smart/Link.vue')['default']- SmartModal: typeof import('./../../hoppscotch-ui/src/components/smart/Modal.vue')['default']- SmartPicture: typeof import('./../../hoppscotch-ui/src/components/smart/Picture.vue')['default']- SmartPlaceholder: typeof import('./../../hoppscotch-ui/src/components/smart/Placeholder.vue')['default']- SmartProgressRing: typeof import('./../../hoppscotch-ui/src/components/smart/ProgressRing.vue')['default']- SmartRadio: typeof import('./../../hoppscotch-ui/src/components/smart/Radio.vue')['default']- SmartRadioGroup: typeof import('./../../hoppscotch-ui/src/components/smart/RadioGroup.vue')['default']- SmartSlideOver: typeof import('./../../hoppscotch-ui/src/components/smart/SlideOver.vue')['default']- SmartSpinner: typeof import('./../../hoppscotch-ui/src/components/smart/Spinner.vue')['default']- SmartTab: typeof import('./../../hoppscotch-ui/src/components/smart/Tab.vue')['default']- SmartTabs: typeof import('./../../hoppscotch-ui/src/components/smart/Tabs.vue')['default']- SmartToggle: typeof import('./../../hoppscotch-ui/src/components/smart/Toggle.vue')['default']- SmartTree: typeof import('./components/smart/Tree.vue')['default']- SmartTreeBranch: typeof import('./components/smart/TreeBranch.vue')['default']- SmartWindow: typeof import('./../../hoppscotch-ui/src/components/smart/Window.vue')['default']- SmartWindows: typeof import('./../../hoppscotch-ui/src/components/smart/Windows.vue')['default']- TabPrimary: typeof import('./components/tab/Primary.vue')['default']- TabSecondary: typeof import('./components/tab/Secondary.vue')['default']- Teams: typeof import('./components/teams/index.vue')['default']- TeamsAdd: typeof import('./components/teams/Add.vue')['default']- TeamsEdit: typeof import('./components/teams/Edit.vue')['default']- TeamsInvite: typeof import('./components/teams/Invite.vue')['default']- TeamsMemberStack: typeof import('./components/teams/MemberStack.vue')['default']- TeamsModal: typeof import('./components/teams/Modal.vue')['default']- TeamsTeam: typeof import('./components/teams/Team.vue')['default']- Tippy: typeof import('vue-tippy')['Tippy']- WorkspaceCurrent: typeof import('./components/workspace/Current.vue')['default']- WorkspaceSelector: typeof import('./components/workspace/Selector.vue')['default']+ AppActionHandler: typeof import("./components/app/ActionHandler.vue")["default"]+ AppAnnouncement: typeof import("./components/app/Announcement.vue")["default"]+ AppDeveloperOptions: typeof import("./components/app/DeveloperOptions.vue")["default"]+ AppFooter: typeof import("./components/app/Footer.vue")["default"]+ AppGitHubStarButton: typeof import("./components/app/GitHubStarButton.vue")["default"]+ AppHeader: typeof import("./components/app/Header.vue")["default"]+ AppInterceptor: typeof import("./components/app/Interceptor.vue")["default"]+ AppLogo: typeof import("./components/app/Logo.vue")["default"]+ AppOptions: typeof import("./components/app/Options.vue")["default"]+ AppPaneLayout: typeof import("./components/app/PaneLayout.vue")["default"]+ AppShare: typeof import("./components/app/Share.vue")["default"]+ AppShortcuts: typeof import("./components/app/Shortcuts.vue")["default"]+ AppShortcutsEntry: typeof import("./components/app/ShortcutsEntry.vue")["default"]+ AppShortcutsPrompt: typeof import("./components/app/ShortcutsPrompt.vue")["default"]+ AppSidenav: typeof import("./components/app/Sidenav.vue")["default"]+ AppSpotlight: typeof import("./components/app/spotlight/index.vue")["default"]+ AppSpotlightEntry: typeof import("./components/app/spotlight/Entry.vue")["default"]+ AppSpotlightEntryGQLHistory: typeof import("./components/app/spotlight/entry/GQLHistory.vue")["default"]+ AppSpotlightEntryRESTHistory: typeof import("./components/app/spotlight/entry/RESTHistory.vue")["default"]+ AppSupport: typeof import("./components/app/Support.vue")["default"]+ ButtonPrimary: typeof import("./../../hoppscotch-ui/src/components/button/Primary.vue")["default"]+ ButtonSecondary: typeof import("./../../hoppscotch-ui/src/components/button/Secondary.vue")["default"]+ Collections: typeof import("./components/collections/index.vue")["default"]+ CollectionsAdd: typeof import("./components/collections/Add.vue")["default"]+ CollectionsAddFolder: typeof import("./components/collections/AddFolder.vue")["default"]+ CollectionsAddRequest: typeof import("./components/collections/AddRequest.vue")["default"]+ CollectionsCollection: typeof import("./components/collections/Collection.vue")["default"]+ CollectionsEdit: typeof import("./components/collections/Edit.vue")["default"]+ CollectionsEditFolder: typeof import("./components/collections/EditFolder.vue")["default"]+ CollectionsEditRequest: typeof import("./components/collections/EditRequest.vue")["default"]+ CollectionsGraphql: typeof import("./components/collections/graphql/index.vue")["default"]+ CollectionsGraphqlAdd: typeof import("./components/collections/graphql/Add.vue")["default"]+ CollectionsGraphqlAddFolder: typeof import("./components/collections/graphql/AddFolder.vue")["default"]+ CollectionsGraphqlAddRequest: typeof import("./components/collections/graphql/AddRequest.vue")["default"]+ CollectionsGraphqlCollection: typeof import("./components/collections/graphql/Collection.vue")["default"]+ CollectionsGraphqlEdit: typeof import("./components/collections/graphql/Edit.vue")["default"]+ CollectionsGraphqlEditFolder: typeof import("./components/collections/graphql/EditFolder.vue")["default"]+ CollectionsGraphqlEditRequest: typeof import("./components/collections/graphql/EditRequest.vue")["default"]+ CollectionsGraphqlFolder: typeof import("./components/collections/graphql/Folder.vue")["default"]+ CollectionsGraphqlImportExport: typeof import("./components/collections/graphql/ImportExport.vue")["default"]+ CollectionsGraphqlRequest: typeof import("./components/collections/graphql/Request.vue")["default"]+ CollectionsImportExport: typeof import("./components/collections/ImportExport.vue")["default"]+ CollectionsMyCollections: typeof import("./components/collections/MyCollections.vue")["default"]+ CollectionsRequest: typeof import("./components/collections/Request.vue")["default"]+ CollectionsSaveRequest: typeof import("./components/collections/SaveRequest.vue")["default"]+ CollectionsTeamCollections: typeof import("./components/collections/TeamCollections.vue")["default"]+ Environments: typeof import("./components/environments/index.vue")["default"]+ EnvironmentsImportExport: typeof import("./components/environments/ImportExport.vue")["default"]+ EnvironmentsMy: typeof import("./components/environments/my/index.vue")["default"]+ EnvironmentsMyDetails: typeof import("./components/environments/my/Details.vue")["default"]+ EnvironmentsMyEnvironment: typeof import("./components/environments/my/Environment.vue")["default"]+ EnvironmentsSelector: typeof import("./components/environments/Selector.vue")["default"]+ EnvironmentsTeams: typeof import("./components/environments/teams/index.vue")["default"]+ EnvironmentsTeamsDetails: typeof import("./components/environments/teams/Details.vue")["default"]+ EnvironmentsTeamsEnvironment: typeof import("./components/environments/teams/Environment.vue")["default"]+ FirebaseLogin: typeof import("./components/firebase/Login.vue")["default"]+ FirebaseLogout: typeof import("./components/firebase/Logout.vue")["default"]+ GraphqlAuthorization: typeof import("./components/graphql/Authorization.vue")["default"]+ GraphqlField: typeof import("./components/graphql/Field.vue")["default"]+ GraphqlRequest: typeof import("./components/graphql/Request.vue")["default"]+ GraphqlRequestOptions: typeof import("./components/graphql/RequestOptions.vue")["default"]+ GraphqlResponse: typeof import("./components/graphql/Response.vue")["default"]+ GraphqlSidebar: typeof import("./components/graphql/Sidebar.vue")["default"]+ GraphqlType: typeof import("./components/graphql/Type.vue")["default"]+ GraphqlTypeLink: typeof import("./components/graphql/TypeLink.vue")["default"]+ History: typeof import("./components/history/index.vue")["default"]+ HistoryGraphqlCard: typeof import("./components/history/graphql/Card.vue")["default"]+ HistoryRestCard: typeof import("./components/history/rest/Card.vue")["default"]+ HoppButtonPrimary: typeof import("@hoppscotch/ui")["HoppButtonPrimary"]+ HoppButtonSecondary: typeof import("@hoppscotch/ui")["HoppButtonSecondary"]+ HoppSmartAnchor: typeof import("@hoppscotch/ui")["HoppSmartAnchor"]+ HoppSmartAutoComplete: typeof import("@hoppscotch/ui")["HoppSmartAutoComplete"]+ HoppSmartCheckbox: typeof import("@hoppscotch/ui")["HoppSmartCheckbox"]+ HoppSmartConfirmModal: typeof import("@hoppscotch/ui")["HoppSmartConfirmModal"]+ HoppSmartExpand: typeof import("@hoppscotch/ui")["HoppSmartExpand"]+ HoppSmartFileChip: typeof import("@hoppscotch/ui")["HoppSmartFileChip"]+ HoppSmartInput: typeof import("@hoppscotch/ui")["HoppSmartInput"]+ HoppSmartIntersection: typeof import("@hoppscotch/ui")["HoppSmartIntersection"]+ HoppSmartItem: typeof import("@hoppscotch/ui")["HoppSmartItem"]+ HoppSmartLink: typeof import("@hoppscotch/ui")["HoppSmartLink"]+ HoppSmartModal: typeof import("@hoppscotch/ui")["HoppSmartModal"]+ HoppSmartPicture: typeof import("@hoppscotch/ui")["HoppSmartPicture"]+ HoppSmartPlaceholder: typeof import("@hoppscotch/ui")["HoppSmartPlaceholder"]+ HoppSmartProgressRing: typeof import("@hoppscotch/ui")["HoppSmartProgressRing"]+ HoppSmartRadioGroup: typeof import("@hoppscotch/ui")["HoppSmartRadioGroup"]+ HoppSmartSlideOver: typeof import("@hoppscotch/ui")["HoppSmartSlideOver"]+ HoppSmartSpinner: typeof import("@hoppscotch/ui")["HoppSmartSpinner"]+ HoppSmartTab: typeof import("@hoppscotch/ui")["HoppSmartTab"]+ HoppSmartTabs: typeof import("@hoppscotch/ui")["HoppSmartTabs"]+ HoppSmartToggle: typeof import("@hoppscotch/ui")["HoppSmartToggle"]+ HoppSmartWindow: typeof import("@hoppscotch/ui")["HoppSmartWindow"]+ HoppSmartWindows: typeof import("@hoppscotch/ui")["HoppSmartWindows"]+ HttpAuthorization: typeof import("./components/http/Authorization.vue")["default"]+ HttpAuthorizationApiKey: typeof import("./components/http/authorization/ApiKey.vue")["default"]+ HttpAuthorizationBasic: typeof import("./components/http/authorization/Basic.vue")["default"]+ HttpBody: typeof import("./components/http/Body.vue")["default"]+ HttpBodyParameters: typeof import("./components/http/BodyParameters.vue")["default"]+ HttpCodegenModal: typeof import("./components/http/CodegenModal.vue")["default"]+ HttpHeaders: typeof import("./components/http/Headers.vue")["default"]+ HttpImportCurl: typeof import("./components/http/ImportCurl.vue")["default"]+ HttpOAuth2Authorization: typeof import("./components/http/OAuth2Authorization.vue")["default"]+ HttpParameters: typeof import("./components/http/Parameters.vue")["default"]+ HttpPreRequestScript: typeof import("./components/http/PreRequestScript.vue")["default"]+ HttpRawBody: typeof import("./components/http/RawBody.vue")["default"]+ HttpReqChangeConfirmModal: typeof import("./components/http/ReqChangeConfirmModal.vue")["default"]+ HttpRequest: typeof import("./components/http/Request.vue")["default"]+ HttpRequestOptions: typeof import("./components/http/RequestOptions.vue")["default"]+ HttpRequestTab: typeof import("./components/http/RequestTab.vue")["default"]+ HttpResponse: typeof import("./components/http/Response.vue")["default"]+ HttpResponseMeta: typeof import("./components/http/ResponseMeta.vue")["default"]+ HttpSidebar: typeof import("./components/http/Sidebar.vue")["default"]+ HttpTestResult: typeof import("./components/http/TestResult.vue")["default"]+ HttpTestResultEntry: typeof import("./components/http/TestResultEntry.vue")["default"]+ HttpTestResultEnv: typeof import("./components/http/TestResultEnv.vue")["default"]+ HttpTestResultReport: typeof import("./components/http/TestResultReport.vue")["default"]+ HttpTests: typeof import("./components/http/Tests.vue")["default"]+ HttpURLEncodedParams: typeof import("./components/http/URLEncodedParams.vue")["default"]+ IconLucideAlertTriangle: typeof import("~icons/lucide/alert-triangle")["default"]+ IconLucideArrowLeft: typeof import("~icons/lucide/arrow-left")["default"]+ IconLucideCheckCircle: typeof import("~icons/lucide/check-circle")["default"]+ IconLucideChevronRight: typeof import("~icons/lucide/chevron-right")["default"]+ IconLucideGlobe: typeof import("~icons/lucide/globe")["default"]+ IconLucideHelpCircle: typeof import("~icons/lucide/help-circle")["default"]+ IconLucideInbox: typeof import("~icons/lucide/inbox")["default"]+ IconLucideInfo: typeof import("~icons/lucide/info")["default"]+ IconLucideLayers: typeof import("~icons/lucide/layers")["default"]+ IconLucideListEnd: typeof import("~icons/lucide/list-end")["default"]+ IconLucideMinus: typeof import("~icons/lucide/minus")["default"]+ IconLucideSearch: typeof import("~icons/lucide/search")["default"]+ IconLucideUsers: typeof import("~icons/lucide/users")["default"]+ IconLucideVerified: typeof import("~icons/lucide/verified")["default"]+ LensesHeadersRenderer: typeof import("./components/lenses/HeadersRenderer.vue")["default"]+ LensesHeadersRendererEntry: typeof import("./components/lenses/HeadersRendererEntry.vue")["default"]+ LensesRenderersAudioLensRenderer: typeof import("./components/lenses/renderers/AudioLensRenderer.vue")["default"]+ LensesRenderersHTMLLensRenderer: typeof import("./components/lenses/renderers/HTMLLensRenderer.vue")["default"]+ LensesRenderersImageLensRenderer: typeof import("./components/lenses/renderers/ImageLensRenderer.vue")["default"]+ LensesRenderersJSONLensRenderer: typeof import("./components/lenses/renderers/JSONLensRenderer.vue")["default"]+ LensesRenderersPDFLensRenderer: typeof import("./components/lenses/renderers/PDFLensRenderer.vue")["default"]+ LensesRenderersRawLensRenderer: typeof import("./components/lenses/renderers/RawLensRenderer.vue")["default"]+ LensesRenderersVideoLensRenderer: typeof import("./components/lenses/renderers/VideoLensRenderer.vue")["default"]+ LensesRenderersXMLLensRenderer: typeof import("./components/lenses/renderers/XMLLensRenderer.vue")["default"]+ LensesResponseBodyRenderer: typeof import("./components/lenses/ResponseBodyRenderer.vue")["default"]+ ProfileShortcode: typeof import("./components/profile/Shortcode.vue")["default"]+ ProfileShortcodes: typeof import("./components/profile/Shortcodes.vue")["default"]+ ProfileUserDelete: typeof import("./components/profile/UserDelete.vue")["default"]+ RealtimeCommunication: typeof import("./components/realtime/Communication.vue")["default"]+ RealtimeConnectionConfig: typeof import("./components/realtime/ConnectionConfig.vue")["default"]+ RealtimeLog: typeof import("./components/realtime/Log.vue")["default"]+ RealtimeLogEntry: typeof import("./components/realtime/LogEntry.vue")["default"]+ RealtimeSubscription: typeof import("./components/realtime/Subscription.vue")["default"]+ SmartAccentModePicker: typeof import("./components/smart/AccentModePicker.vue")["default"]+ SmartAnchor: typeof import("./../../hoppscotch-ui/src/components/smart/Anchor.vue")["default"]+ SmartAutoComplete: typeof import("./../../hoppscotch-ui/src/components/smart/AutoComplete.vue")["default"]+ SmartChangeLanguage: typeof import("./components/smart/ChangeLanguage.vue")["default"]+ SmartCheckbox: typeof import("./../../hoppscotch-ui/src/components/smart/Checkbox.vue")["default"]+ SmartColorModePicker: typeof import("./components/smart/ColorModePicker.vue")["default"]+ SmartConfirmModal: typeof import("./../../hoppscotch-ui/src/components/smart/ConfirmModal.vue")["default"]+ SmartEnvInput: typeof import("./components/smart/EnvInput.vue")["default"]+ SmartExpand: typeof import("./../../hoppscotch-ui/src/components/smart/Expand.vue")["default"]+ SmartFileChip: typeof import("./../../hoppscotch-ui/src/components/smart/FileChip.vue")["default"]+ SmartFontSizePicker: typeof import("./components/smart/FontSizePicker.vue")["default"]+ SmartInput: typeof import("./../../hoppscotch-ui/src/components/smart/Input.vue")["default"]+ SmartIntersection: typeof import("./../../hoppscotch-ui/src/components/smart/Intersection.vue")["default"]+ SmartItem: typeof import("./../../hoppscotch-ui/src/components/smart/Item.vue")["default"]+ SmartLink: typeof import("./../../hoppscotch-ui/src/components/smart/Link.vue")["default"]+ SmartModal: typeof import("./../../hoppscotch-ui/src/components/smart/Modal.vue")["default"]+ SmartPicture: typeof import("./../../hoppscotch-ui/src/components/smart/Picture.vue")["default"]+ SmartPlaceholder: typeof import("./../../hoppscotch-ui/src/components/smart/Placeholder.vue")["default"]+ SmartProgressRing: typeof import("./../../hoppscotch-ui/src/components/smart/ProgressRing.vue")["default"]+ SmartRadio: typeof import("./../../hoppscotch-ui/src/components/smart/Radio.vue")["default"]+ SmartRadioGroup: typeof import("./../../hoppscotch-ui/src/components/smart/RadioGroup.vue")["default"]+ SmartSlideOver: typeof import("./../../hoppscotch-ui/src/components/smart/SlideOver.vue")["default"]+ SmartSpinner: typeof import("./../../hoppscotch-ui/src/components/smart/Spinner.vue")["default"]+ SmartTab: typeof import("./../../hoppscotch-ui/src/components/smart/Tab.vue")["default"]+ SmartTabs: typeof import("./../../hoppscotch-ui/src/components/smart/Tabs.vue")["default"]+ SmartToggle: typeof import("./../../hoppscotch-ui/src/components/smart/Toggle.vue")["default"]+ SmartTree: typeof import("./components/smart/Tree.vue")["default"]+ SmartTreeBranch: typeof import("./components/smart/TreeBranch.vue")["default"]+ SmartWindow: typeof import("./../../hoppscotch-ui/src/components/smart/Window.vue")["default"]+ SmartWindows: typeof import("./../../hoppscotch-ui/src/components/smart/Windows.vue")["default"]+ TabPrimary: typeof import("./components/tab/Primary.vue")["default"]+ TabSecondary: typeof import("./components/tab/Secondary.vue")["default"]+ Teams: typeof import("./components/teams/index.vue")["default"]+ TeamsAdd: typeof import("./components/teams/Add.vue")["default"]+ TeamsEdit: typeof import("./components/teams/Edit.vue")["default"]+ TeamsInvite: typeof import("./components/teams/Invite.vue")["default"]+ TeamsMemberStack: typeof import("./components/teams/MemberStack.vue")["default"]+ TeamsModal: typeof import("./components/teams/Modal.vue")["default"]+ TeamsTeam: typeof import("./components/teams/Team.vue")["default"]+ Tippy: typeof import("vue-tippy")["Tippy"]+ WorkspaceCurrent: typeof import("./components/workspace/Current.vue")["default"]+ WorkspaceSelector: typeof import("./components/workspace/Selector.vue")["default"]}-}diff --git a/packages/hoppscotch-common/src/components/app/Shortcuts.vue b/packages/hoppscotch-common/src/components/app/Shortcuts.vueindex ec73ed19c..154463986 100644--- a/packages/hoppscotch-common/src/components/app/Shortcuts.vue+++ b/packages/hoppscotch-common/src/components/app/Shortcuts.vue@@ -4,15 +4,13 @@<divclass="sticky top-0 z-10 flex flex-col flex-shrink-0 overflow-x-auto bg-primary">- <div class="flex flex-col px-6 py-4 border-b border-dividerLight">- <input- v-model="filterText"- type="search"- autocomplete="off"- class="flex px-4 py-2 border rounded bg-primaryContrast border-divider hover:border-dividerDark focus-visible:border-dividerDark"- :placeholder="`${t('action.search')}`"- />- </div>+ <HoppSmartInput+ v-model="filterText"+ type="search"+ styles="px-6 py-4 border-b border-dividerLight"+ :placeholder="`${t('action.search')}`"+ input-styles="flex px-4 py-2 border rounded bg-primaryContrast border-divider hover:border-dividerDark focus-visible:border-dividerDark"+ /></div><div class="flex flex-col divide-y divide-dividerLight"><HoppSmartPlaceholder@@ -21,6 +19,7 @@><icon-lucide-search class="pb-2 opacity-75 svg-icons" /></HoppSmartPlaceholder>+<detailsv-for="(sectionResults, sectionTitle) in shortcutsResults"v-elsediff --git a/packages/hoppscotch-common/src/components/collections/Add.vue b/packages/hoppscotch-common/src/components/collections/Add.vueindex 1377f5621..e0f020fe3 100644--- a/packages/hoppscotch-common/src/components/collections/Add.vue+++ b/packages/hoppscotch-common/src/components/collections/Add.vue@@ -6,21 +6,13 @@@close="hideModal"><template #body>- <div class="flex flex-col">- <input- id="selectLabelAdd"- v-model="name"- v-focus- class="input floating-input"- placeholder=" "- type="text"- autocomplete="off"- @keyup.enter="addNewCollection"- />- <label for="selectLabelAdd">- {{ t("action.label") }}- </label>- </div>+ <HoppSmartInput+ v-model="name"+ placeholder=" "+ :label="t('action.label')"+ input-styles="floating-input"+ @submit="addNewCollection"+ /></template><template #footer><span class="flex space-x-2">diff --git a/packages/hoppscotch-common/src/components/collections/AddFolder.vue b/packages/hoppscotch-common/src/components/collections/AddFolder.vueindex 11126d8da..ce0210ca0 100644--- a/packages/hoppscotch-common/src/components/collections/AddFolder.vue+++ b/packages/hoppscotch-common/src/components/collections/AddFolder.vue@@ -6,21 +6,13 @@@close="emit('hide-modal')"><template #body>- <div class="flex flex-col">- <input- id="selectLabelAddFolder"- v-model="name"- v-focus- class="input floating-input"- placeholder=" "- type="text"- autocomplete="off"- @keyup.enter="addFolder"- />- <label for="selectLabelAddFolder">- {{ t("action.label") }}- </label>- </div>+ <HoppSmartInput+ v-model="name"+ placeholder=" "+ input-styles="floating-input"+ :label="t('action.label')"+ @submit="addFolder"+ /></template><template #footer><span class="flex space-x-2">diff --git a/packages/hoppscotch-common/src/components/collections/AddRequest.vue b/packages/hoppscotch-common/src/components/collections/AddRequest.vueindex 5f186a09e..e057923bc 100644--- a/packages/hoppscotch-common/src/components/collections/AddRequest.vue+++ b/packages/hoppscotch-common/src/components/collections/AddRequest.vue@@ -6,19 +6,13 @@@close="$emit('hide-modal')"><template #body>- <div class="flex flex-col">- <input- id="selectLabelAddRequest"- v-model="name"- v-focus- class="input floating-input"- placeholder=" "- type="text"- autocomplete="off"- @keyup.enter="addRequest"- />- <label for="selectLabelAddRequest">{{ t("action.label") }}</label>- </div>+ <HoppSmartInput+ v-model="name"+ placeholder=" "+ :label="t('action.label')"+ input-styles="floating-input"+ @submit="addRequest"+ /></template><template #footer><span class="flex space-x-2">diff --git a/packages/hoppscotch-common/src/components/collections/Edit.vue b/packages/hoppscotch-common/src/components/collections/Edit.vueindex f1e61d9ab..9cebe4c6d 100644--- a/packages/hoppscotch-common/src/components/collections/Edit.vue+++ b/packages/hoppscotch-common/src/components/collections/Edit.vue@@ -6,21 +6,13 @@@close="hideModal"><template #body>- <div class="flex flex-col">- <input- id="selectLabelEdit"- v-model="name"- v-focus- class="input floating-input"- placeholder=" "- type="text"- autocomplete="off"- @keyup.enter="saveCollection"- />- <label for="selectLabelEdit">- {{ t("action.label") }}- </label>- </div>+ <HoppSmartInput+ v-model="name"+ placeholder=" "+ input-styles="floating-input"+ :label="t('action.label')"+ @submit="saveCollection"+ /></template><template #footer><span class="flex space-x-2">diff --git a/packages/hoppscotch-common/src/components/collections/EditFolder.vue b/packages/hoppscotch-common/src/components/collections/EditFolder.vueindex eb6423deb..2b00f7c68 100644--- a/packages/hoppscotch-common/src/components/collections/EditFolder.vue+++ b/packages/hoppscotch-common/src/components/collections/EditFolder.vue@@ -6,21 +6,13 @@@close="emit('hide-modal')"><template #body>- <div class="flex flex-col">- <input- id="selectLabelEditFolder"- v-model="name"- v-focus- class="input floating-input"- placeholder=" "- type="text"- autocomplete="off"- @keyup.enter="editFolder"- />- <label for="selectLabelEditFolder">- {{ t("action.label") }}- </label>- </div>+ <HoppSmartInput+ v-model="name"+ placeholder=" "+ :label="t('action.label')"+ input-styles="floating-input"+ @submit="editFolder"+ /></template><template #footer><span class="flex space-x-2">diff --git a/packages/hoppscotch-common/src/components/collections/EditRequest.vue b/packages/hoppscotch-common/src/components/collections/EditRequest.vueindex 6721b08c9..c5eccc85f 100644--- a/packages/hoppscotch-common/src/components/collections/EditRequest.vue+++ b/packages/hoppscotch-common/src/components/collections/EditRequest.vue@@ -6,21 +6,13 @@@close="hideModal"><template #body>- <div class="flex flex-col">- <input- id="selectLabelEditReq"- v-model="name"- v-focus- class="input floating-input"- placeholder=" "- type="text"- autocomplete="off"- @keyup.enter="editRequest"- />- <label for="selectLabelEditReq">- {{ t("action.label") }}- </label>- </div>+ <HoppSmartInput+ v-model="name"+ placeholder=" "+ :label="t('action.label')"+ input-styles="floating-input"+ @submit="editRequest"+ /></template><template #footer><span class="flex space-x-2">diff --git a/packages/hoppscotch-common/src/components/collections/SaveRequest.vue b/packages/hoppscotch-common/src/components/collections/SaveRequest.vueindex 59d452bee..4484c93c6 100644--- a/packages/hoppscotch-common/src/components/collections/SaveRequest.vue+++ b/packages/hoppscotch-common/src/components/collections/SaveRequest.vue@@ -8,21 +8,15 @@><template #body><div class="flex flex-col">- <div class="relative flex">- <input- id="selectLabelSaveReq"- v-model="requestName"- v-focus- class="input floating-input"- placeholder=" "- type="text"- autocomplete="off"- @keyup.enter="saveRequestAs"- />- <label for="selectLabelSaveReq">- {{ t("request.name") }}- </label>- </div>+ <HoppSmartInput+ v-model="requestName"+ styles="relative flex"+ placeholder=" "+ :label="t('request.name')"+ input-styles="floating-input"+ @submit="saveRequestAs"+ />+<label class="p-4">{{ t("collection.select_location") }}</label>diff --git a/packages/hoppscotch-common/src/components/collections/graphql/Add.vue b/packages/hoppscotch-common/src/components/collections/graphql/Add.vueindex 18f70d339..b5d287e22 100644--- a/packages/hoppscotch-common/src/components/collections/graphql/Add.vue+++ b/packages/hoppscotch-common/src/components/collections/graphql/Add.vue@@ -6,21 +6,13 @@@close="hideModal"><template #body>- <div class="flex flex-col">- <input- id="selectLabelGqlAdd"- v-model="name"- v-focus- class="input floating-input"- placeholder=" "- type="text"- autocomplete="off"- @keyup.enter="addNewCollection"- />- <label for="selectLabelGqlAdd">- {{ t("action.label") }}- </label>- </div>+ <HoppSmartInput+ v-model="name"+ placeholder=" "+ input-styles="floating-input"+ :label="t('action.label')"+ @submit="addNewCollection"+ /></template><template #footer><span class="flex space-x-2">diff --git a/packages/hoppscotch-common/src/components/collections/graphql/AddFolder.vue b/packages/hoppscotch-common/src/components/collections/graphql/AddFolder.vueindex 1c4ab322d..968ea8d30 100644--- a/packages/hoppscotch-common/src/components/collections/graphql/AddFolder.vue+++ b/packages/hoppscotch-common/src/components/collections/graphql/AddFolder.vue@@ -6,21 +6,13 @@@close="$emit('hide-modal')"><template #body>- <div class="flex flex-col">- <input- id="selectLabelGqlAddFolder"- v-model="name"- v-focus- class="input floating-input"- placeholder=" "- type="text"- autocomplete="off"- @keyup.enter="addFolder"- />- <label for="selectLabelGqlAddFolder">- {{ t("action.label") }}- </label>- </div>+ <HoppSmartInput+ v-model="name"+ placeholder=" "+ :label="t('action.label')"+ input-styles="floating-input"+ @submit="addFolder"+ /></template><template #footer><span class="flex space-x-2">diff --git a/packages/hoppscotch-common/src/components/collections/graphql/AddRequest.vue b/packages/hoppscotch-common/src/components/collections/graphql/AddRequest.vueindex ec8fb7698..5531da3d5 100644--- a/packages/hoppscotch-common/src/components/collections/graphql/AddRequest.vue+++ b/packages/hoppscotch-common/src/components/collections/graphql/AddRequest.vue@@ -6,21 +6,13 @@@close="emit('hide-modal')"><template #body>- <div class="flex flex-col">- <input- id="selectLabelGqlAddRequest"- v-model="name"- v-focus- class="input floating-input"- placeholder=" "- type="text"- autocomplete="off"- @keyup.enter="addRequest"- />- <label for="selectLabelGqlAddRequest">- {{ t("action.label") }}- </label>- </div>+ <HoppSmartInput+ v-model="name"+ placeholder=" "+ :label="t('action.label')"+ input-styles="floating-input"+ @submit="addRequest"+ /></template><template #footer><span class="flex space-x-2">diff --git a/packages/hoppscotch-common/src/components/collections/graphql/Edit.vue b/packages/hoppscotch-common/src/components/collections/graphql/Edit.vueindex a5a3e1049..0c4b94972 100644--- a/packages/hoppscotch-common/src/components/collections/graphql/Edit.vue+++ b/packages/hoppscotch-common/src/components/collections/graphql/Edit.vue@@ -6,21 +6,13 @@@close="hideModal"><template #body>- <div class="flex flex-col">- <input- id="selectLabelGqlEdit"- v-model="name"- v-focus- class="input floating-input"- placeholder=" "- type="text"- autocomplete="off"- @keyup.enter="saveCollection"- />- <label for="selectLabelGqlEdit">- {{ t("action.label") }}- </label>- </div>+ <HoppSmartInput+ v-model="name"+ placeholder=" "+ :label="t('action.label')"+ input-styles="floating-input"+ @submit="saveCollection"+ /></template><template #footer><span class="flex space-x-2">diff --git a/packages/hoppscotch-common/src/components/collections/graphql/EditFolder.vue b/packages/hoppscotch-common/src/components/collections/graphql/EditFolder.vueindex 2f069b522..c6810a7a3 100644--- a/packages/hoppscotch-common/src/components/collections/graphql/EditFolder.vue+++ b/packages/hoppscotch-common/src/components/collections/graphql/EditFolder.vue@@ -6,21 +6,13 @@@close="$emit('hide-modal')"><template #body>- <div class="flex flex-col">- <input- id="selectLabelGqlEditFolder"- v-model="name"- v-focus- class="input floating-input"- placeholder=" "- type="text"- autocomplete="off"- @keyup.enter="editFolder"- />- <label for="selectLabelGqlEditFolder">- {{ t("action.label") }}- </label>- </div>+ <HoppSmartInput+ v-model="name"+ placeholder=" "+ :label="t('action.label')"+ input-styles="floating-input"+ @submit="editFolder"+ /></template><template #footer><span class="flex space-x-2">diff --git a/packages/hoppscotch-common/src/components/collections/graphql/EditRequest.vue b/packages/hoppscotch-common/src/components/collections/graphql/EditRequest.vueindex 0302523d3..76c5295d2 100644--- a/packages/hoppscotch-common/src/components/collections/graphql/EditRequest.vue+++ b/packages/hoppscotch-common/src/components/collections/graphql/EditRequest.vue@@ -6,21 +6,13 @@@close="hideModal"><template #body>- <div class="flex flex-col">- <input- id="selectLabelGqlEditReq"- v-model="requestUpdateData.name"- v-focus- class="input floating-input"- placeholder=" "- type="text"- autocomplete="off"- @keyup.enter="saveRequest"- />- <label for="selectLabelGqlEditReq">- {{ t("action.label") }}- </label>- </div>+ <HoppSmartInput+ v-model="requestUpdateData.name"+ placeholder=" "+ :label="t('action.label')"+ input-styles="floating-input"+ @submit="saveRequest"+ /></template><template #footer><span class="flex space-x-2">diff --git a/packages/hoppscotch-common/src/components/collections/graphql/index.vue b/packages/hoppscotch-common/src/components/collections/graphql/index.vueindex 7ecb7e5c3..76384a2a7 100644--- a/packages/hoppscotch-common/src/components/collections/graphql/index.vue+++ b/packages/hoppscotch-common/src/components/collections/graphql/index.vue@@ -11,7 +11,7 @@type="search"autocomplete="off":placeholder="t('action.search')"- class="py-2 pl-4 pr-2 bg-transparent"+ class="py-2 pl-4 pr-2 bg-transparent !border-0"/><divclass="flex justify-between flex-1 flex-shrink-0 border-y bg-primary border-dividerLight"diff --git a/packages/hoppscotch-common/src/components/collections/index.vue b/packages/hoppscotch-common/src/components/collections/index.vueindex 3dd59cdbc..f8472b1e1 100644--- a/packages/hoppscotch-common/src/components/collections/index.vue+++ b/packages/hoppscotch-common/src/components/collections/index.vue@@ -18,12 +18,12 @@"><WorkspaceCurrent :section="t('tab.collections')" />- <input++ <HoppSmartInputv-model="filterTexts"- type="search"- autocomplete="off":placeholder="t('action.search')"- class="py-2 pl-4 pr-2 bg-transparent"+ input-styles="py-2 pl-4 pr-2 bg-transparent !border-0"+ type="search":disabled="collectionsType.type === 'team-collections'"/></div>diff --git a/packages/hoppscotch-common/src/components/environments/my/Details.vue b/packages/hoppscotch-common/src/components/environments/my/Details.vueindex 0e3ee5279..8b514170f 100644--- a/packages/hoppscotch-common/src/components/environments/my/Details.vue+++ b/packages/hoppscotch-common/src/components/environments/my/Details.vue@@ -7,22 +7,15 @@><template #body><div class="flex flex-col">- <div class="relative flex">- <input- id="selectLabelEnvEdit"- v-model="name"- v-focus- class="input floating-input"- placeholder=" "- type="text"- autocomplete="off"- :disabled="editingEnvironmentIndex === 'Global'"- @keyup.enter="saveEnvironment"- />- <label for="selectLabelEnvEdit">- {{ t("action.label") }}- </label>- </div>+ <HoppSmartInput+ v-model="name"+ placeholder=" "+ :label="t('action.label')"+ input-styles="floating-input"+ :disabled="editingEnvironmentIndex === 'Global'"+ @submit="saveEnvironment"+ />+<div class="flex items-center justify-between flex-1"><label for="variableList" class="p-4">{{ t("environment.variable_list") }}diff --git a/packages/hoppscotch-common/src/components/environments/teams/Details.vue b/packages/hoppscotch-common/src/components/environments/teams/Details.vueindex 92583405d..d79118bf8 100644--- a/packages/hoppscotch-common/src/components/environments/teams/Details.vue+++ b/packages/hoppscotch-common/src/components/environments/teams/Details.vue@@ -7,23 +7,15 @@><template #body><div class="flex flex-col px-2">- <div class="relative flex">- <input- id="selectLabelEnvEdit"- v-model="name"- v-focus- class="input floating-input"- :class="isViewer && 'opacity-25'"- placeholder=""- type="text"- autocomplete="off"- :disabled="isViewer"- @keyup.enter="saveEnvironment"- />- <label for="selectLabelEnvEdit">- {{ t("action.label") }}- </label>- </div>+ <HoppSmartInput+ v-model="name"+ placeholder=" "+ :input-styles="['floating-input', isViewer && 'opacity-25']"+ :label="t('action.label')"+ :disabled="isViewer"+ @submit="saveEnvironment"+ />+<div class="flex items-center justify-between flex-1"><label for="variableList" class="p-4">{{ t("environment.variable_list") }}diff --git a/packages/hoppscotch-common/src/components/firebase/Login.vue b/packages/hoppscotch-common/src/components/firebase/Login.vueindex 85e3638c9..127bf7066 100644--- a/packages/hoppscotch-common/src/components/firebase/Login.vue+++ b/packages/hoppscotch-common/src/components/firebase/Login.vue@@ -37,24 +37,14 @@class="flex flex-col space-y-2"@submit.prevent="signInWithEmail">- <div class="flex flex-col">- <input- id="email"- v-model="form.email"- v-focus- class="input floating-input"- placeholder=" "- type="email"- name="email"- autocomplete="off"- required- spellcheck="false"- autofocus- />- <label for="email">- {{ t("auth.email") }}- </label>- </div>+ <HoppSmartInput+ v-model="form.email"+ type="email"+ placeholder=" "+ :label="t('auth.email')"+ input-styles="floating-input"+ />+<HoppButtonPrimary:loading="signingInWithEmail"type="submit"diff --git a/packages/hoppscotch-common/src/components/smart/ChangeLanguage.vue b/packages/hoppscotch-common/src/components/smart/ChangeLanguage.vueindex 6b316c063..d70f1f675 100644--- a/packages/hoppscotch-common/src/components/smart/ChangeLanguage.vue+++ b/packages/hoppscotch-common/src/components/smart/ChangeLanguage.vue@@ -18,15 +18,13 @@</span><template #content="{ hide }"><div class="flex flex-col space-y-2">- <div class="sticky z-10 top-0 flex-shrink-0 overflow-x-auto">- <input- v-model="searchQuery"- type="search"- autocomplete="off"- class="flex w-full p-4 py-2 input !bg-primaryContrast"- :placeholder="`${t('action.search')}`"- />- </div>+ <HoppSmartInput+ v-model="searchQuery"+ styles="ticky z-10 top-0 flex-shrink-0 overflow-x-auto"+ :placeholder="`${t('action.search')}`"+ type="search"+ input-styles="flex w-full p-4 py-2 input !bg-primaryContrast"+ /><divref="tippyActions"class="flex flex-col focus:outline-none"diff --git a/packages/hoppscotch-common/src/components/teams/Add.vue b/packages/hoppscotch-common/src/components/teams/Add.vueindex ed8ce2c51..8dd4ad8d7 100644--- a/packages/hoppscotch-common/src/components/teams/Add.vue+++ b/packages/hoppscotch-common/src/components/teams/Add.vue@@ -1,21 +1,13 @@<template><HoppSmartModal v-if="show" dialog :title="t('team.new')" @close="hideModal"><template #body>- <div class="flex flex-col">- <input- id="selectLabelTeamAdd"- v-model="name"- v-focus- class="input floating-input"- placeholder=" "- type="text"- autocomplete="off"- @keyup.enter="addNewTeam"- />- <label for="selectLabelTeamAdd">- {{ t("action.label") }}- </label>- </div>+ <HoppSmartInput+ v-model="name"+ :label="t('action.label')"+ placeholder=" "+ input-styles="floating-input"+ @submit="addNewTeam"+ /></template><template #footer><span class="flex space-x-2">diff --git a/packages/hoppscotch-common/src/components/teams/Edit.vue b/packages/hoppscotch-common/src/components/teams/Edit.vueindex 3bc8f9c23..921c14397 100644--- a/packages/hoppscotch-common/src/components/teams/Edit.vue+++ b/packages/hoppscotch-common/src/components/teams/Edit.vue@@ -2,21 +2,13 @@<HoppSmartModal v-if="show" dialog :title="t('team.edit')" @close="hideModal"><template #body><div class="flex flex-col">- <div class="relative flex">- <input- id="selectLabelTeamEdit"- v-model="name"- v-focus- class="input floating-input"- placeholder=" "- type="text"- autocomplete="off"- @keyup.enter="saveTeam"- />- <label for="selectLabelTeamEdit">- {{ t("action.label") }}- </label>- </div>+ <HoppSmartInput+ v-model="name"+ placeholder=" "+ :label="t('action.label')"+ input-styles="floating-input"+ @submit="saveTeam"+ /><div class="flex items-center justify-between flex-1 pt-4"><label for="memberList" class="p-4">{{ t("team.members") }}diff --git a/packages/hoppscotch-common/src/pages/profile.vue b/packages/hoppscotch-common/src/pages/profile.vueindex a607f6b55..fa239ca9f 100644--- a/packages/hoppscotch-common/src/pages/profile.vue+++ b/packages/hoppscotch-common/src/pages/profile.vue@@ -100,55 +100,45 @@<label for="displayName">{{ t("settings.profile_name") }}</label>- <form- class="flex mt-2 md:max-w-sm"- @submit.prevent="updateDisplayName"+ <HoppSmartInput+ v-model="displayName"+ styles="mt-2 md:max-w-sm"+ :placeholder="`${t('settings.profile_name')}`">- <input- id="displayName"- v-model="displayName"- class="input"- :placeholder="`${t('settings.profile_name')}`"- type="text"- autocomplete="off"- required- />- <HoppButtonSecondary- filled- outline- :label="t('action.save')"- class="ml-2 min-w-16"- type="submit"- :loading="updatingDisplayName"- />- </form>+ <template #button>+ <HoppButtonSecondary+ filled+ outline+ :label="t('action.save')"+ class="ml-2 min-w-16"+ type="submit"+ :loading="updatingDisplayName"+ @click="updateDisplayName"+ />+ </template>+ </HoppSmartInput></div><div class="py-4"><label for="emailAddress">{{ t("settings.profile_email") }}</label>- <form- class="flex mt-2 md:max-w-sm"- @submit.prevent="updateEmailAddress"+ <HoppSmartInput+ v-model="emailAddress"+ styles="flex mt-2 md:max-w-sm"+ :placeholder="`${t('settings.profile_name')}`">- <input- id="emailAddress"- v-model="emailAddress"- class="input"- :placeholder="`${t('settings.profile_name')}`"- type="email"- autocomplete="off"- required- />- <HoppButtonSecondary- filled- outline- :label="t('action.save')"- class="ml-2 min-w-16"- type="submit"- :loading="updatingEmailAddress"- />- </form>+ <template #button>+ <HoppButtonSecondary+ filled+ outline+ :label="t('action.save')"+ class="ml-2 min-w-16"+ type="submit"+ :loading="updatingEmailAddress"+ @click="updateEmailAddress"+ />+ </template>+ </HoppSmartInput></div></section>@@ -208,7 +198,6 @@ import { ref, watchEffect, computed } from "vue"import { platform } from "~/platform"import { invokeAction } from "~/helpers/actions"-import { useReadonlyStream } from "@composables/stream"import { useI18n } from "@composables/i18n"import { useToast } from "@composables/toast"@@ -251,9 +240,9 @@ const loadingCurrentUser = computed(() => {else return false})-const displayName = ref(currentUser.value?.displayName)+const displayName = ref(currentUser.value?.displayName || "")const updatingDisplayName = ref(false)-watchEffect(() => (displayName.value = currentUser.value?.displayName))+watchEffect(() => (displayName.value = currentUser.value?.displayName || ""))const updateDisplayName = () => {updatingDisplayName.value = true@@ -270,9 +259,9 @@ const updateDisplayName = () => {})}-const emailAddress = ref(currentUser.value?.email)+const emailAddress = ref(currentUser.value?.email || "")const updatingEmailAddress = ref(false)-watchEffect(() => (emailAddress.value = currentUser.value?.email))+watchEffect(() => (emailAddress.value = currentUser.value?.email || ""))const updateEmailAddress = () => {updatingEmailAddress.value = truediff --git a/packages/hoppscotch-common/src/pages/realtime/websocket.vue b/packages/hoppscotch-common/src/pages/realtime/websocket.vueindex e019cd066..554f9ea37 100644--- a/packages/hoppscotch-common/src/pages/realtime/websocket.vue+++ b/packages/hoppscotch-common/src/pages/realtime/websocket.vue@@ -4,38 +4,35 @@<divclass="sticky top-0 z-10 flex flex-shrink-0 p-4 space-x-2 overflow-x-auto bg-primary">- <div class="inline-flex flex-1 space-x-2">- <input- id="websocket-url"- v-model="url"- class="w-full px-4 py-2 border rounded bg-primaryLight border-divider text-secondaryDark"- type="url"- autocomplete="off"- spellcheck="false"- :class="{ error: !isUrlValid }"- :placeholder="`${t('websocket.url')}`"- :disabled="- connectionState === 'CONNECTED' ||- connectionState === 'CONNECTING'- "- @keyup.enter="isUrlValid ? toggleConnection() : null"- />- <HoppButtonPrimary- id="connect"- :disabled="!isUrlValid"- class="w-32"- name="connect"- :label="- connectionState === 'CONNECTING'- ? t('action.connecting')- : connectionState === 'DISCONNECTED'- ? t('action.connect')- : t('action.disconnect')- "- :loading="connectionState === 'CONNECTING'"- @click="toggleConnection"- />- </div>+ <HoppSmartInput+ v-model="url"+ type="url"+ styles="!inline-flex flex-1 space-x-2"+ input-styles="w-full px-4 py-2 border rounded !bg-primaryLight border-divider text-secondaryDark"+ :placeholder="`${t('websocket.url')}`"+ :disabled="+ connectionState === 'CONNECTED' || connectionState === 'CONNECTING'+ "+ @submit="isUrlValid ? toggleConnection() : null"+ >+ <template #button>+ <HoppButtonPrimary+ id="connect"+ :disabled="!isUrlValid"+ class="w-32"+ name="connect"+ :label="+ connectionState === 'CONNECTING'+ ? t('action.connecting')+ : connectionState === 'DISCONNECTED'+ ? t('action.connect')+ : t('action.disconnect')+ "+ :loading="connectionState === 'CONNECTING'"+ @click="toggleConnection"+ />+ </template>+ </HoppSmartInput></div><HoppSmartTabsv-model="selectedTab"diff --git a/packages/hoppscotch-common/src/pages/settings.vue b/packages/hoppscotch-common/src/pages/settings.vueindex da17d693a..e4a0a991a 100644--- a/packages/hoppscotch-common/src/pages/settings.vue+++ b/packages/hoppscotch-common/src/pages/settings.vue@@ -193,20 +193,19 @@</div></div><div class="flex items-center py-4 space-x-2">- <div class="relative flex flex-col flex-1">- <input- id="url"- v-model="PROXY_URL"- class="input floating-input"- placeholder=" "- type="url"- autocomplete="off"- :disabled="!PROXY_ENABLED"- />- <label for="url">- {{ t("settings.proxy_url") }}- </label>- </div>+ <HoppSmartInput+ v-model="PROXY_URL"+ styles="flex-1"+ placeholder=" "+ input-styles="input floating-input"+ :disabled="!PROXY_ENABLED"+ >+ <template #label>+ <label for="url">+ {{ t("settings.proxy_url") }}+ </label>+ </template>+ </HoppSmartInput><HoppButtonSecondaryv-tippy="{ theme: 'tooltip' }":title="t('settings.reset_default')"diff --git a/packages/hoppscotch-sh-admin/src/components.d.ts b/packages/hoppscotch-sh-admin/src/components.d.tsindex c55f69a7e..19ca12ffe 100644--- a/packages/hoppscotch-sh-admin/src/components.d.ts+++ b/packages/hoppscotch-sh-admin/src/components.d.ts@@ -14,6 +14,22 @@ declare module '@vue/runtime-core' {AppSidebar: typeof import('./components/app/Sidebar.vue')['default']AppToast: typeof import('./components/app/Toast.vue')['default']DashboardMetricsCard: typeof import('./components/dashboard/MetricsCard.vue')['default']+ HoppButtonPrimary: typeof import('@hoppscotch/ui')['HoppButtonPrimary']+ HoppButtonSecondary: typeof import('@hoppscotch/ui')['HoppButtonSecondary']+ HoppSmartAnchor: typeof import('@hoppscotch/ui')['HoppSmartAnchor']+ HoppSmartAutoComplete: typeof import('@hoppscotch/ui')['HoppSmartAutoComplete']+ HoppSmartConfirmModal: typeof import('@hoppscotch/ui')['HoppSmartConfirmModal']+ HoppSmartInput: typeof import('@hoppscotch/ui')['HoppSmartInput']+ HoppSmartItem: typeof import('@hoppscotch/ui')['HoppSmartItem']+ HoppSmartModal: typeof import('@hoppscotch/ui')['HoppSmartModal']+ HoppSmartPicture: typeof import('@hoppscotch/ui')['HoppSmartPicture']+ HoppSmartSpinner: typeof import('@hoppscotch/ui')['HoppSmartSpinner']+ HoppSmartTab: typeof import('@hoppscotch/ui')['HoppSmartTab']+ IconLucideArrowLeft: typeof import('~icons/lucide/arrow-left')['default']+ IconLucideChevronDown: typeof import('~icons/lucide/chevron-down')['default']+ IconLucideHelpCircle: typeof import('~icons/lucide/help-circle')['default']+ IconLucideInbox: typeof import('~icons/lucide/inbox')['default']+ IconLucideUser: typeof import('~icons/lucide/user')['default']TeamsAdd: typeof import('./components/teams/Add.vue')['default']TeamsDetails: typeof import('./components/teams/Details.vue')['default']TeamsInvite: typeof import('./components/teams/Invite.vue')['default']diff --git a/packages/hoppscotch-sh-admin/src/components/app/Login.vue b/packages/hoppscotch-sh-admin/src/components/app/Login.vueindex e28569dbe..ac54ab3eb 100644--- a/packages/hoppscotch-sh-admin/src/components/app/Login.vue+++ b/packages/hoppscotch-sh-admin/src/components/app/Login.vue@@ -41,22 +41,14 @@class="flex flex-col space-y-4"@submit.prevent="signInWithEmail">- <div class="flex flex-col">- <input- id="email"- v-model="form.email"- class="input floating-input"- placeholder=" "- type="email"- name="email"- autocomplete="off"- required- spellcheck="false"- v-focus- autofocus- />- <label for="email"> Email </label>- </div>+ <HoppSmartInput+ v-model="form.email"+ type="email"+ placeholder=" "+ input-styles="floating-input"+ label="Email"+ />+<HoppButtonPrimary:loading="signingInWithEmail"type="submit"diff --git a/packages/hoppscotch-sh-admin/src/components/teams/Add.vue b/packages/hoppscotch-sh-admin/src/components/teams/Add.vueindex d62a8e62e..e84acfe6f 100644--- a/packages/hoppscotch-sh-admin/src/components/teams/Add.vue+++ b/packages/hoppscotch-sh-admin/src/components/teams/Add.vue@@ -18,18 +18,8 @@@input="(email: string) => getOwnerEmail(email)"/></div>- <div class="flex flex-col">- <label for="teamName" class="py-2">{{ t('teams.name') }} </label>- <input- id="teamName"- v-model="teamName"- v-focus- class="input relative"- placeholder=""- type="email"- autocomplete="off"- />- </div>+ <label for="teamName"> {{ t('teams.name') }} </label>+ <HoppSmartInput v-model="teamName" placeholder="" class="!my-2" /></div></template><template #footer>diff --git a/packages/hoppscotch-sh-admin/src/components/teams/Details.vue b/packages/hoppscotch-sh-admin/src/components/teams/Details.vueindex 3bf64ff85..c358c2f19 100644--- a/packages/hoppscotch-sh-admin/src/components/teams/Details.vue+++ b/packages/hoppscotch-sh-admin/src/components/teams/Details.vue@@ -20,24 +20,26 @@'!border-accent': showRenameInput,}">- <input- class="bg-transparent flex-1 p-3 rounded-md !rounded-r-none disabled:select-none border-r-0 disabled:cursor-default disabled:opacity-50"- type="text"+ <HoppSmartInputv-model="newTeamName"+ styles="bg-transparent flex-1 rounded-md !rounded-r-none disabled:select-none border-r-0 disabled:cursor-default disabled:opacity-50"placeholder="Team Name"- autofocus:disabled="!showRenameInput"- v-focus- />- <HoppButtonPrimary- class="!rounded-l-none"- filled- :icon="showRenameInput ? IconSave : IconEdit"- :label="- showRenameInput ? `${t('teams.rename')}` : `${t('teams.edit')}`- "- @click="handleNameEdit()"- />+ >+ <template #button>+ <HoppButtonPrimary+ class="!rounded-l-none"+ filled+ :icon="showRenameInput ? IconSave : IconEdit"+ :label="+ showRenameInput+ ? `${t('teams.rename')}`+ : `${t('teams.edit')}`+ "+ @click="handleNameEdit()"+ />+ </template>+ </HoppSmartInput></div></div>diff --git a/packages/hoppscotch-sh-admin/src/components/users/InviteModal.vue b/packages/hoppscotch-sh-admin/src/components/users/InviteModal.vueindex 2b9416289..da6dce242 100644--- a/packages/hoppscotch-sh-admin/src/components/users/InviteModal.vue+++ b/packages/hoppscotch-sh-admin/src/components/users/InviteModal.vue@@ -6,19 +6,11 @@@close="$emit('hide-modal')"><template #body>- <div class="flex flex-col">- <input- id="inviteUserEmail"- v-model="email"- v-focus- class="input floating-input"- placeholder=" "- type="text"- autocomplete="off"- @keyup.enter="sendInvite"- />- <label for="inviteUserEmail">{{ t('users.email_address') }}</label>- </div>+ <HoppSmartInput+ v-model="email"+ :label="t('users.email_address')"+ input-styles="floating-input"+ /></template><template #footer><span class="flex space-x-2">diff --git a/packages/hoppscotch-ui/src/components/smart/Input.vue b/packages/hoppscotch-ui/src/components/smart/Input.vuenew file mode 100644index 000000000..518638af6--- /dev/null+++ b/packages/hoppscotch-ui/src/components/smart/Input.vue@@ -0,0 +1,69 @@+<template>+ <div class="relative flex" :class="styles">+ <input+ :id="inputID"+ class="input"+ :class="inputStyles"+ v-model="inputText"+ v-focus+ :placeholder="placeholder"+ :type="type"+ @keyup.enter="emit('submit')"+ autocomplete="off"+ required+ :disabled="disabled"+ />++ <label v-if="label.length > 0" :for="inputID"> {{ label }} </label>+ <slot name="button"></slot>+ </div>+</template>++<script lang="ts">+/*+ This inputIDCounter is tracked in the global scope in order to ensure that each input has a unique ID.+ When we use this component multiple times on the same page, we need to ensure that each input has a unique ID.+ This is because the label's for attribute needs to match the input's id attribute.++ That's why we use a global counter that increments each time we use this component.+*/+let inputIDCounter = 564275+</script>++<script setup lang="ts">+import { useVModel } from "@vueuse/core"+import { defineProps } from "vue"++// Unique ID for input+const inputID = `input-${inputIDCounter++}`++const props = withDefaults(+ defineProps<{+ id: string+ styles: string+ modelValue: string | null+ placeholder: string+ inputStyles: string | (string | false)[]+ type: string+ label: string+ disabled: boolean+ }>(),+ {+ id: "",+ styles: "",+ modelValue: "",+ placeholder: "",+ inputStyles: "input",+ type: "text",+ label: "",+ disabled: false,+ }+)++const emit = defineEmits<{+ (e: "submit"): void+ (e: "update:modelValue", v: string): void+}>()++const inputText = useVModel(props, "modelValue", emit)+</script>diff --git a/packages/hoppscotch-ui/src/components/smart/index.ts b/packages/hoppscotch-ui/src/components/smart/index.tsindex 7f2d07616..8f00ba719 100644--- a/packages/hoppscotch-ui/src/components/smart/index.ts+++ b/packages/hoppscotch-ui/src/components/smart/index.ts@@ -4,6 +4,7 @@ export { default as HoppSmartCheckbox } from "./Checkbox.vue"export { default as HoppSmartConfirmModal } from "./ConfirmModal.vue"export { default as HoppSmartExpand } from "./Expand.vue"export { default as HoppSmartFileChip } from "./FileChip.vue"+export { default as HoppSmartInput } from "./Input.vue"export { default as HoppSmartIntersection } from "./Intersection.vue"export { default as HoppSmartItem } from "./Item.vue"export { default as HoppSmartLink } from "./Link.vue"