Skip to content

Commit

Permalink
📝 docs(List): missing a slim demo (#2288)
Browse files Browse the repository at this point in the history
  • Loading branch information
capdiem authored Dec 18, 2024
1 parent 808676c commit 22eb782
Show file tree
Hide file tree
Showing 107 changed files with 105 additions and 184 deletions.
32 changes: 32 additions & 0 deletions docs/Masa.Blazor.Docs/Examples/components/lists/Slim.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<MCard Class="mx-auto"
MaxWidth="300"
Tile>
<MList Slim="@_slim"
Dense>
<MSubheader>
<MCheckbox @bind-Value="_slim" Label="Slim"></MCheckbox>
</MSubheader>
@foreach (var item in _items)
{
<MListItem PrependIcon="@item.Icon" Title="@item.Text"/>
}
</MList>
</MCard>

@code{
private bool _slim = true;

private Item[] _items =
[
new Item { Text = "Real-Time", Icon = "mdi-clock" },
new Item { Text = "Audience", Icon = "mdi-account" },
new Item { Text = "Conversions", Icon = "mdi-flag" }
];

class Item
{
public string Text { get; set; }
public string Icon { get; set; }
}

}
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Alert/MAlertTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Alert
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/App/MAppTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Linq;
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.App
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/App/MMainTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using AngleSharp.Css.Dom;
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Main
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/AppBar/MAppBarTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using AngleSharp.Css.Dom;
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.AppBar
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Aspect ratios/MResponsiveTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Responsive
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Autocompletes/MAutocompleteTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using AngleSharp.Dom;
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Autocompletes
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Avatar/MAvatarTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Avatar
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Badge/MBadgeTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Badge
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Banner/MBannerTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Banner
{
Expand Down
4 changes: 1 addition & 3 deletions test/Masa.Blazor.Test/Border/MBorderTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Border
namespace Masa.Blazor.Test.Border
{
[TestClass]
public class MBorderTests : TestBase
Expand Down
4 changes: 1 addition & 3 deletions test/Masa.Blazor.Test/Breadcrumbs/MBreadcrumbsItemTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Breadcrumbs
namespace Masa.Blazor.Test.Breadcrumbs
{
[TestClass]
public class MBreadcrumbsItemTests : TestBase
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Breadcrumbs/MBreadcrumbsTeste.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Breadcrumbs
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Button/MButtonGroupTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Button
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Button/MButtonTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Button
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Card/MCardActionsTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Card
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Card/MCardSubtitleTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Card
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Card/MCardTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Card
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Card/MCardTitleTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Card
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Checkbox/MCheckboxTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Checkbox
{
Expand Down
4 changes: 1 addition & 3 deletions test/Masa.Blazor.Test/Checkbox/MSimpleCheckboxTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Checkbox
namespace Masa.Blazor.Test.Checkbox
{
[TestClass]
public class MSimpleCheckboxTests : TestBase
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Chip/MChipTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Chip
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/ChipGroup/MChipGroupTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.ChipGroup
{
Expand Down
4 changes: 1 addition & 3 deletions test/Masa.Blazor.Test/Counter/MCounterTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Counter
namespace Masa.Blazor.Test.Counter
{
[TestClass]
public class MCounterTests : TestBase
Expand Down
14 changes: 14 additions & 0 deletions test/Masa.Blazor.Test/Cron/PCronTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using Bunit;

namespace Masa.Blazor.Test.Cron;

[TestClass]
public class PCronTests : TestBase
{
[TestMethod]
public void Render()
{
var cut = RenderComponent<PCron>();
cut.Find(".m-cron");
}
}
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/DataIterator/MDataFooterTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
4 changes: 1 addition & 3 deletions test/Masa.Blazor.Test/DataIterators/MDataFooterTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.DataIterators
namespace Masa.Blazor.Test.DataIterators
{
[TestClass]
public class MDataFooterTests : TestBase
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/DataIterators/MDataIteratorTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.DataIterators
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/DataTable/MDataTableHeaderTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Masa.Blazor.Components.DataTable;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.DataTable
{
Expand Down
4 changes: 1 addition & 3 deletions test/Masa.Blazor.Test/DataTable/MDataTableTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.DataTable
namespace Masa.Blazor.Test.DataTable
{
[TestClass]
public class MDataTableTests : TestBase
Expand Down
4 changes: 1 addition & 3 deletions test/Masa.Blazor.Test/DatePicker/MDatePickerTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.DatePicker
namespace Masa.Blazor.Test.DatePicker
{
[TestClass]
public class MDatePickerTests : TestBase
Expand Down
4 changes: 1 addition & 3 deletions test/Masa.Blazor.Test/Dialog/MDialogTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Dialog
namespace Masa.Blazor.Test.Dialog
{
[TestClass]
public class MDialogTests : TestBase
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Divider/MDividerTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Divider
{
Expand Down
4 changes: 1 addition & 3 deletions test/Masa.Blazor.Test/ECharts/MEChartsTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.ECharts
namespace Masa.Blazor.Test.ECharts
{
[TestClass]
public class MEChartsTests : TestBase
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.ExpansionPanel
namespace Masa.Blazor.Test.ExpansionPanel
{
[TestClass]
public class MExpansionPanelHeaderTests : TestBase
Expand Down
4 changes: 1 addition & 3 deletions test/Masa.Blazor.Test/ExpansionPanel/MExpansionPanelTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.ExpansionPanel
namespace Masa.Blazor.Test.ExpansionPanel
{
[TestClass]
public class MExpansionPanelTests : TestBase
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.ExpansionPanel
namespace Masa.Blazor.Test.ExpansionPanel
{
[TestClass]
public class MExpansionPanelsTests : TestBase
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/FileInput/MFileInputTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Bunit;
using Microsoft.AspNetCore.Components.Forms;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;

namespace Masa.Blazor.Test.FileInput
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Footer/MFooterTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Footer
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Form/MFormTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Form
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Grid/MColTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Grid
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Grid/MContainerTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Grid
{
Expand Down
4 changes: 1 addition & 3 deletions test/Masa.Blazor.Test/Grid/MRowTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Grid
namespace Masa.Blazor.Test.Grid
{
[TestClass]
public class MRowTests : TestBase
Expand Down
4 changes: 1 addition & 3 deletions test/Masa.Blazor.Test/Hover/MHoverTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Hover
namespace Masa.Blazor.Test.Hover
{
[TestClass]
public class MHoverTests : TestBase
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Icon/MIconTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
4 changes: 1 addition & 3 deletions test/Masa.Blazor.Test/Icons/MIconTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Icons
namespace Masa.Blazor.Test.Icons
{
[TestClass]
public class MIconTests : TestBase
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Image/MImageTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Image
{
Expand Down
1 change: 0 additions & 1 deletion test/Masa.Blazor.Test/Input/MInputTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bunit;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Input
{
Expand Down
4 changes: 1 addition & 3 deletions test/Masa.Blazor.Test/ItemGroup/MItemGroupTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.ItemGroup
namespace Masa.Blazor.Test.ItemGroup
{
[TestClass]
public class MItemGroupTests : TestBase
Expand Down
4 changes: 1 addition & 3 deletions test/Masa.Blazor.Test/ItemGroup/MItemTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.ItemGroup
namespace Masa.Blazor.Test.ItemGroup
{
[TestClass]
public class MItemTests : TestBase
Expand Down
4 changes: 1 addition & 3 deletions test/Masa.Blazor.Test/Label/MLabelTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.Label
namespace Masa.Blazor.Test.Label
{
[TestClass]
public class MLabelTests : TestBase
Expand Down
4 changes: 1 addition & 3 deletions test/Masa.Blazor.Test/List/MListGroupTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Masa.Blazor.Test.List
namespace Masa.Blazor.Test.List
{
[TestClass]
public class MListGroupTests : TestBase
Expand Down
Loading

0 comments on commit 22eb782

Please sign in to comment.