-
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
25 changed files
with
253 additions
and
118 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,8 +1,13 @@ | ||
import { popupConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components'; | ||
import type { 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> | ||
>; |
11 changes: 11 additions & 0 deletions
11
packages/plasma-new-hope/src/components/Modal/Modal.tokens.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export const classes = { | ||
/* | ||
* Класс компонента ModalOverlay | ||
*/ | ||
overlay: 'modal-overlay', | ||
}; | ||
|
||
export const tokens = { | ||
modalOverlayWithBlurColor: '--plasma-modal-overlay-with-blur-color', | ||
modalOverlayColor: '--plasma-modal-overlay-color', | ||
}; |
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.
6 changes: 0 additions & 6 deletions
6
packages/plasma-new-hope/src/components/Modal/Modal/Modal.tokens.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,3 @@ | ||
export { modalConfig, modalRoot } from './Modal/Modal'; | ||
export { classes as modalClasses } from './Modal/Modal.tokens'; | ||
export { classes as modalClasses, tokens as modalTokens } from './Modal.tokens'; | ||
export type { ModalProps, ModalOverlayProps } from './Modal/Modal.types'; |
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_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
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
Oops, something went wrong.