Skip to content

Commit

Permalink
merge results
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Jun 11, 2024
2 parents 11a9107 + 29a973c commit 8e0cd04
Show file tree
Hide file tree
Showing 30 changed files with 1,243 additions and 353 deletions.
4 changes: 2 additions & 2 deletions src/BlazorUI/Bit.BlazorUI/Components/Persona/BitPersona.razor
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
var coinBgColorStyle = GetCoinBgColorStyle();
var coinStyle = coinWidthStyle + coinBgColorStyle;

<div style="@coinStyle" class="bit-prs-imc" @onclick="HandleImageClick">
<div style="@coinStyle" class="@(CoinTemplate is null ? "bit-prs-imc" : null)" @onclick="HandleImageClick">
@if (Unknown)
{
<i class="bit-icon bit-icon--Help" role="presentation" />
}
else if (ImageUrl is not null)
else if (ImageUrl.HasValue() || CoinTemplate is not null)
{
if (OnImageClick.HasDelegate)
{
Expand Down
17 changes: 6 additions & 11 deletions src/BlazorUI/Bit.BlazorUI/Components/Persona/BitPersona.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,20 @@ public partial class BitPersona
/// <summary>
/// Icon name for the icon button of the custom action.
/// </summary>
[Parameter] public string? ActionIconName { get; set; }
[Parameter] public string? ActionIconName { get; set; } = "Edit";

/// <summary>
/// Optional Custom template for the custom action element.
/// </summary>
[Parameter] public RenderFragment? ActionTemplate { get; set; }

/// <summary>
/// Whether initials are calculated for phone numbers and number sequences.
/// </summary>
[Parameter] public bool AllowPhoneInitials { get; set; }

/// <summary>
/// Optional custom persona coin size in pixel.
/// </summary>
[Parameter] public int? CoinSize { get; set; }

/// <summary>
/// Custom persona coin's image template
/// Custom persona coin's image template.
/// </summary>
[Parameter] public RenderFragment? CoinTemplate { get; set; }

Expand Down Expand Up @@ -106,7 +101,7 @@ public string? ImageUrl
[Parameter] public string? OptionalText { get; set; }

/// <summary>
/// Custom optional text template
/// Custom optional text template.
/// </summary>
[Parameter] public RenderFragment? OptionalTextTemplate { get; set; }

Expand All @@ -131,7 +126,7 @@ public string? ImageUrl
[Parameter] public string? PrimaryText { get; set; }

/// <summary>
/// Custom primary text template
/// Custom primary text template.
/// </summary>
[Parameter] public RenderFragment? PrimaryTextTemplate { get; set; }

Expand All @@ -141,7 +136,7 @@ public string? ImageUrl
[Parameter] public string? SecondaryText { get; set; }

/// <summary>
/// Custom secondary text template
/// Custom secondary text template.
/// </summary>
[Parameter] public RenderFragment? SecondaryTextTemplate { get; set; }

Expand Down Expand Up @@ -188,7 +183,7 @@ public BitPersonaSize Size
[Parameter] public string? TertiaryText { get; set; }

/// <summary>
/// Custom tertiary text template
/// Custom tertiary text template.
/// </summary>
[Parameter] public RenderFragment? TertiaryTextTemplate { get; set; }

Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit 8e0cd04

Please sign in to comment.