Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: New icons for geometric shapes #2927

Merged
merged 8 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/early-snails-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@navikt/aksel-icons": minor
---

Icons: New icons for geometric shapes
16 changes: 13 additions & 3 deletions @navikt/aksel-icons/config/figma/make-configs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ import { resolveName } from "./icon-name.mjs";

export const makeConfig = (icons, folder) => {
icons.forEach((icon) => {
const name = resolveName(icon).replace(".svg", "");
const keywords = icon.description
.split(",")
.map((x) => x.trim())
.filter(Boolean);

const config = {
name: resolveName(icon).replace(".svg", ""),
name,
category: icon.containing_frame.pageName,
sub_category: icon.containing_frame.name,
keywords: [...icon.description.split(",").map((x) => x.trim())],
keywords: keywords.length > 0 ? keywords : [name],
variant: icon.name.includes("Variant=")
? icon.name.replace("Variant=", "")
: "Stroke",
Expand All @@ -27,7 +33,11 @@ export const makeConfig = (icons, folder) => {
.join("."),
};

const yml = jsYaml.dump(config, { noRefs: true, skipInvalid: false });
const yml = jsYaml.dump(config, {
noRefs: true,
skipInvalid: false,
quotingType: '"',
});

writeFileSync(resolve(folder, `${config.name}.yml`), yml, {
encoding: "utf8",
Expand Down
1 change: 1 addition & 0 deletions @navikt/aksel-icons/icons.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { StarFillIcon } from "@navikt/aksel-icons";

const meta: Meta<typeof StarFillIcon> = {
title: "aksel-icons/Icons",
parameters: { html: { disable: true } },
};
export default meta;

Expand Down
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/ArrowDown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ keywords:
- åpnet
- opened
variant: Stroke
updated_at: 07.01.2024
updated_at: 02.05.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/ArrowDownRight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ keywords:
- nivå
- innrykk
variant: Stroke
updated_at: 16.01.2024
updated_at: 02.05.2024
created_at: 04.12.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/ArrowLeft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ keywords:
- back
- tilbake
variant: Stroke
updated_at: 04.01.2024
updated_at: 21.05.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/ArrowRight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ keywords:
- frem
- fram
variant: Stroke
updated_at: 03.01.2024
updated_at: 21.05.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/ArrowUp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ keywords:
- close
- lukke
variant: Stroke
updated_at: 03.01.2024
updated_at: 02.05.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/ArrowsCirclepath.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ keywords:
- oppfrisking
- oppdatering
variant: Stroke
updated_at: 29.02.2024
updated_at: 17.04.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/ArrowsSquarepath.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ keywords:
- opptak
- gjenopptak
variant: Stroke
updated_at: 04.12.2023
updated_at: 17.04.2024
created_at: 07.03.2023
3 changes: 3 additions & 0 deletions @navikt/aksel-icons/icons/BookmarkDash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions @navikt/aksel-icons/icons/BookmarkDash.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: BookmarkDash
category: Interface
sub_category: Filtering and sorting
keywords:
- save
- bokmerke
- collection
- collect
- samling
- empty
- tom
variant: Stroke
updated_at: 15.05.2024
created_at: 15.05.2024
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/Bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Bug
category: Nature and animals
sub_category: Nature
keywords:
- ""
- Bug
variant: Stroke
updated_at: 04.12.2023
created_at: 27.02.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/BugFill.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: BugFill
category: Nature and animals
sub_category: Nature
keywords:
- ""
- BugFill
variant: Fill
updated_at: 04.12.2023
created_at: 27.02.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/BulletList.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ keywords:
- order
- punktliste
variant: Stroke
updated_at: 05.01.2024
updated_at: 19.04.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/Checkmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ keywords:
- fullføring
- validering
variant: Stroke
updated_at: 05.01.2024
updated_at: 17.04.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/CheckmarkCircle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ keywords:
- fullføring
- validering
variant: Stroke
updated_at: 04.12.2023
updated_at: 21.05.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/CheckmarkCircleFill.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ keywords:
- fullføring
- validering
variant: Fill
updated_at: 04.12.2023
updated_at: 21.05.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/ChevronDown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ keywords:
- åpner
- mer
variant: Stroke
updated_at: 05.01.2024
updated_at: 21.05.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/ChevronLeft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ keywords:
- venstre
- side
variant: Stroke
updated_at: 05.01.2024
updated_at: 24.04.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/ChevronRight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ keywords:
- høyre
- side
variant: Stroke
updated_at: 04.01.2024
updated_at: 17.04.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/ChevronUp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ keywords:
- lukk
- lukke
variant: Stroke
updated_at: 05.01.2024
updated_at: 16.04.2024
created_at: 07.03.2023
3 changes: 3 additions & 0 deletions @navikt/aksel-icons/icons/Circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions @navikt/aksel-icons/icons/Circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Circle
category: Status
sub_category: Shapes
keywords:
- Sirkel
variant: Stroke
updated_at: 15.05.2024
created_at: 15.05.2024
3 changes: 3 additions & 0 deletions @navikt/aksel-icons/icons/CircleFill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions @navikt/aksel-icons/icons/CircleFill.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: CircleFill
category: Status
sub_category: Shapes
keywords:
- Sirkel
variant: Fill
updated_at: 15.05.2024
created_at: 15.05.2024
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/ClockDashed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ keywords:
- historikk
- visited
variant: Stroke
updated_at: 09.01.2024
updated_at: 17.04.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/CurrencyExchange.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ keywords:
- handel
- økonomi
variant: Stroke
updated_at: 05.01.2024
updated_at: 07.05.2024
created_at: 07.03.2023
3 changes: 3 additions & 0 deletions @navikt/aksel-icons/icons/Diamond.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions @navikt/aksel-icons/icons/Diamond.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Diamond
category: Status
sub_category: Shapes
keywords:
- diamant
variant: Stroke
updated_at: 15.05.2024
created_at: 15.05.2024
3 changes: 3 additions & 0 deletions @navikt/aksel-icons/icons/DiamondFill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions @navikt/aksel-icons/icons/DiamondFill.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: DiamondFill
category: Status
sub_category: Shapes
keywords:
- diamant
variant: Fill
updated_at: 15.05.2024
created_at: 15.05.2024
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/Divide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ keywords:
- dele
- division
variant: Stroke
updated_at: 05.01.2024
updated_at: 12.04.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/DragVertical.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ keywords:
- dra og slippe
- skifte
variant: Stroke
updated_at: 05.01.2024
updated_at: 23.04.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/Enter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ keywords:
- pålogging
- adgang
variant: Stroke
updated_at: 05.01.2024
updated_at: 23.04.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/Exclamationmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ keywords:
- oppmerksomhet
- viktig
variant: Stroke
updated_at: 05.01.2024
updated_at: 16.04.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/EyeClosed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ keywords:
- lukket
- hidden
variant: Stroke
updated_at: 05.01.2024
updated_at: 15.04.2024
created_at: 07.03.2023
1 change: 0 additions & 1 deletion @navikt/aksel-icons/icons/FileLoading.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ keywords:
- file
- laster
- loading
- ""
variant: Stroke
updated_at: 04.12.2023
created_at: 07.03.2023
1 change: 0 additions & 1 deletion @navikt/aksel-icons/icons/FileLoadingFill.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ keywords:
- file
- laster
- loading
- ""
variant: Fill
updated_at: 04.12.2023
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/Filter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ keywords:
- data
- tabell
variant: Stroke
updated_at: 05.01.2024
updated_at: 17.04.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/Information.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ keywords:
- beskrivelse
- forklaring
variant: Stroke
updated_at: 04.01.2024
updated_at: 16.04.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/Leave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ keywords:
- avslutt
- avslutt
variant: Stroke
updated_at: 05.01.2024
updated_at: 25.04.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/LineGraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ keywords:
- graf
- analyse
variant: Stroke
updated_at: 05.01.2024
updated_at: 25.04.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/LineGraphStacked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ keywords:
- graf
- analyse
variant: Stroke
updated_at: 05.01.2024
updated_at: 25.04.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/Link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ keywords:
- chain
- kobling
variant: Stroke
updated_at: 05.01.2024
updated_at: 21.05.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/MenuElipsisHorizontal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ keywords:
- nedtrekksvalg
- ellipse
variant: Stroke
updated_at: 05.01.2024
updated_at: 17.04.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/MenuHamburger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ keywords:
- meny
- hamburger
variant: Stroke
updated_at: 05.01.2024
updated_at: 25.04.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/Minus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ keywords:
- delete
- slett
variant: Stroke
updated_at: 05.01.2024
updated_at: 12.04.2024
created_at: 07.03.2023
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/icons/Multiply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ keywords:
- gange
- multiplisere
variant: Stroke
updated_at: 05.01.2024
updated_at: 12.04.2024
created_at: 07.03.2023
3 changes: 3 additions & 0 deletions @navikt/aksel-icons/icons/NotePencil.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions @navikt/aksel-icons/icons/NotePencil.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: NotePencil
category: Interface
sub_category: Editing
keywords:
- note
- notat
- edit
- editing
- manage file
- redigere
variant: Stroke
updated_at: 15.05.2024
created_at: 15.05.2024
3 changes: 3 additions & 0 deletions @navikt/aksel-icons/icons/NotePencilDash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading