@transferwise/components 43.10.2 → 43.11.0
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/build/es/no-polyfill/loader/Loader.js +3 -3
- package/build/es/polyfill/loader/Loader.js +3 -3
- package/build/main.css +1 -1
- package/build/styles/loader/Loader.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/umd/no-polyfill/main.js +1 -1
- package/build/umd/polyfill/main.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["small","size","classNames"];import classnames from"classnames";import{Size}from"../common";import{jsx as _jsx}from"react/jsx-runtime";/**
|
|
1
|
+
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["small","size","classNames"];import{useTheme}from"@wise/components-theming";import classnames from"classnames";import{Size}from"../common";import{jsx as _jsx}from"react/jsx-runtime";/**
|
|
2
2
|
* Loader component
|
|
3
3
|
*
|
|
4
4
|
* Docs link: https://transferwise.github.io/neptune-web/components/progress/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=function(a){return f[a]||a},
|
|
11
|
-
_jsx("div",{className:
|
|
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.EXTRA_SMALL:d;return/*#__PURE__*/_jsx("div",{className:classnames(j("tw-loader"),j("tw-loader--".concat(k))),"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))})})};export default Loader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["small","size","classNames"];import"core-js/modules/es.string.small.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.array.fill.js";import classnames from"classnames";import{Size}from"../common";import{jsx as _jsx}from"react/jsx-runtime";/**
|
|
1
|
+
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["small","size","classNames"];import"core-js/modules/es.string.small.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.array.fill.js";import{useTheme}from"@wise/components-theming";import classnames from"classnames";import{Size}from"../common";import{jsx as _jsx}from"react/jsx-runtime";/**
|
|
2
2
|
* Loader component
|
|
3
3
|
*
|
|
4
4
|
* Docs link: https://transferwise.github.io/neptune-web/components/progress/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=function(a){return f[a]||a},
|
|
11
|
-
_jsx("div",{className:
|
|
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.EXTRA_SMALL:d;return/*#__PURE__*/_jsx("div",{className:classnames(j("tw-loader"),j("tw-loader--".concat(k))),"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))})})};export default Loader;
|