demio-ui 2.1.65 → 2.1.67

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,20 +1,14 @@
1
1
  import React from 'react';
2
+ import { CheckedState } from '@radix-ui/react-checkbox';
2
3
  type Props = {
3
- children: React.ReactNode;
4
+ checked?: boolean;
5
+ children?: React.ReactNode;
6
+ defaultChecked?: boolean;
4
7
  disabled?: boolean;
5
8
  id: string;
6
- defaultChecked?: boolean;
7
- checked?: boolean;
8
- onChange?: (event: {
9
- checked: boolean;
10
- name: string;
11
- value: string;
12
- }) => void;
13
9
  name?: string;
10
+ onCheckedChange?: (checked: CheckedState) => void;
14
11
  value?: string;
15
12
  };
16
- /**
17
- * Checkbox component documentation.
18
- **/
19
- declare function Checkbox({ children, id, checked, onChange, disabled, defaultChecked, name, value, ...props }: Props): React.JSX.Element;
13
+ declare const Checkbox: React.MemoExoticComponent<({ children, disabled, id, ...props }: Props) => React.JSX.Element>;
20
14
  export default Checkbox;
package/dist/types.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { MouseEventHandler, FC, ReactNode, PropsWithChildren } from 'react';
3
+ import { CheckedState } from '@radix-ui/react-checkbox';
3
4
  import { PopoverContentTypeProps } from '@radix-ui/react-popover';
4
5
  export { Content as PopoverContent, Portal as PopoverPortal, Root as PopoverRoot, Trigger as PopoverTrigger } from '@radix-ui/react-popover';
5
6
  import * as SelectPrimitive from '@radix-ui/react-select';
@@ -72,23 +73,16 @@ type Props$h = {
72
73
  declare const Card: FC<Props$h>;
73
74
 
74
75
  type Props$g = {
75
- children: React__default.ReactNode;
76
+ checked?: boolean;
77
+ children?: React__default.ReactNode;
78
+ defaultChecked?: boolean;
76
79
  disabled?: boolean;
77
80
  id: string;
78
- defaultChecked?: boolean;
79
- checked?: boolean;
80
- onChange?: (event: {
81
- checked: boolean;
82
- name: string;
83
- value: string;
84
- }) => void;
85
81
  name?: string;
82
+ onCheckedChange?: (checked: CheckedState) => void;
86
83
  value?: string;
87
84
  };
88
- /**
89
- * Checkbox component documentation.
90
- **/
91
- declare function Checkbox({ children, id, checked, onChange, disabled, defaultChecked, name, value, ...props }: Props$g): React__default.JSX.Element;
85
+ declare const Checkbox: React__default.MemoExoticComponent<({ children, disabled, id, ...props }: Props$g) => React__default.JSX.Element>;
92
86
 
93
87
  type Props$f = {
94
88
  children?: ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "demio-ui",
3
- "version": "2.1.65",
3
+ "version": "2.1.67",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",