@onesy/ui-react 1.0.47 → 1.0.48
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 +3 -6
- package/AdvancedTextField/AdvancedTextField.d.ts +2 -2
- package/Append/Append.d.ts +4 -4
- package/AreaChart/AreaChart.d.ts +2 -2
- package/AreaChartItem/AreaChartItem.d.ts +4 -2
- package/AudioPlayer/AudioPlayer.d.ts +5 -7
- package/AudioRecorder/AudioRecorder.d.ts +3 -5
- package/AutoComplete/AutoComplete.d.ts +2 -4
- package/AutoCompleteCountry/AutoCompleteCountry.d.ts +1 -2
- package/AutoCompleteCurrency/AutoCompleteCurrency.d.ts +1 -2
- package/AutoCompleteGooglePlaces/AutoCompleteGooglePlaces.d.ts +3 -2
- package/Avatar/Avatar.d.ts +2 -2
- package/AvatarGroup/AvatarGroup.d.ts +3 -7
- package/Backdrop/Backdrop.d.ts +2 -2
- package/Badge/Badge.d.ts +3 -5
- package/Banner/Banner.d.ts +6 -4
- package/BottomAppBar/BottomAppBar.d.ts +3 -4
- package/BottomSheet/BottomSheet.d.ts +1 -2
- package/Box/Box.d.ts +2 -2
- package/Breadcrumbs/Breadcrumbs.d.ts +4 -2
- package/BubbleChart/BubbleChart.d.ts +1 -2
- package/BubbleChartItem/BubbleChartItem.d.ts +2 -2
- package/Button/Button.d.ts +4 -5
- package/Buttons/Buttons.d.ts +3 -7
- package/Calendar/Calendar.d.ts +8 -8
- package/CalendarAvailability/CalendarAvailability.d.ts +5 -4
- package/CalendarMenu/CalendarMenu.d.ts +2 -2
- package/CalendarMonth/CalendarMonth.d.ts +5 -8
- package/CalendarViews/CalendarViews.d.ts +2 -2
- package/CalendarWeek/CalendarWeek.d.ts +2 -2
- package/Card/Card.d.ts +2 -3
- package/CardButton/CardButton.d.ts +2 -3
- package/CardFooter/CardFooter.d.ts +3 -5
- package/CardHeader/CardHeader.d.ts +3 -5
- package/CardImage/CardImage.d.ts +3 -5
- package/CardMain/CardMain.d.ts +3 -5
- package/Carousel/Carousel.d.ts +4 -4
- package/Chart/Chart.d.ts +8 -10
- package/Checkbox/Checkbox.d.ts +2 -2
- package/Chip/Chip.d.ts +2 -2
- package/Chips/Chips.d.ts +4 -2
- package/Chips/Chips.js +2 -2
- package/ClickListener/ClickListener.d.ts +3 -3
- package/Clock/Clock.d.ts +2 -8
- package/ColorTextField/ColorTextField.d.ts +2 -2
- package/ColumnChart/ColumnChart.d.ts +1 -2
- package/ColumnChartItem/ColumnChartItem.d.ts +4 -2
- package/Confirm/Confirm.d.ts +8 -8
- package/Container/Container.d.ts +2 -2
- package/CookieBanner/CookieBanner.d.ts +2 -2
- package/Countdown/Countdown.d.ts +2 -2
- package/DatePicker/DatePicker.d.ts +4 -8
- package/DateRangePicker/DateRangePicker.d.ts +1 -2
- package/DateTimePicker/DateTimePicker.d.ts +5 -7
- package/DateTimeRangePicker/DateTimeRangePicker.d.ts +1 -2
- package/Divider/Divider.d.ts +2 -2
- package/DonutChart/DonutChart.d.ts +1 -2
- package/DragAndDropList/DragAndDropList.d.ts +2 -2
- package/Drawing/Drawing.d.ts +2 -2
- package/DropZone/DropZone.d.ts +2 -2
- package/DropZone/DropZone.js +2 -1
- package/Emojis/Emojis.d.ts +6 -6
- package/Expand/Expand.d.ts +2 -2
- package/Fab/Fab.d.ts +1 -2
- package/Fade/Fade.d.ts +1 -2
- package/FileChoose/FileChoose.d.ts +3 -6
- package/Focus/Focus.d.ts +1 -2
- package/Form/Form.d.ts +3 -4
- package/FormRow/FormRow.d.ts +2 -2
- package/Forms/Forms.d.ts +2 -2
- package/Frame/Frame.d.ts +3 -3
- package/Grid/Grid.d.ts +5 -2
- package/Grid/Grid.js +2 -1
- package/Grow/Grow.d.ts +1 -2
- package/HTMLCanvas/HTMLCanvas.d.ts +6 -9
- package/IFrame/IFrame.d.ts +3 -2
- package/Icon/Icon.d.ts +3 -6
- package/IconButton/IconButton.d.ts +1 -2
- package/Image/Image.d.ts +5 -5
- package/Image/Image.js +2 -1
- package/ImageCrop/ImageCrop.d.ts +2 -2
- package/ImageEdit/ImageEdit.d.ts +3 -5
- package/ImageGallery/ImageGallery.d.ts +2 -2
- package/ImageList/ImageList.d.ts +2 -2
- package/ImageList/ImageList.js +2 -1
- package/ImageListItem/ImageListItem.d.ts +2 -2
- package/ImageListItemBox/ImageListItemBox.d.ts +2 -2
- package/Info/Info.d.ts +2 -2
- package/Interaction/Interaction.d.ts +2 -3
- package/Keyframes/Keyframes.d.ts +4 -4
- package/Label/Label.d.ts +5 -7
- package/Labels/Labels.d.ts +3 -7
- package/Line/Line.d.ts +2 -2
- package/LineChart/LineChart.d.ts +2 -2
- package/LineChartItem/LineChartItem.d.ts +4 -2
- package/LinearMeter/LinearMeter.d.ts +3 -6
- package/LinearProgress/LinearProgress.d.ts +3 -5
- package/Link/Link.d.ts +2 -4
- package/Links/Links.d.ts +4 -4
- package/List/List.d.ts +4 -4
- package/ListItem/ListItem.d.ts +3 -5
- package/ListSubheader/ListSubheader.d.ts +1 -2
- package/MainProgress/MainProgress.d.ts +6 -6
- package/Markdown/Markdown.d.ts +2 -2
- package/Masonry/Masonry.d.ts +2 -2
- package/Medias/Medias.d.ts +4 -4
- package/Menu/Menu.d.ts +2 -2
- package/MenuDesktop/MenuDesktop.d.ts +3 -6
- package/MenuItem/MenuItem.d.ts +2 -2
- package/Meta/Meta.d.ts +2 -2
- package/Modal/Modal.d.ts +3 -6
- package/ModalFooter/ModalFooter.d.ts +1 -2
- package/ModalHeader/ModalHeader.d.ts +2 -2
- package/ModalIcon/ModalIcon.d.ts +1 -2
- package/ModalMain/ModalMain.d.ts +1 -2
- package/ModalText/ModalText.d.ts +1 -2
- package/ModalTitle/ModalTitle.d.ts +1 -2
- package/MoreOptions/MoreOptions.d.ts +2 -2
- package/Move/Move.d.ts +2 -2
- package/NavigationBar/NavigationBar.d.ts +2 -2
- package/NavigationDrawer/NavigationDrawer.d.ts +2 -2
- package/NavigationItem/NavigationItem.d.ts +3 -5
- package/NavigationRail/NavigationRail.d.ts +3 -4
- package/NotFound/NotFound.d.ts +3 -2
- package/NumericTextField/NumericTextField.d.ts +2 -2
- package/Page/Page.d.ts +4 -4
- package/PageTransition/PageTransition.d.ts +2 -2
- package/Pagination/Pagination.d.ts +3 -7
- package/PaginationItem/PaginationItem.d.ts +2 -2
- package/Parallax/Parallax.d.ts +2 -2
- package/Path/Path.d.ts +2 -2
- package/PieChart/PieChart.d.ts +4 -2
- package/Placeholder/Placeholder.d.ts +3 -4
- package/Portal/Portal.d.ts +2 -2
- package/Properties/Properties.d.ts +5 -5
- package/Property/Property.d.ts +2 -2
- package/Radio/Radio.d.ts +2 -2
- package/Radios/Radios.d.ts +3 -7
- package/Rating/Rating.d.ts +3 -8
- package/Reset/Reset.d.ts +1 -2
- package/Reveal/Reveal.d.ts +2 -2
- package/RichTextEditor/RichTextEditor.d.ts +3 -5
- package/RoundMeter/RoundMeter.d.ts +3 -6
- package/RoundProgress/RoundProgress.d.ts +3 -6
- package/ScatterChart/ScatterChart.d.ts +1 -2
- package/ScatterChartItem/ScatterChartItem.d.ts +4 -2
- package/ScreenCapture/ScreenCapture.d.ts +2 -2
- package/Section/Section.d.ts +2 -2
- package/SectionAction/SectionAction.d.ts +2 -2
- package/SectionBoxes/SectionBoxes.d.ts +4 -4
- package/SectionCards/SectionCards.d.ts +4 -4
- package/SectionCarousel/SectionCarousel.d.ts +4 -4
- package/SectionContact/SectionContact.d.ts +2 -2
- package/SectionImageGallery/SectionImageGallery.d.ts +2 -2
- package/SectionLogos/SectionLogos.d.ts +2 -2
- package/SectionMedia/SectionMedia.d.ts +2 -2
- package/SectionReviews/SectionReviews.d.ts +5 -4
- package/SectionTextMedia/SectionTextMedia.d.ts +2 -2
- package/SectionTimeline/SectionTimeline.d.ts +4 -4
- package/SectionWatch/SectionWatch.d.ts +2 -5
- package/Select/Select.d.ts +2 -2
- package/Share/Share.d.ts +3 -4
- package/Slide/Slide.d.ts +2 -2
- package/Slider/Slider.d.ts +4 -9
- package/SmartTextField/SmartTextField.d.ts +2 -3
- package/Snackbar/Snackbar.d.ts +3 -4
- package/Snackbars/Context.d.ts +2 -2
- package/Snackbars/Snackbars.d.ts +4 -4
- package/Space/Space.d.ts +3 -6
- package/SpeechToText/SpeechToText.d.ts +3 -5
- package/SpeedDial/SpeedDial.d.ts +3 -6
- package/SpeedDialItem/SpeedDialItem.d.ts +2 -2
- package/SpyScroll/SpyScroll.d.ts +2 -2
- package/Step/Step.d.ts +3 -5
- package/Stepper/Stepper.d.ts +4 -5
- package/Surface/Surface.d.ts +3 -6
- package/Switch/Switch.d.ts +5 -7
- package/Tab/Tab.d.ts +2 -3
- package/Table/Table.d.ts +3 -4
- package/TableBody/TableBody.d.ts +2 -4
- package/TableCell/TableCell.d.ts +3 -7
- package/TableFooter/TableFooter.d.ts +1 -4
- package/TableHead/TableHead.d.ts +2 -4
- package/TableHeader/TableHeader.d.ts +1 -4
- package/TablePagination/TablePagination.d.ts +3 -6
- package/TableRow/TableRow.d.ts +2 -4
- package/TableRow/TableRow.js +4 -4
- package/Tabs/Tabs.d.ts +2 -2
- package/Text/Text.d.ts +2 -2
- package/TextField/TextField.d.ts +4 -8
- package/TextToSpeech/TextToSpeech.d.ts +3 -5
- package/TimePicker/TimePicker.d.ts +5 -6
- package/TimeRangePicker/TimeRangePicker.d.ts +1 -2
- package/Timeline/Timeline.d.ts +2 -2
- package/TimelineItem/TimelineItem.d.ts +2 -2
- package/Timer/Timer.d.ts +2 -2
- package/ToggleButton/ToggleButton.d.ts +1 -2
- package/ToggleButtons/ToggleButtons.d.ts +1 -2
- package/Tooltip/Tooltip.d.ts +4 -5
- package/TopAppBar/TopAppBar.d.ts +3 -4
- package/Transition/Transition.d.ts +4 -4
- package/Transitions/Transitions.d.ts +2 -2
- package/Tree/Tree.d.ts +5 -5
- package/Type/Type.d.ts +3 -5
- package/VideoPlayer/VideoPlayer.d.ts +5 -7
- package/ViewSplit/ViewSplit.d.ts +4 -5
- package/Watch/Watch.d.ts +3 -4
- package/Weather/Weather.d.ts +3 -4
- package/Whiteboard/Whiteboard.d.ts +6 -6
- package/Widgets/Widgets.d.ts +4 -4
- package/WindowSplit/WindowSplit.d.ts +4 -5
- package/Zoom/Zoom.d.ts +1 -2
- package/esm/Chips/Chips.js +3 -3
- package/esm/DropZone/DropZone.js +2 -1
- package/esm/Grid/Grid.js +2 -1
- package/esm/Image/Image.js +2 -1
- package/esm/ImageList/ImageList.js +2 -1
- package/esm/TableRow/TableRow.js +1 -1
- package/esm/index.js +1 -1
- package/package.json +1 -1
- package/types.d.ts +11 -8
- package/useForm/useForm.d.ts +4 -4
- package/useForm/validate.d.ts +12 -12
- package/useLocation/useLocation.d.ts +1 -2
- package/useMediaQuery/useMediaQuery.d.ts +2 -2
- package/useScroll/useScroll.d.ts +2 -2
- package/useSwipe/useSwipe.d.ts +4 -4
- package/useVisible/useVisible.d.ts +4 -4
package/Tooltip/Tooltip.d.ts
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IModal } from '../Modal/Modal';
|
3
|
-
import {
|
4
|
-
export
|
5
|
-
tonal?: ITonal;
|
6
|
-
color?: IColor;
|
3
|
+
import { IElement, IElementReference, IHTMLElement, IMethodTransition, IPropsAny } from '../types';
|
4
|
+
export declare type ITooltip = Omit<IModal, 'maxWidth'> & {
|
7
5
|
open?: boolean;
|
8
6
|
openDefault?: boolean;
|
9
7
|
name?: IElement;
|
@@ -33,6 +31,7 @@ export interface ITooltip extends Omit<IModal, 'maxWidth'> {
|
|
33
31
|
nowrap?: boolean;
|
34
32
|
follow?: boolean;
|
35
33
|
interactive?: boolean;
|
34
|
+
elevation?: boolean;
|
36
35
|
onOpen?: () => any;
|
37
36
|
onClose?: () => any;
|
38
37
|
onExited?: IMethodTransition;
|
@@ -42,6 +41,6 @@ export interface ITooltip extends Omit<IModal, 'maxWidth'> {
|
|
42
41
|
ModalProps?: IPropsAny;
|
43
42
|
LabelProps?: IPropsAny;
|
44
43
|
LabelTextProps?: IPropsAny;
|
45
|
-
}
|
44
|
+
};
|
46
45
|
declare const Tooltip: React.FC<ITooltip>;
|
47
46
|
export default Tooltip;
|
package/TopAppBar/TopAppBar.d.ts
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ISurface } from '../Surface/Surface';
|
3
|
-
import {
|
4
|
-
export
|
3
|
+
import { IElement } from '../types';
|
4
|
+
export declare type ITopAppBar = Omit<ISurface, 'version'> & {
|
5
5
|
position?: 'relative' | 'absolute' | 'static' | 'sticky' | 'fixed' | 'unset';
|
6
6
|
version?: 'small' | 'center' | 'medium' | 'large';
|
7
|
-
size?: ISize;
|
8
7
|
center?: boolean;
|
9
8
|
title?: IElement;
|
10
9
|
start?: IElement;
|
11
10
|
end?: IElement;
|
12
|
-
}
|
11
|
+
};
|
13
12
|
declare const TopAppBar: React.FC<ITopAppBar>;
|
14
13
|
export default TopAppBar;
|
@@ -3,13 +3,13 @@ import { TTransitionsDurationProperties } from '@onesy/style-react';
|
|
3
3
|
import { IBaseElement } from '../types';
|
4
4
|
export declare type TTransitionStatus = 'appended' | 'add' | 'adding' | 'added' | 'enter' | 'entering' | 'entered' | 'exit' | 'exiting' | 'exited' | 'removed';
|
5
5
|
export declare const STATUS: Record<TTransitionStatus, TTransitionStatus>;
|
6
|
-
export
|
6
|
+
export declare type ITransitionDelay = {
|
7
7
|
default?: number;
|
8
8
|
add?: number;
|
9
9
|
enter?: number;
|
10
10
|
exit?: number;
|
11
|
-
}
|
12
|
-
export
|
11
|
+
};
|
12
|
+
export declare type ITransition = Omit<IBaseElement, 'className'> & {
|
13
13
|
in?: boolean;
|
14
14
|
name?: string;
|
15
15
|
className?: boolean;
|
@@ -41,6 +41,6 @@ export interface ITransition extends Omit<IBaseElement, 'children' | 'className'
|
|
41
41
|
onRemoved?: (element: HTMLElement) => void;
|
42
42
|
children?: any;
|
43
43
|
[p: string]: any;
|
44
|
-
}
|
44
|
+
};
|
45
45
|
declare const Transition: React.FC<ITransition>;
|
46
46
|
export default Transition;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IPropsAny } from '../types';
|
3
3
|
export declare type TTransitionsMode = 'in-out' | 'in-out-follow' | 'out-in';
|
4
|
-
export
|
4
|
+
export declare type ITransitions = {
|
5
5
|
id?: string;
|
6
6
|
mode?: TTransitionsMode;
|
7
7
|
switch?: boolean;
|
8
8
|
TransitionProps?: IPropsAny;
|
9
9
|
children?: any;
|
10
|
-
}
|
10
|
+
};
|
11
11
|
declare const Transitions: React.FC<ITransitions>;
|
12
12
|
export default Transitions;
|
package/Tree/Tree.d.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { IBaseElement, IElement, IPropsAny, IElementReference } from '../types';
|
3
|
-
export
|
2
|
+
import { IBaseElement, IElement, IPropsAny, IElementReference, IVersion } from '../types';
|
3
|
+
export declare type ITree = IBaseElement & {
|
4
4
|
open?: boolean;
|
5
5
|
openDefault?: boolean;
|
6
|
+
version?: IVersion;
|
6
7
|
onChange?: (value: boolean) => any;
|
7
8
|
selected?: boolean;
|
8
9
|
line?: boolean;
|
@@ -22,7 +23,6 @@ export interface ITree extends Omit<IBaseElement, 'children'> {
|
|
22
23
|
noPadding?: boolean;
|
23
24
|
parent?: HTMLElement;
|
24
25
|
parentDisabled?: boolean;
|
25
|
-
disabled?: boolean;
|
26
26
|
ExpandProps?: IPropsAny;
|
27
27
|
MainProps?: IPropsAny;
|
28
28
|
StartProps?: IPropsAny;
|
@@ -30,9 +30,9 @@ export interface ITree extends Omit<IBaseElement, 'children'> {
|
|
30
30
|
EndProps?: IPropsAny;
|
31
31
|
IndicatorProps?: IPropsAny;
|
32
32
|
TransitionComponentProps?: IPropsAny;
|
33
|
+
TreeProps?: IPropsAny;
|
33
34
|
IconArrow?: IElementReference;
|
34
35
|
TransitionComponent?: IElementReference;
|
35
|
-
|
36
|
-
}
|
36
|
+
};
|
37
37
|
declare const Tree: React.FC<ITree>;
|
38
38
|
export default Tree;
|
package/Type/Type.d.ts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { TTypographyItem } from '@onesy/style-react';
|
3
|
-
import { IBaseElement
|
4
|
-
export
|
5
|
-
color?: IColor;
|
3
|
+
import { IBaseElement } from '../types';
|
4
|
+
export declare type IType = IBaseElement & {
|
6
5
|
responsive?: boolean;
|
7
6
|
priority?: 'primary' | 'secondary' | 'tertiary' | 'quaternary';
|
8
7
|
version?: TTypographyItem;
|
@@ -12,7 +11,6 @@ export interface IType extends IBaseElement {
|
|
12
11
|
weight?: string | number;
|
13
12
|
whiteSpace?: '-moz-pre-wrap' | 'break-spaces' | 'normal' | 'nowrap' | 'pre' | 'pre-line' | 'pre-wrap';
|
14
13
|
fullWidth?: boolean;
|
15
|
-
|
16
|
-
}
|
14
|
+
};
|
17
15
|
declare const Type: React.FC<IType>;
|
18
16
|
export default Type;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ILine } from '../Line/Line';
|
3
|
-
import {
|
4
|
-
export
|
3
|
+
import { IElementReference, IPropsAny } from '../types';
|
4
|
+
export declare type IVideoPlayer = ILine & {
|
5
5
|
name?: string;
|
6
6
|
src?: string;
|
7
7
|
mime?: string;
|
@@ -9,9 +9,6 @@ export interface IVideoPlayer extends ILine {
|
|
9
9
|
versions?: any;
|
10
10
|
thumbnails?: any;
|
11
11
|
duration?: number;
|
12
|
-
tonal?: ITonal;
|
13
|
-
color?: IColor;
|
14
|
-
size?: ISize;
|
15
12
|
start?: any;
|
16
13
|
end?: any;
|
17
14
|
startControls?: any;
|
@@ -20,6 +17,8 @@ export interface IVideoPlayer extends ILine {
|
|
20
17
|
endButtons?: any;
|
21
18
|
startEnd?: any;
|
22
19
|
endEnd?: any;
|
20
|
+
startButtonsEnd?: any;
|
21
|
+
endButtonsEnd?: any;
|
23
22
|
forward?: boolean;
|
24
23
|
backward?: boolean;
|
25
24
|
settings?: boolean;
|
@@ -28,7 +27,6 @@ export interface IVideoPlayer extends ILine {
|
|
28
27
|
pictureInPicture?: boolean;
|
29
28
|
fullScreen?: boolean;
|
30
29
|
startMediaSessionOnPlay?: boolean;
|
31
|
-
disabled?: boolean;
|
32
30
|
IconPlay?: IElementReference;
|
33
31
|
IconPause?: IElementReference;
|
34
32
|
IconForward?: IElementReference;
|
@@ -56,6 +54,6 @@ export interface IVideoPlayer extends ILine {
|
|
56
54
|
QualityButtonProps?: IPropsAny;
|
57
55
|
PictureInPictureButtonProps?: IPropsAny;
|
58
56
|
FullScreenButtonProps?: IPropsAny;
|
59
|
-
}
|
57
|
+
};
|
60
58
|
declare const VideoPlayer: React.FC<IVideoPlayer>;
|
61
59
|
export default VideoPlayer;
|
package/ViewSplit/ViewSplit.d.ts
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ILine } from '../Line/Line';
|
3
|
-
import {
|
4
|
-
export
|
5
|
-
tonal?: ITonal;
|
6
|
-
color?: IColor;
|
3
|
+
import { IElement, IPropsAny } from '../types';
|
4
|
+
export declare type IViewSplit = ILine & {
|
7
5
|
valueDefault?: number;
|
8
6
|
value?: number;
|
9
7
|
onChange?: (value: number) => any;
|
@@ -19,6 +17,7 @@ export interface IViewSplit extends ILine {
|
|
19
17
|
iconOrientationVertical?: IElement;
|
20
18
|
IconButtonProps?: IPropsAny;
|
21
19
|
DividerProps?: IPropsAny;
|
22
|
-
|
20
|
+
SeparatorProps?: IPropsAny;
|
21
|
+
};
|
23
22
|
declare const ViewSplit: React.FC<IViewSplit>;
|
24
23
|
export default ViewSplit;
|
package/Watch/Watch.d.ts
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { OnesyDate } from '@onesy/date';
|
3
3
|
import { ISurface } from '../Surface/Surface';
|
4
|
-
import {
|
5
|
-
export
|
4
|
+
import { IElement, IPropsAny } from '../types';
|
5
|
+
export declare type IWatch = Omit<ISurface, 'version'> & {
|
6
6
|
version?: 'regular' | 'analog' | 'modern' | 'minimal';
|
7
|
-
size?: ISize;
|
8
7
|
start?: boolean;
|
9
8
|
timeVisible?: boolean;
|
10
9
|
timeOfDayVisible?: boolean;
|
@@ -18,6 +17,6 @@ export interface IWatch extends Omit<ISurface, 'version'> {
|
|
18
17
|
RegularProps?: IPropsAny;
|
19
18
|
MinimalProps?: IPropsAny;
|
20
19
|
ModernProps?: IPropsAny;
|
21
|
-
}
|
20
|
+
};
|
22
21
|
declare const Watch: React.FC<IWatch>;
|
23
22
|
export default Watch;
|
package/Weather/Weather.d.ts
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ISurface } from '../Surface/Surface';
|
3
|
-
import {
|
3
|
+
import { IElementReference, IPropsAny } from '../types';
|
4
4
|
export declare type TWeatherDayTime = 'day' | 'night';
|
5
5
|
export declare type TWeather = 'clear' | 'partly clear' | 'rainy' | 'partly rainy' | 'snowy' | 'partly snowy';
|
6
6
|
export declare type TTemperature = number;
|
7
|
-
export
|
8
|
-
size?: ISize;
|
7
|
+
export declare type IWeather = ISurface & {
|
9
8
|
shadow?: boolean;
|
10
9
|
dayTime?: TWeatherDayTime;
|
11
10
|
weather?: TWeather;
|
@@ -22,6 +21,6 @@ export interface IWeather extends ISurface {
|
|
22
21
|
IconRain?: IElementReference;
|
23
22
|
IconSnow?: IElementReference;
|
24
23
|
IconProps?: IPropsAny;
|
25
|
-
}
|
24
|
+
};
|
26
25
|
declare const Weather: React.FC<IWeather>;
|
27
26
|
export default Weather;
|
@@ -1,20 +1,20 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IBaseElement } from '../types';
|
3
|
-
export
|
3
|
+
export declare type IWhiteboardAction = {
|
4
4
|
v: 'a' | 'r';
|
5
5
|
i: IWhiteboardItem | IWhiteboardItem[];
|
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
|
9
|
+
export declare type IWhiteboard = IBaseElement & {
|
10
10
|
valueDefault?: IWhiteboardValue;
|
11
11
|
onChange?: (value: IWhiteboardValue) => any;
|
12
12
|
minZoom?: number;
|
13
13
|
maxZoom?: number;
|
14
14
|
grid?: boolean;
|
15
15
|
settings?: any;
|
16
|
-
}
|
17
|
-
export
|
16
|
+
};
|
17
|
+
export declare type IWhiteboardItem = {
|
18
18
|
i: string;
|
19
19
|
v?: 'dl' | 'dp' | 'oc' | 'oe' | 'or' | 'os' | 'ot' | 'ote' | 'ol' | 'oa' | 'i' | 't';
|
20
20
|
p: number[];
|
@@ -30,6 +30,6 @@ export interface IWhiteboardItem {
|
|
30
30
|
};
|
31
31
|
se?: boolean;
|
32
32
|
a: number;
|
33
|
-
}
|
33
|
+
};
|
34
34
|
declare const Whiteboard: React.FC<IWhiteboard>;
|
35
35
|
export default Whiteboard;
|
package/Widgets/Widgets.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IBaseElement, IElement, IPropsAny, IElementReference } from '../types';
|
3
|
-
export
|
3
|
+
export declare type IWidgetsValue = {
|
4
4
|
open: (value?: string) => void;
|
5
5
|
openAll: () => void;
|
6
6
|
close: (value?: string) => void;
|
7
7
|
closeAll: () => void;
|
8
|
-
}
|
9
|
-
export
|
8
|
+
};
|
9
|
+
export declare type IWidgets = IBaseElement & {
|
10
10
|
widgets?: IElement;
|
11
11
|
position?: 'top' | 'bottom';
|
12
12
|
move?: boolean;
|
@@ -19,6 +19,6 @@ export interface IWidgets extends IBaseElement {
|
|
19
19
|
MoveProps?: IPropsAny;
|
20
20
|
Icon?: IElementReference;
|
21
21
|
IconCloseItem?: IElementReference;
|
22
|
-
}
|
22
|
+
};
|
23
23
|
declare const Widgets: React.FC<IWidgets>;
|
24
24
|
export default Widgets;
|
@@ -1,9 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ILine } from '../Line/Line';
|
3
|
-
import {
|
4
|
-
export
|
5
|
-
tonal?: ITonal;
|
6
|
-
color?: IColor;
|
3
|
+
import { IElement, IPropsAny } from '../types';
|
4
|
+
export declare type IWindowSplit = ILine & {
|
7
5
|
valueDefault?: number;
|
8
6
|
value?: number;
|
9
7
|
onChange?: (value: number) => any;
|
@@ -24,6 +22,7 @@ export interface IWindowSplit extends ILine {
|
|
24
22
|
iconOrientationVertical?: IElement;
|
25
23
|
IconButtonProps?: IPropsAny;
|
26
24
|
DividerProps?: IPropsAny;
|
27
|
-
|
25
|
+
SeparatorProps?: IPropsAny;
|
26
|
+
};
|
28
27
|
declare const WindowSplit: React.FC<IWindowSplit>;
|
29
28
|
export default WindowSplit;
|
package/Zoom/Zoom.d.ts
CHANGED
package/esm/Chips/Chips.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
4
|
-
const _excluded = ["size", "gap", "align", "justify", "direction", "wrap", "total", "max", "showAllDefault", "
|
4
|
+
const _excluded = ["size", "gap", "align", "justify", "direction", "wrap", "total", "max", "showAllDefault", "moreShowAll", "AdditionalChip", "AdditionalChipProps", "Component", "className", "style", "children"];
|
5
5
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
7
7
|
import React from 'react';
|
@@ -65,7 +65,7 @@ const Chips = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
65
65
|
total,
|
66
66
|
max,
|
67
67
|
showAllDefault,
|
68
|
-
|
68
|
+
moreShowAll = true,
|
69
69
|
AdditionalChip,
|
70
70
|
AdditionalChipProps = {},
|
71
71
|
Component = 'div',
|
@@ -92,7 +92,7 @@ const Chips = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
92
92
|
children.push(AdditionalChip || /*#__PURE__*/React.createElement(Chip, _extends({
|
93
93
|
color: "default"
|
94
94
|
}, other, AdditionalChipProps, {
|
95
|
-
onClick:
|
95
|
+
onClick: moreShowAll ? onClickMore : undefined
|
96
96
|
}), value));
|
97
97
|
}
|
98
98
|
}
|
package/esm/DropZone/DropZone.js
CHANGED
@@ -74,7 +74,8 @@ const DropZone = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
74
74
|
children,
|
75
75
|
className
|
76
76
|
} = props,
|
77
|
-
|
77
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
78
|
+
const other = otherProps;
|
78
79
|
const {
|
79
80
|
classes
|
80
81
|
} = useStyle();
|
package/esm/Grid/Grid.js
CHANGED
@@ -131,7 +131,8 @@ const Grid = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
131
131
|
className,
|
132
132
|
children
|
133
133
|
} = props,
|
134
|
-
|
134
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
135
|
+
const other = otherProps;
|
135
136
|
const {
|
136
137
|
classes
|
137
138
|
} = useStyle();
|
package/esm/Image/Image.js
CHANGED
@@ -146,7 +146,8 @@ const Image = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
146
146
|
style,
|
147
147
|
children: children_
|
148
148
|
} = props,
|
149
|
-
|
149
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
150
|
+
const other = otherProps;
|
150
151
|
const {
|
151
152
|
classes
|
152
153
|
} = useStyle();
|
@@ -50,7 +50,8 @@ const ImageList = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
50
50
|
style,
|
51
51
|
children
|
52
52
|
} = props,
|
53
|
-
|
53
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
54
|
+
const other = otherProps;
|
54
55
|
const refs = {
|
55
56
|
root: React.useRef(undefined)
|
56
57
|
};
|
package/esm/TableRow/TableRow.js
CHANGED
@@ -5,10 +5,10 @@ const _excluded = ["tonal", "color", "size", "hover", "selected", "position", "C
|
|
5
5
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
7
7
|
import React from 'react';
|
8
|
+
import { is } from '@onesy/utils';
|
8
9
|
import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
|
9
10
|
import SurfaceElement from '../Surface';
|
10
11
|
import { staticClassName } from '../utils';
|
11
|
-
import { is } from '@onesy/utils';
|
12
12
|
const useStyle = styleMethod(theme => ({
|
13
13
|
root: {
|
14
14
|
display: 'table-row',
|
package/esm/index.js
CHANGED
package/package.json
CHANGED
package/types.d.ts
CHANGED
@@ -21,21 +21,24 @@ export declare type IPropsAny = Record<string, any>;
|
|
21
21
|
export declare type IStyle = React.CSSProperties | undefined;
|
22
22
|
export declare type IChildren = React.ReactNode | React.ReactNode[];
|
23
23
|
export declare type IRef = React.MutableRefObject<any>;
|
24
|
-
export
|
24
|
+
export declare type IBaseElement<P = {}, T = HTMLElement> = React.HTMLAttributes<T> & {
|
25
|
+
tonal?: ITonal;
|
26
|
+
color?: IColor;
|
27
|
+
size?: ISizeAny;
|
28
|
+
readOnly?: boolean;
|
29
|
+
disabled?: boolean;
|
30
|
+
children?: any;
|
25
31
|
Component?: any;
|
26
|
-
|
27
|
-
|
28
|
-
children?: IChildren;
|
29
|
-
[property: string]: any;
|
30
|
-
}
|
32
|
+
ref?: any;
|
33
|
+
} & P;
|
31
34
|
export declare type IMethodTransition = (element?: IHTMLElement) => any;
|
32
35
|
export declare type IValueBreakpoints = IBreakpoint | 'default';
|
33
|
-
export
|
36
|
+
export declare type IMediaObject = {
|
34
37
|
id?: string;
|
35
38
|
name?: string;
|
36
39
|
mime?: string;
|
37
40
|
url: string;
|
38
41
|
urlSmall?: string;
|
39
42
|
urlEmbed?: string;
|
40
|
-
}
|
43
|
+
};
|
41
44
|
export {};
|
package/useForm/useForm.d.ts
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IValidateVales } from './validate';
|
3
|
-
export
|
3
|
+
export declare type IUseForm = {
|
4
4
|
values: IValidateVales;
|
5
5
|
validate?: (values: IValidateVales, form: any) => boolean;
|
6
6
|
rerenderOnUpdate?: boolean;
|
7
7
|
autoValidate?: boolean;
|
8
8
|
valueDefault?: any;
|
9
9
|
validDefault?: boolean;
|
10
|
-
}
|
11
|
-
export
|
10
|
+
};
|
11
|
+
export declare type IUseFormOnChangeOptions = {
|
12
12
|
rerenderOnUpdate?: boolean;
|
13
|
-
}
|
13
|
+
};
|
14
14
|
declare const useForm: (props: IUseForm) => {
|
15
15
|
value: any;
|
16
16
|
values: any;
|
package/useForm/validate.d.ts
CHANGED
@@ -1,30 +1,30 @@
|
|
1
1
|
import { TIsType, IOptions as IIsOptions } from '@onesy/utils/is';
|
2
2
|
import { TIsValidType, IOptions as IIsValidOptions } from '@onesy/utils/isValid';
|
3
|
-
export
|
3
|
+
export declare type IValidateOptions = {
|
4
4
|
message?: string;
|
5
5
|
uriDecode?: boolean;
|
6
6
|
parse?: boolean;
|
7
|
-
}
|
8
|
-
export
|
7
|
+
};
|
8
|
+
export declare type IValidateModelValueIs = {
|
9
9
|
type?: TIsType;
|
10
10
|
options?: IIsOptions;
|
11
|
-
}
|
12
|
-
export
|
11
|
+
};
|
12
|
+
export declare type IValidateModelValueIsValid = {
|
13
13
|
type?: TIsValidType;
|
14
14
|
options?: IIsValidOptions;
|
15
|
-
}
|
16
|
-
export
|
15
|
+
};
|
16
|
+
export declare type IValidateModelValueMethodOptions = {
|
17
17
|
form: IForm;
|
18
18
|
property: string;
|
19
19
|
object: IValidateModelValue;
|
20
20
|
options: IValidateOptions;
|
21
|
-
}
|
21
|
+
};
|
22
22
|
export declare type IValidateModelValueMethod = (value: any, options: IValidateModelValueMethodOptions) => Promise<any> | any;
|
23
23
|
export declare type IValidateModelValueValidations = 'required' | 'is' | 'isValid' | 'of' | 'ofValid' | 'equal' | 'notEqual' | 'equalDeep' | 'notEqualDeep' | 'some' | 'in' | 'every' | 'properties' | 'notProperties' | 'min' | 'max' | 'length' | 'method';
|
24
24
|
export declare type IValidateModelMessages = {
|
25
25
|
[p in IValidateModelValueValidations]?: string;
|
26
26
|
};
|
27
|
-
export
|
27
|
+
export declare type IValidateModelValue = {
|
28
28
|
name: string;
|
29
29
|
value?: any;
|
30
30
|
message?: string;
|
@@ -51,13 +51,13 @@ export interface IValidateModelValue {
|
|
51
51
|
error?: string;
|
52
52
|
capitalize?: boolean;
|
53
53
|
propertyNameUpdate?: (value: any) => string;
|
54
|
-
}
|
54
|
+
};
|
55
55
|
export declare type IUseFormValues = Record<string, IValidateModelValue>;
|
56
|
-
export
|
56
|
+
export declare type IForm = {
|
57
57
|
value: any;
|
58
58
|
values: IUseFormValues;
|
59
59
|
valid: boolean;
|
60
|
-
}
|
60
|
+
};
|
61
61
|
export declare type IValidateValidation = (property: IValidateModelValue, form: IForm) => void | Error | Promise<void | Error>;
|
62
62
|
export declare type IValidateVales = Record<string, IValidateModelValue>;
|
63
63
|
export declare const onValidateError: (options: IValidateOptions, model: IValidateModelValue, message?: any) => never;
|
package/useScroll/useScroll.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
export declare type TUseScrollDirection = 'up' | 'down';
|
2
|
-
export
|
2
|
+
export declare type IUseScroll = {
|
3
3
|
offset?: number;
|
4
4
|
direction?: TUseScrollDirection;
|
5
5
|
target?: HTMLElement | Window;
|
6
6
|
element?: any;
|
7
|
-
}
|
7
|
+
};
|
8
8
|
declare const useScroll: {
|
9
9
|
(props: IUseScroll): boolean;
|
10
10
|
displayName: string;
|
package/useSwipe/useSwipe.d.ts
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
export
|
1
|
+
export declare type IOptionsUseSwipe = {
|
2
2
|
open?: boolean;
|
3
3
|
min?: number;
|
4
4
|
direction?: 'top' | 'left' | 'right' | 'bottom';
|
5
5
|
touchAnywhere?: boolean;
|
6
6
|
flick?: boolean;
|
7
7
|
flickTreshold?: number;
|
8
|
-
}
|
9
|
-
export
|
8
|
+
};
|
9
|
+
export declare type IResponseUseSwipe = {
|
10
10
|
value?: number;
|
11
11
|
valuePercentage?: number;
|
12
12
|
position?: string;
|
13
|
-
}
|
13
|
+
};
|
14
14
|
declare const useSwipe: {
|
15
15
|
(element: HTMLElement, options_?: IOptionsUseSwipe): IResponseUseSwipe;
|
16
16
|
displayName: string;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
export
|
1
|
+
export declare type IUseVisibleResponse = IntersectionObserverEntry & {
|
2
2
|
visible?: boolean;
|
3
3
|
percentage?: number;
|
4
|
-
}
|
5
|
-
export
|
4
|
+
};
|
5
|
+
export declare type IUseVisible = {
|
6
6
|
element: HTMLElement;
|
7
7
|
visibleDefault?: boolean;
|
8
8
|
options?: IntersectionObserverInit;
|
@@ -15,7 +15,7 @@ export interface IUseVisible {
|
|
15
15
|
in?: any;
|
16
16
|
out?: any;
|
17
17
|
};
|
18
|
-
}
|
18
|
+
};
|
19
19
|
declare const useVisible: {
|
20
20
|
(props: IUseVisible): IUseVisibleResponse;
|
21
21
|
displayName: string;
|