-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docs): Change proptable and check types after json generate
- Loading branch information
Showing
29 changed files
with
256 additions
and
117 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
import { switchConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components'; | ||
import type { SwitchProps } from '@salutejs/plasma-core'; | ||
import { ComponentProps } from 'react'; | ||
|
||
import { config } from './Switch.config'; | ||
|
||
type SwitchPropsCustom = { | ||
defaultChecked: boolean; | ||
} & SwitchProps; | ||
|
||
const mergedConfig = mergeConfig(switchConfig, config); | ||
const SwitchComponent = component(mergedConfig); | ||
|
||
export const Switch = SwitchComponent as React.ForwardRefExoticComponent< | ||
SwitchPropsCustom & React.RefAttributes<HTMLInputElement> | ||
>; | ||
export type { SwitchProps }; | ||
export const Switch = SwitchComponent; | ||
export type SwitchProps = ComponentProps<typeof SwitchComponent>; |
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,16 +1,10 @@ | ||
import { switchConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components'; | ||
import type { SwitchProps } from '@salutejs/plasma-core'; | ||
import { ComponentProps } from 'react'; | ||
|
||
import { config } from './Switch.config'; | ||
|
||
type SwitchPropsCustom = { | ||
defaultChecked: boolean; | ||
} & SwitchProps; | ||
|
||
const mergedConfig = mergeConfig(switchConfig, config); | ||
const SwitchComponent = component(mergedConfig); | ||
|
||
export const Switch = SwitchComponent as React.ForwardRefExoticComponent< | ||
SwitchPropsCustom & React.RefAttributes<HTMLInputElement> | ||
>; | ||
export type { SwitchProps }; | ||
export const Switch = SwitchComponent; | ||
export type SwitchProps = ComponentProps<typeof SwitchComponent>; |
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,16 +1,10 @@ | ||
import { switchConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components'; | ||
import type { SwitchProps } from '@salutejs/plasma-core'; | ||
import { ComponentProps } from 'react'; | ||
|
||
import { config } from './Switch.config'; | ||
|
||
type SwitchPropsCustom = { | ||
defaultChecked: boolean; | ||
} & SwitchProps; | ||
|
||
const mergedConfig = mergeConfig(switchConfig, config); | ||
const SwitchComponent = component(mergedConfig); | ||
|
||
export const Switch = SwitchComponent as React.ForwardRefExoticComponent< | ||
SwitchPropsCustom & React.RefAttributes<HTMLInputElement> | ||
>; | ||
export type { SwitchProps }; | ||
export const Switch = SwitchComponent; | ||
export type SwitchProps = ComponentProps<typeof SwitchComponent>; |
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,16 +1,10 @@ | ||
import { switchConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components'; | ||
import type { SwitchProps } from '@salutejs/plasma-core'; | ||
import { ComponentProps } from 'react'; | ||
|
||
import { config } from './Switch.config'; | ||
|
||
type SwitchPropsCustom = { | ||
defaultChecked: boolean; | ||
} & SwitchProps; | ||
|
||
const mergedConfig = mergeConfig(switchConfig, config); | ||
const SwitchComponent = component(mergedConfig); | ||
|
||
export const Switch = SwitchComponent as React.ForwardRefExoticComponent< | ||
SwitchPropsCustom & React.RefAttributes<HTMLInputElement> | ||
>; | ||
export type { SwitchProps }; | ||
export const Switch = SwitchComponent; | ||
export type SwitchProps = ComponentProps<typeof SwitchComponent>; |
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.