@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.
Files changed (228) hide show
  1. package/Accordion/Accordion.d.ts +3 -6
  2. package/AdvancedTextField/AdvancedTextField.d.ts +2 -2
  3. package/Append/Append.d.ts +4 -4
  4. package/AreaChart/AreaChart.d.ts +2 -2
  5. package/AreaChartItem/AreaChartItem.d.ts +4 -2
  6. package/AudioPlayer/AudioPlayer.d.ts +5 -7
  7. package/AudioRecorder/AudioRecorder.d.ts +3 -5
  8. package/AutoComplete/AutoComplete.d.ts +2 -4
  9. package/AutoCompleteCountry/AutoCompleteCountry.d.ts +1 -2
  10. package/AutoCompleteCurrency/AutoCompleteCurrency.d.ts +1 -2
  11. package/AutoCompleteGooglePlaces/AutoCompleteGooglePlaces.d.ts +3 -2
  12. package/Avatar/Avatar.d.ts +2 -2
  13. package/AvatarGroup/AvatarGroup.d.ts +3 -7
  14. package/Backdrop/Backdrop.d.ts +2 -2
  15. package/Badge/Badge.d.ts +3 -5
  16. package/Banner/Banner.d.ts +6 -4
  17. package/BottomAppBar/BottomAppBar.d.ts +3 -4
  18. package/BottomSheet/BottomSheet.d.ts +1 -2
  19. package/Box/Box.d.ts +2 -2
  20. package/Breadcrumbs/Breadcrumbs.d.ts +4 -2
  21. package/BubbleChart/BubbleChart.d.ts +1 -2
  22. package/BubbleChartItem/BubbleChartItem.d.ts +2 -2
  23. package/Button/Button.d.ts +4 -5
  24. package/Buttons/Buttons.d.ts +3 -7
  25. package/Calendar/Calendar.d.ts +8 -8
  26. package/CalendarAvailability/CalendarAvailability.d.ts +5 -4
  27. package/CalendarMenu/CalendarMenu.d.ts +2 -2
  28. package/CalendarMonth/CalendarMonth.d.ts +5 -8
  29. package/CalendarViews/CalendarViews.d.ts +2 -2
  30. package/CalendarWeek/CalendarWeek.d.ts +2 -2
  31. package/Card/Card.d.ts +2 -3
  32. package/CardButton/CardButton.d.ts +2 -3
  33. package/CardFooter/CardFooter.d.ts +3 -5
  34. package/CardHeader/CardHeader.d.ts +3 -5
  35. package/CardImage/CardImage.d.ts +3 -5
  36. package/CardMain/CardMain.d.ts +3 -5
  37. package/Carousel/Carousel.d.ts +4 -4
  38. package/Chart/Chart.d.ts +8 -10
  39. package/Checkbox/Checkbox.d.ts +2 -2
  40. package/Chip/Chip.d.ts +2 -2
  41. package/Chips/Chips.d.ts +4 -2
  42. package/Chips/Chips.js +2 -2
  43. package/ClickListener/ClickListener.d.ts +3 -3
  44. package/Clock/Clock.d.ts +2 -8
  45. package/ColorTextField/ColorTextField.d.ts +2 -2
  46. package/ColumnChart/ColumnChart.d.ts +1 -2
  47. package/ColumnChartItem/ColumnChartItem.d.ts +4 -2
  48. package/Confirm/Confirm.d.ts +8 -8
  49. package/Container/Container.d.ts +2 -2
  50. package/CookieBanner/CookieBanner.d.ts +2 -2
  51. package/Countdown/Countdown.d.ts +2 -2
  52. package/DatePicker/DatePicker.d.ts +4 -8
  53. package/DateRangePicker/DateRangePicker.d.ts +1 -2
  54. package/DateTimePicker/DateTimePicker.d.ts +5 -7
  55. package/DateTimeRangePicker/DateTimeRangePicker.d.ts +1 -2
  56. package/Divider/Divider.d.ts +2 -2
  57. package/DonutChart/DonutChart.d.ts +1 -2
  58. package/DragAndDropList/DragAndDropList.d.ts +2 -2
  59. package/Drawing/Drawing.d.ts +2 -2
  60. package/DropZone/DropZone.d.ts +2 -2
  61. package/DropZone/DropZone.js +2 -1
  62. package/Emojis/Emojis.d.ts +6 -6
  63. package/Expand/Expand.d.ts +2 -2
  64. package/Fab/Fab.d.ts +1 -2
  65. package/Fade/Fade.d.ts +1 -2
  66. package/FileChoose/FileChoose.d.ts +3 -6
  67. package/Focus/Focus.d.ts +1 -2
  68. package/Form/Form.d.ts +3 -4
  69. package/FormRow/FormRow.d.ts +2 -2
  70. package/Forms/Forms.d.ts +2 -2
  71. package/Frame/Frame.d.ts +3 -3
  72. package/Grid/Grid.d.ts +5 -2
  73. package/Grid/Grid.js +2 -1
  74. package/Grow/Grow.d.ts +1 -2
  75. package/HTMLCanvas/HTMLCanvas.d.ts +6 -9
  76. package/IFrame/IFrame.d.ts +3 -2
  77. package/Icon/Icon.d.ts +3 -6
  78. package/IconButton/IconButton.d.ts +1 -2
  79. package/Image/Image.d.ts +5 -5
  80. package/Image/Image.js +2 -1
  81. package/ImageCrop/ImageCrop.d.ts +2 -2
  82. package/ImageEdit/ImageEdit.d.ts +3 -5
  83. package/ImageGallery/ImageGallery.d.ts +2 -2
  84. package/ImageList/ImageList.d.ts +2 -2
  85. package/ImageList/ImageList.js +2 -1
  86. package/ImageListItem/ImageListItem.d.ts +2 -2
  87. package/ImageListItemBox/ImageListItemBox.d.ts +2 -2
  88. package/Info/Info.d.ts +2 -2
  89. package/Interaction/Interaction.d.ts +2 -3
  90. package/Keyframes/Keyframes.d.ts +4 -4
  91. package/Label/Label.d.ts +5 -7
  92. package/Labels/Labels.d.ts +3 -7
  93. package/Line/Line.d.ts +2 -2
  94. package/LineChart/LineChart.d.ts +2 -2
  95. package/LineChartItem/LineChartItem.d.ts +4 -2
  96. package/LinearMeter/LinearMeter.d.ts +3 -6
  97. package/LinearProgress/LinearProgress.d.ts +3 -5
  98. package/Link/Link.d.ts +2 -4
  99. package/Links/Links.d.ts +4 -4
  100. package/List/List.d.ts +4 -4
  101. package/ListItem/ListItem.d.ts +3 -5
  102. package/ListSubheader/ListSubheader.d.ts +1 -2
  103. package/MainProgress/MainProgress.d.ts +6 -6
  104. package/Markdown/Markdown.d.ts +2 -2
  105. package/Masonry/Masonry.d.ts +2 -2
  106. package/Medias/Medias.d.ts +4 -4
  107. package/Menu/Menu.d.ts +2 -2
  108. package/MenuDesktop/MenuDesktop.d.ts +3 -6
  109. package/MenuItem/MenuItem.d.ts +2 -2
  110. package/Meta/Meta.d.ts +2 -2
  111. package/Modal/Modal.d.ts +3 -6
  112. package/ModalFooter/ModalFooter.d.ts +1 -2
  113. package/ModalHeader/ModalHeader.d.ts +2 -2
  114. package/ModalIcon/ModalIcon.d.ts +1 -2
  115. package/ModalMain/ModalMain.d.ts +1 -2
  116. package/ModalText/ModalText.d.ts +1 -2
  117. package/ModalTitle/ModalTitle.d.ts +1 -2
  118. package/MoreOptions/MoreOptions.d.ts +2 -2
  119. package/Move/Move.d.ts +2 -2
  120. package/NavigationBar/NavigationBar.d.ts +2 -2
  121. package/NavigationDrawer/NavigationDrawer.d.ts +2 -2
  122. package/NavigationItem/NavigationItem.d.ts +3 -5
  123. package/NavigationRail/NavigationRail.d.ts +3 -4
  124. package/NotFound/NotFound.d.ts +3 -2
  125. package/NumericTextField/NumericTextField.d.ts +2 -2
  126. package/Page/Page.d.ts +4 -4
  127. package/PageTransition/PageTransition.d.ts +2 -2
  128. package/Pagination/Pagination.d.ts +3 -7
  129. package/PaginationItem/PaginationItem.d.ts +2 -2
  130. package/Parallax/Parallax.d.ts +2 -2
  131. package/Path/Path.d.ts +2 -2
  132. package/PieChart/PieChart.d.ts +4 -2
  133. package/Placeholder/Placeholder.d.ts +3 -4
  134. package/Portal/Portal.d.ts +2 -2
  135. package/Properties/Properties.d.ts +5 -5
  136. package/Property/Property.d.ts +2 -2
  137. package/Radio/Radio.d.ts +2 -2
  138. package/Radios/Radios.d.ts +3 -7
  139. package/Rating/Rating.d.ts +3 -8
  140. package/Reset/Reset.d.ts +1 -2
  141. package/Reveal/Reveal.d.ts +2 -2
  142. package/RichTextEditor/RichTextEditor.d.ts +3 -5
  143. package/RoundMeter/RoundMeter.d.ts +3 -6
  144. package/RoundProgress/RoundProgress.d.ts +3 -6
  145. package/ScatterChart/ScatterChart.d.ts +1 -2
  146. package/ScatterChartItem/ScatterChartItem.d.ts +4 -2
  147. package/ScreenCapture/ScreenCapture.d.ts +2 -2
  148. package/Section/Section.d.ts +2 -2
  149. package/SectionAction/SectionAction.d.ts +2 -2
  150. package/SectionBoxes/SectionBoxes.d.ts +4 -4
  151. package/SectionCards/SectionCards.d.ts +4 -4
  152. package/SectionCarousel/SectionCarousel.d.ts +4 -4
  153. package/SectionContact/SectionContact.d.ts +2 -2
  154. package/SectionImageGallery/SectionImageGallery.d.ts +2 -2
  155. package/SectionLogos/SectionLogos.d.ts +2 -2
  156. package/SectionMedia/SectionMedia.d.ts +2 -2
  157. package/SectionReviews/SectionReviews.d.ts +5 -4
  158. package/SectionTextMedia/SectionTextMedia.d.ts +2 -2
  159. package/SectionTimeline/SectionTimeline.d.ts +4 -4
  160. package/SectionWatch/SectionWatch.d.ts +2 -5
  161. package/Select/Select.d.ts +2 -2
  162. package/Share/Share.d.ts +3 -4
  163. package/Slide/Slide.d.ts +2 -2
  164. package/Slider/Slider.d.ts +4 -9
  165. package/SmartTextField/SmartTextField.d.ts +2 -3
  166. package/Snackbar/Snackbar.d.ts +3 -4
  167. package/Snackbars/Context.d.ts +2 -2
  168. package/Snackbars/Snackbars.d.ts +4 -4
  169. package/Space/Space.d.ts +3 -6
  170. package/SpeechToText/SpeechToText.d.ts +3 -5
  171. package/SpeedDial/SpeedDial.d.ts +3 -6
  172. package/SpeedDialItem/SpeedDialItem.d.ts +2 -2
  173. package/SpyScroll/SpyScroll.d.ts +2 -2
  174. package/Step/Step.d.ts +3 -5
  175. package/Stepper/Stepper.d.ts +4 -5
  176. package/Surface/Surface.d.ts +3 -6
  177. package/Switch/Switch.d.ts +5 -7
  178. package/Tab/Tab.d.ts +2 -3
  179. package/Table/Table.d.ts +3 -4
  180. package/TableBody/TableBody.d.ts +2 -4
  181. package/TableCell/TableCell.d.ts +3 -7
  182. package/TableFooter/TableFooter.d.ts +1 -4
  183. package/TableHead/TableHead.d.ts +2 -4
  184. package/TableHeader/TableHeader.d.ts +1 -4
  185. package/TablePagination/TablePagination.d.ts +3 -6
  186. package/TableRow/TableRow.d.ts +2 -4
  187. package/TableRow/TableRow.js +4 -4
  188. package/Tabs/Tabs.d.ts +2 -2
  189. package/Text/Text.d.ts +2 -2
  190. package/TextField/TextField.d.ts +4 -8
  191. package/TextToSpeech/TextToSpeech.d.ts +3 -5
  192. package/TimePicker/TimePicker.d.ts +5 -6
  193. package/TimeRangePicker/TimeRangePicker.d.ts +1 -2
  194. package/Timeline/Timeline.d.ts +2 -2
  195. package/TimelineItem/TimelineItem.d.ts +2 -2
  196. package/Timer/Timer.d.ts +2 -2
  197. package/ToggleButton/ToggleButton.d.ts +1 -2
  198. package/ToggleButtons/ToggleButtons.d.ts +1 -2
  199. package/Tooltip/Tooltip.d.ts +4 -5
  200. package/TopAppBar/TopAppBar.d.ts +3 -4
  201. package/Transition/Transition.d.ts +4 -4
  202. package/Transitions/Transitions.d.ts +2 -2
  203. package/Tree/Tree.d.ts +5 -5
  204. package/Type/Type.d.ts +3 -5
  205. package/VideoPlayer/VideoPlayer.d.ts +5 -7
  206. package/ViewSplit/ViewSplit.d.ts +4 -5
  207. package/Watch/Watch.d.ts +3 -4
  208. package/Weather/Weather.d.ts +3 -4
  209. package/Whiteboard/Whiteboard.d.ts +6 -6
  210. package/Widgets/Widgets.d.ts +4 -4
  211. package/WindowSplit/WindowSplit.d.ts +4 -5
  212. package/Zoom/Zoom.d.ts +1 -2
  213. package/esm/Chips/Chips.js +3 -3
  214. package/esm/DropZone/DropZone.js +2 -1
  215. package/esm/Grid/Grid.js +2 -1
  216. package/esm/Image/Image.js +2 -1
  217. package/esm/ImageList/ImageList.js +2 -1
  218. package/esm/TableRow/TableRow.js +1 -1
  219. package/esm/index.js +1 -1
  220. package/package.json +1 -1
  221. package/types.d.ts +11 -8
  222. package/useForm/useForm.d.ts +4 -4
  223. package/useForm/validate.d.ts +12 -12
  224. package/useLocation/useLocation.d.ts +1 -2
  225. package/useMediaQuery/useMediaQuery.d.ts +2 -2
  226. package/useScroll/useScroll.d.ts +2 -2
  227. package/useSwipe/useSwipe.d.ts +4 -4
  228. package/useVisible/useVisible.d.ts +4 -4
