@eveshipfit/ui-ingame 1.9.0 → 1.10.0

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/style.css CHANGED
@@ -1,11 +1,12 @@
1
1
  .kwi1cG_dialog {
2
+ --dialog-unit: calc(1px * var(--esf-scale, 1));
2
3
  background: var(--esf-surface);
3
- border: 1px solid var(--esf-border);
4
+ border: var(--dialog-unit) solid var(--esf-border);
4
5
  border-radius: var(--esf-radius);
5
6
  color: var(--esf-text);
6
7
  font-family: var(--esf-font);
7
- font-size: var(--esf-font-size);
8
- max-width: min(640px, 90vw);
8
+ font-size: calc(var(--esf-font-size) * var(--esf-scale, 1));
9
+ max-width: min(calc(640 * var(--dialog-unit)), 90vw);
9
10
  padding: 0;
10
11
  }
11
12
 
@@ -15,9 +16,9 @@
15
16
 
16
17
  .kwi1cG_header {
17
18
  background: var(--esf-surface-raised);
18
- border-bottom: 1px solid var(--esf-border);
19
+ border-bottom: var(--dialog-unit) solid var(--esf-border);
20
+ padding: calc(6 * var(--dialog-unit)) calc(10 * var(--dialog-unit));
19
21
  align-items: center;
20
- padding: 6px 10px;
21
22
  display: flex;
22
23
  }
23
24
 
@@ -42,7 +43,7 @@
42
43
  }
43
44
 
44
45
  .kwi1cG_content {
45
- padding: 10px;
46
+ padding: calc(10 * var(--dialog-unit));
46
47
  }
47
48
  .cmKEiW_anchor {
48
49
  display: contents;
@@ -53,13 +54,15 @@
53
54
  }
54
55
 
