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 checkbox - version: v1.2.0 installed by templui v1.2.0
|
||||
// templui component checkbox - version: v1.9.5 installed by templui v1.9.5
|
||||
// 📚 Documentation: https://templui.io/docs/components/checkbox
|
||||
package checkbox
|
||||
|
||||
|
|
@ -71,17 +71,21 @@ templ Checkbox(props ...Props) {
|
|||
if p.Icon != nil {
|
||||
@p.Icon
|
||||
} else {
|
||||
@icon.Check(icon.Props{Size: 14})
|
||||
@icon.Check(icon.Props{Class: "size-3.5"})
|
||||
}
|
||||
</div>
|
||||
<div
|
||||
class="absolute inset-0 pointer-events-none flex items-center justify-center text-primary-foreground opacity-0 peer-indeterminate:opacity-100"
|
||||
>
|
||||
@icon.Minus(icon.Props{Size: 14})
|
||||
@icon.Minus(icon.Props{Class: "size-3.5"})
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
var scriptOnce = templ.NewOnceHandle()
|
||||
|
||||
templ Script() {
|
||||
<script defer nonce={ templ.GetNonce(ctx) } src={ utils.ScriptURL("/assets/js/checkbox.min.js") }></script>
|
||||
@scriptOnce.Once() {
|
||||
@utils.ComponentScript("checkbox")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue