@lumx/core 4.17.1-alpha.0 → 4.17.1-alpha.1
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.
|
@@ -28,7 +28,7 @@ export declare function setup({ components: { Combobox, IconButton, Button }, de
|
|
|
28
28
|
onChange: (v: string) => void;
|
|
29
29
|
onSelect?: (option: {
|
|
30
30
|
value: string;
|
|
31
|
-
}) => void;
|
|
31
|
+
}) => boolean | void;
|
|
32
32
|
}) => import("react").JSX.Element;
|
|
33
33
|
};
|
|
34
34
|
ClickAwayClosesPopup: {
|
|
@@ -50,7 +50,7 @@ export declare function setup({ components: { Combobox, IconButton, Button }, de
|
|
|
50
50
|
onChange: (v: string) => void;
|
|
51
51
|
onSelect?: (option: {
|
|
52
52
|
value: string;
|
|
53
|
-
}) => void;
|
|
53
|
+
}) => boolean | void;
|
|
54
54
|
}) => import("react").JSX.Element;
|
|
55
55
|
};
|
|
56
56
|
OptionMoreInfoKeyboardHighlight: {
|
|
@@ -114,7 +114,7 @@ export declare function setup({ components: { Combobox, IconButton, Button }, de
|
|
|
114
114
|
value: string;
|
|
115
115
|
onSelect: (option: {
|
|
116
116
|
value: string;
|
|
117
|
-
}) => void;
|
|
117
|
+
}) => boolean | void;
|
|
118
118
|
}) => import("react").JSX.Element;
|
|
119
119
|
};
|
|
120
120
|
ButtonTypeaheadWhileOpen: {
|
|
@@ -127,7 +127,7 @@ export declare function setup({ components: { Combobox, IconButton, Button }, de
|
|
|
127
127
|
value: string;
|
|
128
128
|
onSelect: (option: {
|
|
129
129
|
value: string;
|
|
130
|
-
}) => void;
|
|
130
|
+
}) => boolean | void;
|
|
131
131
|
}) => import("react").JSX.Element;
|
|
132
132
|
};
|
|
133
133
|
ButtonEndFromClosed: {
|
|
@@ -140,7 +140,7 @@ export declare function setup({ components: { Combobox, IconButton, Button }, de
|
|
|
140
140
|
value: string;
|
|
141
141
|
onSelect: (option: {
|
|
142
142
|
value: string;
|
|
143
|
-
}) => void;
|
|
143
|
+
}) => boolean | void;
|
|
144
144
|
}) => import("react").JSX.Element;
|
|
145
145
|
};
|
|
146
146
|
ButtonHomeFromClosed: {
|
|
@@ -153,7 +153,7 @@ export declare function setup({ components: { Combobox, IconButton, Button }, de
|
|
|
153
153
|
value: string;
|
|
154
154
|
onSelect: (option: {
|
|
155
155
|
value: string;
|
|
156
|
-
}) => void;
|
|
156
|
+
}) => boolean | void;
|
|
157
157
|
}) => import("react").JSX.Element;
|
|
158
158
|
};
|
|
159
159
|
ButtonArrowDownFromClosed: {
|
|
@@ -166,7 +166,7 @@ export declare function setup({ components: { Combobox, IconButton, Button }, de
|
|
|
166
166
|
value: string;
|
|
167
167
|
onSelect: (option: {
|
|
168
168
|
value: string;
|
|
169
|
-
}) => void;
|
|
169
|
+
}) => boolean | void;
|
|
170
170
|
}) => import("react").JSX.Element;
|
|
171
171
|
};
|
|
172
172
|
ClearAfterSelect: {
|
|
@@ -180,7 +180,7 @@ export declare function setup({ components: { Combobox, IconButton, Button }, de
|
|
|
180
180
|
onChange: (v: string) => void;
|
|
181
181
|
onSelect?: (option: {
|
|
182
182
|
value: string;
|
|
183
|
-
}) => void;
|
|
183
|
+
}) => boolean | void;
|
|
184
184
|
}) => import("react").JSX.Element;
|
|
185
185
|
};
|
|
186
186
|
};
|
|
@@ -50,65 +50,65 @@ export declare function createTemplates(Combobox: ComboboxNamespace, IconButton:
|
|
|
50
50
|
onChange: (v: string) => void;
|
|
51
51
|
onSelect?: (option: {
|
|
52
52
|
value: string;
|
|
53
|
-
}) => void;
|
|
53
|
+
}) => boolean | void;
|
|
54
54
|
}) => import("react").JSX.Element;
|
|
55
55
|
manualFilterTemplate: ({ value, onChange, onSelect, }: {
|
|
56
56
|
value: string;
|
|
57
57
|
onChange: (v: string) => void;
|
|
58
58
|
onSelect?: (option: {
|
|
59
59
|
value: string;
|
|
60
|
-
}) => void;
|
|
60
|
+
}) => boolean | void;
|
|
61
61
|
}) => import("react").JSX.Element;
|
|
62
62
|
filterOffTemplate: ({ value, onChange, onSelect, }: {
|
|
63
63
|
value: string;
|
|
64
64
|
onChange: (v: string) => void;
|
|
65
65
|
onSelect?: (option: {
|
|
66
66
|
value: string;
|
|
67
|
-
}) => void;
|
|
67
|
+
}) => boolean | void;
|
|
68
68
|
}) => import("react").JSX.Element;
|
|
69
69
|
openOnFocusTemplate: ({ value, onChange, onSelect, }: {
|
|
70
70
|
value: string;
|
|
71
71
|
onChange: (v: string) => void;
|
|
72
72
|
onSelect?: (option: {
|
|
73
73
|
value: string;
|
|
74
|
-
}) => void;
|
|
74
|
+
}) => boolean | void;
|
|
75
75
|
}) => import("react").JSX.Element;
|
|
76
76
|
noOpenOnFocusTemplate: ({ value, onChange, onSelect, }: {
|
|
77
77
|
value: string;
|
|
78
78
|
onChange: (v: string) => void;
|
|
79
79
|
onSelect?: (option: {
|
|
80
80
|
value: string;
|
|
81
|
-
}) => void;
|
|
81
|
+
}) => boolean | void;
|
|
82
82
|
}) => import("react").JSX.Element;
|
|
83
83
|
buttonTemplate: ({ value, onSelect }: {
|
|
84
84
|
value: string;
|
|
85
85
|
onSelect: (option: {
|
|
86
86
|
value: string;
|
|
87
|
-
}) => void;
|
|
87
|
+
}) => boolean | void;
|
|
88
88
|
}) => import("react").JSX.Element;
|
|
89
89
|
showLabelButtonTemplate: ({ value, onSelect, }: {
|
|
90
90
|
value: string;
|
|
91
91
|
onSelect: (option: {
|
|
92
92
|
value: string;
|
|
93
|
-
}) => void;
|
|
93
|
+
}) => boolean | void;
|
|
94
94
|
}) => import("react").JSX.Element;
|
|
95
95
|
showTooltipButtonTemplate: ({ value, onSelect, }: {
|
|
96
96
|
value: string;
|
|
97
97
|
onSelect: (option: {
|
|
98
98
|
value: string;
|
|
99
|
-
}) => void;
|
|
99
|
+
}) => boolean | void;
|
|
100
100
|
}) => import("react").JSX.Element;
|
|
101
101
|
noValueButtonTemplate: ({ value, onSelect, }: {
|
|
102
102
|
value: string;
|
|
103
103
|
onSelect: (option: {
|
|
104
104
|
value: string;
|
|
105
|
-
}) => void;
|
|
105
|
+
}) => boolean | void;
|
|
106
106
|
}) => import("react").JSX.Element;
|
|
107
107
|
selectedButtonTemplate: ({ value, onSelect, }: {
|
|
108
108
|
value: string;
|
|
109
109
|
onSelect: (option: {
|
|
110
110
|
value: string;
|
|
111
|
-
}) => void;
|
|
111
|
+
}) => boolean | void;
|
|
112
112
|
}) => import("react").JSX.Element;
|
|
113
113
|
disabledInputTemplate: ({ value, onChange }: {
|
|
114
114
|
value: string;
|
|
@@ -118,14 +118,14 @@ export declare function createTemplates(Combobox: ComboboxNamespace, IconButton:
|
|
|
118
118
|
value: string;
|
|
119
119
|
onSelect: (option: {
|
|
120
120
|
value: string;
|
|
121
|
-
}) => void;
|
|
121
|
+
}) => boolean | void;
|
|
122
122
|
}) => import("react").JSX.Element;
|
|
123
123
|
gridInputTemplate: ({ value, onChange, onSelect, onDelete, onEdit, }: {
|
|
124
124
|
value: string;
|
|
125
125
|
onChange: (v: string) => void;
|
|
126
126
|
onSelect?: (option: {
|
|
127
127
|
value: string;
|
|
128
|
-
}) => void;
|
|
128
|
+
}) => boolean | void;
|
|
129
129
|
onDelete?: (...args: unknown[]) => void;
|
|
130
130
|
onEdit?: (...args: unknown[]) => void;
|
|
131
131
|
}) => import("react").JSX.Element;
|
|
@@ -133,7 +133,7 @@ export declare function createTemplates(Combobox: ComboboxNamespace, IconButton:
|
|
|
133
133
|
value: string;
|
|
134
134
|
onSelect: (option: {
|
|
135
135
|
value: string;
|
|
136
|
-
}) => void;
|
|
136
|
+
}) => boolean | void;
|
|
137
137
|
onDelete?: (...args: unknown[]) => void;
|
|
138
138
|
}) => import("react").JSX.Element;
|
|
139
139
|
emptyStateTemplate: ({ value, onChange }: {
|
|
@@ -41,10 +41,14 @@ export interface ComboboxEventMap {
|
|
|
41
41
|
}
|
|
42
42
|
/** Callbacks provided by the consumer (React/Vue) to react to combobox state changes. */
|
|
43
43
|
export interface ComboboxCallbacks {
|
|
44
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* Called when an option is selected (click or keyboard).
|
|
46
|
+
* Return `false` to skip the default behaviour of updating the input value via `onChange`.
|
|
47
|
+
* The combobox will still close normally.
|
|
48
|
+
*/
|
|
45
49
|
onSelect?(option: {
|
|
46
50
|
value: string;
|
|
47
|
-
}): void;
|
|
51
|
+
}): boolean | void;
|
|
48
52
|
}
|
|
49
53
|
/**
|
|
50
54
|
* Behavioral options for input-mode combobox (autocomplete/filter pattern).
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@floating-ui/dom": "^1.7.5",
|
|
10
|
-
"@lumx/icons": "^4.17.1-alpha.
|
|
10
|
+
"@lumx/icons": "^4.17.1-alpha.1",
|
|
11
11
|
"classnames": "^2.3.2",
|
|
12
12
|
"focus-visible": "^5.0.2",
|
|
13
13
|
"lodash": "4.18.1",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
|
|
67
67
|
},
|
|
68
68
|
"sideEffects": false,
|
|
69
|
-
"version": "4.17.1-alpha.
|
|
69
|
+
"version": "4.17.1-alpha.1",
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
72
72
|
"@testing-library/dom": "^10.4.1",
|