vpt-sebraeds 0.0.67 → 0.0.70
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/Accordion/Accordion.stories.jsx +131 -533
- package/components/Accordion/README.md +144 -0
- package/components/Accordion/index.jsx +258 -312
- package/components/Card/Card.stories.jsx +296 -296
- package/components/Card/index.jsx +190 -190
- package/components/Header/HeaderV2.stories.jsx +94 -0
- package/components/Header/v2/index.jsx +7 -0
- package/components/Header/v2/parts/BackButton.jsx +36 -0
- package/components/Header/v2/parts/SwitchAccount.jsx +183 -45
- package/components/Header/v2/parts/Variants.jsx +49 -12
- package/components/Header/v2/parts/index.jsx +3 -0
- package/components/Header/v2/styles.js +64 -0
- 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/dist/components/Accordion/index.d.ts +64 -53
- package/dist/components/Accordion/index.d.ts.map +1 -1
- package/dist/components/Accordion/index.js +211 -213
- package/dist/components/Card/index.js +12 -12
- package/dist/components/Header/v2/index.d.ts.map +1 -1
- package/dist/components/Header/v2/index.js +7 -0
- package/dist/components/Header/v2/parts/BackButton.d.ts +8 -0
- package/dist/components/Header/v2/parts/BackButton.d.ts.map +1 -0
- package/dist/components/Header/v2/parts/BackButton.js +23 -0
- package/dist/components/Header/v2/parts/SwitchAccount.d.ts +2 -1
- package/dist/components/Header/v2/parts/SwitchAccount.d.ts.map +1 -1
- package/dist/components/Header/v2/parts/SwitchAccount.js +160 -43
- package/dist/components/Header/v2/parts/Variants.d.ts +8 -0
- package/dist/components/Header/v2/parts/Variants.d.ts.map +1 -1
- package/dist/components/Header/v2/parts/Variants.js +35 -10
- package/dist/components/Header/v2/parts/index.d.ts +10 -0
- package/dist/components/Header/v2/parts/index.js +3 -0
- package/dist/components/Header/v2/styles.d.ts +172 -60
- package/dist/components/Header/v2/styles.js +64 -0
- package/package.json +2 -2
|
@@ -1,545 +1,143 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const LONG_TEXT = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vestibulum accumsan metus, eget mollis elit venenatis quis. Curabitur ornare, neque id pharetra accumsan, odio enim maximus massa, nec maximus arcu sapien ut massa. Curabitur lobortis massa id diam ultrices tincidunt. Pellentesque elementum mollis mattis. Fusce purus tortor, fermentum in uma tincidunt, auctor pharetra ex. Ut facilisis convallis elit id dignissim. Morbi pretium turpis turpis, eu vehicula eros scelerisque euismod. Integer ultrices ultrices augue vel tincidunt. Vivamus molestie viverra ex, id ultrices felis placerat vel. Morbi sed lobortis elit. Aenean ullamcorper lectus ac ante ornare, sed malesuada eros tincidunt.";
|
|
7
|
-
|
|
8
|
-
// Fundo branco: borda inferior visível
|
|
9
|
-
const WHITE_BG_PROPS = {
|
|
10
|
-
backgroundColor: "#FFFFFF",
|
|
11
|
-
contentBackgroundColor: "#FFFFFF",
|
|
12
|
-
showBottomBorder: true,
|
|
13
|
-
bottomBorderColor: '#E2E9FC',
|
|
14
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import Accordion from '.';
|
|
4
|
+
import SEText from '../SEText';
|
|
15
5
|
|
|
16
6
|
const meta = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<View style={{ flexDirection: 'column' }}>
|
|
24
|
-
<SEText type="ns-subtitle" color="#000000" lineHeight={24} style={{ marginBottom: 16 }}>
|
|
25
|
-
{props.content || LONG_TEXT}
|
|
26
|
-
</SEText>
|
|
27
|
-
<Accordion
|
|
28
|
-
nested
|
|
29
|
-
title="Item 01"
|
|
30
|
-
content={
|
|
31
|
-
<SEText type="ns-subtitle" color="#000000" lineHeight={24}>
|
|
32
|
-
Sed nulla quam, fermentum tincidunt lacus at, viverra vehicula eros. Etiam neque libero, vulputate sed consectetur nec, imperdiet sed turpis.
|
|
33
|
-
</SEText>
|
|
34
|
-
}
|
|
35
|
-
/>
|
|
36
|
-
</View>
|
|
37
|
-
}
|
|
38
|
-
/>
|
|
39
|
-
),
|
|
40
|
-
tags: ["autodocs"],
|
|
41
|
-
parameters: {
|
|
42
|
-
layout: "centered",
|
|
43
|
-
backgrounds: {
|
|
44
|
-
default: "light",
|
|
45
|
-
values: [
|
|
46
|
-
{
|
|
47
|
-
name: "light",
|
|
48
|
-
value: "#f4f4f4"
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
argTypes: {
|
|
54
|
-
title: {
|
|
55
|
-
description: "Título do acordeon",
|
|
56
|
-
control: "text",
|
|
57
|
-
},
|
|
58
|
-
avatarUrl: {
|
|
59
|
-
description: "URL da foto/avatar ao lado do título",
|
|
60
|
-
control: "text",
|
|
61
|
-
},
|
|
62
|
-
avatarName: {
|
|
63
|
-
description: "Nome para fallback de iniciais no avatar",
|
|
64
|
-
control: "text",
|
|
65
|
-
},
|
|
66
|
-
content: {
|
|
67
|
-
description: "Conteúdo que será exibido quando o acordeon estiver aberto",
|
|
68
|
-
control: "text",
|
|
69
|
-
},
|
|
70
|
-
initiallyOpen: {
|
|
71
|
-
description: "Define se o acordeon deve iniciar aberto",
|
|
72
|
-
control: "boolean",
|
|
73
|
-
},
|
|
74
|
-
leadingIconName: {
|
|
75
|
-
description: "Nome do ícone leading (RemixIcon)",
|
|
76
|
-
control: "text",
|
|
77
|
-
},
|
|
78
|
-
leadingIconSize: {
|
|
79
|
-
description: "Tamanho do ícone leading",
|
|
80
|
-
control: "number",
|
|
81
|
-
},
|
|
82
|
-
leadingIconColor: {
|
|
83
|
-
description: "Cor do ícone leading",
|
|
84
|
-
control: "color",
|
|
85
|
-
},
|
|
86
|
-
leadingIconContainerSize: {
|
|
87
|
-
description: "Tamanho do container do ícone leading",
|
|
88
|
-
control: "number",
|
|
89
|
-
},
|
|
90
|
-
leadingIconContainerColor: {
|
|
91
|
-
description: "Cor de fundo do container do ícone leading",
|
|
92
|
-
control: "color",
|
|
93
|
-
},
|
|
94
|
-
leadingIconContainerBorderRadius: {
|
|
95
|
-
description: "Border radius do container do ícone leading",
|
|
96
|
-
control: "number",
|
|
97
|
-
},
|
|
98
|
-
overlineText: {
|
|
99
|
-
description: "Texto overline acima do título (variante compound)",
|
|
100
|
-
control: "text",
|
|
101
|
-
},
|
|
102
|
-
overlineColor: {
|
|
103
|
-
description: "Cor do texto overline",
|
|
104
|
-
control: "color",
|
|
105
|
-
},
|
|
106
|
-
statusText: {
|
|
107
|
-
description: "Texto do badge de status (ex: 'Success')",
|
|
108
|
-
control: "text",
|
|
109
|
-
},
|
|
110
|
-
statusIcon: {
|
|
111
|
-
description: "Ícone do badge de status",
|
|
112
|
-
control: "text",
|
|
113
|
-
},
|
|
114
|
-
statusColor: {
|
|
115
|
-
description: "Cor do badge de status (ícone + texto)",
|
|
116
|
-
control: "color",
|
|
117
|
-
},
|
|
118
|
-
borderStyle: {
|
|
119
|
-
description: "Estilo da borda: solid ou dashed",
|
|
120
|
-
control: "select",
|
|
121
|
-
options: ["solid", "dashed"],
|
|
122
|
-
},
|
|
123
|
-
borderColor: {
|
|
124
|
-
description: "Cor da borda do container",
|
|
125
|
-
control: "color",
|
|
126
|
-
},
|
|
127
|
-
borderWidth: {
|
|
128
|
-
description: "Largura da borda",
|
|
129
|
-
control: "number",
|
|
130
|
-
},
|
|
131
|
-
borderRadius: {
|
|
132
|
-
description: "Raio da borda",
|
|
133
|
-
control: "number",
|
|
134
|
-
},
|
|
135
|
-
backgroundColor: {
|
|
136
|
-
description: "Cor de fundo do container",
|
|
137
|
-
control: "color",
|
|
138
|
-
},
|
|
139
|
-
headerBackgroundColor: {
|
|
140
|
-
description: "Cor de fundo do header (repouso)",
|
|
141
|
-
control: "color",
|
|
142
|
-
},
|
|
143
|
-
activeHeaderBackgroundColor: {
|
|
144
|
-
description: "Cor de fundo do header (ativo/aberto)",
|
|
145
|
-
control: "color",
|
|
146
|
-
},
|
|
147
|
-
headerTextColor: {
|
|
148
|
-
description: "Cor do texto do header (repouso)",
|
|
149
|
-
control: "color",
|
|
150
|
-
},
|
|
151
|
-
activeHeaderTextColor: {
|
|
152
|
-
description: "Cor do texto do header (ativo/aberto)",
|
|
153
|
-
control: "color",
|
|
154
|
-
},
|
|
155
|
-
arrowIcon: {
|
|
156
|
-
description: "Ícone da seta (trailing icon)",
|
|
157
|
-
control: "text",
|
|
158
|
-
},
|
|
159
|
-
arrowSize: {
|
|
160
|
-
description: "Tamanho da seta",
|
|
161
|
-
control: "number",
|
|
162
|
-
},
|
|
163
|
-
arrowColor: {
|
|
164
|
-
description: "Cor da seta (repouso)",
|
|
165
|
-
control: "color",
|
|
166
|
-
},
|
|
167
|
-
activeArrowColor: {
|
|
168
|
-
description: "Cor da seta (ativo/aberto)",
|
|
169
|
-
control: "color",
|
|
170
|
-
},
|
|
171
|
-
showContentBorder: {
|
|
172
|
-
description: "Exibir borda entre header e conteúdo",
|
|
173
|
-
control: "boolean",
|
|
174
|
-
},
|
|
175
|
-
contentBackgroundColor: {
|
|
176
|
-
description: "Cor de fundo da área de conteúdo",
|
|
177
|
-
control: "color",
|
|
178
|
-
},
|
|
179
|
-
},
|
|
7
|
+
title: 'Atom/Accordion',
|
|
8
|
+
component: Accordion,
|
|
9
|
+
tags: ['autodocs'],
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: 'centered',
|
|
12
|
+
},
|
|
180
13
|
};
|
|
181
14
|
|
|
182
15
|
export default meta;
|
|
183
16
|
|
|
184
|
-
|
|
17
|
+
const Content = () => (
|
|
18
|
+
<SEText type="ns-sm-body" style={{ lineHeight: 24 }}>
|
|
19
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vestibulum accumsan metus, eget mollis elit venenatis quis. Curabitur ornare, neque id pharetra accumsan.
|
|
20
|
+
</SEText>
|
|
21
|
+
);
|
|
185
22
|
|
|
186
23
|
export const Default = {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
24
|
+
args: {
|
|
25
|
+
title: 'Asset base',
|
|
26
|
+
content: <Content />,
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const Success = {
|
|
31
|
+
render: () => (
|
|
32
|
+
<View style={{ width: 350 }}>
|
|
33
|
+
<Accordion>
|
|
34
|
+
<Accordion.Header variant="success" title="Success" />
|
|
35
|
+
<Accordion.Content><Content /></Accordion.Content>
|
|
36
|
+
</Accordion>
|
|
37
|
+
</View>
|
|
38
|
+
)
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const Alert = {
|
|
42
|
+
render: () => (
|
|
43
|
+
<View style={{ width: 350 }}>
|
|
44
|
+
<Accordion>
|
|
45
|
+
<Accordion.Header variant="alert" title="Alert" />
|
|
46
|
+
<Accordion.Content><Content /></Accordion.Content>
|
|
47
|
+
</Accordion>
|
|
48
|
+
</View>
|
|
49
|
+
)
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export const Error = {
|
|
53
|
+
render: () => (
|
|
54
|
+
<View style={{ width: 350 }}>
|
|
55
|
+
<Accordion>
|
|
56
|
+
<Accordion.Header variant="error" title="Error" />
|
|
57
|
+
<Accordion.Content><Content /></Accordion.Content>
|
|
58
|
+
</Accordion>
|
|
59
|
+
</View>
|
|
60
|
+
)
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export const Overline = {
|
|
64
|
+
render: () => (
|
|
65
|
+
<View style={{ width: 350 }}>
|
|
66
|
+
<Accordion>
|
|
67
|
+
<Accordion.Header overline="Overline" title="Label" />
|
|
68
|
+
<Accordion.Content><Content /></Accordion.Content>
|
|
69
|
+
</Accordion>
|
|
70
|
+
</View>
|
|
71
|
+
)
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export const LabelLarge = {
|
|
75
|
+
render: () => (
|
|
76
|
+
<View style={{ width: 350 }}>
|
|
77
|
+
<Accordion>
|
|
78
|
+
<Accordion.Header label="9.876.543.210" />
|
|
79
|
+
<Accordion.Content><Content /></Accordion.Content>
|
|
80
|
+
</Accordion>
|
|
81
|
+
</View>
|
|
82
|
+
)
|
|
208
83
|
};
|
|
209
84
|
|
|
210
|
-
export const WithAvatarAndFooterButton = {
|
|
211
|
-
args: {
|
|
212
|
-
...Open.args,
|
|
213
|
-
title: "Label",
|
|
214
|
-
avatarUrl: "https://i.pravatar.cc/100?img=12",
|
|
215
|
-
avatarName: "Label",
|
|
216
|
-
footerButtonProps: {
|
|
217
|
-
label: "Label",
|
|
218
|
-
size: "medium",
|
|
219
|
-
variant: "filled",
|
|
220
|
-
iconName: "home-line",
|
|
221
|
-
iconPosition: "both",
|
|
222
|
-
disabled: false,
|
|
223
|
-
},
|
|
224
|
-
},
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
// ================ VARIANTE: LARGE ================
|
|
228
|
-
|
|
229
|
-
export const Large = {
|
|
230
|
-
render: (props) => (
|
|
231
|
-
<Accordion
|
|
232
|
-
{...props}
|
|
233
|
-
content={<SEText type="ns-subtitle" color="#000000" lineHeight={24}>{LONG_TEXT}</SEText>}
|
|
234
|
-
/>
|
|
235
|
-
),
|
|
236
|
-
args: {
|
|
237
|
-
title: "Label",
|
|
238
|
-
initiallyOpen: true,
|
|
239
|
-
leadingIconName: "heart-line",
|
|
240
|
-
leadingIconSize: 24,
|
|
241
|
-
leadingIconColor: "#485274",
|
|
242
|
-
leadingIconContainerSize: 24,
|
|
243
|
-
leadingIconContainerColor: "transparent",
|
|
244
|
-
leadingIconContainerBorderRadius: 0,
|
|
245
|
-
headerPaddingHorizontal: 23,
|
|
246
|
-
contentPaddingHorizontal: 0,
|
|
247
|
-
...WHITE_BG_PROPS,
|
|
248
|
-
headerTextColor: '#1B244B',
|
|
249
|
-
activeHeaderTextColor: '#1B244B',
|
|
250
|
-
arrowColor: '#1B244B',
|
|
251
|
-
activeArrowColor: '#1B244B',
|
|
252
|
-
},
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
export const LargeLightBg = {
|
|
256
|
-
render: Large.render,
|
|
257
|
-
args: {
|
|
258
|
-
...Large.args,
|
|
259
|
-
backgroundColor: undefined,
|
|
260
|
-
contentBackgroundColor: undefined,
|
|
261
|
-
showBottomBorder: false,
|
|
262
|
-
contentPaddingHorizontal: undefined,
|
|
263
|
-
},
|
|
264
|
-
};
|
|
265
|
-
|
|
266
|
-
// ================ VARIANTE: STATUS ================
|
|
267
|
-
|
|
268
|
-
export const Status = {
|
|
269
|
-
render: (props) => (
|
|
270
|
-
<Accordion
|
|
271
|
-
{...props}
|
|
272
|
-
content={<SEText type="ns-subtitle" color="#000000" lineHeight={24}>{LONG_TEXT}</SEText>}
|
|
273
|
-
/>
|
|
274
|
-
),
|
|
275
|
-
args: {
|
|
276
|
-
title: "",
|
|
277
|
-
initiallyOpen: true,
|
|
278
|
-
statusText: "Success",
|
|
279
|
-
headerPaddingTop: 10,
|
|
280
|
-
headerPaddingBottom: 10,
|
|
281
|
-
contentPaddingTop: 0,
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
},
|
|
285
|
-
};
|
|
286
|
-
|
|
287
|
-
export const StatusWhiteBg = {
|
|
288
|
-
render: Status.render,
|
|
289
|
-
args: {
|
|
290
|
-
...Status.args,
|
|
291
|
-
...WHITE_BG_PROPS,
|
|
292
|
-
},
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
// ================ VARIANTE: COMPOUND ================
|
|
296
|
-
|
|
297
|
-
export const Compound = {
|
|
298
|
-
render: (props) => (
|
|
299
|
-
<Accordion
|
|
300
|
-
{...props}
|
|
301
|
-
content={<SEText type="ns-subtitle" color="#000000" lineHeight={24}>{LONG_TEXT}</SEText>}
|
|
302
|
-
/>
|
|
303
|
-
),
|
|
304
|
-
args: {
|
|
305
|
-
title: "Label",
|
|
306
|
-
overlineText: "Overline",
|
|
307
|
-
overlineColor: "#687499",
|
|
308
|
-
initiallyOpen: true,
|
|
309
|
-
headerPaddingTop: 10,
|
|
310
|
-
headerPaddingBottom: 10,
|
|
311
|
-
contentPaddingTop: 0,
|
|
312
|
-
...WHITE_BG_PROPS,
|
|
313
|
-
},
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
export const CompoundLightBg = {
|
|
317
|
-
render: Compound.render,
|
|
318
|
-
args: {
|
|
319
|
-
...Compound.args,
|
|
320
|
-
backgroundColor: undefined,
|
|
321
|
-
contentBackgroundColor: undefined,
|
|
322
|
-
showBottomBorder: false,
|
|
323
|
-
},
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
// ================ VARIANTE: NUMBER DISPLAY ================
|
|
327
|
-
|
|
328
|
-
export const WithNumberDisplay = {
|
|
329
|
-
render: (props) => (
|
|
330
|
-
<Accordion
|
|
331
|
-
{...props}
|
|
332
|
-
content={
|
|
333
|
-
<View>
|
|
334
|
-
<NumberDisplay variant="gray" layout="left" style={{ backgroundColor: 'transparent', paddingHorizontal: 0, paddingTop: 0, paddingBottom: 0, minHeight: 0 }}>
|
|
335
|
-
<NumberDisplay.Value style={{ color: '#1B244B' }}>9876543210</NumberDisplay.Value>
|
|
336
|
-
</NumberDisplay>
|
|
337
|
-
<SEText type="ns-subtitle" color="#000000" lineHeight={24} style={{ marginTop: 16 }}>{LONG_TEXT}</SEText>
|
|
338
|
-
</View>
|
|
339
|
-
}
|
|
340
|
-
/>
|
|
341
|
-
),
|
|
342
|
-
args: {
|
|
343
|
-
title: "Label",
|
|
344
|
-
headerTextColor: '#687499',
|
|
345
|
-
activeHeaderTextColor: '#687499',
|
|
346
|
-
headerTextSize: 16,
|
|
347
|
-
headerTextType: 'ns-sm-body-bold',
|
|
348
|
-
headerLineHeight: 24,
|
|
349
|
-
headerPaddingBottomOpen: 4,
|
|
350
|
-
contentPaddingTop: 0,
|
|
351
|
-
initiallyOpen: true,
|
|
352
|
-
},
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
export const WithNumberDisplayWhiteBg = {
|
|
356
|
-
render: WithNumberDisplay.render,
|
|
357
|
-
args: {
|
|
358
|
-
...WithNumberDisplay.args,
|
|
359
|
-
...WHITE_BG_PROPS,
|
|
360
|
-
},
|
|
361
|
-
};
|
|
362
|
-
|
|
363
|
-
// ================ TODAS AS VARIAÇÕES (Figma) ================
|
|
364
|
-
|
|
365
85
|
export const AllVariants = {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
headerPaddingBottom={10}
|
|
424
|
-
contentPaddingTop={0}
|
|
425
|
-
initiallyOpen={true}
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
content={<SEText type="ns-subtitle" color="#000000" lineHeight={24}>{LONG_TEXT}</SEText>}
|
|
429
|
-
/>
|
|
430
|
-
<Text style={styles.variantLabel}>status</Text>
|
|
431
|
-
</View>
|
|
432
|
-
<View style={{ flex: 1, minWidth: 280 }}>
|
|
433
|
-
<Accordion
|
|
434
|
-
title="Label"
|
|
435
|
-
overlineText="Overline"
|
|
436
|
-
overlineColor="#687499"
|
|
437
|
-
initiallyOpen={true}
|
|
438
|
-
headerPaddingTop={10}
|
|
439
|
-
headerPaddingBottom={10}
|
|
440
|
-
contentPaddingTop={0}
|
|
441
|
-
{...WHITE_BG_PROPS}
|
|
442
|
-
content={<SEText type="ns-subtitle" color="#000000" lineHeight={24}>{LONG_TEXT}</SEText>}
|
|
443
|
-
/>
|
|
444
|
-
<Text style={styles.variantLabel}>compound</Text>
|
|
445
|
-
</View>
|
|
446
|
-
</View>
|
|
447
|
-
|
|
448
|
-
{/* Number Display */}
|
|
449
|
-
<View style={{ width: '100%' }}>
|
|
450
|
-
<Accordion
|
|
451
|
-
title="Label"
|
|
452
|
-
headerTextColor="#687499"
|
|
453
|
-
activeHeaderTextColor="#687499"
|
|
454
|
-
headerTextSize={16}
|
|
455
|
-
headerTextType="ns-sm-body-bold"
|
|
456
|
-
headerLineHeight={24}
|
|
457
|
-
headerPaddingBottomOpen={4}
|
|
458
|
-
contentPaddingTop={0}
|
|
459
|
-
initiallyOpen={true}
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
content={
|
|
463
|
-
<View>
|
|
464
|
-
<NumberDisplay variant="gray" layout="left" style={{ backgroundColor: 'transparent', paddingHorizontal: 0, paddingTop: 0, paddingBottom: 0, minHeight: 0 }}>
|
|
465
|
-
<NumberDisplay.Value style={{ color: '#1B244B' }}>9876543210</NumberDisplay.Value>
|
|
466
|
-
</NumberDisplay>
|
|
467
|
-
<SEText type="ns-subtitle" color="#000000" lineHeight={24} style={{ marginTop: 16 }}>{LONG_TEXT}</SEText>
|
|
468
|
-
</View>
|
|
469
|
-
}
|
|
470
|
-
/>
|
|
471
|
-
<Text style={styles.variantLabel}>number display</Text>
|
|
472
|
-
</View>
|
|
473
|
-
</ScrollView>
|
|
474
|
-
),
|
|
475
|
-
};
|
|
476
|
-
|
|
477
|
-
// ================ STATUS E STATES ================
|
|
478
|
-
|
|
479
|
-
export const StatusAndStates = {
|
|
480
|
-
render: () => (
|
|
481
|
-
<ScrollView style={styles.page} contentContainerStyle={{ gap: 24, paddingBottom: 40 }}>
|
|
482
|
-
<Text style={styles.sectionTitle}>Status and state variants</Text>
|
|
483
|
-
|
|
484
|
-
<View style={{ flexDirection: 'row', flexWrap: 'wrap', gap: 16 }}>
|
|
485
|
-
<View style={{ flex: 1, minWidth: 160 }}>
|
|
486
|
-
<Accordion
|
|
487
|
-
title="Label"
|
|
488
|
-
content={<SEText type="ns-subtitle" color="#000000" lineHeight={24}>{LONG_TEXT}</SEText>}
|
|
489
|
-
initiallyOpen={false}
|
|
490
|
-
/>
|
|
491
|
-
<Text style={styles.variantLabel}>status: collapsed{'\n'}state: rest</Text>
|
|
492
|
-
</View>
|
|
493
|
-
|
|
494
|
-
<View style={{ flex: 1, minWidth: 160 }}>
|
|
495
|
-
<Accordion
|
|
496
|
-
title="Label"
|
|
497
|
-
content={<SEText type="ns-subtitle" color="#000000" lineHeight={24}>{LONG_TEXT}</SEText>}
|
|
498
|
-
initiallyOpen={false}
|
|
499
|
-
borderColor="#4F7CFE"
|
|
500
|
-
headerBackgroundColor="#E3E9FF"
|
|
501
|
-
/>
|
|
502
|
-
<Text style={styles.variantLabel}>status: collapsed{'\n'}state: pressed</Text>
|
|
503
|
-
</View>
|
|
504
|
-
|
|
505
|
-
<View style={{ flex: 1, minWidth: 160 }}>
|
|
506
|
-
<Accordion
|
|
507
|
-
title="Label"
|
|
508
|
-
content={<SEText type="ns-subtitle" color="#000000" lineHeight={24}>{LONG_TEXT}</SEText>}
|
|
509
|
-
initiallyOpen={true}
|
|
510
|
-
/>
|
|
511
|
-
<Text style={styles.variantLabel}>status: expanded{'\n'}state: active</Text>
|
|
512
|
-
</View>
|
|
513
|
-
|
|
514
|
-
<View style={{ flex: 1, minWidth: 160 }}>
|
|
515
|
-
<Accordion
|
|
516
|
-
title="Label"
|
|
517
|
-
content={<SEText type="ns-subtitle" color="#000000" lineHeight={24}>{LONG_TEXT}</SEText>}
|
|
518
|
-
initiallyOpen={true}
|
|
519
|
-
pressedHeaderBackgroundColor="#E3E9FF"
|
|
520
|
-
/>
|
|
521
|
-
<Text style={styles.variantLabel}>status: expanded{'\n'}state: pressed</Text>
|
|
522
|
-
</View>
|
|
523
|
-
</View>
|
|
524
|
-
</ScrollView>
|
|
525
|
-
),
|
|
86
|
+
render: () => (
|
|
87
|
+
<View style={{ gap: 16, width: 350 }}>
|
|
88
|
+
<Accordion>
|
|
89
|
+
<Accordion.Header title="Asset base" />
|
|
90
|
+
<Accordion.Content><Content /></Accordion.Content>
|
|
91
|
+
</Accordion>
|
|
92
|
+
<Accordion>
|
|
93
|
+
<Accordion.Header variant="success" title="Success" />
|
|
94
|
+
<Accordion.Content><Content /></Accordion.Content>
|
|
95
|
+
</Accordion>
|
|
96
|
+
<Accordion>
|
|
97
|
+
<Accordion.Header variant="alert" title="Alert" />
|
|
98
|
+
<Accordion.Content><Content /></Accordion.Content>
|
|
99
|
+
</Accordion>
|
|
100
|
+
<Accordion>
|
|
101
|
+
<Accordion.Header variant="error" title="Error" />
|
|
102
|
+
<Accordion.Content><Content /></Accordion.Content>
|
|
103
|
+
</Accordion>
|
|
104
|
+
<Accordion>
|
|
105
|
+
<Accordion.Header overline="Overline" title="Label" />
|
|
106
|
+
<Accordion.Content><Content /></Accordion.Content>
|
|
107
|
+
</Accordion>
|
|
108
|
+
<Accordion>
|
|
109
|
+
<Accordion.Header label="9.876.543.210" />
|
|
110
|
+
<Accordion.Content><Content /></Accordion.Content>
|
|
111
|
+
</Accordion>
|
|
112
|
+
</View>
|
|
113
|
+
)
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export const CustomBackground = {
|
|
117
|
+
args: {
|
|
118
|
+
title: 'Custom Background',
|
|
119
|
+
backgroundColor: '#F7F9FF',
|
|
120
|
+
},
|
|
121
|
+
argTypes: {
|
|
122
|
+
backgroundColor: { control: 'color' },
|
|
123
|
+
},
|
|
124
|
+
render: (args) => (
|
|
125
|
+
<View style={{ width: 350 }}>
|
|
126
|
+
<Accordion>
|
|
127
|
+
<Accordion.Header title={args.title} backgroundColor={args.backgroundColor} />
|
|
128
|
+
<Accordion.Content backgroundColor={args.backgroundColor}><Content /></Accordion.Content>
|
|
129
|
+
</Accordion>
|
|
130
|
+
</View>
|
|
131
|
+
)
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
export const TransparentBackground = {
|
|
135
|
+
render: () => (
|
|
136
|
+
<View style={{ width: 350 }}>
|
|
137
|
+
<Accordion>
|
|
138
|
+
<Accordion.Header title="Transparent Background" backgroundColor="transparent" />
|
|
139
|
+
<Accordion.Content backgroundColor="transparent"><Content /></Accordion.Content>
|
|
140
|
+
</Accordion>
|
|
141
|
+
</View>
|
|
142
|
+
)
|
|
526
143
|
};
|
|
527
|
-
|
|
528
|
-
const styles = StyleSheet.create({
|
|
529
|
-
page: {
|
|
530
|
-
width: '100%',
|
|
531
|
-
},
|
|
532
|
-
sectionTitle: {
|
|
533
|
-
fontSize: 18,
|
|
534
|
-
fontWeight: '700',
|
|
535
|
-
color: '#081032',
|
|
536
|
-
marginBottom: 8,
|
|
537
|
-
},
|
|
538
|
-
variantLabel: {
|
|
539
|
-
fontSize: 12,
|
|
540
|
-
fontWeight: '600',
|
|
541
|
-
color: '#687499',
|
|
542
|
-
marginTop: 4,
|
|
543
|
-
marginBottom: 8,
|
|
544
|
-
},
|
|
545
|
-
});
|