diff --git a/services/web/frontend/js/features/ui/components/bootstrap-5/button.tsx b/services/web/frontend/js/features/ui/components/bootstrap-5/button.tsx index c041bf984b..b64b390144 100644 --- a/services/web/frontend/js/features/ui/components/bootstrap-5/button.tsx +++ b/services/web/frontend/js/features/ui/components/bootstrap-5/button.tsx @@ -14,13 +14,14 @@ function Button({ disabled = false, loading = false, children, + className, }: ButtonProps) { const sizeClass = sizeClasses.get(size) return ( diff --git a/services/web/frontend/js/features/ui/components/bootstrap-5/dropdown-menu.tsx b/services/web/frontend/js/features/ui/components/bootstrap-5/dropdown-menu.tsx new file mode 100644 index 0000000000..e6f26cb4b5 --- /dev/null +++ b/services/web/frontend/js/features/ui/components/bootstrap-5/dropdown-menu.tsx @@ -0,0 +1,69 @@ +import React from 'react' +import { + Dropdown as B5Dropdown, + DropdownToggle as B5DropdownToggle, + DropdownMenu as B5DropdownMenu, + DropdownItem as B5DropdownItem, + DropdownDivider as B5DropdownDivider, +} from 'react-bootstrap-5' +import type { + DropdownProps, + DropdownItemProps, + DropdownToggleProps, + DropdownMenuProps, +} from '@/features/ui/components/types/dropdown-menu-props' +import MaterialIcon from '@/shared/components/material-icon' + +export function Dropdown({ ...props }: DropdownProps) { + return +} + +export function DropdownItem({ + active, + children, + description, + leadingIcon, + trailingIcon, + ...props +}: DropdownItemProps) { + const trailingIconType = active ? 'check' : trailingIcon + return ( +
  • + + {leadingIcon && ( + + )} + {children} + {trailingIconType && ( + + )} + {description && ( + {description} + )} + +
  • + ) +} + +export function DropdownToggle({ ...props }: DropdownToggleProps) { + return +} + +export function DropdownMenu({ as = 'ul', ...props }: DropdownMenuProps) { + return +} + +export function DropdownDivider() { + return