-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Layers #1923
Closed
feat: Layers #1923
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
7618ad4
chore(deps): add @types/react-dom
talkor b66e154
chore: deprecate old z-index usages in floating elements
talkor f1786e4
feat: add LayerProvider
talkor dad1d93
chore: update monday-ui-style (experimental version to test new layers)
talkor 9996217
feat: use new layers
talkor c8aa221
feat(Modal): wrap in LayerProvider
talkor e2b24d2
feat(Dialog): use LayerContext
talkor 741fdc5
chore: export LayerProvider
talkor 556f4df
test: update snapshots
talkor ac278cb
Merge branch 'master' into layers
talkor 0409767
feat(layers): add layer variables
talkor e0f0864
chore: move files
talkor 102975b
refactor: remove contextType
talkor a9be579
fix: type
talkor 76f6522
refactor: layers
talkor cf6ef21
chore: lint
talkor b3f5381
test: snapshots
talkor c9700af
Merge branch 'master' into layers
talkor 93fbe59
refactor: make LayerProvider leaner
talkor 6d9dc09
test: snapshots
talkor b0609f4
Merge branch 'master' into layers
talkor 3d85040
Merge branch 'master' into layers
talkor 307c7f9
feat: remove tooltips-container
talkor 5a8c3d4
feat: remove tooltips-container
talkor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
<div id="dropdown-portal"></div> | ||
<div id="tooltips-container"></div> |
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
11 changes: 11 additions & 0 deletions
11
packages/core/src/components/LayerProvider/LayerContext.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from "react"; | ||
|
||
export type LayersContextType = { | ||
layerRef: React.RefObject<HTMLElement>; | ||
}; | ||
|
||
const LayerContext = React.createContext<LayersContextType>({ | ||
layerRef: null | ||
}); | ||
|
||
export default LayerContext; |
13 changes: 13 additions & 0 deletions
13
packages/core/src/components/LayerProvider/LayerProvider.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React, { FC } from "react"; | ||
import LayerContext from "./LayerContext"; | ||
|
||
interface LayerProviderType { | ||
children: JSX.Element | JSX.Element[]; | ||
layerRef: React.RefObject<HTMLElement> | null; | ||
} | ||
|
||
const LayerProvider: FC<LayerProviderType> = ({ children, layerRef }) => { | ||
return <LayerContext.Provider value={{ layerRef }}>{children}</LayerContext.Provider>; | ||
}; | ||
|
||
export default LayerProvider; |
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove