@eveshipfit/ui-ingame 1.8.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 {
@@ -1083,39 +1117,52 @@
1083
1117
  inset: 0;
1084
1118
  }
1085
1119
 
1120
+ .BVBbxW_slot:hover, .BVBbxW_slot:has(:focus-visible) {
1121
+ z-index: 1;
1122
+ }
1123
+
1086
1124
  .BVBbxW_slot:hover > .BVBbxW_actions, .BVBbxW_slot:has(:focus-visible) > .BVBbxW_actions {
1087
1125
  opacity: 1;
1088
1126
  }
1089
1127
 
1128
+ .BVBbxW_slot > .BVBbxW_actions[inert] {
1129
+ opacity: 0;
1130
+ }
1131
+
1090
1132
  .BVBbxW_slot:hover :is(.BVBbxW_action, .BVBbxW_bridge), .BVBbxW_slot:has(:focus-visible) :is(.BVBbxW_action, .BVBbxW_bridge) {
1091
1133
  pointer-events: auto;
1092
1134
  }
1093
1135
 
1094
1136
  .BVBbxW_action {
1095
- height: calc(12.97 * var(--wheel-unit));
1137
+ box-shadow: 0 0 0 calc(2 * var(--wheel-unit)) #0d1213;
1138
+ height: calc(var(--action-size) * var(--wheel-unit));
1096
1139
  left: calc(50% + var(--x) * var(--wheel-unit));
1097
- margin: calc(-6.49 * var(--wheel-unit));
1140
+ margin: calc(var(--action-size) / -2 * var(--wheel-unit));
1098
1141
  top: calc(50% + var(--y) * var(--wheel-unit));
1099
- width: calc(12.97 * var(--wheel-unit));
1142
+ width: calc(var(--action-size) * var(--wheel-unit));
1143
+ background: #0d1213;
1144
+ border-radius: 50%;
1100
1145
  position: absolute;
1101
1146
  }
1102
1147
 
1103
1148
  .BVBbxW_bridge {
1104
- height: calc(8 * var(--wheel-unit));
1105
- left: calc(50% + var(--x) * var(--wheel-unit));
1106
- margin: calc(-4 * var(--wheel-unit));
1107
- top: calc(50% + var(--y) * var(--wheel-unit));
1108
- width: calc(8 * var(--wheel-unit));
1149
+ height: calc((var(--actions-start) + var(--actions-length) - var(--slot-size) / 2) * var(--wheel-unit));
1150
+ left: calc(50% - var(--slot-size) / 2 * var(--wheel-unit));
1151
+ transform: rotate(var(--angle)) translateY(calc(var(--slot-size) / 2 * var(--wheel-unit)));
1152
+ transform-origin: 50% 0;
1153
+ width: calc(var(--slot-size) * var(--wheel-unit));
1109
1154
  position: absolute;
1155
+ top: 50%;
1110
1156
  }
1111
1157
  ._f5iUa_tooltip {
1112
- gap: 8px;
1158
+ --module-tooltip-unit: calc(1px * var(--esf-scale, 1));
1159
+ gap: calc(8 * var(--module-tooltip-unit));
1113
1160
  display: grid;
1114
1161
  }
1115
1162
 
1116
1163
  ._f5iUa_type, ._f5iUa_line, ._f5iUa_bonuses, ._f5iUa_bonus {
1117
1164
  align-items: center;
1118
- gap: 8px;
1165
+ gap: calc(8 * var(--module-tooltip-unit));
1119
1166
  display: flex;
1120
1167
  }
1121
1168
 
@@ -1124,35 +1171,41 @@
1124
1171
  }
1125
1172
 
1126
1173
  ._f5iUa_block {
1127
- gap: 4px;
1174
+ gap: calc(4 * var(--module-tooltip-unit));
1128
1175
  display: grid;
1129
1176
  }
1130
1177
 
1131
1178
  ._f5iUa_bonuses {
1132
- gap: 12px;
1179
+ gap: calc(12 * var(--module-tooltip-unit));
1133
1180
  }
1134
1181
 
1135
1182
  ._f5iUa_bonus {
1136
- gap: 4px;
1183
+ gap: calc(4 * var(--module-tooltip-unit));
1137
1184
  }
1138
1185
 
