Skip to content

Commit

Permalink
Merge pull request #28 from unionen/develop
Browse files Browse the repository at this point in the history
feat: add success and error animatable icons
  • Loading branch information
unionen authored Dec 29, 2023
2 parents f30f098 + 47e530d commit fe11195
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @unionen/icons

## 1.4.1

### Patch Changes

- add success and error animatable icons

## 1.4.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@unionen/icons",
"version": "1.4.0",
"version": "1.4.1",
"description": "An iconset for FormKit inputs used on unionen.se",
"private": false,
"type": "module",
Expand Down
1 change: 1 addition & 0 deletions src/icons/status/ErrorLarge.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default `<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg" role="img"><circle class="path circle" cx="20" cy="20" fill="none" r="18.75" stroke="currentColor" stroke-miterlimit="10" stroke-width="2.5"/><line class="path line" fill="none" stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2.5" x1="10.1" x2="29.9" y1="11.2" y2="28.8"/><line class="path line" fill="none" stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2.5" x1="29.9" x2="10.1" y1="11.3" y2="28.7"/></svg>`
2 changes: 1 addition & 1 deletion src/icons/status/LogInSmall.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default `<svg fill="currentColor" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" role="img"><path d="m12.7 8c1.4 0 2.6 1.1 2.7 2.5v1c.4.3.7.7.7 1.1v2c0 .7-.6 1.3-1.3 1.3h-4c-.7 0-1.3-.6-1.3-1.3v-2c0-.5.3-.9.7-1.1v-.9c-.2-1.4 1-2.6 2.5-2.6zm-4.7-8c.6 0 1.2.1 1.7.1 1.2.2 2.1 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1.3-1.3-1.3z"/></svg>`
2 changes: 2 additions & 0 deletions src/icons/status/SuccessLarge.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export default `<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg" role="img"><circle class="path circle" cx="20" cy="20" fill="none" r="18.75" stroke="currentColor" stroke-miterlimit="10" stroke-width="2.5"/><polyline class="path check" fill="none" points="31.3 12 15.6 27.6 8.6 20.8" stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2.5"/></svg>`

4 changes: 4 additions & 0 deletions src/icons/status/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import CorrectMedium from './CorrectMedium';
import ErrorMedium from './ErrorMedium';
import ErrorLarge from './ErrorLarge';
import FingerprintPersonalizedMedium from './FingerprintPersonalizedMedium';
import FingerprintPersonalizedSmall from './FingerprintPersonalizedSmall';
import InformationMedium from './InformationMedium';
Expand All @@ -11,11 +12,13 @@ import LogInKeyMedium from './LogInKeyMedium';
import LogInMedium from './LogInMedium';
import LogInSmall from './LogInSmall';
import QuestionMedium from './QuestionMedium';
import SuccessLarge from './SuccessLarge';
import WarningMedium from './WarningMedium';

export {
CorrectMedium,
ErrorMedium,
ErrorLarge,
FingerprintPersonalizedMedium,
FingerprintPersonalizedSmall,
InformationMedium,
Expand All @@ -27,6 +30,7 @@ export {
LogInSmall,
LogInMedium,
QuestionMedium,
SuccessLarge,
WarningMedium,
};

14 changes: 14 additions & 0 deletions src/svg/status/ErrorLarge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/svg/status/SuccessLarge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fe11195

Please sign in to comment.