@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.
- package/.github/actions/workers/manager/action.yml +147 -0
- package/.github/actions/workers/qa/action.yml +44 -0
- package/.github/actions/workers/security/action.yml +44 -0
- package/.github/actions/workers/technical-documenter/action.yml +51 -0
- package/.github/workflows/manager-worker.yml +167 -0
- package/.github/workflows/publish-npm.yml +40 -0
- package/.github/workflows/pull-request-checks.yml +29 -0
- package/.scrutinizer.yml +24 -0
- package/AGENTS.md +56 -0
- package/FUNDING.yml +1 -0
- package/docs/technical/Cliente-Vendedor-Vinculo-e-Permissoes.md +121 -0
- package/docs/technical/Income-Statements-Demonstrativo.md +38 -0
- package/docs/technical/Oportunidades-Ordenacao-por-Data-de-Retorno.md +134 -0
- package/docs/technical/Propostas-Filtro-de-Status.md +147 -0
- package/docs/technical/Royalties-a-pagar-Franqueado.md +51 -0
- package/docs/technical/Visao-Vendedor-Comissoes.md +58 -0
- package/docs/wiki.md +1 -0
- package/package.json +43 -0
- package/scripts/validate-wiki-pointer.cjs +13 -0
- package/src/react/components/AnimatedModal.js +149 -0
- package/src/react/components/AnimatedModal.styles.js +21 -0
- package/src/react/components/CreateContractModal.js +151 -0
- package/src/react/components/CreateContractModal.styles.js +43 -0
- package/src/react/hooks/useToastMessage.js +59 -0
- package/src/react/index.js +4 -0
- package/src/react/pages/ModelTemplatesPage.js +1461 -0
- package/src/react/pages/ModelTemplatesPage.styles.js +441 -0
- package/src/react/pages/comissions/IncomeStatementDetailsModal.js +102 -0
- package/src/react/pages/comissions/IncomeStatementsFilters.js +120 -0
- package/src/react/pages/comissions/SellerCommissionsPage.js +368 -0
- package/src/react/pages/comissions/SellerCommissionsPage.styles.js +219 -0
- package/src/react/pages/comissions/incomeStatementsHelpers.js +233 -0
- package/src/react/pages/comissions/index.js +309 -0
- package/src/react/pages/comissions/index.styles.js +381 -0
- package/src/react/pages/comissions/sellerCommissionsHelpers.js +222 -0
- package/src/react/pages/crm/components/CrmHeader.js +117 -0
- package/src/react/pages/crm/components/MarketingEventsSection.js +142 -0
- package/src/react/pages/crm/components/MarketingEventsSection.styles.js +105 -0
- package/src/react/pages/crm/components/OpportunityCard.js +138 -0
- package/src/react/pages/crm/components/OpportunityFormModal.js +279 -0
- package/src/react/pages/crm/components/OpportunityList.js +113 -0
- package/src/react/pages/crm/components/OpportunitySkeletons.js +53 -0
- package/src/react/pages/crm/components/ProviderSelectModal.js +166 -0
- package/src/react/pages/crm/components/SelectModal.js +178 -0
- package/src/react/pages/crm/conversation.js +342 -0
- package/src/react/pages/crm/conversation.styles.js +206 -0
- package/src/react/pages/crm/hooks/useCrmData.js +494 -0
- package/src/react/pages/crm/hooks/useOpportunityForms.js +306 -0
- package/src/react/pages/crm/index.js +262 -0
- package/src/react/pages/crm/index.styles.js +13 -0
- package/src/react/pages/crm/marketingEventsHelpers.js +41 -0
- package/src/react/pages/crm/styles/card.styles.js +178 -0
- package/src/react/pages/crm/styles/layout.styles.js +184 -0
- package/src/react/pages/crm/styles/modal.styles.js +347 -0
- package/src/react/pages/home/index.js +559 -0
- package/src/react/pages/home/index.styles.js +268 -0
- package/src/react/pages/proposals/CreateProposalsModal.js +466 -0
- package/src/react/pages/proposals/CreateProposalsModal.styles.js +344 -0
- package/src/react/pages/proposals/CreateProposalsPickers.js +187 -0
- package/src/react/pages/proposals/CreateProposalsProductSection.js +117 -0
- package/src/react/pages/proposals/ProposalCard.js +112 -0
- package/src/react/pages/proposals/ProposalDetails.js +263 -0
- package/src/react/pages/proposals/ProposalDetails.styles.js +195 -0
- package/src/react/pages/proposals/index.js +488 -0
- package/src/react/pages/proposals/index.styles.js +248 -0
- package/src/react/pages/proposals/proposalListHelpers.js +216 -0
- package/src/react/pages/proposals/proposalNavigation.js +26 -0
- package/src/react/pages/royalties/ReceivablePage.js +233 -0
- package/src/react/pages/royalties/RoyaltiesPayablePage.js +260 -0
- package/src/react/pages/royalties/index.js +2 -0
- package/src/react/pages/royalties/royaltiesReceivableHelpers.js +68 -0
- package/src/react/pages/settings/GeneralSettings.js +317 -0
- package/src/react/pages/settings/GeneralSettings.shared.js +490 -0
- package/src/react/pages/settings/GeneralSettings.styles.js +746 -0
- package/src/react/pages/settings/GeneralSettingsSection.js +57 -0
- package/src/react/pages/settings/generalSettingsActiveTab.js +85 -0
- package/src/react/pages/settings/sections/CrmSection.js +281 -0
- package/src/react/pages/settings/sections/DeviceRuntimeFooterSection.js +128 -0
- package/src/react/pages/settings/sections/DisplayPreparationSection.js +155 -0
- package/src/react/pages/settings/sections/IntegrationsSection.js +392 -0
- package/src/react/pages/settings/sections/LogSection.js +322 -0
- package/src/react/pages/settings/sections/LoginSection.js +137 -0
- package/src/react/pages/settings/sections/LoyaltyProductPicker.js +230 -0
- package/src/react/pages/settings/sections/LoyaltySection.js +451 -0
- package/src/react/pages/settings/sections/MaintenanceSection.js +205 -0
- package/src/react/pages/settings/sections/MapsSection.js +629 -0
- package/src/react/pages/settings/sections/MenuCatalogSection.js +405 -0
- package/src/react/pages/settings/sections/OperationsSection.js +303 -0
- package/src/react/pages/settings/sections/OrderPaymentSection.js +379 -0
- package/src/react/pages/settings/sections/OrderPrintSection.js +308 -0
- package/src/react/pages/settings/sections/ShopSection.js +490 -0
- package/src/react/pages/settings/sections/shop/FranchiseMapPreview.js +124 -0
- package/src/react/pages/settings/sections/shop/ShopDomainCreateForm.js +57 -0
- package/src/react/pages/settings/sections/shop/ShopDomainPanel.js +184 -0
- package/src/react/pages/settings/sections/shop/ShopDomainShowcasesSection.js +237 -0
- package/src/react/pages/settings/sections/shop/ShopDomainShowcasesSection.styles.js +256 -0
- package/src/react/pages/settings/sections/shop/ShopDomainTabs.js +61 -0
- package/src/react/pages/settings/sections/shop/ShopFranchiseLocatorSection.js +526 -0
- package/src/react/pages/settings/sections/shop/ShopLoyaltySection.js +426 -0
- package/src/react/pages/settings/sections/shop/ShopSettingsSection.js +10 -0
- package/src/react/pages/settings/sections/shop/mapsFranchiseMapHelpers.js +163 -0
- package/src/react/pages/settings/sections/shop/shopDomainShowcasesUtils.js +68 -0
- package/src/react/pages/settings/sections/shop/shopFranchiseVisibility.js +158 -0
- package/src/react/pages/settings/sections/shop/shopSettingsShared.js +427 -0
- package/src/react/router/routes.js +135 -0
- package/src/react/utils/opportunityDate.js +82 -0
- package/src/react/utils/opportunityEditorReferences.js +76 -0
- package/src/react/utils/opportunityEmptyState.js +20 -0
- package/src/react/utils/opportunityPeople.js +111 -0
- package/src/react/utils/opportunityPhone.js +82 -0
- package/src/react/utils/opportunityStage.js +30 -0
- package/src/react/utils/opportunityStatusFilter.js +54 -0
- package/src/react/utils/proposalCreateHelpers.js +61 -0
- package/src/react/utils/proposalProductSelection.js +71 -0
- package/src/react/utils/royaltiesPayableParams.js +37 -0
- package/src/react/utils/translateWithFallback.js +42 -0
- package/src/store/crm/index.js +2 -0
- package/src/store/model/index.js +104 -0
- package/src/tests/browser/crm/create-proposal-product-category-filter.spec.js +149 -0
- package/src/tests/browser/crm/crm-index-status-filter.spec.js +263 -0
- package/src/tests/browser/crm/crm-opportunity-category-editor.spec.js +269 -0
- package/src/tests/browser/crm/royalties-payable.spec.js +122 -0
- package/src/tests/browser/crm/royalties-receivable.spec.js +121 -0
- package/src/tests/browser/crm/seller-commissions.spec.js +214 -0
- package/src/tests/browser/manager/general-settings-maps.spec.js +400 -0
- package/src/tests/react/pages/comissions/incomeStatementsHelpers.test.js +181 -0
- package/src/tests/react/pages/comissions/sellerCommissionsHelpers.test.js +132 -0
- package/src/tests/react/pages/crm/marketingEventsHelpers.test.cjs +53 -0
- package/src/tests/react/pages/crm/opportunitySearchParams.test.cjs +44 -0
- package/src/tests/react/pages/proposals/navigation.test.js +71 -0
- package/src/tests/react/pages/proposals/proposalListHelpers.test.js +42 -0
- package/src/tests/react/pages/royalties/royaltiesReceivableHelpers.test.js +60 -0
- package/src/tests/react/pages/settings/generalSettings.shared.test.js +102 -0
- package/src/tests/react/pages/settings/sections/shop/shopDomainShowcasesUtils.test.js +60 -0
- package/src/tests/react/pages/settings/sections/shop/shopFranchiseVisibility.test.js +80 -0
- package/src/tests/react/utils/opportunityEditorReferences.test.js +70 -0
- package/src/tests/react/utils/opportunityEmptyState.test.js +39 -0
- package/src/tests/react/utils/opportunityStatusFilter.test.cjs +81 -0
- package/src/tests/react/utils/proposalCreateHelpers.test.js +25 -0
- package/src/tests/react/utils/proposalProductSelection.test.js +76 -0
- package/src/tests/react/utils/royaltiesPayableParams.test.js +44 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
const cardStyles = {
|
|
2
|
+
cardWrapper: {
|
|
3
|
+
marginBottom: 12,
|
|
4
|
+
},
|
|
5
|
+
card: {
|
|
6
|
+
backgroundColor: '#fff',
|
|
7
|
+
borderRadius: 16,
|
|
8
|
+
padding: 16,
|
|
9
|
+
shadowColor: '#0F172A',
|
|
10
|
+
shadowOffset: { width: 0, height: 4 },
|
|
11
|
+
shadowOpacity: 0.1,
|
|
12
|
+
shadowRadius: 12,
|
|
13
|
+
elevation: 4,
|
|
14
|
+
},
|
|
15
|
+
cardHeader: {
|
|
16
|
+
flexDirection: 'row',
|
|
17
|
+
justifyContent: 'space-between',
|
|
18
|
+
alignItems: 'flex-start',
|
|
19
|
+
marginBottom: 12,
|
|
20
|
+
},
|
|
21
|
+
titleContainer: {
|
|
22
|
+
flex: 1,
|
|
23
|
+
marginRight: 10,
|
|
24
|
+
},
|
|
25
|
+
opportunityTitle: {
|
|
26
|
+
fontSize: 16,
|
|
27
|
+
fontWeight: '700',
|
|
28
|
+
color: '#0F172A',
|
|
29
|
+
marginBottom: 3,
|
|
30
|
+
},
|
|
31
|
+
opportunityTitleSkeleton: {
|
|
32
|
+
width: '72%',
|
|
33
|
+
height: 16,
|
|
34
|
+
borderRadius: 8,
|
|
35
|
+
marginBottom: 4,
|
|
36
|
+
},
|
|
37
|
+
clientName: {
|
|
38
|
+
fontSize: 13,
|
|
39
|
+
color: '#64748B',
|
|
40
|
+
fontWeight: '400',
|
|
41
|
+
flex: 1,
|
|
42
|
+
},
|
|
43
|
+
clientNameSkeleton: {
|
|
44
|
+
width: '68%',
|
|
45
|
+
height: 12,
|
|
46
|
+
borderRadius: 6,
|
|
47
|
+
marginTop: 1,
|
|
48
|
+
marginBottom: 1,
|
|
49
|
+
},
|
|
50
|
+
clientNameRow: {
|
|
51
|
+
flexDirection: 'row',
|
|
52
|
+
alignItems: 'center',
|
|
53
|
+
marginTop: 2,
|
|
54
|
+
},
|
|
55
|
+
editClientButton: {
|
|
56
|
+
width: 22,
|
|
57
|
+
height: 22,
|
|
58
|
+
borderRadius: 11,
|
|
59
|
+
alignItems: 'center',
|
|
60
|
+
justifyContent: 'center',
|
|
61
|
+
backgroundColor: '#E7F3FF',
|
|
62
|
+
marginLeft: 8,
|
|
63
|
+
},
|
|
64
|
+
stageTag: {
|
|
65
|
+
paddingHorizontal: 10,
|
|
66
|
+
paddingVertical: 5,
|
|
67
|
+
borderRadius: 10,
|
|
68
|
+
},
|
|
69
|
+
stageText: {
|
|
70
|
+
fontSize: 11,
|
|
71
|
+
fontWeight: '700',
|
|
72
|
+
letterSpacing: 0.2,
|
|
73
|
+
},
|
|
74
|
+
stageTagSkeleton: {
|
|
75
|
+
justifyContent: 'center',
|
|
76
|
+
alignItems: 'center',
|
|
77
|
+
minWidth: 72,
|
|
78
|
+
},
|
|
79
|
+
stageTextSkeleton: {
|
|
80
|
+
width: 52,
|
|
81
|
+
height: 11,
|
|
82
|
+
borderRadius: 6,
|
|
83
|
+
},
|
|
84
|
+
cardBody: {
|
|
85
|
+
marginBottom: 12,
|
|
86
|
+
},
|
|
87
|
+
infoRow: {
|
|
88
|
+
flexDirection: 'row',
|
|
89
|
+
justifyContent: 'space-between',
|
|
90
|
+
marginBottom: 6,
|
|
91
|
+
},
|
|
92
|
+
infoContainer: {
|
|
93
|
+
flexDirection: 'row',
|
|
94
|
+
alignItems: 'center',
|
|
95
|
+
flex: 1,
|
|
96
|
+
marginRight: 6,
|
|
97
|
+
},
|
|
98
|
+
infoText: {
|
|
99
|
+
fontSize: 12,
|
|
100
|
+
color: '#64748B',
|
|
101
|
+
marginLeft: 5,
|
|
102
|
+
flex: 1,
|
|
103
|
+
},
|
|
104
|
+
cardFooter: {
|
|
105
|
+
flexDirection: 'row',
|
|
106
|
+
justifyContent: 'space-between',
|
|
107
|
+
alignItems: 'center',
|
|
108
|
+
paddingTop: 10,
|
|
109
|
+
borderTopWidth: 1,
|
|
110
|
+
borderTopColor: '#F1F5F9',
|
|
111
|
+
marginBottom: 10,
|
|
112
|
+
},
|
|
113
|
+
responsibleContainer: {
|
|
114
|
+
flexDirection: 'row',
|
|
115
|
+
alignItems: 'center',
|
|
116
|
+
flex: 1,
|
|
117
|
+
},
|
|
118
|
+
responsibleText: {
|
|
119
|
+
fontSize: 12,
|
|
120
|
+
color: '#64748B',
|
|
121
|
+
marginLeft: 5,
|
|
122
|
+
},
|
|
123
|
+
statusContainer: {
|
|
124
|
+
flexDirection: 'row',
|
|
125
|
+
alignItems: 'center',
|
|
126
|
+
},
|
|
127
|
+
statusDot: {
|
|
128
|
+
width: 8,
|
|
129
|
+
height: 8,
|
|
130
|
+
borderRadius: 4,
|
|
131
|
+
},
|
|
132
|
+
announceContainer: {
|
|
133
|
+
flexDirection: 'row',
|
|
134
|
+
alignItems: 'center',
|
|
135
|
+
marginBottom: 10,
|
|
136
|
+
paddingTop: 8,
|
|
137
|
+
borderTopWidth: 1,
|
|
138
|
+
borderTopColor: '#F1F5F9',
|
|
139
|
+
},
|
|
140
|
+
announceText: {
|
|
141
|
+
fontSize: 12,
|
|
142
|
+
color: '#8B5CF6',
|
|
143
|
+
marginLeft: 5,
|
|
144
|
+
},
|
|
145
|
+
actionContainer: {
|
|
146
|
+
flexDirection: 'row',
|
|
147
|
+
justifyContent: 'space-between',
|
|
148
|
+
gap: 10,
|
|
149
|
+
borderTopWidth: 1,
|
|
150
|
+
borderTopColor: '#F1F5F9',
|
|
151
|
+
paddingTop: 12,
|
|
152
|
+
},
|
|
153
|
+
actionButton: {
|
|
154
|
+
flex: 1,
|
|
155
|
+
flexDirection: 'row',
|
|
156
|
+
alignItems: 'center',
|
|
157
|
+
justifyContent: 'center',
|
|
158
|
+
paddingVertical: 10,
|
|
159
|
+
paddingHorizontal: 12,
|
|
160
|
+
borderRadius: 12,
|
|
161
|
+
borderWidth: 1,
|
|
162
|
+
},
|
|
163
|
+
chatButton: {
|
|
164
|
+
borderColor: '#10B981',
|
|
165
|
+
backgroundColor: '#10B98110',
|
|
166
|
+
},
|
|
167
|
+
editButton: {
|
|
168
|
+
borderColor: '#e67e22',
|
|
169
|
+
backgroundColor: '#e67e2210',
|
|
170
|
+
},
|
|
171
|
+
actionButtonText: {
|
|
172
|
+
fontSize: 13,
|
|
173
|
+
fontWeight: '600',
|
|
174
|
+
marginLeft: 5,
|
|
175
|
+
},
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
export default cardStyles;
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { colors } from '@controleonline/../../src/styles/colors';
|
|
2
|
+
|
|
3
|
+
const layoutStyles = {
|
|
4
|
+
container: {
|
|
5
|
+
flex: 1,
|
|
6
|
+
backgroundColor: '#F8FAFC',
|
|
7
|
+
},
|
|
8
|
+
subHeader: {
|
|
9
|
+
paddingHorizontal: 16,
|
|
10
|
+
paddingTop: 9,
|
|
11
|
+
paddingBottom: 12,
|
|
12
|
+
backgroundColor: colors.white,
|
|
13
|
+
borderBottomWidth: 1,
|
|
14
|
+
borderBottomColor: colors.border,
|
|
15
|
+
},
|
|
16
|
+
searchRow: {
|
|
17
|
+
flexDirection: 'row',
|
|
18
|
+
alignItems: 'center',
|
|
19
|
+
},
|
|
20
|
+
searchSkeletonInput: {
|
|
21
|
+
flex: 1,
|
|
22
|
+
height: 40,
|
|
23
|
+
borderRadius: 8,
|
|
24
|
+
marginRight: 12,
|
|
25
|
+
},
|
|
26
|
+
searchSkeletonButton: {
|
|
27
|
+
width: 40,
|
|
28
|
+
height: 40,
|
|
29
|
+
borderRadius: 20,
|
|
30
|
+
},
|
|
31
|
+
searchInputContainer: {
|
|
32
|
+
flex: 1,
|
|
33
|
+
flexDirection: 'row',
|
|
34
|
+
alignItems: 'center',
|
|
35
|
+
backgroundColor: colors.background,
|
|
36
|
+
borderRadius: 8,
|
|
37
|
+
paddingHorizontal: 12,
|
|
38
|
+
borderWidth: 1,
|
|
39
|
+
borderColor: colors.border,
|
|
40
|
+
height: 40,
|
|
41
|
+
},
|
|
42
|
+
searchInput: {
|
|
43
|
+
flex: 1,
|
|
44
|
+
height: '100%',
|
|
45
|
+
paddingHorizontal: 8,
|
|
46
|
+
color: colors.text,
|
|
47
|
+
fontSize: 14,
|
|
48
|
+
},
|
|
49
|
+
clearSearchButton: {
|
|
50
|
+
padding: 4,
|
|
51
|
+
},
|
|
52
|
+
statusFilterSection: {
|
|
53
|
+
marginTop: 10,
|
|
54
|
+
},
|
|
55
|
+
statusLabelSkeleton: {
|
|
56
|
+
width: 52,
|
|
57
|
+
height: 12,
|
|
58
|
+
marginBottom: 8,
|
|
59
|
+
borderRadius: 6,
|
|
60
|
+
},
|
|
61
|
+
statusSkeletonRow: {
|
|
62
|
+
flexDirection: 'row',
|
|
63
|
+
alignItems: 'center',
|
|
64
|
+
paddingRight: 8,
|
|
65
|
+
},
|
|
66
|
+
statusChipSkeleton: {
|
|
67
|
+
width: 84,
|
|
68
|
+
height: 30,
|
|
69
|
+
borderRadius: 999,
|
|
70
|
+
marginRight: 8,
|
|
71
|
+
},
|
|
72
|
+
statusFilterLabel: {
|
|
73
|
+
fontSize: 12,
|
|
74
|
+
fontWeight: '600',
|
|
75
|
+
color: '#64748B',
|
|
76
|
+
marginBottom: 8,
|
|
77
|
+
},
|
|
78
|
+
statusFilterRow: {
|
|
79
|
+
paddingRight: 8,
|
|
80
|
+
},
|
|
81
|
+
statusFilterChip: {
|
|
82
|
+
borderWidth: 1,
|
|
83
|
+
borderColor: '#DCE3EC',
|
|
84
|
+
backgroundColor: '#F8FAFC',
|
|
85
|
+
borderRadius: 999,
|
|
86
|
+
paddingHorizontal: 12,
|
|
87
|
+
paddingVertical: 7,
|
|
88
|
+
marginRight: 8,
|
|
89
|
+
},
|
|
90
|
+
statusFilterChipActive: {
|
|
91
|
+
borderColor: colors.primary,
|
|
92
|
+
backgroundColor: '#E7F3FF',
|
|
93
|
+
},
|
|
94
|
+
statusFilterChipText: {
|
|
95
|
+
fontSize: 12,
|
|
96
|
+
color: '#64748B',
|
|
97
|
+
fontWeight: '600',
|
|
98
|
+
},
|
|
99
|
+
statusFilterChipTextActive: {
|
|
100
|
+
color: colors.primary,
|
|
101
|
+
},
|
|
102
|
+
scrollContent: {
|
|
103
|
+
padding: 16,
|
|
104
|
+
paddingBottom: 32,
|
|
105
|
+
},
|
|
106
|
+
scrollContentSkeleton: {
|
|
107
|
+
flexGrow: 1,
|
|
108
|
+
},
|
|
109
|
+
skeletonListWrapper: {
|
|
110
|
+
paddingTop: 8,
|
|
111
|
+
},
|
|
112
|
+
skeletonFooter: {
|
|
113
|
+
paddingVertical: 12,
|
|
114
|
+
paddingHorizontal: 0,
|
|
115
|
+
},
|
|
116
|
+
skeletonLine: {
|
|
117
|
+
backgroundColor: '#E2E8F0',
|
|
118
|
+
borderRadius: 6,
|
|
119
|
+
},
|
|
120
|
+
headerTop: {
|
|
121
|
+
flexDirection: 'row',
|
|
122
|
+
justifyContent: 'space-between',
|
|
123
|
+
alignItems: 'center',
|
|
124
|
+
marginBottom: 12,
|
|
125
|
+
},
|
|
126
|
+
headerTitle: {
|
|
127
|
+
fontSize: 20,
|
|
128
|
+
fontWeight: '700',
|
|
129
|
+
color: '#0F172A',
|
|
130
|
+
flex: 1,
|
|
131
|
+
letterSpacing: -0.3,
|
|
132
|
+
},
|
|
133
|
+
addButton: {
|
|
134
|
+
backgroundColor: colors.primary,
|
|
135
|
+
width: 40,
|
|
136
|
+
height: 40,
|
|
137
|
+
borderRadius: 20,
|
|
138
|
+
alignItems: 'center',
|
|
139
|
+
justifyContent: 'center',
|
|
140
|
+
marginLeft: 12,
|
|
141
|
+
shadowColor: colors.primary,
|
|
142
|
+
shadowOffset: { width: 0, height: 2 },
|
|
143
|
+
shadowOpacity: 0.3,
|
|
144
|
+
shadowRadius: 4,
|
|
145
|
+
elevation: 3,
|
|
146
|
+
},
|
|
147
|
+
scrollView: {
|
|
148
|
+
flex: 1,
|
|
149
|
+
},
|
|
150
|
+
loadingContainer: {
|
|
151
|
+
flex: 1,
|
|
152
|
+
justifyContent: 'center',
|
|
153
|
+
alignItems: 'center',
|
|
154
|
+
backgroundColor: '#F8FAFC',
|
|
155
|
+
},
|
|
156
|
+
loadingText: {
|
|
157
|
+
fontSize: 14,
|
|
158
|
+
color: '#94A3B8',
|
|
159
|
+
marginTop: 14,
|
|
160
|
+
},
|
|
161
|
+
emptyContainer: {
|
|
162
|
+
flex: 1,
|
|
163
|
+
justifyContent: 'center',
|
|
164
|
+
alignItems: 'center',
|
|
165
|
+
paddingTop: 80,
|
|
166
|
+
},
|
|
167
|
+
emptyTitle: {
|
|
168
|
+
fontSize: 18,
|
|
169
|
+
fontWeight: '600',
|
|
170
|
+
color: '#0F172A',
|
|
171
|
+
marginTop: 14,
|
|
172
|
+
marginBottom: 6,
|
|
173
|
+
},
|
|
174
|
+
emptySubtitle: {
|
|
175
|
+
fontSize: 14,
|
|
176
|
+
color: '#94A3B8',
|
|
177
|
+
textAlign: 'center',
|
|
178
|
+
},
|
|
179
|
+
opportunitiesContainer: {
|
|
180
|
+
gap: 12,
|
|
181
|
+
},
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
export default layoutStyles;
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import { colors } from '@controleonline/../../src/styles/colors';
|
|
2
|
+
|
|
3
|
+
const modalStyles = {
|
|
4
|
+
modalContent: {
|
|
5
|
+
backgroundColor: '#fff',
|
|
6
|
+
borderTopLeftRadius: 24,
|
|
7
|
+
borderTopRightRadius: 24,
|
|
8
|
+
width: '100%',
|
|
9
|
+
height: '92%',
|
|
10
|
+
shadowColor: '#000',
|
|
11
|
+
shadowOffset: { width: 0, height: -4 },
|
|
12
|
+
shadowOpacity: 0.1,
|
|
13
|
+
shadowRadius: 12,
|
|
14
|
+
elevation: 20,
|
|
15
|
+
},
|
|
16
|
+
modalOverlay: {
|
|
17
|
+
flex: 1,
|
|
18
|
+
backgroundColor: 'rgba(15, 23, 42, 0.4)',
|
|
19
|
+
justifyContent: 'flex-end',
|
|
20
|
+
alignItems: 'center',
|
|
21
|
+
},
|
|
22
|
+
modalHeader: {
|
|
23
|
+
flexDirection: 'row',
|
|
24
|
+
justifyContent: 'space-between',
|
|
25
|
+
alignItems: 'center',
|
|
26
|
+
padding: 18,
|
|
27
|
+
borderBottomWidth: 1,
|
|
28
|
+
borderBottomColor: '#F1F5F9',
|
|
29
|
+
},
|
|
30
|
+
modalTitle: {
|
|
31
|
+
fontSize: 17,
|
|
32
|
+
fontWeight: '700',
|
|
33
|
+
color: '#0F172A',
|
|
34
|
+
},
|
|
35
|
+
closeButton: {
|
|
36
|
+
padding: 4,
|
|
37
|
+
},
|
|
38
|
+
modalBody: {
|
|
39
|
+
padding: 18,
|
|
40
|
+
},
|
|
41
|
+
editSection: {
|
|
42
|
+
marginBottom: 18,
|
|
43
|
+
},
|
|
44
|
+
editLabel: {
|
|
45
|
+
fontSize: 13,
|
|
46
|
+
fontWeight: '600',
|
|
47
|
+
color: '#334155',
|
|
48
|
+
marginBottom: 8,
|
|
49
|
+
letterSpacing: 0.2,
|
|
50
|
+
},
|
|
51
|
+
editInput: {
|
|
52
|
+
borderWidth: 1.5,
|
|
53
|
+
borderColor: '#E2E8F0',
|
|
54
|
+
borderRadius: 12,
|
|
55
|
+
paddingHorizontal: 14,
|
|
56
|
+
paddingVertical: 12,
|
|
57
|
+
fontSize: 15,
|
|
58
|
+
color: '#0F172A',
|
|
59
|
+
backgroundColor: '#F8FAFC',
|
|
60
|
+
},
|
|
61
|
+
selectButton: {
|
|
62
|
+
flexDirection: 'row',
|
|
63
|
+
alignItems: 'center',
|
|
64
|
+
justifyContent: 'space-between',
|
|
65
|
+
borderWidth: 1.5,
|
|
66
|
+
borderColor: '#E2E8F0',
|
|
67
|
+
borderRadius: 12,
|
|
68
|
+
paddingHorizontal: 14,
|
|
69
|
+
paddingVertical: 12,
|
|
70
|
+
backgroundColor: '#F8FAFC',
|
|
71
|
+
},
|
|
72
|
+
selectButtonContent: {
|
|
73
|
+
flexDirection: 'row',
|
|
74
|
+
alignItems: 'center',
|
|
75
|
+
flex: 1,
|
|
76
|
+
},
|
|
77
|
+
selectButtonDot: {
|
|
78
|
+
width: 10,
|
|
79
|
+
height: 10,
|
|
80
|
+
borderRadius: 5,
|
|
81
|
+
marginRight: 8,
|
|
82
|
+
},
|
|
83
|
+
selectButtonIcon: {
|
|
84
|
+
marginRight: 8,
|
|
85
|
+
},
|
|
86
|
+
selectButtonText: {
|
|
87
|
+
fontSize: 15,
|
|
88
|
+
color: '#0F172A',
|
|
89
|
+
},
|
|
90
|
+
dateButton: {
|
|
91
|
+
flexDirection: 'row',
|
|
92
|
+
alignItems: 'center',
|
|
93
|
+
borderWidth: 1.5,
|
|
94
|
+
borderColor: '#E2E8F0',
|
|
95
|
+
borderRadius: 12,
|
|
96
|
+
paddingHorizontal: 14,
|
|
97
|
+
paddingVertical: 12,
|
|
98
|
+
backgroundColor: '#F8FAFC',
|
|
99
|
+
},
|
|
100
|
+
dateButtonText: {
|
|
101
|
+
fontSize: 15,
|
|
102
|
+
color: '#0F172A',
|
|
103
|
+
marginLeft: 8,
|
|
104
|
+
},
|
|
105
|
+
selectModalContent: {
|
|
106
|
+
backgroundColor: '#fff',
|
|
107
|
+
borderTopLeftRadius: 24,
|
|
108
|
+
borderTopRightRadius: 24,
|
|
109
|
+
width: '100%',
|
|
110
|
+
height: '82%',
|
|
111
|
+
shadowColor: '#000',
|
|
112
|
+
shadowOffset: { width: 0, height: -4 },
|
|
113
|
+
shadowOpacity: 0.1,
|
|
114
|
+
shadowRadius: 12,
|
|
115
|
+
elevation: 20,
|
|
116
|
+
},
|
|
117
|
+
selectModalHeader: {
|
|
118
|
+
flexDirection: 'row',
|
|
119
|
+
justifyContent: 'space-between',
|
|
120
|
+
alignItems: 'center',
|
|
121
|
+
padding: 18,
|
|
122
|
+
borderBottomWidth: 1,
|
|
123
|
+
borderBottomColor: '#F1F5F9',
|
|
124
|
+
},
|
|
125
|
+
selectModalTitle: {
|
|
126
|
+
fontSize: 17,
|
|
127
|
+
fontWeight: '700',
|
|
128
|
+
color: '#0F172A',
|
|
129
|
+
},
|
|
130
|
+
selectModalSearchSection: {
|
|
131
|
+
paddingHorizontal: 18,
|
|
132
|
+
paddingTop: 14,
|
|
133
|
+
paddingBottom: 12,
|
|
134
|
+
borderBottomWidth: 1,
|
|
135
|
+
borderBottomColor: '#F8FAFC',
|
|
136
|
+
},
|
|
137
|
+
selectModalBody: {
|
|
138
|
+
flex: 1,
|
|
139
|
+
},
|
|
140
|
+
providerSearchLoadingState: {
|
|
141
|
+
paddingVertical: 32,
|
|
142
|
+
alignItems: 'center',
|
|
143
|
+
justifyContent: 'center',
|
|
144
|
+
},
|
|
145
|
+
selectModalBodyContent: {
|
|
146
|
+
paddingBottom: 8,
|
|
147
|
+
},
|
|
148
|
+
selectModalEmptyState: {
|
|
149
|
+
flex: 1,
|
|
150
|
+
paddingHorizontal: 22,
|
|
151
|
+
paddingVertical: 28,
|
|
152
|
+
alignItems: 'center',
|
|
153
|
+
justifyContent: 'center',
|
|
154
|
+
},
|
|
155
|
+
selectModalEmptyIcon: {
|
|
156
|
+
width: 54,
|
|
157
|
+
height: 54,
|
|
158
|
+
borderRadius: 16,
|
|
159
|
+
backgroundColor: '#F1F5F9',
|
|
160
|
+
alignItems: 'center',
|
|
161
|
+
justifyContent: 'center',
|
|
162
|
+
marginBottom: 14,
|
|
163
|
+
borderWidth: 1,
|
|
164
|
+
borderColor: '#E2E8F0',
|
|
165
|
+
},
|
|
166
|
+
selectModalEmptyTitle: {
|
|
167
|
+
fontSize: 16,
|
|
168
|
+
fontWeight: '700',
|
|
169
|
+
color: '#0F172A',
|
|
170
|
+
marginBottom: 6,
|
|
171
|
+
textAlign: 'center',
|
|
172
|
+
},
|
|
173
|
+
selectModalEmptySubtitle: {
|
|
174
|
+
fontSize: 13,
|
|
175
|
+
color: '#94A3B8',
|
|
176
|
+
textAlign: 'center',
|
|
177
|
+
lineHeight: 18,
|
|
178
|
+
},
|
|
179
|
+
selectOption: {
|
|
180
|
+
flexDirection: 'row',
|
|
181
|
+
alignItems: 'center',
|
|
182
|
+
paddingHorizontal: 18,
|
|
183
|
+
paddingVertical: 14,
|
|
184
|
+
borderBottomWidth: 1,
|
|
185
|
+
borderBottomColor: '#F8FAFC',
|
|
186
|
+
},
|
|
187
|
+
selectOptionActive: {
|
|
188
|
+
backgroundColor: '#EEF2FF',
|
|
189
|
+
},
|
|
190
|
+
selectOptionDot: {
|
|
191
|
+
width: 10,
|
|
192
|
+
height: 10,
|
|
193
|
+
borderRadius: 5,
|
|
194
|
+
marginRight: 10,
|
|
195
|
+
},
|
|
196
|
+
selectOptionIcon: {
|
|
197
|
+
marginRight: 10,
|
|
198
|
+
},
|
|
199
|
+
selectOptionText: {
|
|
200
|
+
fontSize: 15,
|
|
201
|
+
color: '#0F172A',
|
|
202
|
+
},
|
|
203
|
+
selectOptionTextActive: {
|
|
204
|
+
color: colors.primary,
|
|
205
|
+
fontWeight: '600',
|
|
206
|
+
},
|
|
207
|
+
modalFooter: {
|
|
208
|
+
flexDirection: 'row',
|
|
209
|
+
padding: 18,
|
|
210
|
+
borderTopWidth: 1,
|
|
211
|
+
borderTopColor: '#F1F5F9',
|
|
212
|
+
gap: 10,
|
|
213
|
+
},
|
|
214
|
+
modalButton: {
|
|
215
|
+
flex: 1,
|
|
216
|
+
paddingVertical: 13,
|
|
217
|
+
borderRadius: 12,
|
|
218
|
+
alignItems: 'center',
|
|
219
|
+
},
|
|
220
|
+
cancelButton: {
|
|
221
|
+
backgroundColor: '#94A3B8',
|
|
222
|
+
},
|
|
223
|
+
saveButton: {
|
|
224
|
+
backgroundColor: colors.primary,
|
|
225
|
+
},
|
|
226
|
+
cancelButtonText: {
|
|
227
|
+
color: '#fff',
|
|
228
|
+
fontSize: 15,
|
|
229
|
+
fontWeight: '600',
|
|
230
|
+
},
|
|
231
|
+
saveButtonText: {
|
|
232
|
+
color: '#fff',
|
|
233
|
+
fontSize: 15,
|
|
234
|
+
fontWeight: '600',
|
|
235
|
+
},
|
|
236
|
+
personInfo: {
|
|
237
|
+
flexDirection: 'row',
|
|
238
|
+
alignItems: 'center',
|
|
239
|
+
flex: 1,
|
|
240
|
+
},
|
|
241
|
+
avatarContainer: {
|
|
242
|
+
width: 40,
|
|
243
|
+
height: 40,
|
|
244
|
+
borderRadius: 12,
|
|
245
|
+
backgroundColor: '#EEF2FF',
|
|
246
|
+
alignItems: 'center',
|
|
247
|
+
justifyContent: 'center',
|
|
248
|
+
marginRight: 12,
|
|
249
|
+
},
|
|
250
|
+
personDetails: {
|
|
251
|
+
flex: 1,
|
|
252
|
+
},
|
|
253
|
+
personAlias: {
|
|
254
|
+
fontSize: 15,
|
|
255
|
+
fontWeight: '600',
|
|
256
|
+
color: '#0F172A',
|
|
257
|
+
marginBottom: 2,
|
|
258
|
+
},
|
|
259
|
+
personName: {
|
|
260
|
+
fontSize: 12,
|
|
261
|
+
color: '#94A3B8',
|
|
262
|
+
},
|
|
263
|
+
emptyState: {
|
|
264
|
+
padding: 40,
|
|
265
|
+
alignItems: 'center',
|
|
266
|
+
},
|
|
267
|
+
emptyText: {
|
|
268
|
+
color: '#94A3B8',
|
|
269
|
+
marginTop: 12,
|
|
270
|
+
fontSize: 14,
|
|
271
|
+
textAlign: 'center',
|
|
272
|
+
},
|
|
273
|
+
datePickerContainer: {
|
|
274
|
+
flexDirection: 'row',
|
|
275
|
+
gap: 8,
|
|
276
|
+
},
|
|
277
|
+
dateSelectButton: {
|
|
278
|
+
flexDirection: 'row',
|
|
279
|
+
alignItems: 'center',
|
|
280
|
+
justifyContent: 'space-between',
|
|
281
|
+
borderWidth: 1.5,
|
|
282
|
+
borderColor: '#E2E8F0',
|
|
283
|
+
borderRadius: 12,
|
|
284
|
+
paddingHorizontal: 14,
|
|
285
|
+
paddingVertical: 12,
|
|
286
|
+
backgroundColor: '#F8FAFC',
|
|
287
|
+
},
|
|
288
|
+
dateSelectText: {
|
|
289
|
+
fontSize: 15,
|
|
290
|
+
color: '#0F172A',
|
|
291
|
+
},
|
|
292
|
+
yearInput: {
|
|
293
|
+
textAlign: 'center',
|
|
294
|
+
justifyContent: 'center',
|
|
295
|
+
},
|
|
296
|
+
textInput: {
|
|
297
|
+
borderWidth: 1.5,
|
|
298
|
+
borderColor: '#E2E8F0',
|
|
299
|
+
borderRadius: 12,
|
|
300
|
+
paddingHorizontal: 14,
|
|
301
|
+
paddingVertical: 12,
|
|
302
|
+
fontSize: 15,
|
|
303
|
+
color: '#0F172A',
|
|
304
|
+
backgroundColor: '#F8FAFC',
|
|
305
|
+
textAlignVertical: 'top',
|
|
306
|
+
},
|
|
307
|
+
helpText: {
|
|
308
|
+
fontSize: 11,
|
|
309
|
+
color: '#94A3B8',
|
|
310
|
+
marginTop: 4,
|
|
311
|
+
},
|
|
312
|
+
phoneInputsContainer: {
|
|
313
|
+
gap: 10,
|
|
314
|
+
},
|
|
315
|
+
phoneInputRow: {
|
|
316
|
+
flexDirection: 'row',
|
|
317
|
+
alignItems: 'center',
|
|
318
|
+
gap: 8,
|
|
319
|
+
},
|
|
320
|
+
phoneInput: {
|
|
321
|
+
flex: 1,
|
|
322
|
+
},
|
|
323
|
+
addPhoneButton: {
|
|
324
|
+
flexDirection: 'row',
|
|
325
|
+
alignItems: 'center',
|
|
326
|
+
justifyContent: 'center',
|
|
327
|
+
paddingVertical: 11,
|
|
328
|
+
paddingHorizontal: 14,
|
|
329
|
+
borderWidth: 1.5,
|
|
330
|
+
borderColor: '#10B981',
|
|
331
|
+
borderRadius: 12,
|
|
332
|
+
backgroundColor: '#10B98110',
|
|
333
|
+
gap: 6,
|
|
334
|
+
},
|
|
335
|
+
addPhoneText: {
|
|
336
|
+
color: '#10B981',
|
|
337
|
+
fontSize: 13,
|
|
338
|
+
fontWeight: '600',
|
|
339
|
+
},
|
|
340
|
+
removePhoneButton: {
|
|
341
|
+
padding: 8,
|
|
342
|
+
borderRadius: 10,
|
|
343
|
+
backgroundColor: '#F43F5E10',
|
|
344
|
+
},
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
export default modalStyles;
|