@gtkx/react 0.1.49 → 0.1.50

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.
@@ -5925,12 +5925,6 @@ export interface WindowControlsProps extends WidgetProps {
5925
5925
  export interface WindowHandleProps extends WidgetProps {
5926
5926
  ref?: Ref<Gtk.WindowHandle>;
5927
5927
  }
5928
- export declare const CONSTRUCTOR_PARAMS: Record<string, {
5929
- name: string;
5930
- hasDefault: boolean;
5931
- }[]>;
5932
- export declare const PROP_SETTERS: Record<string, Record<string, string>>;
5933
- export declare const SETTER_GETTERS: Record<string, Record<string, string>>;
5934
5928
  /**
5935
5929
  * The base class for all widgets.
5936
5930
  *
@@ -7071,11 +7065,20 @@ export declare const ColorChooserWidget: "ColorChooserWidget";
7071
7065
  * it gets the .color style class.
7072
7066
  */
7073
7067
  export declare const ColorDialogButton: "ColorDialogButton";
7068
+ /**
7069
+ * Props for the ColumnView.Root component with type-safe item and column rendering.
7070
+ * @typeParam T - The type of items in the column view.
7071
+ * @typeParam C - The union type of column IDs for type-safe sorting.
7072
+ */
7074
7073
  interface ColumnViewRootPropsExtended<T = unknown, C extends string = string> extends ColumnViewProps, ColumnViewRootProps<T, C> {
7075
7074
  }
7076
7075
  declare function ColumnViewRoot<T = unknown, C extends string = string>(props: ColumnViewRootPropsExtended<T, C>): import("react").ReactElement;
7076
+ /**
7077
+ * Props for ColumnView.Column with type-safe cell rendering.
7078
+ * @typeParam T - The type of items passed to the renderCell function.
7079
+ */
7077
7080
  interface ColumnViewGenericColumnProps<T> extends Omit<ColumnViewColumnProps, "renderCell"> {
7078
- /** Render function for column cells. Called with null during setup. */
7081
+ /** Render function for column cells. Called with null during setup (for loading state). */
7079
7082
  renderCell: (item: T | null) => import("react").ReactElement;
7080
7083
  }
7081
7084
  declare function ColumnViewColumn<T>(props: ColumnViewGenericColumnProps<T>): import("react").ReactElement;
@@ -7491,10 +7494,14 @@ export declare const DragIcon: "DragIcon";
7491
7494
  * creating your own `GtkWidget` subclass.
7492
7495
  */
7493
7496
  export declare const DrawingArea: "DrawingArea";
7497
+ /**
7498
+ * Props for the DropDown.Root component with type-safe item handling.
7499
+ * @typeParam T - The type of items in the dropdown.
7500
+ */
7494
7501
  interface DropDownRootProps<T> extends Omit<DropDownProps, "itemLabel" | "onSelectionChanged"> {
7495
- /** Function to convert item to display label */
7502
+ /** Function to convert an item to its display label. */
7496
7503
  itemLabel?: (item: T) => string;
7497
- /** Called when selection changes */
7504
+ /** Called when the selected item changes. */
7498
7505
  onSelectionChanged?: (item: T, index: number) => void;
7499
7506
  }
7500
7507
  declare function DropDownRoot<T>(props: DropDownRootProps<T>): import("react").ReactElement;
@@ -8517,8 +8524,12 @@ export declare const Grid: {
8517
8524
  Root: "Grid.Root";
8518
8525
  Child: "Grid.Child";
8519
8526
  };
8527
+ /**
8528
+ * Props for the GridView.Root component with type-safe item rendering.
8529
+ * @typeParam T - The type of items in the list.
8530
+ */
8520
8531
  interface GridViewRootProps<T> extends Omit<GridViewProps, "renderItem"> {
8521
- /** Render function for list items. Called with null during setup. */
8532
+ /** Render function for list items. Called with null during setup (for loading state). */
8522
8533
  renderItem: (item: T | null) => import("react").ReactElement;
8523
8534
  }
8524
8535
  declare function GridViewRoot<T>(props: GridViewRootProps<T>): import("react").ReactElement;
@@ -9295,8 +9306,12 @@ export declare const ListBox: "ListBox";
9295
9306
  * when necessary.
9296
9307
  */
9297
9308
  export declare const ListBoxRow: "ListBoxRow";
9309
+ /**
9310
+ * Props for the ListView.Root component with type-safe item rendering.
9311
+ * @typeParam T - The type of items in the list.
9312
+ */
9298
9313
  interface ListViewRootProps<T> extends Omit<ListViewProps, "renderItem"> {
9299
- /** Render function for list items. Called with null during setup. */
9314
+ /** Render function for list items. Called with null during setup (for loading state). */
9300
9315
  renderItem: (item: T | null) => import("react").ReactElement;
9301
9316
  }
9302
9317
  declare function ListViewRoot<T>(props: ListViewRootProps<T>): import("react").ReactElement;