-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca8497c
commit b10f28f
Showing
14 changed files
with
321 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./section-wrapper"; |
36 changes: 36 additions & 0 deletions
36
packages/sandbox/app/components/section-wrapper/section-wrapper.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
"use client"; | ||
|
||
import { SectionWrapperPrimitive } from "@rpxl/recast-primitives"; | ||
import { recast } from "@rpxl/recast"; | ||
|
||
export const SectionWrapperNew = recast(SectionWrapperPrimitive, { | ||
defaults: { variants: { george: "md" } }, | ||
base: { | ||
root: "flex w-full justify-center overflow-hidden", | ||
inner: "relative w-full px-4", | ||
}, | ||
variants: { | ||
kevin: { | ||
/** E */ | ||
arnold: { root: ["bg-red-500 text-sm"], inner: "max-w-4xl" }, | ||
/** F */ | ||
baxter: { root: ["bg-red-500 text-sm"], inner: "max-w-6xl" }, | ||
/** G */ | ||
smith: { root: ["bg-red-500 text-sm"], inner: "max-w-7xl" }, | ||
}, | ||
george: { | ||
/** SectionWrapper A */ | ||
sms: { inner: "max-w-4xl" }, | ||
/** B */ | ||
md: { inner: "max-w-6xl" }, | ||
/** C */ | ||
lg: { inner: "max-w-7xl" }, | ||
}, | ||
}, | ||
modifiers: { | ||
/** Slim container override (672px) */ | ||
slim: { | ||
inner: "!max-w-2xl", | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./stack"; |
Oops, something went wrong.