@loja-integrada/admin-components 0.19.9 → 0.19.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loja-integrada/admin-components",
3
- "version": "0.19.9",
3
+ "version": "0.19.10",
4
4
  "author": "Loja Integrada Front-End Team",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -0,0 +1,12 @@
1
+ import React from 'react'
2
+
3
+ export const MoneyReturn = () => {
4
+ return (
5
+ <path
6
+ fillRule="evenodd"
7
+ clipRule="evenodd"
8
+ 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"
9
+ className="fill-current"
10
+ />
11
+ )
12
+ }
@@ -49,6 +49,7 @@ import { Loading } from './Loading'
49
49
  import { Minus } from './Minus'
50
50
  import { Mobile } from './Mobile'
51
51
  import { MoneyBill } from './MoneyBill'
52
+ import { MoneyReturn } from './MoneyReturn'
52
53
  import { Move } from './Move'
53
54
  import { Nav } from './Nav'
54
55
  import { Order } from './Order'
@@ -145,6 +146,7 @@ export const icons = {
145
146
  minus: Minus,
146
147
  mobile: Mobile,
147
148
  moneyBill: MoneyBill,
149
+ moneyReturn: MoneyReturn,
148
150
  move: Move,
149
151
  nav: Nav,
150
152
  order: Order,
@@ -36,7 +36,7 @@ describe(specTitle('Alert tests'), () => {
36
36
  cy.get('.alert').should('have.class', 'bg-danger-light')
37
37
 
38
38
  mount(<Default type="info" />)
39
- cy.get('.alert').should('have.class', 'border-inverted-2')
39
+ cy.get('.alert').should('have.class', 'bg-focus-light')
40
40
 
41
41
  mount(<Default type="primary" />)
42
42
  cy.get('.alert').should('have.class', 'bg-primary-light')
@@ -1,7 +1,14 @@
1
1
  import React, { useState, useEffect } from 'react'
2
2
  import { Icon, IconProps } from '../../Icons'
3
3
 
4
- type alertTypesOptions = 'success' | 'warning' | 'danger' | 'info' | 'infoOutline' | 'infoDark' | 'primary'
4
+ type alertTypesOptions =
5
+ | 'success'
6
+ | 'warning'
7
+ | 'danger'
8
+ | 'info'
9
+ | 'infoOutline'
10
+ | 'infoDark'
11
+ | 'primary'
5
12
 
6
13
  const alertTypes: Record<
7
14
  alertTypesOptions,
@@ -73,7 +80,9 @@ const AlertComponent = ({
73
80
  if (!alertIsOpen) return null
74
81
  return (
75
82
  <div
76
- 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'}`}
83
+ className={`alert border-l-4 py-4 pl-6 pr-5 rounded w-full relative flex items-start sm:items-center ${
84
+ alertTypes[type].class
85
+ }${hideBorder ? '' : ' border'}`}
77
86
  >
78
87
  {!hideIcon && (
79
88
  <div