willba-component-library 0.1.14 → 0.1.16
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 +8 -6
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +8 -6
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +8 -6
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FilterBar/FilterBar.css +1 -1
- package/src/components/FilterBar/components/calendar/Calendar.tsx +7 -5
package/lib/index.js
CHANGED
|
@@ -7916,13 +7916,15 @@ function Calendar(_a) {
|
|
|
7916
7916
|
var calendarRange = _a.calendarRange, setCalendarRange = _a.setCalendarRange;
|
|
7917
7917
|
//const { t } = useTranslation('filterBar')
|
|
7918
7918
|
var isTablet = reactResponsiveExports.useMediaQuery({ maxWidth: 960 });
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7919
|
+
// Add default selection
|
|
7920
|
+
// const defaultCalendarSelected: DateRange = {
|
|
7921
|
+
// from: currentMonth,
|
|
7922
|
+
// to: addDays(currentMonth, 0),
|
|
7923
|
+
// }
|
|
7924
|
+
//--------------//----------------
|
|
7923
7925
|
React__default.useEffect(function () {
|
|
7924
7926
|
if (!calendarRange)
|
|
7925
|
-
setCalendarRange(
|
|
7927
|
+
setCalendarRange(undefined);
|
|
7926
7928
|
}, []);
|
|
7927
7929
|
return (React__default.createElement("div", { className: "will-filter-bar-calendar" },
|
|
7928
7930
|
React__default.createElement("div", { className: "will-calendar-filter-container" },
|
|
@@ -8112,7 +8114,7 @@ function useFilterBar(_a) {
|
|
|
8112
8114
|
};
|
|
8113
8115
|
}
|
|
8114
8116
|
|
|
8115
|
-
var css_248z$2 = ".will-root {\n z-index: 99999;\n width: 100%;\n max-height: 100vh;\n position: relative;\n \n}\n\n.will-filter-bar {\n box-sizing: border-box;\n position: relative;\n}\n\n.will-filter-bar-underlay {\n background-color: rgba(0,0,0,.8);\n position: absolute;\n /* top:0; */\n left: 0;\n width: 100%;\n height: 100%;\n cursor: pointer;\n min-height:
|
|
8117
|
+
var css_248z$2 = ".will-root {\n z-index: 99999;\n width: 100%;\n max-height: 100vh;\n position: relative;\n \n}\n\n.will-filter-bar {\n box-sizing: border-box;\n position: relative;\n}\n\n.will-filter-bar-underlay {\n background-color: rgba(0,0,0,.8);\n position: absolute;\n /* top:0; */\n left: 0;\n width: 100%;\n height: 100%;\n cursor: pointer;\n min-height: 500vh;\n z-index: 88888;\n\n transform: translateY(-50%);\n}\n\n/* Header */\n.will-filter-bar-header {\n display: flex;\n justify-content: space-between;\n padding: 10px 20px;\n position: relative;\n z-index: 222;\n \n \n border-radius: 40px;\n background-color: var(--will-white);\n box-shadow: var(--will-box-shadow);\n}\n\n@media (max-width: 960px) {\n .will-filter-bar-header {\n flex-direction: column;\n padding: 20px;\n }\n}\n\n/* Container */\n\n.will-filter-bar-container {\n background-color: var(--will-white);\n min-height: 100px;\n \n padding: 90px 40px 30px 40px;\n position: absolute;\n top: 0;\n z-index: 111;\n border-radius: 25px;\n width: -webkit-fill-available;\n box-shadow: var(--will-box-shadow);\n}\n\n@media (max-width: 960px) {\n .will-root { \n overflow-y: auto;\n padding: 40px 10px;\n top: 15px;\n z-index: 0;\n }\n\n .will-filter-bar-container {\n margin-top: 20px;\n padding: 30px 40px;\n position: relative;\n }\n\n .will-root.isMobileAbsolute {\n position: relative;\n z-index: 99999;\n }\n}\n\n";
|
|
8116
8118
|
styleInject(css_248z$2);
|
|
8117
8119
|
|
|
8118
8120
|
var css_248z$1 = "@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-secondary: #374269;\n --will-grey: #ABA7AF;\n --will-white: #fff;\n --will-onahau: #CDEEFF;\n --will-text: #5A5959;\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}";
|