-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
13 changed files
with
305 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
import classNames from "classnames"; | ||
import React from "react"; | ||
|
||
import { forwardRefAs, HelpersProps, transformHelpers } from "../../base"; | ||
import { | ||
forwardRefAs, | ||
genericPropTypes, | ||
HelpersProps, | ||
transformHelpers, | ||
} from "../../base"; | ||
|
||
export type FooterModifierProps = Partial<{ className: string }>; | ||
export type FooterProps = HelpersProps; | ||
|
||
export type FooterProps = HelpersProps & FooterModifierProps; | ||
|
||
export const Footer = forwardRefAs<FooterProps, "div">( | ||
(props, ref) => { | ||
const { as, ...rest } = transformHelpers(props); | ||
rest.className = classNames("footer", rest.className); | ||
return React.createElement(as!, { ref, ...rest }); | ||
}, | ||
{ as: "div" }, | ||
export const Footer = Object.assign( | ||
forwardRefAs<FooterProps, "div">( | ||
(props, ref) => { | ||
const { as, ...rest } = transformHelpers(props); | ||
rest.className = classNames("footer", rest.className); | ||
return React.createElement(as!, { ref, ...rest }); | ||
}, | ||
{ as: "div" }, | ||
), | ||
{ propTypes: genericPropTypes }, | ||
); |
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 |
---|---|---|
@@ -1,17 +1,23 @@ | ||
import classNames from "classnames"; | ||
import React from "react"; | ||
|
||
import { forwardRefAs, HelpersProps, transformHelpers } from "../../base"; | ||
import { | ||
forwardRefAs, | ||
genericPropTypes, | ||
HelpersProps, | ||
transformHelpers, | ||
} from "../../base"; | ||
|
||
export type HeroBodyModifierProps = Partial<{ className: string }>; | ||
export type HeroBodyProps = HelpersProps; | ||
|
||
export type HeroBodyProps = HelpersProps & HeroBodyModifierProps; | ||
|
||
export const HeroBody = forwardRefAs<HeroBodyProps, "div">( | ||
(props, ref) => { | ||
const { as, ...rest } = transformHelpers(props); | ||
rest.className = classNames("hero-body", rest.className); | ||
return React.createElement(as!, { ref, ...rest }); | ||
}, | ||
{ as: "div" }, | ||
export const HeroBody = Object.assign( | ||
forwardRefAs<HeroBodyProps, "div">( | ||
(props, ref) => { | ||
const { as, ...rest } = transformHelpers(props); | ||
rest.className = classNames("hero-body", rest.className); | ||
return React.createElement(as!, { ref, ...rest }); | ||
}, | ||
{ as: "div" }, | ||
), | ||
{ propTypes: genericPropTypes }, | ||
); |
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 |
---|---|---|
@@ -1,17 +1,23 @@ | ||
import classNames from "classnames"; | ||
import React from "react"; | ||
|
||
import { forwardRefAs, HelpersProps, transformHelpers } from "../../base"; | ||
import { | ||
forwardRefAs, | ||
genericPropTypes, | ||
HelpersProps, | ||
transformHelpers, | ||
} from "../../base"; | ||
|
||
export type HeroFootModifierProps = Partial<{ className: string }>; | ||
export type HeroFootProps = HelpersProps; | ||
|
||
export type HeroFootProps = HelpersProps & HeroFootModifierProps; | ||
|
||
export const HeroFoot = forwardRefAs<HeroFootProps, "div">( | ||
(props, ref) => { | ||
const { as, ...rest } = transformHelpers(props); | ||
rest.className = classNames("hero-foot", rest.className); | ||
return React.createElement(as!, { ref, ...rest }); | ||
}, | ||
{ as: "div" }, | ||
export const HeroFoot = Object.assign( | ||
forwardRefAs<HeroFootProps, "div">( | ||
(props, ref) => { | ||
const { as, ...rest } = transformHelpers(props); | ||
rest.className = classNames("hero-foot", rest.className); | ||
return React.createElement(as!, { ref, ...rest }); | ||
}, | ||
{ as: "div" }, | ||
), | ||
{ propTypes: genericPropTypes }, | ||
); |
Oops, something went wrong.