File tree Expand file tree Collapse file tree 11 files changed +67
-18
lines changed
Expand file tree Collapse file tree 11 files changed +67
-18
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @devup-ui/react " : patch
3+ ---
4+
5+ Support props and custom component in as
Original file line number Diff line number Diff line change 1- import type { DevupComponentProps } from '../types/props'
1+ import type {
2+ DevupComponentBaseProps ,
3+ DevupComponentProps ,
4+ } from '../types/props'
25import type { Merge } from '../types/utils'
36
47export function Box < T extends React . ElementType = 'div' > (
58 // eslint-disable-next-line @typescript-eslint/no-unused-vars
6- props : Merge < React . ComponentProps < T > , DevupComponentProps < T > > ,
9+ props : Merge < DevupComponentBaseProps < T > , DevupComponentProps < T > > ,
710) : React . ReactElement {
811 throw new Error ( 'Cannot run on the runtime' )
912}
Original file line number Diff line number Diff line change 1- import type { DevupComponentProps } from '../types/props'
1+ import type {
2+ DevupComponentBaseProps ,
3+ DevupComponentProps ,
4+ } from '../types/props'
25import type { Merge } from '../types/utils'
36
47export function Button < T extends React . ElementType = 'button' > (
58 // eslint-disable-next-line @typescript-eslint/no-unused-vars
6- props : Merge < React . ComponentProps < T > , DevupComponentProps < T > > ,
9+ props : Merge < DevupComponentBaseProps < T > , DevupComponentProps < T > > ,
710) : React . ReactElement {
811 throw new Error ( 'Cannot run on the runtime' )
912}
Original file line number Diff line number Diff line change 1- import type { DevupComponentProps } from '../types/props'
1+ import type {
2+ DevupComponentBaseProps ,
3+ DevupComponentProps ,
4+ } from '../types/props'
25import type { Merge } from '../types/utils'
36
47export function Center < T extends React . ElementType = 'div' > (
58 // eslint-disable-next-line @typescript-eslint/no-unused-vars
6- props : Merge < React . ComponentProps < T > , DevupComponentProps < T > > ,
9+ props : Merge < DevupComponentBaseProps < T > , DevupComponentProps < T > > ,
710) : React . ReactElement {
811 throw new Error ( 'Cannot run on the runtime' )
912}
Original file line number Diff line number Diff line change 1- import type { DevupComponentProps } from '../types/props'
1+ import type {
2+ DevupComponentBaseProps ,
3+ DevupComponentProps ,
4+ } from '../types/props'
25import type { Merge } from '../types/utils'
36
47export function Flex < T extends React . ElementType = 'div' > (
58 // eslint-disable-next-line @typescript-eslint/no-unused-vars
6- props : Merge < React . ComponentProps < T > , DevupComponentProps < T > > ,
9+ props : Merge < DevupComponentBaseProps < T > , DevupComponentProps < T > > ,
710) : React . ReactElement {
811 throw new Error ( 'Cannot run on the runtime' )
912}
Original file line number Diff line number Diff line change 1- import type { DevupComponentProps } from '../types/props'
1+ import type {
2+ DevupComponentBaseProps ,
3+ DevupComponentProps ,
4+ } from '../types/props'
25import type { Merge } from '../types/utils'
36
47export function Grid < T extends React . ElementType = 'div' > (
58 // eslint-disable-next-line @typescript-eslint/no-unused-vars
6- props : Merge < React . ComponentProps < T > , DevupComponentProps < T > > ,
9+ props : Merge < DevupComponentBaseProps < T > , DevupComponentProps < T > > ,
710) : React . ReactElement {
811 throw new Error ( 'Cannot run on the runtime' )
912}
Original file line number Diff line number Diff line change 1- import type { DevupComponentProps } from '../types/props'
1+ import type {
2+ DevupComponentBaseProps ,
3+ DevupComponentProps ,
4+ } from '../types/props'
25import type { Merge } from '../types/utils'
36
47export function Image < T extends React . ElementType = 'img' > (
58 // eslint-disable-next-line @typescript-eslint/no-unused-vars
6- props : Merge < React . ComponentProps < T > , DevupComponentProps < T > > ,
9+ props : Merge < DevupComponentBaseProps < T > , DevupComponentProps < T > > ,
710) : React . ReactElement {
811 throw new Error ( 'Cannot run on the runtime' )
912}
Original file line number Diff line number Diff line change 1- import type { DevupComponentProps } from '../types/props'
1+ import type {
2+ DevupComponentBaseProps ,
3+ DevupComponentProps ,
4+ } from '../types/props'
25import type { Merge } from '../types/utils'
36
47export function Input < T extends React . ElementType = 'input' > (
58 // eslint-disable-next-line @typescript-eslint/no-unused-vars
6- props : Merge < React . ComponentProps < T > , DevupComponentProps < T > > ,
9+ props : Merge < DevupComponentBaseProps < T > , DevupComponentProps < T > > ,
710) : React . ReactElement {
811 throw new Error ( 'Cannot run on the runtime' )
912}
Original file line number Diff line number Diff line change 1- import type { DevupComponentProps } from '../types/props'
1+ import type {
2+ DevupComponentBaseProps ,
3+ DevupComponentProps ,
4+ } from '../types/props'
25import type { Merge } from '../types/utils'
36
47export function Text < T extends React . ElementType = 'span' > (
58 // eslint-disable-next-line @typescript-eslint/no-unused-vars
6- props : Merge < React . ComponentProps < T > , DevupComponentProps < T > > ,
9+ props : Merge < DevupComponentBaseProps < T > , DevupComponentProps < T > > ,
710) : React . ReactElement {
811 throw new Error ( 'Cannot run on the runtime' )
912}
Original file line number Diff line number Diff line change 1- import type { DevupComponentProps } from '../types/props'
1+ import type {
2+ DevupComponentBaseProps ,
3+ DevupComponentProps ,
4+ } from '../types/props'
25import type { Merge } from '../types/utils'
36
47export function VStack < T extends React . ElementType = 'div' > (
58 // eslint-disable-next-line @typescript-eslint/no-unused-vars
6- props : Merge < React . ComponentProps < T > , DevupComponentProps < T > > ,
9+ props : Merge < DevupComponentBaseProps < T > , DevupComponentProps < T > > ,
710) : React . ReactElement {
811 throw new Error ( 'Cannot run on the runtime' )
912}
You can’t perform that action at this time.
0 commit comments