Added various icons to use for input prefixes. Updated pagination cocmponent.

This commit is contained in:
2025-12-02 00:13:25 -05:00
parent de00bee801
commit e962832f24
18 changed files with 271 additions and 31 deletions

View File

@@ -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 */;
}

View File

@@ -8,6 +8,13 @@ public enum Graphic
Headphones,
Warning,
Heart,
Search,
Globe,
Translate
Translate,
Cart,
Circle,
Tag,
Person,
Sort,
Grid
}