-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #747 from vrk-kpa/develop
[Release] 11.0.0
- Loading branch information
Showing
95 changed files
with
9,061 additions
and
1,905 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
7,239 changes: 7,239 additions & 0 deletions
7,239
.styleguidist/assets/v10.0.4/build/bundle.44a8d11a.js.LICENSE.txt
Large diffs are not rendered by default.
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,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Suomifi-ui-components 10.0.4</title> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600&display=swap"> | ||
</head> | ||
<body> | ||
<div id="rsg-root"></div> | ||
<script src="build/bundle.44a8d11a.js"></script> | ||
</body> | ||
</html> |
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 @@ | ||
This component has been removed since library version 11.0.0. See documentation for [Icons](./#/Introduction/Icons). |
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,115 @@ | ||
Suomi.fi icons are available from the [suomifi-icons](https://github.com/vrk-kpa/suomifi-icons) library. | ||
|
||
The API varies by component type. Any props not mentioned in the respective APIs are passed to the `svg` element. | ||
|
||
Click on an icon to copy its component name to clipboard for easy importing. | ||
|
||
## Usage | ||
|
||
Icons can be imported either through `suomifi-ui-components` or directly from the `suomifi-icons` package. | ||
|
||
After importing the individual icons, they can be used via the APIs described below. | ||
|
||
```js | ||
import { IconArchive } from 'suomifi-ui-components'; | ||
// OR import { IconArchive } from 'suomifi-icons'; | ||
|
||
<IconArchive color="green" mousePointer />; | ||
``` | ||
|
||
To use icons as a property for other components, simply give an icon element with the desired properties as a value for the component property. | ||
|
||
```js | ||
import { Button, IconLogin } from 'suomifi-ui-components'; | ||
// OR import { IconLogin } from 'suomifi-icons'; | ||
|
||
<Button iconRight={<IconLogin />}>Log in</Button>; | ||
``` | ||
|
||
## Base icons | ||
|
||
Base icons are the most commonly used icon set. Their color and size can be customized via props. By default the color value is set to `currentColor`, so the icons inherit the current font color. | ||
|
||
### Base icons API | ||
|
||
| Property | Property type | Description | | ||
| --- | --- | --- | | ||
| className | `string` | Custom classname to extend or customize | | ||
| ariaLabel | `string` | Aria-label for SVG, undefined hides SVG from screen reader | | ||
| mousePointer | `boolean` | Show mouse cursor as hand-pointer | | ||
| color | `string` | Custom fill color | | ||
| fill | `string` | Custom fill color, takes precedence over color if both are provided | | ||
|
||
### Icons | ||
|
||
Click on an icon to copy its component name to clipboard for easy importing | ||
|
||
```jsx noeditor | ||
import { BaseIcons } from '../src/docs/Icons/Icons'; | ||
<BaseIcons />; | ||
``` | ||
|
||
## Illustrative icons | ||
|
||
Illustrative icons are 2-color icons that can be customized to fit the required color scheme. | ||
|
||
### Illustrative icons API | ||
|
||
| Property | Property type | Description | | ||
| --- | --- | --- | | ||
| className | `string` | Custom classname to extend or customize | | ||
| ariaLabel | `string` | Aria-label for SVG, undefined hides SVG from screen reader | | ||
| mousePointer | `boolean` | Show mouse cursor as hand-pointer | | ||
| baseColor | `string` | Custom base color | | ||
| highlightColor | `string` | Custom highlight color | | ||
|
||
### Icons | ||
|
||
Click on an icon to copy its component name to clipboard for easy importing | ||
|
||
```jsx noeditor | ||
import { IllustrativeIcons } from '../src/docs/Icons/Icons'; | ||
<IllustrativeIcons />; | ||
``` | ||
|
||
## Doctype icons | ||
|
||
Doctype icons portray different document types. | ||
|
||
### Doctype icons API | ||
|
||
| Property | Property type | Description | | ||
| --- | --- | --- | | ||
| className | `string` | Custom classname to extend or customize | | ||
| ariaLabel | `string` | Aria-label for SVG, undefined hides SVG from screen reader | | ||
| mousePointer | `boolean` | Show mouse cursor as hand-pointer | | ||
|
||
### Icons | ||
|
||
Click on an icon to copy its component name to clipboard for easy importing | ||
|
||
```jsx noeditor | ||
import { DoctypeIcons } from '../src/docs/Icons/Icons'; | ||
<DoctypeIcons />; | ||
``` | ||
|
||
## Logo icons | ||
|
||
LogoIcons contains variations of the Suomi.fi logo. It offers only limited customisation options. | ||
|
||
### Logo icons API | ||
|
||
| Property | Property type | Description | | ||
| --- | --- | --- | | ||
| className | `string` | Custom classname to extend or customize | | ||
| ariaLabel | `string` | Aria-label for SVG, undefined hides SVG from screen reader | | ||
| mousePointer | `boolean` | Show mouse cursor as hand-pointer | | ||
|
||
### Icons | ||
|
||
Click on an icon to copy its component name to clipboard for easy importing | ||
|
||
```jsx noeditor | ||
import { LogoIcons } from '../src/docs/Icons/Icons'; | ||
<LogoIcons />; | ||
``` |
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.