1139
- ._f5iUa_noIcon {
1186
+ ._f5iUa_icon, ._f5iUa_noIcon {
1187
+ height: calc(24 * var(--module-tooltip-unit));
1188
+ width: calc(24 * var(--module-tooltip-unit));
1140
1189
  flex: none;
1141
- width: 24px;
1142
- height: 24px;
1190
+ }
1191
+
1192
+ ._f5iUa_icon > span {
1193
+ width: 100%;
1194
+ height: 100%;
1195
+ display: block;
1143
1196
  }
1144
1197
 
1145
1198
  ._f5iUa_iconless {
1199
+ min-height: calc(24 * var(--module-tooltip-unit));
1200
+ padding-left: calc(32 * var(--module-tooltip-unit));
1146
1201
  align-items: center;
1147
- min-height: 24px;
1148
- padding-left: 32px;
1149
1202
  display: flex;
1150
1203
  }
1151
1204
 
1152
1205
  ._f5iUa_values {
1206
+ padding-left: calc(27 * var(--module-tooltip-unit));
1153
1207
  grid-auto-columns: 1fr;
1154
1208
  grid-auto-flow: column;
1155
- padding-left: 27px;
1156
1209
  display: grid;
1157
1210
  }
1158
1211
 
@@ -1179,11 +1232,11 @@
1179
1232
 
1180
1233
  ._f5iUa_info {
1181
1234
  background: var(--esf-button-active-edge);
1182
- height: 16px;
1235
+ height: calc(16 * var(--module-tooltip-unit));
1236
+ margin: calc(4 * var(--module-tooltip-unit));
1183
1237
  mask: var(--texture) center / 100% 100%;
1238
+ width: calc(16 * var(--module-tooltip-unit));
1184
1239
  flex: none;
1185
- width: 16px;
1186
- margin: 4px;
1187
1240
  }
1188
1241
  .GK_wGG_centre {
1189
1242
  inset: calc(86 * var(--wheel-unit));
@@ -1247,15 +1300,15 @@
1247
1300
  outline: var(--service-unit) solid var(--esf-text);
1248
1301
  }
1249
1302
 
1250
- .R9jwpW_slot[data-state="empty"] > .R9jwpW_body:before {
1303
+ .R9jwpW_slot[data-state="empty"] .R9jwpW_body:before {
1251
1304
  opacity: .4;
1252
1305
  }
1253
1306
 
1254
- .R9jwpW_slot[data-state="offline"] > .R9jwpW_body {
1307
+ .R9jwpW_slot[data-state="offline"] .R9jwpW_body {
1255
1308
  opacity: .3;
1256
1309
  }
1257
1310
 
1258
- .R9jwpW_slot[data-state="unavailable"] > .R9jwpW_body {
1311
+ .R9jwpW_slot[data-state="unavailable"] .R9jwpW_body {
1259
1312
  opacity: .1;
1260
1313
  }
1261
1314
 
@@ -2157,7 +2210,7 @@
2157
2210
 
2158
2211
  .L9t91q_alertLine {
2159
2212
  align-items: center;
2160
- gap: 8px;
2213
+ gap: calc(8 * var(--window-unit));
2161
2214
  display: flex;
2162
2215
  }
2163
2216
 
@@ -2341,8 +2394,12 @@
2341
2394
 
2342
2395
  .L9t91q_statistics {
2343
2396
  left: calc(700 * var(--window-unit) + var(--browser-width));
2344
- width: calc(280 * var(--window-unit));
2345
2397
  transition: left .2s;
2398
+ right: 0;
2399
+ }
2400
+
2401
+ .L9t91q_statistics > .L9t91q_slide {
2402
+ width: calc(280 * var(--window-unit));
2346
2403
  }
2347
2404
 
2348
2405
  .L9t91q_slide {
@@ -2655,6 +2712,10 @@
2655
2712
  width: calc(16 * var(--browser-unit));
2656
2713
  }
2657
2714
 
2715
+ .xFSZwa_copy:disabled > img {
2716
+ opacity: .4;
2717
+ }
2718
+
2658
2719
  .xFSZwa_menu {
2659
2720
  background: var(--esf-menu-bg);
2660
2721
  border: var(--browser-unit) solid var(--esf-input-border);
@@ -2687,9 +2748,9 @@
2687
2748
  }
2688
2749
 
2689
2750
  .xFSZwa_form {
2751
+ gap: calc(8 * var(--browser-unit));
2752
+ width: min(calc(420 * var(--browser-unit)), 80vw);
2690
2753
  flex-direction: column;
2691
- gap: 8px;
2692
- width: min(420px, 80vw);
2693
2754
  display: flex;
2694
2755
  }
2695
2756
 
@@ -2699,8 +2760,9 @@
2699
2760
 
2700
2761
  .xFSZwa_form > input, .xFSZwa_form > textarea {
2701
2762
  background: var(--esf-input-bg);
2702
- border: 1px solid var(--esf-input-border);
2763
+ border: var(--browser-unit) solid var(--esf-input-border);
2703
2764
  color: var(--esf-text);
2765
+ font: inherit;
2704
2766
  }
2705
2767
 
2706
2768
  .xFSZwa_form > textarea {
@@ -2714,16 +2776,16 @@
2714
2776
  }
2715
2777
 
2716
2778
  .xFSZwa_confirm {
2717
- max-width: min(360px, 80vw);
2779
+ max-width: min(calc(360 * var(--browser-unit)), 80vw);
2718
2780
  }
2719
2781
 
2720
2782
  .xFSZwa_confirm > p {
2721
- margin: 0 0 12px;
2783
+ margin: 0 0 calc(12 * var(--browser-unit));
2722
2784
  }
2723
2785
 
2724
2786
  .xFSZwa_dialogButtons {
2787
+ gap: calc(8 * var(--browser-unit));
2725
2788
  justify-content: flex-end;
2726
- gap: 8px;
2727
2789
  display: flex;
2728
2790
  }
2729
2791
 
@@ -3050,9 +3112,9 @@
3050
3112
  }
3051
3113
 
3052
3114
  .lebA7G_profileForm {
3115
+ gap: calc(8 * var(--damage-profile-unit));
3116
+ width: min(calc(300 * var(--damage-profile-unit)), 80vw);
3053
3117
  flex-direction: column;
3054
- gap: 8px;
3055
- width: min(300px, 80vw);
3056
3118
  display: flex;
3057
3119
  }
3058
3120
 
@@ -3062,7 +3124,7 @@
3062
3124
 
3063
3125
  .lebA7G_profileForm input {
3064
3126
  background: var(--esf-input-bg);
3065
- border: 1px solid var(--esf-input-border);
3127
+ border: var(--damage-profile-unit) solid var(--esf-input-border);
3066
3128
  color: var(--esf-text);
3067
3129
  font: inherit;
3068
3130
  }
@@ -3073,22 +3135,22 @@
3073
3135
  }
3074
3136
 
3075
3137
  .lebA7G_amounts {
3076
- --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));
3077
3141
  grid-template-columns: repeat(4, 1fr);
3078
- gap: 4px 8px;
3079
- margin-top: 4px;
3080
3142
  display: grid;
3081
3143
  }
