@onesy/ui-react 1.0.1 → 1.0.3
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 +1 -1
- package/Accordion/Accordion.js +2 -2
- package/Append/Append.d.ts +1 -1
- package/AreaChartItem/AreaChartItem.js +8 -8
- package/AudioPlayer/AudioPlayer.js +25 -25
- package/AudioRecorder/AudioRecorder.js +10 -10
- package/AutoComplete/AutoComplete.d.ts +2 -2
- package/AutoComplete/AutoComplete.js +2 -2
- package/Avatar/Avatar.js +4 -4
- package/Breadcrumbs/Breadcrumbs.js +2 -2
- package/BubbleChartItem/BubbleChartItem.js +6 -6
- package/Calendar/Calendar.d.ts +2 -2
- package/Calendar/Calendar.js +7 -7
- package/CalendarAvailability/CalendarAvailability.js +5 -5
- package/CalendarMenu/CalendarMenu.js +6 -6
- package/CalendarMonth/CalendarMonth.d.ts +3 -3
- package/CalendarMonth/CalendarMonth.js +2 -2
- package/CalendarViews/CalendarViews.d.ts +1 -1
- package/CalendarViews/CalendarViews.js +2 -2
- package/Carousel/Carousel.d.ts +2 -2
- package/Carousel/Carousel.js +2 -2
- package/Chart/Chart.d.ts +1 -1
- package/Chip/Chip.js +1 -1
- package/Clock/Clock.d.ts +4 -4
- package/Clock/Clock.js +11 -11
- package/ColumnChartItem/ColumnChartItem.js +6 -6
- package/Confirm/Confirm.js +4 -4
- package/Countdown/Countdown.js +4 -4
- package/DatePicker/DatePicker.js +3 -3
- package/DateTimePicker/DateTimePicker.d.ts +1 -1
- package/DateTimePicker/DateTimePicker.js +3 -3
- package/DragAndDropList/DragAndDropList.js +5 -5
- package/Drawing/Drawing.d.ts +1 -1
- package/Drawing/Drawing.js +4 -4
- package/DropZone/DropZone.js +1 -1
- package/Emojis/Emojis.js +8 -8
- package/FileChoose/FileChoose.d.ts +1 -1
- package/FileChoose/FileChoose.js +5 -5
- package/Frame/Frame.js +4 -4
- package/Grid/Grid.d.ts +1 -1
- package/HTMLCanvas/HTMLCanvas.js +6 -6
- package/ImageCrop/ImageCrop.d.ts +1 -1
- package/ImageCrop/ImageCrop.js +22 -22
- package/ImageEdit/ImageEdit.d.ts +1 -1
- package/ImageEdit/ImageEdit.js +23 -23
- package/ImageGallery/ImageGallery.js +14 -14
- package/Info/Info.js +1 -1
- package/Interaction/Interaction.d.ts +1 -1
- package/Keyframes/Keyframes.d.ts +1 -1
- package/Line/Line.d.ts +5 -5
- package/LineChartItem/LineChartItem.js +7 -7
- package/Links/Links.js +2 -2
- package/MainProgress/MainProgress.js +13 -13
- package/Medias/Medias.d.ts +1 -1
- package/Medias/Medias.js +1 -1
- package/MenuDesktop/MenuDesktop.d.ts +2 -2
- package/MenuDesktop/MenuDesktop.js +1 -1
- package/MenuItem/MenuItem.js +2 -2
- package/MoreOptions/MoreOptions.js +1 -1
- package/NavigationBar/NavigationBar.d.ts +1 -1
- package/NavigationItem/NavigationItem.d.ts +1 -1
- package/NumericTextField/NumericTextField.js +2 -2
- package/Page/Page.js +2 -2
- package/Pagination/Pagination.js +4 -4
- package/Parallax/Parallax.d.ts +1 -1
- package/Rating/Rating.js +2 -2
- package/RichTextEditor/RichTextEditor.js +69 -69
- package/ScatterChartItem/ScatterChartItem.js +6 -6
- package/ScreenCapture/ScreenCapture.d.ts +1 -1
- package/ScreenCapture/ScreenCapture.js +8 -8
- package/Section/Section.d.ts +1 -1
- package/SectionContact/SectionContact.js +3 -3
- package/SectionMedia/SectionMedia.js +1 -1
- package/Select/Select.js +2 -2
- package/Share/Share.js +4 -4
- package/Slider/Slider.d.ts +1 -1
- package/SmartTextField/SmartTextField.js +31 -31
- package/Snackbar/Snackbar.js +1 -1
- package/Space/Space.js +13 -13
- package/SpeechToText/SpeechToText.js +2 -2
- package/SpeedDial/SpeedDial.js +1 -1
- package/TableCell/TableCell.d.ts +1 -1
- package/TableCell/TableCell.js +1 -1
- package/TablePagination/TablePagination.js +4 -4
- package/Tabs/Tabs.js +4 -4
- package/TextField/TextField.js +1 -1
- package/TextToSpeech/TextToSpeech.js +2 -2
- package/TimePicker/TimePicker.d.ts +2 -2
- package/TimePicker/TimePicker.js +2 -2
- package/Timer/Timer.js +5 -5
- package/Transition/Transition.d.ts +1 -1
- package/Transitions/Transitions.d.ts +1 -1
- package/Tree/Tree.js +3 -3
- package/VideoPlayer/VideoPlayer.js +29 -29
- package/ViewSplit/ViewSplit.js +2 -2
- package/Weather/Weather.d.ts +3 -3
- package/Weather/Weather.js +5 -5
- package/Widgets/Widgets.js +2 -2
- package/WindowSplit/WindowSplit.js +2 -2
- package/esm/Accordion/Accordion.js +2 -2
- package/esm/AreaChartItem/AreaChartItem.js +8 -8
- package/esm/AudioPlayer/AudioPlayer.js +25 -25
- package/esm/AudioRecorder/AudioRecorder.js +10 -10
- package/esm/AutoComplete/AutoComplete.js +2 -2
- package/esm/Avatar/Avatar.js +2 -2
- package/esm/Breadcrumbs/Breadcrumbs.js +2 -2
- package/esm/BubbleChartItem/BubbleChartItem.js +6 -6
- package/esm/Calendar/Calendar.js +7 -7
- package/esm/CalendarAvailability/CalendarAvailability.js +5 -5
- package/esm/CalendarMenu/CalendarMenu.js +6 -6
- package/esm/CalendarMonth/CalendarMonth.js +2 -2
- package/esm/CalendarViews/CalendarViews.js +2 -2
- package/esm/Carousel/Carousel.js +2 -2
- package/esm/Chip/Chip.js +1 -1
- package/esm/Clock/Clock.js +11 -11
- package/esm/ColumnChartItem/ColumnChartItem.js +6 -6
- package/esm/Confirm/Confirm.js +4 -4
- package/esm/Countdown/Countdown.js +4 -4
- package/esm/DatePicker/DatePicker.js +3 -3
- package/esm/DateTimePicker/DateTimePicker.js +3 -3
- package/esm/DragAndDropList/DragAndDropList.js +5 -5
- package/esm/Drawing/Drawing.js +4 -4
- package/esm/DropZone/DropZone.js +1 -1
- package/esm/Emojis/Emojis.js +8 -8
- package/esm/FileChoose/FileChoose.js +5 -5
- package/esm/Frame/Frame.js +4 -4
- package/esm/HTMLCanvas/HTMLCanvas.js +6 -6
- package/esm/ImageCrop/ImageCrop.js +22 -22
- package/esm/ImageEdit/ImageEdit.js +23 -23
- package/esm/ImageGallery/ImageGallery.js +14 -14
- package/esm/Info/Info.js +1 -1
- package/esm/LineChartItem/LineChartItem.js +7 -7
- package/esm/Links/Links.js +2 -2
- package/esm/MainProgress/MainProgress.js +13 -13
- package/esm/Medias/Medias.js +1 -1
- package/esm/MenuDesktop/MenuDesktop.js +1 -1
- package/esm/MenuItem/MenuItem.js +2 -2
- package/esm/MoreOptions/MoreOptions.js +1 -1
- package/esm/NumericTextField/NumericTextField.js +2 -2
- package/esm/Page/Page.js +2 -2
- package/esm/Pagination/Pagination.js +4 -4
- package/esm/Rating/Rating.js +2 -2
- package/esm/RichTextEditor/RichTextEditor.js +69 -69
- package/esm/ScatterChartItem/ScatterChartItem.js +6 -6
- package/esm/ScreenCapture/ScreenCapture.js +8 -8
- package/esm/SectionContact/SectionContact.js +3 -3
- package/esm/SectionMedia/SectionMedia.js +1 -1
- package/esm/Select/Select.js +2 -2
- package/esm/Share/Share.js +4 -4
- package/esm/SmartTextField/SmartTextField.js +31 -31
- package/esm/Snackbar/Snackbar.js +1 -1
- package/esm/Space/Space.js +13 -13
- package/esm/SpeechToText/SpeechToText.js +2 -2
- package/esm/SpeedDial/SpeedDial.js +1 -1
- package/esm/TableCell/TableCell.js +1 -1
- package/esm/TablePagination/TablePagination.js +4 -4
- package/esm/Tabs/Tabs.js +4 -4
- package/esm/TextField/TextField.js +1 -1
- package/esm/TextToSpeech/TextToSpeech.js +2 -2
- package/esm/TimePicker/TimePicker.js +2 -2
- package/esm/Timer/Timer.js +5 -5
- package/esm/Tree/Tree.js +3 -3
- package/esm/VideoPlayer/VideoPlayer.js +29 -29
- package/esm/ViewSplit/ViewSplit.js +2 -2
- package/esm/Weather/Weather.js +5 -5
- package/esm/Widgets/Widgets.js +2 -2
- package/esm/WindowSplit/WindowSplit.js +2 -2
- package/esm/index.js +1 -1
- package/esm/useScroll/useScroll.js +2 -2
- package/package.json +1 -1
- package/types.d.ts +23 -23
- package/useForm/validate.d.ts +6 -6
- package/useScroll/useScroll.d.ts +1 -1
- package/useScroll/useScroll.js +2 -2
@@ -8,18 +8,18 @@ import React from 'react';
|
|
8
8
|
import { clamp, getLeadingZerosNumber, is, isEnvironment } from '@onesy/utils';
|
9
9
|
import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
|
10
10
|
import { OnesyDate, duration as durationMethod } from '@onesy/date';
|
11
|
-
import IconMaterialPlayArrow from '@
|
12
|
-
import IconMaterialPause from '@
|
13
|
-
import IconMaterialForwardMedia from '@
|
14
|
-
import IconMaterialVolumeDownAlt from '@
|
15
|
-
import IconMaterialVolumeOff from '@
|
16
|
-
import IconMaterialFullscreen from '@
|
17
|
-
import IconMaterialFullscreenExit from '@
|
18
|
-
import IconMaterialSettings from '@
|
19
|
-
import IconMaterialTune from '@
|
20
|
-
import IconMaterialSlowMotionVideo from '@
|
21
|
-
import IconMaterialPictureInPictureAlt from '@
|
22
|
-
import IconMaterialArrowBackIos from '@
|
11
|
+
import IconMaterialPlayArrow from '@onesy/icons-material-rounded-react/IconMaterialPlayArrowW100';
|
12
|
+
import IconMaterialPause from '@onesy/icons-material-rounded-react/IconMaterialPauseW100';
|
13
|
+
import IconMaterialForwardMedia from '@onesy/icons-material-rounded-react/IconMaterialForwardMediaW100';
|
14
|
+
import IconMaterialVolumeDownAlt from '@onesy/icons-material-rounded-react/IconMaterialVolumeDownAltW100';
|
15
|
+
import IconMaterialVolumeOff from '@onesy/icons-material-rounded-react/IconMaterialVolumeOffW100';
|
16
|
+
import IconMaterialFullscreen from '@onesy/icons-material-rounded-react/IconMaterialFullscreenW100';
|
17
|
+
import IconMaterialFullscreenExit from '@onesy/icons-material-rounded-react/IconMaterialFullscreenExitW100';
|
18
|
+
import IconMaterialSettings from '@onesy/icons-material-rounded-react/IconMaterialSettingsW100';
|
19
|
+
import IconMaterialTune from '@onesy/icons-material-rounded-react/IconMaterialTuneW100';
|
20
|
+
import IconMaterialSlowMotionVideo from '@onesy/icons-material-rounded-react/IconMaterialSlowMotionVideoW100';
|
21
|
+
import IconMaterialPictureInPictureAlt from '@onesy/icons-material-rounded-react/IconMaterialPictureInPictureAltW100';
|
22
|
+
import IconMaterialArrowBackIos from '@onesy/icons-material-rounded-react/IconMaterialArrowBackIosW100';
|
23
23
|
import LineElement from '../Line';
|
24
24
|
import SurfaceElement from '../Surface';
|
25
25
|
import SliderElement from '../Slider';
|
@@ -240,25 +240,25 @@ const VideoPlayer = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
240
240
|
const [playbackSpeed, setPlaybackSpeed] = React.useState(1);
|
241
241
|
const [openMenu, setOpenMenu] = React.useState();
|
242
242
|
const refs = {
|
243
|
-
root: React.useRef(
|
244
|
-
video: React.useRef(),
|
245
|
-
controls: React.useRef(
|
246
|
-
duration: React.useRef(
|
247
|
-
time: React.useRef(
|
248
|
-
play: React.useRef(
|
249
|
-
updating: React.useRef(
|
250
|
-
onPlay: React.useRef(
|
251
|
-
onPause: React.useRef(
|
252
|
-
onTimeChange: React.useRef(
|
253
|
-
onBackward: React.useRef(
|
254
|
-
onForward: React.useRef(
|
255
|
-
onStop: React.useRef(
|
256
|
-
startMediaSession: React.useRef(
|
257
|
-
updateMediaSession: React.useRef(
|
258
|
-
startMediaSessionOnPlay: React.useRef(
|
243
|
+
root: React.useRef(null),
|
244
|
+
video: React.useRef(null),
|
245
|
+
controls: React.useRef(null),
|
246
|
+
duration: React.useRef(null),
|
247
|
+
time: React.useRef(null),
|
248
|
+
play: React.useRef(null),
|
249
|
+
updating: React.useRef(null),
|
250
|
+
onPlay: React.useRef(null),
|
251
|
+
onPause: React.useRef(null),
|
252
|
+
onTimeChange: React.useRef(null),
|
253
|
+
onBackward: React.useRef(null),
|
254
|
+
onForward: React.useRef(null),
|
255
|
+
onStop: React.useRef(null),
|
256
|
+
startMediaSession: React.useRef(null),
|
257
|
+
updateMediaSession: React.useRef(null),
|
258
|
+
startMediaSessionOnPlay: React.useRef(null),
|
259
259
|
fullScreen: React.useRef(fullScreen),
|
260
260
|
mouseMoved: React.useRef(mouseMoved),
|
261
|
-
timeoutMouseMoved: React.useRef(
|
261
|
+
timeoutMouseMoved: React.useRef(null)
|
262
262
|
};
|
263
263
|
refs.duration.current = duration;
|
264
264
|
refs.time.current = time;
|
@@ -7,8 +7,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
7
7
|
import React from 'react';
|
8
8
|
import { is, clamp, valueFromPercentageWithinRange, isEnvironment } from '@onesy/utils';
|
9
9
|
import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
|
10
|
-
import IconMaterialSwapHoriz from '@
|
11
|
-
import IconMaterialSwapVert from '@
|
10
|
+
import IconMaterialSwapHoriz from '@onesy/icons-material-rounded-react/IconMaterialSwapHorizW100';
|
11
|
+
import IconMaterialSwapVert from '@onesy/icons-material-rounded-react/IconMaterialSwapVertW100';
|
12
12
|
import LineElement from '../Line';
|
13
13
|
import DividerElement from '../Divider';
|
14
14
|
import IconButtonElement from '../IconButton';
|
package/esm/Weather/Weather.js
CHANGED
@@ -8,11 +8,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
8
8
|
import React from 'react';
|
9
9
|
import { is } from '@onesy/utils';
|
10
10
|
import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
|
11
|
-
import IconMaterialCircle from '@
|
12
|
-
import IconMaterialNightlight from '@
|
13
|
-
import IconMaterialCloud from '@
|
14
|
-
import IconMaterialRainy from '@
|
15
|
-
import IconMaterialCloudySnowing from '@
|
11
|
+
import IconMaterialCircle from '@onesy/icons-material-rounded-react/IconMaterialCircleW100Filled';
|
12
|
+
import IconMaterialNightlight from '@onesy/icons-material-rounded-react/IconMaterialNightlightW100Filled';
|
13
|
+
import IconMaterialCloud from '@onesy/icons-material-rounded-react/IconMaterialCloudW100Filled';
|
14
|
+
import IconMaterialRainy from '@onesy/icons-material-rounded-react/IconMaterialRainyW100Filled';
|
15
|
+
import IconMaterialCloudySnowing from '@onesy/icons-material-rounded-react/IconMaterialCloudySnowingW100Filled';
|
16
16
|
import SurfaceElement from '../Surface';
|
17
17
|
import TypeElement from '../Type';
|
18
18
|
import FadeElement from '../Fade';
|
package/esm/Widgets/Widgets.js
CHANGED
@@ -7,8 +7,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
7
7
|
import React from 'react';
|
8
8
|
import { is, unique } from '@onesy/utils';
|
9
9
|
import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
|
10
|
-
import IconMaterialClose from '@
|
11
|
-
import IconMaterialWidgets from '@
|
10
|
+
import IconMaterialClose from '@onesy/icons-material-rounded-react/IconMaterialCloseW100';
|
11
|
+
import IconMaterialWidgets from '@onesy/icons-material-rounded-react/IconMaterialWidgetsW100';
|
12
12
|
import SpeedDialElement from '../SpeedDial';
|
13
13
|
import SpeedDialItemElement from '../SpeedDialItem';
|
14
14
|
import TransitionElement from '../Transition';
|
@@ -7,8 +7,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
7
7
|
import React from 'react';
|
8
8
|
import { is, clamp, valueFromPercentageWithinRange, isEnvironment } from '@onesy/utils';
|
9
9
|
import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
|
10
|
-
import IconMaterialSwapHoriz from '@
|
11
|
-
import IconMaterialSwapVert from '@
|
10
|
+
import IconMaterialSwapHoriz from '@onesy/icons-material-rounded-react/IconMaterialSwapHorizW100';
|
11
|
+
import IconMaterialSwapVert from '@onesy/icons-material-rounded-react/IconMaterialSwapVertW100';
|
12
12
|
import LineElement from '../Line';
|
13
13
|
import DividerElement from '../Divider';
|
14
14
|
import IconButtonElement from '../IconButton';
|
package/esm/index.js
CHANGED
@@ -11,8 +11,8 @@ const useScroll = props => {
|
|
11
11
|
const refs = {
|
12
12
|
root: React.useRef(root),
|
13
13
|
previous: React.useRef(0),
|
14
|
-
offset: React.useRef(),
|
15
|
-
direction: React.useRef(),
|
14
|
+
offset: React.useRef(null),
|
15
|
+
direction: React.useRef(null),
|
16
16
|
response: React.useRef(response)
|
17
17
|
};
|
18
18
|
refs.root.current = root;
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
@@ -1,26 +1,26 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { IBreakpoint, TPaletteVersion } from '@onesy/style-react';
|
3
|
-
export
|
4
|
-
export
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
export
|
12
|
-
export
|
13
|
-
export
|
14
|
-
export
|
15
|
-
export
|
16
|
-
export
|
17
|
-
export
|
18
|
-
export
|
19
|
-
export
|
20
|
-
export
|
21
|
-
export
|
22
|
-
export
|
23
|
-
export
|
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 ISizeAny = ISize | number;
|
15
|
+
export type IElevation = 0 | 1 | 2 | 3 | 4 | 6 | 8 | 9 | 12 | 16 | 24;
|
16
|
+
export type IElementReference = string | React.FC<any> | (React.ForwardRefExoticComponent<any>);
|
17
|
+
export type IElement = React.ReactNode | React.ReactNode[] | React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
18
|
+
export type IElementAny = IElement | string | number | boolean | null | undefined;
|
19
|
+
export type IHTMLElement = Element | HTMLElement;
|
20
|
+
export type IPropsAny = Record<string, any>;
|
21
|
+
export type IStyle = React.CSSProperties | undefined;
|
22
|
+
export type IChildren = React.ReactNode | React.ReactNode[];
|
23
|
+
export type IRef = React.MutableRefObject<any>;
|
24
24
|
export interface IBaseElement {
|
25
25
|
Component?: any;
|
26
26
|
className?: string;
|
@@ -28,8 +28,8 @@ export interface IBaseElement {
|
|
28
28
|
children?: IChildren;
|
29
29
|
[property: string]: any;
|
30
30
|
}
|
31
|
-
export
|
32
|
-
export
|
31
|
+
export type IMethodTransition = (element?: IHTMLElement) => any;
|
32
|
+
export type IValueBreakpoints = IBreakpoint | 'default';
|
33
33
|
export interface IMediaObject {
|
34
34
|
id?: string;
|
35
35
|
name?: string;
|
package/useForm/validate.d.ts
CHANGED
@@ -19,9 +19,9 @@ export interface IValidateModelValueMethodOptions {
|
|
19
19
|
object: IValidateModelValue;
|
20
20
|
options: IValidateOptions;
|
21
21
|
}
|
22
|
-
export
|
23
|
-
export
|
24
|
-
export
|
22
|
+
export type IValidateModelValueMethod = (value: any, options: IValidateModelValueMethodOptions) => Promise<any> | any;
|
23
|
+
export type IValidateModelValueValidations = 'required' | 'is' | 'isValid' | 'of' | 'ofValid' | 'equal' | 'notEqual' | 'equalDeep' | 'notEqualDeep' | 'some' | 'in' | 'every' | 'properties' | 'notProperties' | 'min' | 'max' | 'length' | 'method';
|
24
|
+
export type IValidateModelMessages = {
|
25
25
|
[p in IValidateModelValueValidations]?: string;
|
26
26
|
};
|
27
27
|
export interface IValidateModelValue {
|
@@ -52,14 +52,14 @@ export interface IValidateModelValue {
|
|
52
52
|
capitalize?: boolean;
|
53
53
|
propertyNameUpdate?: (value: any) => string;
|
54
54
|
}
|
55
|
-
export
|
55
|
+
export type IUseFormValues = Record<string, IValidateModelValue>;
|
56
56
|
export interface IForm {
|
57
57
|
value: any;
|
58
58
|
values: IUseFormValues;
|
59
59
|
valid: boolean;
|
60
60
|
}
|
61
|
-
export
|
62
|
-
export
|
61
|
+
export type IValidateValidation = (property: IValidateModelValue, form: IForm) => void | Error | Promise<void | Error>;
|
62
|
+
export type IValidateVales = Record<string, IValidateModelValue>;
|
63
63
|
export declare const onValidateError: (options: IValidateOptions, model: IValidateModelValue, message?: any) => never;
|
64
64
|
declare const validate: (model: IValidateModelValue, property: string, form: IForm, options_?: IValidateOptions) => Promise<void>;
|
65
65
|
export default validate;
|
package/useScroll/useScroll.d.ts
CHANGED
package/useScroll/useScroll.js
CHANGED
@@ -11,8 +11,8 @@ const useScroll = (props) => {
|
|
11
11
|
const refs = {
|
12
12
|
root: react_1.default.useRef(root),
|
13
13
|
previous: react_1.default.useRef(0),
|
14
|
-
offset: react_1.default.useRef(),
|
15
|
-
direction: react_1.default.useRef(),
|
14
|
+
offset: react_1.default.useRef(null),
|
15
|
+
direction: react_1.default.useRef(null),
|
16
16
|
response: react_1.default.useRef(response)
|
17
17
|
};
|
18
18
|
refs.root.current = root;
|