-
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(plasma-web, plasma-b2c): fix NoScroll behavior in ModalBase
- Loading branch information
Showing
22 changed files
with
81 additions
and
48 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
4 changes: 2 additions & 2 deletions
4
packages/plasma-b2c/src/components/ModalBase/ModalBase.stories.tsx
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,4 +1,7 @@ | ||
export { ModalBase } from './ModalBase'; | ||
export { modalClasses as modalBaseClasses } from '@salutejs/plasma-new-hope/styled-components'; | ||
export { | ||
modalClasses as modalBaseClasses, | ||
modalTokens as modalBaseTokens, | ||
} from '@salutejs/plasma-new-hope/styled-components'; | ||
|
||
export type { ModalProps as ModalBaseProps } from '@salutejs/plasma-new-hope/styled-components'; |
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,8 +1,13 @@ | ||
import { popupConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components'; | ||
import { ForwardRefExoticComponent, RefAttributes } from 'react'; | ||
|
||
import { PopupBaseProps } from '.'; | ||
|
||
const mergedConfig = mergeConfig(popupConfig); | ||
|
||
/** | ||
* Базовый компонент PopupBase. | ||
*/ | ||
export const PopupBase = component(mergedConfig); | ||
export const PopupBase = component(mergedConfig) as ForwardRefExoticComponent< | ||
PopupBaseProps & RefAttributes<HTMLDivElement> | ||
>; |
9 changes: 0 additions & 9 deletions
9
packages/plasma-new-hope/src/components/Modal/Modal/Modal.styles.ts
This file was deleted.
Oops, something went wrong.
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,2 +1,2 @@ | ||
export { modalConfig, modalRoot } from './Modal/Modal'; | ||
export { classes as modalClasses } from './Modal/Modal.tokens'; | ||
export { classes as modalClasses, tokens as modalTokens } from './Modal/Modal.tokens'; |
6 changes: 4 additions & 2 deletions
6
packages/plasma-new-hope/src/examples/plasma_b2c/components/Modal/Modal.config.ts
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
2 changes: 1 addition & 1 deletion
2
packages/plasma-new-hope/src/examples/plasma_b2c/components/Modal/Modal.stories.tsx
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
6 changes: 4 additions & 2 deletions
6
packages/plasma-new-hope/src/examples/plasma_web/components/Modal/Modal.config.ts
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
6 changes: 4 additions & 2 deletions
6
packages/plasma-new-hope/src/examples/sds_engineer/components/Modal/Modal.config.ts
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,4 +1,7 @@ | ||
export { ModalBase } from './ModalBase'; | ||
export { modalClasses as modalBaseClasses } from '@salutejs/plasma-new-hope/styled-components'; | ||
export { | ||
modalClasses as modalBaseClasses, | ||
modalTokens as modalBaseTokens, | ||
} from '@salutejs/plasma-new-hope/styled-components'; | ||
|
||
export type { ModalProps as ModalBaseProps } from '@salutejs/plasma-new-hope/styled-components'; |
2 changes: 1 addition & 1 deletion
2
packages/plasma-web/src/components/PopupBase/PopupBase.stories.tsx
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,8 +1,13 @@ | ||
import { popupConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components'; | ||
import { ForwardRefExoticComponent, RefAttributes } from 'react'; | ||
|
||
import { PopupBaseProps } from '.'; | ||
|
||
const mergedConfig = mergeConfig(popupConfig); | ||
|
||
/** | ||
* Базовый компонент PopupBase. | ||
*/ | ||
export const PopupBase = component(mergedConfig); | ||
export const PopupBase = component(mergedConfig) as ForwardRefExoticComponent< | ||
PopupBaseProps & RefAttributes<HTMLDivElement> | ||
>; |