@transferwise/components 43.13.8 → 43.13.9

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.
@@ -7,5 +7,5 @@ import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutPropert
7
7
  * @param root0.small
8
8
  * @param root0.size
9
9
  * @param root0.classNames
10
- */var Loader=function(a){var b=a.small,c=a.size,d=void 0===c?Size.EXTRA_LARGE:c,e=a.classNames,f=void 0===e?{}:e,g=_objectWithoutProperties(a,_excluded),h=useTheme(),i=h.isModern,j=function(a){return f[a]||a},k=void 0!==b&&b?Size.SMALL:d,l=getSupportedSize(i,k);return/*#__PURE__*/_jsx("div",{className:classnames(j("tw-loader"),j("tw-loader--".concat(l))),"data-testid":g["data-testid"],children:!i&&[,,,,,].fill(void 0).map(function(a,b){return/*#__PURE__*/ (// eslint-disable-next-line react/no-array-index-key
11
- _jsx("div",{className:j("tw-loader__stripe")},b))})})},getSupportedSize=function(a,b){if(a)switch(b){case Size.EXTRA_LARGE:case Size.LARGE:return Size.LARGE;case Size.MEDIUM:return Size.MEDIUM;case Size.SMALL:case Size.EXTRA_SMALL:return Size.SMALL;}return b};export default Loader;
10
+ */var Loader=function(a){var b=a.small,c=a.size,d=void 0===c?Size.EXTRA_LARGE:c,e=a.classNames,f=void 0===e?{}:e,g=_objectWithoutProperties(a,_excluded),h=useTheme(),i=h.isModern,j=function(a){return f[a]||a},k=void 0!==b&&b?Size.SMALL:d,l=getSupportedSize(k);return/*#__PURE__*/_jsx("div",{className:classnames(j("tw-loader"),j("tw-loader--".concat(l))),"data-testid":g["data-testid"],children:!i&&[,,,,,].fill(void 0).map(function(a,b){return/*#__PURE__*/ (// eslint-disable-next-line react/no-array-index-key
11
+ _jsx("div",{className:j("tw-loader__stripe")},b))})})},getSupportedSize=function(a){switch(a){case Size.EXTRA_LARGE:case Size.LARGE:return Size.LARGE;case Size.SMALL:case Size.EXTRA_SMALL:return Size.SMALL;case Size.MEDIUM:default:return Size.MEDIUM;}};export default Loader;
@@ -7,5 +7,5 @@ import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutPropert
7
7
  * @param root0.small
8
8
  * @param root0.size
9
9
  * @param root0.classNames
10
- */var Loader=function(a){var b=a.small,c=a.size,d=void 0===c?Size.EXTRA_LARGE:c,e=a.classNames,f=void 0===e?{}:e,g=_objectWithoutProperties(a,_excluded),h=useTheme(),i=h.isModern,j=function(a){return f[a]||a},k=void 0!==b&&b?Size.SMALL:d,l=getSupportedSize(i,k);return/*#__PURE__*/_jsx("div",{className:classnames(j("tw-loader"),j("tw-loader--".concat(l))),"data-testid":g["data-testid"],children:!i&&[,,,,,].fill(void 0).map(function(a,b){return/*#__PURE__*/ (// eslint-disable-next-line react/no-array-index-key
11
- _jsx("div",{className:j("tw-loader__stripe")},b))})})},getSupportedSize=function(a,b){if(a)switch(b){case Size.EXTRA_LARGE:case Size.LARGE:return Size.LARGE;case Size.MEDIUM:return Size.MEDIUM;case Size.SMALL:case Size.EXTRA_SMALL:return Size.SMALL;}return b};export default Loader;
10
+ */var Loader=function(a){var b=a.small,c=a.size,d=void 0===c?Size.EXTRA_LARGE:c,e=a.classNames,f=void 0===e?{}:e,g=_objectWithoutProperties(a,_excluded),h=useTheme(),i=h.isModern,j=function(a){return f[a]||a},k=void 0!==b&&b?Size.SMALL:d,l=getSupportedSize(k);return/*#__PURE__*/_jsx("div",{className:classnames(j("tw-loader"),j("tw-loader--".concat(l))),"data-testid":g["data-testid"],children:!i&&[,,,,,].fill(void 0).map(function(a,b){return/*#__PURE__*/ (// eslint-disable-next-line react/no-array-index-key
11
+ _jsx("div",{className:j("tw-loader__stripe")},b))})})},getSupportedSize=function(a){switch(a){case Size.EXTRA_LARGE:case Size.LARGE:return Size.LARGE;case Size.SMALL:case Size.EXTRA_SMALL:return Size.SMALL;case Size.MEDIUM:default:return Size.MEDIUM;}};export default Loader;