From dd5343d60d0191223df37d5e40abaf51d862f84e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=A1vio=20Fiori?= Date: Fri, 16 May 2025 14:02:06 -0300 Subject: [PATCH 1/3] add moneyReturn icon --- styleguide/src/Icons/icons-path/MoneyReturn.tsx | 10 ++++++++++ styleguide/src/Icons/icons-path/index.ts | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 styleguide/src/Icons/icons-path/MoneyReturn.tsx diff --git a/styleguide/src/Icons/icons-path/MoneyReturn.tsx b/styleguide/src/Icons/icons-path/MoneyReturn.tsx new file mode 100644 index 0000000..a52c6c0 --- /dev/null +++ b/styleguide/src/Icons/icons-path/MoneyReturn.tsx @@ -0,0 +1,10 @@ +import React from 'react' + +export const MoneyReturn = () => { + return ( + + ) +} \ No newline at end of file diff --git a/styleguide/src/Icons/icons-path/index.ts b/styleguide/src/Icons/icons-path/index.ts index f9c6a44..4dc2d80 100644 --- a/styleguide/src/Icons/icons-path/index.ts +++ b/styleguide/src/Icons/icons-path/index.ts @@ -49,6 +49,7 @@ import { Loading } from './Loading' import { Minus } from './Minus' import { Mobile } from './Mobile' import { MoneyBill } from './MoneyBill' +import { MoneyReturn } from './MoneyReturn' import { Move } from './Move' import { Nav } from './Nav' import { Order } from './Order' @@ -145,6 +146,7 @@ export const icons = { minus: Minus, mobile: Mobile, moneyBill: MoneyBill, + moneyReturn: MoneyReturn, move: Move, nav: Nav, order: Order, From 0ea693259dbc4d233f892f6d19f4d64a74b83450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=A1vio=20Fiori?= Date: Fri, 16 May 2025 14:14:14 -0300 Subject: [PATCH 2/3] fix linter --- styleguide/src/Icons/icons-path/MoneyReturn.tsx | 12 +++++++----- styleguide/src/Indicators/Alert/Alert.tsx | 13 +++++++++++-- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/styleguide/src/Icons/icons-path/MoneyReturn.tsx b/styleguide/src/Icons/icons-path/MoneyReturn.tsx index a52c6c0..7ed1e7e 100644 --- a/styleguide/src/Icons/icons-path/MoneyReturn.tsx +++ b/styleguide/src/Icons/icons-path/MoneyReturn.tsx @@ -2,9 +2,11 @@ import React from 'react' export const MoneyReturn = () => { return ( - + ) -} \ No newline at end of file +} diff --git a/styleguide/src/Indicators/Alert/Alert.tsx b/styleguide/src/Indicators/Alert/Alert.tsx index c3121a5..96a94f4 100644 --- a/styleguide/src/Indicators/Alert/Alert.tsx +++ b/styleguide/src/Indicators/Alert/Alert.tsx @@ -1,7 +1,14 @@ import React, { useState, useEffect } from 'react' import { Icon, IconProps } from '../../Icons' -type alertTypesOptions = 'success' | 'warning' | 'danger' | 'info' | 'infoOutline' | 'infoDark' | 'primary' +type alertTypesOptions = + | 'success' + | 'warning' + | 'danger' + | 'info' + | 'infoOutline' + | 'infoDark' + | 'primary' const alertTypes: Record< alertTypesOptions, @@ -73,7 +80,9 @@ const AlertComponent = ({ if (!alertIsOpen) return null return (
{!hideIcon && (
Date: Fri, 16 May 2025 16:07:01 -0300 Subject: [PATCH 3/3] fix alert --- styleguide/src/Indicators/Alert/Alert.spec.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/styleguide/src/Indicators/Alert/Alert.spec.tsx b/styleguide/src/Indicators/Alert/Alert.spec.tsx index 0c360cb..8aef63a 100644 --- a/styleguide/src/Indicators/Alert/Alert.spec.tsx +++ b/styleguide/src/Indicators/Alert/Alert.spec.tsx @@ -36,7 +36,7 @@ describe(specTitle('Alert tests'), () => { cy.get('.alert').should('have.class', 'bg-danger-light') mount() - cy.get('.alert').should('have.class', 'border-inverted-2') + cy.get('.alert').should('have.class', 'bg-focus-light') mount() cy.get('.alert').should('have.class', 'bg-primary-light')