@codecademy/gamut
73.3.073.3.1-alpha.a12aa5.0
dist/ButtonBase/ButtonBase.d.ts~
dist/ButtonBase/ButtonBase.d.tsModified+11−1
Index: package/dist/ButtonBase/ButtonBase.d.ts
===================================================================
--- package/dist/ButtonBase/ButtonBase.d.ts
+++ package/dist/ButtonBase/ButtonBase.d.ts
@@ -4,9 +4,9 @@
export type ButtonBaseElementProps = HTMLProps<HTMLAnchorElement | HTMLButtonElement> & {
as?: never;
ref?: ButtonBaseRef;
};
-export declare enum ButtonSelectors {
+export declare enum InteractiveSelectors {
HOVER = "&:hover",
ACTIVE = "&:active",
FOCUS = "&:focus",
DISABLED = "[disabled], &:disabled, &[aria-disabled='true']",
@@ -30,8 +30,18 @@
* Narrows a ref union (anchor | button) to the element type for the current render branch.
* Use when forwarding refs from components that render either an anchor or a button (e.g. ButtonBase, Anchor).
*/
export declare function narrowButtonBaseRef<T extends ButtonBaseElements>(ref: Ref<ButtonBaseElements | null>): Ref<T>;
+/**
+ * An unstyled `button`/`a` element with the browser default styles reset and
+ * the correct disabled/accessibility behavior for either tag, chosen
+ * automatically based on whether `href` is passed.
+ *
+ * Not exported from the root barrel on purpose — it's a foundation other
+ * button components (`CTAButton`, `FillButton`, `IconButton`, `StrokeButton`,
+ * `TextButton`, `Anchor`) build on, not a public API surface. Only
+ * `InteractiveSelectors` is promoted from this module; see GMT-1740.
+ */
export declare const ButtonBase: import("react").ForwardRefExoticComponent<(Omit<{
theme?: import("@emotion/react").Theme;
as?: React.ElementType;
} & {