3082
3144
 
3083
3145
  .lebA7G_amount {
3084
3146
  align-items: center;
3085
- gap: 2px;
3147
+ gap: calc(2 * var(--damage-profile-unit));
3086
3148
  display: flex;
3087
3149
  }
3088
3150
 
3089
3151
  .lebA7G_amount > img {
3090
- width: 22px;
3091
- height: 22px;
3152
+ height: calc(22 * var(--damage-profile-unit));
3153
+ width: calc(22 * var(--damage-profile-unit));
3092
3154
  }
3093
3155
 
3094
3156
  .lebA7G_amount > input {
@@ -3097,21 +3159,21 @@
3097
3159
  }
3098
3160
 
3099
3161
  .lebA7G_dialogButtons {
3162
+ gap: calc(8 * var(--damage-profile-unit));
3163
+ margin-top: calc(4 * var(--damage-profile-unit));
3100
3164
  justify-content: flex-end;
3101
- gap: 8px;
3102
- margin-top: 4px;
3103
3165
  display: flex;
3104
3166
  }
3105
3167
 
3106
3168
  .lebA7G_action {
3107
3169
  background: var(--esf-button);
3108
- border: 1px solid var(--esf-button-edge);
3170
+ border: var(--damage-profile-unit) solid var(--esf-button-edge);
3109
3171
  color: var(--esf-text);
3110
3172
  cursor: pointer;
3111
3173
  font: inherit;
3112
- min-width: 80px;
3113
- height: 32px;
3114
- 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));
3115
3177
  }
3116
3178
 
3117
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.8.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.0"
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.3.0",
47
47
  "@eveshipfit/sde-loader": "3.0.0"
48
48
  },
49
49
  "peerDependencies": {