-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef5d1bc
commit a867dad
Showing
45 changed files
with
798 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,21 @@ | ||
@namespace LumexUI.Docs.Components | ||
|
||
<header class="ad-intro"> | ||
<p class="ad-intro-category">@Category</p> | ||
<h1 class="ad-intro-title">@Title</h1> | ||
<div class="ad-intro-description"> | ||
@if( Description is not null ) | ||
{ | ||
@Description | ||
} | ||
else | ||
{ | ||
@Subtitle | ||
} | ||
<p class="mb-2 text-sm text-semibold text-orange-400"> | ||
@Category | ||
</p> | ||
|
||
<h1 class="text-3xl text-extrabold"> | ||
@Title | ||
</h1> | ||
|
||
<div class="ad-intro-description lh-lg text-lg text-light"> | ||
@Description | ||
</div> | ||
</header> | ||
|
||
@code { | ||
[Parameter] public RenderFragment? Description { get; set; } | ||
[Parameter] public string? Title { get; set; } | ||
[Parameter] public string? Subtitle { get; set; } | ||
[Parameter] public string? Category { get; set; } | ||
|
||
protected override void OnParametersSet() | ||
{ | ||
if( Description is not null && !string.IsNullOrEmpty( Subtitle ) ) | ||
{ | ||
throw new InvalidOperationException( | ||
$"{typeof( DocsPageIntro )} requires one of {nameof( Description )} or {nameof( Subtitle )}, but both were specified." ); | ||
} | ||
} | ||
[Parameter] public string? Title { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
@page "/docs/components/button" | ||
@namespace LumexUI.Docs.Pages | ||
|
||
@using LumexUI.Docs.Pages.Components.Button.Examples | ||
|
||
<DocsPage> | ||
<DocsPageIntro Title="Button" Category="Components"> | ||
<Description> | ||
<p>Buttons allow users to take actions, and make choices, with a single tap.</p> | ||
</Description> | ||
</DocsPageIntro> | ||
|
||
<DocsPageContent> | ||
<DocsPageSection Title="Usage"> | ||
<ExampleSnippet Code="ButtonUsage"> | ||
<ButtonUsage /> | ||
</ExampleSnippet> | ||
|
||
<DocsPageSection Title="Sizes"> | ||
<ExampleSnippet Code="ButtonSizes"> | ||
<ButtonSizes /> | ||
</ExampleSnippet> | ||
</DocsPageSection> | ||
|
||
<DocsPageSection Title="Radius"> | ||
<ExampleSnippet Code="ButtonRadius"> | ||
<ButtonRadius /> | ||
</ExampleSnippet> | ||
</DocsPageSection> | ||
|
||
<DocsPageSection Title="Colors"> | ||
<ExampleSnippet Code="ButtonColors"> | ||
<ButtonColors /> | ||
</ExampleSnippet> | ||
</DocsPageSection> | ||
|
||
<DocsPageSection Title="Variants"> | ||
<ExampleSnippet Code="ButtonVariants"> | ||
<ButtonVariants /> | ||
</ExampleSnippet> | ||
</DocsPageSection> | ||
|
||
<DocsPageSection Title="Disabled"> | ||
<ExampleSnippet Code="ButtonDisabled"> | ||
<ButtonDisabled /> | ||
</ExampleSnippet> | ||
</DocsPageSection> | ||
|
||
<DocsPageSection Title="With Icons"> | ||
<ExampleSnippet Code="ButtonWithIcons"> | ||
<ButtonWithIcons /> | ||
</ExampleSnippet> | ||
</DocsPageSection> | ||
|
||
<DocsPageSection Title="Icon Only"> | ||
<ExampleSnippet Code="ButtonIconOnly"> | ||
<ButtonIconOnly /> | ||
</ExampleSnippet> | ||
</DocsPageSection> | ||
|
||
<DocsPageSection Title="Custom Styles"> | ||
<ExampleSnippet Code="ButtonCustomStyles"> | ||
<ButtonCustomStyles /> | ||
</ExampleSnippet> | ||
</DocsPageSection> | ||
|
||
</DocsPageSection> | ||
</DocsPageContent> | ||
</DocsPage> |
7 changes: 7 additions & 0 deletions
7
docs/LumexUI.Docs/Pages/Components/Button/Examples/ButtonColors.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<LumexButton Color="@ThemeColor.Default">Default</LumexButton> | ||
<LumexButton Color="@ThemeColor.Primary">Primary</LumexButton> | ||
<LumexButton Color="@ThemeColor.Secondary">Secondary</LumexButton> | ||
<LumexButton Color="@ThemeColor.Success">Success</LumexButton> | ||
<LumexButton Color="@ThemeColor.Warning">Warning</LumexButton> | ||
<LumexButton Color="@ThemeColor.Danger">Danger</LumexButton> | ||
<LumexButton Color="@ThemeColor.Info">Info</LumexButton> |
11 changes: 11 additions & 0 deletions
11
docs/LumexUI.Docs/Pages/Components/Button/Examples/ButtonCustomStyles.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<LumexButton Class="custom-variant">Button</LumexButton> | ||
|
||
<style> | ||
.custom-variant { | ||
--LumexButton-color: #fff; | ||
--LumexButton-font-weight: 500; | ||
--LumexButton-border-color: hsl(var(--lumex-secondary-100)); | ||
--LumexButton-border-width: 2px; | ||
--LumexButton-bg: hsl(var(--lumex-secondary-50)); | ||
} | ||
</style> |
9 changes: 9 additions & 0 deletions
9
docs/LumexUI.Docs/Pages/Components/Button/Examples/ButtonDisabled.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<LumexButton Color="@ThemeColor.Primary" | ||
Disabled="@true"> | ||
Disabled | ||
</LumexButton> | ||
<LumexButton Color="@ThemeColor.Primary" | ||
Variant="@Variant.Outlined" | ||
Class="@Constants.ComponentStates.Disabled"> | ||
Disabled | ||
</LumexButton> |
6 changes: 6 additions & 0 deletions
6
docs/LumexUI.Docs/Pages/Components/Button/Examples/ButtonIconOnly.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<LumexButton Color="@ThemeColor.Danger" IconOnly="@true"> | ||
<LumexIcon Icon="@Icons.Rounded.Favorite" /> | ||
</LumexButton> | ||
<LumexButton Color="@ThemeColor.Primary" Variant="@Variant.Outlined" IconOnly="@true"> | ||
<LumexIcon Icon="@Icons.Rounded.SettingsAccessibility" /> | ||
</LumexButton> |
8 changes: 8 additions & 0 deletions
8
docs/LumexUI.Docs/Pages/Components/Button/Examples/ButtonRadius.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<LumexButton Class="rounded-none">None</LumexButton> | ||
<LumexButton Class="rounded-xs">XSmall</LumexButton> | ||
<LumexButton Class="rounded-sm">Small</LumexButton> | ||
<LumexButton Class="rounded-md">Medium</LumexButton> | ||
<LumexButton Class="rounded-lg">Large</LumexButton> | ||
<LumexButton Class="rounded-xl">XLarge</LumexButton> | ||
<LumexButton Class="rounded-xxl">XXLarge</LumexButton> | ||
<LumexButton Class="rounded-full">Full</LumexButton> |
3 changes: 3 additions & 0 deletions
3
docs/LumexUI.Docs/Pages/Components/Button/Examples/ButtonSizes.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<LumexButton Size="@Size.Small">Small</LumexButton> | ||
<LumexButton Size="@Size.Medium">Medium</LumexButton> | ||
<LumexButton Size="@Size.Large">Large</LumexButton> |
1 change: 1 addition & 0 deletions
1
docs/LumexUI.Docs/Pages/Components/Button/Examples/ButtonUsage.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<LumexButton Color="@ThemeColor.Primary">Button</LumexButton> |
6 changes: 6 additions & 0 deletions
6
docs/LumexUI.Docs/Pages/Components/Button/Examples/ButtonVariants.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<LumexButton Color="@ThemeColor.Primary" Variant="@Variant.Solid">Solid</LumexButton> | ||
<LumexButton Color="@ThemeColor.Primary" Variant="@Variant.Outlined">Outlined</LumexButton> | ||
<LumexButton Color="@ThemeColor.Primary" Variant="@Variant.Flat">Flat</LumexButton> | ||
<LumexButton Color="@ThemeColor.Primary" Variant="@Variant.Shadow">Shadow</LumexButton> | ||
<LumexButton Color="@ThemeColor.Primary" Variant="@Variant.Ghost">Ghost</LumexButton> | ||
<LumexButton Color="@ThemeColor.Primary" Variant="@Variant.Light">Light</LumexButton> |
9 changes: 9 additions & 0 deletions
9
docs/LumexUI.Docs/Pages/Components/Button/Examples/ButtonWithIcons.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<LumexButton Color="@ThemeColor.Primary" | ||
EndIcon="@Icons.Rounded.Share"> | ||
Share | ||
</LumexButton> | ||
<LumexButton Color="@ThemeColor.Danger" | ||
Variant="@Variant.Ghost" | ||
StartIcon="@Icons.Rounded.Cancel"> | ||
Cancel | ||
</LumexButton> |
8 changes: 4 additions & 4 deletions
8
docs/LumexUI.Docs/Pages/Getting Started/Usage/Examples/UsageQuickstartButton.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.