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