@wise/art 0.0.1
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/README.md +1 -0
- package/dist/Illustration.css +4 -0
- package/dist/common.d.ts +7 -0
- package/dist/illustrations/Illustration.d.ts +12 -0
- package/dist/illustrations/Illustration.stories.d.ts +18 -0
- package/dist/illustrations/assets/bell-large@1x.webp +0 -0
- package/dist/illustrations/assets/bell-large@2x.webp +0 -0
- package/dist/illustrations/assets/bell-medium@1x.webp +0 -0
- package/dist/illustrations/assets/bell-medium@2x.webp +0 -0
- package/dist/illustrations/assets/bell-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/bell-small@1x.webp +0 -0
- package/dist/illustrations/assets/bell-small@2x.webp +0 -0
- package/dist/illustrations/assets/bell-small@3x.webp +0 -0
- package/dist/illustrations/assets/bell-small@4x.webp +0 -0
- package/dist/illustrations/assets/briefcase-large@1x.webp +0 -0
- package/dist/illustrations/assets/briefcase-large@2x.webp +0 -0
- package/dist/illustrations/assets/briefcase-medium@1x.webp +0 -0
- package/dist/illustrations/assets/briefcase-medium@2x.webp +0 -0
- package/dist/illustrations/assets/briefcase-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/briefcase-small@1x.webp +0 -0
- package/dist/illustrations/assets/briefcase-small@2x.webp +0 -0
- package/dist/illustrations/assets/briefcase-small@3x.webp +0 -0
- package/dist/illustrations/assets/briefcase-small@4x.webp +0 -0
- package/dist/illustrations/assets/calendar-large@1x.webp +0 -0
- package/dist/illustrations/assets/calendar-large@2x.webp +0 -0
- package/dist/illustrations/assets/calendar-medium@1x.webp +0 -0
- package/dist/illustrations/assets/calendar-medium@2x.webp +0 -0
- package/dist/illustrations/assets/calendar-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/calendar-small@1x.webp +0 -0
- package/dist/illustrations/assets/calendar-small@2x.webp +0 -0
- package/dist/illustrations/assets/calendar-small@3x.webp +0 -0
- package/dist/illustrations/assets/calendar-small@4x.webp +0 -0
- package/dist/illustrations/assets/check-mark-large@1x.webp +0 -0
- package/dist/illustrations/assets/check-mark-large@2x.webp +0 -0
- package/dist/illustrations/assets/check-mark-medium@1x.webp +0 -0
- package/dist/illustrations/assets/check-mark-medium@2x.webp +0 -0
- package/dist/illustrations/assets/check-mark-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/check-mark-small@1x.webp +0 -0
- package/dist/illustrations/assets/check-mark-small@2x.webp +0 -0
- package/dist/illustrations/assets/check-mark-small@3x.webp +0 -0
- package/dist/illustrations/assets/check-mark-small@4x.webp +0 -0
- package/dist/illustrations/assets/closed-window-large@1x.webp +0 -0
- package/dist/illustrations/assets/closed-window-large@2x.webp +0 -0
- package/dist/illustrations/assets/closed-window-medium@1x.webp +0 -0
- package/dist/illustrations/assets/closed-window-medium@2x.webp +0 -0
- package/dist/illustrations/assets/closed-window-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/closed-window-small@1x.webp +0 -0
- package/dist/illustrations/assets/closed-window-small@2x.webp +0 -0
- package/dist/illustrations/assets/closed-window-small@3x.webp +0 -0
- package/dist/illustrations/assets/closed-window-small@4x.webp +0 -0
- package/dist/illustrations/assets/coin-pile-large@1x.webp +0 -0
- package/dist/illustrations/assets/coin-pile-large@2x.webp +0 -0
- package/dist/illustrations/assets/coin-pile-medium@1x.webp +0 -0
- package/dist/illustrations/assets/coin-pile-medium@2x.webp +0 -0
- package/dist/illustrations/assets/coin-pile-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/coin-pile-small@1x.webp +0 -0
- package/dist/illustrations/assets/coin-pile-small@2x.webp +0 -0
- package/dist/illustrations/assets/coin-pile-small@3x.webp +0 -0
- package/dist/illustrations/assets/coin-pile-small@4x.webp +0 -0
- package/dist/illustrations/assets/confetti-large@1x.webp +0 -0
- package/dist/illustrations/assets/confetti-large@2x.webp +0 -0
- package/dist/illustrations/assets/confetti-medium@1x.webp +0 -0
- package/dist/illustrations/assets/confetti-medium@2x.webp +0 -0
- package/dist/illustrations/assets/confetti-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/confetti-small@1x.webp +0 -0
- package/dist/illustrations/assets/confetti-small@2x.webp +0 -0
- package/dist/illustrations/assets/confetti-small@3x.webp +0 -0
- package/dist/illustrations/assets/confetti-small@4x.webp +0 -0
- package/dist/illustrations/assets/construction-fence-large@1x.webp +0 -0
- package/dist/illustrations/assets/construction-fence-large@2x.webp +0 -0
- package/dist/illustrations/assets/construction-fence-medium@1x.webp +0 -0
- package/dist/illustrations/assets/construction-fence-medium@2x.webp +0 -0
- package/dist/illustrations/assets/construction-fence-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/construction-fence-small@1x.webp +0 -0
- package/dist/illustrations/assets/construction-fence-small@2x.webp +0 -0
- package/dist/illustrations/assets/construction-fence-small@3x.webp +0 -0
- package/dist/illustrations/assets/construction-fence-small@4x.webp +0 -0
- package/dist/illustrations/assets/convert-large@1x.webp +0 -0
- package/dist/illustrations/assets/convert-large@2x.webp +0 -0
- package/dist/illustrations/assets/convert-medium@1x.webp +0 -0
- package/dist/illustrations/assets/convert-medium@2x.webp +0 -0
- package/dist/illustrations/assets/convert-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/convert-small@1x.webp +0 -0
- package/dist/illustrations/assets/convert-small@2x.webp +0 -0
- package/dist/illustrations/assets/convert-small@3x.webp +0 -0
- package/dist/illustrations/assets/convert-small@4x.webp +0 -0
- package/dist/illustrations/assets/cookie-large@1x.webp +0 -0
- package/dist/illustrations/assets/cookie-large@2x.webp +0 -0
- package/dist/illustrations/assets/cookie-medium@1x.webp +0 -0
- package/dist/illustrations/assets/cookie-medium@2x.webp +0 -0
- package/dist/illustrations/assets/cookie-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/cookie-small@1x.webp +0 -0
- package/dist/illustrations/assets/cookie-small@2x.webp +0 -0
- package/dist/illustrations/assets/cookie-small@3x.webp +0 -0
- package/dist/illustrations/assets/cookie-small@4x.webp +0 -0
- package/dist/illustrations/assets/documents-large@1x.webp +0 -0
- package/dist/illustrations/assets/documents-large@2x.webp +0 -0
- package/dist/illustrations/assets/documents-medium@1x.webp +0 -0
- package/dist/illustrations/assets/documents-medium@2x.webp +0 -0
- package/dist/illustrations/assets/documents-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/documents-small@1x.webp +0 -0
- package/dist/illustrations/assets/documents-small@2x.webp +0 -0
- package/dist/illustrations/assets/documents-small@3x.webp +0 -0
- package/dist/illustrations/assets/documents-small@4x.webp +0 -0
- package/dist/illustrations/assets/door-large@1x.webp +0 -0
- package/dist/illustrations/assets/door-large@2x.webp +0 -0
- package/dist/illustrations/assets/door-medium@1x.webp +0 -0
- package/dist/illustrations/assets/door-medium@2x.webp +0 -0
- package/dist/illustrations/assets/door-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/door-small@1x.webp +0 -0
- package/dist/illustrations/assets/door-small@2x.webp +0 -0
- package/dist/illustrations/assets/door-small@3x.webp +0 -0
- package/dist/illustrations/assets/door-small@4x.webp +0 -0
- package/dist/illustrations/assets/electric-plug-large@1x.webp +0 -0
- package/dist/illustrations/assets/electric-plug-large@2x.webp +0 -0
- package/dist/illustrations/assets/electric-plug-medium@1x.webp +0 -0
- package/dist/illustrations/assets/electric-plug-medium@2x.webp +0 -0
- package/dist/illustrations/assets/electric-plug-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/electric-plug-small@1x.webp +0 -0
- package/dist/illustrations/assets/electric-plug-small@2x.webp +0 -0
- package/dist/illustrations/assets/electric-plug-small@3x.webp +0 -0
- package/dist/illustrations/assets/electric-plug-small@4x.webp +0 -0
- package/dist/illustrations/assets/email-large@1x.webp +0 -0
- package/dist/illustrations/assets/email-large@2x.webp +0 -0
- package/dist/illustrations/assets/email-medium@1x.webp +0 -0
- package/dist/illustrations/assets/email-medium@2x.webp +0 -0
- package/dist/illustrations/assets/email-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/email-small@1x.webp +0 -0
- package/dist/illustrations/assets/email-small@2x.webp +0 -0
- package/dist/illustrations/assets/email-small@3x.webp +0 -0
- package/dist/illustrations/assets/email-small@4x.webp +0 -0
- package/dist/illustrations/assets/exclamation-mark-large@1x.webp +0 -0
- package/dist/illustrations/assets/exclamation-mark-large@2x.webp +0 -0
- package/dist/illustrations/assets/exclamation-mark-medium@1x.webp +0 -0
- package/dist/illustrations/assets/exclamation-mark-medium@2x.webp +0 -0
- package/dist/illustrations/assets/exclamation-mark-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/exclamation-mark-small@1x.webp +0 -0
- package/dist/illustrations/assets/exclamation-mark-small@2x.webp +0 -0
- package/dist/illustrations/assets/exclamation-mark-small@3x.webp +0 -0
- package/dist/illustrations/assets/exclamation-mark-small@4x.webp +0 -0
- package/dist/illustrations/assets/flag-large@1x.webp +0 -0
- package/dist/illustrations/assets/flag-large@2x.webp +0 -0
- package/dist/illustrations/assets/flag-medium@1x.webp +0 -0
- package/dist/illustrations/assets/flag-medium@2x.webp +0 -0
- package/dist/illustrations/assets/flag-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/flag-small@1x.webp +0 -0
- package/dist/illustrations/assets/flag-small@2x.webp +0 -0
- package/dist/illustrations/assets/flag-small@3x.webp +0 -0
- package/dist/illustrations/assets/flag-small@4x.webp +0 -0
- package/dist/illustrations/assets/flower-large@1x.webp +0 -0
- package/dist/illustrations/assets/flower-large@2x.webp +0 -0
- package/dist/illustrations/assets/flower-medium@1x.webp +0 -0
- package/dist/illustrations/assets/flower-medium@2x.webp +0 -0
- package/dist/illustrations/assets/flower-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/flower-small@1x.webp +0 -0
- package/dist/illustrations/assets/flower-small@2x.webp +0 -0
- package/dist/illustrations/assets/flower-small@3x.webp +0 -0
- package/dist/illustrations/assets/flower-small@4x.webp +0 -0
- package/dist/illustrations/assets/gear-large@1x.webp +0 -0
- package/dist/illustrations/assets/gear-large@2x.webp +0 -0
- package/dist/illustrations/assets/gear-medium@1x.webp +0 -0
- package/dist/illustrations/assets/gear-medium@2x.webp +0 -0
- package/dist/illustrations/assets/gear-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/gear-small@1x.webp +0 -0
- package/dist/illustrations/assets/gear-small@2x.webp +0 -0
- package/dist/illustrations/assets/gear-small@3x.webp +0 -0
- package/dist/illustrations/assets/gear-small@4x.webp +0 -0
- package/dist/illustrations/assets/globe-large@1x.webp +0 -0
- package/dist/illustrations/assets/globe-large@2x.webp +0 -0
- package/dist/illustrations/assets/globe-medium@1x.webp +0 -0
- package/dist/illustrations/assets/globe-medium@2x.webp +0 -0
- package/dist/illustrations/assets/globe-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/globe-small@1x.webp +0 -0
- package/dist/illustrations/assets/globe-small@2x.webp +0 -0
- package/dist/illustrations/assets/globe-small@3x.webp +0 -0
- package/dist/illustrations/assets/globe-small@4x.webp +0 -0
- package/dist/illustrations/assets/graph-large@1x.webp +0 -0
- package/dist/illustrations/assets/graph-large@2x.webp +0 -0
- package/dist/illustrations/assets/graph-medium@1x.webp +0 -0
- package/dist/illustrations/assets/graph-medium@2x.webp +0 -0
- package/dist/illustrations/assets/graph-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/graph-small@1x.webp +0 -0
- package/dist/illustrations/assets/graph-small@2x.webp +0 -0
- package/dist/illustrations/assets/graph-small@3x.webp +0 -0
- package/dist/illustrations/assets/graph-small@4x.webp +0 -0
- package/dist/illustrations/assets/heart-large@1x.webp +0 -0
- package/dist/illustrations/assets/heart-large@2x.webp +0 -0
- package/dist/illustrations/assets/heart-medium@1x.webp +0 -0
- package/dist/illustrations/assets/heart-medium@2x.webp +0 -0
- package/dist/illustrations/assets/heart-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/heart-small@1x.webp +0 -0
- package/dist/illustrations/assets/heart-small@2x.webp +0 -0
- package/dist/illustrations/assets/heart-small@3x.webp +0 -0
- package/dist/illustrations/assets/heart-small@4x.webp +0 -0
- package/dist/illustrations/assets/house-large@1x.webp +0 -0
- package/dist/illustrations/assets/house-large@2x.webp +0 -0
- package/dist/illustrations/assets/house-medium@1x.webp +0 -0
- package/dist/illustrations/assets/house-medium@2x.webp +0 -0
- package/dist/illustrations/assets/house-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/house-small@1x.webp +0 -0
- package/dist/illustrations/assets/house-small@2x.webp +0 -0
- package/dist/illustrations/assets/house-small@3x.webp +0 -0
- package/dist/illustrations/assets/house-small@4x.webp +0 -0
- package/dist/illustrations/assets/id-card-large@1x.webp +0 -0
- package/dist/illustrations/assets/id-card-large@2x.webp +0 -0
- package/dist/illustrations/assets/id-card-medium@1x.webp +0 -0
- package/dist/illustrations/assets/id-card-medium@2x.webp +0 -0
- package/dist/illustrations/assets/id-card-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/id-card-small@1x.webp +0 -0
- package/dist/illustrations/assets/id-card-small@2x.webp +0 -0
- package/dist/illustrations/assets/id-card-small@3x.webp +0 -0
- package/dist/illustrations/assets/id-card-small@4x.webp +0 -0
- package/dist/illustrations/assets/infinite-large@1x.webp +0 -0
- package/dist/illustrations/assets/infinite-large@2x.webp +0 -0
- package/dist/illustrations/assets/infinite-medium@1x.webp +0 -0
- package/dist/illustrations/assets/infinite-medium@2x.webp +0 -0
- package/dist/illustrations/assets/infinite-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/infinite-small@1x.webp +0 -0
- package/dist/illustrations/assets/infinite-small@2x.webp +0 -0
- package/dist/illustrations/assets/infinite-small@3x.webp +0 -0
- package/dist/illustrations/assets/infinite-small@4x.webp +0 -0
- package/dist/illustrations/assets/invite-letter-large@1x.webp +0 -0
- package/dist/illustrations/assets/invite-letter-large@2x.webp +0 -0
- package/dist/illustrations/assets/invite-letter-medium@1x.webp +0 -0
- package/dist/illustrations/assets/invite-letter-medium@2x.webp +0 -0
- package/dist/illustrations/assets/invite-letter-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/invite-letter-small@1x.webp +0 -0
- package/dist/illustrations/assets/invite-letter-small@2x.webp +0 -0
- package/dist/illustrations/assets/invite-letter-small@3x.webp +0 -0
- package/dist/illustrations/assets/invite-letter-small@4x.webp +0 -0
- package/dist/illustrations/assets/jars-large@1x.webp +0 -0
- package/dist/illustrations/assets/jars-large@2x.webp +0 -0
- package/dist/illustrations/assets/jars-medium@1x.webp +0 -0
- package/dist/illustrations/assets/jars-medium@2x.webp +0 -0
- package/dist/illustrations/assets/jars-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/jars-small@1x.webp +0 -0
- package/dist/illustrations/assets/jars-small@2x.webp +0 -0
- package/dist/illustrations/assets/jars-small@3x.webp +0 -0
- package/dist/illustrations/assets/jars-small@4x.webp +0 -0
- package/dist/illustrations/assets/key-large@1x.webp +0 -0
- package/dist/illustrations/assets/key-large@2x.webp +0 -0
- package/dist/illustrations/assets/key-medium@1x.webp +0 -0
- package/dist/illustrations/assets/key-medium@2x.webp +0 -0
- package/dist/illustrations/assets/key-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/key-small@1x.webp +0 -0
- package/dist/illustrations/assets/key-small@2x.webp +0 -0
- package/dist/illustrations/assets/key-small@3x.webp +0 -0
- package/dist/illustrations/assets/key-small@4x.webp +0 -0
- package/dist/illustrations/assets/light-bulb-large@1x.webp +0 -0
- package/dist/illustrations/assets/light-bulb-large@2x.webp +0 -0
- package/dist/illustrations/assets/light-bulb-medium@1x.webp +0 -0
- package/dist/illustrations/assets/light-bulb-medium@2x.webp +0 -0
- package/dist/illustrations/assets/light-bulb-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/light-bulb-small@1x.webp +0 -0
- package/dist/illustrations/assets/light-bulb-small@2x.webp +0 -0
- package/dist/illustrations/assets/light-bulb-small@3x.webp +0 -0
- package/dist/illustrations/assets/light-bulb-small@4x.webp +0 -0
- package/dist/illustrations/assets/lock-large@1x.webp +0 -0
- package/dist/illustrations/assets/lock-large@2x.webp +0 -0
- package/dist/illustrations/assets/lock-medium@1x.webp +0 -0
- package/dist/illustrations/assets/lock-medium@2x.webp +0 -0
- package/dist/illustrations/assets/lock-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/lock-small@1x.webp +0 -0
- package/dist/illustrations/assets/lock-small@2x.webp +0 -0
- package/dist/illustrations/assets/lock-small@3x.webp +0 -0
- package/dist/illustrations/assets/lock-small@4x.webp +0 -0
- package/dist/illustrations/assets/magnifying-glass-large@1x.webp +0 -0
- package/dist/illustrations/assets/magnifying-glass-large@2x.webp +0 -0
- package/dist/illustrations/assets/magnifying-glass-medium@1x.webp +0 -0
- package/dist/illustrations/assets/magnifying-glass-medium@2x.webp +0 -0
- package/dist/illustrations/assets/magnifying-glass-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/magnifying-glass-small@1x.webp +0 -0
- package/dist/illustrations/assets/magnifying-glass-small@2x.webp +0 -0
- package/dist/illustrations/assets/magnifying-glass-small@3x.webp +0 -0
- package/dist/illustrations/assets/magnifying-glass-small@4x.webp +0 -0
- package/dist/illustrations/assets/map-large@1x.webp +0 -0
- package/dist/illustrations/assets/map-large@2x.webp +0 -0
- package/dist/illustrations/assets/map-medium@1x.webp +0 -0
- package/dist/illustrations/assets/map-medium@2x.webp +0 -0
- package/dist/illustrations/assets/map-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/map-small@1x.webp +0 -0
- package/dist/illustrations/assets/map-small@2x.webp +0 -0
- package/dist/illustrations/assets/map-small@3x.webp +0 -0
- package/dist/illustrations/assets/map-small@4x.webp +0 -0
- package/dist/illustrations/assets/megaphone-large@1x.webp +0 -0
- package/dist/illustrations/assets/megaphone-large@2x.webp +0 -0
- package/dist/illustrations/assets/megaphone-medium@1x.webp +0 -0
- package/dist/illustrations/assets/megaphone-medium@2x.webp +0 -0
- package/dist/illustrations/assets/megaphone-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/megaphone-small@1x.webp +0 -0
- package/dist/illustrations/assets/megaphone-small@2x.webp +0 -0
- package/dist/illustrations/assets/megaphone-small@3x.webp +0 -0
- package/dist/illustrations/assets/megaphone-small@4x.webp +0 -0
- package/dist/illustrations/assets/multi-currency-large@1x.webp +0 -0
- package/dist/illustrations/assets/multi-currency-large@2x.webp +0 -0
- package/dist/illustrations/assets/multi-currency-medium@1x.webp +0 -0
- package/dist/illustrations/assets/multi-currency-medium@2x.webp +0 -0
- package/dist/illustrations/assets/multi-currency-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/multi-currency-small@1x.webp +0 -0
- package/dist/illustrations/assets/multi-currency-small@2x.webp +0 -0
- package/dist/illustrations/assets/multi-currency-small@3x.webp +0 -0
- package/dist/illustrations/assets/multi-currency-small@4x.webp +0 -0
- package/dist/illustrations/assets/one-invite-letter-opened-large@1x.webp +0 -0
- package/dist/illustrations/assets/one-invite-letter-opened-large@2x.webp +0 -0
- package/dist/illustrations/assets/one-invite-letter-opened-medium@1x.webp +0 -0
- package/dist/illustrations/assets/one-invite-letter-opened-medium@2x.webp +0 -0
- package/dist/illustrations/assets/one-invite-letter-opened-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/one-invite-letter-opened-small@1x.webp +0 -0
- package/dist/illustrations/assets/one-invite-letter-opened-small@2x.webp +0 -0
- package/dist/illustrations/assets/one-invite-letter-opened-small@3x.webp +0 -0
- package/dist/illustrations/assets/one-invite-letter-opened-small@4x.webp +0 -0
- package/dist/illustrations/assets/palm-tree-large@1x.webp +0 -0
- package/dist/illustrations/assets/palm-tree-large@2x.webp +0 -0
- package/dist/illustrations/assets/palm-tree-medium@1x.webp +0 -0
- package/dist/illustrations/assets/palm-tree-medium@2x.webp +0 -0
- package/dist/illustrations/assets/palm-tree-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/palm-tree-small@1x.webp +0 -0
- package/dist/illustrations/assets/palm-tree-small@2x.webp +0 -0
- package/dist/illustrations/assets/palm-tree-small@3x.webp +0 -0
- package/dist/illustrations/assets/palm-tree-small@4x.webp +0 -0
- package/dist/illustrations/assets/phones-large@1x.webp +0 -0
- package/dist/illustrations/assets/phones-large@2x.webp +0 -0
- package/dist/illustrations/assets/phones-medium@1x.webp +0 -0
- package/dist/illustrations/assets/phones-medium@2x.webp +0 -0
- package/dist/illustrations/assets/phones-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/phones-small@1x.webp +0 -0
- package/dist/illustrations/assets/phones-small@2x.webp +0 -0
- package/dist/illustrations/assets/phones-small@3x.webp +0 -0
- package/dist/illustrations/assets/phones-small@4x.webp +0 -0
- package/dist/illustrations/assets/pie-chart-large@1x.webp +0 -0
- package/dist/illustrations/assets/pie-chart-large@2x.webp +0 -0
- package/dist/illustrations/assets/pie-chart-medium@1x.webp +0 -0
- package/dist/illustrations/assets/pie-chart-medium@2x.webp +0 -0
- package/dist/illustrations/assets/pie-chart-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/pie-chart-small@1x.webp +0 -0
- package/dist/illustrations/assets/pie-chart-small@2x.webp +0 -0
- package/dist/illustrations/assets/pie-chart-small@3x.webp +0 -0
- package/dist/illustrations/assets/pie-chart-small@4x.webp +0 -0
- package/dist/illustrations/assets/plane-large@1x.webp +0 -0
- package/dist/illustrations/assets/plane-large@2x.webp +0 -0
- package/dist/illustrations/assets/plane-medium@1x.webp +0 -0
- package/dist/illustrations/assets/plane-medium@2x.webp +0 -0
- package/dist/illustrations/assets/plane-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/plane-small@1x.webp +0 -0
- package/dist/illustrations/assets/plane-small@2x.webp +0 -0
- package/dist/illustrations/assets/plane-small@3x.webp +0 -0
- package/dist/illustrations/assets/plane-small@4x.webp +0 -0
- package/dist/illustrations/assets/puzzle-pieces-large@1x.webp +0 -0
- package/dist/illustrations/assets/puzzle-pieces-large@2x.webp +0 -0
- package/dist/illustrations/assets/puzzle-pieces-medium@1x.webp +0 -0
- package/dist/illustrations/assets/puzzle-pieces-medium@2x.webp +0 -0
- package/dist/illustrations/assets/puzzle-pieces-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/puzzle-pieces-small@1x.webp +0 -0
- package/dist/illustrations/assets/puzzle-pieces-small@2x.webp +0 -0
- package/dist/illustrations/assets/puzzle-pieces-small@3x.webp +0 -0
- package/dist/illustrations/assets/puzzle-pieces-small@4x.webp +0 -0
- package/dist/illustrations/assets/question-mark-large@1x.webp +0 -0
- package/dist/illustrations/assets/question-mark-large@2x.webp +0 -0
- package/dist/illustrations/assets/question-mark-medium@1x.webp +0 -0
- package/dist/illustrations/assets/question-mark-medium@2x.webp +0 -0
- package/dist/illustrations/assets/question-mark-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/question-mark-small@1x.webp +0 -0
- package/dist/illustrations/assets/question-mark-small@2x.webp +0 -0
- package/dist/illustrations/assets/question-mark-small@3x.webp +0 -0
- package/dist/illustrations/assets/question-mark-small@4x.webp +0 -0
- package/dist/illustrations/assets/receive-large@1x.webp +0 -0
- package/dist/illustrations/assets/receive-large@2x.webp +0 -0
- package/dist/illustrations/assets/receive-medium@1x.webp +0 -0
- package/dist/illustrations/assets/receive-medium@2x.webp +0 -0
- package/dist/illustrations/assets/receive-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/receive-small@1x.webp +0 -0
- package/dist/illustrations/assets/receive-small@2x.webp +0 -0
- package/dist/illustrations/assets/receive-small@3x.webp +0 -0
- package/dist/illustrations/assets/receive-small@4x.webp +0 -0
- package/dist/illustrations/assets/reminder-letter-large@1x.webp +0 -0
- package/dist/illustrations/assets/reminder-letter-large@2x.webp +0 -0
- package/dist/illustrations/assets/reminder-letter-medium@1x.webp +0 -0
- package/dist/illustrations/assets/reminder-letter-medium@2x.webp +0 -0
- package/dist/illustrations/assets/reminder-letter-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/reminder-letter-small@1x.webp +0 -0
- package/dist/illustrations/assets/reminder-letter-small@2x.webp +0 -0
- package/dist/illustrations/assets/reminder-letter-small@3x.webp +0 -0
- package/dist/illustrations/assets/reminder-letter-small@4x.webp +0 -0
- package/dist/illustrations/assets/sand-timer-large@1x.webp +0 -0
- package/dist/illustrations/assets/sand-timer-large@2x.webp +0 -0
- package/dist/illustrations/assets/sand-timer-medium@1x.webp +0 -0
- package/dist/illustrations/assets/sand-timer-medium@2x.webp +0 -0
- package/dist/illustrations/assets/sand-timer-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/sand-timer-small@1x.webp +0 -0
- package/dist/illustrations/assets/sand-timer-small@2x.webp +0 -0
- package/dist/illustrations/assets/sand-timer-small@3x.webp +0 -0
- package/dist/illustrations/assets/sand-timer-small@4x.webp +0 -0
- package/dist/illustrations/assets/shopping-bag-large@1x.webp +0 -0
- package/dist/illustrations/assets/shopping-bag-large@2x.webp +0 -0
- package/dist/illustrations/assets/shopping-bag-medium@1x.webp +0 -0
- package/dist/illustrations/assets/shopping-bag-medium@2x.webp +0 -0
- package/dist/illustrations/assets/shopping-bag-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/shopping-bag-small@1x.webp +0 -0
- package/dist/illustrations/assets/shopping-bag-small@2x.webp +0 -0
- package/dist/illustrations/assets/shopping-bag-small@3x.webp +0 -0
- package/dist/illustrations/assets/shopping-bag-small@4x.webp +0 -0
- package/dist/illustrations/assets/skip-authentication-large@1x.webp +0 -0
- package/dist/illustrations/assets/skip-authentication-large@2x.webp +0 -0
- package/dist/illustrations/assets/skip-authentication-medium@1x.webp +0 -0
- package/dist/illustrations/assets/skip-authentication-medium@2x.webp +0 -0
- package/dist/illustrations/assets/skip-authentication-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/skip-authentication-small@1x.webp +0 -0
- package/dist/illustrations/assets/skip-authentication-small@2x.webp +0 -0
- package/dist/illustrations/assets/skip-authentication-small@3x.webp +0 -0
- package/dist/illustrations/assets/skip-authentication-small@4x.webp +0 -0
- package/dist/illustrations/assets/speech-bubble-large@1x.webp +0 -0
- package/dist/illustrations/assets/speech-bubble-large@2x.webp +0 -0
- package/dist/illustrations/assets/speech-bubble-medium@1x.webp +0 -0
- package/dist/illustrations/assets/speech-bubble-medium@2x.webp +0 -0
- package/dist/illustrations/assets/speech-bubble-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/speech-bubble-small@1x.webp +0 -0
- package/dist/illustrations/assets/speech-bubble-small@2x.webp +0 -0
- package/dist/illustrations/assets/speech-bubble-small@3x.webp +0 -0
- package/dist/illustrations/assets/speech-bubble-small@4x.webp +0 -0
- package/dist/illustrations/assets/tool-large@1x.webp +0 -0
- package/dist/illustrations/assets/tool-large@2x.webp +0 -0
- package/dist/illustrations/assets/tool-medium@1x.webp +0 -0
- package/dist/illustrations/assets/tool-medium@2x.webp +0 -0
- package/dist/illustrations/assets/tool-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/tool-small@1x.webp +0 -0
- package/dist/illustrations/assets/tool-small@2x.webp +0 -0
- package/dist/illustrations/assets/tool-small@3x.webp +0 -0
- package/dist/illustrations/assets/tool-small@4x.webp +0 -0
- package/dist/illustrations/assets/two-invite-letters-opened-large@1x.webp +0 -0
- package/dist/illustrations/assets/two-invite-letters-opened-large@2x.webp +0 -0
- package/dist/illustrations/assets/two-invite-letters-opened-medium@1x.webp +0 -0
- package/dist/illustrations/assets/two-invite-letters-opened-medium@2x.webp +0 -0
- package/dist/illustrations/assets/two-invite-letters-opened-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/two-invite-letters-opened-small@1x.webp +0 -0
- package/dist/illustrations/assets/two-invite-letters-opened-small@2x.webp +0 -0
- package/dist/illustrations/assets/two-invite-letters-opened-small@3x.webp +0 -0
- package/dist/illustrations/assets/two-invite-letters-opened-small@4x.webp +0 -0
- package/dist/illustrations/assets/wallet-large@1x.webp +0 -0
- package/dist/illustrations/assets/wallet-large@2x.webp +0 -0
- package/dist/illustrations/assets/wallet-medium@1x.webp +0 -0
- package/dist/illustrations/assets/wallet-medium@2x.webp +0 -0
- package/dist/illustrations/assets/wallet-small@1.5x.webp +0 -0
- package/dist/illustrations/assets/wallet-small@1x.webp +0 -0
- package/dist/illustrations/assets/wallet-small@2x.webp +0 -0
- package/dist/illustrations/assets/wallet-small@3x.webp +0 -0
- package/dist/illustrations/assets/wallet-small@4x.webp +0 -0
- package/dist/illustrations/index.d.ts +4 -0
- package/dist/illustrations/metadata.d.ts +58 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.modern.mjs +2 -0
- package/dist/index.modern.mjs.map +1 -0
- package/dist/index.module.js +2 -0
- package/dist/index.module.js.map +1 -0
- package/dist/index.umd.js +2 -0
- package/dist/index.umd.js.map +1 -0
- package/package.json +69 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* DON'T MODIFY THIS FILE IT'S AUTO GENERATED
|
|
4
|
+
* See: `scripts/generate-i10s-metadata.mjs`
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export declare enum Assets {
|
|
8
|
+
BELL = "bell",
|
|
9
|
+
BRIEFCASE = "briefcase",
|
|
10
|
+
CALENDAR = "calendar",
|
|
11
|
+
CHECK_MARK = "check-mark",
|
|
12
|
+
CLOSED_WINDOW = "closed-window",
|
|
13
|
+
COIN_PILE = "coin-pile",
|
|
14
|
+
CONFETTI = "confetti",
|
|
15
|
+
CONSTRUCTION_FENCE = "construction-fence",
|
|
16
|
+
CONVERT = "convert",
|
|
17
|
+
COOKIE = "cookie",
|
|
18
|
+
DOCUMENTS = "documents",
|
|
19
|
+
DOOR = "door",
|
|
20
|
+
ELECTRIC_PLUG = "electric-plug",
|
|
21
|
+
EMAIL = "email",
|
|
22
|
+
EXCLAMATION_MARK = "exclamation-mark",
|
|
23
|
+
FLAG = "flag",
|
|
24
|
+
FLOWER = "flower",
|
|
25
|
+
GEAR = "gear",
|
|
26
|
+
GLOBE = "globe",
|
|
27
|
+
GRAPH = "graph",
|
|
28
|
+
HEART = "heart",
|
|
29
|
+
HOUSE = "house",
|
|
30
|
+
ID_CARD = "id-card",
|
|
31
|
+
INFINITE = "infinite",
|
|
32
|
+
INVITE_LETTER = "invite-letter",
|
|
33
|
+
JARS = "jars",
|
|
34
|
+
KEY = "key",
|
|
35
|
+
LIGHT_BULB = "light-bulb",
|
|
36
|
+
LOCK = "lock",
|
|
37
|
+
MAGNIFYING_GLASS = "magnifying-glass",
|
|
38
|
+
MAP = "map",
|
|
39
|
+
MEGAPHONE = "megaphone",
|
|
40
|
+
MULTI_CURRENCY = "multi-currency",
|
|
41
|
+
ONE_INVITE_LETTER_OPENED = "one-invite-letter-opened",
|
|
42
|
+
PALM_TREE = "palm-tree",
|
|
43
|
+
PHONES = "phones",
|
|
44
|
+
PIE_CHART = "pie-chart",
|
|
45
|
+
PLANE = "plane",
|
|
46
|
+
PUZZLE_PIECES = "puzzle-pieces",
|
|
47
|
+
QUESTION_MARK = "question-mark",
|
|
48
|
+
RECEIVE = "receive",
|
|
49
|
+
REMINDER_LETTER = "reminder-letter",
|
|
50
|
+
SAND_TIMER = "sand-timer",
|
|
51
|
+
SHOPPING_BAG = "shopping-bag",
|
|
52
|
+
SKIP_AUTHENTICATION = "skip-authentication",
|
|
53
|
+
SPEECH_BUBBLE = "speech-bubble",
|
|
54
|
+
TOOL = "tool",
|
|
55
|
+
TWO_INVITE_LETTERS_OPENED = "two-invite-letters-opened",
|
|
56
|
+
WALLET = "wallet"
|
|
57
|
+
}
|
|
58
|
+
export declare type IllustrationNames = 'bell' | 'briefcase' | 'calendar' | 'check-mark' | 'closed-window' | 'coin-pile' | 'confetti' | 'construction-fence' | 'convert' | 'cookie' | 'documents' | 'door' | 'electric-plug' | 'email' | 'exclamation-mark' | 'flag' | 'flower' | 'gear' | 'globe' | 'graph' | 'heart' | 'house' | 'id-card' | 'infinite' | 'invite-letter' | 'jars' | 'key' | 'light-bulb' | 'lock' | 'magnifying-glass' | 'map' | 'megaphone' | 'multi-currency' | 'one-invite-letter-opened' | 'palm-tree' | 'phones' | 'pie-chart' | 'plane' | 'puzzle-pieces' | 'question-mark' | 'receive' | 'reminder-letter' | 'sand-timer' | 'shopping-bag' | 'skip-authentication' | 'speech-bubble' | 'tool' | 'two-invite-letters-opened' | 'wallet';
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=require("classnames"),t=require("react");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var E,a=/*#__PURE__*/r(e),i=/*#__PURE__*/r(t);exports.Sizes=void 0,(E=exports.Sizes||(exports.Sizes={})).SMALL="small",E.MEDIUM="medium",E.LARGE="large";var s,l=t.forwardRef(function(e,t){var r=e.name,E=e.alt,s=e.loading,l=void 0===s?"lazy":s,n=exports.Sizes.SMALL,c=exports.Sizes.MEDIUM,I=exports.Sizes.LARGE;return r?/*#__PURE__*/i.default.createElement("picture",{id:e.id,className:a.default("wds-illustration","wds-illustration-"+r,e.className)},/*#__PURE__*/i.default.createElement("source",{media:"(max-width: 575px)",srcSet:o(r,n,"1x")+", "+o(r,n,"2x")+" 2x"}),/*#__PURE__*/i.default.createElement("source",{media:"(max-width: 991px)",srcSet:o(r,c,"1x")+", "+o(r,c,"2x")+" 2x"}),/*#__PURE__*/i.default.createElement("img",{ref:t,src:o(r,I,"1x"),alt:E,loading:l,srcSet:o(r,I,"2x")+" 2x"})):null});function o(e,t,r){return"illustrations/assets/"+e+"-"+t+"@"+r+".webp"}exports.Assets=void 0,(s=exports.Assets||(exports.Assets={})).BELL="bell",s.BRIEFCASE="briefcase",s.CALENDAR="calendar",s.CHECK_MARK="check-mark",s.CLOSED_WINDOW="closed-window",s.COIN_PILE="coin-pile",s.CONFETTI="confetti",s.CONSTRUCTION_FENCE="construction-fence",s.CONVERT="convert",s.COOKIE="cookie",s.DOCUMENTS="documents",s.DOOR="door",s.ELECTRIC_PLUG="electric-plug",s.EMAIL="email",s.EXCLAMATION_MARK="exclamation-mark",s.FLAG="flag",s.FLOWER="flower",s.GEAR="gear",s.GLOBE="globe",s.GRAPH="graph",s.HEART="heart",s.HOUSE="house",s.ID_CARD="id-card",s.INFINITE="infinite",s.INVITE_LETTER="invite-letter",s.JARS="jars",s.KEY="key",s.LIGHT_BULB="light-bulb",s.LOCK="lock",s.MAGNIFYING_GLASS="magnifying-glass",s.MAP="map",s.MEGAPHONE="megaphone",s.MULTI_CURRENCY="multi-currency",s.ONE_INVITE_LETTER_OPENED="one-invite-letter-opened",s.PALM_TREE="palm-tree",s.PHONES="phones",s.PIE_CHART="pie-chart",s.PLANE="plane",s.PUZZLE_PIECES="puzzle-pieces",s.QUESTION_MARK="question-mark",s.RECEIVE="receive",s.REMINDER_LETTER="reminder-letter",s.SAND_TIMER="sand-timer",s.SHOPPING_BAG="shopping-bag",s.SKIP_AUTHENTICATION="skip-authentication",s.SPEECH_BUBBLE="speech-bubble",s.TOOL="tool",s.TWO_INVITE_LETTERS_OPENED="two-invite-letters-opened",s.WALLET="wallet",exports.Illustration=l;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/common.ts","../src/illustrations/Illustration.tsx","../src/illustrations/metadata.ts"],"sourcesContent":["export enum Sizes {\n SMALL = 'small',\n MEDIUM = 'medium',\n LARGE = 'large',\n}\n\nexport type SizeType = 'large' | 'medium' | 'small';\n\nexport type Descriptors = '1x' | '1.5x' | '2x' | '3x' | '4x';\n","import classNames from 'classnames';\nimport React, { forwardRef, ImgHTMLAttributes } from 'react';\n\nimport { SizeType, Descriptors, Sizes } from './../common';\nimport { IllustrationNames } from './metadata';\n\n// Picking only a few props from Image element to avoid breaking change\n// as in future underlying element might change\ntype ImgProps = Pick<ImgHTMLAttributes<HTMLImageElement>, 'id' | 'className' | 'loading'>;\n\nexport type Props = {\n name: IllustrationNames;\n alt: string;\n} & ImgProps;\n\nconst Illustration = forwardRef<HTMLImageElement, Props>(\n ({ id, name, alt, loading = 'lazy', className }: Props, ref) => {\n const { SMALL, MEDIUM, LARGE } = Sizes;\n return name ? (\n <picture\n id={id}\n className={classNames('wds-illustration', `wds-illustration-${name}`, className)}\n >\n {/* Mobile screens */}\n <source\n media=\"(max-width: 575px)\"\n srcSet={`${defineSrc(name, SMALL, '1x')}, ${defineSrc(name, SMALL, '2x')} 2x`}\n />\n\n {/* Tablets */}\n <source\n media=\"(max-width: 991px)\"\n srcSet={`${defineSrc(name, MEDIUM, '1x')}, ${defineSrc(name, MEDIUM, '2x')} 2x`}\n />\n\n <img\n ref={ref}\n src={defineSrc(name, LARGE, '1x')}\n alt={alt}\n loading={loading}\n srcSet={`${defineSrc(name, LARGE, '2x')} 2x`}\n />\n </picture>\n ) : null;\n },\n);\n\nfunction defineSrc(illustration: string, size: SizeType, descriptor: Descriptors) {\n return `illustrations/assets/${illustration}-${size}@${descriptor}.webp`;\n}\n\nexport default Illustration;\n","/**\n *\n * DON'T MODIFY THIS FILE IT'S AUTO GENERATED\n * See: `scripts/generate-i10s-metadata.mjs`\n *\n */\n\nexport enum Assets {\n BELL = 'bell',\n BRIEFCASE = 'briefcase',\n CALENDAR = 'calendar',\n CHECK_MARK = 'check-mark',\n CLOSED_WINDOW = 'closed-window',\n COIN_PILE = 'coin-pile',\n CONFETTI = 'confetti',\n CONSTRUCTION_FENCE = 'construction-fence',\n CONVERT = 'convert',\n COOKIE = 'cookie',\n DOCUMENTS = 'documents',\n DOOR = 'door',\n ELECTRIC_PLUG = 'electric-plug',\n EMAIL = 'email',\n EXCLAMATION_MARK = 'exclamation-mark',\n FLAG = 'flag',\n FLOWER = 'flower',\n GEAR = 'gear',\n GLOBE = 'globe',\n GRAPH = 'graph',\n HEART = 'heart',\n HOUSE = 'house',\n ID_CARD = 'id-card',\n INFINITE = 'infinite',\n INVITE_LETTER = 'invite-letter',\n JARS = 'jars',\n KEY = 'key',\n LIGHT_BULB = 'light-bulb',\n LOCK = 'lock',\n MAGNIFYING_GLASS = 'magnifying-glass',\n MAP = 'map',\n MEGAPHONE = 'megaphone',\n MULTI_CURRENCY = 'multi-currency',\n ONE_INVITE_LETTER_OPENED = 'one-invite-letter-opened',\n PALM_TREE = 'palm-tree',\n PHONES = 'phones',\n PIE_CHART = 'pie-chart',\n PLANE = 'plane',\n PUZZLE_PIECES = 'puzzle-pieces',\n QUESTION_MARK = 'question-mark',\n RECEIVE = 'receive',\n REMINDER_LETTER = 'reminder-letter',\n SAND_TIMER = 'sand-timer',\n SHOPPING_BAG = 'shopping-bag',\n SKIP_AUTHENTICATION = 'skip-authentication',\n SPEECH_BUBBLE = 'speech-bubble',\n TOOL = 'tool',\n TWO_INVITE_LETTERS_OPENED = 'two-invite-letters-opened',\n WALLET = 'wallet',\n}\n\nexport type IllustrationNames =\n | 'bell'\n | 'briefcase'\n | 'calendar'\n | 'check-mark'\n | 'closed-window'\n | 'coin-pile'\n | 'confetti'\n | 'construction-fence'\n | 'convert'\n | 'cookie'\n | 'documents'\n | 'door'\n | 'electric-plug'\n | 'email'\n | 'exclamation-mark'\n | 'flag'\n | 'flower'\n | 'gear'\n | 'globe'\n | 'graph'\n | 'heart'\n | 'house'\n | 'id-card'\n | 'infinite'\n | 'invite-letter'\n | 'jars'\n | 'key'\n | 'light-bulb'\n | 'lock'\n | 'magnifying-glass'\n | 'map'\n | 'megaphone'\n | 'multi-currency'\n | 'one-invite-letter-opened'\n | 'palm-tree'\n | 'phones'\n | 'pie-chart'\n | 'plane'\n | 'puzzle-pieces'\n | 'question-mark'\n | 'receive'\n | 'reminder-letter'\n | 'sand-timer'\n | 'shopping-bag'\n | 'skip-authentication'\n | 'speech-bubble'\n | 'tool'\n | 'two-invite-letters-opened'\n | 'wallet';\n"],"names":["Sizes","Illustration","Assets","forwardRef","ref","id","name","alt","loading","_ref$loading","SMALL","MEDIUM","LARGE","React","createElement","className","classNames","_ref","media","srcSet","defineSrc","src","illustration","size","descriptor"],"mappings":"2HAAYA,0CAIXA,QAAAA,WAAAA,GAJWA,EAAAA,gBAAAA,QAAAA,MAIX,CAAA,IAHC,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,MAAA,QCYIC,ICRMC,EDQMD,EAAGE,EAAAA,WACnB,SAAwDC,EAAAA,GAArDC,IAAIC,EAAAA,EAAAA,KAAMC,EAAAA,EAAAA,QAAKC,QAAAA,OAAU,IAAAC,EAAA,SAClBC,EAAyBV,QAAAA,MAAzBU,MAAOC,EAAkBX,QAAKA,MAAvBW,OAAQC,EAAUZ,QAAKA,MAAfY,MACvB,sBACEC,EAAAA,QAAAC,cAAA,UAAA,CACET,KAJHA,GAKGU,UAAWC,EAAU,QAAC,mBAAkB,oBAAsBV,EALvBW,EAATF,yBAQ9BF,EAAAA,QACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAWC,EAAUd,EAAMI,EAAO,WAAUU,EAAUd,EAAMI,EAAO,2BAIrEG,EAAAA,gCACEK,MAAM,qBACNC,OAAWC,EAAUd,EAAMK,EAAQ,MAAK,KAAKS,EAAUd,EAAMK,EAAQ,MAAW,qBAGlFE,EAAAA,QACEC,cAAA,MAAA,CAAAV,IAAKA,EACLiB,IAAKD,EAAUd,EAAMM,EAAO,MAC5BL,IAAKA,EACLC,QAASA,EACTW,OAAWC,EAAUd,EAAMM,EAAO,MAAK,SAGzC,IACN,GAGF,WAAmBU,EAAsBC,EAAgBC,GACvD,MAAA,wBAA+BF,EAAgBC,IAAAA,MAAQC,EAAU,OACnE,CCQCtB,QAAAA,YAAAA,GAlDWA,EAAAA,QAAMA,SAANA,eAkDX,CAAA,IAjDC,KAAA,OACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,WAAA,aACAA,EAAA,cAAA,gBACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,mBAAA,qBACAA,EAAA,QAAA,UACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,KAAA,OACAA,EAAA,cAAA,gBACAA,EAAA,MAAA,QACAA,EAAA,iBAAA,mBACAA,EAAA,KAAA,OACAA,EAAA,OAAA,SACAA,EAAA,KAAA,OACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,cAAA,gBACAA,EAAA,KAAA,OACAA,EAAA,IAAA,MACAA,EAAA,WAAA,aACAA,EAAA,KAAA,OACAA,EAAA,iBAAA,mBACAA,EAAA,IAAA,MACAA,EAAA,UAAA,YACAA,EAAA,eAAA,iBACAA,EAAA,yBAAA,2BACAA,EAAA,UAAA,YACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,cAAA,gBACAA,EAAA,cAAA,gBACAA,EAAA,QAAA,UACAA,EAAA,gBAAA,kBACAA,EAAA,WAAA,aACAA,EAAA,aAAA,eACAA,EAAA,oBAAA,sBACAA,EAAA,cAAA,gBACAA,EAAA,KAAA,OACAA,EAAA,0BAAA,4BACAA,EAAA,OAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"classnames";import E,{forwardRef as t}from"react";var a;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(a||(a={}));const i=t(({id:t,name:i,alt:n,loading:l="lazy",className:c},o)=>{const{SMALL:s,MEDIUM:I,LARGE:L}=a;return i?/*#__PURE__*/E.createElement("picture",{id:t,className:e("wds-illustration",`wds-illustration-${i}`,c)},/*#__PURE__*/E.createElement("source",{media:"(max-width: 575px)",srcSet:`${r(i,s,"1x")}, ${r(i,s,"2x")} 2x`}),/*#__PURE__*/E.createElement("source",{media:"(max-width: 991px)",srcSet:`${r(i,I,"1x")}, ${r(i,I,"2x")} 2x`}),/*#__PURE__*/E.createElement("img",{ref:o,src:r(i,L,"1x"),alt:n,loading:l,srcSet:`${r(i,L,"2x")} 2x`})):null});function r(e,E,t){return`illustrations/assets/${e}-${E}@${t}.webp`}var n;!function(e){e.BELL="bell",e.BRIEFCASE="briefcase",e.CALENDAR="calendar",e.CHECK_MARK="check-mark",e.CLOSED_WINDOW="closed-window",e.COIN_PILE="coin-pile",e.CONFETTI="confetti",e.CONSTRUCTION_FENCE="construction-fence",e.CONVERT="convert",e.COOKIE="cookie",e.DOCUMENTS="documents",e.DOOR="door",e.ELECTRIC_PLUG="electric-plug",e.EMAIL="email",e.EXCLAMATION_MARK="exclamation-mark",e.FLAG="flag",e.FLOWER="flower",e.GEAR="gear",e.GLOBE="globe",e.GRAPH="graph",e.HEART="heart",e.HOUSE="house",e.ID_CARD="id-card",e.INFINITE="infinite",e.INVITE_LETTER="invite-letter",e.JARS="jars",e.KEY="key",e.LIGHT_BULB="light-bulb",e.LOCK="lock",e.MAGNIFYING_GLASS="magnifying-glass",e.MAP="map",e.MEGAPHONE="megaphone",e.MULTI_CURRENCY="multi-currency",e.ONE_INVITE_LETTER_OPENED="one-invite-letter-opened",e.PALM_TREE="palm-tree",e.PHONES="phones",e.PIE_CHART="pie-chart",e.PLANE="plane",e.PUZZLE_PIECES="puzzle-pieces",e.QUESTION_MARK="question-mark",e.RECEIVE="receive",e.REMINDER_LETTER="reminder-letter",e.SAND_TIMER="sand-timer",e.SHOPPING_BAG="shopping-bag",e.SKIP_AUTHENTICATION="skip-authentication",e.SPEECH_BUBBLE="speech-bubble",e.TOOL="tool",e.TWO_INVITE_LETTERS_OPENED="two-invite-letters-opened",e.WALLET="wallet"}(n||(n={}));export{n as Assets,i as Illustration,a as Sizes};
|
|
2
|
+
//# sourceMappingURL=index.modern.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.modern.mjs","sources":["../src/common.ts","../src/illustrations/Illustration.tsx","../src/illustrations/metadata.ts"],"sourcesContent":["export enum Sizes {\n SMALL = 'small',\n MEDIUM = 'medium',\n LARGE = 'large',\n}\n\nexport type SizeType = 'large' | 'medium' | 'small';\n\nexport type Descriptors = '1x' | '1.5x' | '2x' | '3x' | '4x';\n","import classNames from 'classnames';\nimport React, { forwardRef, ImgHTMLAttributes } from 'react';\n\nimport { SizeType, Descriptors, Sizes } from './../common';\nimport { IllustrationNames } from './metadata';\n\n// Picking only a few props from Image element to avoid breaking change\n// as in future underlying element might change\ntype ImgProps = Pick<ImgHTMLAttributes<HTMLImageElement>, 'id' | 'className' | 'loading'>;\n\nexport type Props = {\n name: IllustrationNames;\n alt: string;\n} & ImgProps;\n\nconst Illustration = forwardRef<HTMLImageElement, Props>(\n ({ id, name, alt, loading = 'lazy', className }: Props, ref) => {\n const { SMALL, MEDIUM, LARGE } = Sizes;\n return name ? (\n <picture\n id={id}\n className={classNames('wds-illustration', `wds-illustration-${name}`, className)}\n >\n {/* Mobile screens */}\n <source\n media=\"(max-width: 575px)\"\n srcSet={`${defineSrc(name, SMALL, '1x')}, ${defineSrc(name, SMALL, '2x')} 2x`}\n />\n\n {/* Tablets */}\n <source\n media=\"(max-width: 991px)\"\n srcSet={`${defineSrc(name, MEDIUM, '1x')}, ${defineSrc(name, MEDIUM, '2x')} 2x`}\n />\n\n <img\n ref={ref}\n src={defineSrc(name, LARGE, '1x')}\n alt={alt}\n loading={loading}\n srcSet={`${defineSrc(name, LARGE, '2x')} 2x`}\n />\n </picture>\n ) : null;\n },\n);\n\nfunction defineSrc(illustration: string, size: SizeType, descriptor: Descriptors) {\n return `illustrations/assets/${illustration}-${size}@${descriptor}.webp`;\n}\n\nexport default Illustration;\n","/**\n *\n * DON'T MODIFY THIS FILE IT'S AUTO GENERATED\n * See: `scripts/generate-i10s-metadata.mjs`\n *\n */\n\nexport enum Assets {\n BELL = 'bell',\n BRIEFCASE = 'briefcase',\n CALENDAR = 'calendar',\n CHECK_MARK = 'check-mark',\n CLOSED_WINDOW = 'closed-window',\n COIN_PILE = 'coin-pile',\n CONFETTI = 'confetti',\n CONSTRUCTION_FENCE = 'construction-fence',\n CONVERT = 'convert',\n COOKIE = 'cookie',\n DOCUMENTS = 'documents',\n DOOR = 'door',\n ELECTRIC_PLUG = 'electric-plug',\n EMAIL = 'email',\n EXCLAMATION_MARK = 'exclamation-mark',\n FLAG = 'flag',\n FLOWER = 'flower',\n GEAR = 'gear',\n GLOBE = 'globe',\n GRAPH = 'graph',\n HEART = 'heart',\n HOUSE = 'house',\n ID_CARD = 'id-card',\n INFINITE = 'infinite',\n INVITE_LETTER = 'invite-letter',\n JARS = 'jars',\n KEY = 'key',\n LIGHT_BULB = 'light-bulb',\n LOCK = 'lock',\n MAGNIFYING_GLASS = 'magnifying-glass',\n MAP = 'map',\n MEGAPHONE = 'megaphone',\n MULTI_CURRENCY = 'multi-currency',\n ONE_INVITE_LETTER_OPENED = 'one-invite-letter-opened',\n PALM_TREE = 'palm-tree',\n PHONES = 'phones',\n PIE_CHART = 'pie-chart',\n PLANE = 'plane',\n PUZZLE_PIECES = 'puzzle-pieces',\n QUESTION_MARK = 'question-mark',\n RECEIVE = 'receive',\n REMINDER_LETTER = 'reminder-letter',\n SAND_TIMER = 'sand-timer',\n SHOPPING_BAG = 'shopping-bag',\n SKIP_AUTHENTICATION = 'skip-authentication',\n SPEECH_BUBBLE = 'speech-bubble',\n TOOL = 'tool',\n TWO_INVITE_LETTERS_OPENED = 'two-invite-letters-opened',\n WALLET = 'wallet',\n}\n\nexport type IllustrationNames =\n | 'bell'\n | 'briefcase'\n | 'calendar'\n | 'check-mark'\n | 'closed-window'\n | 'coin-pile'\n | 'confetti'\n | 'construction-fence'\n | 'convert'\n | 'cookie'\n | 'documents'\n | 'door'\n | 'electric-plug'\n | 'email'\n | 'exclamation-mark'\n | 'flag'\n | 'flower'\n | 'gear'\n | 'globe'\n | 'graph'\n | 'heart'\n | 'house'\n | 'id-card'\n | 'infinite'\n | 'invite-letter'\n | 'jars'\n | 'key'\n | 'light-bulb'\n | 'lock'\n | 'magnifying-glass'\n | 'map'\n | 'megaphone'\n | 'multi-currency'\n | 'one-invite-letter-opened'\n | 'palm-tree'\n | 'phones'\n | 'pie-chart'\n | 'plane'\n | 'puzzle-pieces'\n | 'question-mark'\n | 'receive'\n | 'reminder-letter'\n | 'sand-timer'\n | 'shopping-bag'\n | 'skip-authentication'\n | 'speech-bubble'\n | 'tool'\n | 'two-invite-letters-opened'\n | 'wallet';\n"],"names":["Sizes","Illustration","forwardRef","id","name","alt","loading","className","ref","SMALL","MEDIUM","LARGE","React","createElement","classNames","media","srcSet","defineSrc","src","illustration","size","descriptor","Assets"],"mappings":"gEAAYA,IAIXA,GAJD,SAAYA,GACVA,EAAA,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,MAAA,OACD,CAJD,CAAYA,IAAAA,EAIX,CAAA,ICWKC,MAAYA,EAAGC,EACnB,EAAGC,KAAIC,OAAMC,MAAKC,QAAAA,EAAU,OAAQC,aAAoBC,KACtD,MAAMC,MAAEA,EAAKC,OAAEA,EAAMC,MAAEA,GAAUX,EACjC,sBACEY,EAAAC,cAAA,UAAA,CACEV,GAAIA,EACJI,UAAWO,EAAW,mBAAoB,oBAAoBV,IAAQG,iBAGtEK,EAAAC,cAAA,SAAA,CACEE,MAAM,qBACNC,OAAQ,GAAGC,EAAUb,EAAMK,EAAO,UAAUQ,EAAUb,EAAMK,EAAO,0BAIrEG,EAAAC,cAAA,SAAA,CACEE,MAAM,qBACNC,OAAQ,GAAGC,EAAUb,EAAMM,EAAQ,UAAUO,EAAUb,EAAMM,EAAQ,0BAGvEE,uBACEJ,IAAKA,EACLU,IAAKD,EAAUb,EAAMO,EAAO,MAC5BN,IAAKA,EACLC,QAASA,EACTU,UAAWC,EAAUb,EAAMO,EAAO,cAGpC,OAIR,SAAkBM,EAACE,EAAsBC,EAAgBC,GACvD,8BAA+BF,KAAgBC,KAAQC,QACzD,CC1CYC,IAkDXA,GAlDD,SAAYA,GACVA,EAAA,KAAA,OACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,WAAA,aACAA,EAAA,cAAA,gBACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,mBAAA,qBACAA,EAAA,QAAA,UACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,KAAA,OACAA,EAAA,cAAA,gBACAA,EAAA,MAAA,QACAA,EAAA,iBAAA,mBACAA,EAAA,KAAA,OACAA,EAAA,OAAA,SACAA,EAAA,KAAA,OACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,cAAA,gBACAA,EAAA,KAAA,OACAA,EAAA,IAAA,MACAA,EAAA,WAAA,aACAA,EAAA,KAAA,OACAA,EAAA,iBAAA,mBACAA,EAAA,IAAA,MACAA,EAAA,UAAA,YACAA,EAAA,eAAA,iBACAA,EAAA,yBAAA,2BACAA,EAAA,UAAA,YACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,cAAA,gBACAA,EAAA,cAAA,gBACAA,EAAA,QAAA,UACAA,EAAA,gBAAA,kBACAA,EAAA,WAAA,aACAA,EAAA,aAAA,eACAA,EAAA,oBAAA,sBACAA,EAAA,cAAA,gBACAA,EAAA,KAAA,OACAA,EAAA,0BAAA,4BACAA,EAAA,OAAA,QACD,CAlDD,CAAYA,IAAAA,EAkDX,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"classnames";import E,{forwardRef as t}from"react";var i;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(i||(i={}));var a,r=t(function(t,a){var r=t.name,l=t.alt,o=t.loading,c=void 0===o?"lazy":o,s=i.SMALL,I=i.MEDIUM,L=i.LARGE;return r?/*#__PURE__*/E.createElement("picture",{id:t.id,className:e("wds-illustration","wds-illustration-"+r,t.className)},/*#__PURE__*/E.createElement("source",{media:"(max-width: 575px)",srcSet:n(r,s,"1x")+", "+n(r,s,"2x")+" 2x"}),/*#__PURE__*/E.createElement("source",{media:"(max-width: 991px)",srcSet:n(r,I,"1x")+", "+n(r,I,"2x")+" 2x"}),/*#__PURE__*/E.createElement("img",{ref:a,src:n(r,L,"1x"),alt:l,loading:c,srcSet:n(r,L,"2x")+" 2x"})):null});function n(e,E,t){return"illustrations/assets/"+e+"-"+E+"@"+t+".webp"}!function(e){e.BELL="bell",e.BRIEFCASE="briefcase",e.CALENDAR="calendar",e.CHECK_MARK="check-mark",e.CLOSED_WINDOW="closed-window",e.COIN_PILE="coin-pile",e.CONFETTI="confetti",e.CONSTRUCTION_FENCE="construction-fence",e.CONVERT="convert",e.COOKIE="cookie",e.DOCUMENTS="documents",e.DOOR="door",e.ELECTRIC_PLUG="electric-plug",e.EMAIL="email",e.EXCLAMATION_MARK="exclamation-mark",e.FLAG="flag",e.FLOWER="flower",e.GEAR="gear",e.GLOBE="globe",e.GRAPH="graph",e.HEART="heart",e.HOUSE="house",e.ID_CARD="id-card",e.INFINITE="infinite",e.INVITE_LETTER="invite-letter",e.JARS="jars",e.KEY="key",e.LIGHT_BULB="light-bulb",e.LOCK="lock",e.MAGNIFYING_GLASS="magnifying-glass",e.MAP="map",e.MEGAPHONE="megaphone",e.MULTI_CURRENCY="multi-currency",e.ONE_INVITE_LETTER_OPENED="one-invite-letter-opened",e.PALM_TREE="palm-tree",e.PHONES="phones",e.PIE_CHART="pie-chart",e.PLANE="plane",e.PUZZLE_PIECES="puzzle-pieces",e.QUESTION_MARK="question-mark",e.RECEIVE="receive",e.REMINDER_LETTER="reminder-letter",e.SAND_TIMER="sand-timer",e.SHOPPING_BAG="shopping-bag",e.SKIP_AUTHENTICATION="skip-authentication",e.SPEECH_BUBBLE="speech-bubble",e.TOOL="tool",e.TWO_INVITE_LETTERS_OPENED="two-invite-letters-opened",e.WALLET="wallet"}(a||(a={}));export{a as Assets,r as Illustration,i as Sizes};
|
|
2
|
+
//# sourceMappingURL=index.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.module.js","sources":["../src/common.ts","../src/illustrations/Illustration.tsx","../src/illustrations/metadata.ts"],"sourcesContent":["export enum Sizes {\n SMALL = 'small',\n MEDIUM = 'medium',\n LARGE = 'large',\n}\n\nexport type SizeType = 'large' | 'medium' | 'small';\n\nexport type Descriptors = '1x' | '1.5x' | '2x' | '3x' | '4x';\n","import classNames from 'classnames';\nimport React, { forwardRef, ImgHTMLAttributes } from 'react';\n\nimport { SizeType, Descriptors, Sizes } from './../common';\nimport { IllustrationNames } from './metadata';\n\n// Picking only a few props from Image element to avoid breaking change\n// as in future underlying element might change\ntype ImgProps = Pick<ImgHTMLAttributes<HTMLImageElement>, 'id' | 'className' | 'loading'>;\n\nexport type Props = {\n name: IllustrationNames;\n alt: string;\n} & ImgProps;\n\nconst Illustration = forwardRef<HTMLImageElement, Props>(\n ({ id, name, alt, loading = 'lazy', className }: Props, ref) => {\n const { SMALL, MEDIUM, LARGE } = Sizes;\n return name ? (\n <picture\n id={id}\n className={classNames('wds-illustration', `wds-illustration-${name}`, className)}\n >\n {/* Mobile screens */}\n <source\n media=\"(max-width: 575px)\"\n srcSet={`${defineSrc(name, SMALL, '1x')}, ${defineSrc(name, SMALL, '2x')} 2x`}\n />\n\n {/* Tablets */}\n <source\n media=\"(max-width: 991px)\"\n srcSet={`${defineSrc(name, MEDIUM, '1x')}, ${defineSrc(name, MEDIUM, '2x')} 2x`}\n />\n\n <img\n ref={ref}\n src={defineSrc(name, LARGE, '1x')}\n alt={alt}\n loading={loading}\n srcSet={`${defineSrc(name, LARGE, '2x')} 2x`}\n />\n </picture>\n ) : null;\n },\n);\n\nfunction defineSrc(illustration: string, size: SizeType, descriptor: Descriptors) {\n return `illustrations/assets/${illustration}-${size}@${descriptor}.webp`;\n}\n\nexport default Illustration;\n","/**\n *\n * DON'T MODIFY THIS FILE IT'S AUTO GENERATED\n * See: `scripts/generate-i10s-metadata.mjs`\n *\n */\n\nexport enum Assets {\n BELL = 'bell',\n BRIEFCASE = 'briefcase',\n CALENDAR = 'calendar',\n CHECK_MARK = 'check-mark',\n CLOSED_WINDOW = 'closed-window',\n COIN_PILE = 'coin-pile',\n CONFETTI = 'confetti',\n CONSTRUCTION_FENCE = 'construction-fence',\n CONVERT = 'convert',\n COOKIE = 'cookie',\n DOCUMENTS = 'documents',\n DOOR = 'door',\n ELECTRIC_PLUG = 'electric-plug',\n EMAIL = 'email',\n EXCLAMATION_MARK = 'exclamation-mark',\n FLAG = 'flag',\n FLOWER = 'flower',\n GEAR = 'gear',\n GLOBE = 'globe',\n GRAPH = 'graph',\n HEART = 'heart',\n HOUSE = 'house',\n ID_CARD = 'id-card',\n INFINITE = 'infinite',\n INVITE_LETTER = 'invite-letter',\n JARS = 'jars',\n KEY = 'key',\n LIGHT_BULB = 'light-bulb',\n LOCK = 'lock',\n MAGNIFYING_GLASS = 'magnifying-glass',\n MAP = 'map',\n MEGAPHONE = 'megaphone',\n MULTI_CURRENCY = 'multi-currency',\n ONE_INVITE_LETTER_OPENED = 'one-invite-letter-opened',\n PALM_TREE = 'palm-tree',\n PHONES = 'phones',\n PIE_CHART = 'pie-chart',\n PLANE = 'plane',\n PUZZLE_PIECES = 'puzzle-pieces',\n QUESTION_MARK = 'question-mark',\n RECEIVE = 'receive',\n REMINDER_LETTER = 'reminder-letter',\n SAND_TIMER = 'sand-timer',\n SHOPPING_BAG = 'shopping-bag',\n SKIP_AUTHENTICATION = 'skip-authentication',\n SPEECH_BUBBLE = 'speech-bubble',\n TOOL = 'tool',\n TWO_INVITE_LETTERS_OPENED = 'two-invite-letters-opened',\n WALLET = 'wallet',\n}\n\nexport type IllustrationNames =\n | 'bell'\n | 'briefcase'\n | 'calendar'\n | 'check-mark'\n | 'closed-window'\n | 'coin-pile'\n | 'confetti'\n | 'construction-fence'\n | 'convert'\n | 'cookie'\n | 'documents'\n | 'door'\n | 'electric-plug'\n | 'email'\n | 'exclamation-mark'\n | 'flag'\n | 'flower'\n | 'gear'\n | 'globe'\n | 'graph'\n | 'heart'\n | 'house'\n | 'id-card'\n | 'infinite'\n | 'invite-letter'\n | 'jars'\n | 'key'\n | 'light-bulb'\n | 'lock'\n | 'magnifying-glass'\n | 'map'\n | 'megaphone'\n | 'multi-currency'\n | 'one-invite-letter-opened'\n | 'palm-tree'\n | 'phones'\n | 'pie-chart'\n | 'plane'\n | 'puzzle-pieces'\n | 'question-mark'\n | 'receive'\n | 'reminder-letter'\n | 'sand-timer'\n | 'shopping-bag'\n | 'skip-authentication'\n | 'speech-bubble'\n | 'tool'\n | 'two-invite-letters-opened'\n | 'wallet';\n"],"names":["Sizes","Illustration","Assets","forwardRef","ref","id","name","alt","loading","_ref$loading","SMALL","MEDIUM","LARGE","React","createElement","className","classNames","_ref","media","srcSet","defineSrc","src","illustration","size","descriptor"],"mappings":"gEAAYA,IAIXA,GAJD,SAAYA,GACVA,EAAA,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,MAAA,OACD,CAJD,CAAYA,IAAAA,EAIX,CAAA,ICWKC,IC0CLC,ED1CiBD,EAAGE,EACnB,SAAwDC,EAAAA,GAArDC,IAAIC,EAAAA,EAAAA,KAAMC,EAAAA,EAAAA,QAAKC,QAAAA,OAAU,IAAAC,EAAA,SAClBC,EAAyBV,EAAzBU,MAAOC,EAAkBX,EAAlBW,OAAQC,EAAUZ,EAAVY,MACvB,sBACEC,EAAAC,cAAA,UAAA,CACET,KAJHA,GAKGU,UAAWC,EAAW,mBAAkB,oBAAsBV,EALvBW,EAATF,yBAQ9BF,EACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAWC,EAAUd,EAAMI,EAAO,WAAUU,EAAUd,EAAMI,EAAO,2BAIrEG,0BACEK,MAAM,qBACNC,OAAWC,EAAUd,EAAMK,EAAQ,MAAK,KAAKS,EAAUd,EAAMK,EAAQ,MAAW,qBAGlFE,EACEC,cAAA,MAAA,CAAAV,IAAKA,EACLiB,IAAKD,EAAUd,EAAMM,EAAO,MAC5BL,IAAKA,EACLC,QAASA,EACTW,OAAWC,EAAUd,EAAMM,EAAO,MAAK,SAGzC,IACN,GAGF,WAAmBU,EAAsBC,EAAgBC,GACvD,MAAA,wBAA+BF,EAAgBC,IAAAA,MAAQC,EAAU,OACnE,EC1CA,SAAYtB,GACVA,EAAA,KAAA,OACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,WAAA,aACAA,EAAA,cAAA,gBACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,mBAAA,qBACAA,EAAA,QAAA,UACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,KAAA,OACAA,EAAA,cAAA,gBACAA,EAAA,MAAA,QACAA,EAAA,iBAAA,mBACAA,EAAA,KAAA,OACAA,EAAA,OAAA,SACAA,EAAA,KAAA,OACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,cAAA,gBACAA,EAAA,KAAA,OACAA,EAAA,IAAA,MACAA,EAAA,WAAA,aACAA,EAAA,KAAA,OACAA,EAAA,iBAAA,mBACAA,EAAA,IAAA,MACAA,EAAA,UAAA,YACAA,EAAA,eAAA,iBACAA,EAAA,yBAAA,2BACAA,EAAA,UAAA,YACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,cAAA,gBACAA,EAAA,cAAA,gBACAA,EAAA,QAAA,UACAA,EAAA,gBAAA,kBACAA,EAAA,WAAA,aACAA,EAAA,aAAA,eACAA,EAAA,oBAAA,sBACAA,EAAA,cAAA,gBACAA,EAAA,KAAA,OACAA,EAAA,0BAAA,4BACAA,EAAA,OAAA,QACD,CAlDD,CAAYA,IAAAA,EAkDX,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("classnames"),require("react")):"function"==typeof define&&define.amd?define(["exports","classnames","react"],t):t((e||self).art={},e.classnames,e.react)}(this,function(e,t,i){function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var E,l=/*#__PURE__*/a(t),n=/*#__PURE__*/a(i);e.Sizes=void 0,(E=e.Sizes||(e.Sizes={})).SMALL="small",E.MEDIUM="medium",E.LARGE="large";var s,r=i.forwardRef(function(t,i){var a=t.name,E=t.alt,s=t.loading,r=void 0===s?"lazy":s,c=e.Sizes.SMALL,d=e.Sizes.MEDIUM,u=e.Sizes.LARGE;return a?/*#__PURE__*/n.default.createElement("picture",{id:t.id,className:l.default("wds-illustration","wds-illustration-"+a,t.className)},/*#__PURE__*/n.default.createElement("source",{media:"(max-width: 575px)",srcSet:o(a,c,"1x")+", "+o(a,c,"2x")+" 2x"}),/*#__PURE__*/n.default.createElement("source",{media:"(max-width: 991px)",srcSet:o(a,d,"1x")+", "+o(a,d,"2x")+" 2x"}),/*#__PURE__*/n.default.createElement("img",{ref:i,src:o(a,u,"1x"),alt:E,loading:r,srcSet:o(a,u,"2x")+" 2x"})):null});function o(e,t,i){return"illustrations/assets/"+e+"-"+t+"@"+i+".webp"}e.Assets=void 0,(s=e.Assets||(e.Assets={})).BELL="bell",s.BRIEFCASE="briefcase",s.CALENDAR="calendar",s.CHECK_MARK="check-mark",s.CLOSED_WINDOW="closed-window",s.COIN_PILE="coin-pile",s.CONFETTI="confetti",s.CONSTRUCTION_FENCE="construction-fence",s.CONVERT="convert",s.COOKIE="cookie",s.DOCUMENTS="documents",s.DOOR="door",s.ELECTRIC_PLUG="electric-plug",s.EMAIL="email",s.EXCLAMATION_MARK="exclamation-mark",s.FLAG="flag",s.FLOWER="flower",s.GEAR="gear",s.GLOBE="globe",s.GRAPH="graph",s.HEART="heart",s.HOUSE="house",s.ID_CARD="id-card",s.INFINITE="infinite",s.INVITE_LETTER="invite-letter",s.JARS="jars",s.KEY="key",s.LIGHT_BULB="light-bulb",s.LOCK="lock",s.MAGNIFYING_GLASS="magnifying-glass",s.MAP="map",s.MEGAPHONE="megaphone",s.MULTI_CURRENCY="multi-currency",s.ONE_INVITE_LETTER_OPENED="one-invite-letter-opened",s.PALM_TREE="palm-tree",s.PHONES="phones",s.PIE_CHART="pie-chart",s.PLANE="plane",s.PUZZLE_PIECES="puzzle-pieces",s.QUESTION_MARK="question-mark",s.RECEIVE="receive",s.REMINDER_LETTER="reminder-letter",s.SAND_TIMER="sand-timer",s.SHOPPING_BAG="shopping-bag",s.SKIP_AUTHENTICATION="skip-authentication",s.SPEECH_BUBBLE="speech-bubble",s.TOOL="tool",s.TWO_INVITE_LETTERS_OPENED="two-invite-letters-opened",s.WALLET="wallet",e.Illustration=r});
|
|
2
|
+
//# sourceMappingURL=index.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":["../src/common.ts","../src/illustrations/Illustration.tsx","../src/illustrations/metadata.ts"],"sourcesContent":["export enum Sizes {\n SMALL = 'small',\n MEDIUM = 'medium',\n LARGE = 'large',\n}\n\nexport type SizeType = 'large' | 'medium' | 'small';\n\nexport type Descriptors = '1x' | '1.5x' | '2x' | '3x' | '4x';\n","import classNames from 'classnames';\nimport React, { forwardRef, ImgHTMLAttributes } from 'react';\n\nimport { SizeType, Descriptors, Sizes } from './../common';\nimport { IllustrationNames } from './metadata';\n\n// Picking only a few props from Image element to avoid breaking change\n// as in future underlying element might change\ntype ImgProps = Pick<ImgHTMLAttributes<HTMLImageElement>, 'id' | 'className' | 'loading'>;\n\nexport type Props = {\n name: IllustrationNames;\n alt: string;\n} & ImgProps;\n\nconst Illustration = forwardRef<HTMLImageElement, Props>(\n ({ id, name, alt, loading = 'lazy', className }: Props, ref) => {\n const { SMALL, MEDIUM, LARGE } = Sizes;\n return name ? (\n <picture\n id={id}\n className={classNames('wds-illustration', `wds-illustration-${name}`, className)}\n >\n {/* Mobile screens */}\n <source\n media=\"(max-width: 575px)\"\n srcSet={`${defineSrc(name, SMALL, '1x')}, ${defineSrc(name, SMALL, '2x')} 2x`}\n />\n\n {/* Tablets */}\n <source\n media=\"(max-width: 991px)\"\n srcSet={`${defineSrc(name, MEDIUM, '1x')}, ${defineSrc(name, MEDIUM, '2x')} 2x`}\n />\n\n <img\n ref={ref}\n src={defineSrc(name, LARGE, '1x')}\n alt={alt}\n loading={loading}\n srcSet={`${defineSrc(name, LARGE, '2x')} 2x`}\n />\n </picture>\n ) : null;\n },\n);\n\nfunction defineSrc(illustration: string, size: SizeType, descriptor: Descriptors) {\n return `illustrations/assets/${illustration}-${size}@${descriptor}.webp`;\n}\n\nexport default Illustration;\n","/**\n *\n * DON'T MODIFY THIS FILE IT'S AUTO GENERATED\n * See: `scripts/generate-i10s-metadata.mjs`\n *\n */\n\nexport enum Assets {\n BELL = 'bell',\n BRIEFCASE = 'briefcase',\n CALENDAR = 'calendar',\n CHECK_MARK = 'check-mark',\n CLOSED_WINDOW = 'closed-window',\n COIN_PILE = 'coin-pile',\n CONFETTI = 'confetti',\n CONSTRUCTION_FENCE = 'construction-fence',\n CONVERT = 'convert',\n COOKIE = 'cookie',\n DOCUMENTS = 'documents',\n DOOR = 'door',\n ELECTRIC_PLUG = 'electric-plug',\n EMAIL = 'email',\n EXCLAMATION_MARK = 'exclamation-mark',\n FLAG = 'flag',\n FLOWER = 'flower',\n GEAR = 'gear',\n GLOBE = 'globe',\n GRAPH = 'graph',\n HEART = 'heart',\n HOUSE = 'house',\n ID_CARD = 'id-card',\n INFINITE = 'infinite',\n INVITE_LETTER = 'invite-letter',\n JARS = 'jars',\n KEY = 'key',\n LIGHT_BULB = 'light-bulb',\n LOCK = 'lock',\n MAGNIFYING_GLASS = 'magnifying-glass',\n MAP = 'map',\n MEGAPHONE = 'megaphone',\n MULTI_CURRENCY = 'multi-currency',\n ONE_INVITE_LETTER_OPENED = 'one-invite-letter-opened',\n PALM_TREE = 'palm-tree',\n PHONES = 'phones',\n PIE_CHART = 'pie-chart',\n PLANE = 'plane',\n PUZZLE_PIECES = 'puzzle-pieces',\n QUESTION_MARK = 'question-mark',\n RECEIVE = 'receive',\n REMINDER_LETTER = 'reminder-letter',\n SAND_TIMER = 'sand-timer',\n SHOPPING_BAG = 'shopping-bag',\n SKIP_AUTHENTICATION = 'skip-authentication',\n SPEECH_BUBBLE = 'speech-bubble',\n TOOL = 'tool',\n TWO_INVITE_LETTERS_OPENED = 'two-invite-letters-opened',\n WALLET = 'wallet',\n}\n\nexport type IllustrationNames =\n | 'bell'\n | 'briefcase'\n | 'calendar'\n | 'check-mark'\n | 'closed-window'\n | 'coin-pile'\n | 'confetti'\n | 'construction-fence'\n | 'convert'\n | 'cookie'\n | 'documents'\n | 'door'\n | 'electric-plug'\n | 'email'\n | 'exclamation-mark'\n | 'flag'\n | 'flower'\n | 'gear'\n | 'globe'\n | 'graph'\n | 'heart'\n | 'house'\n | 'id-card'\n | 'infinite'\n | 'invite-letter'\n | 'jars'\n | 'key'\n | 'light-bulb'\n | 'lock'\n | 'magnifying-glass'\n | 'map'\n | 'megaphone'\n | 'multi-currency'\n | 'one-invite-letter-opened'\n | 'palm-tree'\n | 'phones'\n | 'pie-chart'\n | 'plane'\n | 'puzzle-pieces'\n | 'question-mark'\n | 'receive'\n | 'reminder-letter'\n | 'sand-timer'\n | 'shopping-bag'\n | 'skip-authentication'\n | 'speech-bubble'\n | 'tool'\n | 'two-invite-letters-opened'\n | 'wallet';\n"],"names":["Sizes","Assets","Illustration","forwardRef","ref","id","name","alt","loading","_ref$loading","SMALL","MEDIUM","LARGE","React","createElement","className","classNames","_ref","media","srcSet","defineSrc","src","illustration","size","descriptor"],"mappings":"8XAAYA,0CAIXA,EAAAA,WAAAA,GAJWA,EAAAA,UAAAA,EAAAA,MAIX,CAAA,IAHC,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,MAAA,QCYgB,ICRNC,EDQMC,EAAGC,EAAAA,WACnB,SAAwDC,EAAAA,GAArDC,IAAIC,EAAAA,EAAAA,KAAMC,EAAAA,EAAAA,QAAKC,QAAAA,OAAU,IAAAC,EAAA,SAClBC,EAAyBV,EAAAA,MAAzBU,MAAOC,EAAkBX,EAAKA,MAAvBW,OAAQC,EAAUZ,EAAKA,MAAfY,MACvB,sBACEC,EAAAA,QAAAC,cAAA,UAAA,CACET,KAJHA,GAKGU,UAAWC,EAAU,QAAC,mBAAkB,oBAAsBV,EALvBW,EAATF,yBAQ9BF,EAAAA,QACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAWC,EAAUd,EAAMI,EAAO,WAAUU,EAAUd,EAAMI,EAAO,2BAIrEG,EAAAA,gCACEK,MAAM,qBACNC,OAAWC,EAAUd,EAAMK,EAAQ,MAAK,KAAKS,EAAUd,EAAMK,EAAQ,MAAW,qBAGlFE,EAAAA,QACEC,cAAA,MAAA,CAAAV,IAAKA,EACLiB,IAAKD,EAAUd,EAAMM,EAAO,MAC5BL,IAAKA,EACLC,QAASA,EACTW,OAAWC,EAAUd,EAAMM,EAAO,MAAK,SAGzC,IACN,GAGF,WAAmBU,EAAsBC,EAAgBC,GACvD,MAAA,wBAA+BF,EAAgBC,IAAAA,MAAQC,EAAU,OACnE,CCQCvB,EAAAA,YAAAA,GAlDWA,EAAAA,EAAMA,SAANA,SAkDX,CAAA,IAjDC,KAAA,OACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,WAAA,aACAA,EAAA,cAAA,gBACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,mBAAA,qBACAA,EAAA,QAAA,UACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,KAAA,OACAA,EAAA,cAAA,gBACAA,EAAA,MAAA,QACAA,EAAA,iBAAA,mBACAA,EAAA,KAAA,OACAA,EAAA,OAAA,SACAA,EAAA,KAAA,OACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,cAAA,gBACAA,EAAA,KAAA,OACAA,EAAA,IAAA,MACAA,EAAA,WAAA,aACAA,EAAA,KAAA,OACAA,EAAA,iBAAA,mBACAA,EAAA,IAAA,MACAA,EAAA,UAAA,YACAA,EAAA,eAAA,iBACAA,EAAA,yBAAA,2BACAA,EAAA,UAAA,YACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,cAAA,gBACAA,EAAA,cAAA,gBACAA,EAAA,QAAA,UACAA,EAAA,gBAAA,kBACAA,EAAA,WAAA,aACAA,EAAA,aAAA,eACAA,EAAA,oBAAA,sBACAA,EAAA,cAAA,gBACAA,EAAA,KAAA,OACAA,EAAA,0BAAA,4BACAA,EAAA,OAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wise/art",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "React library for art elements in UI",
|
|
6
|
+
"homepage": "https://github.com/transferwise/web-art#readme",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/transferwise/web-art.git"
|
|
10
|
+
},
|
|
11
|
+
"source": "src/index.ts",
|
|
12
|
+
"main": "dist/index.js",
|
|
13
|
+
"module": "./dist/index.module.js",
|
|
14
|
+
"unpkg": "./dist/index.umd.js",
|
|
15
|
+
"types": "dist/index.d.ts",
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"setup": "yarn && yarn build",
|
|
21
|
+
"load-i10s": "cpx 'node_modules/wise-atoms/illustrations/**/*.png' temp",
|
|
22
|
+
"convert-i10s-png-to-webp": "rm -rf src/illustrations/assets && node ./scripts/convert-png-to-webp.mjs",
|
|
23
|
+
"generate-i10s-metadata": "node ./scripts/generate-i10s-metadata.mjs && eslint 'src/illustrations/metadata.ts' --fix",
|
|
24
|
+
"bundle": "rm -rf dist && microbundle --jsxFragment React.Fragment --jsx React.createElement && cpx src/illustrations/Illustration.css dist/",
|
|
25
|
+
"copy-i10s": "cpx 'src/illustrations/assets/*' dist/illustrations/assets",
|
|
26
|
+
"cleanup": "rm -rf temp",
|
|
27
|
+
"build": "yarn load-i10s && yarn convert-i10s-png-to-webp && yarn generate-i10s-metadata && yarn bundle && yarn copy-i10s && yarn cleanup",
|
|
28
|
+
"start": "start-storybook -p 3001",
|
|
29
|
+
"dev": "yarn start",
|
|
30
|
+
"lint-fix": "eslint 'src/**/*.{js,ts,tsx}' 'scripts/*.{mjs,js,ts,tsx}' --fix"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"wise-atoms": "git+ssh://git@github.com:transferwise/wise-atoms.git#e16d86e7d741bd56e4a17ab9ec39d6de479eb0f9",
|
|
34
|
+
"imagemin": "^8.0.1",
|
|
35
|
+
"imagemin-webp": "^7.0.0",
|
|
36
|
+
"@types/imagemin": "^8.0.0",
|
|
37
|
+
"@types/imagemin-webp": "^7.0.0",
|
|
38
|
+
"@types/jest": "^28.1.6",
|
|
39
|
+
"@types/react": "^18.0.15",
|
|
40
|
+
"@types/react-dom": "^18.0.6",
|
|
41
|
+
"react": "^18.2.0",
|
|
42
|
+
"react-dom": "^18.2.0",
|
|
43
|
+
"@babel/preset-env": "^7.18.9",
|
|
44
|
+
"@babel/preset-react": "^7.18.6",
|
|
45
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
46
|
+
"@transferwise/eslint-config": "^8.0.0",
|
|
47
|
+
"classnames": "^2.3.1",
|
|
48
|
+
"eslint": "^8.21.0",
|
|
49
|
+
"jest": "^28.1.3",
|
|
50
|
+
"jest-environment-jsdom": "^28.1.3",
|
|
51
|
+
"prettier": "^2.7.1",
|
|
52
|
+
"release-to-github-with-changelog": "^1.2.4",
|
|
53
|
+
"ts-node": "10.9.1",
|
|
54
|
+
"typescript": "^4.7.4",
|
|
55
|
+
"@tsconfig/node16": "^1.0.3",
|
|
56
|
+
"cpx": "^1.5.0",
|
|
57
|
+
"glob": "^8.0.3",
|
|
58
|
+
"@types/glob": "^8.0.0",
|
|
59
|
+
"@storybook/addon-essentials": "^6.5.13",
|
|
60
|
+
"@storybook/react": "^6.5.13",
|
|
61
|
+
"microbundle": "^0.15.1"
|
|
62
|
+
},
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"react": "^18",
|
|
65
|
+
"react-dom": "^18",
|
|
66
|
+
"classnames": "^2.3"
|
|
67
|
+
},
|
|
68
|
+
"prettier": "@transferwise/eslint-config/.prettierrc.js"
|
|
69
|
+
}
|