@koobiq/react-primitives 0.23.0 → 0.25.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/dist/behaviors/useMultiSelect.d.ts +2 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +8 -1
- package/package.json +11 -7
|
@@ -3,8 +3,9 @@ import type { ValidationResult } from '@koobiq/react-core';
|
|
|
3
3
|
import type { AriaListBoxOptions } from '@react-aria/listbox';
|
|
4
4
|
import type { AriaSelectProps, AriaButtonProps } from '../index';
|
|
5
5
|
import type { MultiSelectProps as MultiSelectStateProps, MultiSelectState } from './useMultiSelectState';
|
|
6
|
-
type MultiSelectProps<T> = Omit<AriaSelectProps<T>, 'onSelectionChange'> & {
|
|
6
|
+
type MultiSelectProps<T> = Omit<AriaSelectProps<T>, 'onSelectionChange' | 'selectionMode'> & {
|
|
7
7
|
disallowEmptySelection?: boolean;
|
|
8
|
+
selectionMode?: 'single' | 'multiple';
|
|
8
9
|
onSelectionChange?: MultiSelectStateProps<T>['onSelectionChange'];
|
|
9
10
|
};
|
|
10
11
|
interface MultiSelectAria<T> extends ValidationResult {
|
package/dist/index.d.ts
CHANGED
|
@@ -12,10 +12,13 @@ export * from '@react-aria/listbox';
|
|
|
12
12
|
export * from '@react-stately/list';
|
|
13
13
|
export * from '@react-aria/select';
|
|
14
14
|
export * from '@react-stately/select';
|
|
15
|
+
export * from '@react-aria/collections';
|
|
15
16
|
export * from '@react-aria/menu';
|
|
16
17
|
export * from '@react-stately/menu';
|
|
17
18
|
export * from '@react-aria/toggle';
|
|
18
19
|
export * from '@react-stately/toggle';
|
|
20
|
+
export { type AriaAutocompleteProps, type AutocompleteAria, useAutocomplete, } from '@react-aria/autocomplete';
|
|
21
|
+
export { type AutocompleteState, useAutocompleteState, } from '@react-stately/autocomplete';
|
|
19
22
|
export { useCheckboxGroup } from '@react-aria/checkbox';
|
|
20
23
|
export type { AriaCheckboxGroupItemProps, AriaCheckboxGroupProps, AriaCheckboxProps, } from '@react-aria/checkbox';
|
|
21
24
|
export * from '@react-stately/checkbox';
|
|
@@ -32,10 +35,11 @@ export * from '@react-aria/searchfield';
|
|
|
32
35
|
export * from '@react-stately/searchfield';
|
|
33
36
|
export * from '@react-aria/progress';
|
|
34
37
|
export * from '@react-aria/combobox';
|
|
35
|
-
export
|
|
38
|
+
export { type ComboBoxStateOptions, type ComboBoxState, useComboBoxState, } from '@react-stately/combobox';
|
|
36
39
|
export * from '@react-aria/toast';
|
|
37
40
|
export * from '@react-stately/toast';
|
|
38
41
|
export * from '@react-aria/breadcrumbs';
|
|
42
|
+
export * from '@react-aria/toolbar';
|
|
39
43
|
export * from '@react-aria/disclosure';
|
|
40
44
|
export * from '@react-stately/disclosure';
|
|
41
45
|
export type { CalendarProps, CalendarAria, CalendarGridAria, CalendarCellAria, AriaCalendarProps, AriaCalendarCellProps, AriaCalendarGridProps, } from '@react-aria/calendar';
|
package/dist/index.js
CHANGED
|
@@ -12,10 +12,13 @@ export * from "@react-aria/listbox";
|
|
|
12
12
|
export * from "@react-stately/list";
|
|
13
13
|
export * from "@react-aria/select";
|
|
14
14
|
export * from "@react-stately/select";
|
|
15
|
+
export * from "@react-aria/collections";
|
|
15
16
|
export * from "@react-aria/menu";
|
|
16
17
|
export * from "@react-stately/menu";
|
|
17
18
|
export * from "@react-aria/toggle";
|
|
18
19
|
export * from "@react-stately/toggle";
|
|
20
|
+
import { useAutocomplete } from "@react-aria/autocomplete";
|
|
21
|
+
import { useAutocompleteState } from "@react-stately/autocomplete";
|
|
19
22
|
import { useCheckboxGroup } from "@react-aria/checkbox";
|
|
20
23
|
export * from "@react-stately/checkbox";
|
|
21
24
|
export * from "@react-aria/tag";
|
|
@@ -31,10 +34,11 @@ export * from "@react-aria/searchfield";
|
|
|
31
34
|
export * from "@react-stately/searchfield";
|
|
32
35
|
export * from "@react-aria/progress";
|
|
33
36
|
export * from "@react-aria/combobox";
|
|
34
|
-
|
|
37
|
+
import { useComboBoxState } from "@react-stately/combobox";
|
|
35
38
|
export * from "@react-aria/toast";
|
|
36
39
|
export * from "@react-stately/toast";
|
|
37
40
|
export * from "@react-aria/breadcrumbs";
|
|
41
|
+
export * from "@react-aria/toolbar";
|
|
38
42
|
export * from "@react-aria/disclosure";
|
|
39
43
|
export * from "@react-stately/disclosure";
|
|
40
44
|
import { useCalendar, useCalendarCell, useCalendarGrid } from "@react-aria/calendar";
|
|
@@ -109,6 +113,8 @@ export {
|
|
|
109
113
|
Textarea,
|
|
110
114
|
TextareaContext,
|
|
111
115
|
removeDataAttributes,
|
|
116
|
+
useAutocomplete,
|
|
117
|
+
useAutocompleteState,
|
|
112
118
|
useButton,
|
|
113
119
|
useCalendar,
|
|
114
120
|
useCalendarCell,
|
|
@@ -116,6 +122,7 @@ export {
|
|
|
116
122
|
useCheckbox,
|
|
117
123
|
useCheckboxGroup,
|
|
118
124
|
useCheckboxGroupItem,
|
|
125
|
+
useComboBoxState,
|
|
119
126
|
useContextProps,
|
|
120
127
|
useGroupContext,
|
|
121
128
|
useInputContext,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koobiq/react-primitives",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -24,24 +24,26 @@
|
|
|
24
24
|
},
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
+
"@react-aria/autocomplete": "^3.0.0-rc.5",
|
|
27
28
|
"@react-aria/breadcrumbs": "^3.5.29",
|
|
28
29
|
"@react-aria/button": "^3.9.0",
|
|
29
30
|
"@react-aria/calendar": "^3.8.3",
|
|
30
31
|
"@react-aria/checkbox": "^3.16.2",
|
|
32
|
+
"@react-aria/collections": "^3.0.2",
|
|
31
33
|
"@react-aria/combobox": "^3.14.0",
|
|
32
34
|
"@react-aria/datepicker": "^3.15.2",
|
|
33
35
|
"@react-aria/dialog": "^3.5.19",
|
|
34
36
|
"@react-aria/disclosure": "^3.1.1",
|
|
35
37
|
"@react-aria/label": "^3.7.20",
|
|
36
38
|
"@react-aria/link": "^3.8.3",
|
|
37
|
-
"@react-aria/listbox": "^3.
|
|
39
|
+
"@react-aria/listbox": "^3.15.2",
|
|
38
40
|
"@react-aria/menu": "^3.18.2",
|
|
39
41
|
"@react-aria/numberfield": "^3.12.2",
|
|
40
42
|
"@react-aria/overlays": "^3.27.3",
|
|
41
43
|
"@react-aria/progress": "^3.4.17",
|
|
42
44
|
"@react-aria/radio": "^3.10.9",
|
|
43
45
|
"@react-aria/searchfield": "^3.8.7",
|
|
44
|
-
"@react-aria/select": "^3.
|
|
46
|
+
"@react-aria/select": "^3.17.2",
|
|
45
47
|
"@react-aria/selection": "^3.25.0",
|
|
46
48
|
"@react-aria/separator": "^3.4.8",
|
|
47
49
|
"@react-aria/switch": "^3.7.5",
|
|
@@ -51,8 +53,10 @@
|
|
|
51
53
|
"@react-aria/textfield": "^3.17.5",
|
|
52
54
|
"@react-aria/toast": "^3.0.8",
|
|
53
55
|
"@react-aria/toggle": "^3.12.2",
|
|
56
|
+
"@react-aria/toolbar": "3.0.0-beta.22",
|
|
54
57
|
"@react-aria/tooltip": "^3.8.5",
|
|
55
58
|
"@react-aria/visually-hidden": "^3.8.0",
|
|
59
|
+
"@react-stately/autocomplete": "^3.0.0-beta.4",
|
|
56
60
|
"@react-stately/calendar": "^3.8.2",
|
|
57
61
|
"@react-stately/collections": "^3.12.5",
|
|
58
62
|
"@react-stately/combobox": "^3.12.0",
|
|
@@ -60,21 +64,21 @@
|
|
|
60
64
|
"@react-stately/datepicker": "^3.15.2",
|
|
61
65
|
"@react-stately/disclosure": "^3.0.9",
|
|
62
66
|
"@react-stately/form": "^3.2.0",
|
|
63
|
-
"@react-stately/list": "^3.
|
|
67
|
+
"@react-stately/list": "^3.13.3",
|
|
64
68
|
"@react-stately/menu": "^3.9.3",
|
|
65
69
|
"@react-stately/numberfield": "^3.10.2",
|
|
66
70
|
"@react-stately/overlays": "^3.6.17",
|
|
67
71
|
"@react-stately/radio": "^3.10.8",
|
|
68
72
|
"@react-stately/searchfield": "^3.5.14",
|
|
69
|
-
"@react-stately/select": "3.
|
|
73
|
+
"@react-stately/select": "^3.9.1",
|
|
70
74
|
"@react-stately/table": "^3.14.3",
|
|
71
75
|
"@react-stately/tabs": "^3.8.6",
|
|
72
76
|
"@react-stately/toast": "^3.1.2",
|
|
73
77
|
"@react-stately/toggle": "^3.9.2",
|
|
74
78
|
"@react-stately/tooltip": "^3.5.5",
|
|
75
79
|
"@react-stately/tree": "^3.8.9",
|
|
76
|
-
"@koobiq/
|
|
77
|
-
"@koobiq/
|
|
80
|
+
"@koobiq/react-core": "0.25.0",
|
|
81
|
+
"@koobiq/logger": "0.25.0"
|
|
78
82
|
},
|
|
79
83
|
"peerDependencies": {
|
|
80
84
|
"react": "18.x || 19.x",
|