vpt-sebraeds 0.0.76 → 0.0.78
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 +20 -20
- package/README.md +225 -225
- package/components/Accordion/Accordion.stories.jsx +143 -143
- package/components/Accordion/README.md +144 -144
- package/components/Accordion/index.jsx +334 -334
- package/components/AccordionAvatar/AccordionAvatar.stories.jsx +27 -27
- package/components/AccordionAvatar/index.jsx +94 -94
- package/components/AdBanner/AdBanner.stories.jsx +62 -62
- package/components/AdBanner/index.jsx +92 -92
- package/components/Avatar/Avatar.stories.jsx +59 -59
- package/components/Avatar/index.jsx +102 -102
- package/components/Banner/Banner.stories.jsx +127 -127
- package/components/Banner/index.jsx +70 -70
- package/components/BottomSheet/BottomSheet.jsx +235 -235
- package/components/BottomSheet/BottomSheet.stories.jsx +541 -541
- package/components/BottomSheet/BottomSheetNomeEmpresa.jsx +110 -110
- package/components/BottomSheet/Components/ActionButtons.jsx +91 -91
- package/components/BottomSheet/Components/ListaDeEstados.jsx +337 -337
- package/components/BottomSheet/index.jsx +1 -1
- package/components/Breadcrumb/Breadcrumb.stories.jsx +62 -62
- package/components/Breadcrumb/index.jsx +88 -88
- package/components/Bullet/Bullet.stories.jsx +55 -55
- package/components/Bullet/index.jsx +224 -224
- package/components/Button/ButtonPrimary.stories.jsx +372 -372
- package/components/Button/index.jsx +528 -528
- package/components/ButtonGroup/ButtonGroup.stories.jsx +431 -383
- package/components/ButtonGroup/index.tsx +516 -439
- package/components/CNAESelectItem/CNAESelectItem.stories.jsx +195 -195
- package/components/CNAESelectItem/index.jsx +259 -259
- package/components/CNAESelectItem/padrao.js +1145 -1145
- package/components/CardNumber/CardNumber.stories.jsx +60 -60
- package/components/CardNumber/index.jsx +136 -136
- package/components/Checkbox/Checkbox.stories.jsx +70 -70
- package/components/Checkbox/index.jsx +125 -125
- package/components/CommitmentCard/CommitmentCard.stories.jsx +282 -282
- package/components/CommitmentCard/index.jsx +227 -227
- package/components/ContentBlock/ContentBlock.stories.tsx +48 -48
- package/components/ContentBlock/ContentBlock.tsx +50 -50
- package/components/ContentCard/ContentCard.stories.jsx +130 -130
- package/components/ContentCard/index.jsx +326 -326
- package/components/ContentRelatedCard/ContentRelatedCard.stories.jsx +79 -79
- package/components/ContentRelatedCard/index.jsx +79 -79
- package/components/ContentSlot/ContentSlot.stories.jsx +276 -276
- package/components/ContentSlot/index.jsx +196 -196
- package/components/CopyButton/CopyButton.stories.jsx +110 -110
- package/components/CopyButton/index.jsx +192 -192
- package/components/Datepicker/Datepicker.stories.jsx +291 -239
- package/components/Datepicker/MonthSelector.jsx +323 -323
- package/components/Datepicker/TimeSelector.jsx +261 -261
- package/components/Datepicker/index.jsx +815 -454
- package/components/DonutChart/DonutChart.stories.jsx +221 -221
- package/components/DonutChart/index.jsx +191 -191
- package/components/Dropdown/Dropdown.stories.jsx +331 -331
- package/components/Dropdown/index.jsx +556 -556
- package/components/DropdownCommitments/index.js +149 -149
- package/components/EmptySlot/EmptySlot.stories.jsx +114 -114
- package/components/EmptySlot/index.jsx +152 -152
- package/components/EventListItem/EventListItem.stories.tsx +179 -179
- package/components/EventListItem/index.tsx +532 -514
- package/components/ExpandableNumberDisplay/ExpandableNumberDisplay.stories.jsx +92 -92
- package/components/ExpandableNumberDisplay/index.tsx +126 -126
- package/components/FilterTag/FilterTag.stories.jsx +54 -54
- package/components/FilterTag/index.jsx +69 -69
- package/components/FilterableMultiSelect/FilterableMultiSelect.stories.jsx +63 -63
- package/components/FilterableMultiSelect/index.jsx +207 -207
- package/components/FilterableUniSelect/FilterableUniSelect.stories.jsx +68 -68
- package/components/FilterableUniSelect/index.jsx +251 -251
- package/components/GeneralInformationCard/GeneralInformationCard.stories.jsx +62 -62
- package/components/GeneralInformationCard/index.tsx +123 -123
- package/components/GettingStarted.jsx +38 -38
- package/components/Header/Header.stories.jsx +1075 -1008
- package/components/Header/HeaderV2.stories.jsx +1200 -1113
- package/components/Header/index.jsx +5 -5
- package/components/Header/v1/components/Context.jsx +32 -32
- package/components/Header/v1/components/Information.jsx +109 -107
- package/components/Header/v1/components/Shortcut.jsx +45 -45
- package/components/Header/v1/components/SwitchAccount.jsx +301 -211
- package/components/Header/v1/components/Variants.jsx +479 -478
- package/components/Header/v1/components/index.jsx +12 -12
- package/components/Header/v1/index.jsx +195 -195
- package/components/Header/v2/README.md +757 -724
- package/components/Header/v2/index.jsx +224 -219
- package/components/Header/v2/parts/BackButton.jsx +36 -36
- package/components/Header/v2/parts/Context.jsx +25 -25
- package/components/Header/v2/parts/Hero.jsx +68 -59
- package/components/Header/v2/parts/Information.jsx +68 -66
- package/components/Header/v2/parts/Shortcut.jsx +39 -39
- package/components/Header/v2/parts/SwitchAccount.jsx +381 -290
- package/components/Header/v2/parts/Variants.jsx +420 -353
- package/components/Header/v2/parts/index.jsx +22 -22
- package/components/Header/v2/styles.js +598 -598
- package/components/Icon/iconEnums.ts +285 -285
- package/components/Icon/index.jsx +38 -38
- package/components/Image/Image.stories.jsx +250 -250
- package/components/Image/index.jsx +175 -175
- package/components/Input/Input.stories.jsx +394 -394
- package/components/Input/InputUnderline.tsx +161 -161
- package/components/Input/index.jsx +305 -305
- package/components/Legend/Legend.stories.jsx +110 -110
- package/components/Legend/index.jsx +87 -87
- package/components/Link/Link.stories.jsx +78 -78
- package/components/Link/index.jsx +66 -66
- package/components/List/List.stories.jsx +57 -57
- package/components/List/index.jsx +64 -64
- package/components/ListItem/ListItem.stories.jsx +179 -179
- package/components/ListItem/index.jsx +532 -532
- package/components/MenuAccordion/MenuAccordion.stories.jsx +27 -27
- package/components/MenuAccordion/index.jsx +98 -98
- package/components/Modal/Modal.stories.jsx +151 -151
- package/components/Modal/index.jsx +249 -249
- package/components/Navbar/Navbar.stories.jsx +244 -244
- package/components/Navbar/index.jsx +130 -130
- package/components/NavigationItem/NavigationItem.stories.tsx +483 -454
- package/components/NavigationItem/index.tsx +792 -524
- package/components/NotificationBanner/NotificationBanner.stories.jsx +57 -57
- package/components/NotificationBanner/index.jsx +154 -154
- package/components/NotificationCard/NotificationCard.stories.jsx +93 -93
- package/components/NotificationCard/index.jsx +338 -338
- package/components/NotificationDialog/NotificationDialog.stories.jsx +205 -205
- package/components/NotificationDialog/README.md +104 -104
- package/components/NotificationDialog/index.jsx +283 -283
- package/components/NumberDisplay/NumberDisplay.stories.jsx +339 -339
- package/components/NumberDisplay/index.jsx +483 -483
- package/components/Pagination/Pagination.stories.jsx +170 -170
- package/components/Pagination/index.jsx +229 -229
- package/components/ProgressBar/ProgressBar.stories.jsx +355 -355
- package/components/ProgressBar/index.jsx +91 -91
- package/components/ProgressChart/ProgressChart.stories.jsx +312 -312
- package/components/ProgressChart/index.jsx +193 -193
- package/components/Quote/Quote.stories.tsx +32 -32
- package/components/Quote/Quote.tsx +60 -60
- package/components/RadioButton/RadioButton.stories.jsx +112 -112
- package/components/RadioButton/index.jsx +114 -114
- package/components/RangeSlider/RangeSlider.stories.jsx +165 -165
- package/components/RangeSlider/index.tsx +255 -255
- package/components/Rating/Rating.stories.jsx +196 -196
- package/components/Rating/index.jsx +187 -187
- package/components/SEIcon/CustomIcon/boletoDasMei.jsx +25 -25
- package/components/SEIcon/CustomIcon/calculadoraPrecoIdeal.jsx +22 -22
- package/components/SEIcon/CustomIcon/calculadoraValuation.jsx +21 -21
- package/components/SEIcon/CustomIcon/capacidadePagamento.jsx +22 -22
- package/components/SEIcon/CustomIcon/capitalGiro.jsx +22 -22
- package/components/SEIcon/CustomIcon/catalogoFornecedores.jsx +22 -22
- package/components/SEIcon/CustomIcon/creditoPermutas.jsx +22 -22
- package/components/SEIcon/CustomIcon/dataValidadeEpi.jsx +25 -25
- package/components/SEIcon/CustomIcon/diagnosticoEstrategico.jsx +22 -22
- package/components/SEIcon/CustomIcon/dominandoRedesSociais.jsx +22 -22
- package/components/SEIcon/CustomIcon/empresaGoogle.jsx +22 -22
- package/components/SEIcon/CustomIcon/fluxoCaixa.jsx +22 -22
- package/components/SEIcon/CustomIcon/fornecedoresTi.jsx +22 -22
- package/components/SEIcon/CustomIcon/geradoresIdeiasIA.jsx +25 -25
- package/components/SEIcon/CustomIcon/gestaoAgendamento.jsx +22 -22
- package/components/SEIcon/CustomIcon/impostoMei.jsx +22 -22
- package/components/SEIcon/CustomIcon/indicadorPorRegiao.jsx +27 -27
- package/components/SEIcon/CustomIcon/indicadoresMercado.jsx +25 -25
- package/components/SEIcon/CustomIcon/listaEpi.jsx +22 -22
- package/components/SEIcon/CustomIcon/lucroPotencial.jsx +24 -24
- package/components/SEIcon/CustomIcon/melhoresRegioesComerciais.jsx +24 -24
- package/components/SEIcon/CustomIcon/ncmComCodigoDeBarras.jsx +25 -25
- package/components/SEIcon/CustomIcon/pesquisaRegistroDeMarca.jsx +23 -23
- package/components/SEIcon/CustomIcon/planoNegocios.jsx +23 -23
- package/components/SEIcon/CustomIcon/postsInteligentes.jsx +24 -24
- package/components/SEIcon/CustomIcon/sebraeConecta.jsx +25 -25
- package/components/SEIcon/CustomIcon/segurancaTrabalho.jsx +25 -25
- package/components/SEIcon/CustomIcon/simuladorEmprestimo.jsx +22 -22
- package/components/SEIcon/SEIcon.stories.jsx +211 -211
- package/components/SEIcon/index.js +114 -114
- package/components/SEText/index.d.ts +74 -74
- package/components/SEText/index.js +171 -171
- package/components/SEText/styles.js +348 -348
- package/components/ScrollBar/ScrollBar.stories.tsx +65 -65
- package/components/ScrollBar/index.tsx +139 -139
- package/components/Search/Search.stories.jsx +161 -161
- package/components/Search/index.jsx +267 -267
- package/components/SegmentedButton/SegmentedButton.stories.jsx +274 -274
- package/components/SegmentedButton/index.jsx +195 -195
- package/components/Select/Select.stories.jsx +415 -415
- package/components/Select/index.jsx +321 -321
- package/components/SelectItem/SelectItem.stories.jsx +609 -609
- package/components/SelectItem/index.jsx +174 -174
- package/components/Shortcut/Shortcut.stories.jsx +202 -202
- package/components/Shortcut/index.jsx +294 -294
- package/components/ShowMore/ShowMore.stories.jsx +70 -70
- package/components/ShowMore/index.jsx +68 -68
- package/components/ShuffleItem/ShuffleItem.stories.jsx +278 -278
- package/components/ShuffleItem/index.jsx +723 -723
- package/components/Slider/Slider.stories.jsx +248 -248
- package/components/Slider/index.jsx +211 -211
- package/components/Tab/Tab.stories.jsx +323 -323
- package/components/Tab/index.jsx +483 -483
- package/components/Table/Table.stories.jsx +253 -253
- package/components/Table/index.jsx +432 -432
- package/components/Tag/Tag.stories.jsx +78 -78
- package/components/Tag/index.d.ts +10 -10
- package/components/Tag/index.jsx +129 -129
- package/components/TaggedInputText/TaggedInputText.stories.jsx +106 -106
- package/components/TaggedInputText/index.jsx +232 -232
- package/components/TaskCard/TaskCard.stories.jsx +468 -468
- package/components/TaskCard/assets/README.md +22 -22
- package/components/TaskCard/assets/example.js +10 -10
- package/components/TaskCard/components/EditIcon.jsx +78 -78
- package/components/TaskCard/components/SuccessContent.jsx +52 -52
- package/components/TaskCard/components/SuccessIcon.jsx +52 -52
- package/components/TaskCard/components/SuccessTitle.jsx +49 -49
- package/components/TaskCard/components/Tag.jsx +80 -80
- package/components/TaskCard/components/TagGroup.jsx +60 -60
- package/components/TaskCard/components/TaskDescription.jsx +51 -51
- package/components/TaskCard/components/index.js +7 -7
- package/components/TaskCard/index.jsx +317 -317
- package/components/Toast/Toast.stories.jsx +316 -316
- package/components/Toast/index.jsx +386 -386
- package/components/Toggle/Toggle.stories.jsx +161 -161
- package/components/Toggle/index.jsx +145 -145
- package/components/Tools/NavigationButton/NavigationButton.stories.jsx +140 -140
- package/components/Tools/NavigationButton/index.jsx +341 -341
- package/components/Tools/SearchResult/SearchResult.stories.jsx +112 -112
- package/components/Tools/SearchResult/index.jsx +106 -106
- package/components/TooltipCard/TooltipCard.stories.jsx +88 -88
- package/components/TooltipCard/index.jsx +355 -355
- package/components/Typography/Typography.stories.jsx +262 -262
- package/components/Typography/index.jsx +137 -137
- package/components/styles/colors.js +204 -204
- package/components/styles/fonts.js +15 -15
- package/components/styles/index,js +7 -7
- package/components/styles/metrics.js +13 -13
- package/components/styles/tokens.ts +222 -222
- package/components/styles.ts +79 -79
- package/components/utils/fontFamily.js +6 -6
- package/dist/components/Accordion/index.js +32 -32
- package/dist/components/AccordionAvatar/index.js +19 -19
- package/dist/components/AdBanner/index.js +12 -12
- package/dist/components/Avatar/index.js +6 -6
- package/dist/components/Banner/index.js +5 -5
- package/dist/components/BottomSheet/BottomSheet.js +31 -31
- package/dist/components/BottomSheet/BottomSheetNomeEmpresa.js +21 -21
- package/dist/components/BottomSheet/Components/ActionButtons.js +13 -13
- package/dist/components/BottomSheet/Components/ListaDeEstados.js +10 -10
- package/dist/components/Breadcrumb/index.js +7 -7
- package/dist/components/Bullet/index.js +14 -14
- package/dist/components/ButtomGroup/index.js +21 -21
- package/dist/components/Button/index.js +15 -15
- package/dist/components/ButtonGroup/index.d.ts +4 -2
- package/dist/components/ButtonGroup/index.d.ts.map +1 -1
- package/dist/components/ButtonGroup/index.js +68 -25
- package/dist/components/CNAESelectItem/index.js +54 -54
- package/dist/components/CNAESelectItem/padrao.js +213 -213
- package/dist/components/CardNumber/index.js +16 -16
- package/dist/components/Checkbox/index.js +7 -7
- package/dist/components/CommitmentCard/index.js +30 -30
- package/dist/components/ContentBlock/ContentBlock.js +7 -7
- package/dist/components/ContentCard/index.js +50 -50
- package/dist/components/ContentRelatedCard/index.js +10 -10
- package/dist/components/ContentSlot/index.js +31 -31
- package/dist/components/CopyButton/index.js +5 -5
- package/dist/components/Datepicker/MonthSelector.js +13 -13
- package/dist/components/Datepicker/TimeSelector.js +15 -15
- package/dist/components/Datepicker/index.d.ts.map +1 -1
- package/dist/components/Datepicker/index.js +485 -149
- package/dist/components/DonutChart/index.js +19 -19
- package/dist/components/Dropdown/index.js +66 -66
- package/dist/components/DropdownCommitments/index.js +24 -24
- package/dist/components/EmptySlot/index.js +19 -19
- package/dist/components/EventListItem/index.d.ts.map +1 -1
- package/dist/components/EventListItem/index.js +61 -43
- package/dist/components/ExpandableNumberDisplay/index.js +19 -19
- package/dist/components/FilterTag/index.js +7 -7
- package/dist/components/FilterableMultiSelect/index.js +29 -29
- package/dist/components/FilterableUniSelect/index.js +33 -33
- package/dist/components/GeneralInformationCard/index.js +24 -24
- package/dist/components/GettingStarted.js +8 -8
- package/dist/components/Header/components/Context.d.ts +7 -7
- package/dist/components/Header/components/Context.js +21 -21
- package/dist/components/Header/components/Information.d.ts +6 -6
- package/dist/components/Header/components/Information.js +72 -72
- package/dist/components/Header/components/Shortcut.d.ts +5 -5
- package/dist/components/Header/components/Shortcut.js +25 -25
- package/dist/components/Header/components/SwitchAccount.d.ts +8 -8
- package/dist/components/Header/components/SwitchAccount.js +170 -170
- package/dist/components/Header/components/Variants.d.ts +22 -22
- package/dist/components/Header/components/Variants.js +371 -371
- package/dist/components/Header/components/index.d.ts +33 -33
- package/dist/components/Header/components/index.js +10 -10
- package/dist/components/Header/v1/components/Context.js +2 -2
- package/dist/components/Header/v1/components/Information.d.ts +2 -1
- package/dist/components/Header/v1/components/Information.d.ts.map +1 -1
- package/dist/components/Header/v1/components/Information.js +16 -15
- package/dist/components/Header/v1/components/SwitchAccount.d.ts +2 -1
- package/dist/components/Header/v1/components/SwitchAccount.d.ts.map +1 -1
- package/dist/components/Header/v1/components/SwitchAccount.js +124 -42
- package/dist/components/Header/v1/components/Variants.d.ts.map +1 -1
- package/dist/components/Header/v1/components/Variants.js +84 -84
- package/dist/components/Header/v1/index.js +5 -5
- package/dist/components/Header/v2/index.js +11 -6
- package/dist/components/Header/v2/parts/BackButton.js +2 -2
- package/dist/components/Header/v2/parts/Context.js +2 -2
- package/dist/components/Header/v2/parts/Hero.d.ts +2 -1
- package/dist/components/Header/v2/parts/Hero.d.ts.map +1 -1
- package/dist/components/Header/v2/parts/Hero.js +14 -10
- package/dist/components/Header/v2/parts/Information.d.ts +2 -1
- package/dist/components/Header/v2/parts/Information.d.ts.map +1 -1
- package/dist/components/Header/v2/parts/Information.js +14 -13
- package/dist/components/Header/v2/parts/SwitchAccount.d.ts +2 -1
- package/dist/components/Header/v2/parts/SwitchAccount.d.ts.map +1 -1
- package/dist/components/Header/v2/parts/SwitchAccount.js +147 -66
- package/dist/components/Header/v2/parts/Variants.d.ts +21 -0
- package/dist/components/Header/v2/parts/Variants.d.ts.map +1 -1
- package/dist/components/Header/v2/parts/Variants.js +188 -148
- package/dist/components/Header/v2/parts/index.d.ts +18 -0
- package/dist/components/Image/index.js +22 -22
- package/dist/components/Input/InputUnderline.js +7 -7
- package/dist/components/Input/index.js +14 -14
- package/dist/components/Legend/index.js +8 -8
- package/dist/components/Link/index.js +7 -7
- package/dist/components/List/index.js +7 -7
- package/dist/components/ListItem/index.js +74 -74
- package/dist/components/MenuAccordion/index.js +21 -21
- package/dist/components/Modal/index.js +38 -38
- package/dist/components/Navbar/index.js +9 -9
- package/dist/components/NavigationItem/index.d.ts +73 -10
- package/dist/components/NavigationItem/index.d.ts.map +1 -1
- package/dist/components/NavigationItem/index.js +300 -145
- package/dist/components/NotificationBanner/index.js +8 -8
- package/dist/components/NotificationCard/index.js +41 -41
- package/dist/components/NotificationDialog/index.js +46 -46
- package/dist/components/NumberDisplay/index.js +24 -24
- package/dist/components/Pagination/index.js +23 -23
- package/dist/components/ProgressBar/index.js +14 -14
- package/dist/components/ProgressChart/index.js +29 -29
- package/dist/components/Quote/Quote.js +9 -9
- package/dist/components/RadioButton/index.js +7 -7
- package/dist/components/RangeSlider/index.js +32 -32
- package/dist/components/Rating/index.js +16 -16
- package/dist/components/SEIcon/CustomIcon/boletoDasMei.js +6 -6
- package/dist/components/SEIcon/CustomIcon/calculadoraPrecoIdeal.js +3 -3
- package/dist/components/SEIcon/CustomIcon/calculadoraValuation.js +3 -3
- package/dist/components/SEIcon/CustomIcon/capacidadePagamento.js +3 -3
- package/dist/components/SEIcon/CustomIcon/capitalGiro.js +3 -3
- package/dist/components/SEIcon/CustomIcon/catalogoFornecedores.js +3 -3
- package/dist/components/SEIcon/CustomIcon/creditoPermutas.js +3 -3
- package/dist/components/SEIcon/CustomIcon/dataValidadeEpi.js +6 -6
- package/dist/components/SEIcon/CustomIcon/diagnosticoEstrategico.js +3 -3
- package/dist/components/SEIcon/CustomIcon/dominandoRedesSociais.js +3 -3
- package/dist/components/SEIcon/CustomIcon/empresaGoogle.js +3 -3
- package/dist/components/SEIcon/CustomIcon/fluxoCaixa.js +3 -3
- package/dist/components/SEIcon/CustomIcon/fornecedoresTi.js +3 -3
- package/dist/components/SEIcon/CustomIcon/geradoresIdeiasIA.js +6 -6
- package/dist/components/SEIcon/CustomIcon/gestaoAgendamento.js +3 -3
- package/dist/components/SEIcon/CustomIcon/impostoMei.js +3 -3
- package/dist/components/SEIcon/CustomIcon/indicadorPorRegiao.js +6 -6
- package/dist/components/SEIcon/CustomIcon/indicadoresMercado.js +6 -6
- package/dist/components/SEIcon/CustomIcon/listaEpi.js +3 -3
- package/dist/components/SEIcon/CustomIcon/lucroPotencial.js +6 -6
- package/dist/components/SEIcon/CustomIcon/melhoresRegioesComerciais.js +6 -6
- package/dist/components/SEIcon/CustomIcon/ncmComCodigoDeBarras.js +6 -6
- package/dist/components/SEIcon/CustomIcon/pesquisaRegistroDeMarca.js +3 -3
- package/dist/components/SEIcon/CustomIcon/planoNegocios.js +3 -3
- package/dist/components/SEIcon/CustomIcon/postsInteligentes.js +6 -6
- package/dist/components/SEIcon/CustomIcon/sebraeConecta.js +6 -6
- package/dist/components/SEIcon/CustomIcon/segurancaTrabalho.js +6 -6
- package/dist/components/SEIcon/CustomIcon/simuladorEmprestimo.js +3 -3
- package/dist/components/SEText/index.js +2 -2
- package/dist/components/ScrollBar/index.js +8 -8
- package/dist/components/Search/Search.d.ts +14 -14
- package/dist/components/Search/Search.js +272 -272
- package/dist/components/Search/index.js +17 -17
- package/dist/components/SegmentedButton/index.js +10 -10
- package/dist/components/Select/index.js +16 -16
- package/dist/components/SelectItem/index.js +6 -6
- package/dist/components/Shortcut/index.js +14 -14
- package/dist/components/ShowMore/index.js +7 -7
- package/dist/components/ShuffleItem/index.js +98 -98
- package/dist/components/Slider/index.js +20 -20
- package/dist/components/Tab/index.js +26 -26
- package/dist/components/Table/index.js +35 -35
- package/dist/components/Tag/index.js +5 -5
- package/dist/components/TaggedInputText/index.js +20 -20
- package/dist/components/TaskCard/assets/README.md +22 -22
- package/dist/components/TaskCard/assets/example.js +10 -10
- package/dist/components/TaskCard/components/EditIcon.js +2 -2
- package/dist/components/TaskCard/components/SuccessContent.js +3 -3
- package/dist/components/TaskCard/components/SuccessIcon.js +2 -2
- package/dist/components/TaskCard/components/SuccessTitle.js +2 -2
- package/dist/components/TaskCard/components/Tag.js +4 -4
- package/dist/components/TaskCard/components/TagGroup.js +4 -4
- package/dist/components/TaskCard/components/TaskDescription.js +2 -2
- package/dist/components/TaskCard/index.js +51 -51
- package/dist/components/Toast/index.js +36 -36
- package/dist/components/Toggle/index.js +3 -3
- package/dist/components/Tools/NavigationButton/index.js +53 -53
- package/dist/components/Tools/SearchResult/index.js +19 -19
- package/dist/components/TooltipCard/index.js +46 -46
- package/dist/components/Typography/index.js +2 -2
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +5 -0
- package/package.json +124 -124
- package/src/index.ts +107 -100
|
@@ -1,541 +1,541 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { View, Text, Pressable, StyleSheet } from "react-native";
|
|
3
|
-
import BottomSheet, { BottomSheetNomeEmpresa } from ".";
|
|
4
|
-
import Button from "../Button";
|
|
5
|
-
import { ListaDeEstados } from "./Components/ListaDeEstados";
|
|
6
|
-
import ActionButtons from "./Components/ActionButtons";
|
|
7
|
-
import SEText from "../SEText";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const meta = {
|
|
11
|
-
title: "Molecules/BottomSheet",
|
|
12
|
-
component: BottomSheet,
|
|
13
|
-
render: (props) => {
|
|
14
|
-
const [isOpen, setIsOpen] = React.useState(false);
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<View>
|
|
18
|
-
<Button
|
|
19
|
-
label="Abrir BottomSheet"
|
|
20
|
-
onPress={() => setIsOpen(true)}
|
|
21
|
-
/>
|
|
22
|
-
|
|
23
|
-
<BottomSheet
|
|
24
|
-
{...props}
|
|
25
|
-
isOpen={isOpen}
|
|
26
|
-
setIsOpen={setIsOpen}
|
|
27
|
-
>
|
|
28
|
-
<Text>Aooba</Text>
|
|
29
|
-
</BottomSheet>
|
|
30
|
-
</View>
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
tags: ["autodocs"],
|
|
35
|
-
parameters: {
|
|
36
|
-
layout: "centered",
|
|
37
|
-
backgrounds: {
|
|
38
|
-
default: "light",
|
|
39
|
-
values: [
|
|
40
|
-
{
|
|
41
|
-
name: "light",
|
|
42
|
-
value: "#f4f4f4"
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
argTypes: {
|
|
48
|
-
label: {
|
|
49
|
-
description: "Rótulo do campo de seleção",
|
|
50
|
-
control: "text",
|
|
51
|
-
},
|
|
52
|
-
placeholder: {
|
|
53
|
-
description: "Texto de placeholder",
|
|
54
|
-
control: "text",
|
|
55
|
-
},
|
|
56
|
-
value: {
|
|
57
|
-
description: "Valor selecionado",
|
|
58
|
-
control: "object",
|
|
59
|
-
},
|
|
60
|
-
options: {
|
|
61
|
-
description: "Lista de opções disponíveis",
|
|
62
|
-
control: "object",
|
|
63
|
-
},
|
|
64
|
-
supportText: {
|
|
65
|
-
description: "Texto de suporte abaixo do campo",
|
|
66
|
-
control: "text",
|
|
67
|
-
},
|
|
68
|
-
error: {
|
|
69
|
-
description: "Estado de erro",
|
|
70
|
-
control: "boolean",
|
|
71
|
-
},
|
|
72
|
-
success: {
|
|
73
|
-
description: "Estado de sucesso",
|
|
74
|
-
control: "boolean",
|
|
75
|
-
},
|
|
76
|
-
disabled: {
|
|
77
|
-
description: "Estado desabilitado",
|
|
78
|
-
control: "boolean",
|
|
79
|
-
},
|
|
80
|
-
withSeparator: {
|
|
81
|
-
description: "Adiciona separadores entre as opções",
|
|
82
|
-
control: "boolean",
|
|
83
|
-
},
|
|
84
|
-
headerAlignment: {
|
|
85
|
-
description: "Alinhamento do cabeçalho (ícone/título/subtítulo)",
|
|
86
|
-
control: { type: "select" },
|
|
87
|
-
options: ["left", "center"],
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
export default meta;
|
|
93
|
-
|
|
94
|
-
const MockSlot = () => {
|
|
95
|
-
return (
|
|
96
|
-
<Pressable style={mockStyles.slot}>
|
|
97
|
-
<SEText type="ns-sm-body" style={mockStyles.slotText}>
|
|
98
|
-
Change this component
|
|
99
|
-
</SEText>
|
|
100
|
-
</Pressable>
|
|
101
|
-
);
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
const MockActions = ({
|
|
105
|
-
variant = 'two-vertical',
|
|
106
|
-
}) => {
|
|
107
|
-
if (variant === 'none') return null;
|
|
108
|
-
|
|
109
|
-
if (variant === 'one') {
|
|
110
|
-
return (
|
|
111
|
-
<View style={mockStyles.actionsVertical}>
|
|
112
|
-
<Button label="Label" variant="filled" size="medium" expand />
|
|
113
|
-
</View>
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
if (variant === 'two-horizontal') {
|
|
118
|
-
return (
|
|
119
|
-
<View style={mockStyles.actionsHorizontal}>
|
|
120
|
-
<View style={mockStyles.actionsItem}>
|
|
121
|
-
<Button label="Label" variant="transparent" size="medium" expand />
|
|
122
|
-
</View>
|
|
123
|
-
<View style={mockStyles.actionsItem}>
|
|
124
|
-
<Button label="Label" variant="filled" size="medium" expand />
|
|
125
|
-
</View>
|
|
126
|
-
</View>
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
return (
|
|
131
|
-
<View style={mockStyles.actionsVertical}>
|
|
132
|
-
<Button label="Label" variant="filled" size="medium" expand />
|
|
133
|
-
<Button label="Label" variant="transparent" size="medium" expand />
|
|
134
|
-
</View>
|
|
135
|
-
);
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
const BottomSheetMock = ({
|
|
139
|
-
showIcon = true,
|
|
140
|
-
showSlot = true,
|
|
141
|
-
actions = 'two-vertical',
|
|
142
|
-
headerAlignment = 'left',
|
|
143
|
-
}) => {
|
|
144
|
-
const [isOpen, setIsOpen] = React.useState(true);
|
|
145
|
-
|
|
146
|
-
return (
|
|
147
|
-
<View style={mockStyles.storyRoot}>
|
|
148
|
-
{!isOpen && (
|
|
149
|
-
<View style={mockStyles.reopenButton}>
|
|
150
|
-
<Button label="Abrir BottomSheet" onPress={() => setIsOpen(true)} />
|
|
151
|
-
</View>
|
|
152
|
-
)}
|
|
153
|
-
|
|
154
|
-
<BottomSheet
|
|
155
|
-
isOpen={isOpen}
|
|
156
|
-
setIsOpen={setIsOpen}
|
|
157
|
-
title="Title"
|
|
158
|
-
subtitle="Description"
|
|
159
|
-
headerIcon={showIcon ? 'add-circle-line' : null}
|
|
160
|
-
headerAlignment={headerAlignment}
|
|
161
|
-
>
|
|
162
|
-
<View style={mockStyles.content}>
|
|
163
|
-
{showSlot && <MockSlot />}
|
|
164
|
-
<MockActions variant={actions} />
|
|
165
|
-
</View>
|
|
166
|
-
</BottomSheet>
|
|
167
|
-
</View>
|
|
168
|
-
);
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
const mockStyles = StyleSheet.create({
|
|
172
|
-
storyRoot: {
|
|
173
|
-
minHeight: 640,
|
|
174
|
-
width: 360,
|
|
175
|
-
alignItems: 'center',
|
|
176
|
-
justifyContent: 'center',
|
|
177
|
-
},
|
|
178
|
-
reopenButton: {
|
|
179
|
-
marginTop: 16,
|
|
180
|
-
},
|
|
181
|
-
content: {
|
|
182
|
-
paddingTop: 8,
|
|
183
|
-
gap: 24,
|
|
184
|
-
},
|
|
185
|
-
slot: {
|
|
186
|
-
width: '100%',
|
|
187
|
-
minHeight: 88,
|
|
188
|
-
borderRadius: 16,
|
|
189
|
-
borderWidth: 2,
|
|
190
|
-
borderStyle: 'dashed',
|
|
191
|
-
borderColor: '#6684FF',
|
|
192
|
-
backgroundColor: '#E3E9FF',
|
|
193
|
-
alignItems: 'center',
|
|
194
|
-
justifyContent: 'center',
|
|
195
|
-
paddingHorizontal: 16,
|
|
196
|
-
},
|
|
197
|
-
slotText: {
|
|
198
|
-
color: '#2A4FDA',
|
|
199
|
-
textAlign: 'center',
|
|
200
|
-
},
|
|
201
|
-
actionsVertical: {
|
|
202
|
-
// overflow: 'hidden',
|
|
203
|
-
// marginHorizontal: -4,
|
|
204
|
-
// paddingHorizontal: 4,
|
|
205
|
-
width: '100%',
|
|
206
|
-
gap: 12,
|
|
207
|
-
},
|
|
208
|
-
actionsHorizontal: {
|
|
209
|
-
width: '100%',
|
|
210
|
-
flexDirection: 'row',
|
|
211
|
-
gap: 12,
|
|
212
|
-
},
|
|
213
|
-
actionsItem: {
|
|
214
|
-
flex: 1,
|
|
215
|
-
},
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
// Template base para reutilizar
|
|
221
|
-
const Template = (args) => {
|
|
222
|
-
const [isOpen, setIsOpen] = React.useState(false);
|
|
223
|
-
|
|
224
|
-
return (
|
|
225
|
-
<View>
|
|
226
|
-
<Button
|
|
227
|
-
label="Abrir BottomSheet"
|
|
228
|
-
onPress={() => setIsOpen(true)}
|
|
229
|
-
/>
|
|
230
|
-
|
|
231
|
-
<BottomSheet
|
|
232
|
-
{...args}
|
|
233
|
-
isOpen={isOpen}
|
|
234
|
-
setIsOpen={setIsOpen}
|
|
235
|
-
onSelect={(option) => {
|
|
236
|
-
setIsOpen(false);
|
|
237
|
-
}}
|
|
238
|
-
/>
|
|
239
|
-
</View>
|
|
240
|
-
);
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
// ================ SELECIONE UM ESTADO ================
|
|
244
|
-
|
|
245
|
-
export const SelecioneUmEstado = {
|
|
246
|
-
render: (args) => {
|
|
247
|
-
const [isOpen, setIsOpen] = React.useState(false);
|
|
248
|
-
const [selectedStates, setSelectedStates] = React.useState(['Amazonas (AM)']);
|
|
249
|
-
|
|
250
|
-
return (
|
|
251
|
-
<View style={{ padding: 20 }}>
|
|
252
|
-
|
|
253
|
-
<Button
|
|
254
|
-
label="Selecione um estado (UF)"
|
|
255
|
-
onPress={() => setIsOpen(true)}
|
|
256
|
-
/>
|
|
257
|
-
|
|
258
|
-
<BottomSheet
|
|
259
|
-
{...args}
|
|
260
|
-
isOpen={isOpen}
|
|
261
|
-
setIsOpen={setIsOpen}
|
|
262
|
-
selectedItems={selectedStates}
|
|
263
|
-
>
|
|
264
|
-
<ListaDeEstados
|
|
265
|
-
multiSelect={true}
|
|
266
|
-
isCheckbox={true}
|
|
267
|
-
withSeparator={false}
|
|
268
|
-
selectedItems={selectedStates}
|
|
269
|
-
onSelect={(newSelection) => {
|
|
270
|
-
setSelectedStates(newSelection);
|
|
271
|
-
}}
|
|
272
|
-
/>
|
|
273
|
-
</BottomSheet>
|
|
274
|
-
|
|
275
|
-
{selectedStates.length > 0 && (
|
|
276
|
-
<View style={{ marginTop: 15, padding: 10, backgroundColor: '#f5f5f5', borderRadius: 8 }}>
|
|
277
|
-
<Text style={{ fontSize: 14, color: '#666' }}>Estados selecionados:</Text>
|
|
278
|
-
{selectedStates.map((state, index) => (
|
|
279
|
-
<Text key={index} style={{ fontSize: 14, color: '#333', marginTop: 2 }}>
|
|
280
|
-
✓ {state}
|
|
281
|
-
</Text>
|
|
282
|
-
))}
|
|
283
|
-
</View>
|
|
284
|
-
)}
|
|
285
|
-
</View>
|
|
286
|
-
);
|
|
287
|
-
},
|
|
288
|
-
args: {
|
|
289
|
-
title: "Selecione um estado (UF)",
|
|
290
|
-
isCheckbox: true,
|
|
291
|
-
multiSelect: true,
|
|
292
|
-
withSeparator: false,
|
|
293
|
-
},
|
|
294
|
-
parameters: {
|
|
295
|
-
docs: {
|
|
296
|
-
description: {
|
|
297
|
-
story: "Reprodução EXATA do exemplo da imagem: lista de estados com checkboxes, scroll automático e seleção múltipla.",
|
|
298
|
-
},
|
|
299
|
-
},
|
|
300
|
-
},
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
// ================ COM BOTÕES DE AÇÃO ================
|
|
304
|
-
|
|
305
|
-
export const ComBotoesDeAcao = {
|
|
306
|
-
render: (args) => {
|
|
307
|
-
const [isOpen, setIsOpen] = React.useState(false);
|
|
308
|
-
const [actionTaken, setActionTaken] = React.useState('');
|
|
309
|
-
|
|
310
|
-
const handleRemindLater = () => {
|
|
311
|
-
setActionTaken('Você será lembrado mais tarde 🕐');
|
|
312
|
-
setIsOpen(false);
|
|
313
|
-
};
|
|
314
|
-
|
|
315
|
-
const handleDontShowAgain = () => {
|
|
316
|
-
setActionTaken('Esta notificação não será mostrada novamente ❌');
|
|
317
|
-
setIsOpen(false);
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
return (
|
|
321
|
-
<View style={{ padding: 20 }}>
|
|
322
|
-
<Button
|
|
323
|
-
label="Abrir Notificação"
|
|
324
|
-
onPress={() => setIsOpen(true)}
|
|
325
|
-
/>
|
|
326
|
-
|
|
327
|
-
<BottomSheet
|
|
328
|
-
{...args}
|
|
329
|
-
isOpen={isOpen}
|
|
330
|
-
setIsOpen={setIsOpen}
|
|
331
|
-
>
|
|
332
|
-
<View style={{ paddingHorizontal: 20, paddingTop: 8, paddingBottom: 16 }}>
|
|
333
|
-
<Text style={{
|
|
334
|
-
fontSize: 16,
|
|
335
|
-
color: '#666666',
|
|
336
|
-
lineHeight: 24,
|
|
337
|
-
textAlign: 'left'
|
|
338
|
-
}}>
|
|
339
|
-
Você tem uma nova notificação importante que requer sua atenção. Deseja ser lembrado mais tarde ou não mostrar este tipo de notificação novamente?
|
|
340
|
-
</Text>
|
|
341
|
-
</View>
|
|
342
|
-
|
|
343
|
-
<ActionButtons
|
|
344
|
-
onRemindLater={handleRemindLater}
|
|
345
|
-
onDontShowAgain={handleDontShowAgain}
|
|
346
|
-
/>
|
|
347
|
-
</BottomSheet>
|
|
348
|
-
|
|
349
|
-
{actionTaken !== '' && (
|
|
350
|
-
<View style={{
|
|
351
|
-
marginTop: 16,
|
|
352
|
-
padding: 16,
|
|
353
|
-
backgroundColor: '#F0F9FF',
|
|
354
|
-
borderRadius: 8,
|
|
355
|
-
borderLeftWidth: 4,
|
|
356
|
-
borderLeftColor: '#0EA5E9'
|
|
357
|
-
}}>
|
|
358
|
-
<Text style={{ fontSize: 14, color: '#0C4A6E', fontWeight: '500' }}>
|
|
359
|
-
{actionTaken}
|
|
360
|
-
</Text>
|
|
361
|
-
</View>
|
|
362
|
-
)}
|
|
363
|
-
</View>
|
|
364
|
-
);
|
|
365
|
-
},
|
|
366
|
-
args: {
|
|
367
|
-
title: "Nova Notificação",
|
|
368
|
-
subtitle: "Escolha como deseja proceder",
|
|
369
|
-
},
|
|
370
|
-
parameters: {
|
|
371
|
-
docs: {
|
|
372
|
-
description: {
|
|
373
|
-
story: "Variação do BottomSheet com botões de ação 'Lembrar mais tarde' e 'Não mostrar de novo', ideal para notificações ou confirmações que o usuário pode adiar ou desabilitar permanentemente.",
|
|
374
|
-
},
|
|
375
|
-
},
|
|
376
|
-
},
|
|
377
|
-
};
|
|
378
|
-
|
|
379
|
-
// ================ EXATAMENTE COMO NA IMAGEM ================
|
|
380
|
-
|
|
381
|
-
export const ExatamenteComoNaImagem = {
|
|
382
|
-
render: (args) => {
|
|
383
|
-
const [isOpen, setIsOpen] = React.useState(false);
|
|
384
|
-
const [actionTaken, setActionTaken] = React.useState('');
|
|
385
|
-
|
|
386
|
-
const handleRemindLater = () => {
|
|
387
|
-
setActionTaken('✅ Você será lembrado mais tarde');
|
|
388
|
-
setIsOpen(false);
|
|
389
|
-
};
|
|
390
|
-
|
|
391
|
-
const handleDontShowAgain = () => {
|
|
392
|
-
setActionTaken('✅ Não será mostrado novamente');
|
|
393
|
-
setIsOpen(false);
|
|
394
|
-
};
|
|
395
|
-
|
|
396
|
-
return (
|
|
397
|
-
<View style={{ padding: 20 }}>
|
|
398
|
-
<Button
|
|
399
|
-
label="Reproduzir Imagem Exata"
|
|
400
|
-
onPress={() => setIsOpen(true)}
|
|
401
|
-
/>
|
|
402
|
-
|
|
403
|
-
<BottomSheet
|
|
404
|
-
{...args}
|
|
405
|
-
isOpen={isOpen}
|
|
406
|
-
setIsOpen={setIsOpen}
|
|
407
|
-
showHeader={true}
|
|
408
|
-
title=""
|
|
409
|
-
>
|
|
410
|
-
<ActionButtons
|
|
411
|
-
onRemindLater={handleRemindLater}
|
|
412
|
-
onDontShowAgain={handleDontShowAgain}
|
|
413
|
-
/>
|
|
414
|
-
</BottomSheet>
|
|
415
|
-
|
|
416
|
-
{actionTaken !== '' && (
|
|
417
|
-
<View style={{
|
|
418
|
-
marginTop: 16,
|
|
419
|
-
padding: 16,
|
|
420
|
-
backgroundColor: '#E8F5E8',
|
|
421
|
-
borderRadius: 8,
|
|
422
|
-
borderLeftWidth: 4,
|
|
423
|
-
borderLeftColor: '#28A745'
|
|
424
|
-
}}>
|
|
425
|
-
<Text style={{ fontSize: 14, color: '#155724', fontWeight: '600' }}>
|
|
426
|
-
{actionTaken}
|
|
427
|
-
</Text>
|
|
428
|
-
</View>
|
|
429
|
-
)}
|
|
430
|
-
</View>
|
|
431
|
-
);
|
|
432
|
-
},
|
|
433
|
-
args: {
|
|
434
|
-
showHeader: true,
|
|
435
|
-
},
|
|
436
|
-
parameters: {
|
|
437
|
-
docs: {
|
|
438
|
-
description: {
|
|
439
|
-
story: "Reprodução exata da imagem anexada: BottomSheet simples com apenas o botão de fechar e dois botões de ação na parte inferior.",
|
|
440
|
-
},
|
|
441
|
-
},
|
|
442
|
-
},
|
|
443
|
-
};
|
|
444
|
-
|
|
445
|
-
// ================ ESTADOS BÁSICOS ================
|
|
446
|
-
|
|
447
|
-
export const Padrao = {
|
|
448
|
-
render: (props) => {
|
|
449
|
-
const [isOpen, setIsOpen] = React.useState(false);
|
|
450
|
-
|
|
451
|
-
return (
|
|
452
|
-
<View>
|
|
453
|
-
<Button
|
|
454
|
-
label="Abrir BottomSheet"
|
|
455
|
-
onPress={() => setIsOpen(true)}
|
|
456
|
-
/>
|
|
457
|
-
|
|
458
|
-
<BottomSheet
|
|
459
|
-
{...props}
|
|
460
|
-
isOpen={isOpen}
|
|
461
|
-
setIsOpen={setIsOpen}
|
|
462
|
-
/>
|
|
463
|
-
</View>
|
|
464
|
-
);
|
|
465
|
-
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
// Estado Padrão
|
|
470
|
-
export const Default = {
|
|
471
|
-
render: Template,
|
|
472
|
-
args: {
|
|
473
|
-
title: "Selecione uma opção",
|
|
474
|
-
options: ["Opção 1", "Opção 2", "Opção 3"],
|
|
475
|
-
supportText: "Estado padrão, usado quando o item está disponível, mas sem interação no momento.",
|
|
476
|
-
},
|
|
477
|
-
parameters: {
|
|
478
|
-
docs: {
|
|
479
|
-
description: {
|
|
480
|
-
story: "Estado padrão do BottomSheet, usado quando o item está disponível mas sem interação no momento.",
|
|
481
|
-
},
|
|
482
|
-
},
|
|
483
|
-
},
|
|
484
|
-
};
|
|
485
|
-
|
|
486
|
-
// ================ NOME DA EMPRESA ================
|
|
487
|
-
|
|
488
|
-
export const NomeEmpresa = {
|
|
489
|
-
render: (args) => {
|
|
490
|
-
const [isOpen, setIsOpen] = React.useState(false);
|
|
491
|
-
|
|
492
|
-
return (
|
|
493
|
-
<View>
|
|
494
|
-
<Button
|
|
495
|
-
label="Abrir NomeEmpresa"
|
|
496
|
-
onPress={() => setIsOpen(true)}
|
|
497
|
-
/>
|
|
498
|
-
|
|
499
|
-
<BottomSheetNomeEmpresa
|
|
500
|
-
{...args}
|
|
501
|
-
isOpen={isOpen}
|
|
502
|
-
setIsOpen={setIsOpen}
|
|
503
|
-
/>
|
|
504
|
-
</View>
|
|
505
|
-
);
|
|
506
|
-
},
|
|
507
|
-
};
|
|
508
|
-
|
|
509
|
-
// ================== VARIAÇÕES (MOCK FIGMA) ==================
|
|
510
|
-
|
|
511
|
-
export const DoisBotoesVertical = {
|
|
512
|
-
render: () => <BottomSheetMock showIcon={true} showSlot={true} actions="two-vertical" />,
|
|
513
|
-
};
|
|
514
|
-
|
|
515
|
-
export const SemSlot = {
|
|
516
|
-
render: () => <BottomSheetMock showIcon={true} showSlot={false} actions="two-vertical" />,
|
|
517
|
-
};
|
|
518
|
-
|
|
519
|
-
export const UmBotao = {
|
|
520
|
-
render: () => <BottomSheetMock showIcon={true} showSlot={true} actions="one" />,
|
|
521
|
-
};
|
|
522
|
-
|
|
523
|
-
export const DoisBotoesHorizontal = {
|
|
524
|
-
render: () => <BottomSheetMock showIcon={true} showSlot={true} actions="two-horizontal" />,
|
|
525
|
-
};
|
|
526
|
-
|
|
527
|
-
export const SemBotoes = {
|
|
528
|
-
render: () => <BottomSheetMock showIcon={true} showSlot={true} actions="none" />,
|
|
529
|
-
};
|
|
530
|
-
|
|
531
|
-
export const SemIcone = {
|
|
532
|
-
render: () => <BottomSheetMock showIcon={false} showSlot={true} actions="two-vertical" />,
|
|
533
|
-
};
|
|
534
|
-
|
|
535
|
-
export const AlinhadoAoCentro = {
|
|
536
|
-
name: 'Alinhado ao centro',
|
|
537
|
-
render: () => (
|
|
538
|
-
<BottomSheetMock showIcon={true} showSlot={true} actions="two-vertical" headerAlignment="center" />
|
|
539
|
-
),
|
|
540
|
-
};
|
|
541
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { View, Text, Pressable, StyleSheet } from "react-native";
|
|
3
|
+
import BottomSheet, { BottomSheetNomeEmpresa } from ".";
|
|
4
|
+
import Button from "../Button";
|
|
5
|
+
import { ListaDeEstados } from "./Components/ListaDeEstados";
|
|
6
|
+
import ActionButtons from "./Components/ActionButtons";
|
|
7
|
+
import SEText from "../SEText";
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
const meta = {
|
|
11
|
+
title: "Molecules/BottomSheet",
|
|
12
|
+
component: BottomSheet,
|
|
13
|
+
render: (props) => {
|
|
14
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<View>
|
|
18
|
+
<Button
|
|
19
|
+
label="Abrir BottomSheet"
|
|
20
|
+
onPress={() => setIsOpen(true)}
|
|
21
|
+
/>
|
|
22
|
+
|
|
23
|
+
<BottomSheet
|
|
24
|
+
{...props}
|
|
25
|
+
isOpen={isOpen}
|
|
26
|
+
setIsOpen={setIsOpen}
|
|
27
|
+
>
|
|
28
|
+
<Text>Aooba</Text>
|
|
29
|
+
</BottomSheet>
|
|
30
|
+
</View>
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
},
|
|
34
|
+
tags: ["autodocs"],
|
|
35
|
+
parameters: {
|
|
36
|
+
layout: "centered",
|
|
37
|
+
backgrounds: {
|
|
38
|
+
default: "light",
|
|
39
|
+
values: [
|
|
40
|
+
{
|
|
41
|
+
name: "light",
|
|
42
|
+
value: "#f4f4f4"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
argTypes: {
|
|
48
|
+
label: {
|
|
49
|
+
description: "Rótulo do campo de seleção",
|
|
50
|
+
control: "text",
|
|
51
|
+
},
|
|
52
|
+
placeholder: {
|
|
53
|
+
description: "Texto de placeholder",
|
|
54
|
+
control: "text",
|
|
55
|
+
},
|
|
56
|
+
value: {
|
|
57
|
+
description: "Valor selecionado",
|
|
58
|
+
control: "object",
|
|
59
|
+
},
|
|
60
|
+
options: {
|
|
61
|
+
description: "Lista de opções disponíveis",
|
|
62
|
+
control: "object",
|
|
63
|
+
},
|
|
64
|
+
supportText: {
|
|
65
|
+
description: "Texto de suporte abaixo do campo",
|
|
66
|
+
control: "text",
|
|
67
|
+
},
|
|
68
|
+
error: {
|
|
69
|
+
description: "Estado de erro",
|
|
70
|
+
control: "boolean",
|
|
71
|
+
},
|
|
72
|
+
success: {
|
|
73
|
+
description: "Estado de sucesso",
|
|
74
|
+
control: "boolean",
|
|
75
|
+
},
|
|
76
|
+
disabled: {
|
|
77
|
+
description: "Estado desabilitado",
|
|
78
|
+
control: "boolean",
|
|
79
|
+
},
|
|
80
|
+
withSeparator: {
|
|
81
|
+
description: "Adiciona separadores entre as opções",
|
|
82
|
+
control: "boolean",
|
|
83
|
+
},
|
|
84
|
+
headerAlignment: {
|
|
85
|
+
description: "Alinhamento do cabeçalho (ícone/título/subtítulo)",
|
|
86
|
+
control: { type: "select" },
|
|
87
|
+
options: ["left", "center"],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export default meta;
|
|
93
|
+
|
|
94
|
+
const MockSlot = () => {
|
|
95
|
+
return (
|
|
96
|
+
<Pressable style={mockStyles.slot}>
|
|
97
|
+
<SEText type="ns-sm-body" style={mockStyles.slotText}>
|
|
98
|
+
Change this component
|
|
99
|
+
</SEText>
|
|
100
|
+
</Pressable>
|
|
101
|
+
);
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
const MockActions = ({
|
|
105
|
+
variant = 'two-vertical',
|
|
106
|
+
}) => {
|
|
107
|
+
if (variant === 'none') return null;
|
|
108
|
+
|
|
109
|
+
if (variant === 'one') {
|
|
110
|
+
return (
|
|
111
|
+
<View style={mockStyles.actionsVertical}>
|
|
112
|
+
<Button label="Label" variant="filled" size="medium" expand />
|
|
113
|
+
</View>
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if (variant === 'two-horizontal') {
|
|
118
|
+
return (
|
|
119
|
+
<View style={mockStyles.actionsHorizontal}>
|
|
120
|
+
<View style={mockStyles.actionsItem}>
|
|
121
|
+
<Button label="Label" variant="transparent" size="medium" expand />
|
|
122
|
+
</View>
|
|
123
|
+
<View style={mockStyles.actionsItem}>
|
|
124
|
+
<Button label="Label" variant="filled" size="medium" expand />
|
|
125
|
+
</View>
|
|
126
|
+
</View>
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return (
|
|
131
|
+
<View style={mockStyles.actionsVertical}>
|
|
132
|
+
<Button label="Label" variant="filled" size="medium" expand />
|
|
133
|
+
<Button label="Label" variant="transparent" size="medium" expand />
|
|
134
|
+
</View>
|
|
135
|
+
);
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
const BottomSheetMock = ({
|
|
139
|
+
showIcon = true,
|
|
140
|
+
showSlot = true,
|
|
141
|
+
actions = 'two-vertical',
|
|
142
|
+
headerAlignment = 'left',
|
|
143
|
+
}) => {
|
|
144
|
+
const [isOpen, setIsOpen] = React.useState(true);
|
|
145
|
+
|
|
146
|
+
return (
|
|
147
|
+
<View style={mockStyles.storyRoot}>
|
|
148
|
+
{!isOpen && (
|
|
149
|
+
<View style={mockStyles.reopenButton}>
|
|
150
|
+
<Button label="Abrir BottomSheet" onPress={() => setIsOpen(true)} />
|
|
151
|
+
</View>
|
|
152
|
+
)}
|
|
153
|
+
|
|
154
|
+
<BottomSheet
|
|
155
|
+
isOpen={isOpen}
|
|
156
|
+
setIsOpen={setIsOpen}
|
|
157
|
+
title="Title"
|
|
158
|
+
subtitle="Description"
|
|
159
|
+
headerIcon={showIcon ? 'add-circle-line' : null}
|
|
160
|
+
headerAlignment={headerAlignment}
|
|
161
|
+
>
|
|
162
|
+
<View style={mockStyles.content}>
|
|
163
|
+
{showSlot && <MockSlot />}
|
|
164
|
+
<MockActions variant={actions} />
|
|
165
|
+
</View>
|
|
166
|
+
</BottomSheet>
|
|
167
|
+
</View>
|
|
168
|
+
);
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
const mockStyles = StyleSheet.create({
|
|
172
|
+
storyRoot: {
|
|
173
|
+
minHeight: 640,
|
|
174
|
+
width: 360,
|
|
175
|
+
alignItems: 'center',
|
|
176
|
+
justifyContent: 'center',
|
|
177
|
+
},
|
|
178
|
+
reopenButton: {
|
|
179
|
+
marginTop: 16,
|
|
180
|
+
},
|
|
181
|
+
content: {
|
|
182
|
+
paddingTop: 8,
|
|
183
|
+
gap: 24,
|
|
184
|
+
},
|
|
185
|
+
slot: {
|
|
186
|
+
width: '100%',
|
|
187
|
+
minHeight: 88,
|
|
188
|
+
borderRadius: 16,
|
|
189
|
+
borderWidth: 2,
|
|
190
|
+
borderStyle: 'dashed',
|
|
191
|
+
borderColor: '#6684FF',
|
|
192
|
+
backgroundColor: '#E3E9FF',
|
|
193
|
+
alignItems: 'center',
|
|
194
|
+
justifyContent: 'center',
|
|
195
|
+
paddingHorizontal: 16,
|
|
196
|
+
},
|
|
197
|
+
slotText: {
|
|
198
|
+
color: '#2A4FDA',
|
|
199
|
+
textAlign: 'center',
|
|
200
|
+
},
|
|
201
|
+
actionsVertical: {
|
|
202
|
+
// overflow: 'hidden',
|
|
203
|
+
// marginHorizontal: -4,
|
|
204
|
+
// paddingHorizontal: 4,
|
|
205
|
+
width: '100%',
|
|
206
|
+
gap: 12,
|
|
207
|
+
},
|
|
208
|
+
actionsHorizontal: {
|
|
209
|
+
width: '100%',
|
|
210
|
+
flexDirection: 'row',
|
|
211
|
+
gap: 12,
|
|
212
|
+
},
|
|
213
|
+
actionsItem: {
|
|
214
|
+
flex: 1,
|
|
215
|
+
},
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
// Template base para reutilizar
|
|
221
|
+
const Template = (args) => {
|
|
222
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
223
|
+
|
|
224
|
+
return (
|
|
225
|
+
<View>
|
|
226
|
+
<Button
|
|
227
|
+
label="Abrir BottomSheet"
|
|
228
|
+
onPress={() => setIsOpen(true)}
|
|
229
|
+
/>
|
|
230
|
+
|
|
231
|
+
<BottomSheet
|
|
232
|
+
{...args}
|
|
233
|
+
isOpen={isOpen}
|
|
234
|
+
setIsOpen={setIsOpen}
|
|
235
|
+
onSelect={(option) => {
|
|
236
|
+
setIsOpen(false);
|
|
237
|
+
}}
|
|
238
|
+
/>
|
|
239
|
+
</View>
|
|
240
|
+
);
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
// ================ SELECIONE UM ESTADO ================
|
|
244
|
+
|
|
245
|
+
export const SelecioneUmEstado = {
|
|
246
|
+
render: (args) => {
|
|
247
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
248
|
+
const [selectedStates, setSelectedStates] = React.useState(['Amazonas (AM)']);
|
|
249
|
+
|
|
250
|
+
return (
|
|
251
|
+
<View style={{ padding: 20 }}>
|
|
252
|
+
|
|
253
|
+
<Button
|
|
254
|
+
label="Selecione um estado (UF)"
|
|
255
|
+
onPress={() => setIsOpen(true)}
|
|
256
|
+
/>
|
|
257
|
+
|
|
258
|
+
<BottomSheet
|
|
259
|
+
{...args}
|
|
260
|
+
isOpen={isOpen}
|
|
261
|
+
setIsOpen={setIsOpen}
|
|
262
|
+
selectedItems={selectedStates}
|
|
263
|
+
>
|
|
264
|
+
<ListaDeEstados
|
|
265
|
+
multiSelect={true}
|
|
266
|
+
isCheckbox={true}
|
|
267
|
+
withSeparator={false}
|
|
268
|
+
selectedItems={selectedStates}
|
|
269
|
+
onSelect={(newSelection) => {
|
|
270
|
+
setSelectedStates(newSelection);
|
|
271
|
+
}}
|
|
272
|
+
/>
|
|
273
|
+
</BottomSheet>
|
|
274
|
+
|
|
275
|
+
{selectedStates.length > 0 && (
|
|
276
|
+
<View style={{ marginTop: 15, padding: 10, backgroundColor: '#f5f5f5', borderRadius: 8 }}>
|
|
277
|
+
<Text style={{ fontSize: 14, color: '#666' }}>Estados selecionados:</Text>
|
|
278
|
+
{selectedStates.map((state, index) => (
|
|
279
|
+
<Text key={index} style={{ fontSize: 14, color: '#333', marginTop: 2 }}>
|
|
280
|
+
✓ {state}
|
|
281
|
+
</Text>
|
|
282
|
+
))}
|
|
283
|
+
</View>
|
|
284
|
+
)}
|
|
285
|
+
</View>
|
|
286
|
+
);
|
|
287
|
+
},
|
|
288
|
+
args: {
|
|
289
|
+
title: "Selecione um estado (UF)",
|
|
290
|
+
isCheckbox: true,
|
|
291
|
+
multiSelect: true,
|
|
292
|
+
withSeparator: false,
|
|
293
|
+
},
|
|
294
|
+
parameters: {
|
|
295
|
+
docs: {
|
|
296
|
+
description: {
|
|
297
|
+
story: "Reprodução EXATA do exemplo da imagem: lista de estados com checkboxes, scroll automático e seleção múltipla.",
|
|
298
|
+
},
|
|
299
|
+
},
|
|
300
|
+
},
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
// ================ COM BOTÕES DE AÇÃO ================
|
|
304
|
+
|
|
305
|
+
export const ComBotoesDeAcao = {
|
|
306
|
+
render: (args) => {
|
|
307
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
308
|
+
const [actionTaken, setActionTaken] = React.useState('');
|
|
309
|
+
|
|
310
|
+
const handleRemindLater = () => {
|
|
311
|
+
setActionTaken('Você será lembrado mais tarde 🕐');
|
|
312
|
+
setIsOpen(false);
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
const handleDontShowAgain = () => {
|
|
316
|
+
setActionTaken('Esta notificação não será mostrada novamente ❌');
|
|
317
|
+
setIsOpen(false);
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
return (
|
|
321
|
+
<View style={{ padding: 20 }}>
|
|
322
|
+
<Button
|
|
323
|
+
label="Abrir Notificação"
|
|
324
|
+
onPress={() => setIsOpen(true)}
|
|
325
|
+
/>
|
|
326
|
+
|
|
327
|
+
<BottomSheet
|
|
328
|
+
{...args}
|
|
329
|
+
isOpen={isOpen}
|
|
330
|
+
setIsOpen={setIsOpen}
|
|
331
|
+
>
|
|
332
|
+
<View style={{ paddingHorizontal: 20, paddingTop: 8, paddingBottom: 16 }}>
|
|
333
|
+
<Text style={{
|
|
334
|
+
fontSize: 16,
|
|
335
|
+
color: '#666666',
|
|
336
|
+
lineHeight: 24,
|
|
337
|
+
textAlign: 'left'
|
|
338
|
+
}}>
|
|
339
|
+
Você tem uma nova notificação importante que requer sua atenção. Deseja ser lembrado mais tarde ou não mostrar este tipo de notificação novamente?
|
|
340
|
+
</Text>
|
|
341
|
+
</View>
|
|
342
|
+
|
|
343
|
+
<ActionButtons
|
|
344
|
+
onRemindLater={handleRemindLater}
|
|
345
|
+
onDontShowAgain={handleDontShowAgain}
|
|
346
|
+
/>
|
|
347
|
+
</BottomSheet>
|
|
348
|
+
|
|
349
|
+
{actionTaken !== '' && (
|
|
350
|
+
<View style={{
|
|
351
|
+
marginTop: 16,
|
|
352
|
+
padding: 16,
|
|
353
|
+
backgroundColor: '#F0F9FF',
|
|
354
|
+
borderRadius: 8,
|
|
355
|
+
borderLeftWidth: 4,
|
|
356
|
+
borderLeftColor: '#0EA5E9'
|
|
357
|
+
}}>
|
|
358
|
+
<Text style={{ fontSize: 14, color: '#0C4A6E', fontWeight: '500' }}>
|
|
359
|
+
{actionTaken}
|
|
360
|
+
</Text>
|
|
361
|
+
</View>
|
|
362
|
+
)}
|
|
363
|
+
</View>
|
|
364
|
+
);
|
|
365
|
+
},
|
|
366
|
+
args: {
|
|
367
|
+
title: "Nova Notificação",
|
|
368
|
+
subtitle: "Escolha como deseja proceder",
|
|
369
|
+
},
|
|
370
|
+
parameters: {
|
|
371
|
+
docs: {
|
|
372
|
+
description: {
|
|
373
|
+
story: "Variação do BottomSheet com botões de ação 'Lembrar mais tarde' e 'Não mostrar de novo', ideal para notificações ou confirmações que o usuário pode adiar ou desabilitar permanentemente.",
|
|
374
|
+
},
|
|
375
|
+
},
|
|
376
|
+
},
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
// ================ EXATAMENTE COMO NA IMAGEM ================
|
|
380
|
+
|
|
381
|
+
export const ExatamenteComoNaImagem = {
|
|
382
|
+
render: (args) => {
|
|
383
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
384
|
+
const [actionTaken, setActionTaken] = React.useState('');
|
|
385
|
+
|
|
386
|
+
const handleRemindLater = () => {
|
|
387
|
+
setActionTaken('✅ Você será lembrado mais tarde');
|
|
388
|
+
setIsOpen(false);
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
const handleDontShowAgain = () => {
|
|
392
|
+
setActionTaken('✅ Não será mostrado novamente');
|
|
393
|
+
setIsOpen(false);
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
return (
|
|
397
|
+
<View style={{ padding: 20 }}>
|
|
398
|
+
<Button
|
|
399
|
+
label="Reproduzir Imagem Exata"
|
|
400
|
+
onPress={() => setIsOpen(true)}
|
|
401
|
+
/>
|
|
402
|
+
|
|
403
|
+
<BottomSheet
|
|
404
|
+
{...args}
|
|
405
|
+
isOpen={isOpen}
|
|
406
|
+
setIsOpen={setIsOpen}
|
|
407
|
+
showHeader={true}
|
|
408
|
+
title=""
|
|
409
|
+
>
|
|
410
|
+
<ActionButtons
|
|
411
|
+
onRemindLater={handleRemindLater}
|
|
412
|
+
onDontShowAgain={handleDontShowAgain}
|
|
413
|
+
/>
|
|
414
|
+
</BottomSheet>
|
|
415
|
+
|
|
416
|
+
{actionTaken !== '' && (
|
|
417
|
+
<View style={{
|
|
418
|
+
marginTop: 16,
|
|
419
|
+
padding: 16,
|
|
420
|
+
backgroundColor: '#E8F5E8',
|
|
421
|
+
borderRadius: 8,
|
|
422
|
+
borderLeftWidth: 4,
|
|
423
|
+
borderLeftColor: '#28A745'
|
|
424
|
+
}}>
|
|
425
|
+
<Text style={{ fontSize: 14, color: '#155724', fontWeight: '600' }}>
|
|
426
|
+
{actionTaken}
|
|
427
|
+
</Text>
|
|
428
|
+
</View>
|
|
429
|
+
)}
|
|
430
|
+
</View>
|
|
431
|
+
);
|
|
432
|
+
},
|
|
433
|
+
args: {
|
|
434
|
+
showHeader: true,
|
|
435
|
+
},
|
|
436
|
+
parameters: {
|
|
437
|
+
docs: {
|
|
438
|
+
description: {
|
|
439
|
+
story: "Reprodução exata da imagem anexada: BottomSheet simples com apenas o botão de fechar e dois botões de ação na parte inferior.",
|
|
440
|
+
},
|
|
441
|
+
},
|
|
442
|
+
},
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
// ================ ESTADOS BÁSICOS ================
|
|
446
|
+
|
|
447
|
+
export const Padrao = {
|
|
448
|
+
render: (props) => {
|
|
449
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
450
|
+
|
|
451
|
+
return (
|
|
452
|
+
<View>
|
|
453
|
+
<Button
|
|
454
|
+
label="Abrir BottomSheet"
|
|
455
|
+
onPress={() => setIsOpen(true)}
|
|
456
|
+
/>
|
|
457
|
+
|
|
458
|
+
<BottomSheet
|
|
459
|
+
{...props}
|
|
460
|
+
isOpen={isOpen}
|
|
461
|
+
setIsOpen={setIsOpen}
|
|
462
|
+
/>
|
|
463
|
+
</View>
|
|
464
|
+
);
|
|
465
|
+
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
// Estado Padrão
|
|
470
|
+
export const Default = {
|
|
471
|
+
render: Template,
|
|
472
|
+
args: {
|
|
473
|
+
title: "Selecione uma opção",
|
|
474
|
+
options: ["Opção 1", "Opção 2", "Opção 3"],
|
|
475
|
+
supportText: "Estado padrão, usado quando o item está disponível, mas sem interação no momento.",
|
|
476
|
+
},
|
|
477
|
+
parameters: {
|
|
478
|
+
docs: {
|
|
479
|
+
description: {
|
|
480
|
+
story: "Estado padrão do BottomSheet, usado quando o item está disponível mas sem interação no momento.",
|
|
481
|
+
},
|
|
482
|
+
},
|
|
483
|
+
},
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
// ================ NOME DA EMPRESA ================
|
|
487
|
+
|
|
488
|
+
export const NomeEmpresa = {
|
|
489
|
+
render: (args) => {
|
|
490
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
491
|
+
|
|
492
|
+
return (
|
|
493
|
+
<View>
|
|
494
|
+
<Button
|
|
495
|
+
label="Abrir NomeEmpresa"
|
|
496
|
+
onPress={() => setIsOpen(true)}
|
|
497
|
+
/>
|
|
498
|
+
|
|
499
|
+
<BottomSheetNomeEmpresa
|
|
500
|
+
{...args}
|
|
501
|
+
isOpen={isOpen}
|
|
502
|
+
setIsOpen={setIsOpen}
|
|
503
|
+
/>
|
|
504
|
+
</View>
|
|
505
|
+
);
|
|
506
|
+
},
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
// ================== VARIAÇÕES (MOCK FIGMA) ==================
|
|
510
|
+
|
|
511
|
+
export const DoisBotoesVertical = {
|
|
512
|
+
render: () => <BottomSheetMock showIcon={true} showSlot={true} actions="two-vertical" />,
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
export const SemSlot = {
|
|
516
|
+
render: () => <BottomSheetMock showIcon={true} showSlot={false} actions="two-vertical" />,
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
export const UmBotao = {
|
|
520
|
+
render: () => <BottomSheetMock showIcon={true} showSlot={true} actions="one" />,
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
export const DoisBotoesHorizontal = {
|
|
524
|
+
render: () => <BottomSheetMock showIcon={true} showSlot={true} actions="two-horizontal" />,
|
|
525
|
+
};
|
|
526
|
+
|
|
527
|
+
export const SemBotoes = {
|
|
528
|
+
render: () => <BottomSheetMock showIcon={true} showSlot={true} actions="none" />,
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
export const SemIcone = {
|
|
532
|
+
render: () => <BottomSheetMock showIcon={false} showSlot={true} actions="two-vertical" />,
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
export const AlinhadoAoCentro = {
|
|
536
|
+
name: 'Alinhado ao centro',
|
|
537
|
+
render: () => (
|
|
538
|
+
<BottomSheetMock showIcon={true} showSlot={true} actions="two-vertical" headerAlignment="center" />
|
|
539
|
+
),
|
|
540
|
+
};
|
|
541
|
+
|