willba-component-library 0.0.7 → 0.0.9
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/dist/cjs/index.js
CHANGED
|
@@ -2514,16 +2514,13 @@ function styleInject(css, ref) {
|
|
|
2514
2514
|
}
|
|
2515
2515
|
}
|
|
2516
2516
|
|
|
2517
|
-
var css_248z
|
|
2518
|
-
styleInject(css_248z
|
|
2517
|
+
var css_248z = "button {\n font-size: 70px;\n}";
|
|
2518
|
+
styleInject(css_248z);
|
|
2519
2519
|
|
|
2520
2520
|
const Button = (props) => {
|
|
2521
2521
|
return React.createElement("button", null, props.label);
|
|
2522
2522
|
};
|
|
2523
2523
|
|
|
2524
|
-
var css_248z = "/* Structure ---------------------------- */\r\n\r\n.root {\r\n width: 100%;\r\n}\r\n\r\n.search-widget {\r\n box-sizing: border-box;\r\n max-width: 1100px;\r\n position: relative;\r\n}\r\n\r\n.search-widget-header {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n padding: 10px 20px;\r\n position: relative;\r\n z-index: 222;\r\n \r\n border-radius: 40px;\r\n background-color: #ecf1f4;\r\n box-shadow: 0px 6px 11px 0px #a7a4a480;\r\n}\r\n\r\n.search-widget-container {\r\n background-color: #ecf1f4;\r\n min-height: 100px;\r\n \r\n padding: 90px 40px 30px 40px;\r\n position: absolute;\r\n top: 0;\r\n z-index: 111;\r\n border-radius: 40px;\r\n width: -webkit-fill-available;\r\n box-shadow: 0px 6px 11px 0px #a7a4a480;\r\n}\r\n\r\n.search-widget-divider {\r\n width: 1px;\r\n margin: 0 10px;\r\n height: 35px;\r\n background-color: #384265;\r\n}\r\n\r\n.search-widget-submit-button {\r\n width: auto;\r\n height: auto;\r\n background-color: #384265;\r\n color: #fff;\r\n padding: 10px 20px;\r\n border-radius: 20px;\r\n cursor: pointer;\r\n border: none;\r\n}\r\n\r\n.search-widget-select-button {\r\n width: auto;\r\n height: auto;\r\n background-color: transparent;\r\n border: none;\r\n padding: 10px 20px;\r\n border-radius: 20px;\r\n cursor: pointer;\r\n}\r\n\r\n/* Filters - Guests ---------------------------- */\r\n\r\n.search-widget-guests {\r\n text-align: initial;\r\n}\r\n\r\n.guests-filter-container {\r\n display: flex;\r\n margin-top: 30px;\r\n}\r\n\r\n.guests-filter-inner {\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.guests-filter-inner:not(:last-child) {\r\n margin-right: 50px;\r\n}\r\n\r\n.guests-filter-inner > span {\r\n display: block;\r\n margin-right: 20px;\r\n font-weight: bold;\r\n}\r\n\r\n.guests-filter-inner > div {\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.guests-filter-inner > div > span {\r\n margin: 0 10px;\r\n}\r\n\r\n.guests-filter-inner > div button {\r\n border-radius: 50%;\r\n border: none;\r\n background-color: #CDEEFF;\r\n width: 25px;\r\n height: 25px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n font-size: 20px;\r\n}\r\n\r\n/* Filters - Categories ---------------------------- */\r\n\r\n.search-widget-categories {\r\n text-align: center;\r\n}\r\n\r\n.categories-filter-inner {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n gap: 20px;\r\n}\r\n\r\n.categories-filter-inner input {\r\n cursor: pointer;\r\n margin-right: 10px;\r\n}\r\n\r\n";
|
|
2525
|
-
styleInject(css_248z);
|
|
2526
|
-
|
|
2527
2524
|
function FilterBar() {
|
|
2528
2525
|
const [selectedFilter, setSelectedFilter] = reactExports.useState(false);
|
|
2529
2526
|
// const [startDate, setStartDate] = useState(0);
|
|
@@ -2602,13 +2599,8 @@ const Guests = ({ guestsAdults, guestsKids, decrementAdults, incrementAdults, de
|
|
|
2602
2599
|
React.createElement("button", { onClick: incrementKids }, "+"))))));
|
|
2603
2600
|
};
|
|
2604
2601
|
const Categories = ({ categories, setCategories }) => {
|
|
2605
|
-
const categoriesPlaceholder = [
|
|
2606
|
-
|
|
2607
|
-
"Week",
|
|
2608
|
-
"Summer camp",
|
|
2609
|
-
"Winter camp",
|
|
2610
|
-
];
|
|
2611
|
-
const [selectedCategory, setSelectedCategory] = reactExports.useState("");
|
|
2602
|
+
const categoriesPlaceholder = ['Weekend', 'Week', 'Summer camp', 'Winter camp'];
|
|
2603
|
+
const [selectedCategory, setSelectedCategory] = reactExports.useState('');
|
|
2612
2604
|
const handleCategoryChange = (selectedCategory) => {
|
|
2613
2605
|
setSelectedCategory(selectedCategory);
|
|
2614
2606
|
setCategories(selectedCategory); // Update the parent component's state with the selected category
|