@rpg-engine/long-bow 0.1.85 → 0.1.86
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/index.d.ts +0 -1
- package/dist/long-bow.cjs.development.js +4 -45
- 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 +5 -45
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/index.tsx +0 -1
- package/dist/components/shared/SpriteIcon.d.ts +0 -11
- package/src/components/shared/SpriteIcon.tsx +0 -69
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ export * from './components/RangeSlider';
|
|
|
17
17
|
export * from './components/RPGUIContainer';
|
|
18
18
|
export * from './components/RPGUIRoot';
|
|
19
19
|
export * from './components/shared/SpriteFromAtlas';
|
|
20
|
-
export * from './components/shared/SpriteIcon';
|
|
21
20
|
export * from './components/SkillProgressBar';
|
|
22
21
|
export * from './components/SkillsContainer';
|
|
23
22
|
export * from './components/TextArea';
|
|
@@ -6767,53 +6767,13 @@ var Input$1 = /*#__PURE__*/styled.input.withConfig({
|
|
|
6767
6767
|
componentId: "sc-v8mte9-0"
|
|
6768
6768
|
})(["opacity:0;"]);
|
|
6769
6769
|
|
|
6770
|
-
var SpriteIcon = function SpriteIcon(_ref) {
|
|
6771
|
-
var onClick = _ref.onClick,
|
|
6772
|
-
spriteKey = _ref.spriteKey,
|
|
6773
|
-
baseSpriteKey = _ref.baseSpriteKey,
|
|
6774
|
-
imgStyle = _ref.imgStyle,
|
|
6775
|
-
iconsAtlasJSON = _ref.iconsAtlasJSON,
|
|
6776
|
-
iconsAtlasIMG = _ref.iconsAtlasIMG;
|
|
6777
|
-
return React__default.createElement(Container$d, null, baseSpriteKey && React__default.createElement(Slot, null, React__default.createElement(SpriteFromAtlas, {
|
|
6778
|
-
onClick: onClick,
|
|
6779
|
-
atlasJSON: iconsAtlasJSON,
|
|
6780
|
-
atlasIMG: iconsAtlasIMG,
|
|
6781
|
-
spriteKey: baseSpriteKey,
|
|
6782
|
-
width: 32,
|
|
6783
|
-
height: 32,
|
|
6784
|
-
containerStyle: {
|
|
6785
|
-
zIndex: -1
|
|
6786
|
-
}
|
|
6787
|
-
})), React__default.createElement(Slot, null, React__default.createElement(SpriteFromAtlas, {
|
|
6788
|
-
onClick: onClick,
|
|
6789
|
-
atlasJSON: iconsAtlasJSON,
|
|
6790
|
-
atlasIMG: iconsAtlasIMG,
|
|
6791
|
-
spriteKey: spriteKey,
|
|
6792
|
-
width: 28,
|
|
6793
|
-
height: 28,
|
|
6794
|
-
containerStyle: {
|
|
6795
|
-
zIndex: 0
|
|
6796
|
-
},
|
|
6797
|
-
imgScale: baseSpriteKey ? 1.5 : 2,
|
|
6798
|
-
imgStyle: imgStyle
|
|
6799
|
-
})));
|
|
6800
|
-
};
|
|
6801
|
-
var Container$d = /*#__PURE__*/styled.div.withConfig({
|
|
6802
|
-
displayName: "SpriteIcon__Container",
|
|
6803
|
-
componentId: "sc-vi5t1x-0"
|
|
6804
|
-
})(["position:relative;width:32px;height:32px;display:flex;justify-content:center;align-items:center;"]);
|
|
6805
|
-
var Slot = /*#__PURE__*/styled.div.withConfig({
|
|
6806
|
-
displayName: "SpriteIcon__Slot",
|
|
6807
|
-
componentId: "sc-vi5t1x-1"
|
|
6808
|
-
})(["position:absolute;"]);
|
|
6809
|
-
|
|
6810
6770
|
var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
6811
6771
|
var value = _ref.value,
|
|
6812
6772
|
_ref$bgColor = _ref.bgColor,
|
|
6813
6773
|
bgColor = _ref$bgColor === void 0 ? 'red' : _ref$bgColor,
|
|
6814
6774
|
_ref$margin = _ref.margin,
|
|
6815
6775
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
6816
|
-
return React__default.createElement(Container$
|
|
6776
|
+
return React__default.createElement(Container$d, {
|
|
6817
6777
|
className: "simple-progress-bar"
|
|
6818
6778
|
}, React__default.createElement(ProgressBarContainer, {
|
|
6819
6779
|
margin: margin
|
|
@@ -6822,7 +6782,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
6822
6782
|
bgColor: bgColor
|
|
6823
6783
|
}))));
|
|
6824
6784
|
};
|
|
6825
|
-
var Container$
|
|
6785
|
+
var Container$d = /*#__PURE__*/styled.div.withConfig({
|
|
6826
6786
|
displayName: "SimpleProgressBar__Container",
|
|
6827
6787
|
componentId: "sc-mbeil3-0"
|
|
6828
6788
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -7065,11 +7025,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
7065
7025
|
var _ref$maxLines = _ref.maxLines,
|
|
7066
7026
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
7067
7027
|
children = _ref.children;
|
|
7068
|
-
return React__default.createElement(Container$
|
|
7028
|
+
return React__default.createElement(Container$e, {
|
|
7069
7029
|
maxLines: maxLines
|
|
7070
7030
|
}, children);
|
|
7071
7031
|
};
|
|
7072
|
-
var Container$
|
|
7032
|
+
var Container$e = /*#__PURE__*/styled.div.withConfig({
|
|
7073
7033
|
displayName: "Truncate__Container",
|
|
7074
7034
|
componentId: "sc-6x00qb-0"
|
|
7075
7035
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
@@ -7098,7 +7058,6 @@ exports.RangeSlider = RangeSlider;
|
|
|
7098
7058
|
exports.SkillProgressBar = SkillProgressBar;
|
|
7099
7059
|
exports.SkillsContainer = SkillsContainer;
|
|
7100
7060
|
exports.SpriteFromAtlas = SpriteFromAtlas;
|
|
7101
|
-
exports.SpriteIcon = SpriteIcon;
|
|
7102
7061
|
exports.TextArea = TextArea;
|
|
7103
7062
|
exports.Truncate = Truncate;
|
|
7104
7063
|
exports._RPGUI = _RPGUI;
|