willba-component-library 0.0.70 → 0.0.71
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 +1 -78
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +1 -78
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +1 -78
- package/lib/index.umd.js.map +1 -1
- package/package.json +3 -3
- package/src/components/FilterBar/components/submit-button/SubmitButton.tsx +2 -4
package/lib/index.js
CHANGED
|
@@ -400,82 +400,6 @@ function SelectButton(_a) {
|
|
|
400
400
|
return (React__default.createElement("button", { className: "will-filter-bar-select-button", onClick: onClick, style: style }, label));
|
|
401
401
|
}
|
|
402
402
|
|
|
403
|
-
var DefaultContext = {
|
|
404
|
-
color: undefined,
|
|
405
|
-
size: undefined,
|
|
406
|
-
className: undefined,
|
|
407
|
-
style: undefined,
|
|
408
|
-
attr: undefined
|
|
409
|
-
};
|
|
410
|
-
var IconContext = React__default.createContext && React__default.createContext(DefaultContext);
|
|
411
|
-
|
|
412
|
-
var __assign$1 = undefined && undefined.__assign || function () {
|
|
413
|
-
__assign$1 = Object.assign || function (t) {
|
|
414
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
415
|
-
s = arguments[i];
|
|
416
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
417
|
-
}
|
|
418
|
-
return t;
|
|
419
|
-
};
|
|
420
|
-
return __assign$1.apply(this, arguments);
|
|
421
|
-
};
|
|
422
|
-
var __rest$1 = undefined && undefined.__rest || function (s, e) {
|
|
423
|
-
var t = {};
|
|
424
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
425
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
426
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
427
|
-
}
|
|
428
|
-
return t;
|
|
429
|
-
};
|
|
430
|
-
function Tree2Element(tree) {
|
|
431
|
-
return tree && tree.map(function (node, i) {
|
|
432
|
-
return React__default.createElement(node.tag, __assign$1({
|
|
433
|
-
key: i
|
|
434
|
-
}, node.attr), Tree2Element(node.child));
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
function GenIcon(data) {
|
|
438
|
-
// eslint-disable-next-line react/display-name
|
|
439
|
-
return function (props) {
|
|
440
|
-
return React__default.createElement(IconBase, __assign$1({
|
|
441
|
-
attr: __assign$1({}, data.attr)
|
|
442
|
-
}, props), Tree2Element(data.child));
|
|
443
|
-
};
|
|
444
|
-
}
|
|
445
|
-
function IconBase(props) {
|
|
446
|
-
var elem = function (conf) {
|
|
447
|
-
var attr = props.attr,
|
|
448
|
-
size = props.size,
|
|
449
|
-
title = props.title,
|
|
450
|
-
svgProps = __rest$1(props, ["attr", "size", "title"]);
|
|
451
|
-
var computedSize = size || conf.size || "1em";
|
|
452
|
-
var className;
|
|
453
|
-
if (conf.className) className = conf.className;
|
|
454
|
-
if (props.className) className = (className ? className + " " : "") + props.className;
|
|
455
|
-
return React__default.createElement("svg", __assign$1({
|
|
456
|
-
stroke: "currentColor",
|
|
457
|
-
fill: "currentColor",
|
|
458
|
-
strokeWidth: "0"
|
|
459
|
-
}, conf.attr, attr, svgProps, {
|
|
460
|
-
className: className,
|
|
461
|
-
style: __assign$1(__assign$1({
|
|
462
|
-
color: props.color || conf.color
|
|
463
|
-
}, conf.style), props.style),
|
|
464
|
-
height: computedSize,
|
|
465
|
-
width: computedSize,
|
|
466
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
467
|
-
}), title && React__default.createElement("title", null, title), props.children);
|
|
468
|
-
};
|
|
469
|
-
return IconContext !== undefined ? React__default.createElement(IconContext.Consumer, null, function (conf) {
|
|
470
|
-
return elem(conf);
|
|
471
|
-
}) : elem(DefaultContext);
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
// THIS FILE IS AUTO GENERATED
|
|
475
|
-
function FaSearch (props) {
|
|
476
|
-
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);
|
|
477
|
-
}
|
|
478
|
-
|
|
479
403
|
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";
|
|
480
404
|
styleInject(css_248z$6);
|
|
481
405
|
|
|
@@ -483,8 +407,7 @@ function SubmitButton(_a) {
|
|
|
483
407
|
var onClick = _a.onClick;
|
|
484
408
|
var t = useTranslation('filterBar').t;
|
|
485
409
|
return (React__default.createElement("button", { className: "will-filter-bar-submit-button", onClick: onClick },
|
|
486
|
-
React__default.createElement("span", null,
|
|
487
|
-
React__default.createElement(FaSearch, null)),
|
|
410
|
+
React__default.createElement("span", null),
|
|
488
411
|
t('submit.label')));
|
|
489
412
|
}
|
|
490
413
|
|