willba-component-library 0.2.90 → 0.2.92
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 +6 -6
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +6 -6
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +6 -6
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FilterBar/components/guests/GuestCount/GuestCount.css +5 -8
- package/src/components/FilterBar/components/guests/GuestCount/GuestCount.tsx +28 -2
- package/src/core/components/calendar/utils/disabledDatesByPage.tsx +1 -6
package/lib/index.esm.js
CHANGED
|
@@ -11191,9 +11191,7 @@ var disabledDatesByPage = function (_a) {
|
|
|
11191
11191
|
return daysToOffsetCalendar.length
|
|
11192
11192
|
? [
|
|
11193
11193
|
{
|
|
11194
|
-
from: addDays(today,
|
|
11195
|
-
? (_d = daysToOffsetCalendar[0]) === null || _d === void 0 ? void 0 : _d.offset
|
|
11196
|
-
: -2),
|
|
11194
|
+
from: addDays(today, (_d = (_c = daysToOffsetCalendar[0]) === null || _c === void 0 ? void 0 : _c.offset) !== null && _d !== void 0 ? _d : -1),
|
|
11197
11195
|
to: addDays(today, -100),
|
|
11198
11196
|
},
|
|
11199
11197
|
]
|
|
@@ -11860,7 +11858,7 @@ var TabButton = function (_a) {
|
|
|
11860
11858
|
return (React__default__default.createElement("button", { className: "will-filter-bar-tab-button ".concat(mode || 'light', " ").concat(active && 'active', " "), onClick: onClick }, label));
|
|
11861
11859
|
};
|
|
11862
11860
|
|
|
11863
|
-
var css_248z$5 = ".will-guests-filter-label, .will-guests-filter-count {\n font-size: 18px;\n color: var(--will-text)\n}\n\n.will-guests-filter-inner {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 30px;\n}\n\n.will-guests-filter-label {\n display: block;\n font-weight: 600;\n margin-bottom: 10px;\n \n}\n\n.will-guests-filter-inner .will-guests-filter-counter {\n display: flex;\n align-items: center;\n}\n\n.will-guests-filter-count {\n margin: 0 10px;\n min-width: 30px;\n text-align: center;\n}\n\n.will-guests-filter-counter-button {\n
|
|
11861
|
+
var css_248z$5 = ".will-guests-filter-label, .will-guests-filter-count {\n font-size: 18px;\n color: var(--will-text)\n}\n\n.will-guests-filter-inner {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 30px;\n}\n\n.will-guests-filter-label {\n display: block;\n font-weight: 600;\n margin-bottom: 10px;\n \n}\n\n.will-guests-filter-inner .will-guests-filter-counter {\n display: flex;\n align-items: center;\n}\n\n.will-guests-filter-count {\n margin: 0 10px;\n min-width: 30px;\n text-align: center;\n}\n\n.will-guests-filter-counter-button {\n \n border-radius: 50%;\n background-color: transparent;\n border: 1px solid var(--will-grey);\n width: 30px;\n height: 30px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 20px;\n cursor: pointer;\n color: var(--will-black);\n\n padding: 0;\n margin: 0;\n -webkit-appearance: none;\n appearance: none;\n}\n\n.will-guests-filter-counter-button:hover {\n background-color: var(--will-onahau);\n}\n\n@media (max-width: 960px) {\n\n .will-guests-filter-inner {\n width: 100%;\n margin: 15px 0;\n justify-content: space-between;\n }\n}";
|
|
11864
11862
|
styleInject(css_248z$5);
|
|
11865
11863
|
|
|
11866
11864
|
function GuestCount(_a) {
|
|
@@ -11886,10 +11884,12 @@ function GuestCount(_a) {
|
|
|
11886
11884
|
paddingBottom: '4px',
|
|
11887
11885
|
opacity: (minVal && count <= minVal) || !count ? 0.4 : 1,
|
|
11888
11886
|
} },
|
|
11889
|
-
React__default__default.createElement("
|
|
11887
|
+
React__default__default.createElement("svg", { width: "10", height: "10", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
11888
|
+
React__default__default.createElement("path", { d: "M4 10H16", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }))),
|
|
11890
11889
|
React__default__default.createElement("span", { className: "will-guests-filter-count" }, count),
|
|
11891
11890
|
React__default__default.createElement("button", { className: "will-guests-filter-counter-button", onClick: handleIncrement },
|
|
11892
|
-
React__default__default.createElement("
|
|
11891
|
+
React__default__default.createElement("svg", { width: "15", height: "15", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
11892
|
+
React__default__default.createElement("path", { d: "M10 4V16M4 10H16", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }))))));
|
|
11893
11893
|
}
|
|
11894
11894
|
|
|
11895
11895
|
var css_248z$4 = ".will-filter-bar-guests {\n text-align: initial;\n}\n\n.will-guests-filter-title {\n font-size: 22px;\n margin: 10px 0;\n}\n\n.will-guests-filter-subtitle {\n font-size: 15px;\n font-weight: 500;\n color:var(--will-text)\n}\n\n\n.will-guests-filter-container {\n display: flex;\n flex-direction: column;\n min-width: 400px;\n}\n\n\n@media (max-width: 960px) {\n .will-guests-filter-title {\n font-size: 18px;\n }\n\n .will-guests-filter-container {\n margin-top: 15px;\n min-width: 100%;\n }\n}";
|