vpt-sebraeds 0.0.3 → 0.0.5

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.
@@ -29,7 +29,7 @@ const MenuAccordion = ({
29
29
  marginRight: 20,
30
30
  }}>
31
31
  <Image
32
- source={require('../../assets/Vector.png')}
32
+ source={require('../../../assets/Vector.png')}
33
33
  style={{ width: 32, height: 32, resizeMode: 'contain' }}
34
34
  />
35
35
  </View>
@@ -3,9 +3,6 @@ import { View, Image, StyleSheet } from 'react-native';
3
3
  import PropTypes from 'prop-types';
4
4
  import Icon from '../../Icon';
5
5
 
6
- // Importa a imagem que você adicionou
7
- import editIconImage from '../../../assets/edit-icon.png';
8
-
9
6
  const EditIcon = ({
10
7
  size = 32,
11
8
  source, // Permite passar uma fonte de imagem personalizada
@@ -15,8 +12,8 @@ const EditIcon = ({
15
12
  style,
16
13
  }) => {
17
14
  // Se não tiver uma fonte personalizada, usa a imagem padrão
18
- if (!source && editIconImage) {
19
- source = editIconImage;
15
+ if (!source) {
16
+ source = require('../../../../assets/edit-icon.png');
20
17
  }
21
18
 
22
19
  // Se tiver uma imagem, usa ela
@@ -17,7 +17,7 @@ const MenuAccordion = ({ avatarIcon = 'user-3-line', label = 'Label', items = []
17
17
  <View style={{
18
18
  marginRight: 20,
19
19
  }}>
20
- <Image source={require('../../assets/Vector.png')} style={{ width: 32, height: 32, resizeMode: 'contain' }}/>
20
+ <Image source={require('../../../assets/Vector.png')} style={{ width: 32, height: 32, resizeMode: 'contain' }}/>
21
21
  </View>
22
22
  {/* Label */}
23
23
  <Text style={{
@@ -1 +1 @@
1
- {"version":3,"file":"EditIcon.d.ts","sourceRoot":"","sources":["../../../../components/TaskCard/components/EditIcon.jsx"],"names":[],"mappings":";AAQA;;;;;;;sBAmDC;;;;;;;;;;;kBA3DiB,OAAO"}
1
+ {"version":3,"file":"EditIcon.d.ts","sourceRoot":"","sources":["../../../../components/TaskCard/components/EditIcon.jsx"],"names":[],"mappings":";AAKA;;;;;;;sBAmDC;;;;;;;;;;;kBAxDiB,OAAO"}
@@ -2,13 +2,11 @@ import React from 'react';
2
2
  import { View, Image, StyleSheet } from 'react-native';
3
3
  import PropTypes from 'prop-types';
4
4
  import Icon from '../../Icon';
5
- // Importa a imagem que você adicionou
6
- import editIconImage from '../../../assets/edit-icon.png';
7
5
  const EditIcon = ({ size = 32, source, // Permite passar uma fonte de imagem personalizada
8
6
  backgroundColor = '#4F7CFE', iconColor = '#FFFFFF', borderRadius = 4, style, }) => {
9
7
  // Se não tiver uma fonte personalizada, usa a imagem padrão
10
- if (!source && editIconImage) {
11
- source = editIconImage;
8
+ if (!source) {
9
+ source = require('../../../../assets/edit-icon.png');
12
10
  }
13
11
  // Se tiver uma imagem, usa ela
14
12
  if (source) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vpt-sebraeds",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "Biblioteca de componentes React Native do Sebrae",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",