beesoft-components 0.10.1 → 0.10.2

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.1",
3
+ "version": "0.10.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "author": {
@@ -34,8 +34,8 @@
34
34
  "chromatic": "chromatic --project-token $CHROMATIC_PROJECT_TOKEN"
35
35
  },
36
36
  "dependencies": {
37
- "@beesoft/common": "^0.1.13",
38
- "@beesoft/headless-ui": "^0.0.9",
37
+ "@beesoft/common": "^0.1.17",
38
+ "@beesoft/headless-ui": "^0.0.18",
39
39
  "@preact/signals": "^1.2.3",
40
40
  "@react-hook/media-query": "^1.1.1",
41
41
  "classnames": "^2.3.2",
package/types/index.d.ts CHANGED
@@ -14,6 +14,7 @@ import { Locale } from 'date-fns';
14
14
  import { MakeRequired } from '@beesoft/common';
15
15
  import { MemoExoticComponent } from 'react';
16
16
  import { PropsWithChildren } from 'react';
17
+ import { RadioChangeEvent } from '@beesoft/headless-ui';
17
18
  import { ReactElement } from 'react';
18
19
  import { ReactNode } from 'react';
19
20
  import { ReactPortal } from 'react';
@@ -404,7 +405,7 @@ declare interface GroupButtonProps extends MakeRequired<FormInputControlData<Typ
404
405
 
405
406
  export declare interface GroupChangeEvent {
406
407
  name: string;
407
- value: TypeOrArray<unknown>;
408
+ value?: TypeOrArray<unknown>;
408
409
  }
409
410
 
410
411
  declare interface IncrementConstraint {
@@ -516,16 +517,12 @@ declare interface OverlayPanelProps {
516
517
 
517
518
  export declare const RadioButton: MemoExoticComponent<({ name, label, value, data, textField, valueField, readOnly, labelLocation, orientation, className, useAnimation, onChange, }: RadioButtonProps) => JSX_2.Element>;
518
519
 
519
- declare interface RadioButtonProps extends MakeRequired<FormInputControlData<string, RadioChangeEvent>, 'name'>, ComponentAnimationProps {
520
+ declare interface RadioButtonProps extends MakeRequired<FormInputControlData<string | number, RadioChangeEvent>, 'name'>, ComponentAnimationProps {
520
521
  labelLocation?: SelectionLabelLocation;
521
522
  orientation?: FormGroupItemOrientation;
522
523
  }
523
524
 
524
- export declare interface RadioChangeEvent {
525
- name: string;
526
- value: unknown;
527
- originalEvent?: ChangeEvent<HTMLInputElement>;
528
- }
525
+ export { RadioChangeEvent }
529
526
 
530
527
  export declare enum SelectionLabelLocation {
531
528
  Right = 0,
@@ -542,7 +539,7 @@ declare interface TimeConstraints {
542
539
 
543
540
  export declare const Toggle: MemoExoticComponent<({ name, label, value, checked, readOnly, useAnimation, className, onChange, }: ToggleProps) => JSX_2.Element>;
544
541
 
545
- declare interface ToggleProps extends FormInputControl<string | number, CheckboxChangeEvent_2>, ComponentAnimationProps {
542
+ declare interface ToggleProps extends MakeRequired<FormInputControl<string | number, CheckboxChangeEvent_2>, 'name'>, ComponentAnimationProps {
546
543
  checked?: boolean;
547
544
  }
548
545