@rpg-engine/long-bow 0.8.40 → 0.8.41
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/long-bow.cjs.development.js +24 -6
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +24 -6
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/shared/SearchHeader/SearchHeader.tsx +20 -10
|
@@ -31040,17 +31040,23 @@ var SearchHeader = function SearchHeader(_ref) {
|
|
|
31040
31040
|
filterOptions = _ref.filterOptions,
|
|
31041
31041
|
className = _ref.className;
|
|
31042
31042
|
if (!searchOptions && !filterOptions) return null;
|
|
31043
|
+
var isMobile = shared.isMobileOrTablet();
|
|
31044
|
+
var isSmallScreen = isMobile && window.innerWidth < 480;
|
|
31043
31045
|
return React__default.createElement(HeaderContainer$1, {
|
|
31044
31046
|
className: className
|
|
31045
|
-
}, React__default.createElement(HeaderContent,
|
|
31047
|
+
}, React__default.createElement(HeaderContent, {
|
|
31048
|
+
"$isSmallScreen": isSmallScreen
|
|
31049
|
+
}, searchOptions && React__default.createElement(SearchContainer$2, null, React__default.createElement(StyledSearchBar, {
|
|
31046
31050
|
value: searchOptions.value,
|
|
31047
31051
|
onChange: searchOptions.onChange,
|
|
31048
|
-
placeholder: searchOptions.placeholder || 'Search...',
|
|
31052
|
+
placeholder: isSmallScreen ? 'Search...' : searchOptions.placeholder || 'Search...',
|
|
31049
31053
|
rightElement: searchOptions.rightElement
|
|
31050
|
-
})), filterOptions && React__default.createElement(FilterContainer,
|
|
31054
|
+
})), filterOptions && React__default.createElement(FilterContainer, {
|
|
31055
|
+
"$isSmallScreen": isSmallScreen
|
|
31056
|
+
}, React__default.createElement(StyledDropdown, {
|
|
31051
31057
|
options: filterOptions.options,
|
|
31052
31058
|
onChange: filterOptions.onOptionChange,
|
|
31053
|
-
width:
|
|
31059
|
+
width: isSmallScreen ? '100%' : '200px'
|
|
31054
31060
|
}))));
|
|
31055
31061
|
};
|
|
31056
31062
|
var HeaderContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
@@ -31060,7 +31066,15 @@ var HeaderContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31060
31066
|
var HeaderContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
31061
31067
|
displayName: "SearchHeader__HeaderContent",
|
|
31062
31068
|
componentId: "sc-1xd17jb-1"
|
|
31063
|
-
})(["display:flex;justify-content:space-between;align-items:
|
|
31069
|
+
})(["display:flex;flex-direction:", ";justify-content:space-between;align-items:", ";gap:", ";background:rgba(0,0,0,0.2);padding:", ";border-radius:4px;"], function (props) {
|
|
31070
|
+
return props.$isSmallScreen ? 'column' : 'row';
|
|
31071
|
+
}, function (props) {
|
|
31072
|
+
return props.$isSmallScreen ? 'stretch' : 'center';
|
|
31073
|
+
}, function (props) {
|
|
31074
|
+
return props.$isSmallScreen ? '0.5rem' : '1rem';
|
|
31075
|
+
}, function (props) {
|
|
31076
|
+
return props.$isSmallScreen ? '0.5rem' : '1rem';
|
|
31077
|
+
});
|
|
31064
31078
|
var SearchContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31065
31079
|
displayName: "SearchHeader__SearchContainer",
|
|
31066
31080
|
componentId: "sc-1xd17jb-2"
|
|
@@ -31068,7 +31082,11 @@ var SearchContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31068
31082
|
var FilterContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
31069
31083
|
displayName: "SearchHeader__FilterContainer",
|
|
31070
31084
|
componentId: "sc-1xd17jb-3"
|
|
31071
|
-
})(["display:flex;justify-content:
|
|
31085
|
+
})(["display:flex;justify-content:", ";width:", ";"], function (props) {
|
|
31086
|
+
return props.$isSmallScreen ? 'stretch' : 'flex-end';
|
|
31087
|
+
}, function (props) {
|
|
31088
|
+
return props.$isSmallScreen ? '100%' : 'auto';
|
|
31089
|
+
});
|
|
31072
31090
|
var StyledSearchBar = /*#__PURE__*/styled__default(SearchBar).withConfig({
|
|
31073
31091
|
displayName: "SearchHeader__StyledSearchBar",
|
|
31074
31092
|
componentId: "sc-1xd17jb-4"
|