55
56
  .cmKEiW_tooltip {
56
- --notch-size: 10px;
57
- --notch-reach: calc(var(--notch-size) * .71 + 1px);
57
+ --tooltip-unit: calc(1px * var(--esf-scale, 1));
58
+ --notch-size: calc(10 * var(--tooltip-unit));
59
+ --notch-reach: calc(var(--notch-size) * .71 + var(--tooltip-unit));
58
60
  anchor-name: var(--tooltip-box);
59
61
  color: var(--esf-text);
60
62
  font-family: var(--esf-font);
61
- font-size: var(--esf-font-size);
63
+ font-size: calc(var(--esf-font-size) * var(--esf-scale, 1));
62
64
  margin: var(--notch-reach) 0;
65
+ max-width: calc(320 * var(--tooltip-unit));
63
66
  opacity: .9;
64
67
  pointer-events: none;
65
68
  position-anchor: var(--tooltip-anchor);
@@ -67,7 +70,6 @@
67
70
  position-try-fallbacks: flip-block;
68
71
  background: none;
69
72
  border: none;
70
- max-width: 320px;
71
73
  padding: 0;
72
74
  inset: auto;
73
75
  overflow: visible;
@@ -75,7 +77,7 @@
75
77
 
76
78
  .cmKEiW_notch, .cmKEiW_label {
77
79
  background: var(--esf-bg);
78
- border: 1px solid var(--esf-border);
80
+ border: var(--tooltip-unit) solid var(--esf-border);
79
81
  }
80
82
 
81
83
  .cmKEiW_notch, .cmKEiW_label:after {
@@ -97,7 +99,7 @@
97
99
  }
98
100
 
99
101
  .cmKEiW_label {
100
- padding: 8px 14px;
102
+ padding: calc(8 * var(--tooltip-unit)) calc(14 * var(--tooltip-unit));
101
103
  display: block;
102
104
  position: relative;
103
105
  }
@@ -105,19 +107,19 @@
105
107
  .cmKEiW_label:after {
106
108
  background: var(--esf-bg);
107
109
  content: "";
108
- height: 1px;
109
- top: clamp(anchor(var(--tooltip-box) top), var(--edge), anchor(var(--tooltip-box) bottom) - 1px);
110
- width: calc(var(--notch-size) * 1.41 - 2px);
110
+ height: var(--tooltip-unit);
111
+ top: clamp(anchor(var(--tooltip-box) top), var(--edge), anchor(var(--tooltip-box) bottom) - var(--tooltip-unit));
112
+ width: calc(var(--notch-size) * 1.41 - 2 * var(--tooltip-unit));
111
113
  translate: -50%;
112
114
  }
113
115
 
114
116
  .cmKEiW_text {
115
- gap: 8px;
117
+ gap: calc(8 * var(--tooltip-unit));
116
118
  display: grid;
117
119
  }
118
120
 
119
121
  .cmKEiW_text + .cmKEiW_text {
120
- margin-top: 12px;
122
+ margin-top: calc(12 * var(--tooltip-unit));
121
123
  }
122
124
 
123
125
  .cmKEiW_title {
@@ -189,7 +191,7 @@
189
191
  padding-left: calc(21 * var(--tree-unit));
190
192
  }
191
193
 
192
- .ZoSRha_tree > li > .ZoSRha_head, .ZoSRha_tree > .ZoSRha_head {
194
+ .ZoSRha_tree > li > .ZoSRha_head {
193
195
  background: var(--esf-tree-header);
194
196
  }
195
197
 
@@ -637,7 +639,7 @@
637
639
  inset: 0;
638
640
  }
639
641
 
640
- ._-v7zG_icon, ._-v7zG_dot {
642
+ ._-v7zG_dot {
641
643
  height: calc(16 * var(--wheel-unit));
642
644
  pointer-events: none;
643
645
  width: calc(16 * var(--wheel-unit));
@@ -645,11 +647,24 @@
645
647
  transform: translate(-50%, -50%);
646
648
  }
647
649
 
650
+ ._-v7zG_icon {
651
+ height: calc(16 * var(--wheel-unit));
652
+ margin: calc(-8 * var(--wheel-unit));
653
+ width: calc(16 * var(--wheel-unit));
654
+ position: absolute;
655
+ }
656
+
648
657
  ._-v7zG_icon > img {
649
658
  width: 100%;
650
659
  height: 100%;
651
660
  display: block;
652
661
  }
662
+
663
+ ._-v7zG_title {
664
+ gap: calc(24px * var(--esf-scale, 1));
665
+ justify-content: space-between;
666
+ display: flex;
667
+ }
653
668
  .pLDZ2W_gauge {
654
669
  --colour: var(--esf-cpu);
655
670
  background: var(--colour);
@@ -968,6 +983,25 @@
968
983
  display: block;
969
984
  position: relative;
970
985
  }
986
+ ._1EVyAG_notice {
987
+ height: var(--wheel-texture-size);
988
+ left: calc(50% - var(--wheel-texture-size) / 2);
989
+ pointer-events: none;
990
+ top: calc(50% - var(--wheel-texture-size) / 2);
991
+ width: var(--wheel-texture-size);
992
+ position: absolute;
993
+ overflow: visible;
994
+ }
995
+
996
+ ._1EVyAG_text {
997
+ fill: #d9d9d9;
998
+ font-family: var(--esf-font);
999
+ letter-spacing: .1em;
1000
+ paint-order: stroke;
1001
+ stroke: #0009;
1002
+ stroke-width: 3px;
1003
+ font-size: 13px;
1004
+ }
971
1005
  .BVBbxW_track {
972
1006
  fill: none;
973
1007
  pointer-events: none;
@@ -1062,7 +1096,7 @@
1062
1096
  }
1063
1097
 
1064
1098
  .BVBbxW_slot:has(.BVBbxW_press:hover) .BVBbxW_frame, .BVBbxW_slot:has(.BVBbxW_press:focus-visible) .BVBbxW_frame {
1065
- stroke: var(--esf-text-muted);
1099
+ fill: #1a2a2d;
1066
1100
  }
1067
1101
 
1068
1102
  .BVBbxW_number {
@@ -1091,21 +1125,28 @@
1091
1125
  opacity: 1;
1092
1126
  }
1093
1127
 
1128
+ .BVBbxW_slot > .BVBbxW_actions[inert] {
1129
+ opacity: 0;
1130
+ }
1131
+
1094
1132
  .BVBbxW_slot:hover :is(.BVBbxW_action, .BVBbxW_bridge), .BVBbxW_slot:has(:focus-visible) :is(.BVBbxW_action, .BVBbxW_bridge) {
1095
1133
  pointer-events: auto;
1096
1134
  }
1097
1135
 
1098
1136
  .BVBbxW_action {
1137
+ box-shadow: 0 0 0 calc(2 * var(--wheel-unit)) #0d1213;
1099
1138
  height: calc(var(--action-size) * var(--wheel-unit));
1100
1139
  left: calc(50% + var(--x) * var(--wheel-unit));
1101
1140
  margin: calc(var(--action-size) / -2 * var(--wheel-unit));
1102
1141
  top: calc(50% + var(--y) * var(--wheel-unit));
1103
1142
  width: calc(var(--action-size) * var(--wheel-unit));
1143
+ background: #0d1213;
1144
+ border-radius: 50%;
1104
1145
  position: absolute;
1105
1146
  }
1106
1147
 
1107
1148
  .BVBbxW_bridge {
1108
- height: calc((var(--tray-start) + var(--tray-length) - var(--slot-size) / 2) * var(--wheel-unit));
1149
+ height: calc((var(--actions-start) + var(--actions-length) - var(--slot-size) / 2) * var(--wheel-unit));
1109
1150
  left: calc(50% - var(--slot-size) / 2 * var(--wheel-unit));
1110
1151
  transform: rotate(var(--angle)) translateY(calc(var(--slot-size) / 2 * var(--wheel-unit)));
1111
1152
  transform-origin: 50% 0;
@@ -1113,28 +1154,15 @@
1113
1154
  position: absolute;
1114
1155
  top: 50%;
1115
1156
  }
1116
-
1117
- .BVBbxW_tray {
1118
- border-radius: calc(var(--tray-width) / 2 * var(--wheel-unit));
1119
- box-sizing: border-box;
1120
- height: calc(var(--tray-length) * var(--wheel-unit));
1121
- left: calc(50% - var(--tray-width) / 2 * var(--wheel-unit));
1122
- transform: rotate(var(--angle)) translateY(calc(var(--tray-start) * var(--wheel-unit)));
1123
- transform-origin: 50% 0;
1124
- width: calc(var(--tray-width) * var(--wheel-unit));
1125
- background: #0d1213f2;
1126
- border: 1px solid #3d5960;
1127
- position: absolute;
1128
- top: 50%;
1129
- }
1130
1157
  ._f5iUa_tooltip {
1131
- gap: 8px;
1158
+ --module-tooltip-unit: calc(1px * var(--esf-scale, 1));
1159
+ gap: calc(8 * var(--module-tooltip-unit));
1132
1160
  display: grid;
1133
1161
  }
1134
1162
 
1135
1163
  ._f5iUa_type, ._f5iUa_line, ._f5iUa_bonuses, ._f5iUa_bonus {
1136
1164
  align-items: center;
1137
- gap: 8px;
1165
+ gap: calc(8 * var(--module-tooltip-unit));
1138
1166
  display: flex;
1139
1167
  }
1140
1168
 
@@ -1143,35 +1171,41 @@
1143
1171
  }
1144
1172
 
1145
1173
  ._f5iUa_block {
1146
- gap: 4px;
1174
+ gap: calc(4 * var(--module-tooltip-unit));
1147
1175
  display: grid;
1148
1176
  }
1149
1177
 
1150
1178
  ._f5iUa_bonuses {
1151
- gap: 12px;
1179
+ gap: calc(12 * var(--module-tooltip-unit));
1152
1180
  }
1153
1181
 
1154
1182
  ._f5iUa_bonus {
1155
- gap: 4px;
1183
+ gap: calc(4 * var(--module-tooltip-unit));
1156
1184
  }
1157
1185
 
1158
- ._f5iUa_noIcon {
1186
+ ._f5iUa_icon, ._f5iUa_noIcon {
1187
+ height: calc(24 * var(--module-tooltip-unit));
1188
+ width: calc(24 * var(--module-tooltip-unit));
1159
1189
  flex: none;
1160
- width: 24px;
1161
- height: 24px;
1190
+ }
1191
+
1192
+ ._f5iUa_icon > span {
1193
+ width: 100%;
1194
+ height: 100%;
1195
+ display: block;
1162
1196
  }
1163
1197
 
1164
1198
  ._f5iUa_iconless {
1199
+ min-height: calc(24 * var(--module-tooltip-unit));
1200
+ padding-left: calc(32 * var(--module-tooltip-unit));
1165
1201
  align-items: center;
1166
- min-height: 24px;
1167
- padding-left: 32px;
1168
1202
  display: flex;
1169
1203
  }
1170
1204
 
1171
1205
  ._f5iUa_values {
1206
+ padding-left: calc(27 * var(--module-tooltip-unit));
1172
1207
  grid-auto-columns: 1fr;
1173
1208
  grid-auto-flow: column;
1174
- padding-left: 27px;
1175
1209
  display: grid;
1176
1210
  }
1177
1211
 
@@ -1198,11 +1232,11 @@
1198
1232
 
1199
1233
  ._f5iUa_info {
1200
1234
  background: var(--esf-button-active-edge);
1201
- height: 16px;
1235
+ height: calc(16 * var(--module-tooltip-unit));
1236
+ margin: calc(4 * var(--module-tooltip-unit));
1202
1237
  mask: var(--texture) center / 100% 100%;
1238
+ width: calc(16 * var(--module-tooltip-unit));
1203
1239
  flex: none;
1204
- width: 16px;
1205
- margin: 4px;
1206
1240
  }
1207
1241
  .GK_wGG_centre {
1208
1242
  inset: calc(86 * var(--wheel-unit));
@@ -1266,15 +1300,15 @@
1266
1300
  outline: var(--service-unit) solid var(--esf-text);
1267
1301
  }
1268
1302
 
1269
- .R9jwpW_slot[data-state="empty"] > .R9jwpW_body:before {
1303
+ .R9jwpW_slot[data-state="empty"] .R9jwpW_body:before {
1270
1304
  opacity: .4;
1271
1305
  }
1272
1306
 
1273
- .R9jwpW_slot[data-state="offline"] > .R9jwpW_body {
1307
+ .R9jwpW_slot[data-state="offline"] .R9jwpW_body {
1274
1308
  opacity: .3;
1275
1309
  }
1276
1310
 
1277
- .R9jwpW_slot[data-state="unavailable"] > .R9jwpW_body {
1311
+ .R9jwpW_slot[data-state="unavailable"] .R9jwpW_body {
1278
1312
  opacity: .1;
1279
1313
  }
1280
1314
 
@@ -2176,7 +2210,7 @@
2176
2210
 
2177
2211
  .L9t91q_alertLine {
2178
2212
  align-items: center;
2179
- gap: 8px;
2213
+ gap: calc(8 * var(--window-unit));
2180
2214
  display: flex;
2181
2215
  }
2182
2216
 
@@ -2360,8 +2394,12 @@
2360
2394
 
2361
2395
  .L9t91q_statistics {
2362
2396
  left: calc(700 * var(--window-unit) + var(--browser-width));
2363
- width: calc(280 * var(--window-unit));
2364
2397
  transition: left .2s;
2398
+ right: 0;
2399
+ }
2400
+
2401
+ .L9t91q_statistics > .L9t91q_slide {
2402
+ width: calc(280 * var(--window-unit));
2365
2403
  }
2366
2404
 
2367
2405
  .L9t91q_slide {
@@ -2674,6 +2712,10 @@
2674
2712
  width: calc(16 * var(--browser-unit));
2675
2713
  }
2676
2714
 
2715
+ .xFSZwa_copy:disabled > img {
2716
+ opacity: .4;
2717
+ }
2718
+
2677
2719
  .xFSZwa_menu {
2678
2720
  background: var(--esf-menu-bg);
2679
2721
  border: var(--browser-unit) solid var(--esf-input-border);
@@ -2706,9 +2748,9 @@
2706
2748
  }
2707
2749
 
2708
2750
  .xFSZwa_form {
2751
+ gap: calc(8 * var(--browser-unit));
2752
+ width: min(calc(420 * var(--browser-unit)), 80vw);
2709
2753
  flex-direction: column;
2710
- gap: 8px;
2711
- width: min(420px, 80vw);
2712
2754
  display: flex;
2713
2755
  }
2714
2756
 
@@ -2718,8 +2760,9 @@
2718
2760
 
2719
2761
  .xFSZwa_form > input, .xFSZwa_form > textarea {
2720
2762
  background: var(--esf-input-bg);
2721
- border: 1px solid var(--esf-input-border);
2763
+ border: var(--browser-unit) solid var(--esf-input-border);
2722
2764
  color: var(--esf-text);
2765
+ font: inherit;
2723
2766
  }
2724
2767
 
2725
2768
  .xFSZwa_form > textarea {
@@ -2733,16 +2776,16 @@
2733
2776
  }
2734
2777
 
2735
2778
  .xFSZwa_confirm {
2736
- max-width: min(360px, 80vw);
2779
+ max-width: min(calc(360 * var(--browser-unit)), 80vw);
2737
2780
  }
2738
2781
 
2739
2782
  .xFSZwa_confirm > p {
2740
- margin: 0 0 12px;
2783
+ margin: 0 0 calc(12 * var(--browser-unit));
2741
2784
  }
2742
2785
 
2743
2786
  .xFSZwa_dialogButtons {
2787
+ gap: calc(8 * var(--browser-unit));
2744
2788
  justify-content: flex-end;
2745
- gap: 8px;
2746
2789
  display: flex;
2747
2790
  }
2748
2791
 
@@ -3069,9 +3112,9 @@
3069
3112
  }
3070
3113
 
3071
3114
  .lebA7G_profileForm {
3115
+ gap: calc(8 * var(--damage-profile-unit));
3116
+ width: min(calc(300 * var(--damage-profile-unit)), 80vw);
3072
3117
  flex-direction: column;
3073
- gap: 8px;
3074
- width: min(300px, 80vw);
3075
3118
  display: flex;
3076
3119
  }
3077
3120
 
@@ -3081,7 +3124,7 @@
3081
3124
 
3082
3125
  .lebA7G_profileForm input {
3083
3126
  background: var(--esf-input-bg);
3084
- border: 1px solid var(--esf-input-border);
3127
+ border: var(--damage-profile-unit) solid var(--esf-input-border);
3085
3128
  color: var(--esf-text);
3086
3129
  font: inherit;
3087
3130
  }
@@ -3092,22 +3135,22 @@
3092
3135
  }
3093
3136
 
3094
3137
  .lebA7G_amounts {
3095
- --share-unit: 1px;
3138
+ --share-unit: var(--damage-profile-unit);
3139
+ gap: calc(4 * var(--damage-profile-unit)) calc(8 * var(--damage-profile-unit));
3140
+ margin-top: calc(4 * var(--damage-profile-unit));
3096
3141
  grid-template-columns: repeat(4, 1fr);
3097
- gap: 4px 8px;
3098
- margin-top: 4px;
3099
3142
  display: grid;
3100
3143
  }
3101
3144
 
3102
3145
  .lebA7G_amount {
3103
3146
  align-items: center;
3104
- gap: 2px;
3147
+ gap: calc(2 * var(--damage-profile-unit));
3105
3148
  display: flex;
3106
3149
  }
3107
3150
 
3108
3151
  .lebA7G_amount > img {
3109
- width: 22px;
3110
- height: 22px;
3152
+ height: calc(22 * var(--damage-profile-unit));
3153
+ width: calc(22 * var(--damage-profile-unit));
3111
3154
  }
3112
3155
 
3113
3156
  .lebA7G_amount > input {
@@ -3116,21 +3159,21 @@
3116
3159
  }
3117
3160
 
3118
3161
  .lebA7G_dialogButtons {
3162
+ gap: calc(8 * var(--damage-profile-unit));
3163
+ margin-top: calc(4 * var(--damage-profile-unit));
3119
3164
  justify-content: flex-end;
3120
- gap: 8px;
3121
- margin-top: 4px;
3122
3165
  display: flex;
3123
3166
  }
3124
3167
 
3125
3168
  .lebA7G_action {
3126
3169
  background: var(--esf-button);
3127
- border: 1px solid var(--esf-button-edge);
3170
+ border: var(--damage-profile-unit) solid var(--esf-button-edge);
3128
3171
  color: var(--esf-text);
3129
3172
  cursor: pointer;
3130
3173
  font: inherit;
3131
- min-width: 80px;
3132
- height: 32px;
3133
- padding: 0 16px;
3174
+ height: calc(32 * var(--damage-profile-unit));
3175
+ min-width: calc(80 * var(--damage-profile-unit));
3176
+ padding: 0 calc(16 * var(--damage-profile-unit));
3134
3177
  }
3135
3178
 
3136
3179
  .lebA7G_action:hover:not(:disabled), .lebA7G_action:focus-visible {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eveshipfit/ui-ingame",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "EVE Online ship fitting UI that looks like the in-game one",
5
5
  "license": "MIT",
6
6
  "author": "EVEShipFit Team <info@eveship.fit>",
@@ -27,7 +27,8 @@
27
27
  "access": "public"
28
28
  },
29
29
  "dependencies": {
30
- "@eveshipfit/react-hooks": "2.3.1"
30
+ "@eveshipfit/react-hooks": "2.4.0",
31
+ "@eveshipfit/fitting": "2.4.1"
31
32
  },
32
33
  "devDependencies": {
33
34
  "@babel/core": "^7.29.0",
@@ -43,7 +44,6 @@
43
44
  "storybook": "^10.6.0",
44
45
  "tsdown": "^0.23.0",
45
46
  "vite": "^8.3.0",
46
- "@eveshipfit/fitting": "2.4.0",
47
47
  "@eveshipfit/sde-loader": "3.0.0"
48
48
  },
49
49
  "peerDependencies": {