@rpg-engine/long-bow 0.8.105 → 0.8.106

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.8.105",
3
+ "version": "0.8.106",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -46,7 +46,7 @@ export const DailyRewardsTooltip: React.FC<IDailyRewardsTooltipProps> = ({
46
46
  return (
47
47
  <TooltipContainer>
48
48
  <CollapsibleHeader onClick={toggleExpand}>
49
- <HeaderText>Rewards</HeaderText>
49
+ <HeaderText>Rewards?</HeaderText>
50
50
  <ExpandIcon>{isExpanded ? '▼' : '▶'}</ExpandIcon>
51
51
  </CollapsibleHeader>
52
52
 
@@ -129,12 +129,10 @@ const CollapsibleContent = styled.div`
129
129
  const RewardItem = styled.div`
130
130
  display: flex;
131
131
  align-items: center;
132
- gap: 6px;
132
+ gap: 4px;
133
133
  width: 100%;
134
- padding: 2px 4px;
135
- min-height: 24px;
136
- background: rgba(0, 0, 0, 0.2);
137
- border-radius: 3px;
134
+ padding: 2px;
135
+ min-height: 22px;
138
136
  `;
139
137
 
140
138
  const RewardIcon = styled.div`
@@ -142,19 +140,25 @@ const RewardIcon = styled.div`
142
140
  width: 20px;
143
141
  height: 20px;
144
142
  display: flex;
145
- align-items: center;
146
- justify-content: center;
143
+ align-items: flex-start;
144
+ justify-content: flex-start;
147
145
  font-style: normal;
148
-
146
+ margin-right: 4px;
147
+
149
148
  * {
150
149
  font-style: normal !important;
151
150
  }
151
+
152
+ position: relative;
153
+ left: -0.5rem;
154
+ top: -0.4rem;
152
155
  `;
153
156
 
154
157
  const RewardContent = styled.div`
155
158
  display: flex;
159
+ justify-content: space-between;
156
160
  align-items: center;
157
- gap: 4px;
161
+ flex: 1;
158
162
  min-width: 0;
159
163
  `;
160
164
 
@@ -170,10 +174,11 @@ const RewardLabel = styled.span<{ isMobile: boolean }>`
170
174
 
171
175
  const RewardValue = styled.span<{ isMobile: boolean }>`
172
176
  color: ${uiColors.green};
173
- font-size: ${props => props.isMobile ? '0.65rem' : '0.7rem'};
177
+ font-size: ${props => props.isMobile ? '0.6rem' : '0.65rem'};
174
178
  line-height: 1.2;
175
179
  display: flex;
176
180
  align-items: center;
177
181
  font-weight: 600;
178
182
  flex-shrink: 0;
183
+ margin-left: 8px;
179
184
  `;
@@ -79,8 +79,10 @@ const ProgressRow = styled.div`
79
79
 
80
80
  const ProgressItem = styled.div`
81
81
  display: flex;
82
+ justify-content: space-between;
82
83
  align-items: center;
83
- gap: 6px;
84
+ flex: 1;
85
+ min-width: 100px;
84
86
  `;
85
87
 
86
88
  const ProgressLabel = styled.span`
@@ -32,7 +32,7 @@ export const TaskProgressDetails: React.FC<ITaskProgressDetailsProps> = ({
32
32
  ([key, value], index) => (
33
33
  <ProgressItem key={index}>
34
34
  <span>{formatTaskKey(key)}:</span>
35
- <ProgressCount className="notranslate">
35
+ <ProgressCount>
36
36
  {value}/
37
37
  {(task.requirements as IKillMobsRequirement).targets.find(
38
38
  t => t.key === key
@@ -49,7 +49,7 @@ export const TaskProgressDetails: React.FC<ITaskProgressDetailsProps> = ({
49
49
  ([key, value], index) => (
50
50
  <ProgressItem key={index}>
51
51
  <span>{formatTaskKey(key)}:</span>
52
- <ProgressCount className="notranslate">
52
+ <ProgressCount>
53
53
  {value}/
54
54
  {(task.requirements as ICollectItemsRequirement).targets.find(
55
55
  t => t.key === key
@@ -65,7 +65,7 @@ export const TaskProgressDetails: React.FC<ITaskProgressDetailsProps> = ({
65
65
  ([key, value], index) => (
66
66
  <ProgressItem key={index}>
67
67
  <span>{formatTaskKey(key)}:</span>
68
- <ProgressCount className="notranslate">
68
+ <ProgressCount>
69
69
  {value}/
70
70
  {(task.requirements as ICraftRequirement).targets.find(
71
71
  t => t.key === key
@@ -102,26 +102,17 @@ export const TaskProgressDetails: React.FC<ITaskProgressDetailsProps> = ({
102
102
  const ProgressList = styled.div`
103
103
  display: flex;
104
104
  flex-direction: column;
105
- gap: 4px;
105
+ gap: 8px;
106
106
  `;
107
107
 
108
108
  const ProgressItem = styled.div`
109
109
  display: flex;
110
+ justify-content: space-between;
110
111
  align-items: center;
111
- gap: 6px;
112
- background: rgba(0, 0, 0, 0.2);
113
- padding: 4px 8px;
114
- border-radius: 3px;
115
-
116
- span:first-child {
117
- color: ${uiColors.lightGray};
118
- font-size: 0.75rem;
119
- }
120
112
  `;
121
113
 
122
114
  const ProgressCount = styled.span`
123
- color: ${uiColors.green} !important;
124
- font-weight: 600;
115
+ color: ${uiColors.white} !important;
125
116
  `;
126
117
 
127
118
  const CheckItemWrapper = styled.div`
@@ -60,7 +60,7 @@ export const ItemInfo: React.FC<IItemInfoProps> = ({
60
60
  <Statistic key={stat.key} className={isOnlyInOneItem ? 'better' : ''}>
61
61
  <div className="label">{label}:</div>
62
62
  <div
63
- className={`value notranslate ${
63
+ className={`value ${
64
64
  isDifference ? (isBetter ? 'better' : 'worse') : ''
65
65
  }`}
66
66
  >
@@ -89,7 +89,7 @@ export const ItemInfo: React.FC<IItemInfoProps> = ({
89
89
  statistics.push(
90
90
  <Statistic key={stat.key} className="worse">
91
91
  <div className="label">{label}:</div>
92
- <div className="value worse notranslate">
92
+ <div className="value worse">
93
93
  {itemToCompareStatistic.toString()}
94
94
  </div>
95
95
  </Statistic>
@@ -146,11 +146,11 @@ export const ItemInfo: React.FC<IItemInfoProps> = ({
146
146
  {item.minRequirements && (
147
147
  <LevelRequirement>
148
148
  <div className="title">Requirements:</div>
149
- <div>- Level: <span className="notranslate">{item.minRequirements?.level}</span></div>
149
+ <div>- Level: {item.minRequirements?.level}</div>
150
150
  {skillName && (
151
151
  <div>
152
152
  - {skillName.charAt(0).toUpperCase() + skillName.slice(1)}:{' '}
153
- <span className="notranslate">{item.minRequirements?.skill?.level}</span>
153
+ {item.minRequirements?.skill?.level}
154
154
  </div>
155
155
  )}
156
156
  </LevelRequirement>
@@ -169,7 +169,7 @@ export const ItemInfo: React.FC<IItemInfoProps> = ({
169
169
  <Description>{item.description}</Description>
170
170
 
171
171
  {item.maxStackSize && item.maxStackSize !== 1 && (
172
- <StackInfo className="notranslate">
172
+ <StackInfo>
173
173
  x{Math.round((item.stackQty ?? 1) * 100) / 100}({item.maxStackSize})
174
174
  </StackInfo>
175
175
  )}
@@ -37,7 +37,7 @@ export const ItemSlotQty = ({
37
37
  return (
38
38
  <ItemQtyContainer key={`qty-${itemId}`} className="item-slot-qty">
39
39
  <Ellipsis maxLines={1} maxWidth="48px">
40
- <ItemQty className={`${qtyClassName} notranslate`}>
40
+ <ItemQty className={qtyClassName}>
41
41
  {Math.round(stackQty * 100) / 100}{' '}
42
42
  </ItemQty>
43
43
  </Ellipsis>
@@ -47,7 +47,7 @@ export const ProgressBar: React.FC<IBarProps> = ({
47
47
  >
48
48
  {displayText && (
49
49
  <TextOverlay>
50
- <ProgressBarText className="notranslate">
50
+ <ProgressBarText>
51
51
  {displayValue}/{displayMax}
52
52
  </ProgressBarText>
53
53
  </TextOverlay>
@@ -115,7 +115,7 @@ export const SkillProgressBar: React.FC<ISkillProgressBarProps> = ({
115
115
  <BuffAndDebuffContainer>
116
116
  <TitleNameContainer>
117
117
  <TitleNameBuff>{skillName}</TitleNameBuff>
118
- <TitleNameBuff className="notranslate">
118
+ <TitleNameBuff>
119
119
  lv {effectiveLevel} ({skillsBuffsCalc(effectiveLevel, buffAndDebuff)})
120
120
  </TitleNameBuff>
121
121
  </TitleNameContainer>
@@ -129,7 +129,7 @@ export const SkillProgressBar: React.FC<ISkillProgressBarProps> = ({
129
129
  <>
130
130
  <TitleNameContainer>
131
131
  <TitleNameDebuff>{skillName}</TitleNameDebuff>
132
- <TitleNameDebuff className="notranslate">
132
+ <TitleNameDebuff>
133
133
  lv {effectiveLevel} ({skillsBuffsCalc(effectiveLevel, buffAndDebuff)})
134
134
  </TitleNameDebuff>
135
135
  </TitleNameContainer>
@@ -147,7 +147,7 @@ export const SkillProgressBar: React.FC<ISkillProgressBarProps> = ({
147
147
  {!buffAndDebuff && (
148
148
  <TitleNameContainer>
149
149
  <TitleName>{skillName}</TitleName>
150
- <ValueDisplay className="notranslate">lv {effectiveLevel}</ValueDisplay>
150
+ <ValueDisplay>lv {effectiveLevel}</ValueDisplay>
151
151
  </TitleNameContainer>
152
152
  )}
153
153
  </ProgressTitle>
@@ -174,12 +174,12 @@ export const SkillProgressBar: React.FC<ISkillProgressBarProps> = ({
174
174
 
175
175
  <ProgressBarWrapper>
176
176
  <SimpleProgressBar value={progress} bgColor={bgColor} />
177
- <Tooltip><span className="notranslate">{skillKey ? 'SP' : 'XP'}: {currentSkillPoints}</span></Tooltip>
177
+ <Tooltip>{skillKey ? 'SP' : 'XP'}: {currentSkillPoints}</Tooltip>
178
178
  </ProgressBarWrapper>
179
179
  </ProgressBody>
180
180
  {showSkillPoints && (
181
181
  <SkillDisplayContainer>
182
- <SkillPointsDisplay className="notranslate">{progress.toFixed(2)}%</SkillPointsDisplay>
182
+ <SkillPointsDisplay>{progress.toFixed(2)}%</SkillPointsDisplay>
183
183
  </SkillDisplayContainer>
184
184
  )}
185
185
  </>
@@ -93,7 +93,7 @@ export const Spell: React.FC<ISpellProps> = ({
93
93
  )}
94
94
  <SpellImage>
95
95
  {activeCooldown && activeCooldown > 0 ? (
96
- <span className="cooldown notranslate">
96
+ <span className="cooldown">
97
97
  {activeCooldown.toFixed(activeCooldown > 10 ? 0 : 1)}
98
98
  </span>
99
99
  ) : null}
@@ -117,7 +117,7 @@ export const Spell: React.FC<ISpellProps> = ({
117
117
  <Divider />
118
118
  <Cost>
119
119
  <span>Mana cost:</span>
120
- <span className="mana notranslate">{manaCost}</span>
120
+ <span className="mana">{manaCost}</span>
121
121
  </Cost>
122
122
  </Container>
123
123
  </SpellInfoWrapper>
@@ -117,7 +117,7 @@ export const CartView: React.FC<ICartViewProps> = ({
117
117
  {cartItem.metadata?.inputValue && (
118
118
  <CartMeta>{cartItem.metadata.inputValue}</CartMeta>
119
119
  )}
120
- <ItemInfo className="notranslate">
120
+ <ItemInfo>
121
121
  <span>${formatPrice(cartItem.item.price)}</span>
122
122
  <span>×</span>
123
123
  <span>{cartItem.quantity}</span>
@@ -150,7 +150,7 @@ export const CartView: React.FC<ICartViewProps> = ({
150
150
 
151
151
  <Footer>
152
152
  <TotalInfo>
153
- <TotalRow className="notranslate">
153
+ <TotalRow>
154
154
  <span>Total:</span>
155
155
  <span>${formatPrice(total)}</span>
156
156
  </TotalRow>
@@ -71,7 +71,7 @@ export const StoreItemRow: React.FC<IStoreItemRowProps> = ({
71
71
 
72
72
  <ItemDetails>
73
73
  <ItemName>{item.name}</ItemName>
74
- <ItemPrice className="notranslate">${item.price}</ItemPrice>
74
+ <ItemPrice>${item.price}</ItemPrice>
75
75
  <ItemDescription>{item.description}</ItemDescription>
76
76
  </ItemDetails>
77
77