beesoft-components 0.10.2 → 0.10.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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beesoft-components",
3
- "version": "0.10.2",
3
+ "version": "0.10.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "author": {
@@ -35,17 +35,18 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@beesoft/common": "^0.1.17",
38
- "@beesoft/headless-ui": "^0.0.18",
38
+ "@beesoft/headless-ui": "^0.0.19",
39
39
  "@preact/signals": "^1.2.3",
40
40
  "@react-hook/media-query": "^1.1.1",
41
- "classnames": "^2.3.2",
42
41
  "date-fns": "^3.3.1",
42
+ "classnames": "^2.3.2",
43
43
  "dot-object": "^2.1.4",
44
44
  "lodash": "^4.17.21",
45
45
  "react-transition-group": "^4.4.5",
46
46
  "uuid": "^9.0.1"
47
47
  },
48
48
  "devDependencies": {
49
+ "@beesoft/locale": "^0.0.3",
49
50
  "@chromatic-com/storybook": "^4.0.0",
50
51
  "@eslint/js": "^9.29.0",
51
52
  "@release-it/bumper": "^7.0.5",
@@ -94,6 +95,7 @@
94
95
  "vite-tsconfig-paths": "^5.1.4"
95
96
  },
96
97
  "peerDependencies": {
98
+ "@beesoft/locale": "^0.0.3",
97
99
  "react": "^18.3.0",
98
100
  "react-dom": "^18.3.0"
99
101
  },
package/types/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { ButtonHTMLAttributes } from 'react';
2
- import { ChangeEvent } from 'react';
3
- import { CheckboxChangeEvent as CheckboxChangeEvent_2 } from '@beesoft/headless-ui';
2
+ import { CheckboxChangeEvent } from '@beesoft/headless-ui';
4
3
  import { CheckboxProps as CheckboxProps_2 } from '@beesoft/headless-ui';
5
4
  import { ComponentAnimationProps } from '@beesoft/headless-ui';
6
5
  import { default as default_2 } from 'react';
@@ -19,7 +18,6 @@ import { ReactElement } from 'react';
19
18
  import { ReactNode } from 'react';
20
19
  import { ReactPortal } from 'react';
21
20
  import { RefAttributes } from 'react';
22
- import { ReplacePropertyType } from '@beesoft/common';
23
21
  import { TypeOrArray } from '@beesoft/common';
24
22
 
25
23
  export declare function applyBeeSoftTheme(theme: Record<string, unknown>): void;
@@ -90,12 +88,7 @@ declare enum CalendarSelectionMode {
90
88
 
91
89
  export declare const Checkbox: MemoExoticComponent<ForwardRefExoticComponent<CheckboxProps & RefAttributes<CheckboxRef>>>;
92
90
 
93
- export declare interface CheckboxChangeEvent {
94
- name?: string;
95
- value: unknown;
96
- checked: boolean;
97
- originalEvent?: ChangeEvent<HTMLInputElement>;
98
- }
91
+ export { CheckboxChangeEvent }
99
92
 
100
93
  export declare const CheckboxGroup: MemoExoticComponent<({ name, label, value, data, textField, valueField, readOnly, orientation, className, onChange, }: CheckboxGroupProps) => JSX_2.Element>;
101
94
 
@@ -103,7 +96,7 @@ declare interface CheckboxGroupProps extends MakeRequired<FormInputControlData<A
103
96
  orientation?: FormGroupItemOrientation;
104
97
  }
105
98
 
106
- declare interface CheckboxProps extends ReplacePropertyType<CheckboxProps_2, 'onChange', (value?: CheckboxChangeEvent) => void>, ComponentAnimationProps {
99
+ declare interface CheckboxProps extends CheckboxProps_2, ComponentAnimationProps {
107
100
  labelLocation?: SelectionLabelLocation;
108
101
  }
109
102
 
@@ -539,7 +532,7 @@ declare interface TimeConstraints {
539
532
 
540
533
  export declare const Toggle: MemoExoticComponent<({ name, label, value, checked, readOnly, useAnimation, className, onChange, }: ToggleProps) => JSX_2.Element>;
541
534
 
542
- declare interface ToggleProps extends MakeRequired<FormInputControl<string | number, CheckboxChangeEvent_2>, 'name'>, ComponentAnimationProps {
535
+ declare interface ToggleProps extends MakeRequired<FormInputControl<string | number, CheckboxChangeEvent>, 'name'>, ComponentAnimationProps {
543
536
  checked?: boolean;
544
537
  }
545
538