@banyan_cloud/roots 1.0.89 → 1.0.90
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.
- package/dist/cjs/index.js +3 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +3 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -110015,12 +110015,13 @@ var Toggle = /*#__PURE__*/React.forwardRef(function Toggle(props, ref) {
|
|
|
110015
110015
|
var title = item.title,
|
|
110016
110016
|
itemValue = item.value,
|
|
110017
110017
|
leftComponent = item.leftComponent,
|
|
110018
|
-
rightComponent = item.rightComponent
|
|
110018
|
+
rightComponent = item.rightComponent,
|
|
110019
|
+
itemClassName = item.className;
|
|
110019
110020
|
var isActive = inputValue.indexOf(itemValue) !== -1 && !allSelected;
|
|
110020
110021
|
return /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
110021
110022
|
size: "auto",
|
|
110022
110023
|
"data-elem": "toggle",
|
|
110023
|
-
className: classes(modules_a2cdc77c['toggle-button'], isActive ? modules_a2cdc77c.active : ''),
|
|
110024
|
+
className: classes(modules_a2cdc77c['toggle-button'], isActive ? modules_a2cdc77c.active : '', itemClassName),
|
|
110024
110025
|
onClick: function onClick() {
|
|
110025
110026
|
onButtonClick(itemValue, isActive);
|
|
110026
110027
|
},
|