Skip to content

Commit e8a5576

Browse files
authored
v7 Implementation (#431)
* Fixes and Implementations * Last Changes
1 parent 290d6dc commit e8a5576

File tree

24 files changed

+51
-66
lines changed

24 files changed

+51
-66
lines changed

CodeBeam.MudBlazor.Extensions.Docs/CodeBeam.MudBlazor.Extensions.Docs.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<ItemGroup>
1616
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.*" />
17-
<PackageReference Include="MudBlazor" Version="7.2.0" />
17+
<PackageReference Include="MudBlazor" Version="7.3.0" />
1818
</ItemGroup>
1919

2020
<ItemGroup>

CodeBeam.MudBlazor.Extensions.Docs/Components/ExampleCard.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ else
101101
var ass = System.Reflection.Assembly.GetExecutingAssembly();
102102
var names = ass.GetManifestResourceNames();
103103

104+
_lines = new();
104105
string path = $@"MudExtensions.Docs.Pages.Components.{ComponentName}.Examples.{ExampleName}.razor";
105106
var resourceStream = ass.GetManifestResourceStream(path);
106107
if (resourceStream != null)

CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/ColorProvider/ColorProviderPage.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<ColorProviderExample1 />
77
</ExampleCard>
88

9-
<ExampleCard ComponentName="ColorProvider" ExampleName="ColorProviderExample2" Title="How To Use" Description="">
9+
<ExampleCard ComponentName="ColorProvider" ExampleName="ColorProviderExample2" Title="How To Use" Description="" ShowCodeSection="false">
1010
<MudText>(1) Place <CodeBlock>@("<MudColorProvider />")</CodeBlock> after <CodeBlock>@("<MudThemeProvider />")</CodeBlock>.</MudText>
1111
<MudText>(2) After you define primary, secondary and tertiary colors, MudColorProvider creates CSS classes and variables.</MudText>
1212
<MudText>(3) Use this classes or variables in your components, like: <CodeBlock>Class="mud-m3-theme-primary"</CodeBlock> or <CodeBlock>Style="background-color: var(--mud-primary-40)"</CodeBlock> </MudText>

CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/ColorProvider/Examples/ColorProviderExample1.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
DarkMode="_darkMode"
1616
CustomColors="@_customColors" />
1717
<MudStack Spacing="3">
18-
<MudStack Row="true">
18+
<MudStack Row="true" Wrap="Wrap.Wrap">
1919
@for (var i = 0; i < 4; i++)
2020
{
2121
var label = i switch
@@ -140,8 +140,8 @@
140140
</MudItem>
141141
<MudItem xs="12" sm="4">
142142
<MudStack Spacing="4">
143-
<MudSwitchM3 @bind-Value="_showAllTones" Label="Show All Tones" Color="Color.Primary" />
144-
<MudSwitchM3 @bind-Value="_darkMode" Label="Dark Mode" Color="Color.Primary" />
143+
<MudSwitchM3 @bind-Value="_showAllTones" Label="Show All Tones" Color="Color.Secondary" />
144+
<MudSwitchM3 @bind-Value="_darkMode" Label="Dark Mode" Color="Color.Secondary" />
145145
<MudColorPicker @bind-Value="_primaryColor" Variant="Variant.Outlined" Label="Primary Color" />
146146
<MudColorPicker @bind-Value="_secondaryColor" Variant="Variant.Outlined" Label="Secondary Color" />
147147
<MudColorPicker @bind-Value="_tertiaryColor" Variant="Variant.Outlined" Label="Tertiary Color" />

CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/ComboBox/Examples/ComboBoxExample1.razor

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
string? _value;
7171
string? _text;
7272
IEnumerable<string>? _selectedValues;
73-
Variant _variant = Variant.Outlined;
7473
Margin _margin;
7574
Dense _dense = Dense.Standard;
7675
Color _color = Color.Primary;

CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/ComboBox/Examples/ComboBoxExample7.razor

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<MudGrid>
44
<MudItem xs="12" sm="8" Class="d-flex gap-4 align-center justify-center">
55
<MudComboBox @bind-Value="@_value" @bind-Text="@_text" @bind-SelectedValues="@_selectedValues" Variant="Variant.Filled" Label="Highlighted" Editable="true" MultiSelection="@_multiselection"
6-
autocomplete="new-password" Color="_color" Clearable="_clearable" Strict="_strict" Highlight="true" HighlightClass="@(_customHighlightClass ? "mud-theme-primary" : null)" DisableFilter="_disableFilter">
6+
autocomplete="new-password" Color="_color" Clearable="_clearable" Strict="_strict" Highlight="true" HighlightClass="@(_customHighlightClass ? "mud-theme-primary" : null)" EnableFilter="_enableFilter">
77
<MudComboBoxItem Value="@("Foo")">Foo</MudComboBoxItem>
88
<MudComboBoxItem Value="@("Bar")">Bar</MudComboBoxItem>
99
<MudComboBoxItem Value="@("Fizz")">Fizz</MudComboBoxItem>
@@ -15,7 +15,7 @@
1515
</MudComboBox>
1616

1717
<MudComboBox @bind-Value="@_value" @bind-Text="@_text" @bind-SelectedValues="@_selectedValues" Variant="Variant.Filled" Label="With NoItemsContent" Editable="true" MultiSelection="@_multiselection"
18-
autocomplete="new-password" Color="_color" Clearable="_clearable" Strict="_strict" DisableFilter="_disableFilter">
18+
autocomplete="new-password" Color="_color" Clearable="_clearable" Strict="_strict" EnableFilter="_enableFilter">
1919
<ChildContent>
2020
<MudComboBoxItem Value="@("Foo")">Foo</MudComboBoxItem>
2121
<MudComboBoxItem Value="@("Bar")">Bar</MudComboBoxItem>
@@ -40,7 +40,7 @@
4040
<MudSwitchM3 @bind-Value="@_strict" Label="Strict" Color="Color.Secondary" />
4141
<MudSwitchM3 @bind-Value="@_clearable" Label="Clearable" Color="Color.Secondary" />
4242
<MudSwitchM3 @bind-Value="@_customHighlightClass" Label="Custom Highlight" Color="Color.Secondary" />
43-
<MudSwitchM3 @bind-Value="@_disableFilter" Label="Disable Filter" Color="Color.Secondary" />
43+
<MudSwitchM3 @bind-Value="@_enableFilter" Label="Enable Filter" Color="Color.Secondary" />
4444
</MudStack>
4545
</MudItem>
4646
</MudGrid>
@@ -49,13 +49,12 @@
4949
string? _value;
5050
string? _text;
5151
IEnumerable<string>? _selectedValues;
52-
Variant _variant = Variant.Outlined;
5352
Color _color = Color.Primary;
5453
bool _multiselection;
5554
bool _clearable;
5655
bool _strict;
5756
bool _customHighlightClass;
58-
bool _disableFilter = false;
57+
bool _enableFilter = true;
5958

6059
private string[] states =
6160
{

CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/Gallery/Examples/GalleryExample1.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222

2323
<MudItem xs="12" sm="4">
2424
<MudStack Spacing="4">
25-
<MudNumericField @bind-Value="_itemPerLine" Label="Item Per Line" />
26-
<MudSwitch @bind-Value="_enableBackdropClick" Color="Color.Primary" Label="Enable Backdrop Click" />
27-
<MudSwitch @bind-Value="_showToolboxCloseButton" Color="Color.Primary" Label="Toolbox Close Button" />
28-
<MudSwitch @bind-Value="_showToolboxNavigationButtons" Color="Color.Primary" Label="Toolbox Navigation Buttons" />
29-
<MudSwitch @bind-Value="_enableAnimation" Color="Color.Primary" Label="Animation" />
25+
<MudNumericField @bind-Value="_itemPerLine" Label="Item Per Line" Variant="Variant.Outlined" Margin="Margin.Dense" />
26+
<MudSwitchM3 @bind-Value="_enableBackdropClick" Color="Color.Secondary" Label="Enable Backdrop Click" />
27+
<MudSwitchM3 @bind-Value="_showToolboxCloseButton" Color="Color.Secondary" Label="Toolbox Close Button" />
28+
<MudSwitchM3 @bind-Value="_showToolboxNavigationButtons" Color="Color.Secondary" Label="Toolbox Navigation Buttons" />
29+
<MudSwitchM3 @bind-Value="_enableAnimation" Color="Color.Secondary" Label="Animation" />
3030
<MudSelect @bind-Value="_maxWidth" Variant="Variant.Outlined" Label="MaxWidth" Margin="Margin.Dense" Dense="true">
3131
@foreach (MaxWidth item in Enum.GetValues<MaxWidth>())
3232
{

CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/InputStyler/Examples/InputStylerExample1.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@
4141

4242
<MudItem xs="12" sm="4">
4343
<MudStack Spacing="4">
44-
<MudSwitch @bind-Value="_always" Color="Color.Primary" Label="Always" />
45-
<MudColorPicker @bind-Value="_baseColor" Label="Base Color" ColorPickerView="ColorPickerView.Grid" Clearable="true" />
46-
<MudColorPicker @bind-Value="_textColor" Label="Text Color" ColorPickerView="ColorPickerView.Grid" Clearable="true" />
47-
<MudColorPicker @bind-Value="_labelColor" Label="Label Color" ColorPickerView="ColorPickerView.Grid" Clearable="true" />
48-
<MudColorPicker @bind-Value="_borderColor" Label="Border Color" ColorPickerView="ColorPickerView.Grid" Clearable="true" />
44+
<MudSwitchM3 @bind-Value="_always" Color="Color.Secondary" Label="Always" />
45+
<MudColorPicker @bind-Value="_baseColor" Label="Base Color" Variant="Variant.Outlined" ColorPickerView="ColorPickerView.Grid" Clearable="true" />
46+
<MudColorPicker @bind-Value="_textColor" Label="Text Color" Variant="Variant.Outlined" ColorPickerView="ColorPickerView.Grid" Clearable="true" />
47+
<MudColorPicker @bind-Value="_labelColor" Label="Label Color" Variant="Variant.Outlined" ColorPickerView="ColorPickerView.Grid" Clearable="true" />
48+
<MudColorPicker @bind-Value="_borderColor" Label="Border Color" Variant="Variant.Outlined" ColorPickerView="ColorPickerView.Grid" Clearable="true" />
4949
<MudTextField @bind-Value="_labelStyle" Label="Label Style" Variant="Variant.Outlined" />
5050
<MudButton OnClick="Reset">Reset</MudButton>
5151
</MudStack>

CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/ListExtended/Examples/ListExtendedExample4.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<MudItem xs="12" sm="8" Class="d-flex align-center justify-center">
55
<MudPaper Width="320px">
66
<MudListExtended T="string" Clickable="true" MultiSelection="true" MultiSelectionAlign="_listAlign"
7-
MultiSelectionComponent="_listSelectionComponent" DisableSelectedItemStyle="_disableSelectedItemStyle">
7+
MultiSelectionComponent="_listSelectionComponent" EnableSelectedItemStyle="_enableSelectedItemStyle">
88
<ChildContent>
99
<MudListItemExtended Value="@("Wifi")" Text="Wifi" Icon="@Icons.Material.Filled.Wifi" />
1010
<MudListItemExtended Value="@("Bluetooth")" Text="Bluetooth" Icon="@Icons.Material.Filled.Bluetooth" />
@@ -17,8 +17,8 @@
1717
</MudItem>
1818

1919
<MudItem xs="12" sm="4">
20-
<MudCheckBox @ref="_checkboxAlign" T="bool" ValueChanged="AlignChanged" Color="Color.Primary" Label="Align End" />
21-
<MudCheckBox @bind-Value="_disableSelectedItemStyle" Color="Color.Primary" Label="Disable Selected Item Style" />
20+
<MudCheckBox @ref="_checkboxAlign" T="bool" ValueChanged="AlignChanged" Color="Color.Secondary" Label="Align End" />
21+
<MudCheckBox @bind-Value="_enableSelectedItemStyle" Color="Color.Secondary" Label="Enable Selected Item Style" />
2222
<MudSelect T="MultiSelectionComponent" @bind-Value="_listSelectionComponent" AnchorOrigin="Origin.BottomCenter" TransformOrigin="Origin.TopCenter" Variant="Variant.Outlined">
2323
@foreach (MultiSelectionComponent comp in Enum.GetValues(typeof(MultiSelectionComponent)))
2424
{
@@ -32,7 +32,7 @@
3232
Align _listAlign = Align.Start;
3333
MultiSelectionComponent _listSelectionComponent = MultiSelectionComponent.CheckBox;
3434
MudCheckBox<bool>? _checkboxAlign;
35-
bool _disableSelectedItemStyle = false;
35+
bool _enableSelectedItemStyle = true;
3636
private void AlignChanged()
3737
{
3838
if (_checkboxAlign?.Value == false)

CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/Popup/Examples/PopupExample1.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ else
5858
}
5959
</MudSelect>
6060
<MudNumericField @bind-Value="_padding" Min="0" Max="300" Variant="Variant.Outlined" Label="Padding" />
61-
<MudSwitch @bind-Value="_enableAnimation" Color="Color.Primary" Label="Enable Animation" />
61+
<MudSwitchM3 @bind-Value="_enableAnimation" Color="Color.Secondary" Label="Enable Animation" />
6262
<MudButton OnClick="@(() => _open = true)">Show Popup</MudButton>
6363
</MudStack>
6464
</MudItem>

0 commit comments

Comments
 (0)