@loja-integrada/admin-components 0.19.0 → 0.19.2

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.0",
3
+ "version": "0.19.2",
4
4
  "author": "Loja Integrada Front-End Team",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -21,6 +21,9 @@ describe(specTitle('Status tests'), () => {
21
21
  mount(<Default type="success" />)
22
22
  cy.get('.indicator-status').find('.rounded-full').should('have.class', 'bg-success')
23
23
 
24
+ mount(<Default type="successDark" />)
25
+ cy.get('.indicator-status').find('.rounded-full').should('have.class', 'bg-success-dark')
26
+
24
27
  mount(<Default type="warning" />)
25
28
  cy.get('.indicator-status').find('.rounded-full').should('have.class', 'bg-warning')
26
29
 
@@ -36,4 +39,9 @@ describe(specTitle('Status tests'), () => {
36
39
  cy.get('.indicator-status *').first().contains('Aprovado')
37
40
  })
38
41
 
42
+ it('Description', () => {
43
+ mount(<Default description={<strong>Aprovado</strong>} />)
44
+ cy.get('.indicator-status').find('strong').contains('Aprovado')
45
+ })
46
+
39
47
  })
@@ -3,6 +3,7 @@ import React from 'react'
3
3
  const statusTypes = {
4
4
  default: 'bg-inverted-2',
5
5
  success: 'bg-success',
6
+ successDark: 'bg-success-dark',
6
7
  warning: 'bg-warning',
7
8
  danger: 'bg-danger',
8
9
  dangerLight: 'bg-danger-light',
@@ -56,7 +57,7 @@ export interface StatusProps {
56
57
  /**
57
58
  * Status additional text
58
59
  * */
59
- description?: string
60
+ description?: React.ReactNode | string
60
61
  /** Invert icon and text position
61
62
  * @default false
62
63
  * */