@eveshipfit/ui-ingame 1.2.0 → 1.4.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/README.md +1 -1
- package/dist/index.d.mts +22 -5
- package/dist/index.mjs +2656 -1248
- package/dist/style.css +402 -32
- package/dist/theme.css +3 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ Give the `FittingWindow` its browser and statistics to get the buttons that slid
|
|
|
32
32
|
|
|
33
33
|
Icons are drawn from `@eveshipfit/images`: put the components inside an `ImagesProvider` of
|
|
34
34
|
`@eveshipfit/react-hooks`. The tooltips of `ShipStatistics` come from `texts.dat` of `@eveshipfit/sde`: put it inside a
|
|
35
|
-
`TextsProvider` too.
|
|
35
|
+
`TextsProvider` too. `ShipStatistics` shows the fit's price when the engine has an `esi`.
|
|
36
36
|
|
|
37
37
|
## License
|
|
38
38
|
|
package/dist/index.d.mts
CHANGED
|
@@ -26,10 +26,12 @@ interface TreeGroupProps {
|
|
|
26
26
|
defaultOpen?: boolean;
|
|
27
27
|
/** Shown at the end of the row, like a count or an action. */
|
|
28
28
|
after?: ReactNode;
|
|
29
|
+
onDragStart?: (event: DragEvent) => void;
|
|
30
|
+
onDragEnd?: () => void;
|
|
29
31
|
/** Only called while the group is open, so large trees stay cheap. */
|
|
30
32
|
children: () => ReactNode;
|
|
31
33
|
}
|
|
32
|
-
export declare function TreeGroup({ label, typeId, icon, description, defaultOpen, after, children }: TreeGroupProps): import("react").JSX.Element;
|
|
34
|
+
export declare function TreeGroup({ label, typeId, icon, description, defaultOpen, after, onDragStart, onDragEnd, children }: TreeGroupProps): import("react").JSX.Element;
|
|
33
35
|
interface TreeLeafProps {
|
|
34
36
|
label: ReactNode;
|
|
35
37
|
/** Shows the type's icon in front of the label. */
|
|
@@ -54,6 +56,7 @@ declare const textures: {
|
|
|
54
56
|
"slot-low": string;
|
|
55
57
|
"slot-rig": string;
|
|
56
58
|
"slot-subsystem": string;
|
|
59
|
+
"slot-service": string;
|
|
57
60
|
"module-unfit": string;
|
|
58
61
|
"module-power": string;
|
|
59
62
|
"module-info": string;
|
|
@@ -84,6 +87,16 @@ declare const textures: {
|
|
|
84
87
|
statistics: string;
|
|
85
88
|
cargo: string;
|
|
86
89
|
"drone-bay": string;
|
|
90
|
+
"fighter-bay": string;
|
|
91
|
+
"fighter-light": string;
|
|
92
|
+
"fighter-support": string;
|
|
93
|
+
"fighter-heavy": string;
|
|
94
|
+
"fighter-role-interceptor": string;
|
|
95
|
+
"fighter-role-attack": string;
|
|
96
|
+
"fighter-role-support": string;
|
|
97
|
+
"fighter-role-heavy-attack": string;
|
|
98
|
+
"fighter-role-bomber": string;
|
|
99
|
+
"ammo-hold": string;
|
|
87
100
|
"arrow-left": string;
|
|
88
101
|
"arrow-right": string;
|
|
89
102
|
"arrow-down": string;
|
|
@@ -115,6 +128,7 @@ declare const textures: {
|
|
|
115
128
|
"stat-align-time": string;
|
|
116
129
|
"stat-drone-bandwidth": string;
|
|
117
130
|
"stat-drone-control-range": string;
|
|
131
|
+
"stat-fuel": string;
|
|
118
132
|
};
|
|
119
133
|
type IconName = keyof typeof textures;
|
|
120
134
|
export declare const iconNames: IconName[];
|
|
@@ -176,9 +190,11 @@ interface HistoryBarProps {
|
|
|
176
190
|
/** 0 is the oldest. */
|
|
177
191
|
position: number;
|
|
178
192
|
onGoTo: (position: number) => void;
|
|
193
|
+
/** Shows the title as a tooltip. */
|
|
194
|
+
tooltipTitle?: boolean;
|
|
179
195
|
}
|
|
180
196
|
/** EVE's Simulation History. */
|
|
181
|
-
export declare function HistoryBar({ label, length, position, onGoTo }: HistoryBarProps): import("react").JSX.Element;
|
|
197
|
+
export declare function HistoryBar({ label, length, position, onGoTo, tooltipTitle }: HistoryBarProps): import("react").JSX.Element;
|
|
182
198
|
//#endregion
|
|
183
199
|
//#region src/primitives/Wheel/layout.d.ts
|
|
184
200
|
type WheelRack = "high" | "medium" | "low" | "rig" | "subsystem";
|
|
@@ -362,9 +378,10 @@ export declare function DroneStats(): import("react").JSX.Element;
|
|
|
362
378
|
//#endregion
|
|
363
379
|
//#region src/components/ShipStatistics/FitPrice.d.ts
|
|
364
380
|
interface FitPriceProps {
|
|
365
|
-
/** In ISK. */
|
|
366
|
-
price: number;
|
|
381
|
+
/** In ISK; undefined while unknown. */
|
|
382
|
+
price: number | undefined;
|
|
383
|
+
change?: "better" | "worse";
|
|
367
384
|
}
|
|
368
|
-
export declare function FitPrice({ price }: FitPriceProps): import("react").JSX.Element;
|
|
385
|
+
export declare function FitPrice({ price, change }: FitPriceProps): import("react").JSX.Element;
|
|
369
386
|
//#endregion
|
|
370
387
|
export type { CapacitorRingProps, DamageType, DialogProps, FilterToggleProps, FitPriceProps, FittingWheelProps, FittingWindowProps, Hardpoints, HistoryBarProps, IconName, IconProps, ItemBrowserProps, Layer, MarkedRack, ResistanceBarProps, ShipStatisticsProps, SlotState, StatProps, StatsSectionProps, TooltipProps, TooltipTextProps, TreeGroupProps, TreeLeafProps, TreeListProps, TypeIconProps, WheelGaugeProps, WheelHardpointsProps, WheelHullProps, WheelProps, WheelRack, WheelRackMarkerProps, WheelResource, WheelSlotProps };
|