Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
feature(frontend): stablize v3 button with stories
Scott Wilson9b8b4a1ecf00
diff --git a/frontend/src/components/v3/generic/Button/Button.stories.tsx b/frontend/src/components/v3/generic/Button/Button.stories.tsxindex 0f975e70de..542528ede7 100644--- a/frontend/src/components/v3/generic/Button/Button.stories.tsx+++ b/frontend/src/components/v3/generic/Button/Button.stories.tsx@@ -1,27 +1,26 @@import type { Meta, StoryObj } from "@storybook/react-vite";+import { Link } from "@tanstack/react-router";import {- AsteriskIcon,- BanIcon,+ ArrowLeftIcon,CheckIcon,CircleXIcon,ExternalLinkIcon,InfoIcon,- RadarIcon,- TriangleAlertIcon,- UserIcon+ LogInIcon,+ TriangleAlertIcon} from "lucide-react";import { OrgIcon, ProjectIcon, SubOrgIcon } from "../../platform";-import { UnstableButton } from "./Button";+import { Button } from "./Button";/**- * Buttons act as an indicator that can optionally be made interactable.- * You can place text and icons inside a Button.- * Buttons are often used for the indication of a status, state or scope.+ * Buttons trigger actions or events when clicked or pressed.+ * You can place text and icons inside a button.+ * Buttons are often used for submitting forms, navigating between pages, or triggering specific actions.*/const meta = {title: "Generic/Button",- component: UnstableButton,+ component: Button,parameters: {layout: "centered"},@@ -55,7 +54,7 @@ const meta = {isDisabled: {control: "boolean"},- as: {+ asChild: {table: {disable: true}@@ -67,27 +66,11 @@ const meta = {}},args: { children: "Button", isPending: false, isDisabled: false, isFullWidth: false, size: "md" }-} satisfies Meta<typeof UnstableButton>;+} satisfies Meta<typeof Button>;export default meta;type Story = StoryObj<typeof meta>;-export const Default: Story = {- name: "Variant: Default",- args: {- variant: "default",- children: <>Default</>- },- parameters: {- docs: {- description: {- story:- "Use this variant when other Button variants are not applicable or as the key when displaying key-value pairs with ButtonGroup."- }- }- }-};-export const Outline: Story = {name: "Variant: Outline",args: {@@ -97,8 +80,7 @@ export const Outline: Story = {parameters: {docs: {description: {- story:- "Use this variant when other Button variants are not applicable or as the value when displaying key-value pairs with ButtonGroup."+ story: "Use this variant for general page actions."}}}@@ -110,15 +92,15 @@ export const Neutral: Story = {variant: "neutral",children: (<>- <BanIcon />- Disabled+ <ArrowLeftIcon />+ Back</>)},parameters: {docs: {description: {- story: "Use this variant when indicating neutral or disabled states."+ story: "Use this variant for general actions. [TBD]"}}}@@ -128,18 +110,12 @@ export const Ghost: Story = {name: "Variant: Ghost",args: {variant: "ghost",- children: (- <>- <UserIcon />- User- </>- )+ children: <>Cancel</>},parameters: {docs: {description: {- story:- "Use this variant when indicating a configuration or property value. Avoid using this variant as an interactive element as it is not intuitive to interact with."+ story: "Use this variant for optional / non-primary actions."}}}@@ -159,7 +135,7 @@ export const Success: Story = {parameters: {docs: {description: {- story: "Use this variant when indicating successful or healthy states."+ story: "Use this variant for generic positive / productive call-to-action functionality."}}}@@ -179,8 +155,7 @@ export const Info: Story = {parameters: {docs: {description: {- story:- "Use this variant when indicating informational states or when linking to external documentation."+ story: "Use this variant for generic informational call-to-action functionality."}}}@@ -200,7 +175,7 @@ export const Warning: Story = {parameters: {docs: {description: {- story: "Use this variant when indicating activity or attention warranting states."+ story: "Use this variant for buttons with disruptive actions."}}}@@ -220,7 +195,7 @@ export const Danger: Story = {parameters: {docs: {description: {- story: "Use this variant when indicating destructive or error states."+ story: "Use this variant for buttons with destructive action."}}}@@ -240,7 +215,7 @@ export const Organization: Story = {parameters: {docs: {description: {- story: "Use this variant when indicating organization scope or links."+ story: "Use this variant for organization scope call-to-action buttons."}}}@@ -260,7 +235,7 @@ export const SubOrganization: Story = {parameters: {docs: {description: {- story: "Use this variant when indicating sub-organization scope or links."+ story: "Use this variant for sub-organization scope call-to-action buttons."}}}@@ -280,7 +255,7 @@ export const Project: Story = {parameters: {docs: {description: {- story: "Use this variant when indicating project scope or links."+ story: "Use this variant for project scope call-to-action buttons."}}}@@ -290,18 +265,17 @@ export const AsExternalLink: Story = {name: "Example: As External Link",args: {variant: "info",- as: "a",- href: "https://www.infisical.com",+ asChild: true,children: (- <>+ <a target="_blank" rel="noopener noreferrer" href="https://infisical.com/">Link <ExternalLinkIcon />- </>+ </a>)},parameters: {docs: {description: {- story: 'Use the `as="a"` prop to use a Button as an external `a` tag component.'+ story: "Use the `asChild` prop with an `a` tag to use a button as an external link."}}}@@ -311,18 +285,18 @@ export const AsRouterLink: Story = {name: "Example: As Router Link",args: {variant: "project",- as: "link",+ asChild: true,children: (- <>- <RadarIcon />- Secret Scanning- </>+ <Link to=".">+ <ProjectIcon />+ View Project+ </Link>)},parameters: {docs: {description: {- story: 'Use the `as="link"` prop to use a Button as an internal `Link` component.'+ story: "Use the `asChild` prop with a `Link` component to use a button as an internal link."}}}@@ -333,25 +307,45 @@ export const IsFullWidth: Story = {args: {variant: "neutral",isFullWidth: true,-children: (<>- <AsteriskIcon />- Secret Value+ Login+ <LogInIcon /></>)},parameters: {docs: {description: {- story:- "Use the `isFullWidth` prop to expand the Buttons width to fill it's parent container."+ story: "Use the `isFullWidth` prop to expand button width to fill it's parent container."}}},decorators: (Story) => (- <div className="w-32">+ <div className="w-64"><Story /></div>)};++export const IsPending: Story = {+ name: "Example: isPending",+ args: {+ variant: "neutral",+ isPending: true,+ children: (+ <>+ Login+ <LogInIcon />+ </>+ )+ },+ parameters: {+ docs: {+ description: {+ story:+ "Use the `isPending` prop to indicate loading states and disable button functionality."+ }+ }+ }+};diff --git a/frontend/src/components/v3/generic/Button/Button.tsx b/frontend/src/components/v3/generic/Button/Button.tsxindex f9cb10e63b..e9ab57a80d 100644--- a/frontend/src/components/v3/generic/Button/Button.tsx+++ b/frontend/src/components/v3/generic/Button/Button.tsx@@ -1,6 +1,6 @@import * as React from "react";import { forwardRef } from "react";-import { Link, LinkProps } from "@tanstack/react-router";+import { Slot } from "@radix-ui/react-slot";import { cva, type VariantProps } from "cva";import { Lottie } from "@app/components/v2";@@ -16,12 +16,10 @@ const buttonVariants = cva({variants: {variant: {- default:- "border-foreground bg-foreground text-background hover:bg-foreground/90 hover:border-foreground/90",- neutral:- "border-neutral/10 bg-neutral/40 text-foreground hover:bg-neutral/50 hover:border-neutral/20",outline: "text-foreground hover:bg-foreground/10 border-border hover:border-foreground/20",ghost: "text-foreground hover:bg-foreground/10 border-transparent",+ neutral:+ "border-neutral/25 bg-neutral/15 text-foreground hover:bg-neutral/30 hover:border-neutral/30",project:"border-project/25 bg-project/15 text-foreground hover:bg-project/30 hover:border-project/30",org: "border-org/25 bg-org/15 text-foreground hover:bg-org/30 hover:border-org/30",@@ -50,90 +48,73 @@ const buttonVariants = cva(}},defaultVariants: {- variant: "default",+ variant: "neutral",size: "md"}});-type UnstableButtonProps = (VariantProps<typeof buttonVariants> & {- isPending?: boolean;- isFullWidth?: boolean;- isDisabled?: boolean;-}) &- (- | ({ as?: "button" | undefined } & React.ComponentProps<"button">)- | ({ as: "link"; className?: string } & LinkProps)- | ({ as: "a" } & React.ComponentProps<"a">)+type ButtonProps = React.ComponentProps<"button"> &+ VariantProps<typeof buttonVariants> & {+ isPending?: boolean;+ isFullWidth?: boolean;+ isDisabled?: boolean;+ asChild?: boolean;+ } & (+ | {+ asChild: true;+ isPending?: never;+ }+ | {+ asChild?: false;+ isPending?: boolean;+ });-const UnstableButton = forwardRef<HTMLButtonElement | HTMLAnchorElement, UnstableButtonProps>(+const Button = forwardRef<HTMLButtonElement, ButtonProps>(({className,- variant = "default",+ variant = "neutral",size = "md",isPending = false,isFullWidth = false,isDisabled = false,- children,+ children: _children,+ asChild = false,...props},ref): JSX.Element => {- const sharedProps = {- "data-slot": "button",- className: cn(buttonVariants({ variant, size, isPending, isFullWidth }), className)- };+ const Comp = asChild ? Slot : "button";- const child = (+ const children = asChild ? (+ _children+ ) : (<>- {children}+ {_children}{isPending && (- <Lottie- icon={variant === "default" ? "infisical_loading_bw" : "infisical_loading_white"}- isAutoPlay- className="absolute w-8 rounded-xl"- />+ <Lottie icon="infisical_loading_white" isAutoPlay className="absolute w-8 rounded-xl" />)}</>);- switch (props.as) {- case "a":- return (- <a- ref={ref as React.Ref<HTMLAnchorElement>}- target="_blank"- rel="noopener noreferrer"- {...props}- {...sharedProps}- >- {child}- </a>- );- case "link":- return (- <Link ref={ref as React.Ref<HTMLAnchorElement>} {...props} {...sharedProps}>- {child}- </Link>- );- default:- return (- <button- ref={ref as React.Ref<HTMLButtonElement>}- type="button"- disabled={isPending || isDisabled}- {...props}- {...sharedProps}- >- {child}- </button>- );- }+ return (+ <Comp+ ref={ref}+ data-slot="button"+ data-variant={variant}+ data-size={size}+ disabled={isDisabled || isPending}+ className={cn(buttonVariants({ variant, size, className, isPending, isFullWidth }))}+ {...props}+ >+ {children}+ </Comp>+ );});-UnstableButton.displayName = "Button";+Button.displayName = "Button";-export { buttonVariants, UnstableButton, type UnstableButtonProps };+export { Button, type ButtonProps, buttonVariants };diff --git a/frontend/src/hooks/api/index.tsx b/frontend/src/hooks/api/index.tsxindex a88afe0e51..03dd7d94b3 100644--- a/frontend/src/hooks/api/index.tsx+++ b/frontend/src/hooks/api/index.tsx@@ -13,8 +13,8 @@ export * from "./auditLogStreams";export * from "./auth";export * from "./bots";export * from "./ca";-export * from "./certificates";export * from "./certificatePolicies";+export * from "./certificates";export * from "./certificateTemplates";export * from "./dynamicSecret";export * from "./dynamicSecretLease";diff --git a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CreateProfileModal.tsx b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CreateProfileModal.tsxindex be5ca5959d..effe35f21c 100644--- a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CreateProfileModal.tsx+++ b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CreateProfileModal.tsx@@ -22,6 +22,7 @@ import {import { useProject } from "@app/context";import { CaType } from "@app/hooks/api/ca/enums";import { useGetAzureAdcsTemplates, useListCasByProjectId } from "@app/hooks/api/ca/queries";+import { useListCertificatePolicies } from "@app/hooks/api/certificatePolicies";import {EnrollmentType,IssuerType,@@ -31,7 +32,6 @@ import {useCreateCertificateProfile,useUpdateCertificateProfile} from "@app/hooks/api/certificateProfiles";-import { useListCertificatePolicies } from "@app/hooks/api/certificatePolicies";const createSchema = z.object({diff --git a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/ProfileRow.tsx b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/ProfileRow.tsxindex f1ca503f95..55ab64ffe6 100644--- a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/ProfileRow.tsx+++ b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/ProfileRow.tsx@@ -31,8 +31,8 @@ import {} from "@app/context/ProjectPermissionContext/types";import { usePopUp, useToggle } from "@app/hooks";import { useGetInternalCaById } from "@app/hooks/api/ca/queries";-import { IssuerType, TCertificateProfile } from "@app/hooks/api/certificateProfiles";import { useGetCertificatePolicyById } from "@app/hooks/api/certificatePolicies";+import { IssuerType, TCertificateProfile } from "@app/hooks/api/certificateProfiles";import { CertificateIssuanceModal } from "@app/pages/cert-manager/CertificatesPage/components/CertificateIssuanceModal";interface Props {diff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsxindex 3f0ca0592b..51b12d2e91 100644--- a/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx@@ -7,7 +7,7 @@ import { createNotification } from "@app/components/notifications";import { OrgPermissionCan } from "@app/components/permissions";import { DeleteActionModal, PageHeader, Spinner } from "@app/components/v2";import {- UnstableButton,+ Button,UnstableDropdownMenu,UnstableDropdownMenuContent,UnstableDropdownMenuItem,@@ -97,10 +97,10 @@ const Page = () => {><UnstableDropdownMenu><UnstableDropdownMenuTrigger asChild>- <UnstableButton variant="outline">+ <Button variant="outline">Options<EllipsisIcon />- </UnstableButton>+ </Button></UnstableDropdownMenuTrigger><UnstableDropdownMenuContent align="end"><UnstableDropdownMenuItemdiff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersSection.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersSection.tsxindex 05e4c55791..de0969b6e3 100644--- a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersSection.tsx+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersSection.tsx@@ -4,7 +4,7 @@ import { createNotification } from "@app/components/notifications";import { OrgPermissionCan } from "@app/components/permissions";import { DeleteActionModal } from "@app/components/v2";import {- UnstableButton,+ Button,UnstableCard,UnstableCardAction,UnstableCardContent,@@ -92,7 +92,7 @@ export const GroupMembersSection = ({ groupId, groupSlug }: Props) => {<UnstableCardAction><OrgPermissionCan I={OrgPermissionGroupActions.Edit} a={OrgPermissionSubjects.Groups}>{(isAllowed) => (- <UnstableButton+ <ButtonisDisabled={!isAllowed}onClick={() => {handlePopUpOpen("addGroupMembers", {@@ -105,7 +105,7 @@ export const GroupMembersSection = ({ groupId, groupSlug }: Props) => {><PlusIcon />Add Member- </UnstableButton>+ </Button>)}</OrgPermissionCan></UnstableCardAction>diff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsxindex 508cb37fe3..c9009ff792 100644--- a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsx+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsx@@ -5,7 +5,7 @@ import { twMerge } from "tailwind-merge";import { OrgPermissionCan } from "@app/components/permissions";import { Lottie } from "@app/components/v2";import {- UnstableButton,+ Button,UnstableDropdownMenu,UnstableDropdownMenuCheckboxItem,UnstableDropdownMenuContent,@@ -217,7 +217,7 @@ export const GroupMembersTable = ({ groupId, groupSlug, handlePopUpOpen }: Propsa={OrgPermissionSubjects.Groups}>{(isAllowed) => (- <UnstableButton+ <Buttonvariant={isSubOrganization ? "sub-org" : "org"}size="xs"isDisabled={!isAllowed}@@ -230,7 +230,7 @@ export const GroupMembersTable = ({ groupId, groupSlug, handlePopUpOpen }: Props><PlusIcon />Add Member- </UnstableButton>+ </Button>)}</OrgPermissionCan></UnstableEmptyContent>diff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupProjectsSection/GroupProjectsSection.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupProjectsSection/GroupProjectsSection.tsxindex 03240be010..1b1ca656d7 100644--- a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupProjectsSection/GroupProjectsSection.tsx+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupProjectsSection/GroupProjectsSection.tsx@@ -4,7 +4,7 @@ import { createNotification } from "@app/components/notifications";import { OrgPermissionCan } from "@app/components/permissions";import { DeleteActionModal } from "@app/components/v2";import {- UnstableButton,+ Button,UnstableCard,UnstableCardAction,UnstableCardContent,@@ -55,7 +55,7 @@ export const GroupProjectsSection = ({ groupId, groupSlug }: Props) => {<UnstableCardAction><OrgPermissionCan I={OrgPermissionGroupActions.Edit} a={OrgPermissionSubjects.Groups}>{(isAllowed) => (- <UnstableButton+ <ButtonisDisabled={!isAllowed}onClick={() => {handlePopUpOpen("addGroupProjects", {@@ -68,7 +68,7 @@ export const GroupProjectsSection = ({ groupId, groupSlug }: Props) => {><PlusIcon />Add to Project- </UnstableButton>+ </Button>)}</OrgPermissionCan></UnstableCardAction>diff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupProjectsSection/GroupProjectsTable.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupProjectsSection/GroupProjectsTable.tsxindex 4f53013a24..ba9e3ff21e 100644--- a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupProjectsSection/GroupProjectsTable.tsx+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupProjectsSection/GroupProjectsTable.tsx@@ -3,7 +3,7 @@ import { twMerge } from "tailwind-merge";import { Lottie } from "@app/components/v2";import {- UnstableButton,+ Button,UnstableEmpty,UnstableEmptyContent,UnstableEmptyDescription,@@ -146,7 +146,7 @@ export const GroupProjectsTable = ({ groupId, groupSlug, handlePopUpOpen }: Prop</UnstableEmptyDescription>{!debouncedSearch && (<UnstableEmptyContent>- <UnstableButton+ <Buttonvariant={isSubOrganization ? "sub-org" : "org"}size="xs"onClick={() =>@@ -158,7 +158,7 @@ export const GroupProjectsTable = ({ groupId, groupSlug, handlePopUpOpen }: Prop><PlusIcon />Add to Project- </UnstableButton>+ </Button></UnstableEmptyContent>)}</UnstableEmptyHeader>diff --git a/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx b/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsxindex b74d0300df..e3158ab6ba 100644--- a/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx+++ b/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx@@ -8,11 +8,11 @@ import { createNotification } from "@app/components/notifications";import { OrgPermissionCan } from "@app/components/permissions";import { DeleteActionModal, Modal, ModalContent, PageHeader } from "@app/components/v2";import {+ Button,OrgIcon,UnstableAlert,UnstableAlertDescription,UnstableAlertTitle,- UnstableButton,UnstableCard,UnstableCardContent,UnstableCardDescription,@@ -107,10 +107,10 @@ const Page = () => {><UnstableDropdownMenu><UnstableDropdownMenuTrigger asChild>- <UnstableButton variant="outline">+ <Button variant="outline">Options<EllipsisIcon />- </UnstableButton>+ </Button></UnstableDropdownMenuTrigger><UnstableDropdownMenuContent align="end"><UnstableDropdownMenuItemdiff --git a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityAuthenticationSection/IdentityAuthenticationSection.tsx b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityAuthenticationSection/IdentityAuthenticationSection.tsxindex 1b71b15410..0bf9d2a241 100644--- a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityAuthenticationSection/IdentityAuthenticationSection.tsx+++ b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityAuthenticationSection/IdentityAuthenticationSection.tsx@@ -2,7 +2,7 @@ import { PlusIcon } from "lucide-react";import { OrgPermissionCan } from "@app/components/permissions";import {- UnstableButton,+ Button,UnstableCard,UnstableCardAction,UnstableCardContent,@@ -51,7 +51,7 @@ export const IdentityAuthenticationSection = ({ identityId, handlePopUpOpen }: Pa={OrgPermissionSubjects.Identity}>{(isAllowed) => (- <UnstableButton+ <Buttonvariant="outline"isFullWidthsize="xs"@@ -66,7 +66,7 @@ export const IdentityAuthenticationSection = ({ identityId, handlePopUpOpen }: P><PlusIcon />Add Auth Method- </UnstableButton>+ </Button>)}</OrgPermissionCan></UnstableCardAction>@@ -96,7 +96,7 @@ export const IdentityAuthenticationSection = ({ identityId, handlePopUpOpen }: Pa={OrgPermissionSubjects.Identity}>{(isAllowed) => (- <UnstableButton+ <Buttonvariant={isSubOrganization ? "sub-org" : "org"}size="xs"isDisabled={!isAllowed}@@ -110,7 +110,7 @@ export const IdentityAuthenticationSection = ({ identityId, handlePopUpOpen }: P><PlusIcon />Add Auth Method- </UnstableButton>+ </Button>)}</OrgPermissionCan></UnstableEmptyContent>diff --git a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityProjectsSection/IdentityProjectsSection.tsx b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityProjectsSection/IdentityProjectsSection.tsxindex 05b499c80c..c1b97c2e95 100644--- a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityProjectsSection/IdentityProjectsSection.tsx+++ b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityProjectsSection/IdentityProjectsSection.tsx@@ -3,7 +3,7 @@ import { PlusIcon } from "lucide-react";import { createNotification } from "@app/components/notifications";import { DeleteActionModal } from "@app/components/v2";import {- UnstableButton,+ Button,UnstableCard,UnstableCardAction,UnstableCardContent,@@ -58,7 +58,7 @@ export const IdentityProjectsSection = ({ identityId }: Props) => {</UnstableCardDescription>{Boolean(projectMemberships?.length) && (<UnstableCardAction>- <UnstableButton+ <ButtononClick={() => {handlePopUpOpen("addIdentityToProject");}}@@ -67,7 +67,7 @@ export const IdentityProjectsSection = ({ identityId }: Props) => {><PlusIcon />Add to Project- </UnstableButton>+ </Button></UnstableCardAction>)}</UnstableCardHeader>diff --git a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityProjectsSection/IdentityProjectsTable.tsx b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityProjectsSection/IdentityProjectsTable.tsxindex 6d0ddd203d..16a04e0864 100644--- a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityProjectsSection/IdentityProjectsTable.tsx+++ b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityProjectsSection/IdentityProjectsTable.tsx@@ -4,7 +4,7 @@ import { twMerge } from "tailwind-merge";import { Lottie } from "@app/components/v2";import {- UnstableButton,+ Button,UnstableEmpty,UnstableEmptyContent,UnstableEmptyDescription,@@ -154,14 +154,14 @@ export const IdentityProjectsTable = ({ identityId, handlePopUpOpen }: Props) =></UnstableEmptyDescription>{!projectMemberships.length && (<UnstableEmptyContent>- <UnstableButton+ <Buttonvariant={isSubOrganization ? "sub-org" : "org"}size="xs"onClick={() => handlePopUpOpen("addIdentityToProject")}><PlusIcon />Add to Project- </UnstableButton>+ </Button></UnstableEmptyContent>)}</UnstableEmptyHeader>diff --git a/frontend/src/pages/organization/SecretSharingPage/components/SecretSharingSettings/SecretSharingBrandingSection.tsx b/frontend/src/pages/organization/SecretSharingPage/components/SecretSharingSettings/SecretSharingBrandingSection.tsxindex c87c633da8..ad09ddec2a 100644--- a/frontend/src/pages/organization/SecretSharingPage/components/SecretSharingSettings/SecretSharingBrandingSection.tsx+++ b/frontend/src/pages/organization/SecretSharingPage/components/SecretSharingSettings/SecretSharingBrandingSection.tsx@@ -7,7 +7,7 @@ import { z } from "zod";import { createNotification } from "@app/components/notifications";import { OrgPermissionCan } from "@app/components/permissions";import { Button, DeleteActionModal, FormControl, Input } from "@app/components/v2";-import { Badge, UnstableButton } from "@app/components/v3";+import { Badge, Button as ButtonV3 } from "@app/components/v3";import { apiRequest } from "@app/config/request";import {OrgPermissionActions,@@ -165,7 +165,7 @@ const AssetUploadCard = ({disabled={!isAllowed || isPending}/><div className="flex gap-2">- <UnstableButton+ <ButtonV3variant="neutral"size="xs"onClick={() => inputRef.current?.click()}@@ -173,9 +173,9 @@ const AssetUploadCard = ({><UploadIcon />Upload {title}- </UnstableButton>+ </ButtonV3>{previewUrl && (- <UnstableButton+ <ButtonV3variant="danger"size="xs"onClick={() => setIsDeleteModalOpen(true)}@@ -183,7 +183,7 @@ const AssetUploadCard = ({><TrashIcon />Delete- </UnstableButton>+ </ButtonV3>)}<DeleteActionModalisOpen={isDeleteModalOpen}@@ -295,15 +295,11 @@ export const SecretSharingBrandingSection = () => {<p className="text-sm text-mineshaft-300">Custom branding for secret sharing pages is available on Enterprise plans.</p>- <UnstableButton- size="xs"- variant="org"- as="a"- href="https://infisical.com/schedule-demo"- target="_blank"- >- Talk to Us- </UnstableButton>+ <ButtonV3 size="xs" variant="org" asChild>+ <a href="https://infisical.com/schedule-demo" target="_blank" rel="noreferrer">+ Talk to Us+ </a>+ </ButtonV3></div>) : (<OrgPermissionCan I={OrgPermissionActions.Edit} a={OrgPermissionSubjects.Settings}>diff --git a/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsx b/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsxindex bbf7254388..721d04129d 100644--- a/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsx+++ b/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsx@@ -8,7 +8,7 @@ import { createNotification } from "@app/components/notifications";import { OrgPermissionCan } from "@app/components/permissions";import { DeleteActionModal, PageHeader } from "@app/components/v2";import {- UnstableButton,+ Button,UnstableDropdownMenu,UnstableDropdownMenuContent,UnstableDropdownMenuItem,@@ -125,10 +125,10 @@ const Page = withPermission({userId !== membership.user.id && (<UnstableDropdownMenu><UnstableDropdownMenuTrigger asChild>- <UnstableButton variant="outline">+ <Button variant="outline">Options<EllipsisIcon />- </UnstableButton>+ </Button></UnstableDropdownMenuTrigger><UnstableDropdownMenuContent align="end"><UnstableDropdownMenuItemdiff --git a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserDetailsSection.tsx b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserDetailsSection.tsxindex 7da6038532..876bc3ccd7 100644--- a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserDetailsSection.tsx+++ b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserDetailsSection.tsx@@ -14,11 +14,11 @@ import { OrgPermissionCan } from "@app/components/permissions";import { Tooltip } from "@app/components/v2";import {Badge,+ Button,Detail,DetailGroup,DetailLabel,DetailValue,- UnstableButton,UnstableButtonGroup,UnstableCard,UnstableCardAction,@@ -261,7 +261,7 @@ export const UserDetailsSection = ({ membershipId, handlePopUpOpen }: Props) =>serverDetails?.emailConfigured && (<OrgPermissionCan I={OrgPermissionActions.Edit} a={OrgPermissionSubjects.Member}>{(isAllowed) => (- <UnstableButton+ <ButtonisDisabled={!isAllowed}className="mt-4 w-full"variant="org"@@ -269,7 +269,7 @@ export const UserDetailsSection = ({ membershipId, handlePopUpOpen }: Props) =>onClick={onResendInvite}>Resend Invite- </UnstableButton>+ </Button>)}</OrgPermissionCan>)}diff --git a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserProjectsSection.tsx b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserProjectsSection.tsxindex 55e26ab5b7..2db6158abb 100644--- a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserProjectsSection.tsx+++ b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserProjectsSection.tsx@@ -3,7 +3,7 @@ import { PlusIcon } from "lucide-react";import { createNotification } from "@app/components/notifications";import { DeleteActionModal } from "@app/components/v2";import {- UnstableButton,+ Button,UnstableCard,UnstableCardAction,UnstableCardContent,@@ -66,7 +66,7 @@ export const UserProjectsSection = ({ membershipId }: Props) => {<UnstableCardDescription>Manage user project memberships</UnstableCardDescription>{canAddToProject && Boolean(projectMemberships?.length) && (<UnstableCardAction>- <UnstableButton+ <ButtononClick={() => {handlePopUpOpen("addUserToProject", {username: membership.user.username@@ -77,7 +77,7 @@ export const UserProjectsSection = ({ membershipId }: Props) => {><PlusIcon />Add to Project- </UnstableButton>+ </Button></UnstableCardAction>)}</UnstableCardHeader>diff --git a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserProjectsTable.tsx b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserProjectsTable.tsxindex 171cb8c84b..4c87f0b681 100644--- a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserProjectsTable.tsx+++ b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserProjectsTable.tsx@@ -4,7 +4,7 @@ import { twMerge } from "tailwind-merge";import { Lottie } from "@app/components/v2";import {- UnstableButton,+ Button,UnstableEmpty,UnstableEmptyContent,UnstableEmptyDescription,@@ -160,7 +160,7 @@ export const UserProjectsTable = ({</UnstableEmptyDescription>{!projectMemberships.length && canAddToProject && (<UnstableEmptyContent>- <UnstableButton+ <Buttonvariant={isSubOrganization ? "sub-org" : "org"}size="xs"onClick={() =>@@ -171,7 +171,7 @@ export const UserProjectsTable = ({><PlusIcon />Add to Project- </UnstableButton>+ </Button></UnstableEmptyContent>)}</UnstableEmptyHeader>diff --git a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountCard.tsx b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountCard.tsxindex f7e69e0a3b..25f224adff 100644--- a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountCard.tsx+++ b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountCard.tsx@@ -11,7 +11,7 @@ import {DropdownMenuItem,DropdownMenuTrigger} from "@app/components/v2";-import { Badge, UnstableButton, UnstableIconButton } from "@app/components/v3";+import { Badge, Button, UnstableIconButton } from "@app/components/v3";import {ProjectPermissionPamAccountActions,ProjectPermissionSub@@ -64,10 +64,10 @@ export const PamAccountCard = ({ account, onAccess, accountPath, onUpdate, onDel<div className="flex items-center justify-between gap-2"><p className="truncate text-lg font-medium text-mineshaft-100">{name}</p><div className="flex items-center gap-2">- <UnstableButton onClick={() => onAccess(account)} size="xs" variant="outline">+ <Button onClick={() => onAccess(account)} size="xs" variant="outline"><LogInIcon />Connect- </UnstableButton>+ </Button><DropdownMenu><DropdownMenuTrigger asChild><UnstableIconButton size="xs" variant="ghost">diff --git a/frontend/src/pages/project/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx b/frontend/src/pages/project/GroupDetailsByIDPage/GroupDetailsByIDPage.tsxindex 060a5f6288..eda3c29c4a 100644--- a/frontend/src/pages/project/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx+++ b/frontend/src/pages/project/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx@@ -7,7 +7,7 @@ import { createNotification } from "@app/components/notifications";import { ProjectPermissionCan } from "@app/components/permissions";import { DeleteActionModal, EmptyState, PageHeader, Spinner } from "@app/components/v2";import {- UnstableButton,+ Button,UnstableDropdownMenu,UnstableDropdownMenuContent,UnstableDropdownMenuItem,@@ -105,10 +105,10 @@ const Page = () => {><UnstableDropdownMenu><UnstableDropdownMenuTrigger asChild>- <UnstableButton variant="outline">+ <Button variant="outline">Options<EllipsisIcon />- </UnstableButton>+ </Button></UnstableDropdownMenuTrigger><UnstableDropdownMenuContent align="end"><UnstableDropdownMenuItemdiff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsxindex 5b7a9b7dcf..417b3ef10b 100644--- a/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx@@ -15,12 +15,12 @@ import {Tooltip} from "@app/components/v2";import {+ Button,OrgIcon,SubOrgIcon,UnstableAlert,UnstableAlertDescription,UnstableAlertTitle,- UnstableButton,UnstableCard,UnstableCardContent,UnstableCardDescription,@@ -196,10 +196,10 @@ const Page = () => {><UnstableDropdownMenu><UnstableDropdownMenuTrigger asChild>- <UnstableButton variant="outline">+ <Button variant="outline">Options<EllipsisIcon />- </UnstableButton>+ </Button></UnstableDropdownMenuTrigger><UnstableDropdownMenuContent align="end"><UnstableDropdownMenuItemdiff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityProjectAdditionalPrivilegeSection/IdentityProjectAdditionalPrivilegeSection.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityProjectAdditionalPrivilegeSection/IdentityProjectAdditionalPrivilegeSection.tsxindex 9d37c50d13..e228a959a6 100644--- a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityProjectAdditionalPrivilegeSection/IdentityProjectAdditionalPrivilegeSection.tsx+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityProjectAdditionalPrivilegeSection/IdentityProjectAdditionalPrivilegeSection.tsx@@ -7,7 +7,7 @@ import { ProjectPermissionCan } from "@app/components/permissions";import { DeleteActionModal, Lottie, Modal, ModalContent, Tooltip } from "@app/components/v2";import {Badge,- UnstableButton,+ Button,UnstableCard,UnstableCardAction,UnstableCardContent,@@ -95,7 +95,7 @@ export const IdentityProjectAdditionalPrivilegeSection = ({ identityMembershipDe})}>{(isAllowed) => (- <UnstableButton+ <Buttonvariant="outline"size="xs"onClick={() => {@@ -105,7 +105,7 @@ export const IdentityProjectAdditionalPrivilegeSection = ({ identityMembershipDe><PlusIcon />Add Additional Privileges- </UnstableButton>+ </Button>)}</ProjectPermissionCan></UnstableCardAction>@@ -251,7 +251,7 @@ export const IdentityProjectAdditionalPrivilegeSection = ({ identityMembershipDe})}>{(isAllowed) => (- <UnstableButton+ <Buttonvariant="project"size="xs"onClick={() => {@@ -261,7 +261,7 @@ export const IdentityProjectAdditionalPrivilegeSection = ({ identityMembershipDe><PlusIcon />Add Additional Privileges- </UnstableButton>+ </Button>)}</ProjectPermissionCan></UnstableEmptyContent>diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleDetailsSection.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleDetailsSection.tsxindex ccaee1c0c7..85a2c0bd05 100644--- a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleDetailsSection.tsx+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleDetailsSection.tsx@@ -7,7 +7,7 @@ import { ProjectPermissionCan } from "@app/components/permissions";import { DeleteActionModal, Lottie, Modal, ModalContent, Tooltip } from "@app/components/v2";import {Badge,- UnstableButton,+ Button,UnstableCard,UnstableCardAction,UnstableCardContent,@@ -110,7 +110,7 @@ export const IdentityRoleDetailsSection = ({})}>{(isAllowed) => (- <UnstableButton+ <Buttonsize="xs"variant="outline"onClick={() => {@@ -120,7 +120,7 @@ export const IdentityRoleDetailsSection = ({><PencilIcon />Edit Roles- </UnstableButton>+ </Button>)}</ProjectPermissionCan></UnstableCardAction>@@ -246,7 +246,7 @@ export const IdentityRoleDetailsSection = ({})}>{(isAllowed) => (- <UnstableButton+ <Buttonvariant="project"size="xs"onClick={() => {@@ -256,7 +256,7 @@ export const IdentityRoleDetailsSection = ({><PencilIcon />Edit Roles- </UnstableButton>+ </Button>)}</ProjectPermissionCan></UnstableEmptyContent>diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityAuthSection.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityAuthSection.tsxindex 0bd5c83142..c021de990d 100644--- a/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityAuthSection.tsx+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityAuthSection.tsx@@ -4,7 +4,7 @@ import { PlusIcon } from "lucide-react";import { UpgradePlanModal } from "@app/components/license/UpgradePlanModal";import { ProjectPermissionCan } from "@app/components/permissions";import {- UnstableButton,+ Button,UnstableCard,UnstableCardAction,UnstableCardContent,@@ -55,7 +55,7 @@ export const ProjectIdentityAuthenticationSection = ({ identity, refetchIdentity})}>{(isAllowed) => (- <UnstableButton+ <Buttonvariant="outline"isFullWidthsize="xs"@@ -70,7 +70,7 @@ export const ProjectIdentityAuthenticationSection = ({ identity, refetchIdentity><PlusIcon />Add Auth Method- </UnstableButton>+ </Button>)}</ProjectPermissionCan></UnstableCardAction>@@ -102,7 +102,7 @@ export const ProjectIdentityAuthenticationSection = ({ identity, refetchIdentity})}>{(isAllowed) => (- <UnstableButton+ <Buttonvariant="project"size="xs"isDisabled={!isAllowed}@@ -116,7 +116,7 @@ export const ProjectIdentityAuthenticationSection = ({ identity, refetchIdentity><PlusIcon />Add Auth Method- </UnstableButton>+ </Button>)}</ProjectPermissionCan></UnstableEmptyContent>diff --git a/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx b/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsxindex 095faed42f..2c433bb97e 100644--- a/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx+++ b/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx@@ -18,7 +18,7 @@ import {} from "@app/components/v2";import {Badge,- UnstableButton,+ Button,UnstableDropdownMenu,UnstableDropdownMenuContent,UnstableDropdownMenuItem,@@ -168,10 +168,10 @@ export const Page = () => {) : (<UnstableDropdownMenu><UnstableDropdownMenuTrigger asChild>- <UnstableButton variant="outline">+ <Button variant="outline">Options<EllipsisIcon />- </UnstableButton>+ </Button></UnstableDropdownMenuTrigger><UnstableDropdownMenuContent align="end"><UnstableDropdownMenuItemdiff --git a/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberProjectAdditionalPrivilegeSection/MemberProjectAdditionalPrivilegeSection.tsx b/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberProjectAdditionalPrivilegeSection/MemberProjectAdditionalPrivilegeSection.tsxindex 07873c8fb6..9989af7412 100644--- a/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberProjectAdditionalPrivilegeSection/MemberProjectAdditionalPrivilegeSection.tsx+++ b/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberProjectAdditionalPrivilegeSection/MemberProjectAdditionalPrivilegeSection.tsx@@ -6,7 +6,7 @@ import { ProjectPermissionCan } from "@app/components/permissions";import { DeleteActionModal, Lottie, Modal, ModalContent, Tooltip } from "@app/components/v2";import {Badge,- UnstableButton,+ Button,UnstableCard,UnstableCardAction,UnstableCardContent,@@ -92,7 +92,7 @@ export const MemberProjectAdditionalPrivilegeSection = ({ membershipDetails }: Pa={ProjectPermissionSub.Member}>{(isAllowed) => (- <UnstableButton+ <Buttonvariant="outline"size="xs"onClick={() => {@@ -102,7 +102,7 @@ export const MemberProjectAdditionalPrivilegeSection = ({ membershipDetails }: P><PlusIcon />Add Additional Privileges- </UnstableButton>+ </Button>)}</ProjectPermissionCan></UnstableCardAction>@@ -250,7 +250,7 @@ export const MemberProjectAdditionalPrivilegeSection = ({ membershipDetails }: Pa={ProjectPermissionSub.Member}>{(isAllowed) => (- <UnstableButton+ <Buttonvariant="project"size="xs"onClick={() => {@@ -260,7 +260,7 @@ export const MemberProjectAdditionalPrivilegeSection = ({ membershipDetails }: P><PlusIcon />Add Additional Privileges- </UnstableButton>+ </Button>)}</ProjectPermissionCan></UnstableEmptyContent>diff --git a/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberRoleDetailsSection/MemberRoleDetailsSection.tsx b/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberRoleDetailsSection/MemberRoleDetailsSection.tsxindex 3d625dffb3..52f1084c01 100644--- a/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberRoleDetailsSection/MemberRoleDetailsSection.tsx+++ b/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberRoleDetailsSection/MemberRoleDetailsSection.tsx@@ -6,7 +6,7 @@ import { ProjectPermissionCan } from "@app/components/permissions";import { DeleteActionModal, Lottie, Modal, ModalContent, Tooltip } from "@app/components/v2";import {Badge,- UnstableButton,+ Button,UnstableCard,UnstableCardAction,UnstableCardContent,@@ -111,7 +111,7 @@ export const MemberRoleDetailsSection = ({a={ProjectPermissionSub.Member}>{(isAllowed) => (- <UnstableButton+ <Buttonsize="xs"variant="outline"onClick={() => {@@ -121,7 +121,7 @@ export const MemberRoleDetailsSection = ({><PencilIcon />Edit Roles- </UnstableButton>+ </Button>)}</ProjectPermissionCan></UnstableCardAction>@@ -246,7 +246,7 @@ export const MemberRoleDetailsSection = ({a={ProjectPermissionSub.Member}>{(isAllowed) => (- <UnstableButton+ <Buttonvariant="project"size="xs"onClick={() => {@@ -256,7 +256,7 @@ export const MemberRoleDetailsSection = ({><PencilIcon />Edit Roles- </UnstableButton>+ </Button>)}</ProjectPermissionCan></UnstableEmptyContent>diff --git a/frontend/src/pages/public/ViewSecretRequestByIDPage/components/SecretRequestContainer.tsx b/frontend/src/pages/public/ViewSecretRequestByIDPage/components/SecretRequestContainer.tsxindex 5a95131def..0ea07d6da5 100644--- a/frontend/src/pages/public/ViewSecretRequestByIDPage/components/SecretRequestContainer.tsx+++ b/frontend/src/pages/public/ViewSecretRequestByIDPage/components/SecretRequestContainer.tsx@@ -4,7 +4,7 @@ import { ArrowRightIcon } from "lucide-react";import { z } from "zod";import { FormControl, TextArea } from "@app/components/v2";-import { UnstableButton } from "@app/components/v3";+import { Button } from "@app/components/v3";import { useSetSecretRequestValue } from "@app/hooks/api";import { BrandingTheme } from "../../ViewSharedSecretByIDPage/ViewSharedSecretByIDPage";@@ -83,7 +83,7 @@ export const SecretRequestContainer = ({ brandingTheme, onSuccess, secretRequest</div>)}/>- <UnstableButton+ <ButtonisPending={isPending}isDisabled={isPending}variant="neutral"@@ -93,7 +93,7 @@ export const SecretRequestContainer = ({ brandingTheme, onSuccess, secretRequest>Share Secret<ArrowRightIcon />- </UnstableButton>+ </Button></div></form></FormProvider>