Skip to content

Commit

Permalink
Merge pull request #84 from fortanix/mkrause/250102-update-icons
Browse files Browse the repository at this point in the history
Update icons pack
  • Loading branch information
mkrause authored Jan 3, 2025
2 parents 44c225e + 1dcb6fd commit 7f23a79
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 9 deletions.
2 changes: 1 addition & 1 deletion scripts/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ const createIconsManifest = async (args: ScriptArgs) => {
export const icons = {
${icons.map(iconName => ` '${iconName}': {},`).join('\n')}
} as const satisfies Record<string, IconDef>;
`;
` + '\n';

const manifestPath = path.join(pathIconsSource, '_icons.ts');
logger.info(`Writing file: ${manifestPath}`);
Expand Down
3 changes: 2 additions & 1 deletion src/assets/icons/_icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const icons = {
'services': {},
'settings': {},
'solutions': {},
'status-cancel': {},
'status-canceled': {},
'status-failed-filled': {},
'status-failed': {},
'status-success-filled': {},
Expand All @@ -75,6 +75,7 @@ export const icons = {
'user-authentication': {},
'user-profile': {},
'user': {},
'warning-filled': {},
'warning': {},
'workflow': {},
} as const satisfies Record<string, IconDef>;
9 changes: 8 additions & 1 deletion src/assets/icons/info-filled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
9 changes: 8 additions & 1 deletion src/assets/icons/status-failed-filled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion src/assets/icons/status-success-filled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icons/warning-filled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/assets/icons/warning.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/components/overlays/Toast/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const success = ({ title, message, options = {} }: NotifyProps) => {
className: cx(cl['bk-toast--success'], className),
bodyClassName: cx(cl['bk-toast__body'], bodyClassName),
progressClassName: cx(cl['bk-toast__progress-bar--success']),
icon: <Icon icon="status-success" className={cx(cl['bk-toast__icon--success'])} />,
icon: <Icon icon="status-success-filled" className={cx(cl['bk-toast__icon--success'])} />,
closeButton: closeButton === true ? <CloseToastButton /> : closeButton,
...restOptions,
};
Expand All @@ -142,7 +142,7 @@ const info = ({ title, message, options = {} }: NotifyProps) => {
className: cx(cl['bk-toast--info'], className),
bodyClassName: cx(cl['bk-toast__body'], bodyClassName),
progressClassName: cx(cl['bk-toast__progress-bar--info']),
icon: <Icon icon="warning" className={cx(cl['bk-toast__icon--info'])} />,
icon: <Icon icon="info-filled" className={cx(cl['bk-toast__icon--info'])} />,
closeButton: closeButton === true ? <CloseToastButton /> : closeButton,
...restOptions,
};
Expand All @@ -166,7 +166,7 @@ const error = ({ title, message, options = {} }: NotifyProps) => {
className: cx(cl['bk-toast--error'], className),
bodyClassName: cx(cl['bk-toast__body'], bodyClassName),
progressClassName: cx(cl['bk-toast__progress-bar--error']),
icon: <Icon icon="status-failed" className={cx(cl['bk-toast__icon--error'])} />,
icon: <Icon icon="status-failed-filled" className={cx(cl['bk-toast__icon--error'])} />,
closeButton: closeButton === true ? <CloseToastButton /> : closeButton,
...restOptions,
};
Expand Down

0 comments on commit 7f23a79

Please sign in to comment.