diff --git a/CHANGELOG.md b/CHANGELOG.md index 412087f51..edd2cead7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +## [0.29.1](https://github.com/juspay/hyperswitch-web/compare/v0.29.0...v0.29.1) (2024-03-11) + + +### Bug Fixes + +* added Wallets to Saved Payment Methods ([#213](https://github.com/juspay/hyperswitch-web/issues/213)) ([dc6a194](https://github.com/juspay/hyperswitch-web/commit/dc6a194512ac010cec55ae52451c98a017da5d7c)) + +# [0.29.0](https://github.com/juspay/hyperswitch-web/compare/v0.28.0...v0.29.0) (2024-03-11) + + +### Features + +* props divide disableSave cards to checkbox and api ([#206](https://github.com/juspay/hyperswitch-web/issues/206)) ([83426ab](https://github.com/juspay/hyperswitch-web/commit/83426ab9a11210ed1e7edb2341ef25ba4c8a4500)) + # [0.28.0](https://github.com/juspay/hyperswitch-web/compare/v0.27.5...v0.28.0) (2024-03-08) diff --git a/Hyperswitch-React-Demo-App/server.js b/Hyperswitch-React-Demo-App/server.js index 991a4b95d..caddd6e02 100644 --- a/Hyperswitch-React-Demo-App/server.js +++ b/Hyperswitch-React-Demo-App/server.js @@ -54,7 +54,6 @@ app.get("/create-payment-intent", async (req, res) => { amount: 2999, }, ], - currency: "USD", confirm: false, capture_method: "automatic", authentication_type: "three_ds", diff --git a/Hyperswitch-React-Demo-App/src/Cart.js b/Hyperswitch-React-Demo-App/src/Cart.js index 615d7ea2a..24c19cf58 100644 --- a/Hyperswitch-React-Demo-App/src/Cart.js +++ b/Hyperswitch-React-Demo-App/src/Cart.js @@ -9,8 +9,8 @@ function Cart() {
{" "} - Hyperswicth - Playground App + {" "} + Hyperswitch Playground App
Test Mode
@@ -19,7 +19,7 @@ function Cart() {
- +
HS Tshirt
@@ -37,7 +37,7 @@ function Cart() {
- +
HS Cap
diff --git a/package-lock.json b/package-lock.json index fab7f9c26..484c06ed2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "orca-payment-page", - "version": "0.28.0", + "version": "0.29.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index cc3241dc8..20dce78cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orca-payment-page", - "version": "0.28.0", + "version": "0.29.1", "main": "index.js", "private": true, "dependencies": { diff --git a/public/icons/orca.svg b/public/icons/orca.svg index a2faacf54..1d3e33e7f 100644 --- a/public/icons/orca.svg +++ b/public/icons/orca.svg @@ -7,316 +7,484 @@ License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL + fill="#0e4595" + /> + fill="#fff" + /> + fill="#f2ae14" + /> + fill="#d9222a" + /> + fill="#ee9f2d" + /> + d="m666.07 350.06c0-3.199 2.592-5.801 5.796-5.801s5.796 2.602 5.796 5.801-2.592 5.801-5.796 5.801-5.796-2.602-5.796-5.801zm5.796 4.408c2.434-.001 4.407-1.974 4.408-4.408 0-2.432-1.971-4.402-4.402-4.404h-.006c-2.429-.003-4.4 1.963-4.404 4.391v.014c-.002 2.433 1.968 4.406 4.4 4.408.001-.001.003-.001.004-.001zm-.783-1.86h-1.187v-5.096h2.149c.45 0 .908 0 1.305.254.413.279.646.771.646 1.279 0 .571-.338 1.104-.884 1.312l.938 2.25h-1.315l-.779-2.017h-.871zm0-2.89h.658c.246 0 .505.021.726-.1.195-.125.296-.359.296-.584-.005-.209-.112-.402-.288-.518-.207-.129-.536-.101-.758-.101h-.634zm-443.5-80.063c-2.046-.238-2.945-.301-4.35-.301-11.046 0-16.638 3.787-16.638 11.268 0 4.611 2.729 7.545 6.987 7.545 7.939 0 13.659-7.559 14.001-18.512zm14.171 32.996h-16.146l.371-7.676c-4.926 6.065-11.496 8.949-20.426 8.949-10.563 0-17.804-8.25-17.804-20.229 0-18.024 12.596-28.541 34.217-28.541 2.208 0 5.042.199 7.941.57.604-2.441.763-3.488.763-4.801 0-4.908-3.396-6.737-12.5-6.737-9.533-.108-17.396 2.271-20.625 3.333.204-1.229 2.7-16.659 2.7-16.659 9.712-2.846 16.116-3.917 23.325-3.917 16.732 0 25.596 7.513 25.579 21.712.033 3.805-.597 8.5-1.579 14.671-1.691 10.734-5.32 33.721-5.816 39.325zm-62.158 0h-19.487l11.162-69.997-24.925 69.997h-13.279l-1.642-69.597-11.733 69.597h-18.242l15.237-91.056h28.021l1.7 50.968 17.092-50.968h31.167zm354.97-32.996c-2.037-.238-2.941-.301-4.342-.301-11.041 0-16.634 3.787-16.634 11.268 0 4.611 2.726 7.545 6.983 7.545 7.94 0 13.664-7.559 13.993-18.512zm14.184 32.996h-16.146l.366-7.676c-4.926 6.065-11.5 8.949-20.422 8.949-10.565 0-17.8-8.25-17.8-20.229 0-18.024 12.588-28.541 34.213-28.541 2.208 0 5.037.199 7.934.57.604-2.441.763-3.488.763-4.801 0-4.908-3.392-6.737-12.496-6.737-9.533-.108-17.387 2.271-20.629 3.333.204-1.229 2.709-16.659 2.709-16.659 9.712-2.846 16.112-3.917 23.313-3.917 16.74 0 25.604 7.513 25.587 21.712.032 3.805-.597 8.5-1.579 14.671-1.684 10.734-5.321 33.721-5.813 39.325zm-220.39-1.125c-5.333 1.679-9.491 2.398-14 2.398-9.962 0-15.399-5.725-15.399-16.267-.142-3.271 1.433-11.88 2.671-19.737 1.125-6.917 8.449-50.529 8.449-50.529h19.371l-2.263 11.208h11.699l-2.642 17.796h-11.742c-2.25 14.083-5.454 31.625-5.491 33.95 0 3.816 2.037 5.483 6.671 5.483 2.221 0 3.94-.227 5.254-.7zm59.392-.6c-6.654 2.034-13.075 3.017-19.879 3-21.684-.021-32.987-11.346-32.987-33.032 0-25.313 14.38-43.947 33.899-43.947 15.971 0 26.171 10.433 26.171 26.796 0 5.429-.7 10.729-2.388 18.212h-38.574c-1.305 10.741 5.57 15.217 16.837 15.217 6.935 0 13.188-1.429 20.142-4.663zm-10.888-43.9c.107-1.543 2.055-13.217-9.013-13.217-6.171 0-10.583 4.704-12.38 13.217zm-123.42-5.017c0 9.367 4.542 15.826 14.842 20.676 7.892 3.709 9.112 4.81 9.112 8.17 0 4.617-3.479 6.701-11.191 6.701-5.813 0-11.221-.908-17.458-2.922 0 0-2.563 16.321-2.68 17.102 4.43.967 8.38 1.861 20.279 2.19 20.563 0 30.059-7.829 30.059-24.75 0-10.175-3.976-16.146-13.737-20.634-8.171-3.75-9.108-4.587-9.108-8.045 0-4.004 3.237-6.046 9.537-6.046 3.825 0 9.05.408 14 1.112l2.775-17.175c-5.046-.8-12.696-1.442-17.15-1.442-21.801.001-29.347 11.388-29.28 25.063m229.09-23.116c5.412 0 10.458 1.421 17.412 4.921l3.188-19.763c-2.854-1.121-12.904-7.7-21.417-7.7-13.041 0-24.065 6.471-31.82 17.15-11.309-3.746-15.958 3.825-21.657 11.367l-5.063 1.179c.383-2.483.729-4.95.612-7.446h-17.896c-2.445 22.917-6.778 46.128-10.171 69.075l-.884 4.976h19.496c3.254-21.143 5.037-34.68 6.121-43.842l7.341-4.084c1.097-4.078 4.529-5.458 11.417-5.291-.926 5.008-1.389 10.091-1.383 15.184 0 24.225 13.07 39.308 34.05 39.308 5.404 0 10.041-.712 17.221-2.658l3.43-20.759c-6.458 3.181-11.759 4.677-16.559 4.677-11.329 0-18.184-8.363-18.184-22.185 0-20.051 10.196-34.109 24.746-34.109" + /> + fill="#fff" + /> + d="m647.52 211.6-4.321 26.309c-5.329-7.013-11.054-12.088-18.612-12.088-9.833 0-18.783 7.455-24.642 18.425-8.158-1.692-16.597-4.563-16.597-4.563l-.004.067c.658-6.134.921-9.875.862-11.146h-17.9c-2.438 22.917-6.771 46.128-10.157 69.075l-.893 4.976h19.492c2.633-17.096 4.648-31.291 6.133-42.551 6.658-6.016 9.992-11.266 16.721-10.916-2.979 7.205-4.725 15.503-4.725 24.017 0 18.513 9.366 30.725 23.533 30.725 7.142 0 12.621-2.462 17.967-8.171l-.913 6.884h18.435l14.842-91.042zm-24.371 73.941c-6.634 0-9.983-4.908-9.983-14.596 0-14.555 6.271-24.875 15.112-24.875 6.695 0 10.32 5.104 10.32 14.509.001 14.679-6.37 24.962-15.449 24.962z" + /> + fill="#fff" + /> + fill="#2557d6" + /> + fill="#fff" + /> + fill="#d9222a" + /> + fill="#0097d0" + /> + d="m666.07 350.04c0-3.2 2.596-5.796 5.801-5.796 3.199.002 5.792 2.596 5.791 5.796 0 3.204-2.592 5.8-5.791 5.8-3.203.001-5.801-2.596-5.801-5.8zm5.801 4.408c2.43.001 4.401-1.968 4.403-4.397v-.011c0-2.427-1.967-4.396-4.395-4.396h-.009c-2.43-.006-4.404 1.961-4.409 4.391v.005c-.001 2.434 1.971 4.407 4.404 4.408zm-.788-1.862h-1.184v-5.092h2.149c.446 0 .904.004 1.3.258.417.283.646.775.646 1.271 0 .582-.338 1.111-.88 1.315l.934 2.246h-1.315l-.775-2.009h-.875zm0-2.879h.658c.246 0 .505.016.726-.102.191-.136.304-.357.301-.592-.01-.207-.116-.397-.288-.513-.212-.125-.541-.101-.763-.101h-.634zm-283.64-51.205c-7.671 2.033-15.088 3.025-22.93 3.01-25.017-.024-38.046-11.418-38.046-33.201 0-25.458 16.587-44.183 39.101-44.183 18.417 0 30.175 10.5 30.175 26.946 0 5.458-.796 10.771-2.745 18.296h-44.488c-1.583 10.633 6.188 15.306 19.413 15.306 7.925 0 15.092-1.427 23.024-4.613zm-11.963-44.151c0-1.607 2.476-13.033-10.399-13.283-7.108 0-12.208 4.725-14.271 13.283zm27.034-4.99c0 9.404 5.296 15.9 17.329 20.736 9.199 3.771 10.649 4.859 10.649 8.222 0 4.663-4.066 6.805-13.092 6.745-6.778-.049-12.962-.87-20.263-2.896l-3.229 17.154c6.487 1.504 15.588 2 23.649 2.188 24.024 0 35.116-7.867 35.116-24.867 0-10.217-4.625-16.233-16.033-20.713-9.537-3.809-10.657-4.638-10.657-8.083 0-4.05 3.778-6.1 11.148-6.1 4.463 0 10.579.413 16.38 1.108l3.259-17.242c-5.912-.825-14.884-1.483-20.075-1.483-25.448.001-34.256 11.46-34.181 25.231m-88.242 50.92h-18.662l.445-7.82c-5.691 6.17-13.271 9.041-23.558 9.041-12.175 0-20.517-8.324-20.517-20.295 0-18.195 14.5-28.691 39.429-28.691 2.563 0 5.821.191 9.167.562.691-2.434.879-3.479.879-4.808 0-4.979-3.921-6.813-14.412-6.813-10.342.042-17.321 1.571-23.796 3.313l3.188-16.7c11.195-2.846 18.529-3.941 26.825-3.941 19.304 0 29.499 7.566 29.499 21.796.167 3.795-1.158 11.413-1.82 14.746-.759 4.852-6.109 32.973-6.667 39.61zm-16.379-33.191c-2.366-.242-3.396-.312-5.013-.312-12.729 0-19.183 3.787-19.183 11.267 0 4.692 3.149 7.634 8.058 7.634 9.147-.001 15.75-7.652 16.138-18.589zm194.11 32.011c-6.125 1.68-10.896 2.408-16.059 2.408-11.435 0-17.676-5.842-17.676-16.25-.357-2.857 2.435-16.059 3.066-19.736.634-3.691 10.538-57.492 10.538-57.492h22.212l-3.362 17.8h11.393l-3.097 18.171h-11.44s-6.279 31.529-6.279 33.934c0 3.824 2.316 5.487 7.633 5.487 2.546 0 4.51-.237 6.029-.692zm99.246-74.974c-16.279 0-29 6.7-36.388 17.892l6.412-16.596c-11.816-4.337-19.435 1.85-26.325 10.65 0 0-1.154 1.462-2.3 2.8v-13.05h-20.858c-2.825 23.029-7.82 46.379-11.729 69.446l-.941 5.021h22.438c2.125-11.708 3.875-21.213 5.617-28.788 4.768-20.787 12.787-27.141 24.829-24.333-2.779 5.979-4.305 12.892-4.305 20.554 0 18.58 10.092 33.789 35.149 33.789 25.287 0 43.597-13.51 43.597-44.31 0-18.579-12.201-33.075-35.196-33.075zm-6.529 59.316c-7.926.125-12.729-6.524-12.729-16.471 0-11.791 7.013-25.112 18.274-25.112 9.087 0 12.199 7.204 12.199 14.879.001 16.78-6.874 26.704-17.744 26.704zm-343.19 16.847h-22.342l13.279-69.954-30.571 69.954h-20.366l-3.726-69.55-13.32 69.55h-20.271l17.267-90.996h34.913l2.912 50.726 22.117-50.726h37.721z" + /> + fill="#fff" + /> + fill="#f47216" + /> + d="m321.43 197.94c8.836 0 16.247 1.785 25.27 6.09v22.753c-8.544-7.863-15.955-11.154-25.757-11.154-19.265 0-34.413 15.015-34.413 34.051 0 20.074 14.681 34.195 35.368 34.195 9.312 0 16.586-3.12 24.802-10.856v22.764c-9.343 4.142-16.912 5.775-25.757 5.775-31.277 0-55.581-22.597-55.581-51.736-.002-28.83 24.949-51.882 56.068-51.882zm-97.113.626c11.546 0 22.109 3.721 30.942 10.994l-10.748 13.248c-5.351-5.646-10.411-8.027-16.563-8.027-8.854 0-15.301 4.744-15.301 10.988 0 5.354 3.618 8.188 15.944 12.481 23.364 8.043 30.289 15.176 30.289 30.926 0 19.193-14.976 32.554-36.319 32.554-15.631 0-26.993-5.795-36.457-18.871l13.268-12.03c4.73 8.608 12.622 13.223 22.42 13.223 9.163 0 15.947-5.95 15.947-13.983 0-4.164-2.056-7.733-6.158-10.258-2.066-1.195-6.158-2.978-14.199-5.646-19.292-6.538-25.91-13.527-25.91-27.186-.001-16.227 14.213-28.413 32.845-28.413zm234.72 1.729h22.436l28.084 66.592 28.447-66.592h22.267l-45.493 101.69h-11.054zm-301.21.152h20.541v99.143h-20.541zm411.73 0h58.253v16.799h-37.726v22.006h36.336v16.791h-36.336v26.762h37.726v16.785h-58.253zm115.59 57.377c15.471-2.965 23.983-12.926 23.983-28.105 0-18.562-13.575-29.271-37.266-29.271h-30.454v99.144h20.516v-39.83h2.681l28.43 39.828h25.26zm-17.218-11.736h-6.002v-30.025h6.326c12.791 0 19.744 5.049 19.744 14.697.002 9.967-6.951 15.328-20.068 15.328zm-576.09-45.641h-30.149v99.143h29.992c15.946 0 27.465-3.543 37.573-11.445 12.014-9.359 19.117-23.467 19.117-38.057.001-29.259-23.221-49.641-56.533-49.641zm23.997 74.479c-6.454 5.484-14.837 7.879-28.108 7.879h-5.514v-65.559h5.513c13.271 0 21.323 2.238 28.108 8.018 7.104 5.956 11.377 15.184 11.377 24.682.001 9.513-4.273 19.024-11.376 24.98z" + /> + fill="#fff" + /> + fill="#0079be" + /> + fill="#fff" + /> - + d="M0 8v-2c0-1.104.896-2 2-2h20c1.104 0 2 .896 2 2v2h-24zm24 3v7c0 1.104-.896 2-2 2h-20c-1.104 0-2-.896-2-2v-7h24zm-15 5h-6v1h6v-1zm3-2h-9v1h9v-1zm9 0h-3v1h3v-1z" + /> + fill="#0099FF" + /> + fill="#1585D8" + /> + fill="#354052" + /> + fill="#354052" + /> - + - + + fill="#354052" + /> + fill="#354052" + /> - + - + - + - - + - + - - + C512,87.407,492.86,68.267,469.333,68.267z" + /> + + - - + + fill="#0A0B09" + > - - + + fill="#000" + > - + + fill="black" + /> - + + fill="#022DBA" + /> + fill="#70BAF7" + /> + fill="currentColor" + /> - + fill="#70BAF7" + /> - + + fill="black" + /> + fill="black" + /> + fill="black" + /> + fill="black" + /> - - + + stroke="#82AED3" + stroke-width="2" + /> - - + stroke="#81D3EE" + stroke-width="2" + /> + + - - - - - + stroke="#FF8080" + stroke-width="2" + /> + + + + + - + stroke="#FFC282" + stroke-width="2" + /> + + fill="white" + /> + fill="#02A7DD" + /> + fill="#FFBD00" + /> + fill="white" + /> + fill="#FF8504" + /> + fill="#FF0000" + /> + fill="#055CA7" + /> - - - + + fill="white" + /> + fill="white" + > + fill="#4A4AF4" + > + fill="#060809" + > - - - - - - - - - - + + + + + + + + + + + fill="currentColor" + > + fill="currentFill" + > - + + fill="currentColor" + /> + fill="currentColor" + > @@ -324,146 +492,266 @@ License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL + fill="#0a0b09" + /> - + fill="black" + > + fill="white" + /> - + - - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + + fill="#016FD0" + /> - + - + + fill="#0F549D" + /> + fill="#B41F36" + /> + fill="#329947" + /> + fill="#329947" + /> + fill="#329947" + /> - - - + - + fill="currentFill" + /> - + fill="#979797" + /> - + fill="#979797" + /> - + + fill="white" + /> + fill="white" + /> - - + + fill="#979797" + /> - + + fill="white" + /> - - - + fill="white" + /> + + + + d="M18.5 12C19.4283 12 20.3185 12.3687 20.9749 13.0251C21.6313 13.6815 22 14.5717 22 15.5C22 16.4283 21.6313 17.3185 20.9749 17.9749C20.3185 18.6313 19.4283 19 18.5 19C17.5717 19 16.6815 18.6313 16.0251 17.9749C15.3687 17.3185 15 16.4283 15 15.5C15 14.5717 15.3687 13.6815 16.0251 13.0251C16.6815 12.3687 17.5717 12 18.5 12ZM18.5 13.5C18.4365 13.4999 18.3737 13.5131 18.3156 13.5387C18.2575 13.5643 18.2054 13.6017 18.1626 13.6486C18.1198 13.6954 18.0872 13.7507 18.067 13.8109C18.0467 13.8711 18.0392 13.9348 18.045 13.998L18.2275 16.001C18.2346 16.0683 18.2663 16.1307 18.3167 16.176C18.367 16.2213 18.4323 16.2464 18.5 16.2464C18.5677 16.2464 18.633 16.2213 18.6833 16.176C18.7337 16.1307 18.7654 16.0683 18.7725 16.001L18.9545 13.998C18.9603 13.9348 18.9528 13.8711 18.9326 13.811C18.9124 13.7509 18.8798 13.6956 18.8371 13.6488C18.7943 13.6019 18.7422 13.5645 18.6842 13.5389C18.6262 13.5133 18.5634 13.5 18.5 13.5ZM18.5 17.5C18.6061 17.5 18.7078 17.4579 18.7828 17.3828C18.8579 17.3078 18.9 17.2061 18.9 17.1C18.9 16.9939 18.8579 16.8922 18.7828 16.8172C18.7078 16.7421 18.6061 16.7 18.5 16.7C18.3939 16.7 18.2922 16.7421 18.2172 16.8172C18.1421 16.8922 18.1 16.9939 18.1 17.1C18.1 17.2061 18.1421 17.3078 18.2172 17.3828C18.2922 17.4579 18.3939 17.5 18.5 17.5Z" + /> @@ -473,98 +761,155 @@ License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL - - - + + - + - + - + - + + fill="#293267" + /> - - - + + fill="currentColor" + /> + fill="currentColor" + /> + fill="currentColor" + /> + fill="currentColor" + /> + fill="currentColor" + /> + fill="currentColor" + /> + fill="currentColor" + /> - + fill="currentColor" + /> + + fill="currentColor" + /> + fill="currentColor" + /> + fill="currentColor" + /> - - + + fill="white" + /> - + + fill="black" + /> + fill="black" + /> + fill="black" + /> + fill="black" + /> + fill="black" + /> + fill="black" + /> @@ -576,52 +921,90 @@ License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL + fill="#E72242" + stroke="#E72242" + stroke-width="0.97" + stroke-miterlimit="10" + /> + fill="#A9ABAA" + stroke="#A9ABAA" + stroke-width="0.97" + stroke-miterlimit="10" + /> + fill="#A9ABAA" + stroke="#A9ABAA" + stroke-width="0.97" + stroke-miterlimit="10" + /> + fill="#A9ABAA" + /> + fill="#A9ABAA" + /> + fill="#A9ABAA" + /> + fill="#A9ABAA" + /> + fill="#A9ABAA" + /> - + - + + fill="#f7931a" + > + fill="#ffffff" + > - + - + fill="#fff" + /> + fill="#1AAD19" + /> @@ -630,51 +1013,97 @@ License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL - + + fill="#1C9FE5" + /> - - + - - - - - - - - - - + + + + + + - + - - + - - - - - - + + + @@ -683,41 +1112,70 @@ License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL - - - - + + - - - - - - - - - + + + + + - - + - - - - - - + + + @@ -726,18 +1184,28 @@ License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL - - + - - - - - + + + @@ -746,360 +1214,729 @@ License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL - - - + - + - - - - - - - - - - - - + fill="#4A49EB" + /> + + + + + + + + + + + + - - + - + + fill="#FF0007" + /> - - - - - - + + + + - + fill="white" + /> + fill="black" + /> + fill="black" + /> + fill="#D50072" + /> - - + + + fill="#71706F" + /> - + + fill="#71706F" + /> - + + fill="#C8036F" + /> - + + fill="#C8036F" + /> - + + fill="#C8036F" + /> - + + fill="#71706F" + /> - + + fill="#71706F" + /> - + + fill="#71706F" + /> - + + fill="#71706F" + /> - + + fill="#71706F" + /> - + + fill="#71706F" + /> - + + fill="#71706F" + /> - + + fill="#71706F" + /> - + + fill="#71706F" + /> - + + fill="#71706F" + /> - + + fill="#71706F" + /> - + + fill="#0070ff" + /> - + + fill="#0070ff" + /> - + + fill="#0070ff" + /> - - + + + stroke="#090A38" + stroke-miterlimit="10" + stroke-linecap="round" + stroke-linejoin="round" + /> + stroke="#090A38" + stroke-miterlimit="10" + stroke-linecap="round" + stroke-linejoin="round" + /> + fill="#006DF9" + /> + fill="#838383" + /> - + + stroke="currentColor" + stroke-miterlimit="10" + stroke-linecap="round" + stroke-linejoin="round" + /> + stroke="currentColor" + stroke-miterlimit="10" + stroke-linecap="round" + stroke-linejoin="round" + /> + fill="currentColor" + /> - + + fill="currentColor" + /> - - - + + + - + + fill="currentColor" + fill-opacity="0.8" + /> - - + stroke="currentColor" + stroke-opacity="0.8" + stroke-width="0.8" + /> + + + fill="#F9BB2C" + /> + fill="#FBDA5D" + /> + fill="#7083EB" + /> + fill="#4C61E4" + /> - + - - + fill="currentColor" + /> + + - - - + - + - + + fill="#FFCC02" + > + fill="white" + /> + fill="white" + /> + fill="white" + /> + fill="white" + /> + fill="white" + /> + fill="white" + /> + fill="white" + /> + fill="white" + /> + fill="white" + /> - - + fill="white" + /> + + + fill="currentColor" + /> @@ -1108,81 +1945,136 @@ License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL - + + d="M10250 19623 c-1386 -111 -2547 -1090 -2884 -2431 -34 -137 -1413 -7926 -1443 -8152 -19 -145 -13 -489 11 -630 21 -122 59 -271 97 -385 41 -119 173 -387 246 -500 372 -567 976 -941 1649 -1020 106 -12 297 -15 1097 -15 l969 0 -6 -27 c-27 -128 -476 -2706 -472 -2710 3 -3 29 20 58 51 29 30 856 875 1838 1876 982 1002 1786 1825 1788 1831 2 5 -511 950 -1140 2099 -824 1507 -1145 2086 -1150 2073 -4 -10 -129 -711 -278 -1558 -149 -847 -273 -1552 -276 -1568 l-6 -27 -952 0 c-592 0 -974 4 -1007 10 -241 45 -416 289 -379 528 55 347 1365 7736 1381 7788 31 102 110 248 183 340 116 148 281 265 460 329 194 70 36 66 2641 62 2475 -3 2382 -2 2609 -48 501 -104 796 -381 898 -844 26 -118 35 -416 18 -581 -12 -123 -453 -2656 -515 -2960 -168 -828 -496 -1220 -1157 -1383 -227 -56 -554 -88 -810 -79 -76 3 -136 2 -134 -1 45 -93 2423 -4431 2428 -4431 14 0 238 222 318 315 322 376 543 799 663 1270 33 127 1299 7270 1327 7485 31 238 23 585 -21 845 -109 657 -464 1291 -966 1728 -431 374 -925 602 -1518 700 l-130 22 -2695 1 c-1482 0 -2715 -1 -2740 -3z" + /> + d="M11596 15603 c-3 -16 -87 -489 -186 -1053 -99 -564 -183 -1037 -186 -1052 l-6 -28 974 0 c1094 0 1048 -3 1110 70 19 21 42 63 51 92 9 29 84 454 167 943 156 919 163 973 127 1013 -38 41 -56 42 -1070 42 l-975 0 -6 -27z" + /> - + + id="Fill-8" + /> + id="Fill-1" + /> + id="Fill-4" + /> + id="Fill-6" + /> + id="Fill-11" + /> + id="Fill-13" + /> + id="Fill-16" + /> + id="Fill-19" + /> + id="Fill-21" + /> + id="Fill-23" + /> + id="Fill-26" + /> - - - + + + - - - + + + - - - - + + + + @@ -1190,32 +2082,143 @@ License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL + d="M15.15 12.5H13v5.49h.855v-1.873h1.269c1.079 0 1.839-.742 1.839-1.813S16.21 12.5 15.15 12.5zm-.225 2.9h-1.07v-2.183h1.07c.743 0 1.166.405 1.166 1.096 0 .69-.432 1.088-1.166 1.088zM18.983 13.804c-.924 0-1.615.535-1.64 1.269h.768c.069-.354.397-.587.846-.587.544 0 .863.259.863.733v.32l-1.114.06c-1.018.07-1.58.484-1.58 1.209 0 .734.57 1.226 1.408 1.217.561 0 1.079-.285 1.303-.734h.018v.691h.785V15.15c0-.811-.647-1.346-1.657-1.346zm.837 2.633c0 .544-.466.932-1.07.94-.475 0-.786-.224-.786-.578 0-.371.294-.578.855-.613l1.001-.069v.32zM23.075 17.222h-.017l-1.062-3.375h-.89l1.503 4.144-.06.215c-.139.44-.363.605-.752.605-.069 0-.198 0-.259-.017v.673c.07.009.268.026.328.017.846 0 1.235-.32 1.589-1.312L25 13.847h-.863l-1.062 3.375z" + /> + d="M28 4H2C.897 4 0 4.897 0 6v18c0 1.103.897 2 2 2h26c1.103 0 2-.897 2-2V6c0-1.103-.897-2-2-2zm1 20c0 .551-.449 1-1 1H2c-.551 0-1-.449-1-1V6c0-.551.449-1 1-1h26c.551 0 1 .449 1 1v18z" + /> + d="M10.44 14.25c-.01-1.011.827-1.499.865-1.522-.47-.689-1.202-.783-1.463-.794-.623-.062-1.216.367-1.532.367-.315 0-.804-.357-1.32-.347-.68.01-1.305.394-1.655 1.002-.705 1.225-.18 3.038.507 4.031.336.485.737 1.032 1.263 1.012.507-.02.698-.327 1.31-.327.613 0 .785.327 1.321.317.545-.01.891-.495 1.225-.982.385-.564.544-1.11.553-1.139-.012-.004-1.063-.407-1.074-1.618zM9.85 10c-.403.016-.89.269-1.179.606-.259.3-.486.779-.424 1.238.449.035.907-.228 1.187-.566.28-.339.467-.81.416-1.278z" + /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + diff --git a/src/BrutalTheme.res b/src/BrutalTheme.res index bf897d61a..723960679 100644 --- a/src/BrutalTheme.res +++ b/src/BrutalTheme.res @@ -38,6 +38,14 @@ let brutal = { colorIconCardError: "#ff1a1a", spacingGridColumn: "20px", spacingGridRow: "20px", + buttonBackgroundColor: "#f5fb1f", + buttonHeight: "48px", + buttonWidth: "thin", + buttonBorderRadius: "6px", + buttonBorderColor: "#566186", + buttonTextColor: "#000000", + buttonTextFontSize: "16px", + buttonTextFontWeight: "500", } let brutalRules = (theme: CardThemeType.themeClass) => { diff --git a/src/CardTheme.res b/src/CardTheme.res index 28c3d6dab..bc0e74bff 100644 --- a/src/CardTheme.res +++ b/src/CardTheme.res @@ -128,6 +128,14 @@ let getVariables = (str, dict, default, logger) => { "spacingGridColumn", "spacingGridRow", "spacingAccordionItem", + "buttonBackgroundColor", + "buttonHeight", + "buttonWidth", + "buttonBorderRadius", + "buttonBorderColor", + "buttonTextColor", + "buttonTextFontSize", + "buttonTextFontWeight", ] unknownKeysWarning(validKeys, json, "appearance.variables", ~logger) { @@ -244,6 +252,39 @@ let getVariables = (str, dict, default, logger) => { ~logger, ), spacingGridRow: getWarningString(json, "spacingGridRow", default.spacingGridRow, ~logger), + buttonBackgroundColor: getWarningString( + json, + "buttonBackgroundColor", + default.spacingGridRow, + ~logger, + ), + buttonHeight: getWarningString(json, "buttonHeight", default.spacingGridRow, ~logger), + buttonWidth: getWarningString(json, "buttonWidth", default.spacingGridRow, ~logger), + buttonBorderRadius: getWarningString( + json, + "buttonBorderRadius", + default.spacingGridRow, + ~logger, + ), + buttonBorderColor: getWarningString( + json, + "buttonBorderColor", + default.spacingGridRow, + ~logger, + ), + buttonTextColor: getWarningString(json, "buttonTextColor", default.spacingGridRow, ~logger), + buttonTextFontSize: getWarningString( + json, + "buttonTextFontSize", + default.spacingGridRow, + ~logger, + ), + buttonTextFontWeight: getWarningString( + json, + "buttonTextFontWeight", + default.spacingGridRow, + ~logger, + ), } }) ->Belt.Option.getWithDefault(default) diff --git a/src/CardUtils.res b/src/CardUtils.res index 9784d253b..4419c4cc3 100644 --- a/src/CardUtils.res +++ b/src/CardUtils.res @@ -316,28 +316,28 @@ let calculateLuhn = value => { let getCardBrandIcon = (cardType, paymentType) => { open CardThemeType switch cardType { - | VISA => - | MASTERCARD => - | AMEX => - | MAESTRO => - | DINERSCLUB => - | DISCOVER => - | BAJAJ => - | SODEXO => - | RUPAY => - | JCB => - | CARTESBANCAIRES => - | UNIONPAY => - | INTERAC => + | VISA => + | MASTERCARD => + | AMEX => + | MAESTRO => + | DINERSCLUB => + | DISCOVER => + | BAJAJ => + | SODEXO => + | RUPAY => + | JCB => + | CARTESBANCAIRES => + | UNIONPAY => + | INTERAC => | NOTFOUND => switch paymentType { - | Payment => + | Payment => | Card | CardNumberElement | CardExpiryElement | CardCVCElement | NONE => - + } } } @@ -640,15 +640,15 @@ let getCvcDetailsFromCvcProps = cvcProps => { let setRightIconForCvc = (~cardEmpty, ~cardInvalid, ~color, ~cardComplete) => { if cardEmpty { - + } else if cardInvalid {
- +
} else if cardComplete { - + } else { - + } } diff --git a/src/CharcoalTheme.res b/src/CharcoalTheme.res index 32a755ed1..d42347b9f 100644 --- a/src/CharcoalTheme.res +++ b/src/CharcoalTheme.res @@ -38,6 +38,14 @@ let charcoal = { colorIconCardError: "#fd1717", spacingGridColumn: "20px", spacingGridRow: "20px", + buttonBackgroundColor: "#000000", + buttonHeight: "48px", + buttonWidth: "thin", + buttonBorderRadius: "6px", + buttonBorderColor: "#000000", + buttonTextColor: "#ffffff", + buttonTextFontSize: "16px", + buttonTextFontWeight: "500", } let charcoalRules = theme => diff --git a/src/Components/AnimatedCheckbox.res b/src/Components/AnimatedCheckbox.res index cc7e6d429..7a6fd1726 100644 --- a/src/Components/AnimatedCheckbox.res +++ b/src/Components/AnimatedCheckbox.res @@ -49,7 +49,7 @@ let make = (~isChecked, ~setIsChecked) => {