@k3-tech/react-kit 0.0.67 → 0.0.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +87 -52
- package/dist/kit/themes/clean-slate.css +271 -71
- package/dist/kit/themes/default.css +275 -75
- package/dist/kit/themes/minimal-modern.css +271 -71
- package/dist/kit/themes/spotify.css +271 -71
- package/dist/shadcn/ui/breadcrumb.d.ts.map +1 -1
- package/dist/shadcn/ui/dialog.d.ts.map +1 -1
- package/dist/shadcn/ui/pagination.d.ts.map +1 -1
- package/dist/shadcn/ui/sonner.d.ts +1 -1
- package/dist/shadcn/ui/sonner.d.ts.map +1 -1
- package/dist/shadcn/ui/table.d.ts +6 -2
- package/dist/shadcn/ui/table.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/kit/components/autocomplete/Autocomplete.tsx +1 -1
- package/src/kit/components/fileuploader/FileUploader.tsx +2 -2
- package/src/kit/layouts/admin/components/AdminLayout.tsx +8 -8
- package/src/kit/themes/default.css +3 -3
- package/src/shadcn/ui/accordion.tsx +3 -3
- package/src/shadcn/ui/alert-dialog.tsx +2 -2
- package/src/shadcn/ui/avatar.tsx +1 -1
- package/src/shadcn/ui/badge.tsx +1 -1
- package/src/shadcn/ui/breadcrumb.tsx +7 -4
- package/src/shadcn/ui/calendar.tsx +2 -2
- package/src/shadcn/ui/card.tsx +1 -1
- package/src/shadcn/ui/dialog.tsx +8 -5
- package/src/shadcn/ui/pagination.tsx +2 -1
- package/src/shadcn/ui/progress.tsx +2 -2
- package/src/shadcn/ui/sheet.tsx +4 -4
- package/src/shadcn/ui/sidebar.tsx +2 -2
- package/src/shadcn/ui/sonner.tsx +13 -1
- package/src/shadcn/ui/switch.tsx +1 -1
- package/src/shadcn/ui/table.tsx +24 -6
- package/src/shadcn/ui/tabs.tsx +2 -2
- package/src/shadcn/ui/tooltip.tsx +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/shadcn/ui/table.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,iBAAS,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/shadcn/ui/table.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,2CAiBrD;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAQ1E;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAQxE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAW1E;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWpE;AAED,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,2CAgBrD;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWrE;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,2CAQjC;AAED,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACb,CAAC"}
|
package/package.json
CHANGED
|
@@ -693,7 +693,7 @@ export function Autocomplete<T = unknown>({
|
|
|
693
693
|
{...getItemProps({ item, index })}
|
|
694
694
|
className={cn(
|
|
695
695
|
'flex cursor-pointer items-center justify-between px-2 py-2 text-sm outline-none transition-colors',
|
|
696
|
-
isHighlighted && 'bg-
|
|
696
|
+
isHighlighted && 'bg-[#FAFAFA] text-foreground',
|
|
697
697
|
isSelected && 'font-medium',
|
|
698
698
|
)}
|
|
699
699
|
>
|
|
@@ -529,9 +529,9 @@ export function FileUploader({
|
|
|
529
529
|
}, [files]);
|
|
530
530
|
|
|
531
531
|
const rootClasses = cn(
|
|
532
|
-
"w-full border border-dashed rounded-
|
|
532
|
+
"w-full border-2 border-dashed rounded-[10px] p-4 text-sm transition-colors bg-background",
|
|
533
533
|
"hover:border-foreground/50",
|
|
534
|
-
isDragActive && "border-
|
|
534
|
+
isDragActive && "border-[#30A4A1] bg-[#F0FAFA]",
|
|
535
535
|
isDragReject && "border-destructive",
|
|
536
536
|
(disabled || disabledBecauseFull) && "opacity-50 pointer-events-none",
|
|
537
537
|
);
|
|
@@ -112,7 +112,7 @@ function AdminLayoutContent({
|
|
|
112
112
|
if (hasChildren) setOpen(item.id);
|
|
113
113
|
}}
|
|
114
114
|
disabled={item.disabled}
|
|
115
|
-
className={`group relative overflow-hidden rounded-lg transition-all duration-200 hover:bg-
|
|
115
|
+
className={`group relative overflow-hidden rounded-lg transition-all duration-200 hover:bg-[#FAFAFA] data-[active=true]:bg-sidebar-primary data-[active=true]:text-sidebar-primary-foreground ${indent}`}
|
|
116
116
|
>
|
|
117
117
|
{item.url && !hasChildren ? (
|
|
118
118
|
<Link to={item.url} className="flex items-center gap-3 px-3">
|
|
@@ -179,7 +179,7 @@ function AdminLayoutContent({
|
|
|
179
179
|
// (rendered as <li>) children don't end up as direct descendants of
|
|
180
180
|
// a <div> inside another <li> — that's invalid HTML and triggers a
|
|
181
181
|
// React hydration warning.
|
|
182
|
-
<ul className="mt-1 ml-[18px] flex flex-col list-none border-l border-sidebar-border pl-2 py-0.5 m-0">
|
|
182
|
+
<ul className="mt-1 ml-[18px] flex flex-col list-none border-l border-sidebar-border pl-2 py-0.5 m-0 group-data-[collapsible=icon]:hidden">
|
|
183
183
|
{(item.children ?? []).map((child: AdminMenuItem) =>
|
|
184
184
|
renderItem(child, Math.min(level + 1, 3)),
|
|
185
185
|
)}
|
|
@@ -201,12 +201,12 @@ function AdminLayoutContent({
|
|
|
201
201
|
{sidebarHeader ? (
|
|
202
202
|
sidebarHeader
|
|
203
203
|
) : (
|
|
204
|
-
<div className="sidebar-header-content flex items-center justify-center px-4 py-3">
|
|
205
|
-
<div className="flex items-center gap-2">
|
|
206
|
-
<div className="flex h-
|
|
204
|
+
<div className="sidebar-header-content flex items-center justify-center px-4 py-3 group-data-[collapsible=icon]:px-0">
|
|
205
|
+
<div className="flex items-center gap-2 group-data-[collapsible=icon]:gap-0">
|
|
206
|
+
<div className="flex h-10 w-10 items-center justify-center rounded-lg bg-[#1A9E8F] text-sidebar-primary-foreground">
|
|
207
207
|
<SidebarHeaderIcon className="h-4 w-4" />
|
|
208
208
|
</div>
|
|
209
|
-
<span className="font-
|
|
209
|
+
<span className="font-bold text-[18px] text-[#0d9488] tracking-[-0.01em] group-data-[collapsible=icon]:hidden">
|
|
210
210
|
{sidebarTitle}
|
|
211
211
|
</span>
|
|
212
212
|
</div>
|
|
@@ -241,7 +241,7 @@ function AdminLayoutContent({
|
|
|
241
241
|
<SidebarMenuItem className="group-data-[collapsible=icon]:flex group-data-[collapsible=icon]:w-full group-data-[collapsible=icon]:justify-center">
|
|
242
242
|
<SidebarMenuButton
|
|
243
243
|
tooltip="Logout"
|
|
244
|
-
className="cursor-pointer group relative overflow-hidden rounded-lg mx-1 transition-all duration-200 hover:bg-
|
|
244
|
+
className="cursor-pointer group relative overflow-hidden rounded-lg mx-1 transition-all duration-200 hover:bg-[#FAFAFA] hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:flex group-data-[collapsible=icon]:w-full group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:!justify-center group-data-[collapsible=icon]:!px-0 group-data-[collapsible=icon]:!gap-0"
|
|
245
245
|
onClick={() => { void onLogout(); }}
|
|
246
246
|
>
|
|
247
247
|
<div className="flex items-center gap-3 px-3 py-2.5 group-data-[collapsible=icon]:w-full group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:!justify-center group-data-[collapsible=icon]:!gap-0 group-data-[collapsible=icon]:!px-0">
|
|
@@ -257,7 +257,7 @@ function AdminLayoutContent({
|
|
|
257
257
|
)}
|
|
258
258
|
</Sidebar>
|
|
259
259
|
<SidebarInset>
|
|
260
|
-
<header className="flex h-
|
|
260
|
+
<header className="flex h-[69px] shrink-0 items-center justify-between gap-4 border-b border-border/40 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 px-6">
|
|
261
261
|
<div className="flex items-center gap-4">
|
|
262
262
|
{sidebarCollapsible && (
|
|
263
263
|
<SidebarTrigger className="h-8 w-8 text-foreground hover:bg-accent hover:text-accent-foreground rounded-md" />
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
--shadow-2xl: 0px 4px 8px 0px hsl(0 0% 0% / 0.13);
|
|
56
56
|
--tracking-normal: 0em;
|
|
57
57
|
--spacing: 0.25rem;
|
|
58
|
-
--font-sans:
|
|
58
|
+
--font-sans: "Source Sans Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
59
59
|
--font-serif: Crete Round, ui-serif, serif;
|
|
60
60
|
--font-mono: JetBrains Mono, ui-monospace, monospace;
|
|
61
61
|
--shadow-color: #000000;
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
--shadow-xl:
|
|
115
115
|
0px 2px 4px 0px hsl(0 0% 0% / 0.1), 0px 8px 10px -1px hsl(0 0% 0% / 0.1);
|
|
116
116
|
--shadow-2xl: 0px 2px 4px 0px hsl(0 0% 0% / 0.25);
|
|
117
|
-
--font-sans:
|
|
117
|
+
--font-sans: "Source Sans Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
118
118
|
--font-serif: Crete Round, ui-serif, serif;
|
|
119
119
|
--font-mono: JetBrains Mono, ui-monospace, monospace;
|
|
120
120
|
--shadow-color: #000000;
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
--color-sidebar-border: var(--sidebar-border);
|
|
162
162
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
163
163
|
|
|
164
|
-
--font-sans:
|
|
164
|
+
--font-sans: "Source Sans Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
165
165
|
--font-mono: JetBrains Mono, ui-monospace, monospace;
|
|
166
166
|
--font-serif: Crete Round, ui-serif, serif;
|
|
167
167
|
|
|
@@ -35,13 +35,13 @@ function AccordionTrigger({
|
|
|
35
35
|
<AccordionPrimitive.Trigger
|
|
36
36
|
data-slot="accordion-trigger"
|
|
37
37
|
className={cn(
|
|
38
|
-
'focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md
|
|
38
|
+
'focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md px-4 py-[14px] text-left text-[13.5px] font-semibold text-[#424242] transition-all outline-none hover:bg-[#FAFAFA] hover:no-underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180',
|
|
39
39
|
className,
|
|
40
40
|
)}
|
|
41
41
|
{...props}
|
|
42
42
|
>
|
|
43
43
|
{children}
|
|
44
|
-
<ChevronDownIcon className="text-muted-foreground pointer-events-none size-
|
|
44
|
+
<ChevronDownIcon className="text-muted-foreground pointer-events-none size-3 shrink-0 translate-y-0.5 transition-transform duration-200" />
|
|
45
45
|
</AccordionPrimitive.Trigger>
|
|
46
46
|
</AccordionPrimitive.Header>
|
|
47
47
|
);
|
|
@@ -58,7 +58,7 @@ function AccordionContent({
|
|
|
58
58
|
className="data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm"
|
|
59
59
|
{...props}
|
|
60
60
|
>
|
|
61
|
-
<div className={cn('pt-0
|
|
61
|
+
<div className={cn('px-4 pb-[14px] pt-0 text-[13px] text-[#2B2F36]', className)}>{children}</div>
|
|
62
62
|
</AccordionPrimitive.Content>
|
|
63
63
|
);
|
|
64
64
|
}
|
|
@@ -54,7 +54,7 @@ function AlertDialogContent({
|
|
|
54
54
|
<AlertDialogPrimitive.Content
|
|
55
55
|
data-slot="alert-dialog-content"
|
|
56
56
|
className={cn(
|
|
57
|
-
'bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-
|
|
57
|
+
'bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-[10px] border p-6 shadow-[0_24px_48px_rgba(15,17,21,.18),0_6px_12px_rgba(15,17,21,.08)] duration-200 sm:max-w-[440px]',
|
|
58
58
|
className,
|
|
59
59
|
)}
|
|
60
60
|
{...props}
|
|
@@ -99,7 +99,7 @@ function AlertDialogTitle({
|
|
|
99
99
|
return (
|
|
100
100
|
<AlertDialogPrimitive.Title
|
|
101
101
|
data-slot="alert-dialog-title"
|
|
102
|
-
className={cn('text-
|
|
102
|
+
className={cn('text-base font-bold', className)}
|
|
103
103
|
{...props}
|
|
104
104
|
/>
|
|
105
105
|
);
|
package/src/shadcn/ui/avatar.tsx
CHANGED
|
@@ -42,7 +42,7 @@ function AvatarFallback({
|
|
|
42
42
|
<AvatarPrimitive.Fallback
|
|
43
43
|
data-slot="avatar-fallback"
|
|
44
44
|
className={cn(
|
|
45
|
-
'bg-
|
|
45
|
+
'bg-[#30A4A1] text-white text-xs font-semibold flex size-full items-center justify-center rounded-full',
|
|
46
46
|
className,
|
|
47
47
|
)}
|
|
48
48
|
{...props}
|
package/src/shadcn/ui/badge.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import { cva, type VariantProps } from 'class-variance-authority';
|
|
|
5
5
|
import { cn } from '../../shadcn/lib/utils';
|
|
6
6
|
|
|
7
7
|
const badgeVariants = cva(
|
|
8
|
-
'inline-flex items-center justify-center rounded-
|
|
8
|
+
'inline-flex items-center justify-center rounded-full 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 transition-[color,box-shadow] overflow-hidden',
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
@@ -12,7 +12,7 @@ function BreadcrumbList({ className, ...props }: React.ComponentProps<'ol'>) {
|
|
|
12
12
|
<ol
|
|
13
13
|
data-slot="breadcrumb-list"
|
|
14
14
|
className={cn(
|
|
15
|
-
'text-muted-foreground flex flex-wrap items-center gap-1
|
|
15
|
+
'text-muted-foreground flex flex-wrap items-center gap-1 text-[12.5px] break-words sm:gap-1.5',
|
|
16
16
|
className,
|
|
17
17
|
)}
|
|
18
18
|
{...props}
|
|
@@ -42,7 +42,10 @@ function BreadcrumbLink({
|
|
|
42
42
|
return (
|
|
43
43
|
<Comp
|
|
44
44
|
data-slot="breadcrumb-link"
|
|
45
|
-
className={cn(
|
|
45
|
+
className={cn(
|
|
46
|
+
'transition-colors hover:text-[#0d9488] hover:underline',
|
|
47
|
+
className,
|
|
48
|
+
)}
|
|
46
49
|
{...props}
|
|
47
50
|
/>
|
|
48
51
|
);
|
|
@@ -55,7 +58,7 @@ function BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>) {
|
|
|
55
58
|
role="link"
|
|
56
59
|
aria-disabled="true"
|
|
57
60
|
aria-current="page"
|
|
58
|
-
className={cn('
|
|
61
|
+
className={cn('font-semibold text-[#2b2f36]', className)}
|
|
59
62
|
{...props}
|
|
60
63
|
/>
|
|
61
64
|
);
|
|
@@ -71,7 +74,7 @@ function BreadcrumbSeparator({
|
|
|
71
74
|
data-slot="breadcrumb-separator"
|
|
72
75
|
role="presentation"
|
|
73
76
|
aria-hidden="true"
|
|
74
|
-
className={cn('[&>svg]:size-3
|
|
77
|
+
className={cn('text-[#9ca3af] [&>svg]:size-3', className)}
|
|
75
78
|
{...props}
|
|
76
79
|
>
|
|
77
80
|
{children ?? <ChevronRightIcon />}
|
|
@@ -114,7 +114,7 @@ function Calendar({
|
|
|
114
114
|
range_middle: cn('rounded-none', defaultClassNames.range_middle),
|
|
115
115
|
range_end: cn('rounded-r-md bg-accent', defaultClassNames.range_end),
|
|
116
116
|
today: cn(
|
|
117
|
-
'
|
|
117
|
+
'text-[#0D9488] font-semibold rounded-md data-[selected=true]:rounded-none',
|
|
118
118
|
defaultClassNames.today,
|
|
119
119
|
),
|
|
120
120
|
outside: cn(
|
|
@@ -205,7 +205,7 @@ function CalendarDayButton({
|
|
|
205
205
|
data-range-end={modifiers.range_end}
|
|
206
206
|
data-range-middle={modifiers.range_middle}
|
|
207
207
|
className={cn(
|
|
208
|
-
'data-[selected-single=true]:bg-
|
|
208
|
+
'data-[selected-single=true]:bg-[#0D9488] data-[selected-single=true]:text-white data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-[#0D9488] data-[range-start=true]:text-white data-[range-end=true]:bg-[#0D9488] data-[range-end=true]:text-white group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70',
|
|
209
209
|
defaultClassNames.day,
|
|
210
210
|
className,
|
|
211
211
|
)}
|
package/src/shadcn/ui/card.tsx
CHANGED
|
@@ -7,7 +7,7 @@ function Card({ className, ...props }: React.ComponentProps<'div'>) {
|
|
|
7
7
|
<div
|
|
8
8
|
data-slot="card"
|
|
9
9
|
className={cn(
|
|
10
|
-
'bg-card text-card-foreground flex flex-col gap-6 rounded-
|
|
10
|
+
'bg-card text-card-foreground flex flex-col gap-6 rounded-md border border-border py-6 shadow-sm',
|
|
11
11
|
className,
|
|
12
12
|
)}
|
|
13
13
|
{...props}
|
package/src/shadcn/ui/dialog.tsx
CHANGED
|
@@ -60,7 +60,7 @@ function DialogContent({
|
|
|
60
60
|
<DialogPrimitive.Content
|
|
61
61
|
data-slot="dialog-content"
|
|
62
62
|
className={cn(
|
|
63
|
-
'bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-
|
|
63
|
+
'bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-md border p-6 shadow-[0_8px_24px_rgba(15,17,21,.12),0_2px_6px_rgba(15,17,21,.06)] duration-200 sm:max-w-[520px]',
|
|
64
64
|
className,
|
|
65
65
|
)}
|
|
66
66
|
{...props}
|
|
@@ -69,7 +69,7 @@ function DialogContent({
|
|
|
69
69
|
{showCloseButton && (
|
|
70
70
|
<DialogPrimitive.Close
|
|
71
71
|
data-slot="dialog-close"
|
|
72
|
-
className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-
|
|
72
|
+
className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 flex size-6 items-center justify-center rounded-full border-[1.5px] border-[#2B2F36] opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
|
|
73
73
|
>
|
|
74
74
|
<XIcon />
|
|
75
75
|
<span className="sr-only">Close</span>
|
|
@@ -84,7 +84,10 @@ function DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {
|
|
|
84
84
|
return (
|
|
85
85
|
<div
|
|
86
86
|
data-slot="dialog-header"
|
|
87
|
-
className={cn(
|
|
87
|
+
className={cn(
|
|
88
|
+
'flex flex-col gap-2 border-b border-[#F0F0F0] pb-3 text-center sm:text-left',
|
|
89
|
+
className,
|
|
90
|
+
)}
|
|
88
91
|
{...props}
|
|
89
92
|
/>
|
|
90
93
|
);
|
|
@@ -95,7 +98,7 @@ function DialogFooter({ className, ...props }: React.ComponentProps<'div'>) {
|
|
|
95
98
|
<div
|
|
96
99
|
data-slot="dialog-footer"
|
|
97
100
|
className={cn(
|
|
98
|
-
'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end',
|
|
101
|
+
'flex flex-col-reverse gap-2 border-t border-[#F0F0F0] pt-3 sm:flex-row sm:justify-end',
|
|
99
102
|
className,
|
|
100
103
|
)}
|
|
101
104
|
{...props}
|
|
@@ -110,7 +113,7 @@ function DialogTitle({
|
|
|
110
113
|
return (
|
|
111
114
|
<DialogPrimitive.Title
|
|
112
115
|
data-slot="dialog-title"
|
|
113
|
-
className={cn('text-
|
|
116
|
+
className={cn('text-[15px] leading-none font-bold', className)}
|
|
114
117
|
{...props}
|
|
115
118
|
/>
|
|
116
119
|
);
|
|
@@ -52,12 +52,13 @@ function PaginationLink({
|
|
|
52
52
|
<a
|
|
53
53
|
aria-current={isActive ? 'page' : undefined}
|
|
54
54
|
data-slot="pagination-link"
|
|
55
|
-
data-active={isActive}
|
|
55
|
+
data-active={isActive ? true : undefined}
|
|
56
56
|
className={cn(
|
|
57
57
|
buttonVariants({
|
|
58
58
|
variant: isActive ? 'outline' : 'ghost',
|
|
59
59
|
size,
|
|
60
60
|
}),
|
|
61
|
+
'data-[active=true]:bg-[#F0FAFA] data-[active=true]:text-[#0D9488] data-[active=true]:font-semibold data-[active=true]:border-[#E0F2F1]',
|
|
61
62
|
className,
|
|
62
63
|
)}
|
|
63
64
|
{...props}
|
|
@@ -14,14 +14,14 @@ function Progress({
|
|
|
14
14
|
<ProgressPrimitive.Root
|
|
15
15
|
data-slot="progress"
|
|
16
16
|
className={cn(
|
|
17
|
-
'bg-primary/20 relative h-
|
|
17
|
+
'bg-primary/20 relative h-[3px] w-full overflow-hidden rounded-full',
|
|
18
18
|
className,
|
|
19
19
|
)}
|
|
20
20
|
{...props}
|
|
21
21
|
>
|
|
22
22
|
<ProgressPrimitive.Indicator
|
|
23
23
|
data-slot="progress-indicator"
|
|
24
|
-
className="bg-
|
|
24
|
+
className="bg-[#30A4A1] h-full w-full flex-1 transition-all"
|
|
25
25
|
style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
|
|
26
26
|
/>
|
|
27
27
|
</ProgressPrimitive.Root>
|
package/src/shadcn/ui/sheet.tsx
CHANGED
|
@@ -60,7 +60,7 @@ function SheetContent({
|
|
|
60
60
|
className={cn(
|
|
61
61
|
'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',
|
|
62
62
|
side === 'right' &&
|
|
63
|
-
'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-
|
|
63
|
+
'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 shadow-[-8px_0_24px_rgba(15,17,21,.08)] sm:max-w-[360px]',
|
|
64
64
|
side === 'left' &&
|
|
65
65
|
'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',
|
|
66
66
|
side === 'top' &&
|
|
@@ -85,7 +85,7 @@ function SheetHeader({ className, ...props }: React.ComponentProps<'div'>) {
|
|
|
85
85
|
return (
|
|
86
86
|
<div
|
|
87
87
|
data-slot="sheet-header"
|
|
88
|
-
className={cn('flex flex-col gap-1.5 p-4', className)}
|
|
88
|
+
className={cn('flex flex-col gap-1.5 border-b border-[#F5F5F5] p-4', className)}
|
|
89
89
|
{...props}
|
|
90
90
|
/>
|
|
91
91
|
);
|
|
@@ -95,7 +95,7 @@ function SheetFooter({ className, ...props }: React.ComponentProps<'div'>) {
|
|
|
95
95
|
return (
|
|
96
96
|
<div
|
|
97
97
|
data-slot="sheet-footer"
|
|
98
|
-
className={cn('mt-auto flex flex-col gap-2 p-4', className)}
|
|
98
|
+
className={cn('mt-auto flex flex-col gap-2 border-t border-[#F5F5F5] p-4', className)}
|
|
99
99
|
{...props}
|
|
100
100
|
/>
|
|
101
101
|
);
|
|
@@ -108,7 +108,7 @@ function SheetTitle({
|
|
|
108
108
|
return (
|
|
109
109
|
<SheetPrimitive.Title
|
|
110
110
|
data-slot="sheet-title"
|
|
111
|
-
className={cn('text-foreground font-
|
|
111
|
+
className={cn('text-foreground text-sm font-bold', className)}
|
|
112
112
|
{...props}
|
|
113
113
|
/>
|
|
114
114
|
);
|
|
@@ -27,9 +27,9 @@ import {
|
|
|
27
27
|
|
|
28
28
|
const SIDEBAR_COOKIE_NAME = 'sidebar_state';
|
|
29
29
|
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
30
|
-
const SIDEBAR_WIDTH = '
|
|
30
|
+
const SIDEBAR_WIDTH = '15.5rem';
|
|
31
31
|
const SIDEBAR_WIDTH_MOBILE = '18rem';
|
|
32
|
-
const SIDEBAR_WIDTH_ICON = '
|
|
32
|
+
const SIDEBAR_WIDTH_ICON = '4.125rem';
|
|
33
33
|
const SIDEBAR_KEYBOARD_SHORTCUT = 'b';
|
|
34
34
|
|
|
35
35
|
type SidebarContextProps = {
|
package/src/shadcn/ui/sonner.tsx
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { useTheme } from 'next-themes';
|
|
4
4
|
import { Toaster as Sonner, type ToasterProps } from 'sonner';
|
|
5
5
|
|
|
6
|
-
const Toaster = ({ ...props }: ToasterProps) => {
|
|
6
|
+
const Toaster = ({ toastOptions, ...props }: ToasterProps) => {
|
|
7
7
|
const { theme = 'system' } = useTheme();
|
|
8
8
|
|
|
9
9
|
return (
|
|
@@ -18,6 +18,18 @@ const Toaster = ({ ...props }: ToasterProps) => {
|
|
|
18
18
|
} as React.CSSProperties
|
|
19
19
|
}
|
|
20
20
|
{...props}
|
|
21
|
+
toastOptions={{
|
|
22
|
+
...toastOptions,
|
|
23
|
+
classNames: {
|
|
24
|
+
toast:
|
|
25
|
+
'rounded-lg border-l-4 border-l-[#1976F2] shadow-[0_8px_24px_rgba(15,17,21,.12),0_2px_6px_rgba(15,17,21,.06)]',
|
|
26
|
+
success: 'border-l-[#2BA84A]',
|
|
27
|
+
error: 'border-l-[#EF4444]',
|
|
28
|
+
warning: 'border-l-[#F59E0B]',
|
|
29
|
+
info: 'border-l-[#1976F2]',
|
|
30
|
+
...toastOptions?.classNames,
|
|
31
|
+
},
|
|
32
|
+
}}
|
|
21
33
|
/>
|
|
22
34
|
);
|
|
23
35
|
};
|
package/src/shadcn/ui/switch.tsx
CHANGED
|
@@ -13,7 +13,7 @@ function Switch({
|
|
|
13
13
|
<SwitchPrimitive.Root
|
|
14
14
|
data-slot="switch"
|
|
15
15
|
className={cn(
|
|
16
|
-
'peer data-[state=checked]:bg-
|
|
16
|
+
'peer data-[state=checked]:bg-[#30A4A1] data-[state=unchecked]:bg-[#e5e7eb] focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-5 w-9 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50',
|
|
17
17
|
className,
|
|
18
18
|
)}
|
|
19
19
|
{...props}
|
package/src/shadcn/ui/table.tsx
CHANGED
|
@@ -4,7 +4,11 @@ import type * as React from 'react';
|
|
|
4
4
|
|
|
5
5
|
import { cn } from '../../shadcn/lib/utils';
|
|
6
6
|
|
|
7
|
-
function Table({
|
|
7
|
+
function Table({
|
|
8
|
+
className,
|
|
9
|
+
zebra,
|
|
10
|
+
...props
|
|
11
|
+
}: React.ComponentProps<'table'> & { zebra?: boolean }) {
|
|
8
12
|
return (
|
|
9
13
|
<div
|
|
10
14
|
data-slot="table-container"
|
|
@@ -12,7 +16,11 @@ function Table({ className, ...props }: React.ComponentProps<'table'>) {
|
|
|
12
16
|
>
|
|
13
17
|
<table
|
|
14
18
|
data-slot="table"
|
|
15
|
-
className={cn(
|
|
19
|
+
className={cn(
|
|
20
|
+
'w-full caption-bottom text-[13px] border-border',
|
|
21
|
+
zebra && '[&_tbody_tr:nth-child(even)_td]:bg-[#CBF6F4]',
|
|
22
|
+
className,
|
|
23
|
+
)}
|
|
16
24
|
{...props}
|
|
17
25
|
/>
|
|
18
26
|
</div>
|
|
@@ -57,7 +65,7 @@ function TableRow({ className, ...props }: React.ComponentProps<'tr'>) {
|
|
|
57
65
|
<tr
|
|
58
66
|
data-slot="table-row"
|
|
59
67
|
className={cn(
|
|
60
|
-
'hover:bg-
|
|
68
|
+
'hover:bg-[#F7FAFB] data-[state=selected]:bg-[#CBF6F4] border-b border-border transition-colors',
|
|
61
69
|
className,
|
|
62
70
|
)}
|
|
63
71
|
{...props}
|
|
@@ -65,7 +73,12 @@ function TableRow({ className, ...props }: React.ComponentProps<'tr'>) {
|
|
|
65
73
|
);
|
|
66
74
|
}
|
|
67
75
|
|
|
68
|
-
function TableHead({
|
|
76
|
+
function TableHead({
|
|
77
|
+
className,
|
|
78
|
+
required,
|
|
79
|
+
children,
|
|
80
|
+
...props
|
|
81
|
+
}: React.ComponentProps<'th'> & { required?: boolean }) {
|
|
69
82
|
return (
|
|
70
83
|
<th
|
|
71
84
|
data-slot="table-head"
|
|
@@ -74,7 +87,12 @@ function TableHead({ className, ...props }: React.ComponentProps<'th'>) {
|
|
|
74
87
|
className,
|
|
75
88
|
)}
|
|
76
89
|
{...props}
|
|
77
|
-
|
|
90
|
+
>
|
|
91
|
+
{children}
|
|
92
|
+
{required && (
|
|
93
|
+
<span className="ml-[3px] text-[#FCA5A5] font-bold">*</span>
|
|
94
|
+
)}
|
|
95
|
+
</th>
|
|
78
96
|
);
|
|
79
97
|
}
|
|
80
98
|
|
|
@@ -83,7 +101,7 @@ function TableCell({ className, ...props }: React.ComponentProps<'td'>) {
|
|
|
83
101
|
<td
|
|
84
102
|
data-slot="table-cell"
|
|
85
103
|
className={cn(
|
|
86
|
-
'
|
|
104
|
+
'px-3 py-3.5 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',
|
|
87
105
|
className,
|
|
88
106
|
)}
|
|
89
107
|
{...props}
|
package/src/shadcn/ui/tabs.tsx
CHANGED
|
@@ -26,7 +26,7 @@ function TabsList({
|
|
|
26
26
|
<TabsPrimitive.List
|
|
27
27
|
data-slot="tabs-list"
|
|
28
28
|
className={cn(
|
|
29
|
-
'
|
|
29
|
+
'inline-flex items-center gap-1 border-b border-[#E5E7EB] bg-transparent p-0 h-auto',
|
|
30
30
|
className,
|
|
31
31
|
)}
|
|
32
32
|
{...props}
|
|
@@ -42,7 +42,7 @@ function TabsTrigger({
|
|
|
42
42
|
<TabsPrimitive.Trigger
|
|
43
43
|
data-slot="tabs-trigger"
|
|
44
44
|
className={cn(
|
|
45
|
-
"
|
|
45
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex items-center justify-center gap-1.5 rounded-t-md border border-transparent border-b-0 px-3 py-2 text-[13px] font-medium text-[#1976F2] whitespace-nowrap -mb-px transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-[#E5E7EB] data-[state=active]:bg-white data-[state=active]:text-[#424242] data-[state=active]:font-semibold [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
46
46
|
className,
|
|
47
47
|
)}
|
|
48
48
|
{...props}
|
|
@@ -46,13 +46,13 @@ function TooltipContent({
|
|
|
46
46
|
data-slot="tooltip-content"
|
|
47
47
|
sideOffset={sideOffset}
|
|
48
48
|
className={cn(
|
|
49
|
-
'bg-
|
|
49
|
+
'bg-[#424242] text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-[5px] px-2.5 py-[5px] text-[11.5px] text-balance',
|
|
50
50
|
className,
|
|
51
51
|
)}
|
|
52
52
|
{...props}
|
|
53
53
|
>
|
|
54
54
|
{children}
|
|
55
|
-
<TooltipPrimitive.Arrow className="bg-
|
|
55
|
+
<TooltipPrimitive.Arrow className="bg-[#424242] fill-[#424242] z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" />
|
|
56
56
|
</TooltipPrimitive.Content>
|
|
57
57
|
</TooltipPrimitive.Portal>
|
|
58
58
|
);
|