@prosperitainova/mirage-ui 1.0.42 → 1.0.43

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.
@@ -1,10 +1,13 @@
1
+ import React, { InputHTMLAttributes } from "react";
1
2
  import "../../../src/theme/fonts/ProximaNova.css";
2
- export type CheckboxProps = {
3
+ export type CheckboxProps = InputHTMLAttributes<HTMLInputElement> & {
3
4
  label?: string;
4
5
  disabled?: boolean;
5
6
  checked?: boolean;
6
7
  position?: "top" | "bottom" | "left" | "right";
7
- onChange?: (value: boolean) => void;
8
+ name?: string;
9
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
10
+ onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
8
11
  };
9
12
  declare const Checkbox: ({ onChange, ...props }: CheckboxProps) => JSX.Element;
10
13
  export default Checkbox;
package/dist/index.d.ts CHANGED
@@ -53,12 +53,14 @@ type ButtonDropdownProps = ButtonHTMLAttributes<HTMLButtonElement> & {
53
53
  };
54
54
  declare const ButtonDropdown: (props: ButtonDropdownProps) => JSX.Element;
55
55
 
56
- type CheckboxProps = {
56
+ type CheckboxProps = InputHTMLAttributes<HTMLInputElement> & {
57
57
  label?: string;
58
58
  disabled?: boolean;
59
59
  checked?: boolean;
60
60
  position?: "top" | "bottom" | "left" | "right";
61
- onChange?: (value: boolean) => void;
61
+ name?: string;
62
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
63
+ onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
62
64
  };
63
65
  declare const Checkbox: ({ onChange, ...props }: CheckboxProps) => JSX.Element;
64
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosperitainova/mirage-ui",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {