Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 7.1.0 (#5971) #5976

Merged
merged 139 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
4f8f516
feat(websites): update bit versions in Platform website's docs to 7.0…
ysmoradi Oct 15, 2023
42806e5
feat(blazorui): improve UI/UX of go to today button in BitCalendar #5…
Cyrus-Sushiant Oct 16, 2023
2b22b6b
feat(blazorui): add Prefix options to render the ChoiceGroup items #5…
msynk Oct 17, 2023
62fd0ed
feat(blazorui): improve BitCalendar component #5598 (#5604)
msynk Oct 17, 2023
3812f92
feat(blazorui): add Index property to ChoiceGroup items #5606 (#5611)
msynk Oct 17, 2023
c3ced33
fix(blazorui): resolve padding issues of the item's label #5607 (#5612)
msynk Oct 17, 2023
fcb83f2
feat(prerelease): v-7.1.0-pre-01 #5613 (#5614)
msynk Oct 17, 2023
f90e9ab
fix(deps): resolve incorrect package versions #5661 (#5662)
msynk Oct 18, 2023
529b3b0
feat(blazorui): rename BitTimePicker to BitCircularTimePicker #5608 (…
Cyrus-Sushiant Oct 18, 2023
594c08a
feat(templates): remove Android transparent StatusBar #5626 (#5632)
mhrastegari Oct 18, 2023
4321ff3
fix(blazorui): resolve incorrect order in properties of the BitTextFi…
vahid-1992 Oct 18, 2023
ef8ac9d
fix(blazorui): resolve the incorrect style of the icon in the LabelTe…
hanieh1995 Oct 19, 2023
dc97ce7
feat(blazorui): update title of Accordion with Description section of…
KriteshTimsina Oct 19, 2023
02ab552
feat(blazorui): update title of OnItemClick event section of Pivot de…
Developer-Deb Oct 19, 2023
7a360fb
fix(blaozrui): resolve incorrect style of icon in LabelTemplate sampl…
hanieh1995 Oct 19, 2023
c24729e
fix(blazorui): resolve BitTimePicker hour selection bug #4491 (#5693)
Cyrus-Sushiant Oct 19, 2023
a4caff4
feat(templates): update incorrect call to sync Any in CategoryControl…
ssingh3856 Oct 19, 2023
139e579
feat(github): add good first issue link to root README.md #5616 (#5698)
msynk Oct 19, 2023
346d5a7
feat(templates): remove transparent titlebar of WinUI #5695 (#5697)
mhrastegari Oct 19, 2023
553b5aa
fix(blazorui): resolve incorrect title of the Stack demo page #5685 (…
Ali-Nasir-01 Oct 20, 2023
fe96367
fix(blazorui): update title of Disabled Accordion & Two way binding s…
4LIR3Z4 Oct 20, 2023
31206fd
feat(templates): Remove redundant AllowCredentials call in TodoTempla…
amirinsight Oct 20, 2023
ff6e90a
fix(blazorui): resolve incorrect page title of the Separator demo pag…
AMIR34A Oct 20, 2023
031f852
fix(templates): remove redundant IsDevelopment check in TodoTemplate …
lexi1811 Oct 20, 2023
14c07b2
feat(blazorui): update title of Controlled BitIcon section of Icon de…
aalaei Oct 20, 2023
8bcda09
feat(blazorui): update title of With Custom Class section of Icon dem…
alimahdibahrami Oct 20, 2023
8f43e35
feat(blazorui): update title of Basic List with items provider sectio…
amirmasud111 Oct 20, 2023
1493c66
feat(templates): remove redundant content of CultureInfoManager in To…
Silverbrain Oct 20, 2023
3b44f7e
fix(blazorui): resolve incorrect page title of Scrollable demo #5683 …
ShayanFaghihi Oct 20, 2023
c043bbe
feat(blazorui): improve BitIconButton ClassStyles #5728 (#5729)
mhrastegari Oct 21, 2023
2a51baa
feat(blazorui): update title of Draggable BitModal section of Modal d…
arashbakhshi2004 Oct 21, 2023
4349b6a
feat(blazorui): update title of With Custom Style section of Icon dem…
arezooHND Oct 21, 2023
c0297b8
feat(blazorui): add missing classes & styles for Prefix of BitChoiceG…
msynk Oct 21, 2023
db991f1
fix(blazorui): resolve incorrect capitalization of the Checkbox in Na…
nazaninkalhor Oct 21, 2023
8c5bb2d
feat(blazorui): update title of Controlled Accordion section of Accor…
Niloufar97 Oct 21, 2023
938a01d
feat(blazorui): update title of Customized Accordion section of Accor…
MahdiAbbasi7 Oct 21, 2023
f1a482a
fix(blazorui): resolve BitCircularTimePicker callout position in resp…
Cyrus-Sushiant Oct 21, 2023
aa477cc
feat(blazorui): improve BitLoadingButton ClassStyles #5737 (#5738)
mhrastegari Oct 21, 2023
377dc9b
feat(blazorui): update title of Basic BitModal section of Modal demo …
hirezadehghani Oct 21, 2023
e54f2d5
feat(blazorui): update title of Indeterminate Progress Indicator sect…
sharpWit Oct 21, 2023
27634e0
feat(blazorui): update title of BitPivot positioning section of Pivot…
HarshVR1947 Oct 22, 2023
790880f
feat(blazorui): update title of Basic Accordion section of Accordion …
Poorya-Rajabi Oct 22, 2023
651c0e4
feat(blazorui): improve BitCompoundButton ClassStyles #5739 (#5743)
mhrastegari Oct 22, 2023
b407d91
feat(blazorui): remove redundant content of theBitAccordionDemo.razor…
Shayestefar Oct 22, 2023
41c76cb
feat(templates): update ChangePrerenderResponseStatusCode usages in t…
ysmoradi Oct 22, 2023
4bc95e5
feat(templates): change ToLower method to ToLowerInvariant in TodoTem…
Banerjee2021 Oct 22, 2023
2c1f464
feat(websites): update Pricing page of Platform website #5750 (#5763)
msynk Oct 22, 2023
24de4e9
feat(blazorui): add EmptyContent to BitBasicList #5759 (#5775)
msynk Oct 22, 2023
1076747
feat(blazorui): update title of Label positioning section of Spinner …
mojtabanpe Oct 22, 2023
29565f7
feat(prerelease): v-7.1.0-pre-02 #5749 (#5777)
msynk Oct 23, 2023
e42f45d
feat(templates): change ToLower method to ToLowerInvariant in BlazorD…
Hossein-Mirazimi Oct 23, 2023
592cb0e
feat(blazorui): update title of BitSpinner section of Spinner demo #5…
alireza107 Oct 23, 2023
e9bbbff
feat(templates): add missing Linux to comment in IServiceCollectionEx…
ShamimShahraeini Oct 23, 2023
39bb720
fix(blazorui): resolve BitDatePicker year click issue #5762 (#5778)
Cyrus-Sushiant Oct 23, 2023
3ce50e1
feat(websites): update usage of BitIconButton in Sales website #5783 …
msynk Oct 23, 2023
1060c26
feat(blazorui): replace DateTime with DateTimeOffset #5786 (#5781)
zandiarash Oct 23, 2023
7a0a19c
feat(templates): use strict samesite for cookies #5788 (#5789)
ysmoradi Oct 23, 2023
e57d3ff
fix(websites): resolve contact us form validation issues in Platform …
msynk Oct 23, 2023
49b0d66
feat(blazorui): update title of AutoPlay Carousel section of Carousel…
Rajneesh2223 Oct 24, 2023
80b1794
feat(github): update number of nuget packages downloads in root READM…
bitsali Oct 24, 2023
96c3c5c
feat(templates): use aspnetcore 8 IExceptionHandler in project templa…
ysmoradi Oct 24, 2023
b200a4f
feat(blazorui): make all hardcoded texts customizable in BitCalendar …
mhrastegari Oct 24, 2023
f66757e
feat(blazorui): improve BitDatePicker component #5798 (#5805)
msynk Oct 25, 2023
65d5d18
feat(blazorui): add BitSnackbar tests #4402 (#5806)
0xSamman Oct 25, 2023
4c3e26c
feat(blazorui): improve BitDatePicker callout #5804 (#5815)
msynk Oct 25, 2023
61da0bf
feat(websites): update number of nuget packages downloads on Platform…
zahra-yousefi Oct 25, 2023
dbb6fe2
feat(blazorui): add BitTypography tests #4163 (#5822)
0xSamman Oct 25, 2023
678b999
feat(infra): remove old serizalization infrastructure from Exceptions…
zandiarash Oct 26, 2023
98e24f8
fix(blazorui): resolve callout width calculation issue #5829 (#5830)
msynk Oct 26, 2023
62ddcb6
feat(infra): update the name of the appSettings variables #5827 (#5828)
zandiarash Oct 26, 2023
7772422
feat(blazorui): improve the BitDatePicker demo page #5803 (#5834)
msynk Oct 26, 2023
a14f080
feat(blazorui): add missing ClassBuilder resets to the BitTypography …
0xSamman Oct 26, 2023
07c36ea
feat(blazorui): update title of BitLoading components section of Load…
snehpr966 Oct 26, 2023
489d978
fix(blazorui): resolve style issues of BitDatePicker demo page #5838 …
msynk Oct 26, 2023
762eeba
feat(blazorui): add classes/styles to BitCalendar #5824 (#5825)
mhrastegari Oct 27, 2023
6ba109f
feat(templates): add missing Linux to comment in IServiceCollectionEx…
alireza-dhp Oct 27, 2023
9dbaecd
feat(blazorui): improve BitCalendar's structure based on new refactor…
msynk Oct 27, 2023
0b0947e
feat(blazorui): remove redundant field in BitCalendar #5844 (#5846)
msynk Oct 27, 2023
06104b5
feat(blazorui): remove redundant element in BitCalendar #5848 (#5849)
msynk Oct 27, 2023
5960a18
feat(blazorui): add missing selected date's style to BitCalendar #585…
msynk Oct 27, 2023
cf89509
feat(blazorui): improve structure of BitDatePicker #5850 (#5853)
msynk Oct 27, 2023
0b08fcb
feat(prerelease): v-7.1.0-pre-03 #5792 (#5854)
msynk Oct 27, 2023
3f56811
feat(blazorui): add BitCalendar ClassStyles demo #5855 (#5856)
mhrastegari Oct 27, 2023
5569da7
feat(blazorui): add missing class styles to BitCalendar #5857 (#5858)
mhrastegari Oct 27, 2023
1cf679c
feat(templates): add maui essentials to project templates #5860 (#5863)
ysmoradi Oct 28, 2023
91a0024
feat(templates): add launch json to project templates #5861 (#5862)
ysmoradi Oct 28, 2023
d067fb5
feat(templates): add disconnect detection support to core projects of…
ysmoradi Oct 28, 2023
d681d01
feat(blazorui): improve performance of BitCalendar #5859 (#5866)
msynk Oct 28, 2023
ae35149
feat(websites): add new GTM script to Platform website #5865 (#5868)
msynk Oct 28, 2023
1083c9c
feat(blazorui): replace hard-coded texts in BitDatePicker with new pa…
mhrastegari Oct 28, 2023
e4a1c96
fix(blazorui): resolve BitCalendar default values #5869 (#5870)
mhrastegari Oct 28, 2023
f446e4d
fix(blazorui): resolve inconsistence responsive width issues in callo…
msynk Oct 28, 2023
36a42c5
feat(blazorui): improve Titles of BitCalendar #5872 (#5873)
msynk Oct 28, 2023
7b6b105
feat(blazorui): add Classes/Styles parameters to BitDatePicker #5812 …
mhrastegari Oct 29, 2023
dfee862
feat(blazorui): add Text ButtonStyle to BitButton #5836 (#5840)
0xSamman Oct 29, 2023
8925303
feat(blazorui): improve BitModal Classes/Styles #5876 (#5877)
mhrastegari Oct 29, 2023
bf9f03d
feat(blazorui): update title of Basic List with custom role and class…
Neha5679 Oct 30, 2023
0fd5482
feat(blazorui): display culture-specific AM/PM in BitCircularTimePick…
Cyrus-Sushiant Oct 30, 2023
9cbe844
feat(blazorui): improve BitPivot Classes/Styles #5882 (#5883)
mhrastegari Oct 30, 2023
74b36e8
feat(blazorui): update title of Basic List with overscan count sectio…
DevanshKyada27 Oct 30, 2023
f953e09
feat(blazorui): update title of Basic List with Grouped items provide…
renatmkhm Oct 30, 2023
05275b3
feat(blazorui): update title of Overflow with Icon sections of Breadc…
nabinbhatt Oct 31, 2023
3a75fce
feat(blazorui): add Color parameter to BitButton #5881 (#5892)
0xSamman Oct 31, 2023
1e5e1be
feat(blazorui): change ToLower method to ToLowerInvariant in AdminPan…
TRISHAHALDER Oct 31, 2023
66b0723
feat(blazorui): improve BitPanel Classes/Styles #5893 (#5894)
mhrastegari Oct 31, 2023
e6db667
fix(github): resolve typo issues in CONTRIBUTING.md and how-to-build.…
VaibhavWakde52 Oct 31, 2023
e7116cc
feat(blazorui): add missing sample code and implementation for the ne…
0xSamman Oct 31, 2023
bc00e97
feat(blazorui): update title of Default BitPivot section of Pivot dem…
manavb2214 Oct 31, 2023
2605fa1
feat(blazorui): rename ButtonColor parameter of BitButton to Color #5…
0xSamman Oct 31, 2023
db4eeec
feat(blazorui): improve BitNav Classes/Styles #5906 (#5907)
mhrastegari Oct 31, 2023
272ecfc
feat(websites): update twitter (X) logo in Platform website #5911 (#5…
niranjan-kurhade Nov 1, 2023
faf20ea
feat(blazorui): remove BitClassStylePair class #5909 (#5910)
mhrastegari Nov 1, 2023
9aa2b6d
feat(blazorui): add Size parameter to BitButton #5885 (#5914)
0xSamman Nov 1, 2023
bf0044a
feat(blazorui): add TimePicker component #5794 (#5913)
Cyrus-Sushiant Nov 1, 2023
29425cc
feat(blazorui): add different styles for disabled states of BitButton…
0xSamman Nov 1, 2023
085f6b4
feat(blazorui): improve BitDateRangePicker #5878 (#5920)
msynk Nov 1, 2023
ca568a0
feat(blazorui): update BitCircularTimePicker to use BitTimeFormat enu…
Cyrus-Sushiant Nov 2, 2023
8b25d69
fix(blazorui): resolve alignment issues of the link button #5922 (#5925)
0xSamman Nov 2, 2023
3289267
feat(blazorui): improve BitButton demo #5917 (#5921)
0xSamman Nov 2, 2023
f330a2f
feat(blazorui): improve BitDateRangePicker demo #5918 (#5927)
msynk Nov 2, 2023
d917d5f
feat(blaozrui): rename CustomFormat to ValueFormat in BitTimePicker #…
Cyrus-Sushiant Nov 3, 2023
ad73e9c
feat(blazorui): improve callout of BitDateRangePicker #5919 (#5931)
msynk Nov 3, 2023
2a14ca9
feat(blazorui): convert type of BitImage's Height & Width parameters …
mhrastegari Nov 4, 2023
e267d6d
feat(blazorui): improve Titles of Date Pickers #5934 (#5935)
msynk Nov 4, 2023
474682d
Resolve minor style issues in Date Pickers (#5937) (#5943)
msynk Nov 4, 2023
7355048
feat(prerelease): v-7.1.0-pre-04 #5938 (#5944)
msynk Nov 4, 2023
3022443
feat(websites): update Platform website for changes of components #59…
msynk Nov 4, 2023
9716afd
fix(infra): resolve C# nullable related issues #5947 (#5948)
ysmoradi Nov 4, 2023
4856b79
feat(deps): update project dependencies #5945 (#5946)
ysmoradi Nov 4, 2023
3fdde6c
feat(templates): convert cshtml email template files to razor #5949 (…
ysmoradi Nov 4, 2023
fe0ccb3
feat(infra): add readme & license to nuget packages #5956 (#5957)
ysmoradi Nov 5, 2023
ede5677
feat(blazorui): move time-picker components to TimePickers folder #59…
Cyrus-Sushiant Nov 6, 2023
dbd46e6
feat(blazorui): add FileViewTemplate to BitFileUpload #5932 (#5940)
Cyrus-Sushiant Nov 6, 2023
9cedb9a
feat(blazorui): add BitButtonGroup component #5960 (#5961)
mhrastegari Nov 6, 2023
4372f32
feat(blazorui): add missing Custom and Item demos to BitButtonGroup #…
mhrastegari Nov 7, 2023
1bb091f
feat(blazorui): improve styles of buttons for different state colors …
msynk Nov 7, 2023
8836750
feat(prerelease): v-7.1.0-pre-05 #5958 (#5967)
msynk Nov 7, 2023
35bc932
fix(blazorui): resolve UI issues with WeekNumbers shown in Date Picke…
msynk Nov 8, 2023
2790c02
feat(release): v-7.1.0 #5970 (#5973)
msynk Nov 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ You can contribute to bit platform with issues and PRs. Simply filing issues for

We always welcome bug reports, API proposals and overall feedback. Here are a few tips on how you can make reporting your issue as effective as possible.

The bit platform codebase is consisted of multiple projects/products in a monorepo structure. Depending on the feedback you might want to file the issue with enough information to distinguish it among these projects/products.
The bit platform codebase consists of multiple projects/products in a monorepo structure. Depending on the feedback you might want to file the issue with enough information to distinguish it among these projects/products.

### Finding Existing Issues

Expand All @@ -32,7 +32,7 @@ When ready to submit a bug report, please use the [Bug Report issue template](ht

#### Are Minimal Reproductions Required?

In certain cases, creating a minimal reproduction might not be practical (e.g. due to nondeterministic factors, external dependencies). In such cases you would be asked to provide as much information as possible. If maintainers are unable to root cause the problem, they might still close the issue as not actionable. While not required, minimal reproductions are strongly encouraged and will significantly improve the chances of your issue being prioritized and fixed by the maintainers.
In certain cases, creating a minimal reproduction might not be practical (e.g. due to nondeterministic factors, external dependencies). In such cases you would be asked to provide as much information as possible. If maintainers are unable to root cause of the problem, they might still close the issue as not actionable. While not required, minimal reproductions are strongly encouraged and will significantly improve the chances of your issue being prioritized and fixed by the maintainers.

#### How to Create a Minimal Reproduction

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
![Code size](https://img.shields.io/github/languages/code-size/bitfoundation/bitplatform.svg?logo=github)
![CI Status](https://github.com/bitfoundation/bitplatform/actions/workflows/bit.ci.yml/badge.svg)
![NuGet version](https://img.shields.io/nuget/v/bit.blazorui.svg?logo=nuget)
[![Nuget downloads](https://img.shields.io/badge/packages_download-3.6M-blue.svg?logo=nuget)](https://www.nuget.org/profiles/bit-foundation)
[![Nuget downloads](https://img.shields.io/badge/packages_download-3.7M-blue.svg?logo=nuget)](https://www.nuget.org/profiles/bit-foundation)

<br/>
<hr />

![image](https://user-images.githubusercontent.com/6169846/271820882-0d816266-ebd1-4c2b-a3b7-296b35248536.png)
<br/>
Join us and start contributing to bit platform in [hacktoberfest](https://hacktoberfest.com/). you can find the up-for-grabs issues [here](https://github.com/bitfoundation/bitplatform/labels/up%20for%20grabs).
Join us and start contributing to bit platform in [hacktoberfest](https://hacktoberfest.com/). you can find the the `good first issues` [here](https://github.com/bitfoundation/bitplatform/labels/good%20first%20issue).

<hr />
<br/>
Expand Down
8 changes: 4 additions & 4 deletions docs/how-to-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Projects

bit platform consists of multiple different projects/prodcuts with the following being the most important ones:
bit platform consists of multiple different projects/products with the following being the most important ones:

- [bit platform website](../src/Websites/Platform/)
- [bit BlazorUI (Blazor components)](../src/BlazorUI/)
Expand All @@ -34,7 +34,7 @@ Building each bit platform project requires specific steps that are explained pe
<br/>

### bit platform Website
This website only requires the basic requirements and can be simply built by runnning the following command in the `Bit.Websites.Platform.Web` project folder:
This website only requires the basic requirements and can be simply built by running the following command in the `Bit.Websites.Platform.Web` project folder:

```bash
dotnet build
Expand Down Expand Up @@ -92,7 +92,7 @@ dotnet build
### bit Project Templates
Like the bit BlazorUI Demo project, the project templates (located in the `src/Templates` folder) have two different projects (Web & App) with different requirements to build.

For exmaple for the `AdminPanel` porject template in the `AdminPanel/Bit.AdminPanel` folder:
For example for the `AdminPanel` project template in the `AdminPanel/Bit.AdminPanel` folder:

The `Web` project just like the bit platform website only needs the basic requirements and can be simply built by running the following command in the `AdminPanel.Client.Web` project folder (`src/Client/Web`):

Expand All @@ -117,4 +117,4 @@ To build the App project run the following command in the `AdminPanel.Client.App

```bash
dotnet build
```
```
2 changes: 1 addition & 1 deletion src/Bit.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<PackageProjectUrl>https://github.com/bitfoundation/bitplatform</PackageProjectUrl>
<PackageIconUrl>https://avatars.githubusercontent.com/u/22663390</PackageIconUrl>

<ReleaseVersion>7.0.0</ReleaseVersion>
<ReleaseVersion>7.1.0</ReleaseVersion>

<PackageReleaseNotes>https://github.com/bitfoundation/bitplatform/releases/tag/v-$(ReleaseVersion)</PackageReleaseNotes>
<PackageVersion>$(ReleaseVersion)</PackageVersion>
Expand Down
11 changes: 11 additions & 0 deletions src/BlazorUI/Bit.BlazorUI.Assets/Bit.BlazorUI.Assets.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,15 @@
<Exec Command="node_modules/.bin/sass Styles/bit.blazorui.assets.scss:wwwroot/styles/bit.blazorui.assets.css --style compressed --load-path=. --update" StandardOutputImportance="high" StandardErrorImportance="high" />
</Target>

<ItemGroup>
<None Include="..\..\..\LICENSE">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

</Project>
11 changes: 11 additions & 0 deletions src/BlazorUI/Bit.BlazorUI.Extras/Bit.BlazorUI.Extras.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,15 @@
<Exec Condition=" '$(Configuration)' == 'Release' " Command="node_modules/.bin/esbuild wwwroot/scripts/bit.blazorui.extras.js --minify --outfile=wwwroot/scripts/bit.blazorui.extras.js --allow-overwrite" StandardOutputImportance="high" StandardErrorImportance="high" />
</Target>

<ItemGroup>
<None Include="..\..\..\LICENSE">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

</Project>
11 changes: 11 additions & 0 deletions src/BlazorUI/Bit.BlazorUI.Icons/Bit.BlazorUI.Icons.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,15 @@
<Exec Command="node_modules/.bin/sass Styles/bit.blazorui.icons.scss:wwwroot/styles/bit.blazorui.icons.css --style compressed --load-path=. --update" StandardOutputImportance="high" StandardErrorImportance="high" />
</Target>

<ItemGroup>
<None Include="..\..\..\LICENSE">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,15 @@
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.3.1" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<None Include="..\..\..\LICENSE">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions src/BlazorUI/Bit.BlazorUI.SourceGenerators/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
### bit Source Generators
2 changes: 1 addition & 1 deletion src/BlazorUI/Bit.BlazorUI.Tests/Bit.BlazorUI.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="bunit.web" Version="1.24.9-preview" />
<PackageReference Include="bunit.web" Version="1.24.10" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
Expand Down
78 changes: 78 additions & 0 deletions src/BlazorUI/Bit.BlazorUI.Tests/Buttons/BitButtonTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,82 @@ public void BitButtonButtonStateNotOverriddenInEditContextTest()

Assert.AreEqual("button", bitButton.GetAttribute("type"));
}

[DataTestMethod,
DataRow(BitButtonColor.Info),
DataRow(BitButtonColor.Success),
DataRow(BitButtonColor.Warning),
DataRow(BitButtonColor.SevereWarning),
DataRow(BitButtonColor.Error),
DataRow(null),
]
[TestMethod]
public void BitButtonColorOfButtonTest(BitButtonColor? color)
{
var com = RenderComponent<BitButton>(parameters =>
{
if (color.HasValue)
{
parameters.Add(p => p.Color, color.Value);
}
});

var bitButton = com.Find(".bit-btn");

var colorClassName = color switch
{
BitButtonColor.Info => "bit-btn-inf",
BitButtonColor.Success => "bit-btn-suc",
BitButtonColor.Warning => "bit-btn-wrn",
BitButtonColor.SevereWarning => "bit-btn-swr",
BitButtonColor.Error => "bit-btn-err",
_ => String.Empty
};

if (color.HasValue)
{
Assert.IsTrue(bitButton.ClassList.Contains(colorClassName));
}
else
{
Assert.AreEqual(2, bitButton.ClassList.Length);
}
}

[DataTestMethod,
DataRow(BitButtonSize.Small),
DataRow(BitButtonSize.Medium),
DataRow(BitButtonSize.Large),
DataRow(null)
]
[TestMethod]
public void BitButtonSizeOfButtonTest(BitButtonSize? size)
{
var com = RenderComponent<BitButton>(parameters =>
{
if (size.HasValue)
{
parameters.Add(p => p.Size, size.Value);
}
});

var bitButton = com.Find(".bit-btn");

var sizeClassName = size switch
{
BitButtonSize.Small => "bit-btn-sm",
BitButtonSize.Medium => "bit-btn-md",
BitButtonSize.Large => "bit-btn-lg",
_ => String.Empty
};

if (size.HasValue)
{
Assert.IsTrue(bitButton.ClassList.Contains(sizeClassName));
}
else
{
Assert.AreEqual(2, bitButton.ClassList.Length);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.ComponentModel.DataAnnotations;

namespace Bit.BlazorUI.Tests.Pickers;
namespace Bit.BlazorUI.Tests.DatePicker;

public class BitDatePickerTestModel
{
Expand Down
Loading
Loading