indicator-ui 0.0.144 → 0.0.146

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
@@ -3230,22 +3230,6 @@ __webpack_require__.r(__webpack_exports__);
3230
3230
 
3231
3231
  /***/ }),
3232
3232
 
3233
- /***/ "./src/ui/InputFields/SwitcherField/styles/SwitcherField.module.scss":
3234
- /*!***************************************************************************!*\
3235
- !*** ./src/ui/InputFields/SwitcherField/styles/SwitcherField.module.scss ***!
3236
- \***************************************************************************/
3237
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3238
-
3239
- "use strict";
3240
- __webpack_require__.r(__webpack_exports__);
3241
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3242
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
3243
- /* harmony export */ });
3244
- // extracted by mini-css-extract-plugin
3245
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"switcherField":"SwitcherField-module__switcherField___R9atT","active":"SwitcherField-module__active___p_7P5"});
3246
-
3247
- /***/ }),
3248
-
3249
3233
  /***/ "./src/ui/InputFields/TextareaField/styles/TextareaField.module.scss":
3250
3234
  /*!***************************************************************************!*\
3251
3235
  !*** ./src/ui/InputFields/TextareaField/styles/TextareaField.module.scss ***!
@@ -10685,23 +10669,6 @@ __webpack_require__.r(__webpack_exports__);
10685
10669
 
10686
10670
 
10687
10671
 
10688
- /***/ }),
10689
-
10690
- /***/ "./src/ui/InputFields/SwitcherField/styles/index.ts":
10691
- /*!**********************************************************!*\
10692
- !*** ./src/ui/InputFields/SwitcherField/styles/index.ts ***!
10693
- \**********************************************************/
10694
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10695
-
10696
- "use strict";
10697
- __webpack_require__.r(__webpack_exports__);
10698
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10699
- /* harmony export */ SwitcherFieldStyle: () => (/* reexport safe */ _SwitcherField_module_scss__WEBPACK_IMPORTED_MODULE_0__["default"])
10700
- /* harmony export */ });
10701
- /* harmony import */ var _SwitcherField_module_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SwitcherField.module.scss */ "./src/ui/InputFields/SwitcherField/styles/SwitcherField.module.scss");
10702
-
10703
-
10704
-
10705
10672
  /***/ }),
10706
10673
 
10707
10674
  /***/ "./src/ui/InputFields/SwitcherField/types/SwitcherFieldTypes.ts":
@@ -10745,36 +10712,23 @@ __webpack_require__.r(__webpack_exports__);
10745
10712
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js");
10746
10713
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
10747
10714
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
10748
- /* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! clsx */ "./node_modules/clsx/dist/clsx.mjs");
10749
- /* harmony import */ var _styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../styles */ "./src/ui/InputFields/SwitcherField/styles/index.ts");
10750
-
10715
+ /* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/ui */ "./src/ui/index.ts");
10751
10716
 
10752
10717
 
10753
10718
 
10754
- function SwitcherField({ value, onChange, children, disabled = false, switcherWrapper,
10755
- // className = SwitcherFieldStyle
10756
- }) {
10719
+ function SwitcherField({ value, onChange, disabled = false, switcherWrapper, ...props }) {
10757
10720
  const handleChange = () => {
10758
10721
  onChange && onChange(!value);
10759
10722
  };
10760
- const Switcher = ({ value, disabled }) => {
10761
- return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("button", { disabled: disabled, onClick: handleChange, className: (0,clsx__WEBPACK_IMPORTED_MODULE_2__["default"])(_styles__WEBPACK_IMPORTED_MODULE_3__.SwitcherFieldStyle.switcherField, {
10762
- [_styles__WEBPACK_IMPORTED_MODULE_3__.SwitcherFieldStyle.active]: !!value,
10763
- }), children: children }));
10764
- };
10765
10723
  if (switcherWrapper !== undefined) {
10766
10724
  return react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(switcherWrapper, {
10767
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Switcher, { value: value,
10768
- // className={className}
10769
- disabled: disabled }),
10725
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ui__WEBPACK_IMPORTED_MODULE_2__.ToggleBase, { active: value, onClick: handleChange, disabled: disabled }),
10770
10726
  value: value,
10771
10727
  onChange: onChange,
10772
10728
  disabled: disabled
10773
10729
  });
10774
10730
  }
10775
- return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Switcher, { value: value,
10776
- // className={className}
10777
- disabled: disabled });
10731
+ return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ui__WEBPACK_IMPORTED_MODULE_2__.Toggle, { active: value, onClick: handleChange, disabled: disabled, ...props });
10778
10732
  }
10779
10733
 
10780
10734