Skip to content
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
12 changes: 12 additions & 0 deletions styleguide/src/Icons/icons-path/MoneyReturn.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'

export const MoneyReturn = () => {
return (
<path
fillRule="evenodd"
clipRule="evenodd"
d="M14.0309 4.73429V5.59425H14.8365C14.8637 6.63525 15.7236 7.46805 16.7918 7.48616V13.8317C15.7236 13.8589 14.8637 14.6917 14.8365 15.7236H3.26784C3.24068 14.6826 2.38072 13.8498 1.31257 13.8317V7.48616C2.38072 7.459 3.24068 6.6262 3.26784 5.59425H7.24175V4.32694H1.51171C0.678914 4.32694 0 4.9787 0 5.78434V15.5335C0 16.3392 0.678914 17 1.51171 17H16.6017C17.4345 17 18.1134 16.3482 18.1134 15.5335V5.78434C18.1134 5.36794 17.9324 4.9968 17.6427 4.72524H14.0399L14.0309 4.73429ZM15.8775 2.47125H10.6997L12.0032 0.968584L11.0437 0L8.09265 3.15016L11.0437 5.93823L12.0032 4.96965L10.6997 3.82907H18.1044V2.47125H15.8775ZM6.53568 10.6635C6.53568 12.6097 7.54047 13.5873 9.05218 13.5873C10.5639 13.5873 11.5687 12.6097 11.5687 10.6635C11.5687 8.71725 10.5639 7.73962 9.05218 7.73962C7.54047 7.73962 6.53568 8.71725 6.53568 10.6635Z"
className="fill-current"
/>
)
}
2 changes: 2 additions & 0 deletions styleguide/src/Icons/icons-path/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -145,6 +146,7 @@ export const icons = {
minus: Minus,
mobile: Mobile,
moneyBill: MoneyBill,
moneyReturn: MoneyReturn,
move: Move,
nav: Nav,
order: Order,
Expand Down
2 changes: 1 addition & 1 deletion styleguide/src/Indicators/Alert/Alert.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe(specTitle('Alert tests'), () => {
cy.get('.alert').should('have.class', 'bg-danger-light')

mount(<Default type="info" />)
cy.get('.alert').should('have.class', 'border-inverted-2')
cy.get('.alert').should('have.class', 'bg-focus-light')

mount(<Default type="primary" />)
cy.get('.alert').should('have.class', 'bg-primary-light')
Expand Down
13 changes: 11 additions & 2 deletions styleguide/src/Indicators/Alert/Alert.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -73,7 +80,9 @@ const AlertComponent = ({
if (!alertIsOpen) return null
return (
<div
className={`alert border-l-4 py-4 pl-6 pr-5 rounded w-full relative flex items-start sm:items-center ${alertTypes[type].class}${hideBorder ? '' : ' border'}`}
className={`alert border-l-4 py-4 pl-6 pr-5 rounded w-full relative flex items-start sm:items-center ${
alertTypes[type].class
}${hideBorder ? '' : ' border'}`}
>
{!hideIcon && (
<div
Expand Down
Loading