vpt-sebraeds 0.0.1

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.
Files changed (267) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +73 -0
  3. package/dist/components/Accordion/index.d.ts +9 -0
  4. package/dist/components/Accordion/index.d.ts.map +1 -0
  5. package/dist/components/Accordion/index.js +123 -0
  6. package/dist/components/AccordionAvatar/index.d.ts +8 -0
  7. package/dist/components/AccordionAvatar/index.d.ts.map +1 -0
  8. package/dist/components/AccordionAvatar/index.js +63 -0
  9. package/dist/components/AdBanner/index.d.ts +12 -0
  10. package/dist/components/AdBanner/index.d.ts.map +1 -0
  11. package/dist/components/AdBanner/index.js +65 -0
  12. package/dist/components/Avatar/index.d.ts +9 -0
  13. package/dist/components/Avatar/index.d.ts.map +1 -0
  14. package/dist/components/Avatar/index.js +69 -0
  15. package/dist/components/BottomSheet/BottomSheetNomeEmpresa.d.ts +7 -0
  16. package/dist/components/BottomSheet/BottomSheetNomeEmpresa.d.ts.map +1 -0
  17. package/dist/components/BottomSheet/BottomSheetNomeEmpresa.js +101 -0
  18. package/dist/components/BottomSheet/Components/ActionButtons.d.ts +9 -0
  19. package/dist/components/BottomSheet/Components/ActionButtons.d.ts.map +1 -0
  20. package/dist/components/BottomSheet/Components/ActionButtons.js +73 -0
  21. package/dist/components/BottomSheet/Components/ListaDeEstados.d.ts +9 -0
  22. package/dist/components/BottomSheet/Components/ListaDeEstados.d.ts.map +1 -0
  23. package/dist/components/BottomSheet/Components/ListaDeEstados.js +269 -0
  24. package/dist/components/BottomSheet/index.d.ts +12 -0
  25. package/dist/components/BottomSheet/index.d.ts.map +1 -0
  26. package/dist/components/BottomSheet/index.js +226 -0
  27. package/dist/components/Breadcrumb/index.d.ts +23 -0
  28. package/dist/components/Breadcrumb/index.d.ts.map +1 -0
  29. package/dist/components/Breadcrumb/index.js +59 -0
  30. package/dist/components/Button/index.d.ts +25 -0
  31. package/dist/components/Button/index.d.ts.map +1 -0
  32. package/dist/components/Button/index.js +424 -0
  33. package/dist/components/CardNumber/index.d.ts +37 -0
  34. package/dist/components/CardNumber/index.d.ts.map +1 -0
  35. package/dist/components/CardNumber/index.js +108 -0
  36. package/dist/components/Checkbox/index.d.ts +35 -0
  37. package/dist/components/Checkbox/index.d.ts.map +1 -0
  38. package/dist/components/Checkbox/index.js +93 -0
  39. package/dist/components/CommitmentCard/index.d.ts +27 -0
  40. package/dist/components/CommitmentCard/index.d.ts.map +1 -0
  41. package/dist/components/CommitmentCard/index.js +188 -0
  42. package/dist/components/ContentBlock/ContentBlock.d.ts +12 -0
  43. package/dist/components/ContentBlock/ContentBlock.d.ts.map +1 -0
  44. package/dist/components/ContentBlock/ContentBlock.js +29 -0
  45. package/dist/components/ContentCard/index.d.ts +28 -0
  46. package/dist/components/ContentCard/index.d.ts.map +1 -0
  47. package/dist/components/ContentCard/index.js +192 -0
  48. package/dist/components/ContentRelatedCard/index.d.ts +27 -0
  49. package/dist/components/ContentRelatedCard/index.d.ts.map +1 -0
  50. package/dist/components/ContentRelatedCard/index.js +56 -0
  51. package/dist/components/ContentSlot/index.d.ts +18 -0
  52. package/dist/components/ContentSlot/index.d.ts.map +1 -0
  53. package/dist/components/ContentSlot/index.js +140 -0
  54. package/dist/components/CopyButton/index.d.ts +9 -0
  55. package/dist/components/CopyButton/index.d.ts.map +1 -0
  56. package/dist/components/CopyButton/index.js +159 -0
  57. package/dist/components/Datepicker/MonthSelector.d.ts +4 -0
  58. package/dist/components/Datepicker/MonthSelector.d.ts.map +1 -0
  59. package/dist/components/Datepicker/MonthSelector.js +256 -0
  60. package/dist/components/Datepicker/TimeSelector.d.ts +4 -0
  61. package/dist/components/Datepicker/TimeSelector.d.ts.map +1 -0
  62. package/dist/components/Datepicker/TimeSelector.js +193 -0
  63. package/dist/components/Datepicker/index.d.ts +6 -0
  64. package/dist/components/Datepicker/index.d.ts.map +1 -0
  65. package/dist/components/Datepicker/index.js +387 -0
  66. package/dist/components/DonutChart/index.d.ts +12 -0
  67. package/dist/components/DonutChart/index.d.ts.map +1 -0
  68. package/dist/components/DonutChart/index.js +153 -0
  69. package/dist/components/Dropdown/DropdownCommitments.d.ts +1 -0
  70. package/dist/components/Dropdown/DropdownCommitments.d.ts.map +1 -0
  71. package/dist/components/Dropdown/DropdownCommitments.js +1 -0
  72. package/dist/components/Dropdown/index.d.ts +12 -0
  73. package/dist/components/Dropdown/index.d.ts.map +1 -0
  74. package/dist/components/Dropdown/index.js +287 -0
  75. package/dist/components/DropdownCommitments/index.d.ts +7 -0
  76. package/dist/components/DropdownCommitments/index.d.ts.map +1 -0
  77. package/dist/components/DropdownCommitments/index.js +119 -0
  78. package/dist/components/EmptySlot/index.d.ts +14 -0
  79. package/dist/components/EmptySlot/index.d.ts.map +1 -0
  80. package/dist/components/EmptySlot/index.js +117 -0
  81. package/dist/components/FilterTag/index.d.ts +7 -0
  82. package/dist/components/FilterTag/index.d.ts.map +1 -0
  83. package/dist/components/FilterTag/index.js +59 -0
  84. package/dist/components/FilterableMultiSelect/index.d.ts +11 -0
  85. package/dist/components/FilterableMultiSelect/index.d.ts.map +1 -0
  86. package/dist/components/FilterableMultiSelect/index.js +136 -0
  87. package/dist/components/GettingStarted.d.ts +13 -0
  88. package/dist/components/GettingStarted.d.ts.map +1 -0
  89. package/dist/components/GettingStarted.js +25 -0
  90. package/dist/components/Header/components/Context.d.ts +8 -0
  91. package/dist/components/Header/components/Context.d.ts.map +1 -0
  92. package/dist/components/Header/components/Context.js +30 -0
  93. package/dist/components/Header/components/Information.d.ts +7 -0
  94. package/dist/components/Header/components/Information.d.ts.map +1 -0
  95. package/dist/components/Header/components/Information.js +54 -0
  96. package/dist/components/Header/components/Shortcut.d.ts +6 -0
  97. package/dist/components/Header/components/Shortcut.d.ts.map +1 -0
  98. package/dist/components/Header/components/Shortcut.js +24 -0
  99. package/dist/components/Header/components/SwitchAccount.d.ts +8 -0
  100. package/dist/components/Header/components/SwitchAccount.d.ts.map +1 -0
  101. package/dist/components/Header/components/SwitchAccount.js +203 -0
  102. package/dist/components/Header/components/Variants.d.ts +10 -0
  103. package/dist/components/Header/components/Variants.d.ts.map +1 -0
  104. package/dist/components/Header/components/Variants.js +129 -0
  105. package/dist/components/Header/components/index.d.ts +21 -0
  106. package/dist/components/Header/components/index.d.ts.map +1 -0
  107. package/dist/components/Header/components/index.js +10 -0
  108. package/dist/components/Header/index.d.ts +35 -0
  109. package/dist/components/Header/index.d.ts.map +1 -0
  110. package/dist/components/Header/index.js +179 -0
  111. package/dist/components/Icon/iconEnums.d.ts +3 -0
  112. package/dist/components/Icon/iconEnums.d.ts.map +1 -0
  113. package/dist/components/Icon/iconEnums.js +27 -0
  114. package/dist/components/Icon/index.d.ts +9 -0
  115. package/dist/components/Icon/index.d.ts.map +1 -0
  116. package/dist/components/Icon/index.js +5 -0
  117. package/dist/components/Image/index.d.ts +11 -0
  118. package/dist/components/Image/index.d.ts.map +1 -0
  119. package/dist/components/Image/index.js +128 -0
  120. package/dist/components/Input/index.d.ts +15 -0
  121. package/dist/components/Input/index.d.ts.map +1 -0
  122. package/dist/components/Input/index.js +263 -0
  123. package/dist/components/Legend/index.d.ts +12 -0
  124. package/dist/components/Legend/index.d.ts.map +1 -0
  125. package/dist/components/Legend/index.js +68 -0
  126. package/dist/components/Link/index.d.ts +8 -0
  127. package/dist/components/Link/index.d.ts.map +1 -0
  128. package/dist/components/Link/index.js +48 -0
  129. package/dist/components/List/index.d.ts +7 -0
  130. package/dist/components/List/index.d.ts.map +1 -0
  131. package/dist/components/List/index.js +50 -0
  132. package/dist/components/MenuAccordion/index.d.ts +8 -0
  133. package/dist/components/MenuAccordion/index.d.ts.map +1 -0
  134. package/dist/components/MenuAccordion/index.js +64 -0
  135. package/dist/components/Modal/index.d.ts +15 -0
  136. package/dist/components/Modal/index.d.ts.map +1 -0
  137. package/dist/components/Modal/index.js +195 -0
  138. package/dist/components/Navbar/index.d.ts +8 -0
  139. package/dist/components/Navbar/index.d.ts.map +1 -0
  140. package/dist/components/Navbar/index.js +101 -0
  141. package/dist/components/NavigationItem/index.d.ts +22 -0
  142. package/dist/components/NavigationItem/index.d.ts.map +1 -0
  143. package/dist/components/NavigationItem/index.js +410 -0
  144. package/dist/components/NotificationBanner/index.d.ts +12 -0
  145. package/dist/components/NotificationBanner/index.d.ts.map +1 -0
  146. package/dist/components/NotificationBanner/index.js +129 -0
  147. package/dist/components/NotificationCard/index.d.ts +16 -0
  148. package/dist/components/NotificationCard/index.d.ts.map +1 -0
  149. package/dist/components/NotificationCard/index.js +271 -0
  150. package/dist/components/NumberDisplay/index.d.ts +13 -0
  151. package/dist/components/NumberDisplay/index.d.ts.map +1 -0
  152. package/dist/components/NumberDisplay/index.js +227 -0
  153. package/dist/components/Pagination/index.d.ts +39 -0
  154. package/dist/components/Pagination/index.d.ts.map +1 -0
  155. package/dist/components/Pagination/index.js +179 -0
  156. package/dist/components/ProgressBar/ProgressBarSimple.d.ts +1 -0
  157. package/dist/components/ProgressBar/ProgressBarSimple.d.ts.map +1 -0
  158. package/dist/components/ProgressBar/ProgressBarSimple.js +1 -0
  159. package/dist/components/ProgressBar/index.d.ts +13 -0
  160. package/dist/components/ProgressBar/index.d.ts.map +1 -0
  161. package/dist/components/ProgressBar/index.js +67 -0
  162. package/dist/components/ProgressChart/index.d.ts +18 -0
  163. package/dist/components/ProgressChart/index.d.ts.map +1 -0
  164. package/dist/components/ProgressChart/index.js +147 -0
  165. package/dist/components/Quote/Quote.d.ts +8 -0
  166. package/dist/components/Quote/Quote.d.ts.map +1 -0
  167. package/dist/components/Quote/Quote.js +51 -0
  168. package/dist/components/RadioButton/index.d.ts +27 -0
  169. package/dist/components/RadioButton/index.d.ts.map +1 -0
  170. package/dist/components/RadioButton/index.js +88 -0
  171. package/dist/components/Rating/index.d.ts +12 -0
  172. package/dist/components/Rating/index.d.ts.map +1 -0
  173. package/dist/components/Rating/index.js +116 -0
  174. package/dist/components/ScrollBar/index.d.ts +12 -0
  175. package/dist/components/ScrollBar/index.d.ts.map +1 -0
  176. package/dist/components/ScrollBar/index.js +77 -0
  177. package/dist/components/Search/Search.d.ts +15 -0
  178. package/dist/components/Search/Search.d.ts.map +1 -0
  179. package/dist/components/Search/Search.js +272 -0
  180. package/dist/components/SegmentedButton/index.d.ts +9 -0
  181. package/dist/components/SegmentedButton/index.d.ts.map +1 -0
  182. package/dist/components/SegmentedButton/index.js +153 -0
  183. package/dist/components/Select/index.d.ts +15 -0
  184. package/dist/components/Select/index.d.ts.map +1 -0
  185. package/dist/components/Select/index.js +274 -0
  186. package/dist/components/SelectItem/index.d.ts +12 -0
  187. package/dist/components/SelectItem/index.d.ts.map +1 -0
  188. package/dist/components/SelectItem/index.js +142 -0
  189. package/dist/components/Shortcut/index.d.ts +12 -0
  190. package/dist/components/Shortcut/index.d.ts.map +1 -0
  191. package/dist/components/Shortcut/index.js +159 -0
  192. package/dist/components/ShowMore/index.d.ts +8 -0
  193. package/dist/components/ShowMore/index.d.ts.map +1 -0
  194. package/dist/components/ShowMore/index.js +52 -0
  195. package/dist/components/ShuffleItem/ShuffleItemExample.d.ts +1 -0
  196. package/dist/components/ShuffleItem/ShuffleItemExample.d.ts.map +1 -0
  197. package/dist/components/ShuffleItem/ShuffleItemExample.js +1 -0
  198. package/dist/components/ShuffleItem/SimpleShuffleExample.d.ts +1 -0
  199. package/dist/components/ShuffleItem/SimpleShuffleExample.d.ts.map +1 -0
  200. package/dist/components/ShuffleItem/SimpleShuffleExample.js +1 -0
  201. package/dist/components/ShuffleItem/index.d.ts +30 -0
  202. package/dist/components/ShuffleItem/index.d.ts.map +1 -0
  203. package/dist/components/ShuffleItem/index.js +541 -0
  204. package/dist/components/Slider/index.d.ts +10 -0
  205. package/dist/components/Slider/index.d.ts.map +1 -0
  206. package/dist/components/Slider/index.js +164 -0
  207. package/dist/components/Tab/index.d.ts +54 -0
  208. package/dist/components/Tab/index.d.ts.map +1 -0
  209. package/dist/components/Tab/index.js +362 -0
  210. package/dist/components/Table/index.d.ts +11 -0
  211. package/dist/components/Table/index.d.ts.map +1 -0
  212. package/dist/components/Table/index.js +242 -0
  213. package/dist/components/Tag/index.d.ts +10 -0
  214. package/dist/components/Tag/index.d.ts.map +1 -0
  215. package/dist/components/Tag/index.js +116 -0
  216. package/dist/components/TaskCard/assets/example.d.ts +3 -0
  217. package/dist/components/TaskCard/assets/example.d.ts.map +1 -0
  218. package/dist/components/TaskCard/assets/example.js +8 -0
  219. package/dist/components/TaskCard/components/EditIcon.d.ts +21 -0
  220. package/dist/components/TaskCard/components/EditIcon.d.ts.map +1 -0
  221. package/dist/components/TaskCard/components/EditIcon.js +54 -0
  222. package/dist/components/TaskCard/components/SuccessContent.d.ts +25 -0
  223. package/dist/components/TaskCard/components/SuccessContent.d.ts.map +1 -0
  224. package/dist/components/TaskCard/components/SuccessContent.js +28 -0
  225. package/dist/components/TaskCard/components/SuccessIcon.d.ts +21 -0
  226. package/dist/components/TaskCard/components/SuccessIcon.d.ts.map +1 -0
  227. package/dist/components/TaskCard/components/SuccessIcon.js +33 -0
  228. package/dist/components/TaskCard/components/SuccessTitle.d.ts +21 -0
  229. package/dist/components/TaskCard/components/SuccessTitle.d.ts.map +1 -0
  230. package/dist/components/TaskCard/components/SuccessTitle.js +33 -0
  231. package/dist/components/TaskCard/components/Tag.d.ts +19 -0
  232. package/dist/components/TaskCard/components/Tag.d.ts.map +1 -0
  233. package/dist/components/TaskCard/components/Tag.js +62 -0
  234. package/dist/components/TaskCard/components/TagGroup.d.ts +15 -0
  235. package/dist/components/TaskCard/components/TagGroup.d.ts.map +1 -0
  236. package/dist/components/TaskCard/components/TagGroup.js +38 -0
  237. package/dist/components/TaskCard/components/TaskDescription.d.ts +23 -0
  238. package/dist/components/TaskCard/components/TaskDescription.d.ts.map +1 -0
  239. package/dist/components/TaskCard/components/TaskDescription.js +34 -0
  240. package/dist/components/TaskCard/components/index.d.ts +8 -0
  241. package/dist/components/TaskCard/components/index.d.ts.map +1 -0
  242. package/dist/components/TaskCard/components/index.js +7 -0
  243. package/dist/components/TaskCard/index.d.ts +61 -0
  244. package/dist/components/TaskCard/index.d.ts.map +1 -0
  245. package/dist/components/TaskCard/index.js +211 -0
  246. package/dist/components/Toast/index.d.ts +15 -0
  247. package/dist/components/Toast/index.d.ts.map +1 -0
  248. package/dist/components/Toast/index.js +257 -0
  249. package/dist/components/Toggle/index.d.ts +11 -0
  250. package/dist/components/Toggle/index.d.ts.map +1 -0
  251. package/dist/components/Toggle/index.js +116 -0
  252. package/dist/components/TooltipCard/index.d.ts +12 -0
  253. package/dist/components/TooltipCard/index.d.ts.map +1 -0
  254. package/dist/components/TooltipCard/index.js +263 -0
  255. package/dist/components/Typography/index.d.ts +15 -0
  256. package/dist/components/Typography/index.d.ts.map +1 -0
  257. package/dist/components/Typography/index.js +115 -0
  258. package/dist/components/styles.d.ts +78 -0
  259. package/dist/components/styles.d.ts.map +1 -0
  260. package/dist/components/styles.js +78 -0
  261. package/dist/src/index.d.ts +60 -0
  262. package/dist/src/index.d.ts.map +1 -0
  263. package/dist/src/index.js +77 -0
  264. package/dist/styles/useFocus.d.ts +12 -0
  265. package/dist/styles/useFocus.d.ts.map +1 -0
  266. package/dist/styles/useFocus.js +22 -0
  267. package/package.json +121 -0
