@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.esm.js
CHANGED
|
@@ -6296,6 +6296,20 @@ var checkDeniedCards = function checkDeniedCards(name) {
|
|
|
6296
6296
|
var screenReaderOnlyStyle = "\n position: absolute;\n left: -10000px;\n top: auto;\n width: 1px;\n height: 1px;\n overflow: hidden;\n";
|
|
6297
6297
|
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");
|
|
6298
6298
|
var inputDisabledStyle = "\n color: #6e727e;\n background-color: #f7f7f7;\n pointer-events: none;\n";
|
|
6299
|
+
var MOBILE_WIDTH = 768;
|
|
6300
|
+
var throttle = function throttle(delay, fn) {
|
|
6301
|
+
var lastCall = 0;
|
|
6302
|
+
return function () {
|
|
6303
|
+
var now = new Date().getTime();
|
|
6304
|
+
|
|
6305
|
+
if (now - lastCall < delay) {
|
|
6306
|
+
return;
|
|
6307
|
+
}
|
|
6308
|
+
|
|
6309
|
+
lastCall = now;
|
|
6310
|
+
return fn.apply(void 0, arguments);
|
|
6311
|
+
};
|
|
6312
|
+
};
|
|
6299
6313
|
|
|
6300
6314
|
var general = /*#__PURE__*/Object.freeze({
|
|
6301
6315
|
__proto__: null,
|
|
@@ -6311,7 +6325,9 @@ var general = /*#__PURE__*/Object.freeze({
|
|
|
6311
6325
|
checkDeniedCards: checkDeniedCards,
|
|
6312
6326
|
screenReaderOnlyStyle: screenReaderOnlyStyle,
|
|
6313
6327
|
inputPlaceholderTextStyle: inputPlaceholderTextStyle,
|
|
6314
|
-
inputDisabledStyle: inputDisabledStyle
|
|
6328
|
+
inputDisabledStyle: inputDisabledStyle,
|
|
6329
|
+
MOBILE_WIDTH: MOBILE_WIDTH,
|
|
6330
|
+
throttle: throttle
|
|
6315
6331
|
});
|
|
6316
6332
|
|
|
6317
6333
|
var _excluded$1 = ["themeValues", "weight", "color", "textWrap", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children"];
|
|
@@ -19033,22 +19049,6 @@ var fallbackValues$b = {
|
|
|
19033
19049
|
iconBackgroundColor: iconBackgroundColor
|
|
19034
19050
|
};
|
|
19035
19051
|
|
|
19036
|
-
var MOBILE_WIDTH = 768;
|
|
19037
|
-
|
|
19038
|
-
var throttle = function throttle(delay, fn) {
|
|
19039
|
-
var lastCall = 0;
|
|
19040
|
-
return function () {
|
|
19041
|
-
var now = new Date().getTime();
|
|
19042
|
-
|
|
19043
|
-
if (now - lastCall < delay) {
|
|
19044
|
-
return;
|
|
19045
|
-
}
|
|
19046
|
-
|
|
19047
|
-
lastCall = now;
|
|
19048
|
-
return fn.apply(void 0, arguments);
|
|
19049
|
-
};
|
|
19050
|
-
};
|
|
19051
|
-
|
|
19052
19052
|
var withWindowSize = function withWindowSize(Child) {
|
|
19053
19053
|
return function (_ref) {
|
|
19054
19054
|
var props = _extends({}, _ref);
|