@abgov/react-components 7.0.0-dev.10 → 7.0.0-dev.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/lib/button/button.d.ts +2 -2
- package/lib/link-button/link-button.d.ts +3 -0
- package/package.json +1 -1
package/lib/button/button.d.ts
CHANGED
|
@@ -24,11 +24,11 @@ declare module "react" {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
export interface GoabButtonProps extends Margins, DataAttributes {
|
|
27
|
-
/** Sets the visual style of the button. Use "primary" for main actions, "secondary" for alternative actions, "tertiary" for low-emphasis actions,
|
|
27
|
+
/** Sets the visual style of the button. Use "primary" for main actions, "secondary" for alternative actions, "tertiary" for low-emphasis actions, "start" for prominent call-to-action buttons, and "text" for text-only buttons. @default "primary" */
|
|
28
28
|
type?: GoabButtonType;
|
|
29
29
|
/** Controls the size of the button. Use "compact" for inline actions or space-constrained layouts. @default "normal" */
|
|
30
30
|
size?: GoabButtonSize;
|
|
31
|
-
/** Sets the color variant for semantic meaning. Use "destructive" for delete or irreversible actions, "inverse" for dark backgrounds. @default "normal" */
|
|
31
|
+
/** Sets the color variant for semantic meaning. Use "destructive" for delete or irreversible actions, "inverse" for light-colored text on dark backgrounds, and "dark" for dark text color on text buttons only. Note: "dark" has no effect on non-text button types. @default "normal" */
|
|
32
32
|
variant?: GoabButtonVariant;
|
|
33
33
|
/** When true, prevents user interaction and applies disabled styling. */
|
|
34
34
|
disabled?: boolean;
|
|
@@ -13,8 +13,11 @@ declare module "react" {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
interface GoALinkButtonProps extends Margins, DataAttributes {
|
|
16
|
+
/** @deprecated Use GoabButton instead. Sets the type of button. */
|
|
16
17
|
type?: GoabLinkButtonType;
|
|
18
|
+
/** @deprecated Use GoabButton instead. Icon displayed before the button text. */
|
|
17
19
|
leadingIcon?: GoabIconType;
|
|
20
|
+
/** @deprecated Use GoabButton instead. Icon displayed after the button text. */
|
|
18
21
|
trailingIcon?: GoabIconType;
|
|
19
22
|
children: ReactNode;
|
|
20
23
|
}
|