@povio/ui 3.4.0-rc.12 → 3.4.0-rc.14

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.
@@ -25,7 +25,7 @@ var Button$1 = ({ icon: Icon, iconPosition, children, isLoading, className, link
25
25
  return /* @__PURE__ */ jsx(Component, {
26
26
  ...props,
27
27
  ...link,
28
- isDisabled: props.isDisabled || isLoading && !noDisableWhenLoading,
28
+ isDisabled: isLoading && !noDisableWhenLoading ? true : props.isDisabled,
29
29
  className: clsx(buttonCva({
30
30
  ...props,
31
31
  variant,
@@ -45,7 +45,7 @@ var SelectInput = (t0) => {
45
45
  const { fieldState, isOpen, setIsOpen, selectableListItems, selectedItems, onChange, onClear, onRemove, isMultiple, multiSelectAutoConfirm, isLoading } = SelectContext.useSelect();
46
46
  const isEmpty = selectedItems.length === 0;
47
47
  const showTags = isMultiple && !isEmpty;
48
- const showClearButton = !isDisabled && isClearable && (selectedItems.length > 0 || isSearchable && fieldState.inputValue !== "");
48
+ const showClearButton = (!isDisabled || isClearableIfDisabled === true) && isClearable && (selectedItems.length > 0 || isSearchable && fieldState.inputValue !== "");
49
49
  let t3;
50
50
  bb0: {
51
51
  let t4;
@@ -92,6 +92,7 @@ var InputClearButton = (t0) => {
92
92
  label: t1,
93
93
  icon: X,
94
94
  onPress: onClear,
95
+ isDisabled: false,
95
96
  onMouseDown: _temp3,
96
97
  excludeFromTabOrder: true,
97
98
  style
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@povio/ui",
3
- "version": "3.4.0-rc.12",
3
+ "version": "3.4.0-rc.14",
4
4
  "type": "module",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",