@onesy/ui-react 1.0.78 → 1.0.80

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 (220) hide show
  1. package/Accordion/Accordion.d.ts +2 -2
  2. package/AdvancedTextField/AdvancedTextField.d.ts +1 -1
  3. package/Append/Append.d.ts +3 -3
  4. package/AreaChart/AreaChart.d.ts +1 -1
  5. package/AreaChartItem/AreaChartItem.d.ts +1 -1
  6. package/AudioPlayer/AudioPlayer.d.ts +1 -1
  7. package/AudioRecorder/AudioRecorder.d.ts +1 -1
  8. package/AutoComplete/AutoComplete.d.ts +3 -3
  9. package/AutoCompleteCountry/AutoCompleteCountry.d.ts +1 -1
  10. package/AutoCompleteCurrency/AutoCompleteCurrency.d.ts +1 -1
  11. package/AutoCompleteGooglePlaces/AutoCompleteGooglePlaces.d.ts +1 -1
  12. package/Avatar/Avatar.d.ts +1 -1
  13. package/AvatarGroup/AvatarGroup.d.ts +1 -1
  14. package/Backdrop/Backdrop.d.ts +1 -1
  15. package/Badge/Badge.d.ts +1 -1
  16. package/Banner/Banner.d.ts +1 -1
  17. package/BottomAppBar/BottomAppBar.d.ts +1 -1
  18. package/BottomSheet/BottomSheet.d.ts +1 -1
  19. package/Box/Box.d.ts +1 -1
  20. package/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  21. package/BubbleChart/BubbleChart.d.ts +1 -1
  22. package/BubbleChartItem/BubbleChartItem.d.ts +1 -1
  23. package/Button/Button.d.ts +1 -1
  24. package/Buttons/Buttons.d.ts +1 -1
  25. package/Calendar/Calendar.d.ts +3 -3
  26. package/CalendarAvailability/CalendarAvailability.d.ts +2 -2
  27. package/CalendarAvailability/CalendarAvailability.js +5 -12
  28. package/CalendarMenu/CalendarMenu.d.ts +1 -1
  29. package/CalendarMonth/CalendarMonth.d.ts +5 -5
  30. package/CalendarViews/CalendarViews.d.ts +2 -2
  31. package/CalendarWeek/CalendarWeek.d.ts +1 -1
  32. package/CalendarWeek/CalendarWeek.js +3 -3
  33. package/Card/Card.d.ts +1 -1
  34. package/CardButton/CardButton.d.ts +1 -1
  35. package/CardFooter/CardFooter.d.ts +1 -1
  36. package/CardHeader/CardHeader.d.ts +1 -1
  37. package/CardImage/CardImage.d.ts +1 -1
  38. package/CardMain/CardMain.d.ts +1 -1
  39. package/Carousel/Carousel.d.ts +4 -4
  40. package/Chart/Chart.d.ts +4 -4
  41. package/Checkbox/Checkbox.d.ts +1 -1
  42. package/Chip/Chip.d.ts +1 -1
  43. package/Chips/Chips.d.ts +1 -1
  44. package/ClickListener/ClickListener.d.ts +1 -1
  45. package/Clock/Clock.d.ts +5 -5
  46. package/ColorTextField/ColorTextField.d.ts +1 -1
  47. package/ColumnChart/ColumnChart.d.ts +1 -1
  48. package/ColumnChartItem/ColumnChartItem.d.ts +1 -1
  49. package/Confirm/Confirm.d.ts +4 -4
  50. package/Container/Container.d.ts +1 -1
  51. package/CookieBanner/CookieBanner.d.ts +1 -1
  52. package/Countdown/Countdown.d.ts +1 -1
  53. package/DatePicker/DatePicker.d.ts +1 -1
  54. package/DateRangePicker/DateRangePicker.d.ts +1 -1
  55. package/DateTimePicker/DateTimePicker.d.ts +2 -2
  56. package/DateTimeRangePicker/DateTimeRangePicker.d.ts +1 -1
  57. package/Divider/Divider.d.ts +1 -1
  58. package/DonutChart/DonutChart.d.ts +1 -1
  59. package/DragAndDropList/DragAndDropList.d.ts +1 -1
  60. package/Drawing/Drawing.d.ts +2 -2
  61. package/DropZone/DropZone.d.ts +1 -1
  62. package/Emojis/Emojis.d.ts +3 -3
  63. package/Expand/Expand.d.ts +1 -1
  64. package/Fab/Fab.d.ts +1 -1
  65. package/Fade/Fade.d.ts +1 -1
  66. package/FileChoose/FileChoose.d.ts +2 -2
  67. package/Focus/Focus.d.ts +1 -1
  68. package/Form/Form.d.ts +1 -1
  69. package/FormRow/FormRow.d.ts +1 -1
  70. package/Forms/Forms.d.ts +1 -1
  71. package/Frame/Frame.d.ts +1 -1
  72. package/Grid/Grid.d.ts +2 -2
  73. package/Grow/Grow.d.ts +1 -1
  74. package/HTMLCanvas/HTMLCanvas.d.ts +2 -2
  75. package/IFrame/IFrame.d.ts +1 -1
  76. package/Icon/Icon.d.ts +1 -1
  77. package/IconButton/IconButton.d.ts +1 -1
  78. package/Image/Image.d.ts +1 -1
  79. package/ImageCrop/ImageCrop.d.ts +2 -2
  80. package/ImageEdit/ImageEdit.d.ts +2 -2
  81. package/ImageGallery/ImageGallery.d.ts +1 -1
  82. package/ImageList/ImageList.d.ts +1 -1
  83. package/ImageListItem/ImageListItem.d.ts +1 -1
  84. package/ImageListItemBox/ImageListItemBox.d.ts +1 -1
  85. package/Info/Info.d.ts +1 -1
  86. package/Interaction/Interaction.d.ts +2 -2
  87. package/Keyframes/Keyframes.d.ts +3 -3
  88. package/Label/Label.d.ts +1 -1
  89. package/Labels/Labels.d.ts +1 -1
  90. package/Line/Line.d.ts +6 -6
  91. package/LineChart/LineChart.d.ts +1 -1
  92. package/LineChartItem/LineChartItem.d.ts +1 -1
  93. package/LinearMeter/LinearMeter.d.ts +1 -1
  94. package/LinearProgress/LinearProgress.d.ts +1 -1
  95. package/Link/Link.d.ts +1 -1
  96. package/Links/Links.d.ts +2 -2
  97. package/List/List.d.ts +1 -1
  98. package/ListItem/ListItem.d.ts +1 -1
  99. package/ListSubheader/ListSubheader.d.ts +1 -1
  100. package/MainProgress/MainProgress.d.ts +3 -3
  101. package/Markdown/Markdown.d.ts +1 -1
  102. package/Masonry/Masonry.d.ts +1 -1
  103. package/Medias/Medias.d.ts +3 -3
  104. package/Menu/Menu.d.ts +1 -1
  105. package/MenuDesktop/MenuDesktop.d.ts +3 -3
  106. package/MenuItem/MenuItem.d.ts +1 -1
  107. package/Meta/Meta.d.ts +1 -1
  108. package/Modal/Modal.d.ts +1 -1
  109. package/ModalFooter/ModalFooter.d.ts +1 -1
  110. package/ModalHeader/ModalHeader.d.ts +1 -1
  111. package/ModalIcon/ModalIcon.d.ts +1 -1
  112. package/ModalMain/ModalMain.d.ts +1 -1
  113. package/ModalText/ModalText.d.ts +1 -1
  114. package/ModalTitle/ModalTitle.d.ts +1 -1
  115. package/MoreOptions/MoreOptions.d.ts +1 -1
  116. package/Move/Move.d.ts +1 -1
  117. package/NavigationBar/NavigationBar.d.ts +2 -2
  118. package/NavigationDrawer/NavigationDrawer.d.ts +1 -1
  119. package/NavigationItem/NavigationItem.d.ts +2 -2
  120. package/NavigationRail/NavigationRail.d.ts +1 -1
  121. package/NotFound/NotFound.d.ts +1 -1
  122. package/NumericTextField/NumericTextField.d.ts +1 -1
  123. package/Page/Page.d.ts +2 -2
  124. package/PageTransition/PageTransition.d.ts +1 -1
  125. package/Pagination/Pagination.d.ts +1 -1
  126. package/PaginationItem/PaginationItem.d.ts +1 -1
  127. package/Parallax/Parallax.d.ts +2 -2
  128. package/Path/Path.d.ts +1 -1
  129. package/PieChart/PieChart.d.ts +1 -1
  130. package/Placeholder/Placeholder.d.ts +1 -1
  131. package/Portal/Portal.d.ts +1 -1
  132. package/Properties/Properties.d.ts +2 -2
  133. package/Property/Property.d.ts +1 -1
  134. package/Radio/Radio.d.ts +1 -1
  135. package/Radios/Radios.d.ts +1 -1
  136. package/Rating/Rating.d.ts +1 -1
  137. package/Reset/Reset.d.ts +1 -1
  138. package/Reveal/Reveal.d.ts +1 -1
  139. package/RichTextEditor/RichTextEditor.d.ts +1 -1
  140. package/RoundMeter/RoundMeter.d.ts +1 -1
  141. package/RoundProgress/RoundProgress.d.ts +1 -1
  142. package/ScatterChart/ScatterChart.d.ts +1 -1
  143. package/ScatterChartItem/ScatterChartItem.d.ts +1 -1
  144. package/ScreenCapture/ScreenCapture.d.ts +2 -2
  145. package/Section/Section.d.ts +2 -2
  146. package/SectionAction/SectionAction.d.ts +1 -1
  147. package/SectionBoxes/SectionBoxes.d.ts +2 -2
  148. package/SectionCards/SectionCards.d.ts +2 -2
  149. package/SectionCarousel/SectionCarousel.d.ts +2 -2
  150. package/SectionContact/SectionContact.d.ts +1 -1
  151. package/SectionImageGallery/SectionImageGallery.d.ts +1 -1
  152. package/SectionLogos/SectionLogos.d.ts +1 -1
  153. package/SectionMedia/SectionMedia.d.ts +1 -1
  154. package/SectionReviews/SectionReviews.d.ts +2 -2
  155. package/SectionTextMedia/SectionTextMedia.d.ts +1 -1
  156. package/SectionTimeline/SectionTimeline.d.ts +2 -2
  157. package/SectionWatch/SectionWatch.d.ts +1 -1
  158. package/Select/Select.d.ts +1 -1
  159. package/Share/Share.d.ts +1 -1
  160. package/Slide/Slide.d.ts +1 -1
  161. package/Slider/Slider.d.ts +2 -2
  162. package/SmartTextField/SmartTextField.d.ts +1 -1
  163. package/Snackbar/Snackbar.d.ts +1 -1
  164. package/Snackbars/Context.d.ts +1 -1
  165. package/Snackbars/Snackbars.d.ts +2 -2
  166. package/Space/Space.d.ts +1 -1
  167. package/SpeechToText/SpeechToText.d.ts +1 -1
  168. package/SpeedDial/SpeedDial.d.ts +1 -1
  169. package/SpeedDialItem/SpeedDialItem.d.ts +1 -1
  170. package/SpyScroll/SpyScroll.d.ts +1 -1
  171. package/Step/Step.d.ts +1 -1
  172. package/Stepper/Stepper.d.ts +1 -1
  173. package/Surface/Surface.d.ts +1 -1
  174. package/Switch/Switch.d.ts +1 -1
  175. package/Tab/Tab.d.ts +1 -1
  176. package/Table/Table.d.ts +1 -1
  177. package/TableBody/TableBody.d.ts +1 -1
  178. package/TableCell/TableCell.d.ts +2 -2
  179. package/TableFooter/TableFooter.d.ts +1 -1
  180. package/TableHead/TableHead.d.ts +1 -1
  181. package/TableHeader/TableHeader.d.ts +1 -1
  182. package/TablePagination/TablePagination.d.ts +1 -1
  183. package/TableRow/TableRow.d.ts +1 -1
  184. package/Tabs/Tabs.d.ts +1 -1
  185. package/Text/Text.d.ts +1 -1
  186. package/TextField/TextField.d.ts +1 -1
  187. package/TextToSpeech/TextToSpeech.d.ts +1 -1
  188. package/TimePicker/TimePicker.d.ts +3 -3
  189. package/TimeRangePicker/TimeRangePicker.d.ts +1 -1
  190. package/Timeline/Timeline.d.ts +1 -1
  191. package/TimelineItem/TimelineItem.d.ts +1 -1
  192. package/Timer/Timer.d.ts +1 -1
  193. package/ToggleButton/ToggleButton.d.ts +1 -1
  194. package/ToggleButtons/ToggleButtons.d.ts +1 -1
  195. package/Tooltip/Tooltip.d.ts +1 -1
  196. package/TopAppBar/TopAppBar.d.ts +1 -1
  197. package/Transition/Transition.d.ts +3 -3
  198. package/Transitions/Transitions.d.ts +2 -2
  199. package/Tree/Tree.d.ts +1 -1
  200. package/Type/Type.d.ts +1 -1
  201. package/VideoPlayer/VideoPlayer.d.ts +1 -1
  202. package/ViewSplit/ViewSplit.d.ts +1 -1
  203. package/Watch/Watch.d.ts +1 -1
  204. package/Weather/Weather.d.ts +4 -4
  205. package/Whiteboard/Whiteboard.d.ts +5 -5
  206. package/Widgets/Widgets.d.ts +2 -2
  207. package/WindowSplit/WindowSplit.d.ts +1 -1
  208. package/Zoom/Zoom.d.ts +1 -1
  209. package/esm/CalendarAvailability/CalendarAvailability.js +5 -15
  210. package/esm/CalendarWeek/CalendarWeek.js +3 -3
  211. package/esm/index.js +1 -1
  212. package/package.json +2 -2
  213. package/types.d.ts +27 -27
  214. package/useForm/useForm.d.ts +2 -2
  215. package/useForm/validate.d.ts +12 -12
  216. package/useLocation/useLocation.d.ts +1 -1
  217. package/useMediaQuery/useMediaQuery.d.ts +1 -1
  218. package/useScroll/useScroll.d.ts +2 -2
  219. package/useSwipe/useSwipe.d.ts +2 -2
  220. package/useVisible/useVisible.d.ts +2 -2
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ITextField } from '../TextField/TextField';
3
- export declare type ISmartTextField = ITextField & {
3
+ export type ISmartTextField = ITextField & {
4
4
  placeholder?: any;
5
5
  edit?: boolean;
6
6
  mention?: boolean;
@@ -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 declare type ISnackbar = ISurface & {
4
+ export type ISnackbar = ISurface & {
5
5
  open?: boolean;
6
6
  primary?: IElement;
7
7
  end?: IElement;
@@ -1,5 +1,5 @@
1
1
  import { ISnackbar } from '../Snackbar/Snackbar';
2
- export declare type ISnackbarsContext = {
2
+ export type ISnackbarsContext = {
3
3
  add: (value: ISnackbar) => void;
4
4
  remove: (id: string) => void;
5
5
  };
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import { ISnackbar } from '../Snackbar/Snackbar';
3
3
  import { IBaseElement, IPropsAny } from '../types';
4
- export declare type ISnackbarsValue = {
4
+ export type ISnackbarsValue = {
5
5
  add: (value: ISnackbar) => void;
6
6
  remove: (value: 'first' | 'last' | string) => void;
7
7
  };
8
- export declare type ISnackbars = IBaseElement & {
8
+ export type ISnackbars = IBaseElement & {
9
9
  max?: number;
10
10
  position?: 'top' | 'bottom';
11
11
  alignment?: 'start' | 'left' | 'center' | 'right' | 'end';
package/Space/Space.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement } from '../types';
3
- export declare type ISpace = IBaseElement & {
3
+ export type ISpace = IBaseElement & {
4
4
  unitDefault?: 'm' | 'px';
5
5
  minSize?: number;
6
6
  maxSize?: number;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IElementReference, IPropsAny } from '../types';
4
- export declare type ISpeechToText = Omit<ILine, 'onChange'> & {
4
+ export type ISpeechToText = Omit<ILine, 'onChange'> & {
5
5
  SpeechRecognition?: any;
6
6
  continuous?: boolean;
7
7
  grammars?: any;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IVersion, IElement, IElementReference, IPropsAny } from '../types';
4
- export declare type ISpeedDial = Omit<ILine, 'direction'> & {
4
+ export type ISpeedDial = Omit<ILine, 'direction'> & {
5
5
  version?: IVersion;
6
6
  open?: boolean;
7
7
  openDefault?: boolean;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IIconButton } from '../IconButton/IconButton';
3
3
  import { IElement, IElementReference, IPropsAny } from '../types';
4
- export declare type ISpeedDialItem = IIconButton & {
4
+ export type ISpeedDialItem = IIconButton & {
5
5
  open?: boolean;
6
6
  name?: IElement;
7
7
  label?: IElement;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement, IStyle } from '../types';
3
- export declare type ISpyScroll = IBaseElement & {
3
+ export type ISpyScroll = IBaseElement & {
4
4
  ids?: Array<string>;
5
5
  offset?: number;
6
6
  offsetStart?: number;
package/Step/Step.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IColor, IVersion, IElement, IPropsAny } from '../types';
4
- export declare type IStep = ILine & {
4
+ export type IStep = ILine & {
5
5
  version?: IVersion;
6
6
  iconColor?: IColor;
7
7
  iconColorActive?: IColor;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IColor, IVersion, IPropsAny } from '../types';
4
- export declare type IStepper = ILine & {
4
+ export type IStepper = ILine & {
5
5
  version?: IVersion;
6
6
  iconColor?: IColor;
7
7
  iconColorActive?: IColor;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement, IVersion, IElevation, IPropsAny } from '../types';
3
- export declare type ISurface = IBaseElement & {
3
+ export type ISurface = IBaseElement & {
4
4
  version?: IVersion;
5
5
  elevation?: IElevation;
6
6
  backgroundOpacity?: number;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement, IRef, IElement } from '../types';
3
- export declare type ISwitch = Omit<IBaseElement, 'onChange'> & {
3
+ export type ISwitch = Omit<IBaseElement, 'onChange'> & {
4
4
  inputRef?: IRef;
5
5
  version?: any;
6
6
  valueDefault?: boolean;
package/Tab/Tab.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
3
  import { IElement, IPropsAny } from '../types';
4
- export declare type ITab = Omit<ISurface, 'version' | 'onChange'> & {
4
+ export type ITab = Omit<ISurface, 'version' | 'onChange'> & {
5
5
  version?: 'primary' | 'secondary';
6
6
  size?: 'small' | 'regular' | 'large';
7
7
  value?: any;
package/Table/Table.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
3
  import { IElement, IPropsAny, IElementReference } from '../types';
4
- export declare type ITable = ISurface & {
4
+ export type ITable = ISurface & {
5
5
  header?: IElement;
6
6
  footer?: IElement;
7
7
  WrapperComponentProps?: IPropsAny;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
- export declare type ITableBody = ISurface & {
3
+ export type ITableBody = ISurface & {
4
4
  loading?: boolean;
5
5
  };
6
6
  declare const TableBody: React.FC<ITableBody>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { TLineAlign, TLineJustify } from '../Line/Line';
3
3
  import { IBaseElement, IPropsAny } from '../types';
4
- export declare type ITableCellSort = 'asc' | 'desc';
5
- export declare type ITableCell = IBaseElement & {
4
+ export type ITableCellSort = 'asc' | 'desc';
5
+ export type ITableCell = IBaseElement & {
6
6
  sort?: boolean;
7
7
  sortedByDefault?: ITableCellSort;
8
8
  sortedBy?: ITableCellSort;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
- export declare type ITableFooter = ISurface & {};
3
+ export type ITableFooter = ISurface & {};
4
4
  declare const TableFooter: React.FC<ITableFooter>;
5
5
  export default TableFooter;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
- export declare type ITableHead = ISurface & {
3
+ export type ITableHead = ISurface & {
4
4
  sticky?: boolean;
5
5
  stickyOffset?: number;
6
6
  loading?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
- export declare type ITableHeader = ISurface & {};
3
+ export type ITableHeader = ISurface & {};
4
4
  declare const TableHeader: React.FC<ITableHeader>;
5
5
  export default TableHeader;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IElementReference, IVersion } from '../types';
4
- export declare type ITableRow = Omit<ILine, 'onChange'> & {
4
+ export type ITableRow = Omit<ILine, 'onChange'> & {
5
5
  version?: IVersion;
6
6
  elevation?: boolean;
7
7
  page?: number;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
- export declare type ITableRow = ISurface & {
3
+ export type ITableRow = ISurface & {
4
4
  hover?: boolean;
5
5
  selected?: boolean;
6
6
  position?: 'head' | 'body';
package/Tabs/Tabs.d.ts CHANGED
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
3
  import { TLineAlign, TLineJustify } from '../Line/Line';
4
4
  import { IElementReference, IPropsAny } from '../types';
5
- export declare type ITabs = Omit<ISurface, 'version' | 'onChange'> & {
5
+ export type ITabs = Omit<ISurface, 'version' | 'onChange'> & {
6
6
  version?: 'primary' | 'secondary';
7
7
  value?: any;
8
8
  valueDefault?: any;
package/Text/Text.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement, IPropsAny } from '../types';
3
- export declare type IText = IBaseElement & {
3
+ export type IText = IBaseElement & {
4
4
  value?: any;
5
5
  columns?: number;
6
6
  responsive?: boolean;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import OnesySubscription from '@onesy/subscription';
3
3
  import { IBaseElement, IVersion, IRef, IElement, IValueBreakpoints, IPropsAny, IElementReference } from '../types';
4
- export declare type ITextField = Omit<IBaseElement, 'onChange'> & {
4
+ export type ITextField = Omit<IBaseElement, 'onChange'> & {
5
5
  version?: IVersion;
6
6
  rootRef?: IRef;
7
7
  valueDefault?: string | number;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IElementReference, IPropsAny } from '../types';
4
- export declare type ITextToSpeech = ILine & {
4
+ export type ITextToSpeech = ILine & {
5
5
  read?: string;
6
6
  speechSynthesisUtterance?: any;
7
7
  language?: string;
@@ -3,9 +3,9 @@ import { OnesyDate } from '@onesy/date';
3
3
  import { TClockUnit } from '../Clock/Clock';
4
4
  import { IAdvancedTextField } from '../AdvancedTextField/AdvancedTextField';
5
5
  import { IValueBreakpoints, IElementReference, IPropsAny } from '../types';
6
- export declare type TTimePickerValue = OnesyDate | [OnesyDate, OnesyDate];
7
- export declare type TTimePickerSelecting = TClockUnit | [TClockUnit, TClockUnit];
8
- export declare type ITimePicker = Omit<IAdvancedTextField, 'version' | 'onChange'> & {
6
+ export type TTimePickerValue = OnesyDate | [OnesyDate, OnesyDate];
7
+ export type TTimePickerSelecting = TClockUnit | [TClockUnit, TClockUnit];
8
+ export type ITimePicker = Omit<IAdvancedTextField, 'version' | 'onChange'> & {
9
9
  version?: 'auto' | 'mobile' | 'desktop';
10
10
  value?: TTimePickerValue;
11
11
  valueDefault?: TTimePickerValue;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { ITimePicker } from '../TimePicker/TimePicker';
3
- export declare type ITimeRangePicker = ITimePicker & {};
3
+ export type ITimeRangePicker = ITimePicker & {};
4
4
  declare const TimeRangePicker: React.FC<ITimeRangePicker>;
5
5
  export default TimeRangePicker;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
- export declare type ITimeline = ILine & {
3
+ export type ITimeline = ILine & {
4
4
  orientation?: 'vertical' | 'horizontal';
5
5
  };
6
6
  declare const Timeline: React.FC<ITimeline>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IElement, IPropsAny, IElementReference } from '../types';
4
- export declare type ITimelineItem = ILine & {
4
+ export type ITimelineItem = ILine & {
5
5
  orientation?: 'vertical' | 'horizontal';
6
6
  start?: IElement;
7
7
  end?: IElement;
package/Timer/Timer.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
3
  import { IElementReference, IPropsAny } from '../types';
4
- export declare type ITimer = ISurface & {
4
+ export type ITimer = ISurface & {
5
5
  renderValue?: (value: string) => any;
6
6
  icon?: boolean;
7
7
  onStart?: (event: React.MouseEvent<any>) => any;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IChip } from '../Chip/Chip';
3
- export declare type IToggleButton = IChip & {};
3
+ export type IToggleButton = IChip & {};
4
4
  declare const ToggleButton: React.FC<IToggleButton>;
5
5
  export default ToggleButton;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IButtons } from '../Buttons/Buttons';
3
- export declare type IToggleButtons = IButtons & {};
3
+ export type IToggleButtons = IButtons & {};
4
4
  declare const ToggleButtons: React.FC<IToggleButtons>;
5
5
  export default ToggleButtons;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IModal } from '../Modal/Modal';
3
3
  import { IElement, IElementReference, IHTMLElement, IMethodTransition, IPropsAny } from '../types';
4
- export declare type ITooltip = Omit<IModal, 'maxWidth'> & {
4
+ export type ITooltip = Omit<IModal, 'maxWidth'> & {
5
5
  open?: boolean;
6
6
  openDefault?: boolean;
7
7
  name?: IElement;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
3
  import { IElement } from '../types';
4
- export declare type ITopAppBar = Omit<ISurface, 'version'> & {
4
+ export type ITopAppBar = Omit<ISurface, 'version'> & {
5
5
  position?: 'relative' | 'absolute' | 'static' | 'sticky' | 'fixed' | 'unset';
6
6
  version?: 'small' | 'center' | 'medium' | 'large';
7
7
  center?: boolean;
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
2
  import { TTransitionsDurationProperties } from '@onesy/style-react';
3
3
  import { IBaseElement } from '../types';
4
- export declare type TTransitionStatus = 'appended' | 'add' | 'adding' | 'added' | 'enter' | 'entering' | 'entered' | 'exit' | 'exiting' | 'exited' | 'removed';
4
+ export type TTransitionStatus = 'appended' | 'add' | 'adding' | 'added' | 'enter' | 'entering' | 'entered' | 'exit' | 'exiting' | 'exited' | 'removed';
5
5
  export declare const STATUS: Record<TTransitionStatus, TTransitionStatus>;
6
- export declare type ITransitionDelay = {
6
+ export type ITransitionDelay = {
7
7
  default?: number;
8
8
  add?: number;
9
9
  enter?: number;
10
10
  exit?: number;
11
11
  };
12
- export declare type ITransition = Omit<IBaseElement, 'className'> & {
12
+ export type ITransition = Omit<IBaseElement, 'className'> & {
13
13
  in?: boolean;
14
14
  name?: string;
15
15
  className?: boolean;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IPropsAny } from '../types';
3
- export declare type TTransitionsMode = 'in-out' | 'in-out-follow' | 'out-in';
4
- export declare type ITransitions = {
3
+ export type TTransitionsMode = 'in-out' | 'in-out-follow' | 'out-in';
4
+ export type ITransitions = {
5
5
  id?: string;
6
6
  mode?: TTransitionsMode;
7
7
  switch?: boolean;
package/Tree/Tree.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement, IElement, IPropsAny, IElementReference, IVersion } from '../types';
3
- export declare type ITree = Omit<IBaseElement, 'onChange'> & {
3
+ export type ITree = Omit<IBaseElement, 'onChange'> & {
4
4
  open?: boolean;
5
5
  openDefault?: boolean;
6
6
  version?: IVersion;
package/Type/Type.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TTypographyItem } from '@onesy/style-react';
3
3
  import { IBaseElement } from '../types';
4
- export declare type IType = IBaseElement & {
4
+ export type IType = IBaseElement & {
5
5
  responsive?: boolean;
6
6
  priority?: 'primary' | 'secondary' | 'tertiary' | 'quaternary';
7
7
  version?: TTypographyItem;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IElementReference, IPropsAny } from '../types';
4
- export declare type IVideoPlayer = ILine & {
4
+ export type IVideoPlayer = ILine & {
5
5
  name?: string;
6
6
  src?: string;
7
7
  mime?: string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IElement, IPropsAny } from '../types';
4
- export declare type IViewSplit = Omit<ILine, 'onChange'> & {
4
+ export type IViewSplit = Omit<ILine, 'onChange'> & {
5
5
  valueDefault?: number;
6
6
  value?: number;
7
7
  onChange?: (value: number) => any;
package/Watch/Watch.d.ts CHANGED
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { OnesyDate } from '@onesy/date';
3
3
  import { ISurface } from '../Surface/Surface';
4
4
  import { IElement, IPropsAny } from '../types';
5
- export declare type IWatch = Omit<ISurface, 'version'> & {
5
+ export type IWatch = Omit<ISurface, 'version'> & {
6
6
  version?: 'regular' | 'analog' | 'modern' | 'minimal';
7
7
  start?: boolean;
8
8
  timeVisible?: boolean;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
3
  import { IElementReference, IPropsAny } from '../types';
4
- export declare type TWeatherDayTime = 'day' | 'night';
5
- export declare type TWeather = 'clear' | 'partly clear' | 'rainy' | 'partly rainy' | 'snowy' | 'partly snowy';
6
- export declare type TTemperature = number;
7
- export declare type IWeather = ISurface & {
4
+ export type TWeatherDayTime = 'day' | 'night';
5
+ export type TWeather = 'clear' | 'partly clear' | 'rainy' | 'partly rainy' | 'snowy' | 'partly snowy';
6
+ export type TTemperature = number;
7
+ export type IWeather = ISurface & {
8
8
  shadow?: boolean;
9
9
  dayTime?: TWeatherDayTime;
10
10
  weather?: TWeather;
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement } from '../types';
3
- export declare type IWhiteboardAction = {
3
+ export type IWhiteboardAction = {
4
4
  v: 'a' | 'r';
5
5
  i: IWhiteboardItem | IWhiteboardItem[];
6
6
  };
7
- export declare type IWhiteboardTool = 'pen' | 'eraser' | 'pan' | 'zoom' | 'select' | 'circle' | 'rectangle' | 'triangle' | 'line' | 'line-arrow' | 'text' | 'image';
8
- export declare type IWhiteboardValue = IWhiteboardItem[];
9
- export declare type IWhiteboard = Omit<IBaseElement, 'onChange'> & {
7
+ export type IWhiteboardTool = 'pen' | 'eraser' | 'pan' | 'zoom' | 'select' | 'circle' | 'rectangle' | 'triangle' | 'line' | 'line-arrow' | 'text' | 'image';
8
+ export type IWhiteboardValue = IWhiteboardItem[];
9
+ export type IWhiteboard = Omit<IBaseElement, 'onChange'> & {
10
10
  valueDefault?: IWhiteboardValue;
11
11
  onChange?: (value: IWhiteboardValue) => any;
12
12
  minZoom?: number;
@@ -14,7 +14,7 @@ export declare type IWhiteboard = Omit<IBaseElement, 'onChange'> & {
14
14
  grid?: boolean;
15
15
  settings?: any;
16
16
  };
17
- export declare type IWhiteboardItem = {
17
+ export 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[];
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement, IElement, IPropsAny, IElementReference } from '../types';
3
- export declare type IWidgetsValue = {
3
+ export type IWidgetsValue = {
4
4
  open: (value?: string) => void;
5
5
  openAll: () => void;
6
6
  close: (value?: string) => void;
7
7
  closeAll: () => void;
8
8
  };
9
- export declare type IWidgets = IBaseElement & {
9
+ export type IWidgets = IBaseElement & {
10
10
  widgets?: IElement;
11
11
  position?: 'top' | 'bottom';
12
12
  move?: boolean;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IElement, IPropsAny } from '../types';
4
- export declare type IWindowSplit = Omit<ILine, 'onChange'> & {
4
+ export type IWindowSplit = Omit<ILine, 'onChange'> & {
5
5
  valueDefault?: number;
6
6
  value?: number;
7
7
  onChange?: (value: number) => any;
package/Zoom/Zoom.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { ITransition } from '..';
3
- export declare type IZoom = ITransition & {};
3
+ export type IZoom = ITransition & {};
4
4
  declare const Zoom: React.FC<IZoom>;
5
5
  export default Zoom;
@@ -324,9 +324,9 @@ const CalendarAvailability = /*#__PURE__*/React.forwardRef((props_, ref) => {
324
324
  return palette[rangeShade];
325
325
  }, [rangeShade, colors, theme]);
326
326
  const itemToText = React.useCallback(item => {
327
- if (item === 'pending') return 'scheduled';
328
- if (item === 'not-count-workout-session') return `don't count workout session`;
329
- return item;
327
+ if (item === 'pending') return l('Scheduled');
328
+ if (item === 'not-count-workout-session') return l(`Don't count workout session`);
329
+ return optionsStatus?.find(itemStatus => itemStatus.value === item)?.name ?? l(item);
330
330
  }, []);
331
331
  const viewOptions = React.useMemo(() => {
332
332
  return viewsProps?.map(item => ({
@@ -531,13 +531,13 @@ const CalendarAvailability = /*#__PURE__*/React.forwardRef((props_, ref) => {
531
531
  direction: "row",
532
532
  align: "center"
533
533
  }, /*#__PURE__*/React.createElement(Tooltip, {
534
- name: `${l('Previous')} ${view}`
534
+ name: `${l('Previous')} ${l(view)}`
535
535
  }, /*#__PURE__*/React.createElement(IconButton, _extends({
536
536
  onClick: onPrevious
537
537
  }, IconButtonProps), /*#__PURE__*/React.createElement(IconPrevious, {
538
538
  size: "regular"
539
539
  }))), /*#__PURE__*/React.createElement(Tooltip, {
540
- name: `${l('Next')} ${view}`
540
+ name: `${l('Next')} ${l(view)}`
541
541
  }, /*#__PURE__*/React.createElement(IconButton, _extends({
542
542
  onClick: onNext
543
543
  }, IconButtonProps), /*#__PURE__*/React.createElement(IconNext, {
@@ -564,16 +564,6 @@ const CalendarAvailability = /*#__PURE__*/React.forwardRef((props_, ref) => {
564
564
  MenuProps: {
565
565
  portal: true,
566
566
  size: 'regular'
567
- },
568
- WrapperProps: {
569
- style: {
570
- width: 170,
571
- minWidth: 'unset'
572
- }
573
- },
574
- style: {
575
- width: 170,
576
- minWidth: 'unset'
577
567
  }
578
568
  }), endRight)), endHeader), /*#__PURE__*/React.createElement(Line, {
579
569
  ref: refs.calendar,
@@ -212,9 +212,9 @@ const CalendarWeek = /*#__PURE__*/React.forwardRef((props_, ref) => {
212
212
  return palette[rangeShade];
213
213
  }, [rangeShade, colors, theme]);
214
214
  const itemToText = React.useCallback(item => {
215
- if (item === 'pending') return 'scheduled';
216
- if (item === 'not-count-workout-session') return `don't count workout session`;
217
- return item;
215
+ if (item === 'pending') return l('Scheduled');
216
+ if (item === 'not-count-workout-session') return l(`Don't count workout session`);
217
+ return l(item);
218
218
  }, []);
219
219
  const renderTimes = function (day, valuesAll) {
220
220
  let weekly = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.78
1
+ /** @license UiReact v1.0.80
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.78",
3
+ "version": "1.0.80",
4
4
  "description": "UI for React",
5
5
  "repository": "https://github.com/onesy-me/onesy.git",
6
6
  "author": "Lazar <lazareric2@gmail.com>",
@@ -42,7 +42,7 @@
42
42
  "@onesy/log": "^1.0.1",
43
43
  "@onesy/models": "^1.0.0",
44
44
  "@onesy/subscription": "^1.0.0",
45
- "@onesy/utils": "^1.0.5",
45
+ "@onesy/utils": "^1.0.12",
46
46
  "webm-duration-fix": "^1.0.4"
47
47
  },
48
48
  "publishConfig": {