labsense-ui-kit 1.1.97 → 1.1.98
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.
|
@@ -10,6 +10,7 @@ interface ButtonDropdownProps {
|
|
|
10
10
|
size?: 'small' | 'medium' | 'large';
|
|
11
11
|
variant?: 'primary' | 'outline-primary' | 'secondary';
|
|
12
12
|
placeholder?: string;
|
|
13
|
+
disabled?: boolean;
|
|
13
14
|
}
|
|
14
15
|
declare const ButtonDropdown: React.FC<ButtonDropdownProps>;
|
|
15
16
|
export default ButtonDropdown;
|
package/dist/index.js
CHANGED
|
@@ -5765,7 +5765,9 @@ var ButtonDropdown = function ButtonDropdown(_ref) {
|
|
|
5765
5765
|
_ref$variant = _ref.variant,
|
|
5766
5766
|
variant = _ref$variant === void 0 ? 'outline-primary' : _ref$variant,
|
|
5767
5767
|
_ref$placeholder = _ref.placeholder,
|
|
5768
|
-
placeholder = _ref$placeholder === void 0 ? 'Select Option' : _ref$placeholder
|
|
5768
|
+
placeholder = _ref$placeholder === void 0 ? 'Select Option' : _ref$placeholder,
|
|
5769
|
+
_ref$disabled = _ref.disabled,
|
|
5770
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
5769
5771
|
var _useState = React.useState(false),
|
|
5770
5772
|
isOpen = _useState[0],
|
|
5771
5773
|
setIsOpen = _useState[1];
|
|
@@ -5792,6 +5794,7 @@ var ButtonDropdown = function ButtonDropdown(_ref) {
|
|
|
5792
5794
|
icon: isOpen ? 'UpArrow' : 'DownArrow',
|
|
5793
5795
|
size: size,
|
|
5794
5796
|
variant: variant,
|
|
5797
|
+
disabled: disabled,
|
|
5795
5798
|
onClick: function onClick() {
|
|
5796
5799
|
return setIsOpen(function (prev) {
|
|
5797
5800
|
return !prev;
|