indicator-ui 0.0.16 → 0.0.17

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
@@ -3018,7 +3018,7 @@ __webpack_require__.r(__webpack_exports__);
3018
3018
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
3019
3019
  /* harmony export */ });
3020
3020
  // extracted by mini-css-extract-plugin
3021
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"checkbox":"Checkbox-module__checkbox___GSei6","textBlock":"Checkbox-module__textBlock___lgsN_","text":"Checkbox-module__text___bgxrk","indeterminate":"Checkbox-module__indeterminate___rVkUe","supportingText":"Checkbox-module__supportingText___BR8D6","disabled":"Checkbox-module__disabled___haSYz","error":"Checkbox-module__error___YOn5a"});
3021
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"checkbox":"Checkbox-module__checkbox___GSei6","textBlock":"Checkbox-module__textBlock___lgsN_","text":"Checkbox-module__text___bgxrk","indeterminate":"Checkbox-module__indeterminate___rVkUe","supportingText":"Checkbox-module__supportingText___BR8D6","disabled":"Checkbox-module__disabled___haSYz","error":"Checkbox-module__error___YOn5a","widthFill":"Checkbox-module__widthFill___EHcfi","heightFill":"Checkbox-module__heightFill___uqjBX","widthHug":"Checkbox-module__widthHug___N5weH","heightHug":"Checkbox-module__heightHug___SK_mI"});
3022
3022
 
3023
3023
  /***/ }),
3024
3024
 
@@ -6876,7 +6876,7 @@ __webpack_require__.r(__webpack_exports__);
6876
6876
 
6877
6877
 
6878
6878
 
6879
- const CheckboxMark = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(({ type = "checkbox", indeterminate = false, checked = false, error = false, relation = false, disabled = false, isButton = true, hover = false, onClick, className = _styles__WEBPACK_IMPORTED_MODULE_4__.CheckboxMarkStyle }, ref) => {
6879
+ const CheckboxMark = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(({ type = "checkbox", indeterminate = false, checked = false, error = false, relation = false, disabled = false, isButton = true, hover = false, onClick, additionStyle, className = _styles__WEBPACK_IMPORTED_MODULE_4__.CheckboxMarkStyle }, ref) => {
6880
6880
  const getClassName = () => {
6881
6881
  return (0,clsx__WEBPACK_IMPORTED_MODULE_2__["default"])(className?.checkboxMark, {
6882
6882
  [className?.checkbox]: type === 'checkbox',
@@ -6888,7 +6888,7 @@ const CheckboxMark = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(({ type =
6888
6888
  [className?.incorrect]: relation === 'incorrect',
6889
6889
  [className?.indeterminate]: indeterminate,
6890
6890
  [className?.hover]: hover,
6891
- });
6891
+ }, additionStyle);
6892
6892
  };
6893
6893
  const getIcon = () => {
6894
6894
  if (indeterminate) {
@@ -7026,11 +7026,15 @@ __webpack_require__.r(__webpack_exports__);
7026
7026
 
7027
7027
 
7028
7028
 
7029
- function Checkbox({ checked = false, type = 'checkbox', error = false, subtype = false, disabled = false, text, supportingText, indeterminate = false, onClick, className = _styles__WEBPACK_IMPORTED_MODULE_4__.CheckboxStyle, }) {
7029
+ function Checkbox({ checked = false, type = 'checkbox', error = false, subtype = false, disabled = false, text, supportingText, indeterminate = false, onClick, width = 'fill', height = 'hug', className = _styles__WEBPACK_IMPORTED_MODULE_4__.CheckboxStyle, }) {
7030
7030
  const [isHover, setIsHover] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false);
7031
7031
  return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("button", { onClick: onClick, onMouseEnter: () => setIsHover(true), onMouseLeave: () => setIsHover(false), className: (0,clsx__WEBPACK_IMPORTED_MODULE_2__["default"])(className?.checkbox, {
7032
7032
  [className?.error]: error,
7033
7033
  [className?.disabled]: disabled,
7034
+ [className?.widthFill]: width === 'fill',
7035
+ [className?.widthHug]: width === 'hug',
7036
+ [className?.heightFill]: height === 'fill',
7037
+ [className?.heightHug]: height === 'hug',
7034
7038
  }), children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ui__WEBPACK_IMPORTED_MODULE_3__.CheckboxMark, { type: type, indeterminate: indeterminate, disabled: disabled, error: error, checked: checked, isButton: false, hover: isHover, relation: subtype }), text &&
7035
7039
  (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: (0,clsx__WEBPACK_IMPORTED_MODULE_2__["default"])(className?.textBlock, { [className?.indeterminate]: indeterminate }), children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: className?.text, children: text }), supportingText && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: className?.supportingText, children: supportingText })] })] }));
7036
7040
  }