chore(ui): add changesets and update API report

Signed-off-by: Johan Persson <johanopersson@gmail.com>
This commit is contained in:
Johan Persson
2026-03-03 14:18:29 +01:00
parent bfd121436b
commit 36987dbdfd
3 changed files with 33 additions and 13 deletions
+7
View File
@@ -0,0 +1,7 @@
---
'@backstage/ui': patch
---
Fixed handling of the `style` prop on `Button`, `ButtonIcon`, and `ButtonLink` so that it is now correctly forwarded to the underlying element instead of being silently dropped.
**Affected components:** Button, ButtonIcon, ButtonLink
+7
View File
@@ -0,0 +1,7 @@
---
'@backstage/ui': patch
---
Extended `AlertProps`, `ContainerProps`, `DialogBodyProps`, and `FieldLabelProps` with native div element props to allow passing attributes like `aria-*` and `data-*`.
**Affected components:** Alert, Container, DialogBody, FieldLabel
+19 -13
View File
@@ -243,7 +243,13 @@ export type AlertOwnProps = {
};
// @public
export interface AlertProps extends MarginProps, AlertOwnProps {}
export interface AlertProps
extends MarginProps,
AlertOwnProps,
Omit<
React.ComponentPropsWithoutRef<'div'>,
keyof AlertOwnProps | keyof MarginProps
> {}
// @public (undocumented)
export type AlignItems = 'stretch' | 'start' | 'center' | 'end';
@@ -441,7 +447,6 @@ export const ButtonDefinition: {
readonly iconEnd: {};
readonly children: {};
readonly className: {};
readonly style: {};
};
};
@@ -475,7 +480,6 @@ export const ButtonIconDefinition: {
};
readonly icon: {};
readonly className: {};
readonly style: {};
};
};
@@ -486,12 +490,11 @@ export type ButtonIconOwnProps = {
icon?: ReactElement;
loading?: boolean;
className?: string;
style?: CSSProperties;
};
// @public
export interface ButtonIconProps
extends Omit<ButtonProps_2, 'children' | 'className' | 'style'>,
extends Omit<ButtonProps_2, keyof ButtonIconOwnProps>,
ButtonIconOwnProps {}
// @public (undocumented)
@@ -522,7 +525,6 @@ export const ButtonLinkDefinition: {
readonly iconEnd: {};
readonly children: {};
readonly className: {};
readonly style: {};
};
};
@@ -534,12 +536,11 @@ export type ButtonLinkOwnProps = {
iconEnd?: ReactElement;
children?: ReactNode;
className?: string;
style?: CSSProperties;
};
// @public
export interface ButtonLinkProps
extends Omit<LinkProps_2, 'children' | 'className' | 'style'>,
extends Omit<LinkProps_2, keyof ButtonLinkOwnProps>,
ButtonLinkOwnProps {}
// @public (undocumented)
@@ -552,12 +553,11 @@ export type ButtonOwnProps = {
loading?: boolean;
children?: ReactNode;
className?: string;
style?: CSSProperties;
};
// @public
export interface ButtonProps
extends Omit<ButtonProps_2, 'children' | 'className' | 'style'>,
extends Omit<ButtonProps_2, keyof ButtonOwnProps>,
ButtonOwnProps {}
// @public
@@ -876,7 +876,9 @@ export type ContainerOwnProps = {
};
// @public (undocumented)
export interface ContainerProps extends ContainerOwnProps {
export interface ContainerProps
extends ContainerOwnProps,
Omit<React.ComponentPropsWithoutRef<'div'>, keyof ContainerOwnProps> {
// (undocumented)
mb?: SpaceProps['mb'];
// (undocumented)
@@ -950,7 +952,9 @@ export type DialogBodyOwnProps = {
};
// @public
export interface DialogBodyProps extends DialogBodyOwnProps {}
export interface DialogBodyProps
extends DialogBodyOwnProps,
Omit<React.ComponentPropsWithoutRef<'div'>, keyof DialogBodyOwnProps> {}
// @public
export const DialogDefinition: {
@@ -1092,7 +1096,9 @@ export type FieldLabelOwnProps = {
};
// @public (undocumented)
export interface FieldLabelProps extends FieldLabelOwnProps {}
export interface FieldLabelProps
extends FieldLabelOwnProps,
Omit<React.ComponentPropsWithoutRef<'div'>, keyof FieldLabelOwnProps> {}
// @public (undocumented)
export interface FilterState<TFilter> {