Skip to content

Commit 0dc0e3a

Browse files
chore: add border for remote modules
1 parent cbedd20 commit 0dc0e3a

File tree

19 files changed

+138
-428
lines changed

19 files changed

+138
-428
lines changed

examples/federation/epic-stack-remote/app/components/error-boundary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function GeneralErrorBoundary({
4141
}, [error, isResponse])
4242

4343
return (
44-
<div className="container flex items-center justify-center p-20 text-h2">
44+
<div className="container flex items-center justify-center p-20 text-h2 border-2 border-red-500">
4545
{isResponse
4646
? (statusHandlers?.[error.status] ?? defaultStatusHandler)({
4747
error,

examples/federation/epic-stack-remote/app/components/forms.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function ErrorList({
2424
const errorsToRender = errors?.filter(Boolean)
2525
if (!errorsToRender?.length) return null
2626
return (
27-
<ul id={id} className="flex flex-col gap-1">
27+
<ul id={id} className="flex flex-col gap-1 border-2 border-red-500">
2828
{errorsToRender.map((e) => (
2929
<li key={e} className="text-[10px] text-foreground-destructive">
3030
{e}
@@ -49,7 +49,7 @@ export function Field({
4949
const id = inputProps.id ?? fallbackId
5050
const errorId = errors?.length ? `${id}-error` : undefined
5151
return (
52-
<div className={className}>
52+
<div className={className + " border-2 border-red-500"}>
5353
<Label htmlFor={id} {...labelProps} />
5454
<Input
5555
id={id}
@@ -79,7 +79,7 @@ export function OTPField({
7979
const id = inputProps.id ?? fallbackId
8080
const errorId = errors?.length ? `${id}-error` : undefined
8181
return (
82-
<div className={className}>
82+
<div className={className + " border-2 border-red-500"}>
8383
<Label htmlFor={id} {...labelProps} />
8484
<InputOTP
8585
pattern={REGEXP_ONLY_DIGITS_AND_CHARS}
@@ -123,7 +123,7 @@ export function TextareaField({
123123
const id = textareaProps.id ?? textareaProps.name ?? fallbackId
124124
const errorId = errors?.length ? `${id}-error` : undefined
125125
return (
126-
<div className={className}>
126+
<div className={className + " border-2 border-red-500"}>
127127
<Label htmlFor={id} {...labelProps} />
128128
<Textarea
129129
id={id}
@@ -166,7 +166,7 @@ export function CheckboxField({
166166
const errorId = errors?.length ? `${id}-error` : undefined
167167

168168
return (
169-
<div className={className}>
169+
<div className={className + " border-2 border-red-500"}>
170170
<div className="flex gap-2">
171171
<Checkbox
172172
{...checkboxProps}

examples/federation/epic-stack-remote/app/components/progress-bar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function EpicProgress() {
3232
role="progressbar"
3333
aria-hidden={delayedPending ? undefined : true}
3434
aria-valuetext={delayedPending ? 'Loading' : undefined}
35-
className="fixed inset-x-0 left-0 top-0 z-50 h-[0.20rem] animate-pulse"
35+
className="fixed inset-x-0 left-0 top-0 z-50 h-[0.20rem] animate-pulse border-2 border-red-500"
3636
>
3737
<div
3838
ref={ref}

examples/federation/epic-stack-remote/app/components/search-bar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function SearchBar({
3131
<Form
3232
method="GET"
3333
action="/users"
34-
className="flex flex-wrap items-center justify-center gap-2"
34+
className="flex flex-wrap items-center justify-center gap-2 border-2 border-red-500"
3535
onChange={(e) => autoSubmit && handleFormChange(e.currentTarget)}
3636
>
3737
<div className="flex-1">

examples/federation/epic-stack-remote/app/components/spacer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ export function Spacer({
5353
'4xl': 'h-44',
5454
}
5555
const className = options[size]
56-
return <div className={className} />
56+
return <div className={className + " border-2 border-red-500"} />
5757
}

examples/federation/epic-stack-remote/app/components/ui/button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as React from 'react'
55
import { cn } from '#app/utils/misc.tsx'
66

77
const buttonVariants = cva(
8-
'inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors outline-none focus-visible:ring-2 focus-within:ring-2 ring-ring ring-offset-2 disabled:pointer-events-none disabled:opacity-50',
8+
'inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors outline-none focus-visible:ring-2 focus-within:ring-2 ring-ring ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-2 border-red-500',
99
{
1010
variants: {
1111
variant: {

examples/federation/epic-stack-remote/app/components/ui/checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const Checkbox = React.forwardRef<
1717
<CheckboxPrimitive.Root
1818
ref={ref}
1919
className={cn(
20-
'peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground',
20+
'peer h-4 w-4 shrink-0 rounded-sm border-2 border-red-500 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground',
2121
className,
2222
)}
2323
{...props}

examples/federation/epic-stack-remote/app/components/ui/dropdown-menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ const DropdownMenuShortcut = ({
180180
}: React.HTMLAttributes<HTMLSpanElement>) => {
181181
return (
182182
<span
183-
className={cn('ml-auto text-xs tracking-widest opacity-60', className)}
183+
className={cn('ml-auto text-xs tracking-widest opacity-60 border-2 border-red-500', className)}
184184
{...props}
185185
/>
186186
)

examples/federation/epic-stack-remote/app/components/ui/input-otp.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const InputOTPGroup = React.forwardRef<
2323
React.ElementRef<'div'>,
2424
React.ComponentPropsWithoutRef<'div'>
2525
>(({ className, ...props }, ref) => (
26-
<div ref={ref} className={cn('flex items-center', className)} {...props} />
26+
<div ref={ref} className={cn('flex items-center border-2 border-red-500', className)} {...props} />
2727
))
2828
InputOTPGroup.displayName = 'InputOTPGroup'
2929

@@ -40,7 +40,7 @@ const InputOTPSlot = React.forwardRef<
4040
<div
4141
ref={ref}
4242
className={cn(
43-
'relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-base transition-all first:rounded-l-md first:border-l last:rounded-r-md md:text-sm',
43+
'relative flex h-10 w-10 items-center justify-center border-2 border-red-500 text-base transition-all first:rounded-l-md first:border-l last:rounded-r-md md:text-sm',
4444
isActive && 'z-10 ring-2 ring-ring ring-offset-background',
4545
className,
4646
)}
@@ -61,7 +61,7 @@ const InputOTPSeparator = React.forwardRef<
6161
React.ElementRef<'div'>,
6262
React.ComponentPropsWithoutRef<'div'>
6363
>(({ ...props }, ref) => (
64-
<div ref={ref} role="separator" {...props}>
64+
<div ref={ref} role="separator" className="border-2 border-red-500" {...props}>
6565
-
6666
</div>
6767
))

examples/federation/epic-stack-remote/app/components/ui/input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
1111
<input
1212
type={type}
1313
className={cn(
14-
'flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-base file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 aria-[invalid]:border-input-invalid md:text-sm md:file:text-sm',
14+
'flex h-10 w-full rounded-md border-2 border-red-500 bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-base file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 aria-[invalid]:border-input-invalid md:text-sm md:file:text-sm',
1515
className,
1616
)}
1717
ref={ref}

0 commit comments

Comments
 (0)