Added various icons to use for input prefixes. Updated pagination cocmponent.
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
namespace JSMR.UI.Blazor.Enums;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace JSMR.UI.Blazor.Enums;
|
||||
|
||||
public enum ColorVarient
|
||||
{
|
||||
Surface,
|
||||
SurfaceContainer,
|
||||
SurfaceContainerHigh,
|
||||
SurfaceContainerLow,
|
||||
SurfaceContainerOutline,
|
||||
SurfaceContainerOutlineHigh,
|
||||
SurfaceContainerOutlineLow,
|
||||
Primary,
|
||||
Secondary,
|
||||
Black,
|
||||
@@ -11,4 +20,56 @@ public enum ColorVarient
|
||||
Blue,
|
||||
Orange,
|
||||
Pink
|
||||
}
|
||||
|
||||
public static class CssUtil
|
||||
{
|
||||
public static string ToClassName(this ColorVarient colorVarient) => colorVarient switch
|
||||
{
|
||||
ColorVarient.Surface => "surface",
|
||||
ColorVarient.SurfaceContainer => "surface-container",
|
||||
ColorVarient.SurfaceContainerHigh => "surface-container-high",
|
||||
ColorVarient.SurfaceContainerLow => "surface-container-low",
|
||||
ColorVarient.SurfaceContainerOutline => "surface-container-outline",
|
||||
ColorVarient.SurfaceContainerOutlineHigh => "surface-container-outline-high",
|
||||
ColorVarient.SurfaceContainerOutlineLow => "surface-container-outline-low",
|
||||
ColorVarient.Yellow => "text-yellow",
|
||||
ColorVarient.Green => "text-green",
|
||||
ColorVarient.Teal => "text-teal",
|
||||
ColorVarient.Blue => "text-blue",
|
||||
ColorVarient.Orange => "text-orange",
|
||||
ColorVarient.Pink => "text-pink",
|
||||
_ => ""
|
||||
};
|
||||
|
||||
public static string TextClass(ColorVarient colorVarient) => colorVarient switch
|
||||
{
|
||||
ColorVarient.Surface => "surface",
|
||||
ColorVarient.SurfaceContainer => "surface-container",
|
||||
ColorVarient.SurfaceContainerHigh => "surface-container-high",
|
||||
ColorVarient.SurfaceContainerLow => "surface-container-low",
|
||||
ColorVarient.Yellow => "text-yellow",
|
||||
ColorVarient.Green => "text-green",
|
||||
ColorVarient.Teal => "text-teal",
|
||||
ColorVarient.Blue => "text-blue",
|
||||
ColorVarient.Orange => "text-orange",
|
||||
ColorVarient.Pink => "text-pink",
|
||||
_ => ""
|
||||
};
|
||||
|
||||
//public static string TextClass(ColorVarient colorVarient) => colorVarient switch
|
||||
//{
|
||||
// ColorVarient.Primary => "text-primary",
|
||||
// ColorVarient.Secondary => "text-secondary",
|
||||
// ColorVarient.Black => "text-black",
|
||||
// ColorVarient.Yellow => "text-yellow",
|
||||
// ColorVarient.Green => "text-green",
|
||||
// ColorVarient.Teal => "text-teal",
|
||||
// ColorVarient.Blue => "text-blue",
|
||||
// ColorVarient.Orange => "text-orange",
|
||||
// ColorVarient.Pink => "text-pink",
|
||||
// _ => ""
|
||||
//};
|
||||
|
||||
//public static string BgClass(ColorVarient v) => /* similar */;
|
||||
}
|
||||
@@ -8,6 +8,13 @@ public enum Graphic
|
||||
Headphones,
|
||||
Warning,
|
||||
Heart,
|
||||
Search,
|
||||
Globe,
|
||||
Translate
|
||||
Translate,
|
||||
Cart,
|
||||
Circle,
|
||||
Tag,
|
||||
Person,
|
||||
Sort,
|
||||
Grid
|
||||
}
|
||||
Reference in New Issue
Block a user