@onesy/ui-react 1.0.83 → 1.0.85
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 +2 -2
- package/AdvancedTextField/AdvancedTextField.d.ts +1 -1
- package/Append/Append.d.ts +3 -3
- package/AreaChart/AreaChart.d.ts +1 -1
- package/AreaChartItem/AreaChartItem.d.ts +1 -1
- package/AudioPlayer/AudioPlayer.d.ts +1 -1
- package/AudioRecorder/AudioRecorder.d.ts +1 -1
- package/AutoComplete/AutoComplete.d.ts +3 -3
- package/AutoCompleteCountry/AutoCompleteCountry.d.ts +1 -1
- package/AutoCompleteCurrency/AutoCompleteCurrency.d.ts +1 -1
- package/AutoCompleteGooglePlaces/AutoCompleteGooglePlaces.d.ts +1 -1
- package/Avatar/Avatar.d.ts +1 -1
- package/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/Backdrop/Backdrop.d.ts +1 -1
- package/Badge/Badge.d.ts +1 -1
- package/Banner/Banner.d.ts +3 -2
- package/BottomAppBar/BottomAppBar.d.ts +1 -1
- package/BottomSheet/BottomSheet.d.ts +1 -1
- package/Box/Box.d.ts +1 -1
- package/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/BubbleChart/BubbleChart.d.ts +1 -1
- package/BubbleChartItem/BubbleChartItem.d.ts +1 -1
- package/Button/Button.d.ts +1 -1
- package/Buttons/Buttons.d.ts +1 -1
- package/Calendar/Calendar.d.ts +3 -3
- package/CalendarAvailability/CalendarAvailability.d.ts +2 -2
- package/CalendarMenu/CalendarMenu.d.ts +1 -1
- package/CalendarMonth/CalendarMonth.d.ts +5 -5
- package/CalendarViews/CalendarViews.d.ts +2 -2
- package/CalendarViews/CalendarViews.js +1 -1
- package/CalendarWeek/CalendarWeek.d.ts +1 -1
- package/Card/Card.d.ts +1 -1
- package/CardButton/CardButton.d.ts +1 -1
- package/CardFooter/CardFooter.d.ts +1 -1
- package/CardHeader/CardHeader.d.ts +1 -1
- package/CardImage/CardImage.d.ts +1 -1
- package/CardMain/CardMain.d.ts +1 -1
- package/Carousel/Carousel.d.ts +4 -4
- package/Chart/Chart.d.ts +4 -4
- package/Checkbox/Checkbox.d.ts +1 -1
- package/Chip/Chip.d.ts +1 -1
- package/Chips/Chips.d.ts +1 -1
- package/ClickListener/ClickListener.d.ts +1 -1
- package/Clock/Clock.d.ts +5 -5
- package/ColorTextField/ColorTextField.d.ts +1 -1
- package/ColumnChart/ColumnChart.d.ts +1 -1
- package/ColumnChartItem/ColumnChartItem.d.ts +1 -1
- package/Confirm/Confirm.d.ts +4 -4
- package/Container/Container.d.ts +1 -1
- package/CookieBanner/CookieBanner.d.ts +1 -1
- package/Countdown/Countdown.d.ts +1 -1
- package/DatePicker/DatePicker.d.ts +1 -1
- package/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/DateTimePicker/DateTimePicker.d.ts +2 -2
- package/DateTimeRangePicker/DateTimeRangePicker.d.ts +1 -1
- package/Divider/Divider.d.ts +1 -1
- package/DonutChart/DonutChart.d.ts +1 -1
- package/DragAndDropList/DragAndDropList.d.ts +1 -1
- package/Drawing/Drawing.d.ts +2 -2
- package/DropZone/DropZone.d.ts +1 -1
- package/Emojis/Emojis.d.ts +3 -3
- package/Expand/Expand.d.ts +1 -1
- package/Fab/Fab.d.ts +1 -1
- package/Fade/Fade.d.ts +1 -1
- package/FileChoose/FileChoose.d.ts +2 -2
- package/Focus/Focus.d.ts +1 -1
- package/Form/Form.d.ts +1 -1
- package/FormRow/FormRow.d.ts +1 -1
- package/Forms/Forms.d.ts +1 -1
- package/Frame/Frame.d.ts +1 -1
- package/Grid/Grid.d.ts +2 -2
- package/Grow/Grow.d.ts +1 -1
- package/HTMLCanvas/HTMLCanvas.d.ts +2 -2
- package/IFrame/IFrame.d.ts +1 -1
- package/Icon/Icon.d.ts +1 -1
- package/IconButton/IconButton.d.ts +1 -1
- package/Image/Image.d.ts +1 -1
- package/ImageCrop/ImageCrop.d.ts +2 -2
- package/ImageEdit/ImageEdit.d.ts +2 -2
- package/ImageGallery/ImageGallery.d.ts +1 -1
- package/ImageList/ImageList.d.ts +1 -1
- package/ImageListItem/ImageListItem.d.ts +1 -1
- package/ImageListItemBox/ImageListItemBox.d.ts +1 -1
- package/Info/Info.d.ts +1 -1
- package/Interaction/Interaction.d.ts +2 -2
- package/Keyframes/Keyframes.d.ts +3 -3
- package/Label/Label.d.ts +1 -1
- package/Labels/Labels.d.ts +1 -1
- package/Line/Line.d.ts +6 -6
- package/LineChart/LineChart.d.ts +1 -1
- package/LineChartItem/LineChartItem.d.ts +1 -1
- package/LinearMeter/LinearMeter.d.ts +1 -1
- package/LinearProgress/LinearProgress.d.ts +1 -1
- package/Link/Link.d.ts +1 -1
- package/Links/Links.d.ts +2 -2
- package/List/List.d.ts +1 -1
- package/ListItem/ListItem.d.ts +1 -1
- package/ListSubheader/ListSubheader.d.ts +1 -1
- package/MainProgress/MainProgress.d.ts +3 -3
- package/Markdown/Markdown.d.ts +1 -1
- package/Masonry/Masonry.d.ts +1 -1
- package/Medias/Medias.d.ts +3 -3
- package/Menu/Menu.d.ts +1 -1
- package/MenuDesktop/MenuDesktop.d.ts +3 -3
- package/MenuItem/MenuItem.d.ts +1 -1
- package/Meta/Meta.d.ts +1 -1
- package/Modal/Modal.d.ts +1 -1
- package/ModalFooter/ModalFooter.d.ts +1 -1
- package/ModalHeader/ModalHeader.d.ts +1 -1
- package/ModalIcon/ModalIcon.d.ts +1 -1
- package/ModalMain/ModalMain.d.ts +1 -1
- package/ModalText/ModalText.d.ts +1 -1
- package/ModalTitle/ModalTitle.d.ts +1 -1
- package/MoreOptions/MoreOptions.d.ts +1 -1
- package/Move/Move.d.ts +1 -1
- package/NavigationBar/NavigationBar.d.ts +2 -2
- package/NavigationDrawer/NavigationDrawer.d.ts +1 -1
- package/NavigationItem/NavigationItem.d.ts +2 -2
- package/NavigationRail/NavigationRail.d.ts +1 -1
- package/NotFound/NotFound.d.ts +1 -1
- package/NumericTextField/NumericTextField.d.ts +1 -1
- package/Page/Page.d.ts +2 -2
- package/PageTransition/PageTransition.d.ts +1 -1
- package/Pagination/Pagination.d.ts +1 -1
- package/PaginationItem/PaginationItem.d.ts +1 -1
- package/Parallax/Parallax.d.ts +2 -2
- package/Path/Path.d.ts +1 -1
- package/PieChart/PieChart.d.ts +1 -1
- package/Placeholder/Placeholder.d.ts +1 -1
- package/Portal/Portal.d.ts +1 -1
- package/Properties/Properties.d.ts +2 -2
- package/Property/Property.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/Reset/Reset.d.ts +1 -1
- package/Reveal/Reveal.d.ts +1 -1
- package/RichTextEditor/RichTextEditor.d.ts +1 -1
- package/RoundMeter/RoundMeter.d.ts +1 -1
- package/RoundProgress/RoundProgress.d.ts +1 -1
- package/ScatterChart/ScatterChart.d.ts +1 -1
- package/ScatterChartItem/ScatterChartItem.d.ts +1 -1
- package/ScreenCapture/ScreenCapture.d.ts +2 -2
- package/Section/Section.d.ts +2 -2
- package/SectionAction/SectionAction.d.ts +1 -1
- package/SectionBoxes/SectionBoxes.d.ts +2 -2
- package/SectionCards/SectionCards.d.ts +2 -2
- package/SectionCarousel/SectionCarousel.d.ts +2 -2
- package/SectionContact/SectionContact.d.ts +1 -1
- package/SectionImageGallery/SectionImageGallery.d.ts +1 -1
- package/SectionLogos/SectionLogos.d.ts +1 -1
- package/SectionMedia/SectionMedia.d.ts +1 -1
- package/SectionReviews/SectionReviews.d.ts +2 -2
- package/SectionTextMedia/SectionTextMedia.d.ts +1 -1
- package/SectionTimeline/SectionTimeline.d.ts +2 -2
- package/SectionWatch/SectionWatch.d.ts +1 -1
- package/Select/Select.d.ts +1 -1
- package/Share/Share.d.ts +1 -1
- package/Slide/Slide.d.ts +1 -1
- package/Slider/Slider.d.ts +2 -2
- package/SmartTextField/SmartTextField.d.ts +1 -1
- package/Snackbar/Snackbar.d.ts +1 -1
- package/Snackbars/Context.d.ts +1 -1
- package/Snackbars/Snackbars.d.ts +2 -2
- package/Space/Space.d.ts +1 -1
- package/SpeechToText/SpeechToText.d.ts +1 -1
- package/SpeedDial/SpeedDial.d.ts +1 -1
- package/SpeedDialItem/SpeedDialItem.d.ts +1 -1
- package/SpyScroll/SpyScroll.d.ts +1 -1
- package/Step/Step.d.ts +1 -1
- package/Stepper/Stepper.d.ts +1 -1
- package/Surface/Surface.d.ts +1 -1
- package/Switch/Switch.d.ts +1 -1
- package/Tab/Tab.d.ts +1 -1
- package/Table/Table.d.ts +1 -1
- package/TableBody/TableBody.d.ts +1 -1
- package/TableCell/TableCell.d.ts +2 -2
- package/TableFooter/TableFooter.d.ts +1 -1
- package/TableHead/TableHead.d.ts +1 -1
- package/TableHeader/TableHeader.d.ts +1 -1
- package/TablePagination/TablePagination.d.ts +1 -1
- package/TableRow/TableRow.d.ts +1 -1
- package/Tabs/Tabs.d.ts +1 -1
- package/Text/Text.d.ts +1 -1
- package/TextField/TextField.d.ts +1 -1
- package/TextToSpeech/TextToSpeech.d.ts +1 -1
- package/TimePicker/TimePicker.d.ts +3 -3
- package/TimeRangePicker/TimeRangePicker.d.ts +1 -1
- package/Timeline/Timeline.d.ts +1 -1
- package/TimelineItem/TimelineItem.d.ts +1 -1
- package/Timer/Timer.d.ts +1 -1
- package/ToggleButton/ToggleButton.d.ts +1 -1
- package/ToggleButtons/ToggleButtons.d.ts +1 -1
- package/Tooltip/Tooltip.d.ts +1 -1
- package/TopAppBar/TopAppBar.d.ts +1 -1
- package/Transition/Transition.d.ts +3 -3
- package/Transitions/Transitions.d.ts +2 -2
- package/Tree/Tree.d.ts +1 -1
- package/Type/Type.d.ts +1 -1
- package/VideoPlayer/VideoPlayer.d.ts +1 -1
- package/ViewSplit/ViewSplit.d.ts +1 -1
- package/Watch/Watch.d.ts +1 -1
- package/Weather/Weather.d.ts +4 -4
- package/Whiteboard/Whiteboard.d.ts +5 -5
- package/Widgets/Widgets.d.ts +2 -2
- package/WindowSplit/WindowSplit.d.ts +1 -1
- package/Zoom/Zoom.d.ts +1 -1
- package/esm/CalendarViews/CalendarViews.js +1 -1
- package/esm/index.js +1 -1
- package/package.json +1 -1
- package/types.d.ts +27 -27
- package/useForm/useForm.d.ts +2 -2
- package/useForm/validate.d.ts +12 -12
- package/useLocation/useLocation.d.ts +1 -1
- package/useMediaQuery/useMediaQuery.d.ts +1 -1
- package/useScroll/useScroll.d.ts +2 -2
- package/useSwipe/useSwipe.d.ts +2 -2
- package/useVisible/useVisible.d.ts +2 -2
@@ -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 type ISpeechToText = Omit<ILine, 'onChange'> & {
|
4
|
+
export declare type ISpeechToText = Omit<ILine, 'onChange'> & {
|
5
5
|
SpeechRecognition?: any;
|
6
6
|
continuous?: boolean;
|
7
7
|
grammars?: any;
|
package/SpeedDial/SpeedDial.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ILine } from '../Line/Line';
|
3
3
|
import { IVersion, IElement, IElementReference, IPropsAny } from '../types';
|
4
|
-
export type ISpeedDial = Omit<ILine, 'direction'> & {
|
4
|
+
export declare type ISpeedDial = Omit<ILine, 'direction'> & {
|
5
5
|
version?: IVersion;
|
6
6
|
open?: boolean;
|
7
7
|
openDefault?: boolean;
|
@@ -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 type ISpeedDialItem = IIconButton & {
|
4
|
+
export declare type ISpeedDialItem = IIconButton & {
|
5
5
|
open?: boolean;
|
6
6
|
name?: IElement;
|
7
7
|
label?: IElement;
|
package/SpyScroll/SpyScroll.d.ts
CHANGED
package/Step/Step.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 type IStep = ILine & {
|
4
|
+
export declare type IStep = ILine & {
|
5
5
|
version?: IVersion;
|
6
6
|
iconColor?: IColor;
|
7
7
|
iconColorActive?: IColor;
|
package/Stepper/Stepper.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, IPropsAny } from '../types';
|
4
|
-
export type IStepper = ILine & {
|
4
|
+
export declare type IStepper = ILine & {
|
5
5
|
version?: IVersion;
|
6
6
|
iconColor?: IColor;
|
7
7
|
iconColorActive?: IColor;
|
package/Surface/Surface.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IBaseElement, IVersion, IElevation, IPropsAny } from '../types';
|
3
|
-
export type ISurface = IBaseElement & {
|
3
|
+
export declare type ISurface = IBaseElement & {
|
4
4
|
version?: IVersion;
|
5
5
|
elevation?: IElevation;
|
6
6
|
backgroundOpacity?: number;
|
package/Switch/Switch.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IBaseElement, IRef, IElement } from '../types';
|
3
|
-
export type ISwitch = Omit<IBaseElement, 'onChange'> & {
|
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 type ITab = Omit<ISurface, 'version' | 'onChange'> & {
|
4
|
+
export declare type ITab = Omit<ISurface, 'version' | 'onChange'> & {
|
5
5
|
version?: 'primary' | 'secondary';
|
6
6
|
size?: 'small' | 'regular' | 'large';
|
7
7
|
value?: any;
|
package/Table/Table.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, IElementReference } from '../types';
|
4
|
-
export type ITable = ISurface & {
|
4
|
+
export declare type ITable = ISurface & {
|
5
5
|
header?: IElement;
|
6
6
|
footer?: IElement;
|
7
7
|
WrapperComponentProps?: IPropsAny;
|
package/TableBody/TableBody.d.ts
CHANGED
package/TableCell/TableCell.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { TLineAlign, TLineJustify } from '../Line/Line';
|
3
3
|
import { IBaseElement, IPropsAny } from '../types';
|
4
|
-
export type ITableCellSort = 'asc' | 'desc';
|
5
|
-
export type ITableCell = IBaseElement & {
|
4
|
+
export declare type ITableCellSort = 'asc' | 'desc';
|
5
|
+
export declare type ITableCell = IBaseElement & {
|
6
6
|
sort?: boolean;
|
7
7
|
sortedByDefault?: ITableCellSort;
|
8
8
|
sortedBy?: ITableCellSort;
|
package/TableHead/TableHead.d.ts
CHANGED
@@ -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 type ITableRow = Omit<ILine, 'onChange'> & {
|
4
|
+
export declare type ITableRow = Omit<ILine, 'onChange'> & {
|
5
5
|
version?: IVersion;
|
6
6
|
elevation?: boolean;
|
7
7
|
page?: number;
|
package/TableRow/TableRow.d.ts
CHANGED
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 type ITabs = Omit<ISurface, 'version' | 'onChange'> & {
|
5
|
+
export declare type ITabs = Omit<ISurface, 'version' | 'onChange'> & {
|
6
6
|
version?: 'primary' | 'secondary';
|
7
7
|
value?: any;
|
8
8
|
valueDefault?: any;
|
package/Text/Text.d.ts
CHANGED
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 type ITextField = Omit<IBaseElement, 'onChange'> & {
|
4
|
+
export declare type ITextField = Omit<IBaseElement, 'onChange'> & {
|
5
5
|
version?: IVersion;
|
6
6
|
rootRef?: IRef;
|
7
7
|
valueDefault?: string | number;
|
@@ -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 type ITextToSpeech = ILine & {
|
4
|
+
export declare type ITextToSpeech = ILine & {
|
5
5
|
read?: string;
|
6
6
|
speechSynthesisUtterance?: any;
|
7
7
|
language?: string;
|
@@ -3,9 +3,9 @@ import { OnesyDate } from '@onesy/date';
|
|
3
3
|
import { TClockUnit } from '../Clock/Clock';
|
4
4
|
import { IAdvancedTextField } from '../AdvancedTextField/AdvancedTextField';
|
5
5
|
import { IValueBreakpoints, IElementReference, IPropsAny } from '../types';
|
6
|
-
export type TTimePickerValue = OnesyDate | [OnesyDate, OnesyDate];
|
7
|
-
export type TTimePickerSelecting = TClockUnit | [TClockUnit, TClockUnit];
|
8
|
-
export type ITimePicker = Omit<IAdvancedTextField, 'version' | 'onChange'> & {
|
6
|
+
export declare type TTimePickerValue = OnesyDate | [OnesyDate, OnesyDate];
|
7
|
+
export declare type TTimePickerSelecting = TClockUnit | [TClockUnit, TClockUnit];
|
8
|
+
export declare type ITimePicker = Omit<IAdvancedTextField, 'version' | 'onChange'> & {
|
9
9
|
version?: 'auto' | 'mobile' | 'desktop';
|
10
10
|
value?: TTimePickerValue;
|
11
11
|
valueDefault?: TTimePickerValue;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ITimePicker } from '../TimePicker/TimePicker';
|
3
|
-
export type ITimeRangePicker = ITimePicker & {};
|
3
|
+
export declare type ITimeRangePicker = ITimePicker & {};
|
4
4
|
declare const TimeRangePicker: React.FC<ITimeRangePicker>;
|
5
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
3
|
import { IElement, IPropsAny, IElementReference } from '../types';
|
4
|
-
export type ITimelineItem = ILine & {
|
4
|
+
export declare type ITimelineItem = ILine & {
|
5
5
|
orientation?: 'vertical' | 'horizontal';
|
6
6
|
start?: IElement;
|
7
7
|
end?: IElement;
|
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 type ITimer = ISurface & {
|
4
|
+
export declare type ITimer = ISurface & {
|
5
5
|
renderValue?: (value: string) => any;
|
6
6
|
icon?: boolean;
|
7
7
|
onStart?: (event: React.MouseEvent<any>) => any;
|
package/Tooltip/Tooltip.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IModal } from '../Modal/Modal';
|
3
3
|
import { IElement, IElementReference, IHTMLElement, IMethodTransition, IPropsAny } from '../types';
|
4
|
-
export type ITooltip = Omit<IModal, 'maxWidth'> & {
|
4
|
+
export declare type ITooltip = Omit<IModal, 'maxWidth'> & {
|
5
5
|
open?: boolean;
|
6
6
|
openDefault?: boolean;
|
7
7
|
name?: IElement;
|
package/TopAppBar/TopAppBar.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ISurface } from '../Surface/Surface';
|
3
3
|
import { IElement } from '../types';
|
4
|
-
export type ITopAppBar = Omit<ISurface, 'version'> & {
|
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
7
|
center?: boolean;
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { TTransitionsDurationProperties } from '@onesy/style-react';
|
3
3
|
import { IBaseElement } from '../types';
|
4
|
-
export type TTransitionStatus = 'appended' | 'add' | 'adding' | 'added' | 'enter' | 'entering' | 'entered' | 'exit' | 'exiting' | 'exited' | 'removed';
|
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 type ITransitionDelay = {
|
6
|
+
export declare type ITransitionDelay = {
|
7
7
|
default?: number;
|
8
8
|
add?: number;
|
9
9
|
enter?: number;
|
10
10
|
exit?: number;
|
11
11
|
};
|
12
|
-
export type ITransition = Omit<IBaseElement, 'className'> & {
|
12
|
+
export declare type ITransition = Omit<IBaseElement, 'className'> & {
|
13
13
|
in?: boolean;
|
14
14
|
name?: string;
|
15
15
|
className?: boolean;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IPropsAny } from '../types';
|
3
|
-
export type TTransitionsMode = 'in-out' | 'in-out-follow' | 'out-in';
|
4
|
-
export type ITransitions = {
|
3
|
+
export declare type TTransitionsMode = 'in-out' | 'in-out-follow' | 'out-in';
|
4
|
+
export declare type ITransitions = {
|
5
5
|
id?: string;
|
6
6
|
mode?: TTransitionsMode;
|
7
7
|
switch?: boolean;
|
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 type ITree = Omit<IBaseElement, 'onChange'> & {
|
3
|
+
export declare type ITree = Omit<IBaseElement, 'onChange'> & {
|
4
4
|
open?: boolean;
|
5
5
|
openDefault?: boolean;
|
6
6
|
version?: IVersion;
|
package/Type/Type.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { TTypographyItem } from '@onesy/style-react';
|
3
3
|
import { IBaseElement } from '../types';
|
4
|
-
export type IType = IBaseElement & {
|
4
|
+
export declare type IType = IBaseElement & {
|
5
5
|
responsive?: boolean;
|
6
6
|
priority?: 'primary' | 'secondary' | 'tertiary' | 'quaternary';
|
7
7
|
version?: TTypographyItem;
|
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 type IViewSplit = Omit<ILine, 'onChange'> & {
|
4
|
+
export declare type IViewSplit = Omit<ILine, 'onChange'> & {
|
5
5
|
valueDefault?: number;
|
6
6
|
value?: number;
|
7
7
|
onChange?: (value: number) => any;
|
package/Watch/Watch.d.ts
CHANGED
@@ -2,7 +2,7 @@ import React from 'react';
|
|
2
2
|
import { OnesyDate } from '@onesy/date';
|
3
3
|
import { ISurface } from '../Surface/Surface';
|
4
4
|
import { IElement, IPropsAny } from '../types';
|
5
|
-
export type IWatch = Omit<ISurface, 'version'> & {
|
5
|
+
export declare type IWatch = Omit<ISurface, 'version'> & {
|
6
6
|
version?: 'regular' | 'analog' | 'modern' | 'minimal';
|
7
7
|
start?: boolean;
|
8
8
|
timeVisible?: boolean;
|
package/Weather/Weather.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ISurface } from '../Surface/Surface';
|
3
3
|
import { IElementReference, IPropsAny } from '../types';
|
4
|
-
export type TWeatherDayTime = 'day' | 'night';
|
5
|
-
export type TWeather = 'clear' | 'partly clear' | 'rainy' | 'partly rainy' | 'snowy' | 'partly snowy';
|
6
|
-
export type TTemperature = number;
|
7
|
-
export type IWeather = ISurface & {
|
4
|
+
export declare type TWeatherDayTime = 'day' | 'night';
|
5
|
+
export declare type TWeather = 'clear' | 'partly clear' | 'rainy' | 'partly rainy' | 'snowy' | 'partly snowy';
|
6
|
+
export declare type TTemperature = number;
|
7
|
+
export declare type IWeather = ISurface & {
|
8
8
|
shadow?: boolean;
|
9
9
|
dayTime?: TWeatherDayTime;
|
10
10
|
weather?: TWeather;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IBaseElement } from '../types';
|
3
|
-
export type IWhiteboardAction = {
|
3
|
+
export declare type IWhiteboardAction = {
|
4
4
|
v: 'a' | 'r';
|
5
5
|
i: IWhiteboardItem | IWhiteboardItem[];
|
6
6
|
};
|
7
|
-
export type IWhiteboardTool = 'pen' | 'eraser' | 'pan' | 'zoom' | 'select' | 'circle' | 'rectangle' | 'triangle' | 'line' | 'line-arrow' | 'text' | 'image';
|
8
|
-
export type IWhiteboardValue = IWhiteboardItem[];
|
9
|
-
export type IWhiteboard = Omit<IBaseElement, 'onChange'> & {
|
7
|
+
export declare type IWhiteboardTool = 'pen' | 'eraser' | 'pan' | 'zoom' | 'select' | 'circle' | 'rectangle' | 'triangle' | 'line' | 'line-arrow' | 'text' | 'image';
|
8
|
+
export declare type IWhiteboardValue = IWhiteboardItem[];
|
9
|
+
export declare type IWhiteboard = Omit<IBaseElement, 'onChange'> & {
|
10
10
|
valueDefault?: IWhiteboardValue;
|
11
11
|
onChange?: (value: IWhiteboardValue) => any;
|
12
12
|
minZoom?: number;
|
@@ -14,7 +14,7 @@ export type IWhiteboard = Omit<IBaseElement, 'onChange'> & {
|
|
14
14
|
grid?: boolean;
|
15
15
|
settings?: any;
|
16
16
|
};
|
17
|
-
export type IWhiteboardItem = {
|
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[];
|
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 type IWidgetsValue = {
|
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
8
|
};
|
9
|
-
export type IWidgets = IBaseElement & {
|
9
|
+
export declare type IWidgets = IBaseElement & {
|
10
10
|
widgets?: IElement;
|
11
11
|
position?: 'top' | 'bottom';
|
12
12
|
move?: boolean;
|
@@ -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 type IWindowSplit = Omit<ILine, 'onChange'> & {
|
4
|
+
export declare type IWindowSplit = Omit<ILine, 'onChange'> & {
|
5
5
|
valueDefault?: number;
|
6
6
|
value?: number;
|
7
7
|
onChange?: (value: number) => any;
|
package/Zoom/Zoom.d.ts
CHANGED
@@ -342,7 +342,7 @@ const CalendarViews = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
342
342
|
}, /*#__PURE__*/React.createElement(IconButton, _extends({
|
343
343
|
onClick: onNext
|
344
344
|
}, iconButtonProps), /*#__PURE__*/React.createElement(IconNext, iconProps)))), /*#__PURE__*/React.createElement(Type, _extends({
|
345
|
-
version: "
|
345
|
+
version: "h3",
|
346
346
|
weight: 300,
|
347
347
|
whiteSpace: "nowrap"
|
348
348
|
}, TypeDateFormattedProps), formattedDate), endLeft), /*#__PURE__*/React.createElement(Line, {
|
package/esm/index.js
CHANGED
package/package.json
CHANGED
package/types.d.ts
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { IBreakpoint, TPaletteVersion } from '@onesy/style-react';
|
3
|
-
export type IPoint = [number, number];
|
4
|
-
export type ITonal = true | false | 'secondary';
|
5
|
-
type RGB = `rgb(${number}, ${number}, ${number})`;
|
6
|
-
type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
|
7
|
-
type HSL = `hsl(${number}, ${number}, ${number})`;
|
8
|
-
type HSLA = `hsla(${number}, ${number}, ${number}, ${number})`;
|
9
|
-
type HEX = `#${string}`;
|
10
|
-
type Color = RGB | RGBA | HSL | HSLA | HEX;
|
11
|
-
export type IColor = 'default' | 'themed' | 'inverted' | 'inherit' | TPaletteVersion | Color;
|
12
|
-
export type IVersion = 'filled' | 'outlined' | 'outlined-without-background' | 'text';
|
13
|
-
export type ISize = 'small' | 'regular' | 'large';
|
14
|
-
export type ISizeExtended = 'very small' | 'small' | 'regular' | 'medium' | 'large' | 'very large';
|
15
|
-
export type ISizeAny = ISize | number;
|
16
|
-
export type ISizeExtendedAny = ISizeExtended | number;
|
17
|
-
export type IElevation = 0 | 1 | 2 | 3 | 4 | 6 | 8 | 9 | 12 | 16 | 24;
|
18
|
-
export type IElementReference = string | React.FC<any> | (React.ForwardRefExoticComponent<any>);
|
19
|
-
export type IElement = React.ReactNode | React.ReactNode[] | React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
20
|
-
export type IElementAny = IElement | string | number | boolean | null | undefined;
|
21
|
-
export type IHTMLElement = Element | HTMLElement;
|
22
|
-
export type IPropsAny = Record<string, any>;
|
23
|
-
export type IStyle = React.CSSProperties | undefined;
|
24
|
-
export type IChildren = React.ReactNode | React.ReactNode[];
|
25
|
-
export type IRef = React.MutableRefObject<any>;
|
26
|
-
export type IBaseElement<P = {}, T = HTMLElement> = Omit<React.HTMLAttributes<T>, 'onClick' | 'onChange' | 'onInput' | 'onKeyDown' | 'onMouseEnter' | 'onMouseLeave' | 'onDoubleClick' | 'onSubmit'> & {
|
3
|
+
export declare type IPoint = [number, number];
|
4
|
+
export declare type ITonal = true | false | 'secondary';
|
5
|
+
declare type RGB = `rgb(${number}, ${number}, ${number})`;
|
6
|
+
declare type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
|
7
|
+
declare type HSL = `hsl(${number}, ${number}, ${number})`;
|
8
|
+
declare type HSLA = `hsla(${number}, ${number}, ${number}, ${number})`;
|
9
|
+
declare type HEX = `#${string}`;
|
10
|
+
declare type Color = RGB | RGBA | HSL | HSLA | HEX;
|
11
|
+
export declare type IColor = 'default' | 'themed' | 'inverted' | 'inherit' | TPaletteVersion | Color;
|
12
|
+
export declare type IVersion = 'filled' | 'outlined' | 'outlined-without-background' | 'text';
|
13
|
+
export declare type ISize = 'small' | 'regular' | 'large';
|
14
|
+
export declare type ISizeExtended = 'very small' | 'small' | 'regular' | 'medium' | 'large' | 'very large';
|
15
|
+
export declare type ISizeAny = ISize | number;
|
16
|
+
export declare type ISizeExtendedAny = ISizeExtended | number;
|
17
|
+
export declare type IElevation = 0 | 1 | 2 | 3 | 4 | 6 | 8 | 9 | 12 | 16 | 24;
|
18
|
+
export declare type IElementReference = string | React.FC<any> | (React.ForwardRefExoticComponent<any>);
|
19
|
+
export declare type IElement = React.ReactNode | React.ReactNode[] | React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
20
|
+
export declare type IElementAny = IElement | string | number | boolean | null | undefined;
|
21
|
+
export declare type IHTMLElement = Element | HTMLElement;
|
22
|
+
export declare type IPropsAny = Record<string, any>;
|
23
|
+
export declare type IStyle = React.CSSProperties | undefined;
|
24
|
+
export declare type IChildren = React.ReactNode | React.ReactNode[];
|
25
|
+
export declare type IRef = React.MutableRefObject<any>;
|
26
|
+
export declare type IBaseElement<P = {}, T = HTMLElement> = Omit<React.HTMLAttributes<T>, 'onClick' | 'onChange' | 'onInput' | 'onKeyDown' | 'onMouseEnter' | 'onMouseLeave' | 'onDoubleClick' | 'onSubmit'> & {
|
27
27
|
tonal?: ITonal;
|
28
28
|
color?: IColor;
|
29
29
|
size?: ISizeAny;
|
@@ -41,9 +41,9 @@ export type IBaseElement<P = {}, T = HTMLElement> = Omit<React.HTMLAttributes<T>
|
|
41
41
|
Component?: any;
|
42
42
|
ref?: any;
|
43
43
|
} & P;
|
44
|
-
export type IMethodTransition = (element?: IHTMLElement) => any;
|
45
|
-
export type IValueBreakpoints = IBreakpoint | 'default';
|
46
|
-
export type IMediaObject = {
|
44
|
+
export declare type IMethodTransition = (element?: IHTMLElement) => any;
|
45
|
+
export declare type IValueBreakpoints = IBreakpoint | 'default';
|
46
|
+
export declare type IMediaObject = {
|
47
47
|
id?: string;
|
48
48
|
name?: string;
|
49
49
|
mime?: string;
|
package/useForm/useForm.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IValidateVales } from './validate';
|
3
|
-
export type IUseForm = {
|
3
|
+
export declare type IUseForm = {
|
4
4
|
values: IValidateVales;
|
5
5
|
validate?: (values: IValidateVales, form: any) => boolean;
|
6
6
|
rerenderOnUpdate?: boolean;
|
@@ -8,7 +8,7 @@ export type IUseForm = {
|
|
8
8
|
valueDefault?: any;
|
9
9
|
validDefault?: boolean;
|
10
10
|
};
|
11
|
-
export type IUseFormOnChangeOptions = {
|
11
|
+
export declare type IUseFormOnChangeOptions = {
|
12
12
|
rerenderOnUpdate?: boolean;
|
13
13
|
};
|
14
14
|
declare const useForm: (props: IUseForm) => {
|
package/useForm/validate.d.ts
CHANGED
@@ -1,31 +1,31 @@
|
|
1
1
|
import { TIsType, IOptions as IIsOptions } from '@onesy/utils/is';
|
2
2
|
import { TIsValidType, IOptions as IIsValidOptions } from '@onesy/utils/isValid';
|
3
|
-
export type IValidateOptions = {
|
3
|
+
export declare type IValidateOptions = {
|
4
4
|
message?: string;
|
5
5
|
uriDecode?: boolean;
|
6
6
|
parse?: boolean;
|
7
7
|
l?: any;
|
8
8
|
};
|
9
|
-
export type IValidateModelValueIs = {
|
9
|
+
export declare type IValidateModelValueIs = {
|
10
10
|
type?: TIsType;
|
11
11
|
options?: IIsOptions;
|
12
12
|
};
|
13
|
-
export type IValidateModelValueIsValid = {
|
13
|
+
export declare type IValidateModelValueIsValid = {
|
14
14
|
type?: TIsValidType;
|
15
15
|
options?: IIsValidOptions;
|
16
16
|
};
|
17
|
-
export type IValidateModelValueMethodOptions = {
|
17
|
+
export declare type IValidateModelValueMethodOptions = {
|
18
18
|
form: IForm;
|
19
19
|
property: string;
|
20
20
|
object: IValidateModelValue;
|
21
21
|
options: IValidateOptions;
|
22
22
|
};
|
23
|
-
export type IValidateModelValueMethod = (value: any, options: IValidateModelValueMethodOptions) => Promise<any> | any;
|
24
|
-
export type IValidateModelValueValidations = 'required' | 'is' | 'isValid' | 'of' | 'ofValid' | 'equal' | 'notEqual' | 'equalDeep' | 'notEqualDeep' | 'some' | 'in' | 'every' | 'properties' | 'notProperties' | 'min' | 'max' | 'length' | 'method';
|
25
|
-
export type IValidateModelMessages = {
|
23
|
+
export declare type IValidateModelValueMethod = (value: any, options: IValidateModelValueMethodOptions) => Promise<any> | any;
|
24
|
+
export declare type IValidateModelValueValidations = 'required' | 'is' | 'isValid' | 'of' | 'ofValid' | 'equal' | 'notEqual' | 'equalDeep' | 'notEqualDeep' | 'some' | 'in' | 'every' | 'properties' | 'notProperties' | 'min' | 'max' | 'length' | 'method';
|
25
|
+
export declare type IValidateModelMessages = {
|
26
26
|
[p in IValidateModelValueValidations]?: string;
|
27
27
|
};
|
28
|
-
export type IValidateModelValue = {
|
28
|
+
export declare type IValidateModelValue = {
|
29
29
|
name: string;
|
30
30
|
value?: any;
|
31
31
|
message?: string;
|
@@ -53,14 +53,14 @@ export type IValidateModelValue = {
|
|
53
53
|
capitalize?: boolean;
|
54
54
|
propertyNameUpdate?: (value: any) => string;
|
55
55
|
};
|
56
|
-
export type IUseFormValues = Record<string, IValidateModelValue>;
|
57
|
-
export type IForm = {
|
56
|
+
export declare type IUseFormValues = Record<string, IValidateModelValue>;
|
57
|
+
export declare type IForm = {
|
58
58
|
value: any;
|
59
59
|
values: IUseFormValues;
|
60
60
|
valid: boolean;
|
61
61
|
};
|
62
|
-
export type IValidateValidation = (property: IValidateModelValue, form: IForm) => void | Error | Promise<void | Error>;
|
63
|
-
export type IValidateVales = Record<string, IValidateModelValue>;
|
62
|
+
export declare type IValidateValidation = (property: IValidateModelValue, form: IForm) => void | Error | Promise<void | Error>;
|
63
|
+
export declare type IValidateVales = Record<string, IValidateModelValue>;
|
64
64
|
export declare const onValidateError: (options: IValidateOptions, model: IValidateModelValue, message?: any) => never;
|
65
65
|
declare const validate: (model: IValidateModelValue, property: string, form: IForm, options_?: IValidateOptions) => Promise<void>;
|
66
66
|
export default validate;
|