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
|
@@ -58,15 +58,15 @@ showPercentage = true, style }) => {
|
|
|
58
58
|
const endCapX = centerX + radius * Math.cos(progressAngle);
|
|
59
59
|
const endCapY = centerY + radius * Math.sin(progressAngle);
|
|
60
60
|
const endCapRotation = (progressAngle + Math.PI / 2) * (180 / Math.PI);
|
|
61
|
-
return (<View style={[styles.container, { width: size, height: size }, style]}>
|
|
62
|
-
<Svg width={size} height={size} style={styles.svg}>
|
|
63
|
-
{/* Círculo de fundo */}
|
|
64
|
-
<Circle cx={size / 2} cy={size / 2} r={radius} stroke={donutBg} strokeWidth={backgroundStrokeWidth} fill="transparent"/>
|
|
65
|
-
{/* Círculo de progresso */}
|
|
66
|
-
<Circle cx={size / 2} cy={size / 2} r={radius} stroke={donutColor} strokeWidth={progressStrokeWidth} fill="transparent" strokeDasharray={circumference} strokeDashoffset={strokeDashoffset} strokeLinecap="butt" transform={`rotate(-90 ${size / 2} ${size / 2})`}/>
|
|
67
|
-
</Svg>
|
|
68
|
-
{/* Caps personalizados */}
|
|
69
|
-
{maxProgress > 0 && (<>
|
|
61
|
+
return (<View style={[styles.container, { width: size, height: size }, style]}>
|
|
62
|
+
<Svg width={size} height={size} style={styles.svg}>
|
|
63
|
+
{/* Círculo de fundo */}
|
|
64
|
+
<Circle cx={size / 2} cy={size / 2} r={radius} stroke={donutBg} strokeWidth={backgroundStrokeWidth} fill="transparent"/>
|
|
65
|
+
{/* Círculo de progresso */}
|
|
66
|
+
<Circle cx={size / 2} cy={size / 2} r={radius} stroke={donutColor} strokeWidth={progressStrokeWidth} fill="transparent" strokeDasharray={circumference} strokeDashoffset={strokeDashoffset} strokeLinecap="butt" transform={`rotate(-90 ${size / 2} ${size / 2})`}/>
|
|
67
|
+
</Svg>
|
|
68
|
+
{/* Caps personalizados */}
|
|
69
|
+
{maxProgress > 0 && (<>
|
|
70
70
|
<View style={[
|
|
71
71
|
styles.progressCap,
|
|
72
72
|
{
|
|
@@ -78,7 +78,7 @@ showPercentage = true, style }) => {
|
|
|
78
78
|
left: startCapX - progressStrokeWidth / 2,
|
|
79
79
|
top: startCapY - progressStrokeWidth / 2,
|
|
80
80
|
}
|
|
81
|
-
]}/>
|
|
81
|
+
]}/>
|
|
82
82
|
{maxProgress < 100 && (<View style={[
|
|
83
83
|
styles.progressCap,
|
|
84
84
|
{
|
|
@@ -91,23 +91,23 @@ showPercentage = true, style }) => {
|
|
|
91
91
|
top: endCapY - progressStrokeWidth / 2,
|
|
92
92
|
transform: [{ rotate: `${endCapRotation}deg` }],
|
|
93
93
|
}
|
|
94
|
-
]}/>)}
|
|
95
|
-
</>)}
|
|
96
|
-
{/* Texto da porcentagem no centro */}
|
|
97
|
-
{showPercentage && (<View style={styles.centerContent}>
|
|
98
|
-
<View style={styles.percentageContainer}>
|
|
94
|
+
]}/>)}
|
|
95
|
+
</>)}
|
|
96
|
+
{/* Texto da porcentagem no centro */}
|
|
97
|
+
{showPercentage && (<View style={styles.centerContent}>
|
|
98
|
+
<View style={styles.percentageContainer}>
|
|
99
99
|
<Text style={[styles.percentageNumber, {
|
|
100
100
|
color: '#1B244B',
|
|
101
101
|
fontSize: size * 0.25,
|
|
102
102
|
lineHeight: size * 0.25
|
|
103
|
-
}]}> {Math.round(validProgress)} </Text>
|
|
103
|
+
}]}> {Math.round(validProgress)} </Text>
|
|
104
104
|
<Text style={[styles.percentageSymbol, {
|
|
105
105
|
color: '#1B244B',
|
|
106
106
|
fontSize: size * 0.14,
|
|
107
107
|
lineHeight: size * 0.13
|
|
108
|
-
}]}> % </Text>
|
|
109
|
-
</View>
|
|
110
|
-
</View>)}
|
|
108
|
+
}]}> % </Text>
|
|
109
|
+
</View>
|
|
110
|
+
</View>)}
|
|
111
111
|
</View>);
|
|
112
112
|
};
|
|
113
113
|
const styles = StyleSheet.create({
|
|
@@ -51,8 +51,8 @@ const CommitmentsDropdownContent = ({ onPress, open, onArrowPress }) => (<View s
|
|
|
51
51
|
alignItems: 'center',
|
|
52
52
|
minWidth: 380,
|
|
53
53
|
maxWidth: 400
|
|
54
|
-
}}>
|
|
55
|
-
{/* Ícone calendário */}
|
|
54
|
+
}}>
|
|
55
|
+
{/* Ícone calendário */}
|
|
56
56
|
<View style={{
|
|
57
57
|
backgroundColor: '#3F67FC',
|
|
58
58
|
borderRadius: 8,
|
|
@@ -61,10 +61,10 @@ const CommitmentsDropdownContent = ({ onPress, open, onArrowPress }) => (<View s
|
|
|
61
61
|
alignItems: 'center',
|
|
62
62
|
justifyContent: 'center',
|
|
63
63
|
marginRight: 16
|
|
64
|
-
}}>
|
|
65
|
-
<Icon name="calendar-check-line" size={24} color="#fff"/>
|
|
66
|
-
</View>
|
|
67
|
-
<TouchableOpacity style={{ flex: 1 }} activeOpacity={0.85} onPress={onPress}>
|
|
64
|
+
}}>
|
|
65
|
+
<Icon name="calendar-check-line" size={24} color="#fff"/>
|
|
66
|
+
</View>
|
|
67
|
+
<TouchableOpacity style={{ flex: 1 }} activeOpacity={0.85} onPress={onPress}>
|
|
68
68
|
<Text style={{
|
|
69
69
|
fontWeight: '700',
|
|
70
70
|
fontSize: 16,
|
|
@@ -72,7 +72,7 @@ const CommitmentsDropdownContent = ({ onPress, open, onArrowPress }) => (<View s
|
|
|
72
72
|
fontFamily: fontFamily.bold,
|
|
73
73
|
lineHeight: 24,
|
|
74
74
|
letterSpacing: 0
|
|
75
|
-
}}>Meus compromissos</Text>
|
|
75
|
+
}}>Meus compromissos</Text>
|
|
76
76
|
<Text style={{
|
|
77
77
|
fontFamily: fontFamily.regular,
|
|
78
78
|
fontWeight: '400',
|
|
@@ -82,12 +82,12 @@ const CommitmentsDropdownContent = ({ onPress, open, onArrowPress }) => (<View s
|
|
|
82
82
|
lineHeight: 20,
|
|
83
83
|
letterSpacing: 0,
|
|
84
84
|
textAlign: 'left'
|
|
85
|
-
}}>3 compromissos nos próximos 15 dias</Text>
|
|
86
|
-
</TouchableOpacity>
|
|
87
|
-
{/* Ícone seta, clicável para abrir/fechar */}
|
|
88
|
-
<TouchableOpacity onPress={onArrowPress} style={{ marginLeft: 8 }}>
|
|
89
|
-
<Icon name={open ? 'arrow-up-s-line' : 'arrow-down-s-line'} size={24} color="#222"/>
|
|
90
|
-
</TouchableOpacity>
|
|
85
|
+
}}>3 compromissos nos próximos 15 dias</Text>
|
|
86
|
+
</TouchableOpacity>
|
|
87
|
+
{/* Ícone seta, clicável para abrir/fechar */}
|
|
88
|
+
<TouchableOpacity onPress={onArrowPress} style={{ marginLeft: 8 }}>
|
|
89
|
+
<Icon name={open ? 'arrow-up-s-line' : 'arrow-down-s-line'} size={24} color="#222"/>
|
|
90
|
+
</TouchableOpacity>
|
|
91
91
|
</View>);
|
|
92
92
|
export const DropdownCommitments = () => {
|
|
93
93
|
const [open, setOpen] = useState(false);
|
|
@@ -115,8 +115,8 @@ export const DropdownCommitments = () => {
|
|
|
115
115
|
}),
|
|
116
116
|
opacity: animValue,
|
|
117
117
|
};
|
|
118
|
-
return (<View style={{ alignItems: 'flex-start', position: 'relative' }}>
|
|
119
|
-
<CommitmentsDropdownContent onPress={() => setOpen(true)} open={open} onArrowPress={() => setOpen(o => !o)}/>
|
|
118
|
+
return (<View style={{ alignItems: 'flex-start', position: 'relative' }}>
|
|
119
|
+
<CommitmentsDropdownContent onPress={() => setOpen(true)} open={open} onArrowPress={() => setOpen(o => !o)}/>
|
|
120
120
|
<Animated.View style={[{
|
|
121
121
|
overflow: 'hidden',
|
|
122
122
|
backgroundColor: '#E3E9FF',
|
|
@@ -126,13 +126,13 @@ export const DropdownCommitments = () => {
|
|
|
126
126
|
top: 60,
|
|
127
127
|
left: 0,
|
|
128
128
|
zIndex: 99,
|
|
129
|
-
}, animatedStyle]}>
|
|
130
|
-
<ScrollView horizontal showsHorizontalScrollIndicator={false} pagingEnabled style={{ flexGrow: 0, paddingVertical: 32 }} contentContainerStyle={{ alignItems: 'center', paddingHorizontal: 0 }}>
|
|
131
|
-
{commitmentsData.map((item, idx) => (<View key={idx} style={{ width: 350, marginRight: 16, marginLeft: 8, backgroundColor: '#E3E9FF', borderBottomRightRadius: 16 }}>
|
|
132
|
-
<ContentCard {...item}/>
|
|
133
|
-
</View>))}
|
|
134
|
-
</ScrollView>
|
|
135
|
-
</Animated.View>
|
|
129
|
+
}, animatedStyle]}>
|
|
130
|
+
<ScrollView horizontal showsHorizontalScrollIndicator={false} pagingEnabled style={{ flexGrow: 0, paddingVertical: 32 }} contentContainerStyle={{ alignItems: 'center', paddingHorizontal: 0 }}>
|
|
131
|
+
{commitmentsData.map((item, idx) => (<View key={idx} style={{ width: 350, marginRight: 16, marginLeft: 8, backgroundColor: '#E3E9FF', borderBottomRightRadius: 16 }}>
|
|
132
|
+
<ContentCard {...item}/>
|
|
133
|
+
</View>))}
|
|
134
|
+
</ScrollView>
|
|
135
|
+
</Animated.View>
|
|
136
136
|
</View>);
|
|
137
137
|
};
|
|
138
138
|
const { height: screenHeight } = Dimensions.get('window');
|
|
@@ -192,14 +192,14 @@ const Dropdown = ({ title, onSelect, options = [], withSeparator = false, isOpen
|
|
|
192
192
|
// Chamar onPress após um pequeno delay para mostrar o efeito
|
|
193
193
|
setTimeout(() => onPress(item), 150);
|
|
194
194
|
};
|
|
195
|
-
return (<TouchableWithoutFeedback onPress={handlePress}>
|
|
195
|
+
return (<TouchableWithoutFeedback onPress={handlePress}>
|
|
196
196
|
<View style={[
|
|
197
197
|
styles.optionItem,
|
|
198
198
|
withSeparator && index !== options.length - 1 && styles.optionItemWithSeparator
|
|
199
|
-
]}>
|
|
200
|
-
<Text style={styles.optionText}>{item.label || item}</Text>
|
|
201
|
-
|
|
202
|
-
{/* Renderizar ripples */}
|
|
199
|
+
]}>
|
|
200
|
+
<Text style={styles.optionText}>{item.label || item}</Text>
|
|
201
|
+
|
|
202
|
+
{/* Renderizar ripples */}
|
|
203
203
|
{ripples.map((ripple) => (<Animated.View key={ripple.id} style={[
|
|
204
204
|
styles.ripple,
|
|
205
205
|
{
|
|
@@ -208,8 +208,8 @@ const Dropdown = ({ title, onSelect, options = [], withSeparator = false, isOpen
|
|
|
208
208
|
transform: [{ scale: ripple.scale }],
|
|
209
209
|
opacity: ripple.opacity,
|
|
210
210
|
}
|
|
211
|
-
]}/>))}
|
|
212
|
-
</View>
|
|
211
|
+
]}/>))}
|
|
212
|
+
</View>
|
|
213
213
|
</TouchableWithoutFeedback>);
|
|
214
214
|
};
|
|
215
215
|
// Picker Item com estilos dinâmicos baseados na distância do centro
|
|
@@ -226,8 +226,8 @@ const Dropdown = ({ title, onSelect, options = [], withSeparator = false, isOpen
|
|
|
226
226
|
return (<TouchableOpacity style={styles.pickerItem} onPress={() => {
|
|
227
227
|
setSelectedIndex(index);
|
|
228
228
|
handleSelect(item);
|
|
229
|
-
}} activeOpacity={0.7}>
|
|
230
|
-
<Text style={[styles.pickerItemText, getTextStyle()]}>{item.label || item}</Text>
|
|
229
|
+
}} activeOpacity={0.7}>
|
|
230
|
+
<Text style={[styles.pickerItemText, getTextStyle()]}>{item.label || item}</Text>
|
|
231
231
|
</TouchableOpacity>);
|
|
232
232
|
};
|
|
233
233
|
const RenderItem = ({ item, index }) => {
|
|
@@ -246,7 +246,7 @@ const Dropdown = ({ title, onSelect, options = [], withSeparator = false, isOpen
|
|
|
246
246
|
// Renderizar conteúdo baseado no modo
|
|
247
247
|
const renderContent = () => {
|
|
248
248
|
if (isPicker) {
|
|
249
|
-
return (<View style={styles.pickerContainer}>
|
|
249
|
+
return (<View style={styles.pickerContainer}>
|
|
250
250
|
<ScrollView ref={scrollViewRef} style={styles.pickerScrollView} contentContainerStyle={{
|
|
251
251
|
paddingVertical: ITEM_HEIGHT * 1
|
|
252
252
|
}} showsVerticalScrollIndicator={false} snapToInterval={ITEM_HEIGHT} decelerationRate="fast" onMomentumScrollEnd={(e) => {
|
|
@@ -257,39 +257,39 @@ const Dropdown = ({ title, onSelect, options = [], withSeparator = false, isOpen
|
|
|
257
257
|
if (scrollViewRef.current && selectedIndex >= 0) {
|
|
258
258
|
scrollViewRef.current.scrollTo({ y: selectedIndex * ITEM_HEIGHT, animated: false });
|
|
259
259
|
}
|
|
260
|
-
}}>
|
|
261
|
-
{options.map((item, index) => (<PickerItem key={index.toString()} item={item} index={index}/>))}
|
|
262
|
-
</ScrollView>
|
|
260
|
+
}}>
|
|
261
|
+
{options.map((item, index) => (<PickerItem key={index.toString()} item={item} index={index}/>))}
|
|
262
|
+
</ScrollView>
|
|
263
263
|
</View>);
|
|
264
264
|
}
|
|
265
|
-
return (<ScrollView style={styles.optionsList} contentContainerStyle={{ paddingBottom: 8, gap: itemGap || 0 }} showsVerticalScrollIndicator={false} bounces={false}>
|
|
266
|
-
{options.map((item, index) => (<RenderItem key={index.toString()} item={item} index={index}/>))}
|
|
265
|
+
return (<ScrollView style={styles.optionsList} contentContainerStyle={{ paddingBottom: 8, gap: itemGap || 0 }} showsVerticalScrollIndicator={false} bounces={false}>
|
|
266
|
+
{options.map((item, index) => (<RenderItem key={index.toString()} item={item} index={index}/>))}
|
|
267
267
|
</ScrollView>);
|
|
268
268
|
};
|
|
269
|
-
return (<View style={styles.wrapper}>
|
|
270
|
-
<Modal visible={isOpen} transparent={true} animationType="fade" onRequestClose={() => setIsOpen(false)}>
|
|
271
|
-
<View style={styles.overlay}>
|
|
272
|
-
{/* Área clicável separada para fechar o modal */}
|
|
273
|
-
<TouchableOpacity style={styles.overlayTouchable} activeOpacity={1} onPress={() => setIsOpen(false)}/>
|
|
274
|
-
|
|
275
|
-
{/* Conteúdo do modal - não propaga toque para o overlay */}
|
|
276
|
-
<View style={styles.modalContainer}>
|
|
277
|
-
{showCloseButton ? (<>
|
|
278
|
-
<View style={styles.modalHeaderWithClose}>
|
|
279
|
-
<TouchableOpacity style={styles.closeButton} onPress={() => setIsOpen(false)}>
|
|
280
|
-
<Icon name="close-line" size={24} color="#666666"/>
|
|
281
|
-
</TouchableOpacity>
|
|
282
|
-
</View>
|
|
283
|
-
<View style={styles.titleContainerCentered}>
|
|
284
|
-
<Text style={styles.modalTitle}>{title || "Título"}</Text>
|
|
285
|
-
</View>
|
|
286
|
-
</>) : (<View style={styles.modalHeader}>
|
|
287
|
-
<Text style={styles.modalTitle}>{title || "Título"}</Text>
|
|
288
|
-
</View>)}
|
|
289
|
-
|
|
290
|
-
{renderContent()}
|
|
291
|
-
|
|
292
|
-
{(hasCheckboxes || isPicker) && (<View style={styles.buttonContainer}>
|
|
269
|
+
return (<View style={styles.wrapper}>
|
|
270
|
+
<Modal visible={isOpen} transparent={true} animationType="fade" onRequestClose={() => setIsOpen(false)}>
|
|
271
|
+
<View style={styles.overlay}>
|
|
272
|
+
{/* Área clicável separada para fechar o modal */}
|
|
273
|
+
<TouchableOpacity style={styles.overlayTouchable} activeOpacity={1} onPress={() => setIsOpen(false)}/>
|
|
274
|
+
|
|
275
|
+
{/* Conteúdo do modal - não propaga toque para o overlay */}
|
|
276
|
+
<View style={styles.modalContainer}>
|
|
277
|
+
{showCloseButton ? (<>
|
|
278
|
+
<View style={styles.modalHeaderWithClose}>
|
|
279
|
+
<TouchableOpacity style={styles.closeButton} onPress={() => setIsOpen(false)}>
|
|
280
|
+
<Icon name="close-line" size={24} color="#666666"/>
|
|
281
|
+
</TouchableOpacity>
|
|
282
|
+
</View>
|
|
283
|
+
<View style={styles.titleContainerCentered}>
|
|
284
|
+
<Text style={styles.modalTitle}>{title || "Título"}</Text>
|
|
285
|
+
</View>
|
|
286
|
+
</>) : (<View style={styles.modalHeader}>
|
|
287
|
+
<Text style={styles.modalTitle}>{title || "Título"}</Text>
|
|
288
|
+
</View>)}
|
|
289
|
+
|
|
290
|
+
{renderContent()}
|
|
291
|
+
|
|
292
|
+
{(hasCheckboxes || isPicker) && (<View style={styles.buttonContainer}>
|
|
293
293
|
<Button label={confirmButtonLabel || "Confirmar"} onPress={() => {
|
|
294
294
|
if (isPicker) {
|
|
295
295
|
// Para picker, enviar o item selecionado pelo índice
|
|
@@ -308,11 +308,11 @@ const Dropdown = ({ title, onSelect, options = [], withSeparator = false, isOpen
|
|
|
308
308
|
onConfirm(selectedItems);
|
|
309
309
|
}
|
|
310
310
|
setIsOpen(false);
|
|
311
|
-
}} size="large" variant="filled" expand/>
|
|
312
|
-
</View>)}
|
|
313
|
-
</View>
|
|
314
|
-
</View>
|
|
315
|
-
</Modal>
|
|
311
|
+
}} size="large" variant="filled" expand/>
|
|
312
|
+
</View>)}
|
|
313
|
+
</View>
|
|
314
|
+
</View>
|
|
315
|
+
</Modal>
|
|
316
316
|
</View>);
|
|
317
317
|
};
|
|
318
318
|
const styles = StyleSheet.create({
|
|
@@ -14,7 +14,7 @@ const CommitmentsDropdownContent = ({ onPress, open, onArrowPress, total }) => (
|
|
|
14
14
|
height: 104,
|
|
15
15
|
minWidth: undefined,
|
|
16
16
|
maxWidth: undefined,
|
|
17
|
-
}}>
|
|
17
|
+
}}>
|
|
18
18
|
<View style={{
|
|
19
19
|
backgroundColor: '#3F67FC',
|
|
20
20
|
borderRadius: 8,
|
|
@@ -23,10 +23,10 @@ const CommitmentsDropdownContent = ({ onPress, open, onArrowPress, total }) => (
|
|
|
23
23
|
alignItems: 'center',
|
|
24
24
|
justifyContent: 'center',
|
|
25
25
|
marginRight: 16
|
|
26
|
-
}}>
|
|
27
|
-
<Icon name="calendar-check-line" size={24} color="#fff"/>
|
|
28
|
-
</View>
|
|
29
|
-
<TouchableOpacity style={{ flex: 1 }} activeOpacity={0.85} onPress={onPress}>
|
|
26
|
+
}}>
|
|
27
|
+
<Icon name="calendar-check-line" size={24} color="#fff"/>
|
|
28
|
+
</View>
|
|
29
|
+
<TouchableOpacity style={{ flex: 1 }} activeOpacity={0.85} onPress={onPress}>
|
|
30
30
|
<Text style={{
|
|
31
31
|
fontWeight: '700',
|
|
32
32
|
fontSize: 16,
|
|
@@ -34,7 +34,7 @@ const CommitmentsDropdownContent = ({ onPress, open, onArrowPress, total }) => (
|
|
|
34
34
|
fontFamily: fontFamily.bold,
|
|
35
35
|
lineHeight: 24,
|
|
36
36
|
letterSpacing: 0
|
|
37
|
-
}}>Meus compromissos</Text>
|
|
37
|
+
}}>Meus compromissos</Text>
|
|
38
38
|
<Text style={{
|
|
39
39
|
fontFamily: fontFamily.regular,
|
|
40
40
|
fontWeight: '400',
|
|
@@ -44,11 +44,11 @@ const CommitmentsDropdownContent = ({ onPress, open, onArrowPress, total }) => (
|
|
|
44
44
|
lineHeight: 20,
|
|
45
45
|
letterSpacing: 0,
|
|
46
46
|
textAlign: 'left'
|
|
47
|
-
}}>{total} compromisso{total !== 1 ? 's' : ''} nos próximos 15 dias</Text>
|
|
48
|
-
</TouchableOpacity>
|
|
49
|
-
<TouchableOpacity onPress={onArrowPress} style={{ marginLeft: 8 }}>
|
|
50
|
-
<Icon name={open ? 'arrow-up-s-line' : 'arrow-down-s-line'} size={24} color="#222"/>
|
|
51
|
-
</TouchableOpacity>
|
|
47
|
+
}}>{total} compromisso{total !== 1 ? 's' : ''} nos próximos 15 dias</Text>
|
|
48
|
+
</TouchableOpacity>
|
|
49
|
+
<TouchableOpacity onPress={onArrowPress} style={{ marginLeft: 8 }}>
|
|
50
|
+
<Icon name={open ? 'arrow-up-s-line' : 'arrow-down-s-line'} size={24} color="#222"/>
|
|
51
|
+
</TouchableOpacity>
|
|
52
52
|
</View>);
|
|
53
53
|
export const DropdownCommitments = ({ commitmentsData = [], onOpen }) => {
|
|
54
54
|
const [open, setOpen] = useState(false);
|
|
@@ -76,7 +76,7 @@ export const DropdownCommitments = ({ commitmentsData = [], onOpen }) => {
|
|
|
76
76
|
}),
|
|
77
77
|
opacity: animValue,
|
|
78
78
|
};
|
|
79
|
-
return (<View style={{ alignSelf: 'stretch', width: '100%', position: 'relative' }}>
|
|
79
|
+
return (<View style={{ alignSelf: 'stretch', width: '100%', position: 'relative' }}>
|
|
80
80
|
<CommitmentsDropdownContent onPress={() => {
|
|
81
81
|
setOpen(true);
|
|
82
82
|
if (onOpen)
|
|
@@ -85,14 +85,14 @@ export const DropdownCommitments = ({ commitmentsData = [], onOpen }) => {
|
|
|
85
85
|
setOpen(o => !o);
|
|
86
86
|
if (onOpen)
|
|
87
87
|
onOpen();
|
|
88
|
-
}} total={commitmentsData.length}/>
|
|
88
|
+
}} total={commitmentsData.length}/>
|
|
89
89
|
<Animated.View style={[{
|
|
90
90
|
overflow: 'hidden',
|
|
91
91
|
backgroundColor: '#E3E9FF',
|
|
92
92
|
borderBottomRightRadius: open ? 0 : 16,
|
|
93
93
|
width: '100%',
|
|
94
94
|
position: 'relative',
|
|
95
|
-
}, animatedStyle]}>
|
|
95
|
+
}, animatedStyle]}>
|
|
96
96
|
{commitmentsData.length === 0 ? (<View style={{
|
|
97
97
|
flex: 1,
|
|
98
98
|
alignItems: 'center',
|
|
@@ -100,22 +100,22 @@ export const DropdownCommitments = ({ commitmentsData = [], onOpen }) => {
|
|
|
100
100
|
width: '100%',
|
|
101
101
|
height: '100%',
|
|
102
102
|
minHeight: 100, // garante altura mínima
|
|
103
|
-
}}>
|
|
104
|
-
<Text style={{ color: '#1B244B', fontSize: 16, fontWeight: '600', textAlign: 'center' }}>
|
|
105
|
-
Você não tem compromissos!
|
|
106
|
-
</Text>
|
|
107
|
-
</View>) : (<ScrollView horizontal showsHorizontalScrollIndicator={false} pagingEnabled={false} nestedScrollEnabled={true} style={{ flexGrow: 0, paddingVertical: 0, width: '100%' }} contentContainerStyle={{ alignItems: 'center', paddingHorizontal: 0 }}>
|
|
103
|
+
}}>
|
|
104
|
+
<Text style={{ color: '#1B244B', fontSize: 16, fontWeight: '600', textAlign: 'center' }}>
|
|
105
|
+
Você não tem compromissos!
|
|
106
|
+
</Text>
|
|
107
|
+
</View>) : (<ScrollView horizontal showsHorizontalScrollIndicator={false} pagingEnabled={false} nestedScrollEnabled={true} style={{ flexGrow: 0, paddingVertical: 0, width: '100%' }} contentContainerStyle={{ alignItems: 'center', paddingHorizontal: 0 }}>
|
|
108
108
|
{commitmentsData.map((item, idx) => (<View key={idx} style={{
|
|
109
109
|
width: screenWidth * 0.85,
|
|
110
110
|
marginLeft: 8,
|
|
111
111
|
marginRight: idx === commitmentsData.length - 1 ? 8 : 16,
|
|
112
112
|
backgroundColor: '#E3E9FF',
|
|
113
113
|
borderBottomRightRadius: 16
|
|
114
|
-
}}>
|
|
115
|
-
<ContentCard {...item}/>
|
|
116
|
-
</View>))}
|
|
117
|
-
</ScrollView>)}
|
|
118
|
-
</Animated.View>
|
|
114
|
+
}}>
|
|
115
|
+
<ContentCard {...item}/>
|
|
116
|
+
</View>))}
|
|
117
|
+
</ScrollView>)}
|
|
118
|
+
</Animated.View>
|
|
119
119
|
</View>);
|
|
120
120
|
};
|
|
121
121
|
export default DropdownCommitments;
|
|
@@ -20,25 +20,25 @@ const EmptySlot = ({ title = "Nada por aqui ainda", message, buttonText = "Busca
|
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
const themeStyles = getThemeStyles();
|
|
23
|
-
return (<View style={[styles.container, themeStyles.container]}>
|
|
24
|
-
<View style={styles.iconContainer}>
|
|
25
|
-
<Icon name={iconName} size={48} color="#687499"/>
|
|
26
|
-
</View>
|
|
27
|
-
|
|
28
|
-
<View style={styles.contentContainer}>
|
|
29
|
-
<Text style={[styles.title, themeStyles.title]}>
|
|
30
|
-
{title}
|
|
31
|
-
</Text>
|
|
32
|
-
|
|
33
|
-
{message && (<Text style={[styles.message, themeStyles.message]}>
|
|
34
|
-
{message}
|
|
35
|
-
</Text>)}
|
|
36
|
-
|
|
37
|
-
{showButton && buttonText && (<TouchableOpacity style={styles.button} onPress={onButtonPress} activeOpacity={0.8}>
|
|
38
|
-
<Text style={styles.buttonText}>{buttonText}</Text>
|
|
39
|
-
<Icon name="add-circle-line" size={16} color="#FFFFFF"/>
|
|
40
|
-
</TouchableOpacity>)}
|
|
41
|
-
</View>
|
|
23
|
+
return (<View style={[styles.container, themeStyles.container]}>
|
|
24
|
+
<View style={styles.iconContainer}>
|
|
25
|
+
<Icon name={iconName} size={48} color="#687499"/>
|
|
26
|
+
</View>
|
|
27
|
+
|
|
28
|
+
<View style={styles.contentContainer}>
|
|
29
|
+
<Text style={[styles.title, themeStyles.title]}>
|
|
30
|
+
{title}
|
|
31
|
+
</Text>
|
|
32
|
+
|
|
33
|
+
{message && (<Text style={[styles.message, themeStyles.message]}>
|
|
34
|
+
{message}
|
|
35
|
+
</Text>)}
|
|
36
|
+
|
|
37
|
+
{showButton && buttonText && (<TouchableOpacity style={styles.button} onPress={onButtonPress} activeOpacity={0.8}>
|
|
38
|
+
<Text style={styles.buttonText}>{buttonText}</Text>
|
|
39
|
+
<Icon name="add-circle-line" size={16} color="#FFFFFF"/>
|
|
40
|
+
</TouchableOpacity>)}
|
|
41
|
+
</View>
|
|
42
42
|
</View>);
|
|
43
43
|
};
|
|
44
44
|
const styles = StyleSheet.create({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/EventListItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAClE,OAAO,EAEL,SAAS,EAIT,SAAS,EACV,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/EventListItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAClE,OAAO,EAEL,SAAS,EAIT,SAAS,EACV,MAAM,cAAc,CAAC;AAQtB,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEhE,KAAK,aAAa,GAAG;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAuDF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAE3B;;;OAGG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC,qBAAqB,CAAC,EAAE,aAAa,CAAC;IAEtC,aAAa,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtE,iBAAiB,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAE1E,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,iBAAS,aAAa,CAAC,EACrB,IAAiB,EACjB,KAAiB,EACjB,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,gBAAuB,EACvB,OAAO,EACP,MAAM,EAEN,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,KAAK,EACL,WAAW,EACX,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,QAAQ,GACT,EAAE,kBAAkB,qBA4FpB;AAmSD,eAAe,aAAa,CAAC"}
|
|
@@ -4,6 +4,7 @@ import Icon from '../Icon';
|
|
|
4
4
|
import Tag from '../Tag';
|
|
5
5
|
import tokens from '../styles/tokens';
|
|
6
6
|
import { fontFamily } from '../utils/fontFamily';
|
|
7
|
+
import SEText from '../SEText';
|
|
7
8
|
const EventListItemContext = createContext(null);
|
|
8
9
|
const useEventListItem = () => {
|
|
9
10
|
const ctx = useContext(EventListItemContext);
|
|
@@ -58,49 +59,53 @@ time, duration, categoryLabel, categoryIconName, title, description, responsible
|
|
|
58
59
|
]);
|
|
59
60
|
// Se vier children, assume composition.
|
|
60
61
|
if (children) {
|
|
61
|
-
return (<EventListItemContext.Provider value={ctxValue}>
|
|
62
|
-
{kind === 'simple' ? (<View style={styles.simpleRoot}>{children}</View>) : (<View style={styles.row}>{children}</View>)}
|
|
62
|
+
return (<EventListItemContext.Provider value={ctxValue}>
|
|
63
|
+
{kind === 'simple' ? (<View style={styles.simpleRoot}>{children}</View>) : (<View style={styles.row}>{children}</View>)}
|
|
63
64
|
</EventListItemContext.Provider>);
|
|
64
65
|
}
|
|
65
66
|
// Render padrão (sem composition) — mantém ergonomia e também serve de exemplo.
|
|
66
67
|
if (kind === 'simple') {
|
|
67
|
-
return (<EventListItemContext.Provider value={ctxValue}>
|
|
68
|
-
<SimpleContainer>
|
|
69
|
-
{!!date && <Date>{date}</Date>}
|
|
70
|
-
<Label numberOfLines={1}>{label ?? ''}</Label>
|
|
71
|
-
<TrailingIcon />
|
|
72
|
-
</SimpleContainer>
|
|
68
|
+
return (<EventListItemContext.Provider value={ctxValue}>
|
|
69
|
+
<SimpleContainer>
|
|
70
|
+
{!!date && <Date>{date}</Date>}
|
|
71
|
+
<Label numberOfLines={1}>{label ?? ''}</Label>
|
|
72
|
+
<TrailingIcon />
|
|
73
|
+
</SimpleContainer>
|
|
73
74
|
</EventListItemContext.Provider>);
|
|
74
75
|
}
|
|
75
|
-
return (<EventListItemContext.Provider value={ctxValue}>
|
|
76
|
-
<View style={styles.row}>
|
|
77
|
-
<TimeColumn time={time} duration={duration}/>
|
|
78
|
-
<AccentBar />
|
|
79
|
-
<Card>
|
|
80
|
-
<View style={styles.topRow}>
|
|
81
|
-
<Category iconName={categoryIconName}>
|
|
82
|
-
{categoryLabel ?? ''}
|
|
83
|
-
</Category>
|
|
84
|
-
<TrailingIcon />
|
|
85
|
-
</View>
|
|
86
|
-
|
|
87
|
-
{!!title && (<Title numberOfLines={1}>{title}</Title>)}
|
|
88
|
-
{!!description && (<Description numberOfLines={1}>{description}</Description>)}
|
|
89
|
-
{!!responsible && (<Description numberOfLines={1}>{responsible}</Description>)}
|
|
90
|
-
|
|
91
|
-
{!!tags?.length && (<
|
|
92
|
-
{tags.slice(0, 2).map((t, idx) => (<
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
76
|
+
return (<EventListItemContext.Provider value={ctxValue}>
|
|
77
|
+
<View style={styles.row}>
|
|
78
|
+
<TimeColumn time={time} duration={duration}/>
|
|
79
|
+
<AccentBar />
|
|
80
|
+
<Card>
|
|
81
|
+
<View style={styles.topRow}>
|
|
82
|
+
<Category iconName={categoryIconName}>
|
|
83
|
+
{categoryLabel ?? ''}
|
|
84
|
+
</Category>
|
|
85
|
+
<TrailingIcon />
|
|
86
|
+
</View>
|
|
87
|
+
|
|
88
|
+
{!!title && (<Title numberOfLines={1}>{title}</Title>)}
|
|
89
|
+
{!!description && (<Description numberOfLines={1}>{description}</Description>)}
|
|
90
|
+
{!!responsible && (<Description numberOfLines={1}>{responsible}</Description>)}
|
|
91
|
+
|
|
92
|
+
{!!tags?.length && (<View style={styles.tagsRow}>
|
|
93
|
+
{tags.slice(0, 2).map((t, idx) => (<View key={`${t}-${idx}`} style={styles.tag}>
|
|
94
|
+
<SEText bold style={styles.tagText}>
|
|
95
|
+
{t}
|
|
96
|
+
</SEText>
|
|
97
|
+
</View>))}
|
|
98
|
+
</View>)}
|
|
99
|
+
</Card>
|
|
100
|
+
</View>
|
|
96
101
|
</EventListItemContext.Provider>);
|
|
97
102
|
}
|
|
98
103
|
// =============================================================================
|
|
99
104
|
// Sub-componentes (Composition Pattern)
|
|
100
105
|
// =============================================================================
|
|
101
|
-
const TimeColumn = ({ time, duration }) => (<View style={styles.leftColumn}>
|
|
102
|
-
{!!time && <Text style={styles.time}>{time}</Text>}
|
|
103
|
-
{!!duration && <Text style={styles.duration}>{duration}</Text>}
|
|
106
|
+
const TimeColumn = ({ time, duration }) => (<View style={styles.leftColumn}>
|
|
107
|
+
{!!time && <Text style={styles.time}>{time}</Text>}
|
|
108
|
+
{!!duration && <Text style={styles.duration}>{duration}</Text>}
|
|
104
109
|
</View>);
|
|
105
110
|
const AccentBar = ({ style }) => {
|
|
106
111
|
const { state, accentBarStyles } = useEventListItem();
|
|
@@ -115,19 +120,19 @@ const Card = ({ children, style, }) => {
|
|
|
115
120
|
pickStyle(state, cardStyles),
|
|
116
121
|
pressed && cardStyles?.press,
|
|
117
122
|
style,
|
|
118
|
-
]}>
|
|
119
|
-
{children}
|
|
123
|
+
]}>
|
|
124
|
+
{children}
|
|
120
125
|
</Pressable>);
|
|
121
126
|
};
|
|
122
127
|
const Category = ({ children, iconName, style, }) => {
|
|
123
128
|
const { state, categoryColor, categoryIconColor } = useEventListItem();
|
|
124
129
|
const textColor = pickColor(state, categoryColor) ?? tokens.colors.text.brand;
|
|
125
130
|
const iconColor = pickColor(state, categoryIconColor) ?? textColor;
|
|
126
|
-
return (<View style={[styles.categoryRow, style]}>
|
|
127
|
-
{!!iconName && (<Icon name={iconName} size={18} color={iconColor} style={styles.categoryIcon}/>)}
|
|
128
|
-
<Text style={[styles.categoryLabel, { color: textColor }]} numberOfLines={1}>
|
|
129
|
-
{children ?? ''}
|
|
130
|
-
</Text>
|
|
131
|
+
return (<View style={[styles.categoryRow, style]}>
|
|
132
|
+
{!!iconName && (<Icon name={iconName} size={18} color={iconColor} style={styles.categoryIcon}/>)}
|
|
133
|
+
<Text style={[styles.categoryLabel, { color: textColor }]} numberOfLines={1}>
|
|
134
|
+
{children ?? ''}
|
|
135
|
+
</Text>
|
|
131
136
|
</View>);
|
|
132
137
|
};
|
|
133
138
|
const Title = (props) => <Text style={styles.title} {...props}/>;
|
|
@@ -145,8 +150,8 @@ const SimpleContainer = ({ children, style, }) => {
|
|
|
145
150
|
pickStyle(state, simpleContainerStyles),
|
|
146
151
|
pressed && simpleContainerStyles?.press,
|
|
147
152
|
style,
|
|
148
|
-
]}>
|
|
149
|
-
{children}
|
|
153
|
+
]}>
|
|
154
|
+
{children}
|
|
150
155
|
</Pressable>);
|
|
151
156
|
};
|
|
152
157
|
const Date = (props) => <Text style={styles.simpleDate} {...props}/>;
|
|
@@ -228,12 +233,25 @@ const styles = StyleSheet.create({
|
|
|
228
233
|
fontWeight: '400',
|
|
229
234
|
},
|
|
230
235
|
tagsRow: {
|
|
231
|
-
marginTop: 10,
|
|
232
236
|
flexDirection: 'row',
|
|
233
|
-
|
|
237
|
+
marginTop: 10,
|
|
234
238
|
},
|
|
235
239
|
tag: {
|
|
240
|
+
minWidth: 52,
|
|
236
241
|
height: 32,
|
|
242
|
+
borderWidth: 1,
|
|
243
|
+
borderColor: '#D7DDFA',
|
|
244
|
+
borderRadius: 16,
|
|
245
|
+
alignItems: 'center',
|
|
246
|
+
justifyContent: 'center',
|
|
247
|
+
marginRight: 8,
|
|
248
|
+
backgroundColor: '#FFFFFF',
|
|
249
|
+
paddingHorizontal: 14,
|
|
250
|
+
},
|
|
251
|
+
tagText: {
|
|
252
|
+
color: '#37416F',
|
|
253
|
+
fontSize: 13,
|
|
254
|
+
lineHeight: 17,
|
|
237
255
|
},
|
|
238
256
|
trailingPlaceholder: {
|
|
239
257
|
width: 20,
|