@@ -0,0 +1,203 @@
1
+ import React, { useState, useEffect } from "react";
2
+ import { Modal, StyleSheet, TouchableOpacity, View, Text, FlatList } from "react-native";
3
+ import Icon from "../../Icon";
4
+ import { useHeader } from "./Context";
5
+ import Button from "../../Button";
6
+ const ACCOUNTS = [
7
+ // {
8
+ // id: 1,
9
+ // name: "Empresa A",
10
+ // type: "ME - Microempresa"
11
+ // },
12
+ // {
13
+ // id: 2,
14
+ // name: "Empresa B",
15
+ // type: "ME - Microempresa"
16
+ // }
17
+ ];
18
+ function SwitchAccount({ accounts = ACCOUNTS, forceAddEnterprise = false, maxDisplayItems = 5 }) {
19
+ const [visible, setVisible] = useState(false);
20
+ const [selectedEnterprise, setSelectedEnterprise] = useState(null);
21
+ const { headerOptions } = useHeader();
22
+ // Garantir que accounts seja um array e não seja nulo/undefined
23
+ const safeAccounts = Array.isArray(accounts) ? accounts : [];
24
+ // Sempre mostrar todas as empresas no dropdown (sem limitação)
25
+ // O scroll será habilitado automaticamente pelo FlatList quando necessário
26
+ const displayAccounts = safeAccounts;
27
+ // Verificar se realmente temos empresas
28
+ const hasAccounts = safeAccounts.length > 0;
29
+ // Verificar se precisa de scroll (mais de 5 empresas)
30
+ const needsScroll = safeAccounts.length > maxDisplayItems;
31
+ // Inicializar a empresa selecionada
32
+ useEffect(() => {
33
+ if (displayAccounts.length > 0 && !selectedEnterprise) {
34
+ setSelectedEnterprise(displayAccounts[0]);
35
+ }
36
+ }, [displayAccounts]);
37
+ // Log para depuração (você pode remover depois)
38
+ const toggleModal = () => setVisible(!visible);
39
+ const handleSelectEnterprise = (enterprise) => {
40
+ setSelectedEnterprise(enterprise);
41
+ toggleModal();
42
+ };
43
+ const AccontsList = ({ item, isFirst = false }) => {
44
+ const isSelected = selectedEnterprise?.id === item.id;
45
+ return (<View style={[
46
+ styles.dropdownItem,
47
+ isSelected && styles.selectedDropdownItem,
48
+ isFirst && styles.firstDropdownItem
49
+ ]}>
50
+ <View style={styles.dropdownItemTextContainer}>
51
+ <Text style={styles.dropdownItemTitle} numberOfLines={1} ellipsizeMode="tail">{item.name}</Text>
52
+ <Text style={styles.dropdownItemSubtitle} numberOfLines={1} ellipsizeMode="tail">{item.type}</Text>
53
+ </View>
54
+ <View style={styles.dropdownItemIcons}>
55
+ {isSelected && (<Icon name="check-line" size={18} color="#fff" style={styles.checkIcon}/>)}
56
+ <TouchableOpacity onPress={() => {
57
+ headerOptions.onClickEnterpriseMoreOptions(item);
58
+ }} style={styles.moreIconButton}>
59
+ <Icon name="more-2-line" size={20} color="#fff"/>
60
+ </TouchableOpacity>
61
+ </View>
62
+ </View>);
63
+ }; // Se forceAddEnterprise é true ou não há accounts, mostrar o botão "Adicionar empresa"
64
+ if (forceAddEnterprise === true || !hasAccounts) {
65
+ return (<TouchableOpacity onPress={() => {
66
+ headerOptions.onClickAddEnterprise();
67
+ }} style={styles.switchAccountAdd}>
68
+ <Icon name="add-circle-line" size={20} color="#fff"/>
69
+ <Text style={{ color: "#fff" }}>
70
+ Adicionar empresa
71
+ </Text>
72
+ </TouchableOpacity>);
73
+ }
74
+ // Caso contrário, mostrar o dropdown de empresas
75
+ return (<View style={styles.switchAccount}>
76
+ <TouchableOpacity onPress={toggleModal} style={styles.switchAccountButton}>
77
+ <Text style={{ color: "#fff", flex: 1 }} ellipsizeMode="tail" numberOfLines={1}>
78
+ {selectedEnterprise ? selectedEnterprise.name : "Empresa"}
79
+ </Text>
80
+
81
+ <Icon name={visible ? "arrow-up-s-line" : "arrow-down-s-line"} size={20} color="#fff"/>
82
+ </TouchableOpacity>
83
+
84
+ <Modal visible={visible} onRequestClose={toggleModal} transparent={true} animationType="fade">
85
+ <TouchableOpacity style={{
86
+ flex: 1,
87
+ backgroundColor: 'rgba(0, 0, 0, 0.5)'
88
+ }} activeOpacity={1} onPress={toggleModal}>
89
+ <TouchableOpacity activeOpacity={1} onPress={() => { }} style={styles.switchAccountContent}>
90
+ <FlatList data={displayAccounts} renderItem={({ item, index }) => (<TouchableOpacity onPress={() => handleSelectEnterprise(item)}>
91
+ <AccontsList item={item} isFirst={index === 0}/>
92
+ </TouchableOpacity>)} keyExtractor={(item) => item.id.toString()} showsVerticalScrollIndicator={needsScroll} // Mostrar indicador de scroll apenas se necessário
93
+ bounces={true} // Habilitar bounce para melhor UX
94
+ scrollEnabled={needsScroll} // Habilitar scroll apenas se necessário
95
+ style={needsScroll ? styles.scrollableList : styles.nonScrollableList} contentContainerStyle={needsScroll ? styles.scrollableContent : undefined}/>
96
+
97
+ <View style={{ backgroundColor: "#001A7C", height: 1 }}/>
98
+
99
+ <TouchableOpacity onPress={() => {
100
+ headerOptions.onClickAddEnterprise();
101
+ toggleModal();
102
+ }} style={[styles.switchAccountAdd, { paddingHorizontal: 20, paddingVertical: 16 }]}>
103
+ <Icon name="add-circle-line" size={20} color="#fff"/>
104
+ <Text style={{ color: "#fff" }}>
105
+ Adicionar empresa
106
+ </Text>
107
+ </TouchableOpacity>
108
+ </TouchableOpacity>
109
+ </TouchableOpacity>
110
+ </Modal>
111
+ </View>);
112
+ }
113
+ const styles = StyleSheet.create({
114
+ switchAccount: {
115
+ position: "relative",
116
+ paddingRight: 8
117
+ },
118
+ switchAccountButton: {
119
+ backgroundColor: "#1D2F71",
120
+ borderRadius: 8,
121
+ color: "#fff",
122
+ flexDirection: "row",
123
+ justifyContent: "space-between",
124
+ paddingHorizontal: 12,
125
+ paddingVertical: 16,
126
+ zIndex: 10000
127
+ },
128
+ switchAccountContent: {
129
+ backgroundColor: "#1D2F71",
130
+ borderRadius: 8,
131
+ border: 'none',
132
+ top: '11%',
133
+ left: 0,
134
+ borderRadius: 10,
135
+ borderWidth: 1,
136
+ borderColor: "#001852",
137
+ marginHorizontal: '7%',
138
+ zIndex: 30000,
139
+ maxHeight: '75%', // Limitar altura máxima para permitir scroll
140
+ },
141
+ scrollableList: {
142
+ maxHeight: 300, // Altura máxima para ~5 itens (60px por item aproximadamente)
143
+ },
144
+ nonScrollableList: {
145
+ // Sem limitação de altura quando não há scroll
146
+ },
147
+ scrollableContent: {
148
+ flexGrow: 1,
149
+ },
150
+ switchAccountAdd: {
151
+ paddingVertical: 16,
152
+ paddingHorizontal: 0,
153
+ flexDirection: 'row',
154
+ alignItems: 'center',
155
+ justifyContent: 'flex-start',
156
+ color: '#fff',
157
+ gap: 8,
158
+ borderRadius: 8
159
+ },
160
+ dropdownItem: {
161
+ alignItems: "center",
162
+ flexDirection: "row",
163
+ justifyContent: "space-between",
164
+ paddingHorizontal: 20,
165
+ paddingVertical: 12,
166
+ },
167
+ dropdownItemTextContainer: {
168
+ flex: 1,
169
+ marginRight: 12,
170
+ },
171
+ dropdownItemIcons: {
172
+ flexDirection: 'row',
173
+ alignItems: 'center',
174
+ justifyContent: 'flex-end',
175
+ minWidth: 60,
176
+ },
177
+ checkIcon: {
178
+ marginRight: 8,
179
+ },
180
+ moreIconButton: {
181
+ padding: 4,
182
+ marginLeft: 4,
183
+ },
184
+ dropdownItemTitle: {
185
+ color: "#fff",
186
+ fontWeight: "600",
187
+ fontSize: 16,
188
+ fontFamily: 'Nunito Sans',
189
+ },
190
+ dropdownItemSubtitle: {
191
+ color: "#ccc",
192
+ fontSize: 14,
193
+ fontFamily: 'Nunito Sans',
194
+ },
195
+ selectedDropdownItem: {
196
+ backgroundColor: "#2A4FDA",
197
+ },
198
+ firstDropdownItem: {
199
+ borderTopLeftRadius: 10,
200
+ borderTopRightRadius: 10,
201
+ }
202
+ });
203
+ export default SwitchAccount;
@@ -0,0 +1,10 @@
1
+ export function Default({ showSwitchAccount, showShortcut }: {
2
+ showSwitchAccount?: boolean | undefined;
3
+ showShortcut?: boolean | undefined;
4
+ }): import("react").JSX.Element;
5
+ export function Navigation({ pageTitle }: {
6
+ pageTitle: any;
7
+ }): import("react").JSX.Element;
8
+ export function User(): import("react").JSX.Element;
9
+ export function AddEnterpriseWithIcons(): import("react").JSX.Element;
10
+ //# sourceMappingURL=Variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Variants.d.ts","sourceRoot":"","sources":["../../../../components/Header/components/Variants.jsx"],"names":[],"mappings":"AAQA;;;gCAyBC;AAED;;gCAmBC;AACD,oDAoBC;AAED,sEAqCC"}
@@ -0,0 +1,129 @@
1
+ import { useHeader } from "./Context";
2
+ import Header from '.';
3
+ import { View, Text, StyleSheet, TouchableOpacity } from "react-native";
4
+ import { useEffect } from "react";
5
+ import Button from "../../Button";
6
+ import Avatar from "../../Avatar";
7
+ import Icon from "../../Icon";
8
+ export function Default({ showSwitchAccount = true, showShortcut = true }) {
9
+ const headerOpt = useHeader();
10
+ const { user, shortcuts } = headerOpt;
11
+ return (<View style={styles['default'].container}>
12
+ {showSwitchAccount && (<Header.Information enterprisesList={user?.enterprises} status={user?.status}/>)}
13
+
14
+ {showShortcut && (<View>
15
+ <View style={styles['default'].wrapper}>
16
+ <Text style={styles['default'].subtitle}>Olá, {user?.name}!</Text>
17
+ <Text style={styles['default'].title}>O que você precisa?</Text>
18
+ </View>
19
+
20
+ <Header.Shortcut shortcutsList={shortcuts || []}/>
21
+ </View>)}
22
+ </View>);
23
+ }
24
+ export function Navigation({ pageTitle }) {
25
+ const { onClickGoBack, onClickSettings } = useHeader();
26
+ return (<View style={styles['navigation'].container}>
27
+ <Button onPress={onClickGoBack} iconName="arrow-left-s-line" iconColor="#fff"/>
28
+ <Text style={styles['navigation'].title}>{pageTitle}</Text>
29
+ <Button onPress={onClickSettings} iconName="equalizer-line" iconColor="#fff" variant="transparent"/>
30
+ </View>);
31
+ }
32
+ export function User() {
33
+ const { user, onClickProfile } = useHeader();
34
+ return (<View style={styles['user'].container}>
35
+ <Avatar onPress={onClickProfile} name={user.name}/>
36
+ <Text style={styles['user'].title}>{user.name}</Text>
37
+ <View style={styles['user'].badge}>
38
+ <Icon name="star-fill" size={16} color="#fff"/>
39
+ <Text style={styles['user'].badgeLabel}>0</Text>
40
+ </View>
41
+ </View>);
42
+ }
43
+ export function AddEnterpriseWithIcons() {
44
+ const { headerOptions } = useHeader();
45
+ return (<View style={{
46
+ flexDirection: 'row',
47
+ alignItems: 'center',
48
+ justifyContent: 'space-between',
49
+ backgroundColor: '#001152',
50
+ paddingHorizontal: 20,
51
+ paddingVertical: 16,
52
+ width: '100%'
53
+ }}>
54
+ <TouchableOpacity onPress={headerOptions.onClickAddEnterprise} style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
55
+ <Icon name="add-circle-line" size={20} color="#fff"/>
56
+ <Text style={{ color: '#fff', fontSize: 16, fontWeight: '600', fontFamily: 'Nunito Sans' }}>Adicionar empresa</Text>
57
+ </TouchableOpacity>
58
+ <View style={{ flexDirection: 'row', gap: 24 }}>
59
+ <Button variant='transparent' iconColor="#ffffff" iconName="chat-3-line" size="large" onPress={headerOptions.onClickMessage}/>
60
+ <Button variant='transparent' iconColor="#ffffff" iconName="notification-2-line" size="large" onPress={headerOptions.onClickNotification}/>
61
+ </View>
62
+ </View>);
63
+ }
64
+ const styles = {
65
+ default: StyleSheet.create({
66
+ container: {
67
+ gap: 40,
68
+ },
69
+ wrapper: {
70
+ paddingHorizontal: 20
71
+ },
72
+ title: {
73
+ fontSize: 24,
74
+ fontWeight: 'bold',
75
+ color: "#fff",
76
+ fontFamily: 'Nunito Sans',
77
+ },
78
+ subtitle: {
79
+ fontSize: 16,
80
+ color: "#fff",
81
+ fontFamily: 'Nunito Sans',
82
+ },
83
+ }),
84
+ navigation: StyleSheet.create({
85
+ container: {
86
+ paddingHorizontal: 20,
87
+ flexDirection: 'row',
88
+ alignItems: 'center',
89
+ },
90
+ title: {
91
+ fontSize: 18,
92
+ fontWeight: 'bold',
93
+ color: "#fff",
94
+ flexGrow: 1,
95
+ textAlign: 'center',
96
+ fontFamily: 'Nunito Sans',
97
+ },
98
+ }),
99
+ user: StyleSheet.create({
100
+ container: {
101
+ paddingHorizontal: 20,
102
+ flexDirection: 'row',
103
+ alignItems: 'center',
104
+ },
105
+ title: {
106
+ fontSize: 18,
107
+ fontWeight: 'bold',
108
+ color: "#fff",
109
+ flexGrow: 1,
110
+ paddingHorizontal: 16,
111
+ fontFamily: 'Nunito Sans',
112
+ },
113
+ badge: {
114
+ flexDirection: 'row',
115
+ backgroundColor: '#2A4FDA',
116
+ borderRadius: 8,
117
+ paddingHorizontal: 8,
118
+ paddingVertical: 4,
119
+ gap: 2,
120
+ alignItems: 'center',
121
+ },
122
+ badgeLabel: {
123
+ color: '#fff',
124
+ fontSize: 14,
125
+ fontWeight: 'bold',
126
+ fontFamily: 'Nunito Sans',
127
+ },
128
+ }),
129
+ };
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ Default({ showSwitchAccount, showShortcut }: {
3
+ showSwitchAccount?: boolean | undefined;
4
+ showShortcut?: boolean | undefined;
5
+ }): import("react").JSX.Element;
6
+ Navigation({ pageTitle }: {
7
+ pageTitle: any;
8
+ }): import("react").JSX.Element;
9
+ User(): import("react").JSX.Element;
10
+ AddEnterpriseWithIcons(): import("react").JSX.Element;
11
+ Context: import("react").ForwardRefExoticComponent<{
12
+ children: any;
13
+ ctxInfo: any;
14
+ } & import("react").RefAttributes<any>>;
15
+ Information: typeof Information;
16
+ Shortcut: typeof Shortcut;
17
+ };
18
+ export default _default;
19
+ import Information from './Information';
20
+ import Shortcut from './Shortcut';
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/Header/components/index.jsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;wBACwB,eAAe;qBAClB,YAAY"}
@@ -0,0 +1,10 @@
1
+ import Context from './Context';
2
+ import Information from './Information';
3
+ import Shortcut from './Shortcut';
4
+ import * as variants from './Variants';
5
+ export default {
6
+ Context,
7
+ Information,
8
+ Shortcut,
9
+ ...variants
10
+ };
@@ -0,0 +1,35 @@
1
+ export default HeaderComponent;
2
+ /**
3
+ * Componente de cabeçalho que utiliza `forwardRef` para expor propriedades e métodos para componentes pai.
4
+ *
5
+ * @param {Object} props - Propriedades do componente.
6
+ * @param {Object} [props.shortcutOptions] - Configurações dos atalhos.
7
+ * @param {boolean} [props.shortcutOptions.showShortcut=true] - Define se os atalhos devem ser exibidos.
8
+ * @param {Array<Object>} [props.shortcutOptions.shortcuts=[]] - Lista de atalhos a serem exibidos no cabeçalho.
9
+ * @param {number|string} props.shortcutOptions.shortcuts[].id - ID único do atalho.
10
+ * @param {string} props.shortcutOptions.shortcuts[].title - Título do atalho.
11
+ * @param {string} props.shortcutOptions.shortcuts[].icon - Ícone do atalho.
12
+ * @param {Object} [props.userOptions] - Configurações do usuário.
13
+ * @param {boolean} [props.userOptions.showSwitchAccount=true] - Define se a opção de trocar conta deve ser exibida.
14
+ * @param {Object} props.userOptions.user - Informações do usuário atual.
15
+ * @param {Array<Object>} props.userOptions.user.enterprises - Lista de empresas associadas ao usuário.
16
+ * @param {number} props.userOptions.user.enterprises[].id - ID único da empresa.
17
+ * @param {string} props.userOptions.user.enterprises[].name - Nome da empresa.
18
+ * @param {string} props.userOptions.user.enterprises[].type - Tipo da empresa (ex: "ME - Microempresa").
19
+ * @param {string} props.userOptions.user.status - Status atual do usuário.
20
+ * @param {string} props.userOptions.user.name - Nome do usuário.
21
+ * @param {Object} [props.headerOptions] - Opções adicionais para o cabeçalho.
22
+ * @param {Function} [props.headerOptions.onClickMessage] - Callback executado ao clicar no botão de mensagens.
23
+ * @param {Function} [props.headerOptions.onClickNotification] - Callback executado ao clicar no botão de notificações.
24
+ * @param {Function} [props.headerOptions.onClickEnterpriseMoreOptions] - Callback executado ao clicar no botão de mais opções das empresas.
25
+ * @param {Function} [props.headerOptions.onClickAddEnterprise] - Callback executado ao clicar no botão de adicionar empresa.
26
+ * @param {React.Ref} ref - Referência para acessar métodos e propriedades do componente.
27
+ * @param {Object} ref.current.selectedEnterprise - Empresa atualmente selecionada.
28
+ * @param {Function} ref.current.setSelectedEnterprise - Função para definir a empresa selecionada.
29
+ * @param {Function} ref.current.updateHeaderOptions - Função para atualizar as opções do cabeçalho.
30
+ *
31
+ * @returns {JSX.Element} Componente de cabeçalho renderizado.
32
+ */
33
+ declare const HeaderComponent: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
34
+ import React from 'react';
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Header/index.jsx"],"names":[],"mappings":";AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,yFA0FG;kBA/H0F,OAAO"}
@@ -0,0 +1,179 @@
1
+ import React, { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
2
+ import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
3
+ import { StyleSheet, Text, View, StatusBar } from 'react-native';
4
+ import PropTypes from 'prop-types';
5
+ import Header from './components';
6
+ /**
7
+ * Componente de cabeçalho que utiliza `forwardRef` para expor propriedades e métodos para componentes pai.
8
+ *
9
+ * @param {Object} props - Propriedades do componente.
10
+ * @param {Object} [props.shortcutOptions] - Configurações dos atalhos.
11
+ * @param {boolean} [props.shortcutOptions.showShortcut=true] - Define se os atalhos devem ser exibidos.
12
+ * @param {Array<Object>} [props.shortcutOptions.shortcuts=[]] - Lista de atalhos a serem exibidos no cabeçalho.
13
+ * @param {number|string} props.shortcutOptions.shortcuts[].id - ID único do atalho.
14
+ * @param {string} props.shortcutOptions.shortcuts[].title - Título do atalho.
15
+ * @param {string} props.shortcutOptions.shortcuts[].icon - Ícone do atalho.
16
+ * @param {Object} [props.userOptions] - Configurações do usuário.
17
+ * @param {boolean} [props.userOptions.showSwitchAccount=true] - Define se a opção de trocar conta deve ser exibida.
18
+ * @param {Object} props.userOptions.user - Informações do usuário atual.
19
+ * @param {Array<Object>} props.userOptions.user.enterprises - Lista de empresas associadas ao usuário.
20
+ * @param {number} props.userOptions.user.enterprises[].id - ID único da empresa.
21
+ * @param {string} props.userOptions.user.enterprises[].name - Nome da empresa.
22
+ * @param {string} props.userOptions.user.enterprises[].type - Tipo da empresa (ex: "ME - Microempresa").
23
+ * @param {string} props.userOptions.user.status - Status atual do usuário.
24
+ * @param {string} props.userOptions.user.name - Nome do usuário.
25
+ * @param {Object} [props.headerOptions] - Opções adicionais para o cabeçalho.
26
+ * @param {Function} [props.headerOptions.onClickMessage] - Callback executado ao clicar no botão de mensagens.
27
+ * @param {Function} [props.headerOptions.onClickNotification] - Callback executado ao clicar no botão de notificações.
28
+ * @param {Function} [props.headerOptions.onClickEnterpriseMoreOptions] - Callback executado ao clicar no botão de mais opções das empresas.
29
+ * @param {Function} [props.headerOptions.onClickAddEnterprise] - Callback executado ao clicar no botão de adicionar empresa.
30
+ * @param {React.Ref} ref - Referência para acessar métodos e propriedades do componente.
31
+ * @param {Object} ref.current.selectedEnterprise - Empresa atualmente selecionada.
32
+ * @param {Function} ref.current.setSelectedEnterprise - Função para definir a empresa selecionada.
33
+ * @param {Function} ref.current.updateHeaderOptions - Função para atualizar as opções do cabeçalho.
34
+ *
35
+ * @returns {JSX.Element} Componente de cabeçalho renderizado.
36
+ */
37
+ const HeaderComponent = forwardRef(({ variant = 'default', pageTitle = '', shortcutOptions = {
38
+ showShortcut: true,
39
+ shortcuts: [],
40
+ }, userOptions = {
41
+ showSwitchAccount: true,
42
+ user: {
43
+ enterprises: [],
44
+ status: {
45
+ hasMessage: false,
46
+ hasNotification: false,
47
+ },
48
+ name: '...',
49
+ }
50
+ }, headerOptions = {
51
+ onClickMessage: () => { console.warn('No action defined for onClickMessage'); },
52
+ onClickNotification: () => { console.warn('No action defined for onClickNotification'); },
53
+ onClickEnterpriseMoreOptions: () => { console.warn('No action defined for onClickEnterpriseMoreOptions'); },
54
+ onClickAddEnterprise: () => { console.warn('No action defined for onClickAddEnterprise'); },
55
+ onClickGoBack: () => { console.warn('No action defined for onPressGoBack'); },
56
+ onClickProfile: () => { console.warn('No action defined for onClickProfile'); },
57
+ onClickSettings: () => { console.warn('No action defined for onClickSettings'); },
58
+ } }, ref) => {
59
+ const [headerOpt, setHeaderOpt] = useState({});
60
+ const ctxRef = useRef();
61
+ useImperativeHandle(ref, () => ({
62
+ selectedEnterprise: headerOpt?.current?.selectedEnterprise || {},
63
+ setSelectedEnterprise: headerOpt?.current?.setSelectedEnterprise || (() => { }),
64
+ updateHeaderOptions: (newOptions) => setHeaderOpt(prev => ({ ...prev, ...newOptions })),
65
+ }));
66
+ useEffect(() => {
67
+ if (ctxRef?.current) {
68
+ setHeaderOpt(prev => ({ ...prev, ...ctxRef.current }));
69
+ if (__DEV__) {
70
+ console.log("Context ref is set", ctxRef.current);
71
+ console.log("Header", JSON.stringify(Header));
72
+ }
73
+ }
74
+ }, [ctxRef?.current?.headerOpt]);
75
+ // Validação adicional para evitar erros
76
+ if (!userOptions?.user?.name) {
77
+ console.warn('HeaderComponent: user.name é obrigatório');
78
+ return null;
79
+ }
80
+ const PickVariant = () => {
81
+ switch (variant.toLowerCase()) {
82
+ case 'navigation':
83
+ return <Header.Navigation pageTitle={pageTitle}/>;
84
+ case 'user':
85
+ return <Header.User />;
86
+ default:
87
+ return (<Header.Default showSwitchAccount={userOptions.showSwitchAccount} showShortcut={shortcutOptions.showShortcut}/>);
88
+ }
89
+ };
90
+ const ctxInfoValue = useMemo(() => ({
91
+ headerOptions,
92
+ ...userOptions,
93
+ ...shortcutOptions
94
+ }), [
95
+ headerOptions,
96
+ userOptions,
97
+ shortcutOptions
98
+ ]);
99
+ return (<View style={styles.container}>
100
+ <StatusBar backgroundColor="#001152" barStyle="light-content"/>
101
+ <Header.Context ref={ctxRef} ctxInfo={ctxInfoValue}>
102
+ <PickVariant />
103
+ </Header.Context>
104
+ </View>);
105
+ });
106
+ const styles = StyleSheet.create({
107
+ container: {
108
+ backgroundColor: "#001152",
109
+ paddingTop: 0,
110
+ paddingBottom: 24,
111
+ },
112
+ wrapper: {
113
+ paddingHorizontal: 20
114
+ },
115
+ title: {
116
+ fontSize: 24,
117
+ fontWeight: 'bold',
118
+ color: "#fff",
119
+ fontFamily: 'Nunito Sans',
120
+ },
121
+ subtitle: {
122
+ fontSize: 16,
123
+ color: "#fff",
124
+ fontFamily: 'Nunito Sans',
125
+ },
126
+ });
127
+ // PropTypes para validação de props
128
+ HeaderComponent.propTypes = {
129
+ shortcutOptions: PropTypes.shape({
130
+ showShortcut: PropTypes.bool,
131
+ shortcuts: PropTypes.arrayOf(PropTypes.shape({
132
+ id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
133
+ title: PropTypes.string,
134
+ icon: PropTypes.string,
135
+ })),
136
+ }),
137
+ userOptions: PropTypes.shape({
138
+ showSwitchAccount: PropTypes.bool,
139
+ user: PropTypes.shape({
140
+ enterprises: PropTypes.arrayOf(PropTypes.shape({
141
+ id: PropTypes.number.isRequired,
142
+ name: PropTypes.string.isRequired,
143
+ type: PropTypes.string.isRequired,
144
+ })),
145
+ status: PropTypes.string,
146
+ name: PropTypes.string.isRequired,
147
+ }).isRequired,
148
+ }),
149
+ headerOptions: PropTypes.shape({
150
+ onClickMessage: PropTypes.func,
151
+ onClickNotification: PropTypes.func,
152
+ onClickEnterpriseMoreOptions: PropTypes.func,
153
+ onClickAddEnterprise: PropTypes.func,
154
+ }),
155
+ };
156
+ // Default props
157
+ HeaderComponent.defaultProps = {
158
+ shortcutOptions: {
159
+ showShortcut: true,
160
+ shortcuts: [],
161
+ },
162
+ userOptions: {
163
+ showSwitchAccount: true,
164
+ user: {
165
+ enterprises: [],
166
+ status: 'inactive',
167
+ name: '',
168
+ },
169
+ },
170
+ headerOptions: {
171
+ onClickMessage: () => { console.warn('No action defined for onClickMessage'); },
172
+ onClickNotification: () => { console.warn('No action defined for onClickNotification'); },
173
+ onClickEnterpriseMoreOptions: () => { console.warn('No action defined for onClickEnterpriseMoreOptions'); },
174
+ onClickAddEnterprise: () => { console.warn('No action defined for onClickAddEnterprise'); },
175
+ },
176
+ };
177
+ // Display name para debugging
178
+ HeaderComponent.displayName = 'HeaderComponent';
179
+ export default HeaderComponent;
@@ -0,0 +1,3 @@
1
+ export declare const iconEnums: readonly ["add-circle-line", "arrow-right-line", "arrow-up-s-line", "arrow-down-s-line", "barcode-line", "chat-3-line", "check-line", "close-line", "download-line", "edit-line", "pencil-line", "design-line", "pen-nib-line", "file-copy-line", "file-copy-2-line", "qr-code-line", "user-3-fill", "home-fill", "home-line", "information-line", "more-2-line", "notification-2-line", "subtract-line", "calendar-line", "time-line"];
2
+ export type IconName = typeof iconEnums[number];
3
+ //# sourceMappingURL=iconEnums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iconEnums.d.ts","sourceRoot":"","sources":["../../../components/Icon/iconEnums.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS,yaA0BZ,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,27 @@
1
+ export const iconEnums = [
2
+ 'add-circle-line',
3
+ 'arrow-right-line',
4
+ 'arrow-up-s-line',
5
+ 'arrow-down-s-line',
6
+ 'barcode-line',
7
+ 'chat-3-line',
8
+ 'check-line',
9
+ 'close-line',
10
+ 'download-line',
11
+ 'edit-line',
12
+ 'pencil-line',
13
+ 'design-line',
14
+ 'pen-nib-line',
15
+ 'file-copy-line',
16
+ 'file-copy-2-line',
17
+ 'qr-code-line',
18
+ 'user-3-fill',
19
+ 'home-fill',
20
+ 'home-line',
21
+ 'information-line',
22
+ 'more-2-line',
23
+ 'notification-2-line',
24
+ 'subtract-line',
25
+ 'calendar-line',
26
+ 'time-line',
27
+ ];
@@ -0,0 +1,9 @@
1
+ export default Icon;
2
+ declare function Icon({ name, size, color, style, }: {
3
+ name: any;
4
+ size?: number | undefined;
5
+ color?: string | undefined;
6
+ style: any;
7
+ }): React.JSX.Element;
8
+ import React from 'react';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Icon/index.jsx"],"names":[],"mappings":";AAIA;;;;;sBAKqD;kBATnC,OAAO"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import IconRemix from 'react-native-remix-icon';
3
+ import { iconEnums } from './iconEnums';
4
+ const Icon = ({ name, size = 24, color = '#4F7CFE', style, }) => <IconRemix {...{ style, size, color, name }}/>;
5
+ export default Icon;