react-native-exp-fig 0.1.13 → 0.1.15
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/lib/commonjs/common/icons-svg/agent/index.js +2 -2
- package/lib/commonjs/common/icons-svg/agent/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/bed/index.js +4 -4
- package/lib/commonjs/common/icons-svg/bed/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/car/index.js +4 -4
- package/lib/commonjs/common/icons-svg/car/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/check-outline/index.js +6 -6
- package/lib/commonjs/common/icons-svg/check-outline/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/coffee/index.js +4 -4
- package/lib/commonjs/common/icons-svg/coffee/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/constants/index.js +4 -4
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/index.js +4 -4
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/pencil/index.js +4 -4
- package/lib/commonjs/common/icons-svg/pencil/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/refresh-ccw-dot/index.js +2 -2
- package/lib/commonjs/common/icons-svg/refresh-ccw-dot/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/truck-activity/index.js +4 -4
- package/lib/commonjs/common/icons-svg/truck-activity/index.js.map +1 -1
- package/lib/commonjs/components/activities-daily/index.js +4 -4
- package/lib/commonjs/components/activities-daily/index.js.map +1 -1
- package/lib/commonjs/components/activities-daily/interface.d.js.map +1 -1
- package/lib/commonjs/components/activities-progress/index.js +4 -4
- package/lib/commonjs/components/activities-progress/index.js.map +1 -1
- package/lib/commonjs/components/activities-progress/interface.d.js.map +1 -1
- package/lib/commonjs/components/avatar-profile/index.js.map +1 -1
- package/lib/commonjs/components/avatar-profile/interface.d.js.map +1 -1
- package/lib/commonjs/components/card-history/index.js +7 -7
- package/lib/commonjs/components/card-history/index.js.map +1 -1
- package/lib/commonjs/components/card-loading/index.js +7 -7
- package/lib/commonjs/components/card-loading/index.js.map +1 -1
- package/lib/commonjs/components/card-work-session/index.js +4 -4
- package/lib/commonjs/components/card-work-session/index.js.map +1 -1
- package/lib/commonjs/components/check-box/index.js +6 -6
- package/lib/commonjs/components/check-box/index.js.map +1 -1
- package/lib/commonjs/components/check-box/interface.d.js.map +1 -1
- package/lib/commonjs/components/coil/index.js +4 -4
- package/lib/commonjs/components/coil/index.js.map +1 -1
- package/lib/commonjs/components/coil/interface.d.js.map +1 -1
- package/lib/commonjs/components/filter-date-selector/index.js +7 -7
- package/lib/commonjs/components/filter-date-selector/index.js.map +1 -1
- package/lib/commonjs/components/history-details/index.js +1 -2
- package/lib/commonjs/components/history-details/index.js.map +1 -1
- package/lib/commonjs/components/history-details/interface.d.js.map +1 -1
- package/lib/commonjs/components/image-capture-with-remove/index.js +7 -7
- package/lib/commonjs/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/commonjs/components/image-capture-with-remove/interface.d.js.map +1 -1
- package/lib/commonjs/components/loading-progress/index.js +12 -9
- package/lib/commonjs/components/loading-progress/index.js.map +1 -1
- package/lib/commonjs/components/notification-loading/index.js +9 -2
- package/lib/commonjs/components/notification-loading/index.js.map +1 -1
- package/lib/commonjs/components/notification-loading/interface.d.js.map +1 -1
- package/lib/commonjs/components/profile-menu-option/index.js.map +1 -1
- package/lib/commonjs/components/profile-menu-option/interface.d.js.map +1 -1
- package/lib/commonjs/components/step-indicator/index.js +6 -6
- package/lib/commonjs/components/step-indicator/index.js.map +1 -1
- package/lib/commonjs/components/step-indicator/interface.d.js.map +1 -1
- package/lib/commonjs/components/step-indicator/styles.js +9 -8
- package/lib/commonjs/components/step-indicator/styles.js.map +1 -1
- package/lib/commonjs/components/user-profile/index.js +6 -6
- package/lib/commonjs/components/user-profile/index.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/activities-daily/activities-daily.stories.js.map +1 -1
- package/lib/commonjs/stories/activities-progress/activities-progress.stories.js.map +1 -1
- package/lib/commonjs/stories/avatar-profile/avatar-profile.stories.js.map +1 -1
- package/lib/commonjs/stories/card-loading/card-loading.stories.js.map +1 -1
- package/lib/commonjs/stories/check-box/check-box.stories.js.map +1 -1
- package/lib/commonjs/stories/coil/coil.stories.js.map +1 -1
- package/lib/commonjs/stories/filter-date-selector/filter-date-selector.stories.js.map +1 -1
- package/lib/commonjs/stories/history-details/history-details.stories.js.map +1 -1
- package/lib/commonjs/stories/image-capture-with-remove/image-capture-with-remove.stories.js.map +1 -1
- package/lib/commonjs/stories/notification-loading/notification-loading.stories.js.map +1 -1
- package/lib/commonjs/stories/profile-menu-option/profile-menu-option.stories.js.map +1 -1
- package/lib/commonjs/stories/step-indicator/step-indicator.stories.js.map +1 -1
- package/lib/commonjs/styles/theme/theme.js +4 -4
- package/lib/commonjs/styles/theme/theme.js.map +1 -1
- package/lib/commonjs/utils/format-data/index.js +11 -11
- package/lib/commonjs/utils/format-data/index.js.map +1 -1
- package/lib/commonjs/utils/status-color/return-color.js.map +1 -1
- package/lib/module/common/icons-svg/agent/index.js +2 -2
- package/lib/module/common/icons-svg/agent/index.js.map +1 -1
- package/lib/module/common/icons-svg/bed/index.js +4 -4
- package/lib/module/common/icons-svg/bed/index.js.map +1 -1
- package/lib/module/common/icons-svg/car/index.js +4 -4
- package/lib/module/common/icons-svg/car/index.js.map +1 -1
- package/lib/module/common/icons-svg/check-outline/index.js +6 -6
- package/lib/module/common/icons-svg/check-outline/index.js.map +1 -1
- package/lib/module/common/icons-svg/coffee/index.js +4 -4
- package/lib/module/common/icons-svg/coffee/index.js.map +1 -1
- package/lib/module/common/icons-svg/constants/index.js +4 -4
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/index.js +4 -4
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/common/icons-svg/pencil/index.js +4 -4
- package/lib/module/common/icons-svg/pencil/index.js.map +1 -1
- package/lib/module/common/icons-svg/refresh-ccw-dot/index.js +2 -2
- package/lib/module/common/icons-svg/refresh-ccw-dot/index.js.map +1 -1
- package/lib/module/common/icons-svg/truck-activity/index.js +4 -4
- package/lib/module/common/icons-svg/truck-activity/index.js.map +1 -1
- package/lib/module/components/activities-daily/index.js +4 -4
- package/lib/module/components/activities-daily/index.js.map +1 -1
- package/lib/module/components/activities-daily/interface.d.js.map +1 -1
- package/lib/module/components/activities-progress/index.js +4 -4
- package/lib/module/components/activities-progress/index.js.map +1 -1
- package/lib/module/components/activities-progress/interface.d.js.map +1 -1
- package/lib/module/components/avatar-profile/index.js.map +1 -1
- package/lib/module/components/avatar-profile/interface.d.js.map +1 -1
- package/lib/module/components/card-history/index.js +7 -7
- package/lib/module/components/card-history/index.js.map +1 -1
- package/lib/module/components/card-loading/index.js +7 -7
- package/lib/module/components/card-loading/index.js.map +1 -1
- package/lib/module/components/card-work-session/index.js +4 -4
- package/lib/module/components/card-work-session/index.js.map +1 -1
- package/lib/module/components/check-box/index.js +6 -6
- package/lib/module/components/check-box/index.js.map +1 -1
- package/lib/module/components/check-box/interface.d.js.map +1 -1
- package/lib/module/components/coil/index.js +4 -4
- package/lib/module/components/coil/index.js.map +1 -1
- package/lib/module/components/coil/interface.d.js.map +1 -1
- package/lib/module/components/filter-date-selector/index.js +7 -7
- package/lib/module/components/filter-date-selector/index.js.map +1 -1
- package/lib/module/components/history-details/index.js +1 -2
- package/lib/module/components/history-details/index.js.map +1 -1
- package/lib/module/components/history-details/interface.d.js.map +1 -1
- package/lib/module/components/image-capture-with-remove/index.js +7 -7
- package/lib/module/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/module/components/image-capture-with-remove/interface.d.js.map +1 -1
- package/lib/module/components/loading-progress/index.js +12 -9
- package/lib/module/components/loading-progress/index.js.map +1 -1
- package/lib/module/components/notification-loading/index.js +9 -2
- package/lib/module/components/notification-loading/index.js.map +1 -1
- package/lib/module/components/notification-loading/interface.d.js.map +1 -1
- package/lib/module/components/profile-menu-option/index.js.map +1 -1
- package/lib/module/components/profile-menu-option/interface.d.js.map +1 -1
- package/lib/module/components/step-indicator/index.js +6 -6
- package/lib/module/components/step-indicator/index.js.map +1 -1
- package/lib/module/components/step-indicator/interface.d.js.map +1 -1
- package/lib/module/components/step-indicator/styles.js +9 -8
- package/lib/module/components/step-indicator/styles.js.map +1 -1
- package/lib/module/components/user-profile/index.js +6 -6
- package/lib/module/components/user-profile/index.js.map +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/activities-daily/activities-daily.stories.js.map +1 -1
- package/lib/module/stories/activities-progress/activities-progress.stories.js.map +1 -1
- package/lib/module/stories/avatar-profile/avatar-profile.stories.js.map +1 -1
- package/lib/module/stories/card-loading/card-loading.stories.js.map +1 -1
- package/lib/module/stories/check-box/check-box.stories.js.map +1 -1
- package/lib/module/stories/coil/coil.stories.js.map +1 -1
- package/lib/module/stories/filter-date-selector/filter-date-selector.stories.js.map +1 -1
- package/lib/module/stories/history-details/history-details.stories.js.map +1 -1
- package/lib/module/stories/image-capture-with-remove/image-capture-with-remove.stories.js.map +1 -1
- package/lib/module/stories/notification-loading/notification-loading.stories.js.map +1 -1
- package/lib/module/stories/profile-menu-option/profile-menu-option.stories.js.map +1 -1
- package/lib/module/stories/step-indicator/step-indicator.stories.js.map +1 -1
- package/lib/module/styles/theme/theme.js +4 -4
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/module/utils/format-data/index.js +11 -11
- package/lib/module/utils/format-data/index.js.map +1 -1
- package/lib/module/utils/status-color/return-color.js.map +1 -1
- package/lib/typescript/src/components/step-indicator/styles.d.ts +1 -0
- package/package.json +5 -5
- package/src/common/icons-svg/agent/index.tsx +40 -40
- package/src/common/icons-svg/bed/index.tsx +41 -41
- package/src/common/icons-svg/car/index.tsx +29 -29
- package/src/common/icons-svg/check-outline/index.tsx +42 -42
- package/src/common/icons-svg/coffee/index.tsx +43 -43
- package/src/common/icons-svg/constants/index.ts +63 -63
- package/src/common/icons-svg/index.tsx +255 -255
- package/src/common/icons-svg/pencil/index.tsx +32 -32
- package/src/common/icons-svg/refresh-ccw-dot/index.tsx +32 -32
- package/src/common/icons-svg/truck-activity/index.tsx +29 -29
- package/src/components/activities-daily/index.tsx +116 -116
- package/src/components/activities-daily/interface.d.ts +22 -22
- package/src/components/activities-progress/index.tsx +162 -162
- package/src/components/activities-progress/interface.d.ts +41 -41
- package/src/components/avatar-profile/index.tsx +95 -95
- package/src/components/avatar-profile/interface.d.ts +39 -39
- package/src/components/card-history/index.tsx +149 -149
- package/src/components/card-loading/index.tsx +278 -278
- package/src/components/card-work-session/index.tsx +187 -187
- package/src/components/check-box/index.tsx +94 -94
- package/src/components/check-box/interface.d.ts +31 -31
- package/src/components/coil/index.tsx +103 -103
- package/src/components/coil/interface.d.ts +26 -26
- package/src/components/filter-date-selector/index.tsx +101 -101
- package/src/components/history-details/index.tsx +1 -2
- package/src/components/history-details/interface.d.ts +18 -18
- package/src/components/image-capture-with-remove/index.tsx +89 -89
- package/src/components/image-capture-with-remove/interface.d.ts +25 -25
- package/src/components/loading-progress/index.tsx +92 -91
- package/src/components/notification-loading/index.tsx +9 -2
- package/src/components/notification-loading/interface.d.ts +35 -35
- package/src/components/profile-menu-option/index.tsx +65 -65
- package/src/components/profile-menu-option/interface.d.ts +42 -42
- 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 +68 -67
- package/src/components/user-profile/index.tsx +204 -204
- package/src/index.ts +42 -42
- package/src/stories/activities-daily/activities-daily.stories.tsx +40 -40
- package/src/stories/activities-progress/activities-progress.stories.tsx +61 -61
- package/src/stories/avatar-profile/avatar-profile.stories.tsx +32 -32
- package/src/stories/card-loading/card-loading.stories.tsx +85 -85
- package/src/stories/check-box/check-box.stories.tsx +81 -81
- package/src/stories/coil/coil.stories.tsx +98 -98
- package/src/stories/filter-date-selector/filter-date-selector.stories.tsx +122 -122
- package/src/stories/history-details/history-details.stories.tsx +36 -36
- package/src/stories/image-capture-with-remove/image-capture-with-remove.stories.tsx +57 -57
- package/src/stories/notification-loading/notification-loading.stories.tsx +88 -88
- package/src/stories/profile-menu-option/profile-menu-option.stories.tsx +70 -70
- package/src/stories/step-indicator/step-indicator.stories.tsx +124 -124
- package/src/styles/theme/theme.ts +170 -170
- package/src/utils/format-data/index.ts +66 -66
- package/src/utils/status-color/return-color.ts +23 -23
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import type { StoryObj, Meta } from "@storybook/react";
|
|
2
|
-
|
|
3
|
-
import { ActivitiesProgress } from "../../components/activities-progress";
|
|
4
|
-
|
|
5
|
-
const meta: Meta<typeof ActivitiesProgress> = {
|
|
6
|
-
title: "componente/ActivitiesProgress",
|
|
7
|
-
component: ActivitiesProgress,
|
|
8
|
-
args: {
|
|
9
|
-
data_fim: "11/05/2025",
|
|
10
|
-
duracao: "00:30",
|
|
11
|
-
data_inicio: "17:20",
|
|
12
|
-
titleLabel: "Descanso",
|
|
13
|
-
},
|
|
14
|
-
parameters: {
|
|
15
|
-
notes: `
|
|
16
|
-
# ActivitiesProgress
|
|
17
|
-
|
|
18
|
-
Este é um componente de progresso de atividades.
|
|
19
|
-
Você usa assim:
|
|
20
|
-
\`\`\`tsx
|
|
21
|
-
<ActivitiesProgress
|
|
22
|
-
data_fim="11/05/2025"
|
|
23
|
-
duracao="00:30"
|
|
24
|
-
data_inicio="17:20"
|
|
25
|
-
titleLabel="Descanso"
|
|
26
|
-
/>
|
|
27
|
-
\`\`\`
|
|
28
|
-
`,
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export default meta;
|
|
33
|
-
|
|
34
|
-
type Story = StoryObj<typeof meta>;
|
|
35
|
-
|
|
36
|
-
export const ActivitiesProgressPadrao: Story = {
|
|
37
|
-
name: "activities-progress-padrao",
|
|
38
|
-
args: {},
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export const ActivitiesProgressTrabalho: Story = {
|
|
42
|
-
name: "activities-progress-trabalho",
|
|
43
|
-
args: {
|
|
44
|
-
data_fim: "15/06/2023",
|
|
45
|
-
duracao: "01:45",
|
|
46
|
-
data_inicio: "14:30",
|
|
47
|
-
titleLabel: "Trabalho",
|
|
48
|
-
situation: true,
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export const ActivitiesProgressDescanso: Story = {
|
|
53
|
-
name: "activities-progress-descanso",
|
|
54
|
-
args: {
|
|
55
|
-
data_fim: "20/07/2023",
|
|
56
|
-
duracao: "00:15",
|
|
57
|
-
data_inicio: "12:00",
|
|
58
|
-
titleLabel: "Descanso",
|
|
59
|
-
situation: true,
|
|
60
|
-
},
|
|
61
|
-
};
|
|
1
|
+
import type { StoryObj, Meta } from "@storybook/react";
|
|
2
|
+
|
|
3
|
+
import { ActivitiesProgress } from "../../components/activities-progress";
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof ActivitiesProgress> = {
|
|
6
|
+
title: "componente/ActivitiesProgress",
|
|
7
|
+
component: ActivitiesProgress,
|
|
8
|
+
args: {
|
|
9
|
+
data_fim: "11/05/2025",
|
|
10
|
+
duracao: "00:30",
|
|
11
|
+
data_inicio: "17:20",
|
|
12
|
+
titleLabel: "Descanso",
|
|
13
|
+
},
|
|
14
|
+
parameters: {
|
|
15
|
+
notes: `
|
|
16
|
+
# ActivitiesProgress
|
|
17
|
+
|
|
18
|
+
Este é um componente de progresso de atividades.
|
|
19
|
+
Você usa assim:
|
|
20
|
+
\`\`\`tsx
|
|
21
|
+
<ActivitiesProgress
|
|
22
|
+
data_fim="11/05/2025"
|
|
23
|
+
duracao="00:30"
|
|
24
|
+
data_inicio="17:20"
|
|
25
|
+
titleLabel="Descanso"
|
|
26
|
+
/>
|
|
27
|
+
\`\`\`
|
|
28
|
+
`,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export default meta;
|
|
33
|
+
|
|
34
|
+
type Story = StoryObj<typeof meta>;
|
|
35
|
+
|
|
36
|
+
export const ActivitiesProgressPadrao: Story = {
|
|
37
|
+
name: "activities-progress-padrao",
|
|
38
|
+
args: {},
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const ActivitiesProgressTrabalho: Story = {
|
|
42
|
+
name: "activities-progress-trabalho",
|
|
43
|
+
args: {
|
|
44
|
+
data_fim: "15/06/2023",
|
|
45
|
+
duracao: "01:45",
|
|
46
|
+
data_inicio: "14:30",
|
|
47
|
+
titleLabel: "Trabalho",
|
|
48
|
+
situation: true,
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export const ActivitiesProgressDescanso: Story = {
|
|
53
|
+
name: "activities-progress-descanso",
|
|
54
|
+
args: {
|
|
55
|
+
data_fim: "20/07/2023",
|
|
56
|
+
duracao: "00:15",
|
|
57
|
+
data_inicio: "12:00",
|
|
58
|
+
titleLabel: "Descanso",
|
|
59
|
+
situation: true,
|
|
60
|
+
},
|
|
61
|
+
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { AvatarProfile } from "../../components/avatar-profile";
|
|
3
|
-
|
|
4
|
-
const meta: Meta<typeof AvatarProfile> = {
|
|
5
|
-
title: "Componente/AvatarProfile",
|
|
6
|
-
component: AvatarProfile,
|
|
7
|
-
args: {
|
|
8
|
-
name: "Everton",
|
|
9
|
-
avatar: "https://randomuser.me/api/portraits/men/1.jpg",
|
|
10
|
-
email: "teste@gmail.com",
|
|
11
|
-
isEdit: false,
|
|
12
|
-
handleTakePicker: () => {},
|
|
13
|
-
},
|
|
14
|
-
parameters: {
|
|
15
|
-
notes: ` AvatarProfile Componente de avatar de perfil com edição opcional.`,
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export default meta;
|
|
20
|
-
|
|
21
|
-
type Story = StoryObj<typeof meta>;
|
|
22
|
-
|
|
23
|
-
export const Default: Story = {
|
|
24
|
-
name: "default",
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const Editable: Story = {
|
|
28
|
-
name: "editable",
|
|
29
|
-
args: {
|
|
30
|
-
isEdit: true,
|
|
31
|
-
},
|
|
32
|
-
};
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { AvatarProfile } from "../../components/avatar-profile";
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof AvatarProfile> = {
|
|
5
|
+
title: "Componente/AvatarProfile",
|
|
6
|
+
component: AvatarProfile,
|
|
7
|
+
args: {
|
|
8
|
+
name: "Everton",
|
|
9
|
+
avatar: "https://randomuser.me/api/portraits/men/1.jpg",
|
|
10
|
+
email: "teste@gmail.com",
|
|
11
|
+
isEdit: false,
|
|
12
|
+
handleTakePicker: () => {},
|
|
13
|
+
},
|
|
14
|
+
parameters: {
|
|
15
|
+
notes: ` AvatarProfile Componente de avatar de perfil com edição opcional.`,
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export default meta;
|
|
20
|
+
|
|
21
|
+
type Story = StoryObj<typeof meta>;
|
|
22
|
+
|
|
23
|
+
export const Default: Story = {
|
|
24
|
+
name: "default",
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const Editable: Story = {
|
|
28
|
+
name: "editable",
|
|
29
|
+
args: {
|
|
30
|
+
isEdit: true,
|
|
31
|
+
},
|
|
32
|
+
};
|
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
import type { StoryObj, Meta } from "@storybook/react";
|
|
2
|
-
|
|
3
|
-
import { CardLoading } from "../../components/card-loading";
|
|
4
|
-
import { theme } from "../../styles/theme/theme";
|
|
5
|
-
|
|
6
|
-
const meta: Meta<typeof CardLoading> = {
|
|
7
|
-
title: "componente/CardLoading",
|
|
8
|
-
component: CardLoading,
|
|
9
|
-
args: {
|
|
10
|
-
width: 120,
|
|
11
|
-
height: 90,
|
|
12
|
-
title: "Carregamento #01020304050607",
|
|
13
|
-
backgroundColor: theme.colors.blue[400],
|
|
14
|
-
handleNavigation: () => {},
|
|
15
|
-
},
|
|
16
|
-
parameters: {
|
|
17
|
-
notes: `
|
|
18
|
-
# CardLoading
|
|
19
|
-
|
|
20
|
-
Este é um componente de CardLoading.
|
|
21
|
-
Você usa assim:
|
|
22
|
-
\`\`\`tsx
|
|
23
|
-
<CardLoading
|
|
24
|
-
width={"100%"}
|
|
25
|
-
title="Carregamento #01020304050607"
|
|
26
|
-
local="Doca 1, Patío 03 - Usiminas Ipatinga"
|
|
27
|
-
vehicle="EXP-0000"
|
|
28
|
-
prevision="12:37 10/03/2025"
|
|
29
|
-
kg={40}
|
|
30
|
-
qtdCoils={15}
|
|
31
|
-
status="Pendente"
|
|
32
|
-
handleNavigation={() => {}}
|
|
33
|
-
/>
|
|
34
|
-
\`\`\`
|
|
35
|
-
`,
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export default meta;
|
|
40
|
-
|
|
41
|
-
type Story = StoryObj<typeof meta>;
|
|
42
|
-
|
|
43
|
-
export const CardLoadingAprovado: Story = {
|
|
44
|
-
name: "card-carregamento-aprovado",
|
|
45
|
-
args: {
|
|
46
|
-
width: "100%",
|
|
47
|
-
title: "Carregamento #01020304050607",
|
|
48
|
-
local: "Doca 1, Patío 03 - Usiminas Ipatinga",
|
|
49
|
-
vehicle: "EXP-0000",
|
|
50
|
-
prevision: "12:37 10/03/2025",
|
|
51
|
-
kg: 40,
|
|
52
|
-
qtdCoils: 15,
|
|
53
|
-
status: "Concluido",
|
|
54
|
-
handleNavigation: () => {},
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
export const CardLoadingPendente: Story = {
|
|
59
|
-
name: "card-carregamento-pendente",
|
|
60
|
-
args: {
|
|
61
|
-
width: "100%",
|
|
62
|
-
title: "Carregamento #01020304050607",
|
|
63
|
-
local: "Doca 1, Patío 03 - Usiminas Ipatinga",
|
|
64
|
-
vehicle: "EXP-0000",
|
|
65
|
-
prevision: "12:37 10/03/2025",
|
|
66
|
-
kg: 40,
|
|
67
|
-
qtdCoils: 15,
|
|
68
|
-
status: "Pendente",
|
|
69
|
-
handleNavigation: () => {},
|
|
70
|
-
},
|
|
71
|
-
};
|
|
72
|
-
export const CardLoadingReprovado: Story = {
|
|
73
|
-
name: "card-carregamento-reprovado",
|
|
74
|
-
args: {
|
|
75
|
-
width: "100%",
|
|
76
|
-
title: "Carregamento #01020304050607",
|
|
77
|
-
local: "Doca 1, Patío 03 - Usiminas Ipatinga",
|
|
78
|
-
vehicle: "EXP-0000",
|
|
79
|
-
prevision: "12:37 10/03/2025",
|
|
80
|
-
kg: 40,
|
|
81
|
-
qtdCoils: 15,
|
|
82
|
-
status: "Cancelado",
|
|
83
|
-
handleNavigation: () => {},
|
|
84
|
-
},
|
|
85
|
-
};
|
|
1
|
+
import type { StoryObj, Meta } from "@storybook/react";
|
|
2
|
+
|
|
3
|
+
import { CardLoading } from "../../components/card-loading";
|
|
4
|
+
import { theme } from "../../styles/theme/theme";
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof CardLoading> = {
|
|
7
|
+
title: "componente/CardLoading",
|
|
8
|
+
component: CardLoading,
|
|
9
|
+
args: {
|
|
10
|
+
width: 120,
|
|
11
|
+
height: 90,
|
|
12
|
+
title: "Carregamento #01020304050607",
|
|
13
|
+
backgroundColor: theme.colors.blue[400],
|
|
14
|
+
handleNavigation: () => {},
|
|
15
|
+
},
|
|
16
|
+
parameters: {
|
|
17
|
+
notes: `
|
|
18
|
+
# CardLoading
|
|
19
|
+
|
|
20
|
+
Este é um componente de CardLoading.
|
|
21
|
+
Você usa assim:
|
|
22
|
+
\`\`\`tsx
|
|
23
|
+
<CardLoading
|
|
24
|
+
width={"100%"}
|
|
25
|
+
title="Carregamento #01020304050607"
|
|
26
|
+
local="Doca 1, Patío 03 - Usiminas Ipatinga"
|
|
27
|
+
vehicle="EXP-0000"
|
|
28
|
+
prevision="12:37 10/03/2025"
|
|
29
|
+
kg={40}
|
|
30
|
+
qtdCoils={15}
|
|
31
|
+
status="Pendente"
|
|
32
|
+
handleNavigation={() => {}}
|
|
33
|
+
/>
|
|
34
|
+
\`\`\`
|
|
35
|
+
`,
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export default meta;
|
|
40
|
+
|
|
41
|
+
type Story = StoryObj<typeof meta>;
|
|
42
|
+
|
|
43
|
+
export const CardLoadingAprovado: Story = {
|
|
44
|
+
name: "card-carregamento-aprovado",
|
|
45
|
+
args: {
|
|
46
|
+
width: "100%",
|
|
47
|
+
title: "Carregamento #01020304050607",
|
|
48
|
+
local: "Doca 1, Patío 03 - Usiminas Ipatinga",
|
|
49
|
+
vehicle: "EXP-0000",
|
|
50
|
+
prevision: "12:37 10/03/2025",
|
|
51
|
+
kg: 40,
|
|
52
|
+
qtdCoils: 15,
|
|
53
|
+
status: "Concluido",
|
|
54
|
+
handleNavigation: () => {},
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const CardLoadingPendente: Story = {
|
|
59
|
+
name: "card-carregamento-pendente",
|
|
60
|
+
args: {
|
|
61
|
+
width: "100%",
|
|
62
|
+
title: "Carregamento #01020304050607",
|
|
63
|
+
local: "Doca 1, Patío 03 - Usiminas Ipatinga",
|
|
64
|
+
vehicle: "EXP-0000",
|
|
65
|
+
prevision: "12:37 10/03/2025",
|
|
66
|
+
kg: 40,
|
|
67
|
+
qtdCoils: 15,
|
|
68
|
+
status: "Pendente",
|
|
69
|
+
handleNavigation: () => {},
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
export const CardLoadingReprovado: Story = {
|
|
73
|
+
name: "card-carregamento-reprovado",
|
|
74
|
+
args: {
|
|
75
|
+
width: "100%",
|
|
76
|
+
title: "Carregamento #01020304050607",
|
|
77
|
+
local: "Doca 1, Patío 03 - Usiminas Ipatinga",
|
|
78
|
+
vehicle: "EXP-0000",
|
|
79
|
+
prevision: "12:37 10/03/2025",
|
|
80
|
+
kg: 40,
|
|
81
|
+
qtdCoils: 15,
|
|
82
|
+
status: "Cancelado",
|
|
83
|
+
handleNavigation: () => {},
|
|
84
|
+
},
|
|
85
|
+
};
|
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { StoryObj, Meta } from "@storybook/react";
|
|
3
|
-
|
|
4
|
-
import { CheckBox } from "../../components/check-box";
|
|
5
|
-
import { theme } from "../../styles/theme/theme";
|
|
6
|
-
|
|
7
|
-
const meta: Meta<typeof CheckBox> = {
|
|
8
|
-
title: "componente/CheckBox",
|
|
9
|
-
component: CheckBox as React.FC,
|
|
10
|
-
args: {
|
|
11
|
-
onPress: () => {},
|
|
12
|
-
isChecked: false,
|
|
13
|
-
backgroundColorCheck: theme.colors.blue[375],
|
|
14
|
-
},
|
|
15
|
-
parameters: {
|
|
16
|
-
notes: `
|
|
17
|
-
# CheckBox
|
|
18
|
-
|
|
19
|
-
Componente de caixa de seleção customizável com ou sem texto.
|
|
20
|
-
|
|
21
|
-
Exemplo de uso:
|
|
22
|
-
|
|
23
|
-
\`\`\`tsx
|
|
24
|
-
<CheckBox
|
|
25
|
-
isChecked={false}
|
|
26
|
-
widthBoxCheckIcon={30}
|
|
27
|
-
backgroundColorCheck={theme.colors.blue[400]}
|
|
28
|
-
textSizeLabel={16}
|
|
29
|
-
textLabel="Eu concordo com a Política de privacidade da ExpFig e dou consentimento para a coleta, e processamento e uso dos meus dados pessoais."
|
|
30
|
-
colorTextLabel={theme.colors.gray[600]}
|
|
31
|
-
backgroundBoxCheckIcon={"transparent"}
|
|
32
|
-
/>
|
|
33
|
-
\`\`\`
|
|
34
|
-
`,
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export default meta;
|
|
39
|
-
|
|
40
|
-
type Story = StoryObj<typeof meta>;
|
|
41
|
-
|
|
42
|
-
export const CheckBoxDisable: Story = {
|
|
43
|
-
name: "checkbox-desmarcado",
|
|
44
|
-
args: {
|
|
45
|
-
isChecked: false,
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export const CheckBoxAble: Story = {
|
|
50
|
-
name: "checkbox-marcado",
|
|
51
|
-
args: {
|
|
52
|
-
widthBoxCheckIcon: 40,
|
|
53
|
-
isChecked: true,
|
|
54
|
-
backgroundColorCheck: theme.colors.blue[50],
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
export const CheckBoxDisableWithLabel: Story = {
|
|
59
|
-
name: "checkbox-desmarcado-com-label",
|
|
60
|
-
args: {
|
|
61
|
-
widthBoxCheckIcon: 30,
|
|
62
|
-
backgroundBoxCheckIcon: "transparent",
|
|
63
|
-
textLabel:
|
|
64
|
-
"Eu concordo com a Política de privacidade da ExpFig e dou consentimento para a coleta, e processamento e uso dos meus dados pessoais.",
|
|
65
|
-
textSizeLabel: 17,
|
|
66
|
-
colorTextLabel: theme.colors.neutral[25],
|
|
67
|
-
isChecked: false,
|
|
68
|
-
backgroundColorCheck: theme.colors.blue[375],
|
|
69
|
-
},
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
export const CheckBoxAbleWithLabel: Story = {
|
|
73
|
-
name: "checkbox-marcado-com-label",
|
|
74
|
-
args: {
|
|
75
|
-
textLabel: "Label Checked",
|
|
76
|
-
textSizeLabel: 17,
|
|
77
|
-
colorTextLabel: theme.colors.neutral[25],
|
|
78
|
-
isChecked: true,
|
|
79
|
-
backgroundColorCheck: theme.colors.blue[375],
|
|
80
|
-
},
|
|
81
|
-
};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { StoryObj, Meta } from "@storybook/react";
|
|
3
|
+
|
|
4
|
+
import { CheckBox } from "../../components/check-box";
|
|
5
|
+
import { theme } from "../../styles/theme/theme";
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof CheckBox> = {
|
|
8
|
+
title: "componente/CheckBox",
|
|
9
|
+
component: CheckBox as React.FC,
|
|
10
|
+
args: {
|
|
11
|
+
onPress: () => {},
|
|
12
|
+
isChecked: false,
|
|
13
|
+
backgroundColorCheck: theme.colors.blue[375],
|
|
14
|
+
},
|
|
15
|
+
parameters: {
|
|
16
|
+
notes: `
|
|
17
|
+
# CheckBox
|
|
18
|
+
|
|
19
|
+
Componente de caixa de seleção customizável com ou sem texto.
|
|
20
|
+
|
|
21
|
+
Exemplo de uso:
|
|
22
|
+
|
|
23
|
+
\`\`\`tsx
|
|
24
|
+
<CheckBox
|
|
25
|
+
isChecked={false}
|
|
26
|
+
widthBoxCheckIcon={30}
|
|
27
|
+
backgroundColorCheck={theme.colors.blue[400]}
|
|
28
|
+
textSizeLabel={16}
|
|
29
|
+
textLabel="Eu concordo com a Política de privacidade da ExpFig e dou consentimento para a coleta, e processamento e uso dos meus dados pessoais."
|
|
30
|
+
colorTextLabel={theme.colors.gray[600]}
|
|
31
|
+
backgroundBoxCheckIcon={"transparent"}
|
|
32
|
+
/>
|
|
33
|
+
\`\`\`
|
|
34
|
+
`,
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export default meta;
|
|
39
|
+
|
|
40
|
+
type Story = StoryObj<typeof meta>;
|
|
41
|
+
|
|
42
|
+
export const CheckBoxDisable: Story = {
|
|
43
|
+
name: "checkbox-desmarcado",
|
|
44
|
+
args: {
|
|
45
|
+
isChecked: false,
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const CheckBoxAble: Story = {
|
|
50
|
+
name: "checkbox-marcado",
|
|
51
|
+
args: {
|
|
52
|
+
widthBoxCheckIcon: 40,
|
|
53
|
+
isChecked: true,
|
|
54
|
+
backgroundColorCheck: theme.colors.blue[50],
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const CheckBoxDisableWithLabel: Story = {
|
|
59
|
+
name: "checkbox-desmarcado-com-label",
|
|
60
|
+
args: {
|
|
61
|
+
widthBoxCheckIcon: 30,
|
|
62
|
+
backgroundBoxCheckIcon: "transparent",
|
|
63
|
+
textLabel:
|
|
64
|
+
"Eu concordo com a Política de privacidade da ExpFig e dou consentimento para a coleta, e processamento e uso dos meus dados pessoais.",
|
|
65
|
+
textSizeLabel: 17,
|
|
66
|
+
colorTextLabel: theme.colors.neutral[25],
|
|
67
|
+
isChecked: false,
|
|
68
|
+
backgroundColorCheck: theme.colors.blue[375],
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export const CheckBoxAbleWithLabel: Story = {
|
|
73
|
+
name: "checkbox-marcado-com-label",
|
|
74
|
+
args: {
|
|
75
|
+
textLabel: "Label Checked",
|
|
76
|
+
textSizeLabel: 17,
|
|
77
|
+
colorTextLabel: theme.colors.neutral[25],
|
|
78
|
+
isChecked: true,
|
|
79
|
+
backgroundColorCheck: theme.colors.blue[375],
|
|
80
|
+
},
|
|
81
|
+
};
|