@thecb/components 6.2.8 → 6.2.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.
- package/dist/index.cjs.js +17 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +17 -17
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/withWindowSize.js +1 -14
- package/src/util/general.js +14 -0
package/dist/index.cjs.js
CHANGED
|
@@ -6304,6 +6304,20 @@ var checkDeniedCards = function checkDeniedCards(name) {
|
|
|
6304
6304
|
var screenReaderOnlyStyle = "\n position: absolute;\n left: -10000px;\n top: auto;\n width: 1px;\n height: 1px;\n overflow: hidden;\n";
|
|
6305
6305
|
var inputPlaceholderTextStyle = "\n ::-webkit-input-placeholder {\n color: ".concat(CHARADE_GREY, ";\n }\n ::-moz-placeholder {\n color: ").concat(CHARADE_GREY, ";\n }\n ::-ms-placeholder {\n color: ").concat(CHARADE_GREY, ";\n }\n ::placeholder {\n color: ").concat(CHARADE_GREY, ";\n }\n");
|
|
6306
6306
|
var inputDisabledStyle = "\n color: #6e727e;\n background-color: #f7f7f7;\n pointer-events: none;\n";
|
|
6307
|
+
var MOBILE_WIDTH = 768;
|
|
6308
|
+
var throttle = function throttle(delay, fn) {
|
|
6309
|
+
var lastCall = 0;
|
|
6310
|
+
return function () {
|
|
6311
|
+
var now = new Date().getTime();
|
|
6312
|
+
|
|
6313
|
+
if (now - lastCall < delay) {
|
|
6314
|
+
return;
|
|
6315
|
+
}
|
|
6316
|
+
|
|
6317
|
+
lastCall = now;
|
|
6318
|
+
return fn.apply(void 0, arguments);
|
|
6319
|
+
};
|
|
6320
|
+
};
|
|
6307
6321
|
|
|
6308
6322
|
var general = /*#__PURE__*/Object.freeze({
|
|
6309
6323
|
__proto__: null,
|
|
@@ -6319,7 +6333,9 @@ var general = /*#__PURE__*/Object.freeze({
|
|
|
6319
6333
|
checkDeniedCards: checkDeniedCards,
|
|
6320
6334
|
screenReaderOnlyStyle: screenReaderOnlyStyle,
|
|
6321
6335
|
inputPlaceholderTextStyle: inputPlaceholderTextStyle,
|
|
6322
|
-
inputDisabledStyle: inputDisabledStyle
|
|
6336
|
+
inputDisabledStyle: inputDisabledStyle,
|
|
6337
|
+
MOBILE_WIDTH: MOBILE_WIDTH,
|
|
6338
|
+
throttle: throttle
|
|
6323
6339
|
});
|
|
6324
6340
|
|
|
6325
6341
|
var _excluded$1 = ["themeValues", "weight", "color", "textWrap", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children"];
|
|
@@ -19041,22 +19057,6 @@ var fallbackValues$b = {
|
|
|
19041
19057
|
iconBackgroundColor: iconBackgroundColor
|
|
19042
19058
|
};
|
|
19043
19059
|
|
|
19044
|
-
var MOBILE_WIDTH = 768;
|
|
19045
|
-
|
|
19046
|
-
var throttle = function throttle(delay, fn) {
|
|
19047
|
-
var lastCall = 0;
|
|
19048
|
-
return function () {
|
|
19049
|
-
var now = new Date().getTime();
|
|
19050
|
-
|
|
19051
|
-
if (now - lastCall < delay) {
|
|
19052
|
-
return;
|
|
19053
|
-
}
|
|
19054
|
-
|
|
19055
|
-
lastCall = now;
|
|
19056
|
-
return fn.apply(void 0, arguments);
|
|
19057
|
-
};
|
|
19058
|
-
};
|
|
19059
|
-
|
|
19060
19060
|
var withWindowSize = function withWindowSize(Child) {
|
|
19061
19061
|
return function (_ref) {
|
|
19062
19062
|
var props = _extends({}, _ref);
|