@onesy/ui-react 1.0.50 → 1.0.51

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.
Files changed (46) hide show
  1. package/Accordion/Accordion.d.ts +1 -1
  2. package/AutoComplete/AutoComplete.d.ts +1 -1
  3. package/Buttons/Buttons.d.ts +1 -1
  4. package/Calendar/Calendar.d.ts +1 -1
  5. package/CalendarMenu/CalendarMenu.d.ts +1 -1
  6. package/CalendarMonth/CalendarMonth.d.ts +1 -1
  7. package/Carousel/Carousel.d.ts +1 -1
  8. package/Chart/Chart.d.ts +2 -1
  9. package/Checkbox/Checkbox.d.ts +1 -1
  10. package/Chips/Chips.js +1 -1
  11. package/Clock/Clock.d.ts +1 -1
  12. package/DatePicker/DatePicker.d.ts +1 -1
  13. package/DateTimePicker/DateTimePicker.d.ts +1 -1
  14. package/DragAndDropList/DragAndDropList.d.ts +1 -1
  15. package/Drawing/Drawing.d.ts +1 -1
  16. package/Emojis/Emojis.d.ts +1 -1
  17. package/FileChoose/FileChoose.d.ts +1 -1
  18. package/HTMLCanvas/HTMLCanvas.d.ts +1 -1
  19. package/ImageEdit/ImageEdit.d.ts +1 -1
  20. package/Label/Label.d.ts +1 -1
  21. package/Labels/Labels.d.ts +1 -1
  22. package/List/List.d.ts +1 -0
  23. package/MenuDesktop/MenuDesktop.d.ts +1 -1
  24. package/NavigationBar/NavigationBar.d.ts +1 -1
  25. package/NavigationRail/NavigationRail.d.ts +1 -1
  26. package/Pagination/Pagination.d.ts +1 -1
  27. package/Radio/Radio.d.ts +1 -1
  28. package/Radios/Radios.d.ts +1 -1
  29. package/Rating/Rating.d.ts +1 -1
  30. package/Reveal/Reveal.d.ts +1 -1
  31. package/RichTextEditor/RichTextEditor.d.ts +1 -1
  32. package/Slider/Slider.d.ts +1 -1
  33. package/SpeechToText/SpeechToText.d.ts +1 -1
  34. package/Switch/Switch.d.ts +1 -1
  35. package/Tab/Tab.d.ts +1 -1
  36. package/TablePagination/TablePagination.d.ts +1 -1
  37. package/Tabs/Tabs.d.ts +1 -1
  38. package/TextField/TextField.d.ts +1 -1
  39. package/TimePicker/TimePicker.d.ts +1 -1
  40. package/Tree/Tree.d.ts +1 -1
  41. package/ViewSplit/ViewSplit.d.ts +1 -1
  42. package/Whiteboard/Whiteboard.d.ts +1 -1
  43. package/WindowSplit/WindowSplit.d.ts +1 -1
  44. package/esm/index.js +1 -1
  45. package/package.json +1 -1
  46. package/types.d.ts +7 -0
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
3
  import { IElement, IElementReference, IElevation, IPropsAny } from '../types';
4
4
  declare type TPadding = 'start' | 'end' | 'both' | 'none';
