vpt-sebraeds 0.0.53 → 0.0.55
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 +446 -30
- package/components/Accordion/index.jsx +252 -52
- package/components/ButtomGroup/ButtomGroup.stories.jsx +187 -1
- package/components/ButtomGroup/index.tsx +179 -1
- package/components/Card/Card.stories.jsx +296 -0
- package/components/Card/index.jsx +190 -0
- package/components/Input/Input.stories.jsx +36 -1
- package/components/Input/index.jsx +57 -4
- package/components/ListItem/ListItem.stories.jsx +298 -0
- package/components/ListItem/assets/Image.png +0 -0
- package/components/ListItem/index.jsx +198 -0
- package/components/NumberDisplay/NumberDisplay.stories.jsx +230 -2
- package/components/NumberDisplay/index.jsx +297 -61
- package/components/Shortcut/index.jsx +10 -10
- package/components/ShuffleItem/index.jsx +3 -1
- package/dist/components/Accordion/index.d.ts +48 -1
- package/dist/components/Accordion/index.d.ts.map +1 -1
- package/dist/components/Accordion/index.js +164 -45
- package/dist/components/ButtomGroup/index.d.ts +11 -1
- package/dist/components/ButtomGroup/index.d.ts.map +1 -1
- package/dist/components/ButtomGroup/index.js +128 -2
- package/dist/components/Card/index.d.ts +67 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/Card/index.js +142 -0
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.js +39 -4
- package/dist/components/ListItem/assets/Image.png +0 -0
- package/dist/components/ListItem/index.d.ts +29 -0
- package/dist/components/ListItem/index.d.ts.map +1 -0
- package/dist/components/ListItem/index.js +149 -0
- package/dist/components/NumberDisplay/index.d.ts +44 -6
- package/dist/components/NumberDisplay/index.d.ts.map +1 -1
- package/dist/components/NumberDisplay/index.js +282 -89
- package/dist/components/Shortcut/index.js +10 -10
- package/dist/components/ShuffleItem/index.d.ts.map +1 -1
- package/dist/components/ShuffleItem/index.js +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
|
@@ -1,23 +1,34 @@
|
|
|
1
|
-
import { View } from "react-native";
|
|
1
|
+
import { View, Text, StyleSheet, ScrollView } from "react-native";
|
|
2
2
|
import Accordion from ".";
|
|
3
3
|
import SEText from "../SEText";
|
|
4
|
+
import NumberDisplay from "../NumberDisplay";
|
|
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
|
+
};
|
|
4
15
|
|
|
5
16
|
const meta = {
|
|
6
17
|
title: "Atom/Accordion",
|
|
7
18
|
component: Accordion,
|
|
8
19
|
render: (props) => (
|
|
9
|
-
<Accordion
|
|
20
|
+
<Accordion
|
|
10
21
|
{...props}
|
|
11
22
|
content={
|
|
12
23
|
<View style={{ flexDirection: 'column' }}>
|
|
13
|
-
<SEText type="ns-
|
|
14
|
-
{props.content}
|
|
24
|
+
<SEText type="ns-subtitle" color="#000000" lineHeight={24} style={{ marginBottom: 16 }}>
|
|
25
|
+
{props.content || LONG_TEXT}
|
|
15
26
|
</SEText>
|
|
16
|
-
<Accordion
|
|
27
|
+
<Accordion
|
|
17
28
|
nested
|
|
18
29
|
title="Item 01"
|
|
19
30
|
content={
|
|
20
|
-
<SEText type="ns-
|
|
31
|
+
<SEText type="ns-subtitle" color="#000000" lineHeight={24}>
|
|
21
32
|
Sed nulla quam, fermentum tincidunt lacus at, viverra vehicula eros. Etiam neque libero, vulputate sed consectetur nec, imperdiet sed turpis.
|
|
22
33
|
</SEText>
|
|
23
34
|
}
|
|
@@ -25,7 +36,7 @@ const meta = {
|
|
|
25
36
|
</View>
|
|
26
37
|
}
|
|
27
38
|
/>
|
|
28
|
-
),
|
|
39
|
+
),
|
|
29
40
|
tags: ["autodocs"],
|
|
30
41
|
parameters: {
|
|
31
42
|
layout: "centered",
|
|
@@ -60,12 +71,118 @@ const meta = {
|
|
|
60
71
|
description: "Define se o acordeon deve iniciar aberto",
|
|
61
72
|
control: "boolean",
|
|
62
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
|
+
},
|
|
63
179
|
},
|
|
64
180
|
};
|
|
65
181
|
|
|
66
182
|
export default meta;
|
|
67
183
|
|
|
68
|
-
//
|
|
184
|
+
// ================ ESTADOS PADRÃO (mantidos) ================
|
|
185
|
+
|
|
69
186
|
export const Default = {
|
|
70
187
|
args: {
|
|
71
188
|
title: "Item",
|
|
@@ -74,27 +191,6 @@ export const Default = {
|
|
|
74
191
|
},
|
|
75
192
|
};
|
|
76
193
|
|
|
77
|
-
// Estado Hover
|
|
78
|
-
// export const Hover = {
|
|
79
|
-
// args: {
|
|
80
|
-
// ...Padrao.args,
|
|
81
|
-
// },
|
|
82
|
-
// parameters: {
|
|
83
|
-
// pseudo: { hover: true },
|
|
84
|
-
// },
|
|
85
|
-
// };
|
|
86
|
-
|
|
87
|
-
// Estado com Foco
|
|
88
|
-
// export const Foco = {
|
|
89
|
-
// args: {
|
|
90
|
-
// ...Padrao.args,
|
|
91
|
-
// },
|
|
92
|
-
// parameters: {
|
|
93
|
-
// pseudo: { focus: true },
|
|
94
|
-
// },
|
|
95
|
-
// };
|
|
96
|
-
|
|
97
|
-
// Estado Ativo (Aberto)
|
|
98
194
|
export const Open = {
|
|
99
195
|
args: {
|
|
100
196
|
...Default.args,
|
|
@@ -126,4 +222,324 @@ export const WithAvatarAndFooterButton = {
|
|
|
126
222
|
disabled: false,
|
|
127
223
|
},
|
|
128
224
|
},
|
|
129
|
-
};
|
|
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
|
+
export const AllVariants = {
|
|
366
|
+
render: () => (
|
|
367
|
+
<ScrollView style={styles.page} contentContainerStyle={{ gap: 32, paddingBottom: 40 }}>
|
|
368
|
+
<Text style={styles.sectionTitle}>Variants</Text>
|
|
369
|
+
|
|
370
|
+
{/* Large */}
|
|
371
|
+
<View style={{ flexDirection: 'row', flexWrap: 'wrap', gap: 16 }}>
|
|
372
|
+
<View style={{ flex: 1, minWidth: 280 }}>
|
|
373
|
+
<Accordion
|
|
374
|
+
title="Label"
|
|
375
|
+
leadingIconName="heart-line"
|
|
376
|
+
leadingIconSize={24}
|
|
377
|
+
leadingIconColor="#485274"
|
|
378
|
+
leadingIconContainerSize={24}
|
|
379
|
+
leadingIconContainerColor="transparent"
|
|
380
|
+
leadingIconContainerBorderRadius={0}
|
|
381
|
+
headerPaddingHorizontal={23}
|
|
382
|
+
contentPaddingHorizontal={0}
|
|
383
|
+
initiallyOpen={true}
|
|
384
|
+
{...WHITE_BG_PROPS}
|
|
385
|
+
headerTextColor="#1B244B"
|
|
386
|
+
activeHeaderTextColor="#1B244B"
|
|
387
|
+
arrowColor="#1B244B"
|
|
388
|
+
activeArrowColor="#1B244B"
|
|
389
|
+
content={<SEText type="ns-subtitle" color="#000000" lineHeight={24}>{LONG_TEXT}</SEText>}
|
|
390
|
+
/>
|
|
391
|
+
<Text style={styles.variantLabel}>large</Text>
|
|
392
|
+
</View>
|
|
393
|
+
<View style={{ flex: 1, minWidth: 280 }}>
|
|
394
|
+
<Accordion
|
|
395
|
+
title="Label"
|
|
396
|
+
leadingIconName="heart-line"
|
|
397
|
+
leadingIconSize={24}
|
|
398
|
+
leadingIconColor="#485274"
|
|
399
|
+
leadingIconContainerSize={24}
|
|
400
|
+
leadingIconContainerColor="transparent"
|
|
401
|
+
leadingIconContainerBorderRadius={0}
|
|
402
|
+
headerPaddingHorizontal={23}
|
|
403
|
+
initiallyOpen={true}
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
headerTextColor="#1B244B"
|
|
407
|
+
activeHeaderTextColor="#1B244B"
|
|
408
|
+
arrowColor="#1B244B"
|
|
409
|
+
activeArrowColor="#1B244B"
|
|
410
|
+
content={<SEText type="ns-subtitle" color="#000000" lineHeight={24}>{LONG_TEXT}</SEText>}
|
|
411
|
+
/>
|
|
412
|
+
<Text style={styles.variantLabel}>large</Text>
|
|
413
|
+
</View>
|
|
414
|
+
</View>
|
|
415
|
+
|
|
416
|
+
{/* Status + Compound */}
|
|
417
|
+
<View style={{ flexDirection: 'row', flexWrap: 'wrap', gap: 16 }}>
|
|
418
|
+
<View style={{ flex: 1, minWidth: 280 }}>
|
|
419
|
+
<Accordion
|
|
420
|
+
title=""
|
|
421
|
+
statusText="Success"
|
|
422
|
+
headerPaddingTop={10}
|
|
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
|
+
),
|
|
526
|
+
};
|
|
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
|
+
});
|