@transferwise/components 0.0.0-experimental-5a966ec → 0.0.0-experimental-22a796c

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.
@@ -1,4 +1,4 @@
1
- import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import{useState}from"react";import PromoCard,{Variant}from"./PromoCard";import{jsx as _jsx}from"react/jsx-runtime";export default{component:PromoCard,title:"Feedback/PromoCard"};export var Default=function(){var a=useState(0),b=_slicedToArray(a,2),c=b[0],d=b[1],e=/*#__PURE__*/_jsx(PromoCard,{id:"1",title:"DIGITAL Venue alert",selected:1===c,variant:Variant.LINK,description:"A card that lives online and works anywhere. Easy, secure.",imageSource:// eslint-disable-next-line compat/compat
1
+ import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import{useState}from"react";import PromoCard,{Variant}from"./PromoCard";import{jsx as _jsx}from"react/jsx-runtime";export default{component:PromoCard,title:"Layouts/PromoCard"};export var Default=function(){var a=useState(0),b=_slicedToArray(a,2),c=b[0],d=b[1],e=/*#__PURE__*/_jsx(PromoCard,{id:"1",title:"DIGITAL Venue alert",selected:1===c,variant:Variant.LINK,description:"A card that lives online and works anywhere. Easy, secure.",imageSource:// eslint-disable-next-line compat/compat
2
2
  new URL("https://wise.com/web-art/assets/illustrations/digital-card-2-medium@1x.webp"),animateHover:!0,disabled:!0,onClick:function onClick(){d(1===c?0:1)}}),f=/*#__PURE__*/_jsx(PromoCard,{id:"2",title:"DIGITAL",selected:2===c,variant:Variant.SELECT,description:"A card that lives online and works anywhere.",keyFeature:"7 GBP"// eslint-disable-next-line compat/compat
3
3
  ,imageSource:new URL("https://wise.com/web-art/assets/illustrations/bell-medium@1x.webp"),animateHover:!0,onClick:function onClick(){d(2===c?0:2)}}),g=/*#__PURE__*/_jsx(PromoCard,{id:"3",title:"DIGITAL Venue",selected:3===c,variant:Variant.LINK,description:"A card that lives online and works anywhere. Easy, secure, and always on hand.",keyFeature:"7 GBP"// eslint-disable-next-line compat/compat
4
- ,imageSource:new URL("https://wise.com/web-art/assets/illustrations/globe-medium@1x.webp"),animateHover:!0,onClick:function onClick(){console.log("navigate to url")},onClose:function onClose(){console.log("close")}});return/*#__PURE__*/_jsx("div",{style:{display:"flex",justifyContent:"stretch",gap:"var(--size-24)"},children:[e,f,g]})};
4
+ ,imageSource:new URL("https://wise.com/web-art/assets/illustrations/globe-medium@1x.webp"),animateHover:!0,onClick:function onClick(){console.log("navigate to url")},onClose:function onClose(){console.log("close")}});return/*#__PURE__*/_jsx("div",{style:{display:"flex",justifyContent:"stretch",gap:"var(--size-24)",maxWidth:"1400px"},children:[e,f,g]})};
@@ -1,4 +1,4 @@
1
- import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/web.url.js";import"core-js/modules/web.url-search-params.js";import{useState}from"react";import PromoCard,{Variant}from"./PromoCard";import{jsx as _jsx}from"react/jsx-runtime";export default{component:PromoCard,title:"Feedback/PromoCard"};export var Default=function(){var a=useState(0),b=_slicedToArray(a,2),c=b[0],d=b[1],e=/*#__PURE__*/_jsx(PromoCard,{id:"1",title:"DIGITAL Venue alert",selected:1===c,variant:Variant.LINK,description:"A card that lives online and works anywhere. Easy, secure.",imageSource:// eslint-disable-next-line compat/compat
1
+ import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/web.url.js";import"core-js/modules/web.url-search-params.js";import{useState}from"react";import PromoCard,{Variant}from"./PromoCard";import{jsx as _jsx}from"react/jsx-runtime";export default{component:PromoCard,title:"Layouts/PromoCard"};export var Default=function(){var a=useState(0),b=_slicedToArray(a,2),c=b[0],d=b[1],e=/*#__PURE__*/_jsx(PromoCard,{id:"1",title:"DIGITAL Venue alert",selected:1===c,variant:Variant.LINK,description:"A card that lives online and works anywhere. Easy, secure.",imageSource:// eslint-disable-next-line compat/compat
2
2
  new URL("https://wise.com/web-art/assets/illustrations/digital-card-2-medium@1x.webp"),animateHover:!0,disabled:!0,onClick:function onClick(){d(1===c?0:1)}}),f=/*#__PURE__*/_jsx(PromoCard,{id:"2",title:"DIGITAL",selected:2===c,variant:Variant.SELECT,description:"A card that lives online and works anywhere.",keyFeature:"7 GBP"// eslint-disable-next-line compat/compat
3
3
  ,imageSource:new URL("https://wise.com/web-art/assets/illustrations/bell-medium@1x.webp"),animateHover:!0,onClick:function onClick(){d(2===c?0:2)}}),g=/*#__PURE__*/_jsx(PromoCard,{id:"3",title:"DIGITAL Venue",selected:3===c,variant:Variant.LINK,description:"A card that lives online and works anywhere. Easy, secure, and always on hand.",keyFeature:"7 GBP"// eslint-disable-next-line compat/compat
4
- ,imageSource:new URL("https://wise.com/web-art/assets/illustrations/globe-medium@1x.webp"),animateHover:!0,onClick:function onClick(){console.log("navigate to url")},onClose:function onClose(){console.log("close")}});return/*#__PURE__*/_jsx("div",{style:{display:"flex",justifyContent:"stretch",gap:"var(--size-24)"},children:[e,f,g]})};
4
+ ,imageSource:new URL("https://wise.com/web-art/assets/illustrations/globe-medium@1x.webp"),animateHover:!0,onClick:function onClick(){console.log("navigate to url")},onClose:function onClose(){console.log("close")}});return/*#__PURE__*/_jsx("div",{style:{display:"flex",justifyContent:"stretch",gap:"var(--size-24)",maxWidth:"1400px"},children:[e,f,g]})};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-5a966ec",
3
+ "version": "0.0.0-experimental-22a796c",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/umd/polyfill/main.js",