From becf8516d723947980fd27fc0e997d1af0e0eff4 Mon Sep 17 00:00:00 2001 From: Yash Oswal Date: Tue, 3 Feb 2026 19:11:08 +0530 Subject: [PATCH] fix(ui): export PasswordField component Add the missing export for the PasswordField component in the main entry point of the UI package. This ensures the component is properly exposed and available for use by external consumers. Signed-off-by: Yash Oswal --- .changeset/ripe-women-follow.md | 5 +++++ packages/ui/report.api.md | 28 ++++++++++++++++++++++++++++ packages/ui/src/index.ts | 1 + 3 files changed, 34 insertions(+) create mode 100644 .changeset/ripe-women-follow.md diff --git a/.changeset/ripe-women-follow.md b/.changeset/ripe-women-follow.md new file mode 100644 index 0000000000..1f2c50d78a --- /dev/null +++ b/.changeset/ripe-women-follow.md @@ -0,0 +1,5 @@ +--- +'@backstage/ui': patch +--- + +export PasswordField component diff --git a/packages/ui/report.api.md b/packages/ui/report.api.md index ae76c8a8d0..09ca9c6d96 100644 --- a/packages/ui/report.api.md +++ b/packages/ui/report.api.md @@ -1396,6 +1396,34 @@ export interface PaginationOptions initialOffset?: number; } +// @public (undocumented) +export const PasswordField: ForwardRefExoticComponent< + PasswordFieldProps & RefAttributes +>; + +// @public +export const PasswordFieldDefinition: { + readonly classNames: { + readonly root: 'bui-PasswordField'; + readonly inputWrapper: 'bui-PasswordFieldInputWrapper'; + readonly input: 'bui-PasswordFieldInput'; + readonly inputIcon: 'bui-PasswordFieldIcon'; + readonly inputVisibility: 'bui-PasswordFieldVisibility'; + }; + readonly dataAttributes: { + readonly size: readonly ['small', 'medium']; + }; +}; + +// @public (undocumented) +export interface PasswordFieldProps + extends TextFieldProps_2, + Omit { + icon?: ReactNode; + placeholder?: string; + size?: 'small' | 'medium' | Partial>; +} + // @public export const Popover: ForwardRefExoticComponent< PopoverProps & RefAttributes diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.ts index 2782c0b3ad..4ce616d5f1 100644 --- a/packages/ui/src/index.ts +++ b/packages/ui/src/index.ts @@ -46,6 +46,7 @@ export * from './components/Tabs'; export * from './components/TagGroup'; export * from './components/Text'; export * from './components/TextField'; +export * from './components/PasswordField'; export * from './components/Tooltip'; export * from './components/Menu'; export * from './components/Popover';