@rpg-engine/long-bow 0.8.39 → 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 +25 -8
- 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 +25 -8
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/InformationCenter/InformationCenter.tsx +0 -1
- package/src/components/shared/PaginatedContent/PaginatedContent.tsx +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"
|
|
@@ -31135,7 +31153,7 @@ var Container$n = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31135
31153
|
var Content = /*#__PURE__*/styled__default.div.withConfig({
|
|
31136
31154
|
displayName: "PaginatedContent__Content",
|
|
31137
31155
|
componentId: "sc-lzp9hn-1"
|
|
31138
|
-
})(["display:flex;flex-direction:column;gap:0.5rem;flex:1;padding:0.25rem;min-height:200px;max-height:60vh;height:100%;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,0.3) rgba(0,0,0,0.2);@media (min-width:360px){padding:0.5rem;}@media (min-width:480px){padding:
|
|
31156
|
+
})(["display:flex;flex-direction:column;gap:0.5rem;flex:1;padding:0.25rem;min-height:200px;max-height:60vh;height:100%;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,0.3) rgba(0,0,0,0.2);@media (min-width:360px){padding:0.5rem;}@media (min-width:480px){padding:0.5rem;}&.grid{display:grid;grid-template-columns:1fr;gap:0.5rem;align-items:start;justify-content:center;width:100%;@media (min-width:320px){grid-template-columns:repeat(2,minmax(100px,1fr));}@media (min-width:400px){grid-template-columns:repeat(2,minmax(120px,1fr));gap:0.75rem;}@media (min-width:480px){grid-template-columns:repeat(3,minmax(120px,1fr));gap:1rem;}@media (min-width:768px){grid-template-columns:repeat(4,minmax(120px,1fr));}@media (min-width:", "){grid-template-columns:repeat( ", ",minmax(120px,1fr) );}@media (min-width:", "){grid-template-columns:repeat( ", ",minmax(120px,1fr) );}.PaginatedContent-item{display:flex;align-items:flex-start;justify-content:center;height:", ";width:100%;box-sizing:border-box;min-height:120px;}}&.list{display:flex;flex-direction:column;gap:0.5rem;}"], UI_BREAKPOINT_MOBILE, function (props) {
|
|
31139
31157
|
return Math.min(props.$gridColumns, 4);
|
|
31140
31158
|
}, UI_BREAKPOINT_SMALL_LAPTOP, function (props) {
|
|
31141
31159
|
return props.$gridColumns;
|
|
@@ -32767,7 +32785,6 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32767
32785
|
width: isMobile ? '95%' : '80%',
|
|
32768
32786
|
minWidth: "300px",
|
|
32769
32787
|
cancelDrag: ".PaginatedContent-content",
|
|
32770
|
-
isFullScreen: isMobile,
|
|
32771
32788
|
onCloseButton: onClose
|
|
32772
32789
|
}, React__default.createElement(Container$r, null, React__default.createElement(InternalTabs, {
|
|
32773
32790
|
tabs: tabs,
|