-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
349e87c
commit b6a58ab
Showing
112 changed files
with
525 additions
and
752 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
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
.../components/Modal/ModalContent.module.css → .../components/modal/ModalContent.module.css
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,5 +1,5 @@ | ||
.modalContentContainer { | ||
padding: var(--unit-6); | ||
padding: var(--harmony-unit-6); | ||
overflow-y: auto; | ||
flex: 1 1 auto; | ||
} |
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
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
packages/harmony/src/components/modal/ModalContentText.module.css
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,6 @@ | ||
.root { | ||
font-size: var(--harmony-font-l); | ||
font-weight: var(--harmony-font-medium); | ||
line-height: 1.5; | ||
color: var(--harmony-neutral); | ||
} |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
63 changes: 63 additions & 0 deletions
63
packages/harmony/src/components/modal/ModalHeader.module.css
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,63 @@ | ||
.modalContentContainer { | ||
padding: var(--harmony-unit-6); | ||
} | ||
|
||
.headerContainer { | ||
flex: 0 0 auto; | ||
display: flex; | ||
flex-direction: column; | ||
border-bottom: 1px solid var(--harmony-n-100); | ||
padding: var(--harmony-unit-6) 0; | ||
margin: 0 var(--harmony-unit-6); | ||
} | ||
|
||
.dismissButton { | ||
z-index: 1; | ||
position: absolute; | ||
color: var(--harmony-n-600); | ||
} | ||
|
||
.titleContainer { | ||
position: relative; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
margin-left: var(--harmony-unit-7); | ||
margin-right: var(--harmony-unit-7); | ||
color: var(--harmony-n-600); | ||
} | ||
|
||
.titleContainer.noDismissButton { | ||
margin-right: var(--harmony-unit-4); | ||
} | ||
|
||
.title { | ||
margin: 0; | ||
display: inline; | ||
font-size: var(--harmony-font-xl); | ||
font-weight: var(--harmony-font-heavy); | ||
color: var(--harmony-n-600); | ||
text-transform: uppercase; | ||
} | ||
|
||
.subtitleContainer { | ||
text-align: center; | ||
line-height: 18px; | ||
} | ||
|
||
.subtitle { | ||
margin: 0; | ||
display: inline; | ||
font-size: var(--harmony-font-s); | ||
font-weight: var(--harmony-font-medium); | ||
color: var(--harmony-n-600); | ||
} | ||
|
||
.icon { | ||
display: inline; | ||
margin-right: 10px; | ||
} | ||
|
||
.icon path { | ||
fill: var(--harmony-n-600); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Legacy browser support for `Element.closest` | ||
* @param el | ||
* @param selector query selector | ||
*/ | ||
export const findAncestor = (el: Element | null, selector: string) => { | ||
if (el !== null && el.closest) { | ||
return el.closest(selector) | ||
} | ||
// Fall back to just looping back through parents | ||
while ( | ||
(el = el?.parentElement ?? null) && | ||
// @ts-ignore | ||
!(el.matches || el.matchesSelector).call(el, selector) | ||
); | ||
return el | ||
} |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/stems/src/components/Modal/types.ts → ...ges/harmony/src/components/modal/types.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
:root, | ||
root { | ||
--harmony-layer: 0; | ||
--harmony-layer-modal: 10000; | ||
--harmony-layer-popup: 20000; | ||
--harmony-layer-tooltip: 30000; | ||
} |
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,5 @@ | ||
export * from './useClickOutside' | ||
export * from './useControlled' | ||
export * from './useHotKeys' | ||
export * from './useMediaQueryListener' | ||
export * from './useScrollLock' |
Oops, something went wrong.