@sellgar/kit 0.0.71 → 0.0.73
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/index.js +1262 -1251
- package/package.json +1 -1
- package/types/components/helpers/select/select.d.ts +8 -0
package/package.json
CHANGED
|
@@ -8,6 +8,8 @@ interface IOptions {
|
|
|
8
8
|
open?: boolean;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
setOpen?(open: boolean): void;
|
|
11
|
+
onFocus?(): void;
|
|
12
|
+
onBlur?(): void;
|
|
11
13
|
onSelect?(selectedIndex: number | null): void;
|
|
12
14
|
}
|
|
13
15
|
declare const useSelect: (options: IOptions) => {
|
|
@@ -62,6 +64,8 @@ declare const useSelect: (options: IOptions) => {
|
|
|
62
64
|
tabIndex: number | undefined;
|
|
63
65
|
disabled: boolean | undefined;
|
|
64
66
|
onSelect: ((selectedIndex: number | null) => void) | undefined;
|
|
67
|
+
onBlur: (() => void) | undefined;
|
|
68
|
+
onFocus: (() => void) | undefined;
|
|
65
69
|
};
|
|
66
70
|
type TSelectContext = ReturnType<typeof useSelect>;
|
|
67
71
|
export declare const useSelectContext: () => {
|
|
@@ -116,6 +120,8 @@ export declare const useSelectContext: () => {
|
|
|
116
120
|
tabIndex: number | undefined;
|
|
117
121
|
disabled: boolean | undefined;
|
|
118
122
|
onSelect: ((selectedIndex: number | null) => void) | undefined;
|
|
123
|
+
onBlur: (() => void) | undefined;
|
|
124
|
+
onFocus: (() => void) | undefined;
|
|
119
125
|
};
|
|
120
126
|
interface IProps {
|
|
121
127
|
tabIndex?: number;
|
|
@@ -126,6 +132,8 @@ interface IProps {
|
|
|
126
132
|
selectedIndex?: number | null;
|
|
127
133
|
setOpen?(open: boolean): void;
|
|
128
134
|
onSelect?(selectedIndex: number | null): void;
|
|
135
|
+
onFocus?(): void;
|
|
136
|
+
onBlur?(): void;
|
|
129
137
|
}
|
|
130
138
|
declare const SelectWrapper: React.FC<React.PropsWithChildren<IProps>>;
|
|
131
139
|
interface IReferenceProps {
|