@eveshipfit/ui-ingame 1.3.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 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. */
@@ -85,6 +87,15 @@ declare const textures: {
85
87
  statistics: string;
86
88
  cargo: string;
87
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;
88
99
  "ammo-hold": string;
89
100
  "arrow-left": string;
90
101
  "arrow-right": string;
@@ -367,9 +378,10 @@ export declare function DroneStats(): import("react").JSX.Element;
367
378
  //#endregion
368
379
  //#region src/components/ShipStatistics/FitPrice.d.ts
369
380
  interface FitPriceProps {
370
- /** In ISK. */
371
- price: number;
381
+ /** In ISK; undefined while unknown. */
382
+ price: number | undefined;
383
+ change?: "better" | "worse";
372
384
  }
373
- export declare function FitPrice({ price }: FitPriceProps): import("react").JSX.Element;
385
+ export declare function FitPrice({ price, change }: FitPriceProps): import("react").JSX.Element;
374
386
  //#endregion
375
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 };