From 76afaf4562634194a72085851064ac238462f75f Mon Sep 17 00:00:00 2001 From: alnavarrop99 Date: Fri, 19 Apr 2024 02:59:31 -0400 Subject: [PATCH 01/30] style: updaet movile style in clients and users page ( client page are not be in) --- src/components/ui/scroll-area.stories.tsx | 7 +- src/pages/__root.tsx | 2 +- src/pages/_layout.tsx | 16 +- src/pages/_layout/client.tsx | 2 +- src/pages/_layout/client/$clientId/delete.tsx | 10 +- src/pages/_layout/client/$clientId/update.tsx | 13 +- src/pages/_layout/client/delete.tsx | 10 +- src/pages/_layout/client/new.tsx | 243 +++++++++--------- src/pages/_layout/credit.tsx | 10 +- src/pages/_layout/credit_/$creditId.tsx | 10 +- src/pages/_layout/user.tsx | 14 +- src/pages/_layout/user/$userId/delete.tsx | 10 +- src/pages/_layout/user/$userId/update.tsx | 19 +- src/pages/_layout/user/delete.tsx | 10 +- src/pages/_layout/user/new.tsx | 8 +- src/pages/login.tsx | 6 +- src/styles/global.module.css | 5 +- 17 files changed, 201 insertions(+), 194 deletions(-) diff --git a/src/components/ui/scroll-area.stories.tsx b/src/components/ui/scroll-area.stories.tsx index 7e0d54c..3206798 100644 --- a/src/components/ui/scroll-area.stories.tsx +++ b/src/components/ui/scroll-area.stories.tsx @@ -1,18 +1,19 @@ import type { Meta, StoryObj } from '@storybook/react' -import { ScrollArea } from '@/components/ui/scroll-area' +import { ScrollArea, ScrollBar } from '@/components/ui/scroll-area' import { Separator } from '@/components/ui/separator' const tags = Array.from({ length: 50 }).map( - (_, i, a) => `v1.2.0-beta.${a.length - i}` + (_, i, a) => `v1.2.0-beta.${a.length - i} Lorem ipsum dolor sit amet, qui minim labore adipisicing minim sint cillum sint consectetur cupidatat.` ) function Basic( { ...props }: React.ComponentProps< typeof ScrollArea > ) { return ( +

Tags

{tags.map((tag) => ( <> -
+
{tag}
diff --git a/src/pages/__root.tsx b/src/pages/__root.tsx index 5c4608a..b093fd5 100644 --- a/src/pages/__root.tsx +++ b/src/pages/__root.tsx @@ -13,7 +13,7 @@ export const Route = createRootRoute({ }) export function Root() { - return (
diff --git a/src/pages/_layout.tsx b/src/pages/_layout.tsx index 38686ba..5372e3c 100644 --- a/src/pages/_layout.tsx +++ b/src/pages/_layout.tsx @@ -356,13 +356,13 @@ export function Layout() { return (
*]:px-2', + 'md:container gap-2 grid auto-rows-min xl:grid-cols-2 xl:grid-rows-3 auto-rows-min space-y-4', styles?.['grid-layout'] )} > -
+
-
+
-
+
-
- -

+
+ +

{text.footer.copyright} © {new Date().getFullYear()}

diff --git a/src/pages/_layout/client.tsx b/src/pages/_layout/client.tsx index 0796e96..228799c 100644 --- a/src/pages/_layout/client.tsx +++ b/src/pages/_layout/client.tsx @@ -329,7 +329,7 @@ export function Clients() {

-
+
{table.getHeaderGroups().map((headerGroup) => ( diff --git a/src/pages/_layout/client/$clientId/delete.tsx b/src/pages/_layout/client/$clientId/delete.tsx index 27235f2..bf59fa4 100644 --- a/src/pages/_layout/client/$clientId/delete.tsx +++ b/src/pages/_layout/client/$clientId/delete.tsx @@ -115,19 +115,19 @@ export function DeleteClientById() { {!open && } - {text.title} + {text.title} - - {text.alert.title} - + + {text.alert.title} + {text.alert.description({ username: name })} - +
} - + {text.title({ state: !checked })} - + {text.description({ state: !checked })} + +
label:last-child]:col-span-full [&>label]:space-y-2 [&_*:disabled]:cursor-text [&_*:disabled]:opacity-100', + 'px-1 grid-rows-subgrid grid md:grid-cols-2 grid-cols-none gap-3 gap-y-4 [&>label:last-child]:col-span-full [&>label]:space-y-2 [&_*:disabled]:cursor-text [&_*:disabled]:opacity-100', { '[&>label>span]:font-bold': checked, } @@ -440,7 +444,8 @@ export function UpdateClientById() { )} - +
+
{!open && } - + {text.title} - - {text.alert.title} - + + {text.alert.title} + {text.alert.description({ length: clients?.length })} - +
+ return (<> {!open && } - {text.title} + {text.title} - + {text.descriiption} -
label]:space-y-2', - styles?.['custom-form'] - )} - > - - - - + + + + + + + - - - - -