mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 23:15:43 +01:00
add missing @since annotations to ui-forms & ui-buttons
This commit is contained in:
@@ -27,7 +27,10 @@ import { Link as ReactRouterLink, LinkProps as ReactRouterLinkProps } from "reac
|
||||
import classNames from "classnames";
|
||||
import { createAttributesForTesting } from "@scm-manager/ui-components";
|
||||
|
||||
/** @Beta */
|
||||
/**
|
||||
* @beta
|
||||
* @since 2.41.0
|
||||
*/
|
||||
export const ButtonVariants = {
|
||||
PRIMARY: "primary",
|
||||
SECONDARY: "secondary",
|
||||
@@ -58,7 +61,9 @@ type ButtonProps = BaseButtonProps & ButtonHTMLAttributes<HTMLButtonElement>;
|
||||
|
||||
/**
|
||||
* Styled html button
|
||||
* @Beta
|
||||
*
|
||||
* @beta
|
||||
* @since 2.41.0
|
||||
*/
|
||||
export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
||||
({ className, variant, isLoading, testId, children, ...props }, ref) => (
|
||||
@@ -77,7 +82,9 @@ type LinkButtonProps = BaseButtonProps & ReactRouterLinkProps;
|
||||
|
||||
/**
|
||||
* Styled react router link
|
||||
* @Beta
|
||||
*
|
||||
* @beta
|
||||
* @since 2.41.0
|
||||
*/
|
||||
export const LinkButton = React.forwardRef<HTMLAnchorElement, LinkButtonProps>(
|
||||
({ className, variant, isLoading, testId, children, ...props }, ref) => (
|
||||
@@ -96,7 +103,9 @@ type ExternalLinkButtonProps = BaseButtonProps & AnchorHTMLAttributes<HTMLAnchor
|
||||
|
||||
/**
|
||||
* Styled html anchor
|
||||
* @Beta
|
||||
*
|
||||
* @beta
|
||||
* @since 2.41.0
|
||||
*/
|
||||
export const ExternalLinkButton = React.forwardRef<HTMLAnchorElement, ExternalLinkButtonProps>(
|
||||
({ className, variant, isLoading, testId, children, ...props }, ref) => (
|
||||
|
||||
Reference in New Issue
Block a user