vpt-sebraeds 0.0.1
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/LICENSE +21 -0
- package/README.md +73 -0
- package/dist/components/Accordion/index.d.ts +9 -0
- package/dist/components/Accordion/index.d.ts.map +1 -0
- package/dist/components/Accordion/index.js +123 -0
- package/dist/components/AccordionAvatar/index.d.ts +8 -0
- package/dist/components/AccordionAvatar/index.d.ts.map +1 -0
- package/dist/components/AccordionAvatar/index.js +63 -0
- package/dist/components/AdBanner/index.d.ts +12 -0
- package/dist/components/AdBanner/index.d.ts.map +1 -0
- package/dist/components/AdBanner/index.js +65 -0
- package/dist/components/Avatar/index.d.ts +9 -0
- package/dist/components/Avatar/index.d.ts.map +1 -0
- package/dist/components/Avatar/index.js +69 -0
- package/dist/components/BottomSheet/BottomSheetNomeEmpresa.d.ts +7 -0
- package/dist/components/BottomSheet/BottomSheetNomeEmpresa.d.ts.map +1 -0
- package/dist/components/BottomSheet/BottomSheetNomeEmpresa.js +101 -0
- package/dist/components/BottomSheet/Components/ActionButtons.d.ts +9 -0
- package/dist/components/BottomSheet/Components/ActionButtons.d.ts.map +1 -0
- package/dist/components/BottomSheet/Components/ActionButtons.js +73 -0
- package/dist/components/BottomSheet/Components/ListaDeEstados.d.ts +9 -0
- package/dist/components/BottomSheet/Components/ListaDeEstados.d.ts.map +1 -0
- package/dist/components/BottomSheet/Components/ListaDeEstados.js +269 -0
- package/dist/components/BottomSheet/index.d.ts +12 -0
- package/dist/components/BottomSheet/index.d.ts.map +1 -0
- package/dist/components/BottomSheet/index.js +226 -0
- package/dist/components/Breadcrumb/index.d.ts +23 -0
- package/dist/components/Breadcrumb/index.d.ts.map +1 -0
- package/dist/components/Breadcrumb/index.js +59 -0
- package/dist/components/Button/index.d.ts +25 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Button/index.js +424 -0
- package/dist/components/CardNumber/index.d.ts +37 -0
- package/dist/components/CardNumber/index.d.ts.map +1 -0
- package/dist/components/CardNumber/index.js +108 -0
- package/dist/components/Checkbox/index.d.ts +35 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/Checkbox/index.js +93 -0
- package/dist/components/CommitmentCard/index.d.ts +27 -0
- package/dist/components/CommitmentCard/index.d.ts.map +1 -0
- package/dist/components/CommitmentCard/index.js +188 -0
- package/dist/components/ContentBlock/ContentBlock.d.ts +12 -0
- package/dist/components/ContentBlock/ContentBlock.d.ts.map +1 -0
- package/dist/components/ContentBlock/ContentBlock.js +29 -0
- package/dist/components/ContentCard/index.d.ts +28 -0
- package/dist/components/ContentCard/index.d.ts.map +1 -0
- package/dist/components/ContentCard/index.js +192 -0
- package/dist/components/ContentRelatedCard/index.d.ts +27 -0
- package/dist/components/ContentRelatedCard/index.d.ts.map +1 -0
- package/dist/components/ContentRelatedCard/index.js +56 -0
- package/dist/components/ContentSlot/index.d.ts +18 -0
- package/dist/components/ContentSlot/index.d.ts.map +1 -0
- package/dist/components/ContentSlot/index.js +140 -0
- package/dist/components/CopyButton/index.d.ts +9 -0
- package/dist/components/CopyButton/index.d.ts.map +1 -0
- package/dist/components/CopyButton/index.js +159 -0
- package/dist/components/Datepicker/MonthSelector.d.ts +4 -0
- package/dist/components/Datepicker/MonthSelector.d.ts.map +1 -0
- package/dist/components/Datepicker/MonthSelector.js +256 -0
- package/dist/components/Datepicker/TimeSelector.d.ts +4 -0
- package/dist/components/Datepicker/TimeSelector.d.ts.map +1 -0
- package/dist/components/Datepicker/TimeSelector.js +193 -0
- package/dist/components/Datepicker/index.d.ts +6 -0
- package/dist/components/Datepicker/index.d.ts.map +1 -0
- package/dist/components/Datepicker/index.js +387 -0
- package/dist/components/DonutChart/index.d.ts +12 -0
- package/dist/components/DonutChart/index.d.ts.map +1 -0
- package/dist/components/DonutChart/index.js +153 -0
- package/dist/components/Dropdown/DropdownCommitments.d.ts +1 -0
- package/dist/components/Dropdown/DropdownCommitments.d.ts.map +1 -0
- package/dist/components/Dropdown/DropdownCommitments.js +1 -0
- package/dist/components/Dropdown/index.d.ts +12 -0
- package/dist/components/Dropdown/index.d.ts.map +1 -0
- package/dist/components/Dropdown/index.js +287 -0
- package/dist/components/DropdownCommitments/index.d.ts +7 -0
- package/dist/components/DropdownCommitments/index.d.ts.map +1 -0
- package/dist/components/DropdownCommitments/index.js +119 -0
- package/dist/components/EmptySlot/index.d.ts +14 -0
- package/dist/components/EmptySlot/index.d.ts.map +1 -0
- package/dist/components/EmptySlot/index.js +117 -0
- package/dist/components/FilterTag/index.d.ts +7 -0
- package/dist/components/FilterTag/index.d.ts.map +1 -0
- package/dist/components/FilterTag/index.js +59 -0
- package/dist/components/FilterableMultiSelect/index.d.ts +11 -0
- package/dist/components/FilterableMultiSelect/index.d.ts.map +1 -0
- package/dist/components/FilterableMultiSelect/index.js +136 -0
- package/dist/components/GettingStarted.d.ts +13 -0
- package/dist/components/GettingStarted.d.ts.map +1 -0
- package/dist/components/GettingStarted.js +25 -0
- package/dist/components/Header/components/Context.d.ts +8 -0
- package/dist/components/Header/components/Context.d.ts.map +1 -0
- package/dist/components/Header/components/Context.js +30 -0
- package/dist/components/Header/components/Information.d.ts +7 -0
- package/dist/components/Header/components/Information.d.ts.map +1 -0
- package/dist/components/Header/components/Information.js +54 -0
- package/dist/components/Header/components/Shortcut.d.ts +6 -0
- package/dist/components/Header/components/Shortcut.d.ts.map +1 -0
- package/dist/components/Header/components/Shortcut.js +24 -0
- package/dist/components/Header/components/SwitchAccount.d.ts +8 -0
- package/dist/components/Header/components/SwitchAccount.d.ts.map +1 -0
- package/dist/components/Header/components/SwitchAccount.js +203 -0
- package/dist/components/Header/components/Variants.d.ts +10 -0
- package/dist/components/Header/components/Variants.d.ts.map +1 -0
- package/dist/components/Header/components/Variants.js +129 -0
- package/dist/components/Header/components/index.d.ts +21 -0
- package/dist/components/Header/components/index.d.ts.map +1 -0
- package/dist/components/Header/components/index.js +10 -0
- package/dist/components/Header/index.d.ts +35 -0
- package/dist/components/Header/index.d.ts.map +1 -0
- package/dist/components/Header/index.js +179 -0
- package/dist/components/Icon/iconEnums.d.ts +3 -0
- package/dist/components/Icon/iconEnums.d.ts.map +1 -0
- package/dist/components/Icon/iconEnums.js +27 -0
- package/dist/components/Icon/index.d.ts +9 -0
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/components/Icon/index.js +5 -0
- package/dist/components/Image/index.d.ts +11 -0
- package/dist/components/Image/index.d.ts.map +1 -0
- package/dist/components/Image/index.js +128 -0
- package/dist/components/Input/index.d.ts +15 -0
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/Input/index.js +263 -0
- package/dist/components/Legend/index.d.ts +12 -0
- package/dist/components/Legend/index.d.ts.map +1 -0
- package/dist/components/Legend/index.js +68 -0
- package/dist/components/Link/index.d.ts +8 -0
- package/dist/components/Link/index.d.ts.map +1 -0
- package/dist/components/Link/index.js +48 -0
- package/dist/components/List/index.d.ts +7 -0
- package/dist/components/List/index.d.ts.map +1 -0
- package/dist/components/List/index.js +50 -0
- package/dist/components/MenuAccordion/index.d.ts +8 -0
- package/dist/components/MenuAccordion/index.d.ts.map +1 -0
- package/dist/components/MenuAccordion/index.js +64 -0
- package/dist/components/Modal/index.d.ts +15 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/Modal/index.js +195 -0
- package/dist/components/Navbar/index.d.ts +8 -0
- package/dist/components/Navbar/index.d.ts.map +1 -0
- package/dist/components/Navbar/index.js +101 -0
- package/dist/components/NavigationItem/index.d.ts +22 -0
- package/dist/components/NavigationItem/index.d.ts.map +1 -0
- package/dist/components/NavigationItem/index.js +410 -0
- package/dist/components/NotificationBanner/index.d.ts +12 -0
- package/dist/components/NotificationBanner/index.d.ts.map +1 -0
- package/dist/components/NotificationBanner/index.js +129 -0
- package/dist/components/NotificationCard/index.d.ts +16 -0
- package/dist/components/NotificationCard/index.d.ts.map +1 -0
- package/dist/components/NotificationCard/index.js +271 -0
- package/dist/components/NumberDisplay/index.d.ts +13 -0
- package/dist/components/NumberDisplay/index.d.ts.map +1 -0
- package/dist/components/NumberDisplay/index.js +227 -0
- package/dist/components/Pagination/index.d.ts +39 -0
- package/dist/components/Pagination/index.d.ts.map +1 -0
- package/dist/components/Pagination/index.js +179 -0
- package/dist/components/ProgressBar/ProgressBarSimple.d.ts +1 -0
- package/dist/components/ProgressBar/ProgressBarSimple.d.ts.map +1 -0
- package/dist/components/ProgressBar/ProgressBarSimple.js +1 -0
- package/dist/components/ProgressBar/index.d.ts +13 -0
- package/dist/components/ProgressBar/index.d.ts.map +1 -0
- package/dist/components/ProgressBar/index.js +67 -0
- package/dist/components/ProgressChart/index.d.ts +18 -0
- package/dist/components/ProgressChart/index.d.ts.map +1 -0
- package/dist/components/ProgressChart/index.js +147 -0
- package/dist/components/Quote/Quote.d.ts +8 -0
- package/dist/components/Quote/Quote.d.ts.map +1 -0
- package/dist/components/Quote/Quote.js +51 -0
- package/dist/components/RadioButton/index.d.ts +27 -0
- package/dist/components/RadioButton/index.d.ts.map +1 -0
- package/dist/components/RadioButton/index.js +88 -0
- package/dist/components/Rating/index.d.ts +12 -0
- package/dist/components/Rating/index.d.ts.map +1 -0
- package/dist/components/Rating/index.js +116 -0
- package/dist/components/ScrollBar/index.d.ts +12 -0
- package/dist/components/ScrollBar/index.d.ts.map +1 -0
- package/dist/components/ScrollBar/index.js +77 -0
- package/dist/components/Search/Search.d.ts +15 -0
- package/dist/components/Search/Search.d.ts.map +1 -0
- package/dist/components/Search/Search.js +272 -0
- package/dist/components/SegmentedButton/index.d.ts +9 -0
- package/dist/components/SegmentedButton/index.d.ts.map +1 -0
- package/dist/components/SegmentedButton/index.js +153 -0
- package/dist/components/Select/index.d.ts +15 -0
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Select/index.js +274 -0
- package/dist/components/SelectItem/index.d.ts +12 -0
- package/dist/components/SelectItem/index.d.ts.map +1 -0
- package/dist/components/SelectItem/index.js +142 -0
- package/dist/components/Shortcut/index.d.ts +12 -0
- package/dist/components/Shortcut/index.d.ts.map +1 -0
- package/dist/components/Shortcut/index.js +159 -0
- package/dist/components/ShowMore/index.d.ts +8 -0
- package/dist/components/ShowMore/index.d.ts.map +1 -0
- package/dist/components/ShowMore/index.js +52 -0
- package/dist/components/ShuffleItem/ShuffleItemExample.d.ts +1 -0
- package/dist/components/ShuffleItem/ShuffleItemExample.d.ts.map +1 -0
- package/dist/components/ShuffleItem/ShuffleItemExample.js +1 -0
- package/dist/components/ShuffleItem/SimpleShuffleExample.d.ts +1 -0
- package/dist/components/ShuffleItem/SimpleShuffleExample.d.ts.map +1 -0
- package/dist/components/ShuffleItem/SimpleShuffleExample.js +1 -0
- package/dist/components/ShuffleItem/index.d.ts +30 -0
- package/dist/components/ShuffleItem/index.d.ts.map +1 -0
- package/dist/components/ShuffleItem/index.js +541 -0
- package/dist/components/Slider/index.d.ts +10 -0
- package/dist/components/Slider/index.d.ts.map +1 -0
- package/dist/components/Slider/index.js +164 -0
- package/dist/components/Tab/index.d.ts +54 -0
- package/dist/components/Tab/index.d.ts.map +1 -0
- package/dist/components/Tab/index.js +362 -0
- package/dist/components/Table/index.d.ts +11 -0
- package/dist/components/Table/index.d.ts.map +1 -0
- package/dist/components/Table/index.js +242 -0
- package/dist/components/Tag/index.d.ts +10 -0
- package/dist/components/Tag/index.d.ts.map +1 -0
- package/dist/components/Tag/index.js +116 -0
- package/dist/components/TaskCard/assets/example.d.ts +3 -0
- package/dist/components/TaskCard/assets/example.d.ts.map +1 -0
- package/dist/components/TaskCard/assets/example.js +8 -0
- package/dist/components/TaskCard/components/EditIcon.d.ts +21 -0
- package/dist/components/TaskCard/components/EditIcon.d.ts.map +1 -0
- package/dist/components/TaskCard/components/EditIcon.js +54 -0
- package/dist/components/TaskCard/components/SuccessContent.d.ts +25 -0
- package/dist/components/TaskCard/components/SuccessContent.d.ts.map +1 -0
- package/dist/components/TaskCard/components/SuccessContent.js +28 -0
- package/dist/components/TaskCard/components/SuccessIcon.d.ts +21 -0
- package/dist/components/TaskCard/components/SuccessIcon.d.ts.map +1 -0
- package/dist/components/TaskCard/components/SuccessIcon.js +33 -0
- package/dist/components/TaskCard/components/SuccessTitle.d.ts +21 -0
- package/dist/components/TaskCard/components/SuccessTitle.d.ts.map +1 -0
- package/dist/components/TaskCard/components/SuccessTitle.js +33 -0
- package/dist/components/TaskCard/components/Tag.d.ts +19 -0
- package/dist/components/TaskCard/components/Tag.d.ts.map +1 -0
- package/dist/components/TaskCard/components/Tag.js +62 -0
- package/dist/components/TaskCard/components/TagGroup.d.ts +15 -0
- package/dist/components/TaskCard/components/TagGroup.d.ts.map +1 -0
- package/dist/components/TaskCard/components/TagGroup.js +38 -0
- package/dist/components/TaskCard/components/TaskDescription.d.ts +23 -0
- package/dist/components/TaskCard/components/TaskDescription.d.ts.map +1 -0
- package/dist/components/TaskCard/components/TaskDescription.js +34 -0
- package/dist/components/TaskCard/components/index.d.ts +8 -0
- package/dist/components/TaskCard/components/index.d.ts.map +1 -0
- package/dist/components/TaskCard/components/index.js +7 -0
- package/dist/components/TaskCard/index.d.ts +61 -0
- package/dist/components/TaskCard/index.d.ts.map +1 -0
- package/dist/components/TaskCard/index.js +211 -0
- package/dist/components/Toast/index.d.ts +15 -0
- package/dist/components/Toast/index.d.ts.map +1 -0
- package/dist/components/Toast/index.js +257 -0
- package/dist/components/Toggle/index.d.ts +11 -0
- package/dist/components/Toggle/index.d.ts.map +1 -0
- package/dist/components/Toggle/index.js +116 -0
- package/dist/components/TooltipCard/index.d.ts +12 -0
- package/dist/components/TooltipCard/index.d.ts.map +1 -0
- package/dist/components/TooltipCard/index.js +263 -0
- package/dist/components/Typography/index.d.ts +15 -0
- package/dist/components/Typography/index.d.ts.map +1 -0
- package/dist/components/Typography/index.js +115 -0
- package/dist/components/styles.d.ts +78 -0
- package/dist/components/styles.d.ts.map +1 -0
- package/dist/components/styles.js +78 -0
- package/dist/src/index.d.ts +60 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +77 -0
- package/dist/styles/useFocus.d.ts +12 -0
- package/dist/styles/useFocus.d.ts.map +1 -0
- package/dist/styles/useFocus.js +22 -0
- package/package.json +121 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Sebrae
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img alt="Sebrae" src="https://upload.wikimedia.org/wikipedia/commons/thumb/d/d9/Sebrae.svg/2560px-Sebrae.svg.png" width="200" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">
|
|
6
|
+
Sebrae Design System - React Native
|
|
7
|
+
</h1>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
Design System em React Native para o projeto Sebrae Na Palma da Mão
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
## 📋 Sobre o Projeto
|
|
14
|
+
|
|
15
|
+
Este é o repositório do Design System em React Native desenvolvido para o projeto Sebrae Na Palma da Mão. O objetivo é fornecer uma biblioteca de componentes reutilizáveis que seguem os padrões visuais e de interação do Sebrae, garantindo consistência e eficiência no desenvolvimento do aplicativo principal.
|
|
16
|
+
|
|
17
|
+
## 🎨 Componentes Disponíveis
|
|
18
|
+
|
|
19
|
+
Atualmente, o Design System conta com os seguintes componentes:
|
|
20
|
+
|
|
21
|
+
- **Accordeon**: Componente expansível para exibição de conteúdo organizado
|
|
22
|
+
- **Button**: Botões primários seguindo o padrão visual do Sebrae
|
|
23
|
+
- **Checkbox**: Componente de seleção múltipla
|
|
24
|
+
- **FilterTag**: Tags para filtros e categorização
|
|
25
|
+
- **Input**: Campos de entrada de texto padronizados
|
|
26
|
+
|
|
27
|
+
## 🚀 Como Usar
|
|
28
|
+
|
|
29
|
+
1. **Instalação das dependências:**
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
yarn
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
2. **Executando o Storybook:**
|
|
36
|
+
|
|
37
|
+
Para iOS:
|
|
38
|
+
```bash
|
|
39
|
+
yarn storybook:ios
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Para Android:
|
|
43
|
+
```bash
|
|
44
|
+
yarn storybook:android
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## 📚 Storybook
|
|
48
|
+
|
|
49
|
+
Cada componente possui sua própria história no Storybook, permitindo visualizar e testar diferentes estados e propriedades. As histórias estão localizadas junto aos componentes com o padrão de nomenclatura `*.stories.jsx`.
|
|
50
|
+
|
|
51
|
+
## 🔗 Integração com o Projeto Principal
|
|
52
|
+
|
|
53
|
+
Este Design System é um artefato do projeto principal [Sebrae Na Palma da Mão], um aplicativo móvel que funciona como uma agência do Sebrae na palma da mão. O aplicativo principal inclui diversas funcionalidades como:
|
|
54
|
+
|
|
55
|
+
- Integração com redes sociais
|
|
56
|
+
- Recursos de geolocalização e mapas
|
|
57
|
+
- Funcionalidades de câmera e scanner QR Code
|
|
58
|
+
- Recursos de compartilhamento e calendário
|
|
59
|
+
- Suporte a chat e preview de links
|
|
60
|
+
- E muito mais
|
|
61
|
+
|
|
62
|
+
## 🤝 Contribuição
|
|
63
|
+
|
|
64
|
+
Antes de adicionar novos componentes ou fazer modificações:
|
|
65
|
+
|
|
66
|
+
1. Verifique se o componente segue os padrões visuais do Sebrae
|
|
67
|
+
2. Adicione a documentação apropriada no Storybook
|
|
68
|
+
3. Teste o componente em diferentes dispositivos
|
|
69
|
+
4. Certifique-se de que as alterações não quebram a compatibilidade com o projeto principal
|
|
70
|
+
|
|
71
|
+
## 📝 Licença
|
|
72
|
+
|
|
73
|
+
Este projeto está sob a licença MIT.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default Accordion;
|
|
2
|
+
declare function Accordion({ title, content, nested, initiallyOpen }: {
|
|
3
|
+
title: any;
|
|
4
|
+
content: any;
|
|
5
|
+
nested?: boolean | undefined;
|
|
6
|
+
initiallyOpen?: boolean | undefined;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
import React from 'react';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Accordion/index.jsx"],"names":[],"mappings":";AAQA;;;;;sBA8EC;kBAtFkD,OAAO"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import React, { useState, useRef, useEffect } from 'react';
|
|
2
|
+
import { View, Text, TouchableOpacity, StyleSheet, Animated, LayoutAnimation, Platform, UIManager } from 'react-native';
|
|
3
|
+
import Icon from '../Icon';
|
|
4
|
+
if (Platform.OS === 'android' && UIManager.setLayoutAnimationEnabledExperimental) {
|
|
5
|
+
UIManager.setLayoutAnimationEnabledExperimental(true);
|
|
6
|
+
}
|
|
7
|
+
const Accordion = ({ title, content, nested = false, initiallyOpen = false }) => {
|
|
8
|
+
const [isOpen, setIsOpen] = useState(initiallyOpen);
|
|
9
|
+
const [isFocused, setIsFocused] = useState(false);
|
|
10
|
+
const animation = useRef(new Animated.Value(initiallyOpen ? 1 : 0)).current;
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
Animated.timing(animation, {
|
|
13
|
+
toValue: isOpen ? 1 : 0,
|
|
14
|
+
duration: 300,
|
|
15
|
+
useNativeDriver: false,
|
|
16
|
+
}).start();
|
|
17
|
+
}, [isOpen]);
|
|
18
|
+
const toggleAccordion = () => {
|
|
19
|
+
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
|
|
20
|
+
setIsOpen(prev => !prev);
|
|
21
|
+
};
|
|
22
|
+
const contentHeight = animation.interpolate({
|
|
23
|
+
inputRange: [0, 1],
|
|
24
|
+
outputRange: [0, 500],
|
|
25
|
+
});
|
|
26
|
+
const contentOpacity = animation.interpolate({
|
|
27
|
+
inputRange: [0, 1],
|
|
28
|
+
outputRange: [0, 1],
|
|
29
|
+
});
|
|
30
|
+
const iconRotation = animation.interpolate({
|
|
31
|
+
inputRange: [0, 1],
|
|
32
|
+
outputRange: ['0deg', '180deg'],
|
|
33
|
+
});
|
|
34
|
+
return (<View style={[
|
|
35
|
+
styles.container,
|
|
36
|
+
nested && styles.containerNested,
|
|
37
|
+
]}>
|
|
38
|
+
<TouchableOpacity activeOpacity={0.8} style={[
|
|
39
|
+
styles.header,
|
|
40
|
+
isFocused && !isOpen && styles.headerFocused,
|
|
41
|
+
isOpen && !nested && styles.headerActive,
|
|
42
|
+
]} onPress={toggleAccordion} onPressIn={() => setIsFocused(true)} onPressOut={() => setIsFocused(false)}>
|
|
43
|
+
<Text style={[styles.headerText, isOpen && !nested && styles.headerTextActive]}>
|
|
44
|
+
{title}
|
|
45
|
+
</Text>
|
|
46
|
+
<Animated.View style={{ transform: [{ rotate: iconRotation }] }}>
|
|
47
|
+
<Icon name="arrow-up-s-line" size={20} color={isOpen && !nested ? '#FFFFFF' : '#4F7CFE'}/>
|
|
48
|
+
</Animated.View>
|
|
49
|
+
</TouchableOpacity>
|
|
50
|
+
|
|
51
|
+
<Animated.View style={[
|
|
52
|
+
styles.animatedContent,
|
|
53
|
+
{ maxHeight: contentHeight, opacity: contentOpacity }
|
|
54
|
+
]}>
|
|
55
|
+
<View style={[
|
|
56
|
+
styles.content,
|
|
57
|
+
!nested && {
|
|
58
|
+
borderTopColor: '#96ACFF',
|
|
59
|
+
borderTopWidth: 2,
|
|
60
|
+
},
|
|
61
|
+
]}>
|
|
62
|
+
{content}
|
|
63
|
+
{/* <Text style={styles.contentText}>{content}</Text> */}
|
|
64
|
+
</View>
|
|
65
|
+
</Animated.View>
|
|
66
|
+
</View>);
|
|
67
|
+
};
|
|
68
|
+
const styles = StyleSheet.create({
|
|
69
|
+
container: {
|
|
70
|
+
borderRadius: 8,
|
|
71
|
+
overflow: 'hidden',
|
|
72
|
+
marginVertical: 8,
|
|
73
|
+
borderWidth: 2,
|
|
74
|
+
borderColor: '#96ACFF',
|
|
75
|
+
backgroundColor: '#FFF'
|
|
76
|
+
},
|
|
77
|
+
containerNested: {
|
|
78
|
+
borderColor: '#E2E9FC',
|
|
79
|
+
borderWidth: 1,
|
|
80
|
+
},
|
|
81
|
+
header: {
|
|
82
|
+
borderRadius: 8,
|
|
83
|
+
borderTop: 8,
|
|
84
|
+
flexDirection: 'row',
|
|
85
|
+
justifyContent: 'space-between',
|
|
86
|
+
alignItems: 'center',
|
|
87
|
+
padding: 16,
|
|
88
|
+
borderWidth: 2,
|
|
89
|
+
borderColor: 'transparent',
|
|
90
|
+
margin: -1,
|
|
91
|
+
},
|
|
92
|
+
headerFocused: {
|
|
93
|
+
borderColor: '#4F7CFE',
|
|
94
|
+
},
|
|
95
|
+
headerActive: {
|
|
96
|
+
borderBottomStartRadius: 0,
|
|
97
|
+
borderBottomEndRadius: 0,
|
|
98
|
+
backgroundColor: '#4F7CFE',
|
|
99
|
+
borderColor: '#4F7CFE',
|
|
100
|
+
},
|
|
101
|
+
headerText: {
|
|
102
|
+
fontSize: 16,
|
|
103
|
+
fontWeight: '500',
|
|
104
|
+
color: '#1B244B',
|
|
105
|
+
},
|
|
106
|
+
headerTextActive: {
|
|
107
|
+
color: '#FFFFFF',
|
|
108
|
+
},
|
|
109
|
+
animatedContent: {
|
|
110
|
+
overflow: 'hidden',
|
|
111
|
+
},
|
|
112
|
+
content: {
|
|
113
|
+
backgroundColor: '#FFFFFF',
|
|
114
|
+
padding: 16,
|
|
115
|
+
width: '100%',
|
|
116
|
+
},
|
|
117
|
+
contentText: {
|
|
118
|
+
fontSize: 14,
|
|
119
|
+
lineHeight: 20,
|
|
120
|
+
color: '#1B244B',
|
|
121
|
+
},
|
|
122
|
+
});
|
|
123
|
+
export default Accordion;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default AccordionAvatar;
|
|
2
|
+
declare function AccordionAvatar({ avatarIcon, label, items, }: {
|
|
3
|
+
avatarIcon?: string | undefined;
|
|
4
|
+
label?: string | undefined;
|
|
5
|
+
items?: never[] | undefined;
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
import React from 'react';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/AccordionAvatar/index.jsx"],"names":[],"mappings":";AAIA;;;;sBAsFC;kBA1F+B,OAAO"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { View, Text, TouchableOpacity } from 'react-native';
|
|
3
|
+
import Icon from '../Icon';
|
|
4
|
+
const AccordionAvatar = ({ avatarIcon = 'user-3-fill', label = 'Label', items = [], }) => {
|
|
5
|
+
const [open, setOpen] = useState(false);
|
|
6
|
+
return (<View style={{ width: 362 }}>
|
|
7
|
+
{/* Header */}
|
|
8
|
+
<TouchableOpacity style={{
|
|
9
|
+
flexDirection: 'row',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
height: 88,
|
|
12
|
+
backgroundColor: '#fff',
|
|
13
|
+
borderRadius: 8,
|
|
14
|
+
paddingHorizontal: 16,
|
|
15
|
+
}} onPress={() => setOpen(!open)} activeOpacity={0.8}>
|
|
16
|
+
{/* Avatar */}
|
|
17
|
+
<View style={{
|
|
18
|
+
width: 32,
|
|
19
|
+
height: 32,
|
|
20
|
+
borderRadius: 16,
|
|
21
|
+
backgroundColor: '#485274',
|
|
22
|
+
alignItems: 'center',
|
|
23
|
+
justifyContent: 'center',
|
|
24
|
+
marginRight: 12,
|
|
25
|
+
}}>
|
|
26
|
+
<Icon name={avatarIcon} size={20} color="#fff"/>
|
|
27
|
+
</View>
|
|
28
|
+
{/* Label */}
|
|
29
|
+
<Text style={{
|
|
30
|
+
fontFamily: 'Nunito Sans',
|
|
31
|
+
fontWeight: '700',
|
|
32
|
+
fontSize: 24, // h5
|
|
33
|
+
lineHeight: 32, // h5
|
|
34
|
+
color: '#1B244B',
|
|
35
|
+
flex: 1,
|
|
36
|
+
}}>{label}</Text>
|
|
37
|
+
{/* Seta */}
|
|
38
|
+
<Icon name="arrow-right-line" size={11} color="#1B244B" style={{ marginLeft: 8 }}/>
|
|
39
|
+
</TouchableOpacity>
|
|
40
|
+
{/* Lista */}
|
|
41
|
+
{open && (<View style={{ backgroundColor: '#fff', borderRadius: 8, marginTop: 4 }}>
|
|
42
|
+
{items.map((item, idx) => (<View key={idx} style={{
|
|
43
|
+
flexDirection: 'row',
|
|
44
|
+
alignItems: 'center',
|
|
45
|
+
height: 40,
|
|
46
|
+
width: 362,
|
|
47
|
+
paddingHorizontal: 16,
|
|
48
|
+
}}>
|
|
49
|
+
<Text style={{
|
|
50
|
+
fontFamily: 'Nunito Sans',
|
|
51
|
+
fontWeight: '700',
|
|
52
|
+
fontSize: 16, // body-2
|
|
53
|
+
lineHeight: 24, // body-2
|
|
54
|
+
color: '#687499',
|
|
55
|
+
flex: 1,
|
|
56
|
+
textAlign: 'center',
|
|
57
|
+
}}>{item}</Text>
|
|
58
|
+
<Icon name="arrow-right-line" size={11} color="#687499" style={{ marginLeft: 8 }}/>
|
|
59
|
+
</View>))}
|
|
60
|
+
</View>)}
|
|
61
|
+
</View>);
|
|
62
|
+
};
|
|
63
|
+
export default AccordionAvatar;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default AdBanner;
|
|
2
|
+
declare function AdBanner({ imageSource, title, description, highlight, buttonLabel, onButtonPress, style }: {
|
|
3
|
+
imageSource: any;
|
|
4
|
+
title: any;
|
|
5
|
+
description: any;
|
|
6
|
+
highlight: any;
|
|
7
|
+
buttonLabel: any;
|
|
8
|
+
onButtonPress: any;
|
|
9
|
+
style: any;
|
|
10
|
+
}): React.JSX.Element;
|
|
11
|
+
import React from 'react';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/AdBanner/index.jsx"],"names":[],"mappings":";AAKA;;;;;;;;sBAoCC;kBAzCiB,OAAO"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text, StyleSheet } from 'react-native';
|
|
3
|
+
import Image from '../Image';
|
|
4
|
+
import Button from '../Button';
|
|
5
|
+
const AdBanner = ({ imageSource, title, description, highlight, buttonLabel, onButtonPress, style }) => {
|
|
6
|
+
return (<View>
|
|
7
|
+
<Text style={styles.featuredText}>CONTINUA DEPOIS DA PUBLICIDADE</Text>
|
|
8
|
+
<View style={[styles.card, style]}>
|
|
9
|
+
<Image source={imageSource} ratio="16-9" borderRadius={5} style={styles.image}/>
|
|
10
|
+
<Text style={styles.title}>{title}</Text>
|
|
11
|
+
<Text style={styles.description}>
|
|
12
|
+
{description.split(highlight)[0]}
|
|
13
|
+
<Text style={styles.highlight}>{highlight}</Text>
|
|
14
|
+
{description.split(highlight)[1]}
|
|
15
|
+
</Text>
|
|
16
|
+
<Button label={buttonLabel} onPress={onButtonPress} size="large" variant="filled" inverseStyle={true} style={styles.button}/>
|
|
17
|
+
</View>
|
|
18
|
+
</View>);
|
|
19
|
+
};
|
|
20
|
+
const styles = StyleSheet.create({
|
|
21
|
+
featuredText: {
|
|
22
|
+
color: '#687499',
|
|
23
|
+
fontSize: 16,
|
|
24
|
+
fontWeight: 'thin',
|
|
25
|
+
marginBottom: 16,
|
|
26
|
+
textAlign: 'center',
|
|
27
|
+
},
|
|
28
|
+
card: {
|
|
29
|
+
backgroundColor: '#3F67FC',
|
|
30
|
+
borderRadius: 10,
|
|
31
|
+
padding: 16,
|
|
32
|
+
alignItems: 'flex-start',
|
|
33
|
+
},
|
|
34
|
+
image: {
|
|
35
|
+
borderWidth: 0,
|
|
36
|
+
width: '95%',
|
|
37
|
+
},
|
|
38
|
+
title: {
|
|
39
|
+
color: '#fff',
|
|
40
|
+
fontSize: 28,
|
|
41
|
+
fontWeight: 'bold',
|
|
42
|
+
marginBottom: 16,
|
|
43
|
+
textAlign: 'left',
|
|
44
|
+
width: '100%',
|
|
45
|
+
},
|
|
46
|
+
description: {
|
|
47
|
+
color: '#fff',
|
|
48
|
+
fontSize: 20,
|
|
49
|
+
marginBottom: 32,
|
|
50
|
+
textAlign: 'left',
|
|
51
|
+
width: '100%',
|
|
52
|
+
},
|
|
53
|
+
highlight: {
|
|
54
|
+
fontWeight: 'bold',
|
|
55
|
+
color: '#fff',
|
|
56
|
+
},
|
|
57
|
+
button: {
|
|
58
|
+
backgroundColor: '#E7F79E',
|
|
59
|
+
borderRadius: 18,
|
|
60
|
+
width: '100%',
|
|
61
|
+
textAlign: 'left',
|
|
62
|
+
paddingVertical: 16,
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
export default AdBanner;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default Avatar;
|
|
2
|
+
declare function Avatar({ size, onPress, imageUrl, name, }: {
|
|
3
|
+
size?: string | undefined;
|
|
4
|
+
onPress: any;
|
|
5
|
+
imageUrl: any;
|
|
6
|
+
name?: string | undefined;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
import React from 'react';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Avatar/index.jsx"],"names":[],"mappings":";AAGA;;;;;sBA8DC;kBAjEiB,OAAO"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TouchableOpacity, Image, StyleSheet, Text, View } from 'react-native';
|
|
3
|
+
const Avatar = ({ size = 'medium', onPress, imageUrl, name = '', }) => {
|
|
4
|
+
const sizeOptions = {
|
|
5
|
+
large: {
|
|
6
|
+
container: styles.containerLarge,
|
|
7
|
+
image: { width: 64, height: 64, borderRadius: 32 },
|
|
8
|
+
initials: { width: 64, height: 64, borderRadius: 32, alignItems: 'center', justifyContent: 'center', backgroundColor: '#E3E9FF' },
|
|
9
|
+
text: { fontSize: 20, color: '#2A4FDA', fontWeight: '700' },
|
|
10
|
+
},
|
|
11
|
+
medium: {
|
|
12
|
+
container: styles.containerMedium,
|
|
13
|
+
image: { width: 40, height: 40, borderRadius: 20 },
|
|
14
|
+
initials: { width: 40, height: 40, borderRadius: 20, alignItems: 'center', justifyContent: 'center', backgroundColor: '#E3E9FF' },
|
|
15
|
+
text: { fontSize: 18, color: '#2A4FDA', fontWeight: '700' },
|
|
16
|
+
},
|
|
17
|
+
small: {
|
|
18
|
+
container: styles.containerSmall,
|
|
19
|
+
image: { width: 24, height: 24, borderRadius: 12 },
|
|
20
|
+
initials: { width: 24, height: 24, borderRadius: 12, alignItems: 'center', justifyContent: 'center', backgroundColor: '#E3E9FF' },
|
|
21
|
+
text: { fontSize: 12, color: '#2A4FDA', fontWeight: '700' },
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
const getInitials = (name) => {
|
|
25
|
+
if (!name) {
|
|
26
|
+
return '';
|
|
27
|
+
}
|
|
28
|
+
const names = name.split(' ');
|
|
29
|
+
if (names.length === 0) {
|
|
30
|
+
return '';
|
|
31
|
+
}
|
|
32
|
+
const nameList = names.map(n => n.charAt(0).toUpperCase()).join('');
|
|
33
|
+
return nameList.length > 2 ? nameList.slice(0, 2) : nameList;
|
|
34
|
+
};
|
|
35
|
+
const getContentStyle = () => {
|
|
36
|
+
return sizeOptions[size] ? sizeOptions[size].container : sizeOptions.medium.container;
|
|
37
|
+
};
|
|
38
|
+
const getImageStyle = () => {
|
|
39
|
+
return sizeOptions[size] ? sizeOptions[size].image : sizeOptions.medium.image;
|
|
40
|
+
};
|
|
41
|
+
return (<TouchableOpacity onPress={onPress} style={getContentStyle()}>
|
|
42
|
+
{imageUrl ? (<Image source={{ uri: imageUrl }} style={getImageStyle()}/>) : (<View style={sizeOptions[size].initials}>
|
|
43
|
+
<Text style={sizeOptions[size].text}>
|
|
44
|
+
{getInitials(name)}
|
|
45
|
+
</Text>
|
|
46
|
+
</View>)}
|
|
47
|
+
</TouchableOpacity>);
|
|
48
|
+
};
|
|
49
|
+
const styles = StyleSheet.create({
|
|
50
|
+
containerLarge: {
|
|
51
|
+
height: 64,
|
|
52
|
+
width: 64,
|
|
53
|
+
alignItems: 'center',
|
|
54
|
+
justifyContent: 'center',
|
|
55
|
+
},
|
|
56
|
+
containerMedium: {
|
|
57
|
+
height: 40,
|
|
58
|
+
width: 40,
|
|
59
|
+
alignItems: 'center',
|
|
60
|
+
justifyContent: 'center',
|
|
61
|
+
},
|
|
62
|
+
containerSmall: {
|
|
63
|
+
height: 24,
|
|
64
|
+
width: 24,
|
|
65
|
+
alignItems: 'center',
|
|
66
|
+
justifyContent: 'center',
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
export default Avatar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomSheetNomeEmpresa.d.ts","sourceRoot":"","sources":["../../../components/BottomSheet/BottomSheetNomeEmpresa.jsx"],"names":[],"mappings":";AAKA;;;sBA2BC;kBAhCiB,OAAO"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text, TextInput, TouchableOpacity, StyleSheet } from 'react-native';
|
|
3
|
+
import BottomSheet from './index';
|
|
4
|
+
import Icon from '../Icon';
|
|
5
|
+
const BottomSheetNomeEmpresa = ({ isOpen, setIsOpen }) => (<BottomSheet isOpen={isOpen} setIsOpen={setIsOpen} showHeader>
|
|
6
|
+
<View style={styles.container}>
|
|
7
|
+
<Text style={styles.title}>Como o seu negócio se chama?</Text>
|
|
8
|
+
|
|
9
|
+
<View style={styles.inputGroup}>
|
|
10
|
+
<Text style={styles.label}>Nome da empresa</Text>
|
|
11
|
+
<View style={styles.inputWrapper}>
|
|
12
|
+
<TextInput style={styles.input} placeholder="Ex: Silva Jardinagem" placeholderTextColor="#8A9CD2"/>
|
|
13
|
+
<Icon name="information-line" size={20} color="#8A9CD2" style={styles.infoIcon}/>
|
|
14
|
+
</View>
|
|
15
|
+
</View>
|
|
16
|
+
|
|
17
|
+
<View style={styles.radioWrapper}>
|
|
18
|
+
<Icon name="checkbox-blank-circle-line" size={20} color="#193ABB"/>
|
|
19
|
+
<Text style={styles.radioText}>Manter 91.234.567 Jussara de Souza Pereira</Text>
|
|
20
|
+
</View>
|
|
21
|
+
|
|
22
|
+
<TouchableOpacity style={styles.button}>
|
|
23
|
+
<Text style={styles.buttonText}>Continuar</Text>
|
|
24
|
+
</TouchableOpacity>
|
|
25
|
+
</View>
|
|
26
|
+
</BottomSheet>);
|
|
27
|
+
const styles = StyleSheet.create({
|
|
28
|
+
container: {
|
|
29
|
+
gap: 16,
|
|
30
|
+
paddingTop: 8,
|
|
31
|
+
paddingBottom: 8,
|
|
32
|
+
},
|
|
33
|
+
title: {
|
|
34
|
+
fontSize: 24,
|
|
35
|
+
fontWeight: '700',
|
|
36
|
+
color: '#081032',
|
|
37
|
+
fontFamily: 'Nunito Sans',
|
|
38
|
+
lineHeight: 32,
|
|
39
|
+
marginBottom: 0,
|
|
40
|
+
},
|
|
41
|
+
inputGroup: {
|
|
42
|
+
gap: 4, // Controle específico entre o label e o input
|
|
43
|
+
},
|
|
44
|
+
label: {
|
|
45
|
+
fontFamily: 'default', // Ajustado para family/default
|
|
46
|
+
fontWeight: '400', // Ajustado para Regular
|
|
47
|
+
fontSize: 18, // Aumentado em 2px para testar
|
|
48
|
+
lineHeight: 24, // Ajustado para line-height/body-1
|
|
49
|
+
letterSpacing: 0, // Ajustado para 0%
|
|
50
|
+
color: '#1B244B', // Ajustado para content/default
|
|
51
|
+
marginBottom: 12, // Aumentado um pouco mais para criar espaço entre o texto e o input
|
|
52
|
+
},
|
|
53
|
+
inputWrapper: {
|
|
54
|
+
flexDirection: 'row',
|
|
55
|
+
alignItems: 'center',
|
|
56
|
+
borderWidth: 2,
|
|
57
|
+
borderColor: '#8A9CD2',
|
|
58
|
+
borderRadius: 8,
|
|
59
|
+
paddingHorizontal: 12,
|
|
60
|
+
backgroundColor: '#fff',
|
|
61
|
+
height: 44,
|
|
62
|
+
marginBottom: 0,
|
|
63
|
+
paddingTop: 0, // Garantido que não há padding superior
|
|
64
|
+
},
|
|
65
|
+
input: {
|
|
66
|
+
flex: 1,
|
|
67
|
+
fontSize: 16,
|
|
68
|
+
color: '#081032',
|
|
69
|
+
fontFamily: 'Nunito Sans',
|
|
70
|
+
},
|
|
71
|
+
infoIcon: {
|
|
72
|
+
marginLeft: 8,
|
|
73
|
+
},
|
|
74
|
+
radioWrapper: {
|
|
75
|
+
flexDirection: 'row',
|
|
76
|
+
alignItems: 'center',
|
|
77
|
+
marginBottom: 16,
|
|
78
|
+
marginTop: 4,
|
|
79
|
+
},
|
|
80
|
+
radioText: {
|
|
81
|
+
marginLeft: 8,
|
|
82
|
+
fontSize: 14,
|
|
83
|
+
color: '#081032',
|
|
84
|
+
fontFamily: 'Nunito Sans',
|
|
85
|
+
},
|
|
86
|
+
button: {
|
|
87
|
+
backgroundColor: '#193ABB',
|
|
88
|
+
borderRadius: 8,
|
|
89
|
+
height: 48,
|
|
90
|
+
alignItems: 'center',
|
|
91
|
+
justifyContent: 'center',
|
|
92
|
+
marginTop: 8,
|
|
93
|
+
},
|
|
94
|
+
buttonText: {
|
|
95
|
+
color: '#FFF500',
|
|
96
|
+
fontWeight: '700',
|
|
97
|
+
fontSize: 16,
|
|
98
|
+
fontFamily: 'Nunito Sans',
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
export default BottomSheetNomeEmpresa;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default ActionButtons;
|
|
2
|
+
declare function ActionButtons({ onRemindLater, onDontShowAgain, remindLaterText, dontShowAgainText }: {
|
|
3
|
+
onRemindLater?: (() => void) | undefined;
|
|
4
|
+
onDontShowAgain?: (() => void) | undefined;
|
|
5
|
+
remindLaterText?: string | undefined;
|
|
6
|
+
dontShowAgainText?: string | undefined;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
import React from 'react';
|
|
9
|
+
//# sourceMappingURL=ActionButtons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionButtons.d.ts","sourceRoot":"","sources":["../../../../components/BottomSheet/Components/ActionButtons.jsx"],"names":[],"mappings":";AAIA;;;;;sBA8BC;kBAlCiB,OAAO"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, TouchableOpacity, Text, StyleSheet } from 'react-native';
|
|
3
|
+
import Icon from '../../Icon';
|
|
4
|
+
const ActionButtons = ({ onRemindLater = () => { }, onDontShowAgain = () => { }, remindLaterText = "Lembrar mais tarde", dontShowAgainText = "Não mostrar de novo" }) => {
|
|
5
|
+
return (<View style={styles.container}>
|
|
6
|
+
<TouchableOpacity style={styles.actionButton} onPress={onRemindLater} activeOpacity={0.7}>
|
|
7
|
+
<Icon name="time-line" size={24} color="#081032"/>
|
|
8
|
+
<Text style={styles.actionText}>{remindLaterText}</Text>
|
|
9
|
+
</TouchableOpacity>
|
|
10
|
+
|
|
11
|
+
<TouchableOpacity style={[styles.actionButton, styles.dontShowButton]} onPress={onDontShowAgain} activeOpacity={0.7}>
|
|
12
|
+
<View style={styles.customXIcon}>
|
|
13
|
+
<View style={styles.xLine1}/>
|
|
14
|
+
<View style={styles.xLine2}/>
|
|
15
|
+
</View>
|
|
16
|
+
<Text style={styles.actionText}>{dontShowAgainText}</Text>
|
|
17
|
+
</TouchableOpacity>
|
|
18
|
+
</View>);
|
|
19
|
+
};
|
|
20
|
+
const styles = StyleSheet.create({
|
|
21
|
+
container: {
|
|
22
|
+
paddingHorizontal: 20,
|
|
23
|
+
paddingVertical: 16,
|
|
24
|
+
gap: 16,
|
|
25
|
+
backgroundColor: 'white',
|
|
26
|
+
},
|
|
27
|
+
actionButton: {
|
|
28
|
+
flexDirection: 'row',
|
|
29
|
+
alignItems: 'center',
|
|
30
|
+
paddingVertical: 16,
|
|
31
|
+
paddingHorizontal: 0,
|
|
32
|
+
gap: 12,
|
|
33
|
+
backgroundColor: 'transparent',
|
|
34
|
+
},
|
|
35
|
+
actionText: {
|
|
36
|
+
fontSize: 14, // size/button-s
|
|
37
|
+
fontWeight: '700', // Bold
|
|
38
|
+
color: '#081032',
|
|
39
|
+
fontFamily: 'Nunito Sans', // family/default
|
|
40
|
+
lineHeight: 20, // line-height/button-s
|
|
41
|
+
letterSpacing: 0, // 0%
|
|
42
|
+
textAlign: 'left', // Mantendo left pois center não faz sentido neste layout
|
|
43
|
+
},
|
|
44
|
+
dontShowButton: {
|
|
45
|
+
marginLeft: 4, // Empurra o botão um pouco para a direita
|
|
46
|
+
},
|
|
47
|
+
customXIcon: {
|
|
48
|
+
width: 20,
|
|
49
|
+
height: 20,
|
|
50
|
+
borderRadius: 10,
|
|
51
|
+
borderWidth: 2,
|
|
52
|
+
borderColor: '#081032',
|
|
53
|
+
position: 'relative',
|
|
54
|
+
justifyContent: 'center',
|
|
55
|
+
alignItems: 'center',
|
|
56
|
+
backgroundColor: 'transparent',
|
|
57
|
+
},
|
|
58
|
+
xLine1: {
|
|
59
|
+
position: 'absolute',
|
|
60
|
+
width: 10,
|
|
61
|
+
height: 1.5,
|
|
62
|
+
backgroundColor: '#081032',
|
|
63
|
+
transform: [{ rotate: '45deg' }],
|
|
64
|
+
},
|
|
65
|
+
xLine2: {
|
|
66
|
+
position: 'absolute',
|
|
67
|
+
width: 10,
|
|
68
|
+
height: 1.5,
|
|
69
|
+
backgroundColor: '#081032',
|
|
70
|
+
transform: [{ rotate: '-45deg' }],
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
export default ActionButtons;
|