5
- export declare type IAccordion = ISurface & {
5
+ export declare type IAccordion = Omit<ISurface, 'onChange'> & {
6
6
  elevation?: IElevation;
7
7
  primary?: IElement;
8
8
  secondary?: IElement;
@@ -7,7 +7,7 @@ export declare type TAutoCompleteOption = {
7
7
  version?: 'text' | 'subheader';
8
8
  noOptions?: boolean;
9
9
  };
10
- export declare type IAutoComplete = ITextField & {
10
+ export declare type IAutoComplete = Omit<ITextField, 'onChange'> & {
11
11
  value?: any;
12
12
  valueDefault?: any;
13
13
  onChange?: (value: any) => any;
@@ -3,7 +3,7 @@ import { ILine } from '../Line/Line';
3
3
  import { IColor, IValueBreakpoints, IVersion } from '../types';
4
4
  export declare const IconMaterialDone: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
5
5
  export declare const IconDoneAnimated: (props: any) => import("react/jsx-runtime").JSX.Element;
6
- export declare type IButtons = ILine & {
6
+ export declare type IButtons = Omit<ILine, 'onChange'> & {
7
7
  version?: IVersion;
8
8
  colorSelected?: IColor;
9
9
  value?: any;
@@ -7,7 +7,7 @@ export declare type TGetOnesyDates = (value: TCalendarMonthValue, calendar: TCal
7
7
  value: OnesyDate;
8
8
  }>;
9
9
  export declare type TCalendarUnit = 'day' | 'month' | 'year';
10
- export declare type ICalendar = Omit<ISurface, 'version'> & {
10
+ export declare type ICalendar = Omit<ISurface, 'version' | 'onChange'> & {
11
11
  version?: 'regular' | 'year';
12
12
  value?: TCalendarMonthValue;
13
13
  valueDefault?: TCalendarMonthValue;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IMenu } from '../Menu/Menu';
3
- export declare type ICalendarMenu = IMenu & {
3
+ export declare type ICalendarMenu = Omit<IMenu, 'onChange'> & {
4
4
  value?: any;
5
5
  onChange?: (...args: any) => any;
6
6
  dateProperty?: string;
@@ -17,7 +17,7 @@ export declare type ICalendarMonthValuesValue = {
17
17
  move: 'previous' | 'next';
18
18
  };
19
19
  export declare type TCalendarMonthValues = [ICalendarMonthValuesValue, ICalendarMonthValuesValue];
20
- export declare type ICalenarDays = ILine & {
20
+ export declare type ICalenarDays = Omit<ILine, 'onChange'> & {
21
21
  value?: TCalendarMonthValue;
22
22
  valueDefault?: TCalendarMonthValue;
23
23
  onChange?: (value: TCalendarMonthValue) => any;
@@ -12,7 +12,7 @@ export declare type TCarouselItem = string | null | IElement | {
12
12
  element: IElement;
13
13
  };
14
14
  export declare type TCarouseOnUpdate = (to: string | number, values: TCarouselItem[]) => any;
15
- export declare type ICarousel = Omit<ISurface, 'version'> & {
15
+ export declare type ICarousel = Omit<ISurface, 'version' | 'onChange'> & {
16
16
  version?: 'regular' | 'transition' | Partial<Record<IValueBreakpoints, 'regular' | 'transition'>>;
17
17
  valueDefault?: ICarouselValue;
18
18
  value?: ICarouselValue;
package/Chart/Chart.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TColorValues } from '@onesy/style-react';
3
3
  import { ISurface } from '../Surface/Surface';
4
- import { IStyle, IElementAny, IElement, IValueBreakpoints, IPropsAny } from '../types';
4
+ import { IStyle, IElementAny, IElement, IValueBreakpoints, IPropsAny, IColor } from '../types';
5
5
  export declare type IChartValueValues = Array<any>;
6
6
  export declare type IItemValue = {
7
7
  value: number;
@@ -11,6 +11,7 @@ export declare type IItemValue = {
11
11
  props?: any;
12
12
  };
13
13
  export declare type IChartValue = {
14
+ color?: IColor;
14
15
  tone?: TColorValues;
15
16
  name?: string;
16
17
  style?: IStyle;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IIconButton } from '../IconButton/IconButton';
3
3
  import { IRef, IColor } from '../types';
4
- export declare type ICheckbox = IIconButton & {
4
+ export declare type ICheckbox = Omit<IIconButton, 'onChange'> & {
5
5
  inputRef?: IRef;
6
6
  colorIndeterminate?: IColor;
7
7
  colorUnchecked?: IColor;
package/Chips/Chips.js CHANGED
@@ -83,7 +83,7 @@ const Chips = react_1.default.forwardRef((props_, ref) => {
83
83
  AdditionalChipProps.TypeProps = {};
84
84
  AdditionalChipProps.TypeProps.size = '0.44em';
85
85
  children.push(AdditionalChip ||
86
- (0, jsx_runtime_1.jsx)(Chip, Object.assign({ color: 'default' }, other, AdditionalChipProps, { onClick: (moreShowAll ? onClickMore : undefined) }, { children: value })));
86
+ (0, jsx_runtime_1.jsx)(Chip, Object.assign({ color: 'default' }, other, AdditionalChipProps, { onClick: moreShowAll ? onClickMore : undefined }, { children: value })));
87
87
  }
88
88
  }
89
89
  return ((0, jsx_runtime_1.jsx)(Line, Object.assign({ ref: ref, gap: gap, justify: justify, align: align, direction: direction, wrap: wrap, Component: Component, className: (0, style_react_1.classNames)([
package/Clock/Clock.d.ts CHANGED
@@ -5,7 +5,7 @@ export declare type TClockValue = OnesyDate;
5
5
  export declare type TClockFormat = '12' | '24';
6
6
  export declare type TClockUnit = 'hour' | 'minute' | 'second';
7
7
  export declare type TClockDayTime = 'am' | 'pm';
8
- export declare type IClock = IRoundMeter & {
8
+ export declare type IClock = Omit<IRoundMeter, 'onChange'> & {
9
9
  value?: TClockValue;
10
10
  valueDefault?: TClockValue;
11
11
  onChange?: (value: TClockValue) => any;
@@ -6,7 +6,7 @@ import { TCalendarMonthCalendar, TCalendarMonthValue } from '../CalendarMonth/Ca
6
6
  import { IValueBreakpoints, IElement, IElementReference, IPropsAny } from '../types';
7
7
  export declare const SEPARATOR_SYMBOL = "\u2013";
8
8
  export declare const SEPARATOR: string;
9
- export declare type IDatePicker = ILine & {
9
+ export declare type IDatePicker = Omit<ILine, 'onChange'> & {
10
10
  version?: 'auto' | 'mobile' | 'desktop';
11
11
  value?: TCalendarMonthValue;
12
12
  valueDefault?: TCalendarMonthValue;
@@ -6,7 +6,7 @@ import { TCalendarUnit } from '../Calendar/Calendar';
6
6
  import { TClockUnit } from '../Clock/Clock';
7
7
  import { IValueBreakpoints, IElementReference, IPropsAny } from '../types';
8
8
  export declare type TDateTimePicker = OnesyDate;
9
- export declare type IDateTimePicker = Omit<IAdvancedTextField, 'version'> & {
9
+ export declare type IDateTimePicker = Omit<IAdvancedTextField, 'version' | 'onChange'> & {
10
10
  version?: 'auto' | 'mobile' | 'desktop';
11
11
  value?: TCalendarMonthValue;
12
12
  valueDefault?: TCalendarMonthValue;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement } from '../types';
3
- export declare type IDragAndDropList = IBaseElement & {
3
+ export declare type IDragAndDropList = Omit<IBaseElement, 'onChange'> & {
4
4
  onChange?: (indexPrevious: number, indexNew: number) => any;
5
5
  items?: any[];
6
6
  image?: boolean;
@@ -6,7 +6,7 @@ export declare type TDrawingValue = Array<{
6
6
  stroke?: string;
7
7
  strokeWidth?: number;
8
8
  }>;
9
- export declare type IDrawing = ISurface & {
9
+ export declare type IDrawing = Omit<ISurface, 'onChange' | 'onMouseDown'> & {
10
10
  render?: (element: string, props: IPropsAny, value: TDrawingValue) => IElement;
11
11
  svgRef?: IRef;
12
12
  updates?: boolean;
@@ -10,7 +10,7 @@ export declare type IEmoji = {
10
10
  unicode: string;
11
11
  category: string;
12
12
  };
13
- export declare type IEmojis = IMenu & {
13
+ export declare type IEmojis = Omit<IMenu, 'onSelect'> & {
14
14
  emojis?: IEmoji[];
15
15
  categories?: IEmojiCategory[];
16
16
  selected?: string[];
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IRef, IElementReference, IPropsAny } from '../types';
4
4
  export declare type TFileChooseValue = File | Array<File>;
5
- export declare type IFileChoose = ILine & {
5
+ export declare type IFileChoose = Omit<ILine, 'onClick' | 'onChange'> & {
6
6
  inputRef?: IRef;
7
7
  max?: number;
8
8
  allowedTypes?: Array<string>;
@@ -13,7 +13,7 @@ export declare type IHTMLCanvasOnChangeValue = {
13
13
  height: number;
14
14
  };
15
15
  };
16
- export declare type IHTMLCanvas = IBaseElement & {
16
+ export declare type IHTMLCanvas = Omit<IBaseElement, 'onWheel' | 'onMouseDown' | 'onTouchStart' | 'onChange'> & {
17
17
  minZoom?: number;
18
18
  maxZoom?: number;
19
19
  showGuidelinesDefault?: boolean;
@@ -10,7 +10,7 @@ export declare type TImageEditFilter = {
10
10
  renderIconButton: (value: string, selected: boolean, onChangeFilter: TMethod) => IElement;
11
11
  renderSlider: (value: string, filterValuesCopy: any, onFilterSliderChange: TMethod) => IElement;
12
12
  };
13
- export declare type IImageEdit = ILine & {
13
+ export declare type IImageEdit = Omit<ILine, 'onChange'> & {
14
14
  image?: string | HTMLCanvasElement;
15
15
  name?: string;
16
16
  type?: string;
package/Label/Label.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IColor, IVersion, IElement, IPropsAny } from '../types';
4
- export declare type ILabel = ILine & {
4
+ export declare type ILabel = Omit<ILine, 'onChange'> & {
5
5
  colorUnchecked?: IColor;
6
6
  version?: IVersion;
7
7
  position?: 'start' | 'top' | 'bottom' | 'end';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IColor, IVersion, IElement, IPropsAny } from '../types';
4
- export declare type ILabels = ILine & {
4
+ export declare type ILabels = Omit<ILine, 'onChange'> & {
5
5
  colorUnchecked?: IColor;
6
6
  version?: IVersion;
7
7
  name?: IElement;
package/List/List.d.ts CHANGED
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
3
  import { IElement } from '../types';
4
4
  export declare type IList = ISurface & {
5
+ gap?: any;
5
6
  menu?: IElement;
6
7
  menuOpen?: boolean;
7
8
  onMenuDesktopClose?: any;
@@ -9,7 +9,7 @@ export declare type TMenuDesktopItem = {
9
9
  name?: IElement;
10
10
  menu?: IElement;
11
11
  };
12
- export declare type IMenuDesktop = ILine & {
12
+ export declare type IMenuDesktop = Omit<ILine, 'onChange'> & {
13
13
  version?: IVersion;
14
14
  items?: Array<TMenuDesktopItem>;
15
15
  valueDefault?: TMenuDesktopValue;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
3
  import { INavigationItemVersion } from '../NavigationItem/NavigationItem';
4
4
  export declare type TNavigationBarValue = Array<string>;
5
- export declare type INavigationBar = Omit<ISurface, 'version'> & {
5
+ export declare type INavigationBar = Omit<ISurface, 'version' | 'onChange'> & {
6
6
  value?: TNavigationBarValue;
7
7
  valueDefault?: TNavigationBarValue;
8
8
  onChange?: (value: TNavigationBarValue) => any;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
3
  import { INavigationItemVersion } from '../NavigationItem/NavigationItem';
4
4
  import { IElement, IPropsAny } from '../types';
5
- export declare type INavigationRail = Omit<ISurface, 'version'> & {
5
+ export declare type INavigationRail = Omit<ISurface, 'version' | 'onChange'> & {
6
6
  value?: any;
7
7
  valueDefault?: any;
8
8
  onChange?: (value: any) => any;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IVersion, IElement, IElementReference } from '../types';
4
- export declare type IPagination = ILine & {
4
+ export declare type IPagination = Omit<ILine, 'onChange'> & {
5
5
  version?: IVersion;
6
6
  elevation?: boolean;
7
7
  value?: number;
package/Radio/Radio.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IIconButton } from '../IconButton/IconButton';
3
3
  import { IRef, IColor } from '../types';
4
- export declare type IRadio = IIconButton & {
4
+ export declare type IRadio = Omit<IIconButton, 'onChange'> & {
5
5
  inputRef?: IRef;
6
6
  colorUnchecked?: IColor;
7
7
  valueDefault?: boolean;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IColor, IVersion, IElement, IPropsAny } from '../types';
4
- export declare type IRadios = ILine & {
4
+ export declare type IRadios = Omit<ILine, 'onChange'> & {
5
5
  colorUnchecked?: IColor;
6
6
  version?: IVersion;
7
7
  name?: IElement;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement, IColor, IElement } from '../types';
3
- export declare type IRating = IBaseElement & {
3
+ export declare type IRating = Omit<IBaseElement, 'onChange'> & {
4
4
  colorInactive?: IColor;
5
5
  value?: number;
6
6
  valueDefault?: number;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IFade } from '../Fade/Fade';
3
3
  import { IUseVisible } from '../useVisible/useVisible';
4
- export declare type IReveal = IFade & {
4
+ export declare type IReveal = Omit<IFade, 'onChange'> & {
5
5
  inDefault?: boolean;
6
6
  offset?: number;
7
7
  offsetReveal?: number;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IVersion, IPropsAny, IElement, IElementReference } from '../types';
4
- export declare type IRichTextEditor = ILine & {
4
+ export declare type IRichTextEditor = Omit<ILine, 'onChange'> & {
5
5
  version?: IVersion;
6
6
  value?: string;
7
7
  onChange?: (event: React.ChangeEvent<any>) => any;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement, IElement, IPropsAny, ISizeAny } from '../types';
3
3
  export declare type TSliderValue = number | Array<number>;
4
- export declare type ISlider = IBaseElement & {
4
+ export declare type ISlider = Omit<IBaseElement, 'onChange'> & {
5
5
  value?: TSliderValue;
6
6
  valueDefault?: TSliderValue;
7
7
  onChange?: (value: TSliderValue) => any;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IElementReference, IPropsAny } from '../types';
4
- export declare type ISpeechToText = ILine & {
4
+ export declare type ISpeechToText = Omit<ILine, 'onChange'> & {
5
5
  SpeechRecognition?: any;
6
6
  continuous?: boolean;
7
7
  grammars?: any;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement, IRef, IElement } from '../types';
3
- export declare type ISwitch = IBaseElement & {
3
+ export declare type ISwitch = Omit<IBaseElement, 'onChange'> & {
4
4
  inputRef?: IRef;
5
5
  version?: any;
6
6
  valueDefault?: boolean;
package/Tab/Tab.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
3
  import { IElement, IPropsAny } from '../types';
4
- export declare type ITab = Omit<ISurface, 'version'> & {
4
+ export declare type ITab = Omit<ISurface, 'version' | 'onChange'> & {
5
5
  version?: 'primary' | 'secondary';
6
6
  size?: 'small' | 'regular' | 'large';
7
7
  value?: any;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IElementReference, IVersion } from '../types';
4
- export declare type ITableRow = ILine & {
4
+ export declare type ITableRow = Omit<ILine, 'onChange'> & {
5
5
  version?: IVersion;
6
6
  elevation?: boolean;
7
7
  page?: number;
package/Tabs/Tabs.d.ts CHANGED
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
3
  import { TLineAlign, TLineJustify } from '../Line/Line';
4
4
  import { IElementReference, IPropsAny } from '../types';
5
- export declare type ITabs = Omit<ISurface, 'version'> & {
5
+ export declare type ITabs = Omit<ISurface, 'version' | 'onChange'> & {
6
6
  version?: 'primary' | 'secondary';
7
7
  value?: any;
8
8
  valueDefault?: any;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import OnesySubscription from '@onesy/subscription';
3
3
  import { IBaseElement, IVersion, IRef, IElement, IValueBreakpoints, IPropsAny, IElementReference } from '../types';
4
- export declare type ITextField = IBaseElement & {
4
+ export declare type ITextField = Omit<IBaseElement, 'onChange'> & {
5
5
  version?: IVersion;
6
6
  rootRef?: IRef;
7
7
  valueDefault?: string | number;
@@ -5,7 +5,7 @@ import { IAdvancedTextField } from '../AdvancedTextField/AdvancedTextField';
5
5
  import { IValueBreakpoints, IElementReference, IPropsAny } from '../types';
6
6
  export declare type TTimePickerValue = OnesyDate | [OnesyDate, OnesyDate];
7
7
  export declare type TTimePickerSelecting = TClockUnit | [TClockUnit, TClockUnit];
8
- export declare type ITimePicker = Omit<IAdvancedTextField, 'version'> & {
8
+ export declare type ITimePicker = Omit<IAdvancedTextField, 'version' | 'onChange'> & {
9
9
  version?: 'auto' | 'mobile' | 'desktop';
10
10
  value?: TTimePickerValue;
11
11
  valueDefault?: TTimePickerValue;
package/Tree/Tree.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement, IElement, IPropsAny, IElementReference, IVersion } from '../types';
3
- export declare type ITree = IBaseElement & {
3
+ export declare type ITree = Omit<IBaseElement, 'onChange'> & {
4
4
  open?: boolean;
5
5
  openDefault?: boolean;
6
6
  version?: IVersion;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IElement, IPropsAny } from '../types';
4
- export declare type IViewSplit = ILine & {
4
+ export declare type IViewSplit = Omit<ILine, 'onChange'> & {
5
5
  valueDefault?: number;
6
6
  value?: number;
7
7
  onChange?: (value: number) => any;
@@ -6,7 +6,7 @@ export declare type IWhiteboardAction = {
6
6
  };
7
7
  export declare type IWhiteboardTool = 'pen' | 'eraser' | 'pan' | 'zoom' | 'select' | 'circle' | 'rectangle' | 'triangle' | 'line' | 'line-arrow' | 'text' | 'image';
8
8
  export declare type IWhiteboardValue = IWhiteboardItem[];
9
- export declare type IWhiteboard = IBaseElement & {
9
+ export declare type IWhiteboard = Omit<IBaseElement, 'onChange'> & {
10
10
  valueDefault?: IWhiteboardValue;
11
11
  onChange?: (value: IWhiteboardValue) => any;
12
12
  minZoom?: number;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IElement, IPropsAny } from '../types';
4
- export declare type IWindowSplit = ILine & {
4
+ export declare type IWindowSplit = Omit<ILine, 'onChange'> & {
5
5
  valueDefault?: number;
6
6
  value?: number;
7
7
  onChange?: (value: number) => any;
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.50
1
+ /** @license UiReact v1.0.51
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesy/ui-react",
3
- "version": "1.0.50",
3
+ "version": "1.0.51",
4
4
  "description": "UI for React",
5
5
  "repository": "https://github.com/onesy-me/onesy.git",
6
6
  "author": "Lazar <lazareric2@gmail.com>",
package/types.d.ts CHANGED
@@ -27,6 +27,13 @@ export declare type IBaseElement<P = {}, T = HTMLElement> = React.HTMLAttributes
27
27
  tonal?: ITonal;
28
28
  color?: IColor;
29
29
  size?: ISizeAny;
30
+ onClick?: (...args: any[]) => any;
31
+ onChange?: (...args: any[]) => any;
32
+ onInput?: (...args: any[]) => any;
33
+ onKeyDown?: (...args: any[]) => any;
34
+ onMouseEnter?: (...args: any[]) => any;
35
+ onMouseLeave?: (...args: any[]) => any;
36
+ onDoubleClick?: (...args: any[]) => any;
30
37
  readOnly?: boolean;
31
38
  disabled?: boolean;
32
39
  children?: any;