@controleonline/ui-crm 1.0.42

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 (141) hide show
  1. package/.github/actions/workers/manager/action.yml +147 -0
  2. package/.github/actions/workers/qa/action.yml +44 -0
  3. package/.github/actions/workers/security/action.yml +44 -0
  4. package/.github/actions/workers/technical-documenter/action.yml +51 -0
  5. package/.github/workflows/manager-worker.yml +167 -0
  6. package/.github/workflows/publish-npm.yml +40 -0
  7. package/.github/workflows/pull-request-checks.yml +29 -0
  8. package/.scrutinizer.yml +24 -0
  9. package/AGENTS.md +56 -0
  10. package/FUNDING.yml +1 -0
  11. package/docs/technical/Cliente-Vendedor-Vinculo-e-Permissoes.md +121 -0
  12. package/docs/technical/Income-Statements-Demonstrativo.md +38 -0
  13. package/docs/technical/Oportunidades-Ordenacao-por-Data-de-Retorno.md +134 -0
  14. package/docs/technical/Propostas-Filtro-de-Status.md +147 -0
  15. package/docs/technical/Royalties-a-pagar-Franqueado.md +51 -0
  16. package/docs/technical/Visao-Vendedor-Comissoes.md +58 -0
  17. package/docs/wiki.md +1 -0
  18. package/package.json +43 -0
  19. package/scripts/validate-wiki-pointer.cjs +13 -0
  20. package/src/react/components/AnimatedModal.js +149 -0
  21. package/src/react/components/AnimatedModal.styles.js +21 -0
  22. package/src/react/components/CreateContractModal.js +151 -0
  23. package/src/react/components/CreateContractModal.styles.js +43 -0
  24. package/src/react/hooks/useToastMessage.js +59 -0
  25. package/src/react/index.js +4 -0
  26. package/src/react/pages/ModelTemplatesPage.js +1461 -0
  27. package/src/react/pages/ModelTemplatesPage.styles.js +441 -0
  28. package/src/react/pages/comissions/IncomeStatementDetailsModal.js +102 -0
  29. package/src/react/pages/comissions/IncomeStatementsFilters.js +120 -0
  30. package/src/react/pages/comissions/SellerCommissionsPage.js +368 -0
  31. package/src/react/pages/comissions/SellerCommissionsPage.styles.js +219 -0
  32. package/src/react/pages/comissions/incomeStatementsHelpers.js +233 -0
  33. package/src/react/pages/comissions/index.js +309 -0
  34. package/src/react/pages/comissions/index.styles.js +381 -0
  35. package/src/react/pages/comissions/sellerCommissionsHelpers.js +222 -0
  36. package/src/react/pages/crm/components/CrmHeader.js +117 -0
  37. package/src/react/pages/crm/components/MarketingEventsSection.js +142 -0
  38. package/src/react/pages/crm/components/MarketingEventsSection.styles.js +105 -0
  39. package/src/react/pages/crm/components/OpportunityCard.js +138 -0
  40. package/src/react/pages/crm/components/OpportunityFormModal.js +279 -0
  41. package/src/react/pages/crm/components/OpportunityList.js +113 -0
  42. package/src/react/pages/crm/components/OpportunitySkeletons.js +53 -0
  43. package/src/react/pages/crm/components/ProviderSelectModal.js +166 -0
  44. package/src/react/pages/crm/components/SelectModal.js +178 -0
  45. package/src/react/pages/crm/conversation.js +342 -0
  46. package/src/react/pages/crm/conversation.styles.js +206 -0
  47. package/src/react/pages/crm/hooks/useCrmData.js +494 -0
  48. package/src/react/pages/crm/hooks/useOpportunityForms.js +306 -0
  49. package/src/react/pages/crm/index.js +262 -0
  50. package/src/react/pages/crm/index.styles.js +13 -0
  51. package/src/react/pages/crm/marketingEventsHelpers.js +41 -0
  52. package/src/react/pages/crm/styles/card.styles.js +178 -0
  53. package/src/react/pages/crm/styles/layout.styles.js +184 -0
  54. package/src/react/pages/crm/styles/modal.styles.js +347 -0
  55. package/src/react/pages/home/index.js +559 -0
  56. package/src/react/pages/home/index.styles.js +268 -0
  57. package/src/react/pages/proposals/CreateProposalsModal.js +466 -0
  58. package/src/react/pages/proposals/CreateProposalsModal.styles.js +344 -0
  59. package/src/react/pages/proposals/CreateProposalsPickers.js +187 -0
  60. package/src/react/pages/proposals/CreateProposalsProductSection.js +117 -0
  61. package/src/react/pages/proposals/ProposalCard.js +112 -0
  62. package/src/react/pages/proposals/ProposalDetails.js +263 -0
  63. package/src/react/pages/proposals/ProposalDetails.styles.js +195 -0
  64. package/src/react/pages/proposals/index.js +488 -0
  65. package/src/react/pages/proposals/index.styles.js +248 -0
  66. package/src/react/pages/proposals/proposalListHelpers.js +216 -0
  67. package/src/react/pages/proposals/proposalNavigation.js +26 -0
  68. package/src/react/pages/royalties/ReceivablePage.js +233 -0
  69. package/src/react/pages/royalties/RoyaltiesPayablePage.js +260 -0
  70. package/src/react/pages/royalties/index.js +2 -0
  71. package/src/react/pages/royalties/royaltiesReceivableHelpers.js +68 -0
  72. package/src/react/pages/settings/GeneralSettings.js +317 -0
  73. package/src/react/pages/settings/GeneralSettings.shared.js +490 -0
  74. package/src/react/pages/settings/GeneralSettings.styles.js +746 -0
  75. package/src/react/pages/settings/GeneralSettingsSection.js +57 -0
  76. package/src/react/pages/settings/generalSettingsActiveTab.js +85 -0
  77. package/src/react/pages/settings/sections/CrmSection.js +281 -0
  78. package/src/react/pages/settings/sections/DeviceRuntimeFooterSection.js +128 -0
  79. package/src/react/pages/settings/sections/DisplayPreparationSection.js +155 -0
  80. package/src/react/pages/settings/sections/IntegrationsSection.js +392 -0
  81. package/src/react/pages/settings/sections/LogSection.js +322 -0
  82. package/src/react/pages/settings/sections/LoginSection.js +137 -0
  83. package/src/react/pages/settings/sections/LoyaltyProductPicker.js +230 -0
  84. package/src/react/pages/settings/sections/LoyaltySection.js +451 -0
  85. package/src/react/pages/settings/sections/MaintenanceSection.js +205 -0
  86. package/src/react/pages/settings/sections/MapsSection.js +629 -0
  87. package/src/react/pages/settings/sections/MenuCatalogSection.js +405 -0
  88. package/src/react/pages/settings/sections/OperationsSection.js +303 -0
  89. package/src/react/pages/settings/sections/OrderPaymentSection.js +379 -0
  90. package/src/react/pages/settings/sections/OrderPrintSection.js +308 -0
  91. package/src/react/pages/settings/sections/ShopSection.js +490 -0
  92. package/src/react/pages/settings/sections/shop/FranchiseMapPreview.js +124 -0
  93. package/src/react/pages/settings/sections/shop/ShopDomainCreateForm.js +57 -0
  94. package/src/react/pages/settings/sections/shop/ShopDomainPanel.js +184 -0
  95. package/src/react/pages/settings/sections/shop/ShopDomainShowcasesSection.js +237 -0
  96. package/src/react/pages/settings/sections/shop/ShopDomainShowcasesSection.styles.js +256 -0
  97. package/src/react/pages/settings/sections/shop/ShopDomainTabs.js +61 -0
  98. package/src/react/pages/settings/sections/shop/ShopFranchiseLocatorSection.js +526 -0
  99. package/src/react/pages/settings/sections/shop/ShopLoyaltySection.js +426 -0
  100. package/src/react/pages/settings/sections/shop/ShopSettingsSection.js +10 -0
  101. package/src/react/pages/settings/sections/shop/mapsFranchiseMapHelpers.js +163 -0
  102. package/src/react/pages/settings/sections/shop/shopDomainShowcasesUtils.js +68 -0
  103. package/src/react/pages/settings/sections/shop/shopFranchiseVisibility.js +158 -0
  104. package/src/react/pages/settings/sections/shop/shopSettingsShared.js +427 -0
  105. package/src/react/router/routes.js +135 -0
  106. package/src/react/utils/opportunityDate.js +82 -0
  107. package/src/react/utils/opportunityEditorReferences.js +76 -0
  108. package/src/react/utils/opportunityEmptyState.js +20 -0
  109. package/src/react/utils/opportunityPeople.js +111 -0
  110. package/src/react/utils/opportunityPhone.js +82 -0
  111. package/src/react/utils/opportunityStage.js +30 -0
  112. package/src/react/utils/opportunityStatusFilter.js +54 -0
  113. package/src/react/utils/proposalCreateHelpers.js +61 -0
  114. package/src/react/utils/proposalProductSelection.js +71 -0
  115. package/src/react/utils/royaltiesPayableParams.js +37 -0
  116. package/src/react/utils/translateWithFallback.js +42 -0
  117. package/src/store/crm/index.js +2 -0
  118. package/src/store/model/index.js +104 -0
  119. package/src/tests/browser/crm/create-proposal-product-category-filter.spec.js +149 -0
  120. package/src/tests/browser/crm/crm-index-status-filter.spec.js +263 -0
  121. package/src/tests/browser/crm/crm-opportunity-category-editor.spec.js +269 -0
  122. package/src/tests/browser/crm/royalties-payable.spec.js +122 -0
  123. package/src/tests/browser/crm/royalties-receivable.spec.js +121 -0
  124. package/src/tests/browser/crm/seller-commissions.spec.js +214 -0
  125. package/src/tests/browser/manager/general-settings-maps.spec.js +400 -0
  126. package/src/tests/react/pages/comissions/incomeStatementsHelpers.test.js +181 -0
  127. package/src/tests/react/pages/comissions/sellerCommissionsHelpers.test.js +132 -0
  128. package/src/tests/react/pages/crm/marketingEventsHelpers.test.cjs +53 -0
  129. package/src/tests/react/pages/crm/opportunitySearchParams.test.cjs +44 -0
  130. package/src/tests/react/pages/proposals/navigation.test.js +71 -0
  131. package/src/tests/react/pages/proposals/proposalListHelpers.test.js +42 -0
  132. package/src/tests/react/pages/royalties/royaltiesReceivableHelpers.test.js +60 -0
  133. package/src/tests/react/pages/settings/generalSettings.shared.test.js +102 -0
  134. package/src/tests/react/pages/settings/sections/shop/shopDomainShowcasesUtils.test.js +60 -0
  135. package/src/tests/react/pages/settings/sections/shop/shopFranchiseVisibility.test.js +80 -0
  136. package/src/tests/react/utils/opportunityEditorReferences.test.js +70 -0
  137. package/src/tests/react/utils/opportunityEmptyState.test.js +39 -0
  138. package/src/tests/react/utils/opportunityStatusFilter.test.cjs +81 -0
  139. package/src/tests/react/utils/proposalCreateHelpers.test.js +25 -0
  140. package/src/tests/react/utils/proposalProductSelection.test.js +76 -0
  141. package/src/tests/react/utils/royaltiesPayableParams.test.js +44 -0
