babylonjs-gui-editor 8.22.1 → 8.22.3

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.
@@ -3782,6 +3782,27 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3782
3782
 
3783
3783
 
3784
3784
 
3785
+ }
3786
+ declare module BABYLON {
3787
+
3788
+
3789
+ }
3790
+ declare module BABYLON.GuiEditor.SharedUIComponents {
3791
+ type ToggleButtonProps = BABYLON.GuiEditor.SharedUIComponents.PrimitiveProps<boolean> & {
3792
+ enabledIcon: any;
3793
+ disabledIcon?: any;
3794
+ };
3795
+ /**
3796
+ * Toggles between two states using a button with icons.
3797
+ * If no disabledIcon is provided, the button will toggle between visual enabled/disabled states without an icon change
3798
+ *
3799
+ * @param props
3800
+ * @returns
3801
+ */
3802
+ export var ToggleButton: React.FunctionComponent<ToggleButtonProps>;
3803
+
3804
+
3805
+
3785
3806
  }
3786
3807
  declare module BABYLON {
3787
3808
 
@@ -3970,7 +3991,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3970
3991
  /**
3971
3992
  * Represents an item in a list
3972
3993
  */
3973
- export type ListItem<T = any> = {
3994
+ export type ListItem<T> = {
3974
3995
  /** Unique identifier for the item */
3975
3996
  id: number;
3976
3997
  /** The data associated with the item */
@@ -3978,7 +3999,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3978
3999
  /** Value to use for sorting the list */
3979
4000
  sortBy: number;
3980
4001
  };
3981
- type ListProps<T = any> = {
4002
+ type ListProps<T> = {
3982
4003
  items: ListItem<T>[];
3983
4004
  renderItem: (item: ListItem<T>, index: number) => React.ReactNode;
3984
4005
  onDelete: (item: ListItem<T>, index: number) => void;
@@ -3990,7 +4011,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3990
4011
  * @returns A React component that renders a list of items with add/delete functionality
3991
4012
  * @param props - The properties for the List component
3992
4013
  */
3993
- export var List: React.FunctionComponent<ListProps<any>>;
4014
+ export function List<T>(props: ListProps<T>): React.ReactElement;
3994
4015
 
3995
4016
 
3996
4017