@servesall/atoms 1.0.59 → 1.1.2
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/dist/bundle.cjs.js +25309 -29372
- package/dist/bundle.esm.js +25261 -29336
- package/dist/bundle.umd.js +25311 -29376
- package/package.json +4 -7
- package/src/BottomNavBar/BottomNavController.js +48 -47
- package/src/BottomNavBar/index.js +30 -33
- package/src/Buttons/AnimatedRoundedButton/FloatingButton.js +83 -0
- package/src/Buttons/AnimatedRoundedButton/FloatingButton.style.js +12 -0
- package/src/Buttons/AnimatedRoundedButton/index.js +129 -0
- package/src/Buttons/FeedbackButton/FloatingButton.js +89 -0
- package/src/Buttons/FeedbackButton/FloatingButton.style.js +10 -0
- package/src/Buttons/FeedbackButton/index.js +120 -0
- package/src/Buttons/RoundButton/index.js +21 -23
- package/src/Buttons/RoundedButton/RoundedButton.style.js +3 -2
- package/src/Buttons/RoundedButton/index.js +25 -23
- package/src/Buttons/TextButton/LineAnimation/LineAnimation.style.js +3 -3
- package/src/Buttons/TextButton/TextButton.style.js +11 -4
- package/src/Buttons/TextButton/index.js +34 -26
- package/src/Buttons/index.js +11 -1
- package/src/CountryFlatList/Assets/1.png +0 -0
- package/src/CountryFlatList/Assets/abkhazia.png +0 -0
- package/src/CountryFlatList/Assets/afghanistan.png +0 -0
- package/src/CountryFlatList/Assets/africa.png +0 -0
- package/src/CountryFlatList/Assets/aland-islands.png +0 -0
- package/src/CountryFlatList/Assets/albania.png +0 -0
- package/src/CountryFlatList/Assets/algeria.png +0 -0
- package/src/CountryFlatList/Assets/american-samoa.png +0 -0
- package/src/CountryFlatList/Assets/andorra.png +0 -0
- package/src/CountryFlatList/Assets/angola.png +0 -0
- package/src/CountryFlatList/Assets/anguilla.png +0 -0
- package/src/CountryFlatList/Assets/antigua-and-barbuda.png +0 -0
- package/src/CountryFlatList/Assets/arabia.png +0 -0
- package/src/CountryFlatList/Assets/argentina.png +0 -0
- package/src/CountryFlatList/Assets/armenia.png +0 -0
- package/src/CountryFlatList/Assets/aruba.png +0 -0
- package/src/CountryFlatList/Assets/australia.png +0 -0
- package/src/CountryFlatList/Assets/austria.png +0 -0
- package/src/CountryFlatList/Assets/azerbaijan.png +0 -0
- package/src/CountryFlatList/Assets/azores-islands.png +0 -0
- package/src/CountryFlatList/Assets/bahamas.png +0 -0
- package/src/CountryFlatList/Assets/bahrain.png +0 -0
- package/src/CountryFlatList/Assets/balearic-islands.png +0 -0
- package/src/CountryFlatList/Assets/bangladesh.png +0 -0
- package/src/CountryFlatList/Assets/barbados.png +0 -0
- package/src/CountryFlatList/Assets/barbuda.png +0 -0
- package/src/CountryFlatList/Assets/barts.png +0 -0
- package/src/CountryFlatList/Assets/basque-country.png +0 -0
- package/src/CountryFlatList/Assets/belarus.png +0 -0
- package/src/CountryFlatList/Assets/belgium.png +0 -0
- package/src/CountryFlatList/Assets/belize.png +0 -0
- package/src/CountryFlatList/Assets/benin.png +0 -0
- package/src/CountryFlatList/Assets/bermuda.png +0 -0
- package/src/CountryFlatList/Assets/bhutan.png +0 -0
- package/src/CountryFlatList/Assets/bissau.png +0 -0
- package/src/CountryFlatList/Assets/bolivia.png +0 -0
- package/src/CountryFlatList/Assets/bonaire.png +0 -0
- package/src/CountryFlatList/Assets/bosnia-and-herzegovina.png +0 -0
- package/src/CountryFlatList/Assets/botswana.png +0 -0
- package/src/CountryFlatList/Assets/brazil.png +0 -0
- package/src/CountryFlatList/Assets/british-columbia.png +0 -0
- package/src/CountryFlatList/Assets/british-indian-ocean-territory.png +0 -0
- package/src/CountryFlatList/Assets/british-virgin-islands.png +0 -0
- package/src/CountryFlatList/Assets/brunei.png +0 -0
- package/src/CountryFlatList/Assets/bulgaria.png +0 -0
- package/src/CountryFlatList/Assets/burkina-faso.png +0 -0
- package/src/CountryFlatList/Assets/burundi.png +0 -0
- package/src/CountryFlatList/Assets/caicos.png +0 -0
- package/src/CountryFlatList/Assets/cambodia.png +0 -0
- package/src/CountryFlatList/Assets/cameroon.png +0 -0
- package/src/CountryFlatList/Assets/canada.png +0 -0
- package/src/CountryFlatList/Assets/canary-islands.png +0 -0
- package/src/CountryFlatList/Assets/cape-verde.png +0 -0
- package/src/CountryFlatList/Assets/cayman-islands.png +0 -0
- package/src/CountryFlatList/Assets/central-african-republic.png +0 -0
- package/src/CountryFlatList/Assets/ceuta.png +0 -0
- package/src/CountryFlatList/Assets/chad.png +0 -0
- package/src/CountryFlatList/Assets/chile.png +0 -0
- package/src/CountryFlatList/Assets/china.png +0 -0
- package/src/CountryFlatList/Assets/christmas-island.png +0 -0
- package/src/CountryFlatList/Assets/city.png +0 -0
- package/src/CountryFlatList/Assets/coast.png +0 -0
- package/src/CountryFlatList/Assets/cocos-island.png +0 -0
- package/src/CountryFlatList/Assets/colombia.png +0 -0
- package/src/CountryFlatList/Assets/columbia.png +0 -0
- package/src/CountryFlatList/Assets/comoros.png +0 -0
- package/src/CountryFlatList/Assets/congo.png +0 -0
- package/src/CountryFlatList/Assets/cook-islands.png +0 -0
- package/src/CountryFlatList/Assets/corsica.png +0 -0
- package/src/CountryFlatList/Assets/costa-rica.png +0 -0
- package/src/CountryFlatList/Assets/country.png +0 -0
- package/src/CountryFlatList/Assets/croatia.png +0 -0
- package/src/CountryFlatList/Assets/cuba.png +0 -0
- package/src/CountryFlatList/Assets/curacao.png +0 -0
- package/src/CountryFlatList/Assets/cyprus.png +0 -0
- package/src/CountryFlatList/Assets/czech-republic.png +0 -0
- package/src/CountryFlatList/Assets/democratic-republic-of-congo.png +0 -0
- package/src/CountryFlatList/Assets/denmark.png +0 -0
- package/src/CountryFlatList/Assets/djibouti.png +0 -0
- package/src/CountryFlatList/Assets/dominica.png +0 -0
- package/src/CountryFlatList/Assets/dominican-republic.png +0 -0
- package/src/CountryFlatList/Assets/east-timor.png +0 -0
- package/src/CountryFlatList/Assets/ecuador.png +0 -0
- package/src/CountryFlatList/Assets/egypt.png +0 -0
- package/src/CountryFlatList/Assets/el-salvador.png +0 -0
- package/src/CountryFlatList/Assets/emirates.png +0 -0
- package/src/CountryFlatList/Assets/england.png +0 -0
- package/src/CountryFlatList/Assets/equatorial-guinea.png +0 -0
- package/src/CountryFlatList/Assets/eritrea.png +0 -0
- package/src/CountryFlatList/Assets/estonia.png +0 -0
- package/src/CountryFlatList/Assets/ethiopia.png +0 -0
- package/src/CountryFlatList/Assets/eustatius.png +0 -0
- package/src/CountryFlatList/Assets/falkland-islands.png +0 -0
- package/src/CountryFlatList/Assets/faso.png +0 -0
- package/src/CountryFlatList/Assets/fiji.png +0 -0
- package/src/CountryFlatList/Assets/finland.png +0 -0
- package/src/CountryFlatList/Assets/france.png +0 -0
- package/src/CountryFlatList/Assets/french-polynesia.png +0 -0
- package/src/CountryFlatList/Assets/gabon.png +0 -0
- package/src/CountryFlatList/Assets/galapagos-islands.png +0 -0
- package/src/CountryFlatList/Assets/gambia.png +0 -0
- package/src/CountryFlatList/Assets/georgia.png +0 -0
- package/src/CountryFlatList/Assets/germany.png +0 -0
- package/src/CountryFlatList/Assets/ghana.png +0 -0
- package/src/CountryFlatList/Assets/gibraltar.png +0 -0
- package/src/CountryFlatList/Assets/greece.png +0 -0
- package/src/CountryFlatList/Assets/greenland.png +0 -0
- package/src/CountryFlatList/Assets/grenada.png +0 -0
- package/src/CountryFlatList/Assets/grenadines.png +0 -0
- package/src/CountryFlatList/Assets/guam.png +0 -0
- package/src/CountryFlatList/Assets/guatemala.png +0 -0
- package/src/CountryFlatList/Assets/guernsey.png +0 -0
- package/src/CountryFlatList/Assets/guinea-bissau.png +0 -0
- package/src/CountryFlatList/Assets/guinea.png +0 -0
- package/src/CountryFlatList/Assets/haiti.png +0 -0
- package/src/CountryFlatList/Assets/hawaii.png +0 -0
- package/src/CountryFlatList/Assets/herzegovina.png +0 -0
- package/src/CountryFlatList/Assets/honduras.png +0 -0
- package/src/CountryFlatList/Assets/hong-kong.png +0 -0
- package/src/CountryFlatList/Assets/hungary.png +0 -0
- package/src/CountryFlatList/Assets/iceland.png +0 -0
- package/src/CountryFlatList/Assets/india.png +0 -0
- package/src/CountryFlatList/Assets/indonesia.png +0 -0
- package/src/CountryFlatList/Assets/iran.png +0 -0
- package/src/CountryFlatList/Assets/iraq.png +0 -0
- package/src/CountryFlatList/Assets/ireland.png +0 -0
- package/src/CountryFlatList/Assets/island.png +0 -0
- package/src/CountryFlatList/Assets/islands.png +0 -0
- package/src/CountryFlatList/Assets/isle-of-man.png +0 -0
- package/src/CountryFlatList/Assets/israel.png +0 -0
- package/src/CountryFlatList/Assets/italy.png +0 -0
- package/src/CountryFlatList/Assets/ivory-coast.png +0 -0
- package/src/CountryFlatList/Assets/jamaica.png +0 -0
- package/src/CountryFlatList/Assets/japan.png +0 -0
- package/src/CountryFlatList/Assets/jersey.png +0 -0
- package/src/CountryFlatList/Assets/jordan.png +0 -0
- package/src/CountryFlatList/Assets/kazakhstan.png +0 -0
- package/src/CountryFlatList/Assets/kenya.png +0 -0
- package/src/CountryFlatList/Assets/kiribati.png +0 -0
- package/src/CountryFlatList/Assets/kong.png +0 -0
- package/src/CountryFlatList/Assets/korea.png +0 -0
- package/src/CountryFlatList/Assets/kosovo.png +0 -0
- package/src/CountryFlatList/Assets/kwait.png +0 -0
- package/src/CountryFlatList/Assets/kyrgyzstan.png +0 -0
- package/src/CountryFlatList/Assets/lanka.png +0 -0
- package/src/CountryFlatList/Assets/laos.png +0 -0
- package/src/CountryFlatList/Assets/latvia.png +0 -0
- package/src/CountryFlatList/Assets/lebanon.png +0 -0
- package/src/CountryFlatList/Assets/leone.png +0 -0
- package/src/CountryFlatList/Assets/lesotho.png +0 -0
- package/src/CountryFlatList/Assets/liberia.png +0 -0
- package/src/CountryFlatList/Assets/libya.png +0 -0
- package/src/CountryFlatList/Assets/liechtenstein.png +0 -0
- package/src/CountryFlatList/Assets/lithuania.png +0 -0
- package/src/CountryFlatList/Assets/lucia.png +0 -0
- package/src/CountryFlatList/Assets/luxembourg.png +0 -0
- package/src/CountryFlatList/Assets/maarten.png +0 -0
- package/src/CountryFlatList/Assets/macao.png +0 -0
- package/src/CountryFlatList/Assets/macedonia.png +0 -0
- package/src/CountryFlatList/Assets/madagascar.png +0 -0
- package/src/CountryFlatList/Assets/madeira.png +0 -0
- package/src/CountryFlatList/Assets/malasya.png +0 -0
- package/src/CountryFlatList/Assets/malawi.png +0 -0
- package/src/CountryFlatList/Assets/maldives.png +0 -0
- package/src/CountryFlatList/Assets/mali.png +0 -0
- package/src/CountryFlatList/Assets/malta.png +0 -0
- package/src/CountryFlatList/Assets/man.png +0 -0
- package/src/CountryFlatList/Assets/marino.png +0 -0
- package/src/CountryFlatList/Assets/marshall-island.png +0 -0
- package/src/CountryFlatList/Assets/martinique.png +0 -0
- package/src/CountryFlatList/Assets/mauritania.png +0 -0
- package/src/CountryFlatList/Assets/mauritius.png +0 -0
- package/src/CountryFlatList/Assets/melilla.png +0 -0
- package/src/CountryFlatList/Assets/mexico.png +0 -0
- package/src/CountryFlatList/Assets/micronesia.png +0 -0
- package/src/CountryFlatList/Assets/moldova.png +0 -0
- package/src/CountryFlatList/Assets/monaco.png +0 -0
- package/src/CountryFlatList/Assets/mongolia.png +0 -0
- package/src/CountryFlatList/Assets/montenegro.png +0 -0
- package/src/CountryFlatList/Assets/montserrat.png +0 -0
- package/src/CountryFlatList/Assets/morocco.png +0 -0
- package/src/CountryFlatList/Assets/mozambique.png +0 -0
- package/src/CountryFlatList/Assets/myanmar.png +0 -0
- package/src/CountryFlatList/Assets/namibia.png +0 -0
- package/src/CountryFlatList/Assets/nations.png +0 -0
- package/src/CountryFlatList/Assets/nato.png +0 -0
- package/src/CountryFlatList/Assets/nauru.png +0 -0
- package/src/CountryFlatList/Assets/nepal.png +0 -0
- package/src/CountryFlatList/Assets/netherlands.png +0 -0
- package/src/CountryFlatList/Assets/nevis.png +0 -0
- package/src/CountryFlatList/Assets/new-zealand.png +0 -0
- package/src/CountryFlatList/Assets/nicaragua.png +0 -0
- package/src/CountryFlatList/Assets/niger.png +0 -0
- package/src/CountryFlatList/Assets/nigeria.png +0 -0
- package/src/CountryFlatList/Assets/niue.png +0 -0
- package/src/CountryFlatList/Assets/norfolk-island.png +0 -0
- package/src/CountryFlatList/Assets/north-korea.png +0 -0
- package/src/CountryFlatList/Assets/northern-cyprus.png +0 -0
- package/src/CountryFlatList/Assets/northern-marianas-islands.png +0 -0
- package/src/CountryFlatList/Assets/norway.png +0 -0
- package/src/CountryFlatList/Assets/nui.png +0 -0
- package/src/CountryFlatList/Assets/oman.png +0 -0
- package/src/CountryFlatList/Assets/ossetia.png +0 -0
- package/src/CountryFlatList/Assets/pakistan.png +0 -0
- package/src/CountryFlatList/Assets/palau.png +0 -0
- package/src/CountryFlatList/Assets/palestine.png +0 -0
- package/src/CountryFlatList/Assets/panama.png +0 -0
- package/src/CountryFlatList/Assets/papua-new-guinea.png +0 -0
- package/src/CountryFlatList/Assets/paraguay.png +0 -0
- package/src/CountryFlatList/Assets/peru.png +0 -0
- package/src/CountryFlatList/Assets/philippines.png +0 -0
- package/src/CountryFlatList/Assets/pitcairn-islands.png +0 -0
- package/src/CountryFlatList/Assets/poland.png +0 -0
- package/src/CountryFlatList/Assets/polynesia.png +0 -0
- package/src/CountryFlatList/Assets/portugal.png +0 -0
- package/src/CountryFlatList/Assets/puerto-rico.png +0 -0
- package/src/CountryFlatList/Assets/qatar.png +0 -0
- package/src/CountryFlatList/Assets/rapa-nui.png +0 -0
- package/src/CountryFlatList/Assets/republic-of-macedonia.png +0 -0
- package/src/CountryFlatList/Assets/republic-of-the-congo.png +0 -0
- package/src/CountryFlatList/Assets/republic.png +0 -0
- package/src/CountryFlatList/Assets/rica.png +0 -0
- package/src/CountryFlatList/Assets/rico.png +0 -0
- package/src/CountryFlatList/Assets/romania.png +0 -0
- package/src/CountryFlatList/Assets/russia.png +0 -0
- package/src/CountryFlatList/Assets/rwanda.png +0 -0
- package/src/CountryFlatList/Assets/saba-island.png +0 -0
- package/src/CountryFlatList/Assets/sahrawi-arab-democratic-republic.png +0 -0
- package/src/CountryFlatList/Assets/saint-kitts-and-nevis.png +0 -0
- package/src/CountryFlatList/Assets/samoa.png +0 -0
- package/src/CountryFlatList/Assets/san-marino.png +0 -0
- package/src/CountryFlatList/Assets/sao-tome-and-prince.png +0 -0
- package/src/CountryFlatList/Assets/sardinia.png +0 -0
- package/src/CountryFlatList/Assets/saudi-arabia.png +0 -0
- package/src/CountryFlatList/Assets/scotland.png +0 -0
- package/src/CountryFlatList/Assets/senegal.png +0 -0
- package/src/CountryFlatList/Assets/serbia.png +0 -0
- package/src/CountryFlatList/Assets/seychelles.png +0 -0
- package/src/CountryFlatList/Assets/sicily.png +0 -0
- package/src/CountryFlatList/Assets/sierra-leone.png +0 -0
- package/src/CountryFlatList/Assets/singapore.png +0 -0
- package/src/CountryFlatList/Assets/sint-eustatius.png +0 -0
- package/src/CountryFlatList/Assets/sint-maarten.png +0 -0
- package/src/CountryFlatList/Assets/slovakia.png +0 -0
- package/src/CountryFlatList/Assets/slovenia.png +0 -0
- package/src/CountryFlatList/Assets/solomon-islands.png +0 -0
- package/src/CountryFlatList/Assets/somalia.png +0 -0
- package/src/CountryFlatList/Assets/somaliland.png +0 -0
- package/src/CountryFlatList/Assets/south-africa.png +0 -0
- package/src/CountryFlatList/Assets/south-korea.png +0 -0
- package/src/CountryFlatList/Assets/south-sudan.png +0 -0
- package/src/CountryFlatList/Assets/spain.png +0 -0
- package/src/CountryFlatList/Assets/sri-lanka.png +0 -0
- package/src/CountryFlatList/Assets/st-barts.png +0 -0
- package/src/CountryFlatList/Assets/st-lucia.png +0 -0
- package/src/CountryFlatList/Assets/st-vincent-and-the-grenadines.png +0 -0
- package/src/CountryFlatList/Assets/sudan.png +0 -0
- package/src/CountryFlatList/Assets/suriname.png +0 -0
- package/src/CountryFlatList/Assets/swaziland.png +0 -0
- package/src/CountryFlatList/Assets/sweden.png +0 -0
- package/src/CountryFlatList/Assets/switzerland.png +0 -0
- package/src/CountryFlatList/Assets/syria.png +0 -0
- package/src/CountryFlatList/Assets/taiwan.png +0 -0
- package/src/CountryFlatList/Assets/tajikistan.png +0 -0
- package/src/CountryFlatList/Assets/tanzania.png +0 -0
- package/src/CountryFlatList/Assets/territory.png +0 -0
- package/src/CountryFlatList/Assets/thailand.png +0 -0
- package/src/CountryFlatList/Assets/tibet.png +0 -0
- package/src/CountryFlatList/Assets/timor.png +0 -0
- package/src/CountryFlatList/Assets/tobago.png +0 -0
- package/src/CountryFlatList/Assets/togo.png +0 -0
- package/src/CountryFlatList/Assets/tokelau.png +0 -0
- package/src/CountryFlatList/Assets/tonga.png +0 -0
- package/src/CountryFlatList/Assets/transnistria.png +0 -0
- package/src/CountryFlatList/Assets/trinidad-and-tobago.png +0 -0
- package/src/CountryFlatList/Assets/tunisia.png +0 -0
- package/src/CountryFlatList/Assets/turkey.png +0 -0
- package/src/CountryFlatList/Assets/turkmenistan.png +0 -0
- package/src/CountryFlatList/Assets/turks-and-caicos.png +0 -0
- package/src/CountryFlatList/Assets/tuvalu.png +0 -0
- package/src/CountryFlatList/Assets/uganda.png +0 -0
- package/src/CountryFlatList/Assets/ukraine.png +0 -0
- package/src/CountryFlatList/Assets/union.png +0 -0
- package/src/CountryFlatList/Assets/united-arab-emirates.png +0 -0
- package/src/CountryFlatList/Assets/united-kingdom.png +0 -0
- package/src/CountryFlatList/Assets/united-states.png +0 -0
- package/src/CountryFlatList/Assets/uruguay.png +0 -0
- package/src/CountryFlatList/Assets/uzbekistn.png +0 -0
- package/src/CountryFlatList/Assets/vanuatu.png +0 -0
- package/src/CountryFlatList/Assets/vatican-city.png +0 -0
- package/src/CountryFlatList/Assets/venezuela.png +0 -0
- package/src/CountryFlatList/Assets/verde.png +0 -0
- package/src/CountryFlatList/Assets/vietnam.png +0 -0
- package/src/CountryFlatList/Assets/virgin-islands.png +0 -0
- package/src/CountryFlatList/Assets/wales.png +0 -0
- package/src/CountryFlatList/Assets/yemen.png +0 -0
- package/src/CountryFlatList/Assets/zambia.png +0 -0
- package/src/CountryFlatList/Assets/zealand.png +0 -0
- package/src/CountryFlatList/Assets/zimbabwe.png +0 -0
- package/src/CountryFlatList/Data.js +469 -0
- package/src/CountryFlatList/List.style.js +20 -0
- package/src/CountryFlatList/index.js +151 -0
- package/src/ErrorText/ErrorText.style.js +18 -0
- package/src/ErrorText/error.json +1 -0
- package/src/ErrorText/index.js +25 -0
- package/src/Icons/Assets/back_fat.json +1 -0
- package/src/Icons/Assets/big_calendar.json +1 -0
- package/src/Icons/Assets/big_close.json +1 -0
- package/src/Icons/Assets/big_good.json +1 -0
- package/src/Icons/Assets/big_pax.json +1 -0
- package/src/Icons/Assets/big_time.json +1 -0
- package/src/Icons/Assets/index.js +12 -0
- package/src/Inputs/Animated/index.js +3 -1
- package/src/Inputs/InputNormal/Animated.style.js +23 -0
- package/src/Inputs/InputNormal/LineAnimation/LineAnimation.style.js +16 -0
- package/src/Inputs/InputNormal/LineAnimation/index.js +48 -0
- package/src/Inputs/InputNormal/Placeholder/index.js +46 -0
- package/src/Inputs/InputNormal/index.js +102 -0
- package/src/Inputs/PhoneNumber/PrefixPicker/index.js +200 -0
- package/src/Inputs/PhoneNumber/PrefixPicker/prefixList.js +946 -0
- package/src/Inputs/PhoneNumber/index.js +0 -0
- package/src/Inputs/index.js +3 -2
- package/src/Layout/Box.js +15 -0
- package/src/Layout/Layout.style.js +18 -0
- package/src/Layout/MarginRight.js +12 -0
- package/src/Layout/PaddingBottom.js +12 -0
- package/src/Layout/RoundedTopBox.js +21 -0
- package/src/Layout/index.js +8 -0
- package/src/Loader/index.js +14 -10
- package/src/SlideToConfirm/Swipe.style.js +24 -0
- package/src/SlideToConfirm/index.js +158 -0
- package/src/Switch/index.js +17 -8
- package/src/Text/Text.style.js +1 -1
- package/src/Theme/definitions/colors.js +22 -3
- package/src/Theme/definitions/layout.js +1 -0
- package/src/index.js +20 -1
- package/src/.DS_Store +0 -0
- package/src/Error/.DS_Store +0 -0
- package/src/Icons/.DS_Store +0 -0
- package/src/Icons/Assets/.DS_Store +0 -0
- package/src/Success/.DS_Store +0 -0
|
@@ -29,29 +29,27 @@ const RoundBtn = ({
|
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
return (
|
|
32
|
-
<
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</Animated.View>
|
|
54
|
-
</ButtonWrapper>
|
|
32
|
+
<Animated.View style={[{ flex: 1 }, animatedStyle]}>
|
|
33
|
+
<ButtonStyle
|
|
34
|
+
size={size}
|
|
35
|
+
active={active}
|
|
36
|
+
color={color}
|
|
37
|
+
style={style}
|
|
38
|
+
onPressIn={() => {
|
|
39
|
+
scale.value = withSequence(
|
|
40
|
+
withTiming(0.9, {
|
|
41
|
+
duration: 80,
|
|
42
|
+
}),
|
|
43
|
+
withTiming(1, {
|
|
44
|
+
duration: 200,
|
|
45
|
+
})
|
|
46
|
+
);
|
|
47
|
+
}}
|
|
48
|
+
onPress={() => onClick()}
|
|
49
|
+
>
|
|
50
|
+
{children}
|
|
51
|
+
</ButtonStyle>
|
|
52
|
+
</Animated.View>
|
|
55
53
|
);
|
|
56
54
|
};
|
|
57
55
|
|
|
@@ -3,8 +3,9 @@ import styled from "styled-components/native";
|
|
|
3
3
|
export const ButtonWrapper = styled.View``;
|
|
4
4
|
|
|
5
5
|
export const ButtonStyle = styled.Pressable`
|
|
6
|
-
min-height: 60px;
|
|
7
|
-
|
|
6
|
+
min-height: ${(props) => (props.size === "big" ? "60px" : "54px")};
|
|
7
|
+
width: 100%;
|
|
8
|
+
border-radius: ${(props) => props.theme.borderRadiusMedium};
|
|
8
9
|
background-color: ${(props) => props.color};
|
|
9
10
|
opacity: ${(props) => (props.active ? 1 : 0.7)};
|
|
10
11
|
${(props) => props.style};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ButtonStyle } from "./RoundedButton.style";
|
|
3
3
|
import Animated, {
|
|
4
4
|
useAnimatedStyle,
|
|
5
5
|
useSharedValue,
|
|
@@ -13,6 +13,8 @@ const RoundedBtn = ({
|
|
|
13
13
|
color,
|
|
14
14
|
onClick = () => {},
|
|
15
15
|
style,
|
|
16
|
+
size = "big",
|
|
17
|
+
hitSlop = 0,
|
|
16
18
|
}) => {
|
|
17
19
|
const scale = useSharedValue(1);
|
|
18
20
|
|
|
@@ -28,28 +30,28 @@ const RoundedBtn = ({
|
|
|
28
30
|
});
|
|
29
31
|
|
|
30
32
|
return (
|
|
31
|
-
<
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
</
|
|
52
|
-
</
|
|
33
|
+
<Animated.View style={[animatedStyle]}>
|
|
34
|
+
<ButtonStyle
|
|
35
|
+
hitSlop={hitSlop}
|
|
36
|
+
size={size}
|
|
37
|
+
active={active}
|
|
38
|
+
color={color}
|
|
39
|
+
style={style}
|
|
40
|
+
onPressIn={() => {
|
|
41
|
+
scale.value = withSequence(
|
|
42
|
+
withTiming(0.9, {
|
|
43
|
+
duration: 80,
|
|
44
|
+
}),
|
|
45
|
+
withTiming(1, {
|
|
46
|
+
duration: 200,
|
|
47
|
+
})
|
|
48
|
+
);
|
|
49
|
+
}}
|
|
50
|
+
onPress={() => active && onClick()}
|
|
51
|
+
>
|
|
52
|
+
{children}
|
|
53
|
+
</ButtonStyle>
|
|
54
|
+
</Animated.View>
|
|
53
55
|
);
|
|
54
56
|
};
|
|
55
57
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import styled from
|
|
1
|
+
import styled from "styled-components/native";
|
|
2
2
|
|
|
3
3
|
export const BorderIdle = styled.View`
|
|
4
|
-
height:
|
|
4
|
+
height: 18px;
|
|
5
5
|
background-color: ${(props) => props.color};
|
|
6
6
|
flex: 1;
|
|
7
7
|
position: absolute;
|
|
@@ -10,7 +10,7 @@ export const BorderIdle = styled.View`
|
|
|
10
10
|
`;
|
|
11
11
|
|
|
12
12
|
export const BorderActive = styled.View`
|
|
13
|
-
height:
|
|
13
|
+
height: 18px;
|
|
14
14
|
background-color: ${(props) => props.color};
|
|
15
15
|
z-index: 11;
|
|
16
16
|
`;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import styled from
|
|
1
|
+
import styled from "styled-components/native";
|
|
2
2
|
|
|
3
|
-
export const ButtonWrapper = styled.Pressable
|
|
4
|
-
`;
|
|
3
|
+
export const ButtonWrapper = styled.Pressable``;
|
|
5
4
|
|
|
6
5
|
export const BorderWrapper = styled.View`
|
|
7
|
-
height:
|
|
6
|
+
height: 18px;
|
|
7
|
+
position: absolute;
|
|
8
|
+
width: 100%;
|
|
9
|
+
bottom: 10;
|
|
10
|
+
z-index: 0;
|
|
11
|
+
`;
|
|
12
|
+
|
|
13
|
+
export const ChildWrapper = styled.View`
|
|
14
|
+
z-index: 2;
|
|
8
15
|
`;
|
|
@@ -1,32 +1,40 @@
|
|
|
1
|
-
import React, {useState, useEffect} from
|
|
2
|
-
import {ButtonWrapper, BorderWrapper} from
|
|
3
|
-
import LineAnimation from
|
|
1
|
+
import React, { useState, useEffect } from "react";
|
|
2
|
+
import { ButtonWrapper, BorderWrapper, ChildWrapper } from "./TextButton.style";
|
|
3
|
+
import LineAnimation from "./LineAnimation";
|
|
4
4
|
|
|
5
|
-
const TextBtn = ({
|
|
5
|
+
const TextBtn = ({
|
|
6
|
+
children,
|
|
7
|
+
active,
|
|
8
|
+
disabled = false,
|
|
9
|
+
borderColorActive,
|
|
10
|
+
borderColorIdle,
|
|
11
|
+
onClick = () => {},
|
|
12
|
+
style,
|
|
13
|
+
}) => {
|
|
14
|
+
const [isActive, setIsActive] = useState(active);
|
|
6
15
|
|
|
7
|
-
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
setIsActive(active);
|
|
18
|
+
}, [active]);
|
|
8
19
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</BorderWrapper>
|
|
28
|
-
</ButtonWrapper>
|
|
29
|
-
);
|
|
20
|
+
return (
|
|
21
|
+
<ButtonWrapper
|
|
22
|
+
disabled={disabled}
|
|
23
|
+
onPress={() => {
|
|
24
|
+
onClick();
|
|
25
|
+
active !== false && setIsActive(true);
|
|
26
|
+
}}
|
|
27
|
+
>
|
|
28
|
+
<ChildWrapper>{children}</ChildWrapper>
|
|
29
|
+
<BorderWrapper>
|
|
30
|
+
<LineAnimation
|
|
31
|
+
active={isActive}
|
|
32
|
+
borderColorActive={borderColorActive}
|
|
33
|
+
borderColorIdle={borderColorIdle}
|
|
34
|
+
/>
|
|
35
|
+
</BorderWrapper>
|
|
36
|
+
</ButtonWrapper>
|
|
37
|
+
);
|
|
30
38
|
};
|
|
31
39
|
|
|
32
40
|
export default TextBtn;
|
package/src/Buttons/index.js
CHANGED
|
@@ -3,5 +3,15 @@ import RoundedBtn from "./RoundedButton";
|
|
|
3
3
|
import RoundBtn from "./RoundButton";
|
|
4
4
|
import FloatingBtn from "./FloatingButton";
|
|
5
5
|
import AnimatedButton from "./AnimatedButton";
|
|
6
|
+
import FeedbackButton from "./FeedbackButton";
|
|
7
|
+
import AnimatedRoundedButton from "./AnimatedRoundedButton";
|
|
6
8
|
|
|
7
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
TextBtn,
|
|
11
|
+
RoundedBtn,
|
|
12
|
+
RoundBtn,
|
|
13
|
+
FloatingBtn,
|
|
14
|
+
AnimatedButton,
|
|
15
|
+
FeedbackButton,
|
|
16
|
+
AnimatedRoundedButton,
|
|
17
|
+
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|