chore: update templ and templui
This commit is contained in:
parent
b5d195baea
commit
61eaa268ab
89 changed files with 25776 additions and 8231 deletions
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue