@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.
Files changed (174) hide show
  1. package/Accordion/Accordion.d.ts +1 -1
  2. package/Accordion/Accordion.js +2 -2
  3. package/Append/Append.d.ts +1 -1
  4. package/AreaChartItem/AreaChartItem.js +8 -8
  5. package/AudioPlayer/AudioPlayer.js +25 -25
  6. package/AudioRecorder/AudioRecorder.js +10 -10
  7. package/AutoComplete/AutoComplete.d.ts +2 -2
  8. package/AutoComplete/AutoComplete.js +2 -2
  9. package/Avatar/Avatar.js +4 -4
  10. package/Breadcrumbs/Breadcrumbs.js +2 -2
  11. package/BubbleChartItem/BubbleChartItem.js +6 -6
  12. package/Calendar/Calendar.d.ts +2 -2
  13. package/Calendar/Calendar.js +7 -7
  14. package/CalendarAvailability/CalendarAvailability.js +5 -5
  15. package/CalendarMenu/CalendarMenu.js +6 -6
  16. package/CalendarMonth/CalendarMonth.d.ts +3 -3
  17. package/CalendarMonth/CalendarMonth.js +2 -2
  18. package/CalendarViews/CalendarViews.d.ts +1 -1
  19. package/CalendarViews/CalendarViews.js +2 -2
  20. package/Carousel/Carousel.d.ts +2 -2
  21. package/Carousel/Carousel.js +2 -2
  22. package/Chart/Chart.d.ts +1 -1
  23. package/Chip/Chip.js +1 -1
  24. package/Clock/Clock.d.ts +4 -4
  25. package/Clock/Clock.js +11 -11
  26. package/ColumnChartItem/ColumnChartItem.js +6 -6
  27. package/Confirm/Confirm.js +4 -4
  28. package/Countdown/Countdown.js +4 -4
  29. package/DatePicker/DatePicker.js +3 -3
  30. package/DateTimePicker/DateTimePicker.d.ts +1 -1
  31. package/DateTimePicker/DateTimePicker.js +3 -3
  32. package/DragAndDropList/DragAndDropList.js +5 -5
  33. package/Drawing/Drawing.d.ts +1 -1
  34. package/Drawing/Drawing.js +4 -4
  35. package/DropZone/DropZone.js +1 -1
  36. package/Emojis/Emojis.js +8 -8
  37. package/FileChoose/FileChoose.d.ts +1 -1
  38. package/FileChoose/FileChoose.js +5 -5
  39. package/Frame/Frame.js +4 -4
  40. package/Grid/Grid.d.ts +1 -1
  41. package/HTMLCanvas/HTMLCanvas.js +6 -6
  42. package/ImageCrop/ImageCrop.d.ts +1 -1
  43. package/ImageCrop/ImageCrop.js +22 -22
  44. package/ImageEdit/ImageEdit.d.ts +1 -1
  45. package/ImageEdit/ImageEdit.js +23 -23
  46. package/ImageGallery/ImageGallery.js +14 -14
  47. package/Info/Info.js +1 -1
  48. package/Interaction/Interaction.d.ts +1 -1
  49. package/Keyframes/Keyframes.d.ts +1 -1
  50. package/Line/Line.d.ts +5 -5
  51. package/LineChartItem/LineChartItem.js +7 -7
  52. package/Links/Links.js +2 -2
  53. package/MainProgress/MainProgress.js +13 -13
  54. package/Medias/Medias.d.ts +1 -1
  55. package/Medias/Medias.js +1 -1
  56. package/MenuDesktop/MenuDesktop.d.ts +2 -2
  57. package/MenuDesktop/MenuDesktop.js +1 -1
  58. package/MenuItem/MenuItem.js +2 -2
  59. package/MoreOptions/MoreOptions.js +1 -1
  60. package/NavigationBar/NavigationBar.d.ts +1 -1
  61. package/NavigationItem/NavigationItem.d.ts +1 -1
  62. package/NumericTextField/NumericTextField.js +2 -2
  63. package/Page/Page.js +2 -2
  64. package/Pagination/Pagination.js +4 -4
  65. package/Parallax/Parallax.d.ts +1 -1
  66. package/Rating/Rating.js +2 -2
  67. package/RichTextEditor/RichTextEditor.js +69 -69
  68. package/ScatterChartItem/ScatterChartItem.js +6 -6
  69. package/ScreenCapture/ScreenCapture.d.ts +1 -1
  70. package/ScreenCapture/ScreenCapture.js +8 -8
  71. package/Section/Section.d.ts +1 -1
  72. package/SectionContact/SectionContact.js +3 -3
  73. package/SectionMedia/SectionMedia.js +1 -1
  74. package/Select/Select.js +2 -2
  75. package/Share/Share.js +4 -4
  76. package/Slider/Slider.d.ts +1 -1
  77. package/SmartTextField/SmartTextField.js +31 -31
  78. package/Snackbar/Snackbar.js +1 -1
  79. package/Space/Space.js +13 -13
  80. package/SpeechToText/SpeechToText.js +2 -2
  81. package/SpeedDial/SpeedDial.js +1 -1
  82. package/TableCell/TableCell.d.ts +1 -1
  83. package/TableCell/TableCell.js +1 -1
  84. package/TablePagination/TablePagination.js +4 -4
  85. package/Tabs/Tabs.js +4 -4
  86. package/TextField/TextField.js +1 -1
  87. package/TextToSpeech/TextToSpeech.js +2 -2
  88. package/TimePicker/TimePicker.d.ts +2 -2
  89. package/TimePicker/TimePicker.js +2 -2
  90. package/Timer/Timer.js +5 -5
  91. package/Transition/Transition.d.ts +1 -1
  92. package/Transitions/Transitions.d.ts +1 -1
  93. package/Tree/Tree.js +3 -3
  94. package/VideoPlayer/VideoPlayer.js +29 -29
  95. package/ViewSplit/ViewSplit.js +2 -2
  96. package/Weather/Weather.d.ts +3 -3
  97. package/Weather/Weather.js +5 -5
  98. package/Widgets/Widgets.js +2 -2
  99. package/WindowSplit/WindowSplit.js +2 -2
  100. package/esm/Accordion/Accordion.js +2 -2
  101. package/esm/AreaChartItem/AreaChartItem.js +8 -8
  102. package/esm/AudioPlayer/AudioPlayer.js +25 -25
  103. package/esm/AudioRecorder/AudioRecorder.js +10 -10
  104. package/esm/AutoComplete/AutoComplete.js +2 -2
  105. package/esm/Avatar/Avatar.js +2 -2
  106. package/esm/Breadcrumbs/Breadcrumbs.js +2 -2
  107. package/esm/BubbleChartItem/BubbleChartItem.js +6 -6
  108. package/esm/Calendar/Calendar.js +7 -7
  109. package/esm/CalendarAvailability/CalendarAvailability.js +5 -5
  110. package/esm/CalendarMenu/CalendarMenu.js +6 -6
  111. package/esm/CalendarMonth/CalendarMonth.js +2 -2
  112. package/esm/CalendarViews/CalendarViews.js +2 -2
  113. package/esm/Carousel/Carousel.js +2 -2
  114. package/esm/Chip/Chip.js +1 -1
  115. package/esm/Clock/Clock.js +11 -11
  116. package/esm/ColumnChartItem/ColumnChartItem.js +6 -6
  117. package/esm/Confirm/Confirm.js +4 -4
  118. package/esm/Countdown/Countdown.js +4 -4
  119. package/esm/DatePicker/DatePicker.js +3 -3
  120. package/esm/DateTimePicker/DateTimePicker.js +3 -3
  121. package/esm/DragAndDropList/DragAndDropList.js +5 -5
  122. package/esm/Drawing/Drawing.js +4 -4
  123. package/esm/DropZone/DropZone.js +1 -1
  124. package/esm/Emojis/Emojis.js +8 -8
  125. package/esm/FileChoose/FileChoose.js +5 -5
  126. package/esm/Frame/Frame.js +4 -4
  127. package/esm/HTMLCanvas/HTMLCanvas.js +6 -6
  128. package/esm/ImageCrop/ImageCrop.js +22 -22
  129. package/esm/ImageEdit/ImageEdit.js +23 -23
  130. package/esm/ImageGallery/ImageGallery.js +14 -14
  131. package/esm/Info/Info.js +1 -1
  132. package/esm/LineChartItem/LineChartItem.js +7 -7
  133. package/esm/Links/Links.js +2 -2
  134. package/esm/MainProgress/MainProgress.js +13 -13
  135. package/esm/Medias/Medias.js +1 -1
  136. package/esm/MenuDesktop/MenuDesktop.js +1 -1
  137. package/esm/MenuItem/MenuItem.js +2 -2
  138. package/esm/MoreOptions/MoreOptions.js +1 -1
  139. package/esm/NumericTextField/NumericTextField.js +2 -2
  140. package/esm/Page/Page.js +2 -2
  141. package/esm/Pagination/Pagination.js +4 -4
  142. package/esm/Rating/Rating.js +2 -2
  143. package/esm/RichTextEditor/RichTextEditor.js +69 -69
  144. package/esm/ScatterChartItem/ScatterChartItem.js +6 -6
  145. package/esm/ScreenCapture/ScreenCapture.js +8 -8
  146. package/esm/SectionContact/SectionContact.js +3 -3
  147. package/esm/SectionMedia/SectionMedia.js +1 -1
  148. package/esm/Select/Select.js +2 -2
  149. package/esm/Share/Share.js +4 -4
  150. package/esm/SmartTextField/SmartTextField.js +31 -31
  151. package/esm/Snackbar/Snackbar.js +1 -1
  152. package/esm/Space/Space.js +13 -13
  153. package/esm/SpeechToText/SpeechToText.js +2 -2
  154. package/esm/SpeedDial/SpeedDial.js +1 -1
  155. package/esm/TableCell/TableCell.js +1 -1
  156. package/esm/TablePagination/TablePagination.js +4 -4
  157. package/esm/Tabs/Tabs.js +4 -4
  158. package/esm/TextField/TextField.js +1 -1
  159. package/esm/TextToSpeech/TextToSpeech.js +2 -2
  160. package/esm/TimePicker/TimePicker.js +2 -2
  161. package/esm/Timer/Timer.js +5 -5
  162. package/esm/Tree/Tree.js +3 -3
  163. package/esm/VideoPlayer/VideoPlayer.js +29 -29
  164. package/esm/ViewSplit/ViewSplit.js +2 -2
  165. package/esm/Weather/Weather.js +5 -5
  166. package/esm/Widgets/Widgets.js +2 -2
  167. package/esm/WindowSplit/WindowSplit.js +2 -2
  168. package/esm/index.js +1 -1
  169. package/esm/useScroll/useScroll.js +2 -2
  170. package/package.json +1 -1
  171. package/types.d.ts +23 -23
  172. package/useForm/validate.d.ts +6 -6
  173. package/useScroll/useScroll.d.ts +1 -1
  174. 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 '@amaui/icons-material-rounded-react/IconMaterialPlayArrowW100';
