Skip to content

Commit

Permalink
ECHOES-491 Add new AI icons to our custom icon font
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cho-lerat-sonarsource committed Dec 12, 2024
1 parent 3ca04ce commit 2e36537
Show file tree
Hide file tree
Showing 6 changed files with 132 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/components/icons/IconSparkleInShield.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Echoes React
* Copyright (C) 2023-2024 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

import { forwardRef } from 'react';
import { IconCustomWrapper, IconProps } from './IconWrapper';

export const IconSparkleInShield = forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
// This is an icon from the "Echoes" custom font
return (
<IconCustomWrapper {...props} ref={ref}>
&#x2C;
</IconCustomWrapper>
);
});
IconSparkleInShield.displayName = 'IconSparkleInShield';
32 changes: 32 additions & 0 deletions src/components/icons/IconSparkleInShieldDisabled.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Echoes React
* Copyright (C) 2023-2024 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

import { forwardRef } from 'react';
import { IconCustomWrapper, IconProps } from './IconWrapper';

export const IconSparkleInShieldDisabled = forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
// This is an icon from the "Echoes" custom font
return (
<IconCustomWrapper {...props} ref={ref}>
&#x2F;
</IconCustomWrapper>
);
});
IconSparkleInShieldDisabled.displayName = 'IconSparkleInShieldDisabled';
32 changes: 32 additions & 0 deletions src/components/icons/IconSparkleInShieldError.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Echoes React
* Copyright (C) 2023-2024 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

import { forwardRef } from 'react';
import { IconCustomWrapper, IconProps } from './IconWrapper';

export const IconSparkleInShieldError = forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
// This is an icon from the "Echoes" custom font
return (
<IconCustomWrapper {...props} ref={ref}>
&#x2D;
</IconCustomWrapper>
);
});
IconSparkleInShieldError.displayName = 'IconSparkleInShieldError';
32 changes: 32 additions & 0 deletions src/components/icons/IconSparkleInShieldSuccess.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Echoes React
* Copyright (C) 2023-2024 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

import { forwardRef } from 'react';
import { IconCustomWrapper, IconProps } from './IconWrapper';

export const IconSparkleInShieldSuccess = forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
// This is an icon from the "Echoes" custom font
return (
<IconCustomWrapper {...props} ref={ref}>
&#x2E;
</IconCustomWrapper>
);
});
IconSparkleInShieldSuccess.displayName = 'IconSparkleInShieldSuccess';
4 changes: 4 additions & 0 deletions src/components/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ export { IconSearch } from './IconSearch';
export { IconSecurityFinding } from './IconSecurityFinding';
export { IconSlideshow } from './IconSlideshow';
export { IconSparkle } from './IconSparkle';
export { IconSparkleInShield } from './IconSparkleInShield';
export { IconSparkleInShieldDisabled } from './IconSparkleInShieldDisabled';
export { IconSparkleInShieldError } from './IconSparkleInShieldError';
export { IconSparkleInShieldSuccess } from './IconSparkleInShieldSuccess';
export { IconStar } from './IconStar';
export { IconStatusConfirmed } from './IconStatusConfirmed';
export { IconStatusOpen } from './IconStatusOpen';
Expand Down
Binary file modified src/generated/echoes.woff2
Binary file not shown.

0 comments on commit 2e36537

Please sign in to comment.