diff --git a/CHANGELOG.md b/CHANGELOG.md index c57ceb6..d8bdac7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. +## [1.3.1] - 2024-10-15 + +### 🚜 Refactor + +- Removed shoelace cdn from inside the nuget package +- Removed most of the Blazor.Javascript.Interop.Extensions method in favor of the native EventHandlers + ## [1.3.0] - 2024-10-10 ### 🚀 Features @@ -18,6 +25,7 @@ All notable changes to this project will be documented in this file. ### ⚙️ Miscellaneous Tasks - Format code style +- Versioning 1.0.3 ## [1.2.0] - 2024-10-07 diff --git a/README.md b/README.md index 6fe2a15..38cd5ed 100644 --- a/README.md +++ b/README.md @@ -19,21 +19,40 @@ This repository contains Blazor components built on top of the [Shoelace](https: dotnet add package Shoelace.Style --version 1.0.0.4 ``` -2. Add the links to reference the css and js in index.html/App.razor/_Host.cshtml: +2. Download the latest version of the @shoelace-style package. We suggest using libman with this configuration: + + ```json + { + "version": "1.0", + "defaultProvider": "jsdelivr", + "libraries": [ + { + "library": "@shoelace-style/shoelace@2.17.1", + "destination": "wwwroot/shoelace/", + "files": [ + "cdn/!(react)/**/*.{js,svg,css}", + "cdn/*.js" + ] + } + ] + } + ``` + +3. Add the links to reference the css and js in index.html/App.razor/_Host.cshtml: ```html + href="shoelace/cdn/themes/light.min.css" /> ``` ``` html - + ``` Or follow the instructions in the [Installation](https://shoelace.style/getting-started/installation) page of the main site. @@ -44,8 +63,7 @@ Import the main namespaces inside the _Import.razor file: ``` cshtml @using Shoelace.Style.Components -@using Shoelace.Style.Services @* Optional *@ -@using Shoelace.Style.Options @* Optional *@ +@using Shoelace.Style.Services ``` Add the service collection extension in you Program.cs: @@ -79,8 +97,8 @@ builder.Services.AddShoelaceStyle(); - [X] Format Bytes (``) - [X] Format Date (``) - [X] Format Number (``) -- [ ] Icon (``) -- [ ] Icon Button (``) +- [X] Icon (``) +- [X] Icon Button (``) - [ ] Image Comparer (``) - [ ] Include (``) - [X] Input (``) @@ -88,29 +106,29 @@ builder.Services.AddShoelaceStyle(); - [ ] Menu Item (``) - [ ] Menu Label (``) - [ ] Mutation Observer (``) -- [ ] Option (``) +- [X] Option (``) - [ ] Popup (``) - [ ] Progress Bar (``) - [ ] Progress Ring (``) - [ ] QR Code (``) -- [ ] Radio (``) -- [ ] Radio Button (``) -- [ ] Radio Group (``) -- [ ] Range (``) -- [ ] Rating (``) -- [ ] Relative Time (``) -- [ ] Resize Observer (``) -- [ ] Select (``) +- [X] Radio (``) +- [X] Radio Button (``) +- [X] Radio Group (``) +- [X] Range (``) +- [X] Rating (``) +- [X] Relative Time (``) +- [X] Resize Observer (``) +- [X] Select (``) - [ ] Skeleton (``) - [X] Spinner (``) - [ ] Split Panel (``) -- [ ] Switch (``) +- [X] Switch (``) - [ ] Tab (``) - [ ] Tab Group (``) - [ ] Tab Panel (``) - [ ] Tag (``) -- [ ] Textarea (``) -- [ ] Tooltip (``) +- [X] Textarea (``) +- [X] Tooltip (``) - [ ] Tree (``) - [ ] Tree Item (``) - [ ] Visually Hidden (``) diff --git a/src/Shoelace.Style/Shoelace.Style.csproj b/src/Shoelace.Style/Shoelace.Style.csproj index 08e3d0f..ed0f783 100644 --- a/src/Shoelace.Style/Shoelace.Style.csproj +++ b/src/Shoelace.Style/Shoelace.Style.csproj @@ -18,7 +18,7 @@ Blazor;Shoelace;UI;WebComponents Initial release wrapping Shoelace components for Blazor. LICENSE.txt - 1.3.0 + 1.3.1