diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor index 2ecc51de0e..ef88aa7ecf 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor @@ -13,6 +13,8 @@ ComponentPublicMembers="componentPublicMembers"> +
Basic examples of BitSearchBox including a default and a disabled state.
+
Basic @@ -29,6 +31,8 @@ +
Demonstrating the underlined style of BitSearchBox in both enabled and disabled states.
+
Basic Underlined SearchBox @@ -45,6 +49,8 @@ +
Examples of BitSearchBox with various icon configurations such as fixed icon, no animation, custom icon, and no icon.
+
SearchBox with fixed icon @@ -71,6 +77,8 @@ +
Showcasing BitSearchBox with a search button in various configurations, including custom button icon and disabled state.
+
Basic SearchBox @@ -98,22 +106,34 @@ +
Explore styling and class customization for BitSearchBox, including component styles, custom classes, and detailed styles.
+

Component's Style & Class: - +
+ +
-
+

Styles & Classes: +
+ Styles="@(new() { Root = "margin-inline: 1rem;", + Focused = "--focused-background: #b2b2b25a;", + Input = "padding: 0.5rem;", + InputContainer = "background: var(--focused-background);" })" />
- +
@@ -121,6 +141,8 @@ +
BitSearchBox visibility examples including visible, hidden, and collapsed states.
+
Visible: [ ]
Hidden: [ ]
@@ -131,6 +153,8 @@ +
Binding examples for BitSearchBox including two-way binding, OnChange, and OnSearch events.
+
Two-way Bind @@ -155,6 +179,8 @@ +
Demonstrating validation of BitSearchBox using data annotations.
+
@@ -167,6 +193,8 @@ +
Examples of BitSearchBox with suggestion list, including custom filtering, minimum trigger characters, and more.
+
Items: @@ -210,7 +238,9 @@ -
+
Use the BitSearchBox component in right-to-left (RTL).
+
+

diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor.cs b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor.cs index 095550d3b8..17afa8070a 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor.cs +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor.cs @@ -377,31 +377,73 @@ private async Task> LoadItems(string? search, int count) private readonly string example5RazorCode = @" - + + + - -"; + + +"; private readonly string example6RazorCode = @" Visible: [ ] diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor.scss b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor.scss index 4f934b3894..a0d60e6ac7 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor.scss +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor.scss @@ -1,40 +1,70 @@ -@import '../../../../Styles/abstracts/_functions.scss'; +@import '../../../../Styles/abstracts/_bit-css-variables.scss'; + +.example-content { + display: flex; + gap: 1.25rem; + max-width: 19rem; + flex-flow: row wrap; + align-items: center; + + &.column { + flex-direction: column; + align-items: flex-start; + } + + & > div { + width: 100%; + } +} ::deep { - .example-content { - display: flex; - gap: rem2(20px); - flex-flow: row wrap; - align-items: center; - max-width: rem2(304px); + .custom-class { + overflow: hidden; + margin-inline: 1rem; + border-radius: 1rem; + border: 2px solid tomato; + } + + .custom-class * { + border: none; + } - &.column { - flex-direction: column; - align-items: flex-start; - } + .custom-root { + margin-inline: 1rem; + } - & > div { - width: 100%; - } + .custom-input-container { + height: 3rem; + overflow: hidden; + align-items: center; + border-radius: 1.5rem; + border-color: #13a3a375; + background-color: #13a3a375; } - .validation-message { - color: red; - font-size: rem2(12px); + .custom-focused .custom-input-container { + border-width: 1px; + border-color: #13a3a375; } - .custom-class { - border: 1px solid red; - box-shadow: aqua 0 0 1rem; + .custom-clear:hover { + background: transparent; + } + + .custom-icon { + color: darkslategrey; } - .custom-clear { - color: blueviolet; + .custom-icon-wrapper { + width: 2rem; + height: 2rem; + border-radius: 1rem; + margin-inline: 0.5rem; + background-color: whitesmoke; } - .custom-search { - margin-right: 0.25rem; - border-radius: 0.5rem; - background-color: tomato; + .validation-message { + font-size: rem2(12px); + color: $bit-color-error; } }