@@ -0,0 +1,268 @@
1
+ import { Platform, StyleSheet } from 'react-native';
2
+ import { colors } from '@controleonline/../../src/styles/colors';
3
+
4
+ const styles = StyleSheet.create({
5
+ container: {
6
+ flex: 1,
7
+ backgroundColor: colors.background,
8
+ },
9
+ scroll: {
10
+ paddingHorizontal: 20,
11
+ paddingTop: 16,
12
+ paddingBottom: 24,
13
+ },
14
+ header: {
15
+ flexDirection: 'row',
16
+ justifyContent: 'space-between',
17
+ alignItems: 'center',
18
+ marginBottom: 32,
19
+ },
20
+ greeting: {
21
+ fontSize: 26,
22
+ fontWeight: '700',
23
+ color: '#0F172A',
24
+ letterSpacing: -0.5,
25
+ },
26
+ companyName: {
27
+ fontSize: 14,
28
+ color: '#64748B',
29
+ marginTop: 2,
30
+ fontWeight: '500',
31
+ },
32
+ companyRow: {
33
+ flexDirection: 'row',
34
+ alignItems: 'center',
35
+ },
36
+ companyLogo: {
37
+ width: 18,
38
+ height: 18,
39
+ borderRadius: 4,
40
+ marginRight: 6,
41
+ marginTop: 2,
42
+ },
43
+ avatarWrap: {
44
+ width: 40,
45
+ height: 40,
46
+ borderRadius: 20,
47
+ alignItems: 'center',
48
+ justifyContent: 'center',
49
+ },
50
+ sectionTitleRow: {
51
+ flexDirection: 'row',
52
+ alignItems: 'center',
53
+ justifyContent: 'space-between',
54
+ marginBottom: 0,
55
+ gap: 10,
56
+ },
57
+ sectionTitleRowText: {
58
+ marginBottom: 0,
59
+ },
60
+ sectionTitle: {
61
+ fontSize: 18,
62
+ fontWeight: '700',
63
+ color: '#1E293B',
64
+ marginBottom: 16,
65
+ letterSpacing: -0.3,
66
+ },
67
+ sortButton: {
68
+ flexDirection: 'row',
69
+ alignItems: 'center',
70
+ backgroundColor: '#EEF2FF',
71
+ borderRadius: 999,
72
+ paddingHorizontal: 10,
73
+ paddingVertical: 6,
74
+ },
75
+ sortButtonText: {
76
+ marginLeft: 6,
77
+ fontSize: 11,
78
+ fontWeight: '700',
79
+ },
80
+ statsContainer: {
81
+ flexDirection: 'row',
82
+ justifyContent: 'space-between',
83
+ marginBottom: 24,
84
+ gap: 12,
85
+ },
86
+ statCard: {
87
+ flex: 1,
88
+ backgroundColor: '#fff',
89
+ borderRadius: 16,
90
+ padding: 16,
91
+ alignItems: 'center',
92
+ ...Platform.select({
93
+ ios: {
94
+ shadowColor: '#0F172A',
95
+ shadowOffset: { width: 0, height: 4 },
96
+ shadowOpacity: 0.05,
97
+ shadowRadius: 12,
98
+ },
99
+ android: { elevation: 2 },
100
+ web: { boxShadow: '0 4px 12px rgba(15,23,42,0.05)' },
101
+ }),
102
+ },
103
+ statIcon: {
104
+ width: 36,
105
+ height: 36,
106
+ borderRadius: 10,
107
+ alignItems: 'center',
108
+ justifyContent: 'center',
109
+ marginBottom: 8,
110
+ },
111
+ statValue: {
112
+ fontSize: 20,
113
+ fontWeight: '700',
114
+ color: '#0F172A',
115
+ marginBottom: 2,
116
+ },
117
+ statLabel: {
118
+ fontSize: 12,
119
+ color: '#64748B',
120
+ fontWeight: '500',
121
+ },
122
+ actionBanner: {
123
+ marginBottom: 28,
124
+ borderRadius: 20,
125
+ overflow: 'hidden',
126
+ backgroundColor: colors.primary, // Enhanced blue
127
+ ...Platform.select({
128
+ ios: {
129
+ shadowColor: colors.primary,
130
+ shadowOffset: { width: 0, height: 8 },
131
+ shadowOpacity: 0.2,
132
+ shadowRadius: 16,
133
+ },
134
+ android: { elevation: 5 },
135
+ web: { boxShadow: '0 8px 24px rgba(79, 70, 229, 0.2)' },
136
+ }),
137
+ },
138
+ actionContent: {
139
+ flexDirection: 'row',
140
+ alignItems: 'center',
141
+ justifyContent: 'space-between',
142
+ padding: 20,
143
+ },
144
+ actionTitle: {
145
+ fontSize: 18,
146
+ fontWeight: '700',
147
+ color: '#fff',
148
+ marginBottom: 4,
149
+ },
150
+ actionSub: {
151
+ fontSize: 13,
152
+ color: 'rgba(255,255,255,0.8)',
153
+ },
154
+ actionButton: {
155
+ width: 40,
156
+ height: 40,
157
+ borderRadius: 12,
158
+ backgroundColor: '#fff',
159
+ alignItems: 'center',
160
+ justifyContent: 'center',
161
+ },
162
+ shortcutsRow: {
163
+ flexDirection: 'row',
164
+ gap: 12,
165
+ marginBottom: 28,
166
+ },
167
+ shortcutCard: {
168
+ flex: 1,
169
+ backgroundColor: '#fff',
170
+ borderRadius: 16,
171
+ padding: 16,
172
+ alignItems: 'center',
173
+ ...Platform.select({
174
+ ios: {
175
+ shadowColor: '#0F172A',
176
+ shadowOffset: { width: 0, height: 4 },
177
+ shadowOpacity: 0.05,
178
+ shadowRadius: 12,
179
+ },
180
+ android: { elevation: 2 },
181
+ web: { boxShadow: '0 4px 12px rgba(15,23,42,0.05)' },
182
+ }),
183
+ },
184
+ shortcutIcon: {
185
+ width: 48,
186
+ height: 48,
187
+ borderRadius: 14,
188
+ alignItems: 'center',
189
+ justifyContent: 'center',
190
+ marginBottom: 10,
191
+ },
192
+ shortcutLabel: {
193
+ fontSize: 14,
194
+ fontWeight: '700',
195
+ color: '#0F172A',
196
+ marginBottom: 2,
197
+ },
198
+ shortcutSub: {
199
+ fontSize: 11,
200
+ color: '#64748B',
201
+ fontWeight: '500',
202
+ },
203
+ activityList: {
204
+ backgroundColor: '#fff',
205
+ borderRadius: 16,
206
+ padding: 8,
207
+ ...Platform.select({
208
+ ios: {
209
+ shadowColor: '#0F172A',
210
+ shadowOffset: { width: 0, height: 4 },
211
+ shadowOpacity: 0.05,
212
+ shadowRadius: 12,
213
+ },
214
+ android: { elevation: 2 },
215
+ web: { boxShadow: '0 4px 12px rgba(15,23,42,0.05)' },
216
+ }),
217
+ },
218
+ activityItem: {
219
+ flexDirection: 'row',
220
+ alignItems: 'center',
221
+ padding: 12,
222
+ borderBottomWidth: 1,
223
+ borderBottomColor: '#F1F5F9',
224
+ },
225
+ activityIcon: {
226
+ width: 36,
227
+ height: 36,
228
+ borderRadius: 10,
229
+ backgroundColor: '#F8FAFC',
230
+ alignItems: 'center',
231
+ justifyContent: 'center',
232
+ marginRight: 12,
233
+ },
234
+ activityContent: {
235
+ flex: 1,
236
+ },
237
+ activityTitle: {
238
+ fontSize: 14,
239
+ fontWeight: '600',
240
+ color: '#334155',
241
+ },
242
+ activityClient: {
243
+ fontSize: 12,
244
+ color: '#64748B',
245
+ marginTop: 2,
246
+ },
247
+ activityTime: {
248
+ fontSize: 12,
249
+ color: '#94A3B8',
250
+ marginTop: 2,
251
+ },
252
+ });
253
+
254
+ export default styles;
255
+
256
+ export const inlineStyle_562_72 = {
257
+ padding: 20,
258
+ };
259
+
260
+ export const inlineStyle_564_18 = {
261
+ padding: 20,
262
+ alignItems: 'center',
263
+ };
264
+
265
+ export const inlineStyle_565_20 = {
266
+ color: '#94A3B8',
267
+ };
268
+