Skip to content

Commit f8c1901

Browse files
committed
feat!: update configuration to @una-ui/v1
1 parent 1ca2c49 commit f8c1901

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+177
-172
lines changed

components/OgImage/UnaUIContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const { logo, title: siteTitle, showTitle } = useConfig().value.header
2828
<h1 class="text-8xl font-bold">
2929
{{ title }}
3030
</h1>
31-
<p class="text-4xl text-muted leading-tight">
31+
<p class="text-muted-foreground text-4xl leading-tight">
3232
{{ description }}
3333
</p>
3434
</div>

components/common/alert/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ export { default as AlertTitle } from './AlertTitle.vue'
77

88
// @unocss-include
99
export const alertVariants = cva(
10-
'relative w-full rounded-lg border p-4 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-base [&>svg~*]:pl-7',
10+
'relative w-full rounded-lg border p-4 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7',
1111
{
1212
variants: {
1313
variant: {
14-
default: 'bg-base text-base',
14+
default: 'bg-background text-foreground',
1515
destructive:
1616
'border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive',
1717
},

components/common/badge/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ export { default as Badge } from './Badge.vue'
55

66
// @unocss-include
77
export const badgeVariants = cva(
8-
'inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-base focus:ring-offset-2',
8+
'inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',
99
{
1010
variants: {
1111
variant: {
1212
default:
13-
'border-transparent bg-primary text-inverted hover:bg-primary/80',
13+
'border-transparent bg-primary text-background hover:bg-primary/80',
1414
secondary:
15-
'border-transparent bg-accent text-accent hover:bg-muted',
15+
'border-transparent bg-accent text-accent-foreground hover:bg-muted',
1616
destructive:
1717
'border-transparent bg-error text-error hover:bg-error/80',
18-
outline: 'text-base',
18+
outline: 'text-foreground',
1919
},
2020
},
2121
defaultVariants: {

components/common/breadcrumb/BreadcrumbList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const props = defineProps<{
99

1010
<template>
1111
<ol
12-
:class="cn('flex flex-wrap items-center gap-1.5 break-words text-sm text-muted sm:gap-2.5', props.class)"
12+
:class="cn('flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5', props.class)"
1313
>
1414
<slot />
1515
</ol>

components/common/card/Card.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const props = defineProps<{
1111
<div
1212
:class="
1313
cn(
14-
'rounded-lg border bg-card text-card shadow-sm',
14+
'rounded-lg border bg-card text-card-foreground shadow-sm',
1515
props.class,
1616
)
1717
"

components/common/card/CardDescription.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const props = defineProps<{
88
</script>
99

1010
<template>
11-
<p :class="cn('text-sm text-muted', props.class)">
11+
<p :class="cn('text-sm text-muted-foreground', props.class)">
1212
<slot />
1313
</p>
1414
</template>

components/common/command/Command.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
2424
<template>
2525
<ComboboxRoot
2626
v-bind="forwarded"
27-
:class="cn('flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover', props.class)"
27+
:class="cn('flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground', props.class)"
2828
>
2929
<slot />
3030
</ComboboxRoot>

components/common/command/CommandGroup.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ const delegatedProps = computed(() => {
2020
<template>
2121
<ComboboxGroup
2222
v-bind="delegatedProps"
23-
:class="cn('overflow-hidden p-1 text-base [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted', props.class)"
23+
:class="cn('overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground', props.class)"
2424
>
25-
<ComboboxLabel v-if="heading" class="px-2 py-1.5 text-xs text-muted font-medium">
25+
<ComboboxLabel v-if="heading" class="text-muted-foreground px-2 py-1.5 text-xs font-medium">
2626
{{ heading }}
2727
</ComboboxLabel>
2828
<slot />

components/common/command/CommandInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const forwardedProps = useForwardProps(delegatedProps)
3030
<ComboboxInput
3131
v-bind="{ ...forwardedProps, ...$attrs }"
3232
auto-focus
33-
:class="cn('flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted disabled:cursor-not-allowed disabled:opacity-50', props.class)"
33+
:class="cn('flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50', props.class)"
3434
/>
3535
</div>
3636
</template>

components/common/dialog/DialogContent.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
3333
v-bind="forwarded"
3434
:class="
3535
cn(
36-
'fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-base p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg',
36+
'fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg',
3737
props.class,
3838
)"
3939
>
4040
<slot />
4141
<DialogClose
42-
class="absolute right-4 top-4 rounded-sm bg-base opacity-70 ring-offset-base transition-opacity disabled:pointer-events-none data-[state=open]:text-muted hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-base"
42+
class="data-[state=open]:text-muted-foreground focus:ring-ring absolute right-4 top-4 rounded-sm bg-background opacity-70 ring-offset-background transition-opacity disabled:pointer-events-none hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2"
4343
>
4444
<Icon name="lucide:x" class="block square-4" />
4545
<span class="sr-only">Close</span>

0 commit comments

Comments
 (0)