-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
OK-673
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
node_modules | ||
.next | ||
storybook-static | ||
dist | ||
lcov-report | ||
coverage | ||
__snapshots__/__diff_output__ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ storybook-static | |
node_modules | ||
lcov | ||
coverage | ||
dist |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Button } from '@mui/material'; | ||
|
||
declare const OphButton: typeof Button; | ||
|
||
export { OphButton }; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { CheckboxProps, FormControlLabelProps } from '@mui/material'; | ||
import react__default from 'react'; | ||
|
||
type OphCheckboxProps = Omit<CheckboxProps, 'centerRipple' | 'checkedIcon' | 'disableRipple' | 'icon' | 'indeterminateIcon' | 'size' | 'LinkComponent'> & { | ||
formControlLabelProps?: Omit<FormControlLabelProps, 'label' | 'control'>; | ||
label?: react__default.ReactNode; | ||
error?: boolean; | ||
}; | ||
declare const OphCheckbox: react__default.ForwardRefExoticComponent<Omit<OphCheckboxProps, "ref"> & react__default.RefAttributes<HTMLButtonElement>>; | ||
|
||
export { OphCheckbox, type OphCheckboxProps }; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { LinkOwnProps, Theme } from '@mui/material'; | ||
import { SystemProps } from '@mui/system'; | ||
import { OverridableComponent, OverrideProps } from '@mui/material/OverridableComponent'; | ||
|
||
type OmittedPropNames = keyof SystemProps<Theme> | 'paragraph' | 'TypographyClasses' | 'variantMapping' | 'align' | 'gutterBottom' | 'underline'; | ||
interface OphAdditionalLinkProps { | ||
/** Icon visibility override. If not given, icon visibility is deduced from href (relative links without icon) */ | ||
iconVisible?: boolean; | ||
} | ||
interface OphLinkTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'a'> { | ||
props: AdditionalProps & Omit<LinkOwnProps, OmittedPropNames>; | ||
defaultComponent: RootComponent; | ||
} | ||
type MuiOphLinkProps<RootComponent extends React.ElementType = OphLinkTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<OphLinkTypeMap<AdditionalProps, RootComponent>, RootComponent> & { | ||
component?: React.ElementType; | ||
}; | ||
type OphLinkProps<C extends React.ElementType = React.ElementType, D extends React.ElementType = OphLinkTypeMap['defaultComponent']> = { | ||
component?: C; | ||
} & Omit<MuiOphLinkProps<D, OphAdditionalLinkProps>, 'component'>; | ||
declare const OphLink: OverridableComponent<OphLinkTypeMap<OphLinkProps>>; | ||
|
||
export { OphLink, type OphLinkProps }; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
import { SelectProps } from '@mui/material'; | ||
|
||
type OphSelectValue<T> = SelectProps<T>['value']; | ||
interface OphSelectOption<T> { | ||
label: string; | ||
value: OphSelectValue<T>; | ||
} | ||
interface OphSelectProps<T> extends Omit<SelectProps<T>, 'children' | 'label' | 'variant'> { | ||
options: Array<OphSelectOption<T>>; | ||
clearable?: boolean; | ||
placeholder?: string; | ||
} | ||
declare const OphSelect: <T extends string>({ placeholder, clearable, options, ...props }: OphSelectProps<T | "">) => react_jsx_runtime.JSX.Element; | ||
|
||
export { OphSelect, type OphSelectOption, type OphSelectProps, type OphSelectValue }; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import * as react from 'react'; | ||
import { TypographyProps, Theme } from '@mui/material'; | ||
import { SystemProps } from '@mui/system'; | ||
|
||
type OmittedSystemPropNames = keyof Omit<SystemProps<Theme>, 'color'>; | ||
type OphTypographyProps = Omit<TypographyProps & { | ||
variant?: 'button' | 'body1' | 'body2' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'label'; | ||
}, OmittedSystemPropNames | 'paragraph' | 'variantMapping'>; | ||
declare const OphTypography: react.ForwardRefExoticComponent<Omit<OphTypographyProps, "ref"> & react.RefAttributes<HTMLElement>>; | ||
|
||
export { OphTypography, type OphTypographyProps }; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.