chore: update templ and templui

This commit is contained in:
juancwu 2026-04-12 16:07:06 +00:00
commit 61eaa268ab
89 changed files with 25776 additions and 8231 deletions

View file

@ -1,4 +1,4 @@
// templui component rating - version: v1.2.0 installed by templui v1.2.0
// templui component rating - version: v1.9.5 installed by templui v1.9.5
// 📚 Documentation: https://templui.io/docs/components/rating
package rating
@ -166,7 +166,7 @@ func ratingIcon(style Style, filled bool, value float64) templ.Component {
}
iconProps := icon.Props{}
if filled {
iconProps.Fill = "currentColor"
iconProps.Class = "fill-current"
}
switch style {
case StyleHeart:
@ -188,6 +188,10 @@ func (p *Props) setDefaults() {
}
}
var scriptOnce = templ.NewOnceHandle()
templ Script() {
<script defer nonce={ templ.GetNonce(ctx) } src={ utils.ScriptURL("/assets/js/rating.min.js") }></script>
@scriptOnce.Once() {
@utils.ComponentScript("rating")
}
}