react-native-exp-fig 0.1.1 → 0.1.2
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/package.json +4 -4
- package/src/common/constants/index.ts +5 -0
- package/src/common/icons-svg/arrow-drop-down/index.tsx +28 -28
- package/src/common/icons-svg/arrow-left/index.tsx +32 -32
- package/src/common/icons-svg/bluetooth/index.tsx +37 -37
- package/src/common/icons-svg/bluetooth-connected/index.tsx +41 -41
- package/src/common/icons-svg/calendar/index.tsx +40 -40
- package/src/common/icons-svg/call-bell/index.tsx +29 -29
- package/src/common/icons-svg/camera-plus/index.tsx +40 -40
- package/src/common/icons-svg/chart-bar/index.tsx +29 -0
- package/src/common/icons-svg/check-box-fill/index.tsx +30 -30
- package/src/common/icons-svg/check-box-outline/index.tsx +30 -30
- package/src/common/icons-svg/check-circle/index.tsx +27 -27
- package/src/common/icons-svg/closed/index.tsx +34 -34
- package/src/common/icons-svg/constants/index.ts +46 -43
- package/src/common/icons-svg/credit-card/index.tsx +32 -32
- package/src/common/icons-svg/currency/index.tsx +39 -39
- package/src/common/icons-svg/currency-circle-dollar/index.tsx +29 -0
- package/src/common/icons-svg/eye/index.tsx +31 -31
- package/src/common/icons-svg/eye-slash/index.tsx +31 -31
- package/src/common/icons-svg/file-text/index.tsx +39 -39
- package/src/common/icons-svg/gas-pump/index.tsx +39 -39
- package/src/common/icons-svg/gauge/index.tsx +39 -39
- package/src/common/icons-svg/gear/index.tsx +39 -39
- package/src/common/icons-svg/index.tsx +167 -149
- package/src/common/icons-svg/interface.d.ts +18 -18
- package/src/common/icons-svg/list/index.tsx +58 -58
- package/src/common/icons-svg/moon-stars/index.tsx +29 -29
- package/src/common/icons-svg/note-pincel/index.tsx +40 -40
- package/src/common/icons-svg/package/index.tsx +29 -0
- package/src/common/icons-svg/package-check/index.tsx +45 -45
- package/src/common/icons-svg/shopping-cart/index.tsx +39 -39
- package/src/common/icons-svg/steering-wheel/index.tsx +49 -49
- package/src/common/icons-svg/steering-wheel-fill/index.tsx +36 -36
- package/src/common/icons-svg/timer/index.tsx +39 -39
- package/src/common/icons-svg/trophy/index.tsx +29 -29
- package/src/common/icons-svg/truck/index.tsx +39 -39
- package/src/common/icons-svg/truck-trailer/index.tsx +36 -0
- package/src/common/icons-svg/wifi-high/index.tsx +43 -43
- package/src/common/icons-svg/wifi-x/index.tsx +50 -50
- package/src/components/box/index.tsx +47 -47
- package/src/components/box/interface.d.ts +31 -31
- package/src/components/box/styles.ts +21 -21
- package/src/components/button/index.tsx +61 -61
- package/src/components/button/interface.d.ts +40 -40
- package/src/components/button/styles.ts +34 -34
- package/src/components/capture-photo/index.tsx +125 -125
- package/src/components/capture-photo/interface.d.ts +44 -44
- package/src/components/capture-photo/styles.ts +24 -24
- package/src/components/card-hours/index.tsx +118 -118
- package/src/components/card-hours/interface.d.ts +37 -37
- package/src/components/card-scheduled-journey/index.tsx +138 -138
- package/src/components/card-scheduled-journey/interface.ts +42 -42
- package/src/components/card-scheduled-journey/styles.ts +26 -26
- package/src/components/header-profile/index.tsx +128 -128
- package/src/components/header-profile/interface.d.ts +52 -52
- package/src/components/input/index.tsx +176 -180
- package/src/components/input/interface.d.ts +55 -55
- package/src/components/input/styles.ts +23 -23
- package/src/components/menu-item/index.tsx +78 -0
- package/src/components/menu-item/interface.d.ts +19 -0
- package/src/components/menu-item/styles.ts +0 -0
- package/src/components/scheduled-journey-indicators/index.tsx +99 -99
- package/src/components/scheduled-journey-indicators/interface.d.ts +18 -18
- package/src/components/selects/select-option/index.tsx +104 -104
- package/src/components/selects/select-option/interface.d.ts +18 -18
- package/src/components/selects/select-option/styles.ts +75 -75
- package/src/components/step-indicator/helpers/get-icon-by-status.tsx +20 -20
- package/src/components/step-indicator/index.tsx +164 -164
- package/src/components/step-indicator/interface.d.ts +34 -34
- package/src/components/step-indicator/styles.ts +67 -67
- package/src/components/typography/index.tsx +67 -67
- package/src/components/typography/interface.d.ts +102 -102
- package/src/components/typography/styles.ts +34 -34
- package/src/components/user-profile/index.tsx +216 -0
- package/src/components/user-profile/interface.d.ts +22 -0
- package/src/{index.ts → index.tsx} +2 -0
- package/src/stories/box/box.stories.tsx +106 -106
- package/src/stories/button/button.stories.tsx +143 -143
- package/src/stories/capture-photo/capture-photo.stories.tsx +170 -170
- package/src/stories/card-hours/card-hours.stories.tsx +102 -102
- package/src/stories/card-scheduled-journey/card-scheduled-journey.stories.tsx +101 -101
- package/src/stories/header-profile/header-profile.stories.tsx +84 -84
- package/src/stories/input/input.stories.tsx +286 -286
- package/src/stories/menu-item/menu-item.stories.tsx +76 -0
- package/src/stories/scheduled-journey-indicators/sheduled-journey-indicators.stories.tsx +74 -74
- package/src/stories/select-option/select-option.stories.tsx +46 -46
- package/src/stories/step-indicator/step-indicator.stories.tsx +116 -116
- package/src/stories/typography/typography.stories.tsx +146 -146
- package/src/stories/user-profile/user-profile.stories.tsx +56 -0
- package/src/styles/global/interface.d.ts +131 -131
- package/src/styles/global/styles.ts +63 -63
- package/src/styles/global/theme-provider.tsx +10 -10
- package/src/styles/theme/theme.ts +158 -156
- package/src/utils/format-data/index.ts +14 -14
- package/src/utils/mutiply/index.ts +3 -3
|
@@ -1,146 +1,146 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { Typography } from "../../components/typography";
|
|
3
|
-
import { theme } from "../../styles/theme/theme";
|
|
4
|
-
|
|
5
|
-
const meta: Meta<typeof Typography> = {
|
|
6
|
-
title: "Componente/Typography",
|
|
7
|
-
component: Typography,
|
|
8
|
-
args: {
|
|
9
|
-
onPress: () => {},
|
|
10
|
-
},
|
|
11
|
-
parameters: {
|
|
12
|
-
notes: `
|
|
13
|
-
# Typography
|
|
14
|
-
|
|
15
|
-
Este é um componente de texto.
|
|
16
|
-
Você usa assim:
|
|
17
|
-
\`\`\`tsx
|
|
18
|
-
<Typography text={'Ola Dev'} marginBottom={8} />
|
|
19
|
-
\`\`\`
|
|
20
|
-
`,
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export default meta;
|
|
25
|
-
|
|
26
|
-
type Story = StoryObj<typeof meta>;
|
|
27
|
-
|
|
28
|
-
export const Typography2XS: Story = {
|
|
29
|
-
name: "Typography-2xs",
|
|
30
|
-
args: {
|
|
31
|
-
text: "(2XS) Expresso Figueiredo",
|
|
32
|
-
align: "center",
|
|
33
|
-
color: theme.colors.neutral[25],
|
|
34
|
-
size: theme.fontSizes["2xs"],
|
|
35
|
-
fontFamily: theme.fonts.inter_regular_400,
|
|
36
|
-
fontWeight: "400",
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export const TypographyXS: Story = {
|
|
41
|
-
name: "Typography-xs",
|
|
42
|
-
args: {
|
|
43
|
-
text: "(XS) Expresso Figueiredo",
|
|
44
|
-
align: "center",
|
|
45
|
-
color: theme.colors.neutral[25],
|
|
46
|
-
size: theme.fontSizes["xs"],
|
|
47
|
-
fontFamily: theme.fonts.inter_regular_400,
|
|
48
|
-
fontWeight: "400",
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export const TypographySM: Story = {
|
|
53
|
-
name: "Typography-sm",
|
|
54
|
-
args: {
|
|
55
|
-
text: "(SM) Expresso Figueiredo",
|
|
56
|
-
align: "center",
|
|
57
|
-
color: theme.colors.neutral[25],
|
|
58
|
-
size: theme.fontSizes["sm"],
|
|
59
|
-
fontFamily: theme.fonts.inter_regular_400,
|
|
60
|
-
fontWeight: "400",
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export const TypographyMD: Story = {
|
|
65
|
-
name: "Typography-md",
|
|
66
|
-
args: {
|
|
67
|
-
text: "(MD) Expresso Figueiredo",
|
|
68
|
-
align: "center",
|
|
69
|
-
color: theme.colors.neutral[25],
|
|
70
|
-
size: theme.fontSizes["md"],
|
|
71
|
-
fontFamily: theme.fonts.inter_regular_400,
|
|
72
|
-
fontWeight: "400",
|
|
73
|
-
},
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export const TypographyLG: Story = {
|
|
77
|
-
name: "Typography-lg",
|
|
78
|
-
args: {
|
|
79
|
-
text: "(LG) Expresso Figueiredo",
|
|
80
|
-
align: "center",
|
|
81
|
-
color: theme.colors.neutral[25],
|
|
82
|
-
size: theme.fontSizes["lg"],
|
|
83
|
-
fontFamily: theme.fonts.inter_regular_400,
|
|
84
|
-
fontWeight: "400",
|
|
85
|
-
},
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
export const TypographyXL: Story = {
|
|
89
|
-
name: "Typography-xl",
|
|
90
|
-
args: {
|
|
91
|
-
text: "(XL) Expresso Figueiredo",
|
|
92
|
-
align: "center",
|
|
93
|
-
color: theme.colors.neutral[25],
|
|
94
|
-
size: theme.fontSizes["xl"],
|
|
95
|
-
fontFamily: theme.fonts.inter_regular_400,
|
|
96
|
-
fontWeight: "400",
|
|
97
|
-
},
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
export const Typography2XL: Story = {
|
|
101
|
-
name: "Typography-2xl",
|
|
102
|
-
args: {
|
|
103
|
-
text: "(2XL) Expresso Figueiredo",
|
|
104
|
-
align: "center",
|
|
105
|
-
color: theme.colors.neutral[25],
|
|
106
|
-
size: theme.fontSizes["2xl"],
|
|
107
|
-
fontFamily: theme.fonts.inter_regular_400,
|
|
108
|
-
fontWeight: "400",
|
|
109
|
-
},
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
export const Typography3XL: Story = {
|
|
113
|
-
name: "Typography-3xl",
|
|
114
|
-
args: {
|
|
115
|
-
text: "(3XL) Expresso Figueiredo",
|
|
116
|
-
align: "center",
|
|
117
|
-
color: theme.colors.neutral[25],
|
|
118
|
-
size: theme.fontSizes["3xl"],
|
|
119
|
-
fontFamily: theme.fonts.inter_regular_400,
|
|
120
|
-
fontWeight: "400",
|
|
121
|
-
},
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
export const Typography4XL: Story = {
|
|
125
|
-
name: "Typography-4xl",
|
|
126
|
-
args: {
|
|
127
|
-
text: "(4XL) Expresso Figueiredo",
|
|
128
|
-
align: "center",
|
|
129
|
-
color: theme.colors.neutral[25],
|
|
130
|
-
size: theme.fontSizes["4xl"],
|
|
131
|
-
fontFamily: theme.fonts.inter_regular_400,
|
|
132
|
-
fontWeight: "400",
|
|
133
|
-
},
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
export const Typography5XL: Story = {
|
|
137
|
-
name: "Typography-5xl",
|
|
138
|
-
args: {
|
|
139
|
-
text: "(5XL) Expresso Figueiredo",
|
|
140
|
-
align: "center",
|
|
141
|
-
color: theme.colors.neutral[25],
|
|
142
|
-
size: theme.fontSizes["5xl"],
|
|
143
|
-
fontFamily: theme.fonts.inter_regular_400,
|
|
144
|
-
fontWeight: "400",
|
|
145
|
-
},
|
|
146
|
-
};
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Typography } from "../../components/typography";
|
|
3
|
+
import { theme } from "../../styles/theme/theme";
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof Typography> = {
|
|
6
|
+
title: "Componente/Typography",
|
|
7
|
+
component: Typography,
|
|
8
|
+
args: {
|
|
9
|
+
onPress: () => {},
|
|
10
|
+
},
|
|
11
|
+
parameters: {
|
|
12
|
+
notes: `
|
|
13
|
+
# Typography
|
|
14
|
+
|
|
15
|
+
Este é um componente de texto.
|
|
16
|
+
Você usa assim:
|
|
17
|
+
\`\`\`tsx
|
|
18
|
+
<Typography text={'Ola Dev'} marginBottom={8} />
|
|
19
|
+
\`\`\`
|
|
20
|
+
`,
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export default meta;
|
|
25
|
+
|
|
26
|
+
type Story = StoryObj<typeof meta>;
|
|
27
|
+
|
|
28
|
+
export const Typography2XS: Story = {
|
|
29
|
+
name: "Typography-2xs",
|
|
30
|
+
args: {
|
|
31
|
+
text: "(2XS) Expresso Figueiredo",
|
|
32
|
+
align: "center",
|
|
33
|
+
color: theme.colors.neutral[25],
|
|
34
|
+
size: theme.fontSizes["2xs"],
|
|
35
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
36
|
+
fontWeight: "400",
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const TypographyXS: Story = {
|
|
41
|
+
name: "Typography-xs",
|
|
42
|
+
args: {
|
|
43
|
+
text: "(XS) Expresso Figueiredo",
|
|
44
|
+
align: "center",
|
|
45
|
+
color: theme.colors.neutral[25],
|
|
46
|
+
size: theme.fontSizes["xs"],
|
|
47
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
48
|
+
fontWeight: "400",
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export const TypographySM: Story = {
|
|
53
|
+
name: "Typography-sm",
|
|
54
|
+
args: {
|
|
55
|
+
text: "(SM) Expresso Figueiredo",
|
|
56
|
+
align: "center",
|
|
57
|
+
color: theme.colors.neutral[25],
|
|
58
|
+
size: theme.fontSizes["sm"],
|
|
59
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
60
|
+
fontWeight: "400",
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export const TypographyMD: Story = {
|
|
65
|
+
name: "Typography-md",
|
|
66
|
+
args: {
|
|
67
|
+
text: "(MD) Expresso Figueiredo",
|
|
68
|
+
align: "center",
|
|
69
|
+
color: theme.colors.neutral[25],
|
|
70
|
+
size: theme.fontSizes["md"],
|
|
71
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
72
|
+
fontWeight: "400",
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export const TypographyLG: Story = {
|
|
77
|
+
name: "Typography-lg",
|
|
78
|
+
args: {
|
|
79
|
+
text: "(LG) Expresso Figueiredo",
|
|
80
|
+
align: "center",
|
|
81
|
+
color: theme.colors.neutral[25],
|
|
82
|
+
size: theme.fontSizes["lg"],
|
|
83
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
84
|
+
fontWeight: "400",
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export const TypographyXL: Story = {
|
|
89
|
+
name: "Typography-xl",
|
|
90
|
+
args: {
|
|
91
|
+
text: "(XL) Expresso Figueiredo",
|
|
92
|
+
align: "center",
|
|
93
|
+
color: theme.colors.neutral[25],
|
|
94
|
+
size: theme.fontSizes["xl"],
|
|
95
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
96
|
+
fontWeight: "400",
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export const Typography2XL: Story = {
|
|
101
|
+
name: "Typography-2xl",
|
|
102
|
+
args: {
|
|
103
|
+
text: "(2XL) Expresso Figueiredo",
|
|
104
|
+
align: "center",
|
|
105
|
+
color: theme.colors.neutral[25],
|
|
106
|
+
size: theme.fontSizes["2xl"],
|
|
107
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
108
|
+
fontWeight: "400",
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export const Typography3XL: Story = {
|
|
113
|
+
name: "Typography-3xl",
|
|
114
|
+
args: {
|
|
115
|
+
text: "(3XL) Expresso Figueiredo",
|
|
116
|
+
align: "center",
|
|
117
|
+
color: theme.colors.neutral[25],
|
|
118
|
+
size: theme.fontSizes["3xl"],
|
|
119
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
120
|
+
fontWeight: "400",
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export const Typography4XL: Story = {
|
|
125
|
+
name: "Typography-4xl",
|
|
126
|
+
args: {
|
|
127
|
+
text: "(4XL) Expresso Figueiredo",
|
|
128
|
+
align: "center",
|
|
129
|
+
color: theme.colors.neutral[25],
|
|
130
|
+
size: theme.fontSizes["4xl"],
|
|
131
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
132
|
+
fontWeight: "400",
|
|
133
|
+
},
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export const Typography5XL: Story = {
|
|
137
|
+
name: "Typography-5xl",
|
|
138
|
+
args: {
|
|
139
|
+
text: "(5XL) Expresso Figueiredo",
|
|
140
|
+
align: "center",
|
|
141
|
+
color: theme.colors.neutral[25],
|
|
142
|
+
size: theme.fontSizes["5xl"],
|
|
143
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
144
|
+
fontWeight: "400",
|
|
145
|
+
},
|
|
146
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { StoryObj, Meta } from "@storybook/react";
|
|
2
|
+
|
|
3
|
+
import { UserProfile } from "../../components/user-profile";
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof UserProfile> = {
|
|
6
|
+
title: "componente/UserProfile",
|
|
7
|
+
component: UserProfile,
|
|
8
|
+
args: {
|
|
9
|
+
avatar: "",
|
|
10
|
+
},
|
|
11
|
+
parameters: {
|
|
12
|
+
notes: `
|
|
13
|
+
# UserProfile
|
|
14
|
+
|
|
15
|
+
Este é um componente de Card de horas.
|
|
16
|
+
Você usa assim:
|
|
17
|
+
\`\`\`tsx
|
|
18
|
+
<UserProfile
|
|
19
|
+
|
|
20
|
+
/>
|
|
21
|
+
\`\`\`
|
|
22
|
+
`,
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export default meta;
|
|
27
|
+
|
|
28
|
+
type Story = StoryObj<typeof meta>;
|
|
29
|
+
|
|
30
|
+
export const Profile: Story = {
|
|
31
|
+
name: "user-profile",
|
|
32
|
+
args: {
|
|
33
|
+
avatar:
|
|
34
|
+
"https://img.freepik.com/fotos-gratis/retrato-de-um-motorista-de-caminhao-sentado-em-seu-caminhao-segurando-o-polegar-para-cima_342744-1340.jpg?semt=ais_hybrid",
|
|
35
|
+
width: 300,
|
|
36
|
+
nome: "profile-name",
|
|
37
|
+
placa_cavalo: "kkk-0k51",
|
|
38
|
+
bluetoothIsConnected: true,
|
|
39
|
+
cpf: "000.000.000-00",
|
|
40
|
+
app_version: "0.1.0",
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const Anonimo: Story = {
|
|
45
|
+
name: "user-profile-anonimo",
|
|
46
|
+
args: {
|
|
47
|
+
avatar: "",
|
|
48
|
+
// width: 300,
|
|
49
|
+
nome: "",
|
|
50
|
+
cpf: "",
|
|
51
|
+
app_version: "0.1.0",
|
|
52
|
+
color: {
|
|
53
|
+
colorText: "gray",
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
};
|
|
@@ -1,131 +1,131 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { DimensionValue } from "react-native";
|
|
6
|
-
import { theme } from "../theme/theme";
|
|
7
|
-
|
|
8
|
-
export interface IGlobalCss {
|
|
9
|
-
/**
|
|
10
|
-
* A propriedade JSX que define um elemento ou componente filho.
|
|
11
|
-
*/
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* TestID para testes automático e identificação
|
|
16
|
-
*/
|
|
17
|
-
testID?: string;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* A propriedade CSS abreviada border define a borda de um elemento. Ele define os valores de largura da borda, estilo da borda e cor da borda.
|
|
21
|
-
*/
|
|
22
|
-
borderStyled?: {
|
|
23
|
-
borderStyle?: "solid" | "dotted" | "dashed";
|
|
24
|
-
|
|
25
|
-
borderRadius?: number | DimensionValue;
|
|
26
|
-
borderTopRightRadius?: number | DimensionValue;
|
|
27
|
-
borderTopLeftRadius?: number | DimensionValue;
|
|
28
|
-
borderBottomRightRadius?: number | DimensionValue;
|
|
29
|
-
borderBottomLeftRadius?: number | DimensionValue;
|
|
30
|
-
|
|
31
|
-
borderWidth?: number | DimensionValue;
|
|
32
|
-
borderLeftWidth?: number | DimensionValue;
|
|
33
|
-
borderRightWidth?: number | DimensionValue;
|
|
34
|
-
borderTopWidth?: number | DimensionValue;
|
|
35
|
-
borderBottomWidth?: number | DimensionValue;
|
|
36
|
-
|
|
37
|
-
borderColor?: string;
|
|
38
|
-
borderBottomColor?: string;
|
|
39
|
-
borderLeftColor?: string;
|
|
40
|
-
borderRightColor?: string;
|
|
41
|
-
borderTopColor?: string;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Propriedades que define a orientação do button que é usada para representar uma página. Na maioria das vezes, esse valores corresponde ao posicionamento alvo da página impressa, se aplicável.
|
|
46
|
-
*/
|
|
47
|
-
flexStyle?: {
|
|
48
|
-
alignItems?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
49
|
-
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
50
|
-
flex?: string | number;
|
|
51
|
-
flexDirection?: "column" | "column-reverse" | "row" | "row-reverse";
|
|
52
|
-
flexWrap?: "nowrap" | "wrap" | "wrap-reverse";
|
|
53
|
-
textAlign?: "auto" | "center" | "left" | "right" | "justify";
|
|
54
|
-
justifyContent?:
|
|
55
|
-
| "flex-start"
|
|
56
|
-
| "flex-end"
|
|
57
|
-
| "center"
|
|
58
|
-
| "space-between"
|
|
59
|
-
| "space-around"
|
|
60
|
-
| "space-evenly";
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* A propriedade margin do CSS define a área de margem nos quatro lados do elemento. É uma abreviação que define todas as margens individuais de uma só vez: margin-top, margin-right (en-US), margin-bottom, e margin-left (en-US).
|
|
65
|
-
*/
|
|
66
|
-
marginStyle?: {
|
|
67
|
-
margin?: number | DimensionValue;
|
|
68
|
-
marginLeft?: number | DimensionValue;
|
|
69
|
-
marginRight?: number | DimensionValue;
|
|
70
|
-
marginTop?: number | DimensionValue;
|
|
71
|
-
marginBottom?: number | DimensionValue;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* A propriedade padding define uma a distância entre o conteúdo de um elemento e suas bordas. É um atalho que evita definir uma distância para cada lado separadamente (padding-top, padding-right, padding-bottom, padding-left).
|
|
76
|
-
*/
|
|
77
|
-
paddingStyle?: {
|
|
78
|
-
padding?: number | DimensionValue;
|
|
79
|
-
paddingLeft?: number | DimensionValue;
|
|
80
|
-
paddingRight?: number | DimensionValue;
|
|
81
|
-
paddingTop?: number | DimensionValue;
|
|
82
|
-
paddingBottom?: number | DimensionValue;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* A propriedade CSS height define a altura de um elemento. A altura de um elemento é a distância do topo da borda superior do elemento ao fundo da borda inferior.
|
|
87
|
-
*/
|
|
88
|
-
height?: number | DimensionValue;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* A propriedade CSS width define a largura de um elemento. A largura de um elemento é a distância do topo da borda esquerda do elemento ao fundo da borda direita.
|
|
92
|
-
*/
|
|
93
|
-
width?: number | DimensionValue;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* O fundo abreviado CSS Propriedade define todas as propriedades do estilo de fundo de uma só vez, como cor, imagem, origem e tamanho ou método de repetição. As propriedades dos componentes não definidas no fundo da declaração de valor da propriedade abreviada são definidas como seus valores padrão..
|
|
97
|
-
*/
|
|
98
|
-
backgroundColor?: string;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Propriedade texto que sera renderizado pro usuário final
|
|
102
|
-
*/
|
|
103
|
-
text?: string;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* A propriedade CSS color define o valor da cor de primeiro plano do texto e das decorações de texto de um elemento e define o valor currentcolor. currentcolor pode ser usado como um valor indireto em outras propriedades e é o padrão para outras propriedades de cores, como border-color.
|
|
107
|
-
*/
|
|
108
|
-
color?: {
|
|
109
|
-
colorSvg?: string;
|
|
110
|
-
colorText?: string;
|
|
111
|
-
colorTextBold?: string;
|
|
112
|
-
colorTextData?: string;
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* A propriedade abreviada CSS da fonte define todas as propriedades diferentes da fonte de um elemento. Alternativamente, ele define a fonte de um elemento como uma fonte do sistema.
|
|
117
|
-
*/
|
|
118
|
-
fontStyle?: {
|
|
119
|
-
font?: string;
|
|
120
|
-
fontSize?: number;
|
|
121
|
-
fontWeight?: "100" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "bold";
|
|
122
|
-
fontFamily?: keyof typeof theme.fonts;
|
|
123
|
-
letterSpacing?: keyof typeof theme.letterSpacing;
|
|
124
|
-
lineHeight?: number;
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// /**
|
|
129
|
-
// * EXPORTS
|
|
130
|
-
// */
|
|
131
|
-
// export { IGlobalCss };
|
|
1
|
+
/*
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { DimensionValue } from "react-native";
|
|
6
|
+
import { theme } from "../theme/theme";
|
|
7
|
+
|
|
8
|
+
export interface IGlobalCss {
|
|
9
|
+
/**
|
|
10
|
+
* A propriedade JSX que define um elemento ou componente filho.
|
|
11
|
+
*/
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* TestID para testes automático e identificação
|
|
16
|
+
*/
|
|
17
|
+
testID?: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* A propriedade CSS abreviada border define a borda de um elemento. Ele define os valores de largura da borda, estilo da borda e cor da borda.
|
|
21
|
+
*/
|
|
22
|
+
borderStyled?: {
|
|
23
|
+
borderStyle?: "solid" | "dotted" | "dashed";
|
|
24
|
+
|
|
25
|
+
borderRadius?: number | DimensionValue;
|
|
26
|
+
borderTopRightRadius?: number | DimensionValue;
|
|
27
|
+
borderTopLeftRadius?: number | DimensionValue;
|
|
28
|
+
borderBottomRightRadius?: number | DimensionValue;
|
|
29
|
+
borderBottomLeftRadius?: number | DimensionValue;
|
|
30
|
+
|
|
31
|
+
borderWidth?: number | DimensionValue;
|
|
32
|
+
borderLeftWidth?: number | DimensionValue;
|
|
33
|
+
borderRightWidth?: number | DimensionValue;
|
|
34
|
+
borderTopWidth?: number | DimensionValue;
|
|
35
|
+
borderBottomWidth?: number | DimensionValue;
|
|
36
|
+
|
|
37
|
+
borderColor?: string;
|
|
38
|
+
borderBottomColor?: string;
|
|
39
|
+
borderLeftColor?: string;
|
|
40
|
+
borderRightColor?: string;
|
|
41
|
+
borderTopColor?: string;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Propriedades que define a orientação do button que é usada para representar uma página. Na maioria das vezes, esse valores corresponde ao posicionamento alvo da página impressa, se aplicável.
|
|
46
|
+
*/
|
|
47
|
+
flexStyle?: {
|
|
48
|
+
alignItems?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
49
|
+
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
50
|
+
flex?: string | number;
|
|
51
|
+
flexDirection?: "column" | "column-reverse" | "row" | "row-reverse";
|
|
52
|
+
flexWrap?: "nowrap" | "wrap" | "wrap-reverse";
|
|
53
|
+
textAlign?: "auto" | "center" | "left" | "right" | "justify";
|
|
54
|
+
justifyContent?:
|
|
55
|
+
| "flex-start"
|
|
56
|
+
| "flex-end"
|
|
57
|
+
| "center"
|
|
58
|
+
| "space-between"
|
|
59
|
+
| "space-around"
|
|
60
|
+
| "space-evenly";
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* A propriedade margin do CSS define a área de margem nos quatro lados do elemento. É uma abreviação que define todas as margens individuais de uma só vez: margin-top, margin-right (en-US), margin-bottom, e margin-left (en-US).
|
|
65
|
+
*/
|
|
66
|
+
marginStyle?: {
|
|
67
|
+
margin?: number | DimensionValue;
|
|
68
|
+
marginLeft?: number | DimensionValue;
|
|
69
|
+
marginRight?: number | DimensionValue;
|
|
70
|
+
marginTop?: number | DimensionValue;
|
|
71
|
+
marginBottom?: number | DimensionValue;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* A propriedade padding define uma a distância entre o conteúdo de um elemento e suas bordas. É um atalho que evita definir uma distância para cada lado separadamente (padding-top, padding-right, padding-bottom, padding-left).
|
|
76
|
+
*/
|
|
77
|
+
paddingStyle?: {
|
|
78
|
+
padding?: number | DimensionValue;
|
|
79
|
+
paddingLeft?: number | DimensionValue;
|
|
80
|
+
paddingRight?: number | DimensionValue;
|
|
81
|
+
paddingTop?: number | DimensionValue;
|
|
82
|
+
paddingBottom?: number | DimensionValue;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* A propriedade CSS height define a altura de um elemento. A altura de um elemento é a distância do topo da borda superior do elemento ao fundo da borda inferior.
|
|
87
|
+
*/
|
|
88
|
+
height?: number | DimensionValue;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* A propriedade CSS width define a largura de um elemento. A largura de um elemento é a distância do topo da borda esquerda do elemento ao fundo da borda direita.
|
|
92
|
+
*/
|
|
93
|
+
width?: number | DimensionValue;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* O fundo abreviado CSS Propriedade define todas as propriedades do estilo de fundo de uma só vez, como cor, imagem, origem e tamanho ou método de repetição. As propriedades dos componentes não definidas no fundo da declaração de valor da propriedade abreviada são definidas como seus valores padrão..
|
|
97
|
+
*/
|
|
98
|
+
backgroundColor?: string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Propriedade texto que sera renderizado pro usuário final
|
|
102
|
+
*/
|
|
103
|
+
text?: string;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* A propriedade CSS color define o valor da cor de primeiro plano do texto e das decorações de texto de um elemento e define o valor currentcolor. currentcolor pode ser usado como um valor indireto em outras propriedades e é o padrão para outras propriedades de cores, como border-color.
|
|
107
|
+
*/
|
|
108
|
+
color?: {
|
|
109
|
+
colorSvg?: string;
|
|
110
|
+
colorText?: string;
|
|
111
|
+
colorTextBold?: string;
|
|
112
|
+
colorTextData?: string;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* A propriedade abreviada CSS da fonte define todas as propriedades diferentes da fonte de um elemento. Alternativamente, ele define a fonte de um elemento como uma fonte do sistema.
|
|
117
|
+
*/
|
|
118
|
+
fontStyle?: {
|
|
119
|
+
font?: string;
|
|
120
|
+
fontSize?: number;
|
|
121
|
+
fontWeight?: "100" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "bold";
|
|
122
|
+
fontFamily?: keyof typeof theme.fonts;
|
|
123
|
+
letterSpacing?: keyof typeof theme.letterSpacing;
|
|
124
|
+
lineHeight?: number;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// /**
|
|
129
|
+
// * EXPORTS
|
|
130
|
+
// */
|
|
131
|
+
// export { IGlobalCss };
|