glints-aries 4.0.366 → 4.0.367
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.
|
@@ -24,6 +24,7 @@ export interface SelectProps {
|
|
|
24
24
|
name?: string;
|
|
25
25
|
onBlur?: () => void;
|
|
26
26
|
onClose?: () => void;
|
|
27
|
+
onFocus?: () => void;
|
|
27
28
|
onRemoveTag?({ option }: {
|
|
28
29
|
option: string;
|
|
29
30
|
}): void;
|
|
@@ -52,5 +53,5 @@ export interface SelectProps {
|
|
|
52
53
|
/** sets z-index override for option list dropdown. z-index default to 400 */
|
|
53
54
|
zIndexOverride?: number;
|
|
54
55
|
}
|
|
55
|
-
export declare const Select: ({ allowMultiple, customActivatorIcon, disabled, hasError, helpText, label, listHeight, loadingOptions, name, onBlur, onClose, onRemoveTag, onSelect, onSelectClick, optionListFitContent, options, placeholder, prefix, searchable, searchableProps, optionsPlaceholderProps, showPopoverOnFocus, scrollable, sections, selectedValues, width, zIndexOverride, }: SelectProps) => JSX.Element;
|
|
56
|
+
export declare const Select: ({ allowMultiple, customActivatorIcon, disabled, hasError, helpText, label, listHeight, loadingOptions, name, onBlur, onClose, onFocus, onRemoveTag, onSelect, onSelectClick, optionListFitContent, options, placeholder, prefix, searchable, searchableProps, optionsPlaceholderProps, showPopoverOnFocus, scrollable, sections, selectedValues, width, zIndexOverride, }: SelectProps) => JSX.Element;
|
|
56
57
|
export {};
|
|
@@ -23,6 +23,7 @@ export var Select = function Select(_ref) {
|
|
|
23
23
|
name = _ref.name,
|
|
24
24
|
onBlur = _ref.onBlur,
|
|
25
25
|
onClose = _ref.onClose,
|
|
26
|
+
onFocus = _ref.onFocus,
|
|
26
27
|
onRemoveTag = _ref.onRemoveTag,
|
|
27
28
|
onSelect = _ref.onSelect,
|
|
28
29
|
onSelectClick = _ref.onSelectClick,
|
|
@@ -87,6 +88,7 @@ export var Select = function Select(_ref) {
|
|
|
87
88
|
return;
|
|
88
89
|
}
|
|
89
90
|
setPopoverActive(true);
|
|
91
|
+
onFocus == null ? void 0 : onFocus();
|
|
90
92
|
};
|
|
91
93
|
var handleSelectClick = function handleSelectClick() {
|
|
92
94
|
setPopoverActive(!popoverActive);
|
|
@@ -24,6 +24,7 @@ export interface SelectProps {
|
|
|
24
24
|
name?: string;
|
|
25
25
|
onBlur?: () => void;
|
|
26
26
|
onClose?: () => void;
|
|
27
|
+
onFocus?: () => void;
|
|
27
28
|
onRemoveTag?({ option }: {
|
|
28
29
|
option: string;
|
|
29
30
|
}): void;
|
|
@@ -52,5 +53,5 @@ export interface SelectProps {
|
|
|
52
53
|
/** sets z-index override for option list dropdown. z-index default to 400 */
|
|
53
54
|
zIndexOverride?: number;
|
|
54
55
|
}
|
|
55
|
-
export declare const Select: ({ allowMultiple, customActivatorIcon, disabled, hasError, helpText, label, listHeight, loadingOptions, name, onBlur, onClose, onRemoveTag, onSelect, onSelectClick, optionListFitContent, options, placeholder, prefix, searchable, searchableProps, optionsPlaceholderProps, showPopoverOnFocus, scrollable, sections, selectedValues, width, zIndexOverride, }: SelectProps) => JSX.Element;
|
|
56
|
+
export declare const Select: ({ allowMultiple, customActivatorIcon, disabled, hasError, helpText, label, listHeight, loadingOptions, name, onBlur, onClose, onFocus, onRemoveTag, onSelect, onSelectClick, optionListFitContent, options, placeholder, prefix, searchable, searchableProps, optionsPlaceholderProps, showPopoverOnFocus, scrollable, sections, selectedValues, width, zIndexOverride, }: SelectProps) => JSX.Element;
|
|
56
57
|
export {};
|
|
@@ -29,6 +29,7 @@ var Select = function Select(_ref) {
|
|
|
29
29
|
name = _ref.name,
|
|
30
30
|
onBlur = _ref.onBlur,
|
|
31
31
|
onClose = _ref.onClose,
|
|
32
|
+
onFocus = _ref.onFocus,
|
|
32
33
|
onRemoveTag = _ref.onRemoveTag,
|
|
33
34
|
onSelect = _ref.onSelect,
|
|
34
35
|
onSelectClick = _ref.onSelectClick,
|
|
@@ -93,6 +94,7 @@ var Select = function Select(_ref) {
|
|
|
93
94
|
return;
|
|
94
95
|
}
|
|
95
96
|
setPopoverActive(true);
|
|
97
|
+
onFocus == null ? void 0 : onFocus();
|
|
96
98
|
};
|
|
97
99
|
var handleSelectClick = function handleSelectClick() {
|
|
98
100
|
setPopoverActive(!popoverActive);
|