indicator-ui 0.0.10 → 0.0.11
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/index.js +14 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8182,17 +8182,26 @@ const FlexField = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(({ value, ty
|
|
|
8182
8182
|
if (!dropdown)
|
|
8183
8183
|
return undefined;
|
|
8184
8184
|
const dropdownIcon = typeof dropdown === "boolean" ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets__WEBPACK_IMPORTED_MODULE_4__.ChevronDownSVG, {}) : dropdown;
|
|
8185
|
-
|
|
8185
|
+
let dropdownClassName = typeof dropdownState === 'string' ? dropdownState : (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(className?.dropdown, { [className?.dropdownReverse]: dropdownState });
|
|
8186
8186
|
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: dropdownClassName, children: dropdownIcon });
|
|
8187
8187
|
};
|
|
8188
8188
|
const getButton = () => {
|
|
8189
8189
|
if (!button)
|
|
8190
8190
|
return undefined;
|
|
8191
8191
|
const buttonIcon = typeof button === "boolean" ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets__WEBPACK_IMPORTED_MODULE_4__.XCloseSVG, {}) : button;
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
[className?.
|
|
8195
|
-
|
|
8192
|
+
let buttonClassName;
|
|
8193
|
+
if (['red', 'gray'].includes(buttonState)) {
|
|
8194
|
+
buttonClassName = (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(className?.button, {
|
|
8195
|
+
[className?.gray]: buttonState === 'gray',
|
|
8196
|
+
[className?.red]: buttonState === 'red'
|
|
8197
|
+
});
|
|
8198
|
+
}
|
|
8199
|
+
else if (typeof buttonState === "string") {
|
|
8200
|
+
buttonClassName = buttonState;
|
|
8201
|
+
}
|
|
8202
|
+
else {
|
|
8203
|
+
buttonClassName = '';
|
|
8204
|
+
}
|
|
8196
8205
|
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: buttonClassName, children: buttonIcon });
|
|
8197
8206
|
};
|
|
8198
8207
|
return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { ref: ref, onClick: onClick, className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(className?.flexField, {
|