-
Notifications
You must be signed in to change notification settings - Fork 38
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
8 changed files
with
206 additions
and
195 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
import {type ComponentPropsWithoutRef, forwardRef} from 'react'; | ||
import {type ComponentPropsWithRef} from 'react'; | ||
import {classes} from '../../util/ui_interop'; | ||
import css from './ActionButton.module.css'; | ||
|
||
export const ActionButton = forwardRef< | ||
HTMLButtonElement, | ||
ComponentPropsWithoutRef<'button'> & { | ||
inline?: boolean; | ||
} | ||
>(({ | ||
export const ActionButton = ({ | ||
inline, | ||
className, | ||
...props | ||
}, ref) => ( | ||
}: ComponentPropsWithRef<'button'> & { | ||
inline?: boolean; | ||
}) => ( | ||
<button | ||
className={classes( | ||
css.actionButton, | ||
inline && css.inline, | ||
className, | ||
)} | ||
{...props} | ||
ref={ref} | ||
/> | ||
)); | ||
); |
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,24 +1,20 @@ | ||
import {type ComponentPropsWithoutRef, forwardRef} from 'react'; | ||
import {type ComponentPropsWithRef} from 'react'; | ||
import {classes} from '../../util/ui_interop'; | ||
import css from './ActionSelect.module.css'; | ||
|
||
export const ActionSelect = forwardRef< | ||
HTMLSelectElement, | ||
ComponentPropsWithoutRef<'select'> & { | ||
inline?: boolean; | ||
} | ||
>(({ | ||
export const ActionSelect = ({ | ||
inline, | ||
className, | ||
...props | ||
}, ref) => ( | ||
}: ComponentPropsWithRef<'select'> & { | ||
inline?: boolean; | ||
}) => ( | ||
<select | ||
className={classes( | ||
css.actionSelect, | ||
inline && css.inline, | ||
className, | ||
)} | ||
{...props} | ||
ref={ref} | ||
/> | ||
)); | ||
); |
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,20 +1,16 @@ | ||
import {type ComponentPropsWithoutRef, forwardRef} from 'react'; | ||
import {type ComponentPropsWithRef} from 'react'; | ||
import {classes} from '../../util/ui_interop'; | ||
import css from './BracketButton.module.css'; | ||
|
||
export const BracketButton = forwardRef< | ||
HTMLButtonElement, | ||
ComponentPropsWithoutRef<'button'> & { | ||
inline?: boolean; | ||
} | ||
>(({ | ||
export const BracketButton = ({ | ||
inline, | ||
className, | ||
...props | ||
}, ref) => ( | ||
}: ComponentPropsWithRef<'button'> & { | ||
inline?: boolean; | ||
}) => ( | ||
<button | ||
className={classes(css.bracketButton, className)} | ||
{...props} | ||
ref={ref} | ||
/> | ||
)); | ||
); |
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,20 +1,16 @@ | ||
import {type ComponentPropsWithoutRef, forwardRef} from 'react'; | ||
import {type ComponentPropsWithRef} from 'react'; | ||
import {classes} from '../../util/ui_interop'; | ||
import css from './GeneralButton.module.css'; | ||
|
||
export const GeneralButton = forwardRef< | ||
HTMLButtonElement, | ||
ComponentPropsWithoutRef<'button'> & { | ||
inline?: boolean; | ||
} | ||
>(({ | ||
export const GeneralButton = ({ | ||
inline, | ||
className, | ||
...props | ||
}, ref) => ( | ||
}: ComponentPropsWithRef<'button'> & { | ||
inline?: boolean; | ||
}) => ( | ||
<button | ||
className={classes(css.generalButton, className)} | ||
{...props} | ||
ref={ref} | ||
/> | ||
)); | ||
); |
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,25 +1,21 @@ | ||
import {type ComponentPropsWithoutRef, forwardRef} from 'react'; | ||
import {type ComponentPropsWithRef} from 'react'; | ||
import {classes} from '../../util/ui_interop'; | ||
import css from './NormalInput.module.css'; | ||
|
||
// TODO: this is a terrible name | ||
export const NormalInput = forwardRef< | ||
HTMLInputElement, | ||
ComponentPropsWithoutRef<'input'> & { | ||
inFooter?: boolean; | ||
} | ||
>(({ | ||
export const NormalInput = ({ | ||
inFooter, | ||
className, | ||
...props | ||
}, ref) => ( | ||
}: ComponentPropsWithRef<'input'> & { | ||
inFooter?: boolean; | ||
}) => ( | ||
<input | ||
className={classes( | ||
css.normalInput, | ||
inFooter && css.inWindowFooter, | ||
className, | ||
)} | ||
{...props} | ||
ref={ref} | ||
/> | ||
)); | ||
); |
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
Oops, something went wrong.