@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/Snackbars/Context.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ISnackbar } from '../Snackbar/Snackbar';
|
2
|
-
export
|
2
|
+
export declare type ISnackbarsContext = {
|
3
3
|
add: (value: ISnackbar) => void;
|
4
4
|
remove: (id: string) => void;
|
5
|
-
}
|
5
|
+
};
|
6
6
|
declare const OnesySnackbarsContext: any;
|
7
7
|
export default OnesySnackbarsContext;
|
package/Snackbars/Snackbars.d.ts
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ISnackbar } from '../Snackbar/Snackbar';
|
3
3
|
import { IBaseElement, IPropsAny } from '../types';
|
4
|
-
export
|
4
|
+
export declare type ISnackbarsValue = {
|
5
5
|
add: (value: ISnackbar) => void;
|
6
6
|
remove: (value: 'first' | 'last' | string) => void;
|
7
|
-
}
|
8
|
-
export
|
7
|
+
};
|
8
|
+
export declare type ISnackbars = IBaseElement & {
|
9
9
|
max?: number;
|
10
10
|
position?: 'top' | 'bottom';
|
11
11
|
alignment?: 'start' | 'left' | 'center' | 'right' | 'end';
|
12
12
|
SnackbarProps?: IPropsAny;
|
13
|
-
}
|
13
|
+
};
|
14
14
|
declare const Snackbars: React.FC<ISnackbars>;
|
15
15
|
export default Snackbars;
|
package/Space/Space.d.ts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { IBaseElement
|
3
|
-
export
|
2
|
+
import { IBaseElement } from '../types';
|
3
|
+
export declare type ISpace = IBaseElement & {
|
4
4
|
unitDefault?: 'm' | 'px';
|
5
|
-
size?: ISize;
|
6
5
|
minSize?: number;
|
7
6
|
maxSize?: number;
|
8
7
|
defaults?: {
|
@@ -15,7 +14,6 @@ export interface ISpace extends IBaseElement {
|
|
15
14
|
value: string;
|
16
15
|
url: string;
|
17
16
|
}>;
|
18
|
-
disabled?: boolean;
|
19
17
|
IconAdd?: any;
|
20
18
|
IconMenu?: any;
|
21
19
|
IconCloseNavigation?: any;
|
@@ -30,7 +28,6 @@ export interface ISpace extends IBaseElement {
|
|
30
28
|
IconGroup?: any;
|
31
29
|
IconUngroup?: any;
|
32
30
|
IconGroupSelect?: any;
|
33
|
-
|
34
|
-
}
|
31
|
+
};
|
35
32
|
declare const Space: React.FC<ISpace>;
|
36
33
|
export default Space;
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ILine } from '../Line/Line';
|
3
|
-
import { IElementReference, IPropsAny
|
4
|
-
export
|
5
|
-
size?: ISize;
|
3
|
+
import { IElementReference, IPropsAny } from '../types';
|
4
|
+
export declare type ISpeechToText = ILine & {
|
6
5
|
SpeechRecognition?: any;
|
7
6
|
continuous?: boolean;
|
8
7
|
grammars?: any;
|
@@ -11,7 +10,6 @@ export interface ISpeechToText extends ILine {
|
|
11
10
|
maxAlternatives?: number;
|
12
11
|
join?: string;
|
13
12
|
loading?: any;
|
14
|
-
disabled?: any;
|
15
13
|
Icon?: IElementReference;
|
16
14
|
IconStop?: IElementReference;
|
17
15
|
onListen?: (event: React.MouseEvent<any>) => any;
|
@@ -24,6 +22,6 @@ export interface ISpeechToText extends ILine {
|
|
24
22
|
TooltipProps?: IPropsAny;
|
25
23
|
IconButtonProps?: IPropsAny;
|
26
24
|
IconProps?: IPropsAny;
|
27
|
-
}
|
25
|
+
};
|
28
26
|
declare const SpeechToText: React.FC<ISpeechToText>;
|
29
27
|
export default SpeechToText;
|
package/SpeedDial/SpeedDial.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 { IVersion, IElement, IElementReference, IPropsAny } from '../types';
|
4
|
+
export declare type ISpeedDial = Omit<ILine, 'direction'> & {
|
7
5
|
version?: IVersion;
|
8
6
|
open?: boolean;
|
9
7
|
openDefault?: boolean;
|
@@ -20,7 +18,6 @@ export interface ISpeedDial extends Omit<ILine, 'direction'> {
|
|
20
18
|
noRotate?: boolean;
|
21
19
|
tooltipLabel?: IElement;
|
22
20
|
onKeyDown?: (event: React.KeyboardEvent<any>) => any;
|
23
|
-
disabled?: boolean;
|
24
21
|
IconOpen?: IElementReference;
|
25
22
|
Icon?: IElementReference;
|
26
23
|
FabTransitionComponent?: IElementReference;
|
@@ -31,6 +28,6 @@ export interface ISpeedDial extends Omit<ILine, 'direction'> {
|
|
31
28
|
FabWrapperProps?: IPropsAny;
|
32
29
|
FabTransitionComponentProps?: IPropsAny;
|
33
30
|
SpeeDialItemTransitionComponentProps?: IPropsAny;
|
34
|
-
}
|
31
|
+
};
|
35
32
|
declare const SpeedDial: React.FC<ISpeedDial>;
|
36
33
|
export default SpeedDial;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IIconButton } from '../IconButton/IconButton';
|
3
3
|
import { IElement, IElementReference, IPropsAny } from '../types';
|
4
|
-
export
|
4
|
+
export declare type ISpeedDialItem = IIconButton & {
|
5
5
|
open?: boolean;
|
6
6
|
name?: IElement;
|
7
7
|
label?: IElement;
|
@@ -17,6 +17,6 @@ export interface ISpeedDialItem extends IIconButton {
|
|
17
17
|
onFocus?: (event: React.FocusEvent<any>) => any;
|
18
18
|
Icon?: IElementReference;
|
19
19
|
TooltipProps?: IPropsAny;
|
20
|
-
}
|
20
|
+
};
|
21
21
|
declare const SpeedDialItem: React.FC<ISpeedDialItem>;
|
22
22
|
export default SpeedDialItem;
|
package/SpyScroll/SpyScroll.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IBaseElement, IStyle } from '../types';
|
3
|
-
export
|
3
|
+
export declare type ISpyScroll = IBaseElement & {
|
4
4
|
ids?: Array<string>;
|
5
5
|
offset?: number;
|
6
6
|
offsetStart?: number;
|
@@ -8,6 +8,6 @@ export interface ISpyScroll extends IBaseElement {
|
|
8
8
|
addClassName?: string;
|
9
9
|
addStyle?: IStyle;
|
10
10
|
onActive?: (value: string) => any;
|
11
|
-
}
|
11
|
+
};
|
12
12
|
declare const SpyScroll: React.FC<ISpyScroll>;
|
13
13
|
export default SpyScroll;
|
package/Step/Step.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 { IColor, IVersion, IElement, IPropsAny } from '../types';
|
4
|
+
export declare type IStep = ILine & {
|
7
5
|
version?: IVersion;
|
8
6
|
iconColor?: IColor;
|
9
7
|
iconColorActive?: IColor;
|
@@ -22,6 +20,6 @@ export interface IStep extends ILine {
|
|
22
20
|
renderIcon?: (step: number, active: boolean, completed: boolean, activeStep: number) => IElement;
|
23
21
|
ListItemProps?: IPropsAny;
|
24
22
|
DividerProps?: IPropsAny;
|
25
|
-
}
|
23
|
+
};
|
26
24
|
declare const Step: React.FC<IStep>;
|
27
25
|
export default Step;
|
package/Stepper/Stepper.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 { IColor, IVersion, IPropsAny } from '../types';
|
4
|
+
export declare type IStepper = ILine & {
|
7
5
|
version?: IVersion;
|
8
6
|
iconColor?: IColor;
|
9
7
|
iconColorActive?: IColor;
|
@@ -11,11 +9,12 @@ export interface IStepper extends ILine {
|
|
11
9
|
dividerColorActive?: IColor;
|
12
10
|
active?: number;
|
13
11
|
completed?: Record<any, boolean>;
|
12
|
+
free?: boolean;
|
14
13
|
stepDirection?: 'row' | 'column';
|
15
14
|
orientation?: 'vertical' | 'horizontal';
|
16
15
|
dividerActive?: boolean;
|
17
16
|
individualDividers?: boolean;
|
18
17
|
DividerProps?: IPropsAny;
|
19
|
-
}
|
18
|
+
};
|
20
19
|
declare const Stepper: React.FC<IStepper>;
|
21
20
|
export default Stepper;
|
package/Surface/Surface.d.ts
CHANGED
@@ -1,15 +1,12 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { IBaseElement,
|
3
|
-
export
|
4
|
-
tonal?: ITonal;
|
5
|
-
color?: IColor;
|
2
|
+
import { IBaseElement, IVersion, IElevation, IPropsAny } from '../types';
|
3
|
+
export declare type ISurface = IBaseElement & {
|
6
4
|
version?: IVersion;
|
7
5
|
elevation?: IElevation;
|
8
6
|
backgroundOpacity?: number;
|
9
7
|
noBackground?: boolean;
|
10
8
|
noOutline?: boolean;
|
11
9
|
AdditionalProps?: IPropsAny;
|
12
|
-
|
13
|
-
}
|
10
|
+
};
|
14
11
|
declare const Surface: React.FC<ISurface>;
|
15
12
|
export default Surface;
|
package/Switch/Switch.d.ts
CHANGED
@@ -1,18 +1,16 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { IBaseElement,
|
3
|
-
export
|
4
|
-
tonal?: ITonal;
|
5
|
-
color?: IColor;
|
6
|
-
size?: ISize;
|
2
|
+
import { IBaseElement, IRef, IElement } from '../types';
|
3
|
+
export declare type ISwitch = IBaseElement & {
|
7
4
|
inputRef?: IRef;
|
5
|
+
version?: any;
|
8
6
|
valueDefault?: boolean;
|
9
7
|
checkedDefault?: boolean;
|
10
8
|
value?: boolean;
|
11
9
|
checked?: boolean;
|
12
10
|
onChange?: (value: boolean, event: React.ChangeEvent<any>) => any;
|
11
|
+
colorUnchecked?: string;
|
13
12
|
OnIcon?: IElement;
|
14
13
|
OffIcon?: IElement;
|
15
|
-
|
16
|
-
}
|
14
|
+
};
|
17
15
|
declare const Switch: React.FC<ISwitch>;
|
18
16
|
export default Switch;
|
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
|
4
|
+
export declare type ITab = Omit<ISurface, 'version'> & {
|
5
5
|
version?: 'primary' | 'secondary';
|
6
6
|
size?: 'small' | 'regular' | 'large';
|
7
7
|
value?: any;
|
@@ -13,10 +13,9 @@ export interface ITab extends Omit<ISurface, 'version'> {
|
|
13
13
|
icon?: IElement;
|
14
14
|
iconPosition?: 'start' | 'top' | 'bottom' | 'end';
|
15
15
|
activateOnFocus?: boolean;
|
16
|
-
disabled?: boolean;
|
17
16
|
onBlur?: (event: React.FocusEvent<any>) => any;
|
18
17
|
onFocus?: (event: React.FocusEvent<any>) => any;
|
19
18
|
LineProps?: IPropsAny;
|
20
|
-
}
|
19
|
+
};
|
21
20
|
declare const Tab: React.FC<ITab>;
|
22
21
|
export default Tab;
|
package/Table/Table.d.ts
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ISurface } from '../Surface/Surface';
|
3
|
-
import {
|
4
|
-
export
|
5
|
-
size?: ISize;
|
3
|
+
import { IElement, IPropsAny, IElementReference } from '../types';
|
4
|
+
export declare type ITable = ISurface & {
|
6
5
|
header?: IElement;
|
7
6
|
footer?: IElement;
|
8
7
|
WrapperComponentProps?: IPropsAny;
|
9
8
|
TableComponent?: IElementReference;
|
10
9
|
WrapperComponent?: IElementReference;
|
11
|
-
}
|
10
|
+
};
|
12
11
|
declare const Table: React.FC<ITable>;
|
13
12
|
export default Table;
|
package/TableBody/TableBody.d.ts
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ISurface } from '../Surface/Surface';
|
3
|
-
|
4
|
-
export interface ITableBody extends ISurface {
|
3
|
+
export declare type ITableBody = ISurface & {
|
5
4
|
loading?: boolean;
|
6
|
-
|
7
|
-
}
|
5
|
+
};
|
8
6
|
declare const TableBody: React.FC<ITableBody>;
|
9
7
|
export default TableBody;
|
package/TableCell/TableCell.d.ts
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { TLineAlign, TLineJustify } from '../Line/Line';
|
3
|
-
import { IBaseElement,
|
3
|
+
import { IBaseElement, IPropsAny } from '../types';
|
4
4
|
export declare type ITableCellSort = 'asc' | 'desc';
|
5
|
-
export
|
6
|
-
tonal?: ITonal;
|
7
|
-
color?: IColor;
|
8
|
-
size?: ISize;
|
5
|
+
export declare type ITableCell = IBaseElement & {
|
9
6
|
sort?: boolean;
|
10
7
|
sortedByDefault?: ITableCellSort;
|
11
8
|
sortedBy?: ITableCellSort;
|
@@ -17,11 +14,10 @@ export interface ITableCell extends IBaseElement {
|
|
17
14
|
sticky?: boolean;
|
18
15
|
stickyPosition?: 'left' | 'right';
|
19
16
|
stickyOffset?: number;
|
20
|
-
disabled?: boolean;
|
21
17
|
IconArrow?: any;
|
22
18
|
IconButtonSortProps?: any;
|
23
19
|
TypeProps?: any;
|
24
20
|
DividerProps?: IPropsAny;
|
25
|
-
}
|
21
|
+
};
|
26
22
|
declare const TableCell: React.FC<ITableCell>;
|
27
23
|
export default TableCell;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ISurface } from '../Surface/Surface';
|
3
|
-
|
4
|
-
export interface ITableFooter extends ISurface {
|
5
|
-
size?: ISize;
|
6
|
-
}
|
3
|
+
export declare type ITableFooter = ISurface & {};
|
7
4
|
declare const TableFooter: React.FC<ITableFooter>;
|
8
5
|
export default TableFooter;
|
package/TableHead/TableHead.d.ts
CHANGED
@@ -1,13 +1,11 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ISurface } from '../Surface/Surface';
|
3
|
-
|
4
|
-
export interface ITableHead extends ISurface {
|
5
|
-
size?: ISize;
|
3
|
+
export declare type ITableHead = ISurface & {
|
6
4
|
sticky?: boolean;
|
7
5
|
stickyOffset?: number;
|
8
6
|
loading?: boolean;
|
9
7
|
LinearGradientProps?: any;
|
10
8
|
TableRowLoaderProps?: any;
|
11
|
-
}
|
9
|
+
};
|
12
10
|
declare const TableHead: React.FC<ITableHead>;
|
13
11
|
export default TableHead;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ISurface } from '../Surface/Surface';
|
3
|
-
|
4
|
-
export interface ITableHeader extends ISurface {
|
5
|
-
size?: ISize;
|
6
|
-
}
|
3
|
+
export declare type ITableHeader = ISurface & {};
|
7
4
|
declare const TableHeader: React.FC<ITableHeader>;
|
8
5
|
export default TableHeader;
|
@@ -1,12 +1,9 @@
|
|
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 { IElementReference, IVersion } from '../types';
|
4
|
+
export declare type ITableRow = ILine & {
|
7
5
|
version?: IVersion;
|
8
6
|
elevation?: boolean;
|
9
|
-
size?: ISize;
|
10
7
|
page?: number;
|
11
8
|
pageDefault?: number;
|
12
9
|
onChange?: (value: number) => any;
|
@@ -24,6 +21,6 @@ export interface ITableRow extends ILine {
|
|
24
21
|
IconBefore?: IElementReference;
|
25
22
|
IconNext?: IElementReference;
|
26
23
|
IconLast?: IElementReference;
|
27
|
-
}
|
24
|
+
};
|
28
25
|
declare const TablePagination: React.FC<ITableRow>;
|
29
26
|
export default TablePagination;
|
package/TableRow/TableRow.d.ts
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ISurface } from '../Surface/Surface';
|
3
|
-
|
4
|
-
export interface ITableRow extends ISurface {
|
5
|
-
size?: ISize;
|
3
|
+
export declare type ITableRow = ISurface & {
|
6
4
|
hover?: boolean;
|
7
5
|
selected?: boolean;
|
8
6
|
position?: 'head' | 'body';
|
9
|
-
}
|
7
|
+
};
|
10
8
|
declare const TableRow: React.FC<ITableRow>;
|
11
9
|
export default TableRow;
|
package/TableRow/TableRow.js
CHANGED
@@ -16,10 +16,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
18
18
|
const react_1 = __importDefault(require("react"));
|
19
|
+
const utils_1 = require("@onesy/utils");
|
19
20
|
const style_react_1 = require("@onesy/style-react");
|
20
21
|
const Surface_1 = __importDefault(require("../Surface"));
|
21
|
-
const
|
22
|
-
const utils_2 = require("@onesy/utils");
|
22
|
+
const utils_2 = require("../utils");
|
23
23
|
const useStyle = (0, style_react_1.style)(theme => ({
|
24
24
|
root: {
|
25
25
|
display: 'table-row',
|
@@ -45,7 +45,7 @@ const TableRow = react_1.default.forwardRef((props_, ref) => {
|
|
45
45
|
const { tonal = true, color = 'themed', size = 'regular', hover = true, selected, position = 'body', Component = 'tr', className, children } = props, other = __rest(props, ["tonal", "color", "size", "hover", "selected", "position", "Component", "className", "children"]);
|
46
46
|
const { classes } = useStyle();
|
47
47
|
return ((0, jsx_runtime_1.jsx)(Surface, Object.assign({ ref: ref, tonal: tonal, color: color, role: 'row', Component: Component, className: (0, style_react_1.classNames)([
|
48
|
-
(0,
|
48
|
+
(0, utils_2.staticClassName)('TableRow', theme) && [
|
49
49
|
`onesy-TableRow-root`,
|
50
50
|
`onesy-TableRow-size-${size}`,
|
51
51
|
(hover && position === 'body') && `onesy-TableRow-hover`,
|
@@ -55,7 +55,7 @@ const TableRow = react_1.default.forwardRef((props_, ref) => {
|
|
55
55
|
classes.root,
|
56
56
|
(hover && position === 'body') && classes.hover,
|
57
57
|
selected && classes.selected
|
58
|
-
]) }, other, { children: react_1.default.Children.toArray(children).map((item, index) => (0,
|
58
|
+
]) }, other, { children: react_1.default.Children.toArray(children).map((item, index) => (0, utils_1.is)('object', item) ? (react_1.default.cloneElement(item, {
|
59
59
|
tonal: item.props.tonal !== undefined ? item.props.tonal : tonal,
|
60
60
|
color: item.props.color !== undefined ? item.props.color : color,
|
61
61
|
size: item.props.size !== undefined ? item.props.size : size,
|
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
|
5
|
+
export declare type ITabs = Omit<ISurface, 'version'> & {
|
6
6
|
version?: 'primary' | 'secondary';
|
7
7
|
value?: any;
|
8
8
|
valueDefault?: any;
|
@@ -23,6 +23,6 @@ export interface ITabs extends Omit<ISurface, 'version'> {
|
|
23
23
|
IconTop?: IElementReference;
|
24
24
|
IconBottom?: IElementReference;
|
25
25
|
SurfaceProps?: IPropsAny;
|
26
|
-
}
|
26
|
+
};
|
27
27
|
declare const Tabs: React.FC<ITabs>;
|
28
28
|
export default Tabs;
|
package/Text/Text.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IBaseElement, IPropsAny } from '../types';
|
3
|
-
export
|
3
|
+
export declare type IText = IBaseElement & {
|
4
4
|
value?: any;
|
5
5
|
columns?: number;
|
6
6
|
responsive?: boolean;
|
@@ -11,6 +11,6 @@ export interface IText extends IBaseElement {
|
|
11
11
|
end?: any;
|
12
12
|
TypeProps?: IPropsAny;
|
13
13
|
HorizontalProps?: IPropsAny;
|
14
|
-
}
|
14
|
+
};
|
15
15
|
declare const Text: React.FC<IText>;
|
16
16
|
export default Text;
|
package/TextField/TextField.d.ts
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import OnesySubscription from '@onesy/subscription';
|
3
|
-
import { IBaseElement,
|
4
|
-
export
|
5
|
-
tonal?: ITonal;
|
6
|
-
color?: IColor;
|
3
|
+
import { IBaseElement, IVersion, IRef, IElement, IValueBreakpoints, IPropsAny, IElementReference } from '../types';
|
4
|
+
export declare type ITextField = IBaseElement & {
|
7
5
|
version?: IVersion;
|
8
|
-
size?: ISize;
|
9
6
|
rootRef?: IRef;
|
10
7
|
valueDefault?: string | number;
|
11
8
|
value?: string | number;
|
@@ -43,8 +40,6 @@ export interface ITextField extends IBaseElement {
|
|
43
40
|
controlled?: boolean;
|
44
41
|
restoreSelection?: boolean;
|
45
42
|
minWidth?: number;
|
46
|
-
readOnly?: boolean;
|
47
|
-
disabled?: boolean;
|
48
43
|
subscription?: OnesySubscription;
|
49
44
|
minimal?: boolean;
|
50
45
|
onInput?: (event: InputEvent) => any;
|
@@ -59,6 +54,7 @@ export interface ITextField extends IBaseElement {
|
|
59
54
|
InputComponent?: IElementReference;
|
60
55
|
WrapperComponent?: IElementReference;
|
61
56
|
IconProps?: IPropsAny;
|
62
|
-
|
57
|
+
colorUnchecked?: any;
|
58
|
+
};
|
63
59
|
declare const TextField: React.FC<ITextField>;
|
64
60
|
export default TextField;
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ILine } from '../Line/Line';
|
3
|
-
import { IElementReference, IPropsAny
|
4
|
-
export
|
5
|
-
size?: ISize;
|
3
|
+
import { IElementReference, IPropsAny } from '../types';
|
4
|
+
export declare type ITextToSpeech = ILine & {
|
6
5
|
read?: string;
|
7
6
|
speechSynthesisUtterance?: any;
|
8
7
|
language?: string;
|
@@ -12,7 +11,6 @@ export interface ITextToSpeech extends ILine {
|
|
12
11
|
voice?: any;
|
13
12
|
volume?: number;
|
14
13
|
loading?: any;
|
15
|
-
disabled?: any;
|
16
14
|
Icon?: IElementReference;
|
17
15
|
IconPause?: IElementReference;
|
18
16
|
onStart?: (event?: SpeechSynthesisEvent) => any;
|
@@ -23,6 +21,6 @@ export interface ITextToSpeech extends ILine {
|
|
23
21
|
TooltipProps?: IPropsAny;
|
24
22
|
IconButtonProps?: IPropsAny;
|
25
23
|
IconProps?: IPropsAny;
|
26
|
-
}
|
24
|
+
};
|
27
25
|
declare const TextToSpeech: React.FC<ITextToSpeech>;
|
28
26
|
export default TextToSpeech;
|
@@ -2,10 +2,10 @@ import React from 'react';
|
|
2
2
|
import { OnesyDate } from '@onesy/date';
|
3
3
|
import { TClockUnit } from '../Clock/Clock';
|
4
4
|
import { IAdvancedTextField } from '../AdvancedTextField/AdvancedTextField';
|
5
|
-
import {
|
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
|
8
|
+
export declare type ITimePicker = Omit<IAdvancedTextField, 'version'> & {
|
9
9
|
version?: 'auto' | 'mobile' | 'desktop';
|
10
10
|
value?: TTimePickerValue;
|
11
11
|
valueDefault?: TTimePickerValue;
|
@@ -13,7 +13,6 @@ export interface ITimePicker extends Omit<IAdvancedTextField, 'version'> {
|
|
13
13
|
selecting?: TTimePickerSelecting;
|
14
14
|
selectingDefault?: TTimePickerSelecting;
|
15
15
|
onChangeSelecting?: (value: TTimePickerSelecting) => any;
|
16
|
-
size?: ISize;
|
17
16
|
now?: boolean;
|
18
17
|
range?: boolean;
|
19
18
|
static?: boolean;
|
@@ -41,13 +40,13 @@ export interface ITimePicker extends Omit<IAdvancedTextField, 'version'> {
|
|
41
40
|
heading?: boolean;
|
42
41
|
actions?: boolean;
|
43
42
|
fullWidth?: boolean;
|
44
|
-
readOnly?: boolean;
|
45
|
-
disabled?: boolean;
|
46
43
|
onClick?: (event: React.MouseEvent<any>) => any;
|
47
44
|
onClose?: (event: React.MouseEvent<any>) => any;
|
48
45
|
onCancel?: (event: React.MouseEvent<any>) => any;
|
49
46
|
onNow?: (event: React.MouseEvent<any>) => any;
|
50
47
|
onOk?: (event: React.MouseEvent<any>) => any;
|
48
|
+
onToday?: (event: React.MouseEvent<any>) => any;
|
49
|
+
onClear?: (event: React.MouseEvent<any>) => any;
|
51
50
|
renderValue?: (value: OnesyDate, version: TClockUnit, x: number, y: number, valueNumber: number, otherProps: any) => React.ReactNode;
|
52
51
|
Icon?: IElementReference;
|
53
52
|
IconEnter?: IElementReference;
|
@@ -67,6 +66,6 @@ export interface ITimePicker extends Omit<IAdvancedTextField, 'version'> {
|
|
67
66
|
TabToProps?: IPropsAny;
|
68
67
|
AdvancedTextFieldProps?: IPropsAny;
|
69
68
|
IconProps?: IPropsAny;
|
70
|
-
}
|
69
|
+
};
|
71
70
|
declare const TimePicker: React.FC<ITimePicker>;
|
72
71
|
export default TimePicker;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ITimePicker } from '../TimePicker/TimePicker';
|
3
|
-
export
|
4
|
-
}
|
3
|
+
export declare type ITimeRangePicker = ITimePicker & {};
|
5
4
|
declare const TimeRangePicker: React.FC<ITimeRangePicker>;
|
6
5
|
export default TimeRangePicker;
|
package/Timeline/Timeline.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ILine } from '../Line/Line';
|
3
|
-
export
|
3
|
+
export declare type ITimeline = ILine & {
|
4
4
|
orientation?: 'vertical' | 'horizontal';
|
5
|
-
}
|
5
|
+
};
|
6
6
|
declare const Timeline: React.FC<ITimeline>;
|
7
7
|
export default Timeline;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ILine } from '../Line/Line';
|
3
3
|
import { IElement, IPropsAny, IElementReference } from '../types';
|
4
|
-
export
|
4
|
+
export declare type ITimelineItem = ILine & {
|
5
5
|
orientation?: 'vertical' | 'horizontal';
|
6
6
|
start?: IElement;
|
7
7
|
end?: IElement;
|
@@ -9,6 +9,6 @@ export interface ITimelineItem extends ILine {
|
|
9
9
|
IconProps?: IPropsAny;
|
10
10
|
Icon?: IElementReference;
|
11
11
|
Divider?: any;
|
12
|
-
}
|
12
|
+
};
|
13
13
|
declare const TimelineItem: React.FC<ITimelineItem>;
|
14
14
|
export default TimelineItem;
|
package/Timer/Timer.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ISurface } from '../Surface/Surface';
|
3
3
|
import { IElementReference, IPropsAny } from '../types';
|
4
|
-
export
|
4
|
+
export declare type ITimer = ISurface & {
|
5
5
|
renderValue?: (value: string) => any;
|
6
6
|
icon?: boolean;
|
7
7
|
onStart?: (event: React.MouseEvent<any>) => any;
|
@@ -18,6 +18,6 @@ export interface ITimer extends ISurface {
|
|
18
18
|
TooltipProps?: IPropsAny;
|
19
19
|
IconButtonProps?: IPropsAny;
|
20
20
|
IconProps?: IPropsAny;
|
21
|
-
}
|
21
|
+
};
|
22
22
|
declare const Timer: React.FC<ITimer>;
|
23
23
|
export default Timer;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IButtons } from '../Buttons/Buttons';
|
3
|
-
export
|
4
|
-
}
|
3
|
+
export declare type IToggleButtons = IButtons & {};
|
5
4
|
declare const ToggleButtons: React.FC<IToggleButtons>;
|
6
5
|
export default ToggleButtons;
|