Skip to content

Commit d33ca01

Browse files
committed
next: update shadcn
1 parent b6fd4d1 commit d33ca01

File tree

9 files changed

+12
-34
lines changed

9 files changed

+12
-34
lines changed

src/Exceptionless.Web/ClientApp/components.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"$schema": "https://next.shadcn-svelte.com/schema.json",
3-
"style": "new-york",
43
"tailwind": {
5-
"config": "tailwind.config.js",
64
"css": "src/app.css",
75
"baseColor": "zinc"
86
},

src/Exceptionless.Web/ClientApp/src/lib/features/shared/components/ui/checkbox/checkbox.svelte

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,15 @@
1717
bind:ref
1818
data-slot="checkbox"
1919
class={cn(
20-
"border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive shadow-xs peer size-4 shrink-0 rounded-[4px] border outline-none transition-shadow focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
20+
"border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive shadow-xs peer flex size-4 shrink-0 items-center justify-center rounded-[4px] border outline-none transition-shadow focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
2121
className
2222
)}
2323
bind:checked
2424
bind:indeterminate
2525
{...restProps}
2626
>
2727
{#snippet children({ checked, indeterminate })}
28-
<div
29-
data-slot="checkbox-indicator"
30-
class="flex items-center justify-center text-current transition-none"
31-
>
28+
<div data-slot="checkbox-indicator" class="text-current transition-none">
3229
{#if checked}
3330
<CheckIcon class="size-3.5" />
3431
{:else if indeterminate}

src/Exceptionless.Web/ClientApp/src/lib/features/shared/components/ui/input/input.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
{#if type === "file"}
2323
<input
2424
bind:this={ref}
25+
data-slot="input"
2526
class={cn(
2627
"selection:bg-primary dark:bg-input/30 selection:text-primary-foreground border-input ring-offset-background placeholder:text-muted-foreground shadow-xs flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-2 text-sm font-medium outline-none transition-[color,box-shadow] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
2728
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
@@ -36,6 +37,7 @@
3637
{:else}
3738
<input
3839
bind:this={ref}
40+
data-slot="input"
3941
class={cn(
4042
"border-input bg-background selection:bg-primary dark:bg-input/30 selection:text-primary-foreground ring-offset-background placeholder:text-muted-foreground shadow-xs flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base outline-none transition-[color,box-shadow] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
4143
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",

src/Exceptionless.Web/ClientApp/src/lib/features/shared/components/ui/select/select-group-heading.svelte

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/Exceptionless.Web/ClientApp/src/lib/features/shared/components/ui/select/select-scroll-down-button.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<SelectPrimitive.ScrollDownButton
1414
bind:ref
15-
data-slot="select-scroll-up-button"
15+
data-slot="select-scroll-down-button"
1616
class={cn("flex cursor-default items-center justify-center py-1", className)}
1717
{...restProps}
1818
>

src/Exceptionless.Web/ClientApp/src/lib/features/shared/components/ui/select/select-scroll-up-button.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<SelectPrimitive.ScrollUpButton
1414
bind:ref
15-
data-slot="select-scroll-down-button"
15+
data-slot="select-scroll-up-button"
1616
class={cn("flex cursor-default items-center justify-center py-1", className)}
1717
{...restProps}
1818
>

src/Exceptionless.Web/ClientApp/src/lib/features/shared/components/ui/sheet/sheet-content.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<script lang="ts" module>
22
import { tv, type VariantProps } from "tailwind-variants";
33
export const sheetVariants = tv({
4-
base: "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 gap-4 p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
4+
base: "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
55
variants: {
66
side: {
7-
top: "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 border-b",
8-
bottom: "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 border-t",
7+
top: "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
8+
bottom: "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
99
left: "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
1010
right: "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
1111
},
@@ -49,7 +49,7 @@
4949
>
5050
{@render children?.()}
5151
<SheetPrimitive.Close
52-
class="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none"
52+
class="ring-offset-background focus-visible:ring-ring rounded-xs focus-visible:outline-hidden absolute right-4 top-4 opacity-70 transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none"
5353
>
5454
<XIcon class="size-4" />
5555
<span class="sr-only">Close</span>

src/Exceptionless.Web/ClientApp/src/lib/features/shared/components/ui/table/table-cell.svelte

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313
<td
1414
bind:this={ref}
1515
data-slot="table-cell"
16-
class={cn(
17-
"whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
18-
className
19-
)}
16+
class={cn("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0", className)}
2017
{...restProps}
2118
>
2219
{@render children?.()}

src/Exceptionless.Web/ClientApp/src/lib/features/shared/components/ui/table/table-head.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
bind:this={ref}
1515
data-slot="table-head"
1616
class={cn(
17-
"text-foreground h-10 whitespace-nowrap px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
17+
"text-foreground h-10 whitespace-nowrap px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0",
1818
className
1919
)}
2020
{...restProps}

0 commit comments

Comments
 (0)