templui updated

This commit is contained in:
Johannes Bülow 2025-08-15 19:17:56 +02:00
parent d727b19acf
commit 81b7f39c51
Signed by: jmb
GPG key ID: B56971CF7B8F83A6
49 changed files with 665 additions and 749 deletions

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component accordion - version: v0.84.0 installed by templui v0.84.0
package accordion
@ -64,8 +64,7 @@ func Accordion(props ...Props) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"divide-y rounded-md divide-border border",
p.Class,
),
@ -159,8 +158,7 @@ func Item(props ...ItemProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var6 = []any{
utils.TwMerge(
var templ_7745c5c3_Var6 = []any{utils.TwMerge(
"group",
"open:[&>summary_svg]:rotate-180",
p.Class,
@ -255,8 +253,7 @@ func Trigger(props ...TriggerProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var10 = []any{
utils.TwMerge(
var templ_7745c5c3_Var10 = []any{utils.TwMerge(
"flex w-full items-center justify-between py-4 px-5",
"text-left font-medium cursor-pointer",
"transition-all hover:underline",
@ -364,8 +361,7 @@ func Content(props ...ContentProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var14 = []any{
utils.TwMerge(
var templ_7745c5c3_Var14 = []any{utils.TwMerge(
"px-5 pb-4 pt-0",
p.Class,
),

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component alert - version: v0.84.0 installed by templui v0.84.0
package alert
@ -63,8 +63,7 @@ func Alert(props ...Props) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"relative w-full p-4",
"[&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4",
"[&>svg+div]:translate-y-[-3px] [&:has(svg)]:pl-11",
@ -162,8 +161,7 @@ func Title(props ...TitleProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var6 = []any{
utils.TwMerge(
var templ_7745c5c3_Var6 = []any{utils.TwMerge(
"mb-1 font-medium leading-none tracking-tight",
p.Class,
),
@ -257,8 +255,7 @@ func Description(props ...DescriptionProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var10 = []any{
utils.TwMerge(
var templ_7745c5c3_Var10 = []any{utils.TwMerge(
"[&_p]:leading-relaxed text-sm",
p.Class,
),

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component aspectratio - version: main installed by templui v0.71.0
package aspectratio
@ -54,8 +54,7 @@ func AspectRatio(props ...Props) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"relative w-full",
ratioClass(p.Ratio),
p.Class,

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component aspectratio - version: v0.84.0 installed by templui v0.84.0
package aspectratio
@ -54,8 +54,7 @@ func AspectRatio(props ...Props) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"relative w-full",
ratioClass(p.Ratio),
p.Class,

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component avatar - version: v0.84.0 installed by templui v0.84.0
package avatar
@ -85,8 +85,7 @@ func Avatar(props ...Props) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"inline-flex items-center justify-center",
SizeClasses(p.Size),
"rounded-full bg-muted",
@ -183,8 +182,7 @@ func Image(props ...ImageProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var6 = []any{
utils.TwMerge(
var templ_7745c5c3_Var6 = []any{utils.TwMerge(
"w-full h-full",
"rounded-full object-cover",
p.Class,
@ -303,8 +301,7 @@ func Fallback(props ...FallbackProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var12 = []any{
utils.TwMerge(
var templ_7745c5c3_Var12 = []any{utils.TwMerge(
"font-medium text-muted-foreground",
p.Class,
),
@ -398,8 +395,7 @@ func Group(props ...GroupProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var16 = []any{
utils.TwMerge(
var templ_7745c5c3_Var16 = []any{utils.TwMerge(
"flex items-center -space-x-3",
groupSpacingClasses(p.Spacing),
p.Class,
@ -494,8 +490,7 @@ func GroupOverflow(count int, props ...Props) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var20 = []any{
utils.TwMerge(
var templ_7745c5c3_Var20 = []any{utils.TwMerge(
"inline-flex items-center justify-center",
SizeClasses(p.Size),
"rounded-full bg-muted ring-2 ring-background",

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component badge - version: v0.84.0 installed by templui v0.84.0
package badge
@ -53,8 +53,7 @@ func Badge(props ...Props) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none",
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component breadcrumb - version: v0.84.0 installed by templui v0.84.0
package breadcrumb
@ -73,8 +73,7 @@ func Breadcrumb(props ...Props) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"flex",
p.Class,
),
@ -168,8 +167,7 @@ func List(props ...ListProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var6 = []any{
utils.TwMerge(
var templ_7745c5c3_Var6 = []any{utils.TwMerge(
"flex items-center flex-wrap gap-1 text-sm",
p.Class,
),
@ -263,8 +261,7 @@ func Item(props ...ItemProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var10 = []any{
utils.TwMerge(
var templ_7745c5c3_Var10 = []any{utils.TwMerge(
"flex items-center",
p.Class,
),
@ -358,8 +355,7 @@ func Link(props ...LinkProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var14 = []any{
utils.TwMerge(
var templ_7745c5c3_Var14 = []any{utils.TwMerge(
"text-muted-foreground hover:text-foreground hover:underline flex items-center gap-1.5 transition-colors",
p.Class,
),
@ -396,8 +392,12 @@ func Link(props ...LinkProps) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var16 templ.SafeURL = templ.SafeURL(p.Href)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var16)))
var templ_7745c5c3_Var16 templ.SafeURL
templ_7745c5c3_Var16, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Href))
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `server/web/templui/components/breadcrumb/breadcrumb.templ`, Line: 116, Col: 31}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var16))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@ -468,8 +468,7 @@ func Separator(props ...SeparatorProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var19 = []any{
utils.TwMerge(
var templ_7745c5c3_Var19 = []any{utils.TwMerge(
"mx-2 text-muted-foreground",
p.Class,
),
@ -570,8 +569,7 @@ func Page(props ...ItemProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var23 = []any{
utils.TwMerge(
var templ_7745c5c3_Var23 = []any{utils.TwMerge(
"font-medium text-foreground flex items-center gap-1.5",
p.Class,
),

View file

@ -1,4 +1,4 @@
// templui component button - version: v0.84.0 installed by templui v0.84.0
// templui component button - version: v0.85.0 installed by templui v0.85.0
package button
import (
@ -111,7 +111,7 @@ templ Button(props ...Props) {
func (b Props) variantClasses() string {
switch b.Variant {
case VariantDestructive:
return "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60"
return "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60"
case VariantOutline:
return "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50"
case VariantSecondary:

View file

@ -1,7 +1,7 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templui component button - version: v0.84.0 installed by templui v0.84.0
// templ: version: v0.3.924
// templui component button - version: v0.85.0 installed by templui v0.85.0
package button
@ -83,8 +83,7 @@ func Button(props ...Props) templ.Component {
p.Type = TypeButton
}
if p.Href != "" && !p.Disabled {
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all",
"disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0",
"outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
@ -127,8 +126,12 @@ func Button(props ...Props) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var4 templ.SafeURL = templ.SafeURL(p.Href)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var4)))
var templ_7745c5c3_Var4 templ.SafeURL
templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Href))
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `server/web/templui/components/button/button.templ`, Line: 61, Col: 31}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@ -189,8 +192,7 @@ func Button(props ...Props) templ.Component {
return templ_7745c5c3_Err
}
} else {
var templ_7745c5c3_Var7 = []any{
utils.TwMerge(
var templ_7745c5c3_Var7 = []any{utils.TwMerge(
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all",
"disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0",
"outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
@ -295,7 +297,7 @@ func Button(props ...Props) templ.Component {
func (b Props) variantClasses() string {
switch b.Variant {
case VariantDestructive:
return "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60"
return "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60"
case VariantOutline:
return "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50"
case VariantSecondary:

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component calendar - version: v0.84.0 installed by templui v0.84.0
package calendar

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component card - version: v0.84.0 installed by templui v0.84.0
package card
@ -73,8 +73,7 @@ func Card(props ...Props) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"w-full rounded-lg border bg-card text-card-foreground shadow-xs",
p.Class,
),
@ -168,8 +167,7 @@ func Header(props ...HeaderProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var6 = []any{
utils.TwMerge(
var templ_7745c5c3_Var6 = []any{utils.TwMerge(
"flex flex-col space-y-1.5 p-6 pb-0",
p.Class,
),
@ -263,8 +261,7 @@ func Title(props ...TitleProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var10 = []any{
utils.TwMerge(
var templ_7745c5c3_Var10 = []any{utils.TwMerge(
"text-lg font-semibold leading-none tracking-tight",
p.Class,
),
@ -358,8 +355,7 @@ func Description(props ...DescriptionProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var14 = []any{
utils.TwMerge(
var templ_7745c5c3_Var14 = []any{utils.TwMerge(
"text-sm text-muted-foreground",
p.Class,
),
@ -453,8 +449,7 @@ func Content(props ...ContentProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var18 = []any{
utils.TwMerge(
var templ_7745c5c3_Var18 = []any{utils.TwMerge(
"p-6",
p.Class,
),
@ -548,8 +543,7 @@ func Footer(props ...FooterProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var22 = []any{
utils.TwMerge(
var templ_7745c5c3_Var22 = []any{utils.TwMerge(
"flex items-center p-6 pt-0",
p.Class,
),

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component carousel - version: v0.84.0 installed by templui v0.84.0
package carousel
@ -82,8 +82,7 @@ func Carousel(props ...Props) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"carousel-component relative overflow-hidden w-full",
p.Class,
),
@ -221,8 +220,7 @@ func Content(props ...ContentProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var9 = []any{
utils.TwMerge(
var templ_7745c5c3_Var9 = []any{utils.TwMerge(
"carousel-track flex h-full w-full transition-transform duration-500 ease-in-out",
p.Class,
),
@ -316,8 +314,7 @@ func Item(props ...ItemProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var13 = []any{
utils.TwMerge(
var templ_7745c5c3_Var13 = []any{utils.TwMerge(
"carousel-item flex-shrink-0 w-full h-full relative",
p.Class,
),
@ -411,8 +408,7 @@ func Previous(props ...PreviousProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var17 = []any{
utils.TwMerge(
var templ_7745c5c3_Var17 = []any{utils.TwMerge(
"carousel-prev absolute left-2 top-1/2 transform -translate-y-1/2 p-2 rounded-full bg-black/20 text-white hover:bg-black/40 focus:outline-none",
p.Class,
),
@ -506,8 +502,7 @@ func Next(props ...NextProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var21 = []any{
utils.TwMerge(
var templ_7745c5c3_Var21 = []any{utils.TwMerge(
"carousel-next absolute right-2 top-1/2 transform -translate-y-1/2 p-2 rounded-full bg-black/20 text-white hover:bg-black/40 focus:outline-none",
p.Class,
),
@ -601,8 +596,7 @@ func Indicators(props ...IndicatorsProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var25 = []any{
utils.TwMerge(
var templ_7745c5c3_Var25 = []any{utils.TwMerge(
"absolute bottom-4 left-1/2 transform -translate-x-1/2 flex gap-2",
p.Class,
),
@ -660,8 +654,7 @@ func Indicators(props ...IndicatorsProps) templ.Component {
return templ_7745c5c3_Err
}
for i := 0; i < p.Count; i++ {
var templ_7745c5c3_Var28 = []any{
utils.TwMerge(
var templ_7745c5c3_Var28 = []any{utils.TwMerge(
"carousel-indicator w-3 h-3 rounded-full bg-white/50 hover:bg-white/80 focus:outline-none transition-colors",
utils.If(i == 0, "bg-white"),
),

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component chart - version: v0.84.0 installed by templui v0.84.0
package chart
@ -106,8 +106,7 @@ func Chart(props ...Props) templ.Component {
}
canvasId := p.ID + "-canvas"
dataId := p.ID + "-data"
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"chart-container relative",
p.Class),
}

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component checkbox - version: v0.84.0 installed by templui v0.84.0
package checkbox
@ -56,8 +56,7 @@ func Checkbox(props ...Props) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"relative size-4 overflow-hidden peer",
"before:absolute before:inset-0 before:content['']",
"appearance-none rounded-sm border-2 border-primary bg-background",
@ -175,8 +174,7 @@ func Checkbox(props ...Props) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var7 = []any{
utils.TwMerge(
var templ_7745c5c3_Var7 = []any{utils.TwMerge(
"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",
"size-3 text-primary-foreground pointer-events-none opacity-0",
"peer-checked:opacity-100",

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component checkboxcard - version: main installed by templui v0.71.0
package checkboxcard
@ -70,8 +70,7 @@ func CheckboxCard(props ...Props) templ.Component {
p.ID = utils.RandomID()
}
inputId := p.ID + "-input"
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"relative",
utils.If(p.Disabled, "opacity-60"),
p.Class,
@ -202,8 +201,7 @@ func CheckboxCard(props ...Props) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var8 = []any{
utils.TwMerge(
var templ_7745c5c3_Var8 = []any{utils.TwMerge(
"block w-full rounded-lg border overflow-hidden h-full",
"bg-card text-card-foreground p-4 flex flex-col",
"cursor-pointer",
@ -285,8 +283,7 @@ func Header(props ...HeaderProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var12 = []any{
utils.TwMerge(
var templ_7745c5c3_Var12 = []any{utils.TwMerge(
"flex items-center justify-between mb-2",
p.Class,
),
@ -380,8 +377,7 @@ func Description(props ...DescriptionProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var16 = []any{
utils.TwMerge(
var templ_7745c5c3_Var16 = []any{utils.TwMerge(
"text-sm text-muted-foreground",
p.Class,
),
@ -475,8 +471,7 @@ func Footer(props ...FooterProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var20 = []any{
utils.TwMerge(
var templ_7745c5c3_Var20 = []any{utils.TwMerge(
"mt-auto pt-4 w-full",
p.Class,
),

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component checkboxcard - version: v0.84.0 installed by templui v0.84.0
package checkboxcard
@ -70,8 +70,7 @@ func CheckboxCard(props ...Props) templ.Component {
p.ID = utils.RandomID()
}
inputId := p.ID + "-input"
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"relative",
utils.If(p.Disabled, "opacity-60"),
p.Class,
@ -202,8 +201,7 @@ func CheckboxCard(props ...Props) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var8 = []any{
utils.TwMerge(
var templ_7745c5c3_Var8 = []any{utils.TwMerge(
"block w-full rounded-lg border overflow-hidden h-full",
"bg-card text-card-foreground p-4 flex flex-col",
"cursor-pointer",
@ -285,8 +283,7 @@ func Header(props ...HeaderProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var12 = []any{
utils.TwMerge(
var templ_7745c5c3_Var12 = []any{utils.TwMerge(
"flex items-center justify-between mb-2",
p.Class,
),
@ -380,8 +377,7 @@ func Description(props ...DescriptionProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var16 = []any{
utils.TwMerge(
var templ_7745c5c3_Var16 = []any{utils.TwMerge(
"text-sm text-muted-foreground",
p.Class,
),
@ -475,8 +471,7 @@ func Footer(props ...FooterProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var20 = []any{
utils.TwMerge(
var templ_7745c5c3_Var20 = []any{utils.TwMerge(
"mt-auto pt-4 w-full",
p.Class,
),

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component code - version: v0.84.0 installed by templui v0.84.0
package code
@ -108,8 +108,7 @@ func Code(props ...Props) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var5 = []any{
utils.TwMerge(
var templ_7745c5c3_Var5 = []any{utils.TwMerge(
"language-"+p.Language,
"overflow-y-auto! rounded-md block text-sm max-h-[501px]",
utils.If(p.Size == SizeSm, "max-h-[250px]"),

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component datepicker - version: main installed by templui v0.71.0
package datepicker

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component datepicker - version: v0.84.0 installed by templui v0.84.0
package datepicker

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component drawer - version: v0.84.0 installed by templui v0.84.0
package drawer
@ -245,8 +245,7 @@ func Content(props ...ContentProps) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var8 = []any{
utils.TwMerge(
var templ_7745c5c3_Var8 = []any{utils.TwMerge(
"fixed z-50 templui-drawer-content hidden",
p.Class,
utils.If(p.Position == PositionRight, "inset-y-0 right-0 w-3/4 md:w-1/2 lg:w-1/3"),
@ -310,8 +309,7 @@ func Content(props ...ContentProps) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var12 = []any{
utils.TwMerge(
var templ_7745c5c3_Var12 = []any{utils.TwMerge(
"h-full overflow-y-auto bg-background p-6 shadow-lg",
utils.If(p.Position == PositionRight, "border-l"),
utils.If(p.Position == PositionLeft, "border-r"),
@ -737,8 +735,7 @@ func Close(props ...CloseProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var31 = []any{
utils.TwMerge(
var templ_7745c5c3_Var31 = []any{utils.TwMerge(
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background",
"transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
"disabled:pointer-events-none disabled:opacity-50 border border-input bg-background hover:bg-accent",

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component dropdown - version: v0.84.0 installed by templui v0.84.0
package dropdown
@ -519,8 +519,7 @@ func Item(props ...ItemProps) templ.Component {
p.ID = utils.RandomID()
}
if p.Href != "" {
var templ_7745c5c3_Var17 = []any{
utils.TwMerge(
var templ_7745c5c3_Var17 = []any{utils.TwMerge(
"flex text-left items-center px-2 py-1.5 text-sm rounded-sm",
utils.If(!p.Disabled, "focus:bg-accent focus:text-accent-foreground hover:bg-accent hover:text-accent-foreground cursor-default"),
utils.If(p.Disabled, "opacity-50 pointer-events-none"),
@ -553,8 +552,12 @@ func Item(props ...ItemProps) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var19 templ.SafeURL = templ.SafeURL(p.Href)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var19)))
var templ_7745c5c3_Var19 templ.SafeURL
templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Href))
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `server/web/templui/components/dropdown/dropdown.templ`, Line: 216, Col: 32}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var19))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@ -622,8 +625,7 @@ func Item(props ...ItemProps) templ.Component {
return templ_7745c5c3_Err
}
} else {
var templ_7745c5c3_Var22 = []any{
utils.TwMerge(
var templ_7745c5c3_Var22 = []any{utils.TwMerge(
"w-full text-left flex items-center justify-between px-2 py-1.5 text-sm rounded-sm",
utils.If(!p.Disabled, "focus:bg-accent focus:text-accent-foreground hover:bg-accent hover:text-accent-foreground cursor-default"),
utils.If(p.Disabled, "opacity-50 pointer-events-none"),
@ -1007,8 +1009,7 @@ func SubTrigger(props ...SubTriggerProps) templ.Component {
}()
}
ctx = templ.InitializeContext(ctx)
var templ_7745c5c3_Var39 = []any{
utils.TwMerge(
var templ_7745c5c3_Var39 = []any{utils.TwMerge(
"w-full text-left flex items-center justify-between px-2 py-1.5 text-sm rounded-sm",
"focus:bg-accent focus:text-accent-foreground hover:bg-accent hover:text-accent-foreground cursor-default",
p.Class,

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component form - version: v0.84.0 installed by templui v0.84.0
package form
@ -400,8 +400,7 @@ func Message(props ...MessageProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var16 = []any{
utils.TwMerge(
var templ_7745c5c3_Var16 = []any{utils.TwMerge(
"text-[0.8rem] font-medium",
messageVariantClass(p.Variant),
p.Class,

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component input - version: v0.84.0 installed by templui v0.84.0
package input
@ -82,8 +82,7 @@ func Input(props ...Props) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
// Base styles
"flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none md:text-sm",
// Dark mode background

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component inputotp - version: main installed by templui v0.71.0
package inputotp
@ -76,8 +76,7 @@ func InputOTP(props ...Props) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"flex flex-row items-center gap-2 w-fit",
p.Class,
),
@ -242,8 +241,7 @@ func Group(props ...GroupProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var9 = []any{
utils.TwMerge(
var templ_7745c5c3_Var9 = []any{utils.TwMerge(
"flex gap-2",
p.Class,
),
@ -375,8 +373,7 @@ func Slot(props ...SlotProps) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var14 = []any{
utils.TwMerge(
var templ_7745c5c3_Var14 = []any{utils.TwMerge(
"w-10 h-12 text-center",
"rounded-md border border-input bg-background text-sm",
"file:border-0 file:bg-transparent file:text-sm file:font-medium",
@ -503,8 +500,7 @@ func Separator(props ...SeparatorProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var20 = []any{
utils.TwMerge(
var templ_7745c5c3_Var20 = []any{utils.TwMerge(
"flex items-center text-muted-foreground text-xl",
p.Class,
),

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component inputotp - version: v0.84.0 installed by templui v0.84.0
package inputotp
@ -73,8 +73,7 @@ func InputOTP(props ...Props) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"flex flex-row items-center gap-2 w-fit",
p.Class,
),
@ -245,8 +244,7 @@ func Group(props ...GroupProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var9 = []any{
utils.TwMerge(
var templ_7745c5c3_Var9 = []any{utils.TwMerge(
"flex gap-2",
p.Class,
),
@ -378,8 +376,7 @@ func Slot(props ...SlotProps) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var14 = []any{
utils.TwMerge(
var templ_7745c5c3_Var14 = []any{utils.TwMerge(
// Base styles - keeping the specific OTP dimensions
"w-10 h-12 text-center rounded-md border border-input bg-transparent text-base shadow-xs transition-[color,box-shadow] outline-none md:text-sm",
// Dark mode background
@ -521,8 +518,7 @@ func Separator(props ...SeparatorProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var20 = []any{
utils.TwMerge(
var templ_7745c5c3_Var20 = []any{utils.TwMerge(
"flex items-center text-muted-foreground text-xl",
p.Class,
),

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component label - version: v0.84.0 installed by templui v0.84.0
package label
@ -45,8 +45,7 @@ func Label(props ...Props) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"text-sm font-medium leading-none inline-block",
utils.If(len(p.Error) > 0, "text-destructive"),
p.Class,

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component modal - version: v0.84.0 installed by templui v0.84.0
package modal
@ -138,8 +138,7 @@ func Modal(props ...Props) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var4 = []any{
utils.TwMerge(
var templ_7745c5c3_Var4 = []any{utils.TwMerge(
"modal-content relative bg-background rounded-lg border text-left overflow-hidden shadow-xl transform transition-all sm:my-8 w-full scale-95 opacity-0", // Base classes + transition start
"duration-300 ease-out", // Enter duration
p.Class,
@ -216,8 +215,7 @@ func Trigger(props ...TriggerProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var8 = []any{
utils.TwMerge(
var templ_7745c5c3_Var8 = []any{utils.TwMerge(
"group",
utils.IfElse(p.Disabled, "cursor-not-allowed opacity-50", "cursor-pointer"),
p.Class,

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component pagination - version: v0.84.0 installed by templui v0.84.0
package pagination

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component popover - version: main installed by templui v0.71.0
package popover

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component popover - version: main installed by templui v0.71.0
package popover

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component popover - version: v0.84.0 installed by templui v0.84.0
package popover

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component progress - version: v0.84.0 installed by templui v0.84.0
package progress
@ -192,8 +192,7 @@ func Progress(props ...Props) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var9 = []any{
utils.TwMerge(
var templ_7745c5c3_Var9 = []any{utils.TwMerge(
"h-full rounded-full transition-all",
sizeClasses(p.Size),
variantClasses(p.Variant),

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component radio - version: v0.84.0 installed by templui v0.84.0
package radio
@ -48,8 +48,7 @@ func Radio(props ...Props) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"relative h-4 w-4",
"before:absolute before:left-1/2 before:top-1/2",
"before:h-1.5 before:w-1.5 before:-translate-x-1/2 before:-translate-y-1/2",

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component radiocard - version: main installed by templui v0.71.0
package radiocard
@ -69,8 +69,7 @@ func RadioCard(props ...Props) templ.Component {
if p.ID == "" {
p.ID = utils.RandomID()
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"relative",
utils.If(p.Disabled, "opacity-60"),
p.Class,
@ -191,8 +190,7 @@ func RadioCard(props ...Props) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var8 = []any{
utils.TwMerge(
var templ_7745c5c3_Var8 = []any{utils.TwMerge(
"block w-full rounded-lg border overflow-hidden h-full",
"bg-card text-card-foreground p-4 flex flex-col",
"cursor-pointer",

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component radiocard - version: v0.84.0 installed by templui v0.84.0
package radiocard
@ -69,8 +69,7 @@ func RadioCard(props ...Props) templ.Component {
if p.ID == "" {
p.ID = utils.RandomID()
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"relative",
utils.If(p.Disabled, "opacity-60"),
p.Class,
@ -191,8 +190,7 @@ func RadioCard(props ...Props) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var8 = []any{
utils.TwMerge(
var templ_7745c5c3_Var8 = []any{utils.TwMerge(
"block w-full rounded-lg border overflow-hidden h-full",
"bg-card text-card-foreground p-4 flex flex-col",
"cursor-pointer",

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component rating - version: v0.84.0 installed by templui v0.84.0
package rating
@ -76,8 +76,7 @@ func Rating(props ...Props) templ.Component {
p = props[0]
}
p.setDefaults()
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"flex flex-col items-start gap-1",
p.Class,
),
@ -369,8 +368,7 @@ func Item(props ...ItemProps) templ.Component {
p = props[0]
}
p.setDefaults()
var templ_7745c5c3_Var17 = []any{
utils.TwMerge(
var templ_7745c5c3_Var17 = []any{utils.TwMerge(
"relative",
colorClass(p.Style),
"transition-opacity",

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component selectbox - version: main installed by templui v0.71.0
package selectbox
@ -705,8 +705,7 @@ func Item(props ...ItemProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var26 = []any{
utils.TwMerge(
var templ_7745c5c3_Var26 = []any{utils.TwMerge(
"select-item relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 px-2 text-sm font-light outline-none",
"hover:bg-accent hover:text-accent-foreground",
"focus:bg-accent focus:text-accent-foreground",
@ -814,8 +813,7 @@ func Item(props ...ItemProps) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var32 = []any{
utils.TwMerge(
var templ_7745c5c3_Var32 = []any{utils.TwMerge(
"select-check absolute right-2 flex h-3.5 w-3.5 items-center justify-center",
utils.IfElse(p.Selected, "opacity-100", "opacity-0"),
),

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component selectbox - version: v0.84.0 installed by templui v0.84.0
package selectbox
@ -752,8 +752,7 @@ func Item(props ...ItemProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var25 = []any{
utils.TwMerge(
var templ_7745c5c3_Var25 = []any{utils.TwMerge(
"select-item relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 px-2 text-sm font-light outline-none",
"hover:bg-accent hover:text-accent-foreground",
"focus:bg-accent focus:text-accent-foreground",
@ -861,8 +860,7 @@ func Item(props ...ItemProps) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var31 = []any{
utils.TwMerge(
var templ_7745c5c3_Var31 = []any{utils.TwMerge(
"select-check absolute right-2 flex h-3.5 w-3.5 items-center justify-center",
utils.IfElse(p.Selected, "opacity-100", "opacity-0"),
),

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component separator - version: v0.84.0 installed by templui v0.84.0
package separator
@ -115,8 +115,7 @@ func Separator(props ...Props) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var5 = []any{
utils.TwMerge(
var templ_7745c5c3_Var5 = []any{utils.TwMerge(
"absolute w-full border-t h-[1px]",
decorationClasses(p.Decoration),
),
@ -204,8 +203,7 @@ func Separator(props ...Props) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var10 = []any{
utils.TwMerge(
var templ_7745c5c3_Var10 = []any{utils.TwMerge(
"absolute h-full border-l w-[1px]",
decorationClasses(p.Decoration),
),

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component skeleton - version: v0.84.0 installed by templui v0.84.0
package skeleton
@ -43,8 +43,7 @@ func Skeleton(props ...Props) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"animate-pulse rounded bg-muted",
p.Class,
),

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component slider - version: v0.84.0 installed by templui v0.84.0
package slider
@ -158,8 +158,7 @@ func Input(props ...InputProps) templ.Component {
if p.ID == "" {
p.ID = utils.RandomID()
}
var templ_7745c5c3_Var6 = []any{
utils.TwMerge(
var templ_7745c5c3_Var6 = []any{utils.TwMerge(
"w-full h-2 rounded-full bg-secondary appearance-none cursor-pointer",
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
"[&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:h-4",

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component spinner - version: main installed by templui v0.71.0
package spinner
@ -53,8 +53,7 @@ func Spinner(props ...Props) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
"inline-flex flex-col items-center justify-center",
p.Class,
),
@ -111,8 +110,7 @@ func Spinner(props ...Props) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var5 = []any{
utils.TwMerge(
var templ_7745c5c3_Var5 = []any{utils.TwMerge(
"animate-spin rounded-full",
sizeClass(p.Size),
borderSizeClass(p.Size),

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component table - version: v0.84.0 installed by templui v0.84.0
package table
@ -450,8 +450,7 @@ func Row(props ...RowProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var18 = []any{
utils.TwMerge(
var templ_7745c5c3_Var18 = []any{utils.TwMerge(
"border-b transition-colors hover:bg-muted/50",
utils.If(p.Selected, "data-[state=selected]:bg-muted"),
p.Class,
@ -546,8 +545,7 @@ func Head(props ...HeadProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var22 = []any{
utils.TwMerge(
var templ_7745c5c3_Var22 = []any{utils.TwMerge(
"h-10 px-2 text-left align-middle font-medium text-muted-foreground",
"[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
p.Class,
@ -642,8 +640,7 @@ func Cell(props ...CellProps) templ.Component {
if len(props) > 0 {
p = props[0]
}
var templ_7745c5c3_Var26 = []any{
utils.TwMerge(
var templ_7745c5c3_Var26 = []any{utils.TwMerge(
"p-2 align-middle",
"[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
p.Class,

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component tabs - version: v0.84.0 installed by templui v0.84.0
package tabs
@ -179,8 +179,7 @@ func List(props ...ListProps) templ.Component {
p = props[0]
}
tabsID := IDFromContext(ctx)
var templ_7745c5c3_Var7 = []any{
utils.TwMerge(
var templ_7745c5c3_Var7 = []any{utils.TwMerge(
"relative flex items-center justify-center h-10 p-1 rounded-lg select-none bg-muted text-muted-foreground",
p.Class,
),
@ -297,8 +296,7 @@ func Trigger(props ...TriggerProps) templ.Component {
return templ_7745c5c3_Err
}
}
var templ_7745c5c3_Var12 = []any{
utils.TwMerge(
var templ_7745c5c3_Var12 = []any{utils.TwMerge(
"relative z-20 flex-1 inline-flex items-center justify-center h-8 px-3 text-sm font-medium transition-all rounded-md cursor-pointer whitespace-nowrap hover:text-foreground",
p.Class,
),
@ -441,8 +439,7 @@ func Content(props ...ContentProps) templ.Component {
return templ_7745c5c3_Err
}
}
var templ_7745c5c3_Var19 = []any{
utils.TwMerge(
var templ_7745c5c3_Var19 = []any{utils.TwMerge(
"relative",
utils.If(!p.IsActive, "hidden"),
p.Class,

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component tagsinput - version: v0.84.0 installed by templui v0.84.0
package tagsinput
@ -49,8 +49,7 @@ func TagsInput(p Props) templ.Component {
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
// Base styles
"flex items-center flex-wrap gap-2 p-2 rounded-md border border-input bg-transparent shadow-xs transition-[color,box-shadow] outline-none",
// Dark mode background

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component textarea - version: v0.84.0 installed by templui v0.84.0
package textarea
@ -58,8 +58,7 @@ func Textarea(props ...Props) templ.Component {
if p.ID == "" {
p.ID = utils.RandomID()
}
var templ_7745c5c3_Var2 = []any{
utils.TwMerge(
var templ_7745c5c3_Var2 = []any{utils.TwMerge(
// Base styles
"flex w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none md:text-sm",
"min-h-[80px]", // Default min-height

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component toast - version: v0.84.0 installed by templui v0.84.0
package toast

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component toggle - version: v0.84.0 installed by templui v0.84.0
package toggle
@ -183,8 +183,7 @@ func Toggle(props ...Props) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var9 = []any{
utils.TwMerge(
var templ_7745c5c3_Var9 = []any{utils.TwMerge(
"relative h-6 w-10",
"after:absolute after:left-0.5 after:top-0.5",
"after:h-5 after:w-5",

View file

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.865
// templ: version: v0.3.924
// templui component tooltip - version: v0.84.0 installed by templui v0.84.0
package tooltip