@koobiq/react-primitives 0.9.0 → 0.10.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type AsyncLoadable, type CollectionBase, type FocusableProps, type InputBase, type LabelableProps, type MultipleSelection, type TextInputBase, type Validation } from '@koobiq/react-core';
|
|
2
2
|
import type { FormValidationState } from '@react-stately/form';
|
|
3
3
|
import type { MenuTriggerState } from '@react-stately/menu';
|
|
4
4
|
import type { OverlayTriggerProps } from '@react-types/overlays';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
|
+
import "@koobiq/react-core";
|
|
2
3
|
import { useFormValidationState } from "@react-stately/form";
|
|
3
4
|
import { useMenuTriggerState } from "@react-stately/menu";
|
|
4
5
|
import { useMultiSelectListState } from "./useMultiSelectListState.js";
|
|
@@ -42,14 +43,10 @@ function useMultiSelectState({
|
|
|
42
43
|
triggerState.close();
|
|
43
44
|
},
|
|
44
45
|
open() {
|
|
45
|
-
|
|
46
|
-
triggerState.open();
|
|
47
|
-
}
|
|
46
|
+
triggerState.open();
|
|
48
47
|
},
|
|
49
48
|
toggle(focusStrategy) {
|
|
50
|
-
|
|
51
|
-
triggerState.toggle(focusStrategy);
|
|
52
|
-
}
|
|
49
|
+
triggerState.toggle(focusStrategy);
|
|
53
50
|
},
|
|
54
51
|
isFocused,
|
|
55
52
|
setFocused
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koobiq/react-primitives",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"@react-stately/toggle": "^3.7.0",
|
|
65
65
|
"@react-stately/tooltip": "^3.5.5",
|
|
66
66
|
"@react-stately/tree": "^3.8.9",
|
|
67
|
-
"@koobiq/logger": "0.
|
|
68
|
-
"@koobiq/react-core": "0.
|
|
67
|
+
"@koobiq/logger": "0.10.0",
|
|
68
|
+
"@koobiq/react-core": "0.10.0"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"react": "18.x || 19.x",
|