vpt-sebraeds 0.0.77 → 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 -291
- package/components/Datepicker/MonthSelector.jsx +323 -323
- package/components/Datepicker/TimeSelector.jsx +261 -261
- package/components/Datepicker/index.jsx +815 -801
- 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 -1075
- package/components/Header/HeaderV2.stories.jsx +1200 -1199
- package/components/Header/index.jsx +5 -5
- package/components/Header/v1/components/Context.jsx +32 -32
- package/components/Header/v1/components/Information.jsx +109 -109
- package/components/Header/v1/components/Shortcut.jsx +45 -45
- package/components/Header/v1/components/SwitchAccount.jsx +301 -301
- package/components/Header/v1/components/Variants.jsx +479 -479
- package/components/Header/v1/components/index.jsx +12 -12
- package/components/Header/v1/index.jsx +195 -195
- package/components/Header/v2/README.md +757 -757
- package/components/Header/v2/index.jsx +224 -223
- 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 -68
- package/components/Header/v2/parts/Shortcut.jsx +39 -39
- package/components/Header/v2/parts/SwitchAccount.jsx +381 -381
- package/components/Header/v2/parts/Variants.jsx +420 -420
- 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 +135 -126
- 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.js +14 -14
- package/dist/components/Header/v1/components/SwitchAccount.js +47 -47
- package/dist/components/Header/v1/components/Variants.js +83 -83
- package/dist/components/Header/v1/index.js +5 -5
- package/dist/components/Header/v2/index.js +6 -5
- 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.js +12 -12
- package/dist/components/Header/v2/parts/SwitchAccount.js +63 -63
- package/dist/components/Header/v2/parts/Variants.js +156 -156
- 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
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Sebrae
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Sebrae
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,225 +1,225 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img alt="Sebrae" src="https://upload.wikimedia.org/wikipedia/commons/thumb/d/d9/Sebrae.svg/2560px-Sebrae.svg.png" width="200" />
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
<h1 align="center">
|
|
6
|
-
Sebrae Design System - React Native
|
|
7
|
-
</h1>
|
|
8
|
-
|
|
9
|
-
<p align="center">
|
|
10
|
-
Design System em React Native para o projeto Sebrae Na Palma da Mão
|
|
11
|
-
</p>
|
|
12
|
-
|
|
13
|
-
## 📋 Sobre o Projeto
|
|
14
|
-
|
|
15
|
-
Este é o repositório do Design System em React Native desenvolvido para o projeto Sebrae Na Palma da Mão. O objetivo é fornecer uma biblioteca de componentes reutilizáveis que seguem os padrões visuais e de interação do Sebrae, garantindo consistência e eficiência no desenvolvimento do aplicativo principal.
|
|
16
|
-
|
|
17
|
-
## ✅ Requisitos
|
|
18
|
-
|
|
19
|
-
- Node.js >= 18 ([package.json](file:///Users/tegra/sebrae/storybook/dev/package.json#L107-L109))
|
|
20
|
-
- React 19 e React Native 0.79 (peer/dev deps)
|
|
21
|
-
- Yarn ou npm/pnpm instalado
|
|
22
|
-
- Xcode (iOS) e Android SDK/Java (Android)
|
|
23
|
-
|
|
24
|
-
## 🔧 Instalação
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
yarn
|
|
28
|
-
# ou
|
|
29
|
-
npm install
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## 🎨 Componentes Disponíveis
|
|
33
|
-
|
|
34
|
-
- Exportados via [src/index.ts](file:///Users/tegra/sebrae/storybook/dev/src/index.ts)
|
|
35
|
-
- Histórias em `*.stories.(jsx|tsx)` ao lado de cada componente
|
|
36
|
-
- Veja a lista completa em [components/](file:///Users/tegra/sebrae/storybook/dev/components) ou rode o Storybook
|
|
37
|
-
|
|
38
|
-
Exemplos de componentes:
|
|
39
|
-
|
|
40
|
-
- Accordion, Button, Checkbox, FilterTag, Input, Modal, Navbar, Pagination,
|
|
41
|
-
Datepicker, Dropdown, Card, Toast, Typography, SEIcon, SEText, e muitos outros.
|
|
42
|
-
|
|
43
|
-
## 🚀 Como Usar
|
|
44
|
-
|
|
45
|
-
1. **Instale as dependências** (acima).
|
|
46
|
-
|
|
47
|
-
2. **Execute o Storybook (nativo):**
|
|
48
|
-
|
|
49
|
-
Para iOS:
|
|
50
|
-
```bash
|
|
51
|
-
yarn storybook:ios
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Para Android:
|
|
55
|
-
```bash
|
|
56
|
-
yarn storybook:android
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
3. **Execute o Storybook (web):**
|
|
60
|
-
```bash
|
|
61
|
-
yarn storybook:web
|
|
62
|
-
# abre em http://localhost:6006
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
4. **Gerar histórias automaticamente (opcional):**
|
|
66
|
-
```bash
|
|
67
|
-
yarn storybook-generate
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
## 📚 Storybook
|
|
71
|
-
|
|
72
|
-
Cada componente possui sua própria história no Storybook, permitindo visualizar e testar diferentes estados e propriedades. As histórias estão localizadas junto aos componentes com o padrão de nomenclatura `*.stories.(jsx|tsx)`.
|
|
73
|
-
|
|
74
|
-
- Nativo: `storybook:ios` e `storybook:android`
|
|
75
|
-
- Web: `storybook:web` ([@storybook/react-native-web-vite](file:///Users/tegra/sebrae/storybook/dev/package.json#L80-L83))
|
|
76
|
-
|
|
77
|
-
## 🔗 Integração com o Projeto Principal
|
|
78
|
-
|
|
79
|
-
Este Design System é um artefato do projeto principal [Sebrae Na Palma da Mão], um aplicativo móvel que funciona como uma agência do Sebrae na palma da mão. O aplicativo principal inclui diversas funcionalidades como:
|
|
80
|
-
|
|
81
|
-
- Integração com redes sociais
|
|
82
|
-
- Recursos de geolocalização e mapas
|
|
83
|
-
- Funcionalidades de câmera e scanner QR Code
|
|
84
|
-
- Recursos de compartilhamento e calendário
|
|
85
|
-
- Suporte a chat e preview de links
|
|
86
|
-
- E muito mais
|
|
87
|
-
|
|
88
|
-
### Instalação do React Design System (via Git + branch)
|
|
89
|
-
|
|
90
|
-
Instale diretamente a partir do repositório Git (escolha a branch conforme sua necessidade: `main`, `develop`, `feature/...`).
|
|
91
|
-
|
|
92
|
-
- Repositório: `git@gitlab.sebrae.com.br:na/java/na-palma-da-mao/app-sebrae-react-ds.git`
|
|
93
|
-
|
|
94
|
-
Compatibilidade mínima:
|
|
95
|
-
- Node.js 18+ (recomendado 20+)
|
|
96
|
-
- React 18 ou 19
|
|
97
|
-
|
|
98
|
-
Comandos (SSH):
|
|
99
|
-
|
|
100
|
-
```bash
|
|
101
|
-
|
|
102
|
-
# yarn
|
|
103
|
-
yarn add git+ssh://git@gitlab.sebrae.com.br/na/java/na-palma-da-mao/app-sebrae-react-ds.git#develop
|
|
104
|
-
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
Outras branches:
|
|
108
|
-
|
|
109
|
-
```bash
|
|
110
|
-
# main
|
|
111
|
-
yarn add git+ssh://git@gitlab.sebrae.com.br/na/java/na-palma-da-mao/app-sebrae-react-ds.git#main
|
|
112
|
-
|
|
113
|
-
# develop
|
|
114
|
-
yarn add git+ssh://git@gitlab.sebrae.com.br/na/java/na-palma-da-mao/app-sebrae-react-ds.git#develop
|
|
115
|
-
|
|
116
|
-
# feature (com barra, use aspas)
|
|
117
|
-
yarn add "git+ssh://git@gitlab.sebrae.com.br/na/java/na-palma-da-mao/app-sebrae-react-ds.git#feature/minha-feature"
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
Via package.json:
|
|
121
|
-
|
|
122
|
-
```json
|
|
123
|
-
{
|
|
124
|
-
"dependencies": {
|
|
125
|
-
"vpt-sebraeds": "git+ssh://git@gitlab.sebrae.com.br/na/java/na-palma-da-mao/app-sebrae-react-ds.git#main"
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
Observação: nesta biblioteca, o campo "name" é `vpt-sebraeds`.
|
|
131
|
-
|
|
132
|
-
Dependências e pós-instalação:
|
|
133
|
-
- Instale todos os peerDependencies declarados pelo Design System (ex.: react, react-dom, bibliotecas de estilo/animação se aplicável). Verifique o `package.json` do repositório.
|
|
134
|
-
- Configure a fonte Nunito no app consumidor. Veja [FONTES_CONFIGURACAO.md](file:///Users/tegra/sebrae/storybook/dev/FONTES_CONFIGURACAO.md).
|
|
135
|
-
|
|
136
|
-
Exemplo de uso:
|
|
137
|
-
|
|
138
|
-
```tsx
|
|
139
|
-
import { Button } from 'vpt-sebraeds'
|
|
140
|
-
|
|
141
|
-
export function Exemplo() {
|
|
142
|
-
return <Button variant="primary">Confirmar</Button>
|
|
143
|
-
}
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
Troubleshooting (GitLab/SSH):
|
|
147
|
-
- Permission denied (publickey):
|
|
148
|
-
- Gere/adicione sua chave SSH ao GitLab (`ssh-keygen -t rsa`), inicie o agente (`eval \"$(ssh-agent -s)\"`) e `ssh-add ~/.ssh/id_rsa`.
|
|
149
|
-
- Teste: `ssh -T git@gitlab.sebrae.com.br`.
|
|
150
|
-
- Host key verification failed:
|
|
151
|
-
- Adicione o host: `ssh-keyscan -H gitlab.sebrae.com.br >> ~/.ssh/known_hosts`.
|
|
152
|
-
- Sem permissão ao repositório:
|
|
153
|
-
- Verifique se seu usuário/grupo possui acesso ao projeto no GitLab ou solicite um Deploy Key.
|
|
154
|
-
- Ambiente CI/CD:
|
|
155
|
-
- Configure a variável `SSH_PRIVATE_KEY` e injete-a no pipeline; adicione `known_hosts` do GitLab antes de `yarn install`.
|
|
156
|
-
- Alternativa HTTPS + Token Pessoal (quando SSH indisponível):
|
|
157
|
-
- `yarn add "https://oauth2:<PERSONAL_ACCESS_TOKEN>@gitlab.sebrae.com.br/na/java/na-palma-da-mao/app-sebrae-react-ds.git#main"`
|
|
158
|
-
- Mantenha o token fora do controle de versão e variáveis de ambiente seguras.
|
|
159
|
-
|
|
160
|
-
### Consumo dos componentes
|
|
161
|
-
|
|
162
|
-
Após publicar/compilar, importe os componentes diretamente do pacote (ou via path local no monorepo):
|
|
163
|
-
|
|
164
|
-
```tsx
|
|
165
|
-
import { Button, Modal, Typography } from 'vpt-sebraeds';
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
Os exports estão definidos em [src/index.ts](file:///Users/tegra/sebrae/storybook/dev/src/index.ts).
|
|
169
|
-
|
|
170
|
-
## 🧪 Testes e Qualidade
|
|
171
|
-
|
|
172
|
-
- Linter:
|
|
173
|
-
```bash
|
|
174
|
-
yarn lint
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
- Testes:
|
|
178
|
-
```bash
|
|
179
|
-
yarn test
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
## 🏗️ Build e Publicação
|
|
183
|
-
|
|
184
|
-
- Build TypeScript + cópia de assets:
|
|
185
|
-
```bash
|
|
186
|
-
yarn build
|
|
187
|
-
# tsc + [scripts/copy-assets.js](file:///Users/tegra/sebrae/storybook/dev/scripts/copy-assets.js)
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
- Build Android (release apk do app de Storybook):
|
|
191
|
-
```bash
|
|
192
|
-
yarn build-android
|
|
193
|
-
# [scripts/build-android.sh](file:///Users/tegra/sebrae/storybook/dev/scripts/build-android.sh)
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
- Publicação (pré-publish roda o build automaticamente):
|
|
197
|
-
```bash
|
|
198
|
-
yarn publish
|
|
199
|
-
# ou npm publish (verifique acesso/registro)
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
## 🗂️ Estrutura do Projeto
|
|
203
|
-
|
|
204
|
-
- `components/` – componentes e histórias
|
|
205
|
-
- `src/` – ponto de entrada e exports da biblioteca
|
|
206
|
-
- `assets/` – imagens, ícones e fontes
|
|
207
|
-
- `.rnstorybook/` e `.storybook/` – configs de Storybook nativo e web
|
|
208
|
-
- `scripts/` – automações de build
|
|
209
|
-
|
|
210
|
-
## 🔤 Fontes
|
|
211
|
-
|
|
212
|
-
Guia completo de configuração de fontes: [FONTES_CONFIGURACAO.md](file:///Users/tegra/sebrae/storybook/dev/FONTES_CONFIGURACAO.md)
|
|
213
|
-
## 🤝 Contribuição
|
|
214
|
-
|
|
215
|
-
Antes de adicionar novos componentes ou fazer modificações:
|
|
216
|
-
|
|
217
|
-
1. Verifique se o componente segue os padrões visuais do Sebrae
|
|
218
|
-
2. Adicione a documentação apropriada no Storybook
|
|
219
|
-
3. Teste o componente em diferentes dispositivos
|
|
220
|
-
4. Certifique-se de que as alterações não quebram a compatibilidade com o projeto principal
|
|
221
|
-
|
|
222
|
-
5. Mantenha o estilo de código (ESLint/Prettier) e exports em [src/index.ts](file:///Users/tegra/sebrae/storybook/dev/src/index.ts)
|
|
223
|
-
## 📝 Licença
|
|
224
|
-
|
|
225
|
-
Este projeto está sob a licença MIT.
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img alt="Sebrae" src="https://upload.wikimedia.org/wikipedia/commons/thumb/d/d9/Sebrae.svg/2560px-Sebrae.svg.png" width="200" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">
|
|
6
|
+
Sebrae Design System - React Native
|
|
7
|
+
</h1>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
Design System em React Native para o projeto Sebrae Na Palma da Mão
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
## 📋 Sobre o Projeto
|
|
14
|
+
|
|
15
|
+
Este é o repositório do Design System em React Native desenvolvido para o projeto Sebrae Na Palma da Mão. O objetivo é fornecer uma biblioteca de componentes reutilizáveis que seguem os padrões visuais e de interação do Sebrae, garantindo consistência e eficiência no desenvolvimento do aplicativo principal.
|
|
16
|
+
|
|
17
|
+
## ✅ Requisitos
|
|
18
|
+
|
|
19
|
+
- Node.js >= 18 ([package.json](file:///Users/tegra/sebrae/storybook/dev/package.json#L107-L109))
|
|
20
|
+
- React 19 e React Native 0.79 (peer/dev deps)
|
|
21
|
+
- Yarn ou npm/pnpm instalado
|
|
22
|
+
- Xcode (iOS) e Android SDK/Java (Android)
|
|
23
|
+
|
|
24
|
+
## 🔧 Instalação
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
yarn
|
|
28
|
+
# ou
|
|
29
|
+
npm install
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 🎨 Componentes Disponíveis
|
|
33
|
+
|
|
34
|
+
- Exportados via [src/index.ts](file:///Users/tegra/sebrae/storybook/dev/src/index.ts)
|
|
35
|
+
- Histórias em `*.stories.(jsx|tsx)` ao lado de cada componente
|
|
36
|
+
- Veja a lista completa em [components/](file:///Users/tegra/sebrae/storybook/dev/components) ou rode o Storybook
|
|
37
|
+
|
|
38
|
+
Exemplos de componentes:
|
|
39
|
+
|
|
40
|
+
- Accordion, Button, Checkbox, FilterTag, Input, Modal, Navbar, Pagination,
|
|
41
|
+
Datepicker, Dropdown, Card, Toast, Typography, SEIcon, SEText, e muitos outros.
|
|
42
|
+
|
|
43
|
+
## 🚀 Como Usar
|
|
44
|
+
|
|
45
|
+
1. **Instale as dependências** (acima).
|
|
46
|
+
|
|
47
|
+
2. **Execute o Storybook (nativo):**
|
|
48
|
+
|
|
49
|
+
Para iOS:
|
|
50
|
+
```bash
|
|
51
|
+
yarn storybook:ios
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Para Android:
|
|
55
|
+
```bash
|
|
56
|
+
yarn storybook:android
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
3. **Execute o Storybook (web):**
|
|
60
|
+
```bash
|
|
61
|
+
yarn storybook:web
|
|
62
|
+
# abre em http://localhost:6006
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
4. **Gerar histórias automaticamente (opcional):**
|
|
66
|
+
```bash
|
|
67
|
+
yarn storybook-generate
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## 📚 Storybook
|
|
71
|
+
|
|
72
|
+
Cada componente possui sua própria história no Storybook, permitindo visualizar e testar diferentes estados e propriedades. As histórias estão localizadas junto aos componentes com o padrão de nomenclatura `*.stories.(jsx|tsx)`.
|
|
73
|
+
|
|
74
|
+
- Nativo: `storybook:ios` e `storybook:android`
|
|
75
|
+
- Web: `storybook:web` ([@storybook/react-native-web-vite](file:///Users/tegra/sebrae/storybook/dev/package.json#L80-L83))
|
|
76
|
+
|
|
77
|
+
## 🔗 Integração com o Projeto Principal
|
|
78
|
+
|
|
79
|
+
Este Design System é um artefato do projeto principal [Sebrae Na Palma da Mão], um aplicativo móvel que funciona como uma agência do Sebrae na palma da mão. O aplicativo principal inclui diversas funcionalidades como:
|
|
80
|
+
|
|
81
|
+
- Integração com redes sociais
|
|
82
|
+
- Recursos de geolocalização e mapas
|
|
83
|
+
- Funcionalidades de câmera e scanner QR Code
|
|
84
|
+
- Recursos de compartilhamento e calendário
|
|
85
|
+
- Suporte a chat e preview de links
|
|
86
|
+
- E muito mais
|
|
87
|
+
|
|
88
|
+
### Instalação do React Design System (via Git + branch)
|
|
89
|
+
|
|
90
|
+
Instale diretamente a partir do repositório Git (escolha a branch conforme sua necessidade: `main`, `develop`, `feature/...`).
|
|
91
|
+
|
|
92
|
+
- Repositório: `git@gitlab.sebrae.com.br:na/java/na-palma-da-mao/app-sebrae-react-ds.git`
|
|
93
|
+
|
|
94
|
+
Compatibilidade mínima:
|
|
95
|
+
- Node.js 18+ (recomendado 20+)
|
|
96
|
+
- React 18 ou 19
|
|
97
|
+
|
|
98
|
+
Comandos (SSH):
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
|
|
102
|
+
# yarn
|
|
103
|
+
yarn add git+ssh://git@gitlab.sebrae.com.br/na/java/na-palma-da-mao/app-sebrae-react-ds.git#develop
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Outras branches:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
# main
|
|
111
|
+
yarn add git+ssh://git@gitlab.sebrae.com.br/na/java/na-palma-da-mao/app-sebrae-react-ds.git#main
|
|
112
|
+
|
|
113
|
+
# develop
|
|
114
|
+
yarn add git+ssh://git@gitlab.sebrae.com.br/na/java/na-palma-da-mao/app-sebrae-react-ds.git#develop
|
|
115
|
+
|
|
116
|
+
# feature (com barra, use aspas)
|
|
117
|
+
yarn add "git+ssh://git@gitlab.sebrae.com.br/na/java/na-palma-da-mao/app-sebrae-react-ds.git#feature/minha-feature"
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Via package.json:
|
|
121
|
+
|
|
122
|
+
```json
|
|
123
|
+
{
|
|
124
|
+
"dependencies": {
|
|
125
|
+
"vpt-sebraeds": "git+ssh://git@gitlab.sebrae.com.br/na/java/na-palma-da-mao/app-sebrae-react-ds.git#main"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Observação: nesta biblioteca, o campo "name" é `vpt-sebraeds`.
|
|
131
|
+
|
|
132
|
+
Dependências e pós-instalação:
|
|
133
|
+
- Instale todos os peerDependencies declarados pelo Design System (ex.: react, react-dom, bibliotecas de estilo/animação se aplicável). Verifique o `package.json` do repositório.
|
|
134
|
+
- Configure a fonte Nunito no app consumidor. Veja [FONTES_CONFIGURACAO.md](file:///Users/tegra/sebrae/storybook/dev/FONTES_CONFIGURACAO.md).
|
|
135
|
+
|
|
136
|
+
Exemplo de uso:
|
|
137
|
+
|
|
138
|
+
```tsx
|
|
139
|
+
import { Button } from 'vpt-sebraeds'
|
|
140
|
+
|
|
141
|
+
export function Exemplo() {
|
|
142
|
+
return <Button variant="primary">Confirmar</Button>
|
|
143
|
+
}
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Troubleshooting (GitLab/SSH):
|
|
147
|
+
- Permission denied (publickey):
|
|
148
|
+
- Gere/adicione sua chave SSH ao GitLab (`ssh-keygen -t rsa`), inicie o agente (`eval \"$(ssh-agent -s)\"`) e `ssh-add ~/.ssh/id_rsa`.
|
|
149
|
+
- Teste: `ssh -T git@gitlab.sebrae.com.br`.
|
|
150
|
+
- Host key verification failed:
|
|
151
|
+
- Adicione o host: `ssh-keyscan -H gitlab.sebrae.com.br >> ~/.ssh/known_hosts`.
|
|
152
|
+
- Sem permissão ao repositório:
|
|
153
|
+
- Verifique se seu usuário/grupo possui acesso ao projeto no GitLab ou solicite um Deploy Key.
|
|
154
|
+
- Ambiente CI/CD:
|
|
155
|
+
- Configure a variável `SSH_PRIVATE_KEY` e injete-a no pipeline; adicione `known_hosts` do GitLab antes de `yarn install`.
|
|
156
|
+
- Alternativa HTTPS + Token Pessoal (quando SSH indisponível):
|
|
157
|
+
- `yarn add "https://oauth2:<PERSONAL_ACCESS_TOKEN>@gitlab.sebrae.com.br/na/java/na-palma-da-mao/app-sebrae-react-ds.git#main"`
|
|
158
|
+
- Mantenha o token fora do controle de versão e variáveis de ambiente seguras.
|
|
159
|
+
|
|
160
|
+
### Consumo dos componentes
|
|
161
|
+
|
|
162
|
+
Após publicar/compilar, importe os componentes diretamente do pacote (ou via path local no monorepo):
|
|
163
|
+
|
|
164
|
+
```tsx
|
|
165
|
+
import { Button, Modal, Typography } from 'vpt-sebraeds';
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Os exports estão definidos em [src/index.ts](file:///Users/tegra/sebrae/storybook/dev/src/index.ts).
|
|
169
|
+
|
|
170
|
+
## 🧪 Testes e Qualidade
|
|
171
|
+
|
|
172
|
+
- Linter:
|
|
173
|
+
```bash
|
|
174
|
+
yarn lint
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
- Testes:
|
|
178
|
+
```bash
|
|
179
|
+
yarn test
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
## 🏗️ Build e Publicação
|
|
183
|
+
|
|
184
|
+
- Build TypeScript + cópia de assets:
|
|
185
|
+
```bash
|
|
186
|
+
yarn build
|
|
187
|
+
# tsc + [scripts/copy-assets.js](file:///Users/tegra/sebrae/storybook/dev/scripts/copy-assets.js)
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
- Build Android (release apk do app de Storybook):
|
|
191
|
+
```bash
|
|
192
|
+
yarn build-android
|
|
193
|
+
# [scripts/build-android.sh](file:///Users/tegra/sebrae/storybook/dev/scripts/build-android.sh)
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
- Publicação (pré-publish roda o build automaticamente):
|
|
197
|
+
```bash
|
|
198
|
+
yarn publish
|
|
199
|
+
# ou npm publish (verifique acesso/registro)
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
## 🗂️ Estrutura do Projeto
|
|
203
|
+
|
|
204
|
+
- `components/` – componentes e histórias
|
|
205
|
+
- `src/` – ponto de entrada e exports da biblioteca
|
|
206
|
+
- `assets/` – imagens, ícones e fontes
|
|
207
|
+
- `.rnstorybook/` e `.storybook/` – configs de Storybook nativo e web
|
|
208
|
+
- `scripts/` – automações de build
|
|
209
|
+
|
|
210
|
+
## 🔤 Fontes
|
|
211
|
+
|
|
212
|
+
Guia completo de configuração de fontes: [FONTES_CONFIGURACAO.md](file:///Users/tegra/sebrae/storybook/dev/FONTES_CONFIGURACAO.md)
|
|
213
|
+
## 🤝 Contribuição
|
|
214
|
+
|
|
215
|
+
Antes de adicionar novos componentes ou fazer modificações:
|
|
216
|
+
|
|
217
|
+
1. Verifique se o componente segue os padrões visuais do Sebrae
|
|
218
|
+
2. Adicione a documentação apropriada no Storybook
|
|
219
|
+
3. Teste o componente em diferentes dispositivos
|
|
220
|
+
4. Certifique-se de que as alterações não quebram a compatibilidade com o projeto principal
|
|
221
|
+
|
|
222
|
+
5. Mantenha o estilo de código (ESLint/Prettier) e exports em [src/index.ts](file:///Users/tegra/sebrae/storybook/dev/src/index.ts)
|
|
223
|
+
## 📝 Licença
|
|
224
|
+
|
|
225
|
+
Este projeto está sob a licença MIT.
|