/* * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may obtain a copy * of the License at https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ import { AriaAttributesWithRef } from "../../lib/types.js"; import { ButtonProps as ButtonProps$1 } from "react-aria-components/Button"; import { LinkProps } from "react-aria-components/Link"; import { ToggleButtonProps as ToggleButtonProps$1 } from "react-aria-components/ToggleButton"; //#region src/components/button/types.d.ts type Variants = 'filled' | 'flat' | 'icon' | 'outline'; /** * Style variant options for Button and LinkButton components. */ type ButtonStyleVariants = { /** Size of the button. */ size?: 'large' | 'medium' | 'small' | 'xsmall'; /** Semantic color variant. */ color?: 'mono-muted' | 'mono-bold' | 'accent' | 'serious' | 'critical'; /** Visual style variant. */ variant?: Variants; }; /** * Style variant options for ToggleButton components. * Excludes 'filled' variant which is not supported for toggle buttons. */ type ToggleButtonStyleVariants = Omit & { /** Visual style variant (filled not available for toggle). */ variant?: Exclude; }; /** * Props for the Button component. * * Extends React Aria Button with style variants and ref support. */ type ButtonProps = ButtonProps$1 & ButtonStyleVariants & AriaAttributesWithRef; /** * Props for the LinkButton component. * * Extends React Aria Link with button style variants and ref support. */ type LinkButtonProps = LinkProps & ButtonStyleVariants & AriaAttributesWithRef; /** * Props for the ToggleButton component. * * Extends React Aria ToggleButton with style variants and ref support. */ type ToggleButtonProps = ToggleButtonProps$1 & ToggleButtonStyleVariants & AriaAttributesWithRef; //#endregion export { ButtonProps, ButtonStyleVariants, LinkButtonProps, ToggleButtonProps, ToggleButtonStyleVariants }; //# sourceMappingURL=types.d.ts.map