Upgrade dependencies and enhance UI components
This commit primarily focuses on updating various dependencies, including "@types/react", "@tanstack/react-query", "lucide-react", and others. In addition, several adjustments have been made to UI components, such as adding more properties
This commit is contained in:
@@ -55,11 +55,11 @@
|
|||||||
"@marsidev/react-turnstile": "^0.6.1",
|
"@marsidev/react-turnstile": "^0.6.1",
|
||||||
"@radix-ui/react-icons": "^1.3.0",
|
"@radix-ui/react-icons": "^1.3.0",
|
||||||
"@supabase/supabase-js": "^2.43.4",
|
"@supabase/supabase-js": "^2.43.4",
|
||||||
"@tanstack/react-query": "5.37.1",
|
"@tanstack/react-query": "5.39.0",
|
||||||
"@tanstack/react-query-next-experimental": "^5.36.2",
|
"@tanstack/react-query-next-experimental": "^5.39.0",
|
||||||
"@tanstack/react-table": "^8.17.3",
|
"@tanstack/react-table": "^8.17.3",
|
||||||
"date-fns": "^3.6.0",
|
"date-fns": "^3.6.0",
|
||||||
"lucide-react": "^0.378.0",
|
"lucide-react": "^0.379.0",
|
||||||
"next": "14.2.3",
|
"next": "14.2.3",
|
||||||
"next-sitemap": "^4.2.3",
|
"next-sitemap": "^4.2.3",
|
||||||
"next-themes": "0.3.0",
|
"next-themes": "0.3.0",
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
"@next/bundle-analyzer": "14.2.3",
|
"@next/bundle-analyzer": "14.2.3",
|
||||||
"@types/mdx": "^2.0.13",
|
"@types/mdx": "^2.0.13",
|
||||||
"@types/node": "^20.12.12",
|
"@types/node": "^20.12.12",
|
||||||
"@types/react": "^18.3.2",
|
"@types/react": "^18.3.3",
|
||||||
"@types/react-dom": "^18.3.0",
|
"@types/react-dom": "^18.3.0",
|
||||||
"autoprefixer": "^10.4.19",
|
"autoprefixer": "^10.4.19",
|
||||||
"dotenv-cli": "^7.4.2",
|
"dotenv-cli": "^7.4.2",
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
"@manypkg/cli": "^0.21.4",
|
"@manypkg/cli": "^0.21.4",
|
||||||
"@turbo/gen": "^1.13.3",
|
"@turbo/gen": "^1.13.3",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"pnpm": "^9.1.1",
|
"pnpm": "^9.1.3",
|
||||||
"prettier": "^3.2.5",
|
"prettier": "^3.2.5",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^1.13.3",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "^5.4.5",
|
||||||
|
|||||||
@@ -28,9 +28,9 @@
|
|||||||
"@kit/tsconfig": "workspace:*",
|
"@kit/tsconfig": "workspace:*",
|
||||||
"@kit/ui": "workspace:^",
|
"@kit/ui": "workspace:^",
|
||||||
"@supabase/supabase-js": "^2.43.4",
|
"@supabase/supabase-js": "^2.43.4",
|
||||||
"@types/react": "^18.3.2",
|
"@types/react": "^18.3.3",
|
||||||
"date-fns": "^3.6.0",
|
"date-fns": "^3.6.0",
|
||||||
"lucide-react": "^0.378.0",
|
"lucide-react": "^0.379.0",
|
||||||
"next": "14.2.3",
|
"next": "14.2.3",
|
||||||
"react": "18.3.1",
|
"react": "18.3.1",
|
||||||
"react-hook-form": "^7.51.4",
|
"react-hook-form": "^7.51.4",
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
"@kit/tailwind-config": "workspace:*",
|
"@kit/tailwind-config": "workspace:*",
|
||||||
"@kit/tsconfig": "workspace:*",
|
"@kit/tsconfig": "workspace:*",
|
||||||
"@kit/ui": "workspace:^",
|
"@kit/ui": "workspace:^",
|
||||||
"@types/react": "^18.3.2",
|
"@types/react": "^18.3.3",
|
||||||
"next": "14.2.3",
|
"next": "14.2.3",
|
||||||
"react": "18.3.1",
|
"react": "18.3.1",
|
||||||
"zod": "^3.23.8"
|
"zod": "^3.23.8"
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
"@kit/tailwind-config": "workspace:*",
|
"@kit/tailwind-config": "workspace:*",
|
||||||
"@kit/tsconfig": "workspace:*",
|
"@kit/tsconfig": "workspace:*",
|
||||||
"@kit/ui": "workspace:^",
|
"@kit/ui": "workspace:^",
|
||||||
"@types/react": "^18.3.2",
|
"@types/react": "^18.3.3",
|
||||||
"date-fns": "^3.6.0",
|
"date-fns": "^3.6.0",
|
||||||
"next": "14.2.3",
|
"next": "14.2.3",
|
||||||
"react": "18.3.1",
|
"react": "18.3.1",
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
"./route-handler": "./src/keystatic-route-handler.ts"
|
"./route-handler": "./src/keystatic-route-handler.ts"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@keystatic/core": "0.5.15",
|
"@keystatic/core": "0.5.17",
|
||||||
"@keystatic/next": "^5.0.0",
|
"@keystatic/next": "^5.0.1",
|
||||||
"@markdoc/markdoc": "^0.4.0"
|
"@markdoc/markdoc": "^0.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
"@kit/tsconfig": "workspace:*",
|
"@kit/tsconfig": "workspace:*",
|
||||||
"@kit/ui": "workspace:^",
|
"@kit/ui": "workspace:^",
|
||||||
"@types/node": "^20.12.12",
|
"@types/node": "^20.12.12",
|
||||||
"@types/react": "^18.3.2",
|
"@types/react": "^18.3.3",
|
||||||
"react": "18.3.1",
|
"react": "18.3.1",
|
||||||
"zod": "^3.23.8"
|
"zod": "^3.23.8"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
".": "./src/index.ts"
|
".": "./src/index.ts"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@react-email/components": "0.0.18"
|
"@react-email/components": "0.0.19"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@kit/eslint-config": "workspace:*",
|
"@kit/eslint-config": "workspace:*",
|
||||||
|
|||||||
@@ -34,10 +34,10 @@
|
|||||||
"@kit/ui": "workspace:^",
|
"@kit/ui": "workspace:^",
|
||||||
"@radix-ui/react-icons": "^1.3.0",
|
"@radix-ui/react-icons": "^1.3.0",
|
||||||
"@supabase/supabase-js": "^2.43.4",
|
"@supabase/supabase-js": "^2.43.4",
|
||||||
"@tanstack/react-query": "5.37.1",
|
"@tanstack/react-query": "5.39.0",
|
||||||
"@types/react": "^18.3.2",
|
"@types/react": "^18.3.3",
|
||||||
"@types/react-dom": "^18.3.0",
|
"@types/react-dom": "^18.3.0",
|
||||||
"lucide-react": "^0.378.0",
|
"lucide-react": "^0.379.0",
|
||||||
"next": "14.2.3",
|
"next": "14.2.3",
|
||||||
"next-themes": "0.3.0",
|
"next-themes": "0.3.0",
|
||||||
"react": "18.3.1",
|
"react": "18.3.1",
|
||||||
|
|||||||
@@ -21,10 +21,10 @@
|
|||||||
"@makerkit/data-loader-supabase-core": "^0.0.8",
|
"@makerkit/data-loader-supabase-core": "^0.0.8",
|
||||||
"@makerkit/data-loader-supabase-nextjs": "^1.2.3",
|
"@makerkit/data-loader-supabase-nextjs": "^1.2.3",
|
||||||
"@supabase/supabase-js": "^2.43.4",
|
"@supabase/supabase-js": "^2.43.4",
|
||||||
"@tanstack/react-query": "5.37.1",
|
"@tanstack/react-query": "5.39.0",
|
||||||
"@tanstack/react-table": "^8.17.3",
|
"@tanstack/react-table": "^8.17.3",
|
||||||
"@types/react": "^18.3.2",
|
"@types/react": "^18.3.3",
|
||||||
"lucide-react": "^0.378.0",
|
"lucide-react": "^0.379.0",
|
||||||
"next": "14.2.3",
|
"next": "14.2.3",
|
||||||
"react": "18.3.1",
|
"react": "18.3.1",
|
||||||
"react-dom": "18.3.1",
|
"react-dom": "18.3.1",
|
||||||
|
|||||||
@@ -29,9 +29,9 @@
|
|||||||
"@marsidev/react-turnstile": "^0.6.1",
|
"@marsidev/react-turnstile": "^0.6.1",
|
||||||
"@radix-ui/react-icons": "^1.3.0",
|
"@radix-ui/react-icons": "^1.3.0",
|
||||||
"@supabase/supabase-js": "^2.43.4",
|
"@supabase/supabase-js": "^2.43.4",
|
||||||
"@tanstack/react-query": "5.37.1",
|
"@tanstack/react-query": "5.39.0",
|
||||||
"@types/react": "^18.3.2",
|
"@types/react": "^18.3.3",
|
||||||
"lucide-react": "^0.378.0",
|
"lucide-react": "^0.379.0",
|
||||||
"next": "14.2.3",
|
"next": "14.2.3",
|
||||||
"react-hook-form": "^7.51.4",
|
"react-hook-form": "^7.51.4",
|
||||||
"react-i18next": "^14.1.2",
|
"react-i18next": "^14.1.2",
|
||||||
|
|||||||
@@ -21,9 +21,9 @@
|
|||||||
"@kit/tsconfig": "workspace:*",
|
"@kit/tsconfig": "workspace:*",
|
||||||
"@kit/ui": "workspace:*",
|
"@kit/ui": "workspace:*",
|
||||||
"@supabase/supabase-js": "^2.43.4",
|
"@supabase/supabase-js": "^2.43.4",
|
||||||
"@tanstack/react-query": "5.37.1",
|
"@tanstack/react-query": "5.39.0",
|
||||||
"@types/react": "^18.3.2",
|
"@types/react": "^18.3.3",
|
||||||
"lucide-react": "^0.378.0",
|
"lucide-react": "^0.379.0",
|
||||||
"react": "18.3.1",
|
"react": "18.3.1",
|
||||||
"react-dom": "18.3.1",
|
"react-dom": "18.3.1",
|
||||||
"react-i18next": "^14.1.2"
|
"react-i18next": "^14.1.2"
|
||||||
|
|||||||
@@ -32,13 +32,13 @@
|
|||||||
"@kit/tsconfig": "workspace:*",
|
"@kit/tsconfig": "workspace:*",
|
||||||
"@kit/ui": "workspace:^",
|
"@kit/ui": "workspace:^",
|
||||||
"@supabase/supabase-js": "^2.43.4",
|
"@supabase/supabase-js": "^2.43.4",
|
||||||
"@tanstack/react-query": "5.37.1",
|
"@tanstack/react-query": "5.39.0",
|
||||||
"@tanstack/react-table": "^8.17.3",
|
"@tanstack/react-table": "^8.17.3",
|
||||||
"@types/react": "^18.3.2",
|
"@types/react": "^18.3.3",
|
||||||
"@types/react-dom": "^18.3.0",
|
"@types/react-dom": "^18.3.0",
|
||||||
"class-variance-authority": "^0.7.0",
|
"class-variance-authority": "^0.7.0",
|
||||||
"date-fns": "^3.6.0",
|
"date-fns": "^3.6.0",
|
||||||
"lucide-react": "^0.378.0",
|
"lucide-react": "^0.379.0",
|
||||||
"next": "14.2.3",
|
"next": "14.2.3",
|
||||||
"react": "18.3.1",
|
"react": "18.3.1",
|
||||||
"react-dom": "18.3.1",
|
"react-dom": "18.3.1",
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
"@kit/shared": "workspace:^",
|
"@kit/shared": "workspace:^",
|
||||||
"@kit/tailwind-config": "workspace:*",
|
"@kit/tailwind-config": "workspace:*",
|
||||||
"@kit/tsconfig": "workspace:*",
|
"@kit/tsconfig": "workspace:*",
|
||||||
"@tanstack/react-query": "5.37.1",
|
"@tanstack/react-query": "5.39.0",
|
||||||
"react-i18next": "^14.1.2"
|
"react-i18next": "^14.1.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
"@kit/sentry": "workspace:*",
|
"@kit/sentry": "workspace:*",
|
||||||
"@kit/tailwind-config": "workspace:*",
|
"@kit/tailwind-config": "workspace:*",
|
||||||
"@kit/tsconfig": "workspace:*",
|
"@kit/tsconfig": "workspace:*",
|
||||||
"@types/react": "^18.3.2",
|
"@types/react": "^18.3.3",
|
||||||
"react": "18.3.1"
|
"react": "18.3.1"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
"@kit/prettier-config": "workspace:*",
|
"@kit/prettier-config": "workspace:*",
|
||||||
"@kit/tailwind-config": "workspace:*",
|
"@kit/tailwind-config": "workspace:*",
|
||||||
"@kit/tsconfig": "workspace:*",
|
"@kit/tsconfig": "workspace:*",
|
||||||
"@types/react": "^18.3.2",
|
"@types/react": "^18.3.3",
|
||||||
"react": "18.3.1",
|
"react": "18.3.1",
|
||||||
"zod": "^3.23.8"
|
"zod": "^3.23.8"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"@kit/prettier-config": "workspace:*",
|
"@kit/prettier-config": "workspace:*",
|
||||||
"@kit/tailwind-config": "workspace:*",
|
"@kit/tailwind-config": "workspace:*",
|
||||||
"@kit/tsconfig": "workspace:*",
|
"@kit/tsconfig": "workspace:*",
|
||||||
"@types/react": "^18.3.2",
|
"@types/react": "^18.3.3",
|
||||||
"react": "18.3.1"
|
"react": "18.3.1"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
"@kit/prettier-config": "workspace:*",
|
"@kit/prettier-config": "workspace:*",
|
||||||
"@kit/tailwind-config": "workspace:*",
|
"@kit/tailwind-config": "workspace:*",
|
||||||
"@kit/tsconfig": "workspace:*",
|
"@kit/tsconfig": "workspace:*",
|
||||||
"@types/react": "^18.3.2",
|
"@types/react": "^18.3.3",
|
||||||
"react": "18.3.1"
|
"react": "18.3.1"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
|
|||||||
@@ -29,8 +29,8 @@
|
|||||||
"@supabase/gotrue-js": "2.62.2",
|
"@supabase/gotrue-js": "2.62.2",
|
||||||
"@supabase/ssr": "^0.3.0",
|
"@supabase/ssr": "^0.3.0",
|
||||||
"@supabase/supabase-js": "^2.43.4",
|
"@supabase/supabase-js": "^2.43.4",
|
||||||
"@tanstack/react-query": "5.37.1",
|
"@tanstack/react-query": "5.39.0",
|
||||||
"@types/react": "^18.3.2",
|
"@types/react": "^18.3.3",
|
||||||
"next": "14.2.3",
|
"next": "14.2.3",
|
||||||
"react": "18.3.1",
|
"react": "18.3.1",
|
||||||
"zod": "^3.23.8"
|
"zod": "^3.23.8"
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"cmdk": "1.0.0",
|
"cmdk": "1.0.0",
|
||||||
"input-otp": "1.2.4",
|
"input-otp": "1.2.4",
|
||||||
"lucide-react": "^0.378.0",
|
"lucide-react": "^0.379.0",
|
||||||
"react-top-loading-bar": "2.3.1",
|
"react-top-loading-bar": "2.3.1",
|
||||||
"tailwind-merge": "^2.3.0"
|
"tailwind-merge": "^2.3.0"
|
||||||
},
|
},
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
"@kit/tsconfig": "workspace:*",
|
"@kit/tsconfig": "workspace:*",
|
||||||
"@radix-ui/react-icons": "^1.3.0",
|
"@radix-ui/react-icons": "^1.3.0",
|
||||||
"@tanstack/react-table": "^8.17.3",
|
"@tanstack/react-table": "^8.17.3",
|
||||||
"@types/react": "^18.3.2",
|
"@types/react": "^18.3.3",
|
||||||
"@types/react-dom": "^18.3.0",
|
"@types/react-dom": "^18.3.0",
|
||||||
"class-variance-authority": "^0.7.0",
|
"class-variance-authority": "^0.7.0",
|
||||||
"date-fns": "^3.6.0",
|
"date-fns": "^3.6.0",
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import { Trans } from './trans';
|
|||||||
|
|
||||||
export function BorderedNavigationMenu(props: React.PropsWithChildren) {
|
export function BorderedNavigationMenu(props: React.PropsWithChildren) {
|
||||||
return (
|
return (
|
||||||
<NavigationMenu className={'h-full'}>
|
<NavigationMenu>
|
||||||
<NavigationMenuList className={'relative h-full space-x-2'}>
|
<NavigationMenuList className={'relative h-full space-x-2'}>
|
||||||
{props.children}
|
{props.children}
|
||||||
</NavigationMenuList>
|
</NavigationMenuList>
|
||||||
@@ -24,17 +24,23 @@ export function BorderedNavigationMenu(props: React.PropsWithChildren) {
|
|||||||
|
|
||||||
export function BorderedNavigationMenuItem(props: {
|
export function BorderedNavigationMenuItem(props: {
|
||||||
path: string;
|
path: string;
|
||||||
label: string;
|
label: React.ReactNode | string;
|
||||||
end?: boolean | ((path: string) => boolean);
|
end?: boolean | ((path: string) => boolean);
|
||||||
active?: boolean;
|
active?: boolean;
|
||||||
|
className?: string;
|
||||||
|
buttonClassName?: string;
|
||||||
}) {
|
}) {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
|
|
||||||
const active = props.active ?? isRouteActive(props.path, pathname, props.end);
|
const active = props.active ?? isRouteActive(props.path, pathname, props.end);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<NavigationMenuItem>
|
<NavigationMenuItem className={props.className}>
|
||||||
<Button asChild variant={'ghost'} className={'relative active:shadow-sm'}>
|
<Button
|
||||||
|
asChild
|
||||||
|
variant={'ghost'}
|
||||||
|
className={cn('relative active:shadow-sm', props.buttonClassName)}
|
||||||
|
>
|
||||||
<Link
|
<Link
|
||||||
href={props.path}
|
href={props.path}
|
||||||
className={cn('text-sm', {
|
className={cn('text-sm', {
|
||||||
@@ -43,7 +49,11 @@ export function BorderedNavigationMenuItem(props: {
|
|||||||
!active,
|
!active,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<Trans i18nKey={props.label} defaults={props.label} />
|
{typeof props.label === 'string' ? (
|
||||||
|
<Trans i18nKey={props.label} defaults={props.label} />
|
||||||
|
) : (
|
||||||
|
props.label
|
||||||
|
)}
|
||||||
|
|
||||||
{active ? (
|
{active ? (
|
||||||
<span
|
<span
|
||||||
|
|||||||
@@ -30,10 +30,12 @@ export function Stepper(props: {
|
|||||||
const Steps = useCallback(() => {
|
const Steps = useCallback(() => {
|
||||||
return props.steps.map((labelOrKey, index) => {
|
return props.steps.map((labelOrKey, index) => {
|
||||||
const selected = props.currentStep === index;
|
const selected = props.currentStep === index;
|
||||||
|
const complete = props.currentStep > index;
|
||||||
|
|
||||||
const className = classNameBuilder({
|
const className = classNameBuilder({
|
||||||
selected,
|
selected,
|
||||||
variant,
|
variant,
|
||||||
|
complete,
|
||||||
});
|
});
|
||||||
|
|
||||||
const isNumberVariant = variant === 'numbers';
|
const isNumberVariant = variant === 'numbers';
|
||||||
@@ -54,7 +56,9 @@ export function Stepper(props: {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<If condition={isNumberVariant}>
|
<If condition={isNumberVariant}>
|
||||||
<StepDivider selected={selected}>{label}</StepDivider>
|
<StepDivider selected={selected} complete={complete}>
|
||||||
|
{label}
|
||||||
|
</StepDivider>
|
||||||
</If>
|
</If>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
);
|
);
|
||||||
@@ -68,7 +72,7 @@ export function Stepper(props: {
|
|||||||
|
|
||||||
const containerClassName = cn({
|
const containerClassName = cn({
|
||||||
['flex justify-between']: variant === 'numbers',
|
['flex justify-between']: variant === 'numbers',
|
||||||
['flex space-x-1']: variant === 'default',
|
['flex space-x-0.5']: variant === 'default',
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -82,15 +86,18 @@ function getClassNameBuilder() {
|
|||||||
return cva(``, {
|
return cva(``, {
|
||||||
variants: {
|
variants: {
|
||||||
variant: {
|
variant: {
|
||||||
default: `flex flex-col h-[2.5px] w-full transition-colors duration-500`,
|
default: `flex flex-col h-[2.5px] w-full transition-all duration-500`,
|
||||||
numbers:
|
numbers:
|
||||||
'w-9 h-9 font-bold rounded-full flex items-center justify-center' +
|
'w-9 h-9 font-bold rounded-full flex items-center justify-center text-sm border',
|
||||||
' text-sm border',
|
|
||||||
},
|
},
|
||||||
selected: {
|
selected: {
|
||||||
true: '',
|
true: '',
|
||||||
false: '',
|
false: '',
|
||||||
},
|
},
|
||||||
|
complete: {
|
||||||
|
true: '',
|
||||||
|
false: '',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
compoundVariants: [
|
compoundVariants: [
|
||||||
{
|
{
|
||||||
@@ -101,17 +108,30 @@ function getClassNameBuilder() {
|
|||||||
{
|
{
|
||||||
variant: 'default',
|
variant: 'default',
|
||||||
selected: true,
|
selected: true,
|
||||||
className: 'bg-primary',
|
className: 'bg-primary font-medium',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
variant: 'default',
|
variant: 'default',
|
||||||
selected: false,
|
selected: false,
|
||||||
|
complete: false,
|
||||||
className: 'bg-muted',
|
className: 'bg-muted',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
variant: 'default',
|
||||||
|
selected: false,
|
||||||
|
complete: true,
|
||||||
|
className: 'bg-primary',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
variant: 'numbers',
|
||||||
|
selected: false,
|
||||||
|
complete: true,
|
||||||
|
className: 'border-primary text-primary',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
variant: 'numbers',
|
variant: 'numbers',
|
||||||
selected: true,
|
selected: true,
|
||||||
className: 'text-primary border-primary',
|
className: 'border-primary bg-primary text-primary-foreground',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
variant: 'numbers',
|
variant: 'numbers',
|
||||||
@@ -128,13 +148,16 @@ function getClassNameBuilder() {
|
|||||||
|
|
||||||
function StepDivider({
|
function StepDivider({
|
||||||
selected,
|
selected,
|
||||||
|
complete,
|
||||||
children,
|
children,
|
||||||
}: React.PropsWithChildren<{
|
}: React.PropsWithChildren<{
|
||||||
selected: boolean;
|
selected: boolean;
|
||||||
|
complete: boolean;
|
||||||
}>) {
|
}>) {
|
||||||
const spanClassName = cn('font-medium text-sm', {
|
const spanClassName = cn('font-medium text-sm min-w-max', {
|
||||||
['text-muted-foreground']: !selected,
|
['text-muted-foreground']: !selected,
|
||||||
['text-primary']: selected,
|
['text-secondary-foreground']: selected || complete,
|
||||||
|
['font-medium']: selected,
|
||||||
});
|
});
|
||||||
|
|
||||||
const className = cn(
|
const className = cn(
|
||||||
@@ -149,7 +172,7 @@ function StepDivider({
|
|||||||
<div
|
<div
|
||||||
className={
|
className={
|
||||||
'divider h-[1px] w-full bg-gray-200 transition-colors' +
|
'divider h-[1px] w-full bg-gray-200 transition-colors' +
|
||||||
' dark:bg-dark-600 group-last:hidden'
|
' group-last:hidden dark:bg-border'
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
1032
pnpm-lock.yaml
generated
1032
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user