beesoft-components 0.5.2 → 0.5.3

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beesoft-components",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "author": {
package/types/index.d.ts CHANGED
@@ -8,6 +8,7 @@ import { ReactElement } from 'react';
8
8
  import { ReactNode } from 'react';
9
9
  import { ReactPortal } from 'react';
10
10
  import { RefAttributes } from 'react';
11
+ import { SyntheticEvent } from 'react';
11
12
 
12
13
  export declare function applyBeeSoftTheme(theme: Record<string, unknown>): void;
13
14
 
@@ -72,6 +73,30 @@ declare enum CalendarSelectionMode {
72
73
  Range = 1
73
74
  }
74
75
 
76
+ export declare const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<CheckboxRef>>;
77
+
78
+ declare interface CheckboxChangeEvent {
79
+ value: unknown;
80
+ checked: boolean;
81
+ partial: boolean;
82
+ originalEvent?: SyntheticEvent<HTMLInputElement, Event>;
83
+ }
84
+
85
+ export declare enum CheckboxLabelLocation {
86
+ Right = 0,
87
+ Left = 1
88
+ }
89
+
90
+ declare interface CheckboxProps extends FormInputControl<unknown, CheckboxChangeEvent> {
91
+ checked?: boolean;
92
+ partial?: boolean;
93
+ labelLocation?: CheckboxLabelLocation;
94
+ }
95
+
96
+ export declare interface CheckboxRef {
97
+ setPartiallyChecked: (partiallyChecked: boolean) => void;
98
+ }
99
+
75
100
  export declare const ContentEditableInput: React_2.ForwardRefExoticComponent<ContentEditableInputProps & React_2.RefAttributes<ContentEditableInputRef>>;
76
101
 
77
102
  declare interface ContentEditableInputProps extends FormInputControl<string> {