@onesy/ui-react 1.0.49 → 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.
- package/Accordion/Accordion.d.ts +1 -1
- package/AutoComplete/AutoComplete.d.ts +1 -1
- package/Buttons/Buttons.d.ts +1 -1
- package/Calendar/Calendar.d.ts +1 -1
- package/CalendarMenu/CalendarMenu.d.ts +1 -1
- package/CalendarMonth/CalendarMonth.d.ts +1 -1
- package/Carousel/Carousel.d.ts +1 -1
- package/Chart/Chart.d.ts +2 -1
- package/Checkbox/Checkbox.d.ts +1 -1
- package/Chips/Chips.js +1 -1
- package/Clock/Clock.d.ts +1 -1
- package/DatePicker/DatePicker.d.ts +1 -1
- package/DateTimePicker/DateTimePicker.d.ts +1 -1
- package/DragAndDropList/DragAndDropList.d.ts +1 -1
- package/Drawing/Drawing.d.ts +1 -1
- package/Emojis/Emojis.d.ts +1 -1
- package/FileChoose/FileChoose.d.ts +1 -1
- package/HTMLCanvas/HTMLCanvas.d.ts +1 -1
- package/Icon/Icon.d.ts +3 -3
- package/ImageEdit/ImageEdit.d.ts +1 -1
- package/Label/Label.d.ts +1 -1
- package/Labels/Labels.d.ts +1 -1
- package/List/List.d.ts +1 -0
- package/MenuDesktop/MenuDesktop.d.ts +1 -1
- package/NavigationBar/NavigationBar.d.ts +1 -1
- package/NavigationRail/NavigationRail.d.ts +1 -1
- package/Pagination/Pagination.d.ts +1 -1
- package/Radio/Radio.d.ts +1 -1
- package/Radios/Radios.d.ts +1 -1
- package/Rating/Rating.d.ts +1 -1
- package/Reveal/Reveal.d.ts +1 -1
- package/RichTextEditor/RichTextEditor.d.ts +1 -1
- package/Slider/Slider.d.ts +1 -1
- package/SpeechToText/SpeechToText.d.ts +1 -1
- package/Switch/Switch.d.ts +1 -1
- package/Tab/Tab.d.ts +1 -1
- package/TablePagination/TablePagination.d.ts +1 -1
- package/Tabs/Tabs.d.ts +1 -1
- package/TextField/TextField.d.ts +1 -1
- package/TimePicker/TimePicker.d.ts +1 -1
- package/Tree/Tree.d.ts +1 -1
- package/ViewSplit/ViewSplit.d.ts +1 -1
- package/Whiteboard/Whiteboard.d.ts +1 -1
- package/WindowSplit/WindowSplit.d.ts +1 -1
- package/esm/index.js +1 -1
- package/package.json +1 -1
- package/types.d.ts +9 -0
package/Accordion/Accordion.d.ts
CHANGED
@@ -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;
|
package/Buttons/Buttons.d.ts
CHANGED
@@ -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;
|
package/Calendar/Calendar.d.ts
CHANGED
@@ -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;
|
@@ -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;
|
package/Carousel/Carousel.d.ts
CHANGED
@@ -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;
|
package/Checkbox/Checkbox.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 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:
|
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;
|
package/Drawing/Drawing.d.ts
CHANGED
@@ -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;
|
package/Emojis/Emojis.d.ts
CHANGED
@@ -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;
|
package/Icon/Icon.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { TTone } from '@onesy/style-react';
|
3
|
-
import { IBaseElement } from '../types';
|
3
|
+
import { IBaseElement, ISizeExtendedAny } from '../types';
|
4
4
|
export declare const rtl_icons: string[];
|
5
|
-
export declare type IIcon = IBaseElement & {
|
6
|
-
size?:
|
5
|
+
export declare type IIcon = Omit<IBaseElement, 'size'> & {
|
6
|
+
size?: ISizeExtendedAny;
|
7
7
|
tone?: TTone;
|
8
8
|
viewBox?: string;
|
9
9
|
name?: string;
|
package/ImageEdit/ImageEdit.d.ts
CHANGED
@@ -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';
|
package/Labels/Labels.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 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
@@ -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;
|
package/Radios/Radios.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 IRadios = ILine & {
|
4
|
+
export declare type IRadios = Omit<ILine, 'onChange'> & {
|
5
5
|
colorUnchecked?: IColor;
|
6
6
|
version?: IVersion;
|
7
7
|
name?: IElement;
|
package/Rating/Rating.d.ts
CHANGED
@@ -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;
|
package/Reveal/Reveal.d.ts
CHANGED
@@ -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;
|
package/Slider/Slider.d.ts
CHANGED
@@ -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;
|
package/Switch/Switch.d.ts
CHANGED
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;
|
package/TextField/TextField.d.ts
CHANGED
@@ -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;
|
package/ViewSplit/ViewSplit.d.ts
CHANGED
@@ -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
package/package.json
CHANGED
package/types.d.ts
CHANGED
@@ -11,7 +11,9 @@ declare type Color = RGB | RGBA | HSL | HSLA | HEX;
|
|
11
11
|
export declare type IColor = 'default' | 'themed' | 'inverted' | 'inherit' | TPaletteVersion | Color;
|
12
12
|
export declare type IVersion = 'filled' | 'outlined' | 'outlined-without-background' | 'text';
|
13
13
|
export declare type ISize = 'small' | 'regular' | 'large';
|
14
|
+
export declare type ISizeExtended = 'very small' | 'small' | 'regular' | 'medium' | 'large' | 'very large';
|
14
15
|
export declare type ISizeAny = ISize | number;
|
16
|
+
export declare type ISizeExtendedAny = ISizeExtended | number;
|
15
17
|
export declare type IElevation = 0 | 1 | 2 | 3 | 4 | 6 | 8 | 9 | 12 | 16 | 24;
|
16
18
|
export declare type IElementReference = string | React.FC<any> | (React.ForwardRefExoticComponent<any>);
|
17
19
|
export declare type IElement = React.ReactNode | React.ReactNode[] | React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
@@ -25,6 +27,13 @@ export declare type IBaseElement<P = {}, T = HTMLElement> = React.HTMLAttributes
|
|
25
27
|
tonal?: ITonal;
|
26
28
|
color?: IColor;
|
27
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;
|
28
37
|
readOnly?: boolean;
|
29
38
|
disabled?: boolean;
|
30
39
|
children?: any;
|