beesoft-components 0.9.2 → 0.9.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.
- package/dist/index.es.js +1679 -1676
- package/dist/index.es.js.gz +0 -0
- package/dist/index.umd.js +15 -15
- package/dist/index.umd.js.gz +0 -0
- package/package.json +2 -2
- package/types/index.d.ts +16 -8
package/dist/index.umd.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beesoft-components",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"chromatic": "chromatic --project-token $CHROMATIC_PROJECT_TOKEN"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@beesoft/common": "^0.1.
|
|
37
|
+
"@beesoft/common": "^0.1.9",
|
|
38
38
|
"@preact/signals": "^1.2.3",
|
|
39
39
|
"@react-hook/media-query": "^1.1.1",
|
|
40
40
|
"classnames": "^2.3.2",
|
package/types/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { ReactElement } from 'react';
|
|
|
14
14
|
import { ReactNode } from 'react';
|
|
15
15
|
import { ReactPortal } from 'react';
|
|
16
16
|
import { RefAttributes } from 'react';
|
|
17
|
+
import { ReplacePropertyType } from '@beesoft/common';
|
|
17
18
|
import { TypeOrArray } from '@beesoft/common';
|
|
18
19
|
|
|
19
20
|
export declare function applyBeeSoftTheme(theme: Record<string, unknown>): void;
|
|
@@ -82,7 +83,14 @@ declare enum CalendarSelectionMode {
|
|
|
82
83
|
Range = 1
|
|
83
84
|
}
|
|
84
85
|
|
|
85
|
-
export declare const Checkbox: MemoExoticComponent<ForwardRefExoticComponent<CheckboxProps & RefAttributes<
|
|
86
|
+
export declare const Checkbox: MemoExoticComponent<ForwardRefExoticComponent<CheckboxProps & RefAttributes<CheckboxRef>>>;
|
|
87
|
+
|
|
88
|
+
export declare interface CheckboxChangeEvent {
|
|
89
|
+
name?: string;
|
|
90
|
+
value: unknown;
|
|
91
|
+
checked: boolean;
|
|
92
|
+
originalEvent?: ChangeEvent<HTMLInputElement>;
|
|
93
|
+
}
|
|
86
94
|
|
|
87
95
|
export declare const CheckboxGroup: MemoExoticComponent<({ name, label, value, data, textField, valueField, readOnly, orientation, className, onChange, }: CheckboxGroupProps) => JSX_2.Element>;
|
|
88
96
|
|
|
@@ -90,10 +98,15 @@ declare interface CheckboxGroupProps extends MakeRequired<FormInputControlData<A
|
|
|
90
98
|
orientation?: FormGroupItemOrientation;
|
|
91
99
|
}
|
|
92
100
|
|
|
93
|
-
declare interface CheckboxProps extends HeadlessCheckboxProps, ComponentAnimationProps {
|
|
101
|
+
declare interface CheckboxProps extends ReplacePropertyType<HeadlessCheckboxProps, 'onChange', (value?: CheckboxChangeEvent) => void>, ComponentAnimationProps {
|
|
94
102
|
labelLocation?: SelectionLabelLocation;
|
|
95
103
|
}
|
|
96
104
|
|
|
105
|
+
export declare interface CheckboxRef {
|
|
106
|
+
setPartiallyChecked: (partiallyChecked: boolean) => void;
|
|
107
|
+
setChecked: (checked: boolean) => void;
|
|
108
|
+
}
|
|
109
|
+
|
|
97
110
|
declare interface ComponentAnimationProps {
|
|
98
111
|
useAnimation?: boolean;
|
|
99
112
|
}
|
|
@@ -398,7 +411,7 @@ export declare interface GroupChangeEvent {
|
|
|
398
411
|
value: TypeOrArray<unknown>;
|
|
399
412
|
}
|
|
400
413
|
|
|
401
|
-
|
|
414
|
+
declare interface HeadlessCheckboxChangeEvent {
|
|
402
415
|
name?: string;
|
|
403
416
|
value: unknown;
|
|
404
417
|
checked: boolean;
|
|
@@ -412,11 +425,6 @@ declare interface HeadlessCheckboxProps extends FormInputControl<unknown, Headle
|
|
|
412
425
|
children?: (props: HeadlessCheckboxRenderProps) => React_2.JSX.Element;
|
|
413
426
|
}
|
|
414
427
|
|
|
415
|
-
export declare interface HeadlessCheckboxRef {
|
|
416
|
-
setPartiallyChecked: (partiallyChecked: boolean) => void;
|
|
417
|
-
setChecked: (checked: boolean) => void;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
428
|
declare interface HeadlessCheckboxRenderProps {
|
|
421
429
|
checked: boolean;
|
|
422
430
|
partial: boolean;
|