@rpg-engine/long-bow 0.4.3 → 0.4.4
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 +6 -1
- 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 +6 -1
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/ProgressBar.tsx +3 -0
- package/src/components/SkillsContainer.tsx +4 -10
package/dist/long-bow.esm.js
CHANGED
|
@@ -15620,6 +15620,8 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
15620
15620
|
_ref$minWidth = _ref.minWidth,
|
|
15621
15621
|
minWidth = _ref$minWidth === void 0 ? 100 : _ref$minWidth,
|
|
15622
15622
|
style = _ref.style;
|
|
15623
|
+
value = Math.round(value);
|
|
15624
|
+
max = Math.round(max);
|
|
15623
15625
|
var calculatePercentageValue = function calculatePercentageValue(max, value) {
|
|
15624
15626
|
if (value > max) {
|
|
15625
15627
|
value = max;
|
|
@@ -16162,6 +16164,9 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
16162
16164
|
var _Object$entries$_i = _Object$entries[_i],
|
|
16163
16165
|
key = _Object$entries$_i[0],
|
|
16164
16166
|
value = _Object$entries$_i[1];
|
|
16167
|
+
if (key === 'stamina') {
|
|
16168
|
+
continue;
|
|
16169
|
+
}
|
|
16165
16170
|
//@ts-ignore
|
|
16166
16171
|
var skillDetails = skill[key];
|
|
16167
16172
|
output.push(React.createElement(SkillProgressBar, {
|
|
@@ -16208,7 +16213,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
16208
16213
|
var SkillsDraggableContainer = /*#__PURE__*/styled(DraggableContainer).withConfig({
|
|
16209
16214
|
displayName: "SkillsContainer__SkillsDraggableContainer",
|
|
16210
16215
|
componentId: "sc-1g0c67q-0"
|
|
16211
|
-
})(["border:1px solid black
|
|
16216
|
+
})(["border:1px solid black;max-width:380px;height:90%;.DraggableContainer__TitleContainer-sc-184mpyl-2{width:auto;height:auto;}"]);
|
|
16212
16217
|
var SkillsContainerDiv = /*#__PURE__*/styled.div.withConfig({
|
|
16213
16218
|
displayName: "SkillsContainer__SkillsContainerDiv",
|
|
16214
16219
|
componentId: "sc-1g0c67q-1"
|