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