@onesy/ui-react 1.0.0 → 1.0.2

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 (89) hide show
  1. package/Accordion/Accordion.d.ts +1 -1
  2. package/Accordion/Accordion.js +1 -1
  3. package/Append/Append.d.ts +1 -1
  4. package/AreaChartItem/AreaChartItem.js +8 -8
  5. package/AudioPlayer/AudioPlayer.js +16 -16
  6. package/AudioRecorder/AudioRecorder.js +5 -5
  7. package/AutoComplete/AutoComplete.d.ts +2 -2
  8. package/Avatar/Avatar.js +4 -4
  9. package/BubbleChartItem/BubbleChartItem.js +6 -6
  10. package/Calendar/Calendar.d.ts +2 -2
  11. package/Calendar/Calendar.js +4 -4
  12. package/CalendarMonth/CalendarMonth.d.ts +3 -3
  13. package/CalendarMonth/CalendarMonth.js +2 -2
  14. package/CalendarViews/CalendarViews.d.ts +1 -1
  15. package/Carousel/Carousel.d.ts +2 -2
  16. package/Chart/Chart.d.ts +1 -1
  17. package/Clock/Clock.d.ts +4 -4
  18. package/Clock/Clock.js +11 -11
  19. package/ColumnChartItem/ColumnChartItem.js +6 -6
  20. package/Confirm/Confirm.js +4 -4
  21. package/DateTimePicker/DateTimePicker.d.ts +1 -1
  22. package/DragAndDropList/DragAndDropList.js +5 -5
  23. package/Drawing/Drawing.d.ts +1 -1
  24. package/FileChoose/FileChoose.d.ts +1 -1
  25. package/Grid/Grid.d.ts +1 -1
  26. package/HTMLCanvas/HTMLCanvas.js +5 -5
  27. package/ImageCrop/ImageCrop.d.ts +1 -1
  28. package/ImageCrop/ImageCrop.js +22 -22
  29. package/ImageEdit/ImageEdit.d.ts +1 -1
  30. package/ImageEdit/ImageEdit.js +9 -9
  31. package/ImageGallery/ImageGallery.js +11 -11
  32. package/Interaction/Interaction.d.ts +1 -1
  33. package/Keyframes/Keyframes.d.ts +1 -1
  34. package/Line/Line.d.ts +5 -5
  35. package/LineChartItem/LineChartItem.js +7 -7
  36. package/MainProgress/MainProgress.js +13 -13
  37. package/Medias/Medias.d.ts +1 -1
  38. package/MenuDesktop/MenuDesktop.d.ts +2 -2
  39. package/NavigationBar/NavigationBar.d.ts +1 -1
  40. package/NavigationItem/NavigationItem.d.ts +1 -1
  41. package/Parallax/Parallax.d.ts +1 -1
  42. package/RichTextEditor/RichTextEditor.js +33 -33
  43. package/ScatterChartItem/ScatterChartItem.js +6 -6
  44. package/ScreenCapture/ScreenCapture.d.ts +1 -1
  45. package/ScreenCapture/ScreenCapture.js +4 -4
  46. package/Section/Section.d.ts +1 -1
  47. package/Slider/Slider.d.ts +1 -1
  48. package/SmartTextField/SmartTextField.js +24 -24
  49. package/TableCell/TableCell.d.ts +1 -1
  50. package/TimePicker/TimePicker.d.ts +2 -2
  51. package/Transition/Transition.d.ts +1 -1
  52. package/Transitions/Transitions.d.ts +1 -1
  53. package/Tree/Tree.js +2 -2
  54. package/VideoPlayer/VideoPlayer.js +17 -17
  55. package/Weather/Weather.d.ts +3 -3
  56. package/Zoom/Zoom.d.ts +1 -1
  57. package/Zoom/Zoom.js +1 -1
  58. package/esm/Accordion/Accordion.js +1 -1
  59. package/esm/AreaChartItem/AreaChartItem.js +8 -8
  60. package/esm/AudioPlayer/AudioPlayer.js +16 -16
  61. package/esm/AudioRecorder/AudioRecorder.js +5 -5
  62. package/esm/Avatar/Avatar.js +2 -2
  63. package/esm/BubbleChartItem/BubbleChartItem.js +6 -6
  64. package/esm/Calendar/Calendar.js +4 -4
  65. package/esm/CalendarMonth/CalendarMonth.js +2 -2
  66. package/esm/Clock/Clock.js +11 -11
  67. package/esm/ColumnChartItem/ColumnChartItem.js +6 -6
  68. package/esm/Confirm/Confirm.js +4 -4
  69. package/esm/DragAndDropList/DragAndDropList.js +5 -5
  70. package/esm/HTMLCanvas/HTMLCanvas.js +5 -5
  71. package/esm/ImageCrop/ImageCrop.js +22 -22
  72. package/esm/ImageEdit/ImageEdit.js +9 -9
  73. package/esm/ImageGallery/ImageGallery.js +11 -11
  74. package/esm/LineChartItem/LineChartItem.js +7 -7
  75. package/esm/MainProgress/MainProgress.js +13 -13
  76. package/esm/RichTextEditor/RichTextEditor.js +33 -33
  77. package/esm/ScatterChartItem/ScatterChartItem.js +6 -6
  78. package/esm/ScreenCapture/ScreenCapture.js +4 -4
  79. package/esm/SmartTextField/SmartTextField.js +24 -24
  80. package/esm/Tree/Tree.js +2 -2
  81. package/esm/VideoPlayer/VideoPlayer.js +17 -17
  82. package/esm/Zoom/Zoom.js +1 -1
  83. package/esm/index.js +1 -1
  84. package/esm/useScroll/useScroll.js +2 -2
  85. package/package.json +2 -2
  86. package/types.d.ts +23 -23
  87. package/useForm/validate.d.ts +6 -6
  88. package/useScroll/useScroll.d.ts +1 -1
  89. package/useScroll/useScroll.js +2 -2
@@ -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;