willba-component-library 0.0.8 → 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/esm/index.js
CHANGED
|
@@ -2512,16 +2512,13 @@ function styleInject(css, ref) {
|
|
|
2512
2512
|
}
|
|
2513
2513
|
}
|
|
2514
2514
|
|
|
2515
|
-
var css_248z
|
|
2516
|
-
styleInject(css_248z
|
|
2515
|
+
var css_248z = "button {\n font-size: 70px;\n}";
|
|
2516
|
+
styleInject(css_248z);
|
|
2517
2517
|
|
|
2518
2518
|
const Button = (props) => {
|
|
2519
2519
|
return React.createElement("button", null, props.label);
|
|
2520
2520
|
};
|
|
2521
2521
|
|
|
2522
|
-
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";
|
|
2523
|
-
styleInject(css_248z);
|
|
2524
|
-
|
|
2525
2522
|
function FilterBar() {
|
|
2526
2523
|
const [selectedFilter, setSelectedFilter] = reactExports.useState(false);
|
|
2527
2524
|
// const [startDate, setStartDate] = useState(0);
|
|
@@ -2600,13 +2597,8 @@ const Guests = ({ guestsAdults, guestsKids, decrementAdults, incrementAdults, de
|
|
|
2600
2597
|
React.createElement("button", { onClick: incrementKids }, "+"))))));
|
|
2601
2598
|
};
|
|
2602
2599
|
const Categories = ({ categories, setCategories }) => {
|
|
2603
|
-
const categoriesPlaceholder = [
|
|
2604
|
-
|
|
2605
|
-
"Week",
|
|
2606
|
-
"Summer camp",
|
|
2607
|
-
"Winter camp",
|
|
2608
|
-
];
|
|
2609
|
-
const [selectedCategory, setSelectedCategory] = reactExports.useState("");
|
|
2600
|
+
const categoriesPlaceholder = ['Weekend', 'Week', 'Summer camp', 'Winter camp'];
|
|
2601
|
+
const [selectedCategory, setSelectedCategory] = reactExports.useState('');
|
|
2610
2602
|
const handleCategoryChange = (selectedCategory) => {
|
|
2611
2603
|
setSelectedCategory(selectedCategory);
|
|
2612
2604
|
setCategories(selectedCategory); // Update the parent component's state with the selected category
|