@agility/plenum-ui 1.1.3 → 1.1.4

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.
@@ -15,7 +15,7 @@ export interface CheckboxProps {
15
15
  /** Message or description */
16
16
  message?: string;
17
17
  /** Callback on input change */
18
- onChange?(value: string): void;
18
+ onChange?(checked: boolean): void;
19
19
  }
20
20
  /** Comment */
21
21
  export declare const Checkbox: FC<CheckboxProps>;
package/lib/index.esm.js CHANGED
@@ -12505,8 +12505,8 @@ var Checkbox = function (_a) {
12505
12505
  var checboxStyles = cn$1('focus:ring-purple-500 h-4 w-4 text-purple-600 border-gray-300 rounded', { 'border-red-500 shadow-none': isError });
12506
12506
  var wrapperStyles = cn$1('relative flex items-start', { 'opacity-50': isDisabled });
12507
12507
  var handleChange = function (e) {
12508
- var targetValue = e.currentTarget.value;
12509
- typeof onChange === 'function' && onChange(targetValue);
12508
+ var checked = e.currentTarget.checked;
12509
+ typeof onChange === 'function' && onChange(checked);
12510
12510
  };
12511
12511
  return (React__default.createElement("div", { className: wrapperStyles },
12512
12512
  React__default.createElement("div", { className: "flex items-center h-5" },
package/lib/index.js CHANGED
@@ -12531,8 +12531,8 @@ var Checkbox = function (_a) {
12531
12531
  var checboxStyles = cn$1('focus:ring-purple-500 h-4 w-4 text-purple-600 border-gray-300 rounded', { 'border-red-500 shadow-none': isError });
12532
12532
  var wrapperStyles = cn$1('relative flex items-start', { 'opacity-50': isDisabled });
12533
12533
  var handleChange = function (e) {
12534
- var targetValue = e.currentTarget.value;
12535
- typeof onChange === 'function' && onChange(targetValue);
12534
+ var checked = e.currentTarget.checked;
12535
+ typeof onChange === 'function' && onChange(checked);
12536
12536
  };
12537
12537
  return (React__default["default"].createElement("div", { className: wrapperStyles },
12538
12538
  React__default["default"].createElement("div", { className: "flex items-center h-5" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agility/plenum-ui",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Components that are part of the Agility CMS design system.",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",