-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Built modules for design tokens (#356)
- Loading branch information
Showing
91 changed files
with
3,090 additions
and
2,107 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
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,11 +1,10 @@ | ||
import { useMediaQuery } from '.'; | ||
import { useMediaQuery } from './useMediaQuery'; | ||
|
||
/** | ||
* Hook to get the prefers-color-scheme value. | ||
* | ||
* @returns `true` if the prefers-color-scheme matches | ||
* @public | ||
*/ | ||
|
||
export const usePrefersColorScheme = (scheme?: string): boolean => | ||
useMediaQuery(`(prefers-color-scheme: ${!scheme ? 'light' : scheme})`); |
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,11 +1,10 @@ | ||
import { useMediaQuery } from '.'; | ||
import { useMediaQuery } from './useMediaQuery'; | ||
|
||
/** | ||
* Hook to get the prefers-reduce-data value. | ||
* | ||
* @returns `true` if the prefers-reduce-data is set reduce in the media queries that matches | ||
* @public | ||
*/ | ||
|
||
export const usePrefersReducedData = (): boolean => | ||
useMediaQuery('(prefers-reduced-data: reduce)'); |
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,11 +1,10 @@ | ||
import { useMediaQuery } from '.'; | ||
import { useMediaQuery } from './useMediaQuery'; | ||
|
||
/** | ||
* Hook to get the prefers-reduce-motion value. | ||
* | ||
* @returns `true` if the prefers-reduce-motion is set reduce in the media queries that matches | ||
* @public | ||
*/ | ||
|
||
export const usePrefersReducedMotion = (): boolean => | ||
useMediaQuery('(prefers-reduced-motion: reduce)'); |
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
"quoteProps": "consistent", | ||
"jsxSingleQuote": true, | ||
"printWidth": 80 | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,10 @@ | ||
export default { | ||
xs: { | ||
minViewportWidth: null, | ||
columns: 4, | ||
gutterWidth: 16, | ||
}, | ||
sm: { | ||
minViewportWidth: 600, | ||
columns: 8, | ||
gutterWidth: 16, | ||
}, | ||
md: { | ||
minViewportWidth: 768, | ||
columns: 8, | ||
gutterWidth: 24, | ||
}, | ||
lg: { | ||
minViewportWidth: 1024, | ||
columns: 12, | ||
gutterWidth: 24, | ||
}, | ||
xl: { | ||
minViewportWidth: 1440, | ||
columns: 12, | ||
gutterWidth: 24, | ||
}, | ||
'use strict'; | ||
module.exports = { | ||
xs: { name: 'xs', minViewportWidth: null, columns: 4, gutterWidth: 16 }, | ||
sm: { name: 'sm', minViewportWidth: 600, columns: 8, gutterWidth: 16 }, | ||
md: { name: 'md', minViewportWidth: 768, columns: 8, gutterWidth: 24 }, | ||
lg: { name: 'lg', minViewportWidth: 1024, columns: 12, gutterWidth: 24 }, | ||
xl: { name: 'xl', minViewportWidth: 1280, columns: 12, gutterWidth: 24 }, | ||
xxl: { name: 'xxl', minViewportWidth: 1600, columns: 12, gutterWidth: 24 }, | ||
xxxl: { name: 'xxxl', minViewportWidth: 1920, columns: 12, gutterWidth: 24 }, | ||
}; |
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,9 @@ | ||
export default { | ||
xs: { name: 'xs', minViewportWidth: null, columns: 4, gutterWidth: 16 }, | ||
sm: { name: 'sm', minViewportWidth: 600, columns: 8, gutterWidth: 16 }, | ||
md: { name: 'md', minViewportWidth: 768, columns: 8, gutterWidth: 24 }, | ||
lg: { name: 'lg', minViewportWidth: 1024, columns: 12, gutterWidth: 24 }, | ||
xl: { name: 'xl', minViewportWidth: 1280, columns: 12, gutterWidth: 24 }, | ||
xxl: { name: 'xxl', minViewportWidth: 1600, columns: 12, gutterWidth: 24 }, | ||
xxxl: { name: 'xxxl', minViewportWidth: 1920, columns: 12, gutterWidth: 24 }, | ||
}; |
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.