@@ -1,9 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IModal } from '../Modal/Modal';
3
- import { IColor, IElement, IElementReference, IHTMLElement, IMethodTransition, IPropsAny, ITonal } from '../types';
4
- export interface ITooltip extends Omit<IModal, 'maxWidth'> {
5
- tonal?: ITonal;
6
- color?: IColor;
3
+ import { IElement, IElementReference, IHTMLElement, IMethodTransition, IPropsAny } from '../types';
4
+ export declare type ITooltip = Omit<IModal, 'maxWidth'> & {
7
5
  open?: boolean;
8
6
  openDefault?: boolean;
9
7
  name?: IElement;
@@ -33,6 +31,7 @@ export interface ITooltip extends Omit<IModal, 'maxWidth'> {
33
31
  nowrap?: boolean;
34
32
  follow?: boolean;
35
33
  interactive?: boolean;
34
+ elevation?: boolean;
36
35
  onOpen?: () => any;
37
36
  onClose?: () => any;
38
37
  onExited?: IMethodTransition;
@@ -42,6 +41,6 @@ export interface ITooltip extends Omit<IModal, 'maxWidth'> {
42
41
  ModalProps?: IPropsAny;
43
42
  LabelProps?: IPropsAny;
44
43
  LabelTextProps?: IPropsAny;
45
- }
44
+ };
46
45
  declare const Tooltip: React.FC<ITooltip>;
47
46
  export default Tooltip;
@@ -1,14 +1,13 @@
1
1
  import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
- import { ISize, IElement } from '../types';
4
- export interface ITopAppBar extends Omit<ISurface, 'version'> {
3
+ import { IElement } from '../types';
4
+ export declare type ITopAppBar = Omit<ISurface, 'version'> & {
5
5
  position?: 'relative' | 'absolute' | 'static' | 'sticky' | 'fixed' | 'unset';
6
6
  version?: 'small' | 'center' | 'medium' | 'large';
7
- size?: ISize;
8
7
  center?: boolean;
9
8
  title?: IElement;
10
9
  start?: IElement;
11
10
  end?: IElement;
12
- }
11
+ };
13
12
  declare const TopAppBar: React.FC<ITopAppBar>;
14
13
  export default TopAppBar;
@@ -3,13 +3,13 @@ import { TTransitionsDurationProperties } from '@onesy/style-react';
3
3
  import { IBaseElement } from '../types';
4
4
  export declare type TTransitionStatus = 'appended' | 'add' | 'adding' | 'added' | 'enter' | 'entering' | 'entered' | 'exit' | 'exiting' | 'exited' | 'removed';
5
5
  export declare const STATUS: Record<TTransitionStatus, TTransitionStatus>;
6
- export interface ITransitionDelay {
6
+ export declare type ITransitionDelay = {
7
7
  default?: number;
8
8
  add?: number;
9
9
  enter?: number;
10
10
  exit?: number;
11
- }
12
- export interface ITransition extends Omit<IBaseElement, 'children' | 'className'> {
11
+ };
12
+ export declare type ITransition = Omit<IBaseElement, 'className'> & {
13
13
  in?: boolean;
14
14
  name?: string;
15
15
  className?: boolean;
@@ -41,6 +41,6 @@ export interface ITransition extends Omit<IBaseElement, 'children' | 'className'
41
41
  onRemoved?: (element: HTMLElement) => void;
42
42
  children?: any;
43
43
  [p: string]: any;
44
- }
44
+ };
45
45
  declare const Transition: React.FC<ITransition>;
46
46
  export default Transition;
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  import { IPropsAny } from '../types';
3
3
  export declare type TTransitionsMode = 'in-out' | 'in-out-follow' | 'out-in';
4
- export interface ITransitions {
4
+ export declare type ITransitions = {
5
5
  id?: string;
6
6
  mode?: TTransitionsMode;
7
7
  switch?: boolean;
8
8
  TransitionProps?: IPropsAny;
9
9
  children?: any;
10
- }
10
+ };
11
11
  declare const Transitions: React.FC<ITransitions>;
12
12
  export default Transitions;
package/Tree/Tree.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
- import { IBaseElement, IElement, IPropsAny, IElementReference } from '../types';
3
- export interface ITree extends Omit<IBaseElement, 'children'> {
2
+ import { IBaseElement, IElement, IPropsAny, IElementReference, IVersion } from '../types';
3
+ export declare type ITree = IBaseElement & {
4
4
  open?: boolean;
5
5
  openDefault?: boolean;
6
+ version?: IVersion;
6
7
  onChange?: (value: boolean) => any;
7
8
  selected?: boolean;
8
9
  line?: boolean;
@@ -22,7 +23,6 @@ export interface ITree extends Omit<IBaseElement, 'children'> {
22
23
  noPadding?: boolean;
23
24
  parent?: HTMLElement;
24
25
  parentDisabled?: boolean;
25
- disabled?: boolean;
26
26
  ExpandProps?: IPropsAny;
27
27
  MainProps?: IPropsAny;
28
28
  StartProps?: IPropsAny;
@@ -30,9 +30,9 @@ export interface ITree extends Omit<IBaseElement, 'children'> {
30
30
  EndProps?: IPropsAny;
31
31
  IndicatorProps?: IPropsAny;
32
32
  TransitionComponentProps?: IPropsAny;
33
+ TreeProps?: IPropsAny;
33
34
  IconArrow?: IElementReference;
34
35
  TransitionComponent?: IElementReference;
35
- children?: any;
36
- }
36
+ };
37
37
  declare const Tree: React.FC<ITree>;
38
38
  export default Tree;
package/Type/Type.d.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TTypographyItem } from '@onesy/style-react';
3
- import { IBaseElement, IColor } from '../types';
4
- export interface IType extends IBaseElement {
5
- color?: IColor;
3
+ import { IBaseElement } from '../types';
4
+ export declare type IType = IBaseElement & {
6
5
  responsive?: boolean;
7
6
  priority?: 'primary' | 'secondary' | 'tertiary' | 'quaternary';
8
7
  version?: TTypographyItem;
@@ -12,7 +11,6 @@ export interface IType extends IBaseElement {
12
11
  weight?: string | number;
13
12
  whiteSpace?: '-moz-pre-wrap' | 'break-spaces' | 'normal' | 'nowrap' | 'pre' | 'pre-line' | 'pre-wrap';
14
13
  fullWidth?: boolean;
15
- disabled?: boolean;
16
- }
14
+ };
17
15
  declare const Type: React.FC<IType>;
18
16
  export default Type;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
- import { ITonal, IColor, ISize, IElementReference, IPropsAny } from '../types';
4
- export interface IVideoPlayer extends ILine {
3
+ import { IElementReference, IPropsAny } from '../types';
4
+ export declare type IVideoPlayer = ILine & {
5
5
  name?: string;
6
6
  src?: string;
7
7
  mime?: string;
@@ -9,9 +9,6 @@ export interface IVideoPlayer extends ILine {
9
9
  versions?: any;
10
10
  thumbnails?: any;
11
11
  duration?: number;
12
- tonal?: ITonal;
13
- color?: IColor;
14
- size?: ISize;
15
12
  start?: any;
16
13
  end?: any;
17
14
  startControls?: any;
@@ -20,6 +17,8 @@ export interface IVideoPlayer extends ILine {
20
17
  endButtons?: any;
21
18
  startEnd?: any;
22
19
  endEnd?: any;
20
+ startButtonsEnd?: any;
21
+ endButtonsEnd?: any;
23
22
  forward?: boolean;
24
23
  backward?: boolean;
25
24
  settings?: boolean;
@@ -28,7 +27,6 @@ export interface IVideoPlayer extends ILine {
28
27
  pictureInPicture?: boolean;
29
28
  fullScreen?: boolean;
30
29
  startMediaSessionOnPlay?: boolean;
31
- disabled?: boolean;
32
30
  IconPlay?: IElementReference;
33
31
  IconPause?: IElementReference;
34
32
  IconForward?: IElementReference;
@@ -56,6 +54,6 @@ export interface IVideoPlayer extends ILine {
56
54
  QualityButtonProps?: IPropsAny;
57
55
  PictureInPictureButtonProps?: IPropsAny;
58
56
  FullScreenButtonProps?: IPropsAny;
59
- }
57
+ };
60
58
  declare const VideoPlayer: React.FC<IVideoPlayer>;
61
59
  export default VideoPlayer;
@@ -1,9 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
- import { ITonal, IColor, IElement, IPropsAny } from '../types';
4
- export interface IViewSplit extends ILine {
5
- tonal?: ITonal;
6
- color?: IColor;
3
+ import { IElement, IPropsAny } from '../types';
4
+ export declare type IViewSplit = ILine & {
7
5
  valueDefault?: number;
8
6
  value?: number;
9
7
  onChange?: (value: number) => any;
@@ -19,6 +17,7 @@ export interface IViewSplit extends ILine {
19
17
  iconOrientationVertical?: IElement;
20
18
  IconButtonProps?: IPropsAny;
21
19
  DividerProps?: IPropsAny;
22
- }
20
+ SeparatorProps?: IPropsAny;
21
+ };
23
22
  declare const ViewSplit: React.FC<IViewSplit>;
24
23
  export default ViewSplit;
package/Watch/Watch.d.ts CHANGED
@@ -1,10 +1,9 @@
1
1
  import React from 'react';
2
2
  import { OnesyDate } from '@onesy/date';
3
3
  import { ISurface } from '../Surface/Surface';
4
- import { ISize, IElement, IPropsAny } from '../types';
5
- export interface IWatch extends Omit<ISurface, 'version'> {
4
+ import { IElement, IPropsAny } from '../types';
5
+ export declare type IWatch = Omit<ISurface, 'version'> & {
6
6
  version?: 'regular' | 'analog' | 'modern' | 'minimal';
7
- size?: ISize;
8
7
  start?: boolean;
9
8
  timeVisible?: boolean;
10
9
  timeOfDayVisible?: boolean;
@@ -18,6 +17,6 @@ export interface IWatch extends Omit<ISurface, 'version'> {
18
17
  RegularProps?: IPropsAny;
19
18
  MinimalProps?: IPropsAny;
20
19
  ModernProps?: IPropsAny;
21
- }
20
+ };
22
21
  declare const Watch: React.FC<IWatch>;
23
22
  export default Watch;
@@ -1,11 +1,10 @@
1
1
  import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
- import { ISize, IElementReference, IPropsAny } from '../types';
3
+ import { IElementReference, IPropsAny } from '../types';
4
4
  export declare type TWeatherDayTime = 'day' | 'night';
5
5
  export declare type TWeather = 'clear' | 'partly clear' | 'rainy' | 'partly rainy' | 'snowy' | 'partly snowy';
6
6
  export declare type TTemperature = number;
7
- export interface IWeather extends ISurface {
8
- size?: ISize;
7
+ export declare type IWeather = ISurface & {
9
8
  shadow?: boolean;
10
9
  dayTime?: TWeatherDayTime;
11
10
  weather?: TWeather;
@@ -22,6 +21,6 @@ export interface IWeather extends ISurface {
22
21
  IconRain?: IElementReference;
23
22
  IconSnow?: IElementReference;
24
23
  IconProps?: IPropsAny;
25
- }
24
+ };
26
25
  declare const Weather: React.FC<IWeather>;
27
26
  export default Weather;
@@ -1,20 +1,20 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement } from '../types';
3
- export interface IWhiteboardAction {
3
+ export declare type IWhiteboardAction = {
4
4
  v: 'a' | 'r';
5
5
  i: IWhiteboardItem | IWhiteboardItem[];
6
- }
6
+ };
7
7
  export declare type IWhiteboardTool = 'pen' | 'eraser' | 'pan' | 'zoom' | 'select' | 'circle' | 'rectangle' | 'triangle' | 'line' | 'line-arrow' | 'text' | 'image';
8
8
  export declare type IWhiteboardValue = IWhiteboardItem[];
9
- export interface IWhiteboard extends IBaseElement {
9
+ export declare type IWhiteboard = IBaseElement & {
10
10
  valueDefault?: IWhiteboardValue;
11
11
  onChange?: (value: IWhiteboardValue) => any;
12
12
  minZoom?: number;
13
13
  maxZoom?: number;
14
14
  grid?: boolean;
15
15
  settings?: any;
16
- }
17
- export interface IWhiteboardItem {
16
+ };
17
+ export declare type IWhiteboardItem = {
18
18
  i: string;
19
19
  v?: 'dl' | 'dp' | 'oc' | 'oe' | 'or' | 'os' | 'ot' | 'ote' | 'ol' | 'oa' | 'i' | 't';
20
20
  p: number[];
@@ -30,6 +30,6 @@ export interface IWhiteboardItem {
30
30
  };
31
31
  se?: boolean;
32
32
  a: number;
33
- }
33
+ };
34
34
  declare const Whiteboard: React.FC<IWhiteboard>;
35
35
  export default Whiteboard;
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement, IElement, IPropsAny, IElementReference } from '../types';
3
- export interface IWidgetsValue {
3
+ export declare type IWidgetsValue = {
4
4
  open: (value?: string) => void;
5
5
  openAll: () => void;
6
6
  close: (value?: string) => void;
7
7
  closeAll: () => void;
8
- }
9
- export interface IWidgets extends IBaseElement {
8
+ };
9
+ export declare type IWidgets = IBaseElement & {
10
10
  widgets?: IElement;
11
11
  position?: 'top' | 'bottom';
12
12
  move?: boolean;
@@ -19,6 +19,6 @@ export interface IWidgets extends IBaseElement {
19
19
  MoveProps?: IPropsAny;
20
20
  Icon?: IElementReference;
21
21
  IconCloseItem?: IElementReference;
22
- }
22
+ };
23
23
  declare const Widgets: React.FC<IWidgets>;
24
24
  export default Widgets;
@@ -1,9 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
- import { ITonal, IColor, IElement, IPropsAny } from '../types';
4
- export interface IWindowSplit extends ILine {
5
- tonal?: ITonal;
6
- color?: IColor;
3
+ import { IElement, IPropsAny } from '../types';
4
+ export declare type IWindowSplit = ILine & {
7
5
  valueDefault?: number;
8
6
  value?: number;
9
7
  onChange?: (value: number) => any;
@@ -24,6 +22,7 @@ export interface IWindowSplit extends ILine {
24
22
  iconOrientationVertical?: IElement;
25
23
  IconButtonProps?: IPropsAny;
26
24
  DividerProps?: IPropsAny;
27
- }
25
+ SeparatorProps?: IPropsAny;
26
+ };
28
27
  declare const WindowSplit: React.FC<IWindowSplit>;
29
28
  export default WindowSplit;
package/Zoom/Zoom.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { ITransition } from '..';
3
- export interface IZoom extends ITransition {
4
- }
3
+ export declare type IZoom = ITransition & {};
5
4
  declare const Zoom: React.FC<IZoom>;
6
5
  export default Zoom;
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
- const _excluded = ["size", "gap", "align", "justify", "direction", "wrap", "total", "max", "showAllDefault", "onMoreShowAll", "AdditionalChip", "AdditionalChipProps", "Component", "className", "style", "children"];
4
+ const _excluded = ["size", "gap", "align", "justify", "direction", "wrap", "total", "max", "showAllDefault", "moreShowAll", "AdditionalChip", "AdditionalChipProps", "Component", "className", "style", "children"];
5
5
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  import React from 'react';
@@ -65,7 +65,7 @@ const Chips = /*#__PURE__*/React.forwardRef((props_, ref) => {
65
65
  total,
66
66
  max,
67
67
  showAllDefault,
68
- onMoreShowAll = true,
68
+ moreShowAll = true,
69
69
  AdditionalChip,
70
70
  AdditionalChipProps = {},
71
71
  Component = 'div',
@@ -92,7 +92,7 @@ const Chips = /*#__PURE__*/React.forwardRef((props_, ref) => {
92
92
  children.push(AdditionalChip || /*#__PURE__*/React.createElement(Chip, _extends({
93
93
  color: "default"
94
94
  }, other, AdditionalChipProps, {
95
- onClick: onMoreShowAll ? onClickMore : undefined
95
+ onClick: moreShowAll ? onClickMore : undefined
96
96
  }), value));
97
97
  }
98
98
  }
@@ -74,7 +74,8 @@ const DropZone = /*#__PURE__*/React.forwardRef((props_, ref) => {
74
74
  children,
75
75
  className
76
76
  } = props,
77
- other = _objectWithoutProperties(props, _excluded);
77
+ otherProps = _objectWithoutProperties(props, _excluded);
78
+ const other = otherProps;
78
79
  const {
79
80
  classes
80
81
  } = useStyle();
package/esm/Grid/Grid.js CHANGED
@@ -131,7 +131,8 @@ const Grid = /*#__PURE__*/React.forwardRef((props_, ref) => {
131
131
  className,
132
132
  children
133
133
  } = props,
134
- other = _objectWithoutProperties(props, _excluded);
134
+ otherProps = _objectWithoutProperties(props, _excluded);
135
+ const other = otherProps;
135
136
  const {
136
137
  classes
137
138
  } = useStyle();
@@ -146,7 +146,8 @@ const Image = /*#__PURE__*/React.forwardRef((props_, ref) => {
146
146
  style,
147
147
  children: children_
148
148
  } = props,
149
- other = _objectWithoutProperties(props, _excluded);
149
+ otherProps = _objectWithoutProperties(props, _excluded);
150
+ const other = otherProps;
150
151
  const {
151
152
  classes
152
153
  } = useStyle();
@@ -50,7 +50,8 @@ const ImageList = /*#__PURE__*/React.forwardRef((props_, ref) => {
50
50
  style,
51
51
  children
52
52
  } = props,
53
- other = _objectWithoutProperties(props, _excluded);
53
+ otherProps = _objectWithoutProperties(props, _excluded);
54
+ const other = otherProps;
54
55
  const refs = {
55
56
  root: React.useRef(undefined)
56
57
  };
@@ -5,10 +5,10 @@ const _excluded = ["tonal", "color", "size", "hover", "selected", "position", "C
5
5
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  import React from 'react';
8
+ import { is } from '@onesy/utils';
8
9
  import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
9
10
  import SurfaceElement from '../Surface';
10
11
  import { staticClassName } from '../utils';
11
- import { is } from '@onesy/utils';
12
12
  const useStyle = styleMethod(theme => ({
13
13
  root: {
14
14
  display: 'table-row',
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.47
1
+ /** @license UiReact v1.0.48
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesy/ui-react",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "description": "UI for React",
5
5
  "repository": "https://github.com/onesy-me/onesy.git",
6
6
  "author": "Lazar <lazareric2@gmail.com>",
package/types.d.ts CHANGED
@@ -21,21 +21,24 @@ export declare type IPropsAny = Record<string, any>;
21
21
  export declare type IStyle = React.CSSProperties | undefined;
22
22
  export declare type IChildren = React.ReactNode | React.ReactNode[];
23
23
  export declare type IRef = React.MutableRefObject<any>;
24
- export interface IBaseElement {
24
+ export declare type IBaseElement<P = {}, T = HTMLElement> = React.HTMLAttributes<T> & {
25
+ tonal?: ITonal;
26
+ color?: IColor;
27
+ size?: ISizeAny;
28
+ readOnly?: boolean;
29
+ disabled?: boolean;
30
+ children?: any;
25
31
  Component?: any;
26
- className?: string;
27
- style?: IStyle;
28
- children?: IChildren;
29
- [property: string]: any;
30
- }
32
+ ref?: any;
33
+ } & P;
31
34
  export declare type IMethodTransition = (element?: IHTMLElement) => any;
32
35
  export declare type IValueBreakpoints = IBreakpoint | 'default';
33
- export interface IMediaObject {
36
+ export declare type IMediaObject = {
34
37
  id?: string;
35
38
  name?: string;
36
39
  mime?: string;
37
40
  url: string;
38
41
  urlSmall?: string;
39
42
  urlEmbed?: string;
40
- }
43
+ };
41
44
  export {};
@@ -1,16 +1,16 @@
1
1
  import React from 'react';
2
2
  import { IValidateVales } from './validate';
3
- export interface IUseForm {
3
+ export declare type IUseForm = {
4
4
  values: IValidateVales;
5
5
  validate?: (values: IValidateVales, form: any) => boolean;
6
6
  rerenderOnUpdate?: boolean;
7
7
  autoValidate?: boolean;
8
8
  valueDefault?: any;
9
9
  validDefault?: boolean;
10
- }
11
- export interface IUseFormOnChangeOptions {
10
+ };
11
+ export declare type IUseFormOnChangeOptions = {
12
12
  rerenderOnUpdate?: boolean;
13
- }
13
+ };
14
14
  declare const useForm: (props: IUseForm) => {
15
15
  value: any;
16
16
  values: any;
@@ -1,30 +1,30 @@
1
1
  import { TIsType, IOptions as IIsOptions } from '@onesy/utils/is';
2
2
  import { TIsValidType, IOptions as IIsValidOptions } from '@onesy/utils/isValid';
3
- export interface IValidateOptions {
3
+ export declare type IValidateOptions = {
4
4
  message?: string;
5
5
  uriDecode?: boolean;
6
6
  parse?: boolean;
7
- }
8
- export interface IValidateModelValueIs {
7
+ };
8
+ export declare type IValidateModelValueIs = {
9
9
  type?: TIsType;
10
10
  options?: IIsOptions;
11
- }
12
- export interface IValidateModelValueIsValid {
11
+ };
12
+ export declare type IValidateModelValueIsValid = {
13
13
  type?: TIsValidType;
14
14
  options?: IIsValidOptions;
15
- }
16
- export interface IValidateModelValueMethodOptions {
15
+ };
16
+ export declare type IValidateModelValueMethodOptions = {
17
17
  form: IForm;
18
18
  property: string;
19
19
  object: IValidateModelValue;
20
20
  options: IValidateOptions;
21
- }
21
+ };
22
22
  export declare type IValidateModelValueMethod = (value: any, options: IValidateModelValueMethodOptions) => Promise<any> | any;
23
23
  export declare type IValidateModelValueValidations = 'required' | 'is' | 'isValid' | 'of' | 'ofValid' | 'equal' | 'notEqual' | 'equalDeep' | 'notEqualDeep' | 'some' | 'in' | 'every' | 'properties' | 'notProperties' | 'min' | 'max' | 'length' | 'method';
24
24
  export declare type IValidateModelMessages = {
25
25
  [p in IValidateModelValueValidations]?: string;
26
26
  };
27
- export interface IValidateModelValue {
27
+ export declare type IValidateModelValue = {
28
28
  name: string;
29
29
  value?: any;
30
30
  message?: string;
@@ -51,13 +51,13 @@ export interface IValidateModelValue {
51
51
  error?: string;
52
52
  capitalize?: boolean;
53
53
  propertyNameUpdate?: (value: any) => string;
54
- }
54
+ };
55
55
  export declare type IUseFormValues = Record<string, IValidateModelValue>;
56
- export interface IForm {
56
+ export declare type IForm = {
57
57
  value: any;
58
58
  values: IUseFormValues;
59
59
  valid: boolean;
60
- }
60
+ };
61
61
  export declare type IValidateValidation = (property: IValidateModelValue, form: IForm) => void | Error | Promise<void | Error>;
62
62
  export declare type IValidateVales = Record<string, IValidateModelValue>;
63
63
  export declare const onValidateError: (options: IValidateOptions, model: IValidateModelValue, message?: any) => never;
@@ -1,5 +1,4 @@
1
- export interface IUseLocation {
2
- }
1
+ export declare type IUseLocation = {};
3
2
  declare const useLocation: {
4
3
  (props?: IUseLocation): Location;
5
4
  displayName: string;
@@ -1,7 +1,7 @@
1
- export interface IOptionsUseMediaQuery {
1
+ export declare type IOptionsUseMediaQuery = {
2
2
  element?: any;
3
3
  initial?: boolean;
4
- }
4
+ };
5
5
  declare const useMediaQuery: {
6
6
  (props: string, options?: IOptionsUseMediaQuery): any;
7
7
  displayName: string;
@@ -1,10 +1,10 @@
1
1
  export declare type TUseScrollDirection = 'up' | 'down';
2
- export interface IUseScroll {
2
+ export declare type IUseScroll = {
3
3
  offset?: number;
4
4
  direction?: TUseScrollDirection;
5
5
  target?: HTMLElement | Window;
6
6
  element?: any;
7
- }
7
+ };
8
8
  declare const useScroll: {
9
9
  (props: IUseScroll): boolean;
10
10
  displayName: string;
@@ -1,16 +1,16 @@
1
- export interface IOptionsUseSwipe {
1
+ export declare type IOptionsUseSwipe = {
2
2
  open?: boolean;
3
3
  min?: number;
4
4
  direction?: 'top' | 'left' | 'right' | 'bottom';
5
5
  touchAnywhere?: boolean;
6
6
  flick?: boolean;
7
7
  flickTreshold?: number;
8
- }
9
- export interface IResponseUseSwipe {
8
+ };
9
+ export declare type IResponseUseSwipe = {
10
10
  value?: number;
11
11
  valuePercentage?: number;
12
12
  position?: string;
13
- }
13
+ };
14
14
  declare const useSwipe: {
15
15
  (element: HTMLElement, options_?: IOptionsUseSwipe): IResponseUseSwipe;
16
16
  displayName: string;
@@ -1,8 +1,8 @@
1
- export interface IUseVisibleResponse extends IntersectionObserverEntry {
1
+ export declare type IUseVisibleResponse = IntersectionObserverEntry & {
2
2
  visible?: boolean;
3
3
  percentage?: number;
4
- }
5
- export interface IUseVisible {
4
+ };
5
+ export declare type IUseVisible = {
6
6
  element: HTMLElement;
7
7
  visibleDefault?: boolean;
8
8
  options?: IntersectionObserverInit;
@@ -15,7 +15,7 @@ export interface IUseVisible {
15
15
  in?: any;
16
16
  out?: any;
17
17
  };
18
- }
18
+ };
19
19
  declare const useVisible: {
20
20
  (props: IUseVisible): IUseVisibleResponse;
21
21
  displayName: string;