ui-beyable 1.1.0-beta.7 → 1.1.0-beta.9

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.
@@ -7,6 +7,7 @@ type optionType = {
7
7
  icon?: string;
8
8
  customIcon?: React.ReactElement;
9
9
  lucideIcon?: React.ReactElement;
10
+ disabled?: boolean;
10
11
  };
11
12
  interface BtnSwitchProps {
12
13
  value: valueType;
package/lib/cjs/index.js CHANGED
@@ -2117,7 +2117,7 @@ var BtnSwitch = function (_a) {
2117
2117
  return (React.createElement(React.Fragment, { key: i + '_' + o.value },
2118
2118
  hasSeparator && i > 0 &&
2119
2119
  React.createElement("span", { className: (isActive || previousIsActive) ? styles$k.separatorHidden : styles$k.separatorVisible }),
2120
- React.createElement(Btn, { message: o.label, icon: o.icon, customIcon: o.customIcon, lucideIcon: o.lucideIcon, style: style, isActive: isActive, color: "secondary", onClick: function () { return onChange(o.value); }, size: btnSize, fontSize: btnFontSize, horizontalSize: btnHorizontalSize, className: btnClass.join(' '), hasMinWith: false, light: isActive ? false : btnIsLight })));
2120
+ React.createElement(Btn, { message: o.label, icon: o.icon, customIcon: o.customIcon, lucideIcon: o.lucideIcon, style: style, isActive: isActive, disabled: o.disabled, color: "secondary", onClick: function () { return onChange(o.value); }, size: btnSize, fontSize: btnFontSize, horizontalSize: btnHorizontalSize, className: btnClass.join(' '), hasMinWith: false, light: isActive ? false : btnIsLight })));
2121
2121
  })));
2122
2122
  };
2123
2123
 
@@ -7,6 +7,7 @@ type optionType = {
7
7
  icon?: string;
8
8
  customIcon?: React.ReactElement;
9
9
  lucideIcon?: React.ReactElement;
10
+ disabled?: boolean;
10
11
  };
11
12
  interface BtnSwitchProps {
12
13
  value: valueType;
package/lib/esm/index.js CHANGED
@@ -2115,7 +2115,7 @@ var BtnSwitch = function (_a) {
2115
2115
  return (React.createElement(Fragment, { key: i + '_' + o.value },
2116
2116
  hasSeparator && i > 0 &&
2117
2117
  React.createElement("span", { className: (isActive || previousIsActive) ? styles$k.separatorHidden : styles$k.separatorVisible }),
2118
- React.createElement(Btn, { message: o.label, icon: o.icon, customIcon: o.customIcon, lucideIcon: o.lucideIcon, style: style, isActive: isActive, color: "secondary", onClick: function () { return onChange(o.value); }, size: btnSize, fontSize: btnFontSize, horizontalSize: btnHorizontalSize, className: btnClass.join(' '), hasMinWith: false, light: isActive ? false : btnIsLight })));
2118
+ React.createElement(Btn, { message: o.label, icon: o.icon, customIcon: o.customIcon, lucideIcon: o.lucideIcon, style: style, isActive: isActive, disabled: o.disabled, color: "secondary", onClick: function () { return onChange(o.value); }, size: btnSize, fontSize: btnFontSize, horizontalSize: btnHorizontalSize, className: btnClass.join(' '), hasMinWith: false, light: isActive ? false : btnIsLight })));
2119
2119
  })));
2120
2120
  };
2121
2121
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-beyable",
3
- "version": "1.1.0-beta.7",
3
+ "version": "1.1.0-beta.9",
4
4
  "description": "Ui library of Beyable projets",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",