-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update yarn.lock file and resolve merge conflicts
- Loading branch information
Showing
11 changed files
with
2,208 additions
and
346 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
import { Box, useColorMode } from '@tonic-ui/react'; | ||
|
||
const BorderedBox = (props) => { | ||
const [colorMode] = useColorMode(); | ||
const styleProps = { | ||
border: 1, | ||
borderColor: colorMode === 'light' ? 'rgba(0, 0, 0, .12)' : 'rgba(255, 255, 255, .12)', | ||
}; | ||
|
||
return ( | ||
<Box | ||
{...styleProps} | ||
{...props} | ||
/> | ||
); | ||
}; | ||
|
||
export default BorderedBox; |
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 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,15 +1,16 @@ | ||
import * as moduleExport from '@tonic-ui/react-icons/src'; | ||
import * as icons from '@tonic-ui/react-icons/src/icons'; | ||
import * as moduleExport from '@tonic-ui/react-lab/src'; | ||
|
||
test('should match expected exports', () => { | ||
const expectedExports = [ | ||
'SVGIcon', | ||
'createSVGIcon', | ||
|
||
// icons | ||
...Object.keys(icons), | ||
const exportedComponents = [ | ||
// date-time-pickers | ||
'Calendar', | ||
'DatePicker', | ||
]; | ||
|
||
const receivedExports = Object.keys(moduleExport); | ||
const expectedExports = [ | ||
...exportedComponents, | ||
]; | ||
|
||
expect(receivedExports.sort()).toEqual(expectedExports.sort()); | ||
}); |
Oops, something went wrong.