willba-component-library 0.0.65 → 0.0.66
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/lib/index.esm.js +2 -79
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2 -79
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +2 -79
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FilterBar/components/submit-button/SubmitButton.tsx +2 -4
- package/src/themes/Default.css +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -382,82 +382,6 @@ function SelectButton(_a) {
|
|
|
382
382
|
return (React__default__default.createElement("button", { className: "will-filter-bar-select-button", onClick: onClick, style: style }, label));
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
var DefaultContext = {
|
|
386
|
-
color: undefined,
|
|
387
|
-
size: undefined,
|
|
388
|
-
className: undefined,
|
|
389
|
-
style: undefined,
|
|
390
|
-
attr: undefined
|
|
391
|
-
};
|
|
392
|
-
var IconContext = React__default__default.createContext && React__default__default.createContext(DefaultContext);
|
|
393
|
-
|
|
394
|
-
var __assign$1 = undefined && undefined.__assign || function () {
|
|
395
|
-
__assign$1 = Object.assign || function (t) {
|
|
396
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
397
|
-
s = arguments[i];
|
|
398
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
399
|
-
}
|
|
400
|
-
return t;
|
|
401
|
-
};
|
|
402
|
-
return __assign$1.apply(this, arguments);
|
|
403
|
-
};
|
|
404
|
-
var __rest$1 = undefined && undefined.__rest || function (s, e) {
|
|
405
|
-
var t = {};
|
|
406
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
407
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
408
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
409
|
-
}
|
|
410
|
-
return t;
|
|
411
|
-
};
|
|
412
|
-
function Tree2Element(tree) {
|
|
413
|
-
return tree && tree.map(function (node, i) {
|
|
414
|
-
return React__default__default.createElement(node.tag, __assign$1({
|
|
415
|
-
key: i
|
|
416
|
-
}, node.attr), Tree2Element(node.child));
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
function GenIcon(data) {
|
|
420
|
-
// eslint-disable-next-line react/display-name
|
|
421
|
-
return function (props) {
|
|
422
|
-
return React__default__default.createElement(IconBase, __assign$1({
|
|
423
|
-
attr: __assign$1({}, data.attr)
|
|
424
|
-
}, props), Tree2Element(data.child));
|
|
425
|
-
};
|
|
426
|
-
}
|
|
427
|
-
function IconBase(props) {
|
|
428
|
-
var elem = function (conf) {
|
|
429
|
-
var attr = props.attr,
|
|
430
|
-
size = props.size,
|
|
431
|
-
title = props.title,
|
|
432
|
-
svgProps = __rest$1(props, ["attr", "size", "title"]);
|
|
433
|
-
var computedSize = size || conf.size || "1em";
|
|
434
|
-
var className;
|
|
435
|
-
if (conf.className) className = conf.className;
|
|
436
|
-
if (props.className) className = (className ? className + " " : "") + props.className;
|
|
437
|
-
return React__default__default.createElement("svg", __assign$1({
|
|
438
|
-
stroke: "currentColor",
|
|
439
|
-
fill: "currentColor",
|
|
440
|
-
strokeWidth: "0"
|
|
441
|
-
}, conf.attr, attr, svgProps, {
|
|
442
|
-
className: className,
|
|
443
|
-
style: __assign$1(__assign$1({
|
|
444
|
-
color: props.color || conf.color
|
|
445
|
-
}, conf.style), props.style),
|
|
446
|
-
height: computedSize,
|
|
447
|
-
width: computedSize,
|
|
448
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
449
|
-
}), title && React__default__default.createElement("title", null, title), props.children);
|
|
450
|
-
};
|
|
451
|
-
return IconContext !== undefined ? React__default__default.createElement(IconContext.Consumer, null, function (conf) {
|
|
452
|
-
return elem(conf);
|
|
453
|
-
}) : elem(DefaultContext);
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
// THIS FILE IS AUTO GENERATED
|
|
457
|
-
function FaSearch (props) {
|
|
458
|
-
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"}}]})(props);
|
|
459
|
-
}
|
|
460
|
-
|
|
461
385
|
var css_248z$6 = ".will-filter-bar-submit-button {\n width: auto;\n height: auto;\n background-color: var(--will-primary);\n color: var(--will-white);\n padding: 10px 20px;\n border-radius: 20px;\n cursor: pointer;\n border: none;\n white-space: nowrap;\n text-transform: uppercase;\n font-size: 12px;\n display: flex;\n align-items: center;\n}\n\n.will-filter-bar-submit-button span {\n margin-right: 10px;\n display: flex;\n}\n\n@media (max-width: 1024px) {\n .will-filter-bar-submit-button {\n justify-content: center;\n margin-bottom: 25px;\n }\n}\n";
|
|
462
386
|
styleInject(css_248z$6);
|
|
463
387
|
|
|
@@ -465,8 +389,7 @@ function SubmitButton(_a) {
|
|
|
465
389
|
var onClick = _a.onClick;
|
|
466
390
|
var t = useTranslation('filterBar').t;
|
|
467
391
|
return (React__default__default.createElement("button", { className: "will-filter-bar-submit-button", onClick: onClick },
|
|
468
|
-
React__default__default.createElement("span", null,
|
|
469
|
-
React__default__default.createElement(FaSearch, null)),
|
|
392
|
+
React__default__default.createElement("span", null),
|
|
470
393
|
t('submit.label')));
|
|
471
394
|
}
|
|
472
395
|
|
|
@@ -7991,7 +7914,7 @@ function useFilterBar() {
|
|
|
7991
7914
|
var css_248z$1 = ".will-root {\r\n position: relative;\r\n}\r\n\r\n.will-filter-bar {\r\n box-sizing: border-box;\r\n position: relative;\r\n}\r\n\r\n.will-filter-bar-underlay {\r\n background-color: rgba(0,0,0,.6);\r\n position: absolute;\r\n top:0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n cursor: pointer;\r\n min-height: 100vh;\r\n}\r\n\r\n/* Header */\r\n.will-filter-bar-header {\r\n display: flex;\r\n justify-content: space-between;\r\n padding: 10px 20px;\r\n position: relative;\r\n z-index: 222;\r\n \r\n \r\n border-radius: 40px;\r\n background-color: var(--will-white);\r\n box-shadow: var(--will-box-shadow);\r\n}\r\n\r\n@media (max-width: 1024px) {\r\n .will-filter-bar-header {\r\n flex-direction: column;\r\n padding: 20px;\r\n }\r\n}\r\n\r\n/* Container */\r\n\r\n.will-filter-bar-container {\r\n background-color: var(--will-white);\r\n min-height: 100px;\r\n \r\n padding: 90px 40px 30px 40px;\r\n position: absolute;\r\n top: 0;\r\n z-index: 111;\r\n border-radius: 25px;\r\n width: -webkit-fill-available;\r\n box-shadow: var(--will-box-shadow);\r\n}\r\n\r\n@media (max-width: 1024px) {\r\n .will-filter-bar-container {\r\n margin-top: 20px;\r\n padding: 30px 40px;\r\n position: initial;\r\n }\r\n}\r\n\r\n";
|
|
7992
7915
|
styleInject(css_248z$1);
|
|
7993
7916
|
|
|
7994
|
-
var css_248z = "@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap')
|
|
7917
|
+
var css_248z = "/* @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap'); */\n\n.will-root * {\n font-family: 'Montserrat', sans-serif;\n}\n\n.will-root {\n \n box-sizing: border-box;\n font-size: 14px;\n \n color: #1E1E1E;\n\n /* Pallete */\n --will-primary: #374269;\n --will-grey: #ABA7AF;\n --will-white: #fff;\n --will-onahau: #CDEEFF;\n --will-text: #5A5959;\n \n\n /* Confines */\n --will-box-shadow: 0px 6px 11px 0px #a7a4a480;\n\n /* Breakpoints */\n\n --will-lg: 1140px;\n --will-md: 960px;\n --will-sm: 600px;\n --will-xl: 1280px;\n --will-xs: 0px;\n}\n\n/* Typography */\n\n.will-root h1, h2, h3, h4, h5, h6 {\n font-weight: 700;\n} \n\n.will-root p, h1, h2, h3, h4, h5, h6, span {\n margin: 0;\n padding: 0;\n} \n\n/* Overrides as themes */\n\n.will-root-kis {\n --will-primary: #374269;\n}\n\n.will-root-paj {\n --will-primary: #1897D8;\n}";
|
|
7995
7918
|
styleInject(css_248z);
|
|
7996
7919
|
|
|
7997
7920
|
const consoleLogger = {
|