12
- import IconMaterialPause from '@amaui/icons-material-rounded-react/IconMaterialPauseW100';
13
- import IconMaterialForwardMedia from '@amaui/icons-material-rounded-react/IconMaterialForwardMediaW100';
14
- import IconMaterialVolumeDownAlt from '@amaui/icons-material-rounded-react/IconMaterialVolumeDownAltW100';
15
- import IconMaterialVolumeOff from '@amaui/icons-material-rounded-react/IconMaterialVolumeOffW100';
16
- import IconMaterialFullscreen from '@amaui/icons-material-rounded-react/IconMaterialFullscreenW100';
17
- import IconMaterialFullscreenExit from '@amaui/icons-material-rounded-react/IconMaterialFullscreenExitW100';
18
- import IconMaterialSettings from '@amaui/icons-material-rounded-react/IconMaterialSettingsW100';
19
- import IconMaterialTune from '@amaui/icons-material-rounded-react/IconMaterialTuneW100';
20
- import IconMaterialSlowMotionVideo from '@amaui/icons-material-rounded-react/IconMaterialSlowMotionVideoW100';
21
- import IconMaterialPictureInPictureAlt from '@amaui/icons-material-rounded-react/IconMaterialPictureInPictureAltW100';
22
- import IconMaterialArrowBackIos from '@amaui/icons-material-rounded-react/IconMaterialArrowBackIosW100';
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(undefined),
244
- video: React.useRef(),
245
- controls: React.useRef(undefined),
246
- duration: React.useRef(undefined),
247
- time: React.useRef(undefined),
248
- play: React.useRef(undefined),
249
- updating: React.useRef(undefined),
250
- onPlay: React.useRef(undefined),
251
- onPause: React.useRef(undefined),
252
- onTimeChange: React.useRef(undefined),
253
- onBackward: React.useRef(undefined),
254
- onForward: React.useRef(undefined),
255
- onStop: React.useRef(undefined),
256
- startMediaSession: React.useRef(undefined),
257
- updateMediaSession: React.useRef(undefined),
258
- startMediaSessionOnPlay: React.useRef(undefined),
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(undefined)
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 '@amaui/icons-material-rounded-react/IconMaterialSwapHorizW100';
11
- import IconMaterialSwapVert from '@amaui/icons-material-rounded-react/IconMaterialSwapVertW100';
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';
@@ -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 '@amaui/icons-material-rounded-react/IconMaterialCircleW100Filled';
12
- import IconMaterialNightlight from '@amaui/icons-material-rounded-react/IconMaterialNightlightW100Filled';
13
- import IconMaterialCloud from '@amaui/icons-material-rounded-react/IconMaterialCloudW100Filled';
14
- import IconMaterialRainy from '@amaui/icons-material-rounded-react/IconMaterialRainyW100Filled';
15
- import IconMaterialCloudySnowing from '@amaui/icons-material-rounded-react/IconMaterialCloudySnowingW100Filled';
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';
@@ -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 '@amaui/icons-material-rounded-react/IconMaterialCloseW100';
11
- import IconMaterialWidgets from '@amaui/icons-material-rounded-react/IconMaterialWidgetsW100';
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 '@amaui/icons-material-rounded-react/IconMaterialSwapHorizW100';
11
- import IconMaterialSwapVert from '@amaui/icons-material-rounded-react/IconMaterialSwapVertW100';
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
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.1
1
+ /** @license UiReact v1.0.3
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesy/ui-react",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "UI for React",
5
5
  "repository": "https://github.com/onesy-org/onesy.git",
6
6
  "author": "Lazar <lazareric2@gmail.com>",
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 declare type IPoint = [number, number];
4
- export declare type ITonal = true | false | 'secondary';
5
- declare type RGB = `rgb(${number}, ${number}, ${number})`;
6
- declare type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
7
- declare type HSL = `hsl(${number}, ${number}, ${number})`;
8
- declare type HSLA = `hsla(${number}, ${number}, ${number}, ${number})`;
9
- declare type HEX = `#${string}`;
10
- declare type Color = RGB | RGBA | HSL | HSLA | HEX;
11
- export declare type IColor = 'default' | 'themed' | 'inverted' | 'inherit' | TPaletteVersion | Color;
12
- export declare type IVersion = 'filled' | 'outlined' | 'outlined-without-background' | 'text';
13
- export declare type ISize = 'small' | 'regular' | 'large';
14
- export declare type ISizeAny = ISize | number;
15
- export declare type IElevation = 0 | 1 | 2 | 3 | 4 | 6 | 8 | 9 | 12 | 16 | 24;
16
- export declare type IElementReference = string | React.FC<any> | (React.ForwardRefExoticComponent<any>);
17
- export declare type IElement = React.ReactNode | React.ReactNode[] | React.ReactElement<any, string | React.JSXElementConstructor<any>>;
18
- export declare type IElementAny = IElement | string | number | boolean | null | undefined;
19
- export declare type IHTMLElement = Element | HTMLElement;
20
- export declare type IPropsAny = Record<string, any>;
21
- export declare type IStyle = React.CSSProperties | undefined;
22
- export declare type IChildren = React.ReactNode | React.ReactNode[];
23
- export declare type IRef = React.MutableRefObject<any>;
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 declare type IMethodTransition = (element?: IHTMLElement) => any;
32
- export declare type IValueBreakpoints = IBreakpoint | 'default';
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;
@@ -19,9 +19,9 @@ export interface IValidateModelValueMethodOptions {
19
19
  object: IValidateModelValue;
20
20
  options: IValidateOptions;
21
21
  }
22
- export declare type IValidateModelValueMethod = (value: any, options: IValidateModelValueMethodOptions) => Promise<any> | any;
23
- export declare type IValidateModelValueValidations = 'required' | 'is' | 'isValid' | 'of' | 'ofValid' | 'equal' | 'notEqual' | 'equalDeep' | 'notEqualDeep' | 'some' | 'in' | 'every' | 'properties' | 'notProperties' | 'min' | 'max' | 'length' | 'method';
24
- export declare type IValidateModelMessages = {
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 declare type IUseFormValues = Record<string, IValidateModelValue>;
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 declare type IValidateValidation = (property: IValidateModelValue, form: IForm) => void | Error | Promise<void | Error>;
62
- export declare type IValidateVales = Record<string, IValidateModelValue>;
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;
@@ -1,4 +1,4 @@
1
- export declare type TUseScrollDirection = 'up' | 'down';
1
+ export type TUseScrollDirection = 'up' | 'down';
2
2
  export interface IUseScroll {
3
3
  offset?: number;
4
4
  direction?: TUseScrollDirection;
@@ -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;