generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
57 changed files
with
1,241 additions
and
1,098 deletions.
There are no files selected for viewing
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
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,24 +1,5 @@ | ||
check: | ||
golangci-lint run | ||
|
||
check-clean-cache: | ||
golangci-lint cache clean | ||
|
||
protoc-setup: | ||
wget -P meshes https://raw.githubusercontent.com/layer5io/meshery/master/meshes/meshops.proto | ||
|
||
proto: | ||
protoc -I meshes/ meshes/meshops.proto --go_out=plugins=grpc:./meshes/ | ||
|
||
|
||
|
||
|
||
|
||
site: | ||
$(jekyll) serve --drafts --livereload | ||
|
||
build: | ||
$(jekyll) build --drafts | ||
yarn run build-all | ||
|
||
docker: | ||
docker run --name site -d --rm -p 4000:4000 -v `pwd`:"/srv/jekyll" jekyll/jekyll:4.0.0 bash -c "bundle install; jekyll serve --drafts --livereload" | ||
format: | ||
yarn run format |
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 |
---|---|---|
|
@@ -5,13 +5,21 @@ The Sistent Design System from Layer5 provides the open source building blocks t | |
### Packages | ||
|
||
- Design System components in React.js | ||
- npm package: `@layer5/sistent-components` | ||
- npm package: | ||
|
||
`@layer5/sistent-components` | ||
`@layer5/sistent-svg` | ||
|
||
### Brand | ||
|
||
- Layer5 Brand Guide ([PDF](https://layer5.io/brand/brand-guide.pdf)) | ||
- [Layer5 Logos](https://layer5.io/company/brand) (more assets available in shared Community drive). | ||
|
||
### How to get started | ||
|
||
1. Install `[email protected]` | ||
2. Use `yarn` to install dependencies | ||
|
||
<div> </div> | ||
|
||
## Join the Layer5 community! | ||
|
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 |
---|---|---|
|
@@ -33,4 +33,4 @@ | |
"eslint --fix" | ||
] | ||
} | ||
} | ||
} |
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 @@ | ||
import React from 'react'; | ||
import { ButtonGroup as MuiButtonGroup, ButtonGroupProps } from '@mui/material'; | ||
|
||
export const ButtonGroup = (props: ButtonGroupProps) => { | ||
return <MuiButtonGroup {...props} />; | ||
}; |
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 @@ | ||
import React from 'react'; | ||
import { Card as MuiCard, CardProps } from '@mui/material'; | ||
|
||
export const Card = (props: CardProps) => { | ||
return <MuiCard {...props} />; | ||
}; |
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,6 @@ | ||
import React from 'react'; | ||
import { List as MuiList, ListProps } from '@mui/material'; | ||
|
||
export const List = (props: ListProps) => { | ||
return <MuiList {...props} />; | ||
}; |
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 @@ | ||
import React from 'react'; | ||
import { Menu as MuiMenu, MenuProps } from '@mui/material'; | ||
|
||
export const Menu = (props: MenuProps) => { | ||
return <MuiMenu {...props} />; | ||
}; |
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 @@ | ||
import React from 'react'; | ||
import { Select as MuiSelect, SelectProps } from '@mui/material'; | ||
|
||
export const Select = (props: SelectProps) => { | ||
return <MuiSelect {...props} />; | ||
}; |
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 @@ | ||
import React from 'react'; | ||
import { Switch as MuiSwitch, SwitchProps } from '@mui/material'; | ||
|
||
export const Switch = (props: SwitchProps) => { | ||
return <MuiSwitch {...props} />; | ||
}; |
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 @@ | ||
import React from 'react'; | ||
import { Table as MuiTable, TableProps } from '@mui/material'; | ||
|
||
export const Table = (props: TableProps) => { | ||
return <MuiTable {...props} />; | ||
}; |
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 @@ | ||
import React from 'react'; | ||
import { TextField as MuiTextField, TextFieldProps } from '@mui/material'; | ||
|
||
export const TextField = (props: TextFieldProps) => { | ||
return <MuiTextField {...props} />; | ||
}; |
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,12 @@ | ||
module.exports = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'jsdom', | ||
coverageThreshold: { | ||
global: { | ||
branches: 80, | ||
functions: 80, | ||
lines: 80, | ||
statements: 80, | ||
}, | ||
}, | ||
}; |
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,15 @@ | ||
import { render } from '@testing-library/react'; | ||
import { AddIcon } from '../icons'; | ||
|
||
describe('AddIcon', () => { | ||
it('renders without errors', () => { | ||
render(<AddIcon width={24} height={24} />); | ||
}); | ||
|
||
it('applies width and height', () => { | ||
const { getByTestId } = render(<AddIcon width={24} height={24} />); | ||
const svgElement = getByTestId('add-icon-svg'); | ||
expect(svgElement.getAttribute('width')).toBe('24'); | ||
expect(svgElement.getAttribute('height')).toBe('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,26 @@ | ||
import { FC } from 'react'; | ||
import { IconProps } from '../types'; | ||
import { DEFAULT_WIDTH, DEFAULT_HEIGHT, DEFAULT_FILL_NONE } from '../../constants/constants'; | ||
|
||
export const AddIcon: FC<IconProps> = ({ | ||
width = DEFAULT_WIDTH, | ||
height = DEFAULT_HEIGHT, | ||
fill = DEFAULT_FILL_NONE, | ||
...props | ||
}) => { | ||
return ( | ||
<svg | ||
width={width} | ||
height={height} | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 24 24" | ||
data-testid="add-icon-svg" | ||
{...props} | ||
> | ||
<path d="M0 0h24v24H0z" fill={fill} /> | ||
<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" /> | ||
</svg> | ||
); | ||
}; | ||
|
||
export default AddIcon; |
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,25 @@ | ||
import { FC } from 'react'; | ||
import { IconProps } from '../types'; | ||
import { DEFAULT_WIDTH, DEFAULT_HEIGHT, DEFAULT_FILL_NONE } from '../../constants/constants'; | ||
|
||
export const AddIconCircleBordered: FC<IconProps> = ({ | ||
width = DEFAULT_WIDTH, | ||
height = DEFAULT_HEIGHT, | ||
fill = DEFAULT_FILL_NONE, | ||
...props | ||
}) => { | ||
return ( | ||
<svg | ||
width={width} | ||
height={height} | ||
viewBox="0 0 48 48" | ||
xmlns="http://www.w3.org/2000/svg" | ||
{...props} | ||
> | ||
<path d="M0 0h48v48h-48z" fill={fill} /> | ||
<path d="M26 14h-4v8h-8v4h8v8h4v-8h8v-4h-8v-8zm-2-10c-11.05 0-20 8.95-20 20s8.95 20 20 20 20-8.95 20-20-8.95-20-20-20zm0 36c-8.82 0-16-7.18-16-16s7.18-16 16-16 16 7.18 16 16-7.18 16-16 16z" /> | ||
</svg> | ||
); | ||
}; | ||
|
||
export default AddIconCircleBordered; |
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,2 @@ | ||
export { default as AddIcon } from './AddIcon'; | ||
export { default as AddIconCircleBordered } from './AddIconCircleBordered'; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.