@muraldevkit/ui-toolkit 2.13.0-dev.1 → 2.13.0-dev.10
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.
|
@@ -13,7 +13,7 @@ export interface MrlSelectProptypes extends React.HTMLAttributes<HTMLDivElement>
|
|
|
13
13
|
defaultValue?: string;
|
|
14
14
|
/**
|
|
15
15
|
* Because this is a custom element, we can't use a standard "for" attribute setup. The label
|
|
16
|
-
* element needs to have an id and then we reference via the select with aria
|
|
16
|
+
* element needs to have an id and then we reference via the select with aria
|
|
17
17
|
*/
|
|
18
18
|
labelId: string;
|
|
19
19
|
/**
|
|
@@ -50,4 +50,4 @@ export interface MrlSelectProptypes extends React.HTMLAttributes<HTMLDivElement>
|
|
|
50
50
|
* @param {MrlSelectProptypes} props the props for your MrlLink
|
|
51
51
|
* @returns {React.ReactElement} an a element containing the text you pass
|
|
52
52
|
*/
|
|
53
|
-
export declare const MrlSelect: ({ attrs, children, kind, labelId, size,
|
|
53
|
+
export declare const MrlSelect: ({ attrs, children, kind, labelId, size, ...theRest }: MrlSelectProptypes) => React.ReactElement;
|
|
@@ -4,6 +4,9 @@ type Action = {
|
|
|
4
4
|
type: 'open';
|
|
5
5
|
} | {
|
|
6
6
|
type: 'close';
|
|
7
|
+
payload: 'mouse' | 'keyboard' | undefined;
|
|
8
|
+
} | {
|
|
9
|
+
type: 'closeFocus';
|
|
7
10
|
} | {
|
|
8
11
|
type: 'focus';
|
|
9
12
|
payload: number;
|
|
@@ -23,6 +26,7 @@ type Action = {
|
|
|
23
26
|
};
|
|
24
27
|
type Dispatch = (action: Action) => void;
|
|
25
28
|
type State = {
|
|
29
|
+
actionType?: 'mouse' | 'keyboard';
|
|
26
30
|
open: boolean;
|
|
27
31
|
focus: boolean;
|
|
28
32
|
defaultValue?: string;
|