@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/Expand/Expand.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ITransition } from '..';
|
3
3
|
import { IPropsAny } from '../types';
|
4
|
-
export
|
4
|
+
export declare type IExpand = Omit<ITransition, 'className'> & {
|
5
5
|
value?: number;
|
6
6
|
expandSize?: number;
|
7
7
|
orientation?: 'veritcal' | 'horizontal';
|
8
8
|
WrapperProps?: IPropsAny;
|
9
9
|
className?: string;
|
10
|
-
}
|
10
|
+
};
|
11
11
|
declare const Expand: React.FC<IExpand>;
|
12
12
|
export default Expand;
|
package/Fab/Fab.d.ts
CHANGED
package/Fade/Fade.d.ts
CHANGED
@@ -1,12 +1,9 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ILine } from '../Line/Line';
|
3
|
-
import {
|
3
|
+
import { IRef, IElementReference, IPropsAny } from '../types';
|
4
4
|
export declare type TFileChooseValue = File | Array<File>;
|
5
|
-
export
|
6
|
-
tonal?: ITonal;
|
7
|
-
color?: IColor;
|
5
|
+
export declare type IFileChoose = ILine & {
|
8
6
|
inputRef?: IRef;
|
9
|
-
size?: ISize;
|
10
7
|
max?: number;
|
11
8
|
allowedTypes?: Array<string>;
|
12
9
|
files?: Array<File>;
|
@@ -23,6 +20,6 @@ export interface IFileChoose extends ILine {
|
|
23
20
|
inputProps?: IPropsAny;
|
24
21
|
WrapperProps?: IPropsAny;
|
25
22
|
ComponentProps?: IPropsAny;
|
26
|
-
}
|
23
|
+
};
|
27
24
|
declare const FileChoose: React.FC<IFileChoose>;
|
28
25
|
export default FileChoose;
|
package/Focus/Focus.d.ts
CHANGED
@@ -2,7 +2,6 @@ import React from 'react';
|
|
2
2
|
import { IBaseElement } from '../types';
|
3
3
|
export declare const matches: (value: Element) => any;
|
4
4
|
export declare const queryMatchFocusable = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]):not([disabled]), details:not([disabled]), summary:not(:disabled)";
|
5
|
-
export
|
6
|
-
}
|
5
|
+
export declare type IFocus = IBaseElement & {};
|
7
6
|
declare const Focus: React.FC<IFocus>;
|
8
7
|
export default Focus;
|
package/Form/Form.d.ts
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ILine } from '../Line/Line';
|
3
|
-
import { IElement
|
4
|
-
export
|
3
|
+
import { IElement } from '../types';
|
4
|
+
export declare type IForm = ILine & {
|
5
5
|
accordion?: boolean;
|
6
6
|
divider?: boolean;
|
7
7
|
name?: string | IElement;
|
8
8
|
description?: string | IElement;
|
9
|
-
size?: ISize;
|
10
9
|
start?: any;
|
11
10
|
end?: any;
|
12
11
|
footer?: IElement;
|
@@ -20,6 +19,6 @@ export interface IForm extends ILine {
|
|
20
19
|
EndProps?: any;
|
21
20
|
AccordionProps?: any;
|
22
21
|
AccordionMainProps?: any;
|
23
|
-
}
|
22
|
+
};
|
24
23
|
declare const Form: React.FC<IForm>;
|
25
24
|
export default Form;
|
package/FormRow/FormRow.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ILine } from '../Line/Line';
|
3
3
|
import { IElement } from '../types';
|
4
|
-
export
|
4
|
+
export declare type IFormRow = ILine & {
|
5
5
|
name?: string | IElement;
|
6
6
|
description?: string | IElement;
|
7
7
|
start?: any;
|
@@ -15,6 +15,6 @@ export interface IFormRow extends ILine {
|
|
15
15
|
AsideProps?: any;
|
16
16
|
StartProps?: any;
|
17
17
|
EndProps?: any;
|
18
|
-
}
|
18
|
+
};
|
19
19
|
declare const FormRow: React.FC<IFormRow>;
|
20
20
|
export default FormRow;
|
package/Forms/Forms.d.ts
CHANGED
package/Frame/Frame.d.ts
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ILine } from '../Line/Line';
|
3
|
-
export
|
3
|
+
export declare type IFrame = ILine & {
|
4
4
|
url?: string;
|
5
5
|
src?: string;
|
6
6
|
value?: any;
|
7
7
|
startOptions?: any;
|
8
8
|
endOptions?: any;
|
9
9
|
IconMobile?: any;
|
10
|
-
|
10
|
+
IconTablet?: any;
|
11
11
|
IconLaptop?: any;
|
12
12
|
IconDesktop?: any;
|
13
13
|
iframeProps?: any;
|
@@ -16,6 +16,6 @@ export interface IFrame extends ILine {
|
|
16
16
|
OptionsProps?: any;
|
17
17
|
OptionsWrapperProps?: any;
|
18
18
|
WrapperProps?: any;
|
19
|
-
}
|
19
|
+
};
|
20
20
|
declare const Frame: React.FC<IFrame>;
|
21
21
|
export default Frame;
|
package/Grid/Grid.d.ts
CHANGED
@@ -2,13 +2,16 @@ import React from 'react';
|
|
2
2
|
import { ILine } from '../Line/Line';
|
3
3
|
import { IValueBreakpoints, IPropsAny } from '../types';
|
4
4
|
export declare type IGridValues = Partial<Record<IValueBreakpoints, number>>;
|
5
|
-
export
|
5
|
+
export declare type IGrid = ILine & {
|
6
6
|
auto?: boolean;
|
7
7
|
columns?: number | IGridValues;
|
8
|
+
parentGap?: any;
|
9
|
+
parentRowGap?: any;
|
10
|
+
parentColumnGap?: any;
|
8
11
|
offsets?: IGridValues;
|
9
12
|
responsive?: boolean;
|
10
13
|
values?: IGridValues;
|
11
14
|
RootProps?: IPropsAny;
|
12
|
-
}
|
15
|
+
};
|
13
16
|
declare const Grid: React.FC<IGrid>;
|
14
17
|
export default Grid;
|
package/Grid/Grid.js
CHANGED
@@ -66,7 +66,8 @@ const Grid = react_1.default.forwardRef((props_, ref) => {
|
|
66
66
|
const theme = (0, style_react_1.useOnesyTheme)();
|
67
67
|
const props = react_1.default.useMemo(() => { var _a, _b, _c, _d, _e, _f, _g, _h; return (Object.assign(Object.assign(Object.assign({}, (_d = (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.ui) === null || _a === void 0 ? void 0 : _a.elements) === null || _b === void 0 ? void 0 : _b.all) === null || _c === void 0 ? void 0 : _c.props) === null || _d === void 0 ? void 0 : _d.default), (_h = (_g = (_f = (_e = theme === null || theme === void 0 ? void 0 : theme.ui) === null || _e === void 0 ? void 0 : _e.elements) === null || _f === void 0 ? void 0 : _f.onesyGrid) === null || _g === void 0 ? void 0 : _g.props) === null || _h === void 0 ? void 0 : _h.default), props_)); }, [props_]);
|
68
68
|
const Line = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Line) || Line_1.default; }, [theme]);
|
69
|
-
const { auto, wrap, columns = 12, gap: gap_, rowGap: rowGap_, columnGap: columnGap_, parentGap, parentRowGap, parentColumnGap, direction: direction_, offsets, values, responsive: responsive_, RootProps, Component = 'div', style, className, children } = props,
|
69
|
+
const { auto, wrap, columns = 12, gap: gap_, rowGap: rowGap_, columnGap: columnGap_, parentGap, parentRowGap, parentColumnGap, direction: direction_, offsets, values, responsive: responsive_, RootProps, Component = 'div', style, className, children } = props, otherProps = __rest(props, ["auto", "wrap", "columns", "gap", "rowGap", "columnGap", "parentGap", "parentRowGap", "parentColumnGap", "direction", "offsets", "values", "responsive", "RootProps", "Component", "style", "className", "children"]);
|
70
|
+
const other = otherProps;
|
70
71
|
const { classes } = useStyle();
|
71
72
|
const refs = {
|
72
73
|
root: react_1.default.useRef(undefined),
|
package/Grow/Grow.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { IBaseElement
|
3
|
-
export
|
2
|
+
import { IBaseElement } from '../types';
|
3
|
+
export declare type IHTMLCanvasOnChangeValue = {
|
4
4
|
zoom: number;
|
5
5
|
top: number;
|
6
6
|
left: number;
|
@@ -12,9 +12,8 @@ export interface IHTMLCanvasOnChangeValue {
|
|
12
12
|
width: number;
|
13
13
|
height: number;
|
14
14
|
};
|
15
|
-
}
|
16
|
-
export
|
17
|
-
size?: ISize;
|
15
|
+
};
|
16
|
+
export declare type IHTMLCanvas = IBaseElement & {
|
18
17
|
minZoom?: number;
|
19
18
|
maxZoom?: number;
|
20
19
|
showGuidelinesDefault?: boolean;
|
@@ -29,15 +28,13 @@ export interface IHTMLCanvas extends IBaseElement {
|
|
29
28
|
onMouseDown?: (event: MouseEvent) => any;
|
30
29
|
onTouchStart?: (event: TouchEvent) => any;
|
31
30
|
noActions?: boolean;
|
32
|
-
|
31
|
+
noGuideLines?: boolean;
|
33
32
|
noFitCenter?: boolean;
|
34
33
|
noZoomMenu?: boolean;
|
35
34
|
methods?: any;
|
36
|
-
disabled?: boolean;
|
37
35
|
IconCenter?: any;
|
38
36
|
ContainerProps?: any;
|
39
37
|
IconButtonProps?: any;
|
40
|
-
|
41
|
-
}
|
38
|
+
};
|
42
39
|
declare const HTMLCanvas: React.FC<IHTMLCanvas>;
|
43
40
|
export default HTMLCanvas;
|
package/IFrame/IFrame.d.ts
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ILine } from '../Line/Line';
|
3
3
|
import { IPropsAny } from '../types';
|
4
|
-
export
|
4
|
+
export declare type IIFrame = ILine & {
|
5
5
|
id?: string;
|
6
|
+
src?: string;
|
6
7
|
WrapperProps?: IPropsAny;
|
7
|
-
}
|
8
|
+
};
|
8
9
|
declare const IFrame: React.FC<IIFrame>;
|
9
10
|
export default IFrame;
|
package/Icon/Icon.d.ts
CHANGED
@@ -1,17 +1,14 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { TTone } from '@onesy/style-react';
|
3
|
-
import { IBaseElement
|
3
|
+
import { IBaseElement } from '../types';
|
4
4
|
export declare const rtl_icons: string[];
|
5
|
-
export
|
6
|
-
tonal?: ITonal;
|
7
|
-
color?: IColor;
|
5
|
+
export declare type IIcon = IBaseElement & {
|
8
6
|
size?: 'very small' | 'small' | 'regular' | 'medium' | 'large' | 'very large' | number;
|
9
7
|
tone?: TTone;
|
10
8
|
viewBox?: string;
|
11
9
|
name?: string;
|
12
10
|
short_name?: string;
|
13
11
|
noRtl?: boolean;
|
14
|
-
|
15
|
-
}
|
12
|
+
};
|
16
13
|
declare const Icon: React.FC<IIcon>;
|
17
14
|
export default Icon;
|
package/Image/Image.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IUseVisible } from '../useVisible/useVisible';
|
3
|
-
import { IBaseElement,
|
4
|
-
export
|
5
|
-
tonal?: ITonal;
|
6
|
-
color?: IColor;
|
3
|
+
import { IBaseElement, IPropsAny } from '../types';
|
4
|
+
export declare type IImage = IBaseElement & {
|
7
5
|
src?: string;
|
6
|
+
url?: string;
|
7
|
+
urlSmall?: string;
|
8
8
|
sources?: Array<string>;
|
9
9
|
alt?: string;
|
10
10
|
description?: string;
|
@@ -22,6 +22,6 @@ export interface IImage extends IBaseElement {
|
|
22
22
|
NoImageProps?: IPropsAny;
|
23
23
|
DescriptionProps?: IPropsAny;
|
24
24
|
UseVisibleProps?: IUseVisible;
|
25
|
-
}
|
25
|
+
};
|
26
26
|
declare const Image: React.FC<IImage>;
|
27
27
|
export default Image;
|
package/Image/Image.js
CHANGED
@@ -115,7 +115,8 @@ const Image = react_1.default.forwardRef((props_, ref) => {
|
|
115
115
|
const Line = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Line) || Line_1.default; }, [theme]);
|
116
116
|
const Type = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Type) || Type_1.default; }, [theme]);
|
117
117
|
const Surface = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Surface) || Surface_1.default; }, [theme]);
|
118
|
-
const { tonal = true, color = 'primary', src, url, urlSmall, sources, alt, description, alignDescription = 'start', width, height, align, responsive = true, lazyLoad = true, fullWidth, maxWidth, loading, RootProps, NoImageProps, DescriptionProps, UseVisibleProps, className, style, children: children_ } = props,
|
118
|
+
const { tonal = true, color = 'primary', src, url, urlSmall, sources, alt, description, alignDescription = 'start', width, height, align, responsive = true, lazyLoad = true, fullWidth, maxWidth, loading, RootProps, NoImageProps, DescriptionProps, UseVisibleProps, className, style, children: children_ } = props, otherProps = __rest(props, ["tonal", "color", "src", "url", "urlSmall", "sources", "alt", "description", "alignDescription", "width", "height", "align", "responsive", "lazyLoad", "fullWidth", "maxWidth", "loading", "RootProps", "NoImageProps", "DescriptionProps", "UseVisibleProps", "className", "style", "children"]);
|
119
|
+
const other = otherProps;
|
119
120
|
const { classes } = useStyle();
|
120
121
|
let Component = 'img';
|
121
122
|
const [root, setRoot] = react_1.default.useState();
|
package/ImageCrop/ImageCrop.d.ts
CHANGED
@@ -6,7 +6,7 @@ export declare type TImageCrop = {
|
|
6
6
|
width?: number;
|
7
7
|
height?: number;
|
8
8
|
};
|
9
|
-
export
|
9
|
+
export declare type IImageCrop = IBaseElement & {
|
10
10
|
image?: string | HTMLCanvasElement;
|
11
11
|
minWidth?: number;
|
12
12
|
minHeight?: number;
|
@@ -23,6 +23,6 @@ export interface IImageCrop extends IBaseElement {
|
|
23
23
|
onFocus?: (event: React.FocusEvent<any>) => any;
|
24
24
|
onBlur?: (event: React.FocusEvent<any>) => any;
|
25
25
|
TooltipProps?: IPropsAny;
|
26
|
-
}
|
26
|
+
};
|
27
27
|
declare const ImageCrop: React.FC<IImageCrop>;
|
28
28
|
export default ImageCrop;
|
package/ImageEdit/ImageEdit.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { TMethod } from '@onesy/models';
|
3
3
|
import { ILine } from '../Line/Line';
|
4
|
-
import { IElementReference, IElement,
|
4
|
+
import { IElementReference, IElement, IPropsAny } from '../types';
|
5
5
|
export declare type TImageEditFilter = {
|
6
6
|
label?: string;
|
7
7
|
Icon?: IElementReference;
|
@@ -10,9 +10,7 @@ export declare type TImageEditFilter = {
|
|
10
10
|
renderIconButton: (value: string, selected: boolean, onChangeFilter: TMethod) => IElement;
|
11
11
|
renderSlider: (value: string, filterValuesCopy: any, onFilterSliderChange: TMethod) => IElement;
|
12
12
|
};
|
13
|
-
export
|
14
|
-
tonal?: ITonal;
|
15
|
-
color?: IColor;
|
13
|
+
export declare type IImageEdit = ILine & {
|
16
14
|
image?: string | HTMLCanvasElement;
|
17
15
|
name?: string;
|
18
16
|
type?: string;
|
@@ -63,6 +61,6 @@ export interface IImageEdit extends ILine {
|
|
63
61
|
TooltipProps?: IPropsAny;
|
64
62
|
ImageCropProps?: IPropsAny;
|
65
63
|
IconButtonProps?: IPropsAny;
|
66
|
-
}
|
64
|
+
};
|
67
65
|
declare const ImageEdit: React.FC<IImageEdit>;
|
68
66
|
export default ImageEdit;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ILine } from '../Line/Line';
|
3
3
|
import { IElementReference, IMediaObject } from '../types';
|
4
|
-
export
|
4
|
+
export declare type IImageGallery = ILine & {
|
5
5
|
version?: 'regular' | 'modal';
|
6
6
|
open?: boolean;
|
7
7
|
size?: 'small' | 'regular' | 'large';
|
@@ -25,6 +25,6 @@ export interface IImageGallery extends ILine {
|
|
25
25
|
IconStart?: IElementReference;
|
26
26
|
IconEnd?: IElementReference;
|
27
27
|
IconClose?: IElementReference;
|
28
|
-
}
|
28
|
+
};
|
29
29
|
declare const ImageGallery: React.FC<IImageGallery>;
|
30
30
|
export default ImageGallery;
|
package/ImageList/ImageList.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IBaseElement, IValueBreakpoints } from '../types';
|
3
|
-
export
|
3
|
+
export declare type IImageList = IBaseElement & {
|
4
4
|
version?: 'standard' | 'vowen' | 'masonry';
|
5
5
|
gap?: number | Partial<Record<IValueBreakpoints, number>>;
|
6
6
|
rowGap?: number | Partial<Record<IValueBreakpoints, number>>;
|
7
7
|
columnGap?: number | Partial<Record<IValueBreakpoints, number>>;
|
8
8
|
columns?: number | Partial<Record<IValueBreakpoints, number>>;
|
9
|
-
}
|
9
|
+
};
|
10
10
|
declare const ImageList: React.FC<IImageList>;
|
11
11
|
export default ImageList;
|
package/ImageList/ImageList.js
CHANGED
@@ -46,7 +46,8 @@ const ImageList = react_1.default.forwardRef((props_, ref) => {
|
|
46
46
|
const theme = (0, style_react_1.useOnesyTheme)();
|
47
47
|
const props = react_1.default.useMemo(() => { var _a, _b, _c, _d, _e, _f, _g, _h; return (Object.assign(Object.assign(Object.assign({}, (_d = (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.ui) === null || _a === void 0 ? void 0 : _a.elements) === null || _b === void 0 ? void 0 : _b.all) === null || _c === void 0 ? void 0 : _c.props) === null || _d === void 0 ? void 0 : _d.default), (_h = (_g = (_f = (_e = theme === null || theme === void 0 ? void 0 : theme.ui) === null || _e === void 0 ? void 0 : _e.elements) === null || _f === void 0 ? void 0 : _f.onesyImageList) === null || _g === void 0 ? void 0 : _g.props) === null || _h === void 0 ? void 0 : _h.default), props_)); }, [props_]);
|
48
48
|
const { classes } = useStyle();
|
49
|
-
const { version = 'standard', gap: gap_, rowGap: rowGap_, columnGap: columnGap_, columns: columns_, Component = 'ul', className, style, children } = props,
|
49
|
+
const { version = 'standard', gap: gap_, rowGap: rowGap_, columnGap: columnGap_, columns: columns_, Component = 'ul', className, style, children } = props, otherProps = __rest(props, ["version", "gap", "rowGap", "columnGap", "columns", "Component", "className", "style", "children"]);
|
50
|
+
const other = otherProps;
|
50
51
|
const refs = {
|
51
52
|
root: react_1.default.useRef(undefined)
|
52
53
|
};
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ILine } from '../Line/Line';
|
3
3
|
import { IValueBreakpoints } from '../types';
|
4
|
-
export
|
4
|
+
export declare type IImageListItem = ILine & {
|
5
5
|
rows?: number | Partial<Record<IValueBreakpoints, number>>;
|
6
6
|
columns?: number | Partial<Record<IValueBreakpoints, number>>;
|
7
7
|
version?: 'standard' | 'vowen' | 'masonry';
|
8
|
-
}
|
8
|
+
};
|
9
9
|
declare const ImageListItem: React.FC<IImageListItem>;
|
10
10
|
export default ImageListItem;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IListItem } from '../ListItem/ListItem';
|
3
|
-
export
|
3
|
+
export declare type IImageListItemBox = IListItem & {
|
4
4
|
position?: 'top' | 'bottom';
|
5
5
|
backgroundOpacity?: number;
|
6
|
-
}
|
6
|
+
};
|
7
7
|
declare const ImageListItemBox: React.FC<IImageListItemBox>;
|
8
8
|
export default ImageListItemBox;
|
package/Info/Info.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IMenu } from '../Menu/Menu';
|
3
|
-
export
|
3
|
+
export declare type IInfo = IMenu & {
|
4
4
|
name?: string;
|
5
5
|
title?: string;
|
6
6
|
render?: () => any;
|
@@ -10,6 +10,6 @@ export interface IInfo extends IMenu {
|
|
10
10
|
TitleProps?: any;
|
11
11
|
ContainerProps?: any;
|
12
12
|
TooltipProps?: any;
|
13
|
-
}
|
13
|
+
};
|
14
14
|
declare const Info: React.FC<IInfo>;
|
15
15
|
export default Info;
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
2
2
|
import OnesySubscription from '@onesy/subscription/OnesySubscription';
|
3
3
|
import { IBaseElement } from '../types';
|
4
4
|
export declare type TMethodsVersion = 'add' | 'pulse' | 'remove';
|
5
|
-
export
|
5
|
+
export declare type IInteraction = IBaseElement & {
|
6
6
|
wave?: boolean;
|
7
7
|
background?: boolean;
|
8
8
|
border?: boolean;
|
@@ -15,7 +15,6 @@ export interface IInteraction extends IBaseElement {
|
|
15
15
|
wave_version?: 'simple';
|
16
16
|
subscription?: OnesySubscription;
|
17
17
|
clear?: any;
|
18
|
-
|
19
|
-
}
|
18
|
+
};
|
20
19
|
declare const Interaction: React.FC<IInteraction>;
|
21
20
|
export default Interaction;
|
package/Keyframes/Keyframes.d.ts
CHANGED
@@ -2,11 +2,11 @@ import React from 'react';
|
|
2
2
|
import { TTransitionsDurationProperties } from '@onesy/style-react';
|
3
3
|
import { IBaseElement, IRef } from '../types';
|
4
4
|
export declare type TKeyframesStatus = 'appended' | 'add' | 'adding' | 'added' | 'removed';
|
5
|
-
export
|
5
|
+
export declare type IKeyframe = {
|
6
6
|
name: string;
|
7
7
|
timeout: number;
|
8
|
-
}
|
9
|
-
export
|
8
|
+
};
|
9
|
+
export declare type IKeyframes = Omit<IBaseElement, 'className'> & {
|
10
10
|
ref?: IRef;
|
11
11
|
className?: boolean;
|
12
12
|
prefix?: string;
|
@@ -27,6 +27,6 @@ export interface IKeyframes extends Omit<IBaseElement, 'className'> {
|
|
27
27
|
onAdding?: (element: HTMLElement) => void;
|
28
28
|
onAdded?: (element: HTMLElement) => void;
|
29
29
|
onRemoved?: (element: HTMLElement) => void;
|
30
|
-
}
|
30
|
+
};
|
31
31
|
declare const Keyframes: React.FC<IKeyframes>;
|
32
32
|
export default Keyframes;
|
package/Label/Label.d.ts
CHANGED
@@ -1,16 +1,14 @@
|
|
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 ILabel = ILine & {
|
7
5
|
colorUnchecked?: IColor;
|
8
6
|
version?: IVersion;
|
9
|
-
size?: ISize;
|
10
7
|
position?: 'start' | 'top' | 'bottom' | 'end';
|
11
8
|
input?: IElement;
|
12
9
|
label?: IElement;
|
13
10
|
name?: IElement;
|
11
|
+
valueDefault?: boolean;
|
14
12
|
checkedDefault?: boolean;
|
15
13
|
value?: any;
|
16
14
|
checked?: any;
|
@@ -18,9 +16,9 @@ export interface ILabel extends ILine {
|
|
18
16
|
error?: boolean;
|
19
17
|
helperText?: string;
|
20
18
|
footer?: IElement;
|
21
|
-
disabled?: boolean;
|
22
19
|
LabelProps?: IPropsAny;
|
23
20
|
TypeProps?: IPropsAny;
|
24
|
-
|
21
|
+
TextProps?: IPropsAny;
|
22
|
+
};
|
25
23
|
declare const Label: React.FC<ILabel>;
|
26
24
|
export default Label;
|
package/Labels/Labels.d.ts
CHANGED
@@ -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 { IColor, IVersion, IElement, IPropsAny } from '../types';
|
4
|
+
export declare type ILabels = ILine & {
|
7
5
|
colorUnchecked?: IColor;
|
8
6
|
version?: IVersion;
|
9
|
-
size?: ISize;
|
10
7
|
name?: IElement;
|
11
8
|
label?: IElement;
|
12
9
|
valueDefault?: any[];
|
@@ -14,9 +11,8 @@ export interface ILabels extends ILine {
|
|
14
11
|
value?: any[];
|
15
12
|
checked?: any[];
|
16
13
|
onChange?: (value: any) => any;
|
17
|
-
disabled?: boolean;
|
18
14
|
WrapperProps?: IPropsAny;
|
19
15
|
LabelProps?: IPropsAny;
|
20
|
-
}
|
16
|
+
};
|
21
17
|
declare const Labels: React.FC<ILabels>;
|
22
18
|
export default Labels;
|
package/Line/Line.d.ts
CHANGED
@@ -5,7 +5,7 @@ export declare type TLineJustify = 'inherit' | 'initial' | 'flex-start' | 'cente
|
|
5
5
|
export declare type TLineDirection = 'inherit' | 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
6
6
|
export declare type TLineWrap = 'inherit' | 'wrap' | 'nowrap' | 'wrap-reverse';
|
7
7
|
export declare type TLineDisplay = 'inherit' | 'flex' | 'inline-flex';
|
8
|
-
export
|
8
|
+
export declare type ILine = IBaseElement & {
|
9
9
|
display?: TLineDisplay | Partial<Record<IValueBreakpoints, TLineDisplay>>;
|
10
10
|
direction?: TLineDirection | Partial<Record<IValueBreakpoints, TLineDirection>>;
|
11
11
|
align?: TLineAlign | Partial<Record<IValueBreakpoints, TLineAlign>>;
|
@@ -19,6 +19,6 @@ export interface ILine extends IBaseElement {
|
|
19
19
|
fullWidth?: boolean | Partial<Record<IValueBreakpoints, boolean>>;
|
20
20
|
divider?: boolean | Partial<Record<IValueBreakpoints, boolean>>;
|
21
21
|
DividerProps?: IPropsAny;
|
22
|
-
}
|
22
|
+
};
|
23
23
|
declare const Line: React.FC<ILine>;
|
24
24
|
export default Line;
|
package/LineChart/LineChart.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IChart } from '../Chart/Chart';
|
3
|
-
export
|
3
|
+
export declare type ILineChart = IChart & {
|
4
4
|
smooth?: boolean;
|
5
5
|
smoothRatio?: number;
|
6
|
-
}
|
6
|
+
};
|
7
7
|
declare const LineChart: React.FC<ILineChart>;
|
8
8
|
export default LineChart;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { TMethod } from '@onesy/models';
|
3
3
|
import { IChart, IChartValueValues } from '../Chart/Chart';
|
4
|
-
export
|
4
|
+
export declare type ILineChartItem = IChart & {
|
5
5
|
name?: string;
|
6
6
|
refs?: {
|
7
7
|
wrapper?: HTMLElement;
|
@@ -16,6 +16,8 @@ export interface ILineChartItem extends IChart {
|
|
16
16
|
updateLegend?: TMethod;
|
17
17
|
smooth?: boolean;
|
18
18
|
smoothRatio?: number;
|
19
|
-
|
19
|
+
BackgroundProps?: any;
|
20
|
+
BorderProps?: any;
|
21
|
+
};
|
20
22
|
declare const LineChartItem: React.FC<ILineChartItem>;
|
21
23
|
export default LineChartItem;
|
@@ -1,9 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { IBaseElement,
|
3
|
-
export
|
4
|
-
tonal?: ITonal;
|
5
|
-
color?: IColor;
|
6
|
-
size?: ISize;
|
2
|
+
import { IBaseElement, IStyle, IElement, IPropsAny } from '../types';
|
3
|
+
export declare type ILinearMeter = IBaseElement & {
|
7
4
|
parts?: number;
|
8
5
|
lineCap?: 'inherit' | 'round' | 'square' | 'butt';
|
9
6
|
orientation?: 'vertical' | 'horizontal';
|
@@ -48,6 +45,6 @@ export interface ILinearMeter extends IBaseElement {
|
|
48
45
|
LineMainProps?: IPropsAny;
|
49
46
|
LinesProgressProps?: IPropsAny;
|
50
47
|
LineProgressProps?: IPropsAny;
|
51
|
-
}
|
48
|
+
};
|
52
49
|
declare const LinearMeter: React.FC<ILinearMeter>;
|
53
50
|
export default LinearMeter;
|
@@ -1,8 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { IBaseElement
|
3
|
-
export
|
4
|
-
tonal?: ITonal;
|
5
|
-
color?: IColor;
|
2
|
+
import { IBaseElement } from '../types';
|
3
|
+
export declare type ILinearProress = IBaseElement & {
|
6
4
|
value?: number | {
|
7
5
|
progress?: number;
|
8
6
|
buffer?: number;
|
@@ -10,6 +8,6 @@ export interface ILinearProress extends IBaseElement {
|
|
10
8
|
version?: 'determinate' | 'indeterminate';
|
11
9
|
buffer?: boolean;
|
12
10
|
reverse?: boolean;
|
13
|
-
}
|
11
|
+
};
|
14
12
|
declare const LinearProgress: React.FC<ILinearProress>;
|
15
13
|
export default LinearProgress;
|