@konturio/ui-kit
Advanced tools
Comparing version 3.0.0-alpha.47 to 3.0.0-alpha.48
{ | ||
"name": "@konturio/ui-kit", | ||
"version": "3.0.0-alpha.47", | ||
"version": "3.0.0-alpha.48", | ||
"repository": { | ||
@@ -32,3 +32,3 @@ "type": "git", | ||
}, | ||
"gitHead": "86187bb4d4ee85cd6865a626a0a2bf4692970677" | ||
"gitHead": "ca65f71ce06ac3cca9d1a378ffe5a056c9bc676d" | ||
} |
import React from 'react'; | ||
import { SelectButtonClasses } from './components/SelectButton'; | ||
import { UseSelectStateChange } from 'downshift'; | ||
import { SelectItemType } from './types'; | ||
@@ -17,4 +18,5 @@ import { ForwardRefComponent } from '../utils/component-helpers/polymorphic'; | ||
}; | ||
onChange: (changes: UseSelectStateChange<SelectItemType>) => void; | ||
} | ||
export declare const Select: ForwardRefComponent<"div", SelectProps>; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -20,6 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) { | ||
export const Select = forwardRef((_a, ref) => { | ||
var { children, items, itemToString, label, placeholder, classes, className, disabled, error, type = 'classic' } = _a, props = __rest(_a, ["children", "items", "itemToString", "label", "placeholder", "classes", "className", "disabled", "error", "type"]); | ||
var { children, items, itemToString, label, placeholder, classes, className, disabled, error, type = 'classic', onChange: onSelectedItemChange } = _a, props = __rest(_a, ["children", "items", "itemToString", "label", "placeholder", "classes", "className", "disabled", "error", "type", "onChange"]); | ||
const { isOpen, selectedItem, getToggleButtonProps, getLabelProps, getMenuProps, highlightedIndex, getItemProps } = useSelect({ | ||
items, | ||
itemToString, | ||
onSelectedItemChange, | ||
}); | ||
@@ -26,0 +27,0 @@ return (_jsxs("div", Object.assign({ ref: ref, className: cn({ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
338156
5947