@onesy/ui-react 1.0.131 → 1.0.132
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/AutoComplete/AutoComplete.js +2 -2
- package/AutoCompleteCountry/AutoCompleteCountry.d.ts +1 -1
- package/AutoCompleteCurrency/AutoCompleteCurrency.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 +1 -1
- 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/Buttons/Buttons.js +7 -31
- package/Calendar/Calendar.d.ts +3 -3
- package/Calendar/Calendar.js +6 -6
- package/CalendarAvailability/CalendarAvailability.d.ts +2 -2
- package/CalendarAvailability/CalendarAvailability.js +8 -8
- package/CalendarMenu/CalendarMenu.d.ts +1 -1
- package/CalendarMenu/CalendarMenu.js +5 -5
- package/CalendarMonth/CalendarMonth.d.ts +5 -5
- package/CalendarViews/CalendarViews.d.ts +2 -2
- 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/Carousel/Carousel.js +8 -8
- 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/DatePicker/DatePicker.js +6 -6
- package/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/DateTimePicker/DateTimePicker.d.ts +2 -2
- package/DateTimePicker/DateTimePicker.js +6 -6
- 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/Drawing/Drawing.js +12 -12
- package/DropZone/DropZone.d.ts +1 -1
- package/Emojis/Emojis.d.ts +3 -3
- package/Emojis/Emojis.js +2 -2
- 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/HTMLCanvas/index.js +1 -2
- package/IFrame/IFrame.d.ts +1 -1
- package/Icon/Icon.d.ts +1 -1
- package/Icon/index.js +1 -2
- package/IconButton/IconButton.d.ts +1 -1
- package/Image/Image.d.ts +1 -1
- package/ImageCrop/ImageCrop.d.ts +2 -2
- package/ImageCrop/ImageCrop.js +17 -17
- package/ImageEdit/ImageEdit.d.ts +2 -2
- package/ImageEdit/ImageEdit.js +4 -4
- 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/Keyframes/index.js +1 -2
- 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/ListItem/ListItem.js +3 -3
- 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/Menu/Menu.js +13 -13
- 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/RichTextEditor/RichTextEditor.js +20 -20
- 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/Select/Select.js +2 -2
- 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/SmartTextField/SmartTextField.js +16 -16
- 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/Space/Space.js +26 -26
- package/Space/index.js +1 -2
- 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/TimePicker/TimePicker.js +12 -12
- 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/Transition/index.js +1 -2
- package/Transitions/Transitions.d.ts +2 -2
- package/Transitions/Transitions.js +2 -2
- package/Tree/Tree.d.ts +1 -1
- package/Type/Type.d.ts +1 -1
- package/VideoPlayer/VideoPlayer.d.ts +1 -1
- package/VideoPlayer/VideoPlayer.js +4 -4
- 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/Append/Append.js +6 -8
- package/esm/AutoComplete/AutoComplete.js +8 -20
- package/esm/Breadcrumbs/Breadcrumbs.js +1 -3
- package/esm/Buttons/Buttons.js +8 -33
- package/esm/Calendar/Calendar.js +74 -80
- package/esm/CalendarAvailability/CalendarAvailability.js +1 -2
- package/esm/CalendarMenu/CalendarMenu.js +2 -2
- package/esm/CalendarMonth/CalendarMonth.js +65 -68
- package/esm/CalendarWeek/CalendarWeek.js +3 -7
- package/esm/Carousel/Carousel.js +4 -12
- package/esm/Chart/Chart.js +19 -25
- package/esm/Clock/Clock.js +5 -8
- package/esm/Confirm/Confirm.js +1 -2
- package/esm/DatePicker/DatePicker.js +8 -13
- package/esm/DateTimePicker/DateTimePicker.js +6 -9
- package/esm/Drawing/Drawing.js +1 -6
- package/esm/Expand/Expand.js +1 -2
- package/esm/Fade/Fade.js +1 -2
- package/esm/Focus/Focus.js +1 -2
- package/esm/Grow/Grow.js +1 -2
- package/esm/HTMLCanvas/HTMLCanvas.js +2 -5
- package/esm/ImageCrop/ImageCrop.js +2 -5
- package/esm/ImageEdit/ImageEdit.js +5 -12
- package/esm/ImageGallery/ImageGallery.js +1 -2
- package/esm/Interaction/Interaction.js +1 -2
- package/esm/Keyframes/Keyframes.js +1 -2
- package/esm/LinearMeter/LinearMeter.js +77 -80
- package/esm/Markdown/Markdown.js +41 -144
- package/esm/MenuDesktop/MenuDesktop.js +5 -6
- package/esm/Rating/Rating.js +2 -4
- package/esm/RichTextEditor/RichTextEditor.js +36 -50
- package/esm/RoundMeter/RoundMeter.js +70 -73
- package/esm/ScreenCapture/ScreenCapture.js +2 -5
- package/esm/Select/Select.js +5 -9
- package/esm/Share/Share.js +4 -5
- package/esm/Slide/Slide.js +2 -4
- package/esm/Slider/Slider.js +3 -6
- package/esm/SmartTextField/SmartTextField.js +2 -4
- package/esm/Snackbar/Snackbar.js +1 -2
- package/esm/Snackbars/Snackbars.js +3 -3
- package/esm/Space/Space.js +3 -6
- package/esm/Switch/Switch.js +1 -2
- package/esm/Tabs/Tabs.js +1 -2
- package/esm/TimePicker/TimePicker.js +27 -38
- package/esm/Timer/Timer.js +3 -4
- package/esm/Tooltip/Tooltip.js +1 -2
- package/esm/ViewSplit/ViewSplit.js +1 -2
- package/esm/Watch/Watch.js +4 -5
- package/esm/Weather/Weather.js +14 -17
- package/esm/Whiteboard/Whiteboard.js +1 -4
- package/esm/WindowSplit/WindowSplit.js +1 -2
- package/esm/Zoom/Zoom.js +1 -2
- package/esm/index.js +1 -1
- package/esm/useForm/useForm.js +1 -4
- package/esm/useLocation/useLocation.js +1 -2
- package/esm/useSwipe/useSwipe.js +1 -2
- package/esm/utils.js +3 -11
- package/index.js +2 -3
- package/package.json +3 -3
- package/types.d.ts +27 -27
- package/useForm/useForm.d.ts +2 -2
- package/useForm/validate.d.ts +12 -12
- package/useForm/validate.js +20 -20
- 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
package/Carousel/Carousel.js
CHANGED
|
@@ -675,18 +675,18 @@ const Carousel = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
675
675
|
});
|
|
676
676
|
}
|
|
677
677
|
if (refs.orientation.current === 'vertical' && incY !== 0) {
|
|
678
|
-
var _refs$value$
|
|
678
|
+
var _refs$value$current0, _refs$value$current1, _refs$value$current10;
|
|
679
679
|
const min = 0;
|
|
680
680
|
let max = (height_ + gap * theme.space.unit) * (refs.itemsLength.current - 1);
|
|
681
681
|
if (refs.itemSize.current === 'auto') {
|
|
682
682
|
max = scrollHeight_ - scrollHeight_ / refs.itemsLength.current + gap * theme.space.unit * (refs.itemsLength.current - 1);
|
|
683
683
|
}
|
|
684
|
-
let y = (((_refs$value$
|
|
684
|
+
let y = (((_refs$value$current0 = refs.value.current) === null || _refs$value$current0 === void 0 ? void 0 : _refs$value$current0.y) || 0) - incY;
|
|
685
685
|
if (refs.free.current || !refs.moveBeyondEdge.current) y = (0, _utils.clamp)(y, min, max);
|
|
686
686
|
|
|
687
687
|
// Move beyond min, max
|
|
688
|
-
if (y < min || y > max) y = (((_refs$value$
|
|
689
|
-
refs.velocity.current = y - (((_refs$value$
|
|
688
|
+
if (y < min || y > max) y = (((_refs$value$current1 = refs.value.current) === null || _refs$value$current1 === void 0 ? void 0 : _refs$value$current1.y) || 0) - incY / 1.7;
|
|
689
|
+
refs.velocity.current = y - (((_refs$value$current10 = refs.value.current) === null || _refs$value$current10 === void 0 ? void 0 : _refs$value$current10.y) || 0);
|
|
690
690
|
onUpdatePosition({
|
|
691
691
|
index: Math.floor(y / (max / (refs.itemsLength.current - 1))),
|
|
692
692
|
y
|
|
@@ -723,8 +723,8 @@ const Carousel = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
723
723
|
}
|
|
724
724
|
};
|
|
725
725
|
const method = () => {
|
|
726
|
-
var _refs$value$
|
|
727
|
-
return onUpdate((_refs$value$
|
|
726
|
+
var _refs$value$current11;
|
|
727
|
+
return onUpdate((_refs$value$current11 = refs.value.current) === null || _refs$value$current11 === void 0 ? void 0 : _refs$value$current11.index);
|
|
728
728
|
};
|
|
729
729
|
const observer = new ResizeObserver(method);
|
|
730
730
|
method();
|
|
@@ -753,8 +753,8 @@ const Carousel = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
753
753
|
}, [value_]);
|
|
754
754
|
_react.default.useEffect(() => {
|
|
755
755
|
if (init) {
|
|
756
|
-
var _refs$value$
|
|
757
|
-
if (index_ >= 0 && index_ <= refs.itemsLength.current && index_ !== ((_refs$value$
|
|
756
|
+
var _refs$value$current12;
|
|
757
|
+
if (index_ >= 0 && index_ <= refs.itemsLength.current && index_ !== ((_refs$value$current12 = refs.value.current) === null || _refs$value$current12 === void 0 ? void 0 : _refs$value$current12.index)) onUpdate(index_);
|
|
758
758
|
}
|
|
759
759
|
}, [index_]);
|
|
760
760
|
_react.default.useEffect(() => {
|
package/Chart/Chart.d.ts
CHANGED
|
@@ -2,15 +2,15 @@ import React from 'react';
|
|
|
2
2
|
import { TColorValues } from '@onesy/style-react';
|
|
3
3
|
import { ISurface } from '../Surface/Surface';
|
|
4
4
|
import { IStyle, IElementAny, IElement, IValueBreakpoints, IPropsAny, IColor } from '../types';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type IChartValueValues = Array<any>;
|
|
6
|
+
export type IItemValue = {
|
|
7
7
|
value: number;
|
|
8
8
|
label: number;
|
|
9
9
|
percentage: number;
|
|
10
10
|
axis: 'x' | 'y';
|
|
11
11
|
props?: any;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type IChartValue = {
|
|
14
14
|
color?: IColor;
|
|
15
15
|
tone?: TColorValues;
|
|
16
16
|
name?: string;
|
|
@@ -18,7 +18,7 @@ export declare type IChartValue = {
|
|
|
18
18
|
percentage?: string | number;
|
|
19
19
|
values: IChartValueValues | Array<IChartValueValues>;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type IChart = ISurface & {
|
|
22
22
|
title?: IElementAny;
|
|
23
23
|
subtitle?: IElementAny;
|
|
24
24
|
values?: Array<IChartValue>;
|
package/Checkbox/Checkbox.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IIconButton } from '../IconButton/IconButton';
|
|
3
3
|
import { IRef, IColor } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type ICheckbox = Omit<IIconButton, 'onChange'> & {
|
|
5
5
|
inputRef?: IRef;
|
|
6
6
|
colorIndeterminate?: IColor;
|
|
7
7
|
colorUnchecked?: IColor;
|
package/Chip/Chip.d.ts
CHANGED
package/Chips/Chips.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IBaseElement, IHTMLElement } from '../types';
|
|
3
|
-
export
|
|
3
|
+
export type IClickListener = IBaseElement & {
|
|
4
4
|
mouseEvent?: 'onClick' | 'onMove' | 'onMouseDown' | 'onMouseUp' | 'onMouseEnter' | 'onMouseLeave';
|
|
5
5
|
touchEvent?: 'onTouchStart' | 'onTouchEnd' | 'onTouchMove';
|
|
6
6
|
include?: Array<IHTMLElement>;
|
package/Clock/Clock.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { OnesyDate } from '@onesy/date';
|
|
3
3
|
import { IRoundMeter } from '../RoundMeter/RoundMeter';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
4
|
+
export type TClockValue = OnesyDate;
|
|
5
|
+
export type TClockFormat = '12' | '24';
|
|
6
|
+
export type TClockUnit = 'hour' | 'minute' | 'second';
|
|
7
|
+
export type TClockDayTime = 'am' | 'pm';
|
|
8
|
+
export type IClock = Omit<IRoundMeter, 'onChange'> & {
|
|
9
9
|
value?: TClockValue;
|
|
10
10
|
valueDefault?: TClockValue;
|
|
11
11
|
onChange?: (value: TClockValue) => any;
|
|
@@ -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 type IColumnChartItem = IChart & {
|
|
5
5
|
name?: string;
|
|
6
6
|
refs?: {
|
|
7
7
|
wrapper?: HTMLElement;
|
package/Confirm/Confirm.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TMethod } from '@onesy/utils';
|
|
3
3
|
import { IBaseElement } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type IConfirmOpen = {
|
|
5
5
|
modal?: (promise: IConfirmPromiseArgument) => React.ReactElement;
|
|
6
6
|
name?: string | boolean | React.ReactElement;
|
|
7
7
|
description?: string | React.ReactElement;
|
|
@@ -18,15 +18,15 @@ export declare type IConfirmOpen = {
|
|
|
18
18
|
ButtonPositiveProps?: any;
|
|
19
19
|
[p: string]: any;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type IConfirmPromiseArgument = {
|
|
22
22
|
resolve: TMethod;
|
|
23
23
|
reject: TMethod;
|
|
24
24
|
};
|
|
25
|
-
export
|
|
25
|
+
export type IConfirmValue = {
|
|
26
26
|
open: (value?: IConfirmOpen) => Promise<any>;
|
|
27
27
|
close: (confirmed?: boolean) => void;
|
|
28
28
|
};
|
|
29
|
-
export
|
|
29
|
+
export type IConfirm = IBaseElement & {
|
|
30
30
|
throwError?: boolean;
|
|
31
31
|
onOpen?: () => any;
|
|
32
32
|
onClose?: () => any;
|
package/Container/Container.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ILine } from '../Line/Line';
|
|
3
3
|
import { IValueBreakpoints } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type IContainer = ILine & {
|
|
5
5
|
alignment?: 'start' | 'center' | 'end' | Partial<Record<IValueBreakpoints, 'start' | 'center' | 'end'>>;
|
|
6
6
|
paddingVertical?: 'both' | 'start' | 'end' | 'none' | Partial<Record<IValueBreakpoints, 'both' | 'start' | 'end' | 'none'>>;
|
|
7
7
|
paddingHorizontal?: 'both' | 'start' | 'end' | 'none' | Partial<Record<IValueBreakpoints, 'both' | 'start' | 'end' | 'none'>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IPropsAny } from '../types';
|
|
3
3
|
import { ISurface } from '../Surface/Surface';
|
|
4
|
-
export
|
|
4
|
+
export type ICookieBanner = ISurface & {
|
|
5
5
|
name?: any;
|
|
6
6
|
description?: any;
|
|
7
7
|
startActions?: any;
|
package/Countdown/Countdown.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ISurface } from '../Surface/Surface';
|
|
3
3
|
import { IElement, IElementReference, IPropsAny } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type ICountdown = Omit<ISurface, 'version'> & {
|
|
5
5
|
version?: 'linear' | 'round';
|
|
6
6
|
renderValue?: (value: string) => IElement;
|
|
7
7
|
icon?: boolean;
|
|
@@ -7,7 +7,7 @@ import { IValueBreakpoints, IElement, IElementReference, IPropsAny } from '../ty
|
|
|
7
7
|
import { ITextField } from '../TextField/TextField';
|
|
8
8
|
export declare const SEPARATOR_SYMBOL = "\u2013";
|
|
9
9
|
export declare const SEPARATOR: string;
|
|
10
|
-
export
|
|
10
|
+
export type IDatePicker = Omit<ILine, 'onChange'> & ITextField & {
|
|
11
11
|
version?: 'auto' | 'mobile' | 'desktop';
|
|
12
12
|
value?: TCalendarMonthValue;
|
|
13
13
|
valueDefault?: TCalendarMonthValue;
|
package/DatePicker/DatePicker.js
CHANGED
|
@@ -166,16 +166,16 @@ const DatePicker = /*#__PURE__*/_react.default.forwardRef((props__, ref) => {
|
|
|
166
166
|
return (theme === null || theme === void 0 || (_theme$elements9 = theme.elements) === null || _theme$elements9 === void 0 ? void 0 : _theme$elements9.Calendar) || _Calendar.default;
|
|
167
167
|
}, [theme]);
|
|
168
168
|
const Divider = _react.default.useMemo(() => {
|
|
169
|
-
var _theme$
|
|
170
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
169
|
+
var _theme$elements0;
|
|
170
|
+
return (theme === null || theme === void 0 || (_theme$elements0 = theme.elements) === null || _theme$elements0 === void 0 ? void 0 : _theme$elements0.Divider) || _Divider.default;
|
|
171
171
|
}, [theme]);
|
|
172
172
|
const Slide = _react.default.useMemo(() => {
|
|
173
|
-
var _theme$
|
|
174
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
173
|
+
var _theme$elements1;
|
|
174
|
+
return (theme === null || theme === void 0 || (_theme$elements1 = theme.elements) === null || _theme$elements1 === void 0 ? void 0 : _theme$elements1.Slide) || _Slide.default;
|
|
175
175
|
}, [theme]);
|
|
176
176
|
const ClickListener = _react.default.useMemo(() => {
|
|
177
|
-
var _theme$
|
|
178
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
177
|
+
var _theme$elements10;
|
|
178
|
+
return (theme === null || theme === void 0 || (_theme$elements10 = theme.elements) === null || _theme$elements10 === void 0 ? void 0 : _theme$elements10.ClickListener) || _ClickListener.default;
|
|
179
179
|
}, [theme]);
|
|
180
180
|
const {
|
|
181
181
|
tonal = true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IDatePicker } from '../DatePicker/DatePicker';
|
|
3
|
-
export
|
|
3
|
+
export type IDateRangePicker = IDatePicker & {};
|
|
4
4
|
declare const DateRangePicker: React.FC<IDateRangePicker>;
|
|
5
5
|
export default DateRangePicker;
|
|
@@ -6,8 +6,8 @@ import { TCalendarUnit } from '../Calendar/Calendar';
|
|
|
6
6
|
import { TClockUnit } from '../Clock/Clock';
|
|
7
7
|
import { IValueBreakpoints, IElementReference, IPropsAny } from '../types';
|
|
8
8
|
import { ITextField } from '../TextField/TextField';
|
|
9
|
-
export
|
|
10
|
-
export
|
|
9
|
+
export type TDateTimePicker = OnesyDate;
|
|
10
|
+
export type IDateTimePicker = Omit<IAdvancedTextField, 'version' | 'onChange'> & ITextField & {
|
|
11
11
|
version?: 'auto' | 'mobile' | 'desktop';
|
|
12
12
|
value?: TCalendarMonthValue;
|
|
13
13
|
valueDefault?: TCalendarMonthValue;
|
|
@@ -100,16 +100,16 @@ const DateTimePicker = /*#__PURE__*/_react.default.forwardRef((props__, ref) =>
|
|
|
100
100
|
return (theme === null || theme === void 0 || (_theme$elements9 = theme.elements) === null || _theme$elements9 === void 0 ? void 0 : _theme$elements9.Button) || _Button.default;
|
|
101
101
|
}, [theme]);
|
|
102
102
|
const DatePicker = _react.default.useMemo(() => {
|
|
103
|
-
var _theme$
|
|
104
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
103
|
+
var _theme$elements0;
|
|
104
|
+
return (theme === null || theme === void 0 || (_theme$elements0 = theme.elements) === null || _theme$elements0 === void 0 ? void 0 : _theme$elements0.DatePicker) || _DatePicker.default;
|
|
105
105
|
}, [theme]);
|
|
106
106
|
const TimePicker = _react.default.useMemo(() => {
|
|
107
|
-
var _theme$
|
|
108
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
107
|
+
var _theme$elements1;
|
|
108
|
+
return (theme === null || theme === void 0 || (_theme$elements1 = theme.elements) === null || _theme$elements1 === void 0 ? void 0 : _theme$elements1.TimePicker) || _TimePicker.default;
|
|
109
109
|
}, [theme]);
|
|
110
110
|
const ClickListener = _react.default.useMemo(() => {
|
|
111
|
-
var _theme$
|
|
112
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
111
|
+
var _theme$elements10;
|
|
112
|
+
return (theme === null || theme === void 0 || (_theme$elements10 = theme.elements) === null || _theme$elements10 === void 0 ? void 0 : _theme$elements10.ClickListener) || _ClickListener.default;
|
|
113
113
|
}, [theme]);
|
|
114
114
|
const {
|
|
115
115
|
tonal = true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IDateTimePicker } from '../DateTimePicker/DateTimePicker';
|
|
3
|
-
export
|
|
3
|
+
export type IDateTimeRangePicker = IDateTimePicker & {};
|
|
4
4
|
declare const DateTimeRangePicker: React.FC<IDateTimeRangePicker>;
|
|
5
5
|
export default DateTimeRangePicker;
|
package/Divider/Divider.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IBaseElement } from '../types';
|
|
3
|
-
export
|
|
3
|
+
export type IDragAndDropList = Omit<IBaseElement, 'onChange'> & {
|
|
4
4
|
onChange?: (indexPrevious: number, indexNew: number) => any;
|
|
5
5
|
items?: any[];
|
|
6
6
|
image?: boolean;
|
package/Drawing/Drawing.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ISurface } from '../Surface/Surface';
|
|
3
3
|
import { IElement, IElementReference, IPropsAny, IRef } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type TDrawingValue = Array<{
|
|
5
5
|
d?: string;
|
|
6
6
|
stroke?: string;
|
|
7
7
|
strokeWidth?: number;
|
|
8
8
|
}>;
|
|
9
|
-
export
|
|
9
|
+
export type IDrawing = Omit<ISurface, 'onChange' | 'onMouseDown'> & {
|
|
10
10
|
render?: (element: string, props: IPropsAny, value: TDrawingValue) => IElement;
|
|
11
11
|
svgRef?: IRef;
|
|
12
12
|
updates?: boolean;
|
package/Drawing/Drawing.js
CHANGED
|
@@ -166,28 +166,28 @@ const Drawing = /*#__PURE__*/_react.default.forwardRef((props__, ref) => {
|
|
|
166
166
|
return (theme === null || theme === void 0 || (_theme$elements9 = theme.elements) === null || _theme$elements9 === void 0 ? void 0 : _theme$elements9.ToggleButton) || _ToggleButton.default;
|
|
167
167
|
}, [theme]);
|
|
168
168
|
const ToggleButtons = _react.default.useMemo(() => {
|
|
169
|
-
var _theme$
|
|
170
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
169
|
+
var _theme$elements0;
|
|
170
|
+
return (theme === null || theme === void 0 || (_theme$elements0 = theme.elements) === null || _theme$elements0 === void 0 ? void 0 : _theme$elements0.ToggleButtons) || _ToggleButtons.default;
|
|
171
171
|
}, [theme]);
|
|
172
172
|
const Divider = _react.default.useMemo(() => {
|
|
173
|
-
var _theme$
|
|
174
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
173
|
+
var _theme$elements1;
|
|
174
|
+
return (theme === null || theme === void 0 || (_theme$elements1 = theme.elements) === null || _theme$elements1 === void 0 ? void 0 : _theme$elements1.Divider) || _Divider.default;
|
|
175
175
|
}, [theme]);
|
|
176
176
|
const ColorTextField = _react.default.useMemo(() => {
|
|
177
|
-
var _theme$
|
|
178
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
177
|
+
var _theme$elements10;
|
|
178
|
+
return (theme === null || theme === void 0 || (_theme$elements10 = theme.elements) === null || _theme$elements10 === void 0 ? void 0 : _theme$elements10.ColorTextField) || _ColorTextField.default;
|
|
179
179
|
}, [theme]);
|
|
180
180
|
const Append = _react.default.useMemo(() => {
|
|
181
|
-
var _theme$
|
|
182
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
181
|
+
var _theme$elements11;
|
|
182
|
+
return (theme === null || theme === void 0 || (_theme$elements11 = theme.elements) === null || _theme$elements11 === void 0 ? void 0 : _theme$elements11.Append) || _Append.default;
|
|
183
183
|
}, [theme]);
|
|
184
184
|
const Fade = _react.default.useMemo(() => {
|
|
185
|
-
var _theme$
|
|
186
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
185
|
+
var _theme$elements12;
|
|
186
|
+
return (theme === null || theme === void 0 || (_theme$elements12 = theme.elements) === null || _theme$elements12 === void 0 ? void 0 : _theme$elements12.Fade) || _Fade.default;
|
|
187
187
|
}, [theme]);
|
|
188
188
|
const ClickListener = _react.default.useMemo(() => {
|
|
189
|
-
var _theme$
|
|
190
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
189
|
+
var _theme$elements13;
|
|
190
|
+
return (theme === null || theme === void 0 || (_theme$elements13 = theme.elements) === null || _theme$elements13 === void 0 ? void 0 : _theme$elements13.ClickListener) || _ClickListener.default;
|
|
191
191
|
}, [theme]);
|
|
192
192
|
const {
|
|
193
193
|
tonal = true,
|
package/DropZone/DropZone.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IFileChoose } from '../FileChoose/FileChoose';
|
|
3
3
|
import { IElement, IVersion } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type IDropZone = IFileChoose & {
|
|
5
5
|
version?: IVersion;
|
|
6
6
|
start?: IElement;
|
|
7
7
|
dropText?: any;
|
package/Emojis/Emojis.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IMenu } from '../Menu/Menu';
|
|
3
|
-
export
|
|
3
|
+
export type IEmojiCategory = {
|
|
4
4
|
name: string;
|
|
5
5
|
groups: string[];
|
|
6
6
|
icon: any;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type IEmoji = {
|
|
9
9
|
alias: string | string[];
|
|
10
10
|
unicode: string;
|
|
11
11
|
category: string;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type IEmojis = Omit<IMenu, 'onSelect'> & {
|
|
14
14
|
emojis?: IEmoji[];
|
|
15
15
|
categories?: IEmojiCategory[];
|
|
16
16
|
selected?: string[];
|
package/Emojis/Emojis.js
CHANGED
|
@@ -193,8 +193,8 @@ const Emojis = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
193
193
|
return (theme === null || theme === void 0 || (_theme$elements9 = theme.elements) === null || _theme$elements9 === void 0 ? void 0 : _theme$elements9.Type) || _Type.default;
|
|
194
194
|
}, [theme]);
|
|
195
195
|
const Surface = _react.default.useMemo(() => {
|
|
196
|
-
var _theme$
|
|
197
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
196
|
+
var _theme$elements0;
|
|
197
|
+
return (theme === null || theme === void 0 || (_theme$elements0 = theme.elements) === null || _theme$elements0 === void 0 ? void 0 : _theme$elements0.Surface) || _Surface.default;
|
|
198
198
|
}, [theme]);
|
|
199
199
|
const EMOJI_CATEGORIES = _react.default.useMemo(() => {
|
|
200
200
|
return [{
|
package/Expand/Expand.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ITransition } from '..';
|
|
3
3
|
import { IPropsAny } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type IExpand = Omit<ITransition, 'className'> & {
|
|
5
5
|
value?: number;
|
|
6
6
|
expandSize?: number;
|
|
7
7
|
orientation?: 'veritcal' | 'horizontal';
|
package/Fab/Fab.d.ts
CHANGED
package/Fade/Fade.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ILine } from '../Line/Line';
|
|
3
3
|
import { IRef, IElementReference, IPropsAny } from '../types';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type TFileChooseValue = File | Array<File>;
|
|
5
|
+
export type IFileChoose = Omit<ILine, 'onClick' | 'onChange'> & {
|
|
6
6
|
inputRef?: IRef;
|
|
7
7
|
max?: number;
|
|
8
8
|
allowedTypes?: Array<string>;
|
package/Focus/Focus.d.ts
CHANGED
|
@@ -2,6 +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
|
|
5
|
+
export type IFocus = IBaseElement & {};
|
|
6
6
|
declare const Focus: React.FC<IFocus>;
|
|
7
7
|
export default Focus;
|
package/Form/Form.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 type IForm = Omit<ILine, 'onSubmit'> & {
|
|
5
5
|
accordion?: boolean;
|
|
6
6
|
divider?: boolean;
|
|
7
7
|
name?: string | IElement;
|
package/FormRow/FormRow.d.ts
CHANGED
package/Forms/Forms.d.ts
CHANGED
package/Frame/Frame.d.ts
CHANGED
package/Grid/Grid.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ILine } from '../Line/Line';
|
|
3
3
|
import { IValueBreakpoints, IPropsAny } from '../types';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type IGridValues = Partial<Record<IValueBreakpoints, number>>;
|
|
5
|
+
export type IGrid = ILine & {
|
|
6
6
|
auto?: boolean;
|
|
7
7
|
columns?: number | IGridValues;
|
|
8
8
|
parentGap?: any;
|
package/Grow/Grow.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IBaseElement } from '../types';
|
|
3
|
-
export
|
|
3
|
+
export type IHTMLCanvasOnChangeValue = {
|
|
4
4
|
zoom: number;
|
|
5
5
|
top: number;
|
|
6
6
|
left: number;
|
|
@@ -13,7 +13,7 @@ export declare type IHTMLCanvasOnChangeValue = {
|
|
|
13
13
|
height: number;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type IHTMLCanvas = Omit<IBaseElement, 'onWheel' | 'onMouseDown' | 'onTouchStart' | 'onChange'> & {
|
|
17
17
|
minZoom?: number;
|
|
18
18
|
maxZoom?: number;
|
|
19
19
|
showGuidelinesDefault?: boolean;
|
package/HTMLCanvas/index.js
CHANGED
|
@@ -22,5 +22,4 @@ Object.keys(_HTMLCanvas).forEach(function (key) {
|
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
|
-
function
|
|
26
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
package/IFrame/IFrame.d.ts
CHANGED
package/Icon/Icon.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { TTone } from '@onesy/style-react';
|
|
3
3
|
import { IBaseElement, ISizeExtendedAny } from '../types';
|
|
4
4
|
export declare const rtl_icons: string[];
|
|
5
|
-
export
|
|
5
|
+
export type IIcon = Omit<IBaseElement, 'size'> & {
|
|
6
6
|
size?: ISizeExtendedAny;
|
|
7
7
|
tone?: TTone;
|
|
8
8
|
viewBox?: string;
|
package/Icon/index.js
CHANGED
|
@@ -22,5 +22,4 @@ Object.keys(_Icon).forEach(function (key) {
|
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
|
-
function
|
|
26
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
package/Image/Image.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IUseVisible } from '../useVisible/useVisible';
|
|
3
3
|
import { IBaseElement, IPropsAny } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type IImage = IBaseElement & {
|
|
5
5
|
src?: string;
|
|
6
6
|
url?: string;
|
|
7
7
|
urlSmall?: string;
|