Skip to content

Commit d240feb

Browse files
committed
feat: revisão inicial
1 parent 8404849 commit d240feb

3 files changed

Lines changed: 14 additions & 16 deletions

File tree

src/components/CodeExamplePackage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const CodeExamplePackage = ({
7777
const codeContent = (
7878
<div className="lg:col-span-2">
7979
<Tabs defaultValue={tabs[0]?.value} className="w-full">
80-
<TabsList single={tabs.length === 1} className={`grid w-full grid-cols-${tabs.length} mb-4`}>
80+
<TabsList single={tabs.length === 1}>
8181
{tabs.map((tab) => (
8282
<TabsTrigger single={tabs.length === 1} key={tab.value} value={tab.value}>
8383
{tab.label}

src/components/CodeExamples.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ const CodeExamples = () => {
99
label: "codec.php",
1010
code: `<?php
1111
12-
// Em breve... 🚀`
12+
// Em breve codec.php ... 🚀`
1313
},
1414
{
1515
value: "faker",
1616
label: "faker.php",
1717
code: `<?php
1818
19-
// Em breve... 🚀`
19+
// Em breve faker.php ... 🚀`
2020
}
2121
];
2222

@@ -26,31 +26,31 @@ const CodeExamples = () => {
2626
label: "Action.php",
2727
code: `<?php
2828
29-
// Em breve... 🚀
29+
// Em breve Action.php ... 🚀
3030
}`
3131
},
3232
{
3333
value: "input",
3434
label: "Input.php",
3535
code: `<?php
3636
37-
// Em breve... 🚀
37+
// Em breve Input.php ... 🚀
3838
}`
3939
},
4040
{
4141
value: "entity",
4242
label: "Entity.php",
4343
code: `<?php
4444
45-
// Em breve... 🚀
45+
// Em breve Entity.php ... 🚀
4646
}`
4747
},
4848
{
4949
value: "repository",
5050
label: "Repository.php",
5151
code: `<?php
5252
53-
// Em breve... 🚀
53+
// Em breve Repository.php ... 🚀
5454
}`
5555
}
5656
];
@@ -61,7 +61,7 @@ const CodeExamples = () => {
6161
label: "Controller.php",
6262
code: `<?php
6363
64-
// Em breve... 🚀
64+
// Em breve Controller.php ... 🚀
6565
}`
6666
}
6767
];

src/components/ui/tabs.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ const TabsList = React.forwardRef<
2020
<TabsPrimitive.List
2121
ref={ref}
2222
className={cn(
23-
"inline-flex items-center justify-start",
24-
"sm:h-10 p-0.5 sm:p-1 rounded-md text-muted-foreground bg-muted",
25-
"overflow-x-auto scrollbar-hide",
23+
"flex items-center flex-wrap",
24+
"pt-2 px-3 rounded-t-md text-muted-foreground bg-muted",
2625
className
2726
)}
2827
{...props}
@@ -42,13 +41,12 @@ const TabsTrigger = React.forwardRef<
4241
<TabsPrimitive.Trigger
4342
ref={ref}
4443
className={cn(
45-
"inline-flex items-center justify-center rounded-sm transition-all data-[state=active]:shadow-sm",
46-
"text-sm font-medium whitespace-nowrap text-muted-foreground hover:text-foreground",
44+
"transition-all data-[state=active]:shadow-sm",
45+
"text-xs sm:text-sm font-medium whitespace-nowrap text-muted-foreground hover:text-foreground",
4746
"ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
4847
"disabled:pointer-events-none disabled:opacity-50",
4948
"data-[state=active]:bg-primary data-[state=active]:text-primary-foreground dark:data-[state=active]:bg-background dark:data-[state=active]:text-foreground",
50-
"px-1.5 py-1 text-xs sm:px-3 sm:py-1.5 sm:text-sm",
51-
"h-6 sm:h-8",
49+
"px-1.5 py-1 sm:px-3 sm:py-1.5 rounded-md",
5250
className
5351
)}
5452
{...props}
@@ -63,7 +61,7 @@ const TabsContent = React.forwardRef<
6361
<TabsPrimitive.Content
6462
ref={ref}
6563
className={cn(
66-
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
64+
"bg-muted p-3 pb-4 rounded-b-md ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
6765
className
6866
)}
6967
{...props}

0 commit comments

Comments
 (0)