@gtkx/react 0.4.3 → 0.5.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.
|
@@ -747,7 +747,7 @@ export const Menu = {
|
|
|
747
747
|
lines.push(`\t/** Function to convert an item to its display label. */`);
|
|
748
748
|
lines.push(`\titemLabel?: (item: T) => string;`);
|
|
749
749
|
lines.push(`\t/** Called when the selected item changes. */`);
|
|
750
|
-
lines.push(`\tonSelectionChanged?: (item: T, index: number) => void;`);
|
|
750
|
+
lines.push(`\tonSelectionChanged?: (item: T | null, index: number) => void;`);
|
|
751
751
|
lines.push(`}`);
|
|
752
752
|
lines.push(``);
|
|
753
753
|
lines.push(`function ${name}Root<T>(props: ${name}RootProps<T>): import("react").ReactElement {`);
|
package/dist/generated/jsx.d.ts
CHANGED
|
@@ -7502,7 +7502,7 @@ interface DropDownRootProps<T> extends Omit<DropDownProps, "itemLabel" | "onSele
|
|
|
7502
7502
|
/** Function to convert an item to its display label. */
|
|
7503
7503
|
itemLabel?: (item: T) => string;
|
|
7504
7504
|
/** Called when the selected item changes. */
|
|
7505
|
-
onSelectionChanged?: (item: T, index: number) => void;
|
|
7505
|
+
onSelectionChanged?: (item: T | null, index: number) => void;
|
|
7506
7506
|
}
|
|
7507
7507
|
declare function DropDownRoot<T>(props: DropDownRootProps<T>): import("react").ReactElement;
|
|
7508
7508
|
declare function DropDownItem<T>(props: ListItemProps<T>): import("react").ReactElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gtkx/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Build GTK4 desktop applications with React and TypeScript",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"gtk",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"react-reconciler": "0.33.0",
|
|
39
|
-
"@gtkx/ffi": "0.
|
|
39
|
+
"@gtkx/ffi": "0.5.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@gtkx/gir": "0.
|
|
42
|
+
"@gtkx/gir": "0.5.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": "^19"
|