vpt-sebraeds 0.0.56 → 0.0.58
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/AccordionAvatar/index.jsx +3 -2
- package/components/Banner/Banner.stories.jsx +127 -0
- package/components/Banner/index.jsx +70 -0
- package/components/BottomSheet/BottomSheetNomeEmpresa.jsx +5 -4
- package/components/BottomSheet/Components/ActionButtons.jsx +2 -1
- package/components/BottomSheet/Components/ListaDeEstados.jsx +3 -2
- package/components/CommitmentCard/index.jsx +9 -8
- package/components/ContentCard/index.jsx +6 -5
- package/components/ContentSlot/index.jsx +4 -3
- package/components/CopyButton/index.jsx +2 -1
- package/components/Datepicker/MonthSelector.jsx +2 -1
- package/components/Datepicker/TimeSelector.jsx +5 -4
- package/components/Datepicker/index.jsx +8 -7
- package/components/DonutChart/DonutChart.stories.jsx +4 -3
- package/components/DonutChart/index.jsx +3 -2
- package/components/Dropdown/index.jsx +10 -9
- package/components/DropdownCommitments/index.js +3 -2
- package/components/EmptySlot/index.jsx +5 -4
- package/components/Header/index.jsx +4 -3
- package/components/Input/index.jsx +5 -4
- package/components/Legend/index.jsx +5 -4
- package/components/List/index.jsx +5 -4
- package/components/ListItem/index.jsx +3 -2
- package/components/MenuAccordion/index.jsx +3 -2
- package/components/Modal/index.jsx +7 -6
- package/components/Navbar/index.jsx +2 -1
- package/components/NotificationBanner/index.jsx +2 -1
- package/components/NotificationCard/index.jsx +6 -5
- package/components/NumberDisplay/index.jsx +7 -6
- package/components/Pagination/index.jsx +4 -3
- package/components/ProgressBar/ProgressBar.stories.jsx +7 -6
- package/components/ProgressBar/index.jsx +3 -2
- package/components/RadioButton/index.jsx +2 -1
- package/components/Rating/index.jsx +2 -1
- package/components/Search/index.jsx +5 -4
- package/components/SegmentedButton/index.jsx +2 -1
- package/components/SelectItem/SelectItem.stories.jsx +7 -6
- package/components/SelectItem/index.jsx +7 -6
- package/components/ShowMore/index.jsx +2 -1
- package/components/Slider/index.jsx +2 -1
- package/components/Tab/index.jsx +4 -3
- package/components/Tag/index.jsx +3 -2
- package/components/TaskCard/TaskCard.stories.jsx +11 -10
- package/components/TaskCard/components/SuccessTitle.jsx +2 -1
- package/components/TaskCard/components/Tag.jsx +5 -4
- package/components/TaskCard/components/TaskDescription.jsx +2 -1
- package/components/Toast/Toast.stories.jsx +4 -3
- package/components/Toast/index.jsx +14 -13
- package/components/Toggle/Toggle.stories.jsx +6 -5
- package/components/Typography/Typography.stories.jsx +2 -1
- package/components/Typography/index.jsx +5 -4
- package/components/utils/fontFamily.js +6 -0
- package/dist/components/AccordionAvatar/index.d.ts.map +1 -1
- package/dist/components/AccordionAvatar/index.js +3 -2
- package/dist/components/Banner/index.d.ts +19 -0
- package/dist/components/Banner/index.d.ts.map +1 -0
- package/dist/components/Banner/index.js +38 -0
- package/dist/components/BottomSheet/BottomSheetNomeEmpresa.d.ts.map +1 -1
- package/dist/components/BottomSheet/BottomSheetNomeEmpresa.js +5 -4
- package/dist/components/BottomSheet/Components/ActionButtons.d.ts.map +1 -1
- package/dist/components/BottomSheet/Components/ActionButtons.js +2 -1
- package/dist/components/BottomSheet/Components/ListaDeEstados.d.ts.map +1 -1
- package/dist/components/BottomSheet/Components/ListaDeEstados.js +3 -2
- package/dist/components/CommitmentCard/index.d.ts.map +1 -1
- package/dist/components/CommitmentCard/index.js +9 -8
- package/dist/components/ContentCard/index.d.ts.map +1 -1
- package/dist/components/ContentCard/index.js +6 -5
- package/dist/components/ContentSlot/index.d.ts.map +1 -1
- package/dist/components/ContentSlot/index.js +4 -3
- package/dist/components/CopyButton/index.d.ts.map +1 -1
- package/dist/components/CopyButton/index.js +2 -1
- package/dist/components/Datepicker/MonthSelector.js +2 -1
- package/dist/components/Datepicker/TimeSelector.js +5 -4
- package/dist/components/Datepicker/index.d.ts.map +1 -1
- package/dist/components/Datepicker/index.js +8 -7
- package/dist/components/DonutChart/index.d.ts.map +1 -1
- package/dist/components/DonutChart/index.js +3 -2
- package/dist/components/Dropdown/index.d.ts.map +1 -1
- package/dist/components/Dropdown/index.js +10 -9
- package/dist/components/DropdownCommitments/index.d.ts.map +1 -1
- package/dist/components/DropdownCommitments/index.js +3 -2
- package/dist/components/EmptySlot/index.d.ts.map +1 -1
- package/dist/components/EmptySlot/index.js +5 -4
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/Header/index.js +4 -3
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.js +5 -4
- package/dist/components/Legend/index.d.ts.map +1 -1
- package/dist/components/Legend/index.js +5 -4
- package/dist/components/List/index.d.ts.map +1 -1
- package/dist/components/List/index.js +5 -4
- package/dist/components/ListItem/index.d.ts.map +1 -1
- package/dist/components/ListItem/index.js +3 -2
- package/dist/components/MenuAccordion/index.d.ts.map +1 -1
- package/dist/components/MenuAccordion/index.js +3 -2
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.js +7 -6
- package/dist/components/Navbar/index.d.ts.map +1 -1
- package/dist/components/Navbar/index.js +2 -1
- package/dist/components/NotificationBanner/index.d.ts.map +1 -1
- package/dist/components/NotificationBanner/index.js +2 -1
- package/dist/components/NotificationCard/index.d.ts.map +1 -1
- package/dist/components/NotificationCard/index.js +6 -5
- package/dist/components/NumberDisplay/index.d.ts.map +1 -1
- package/dist/components/NumberDisplay/index.js +7 -6
- package/dist/components/Pagination/index.d.ts.map +1 -1
- package/dist/components/Pagination/index.js +4 -3
- package/dist/components/ProgressBar/index.d.ts.map +1 -1
- package/dist/components/ProgressBar/index.js +3 -2
- package/dist/components/RadioButton/index.d.ts.map +1 -1
- package/dist/components/RadioButton/index.js +2 -1
- package/dist/components/Rating/index.d.ts.map +1 -1
- package/dist/components/Rating/index.js +2 -1
- package/dist/components/Search/index.d.ts.map +1 -1
- package/dist/components/Search/index.js +5 -4
- package/dist/components/SegmentedButton/index.d.ts.map +1 -1
- package/dist/components/SegmentedButton/index.js +2 -1
- package/dist/components/SelectItem/index.d.ts.map +1 -1
- package/dist/components/SelectItem/index.js +7 -6
- package/dist/components/ShowMore/index.d.ts.map +1 -1
- package/dist/components/ShowMore/index.js +2 -1
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +2 -1
- package/dist/components/Tab/index.d.ts.map +1 -1
- package/dist/components/Tab/index.js +4 -3
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/index.js +3 -2
- package/dist/components/TaskCard/components/SuccessTitle.d.ts.map +1 -1
- package/dist/components/TaskCard/components/SuccessTitle.js +2 -1
- package/dist/components/TaskCard/components/Tag.d.ts.map +1 -1
- package/dist/components/TaskCard/components/Tag.js +5 -4
- package/dist/components/TaskCard/components/TaskDescription.d.ts.map +1 -1
- package/dist/components/TaskCard/components/TaskDescription.js +2 -1
- package/dist/components/Toast/index.d.ts.map +1 -1
- package/dist/components/Toast/index.js +14 -13
- package/dist/components/Typography/index.d.ts.map +1 -1
- package/dist/components/Typography/index.js +5 -4
- package/dist/components/utils/fontFamily.d.ts +5 -0
- package/dist/components/utils/fontFamily.d.ts.map +1 -0
- package/dist/components/utils/fontFamily.js +5 -0
- 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,6 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { View, Text, TouchableOpacity } from 'react-native';
|
|
3
3
|
import Icon from '../Icon';
|
|
4
|
+
import { fontFamily } from '../utils/fontFamily';
|
|
4
5
|
|
|
5
6
|
const AccordionAvatar = ({
|
|
6
7
|
avatarIcon = 'user-3-fill',
|
|
@@ -38,7 +39,7 @@ const AccordionAvatar = ({
|
|
|
38
39
|
</View>
|
|
39
40
|
{/* Label */}
|
|
40
41
|
<Text style={{
|
|
41
|
-
fontFamily:
|
|
42
|
+
fontFamily: fontFamily.bold,
|
|
42
43
|
fontWeight: '700',
|
|
43
44
|
fontSize: 24, // h5
|
|
44
45
|
lineHeight: 32, // h5
|
|
@@ -68,7 +69,7 @@ const AccordionAvatar = ({
|
|
|
68
69
|
}}
|
|
69
70
|
>
|
|
70
71
|
<Text style={{
|
|
71
|
-
fontFamily:
|
|
72
|
+
fontFamily: fontFamily.bold,
|
|
72
73
|
fontWeight: '700',
|
|
73
74
|
fontSize: 16, // body-2
|
|
74
75
|
lineHeight: 24, // body-2
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { View, Text, StyleSheet, ScrollView } from "react-native";
|
|
2
|
+
import Banner from ".";
|
|
3
|
+
|
|
4
|
+
const SAMPLE_IMAGE = 'https://images.unsplash.com/photo-1519125323398-675f0ddb6308?auto=format&fit=crop&w=600&q=80';
|
|
5
|
+
|
|
6
|
+
const meta = {
|
|
7
|
+
title: "Atom/Banner",
|
|
8
|
+
component: Banner,
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: "centered",
|
|
12
|
+
backgrounds: {
|
|
13
|
+
default: "light",
|
|
14
|
+
values: [
|
|
15
|
+
{
|
|
16
|
+
name: "light",
|
|
17
|
+
value: "#f4f4f4"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
argTypes: {
|
|
23
|
+
imageUrl: {
|
|
24
|
+
description: "URL da imagem do banner",
|
|
25
|
+
control: "text",
|
|
26
|
+
},
|
|
27
|
+
backgroundColor: {
|
|
28
|
+
description: "Cor de fundo (quando sem imagem)",
|
|
29
|
+
control: "color",
|
|
30
|
+
},
|
|
31
|
+
width: {
|
|
32
|
+
description: "Largura do banner",
|
|
33
|
+
control: "text",
|
|
34
|
+
},
|
|
35
|
+
minHeight: {
|
|
36
|
+
description: "Altura mínima do banner",
|
|
37
|
+
control: "number",
|
|
38
|
+
},
|
|
39
|
+
height: {
|
|
40
|
+
description: "Altura fixa do banner (opcional)",
|
|
41
|
+
control: "number",
|
|
42
|
+
},
|
|
43
|
+
borderRadius: {
|
|
44
|
+
description: "Border radius",
|
|
45
|
+
control: "number",
|
|
46
|
+
},
|
|
47
|
+
resizeMode: {
|
|
48
|
+
description: "Modo de redimensionamento da imagem",
|
|
49
|
+
control: "select",
|
|
50
|
+
options: ["cover", "contain", "stretch", "center"],
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export default meta;
|
|
56
|
+
|
|
57
|
+
// ================ DEFAULT (sem imagem) ================
|
|
58
|
+
|
|
59
|
+
export const Default = {
|
|
60
|
+
args: {
|
|
61
|
+
minHeight: 120,
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
// ================ COM IMAGEM ================
|
|
66
|
+
|
|
67
|
+
export const WithImage = {
|
|
68
|
+
args: {
|
|
69
|
+
imageUrl: SAMPLE_IMAGE,
|
|
70
|
+
minHeight: 120,
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
// ================ ALTURA PERSONALIZADA ================
|
|
75
|
+
|
|
76
|
+
export const CustomHeight = {
|
|
77
|
+
args: {
|
|
78
|
+
imageUrl: SAMPLE_IMAGE,
|
|
79
|
+
height: 200,
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
// ================ TODAS AS VARIAÇÕES ================
|
|
84
|
+
|
|
85
|
+
export const AllVariants = {
|
|
86
|
+
render: () => (
|
|
87
|
+
<ScrollView style={{ width: '100%' }} contentContainerStyle={{ gap: 24, paddingBottom: 40 }}>
|
|
88
|
+
<Text style={styles.sectionTitle}>Variants</Text>
|
|
89
|
+
|
|
90
|
+
<View style={{ gap: 16 }}>
|
|
91
|
+
<Banner />
|
|
92
|
+
<Text style={styles.variantLabel}>default (sem imagem)</Text>
|
|
93
|
+
</View>
|
|
94
|
+
|
|
95
|
+
<View style={{ gap: 16 }}>
|
|
96
|
+
<Banner imageUrl={SAMPLE_IMAGE} />
|
|
97
|
+
<Text style={styles.variantLabel}>com imagem</Text>
|
|
98
|
+
</View>
|
|
99
|
+
|
|
100
|
+
<View style={{ gap: 16 }}>
|
|
101
|
+
<Banner imageUrl={SAMPLE_IMAGE} height={200} />
|
|
102
|
+
<Text style={styles.variantLabel}>altura personalizada (200px)</Text>
|
|
103
|
+
</View>
|
|
104
|
+
|
|
105
|
+
<View style={{ gap: 16 }}>
|
|
106
|
+
<Banner backgroundColor="#C2EFD1" minHeight={150} />
|
|
107
|
+
<Text style={styles.variantLabel}>cor personalizada</Text>
|
|
108
|
+
</View>
|
|
109
|
+
</ScrollView>
|
|
110
|
+
),
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
const styles = StyleSheet.create({
|
|
114
|
+
sectionTitle: {
|
|
115
|
+
fontSize: 18,
|
|
116
|
+
fontWeight: '700',
|
|
117
|
+
color: '#081032',
|
|
118
|
+
marginBottom: 8,
|
|
119
|
+
},
|
|
120
|
+
variantLabel: {
|
|
121
|
+
fontSize: 12,
|
|
122
|
+
fontWeight: '600',
|
|
123
|
+
color: '#687499',
|
|
124
|
+
marginTop: -12,
|
|
125
|
+
marginBottom: 8,
|
|
126
|
+
},
|
|
127
|
+
});
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Image, StyleSheet } from 'react-native';
|
|
3
|
+
import Icon from '../Icon';
|
|
4
|
+
|
|
5
|
+
const Banner = ({
|
|
6
|
+
imageUrl = null,
|
|
7
|
+
backgroundColor = '#E3E9FF',
|
|
8
|
+
width = '100%',
|
|
9
|
+
minHeight = 120,
|
|
10
|
+
height = null,
|
|
11
|
+
borderRadius = 8,
|
|
12
|
+
resizeMode = 'cover',
|
|
13
|
+
placeholderIcon = 'image-line',
|
|
14
|
+
placeholderIconSize = 14,
|
|
15
|
+
placeholderIconColor = '#1B244B',
|
|
16
|
+
showPlaceholderIcon = true,
|
|
17
|
+
style = {},
|
|
18
|
+
imageStyle = {},
|
|
19
|
+
children = null,
|
|
20
|
+
}) => {
|
|
21
|
+
return (
|
|
22
|
+
<View
|
|
23
|
+
style={[
|
|
24
|
+
styles.container,
|
|
25
|
+
{
|
|
26
|
+
width,
|
|
27
|
+
minHeight,
|
|
28
|
+
borderRadius,
|
|
29
|
+
backgroundColor: imageUrl ? 'transparent' : backgroundColor,
|
|
30
|
+
},
|
|
31
|
+
height !== null && { height },
|
|
32
|
+
style,
|
|
33
|
+
]}
|
|
34
|
+
>
|
|
35
|
+
{imageUrl ? (
|
|
36
|
+
<Image
|
|
37
|
+
source={{ uri: imageUrl }}
|
|
38
|
+
style={[styles.image, { borderRadius }, imageStyle]}
|
|
39
|
+
resizeMode={resizeMode}
|
|
40
|
+
/>
|
|
41
|
+
) : (
|
|
42
|
+
showPlaceholderIcon && (
|
|
43
|
+
<View style={styles.placeholderContainer}>
|
|
44
|
+
<Icon name={placeholderIcon} size={placeholderIconSize} color={placeholderIconColor} />
|
|
45
|
+
</View>
|
|
46
|
+
)
|
|
47
|
+
)}
|
|
48
|
+
{children}
|
|
49
|
+
</View>
|
|
50
|
+
);
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const styles = StyleSheet.create({
|
|
54
|
+
container: {
|
|
55
|
+
overflow: 'hidden',
|
|
56
|
+
position: 'relative',
|
|
57
|
+
},
|
|
58
|
+
image: {
|
|
59
|
+
...StyleSheet.absoluteFillObject,
|
|
60
|
+
width: '100%',
|
|
61
|
+
height: '100%',
|
|
62
|
+
},
|
|
63
|
+
placeholderContainer: {
|
|
64
|
+
...StyleSheet.absoluteFillObject,
|
|
65
|
+
alignItems: 'center',
|
|
66
|
+
justifyContent: 'center',
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
export default Banner;
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { View, Text, TextInput, TouchableOpacity, StyleSheet } from 'react-native';
|
|
3
3
|
import BottomSheet from './BottomSheet';
|
|
4
4
|
import Icon from '../Icon';
|
|
5
|
+
import { fontFamily } from '../utils/fontFamily';
|
|
5
6
|
|
|
6
7
|
const BottomSheetNomeEmpresa = ({ isOpen, setIsOpen }) => (
|
|
7
8
|
<BottomSheet isOpen={isOpen} setIsOpen={setIsOpen} showHeader>
|
|
@@ -42,7 +43,7 @@ const styles = StyleSheet.create({
|
|
|
42
43
|
fontSize: 24,
|
|
43
44
|
fontWeight: '700',
|
|
44
45
|
color: '#081032',
|
|
45
|
-
fontFamily:
|
|
46
|
+
fontFamily: fontFamily.bold,
|
|
46
47
|
lineHeight: 32,
|
|
47
48
|
marginBottom: 0,
|
|
48
49
|
},
|
|
@@ -74,7 +75,7 @@ const styles = StyleSheet.create({
|
|
|
74
75
|
flex: 1,
|
|
75
76
|
fontSize: 16,
|
|
76
77
|
color: '#081032',
|
|
77
|
-
fontFamily:
|
|
78
|
+
fontFamily: fontFamily.regular,
|
|
78
79
|
},
|
|
79
80
|
infoIcon: {
|
|
80
81
|
marginLeft: 8,
|
|
@@ -89,7 +90,7 @@ const styles = StyleSheet.create({
|
|
|
89
90
|
marginLeft: 8,
|
|
90
91
|
fontSize: 14,
|
|
91
92
|
color: '#081032',
|
|
92
|
-
fontFamily:
|
|
93
|
+
fontFamily: fontFamily.regular,
|
|
93
94
|
},
|
|
94
95
|
button: {
|
|
95
96
|
backgroundColor: '#193ABB',
|
|
@@ -103,7 +104,7 @@ const styles = StyleSheet.create({
|
|
|
103
104
|
color: '#FFF500',
|
|
104
105
|
fontWeight: '700',
|
|
105
106
|
fontSize: 16,
|
|
106
|
-
fontFamily:
|
|
107
|
+
fontFamily: fontFamily.bold,
|
|
107
108
|
},
|
|
108
109
|
});
|
|
109
110
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, TouchableOpacity, Text, StyleSheet } from 'react-native';
|
|
3
3
|
import Icon from '../../Icon';
|
|
4
|
+
import { fontFamily } from '../../utils/fontFamily';
|
|
4
5
|
|
|
5
6
|
const ActionButtons = ({
|
|
6
7
|
onRemindLater = () => { },
|
|
@@ -53,7 +54,7 @@ const styles = StyleSheet.create({
|
|
|
53
54
|
fontSize: 14, // size/button-s
|
|
54
55
|
fontWeight: '700', // Bold
|
|
55
56
|
color: '#081032',
|
|
56
|
-
fontFamily:
|
|
57
|
+
fontFamily: fontFamily.bold, // family/default
|
|
57
58
|
lineHeight: 20, // line-height/button-s
|
|
58
59
|
letterSpacing: 0, // 0%
|
|
59
60
|
textAlign: 'left', // Mantendo left pois center não faz sentido neste layout
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useState } from 'react'
|
|
2
2
|
import { Dimensions, FlatList, StyleSheet, TouchableOpacity, View, Text } from 'react-native'
|
|
3
3
|
import Checkbox from '../../Checkbox';
|
|
4
|
+
import { fontFamily } from '../../utils/fontFamily';
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
const { height: screenHeight } = Dimensions.get('window');
|
|
@@ -246,7 +247,7 @@ const styles = StyleSheet.create({
|
|
|
246
247
|
color: '#000',
|
|
247
248
|
textAlign: 'left',
|
|
248
249
|
lineHeight: 32,
|
|
249
|
-
fontFamily:
|
|
250
|
+
fontFamily: fontFamily.bold,
|
|
250
251
|
},
|
|
251
252
|
modalSubtitle: {
|
|
252
253
|
fontSize: 14,
|
|
@@ -321,7 +322,7 @@ const styles = StyleSheet.create({
|
|
|
321
322
|
flex: 1,
|
|
322
323
|
color: '#000',
|
|
323
324
|
textAlign: 'left',
|
|
324
|
-
fontFamily:
|
|
325
|
+
fontFamily: fontFamily.bold,
|
|
325
326
|
fontSize: 14,
|
|
326
327
|
fontWeight: '700',
|
|
327
328
|
lineHeight: 20,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
3
|
import Icon from '../Icon';
|
|
4
|
+
import { fontFamily } from '../utils/fontFamily';
|
|
4
5
|
|
|
5
6
|
const CommitmentCard = ({
|
|
6
7
|
style = 'flat', // flat, elevated
|
|
@@ -118,7 +119,7 @@ const styles = StyleSheet.create({
|
|
|
118
119
|
},
|
|
119
120
|
countdownText: {
|
|
120
121
|
fontSize: 12, // font-size/body-4
|
|
121
|
-
fontFamily:
|
|
122
|
+
fontFamily: fontFamily.regular, // family/default
|
|
122
123
|
fontWeight: '400', // Weight: 400 (Regular)
|
|
123
124
|
marginLeft: 8,
|
|
124
125
|
lineHeight: 18, // line-height/body-4
|
|
@@ -126,7 +127,7 @@ const styles = StyleSheet.create({
|
|
|
126
127
|
},
|
|
127
128
|
title: {
|
|
128
129
|
fontSize: 14, // font-size/body-2
|
|
129
|
-
fontFamily:
|
|
130
|
+
fontFamily: fontFamily.bold, // family/default
|
|
130
131
|
fontWeight: '700', // Weight: 700 (Bold)
|
|
131
132
|
color: '#1B244B', // content/default
|
|
132
133
|
marginBottom: 16, // Reduzido de 24 para 16
|
|
@@ -143,7 +144,7 @@ const styles = StyleSheet.create({
|
|
|
143
144
|
},
|
|
144
145
|
amount: {
|
|
145
146
|
fontSize: 28, // font-size/h2
|
|
146
|
-
fontFamily:
|
|
147
|
+
fontFamily: fontFamily.bold, // family/default
|
|
147
148
|
fontWeight: '700', // Weight: 700 (Bold)
|
|
148
149
|
color: '#1B244B', // content/default
|
|
149
150
|
lineHeight: 36, // line-height/h2
|
|
@@ -152,7 +153,7 @@ const styles = StyleSheet.create({
|
|
|
152
153
|
},
|
|
153
154
|
date: {
|
|
154
155
|
fontSize: 14, // font-size/body-3
|
|
155
|
-
fontFamily:
|
|
156
|
+
fontFamily: fontFamily.regular, // family/default
|
|
156
157
|
fontWeight: '400', // Weight: 400 (Regular)
|
|
157
158
|
color: '#687499', // content/subtler
|
|
158
159
|
lineHeight: 20, // line-height/body-3
|
|
@@ -160,7 +161,7 @@ const styles = StyleSheet.create({
|
|
|
160
161
|
},
|
|
161
162
|
description: {
|
|
162
163
|
fontSize: 14, // font-size/body-3
|
|
163
|
-
fontFamily:
|
|
164
|
+
fontFamily: fontFamily.regular, // family/default
|
|
164
165
|
fontWeight: '400', // Weight: 400 (Regular)
|
|
165
166
|
color: '#1B244B', // content/default
|
|
166
167
|
lineHeight: 20, // line-height/body-3
|
|
@@ -181,7 +182,7 @@ const styles = StyleSheet.create({
|
|
|
181
182
|
codeValue: {
|
|
182
183
|
flex: 1,
|
|
183
184
|
fontSize: 16, // font-size/body-1
|
|
184
|
-
fontFamily:
|
|
185
|
+
fontFamily: fontFamily.regular, // family/default
|
|
185
186
|
fontWeight: '400', // Weight: 400 (Regular)
|
|
186
187
|
color: '#687499', // content/subtler
|
|
187
188
|
paddingHorizontal: 12,
|
|
@@ -201,7 +202,7 @@ const styles = StyleSheet.create({
|
|
|
201
202
|
},
|
|
202
203
|
copyButtonText: {
|
|
203
204
|
fontSize: 16, // font-size/button-m
|
|
204
|
-
fontFamily:
|
|
205
|
+
fontFamily: fontFamily.bold, // family/default
|
|
205
206
|
fontWeight: '700', // Weight: 700 (Bold)
|
|
206
207
|
color: '#E7F79E', // Cor atualizada
|
|
207
208
|
lineHeight: 24, // line-height/button-m
|
|
@@ -215,7 +216,7 @@ const styles = StyleSheet.create({
|
|
|
215
216
|
},
|
|
216
217
|
downloadText: {
|
|
217
218
|
fontSize: 14, // font-size/button-s
|
|
218
|
-
fontFamily:
|
|
219
|
+
fontFamily: fontFamily.bold, // family/default
|
|
219
220
|
fontWeight: '700', // Weight: 700 (Bold)
|
|
220
221
|
color: '#2A4FDA', // content/action/tertiary/default
|
|
221
222
|
marginLeft: 8,
|
|
@@ -6,6 +6,7 @@ import Button from '../Button';
|
|
|
6
6
|
import Icon from '../Icon';
|
|
7
7
|
import DonutChart from '../DonutChart';
|
|
8
8
|
import ProgressBar from '../ProgressBar';
|
|
9
|
+
import { fontFamily } from '../utils/fontFamily';
|
|
9
10
|
|
|
10
11
|
// Pegue a largura da tela
|
|
11
12
|
const ContentCard = ({
|
|
@@ -242,7 +243,7 @@ const styles = StyleSheet.create({
|
|
|
242
243
|
timeText: {
|
|
243
244
|
fontSize: 12, // Reduz fonte
|
|
244
245
|
color: '#1B244B',
|
|
245
|
-
fontFamily:
|
|
246
|
+
fontFamily: fontFamily.regular,
|
|
246
247
|
},
|
|
247
248
|
tagsWrapper: {
|
|
248
249
|
left: -5,
|
|
@@ -267,7 +268,7 @@ const styles = StyleSheet.create({
|
|
|
267
268
|
color: '#1B244B',
|
|
268
269
|
marginBottom: 12, // Espaçamento adequado
|
|
269
270
|
lineHeight: 24, // line-height/body-2
|
|
270
|
-
fontFamily:
|
|
271
|
+
fontFamily: fontFamily.bold,
|
|
271
272
|
letterSpacing: 0,
|
|
272
273
|
// numberOfLines removido, deve ser prop do Text
|
|
273
274
|
},
|
|
@@ -277,7 +278,7 @@ const styles = StyleSheet.create({
|
|
|
277
278
|
color: '#1B244B',
|
|
278
279
|
marginBottom: 12, // Espaçamento adequado
|
|
279
280
|
lineHeight: 16, // line-height/body-4
|
|
280
|
-
fontFamily:
|
|
281
|
+
fontFamily: fontFamily.bold,
|
|
281
282
|
letterSpacing: 0,
|
|
282
283
|
},
|
|
283
284
|
infoContainer: {
|
|
@@ -300,7 +301,7 @@ const styles = StyleSheet.create({
|
|
|
300
301
|
dateText: {
|
|
301
302
|
fontSize: 14, // Reduz fonte
|
|
302
303
|
color: '#1B244B',
|
|
303
|
-
fontFamily:
|
|
304
|
+
fontFamily: fontFamily.regular,
|
|
304
305
|
},
|
|
305
306
|
locationContainer: {
|
|
306
307
|
flexDirection: 'row',
|
|
@@ -310,7 +311,7 @@ const styles = StyleSheet.create({
|
|
|
310
311
|
locationText: {
|
|
311
312
|
fontSize: 12, // Reduz fonte
|
|
312
313
|
color: '#666',
|
|
313
|
-
fontFamily:
|
|
314
|
+
fontFamily: fontFamily.regular,
|
|
314
315
|
},
|
|
315
316
|
actionsContainer: {
|
|
316
317
|
flexDirection: 'column',
|
|
@@ -3,6 +3,7 @@ import { View, Text, StyleSheet, TouchableOpacity, ScrollView } from 'react-nati
|
|
|
3
3
|
import Tag from '../Tag';
|
|
4
4
|
import Image from '../Image';
|
|
5
5
|
import Icon from '../Icon';
|
|
6
|
+
import { fontFamily } from '../utils/fontFamily';
|
|
6
7
|
|
|
7
8
|
// Props para o componente ContentSlot:
|
|
8
9
|
// title: string;
|
|
@@ -164,10 +165,10 @@ const styles = StyleSheet.create({
|
|
|
164
165
|
},
|
|
165
166
|
title: {
|
|
166
167
|
fontSize: 16,
|
|
167
|
-
fontWeight: '
|
|
168
|
+
fontWeight: '700',
|
|
168
169
|
color: '#1B244B',
|
|
169
170
|
lineHeight: 20,
|
|
170
|
-
fontFamily:
|
|
171
|
+
fontFamily: fontFamily.bold,
|
|
171
172
|
marginBottom: 8,
|
|
172
173
|
textAlign: 'left',
|
|
173
174
|
alignSelf: 'stretch',
|
|
@@ -187,7 +188,7 @@ const styles = StyleSheet.create({
|
|
|
187
188
|
fontSize: 12,
|
|
188
189
|
color: '#1B244B',
|
|
189
190
|
lineHeight: 16,
|
|
190
|
-
fontFamily:
|
|
191
|
+
fontFamily: fontFamily.regular,
|
|
191
192
|
textAlign: 'left',
|
|
192
193
|
},
|
|
193
194
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { TouchableOpacity, Text, StyleSheet } from 'react-native';
|
|
3
3
|
import Icon from '../Icon';
|
|
4
|
+
import { fontFamily } from '../utils/fontFamily';
|
|
4
5
|
|
|
5
6
|
const CopyButton = ({
|
|
6
7
|
variant = 'ghost', // ghost, default, primary, success, selected
|
|
@@ -165,7 +166,7 @@ const styles = StyleSheet.create({
|
|
|
165
166
|
padding: 9, // Reduzido de 12 para compensar a borda de 3px
|
|
166
167
|
},
|
|
167
168
|
text: {
|
|
168
|
-
fontFamily:
|
|
169
|
+
fontFamily: fontFamily.bold, // family/default
|
|
169
170
|
fontWeight: '700', // Bold
|
|
170
171
|
fontSize: 14, // font-size/button-m
|
|
171
172
|
lineHeight: 20, // line-height/button-m
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
Animated,
|
|
9
9
|
Platform,
|
|
10
10
|
} from 'react-native';
|
|
11
|
+
import { fontFamily } from '../utils/fontFamily';
|
|
11
12
|
|
|
12
13
|
const { width: screenWidth } = Dimensions.get('window');
|
|
13
14
|
|
|
@@ -276,7 +277,7 @@ const styles = StyleSheet.create({
|
|
|
276
277
|
monthText: {
|
|
277
278
|
fontSize: 22,
|
|
278
279
|
textAlign: 'center',
|
|
279
|
-
fontFamily:
|
|
280
|
+
fontFamily: fontFamily.regular,
|
|
280
281
|
// Adiciona sombra sutil para melhor legibilidade
|
|
281
282
|
textShadowColor: 'rgba(0, 0, 0, 0.1)',
|
|
282
283
|
textShadowOffset: { width: 0, height: 1 },
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
Animated,
|
|
9
9
|
Platform,
|
|
10
10
|
} from 'react-native';
|
|
11
|
+
import { fontFamily } from '../utils/fontFamily';
|
|
11
12
|
|
|
12
13
|
const ITEM_HEIGHT = 60;
|
|
13
14
|
const VISIBLE_ITEMS = 5;
|
|
@@ -226,10 +227,10 @@ const styles = StyleSheet.create({
|
|
|
226
227
|
},
|
|
227
228
|
itemText: {
|
|
228
229
|
fontSize: 38,
|
|
229
|
-
fontWeight: '
|
|
230
|
+
fontWeight: '700',
|
|
230
231
|
color: '#0A2D5E',
|
|
231
232
|
textAlign: 'center',
|
|
232
|
-
fontFamily:
|
|
233
|
+
fontFamily: fontFamily.bold,
|
|
233
234
|
// Adiciona sombra sutil para melhor legibilidade
|
|
234
235
|
textShadowColor: 'rgba(0, 0, 0, 0.1)',
|
|
235
236
|
textShadowOffset: { width: 0, height: 1 },
|
|
@@ -237,12 +238,12 @@ const styles = StyleSheet.create({
|
|
|
237
238
|
},
|
|
238
239
|
separator: {
|
|
239
240
|
fontSize: 36,
|
|
240
|
-
fontWeight: '
|
|
241
|
+
fontWeight: '700',
|
|
241
242
|
color: '#0A2D5E',
|
|
242
243
|
marginHorizontal: 15,
|
|
243
244
|
lineHeight: ITEM_HEIGHT,
|
|
244
245
|
textAlign: 'center',
|
|
245
|
-
fontFamily:
|
|
246
|
+
fontFamily: fontFamily.bold,
|
|
246
247
|
},
|
|
247
248
|
selectionIndicator: {
|
|
248
249
|
position: 'absolute',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useState, useEffect, forwardRef, useImperativeHandle } from 'react';
|
|
2
2
|
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
|
+
import { fontFamily } from '../utils/fontFamily';
|
|
3
4
|
// import TimeSelector from './TimeSelector';
|
|
4
5
|
// import MonthSelector from './MonthSelector';
|
|
5
6
|
|
|
@@ -325,15 +326,15 @@ const styles = StyleSheet.create({
|
|
|
325
326
|
navButton: {
|
|
326
327
|
fontSize: 22,
|
|
327
328
|
color: '#007AFF',
|
|
328
|
-
fontWeight: '
|
|
329
|
+
fontWeight: '700',
|
|
329
330
|
padding: 10,
|
|
330
|
-
fontFamily:
|
|
331
|
+
fontFamily: fontFamily.bold,
|
|
331
332
|
},
|
|
332
333
|
monthYear: {
|
|
333
334
|
fontSize: 18,
|
|
334
|
-
fontWeight: '
|
|
335
|
+
fontWeight: '700',
|
|
335
336
|
color: '#333333',
|
|
336
|
-
fontFamily:
|
|
337
|
+
fontFamily: fontFamily.bold,
|
|
337
338
|
},
|
|
338
339
|
// Dias da Semana
|
|
339
340
|
weekDaysContainer: {
|
|
@@ -346,7 +347,7 @@ const styles = StyleSheet.create({
|
|
|
346
347
|
fontSize: 13,
|
|
347
348
|
color: '#8A8A8E',
|
|
348
349
|
fontWeight: '500',
|
|
349
|
-
fontFamily:
|
|
350
|
+
fontFamily: fontFamily.regular,
|
|
350
351
|
},
|
|
351
352
|
// Grid de Dias
|
|
352
353
|
daysGrid: {
|
|
@@ -367,7 +368,7 @@ const styles = StyleSheet.create({
|
|
|
367
368
|
color: '#333333',
|
|
368
369
|
height: '100%',
|
|
369
370
|
verticalAlign: 'middle',
|
|
370
|
-
fontFamily:
|
|
371
|
+
fontFamily: fontFamily.regular,
|
|
371
372
|
},
|
|
372
373
|
emptyDay: {
|
|
373
374
|
color: 'transparent',
|
|
@@ -437,7 +438,7 @@ const styles = StyleSheet.create({
|
|
|
437
438
|
yearText: {
|
|
438
439
|
fontSize: 16,
|
|
439
440
|
color: '#333',
|
|
440
|
-
fontFamily:
|
|
441
|
+
fontFamily: fontFamily.regular,
|
|
441
442
|
},
|
|
442
443
|
selectedYearText: {
|
|
443
444
|
color: '#181010ff',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { View, Text } from "react-native";
|
|
2
2
|
import DonutChart from "./index.jsx";
|
|
3
|
+
import { fontFamily } from '../utils/fontFamily';
|
|
3
4
|
|
|
4
5
|
const meta = {
|
|
5
6
|
title: "Molecules/DonutChart",
|
|
@@ -163,7 +164,7 @@ export const FigmaExamples = {
|
|
|
163
164
|
size={190}
|
|
164
165
|
strokeWidth={12}
|
|
165
166
|
/>
|
|
166
|
-
<Text style={{ marginTop: 10, fontSize: 14, color: '#666', fontFamily:
|
|
167
|
+
<Text style={{ marginTop: 10, fontSize: 14, color: '#666', fontFamily: fontFamily.regular }}>Nível Básico</Text>
|
|
167
168
|
</View>
|
|
168
169
|
<View style={{ alignItems: 'center' }}>
|
|
169
170
|
<DonutChart
|
|
@@ -171,7 +172,7 @@ export const FigmaExamples = {
|
|
|
171
172
|
size={190}
|
|
172
173
|
strokeWidth={12}
|
|
173
174
|
/>
|
|
174
|
-
<Text style={{ marginTop: 10, fontSize: 14, color: '#666', fontFamily:
|
|
175
|
+
<Text style={{ marginTop: 10, fontSize: 14, color: '#666', fontFamily: fontFamily.regular }}>Nível Intermediário</Text>
|
|
175
176
|
</View>
|
|
176
177
|
<View style={{ alignItems: 'center' }}>
|
|
177
178
|
<DonutChart
|
|
@@ -179,7 +180,7 @@ export const FigmaExamples = {
|
|
|
179
180
|
size={190}
|
|
180
181
|
strokeWidth={12}
|
|
181
182
|
/>
|
|
182
|
-
<Text style={{ marginTop: 10, fontSize: 14, color: '#666', fontFamily:
|
|
183
|
+
<Text style={{ marginTop: 10, fontSize: 14, color: '#666', fontFamily: fontFamily.regular }}>Nível Avançado</Text>
|
|
183
184
|
</View>
|
|
184
185
|
</View>
|
|
185
186
|
),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, Text, StyleSheet } from 'react-native';
|
|
3
3
|
import Svg, { Circle } from 'react-native-svg';
|
|
4
|
+
import { fontFamily } from '../utils/fontFamily';
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
// Paleta baseada na imagem fornecida
|
|
@@ -166,7 +167,7 @@ const styles = StyleSheet.create({
|
|
|
166
167
|
alignItems: 'baseline',
|
|
167
168
|
},
|
|
168
169
|
percentageNumber: {
|
|
169
|
-
fontFamily:
|
|
170
|
+
fontFamily: fontFamily.bold,
|
|
170
171
|
fontSize: 48,
|
|
171
172
|
fontWeight: '700', // Bold
|
|
172
173
|
lineHeight: 48, // 100% da fontSize (48px)
|
|
@@ -174,7 +175,7 @@ const styles = StyleSheet.create({
|
|
|
174
175
|
textAlign: 'center',
|
|
175
176
|
},
|
|
176
177
|
percentageSymbol: {
|
|
177
|
-
fontFamily:
|
|
178
|
+
fontFamily: fontFamily.bold,
|
|
178
179
|
fontSize: 27, // Símbolo % menor
|
|
179
180
|
fontWeight: '700', // Bold (mesmo peso que o número)
|
|
180
181
|
lineHeight: 24, // 100% da fontSize (24px)
|