indicator-ui 0.0.1 → 0.0.2

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 CHANGED
@@ -4820,7 +4820,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
4820
4820
 
4821
4821
 
4822
4822
  function Button(_a) {
4823
- var { children, iconLeft, iconRight, hierarchy = 'primary', warning = false, size = 'medium', width = 'hug', height = 'hug', additionStyles = [], className = _styles__WEBPACK_IMPORTED_MODULE_2__.ButtonsStyle } = _a, props = __rest(_a, ["children", "iconLeft", "iconRight", "hierarchy", "warning", "size", "width", "height", "additionStyles", "className"]);
4823
+ var { children, text, iconLeft, iconRight, hierarchy = 'primary', warning = false, size = 'medium', width = 'hug', height = 'hug', additionStyles = [], className = _styles__WEBPACK_IMPORTED_MODULE_2__.ButtonsStyle } = _a, props = __rest(_a, ["children", "text", "iconLeft", "iconRight", "hierarchy", "warning", "size", "width", "height", "additionStyles", "className"]);
4824
4824
  const getHierarchyClassName = () => {
4825
4825
  switch (hierarchy) {
4826
4826
  case "primary":
@@ -4884,7 +4884,7 @@ function Button(_a) {
4884
4884
  const getWarningStyles = () => {
4885
4885
  return warning ? className === null || className === void 0 ? void 0 : className.warning : '';
4886
4886
  };
4887
- return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("button", Object.assign({}, props, { className: (0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(className === null || className === void 0 ? void 0 : className.button, getHierarchyClassName(), getSizeClassName(), getWidthClassName(), getHeightClassName(), getAdditionStyles(), getWarningStyles()), children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: className === null || className === void 0 ? void 0 : className.icon, children: iconLeft }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: className === null || className === void 0 ? void 0 : className.text, children: children }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: className === null || className === void 0 ? void 0 : className.icon, children: iconRight })] })));
4887
+ return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("button", Object.assign({}, props, { className: (0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(className === null || className === void 0 ? void 0 : className.button, getHierarchyClassName(), getSizeClassName(), getWidthClassName(), getHeightClassName(), getAdditionStyles(), getWarningStyles()), children: [iconLeft && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: className === null || className === void 0 ? void 0 : className.icon, children: iconLeft }), children && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: className === null || className === void 0 ? void 0 : className.text, children: text || children }), iconRight && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: className === null || className === void 0 ? void 0 : className.icon, children: iconRight })] })));
4888
4888
  }
4889
4889
 
4890
4890