vpt-sebraeds 0.0.99 → 0.0.101
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/components/Card/Card.stories.jsx +296 -296
- package/components/Header/HeaderV2.stories.jsx +1222 -1200
- package/components/Header/v2/README.md +779 -757
- package/components/Header/v2/index.jsx +228 -227
- package/components/Header/v2/parts/Information.jsx +73 -71
- package/components/Header/v2/parts/PointsBadge.jsx +42 -0
- package/components/Header/v2/parts/Variants.jsx +422 -420
- package/components/Header/v2/parts/index.jsx +25 -22
- package/components/Header/v2/styles.js +615 -598
- package/components/SEIcon/CustomIcon/boletoDasMei.jsx +1 -1
- package/components/SEIcon/CustomIcon/calculadoraPrecoIdeal.jsx +1 -1
- package/components/SEIcon/CustomIcon/calculadoraValuation.jsx +1 -1
- package/components/SEIcon/CustomIcon/capacidadePagamento.jsx +1 -1
- package/components/SEIcon/CustomIcon/capitalGiro.jsx +1 -1
- package/components/SEIcon/CustomIcon/catalogoFornecedores.jsx +1 -1
- package/components/SEIcon/CustomIcon/creditoPermutas.jsx +1 -1
- package/components/SEIcon/CustomIcon/dataValidadeEpi.jsx +1 -1
- package/components/SEIcon/CustomIcon/diagnosticoEstrategico.jsx +1 -1
- package/components/SEIcon/CustomIcon/dominandoRedesSociais.jsx +1 -1
- package/components/SEIcon/CustomIcon/empresaGoogle.jsx +1 -1
- package/components/SEIcon/CustomIcon/fluxoCaixa.jsx +1 -1
- package/components/SEIcon/CustomIcon/fornecedoresTi.jsx +1 -1
- package/components/SEIcon/CustomIcon/geradoresIdeiasIA.jsx +1 -1
- package/components/SEIcon/CustomIcon/gestaoAgendamento.jsx +1 -1
- package/components/SEIcon/CustomIcon/impostoMei.jsx +1 -1
- package/components/SEIcon/CustomIcon/indicadoresMercado.jsx +1 -1
- package/components/SEIcon/CustomIcon/listaEpi.jsx +1 -1
- package/components/SEIcon/CustomIcon/lucroPotencial.jsx +1 -1
- package/components/SEIcon/CustomIcon/melhoresRegioesComerciais.jsx +1 -1
- package/components/SEIcon/CustomIcon/ncmComCodigoDeBarras.jsx +1 -1
- package/components/SEIcon/CustomIcon/postsInteligentes.jsx +1 -1
- package/components/SEIcon/CustomIcon/sebraeConecta.jsx +1 -1
- package/components/SEIcon/CustomIcon/segurancaTrabalho.jsx +1 -1
- package/components/SEIcon/CustomIcon/simuladorEmprestimo.jsx +1 -1
- package/components/Toggle/index.jsx +1 -1
- package/dist/components/Header/v2/index.js +6 -5
- package/dist/components/Header/v2/parts/Information.d.ts +2 -1
- package/dist/components/Header/v2/parts/Information.d.ts.map +1 -1
- package/dist/components/Header/v2/parts/Information.js +15 -13
- package/dist/components/Header/v2/parts/PointsBadge.d.ts +4 -0
- package/dist/components/Header/v2/parts/PointsBadge.d.ts.map +1 -0
- package/dist/components/Header/v2/parts/PointsBadge.js +26 -0
- package/dist/components/Header/v2/parts/Variants.d.ts +3 -1
- package/dist/components/Header/v2/parts/Variants.d.ts.map +1 -1
- package/dist/components/Header/v2/parts/Variants.js +160 -158
- package/dist/components/Header/v2/parts/index.d.ts +5 -1
- package/dist/components/Header/v2/parts/index.js +3 -0
- package/dist/components/Header/v2/styles.d.ts +65 -38
- package/dist/components/Header/v2/styles.js +17 -0
- package/dist/components/Toggle/index.js +1 -1
- package/package.json +2 -2
- package/dist/components/ButtomGroup/index.d.ts +0 -36
- package/dist/components/ButtomGroup/index.d.ts.map +0 -1
- package/dist/components/ButtomGroup/index.js +0 -255
- package/dist/components/Header/components/Context.d.ts +0 -8
- package/dist/components/Header/components/Context.d.ts.map +0 -1
- package/dist/components/Header/components/Context.js +0 -21
- package/dist/components/Header/components/Information.d.ts +0 -7
- package/dist/components/Header/components/Information.d.ts.map +0 -1
- package/dist/components/Header/components/Information.js +0 -72
- package/dist/components/Header/components/Shortcut.d.ts +0 -6
- package/dist/components/Header/components/Shortcut.d.ts.map +0 -1
- package/dist/components/Header/components/Shortcut.js +0 -25
- package/dist/components/Header/components/SwitchAccount.d.ts +0 -9
- package/dist/components/Header/components/SwitchAccount.d.ts.map +0 -1
- package/dist/components/Header/components/SwitchAccount.js +0 -170
- package/dist/components/Header/components/Variants.d.ts +0 -23
- package/dist/components/Header/components/Variants.d.ts.map +0 -1
- package/dist/components/Header/components/Variants.js +0 -371
- package/dist/components/Header/components/index.d.ts +0 -34
- package/dist/components/Header/components/index.d.ts.map +0 -1
- package/dist/components/Header/components/index.js +0 -10
- package/dist/components/SEText/index.d.ts +0 -56
- package/dist/components/SEText/index.d.ts.map +0 -1
- package/dist/components/SEText/index.js +0 -116
- package/dist/components/SEText/styles.d.ts +0 -424
- package/dist/components/SEText/styles.d.ts.map +0 -1
- package/dist/components/SEText/styles.js +0 -18
- package/dist/components/Search/Search.d.ts +0 -15
- package/dist/components/Search/Search.d.ts.map +0 -1
- package/dist/components/Search/Search.js +0 -272
- package/dist/components/styles/colors.d.ts +0 -182
- package/dist/components/styles/colors.d.ts.map +0 -1
- package/dist/components/styles/colors.js +0 -180
- package/dist/components/styles/fonts.d.ts +0 -15
- package/dist/components/styles/fonts.d.ts.map +0 -1
- package/dist/components/styles/fonts.js +0 -15
- package/dist/components/styles/metrics.d.ts +0 -10
- package/dist/components/styles/metrics.d.ts.map +0 -1
- package/dist/components/styles/metrics.js +0 -11
- package/dist/components/styles/tokens/borders.d.ts +0 -14
- package/dist/components/styles/tokens/borders.d.ts.map +0 -1
- package/dist/components/styles/tokens/borders.js +0 -13
- package/dist/components/styles/tokens/colors.d.ts +0 -80
- package/dist/components/styles/tokens/colors.d.ts.map +0 -1
- package/dist/components/styles/tokens/colors.js +0 -81
- package/dist/components/styles/tokens/elevations.d.ts +0 -127
- package/dist/components/styles/tokens/elevations.d.ts.map +0 -1
- package/dist/components/styles/tokens/elevations.js +0 -47
- package/dist/components/styles/tokens/index.d.ts +0 -844
- package/dist/components/styles/tokens/index.d.ts.map +0 -1
- package/dist/components/styles/tokens/index.js +0 -28
- package/dist/components/styles/tokens/opacity.d.ts +0 -12
- package/dist/components/styles/tokens/opacity.d.ts.map +0 -1
- package/dist/components/styles/tokens/opacity.js +0 -11
- package/dist/components/styles/tokens/palette.d.ts +0 -86
- package/dist/components/styles/tokens/palette.d.ts.map +0 -1
- package/dist/components/styles/tokens/palette.js +0 -85
- package/dist/components/styles/tokens/radius.d.ts +0 -21
- package/dist/components/styles/tokens/radius.d.ts.map +0 -1
- package/dist/components/styles/tokens/radius.js +0 -11
- package/dist/components/styles/tokens/spacing.d.ts +0 -25
- package/dist/components/styles/tokens/spacing.d.ts.map +0 -1
- package/dist/components/styles/tokens/spacing.js +0 -24
- package/dist/components/styles/tokens/surfaces.d.ts +0 -27
- package/dist/components/styles/tokens/surfaces.d.ts.map +0 -1
- package/dist/components/styles/tokens/surfaces.js +0 -27
- package/dist/components/styles/tokens/typography.d.ts +0 -456
- package/dist/components/styles/tokens/typography.d.ts.map +0 -1
- package/dist/components/styles/tokens/typography.js +0 -264
- package/dist/components/styles/tokens.d.ts +0 -2
- package/dist/components/styles/tokens.d.ts.map +0 -1
- package/dist/components/styles/tokens.js +0 -1
- package/dist/styles/usePressableElevation.d.ts +0 -44
- package/dist/styles/usePressableElevation.d.ts.map +0 -1
- package/dist/styles/usePressableElevation.js +0 -38
|
@@ -1,296 +1,296 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { View, Text, StyleSheet, ScrollView } from 'react-native';
|
|
3
|
-
import Card from './index';
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: 'Atom/Card',
|
|
7
|
-
component: Card,
|
|
8
|
-
argTypes: {
|
|
9
|
-
minHeight: {
|
|
10
|
-
control: 'number',
|
|
11
|
-
description: 'Altura mínima do card',
|
|
12
|
-
defaultValue: 144,
|
|
13
|
-
},
|
|
14
|
-
borderColor: {
|
|
15
|
-
control: 'color',
|
|
16
|
-
description: 'Cor da borda',
|
|
17
|
-
defaultValue: '#E2E9FC',
|
|
18
|
-
},
|
|
19
|
-
borderWidth: {
|
|
20
|
-
control: 'number',
|
|
21
|
-
description: 'Largura da borda',
|
|
22
|
-
defaultValue: 1.5,
|
|
23
|
-
},
|
|
24
|
-
borderRadius: {
|
|
25
|
-
control: 'number',
|
|
26
|
-
description: 'Raio da borda',
|
|
27
|
-
defaultValue: 8,
|
|
28
|
-
},
|
|
29
|
-
backgroundColor: {
|
|
30
|
-
control: 'color',
|
|
31
|
-
description: 'Cor de fundo',
|
|
32
|
-
defaultValue: '#FFFFFF',
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
// ================ VARIAÇÕES ================
|
|
38
|
-
|
|
39
|
-
export const Default = {
|
|
40
|
-
render: () => (
|
|
41
|
-
<View style={{ width: 256 }}>
|
|
42
|
-
<Card>
|
|
43
|
-
<Card.IconBadge name="checkbox-line" />
|
|
44
|
-
<Card.Title>Lorem ipsum dolor sit amet</Card.Title>
|
|
45
|
-
<Card.Description>
|
|
46
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pellentesque risus vitae ante fringilla tempor. Curabitur ultrices leo neque, id porttitor lorem molestie ac.
|
|
47
|
-
</Card.Description>
|
|
48
|
-
</Card>
|
|
49
|
-
</View>
|
|
50
|
-
),
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export const SemIconBadge = {
|
|
54
|
-
render: () => (
|
|
55
|
-
<View style={{ width: 256 }}>
|
|
56
|
-
<Card>
|
|
57
|
-
<Card.Title>Lorem ipsum dolor sit amet</Card.Title>
|
|
58
|
-
<Card.Description>
|
|
59
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pellentesque risus vitae ante fringilla tempor. Curabitur ultrices leo neque, id porttitor lorem molestie ac.
|
|
60
|
-
</Card.Description>
|
|
61
|
-
</Card>
|
|
62
|
-
</View>
|
|
63
|
-
),
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export const SemTitle = {
|
|
67
|
-
render: () => (
|
|
68
|
-
<View style={{ width: 256 }}>
|
|
69
|
-
<Card>
|
|
70
|
-
<Card.IconBadge name="checkbox-line" />
|
|
71
|
-
<Card.Description>
|
|
72
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pellentesque risus vitae ante fringilla tempor. Curabitur ultrices leo neque, id porttitor lorem molestie ac.
|
|
73
|
-
</Card.Description>
|
|
74
|
-
</Card>
|
|
75
|
-
</View>
|
|
76
|
-
),
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export const SemDescription = {
|
|
80
|
-
render: () => (
|
|
81
|
-
<View style={{ width: 256 }}>
|
|
82
|
-
<Card>
|
|
83
|
-
<Card.IconBadge name="checkbox-line" />
|
|
84
|
-
<Card.Title>Lorem ipsum dolor sit amet</Card.Title>
|
|
85
|
-
</Card>
|
|
86
|
-
</View>
|
|
87
|
-
),
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
// ================ TODAS AS VARIAÇÕES ================
|
|
91
|
-
|
|
92
|
-
export const AllVariations = {
|
|
93
|
-
render: () => (
|
|
94
|
-
<ScrollView style={styles.page} contentContainerStyle={{ gap: 24 }}>
|
|
95
|
-
<View style={[styles.cardLarge, { gap: 24 }]}>
|
|
96
|
-
<Text style={styles.sectionTitle}>Structural Configurations</Text>
|
|
97
|
-
|
|
98
|
-
<View>
|
|
99
|
-
<Text style={styles.variantLabel}>default</Text>
|
|
100
|
-
<View style={{ width: 256 }}>
|
|
101
|
-
<Card>
|
|
102
|
-
<Card.IconBadge name="checkbox-line" />
|
|
103
|
-
<Card.Title>Lorem ipsum dolor sit amet</Card.Title>
|
|
104
|
-
<Card.Description>
|
|
105
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pellentesque risus vitae ante fringilla tempor. Curabitur ultrices leo neque, id porttitor lorem molestie ac.
|
|
106
|
-
</Card.Description>
|
|
107
|
-
</Card>
|
|
108
|
-
</View>
|
|
109
|
-
</View>
|
|
110
|
-
|
|
111
|
-
<View>
|
|
112
|
-
<Text style={styles.variantLabel}>sem Icon Badge</Text>
|
|
113
|
-
<View style={{ width: 256 }}>
|
|
114
|
-
<Card>
|
|
115
|
-
<Card.Title>Lorem ipsum dolor sit amet</Card.Title>
|
|
116
|
-
<Card.Description>
|
|
117
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pellentesque risus vitae ante fringilla tempor. Curabitur ultrices leo neque, id porttitor lorem molestie ac.
|
|
118
|
-
</Card.Description>
|
|
119
|
-
</Card>
|
|
120
|
-
</View>
|
|
121
|
-
</View>
|
|
122
|
-
|
|
123
|
-
<View>
|
|
124
|
-
<Text style={styles.variantLabel}>sem Title</Text>
|
|
125
|
-
<View style={{ width: 256 }}>
|
|
126
|
-
<Card>
|
|
127
|
-
<Card.IconBadge name="checkbox-line" />
|
|
128
|
-
<Card.Description>
|
|
129
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pellentesque risus vitae ante fringilla tempor. Curabitur ultrices leo neque, id porttitor lorem molestie ac.
|
|
130
|
-
</Card.Description>
|
|
131
|
-
</Card>
|
|
132
|
-
</View>
|
|
133
|
-
</View>
|
|
134
|
-
|
|
135
|
-
<View>
|
|
136
|
-
<Text style={styles.variantLabel}>sem Description</Text>
|
|
137
|
-
<View style={{ width: 256 }}>
|
|
138
|
-
<Card>
|
|
139
|
-
<Card.IconBadge name="checkbox-line" />
|
|
140
|
-
<Card.Title>Lorem ipsum dolor sit amet</Card.Title>
|
|
141
|
-
</Card>
|
|
142
|
-
</View>
|
|
143
|
-
</View>
|
|
144
|
-
</View>
|
|
145
|
-
</ScrollView>
|
|
146
|
-
),
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
// ================ CUSTOMIZAÇÃO ================
|
|
150
|
-
|
|
151
|
-
export const CustomStyles = {
|
|
152
|
-
render: () => (
|
|
153
|
-
<ScrollView style={styles.page} contentContainerStyle={{ gap: 24 }}>
|
|
154
|
-
<View style={[styles.cardLarge, { gap: 24 }]}>
|
|
155
|
-
<Text style={styles.sectionTitle}>Customização</Text>
|
|
156
|
-
|
|
157
|
-
<View>
|
|
158
|
-
<Text style={styles.variantLabel}>Borda azul</Text>
|
|
159
|
-
<View style={{ width: 256 }}>
|
|
160
|
-
<Card borderColor="#2A4FDA" borderWidth={2}>
|
|
161
|
-
<Card.IconBadge name="star-line" iconColor="#2A4FDA" backgroundColor="#E8ECFF" />
|
|
162
|
-
<Card.Title>Destaque</Card.Title>
|
|
163
|
-
<Card.Description>
|
|
164
|
-
Card com borda personalizada em azul.
|
|
165
|
-
</Card.Description>
|
|
166
|
-
</Card>
|
|
167
|
-
</View>
|
|
168
|
-
</View>
|
|
169
|
-
|
|
170
|
-
<View>
|
|
171
|
-
<Text style={styles.variantLabel}>Fundo colorido</Text>
|
|
172
|
-
<View style={{ width: 256 }}>
|
|
173
|
-
<Card backgroundColor="#F1F4FF" borderColor="#D1D9F0">
|
|
174
|
-
<Card.IconBadge name="lightbulb-line" iconColor="#FFB800" backgroundColor="#FFF8E1" />
|
|
175
|
-
<Card.Title>Dica</Card.Title>
|
|
176
|
-
<Card.Description>
|
|
177
|
-
Card com fundo personalizado.
|
|
178
|
-
</Card.Description>
|
|
179
|
-
</Card>
|
|
180
|
-
</View>
|
|
181
|
-
</View>
|
|
182
|
-
|
|
183
|
-
<View>
|
|
184
|
-
<Text style={styles.variantLabel}>Título customizado</Text>
|
|
185
|
-
<View style={{ width: 256 }}>
|
|
186
|
-
<Card>
|
|
187
|
-
<Card.IconBadge name="check-double-line" iconColor="#00A86B" backgroundColor="#E8F5E9" />
|
|
188
|
-
<Card.Title style={{ color: '#00A86B' }}>Sucesso!</Card.Title>
|
|
189
|
-
<Card.Description>
|
|
190
|
-
Título com cor personalizada.
|
|
191
|
-
</Card.Description>
|
|
192
|
-
</Card>
|
|
193
|
-
</View>
|
|
194
|
-
</View>
|
|
195
|
-
|
|
196
|
-
<View>
|
|
197
|
-
<Text style={styles.variantLabel}>Container grande</Text>
|
|
198
|
-
<View style={{ width: 256 }}>
|
|
199
|
-
<Card>
|
|
200
|
-
<Card.IconBadge
|
|
201
|
-
name="heart-line"
|
|
202
|
-
containerSize={48}
|
|
203
|
-
iconSize={24}
|
|
204
|
-
iconColor="#E91E63"
|
|
205
|
-
backgroundColor="#FCE4EC"
|
|
206
|
-
/>
|
|
207
|
-
<Card.Title>Favorito</Card.Title>
|
|
208
|
-
<Card.Description>
|
|
209
|
-
Container e ícone com tamanho customizado.
|
|
210
|
-
</Card.Description>
|
|
211
|
-
</Card>
|
|
212
|
-
</View>
|
|
213
|
-
</View>
|
|
214
|
-
</View>
|
|
215
|
-
</ScrollView>
|
|
216
|
-
),
|
|
217
|
-
};
|
|
218
|
-
|
|
219
|
-
// ================ DIFERENTES ÍCONES ================
|
|
220
|
-
|
|
221
|
-
export const DifferentIcons = {
|
|
222
|
-
render: () => (
|
|
223
|
-
<ScrollView style={styles.page} contentContainerStyle={{ gap: 24 }}>
|
|
224
|
-
<View style={[styles.cardLarge, { gap: 24 }]}>
|
|
225
|
-
<Text style={styles.sectionTitle}>Diferentes Ícones</Text>
|
|
226
|
-
|
|
227
|
-
<View>
|
|
228
|
-
<View style={{ width: 256 }}>
|
|
229
|
-
<Card>
|
|
230
|
-
<Card.IconBadge name="user-line" />
|
|
231
|
-
<Card.Title>Perfil</Card.Title>
|
|
232
|
-
<Card.Description>Gerencie suas informações pessoais.</Card.Description>
|
|
233
|
-
</Card>
|
|
234
|
-
</View>
|
|
235
|
-
</View>
|
|
236
|
-
|
|
237
|
-
<View>
|
|
238
|
-
<View style={{ width: 256 }}>
|
|
239
|
-
<Card>
|
|
240
|
-
<Card.IconBadge name="settings-3-line" />
|
|
241
|
-
<Card.Title>Configurações</Card.Title>
|
|
242
|
-
<Card.Description>Ajuste as preferências do aplicativo.</Card.Description>
|
|
243
|
-
</Card>
|
|
244
|
-
</View>
|
|
245
|
-
</View>
|
|
246
|
-
|
|
247
|
-
<View>
|
|
248
|
-
<View style={{ width: 256 }}>
|
|
249
|
-
<Card>
|
|
250
|
-
<Card.IconBadge name="notification-line" />
|
|
251
|
-
<Card.Title>Notificações</Card.Title>
|
|
252
|
-
<Card.Description>Configure seus alertas e avisos.</Card.Description>
|
|
253
|
-
</Card>
|
|
254
|
-
</View>
|
|
255
|
-
</View>
|
|
256
|
-
|
|
257
|
-
<View>
|
|
258
|
-
<View style={{ width: 256 }}>
|
|
259
|
-
<Card>
|
|
260
|
-
<Card.IconBadge name="shield-check-line" />
|
|
261
|
-
<Card.Title>Segurança</Card.Title>
|
|
262
|
-
<Card.Description>Proteja sua conta com verificação.</Card.Description>
|
|
263
|
-
</Card>
|
|
264
|
-
</View>
|
|
265
|
-
</View>
|
|
266
|
-
</View>
|
|
267
|
-
</ScrollView>
|
|
268
|
-
),
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
const styles = StyleSheet.create({
|
|
272
|
-
page: {
|
|
273
|
-
width: '100%',
|
|
274
|
-
},
|
|
275
|
-
cardLarge: {
|
|
276
|
-
backgroundColor: '#F1F5FF',
|
|
277
|
-
borderRadius: 24,
|
|
278
|
-
padding: 24,
|
|
279
|
-
minHeight: 180,
|
|
280
|
-
width: '100%',
|
|
281
|
-
},
|
|
282
|
-
sectionTitle: {
|
|
283
|
-
fontSize: 14,
|
|
284
|
-
fontWeight: '700',
|
|
285
|
-
color: '#081032',
|
|
286
|
-
marginBottom: 8,
|
|
287
|
-
textTransform: 'uppercase',
|
|
288
|
-
},
|
|
289
|
-
variantLabel: {
|
|
290
|
-
fontSize: 12,
|
|
291
|
-
fontWeight: '600',
|
|
292
|
-
color: '#687499',
|
|
293
|
-
marginBottom: 8,
|
|
294
|
-
textTransform: 'uppercase',
|
|
295
|
-
},
|
|
296
|
-
});
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text, StyleSheet, ScrollView } from 'react-native';
|
|
3
|
+
import Card from './index';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Atom/Card',
|
|
7
|
+
component: Card,
|
|
8
|
+
argTypes: {
|
|
9
|
+
minHeight: {
|
|
10
|
+
control: 'number',
|
|
11
|
+
description: 'Altura mínima do card',
|
|
12
|
+
defaultValue: 144,
|
|
13
|
+
},
|
|
14
|
+
borderColor: {
|
|
15
|
+
control: 'color',
|
|
16
|
+
description: 'Cor da borda',
|
|
17
|
+
defaultValue: '#E2E9FC',
|
|
18
|
+
},
|
|
19
|
+
borderWidth: {
|
|
20
|
+
control: 'number',
|
|
21
|
+
description: 'Largura da borda',
|
|
22
|
+
defaultValue: 1.5,
|
|
23
|
+
},
|
|
24
|
+
borderRadius: {
|
|
25
|
+
control: 'number',
|
|
26
|
+
description: 'Raio da borda',
|
|
27
|
+
defaultValue: 8,
|
|
28
|
+
},
|
|
29
|
+
backgroundColor: {
|
|
30
|
+
control: 'color',
|
|
31
|
+
description: 'Cor de fundo',
|
|
32
|
+
defaultValue: '#FFFFFF',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
// ================ VARIAÇÕES ================
|
|
38
|
+
|
|
39
|
+
export const Default = {
|
|
40
|
+
render: () => (
|
|
41
|
+
<View style={{ width: 256 }}>
|
|
42
|
+
<Card>
|
|
43
|
+
<Card.IconBadge name="checkbox-line" />
|
|
44
|
+
<Card.Title>Lorem ipsum dolor sit amet</Card.Title>
|
|
45
|
+
<Card.Description>
|
|
46
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pellentesque risus vitae ante fringilla tempor. Curabitur ultrices leo neque, id porttitor lorem molestie ac.
|
|
47
|
+
</Card.Description>
|
|
48
|
+
</Card>
|
|
49
|
+
</View>
|
|
50
|
+
),
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export const SemIconBadge = {
|
|
54
|
+
render: () => (
|
|
55
|
+
<View style={{ width: 256 }}>
|
|
56
|
+
<Card>
|
|
57
|
+
<Card.Title>Lorem ipsum dolor sit amet</Card.Title>
|
|
58
|
+
<Card.Description>
|
|
59
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pellentesque risus vitae ante fringilla tempor. Curabitur ultrices leo neque, id porttitor lorem molestie ac.
|
|
60
|
+
</Card.Description>
|
|
61
|
+
</Card>
|
|
62
|
+
</View>
|
|
63
|
+
),
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export const SemTitle = {
|
|
67
|
+
render: () => (
|
|
68
|
+
<View style={{ width: 256 }}>
|
|
69
|
+
<Card>
|
|
70
|
+
<Card.IconBadge name="checkbox-line" />
|
|
71
|
+
<Card.Description>
|
|
72
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pellentesque risus vitae ante fringilla tempor. Curabitur ultrices leo neque, id porttitor lorem molestie ac.
|
|
73
|
+
</Card.Description>
|
|
74
|
+
</Card>
|
|
75
|
+
</View>
|
|
76
|
+
),
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export const SemDescription = {
|
|
80
|
+
render: () => (
|
|
81
|
+
<View style={{ width: 256 }}>
|
|
82
|
+
<Card>
|
|
83
|
+
<Card.IconBadge name="checkbox-line" />
|
|
84
|
+
<Card.Title>Lorem ipsum dolor sit amet</Card.Title>
|
|
85
|
+
</Card>
|
|
86
|
+
</View>
|
|
87
|
+
),
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
// ================ TODAS AS VARIAÇÕES ================
|
|
91
|
+
|
|
92
|
+
export const AllVariations = {
|
|
93
|
+
render: () => (
|
|
94
|
+
<ScrollView style={styles.page} contentContainerStyle={{ gap: 24 }}>
|
|
95
|
+
<View style={[styles.cardLarge, { gap: 24 }]}>
|
|
96
|
+
<Text style={styles.sectionTitle}>Structural Configurations</Text>
|
|
97
|
+
|
|
98
|
+
<View>
|
|
99
|
+
<Text style={styles.variantLabel}>default</Text>
|
|
100
|
+
<View style={{ width: 256 }}>
|
|
101
|
+
<Card>
|
|
102
|
+
<Card.IconBadge name="checkbox-line" />
|
|
103
|
+
<Card.Title>Lorem ipsum dolor sit amet</Card.Title>
|
|
104
|
+
<Card.Description>
|
|
105
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pellentesque risus vitae ante fringilla tempor. Curabitur ultrices leo neque, id porttitor lorem molestie ac.
|
|
106
|
+
</Card.Description>
|
|
107
|
+
</Card>
|
|
108
|
+
</View>
|
|
109
|
+
</View>
|
|
110
|
+
|
|
111
|
+
<View>
|
|
112
|
+
<Text style={styles.variantLabel}>sem Icon Badge</Text>
|
|
113
|
+
<View style={{ width: 256 }}>
|
|
114
|
+
<Card>
|
|
115
|
+
<Card.Title>Lorem ipsum dolor sit amet</Card.Title>
|
|
116
|
+
<Card.Description>
|
|
117
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pellentesque risus vitae ante fringilla tempor. Curabitur ultrices leo neque, id porttitor lorem molestie ac.
|
|
118
|
+
</Card.Description>
|
|
119
|
+
</Card>
|
|
120
|
+
</View>
|
|
121
|
+
</View>
|
|
122
|
+
|
|
123
|
+
<View>
|
|
124
|
+
<Text style={styles.variantLabel}>sem Title</Text>
|
|
125
|
+
<View style={{ width: 256 }}>
|
|
126
|
+
<Card>
|
|
127
|
+
<Card.IconBadge name="checkbox-line" />
|
|
128
|
+
<Card.Description>
|
|
129
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pellentesque risus vitae ante fringilla tempor. Curabitur ultrices leo neque, id porttitor lorem molestie ac.
|
|
130
|
+
</Card.Description>
|
|
131
|
+
</Card>
|
|
132
|
+
</View>
|
|
133
|
+
</View>
|
|
134
|
+
|
|
135
|
+
<View>
|
|
136
|
+
<Text style={styles.variantLabel}>sem Description</Text>
|
|
137
|
+
<View style={{ width: 256 }}>
|
|
138
|
+
<Card>
|
|
139
|
+
<Card.IconBadge name="checkbox-line" />
|
|
140
|
+
<Card.Title>Lorem ipsum dolor sit amet</Card.Title>
|
|
141
|
+
</Card>
|
|
142
|
+
</View>
|
|
143
|
+
</View>
|
|
144
|
+
</View>
|
|
145
|
+
</ScrollView>
|
|
146
|
+
),
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
// ================ CUSTOMIZAÇÃO ================
|
|
150
|
+
|
|
151
|
+
export const CustomStyles = {
|
|
152
|
+
render: () => (
|
|
153
|
+
<ScrollView style={styles.page} contentContainerStyle={{ gap: 24 }}>
|
|
154
|
+
<View style={[styles.cardLarge, { gap: 24 }]}>
|
|
155
|
+
<Text style={styles.sectionTitle}>Customização</Text>
|
|
156
|
+
|
|
157
|
+
<View>
|
|
158
|
+
<Text style={styles.variantLabel}>Borda azul</Text>
|
|
159
|
+
<View style={{ width: 256 }}>
|
|
160
|
+
<Card borderColor="#2A4FDA" borderWidth={2}>
|
|
161
|
+
<Card.IconBadge name="star-line" iconColor="#2A4FDA" backgroundColor="#E8ECFF" />
|
|
162
|
+
<Card.Title>Destaque</Card.Title>
|
|
163
|
+
<Card.Description>
|
|
164
|
+
Card com borda personalizada em azul.
|
|
165
|
+
</Card.Description>
|
|
166
|
+
</Card>
|
|
167
|
+
</View>
|
|
168
|
+
</View>
|
|
169
|
+
|
|
170
|
+
<View>
|
|
171
|
+
<Text style={styles.variantLabel}>Fundo colorido</Text>
|
|
172
|
+
<View style={{ width: 256 }}>
|
|
173
|
+
<Card backgroundColor="#F1F4FF" borderColor="#D1D9F0">
|
|
174
|
+
<Card.IconBadge name="lightbulb-line" iconColor="#FFB800" backgroundColor="#FFF8E1" />
|
|
175
|
+
<Card.Title>Dica</Card.Title>
|
|
176
|
+
<Card.Description>
|
|
177
|
+
Card com fundo personalizado.
|
|
178
|
+
</Card.Description>
|
|
179
|
+
</Card>
|
|
180
|
+
</View>
|
|
181
|
+
</View>
|
|
182
|
+
|
|
183
|
+
<View>
|
|
184
|
+
<Text style={styles.variantLabel}>Título customizado</Text>
|
|
185
|
+
<View style={{ width: 256 }}>
|
|
186
|
+
<Card>
|
|
187
|
+
<Card.IconBadge name="check-double-line" iconColor="#00A86B" backgroundColor="#E8F5E9" />
|
|
188
|
+
<Card.Title style={{ color: '#00A86B' }}>Sucesso!</Card.Title>
|
|
189
|
+
<Card.Description>
|
|
190
|
+
Título com cor personalizada.
|
|
191
|
+
</Card.Description>
|
|
192
|
+
</Card>
|
|
193
|
+
</View>
|
|
194
|
+
</View>
|
|
195
|
+
|
|
196
|
+
<View>
|
|
197
|
+
<Text style={styles.variantLabel}>Container grande</Text>
|
|
198
|
+
<View style={{ width: 256 }}>
|
|
199
|
+
<Card>
|
|
200
|
+
<Card.IconBadge
|
|
201
|
+
name="heart-line"
|
|
202
|
+
containerSize={48}
|
|
203
|
+
iconSize={24}
|
|
204
|
+
iconColor="#E91E63"
|
|
205
|
+
backgroundColor="#FCE4EC"
|
|
206
|
+
/>
|
|
207
|
+
<Card.Title>Favorito</Card.Title>
|
|
208
|
+
<Card.Description>
|
|
209
|
+
Container e ícone com tamanho customizado.
|
|
210
|
+
</Card.Description>
|
|
211
|
+
</Card>
|
|
212
|
+
</View>
|
|
213
|
+
</View>
|
|
214
|
+
</View>
|
|
215
|
+
</ScrollView>
|
|
216
|
+
),
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
// ================ DIFERENTES ÍCONES ================
|
|
220
|
+
|
|
221
|
+
export const DifferentIcons = {
|
|
222
|
+
render: () => (
|
|
223
|
+
<ScrollView style={styles.page} contentContainerStyle={{ gap: 24 }}>
|
|
224
|
+
<View style={[styles.cardLarge, { gap: 24 }]}>
|
|
225
|
+
<Text style={styles.sectionTitle}>Diferentes Ícones</Text>
|
|
226
|
+
|
|
227
|
+
<View>
|
|
228
|
+
<View style={{ width: 256 }}>
|
|
229
|
+
<Card>
|
|
230
|
+
<Card.IconBadge name="user-line" />
|
|
231
|
+
<Card.Title>Perfil</Card.Title>
|
|
232
|
+
<Card.Description>Gerencie suas informações pessoais.</Card.Description>
|
|
233
|
+
</Card>
|
|
234
|
+
</View>
|
|
235
|
+
</View>
|
|
236
|
+
|
|
237
|
+
<View>
|
|
238
|
+
<View style={{ width: 256 }}>
|
|
239
|
+
<Card>
|
|
240
|
+
<Card.IconBadge name="settings-3-line" />
|
|
241
|
+
<Card.Title>Configurações</Card.Title>
|
|
242
|
+
<Card.Description>Ajuste as preferências do aplicativo.</Card.Description>
|
|
243
|
+
</Card>
|
|
244
|
+
</View>
|
|
245
|
+
</View>
|
|
246
|
+
|
|
247
|
+
<View>
|
|
248
|
+
<View style={{ width: 256 }}>
|
|
249
|
+
<Card>
|
|
250
|
+
<Card.IconBadge name="notification-line" />
|
|
251
|
+
<Card.Title>Notificações</Card.Title>
|
|
252
|
+
<Card.Description>Configure seus alertas e avisos.</Card.Description>
|
|
253
|
+
</Card>
|
|
254
|
+
</View>
|
|
255
|
+
</View>
|
|
256
|
+
|
|
257
|
+
<View>
|
|
258
|
+
<View style={{ width: 256 }}>
|
|
259
|
+
<Card>
|
|
260
|
+
<Card.IconBadge name="shield-check-line" />
|
|
261
|
+
<Card.Title>Segurança</Card.Title>
|
|
262
|
+
<Card.Description>Proteja sua conta com verificação.</Card.Description>
|
|
263
|
+
</Card>
|
|
264
|
+
</View>
|
|
265
|
+
</View>
|
|
266
|
+
</View>
|
|
267
|
+
</ScrollView>
|
|
268
|
+
),
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
const styles = StyleSheet.create({
|
|
272
|
+
page: {
|
|
273
|
+
width: '100%',
|
|
274
|
+
},
|
|
275
|
+
cardLarge: {
|
|
276
|
+
backgroundColor: '#F1F5FF',
|
|
277
|
+
borderRadius: 24,
|
|
278
|
+
padding: 24,
|
|
279
|
+
minHeight: 180,
|
|
280
|
+
width: '100%',
|
|
281
|
+
},
|
|
282
|
+
sectionTitle: {
|
|
283
|
+
fontSize: 14,
|
|
284
|
+
fontWeight: '700',
|
|
285
|
+
color: '#081032',
|
|
286
|
+
marginBottom: 8,
|
|
287
|
+
textTransform: 'uppercase',
|
|
288
|
+
},
|
|
289
|
+
variantLabel: {
|
|
290
|
+
fontSize: 12,
|
|
291
|
+
fontWeight: '600',
|
|
292
|
+
color: '#687499',
|
|
293
|
+
marginBottom: 8,
|
|
294
|
+
textTransform: 'uppercase',
|
|
295
|
+
},
|
|
296
|
+
});
|