@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,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
3
  import { IElement, IElementReference, IElevation, IPropsAny } from '../types';
4
- declare type TPadding = 'start' | 'end' | 'both' | 'none';
5
- export declare type IAccordion = Omit<ISurface, 'onChange'> & {
4
+ type TPadding = 'start' | 'end' | 'both' | 'none';
5
+ export type IAccordion = Omit<ISurface, 'onChange'> & {
6
6
  elevation?: IElevation;
7
7
  primary?: IElement;
8
8
  secondary?: IElement;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ITextField } from '../TextField/TextField';
3
3
  import { IPropsAny } from '../types';
4
- export declare type IAdvancedTextField = ITextField & {
4
+ export type IAdvancedTextField = ITextField & {
5
5
  validate?: (value: string) => boolean;
6
6
  mask?: Array<any>;
7
7
  maskProactive?: boolean;
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import { IChildren, IHTMLElement, IStyle } from '../types';
3
- export declare type TAppendPadding = Array<number>;
4
- export declare type IAppendValue = {
3
+ export type TAppendPadding = Array<number>;
4
+ export type IAppendValue = {
5
5
  x?: number;
6
6
  y?: number;
7
7
  switch?: boolean;
8
8
  init?: boolean;
9
9
  };
10
- export declare type IAppend = {
10
+ export type IAppend = {
11
11
  open?: boolean;
12
12
  portal?: boolean;
13
13
  accelerated?: boolean;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IChart } from '../Chart/Chart';
3
- export declare type IAreaChart = IChart & {
3
+ export type IAreaChart = IChart & {
4
4
  smooth?: boolean;
5
5
  smoothRatio?: number;
6
6
  linearGradient?: boolean;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TMethod } from '@onesy/models';
3
3
  import { IChart, IChartValueValues } from '../Chart/Chart';
4
- export declare type IAreaChartItem = IChart & {
4
+ export type IAreaChartItem = IChart & {
5
5
  name?: string;
6
6
  refs?: {
7
7
  wrapper?: HTMLElement;
@@ -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 IAudioPlayer = ILine & {
4
+ export type IAudioPlayer = 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 { IElementReference, IPropsAny } from '../types';
4
- export declare type IAudioRecorder = ILine & {
4
+ export type IAudioRecorder = ILine & {
5
5
  pause?: boolean;
6
6
  renderMain?: (props: {
7
7
  onStart: () => any;
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import { ITextField } from '../TextField/TextField';
3
3
  import { IElement, IElementReference, IPropsAny } from '../types';
4
- export declare type TAutoCompleteValue = string | Array<string>;
5
- export declare type TAutoCompleteOption = {
4
+ export type TAutoCompleteValue = string | Array<string>;
5
+ export type TAutoCompleteOption = {
6
6
  label?: string;
7
7
  version?: 'text' | 'subheader';
8
8
  noOptions?: boolean;
9
9
  };
10
- export declare type IAutoComplete = Omit<ITextField, 'onChange'> & {
10
+ export type IAutoComplete = Omit<ITextField, 'onChange'> & {
11
11
  value?: any;
12
12
  valueDefault?: any;
13
13
  onChange?: (value: any) => any;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IAutoComplete } from '../AutoComplete/AutoComplete';
3
- export declare type IAutoCompleteCountry = IAutoComplete & {};
3
+ export type IAutoCompleteCountry = IAutoComplete & {};
4
4
  declare const AutoCompleteCountry: React.FC<IAutoCompleteCountry>;
5
5
  export default AutoCompleteCountry;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IAutoComplete } from '../AutoComplete/AutoComplete';
3
- export declare type IAutoCompleteCurrency = IAutoComplete & {};
3
+ export type IAutoCompleteCurrency = IAutoComplete & {};
4
4
  declare const AutoCompleteCurrency: React.FC<IAutoCompleteCurrency>;
5
5
  export default AutoCompleteCurrency;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IAutoComplete } from '../AutoComplete/AutoComplete';
3
- export declare type IAutoCompleteGooglePlaces = IAutoComplete & {
3
+ export type IAutoCompleteGooglePlaces = IAutoComplete & {
4
4
  optionsGoogle?: any;
5
5
  };
6
6
  declare const AutoCompleteGooglePlaces: React.FC<IAutoCompleteGooglePlaces>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IButton } from '../Button/Button';
3
3
  import { IElevation, IPropsAny } from '../types';
4
- export declare type IAvatar = Omit<IButton, 'elevation'> & {
4
+ export type IAvatar = Omit<IButton, 'elevation'> & {
5
5
  image?: string;
6
6
  alt?: string;
7
7
  square?: boolean;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IAvatar } from '../Avatar/Avatar';
3
3
  import { IElement, IPropsAny } from '../types';
4
- export declare type IAvatarGroup = IAvatar & {
4
+ export type IAvatarGroup = IAvatar & {
5
5
  total?: number;
6
6
  max?: number;
7
7
  AdditionalAvatar?: IElement;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { TMethod } from '@onesy/utils';
3
3
  import { ILine } from '../Line/Line';
4
4
  import { IElementReference, IPropsAny } from '../types';
5
- export declare type IBackdrop = ILine & {
5
+ export type IBackdrop = ILine & {
6
6
  open?: boolean;
7
7
  invisible?: boolean;
8
8
  disableKeyboardClose?: boolean;
package/Badge/Badge.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement } from '../types';
3
- export declare type IBadge = IBaseElement & {
3
+ export type IBadge = IBaseElement & {
4
4
  value?: number;
5
5
  max?: number;
6
6
  vertical?: 'top' | 'bottom';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement, IElement } from '../types';
3
- export declare type IBanner = IBaseElement & {
3
+ export type IBanner = IBaseElement & {
4
4
  maxWidth?: string | number;
5
5
  actions?: IElement;
6
6
  start?: any;
@@ -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 IBottomAppBar = ISurface & {
4
+ export type IBottomAppBar = ISurface & {
5
5
  main?: IElement;
6
6
  fixed?: boolean;
7
7
  noTransition?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { INavigationDrawer } from '../NavigationDrawer/NavigationDrawer';
3
- export declare type IBottomSheet = INavigationDrawer & {};
3
+ export type IBottomSheet = INavigationDrawer & {};
4
4
  declare const BottomSheet: React.FC<IBottomSheet>;
5
5
  export default BottomSheet;
package/Box/Box.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TValue } from '@onesy/style';
3
3
  import { IBaseElement } from '../types';
4
- export declare type IBox = IBaseElement & {
4
+ export type IBox = IBaseElement & {
5
5
  styles?: string | TValue;
6
6
  };
7
7
  declare const Box: React.FC<IBox>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IElement } from '../types';
4
- export declare type IBreadcrumbs = ILine & {
4
+ export type IBreadcrumbs = ILine & {
5
5
  separator?: IElement | string;
6
6
  max?: number;
7
7
  renderMore?: (onExpandMore: () => void) => IElement;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IChart } from '../Chart/Chart';
3
- export declare type IBubbleChart = IChart & {};
3
+ export type IBubbleChart = IChart & {};
4
4
  declare const BubbleChart: React.FC<IBubbleChart>;
5
5
  export default BubbleChart;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TMethod } from '@onesy/models';
3
3
  import { IChart, IChartValueValues } from '../Chart/Chart';
4
- export declare type IBubbleChartItem = IChart & {
4
+ export type IBubbleChartItem = IChart & {
5
5
  name?: string;
6
6
  minSize?: number;
7
7
  maxSize?: number;
@@ -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 IButton = Omit<ISurface, 'elevation'> & {
4
+ export type IButton = Omit<ISurface, 'elevation'> & {
5
5
  name?: any;
6
6
  type?: string;
7
7
  fullWidth?: boolean;
@@ -3,7 +3,7 @@ import { ILine } from '../Line/Line';
3
3
  import { IColor, IValueBreakpoints, IVersion } from '../types';
4
4
  export declare const IconMaterialDone: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
5
5
  export declare const IconDoneAnimated: (props: any) => import("react/jsx-runtime").JSX.Element;
6
- export declare type IButtons = Omit<ILine, 'onChange'> & {
6
+ export type IButtons = Omit<ILine, 'onChange'> & {
7
7
  version?: IVersion;
8
8
  colorSelected?: IColor;
9
9
  value?: any;
@@ -3,11 +3,11 @@ import { OnesyDate } from '@onesy/date';
3
3
  import { ICalenarDays, TCalendarMonthCalendar, TCalendarMonthValue } from '../CalendarMonth/CalendarMonth';
4
4
  import { ISurface } from '../Surface/Surface';
5
5
  import { IElementReference, IPropsAny } from '../types';
6
- export declare type TGetOnesyDates = (value: TCalendarMonthValue, calendar: TCalendarMonthCalendar, props: IPropsAny) => Array<{
6
+ export type TGetOnesyDates = (value: TCalendarMonthValue, calendar: TCalendarMonthCalendar, props: IPropsAny) => Array<{
7
7
  value: OnesyDate;
8
8
  }>;
9
- export declare type TCalendarUnit = 'day' | 'month' | 'year';
10
- export declare type ICalendar = Omit<ISurface, 'version' | 'onChange'> & {
9
+ export type TCalendarUnit = 'day' | 'month' | 'year';
10
+ export type ICalendar = Omit<ISurface, 'version' | 'onChange'> & {
11
11
  version?: 'regular' | 'year';
12
12
  value?: TCalendarMonthValue;
13
13
  valueDefault?: TCalendarMonthValue;
@@ -3,7 +3,7 @@ import { OnesyDate } from '@onesy/date';
3
3
  import { ILine } from '../Line/Line';
4
4
  import { IElement } from '../types';
5
5
  import { ICalendarViewsView } from '../CalendarViews/CalendarViews';
6
- export declare type ICalendarEvent = {
6
+ export type ICalendarEvent = {
7
7
  id?: string;
8
8
  description?: string;
9
9
  from?: number;
@@ -11,7 +11,7 @@ export declare type ICalendarEvent = {
11
11
  status?: string;
12
12
  color?: string;
13
13
  };
14
- export declare type ICalendarAvailability = ILine & {
14
+ export type ICalendarAvailability = ILine & {
15
15
  name?: string | IElement;
16
16
  date?: OnesyDate;
17
17
  dateDefault?: OnesyDate;
@@ -288,11 +288,12 @@ const CalendarAvailability = react_1.default.forwardRef((props_, ref) => {
288
288
  return palette[rangeShade];
289
289
  }, [rangeShade, style_react_1.colors, theme]);
290
290
  const itemToText = react_1.default.useCallback((item) => {
291
+ var _a, _b;
291
292
  if (item === 'pending')
292
- return 'scheduled';
293
+ return l('Scheduled');
293
294
  if (item === 'not-count-workout-session')
294
- return `don't count workout session`;
295
- return item;
295
+ return l(`Don't count workout session`);
296
+ return (_b = (_a = optionsStatus === null || optionsStatus === void 0 ? void 0 : optionsStatus.find(itemStatus => itemStatus.value === item)) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : l(item);
296
297
  }, []);
297
298
  const viewOptions = react_1.default.useMemo(() => {
298
299
  return viewsProps === null || viewsProps === void 0 ? void 0 : viewsProps.map(item => ({
@@ -370,20 +371,12 @@ const CalendarAvailability = react_1.default.forwardRef((props_, ref) => {
370
371
  (0, utils_2.staticClassName)('CalendarAvailability', theme) && [
371
372
  'onesy-CalendarAvailability-header'
372
373
  ]
373
- ]) }, { children: [startHeader, (0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 2, direction: 'row', wrap: 'wrap', justify: 'space-between', align: 'center', fullWidth: true }, { children: [(0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 1.5, direction: 'row', wrap: 'wrap', align: 'center', className: classes.aside }, { children: [startLeft, (0, jsx_runtime_1.jsx)(Button, Object.assign({ color: 'inherit', version: 'outlined', size: 'small', onClick: onToday, selected: now.days === date.days }, { children: l('Today') })), (0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 0, direction: 'row', align: 'center' }, { children: [(0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: `${l('Previous')} ${view}` }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ onClick: onPrevious }, IconButtonProps, { children: (0, jsx_runtime_1.jsx)(IconPrevious, { size: 'regular' }) })) })), (0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: `${l('Next')} ${view}` }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ onClick: onNext }, IconButtonProps, { children: (0, jsx_runtime_1.jsx)(IconNext, { size: 'regular' }) })) }))] })), (0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'h2', weight: 500, whiteSpace: 'nowrap' }, { children: formattedDate })), endLeft] })), (0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 1.5, direction: 'row', align: 'center', flexNo: true, className: (0, style_react_1.classNames)([
374
+ ]) }, { children: [startHeader, (0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 2, direction: 'row', wrap: 'wrap', justify: 'space-between', align: 'center', fullWidth: true }, { children: [(0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 1.5, direction: 'row', wrap: 'wrap', align: 'center', className: classes.aside }, { children: [startLeft, (0, jsx_runtime_1.jsx)(Button, Object.assign({ color: 'inherit', version: 'outlined', size: 'small', onClick: onToday, selected: now.days === date.days }, { children: l('Today') })), (0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 0, direction: 'row', align: 'center' }, { children: [(0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: `${l('Previous')} ${l(view)}` }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ onClick: onPrevious }, IconButtonProps, { children: (0, jsx_runtime_1.jsx)(IconPrevious, { size: 'regular' }) })) })), (0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: `${l('Next')} ${l(view)}` }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ onClick: onNext }, IconButtonProps, { children: (0, jsx_runtime_1.jsx)(IconNext, { size: 'regular' }) })) }))] })), (0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'h2', weight: 500, whiteSpace: 'nowrap' }, { children: formattedDate })), endLeft] })), (0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 1.5, direction: 'row', align: 'center', flexNo: true, className: (0, style_react_1.classNames)([
374
375
  classes.aside,
375
376
  classes.overflowX
376
377
  ]) }, { children: [startRight, ['week', 'day'].includes(view) && ((0, jsx_runtime_1.jsxs)(Label, Object.assign({ checked: displayTime, onChange: onChangeDisplayTime }, { children: [(0, jsx_runtime_1.jsx)(Switch, {}), l('Display time')] }))), (0, jsx_runtime_1.jsx)(Select, { name: l('View'), value: view, onChange: onChangeView, options: viewOptions, size: 'small', MenuProps: {
377
378
  portal: true,
378
379
  size: 'regular'
379
- }, WrapperProps: {
380
- style: {
381
- width: 170,
382
- minWidth: 'unset'
383
- }
384
- }, style: {
385
- width: 170,
386
- minWidth: 'unset'
387
380
  } }), endRight] }))] })), endHeader] })), (0, jsx_runtime_1.jsxs)(Line, Object.assign({ ref: refs.calendar, gap: 2, flex: true, fullWidth: true }, { children: [view === 'simple' && ((0, jsx_runtime_1.jsx)(Line, Object.assign({ gap: 1, flex: true, fullWidth: true }, { children: (0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 4, fullWidth: true, className: (0, style_react_1.classNames)([
388
381
  (0, utils_2.staticClassName)('CalendarAvailability', theme) && [
389
382
  'onesy-CalendarAvailability-simple'
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IMenu } from '../Menu/Menu';
3
- export declare type ICalendarMenu = Omit<IMenu, 'onChange'> & {
3
+ export type ICalendarMenu = Omit<IMenu, 'onChange'> & {
4
4
  value?: any;
5
5
  onChange?: (...args: any) => any;
6
6
  dateProperty?: string;
@@ -3,9 +3,9 @@ import { OnesyDate } from '@onesy/date';
3
3
  import { ILine } from '../Line/Line';
4
4
  import { IPropsAny } from '../types';
5
5
  import { ICalendarViewsView } from '../CalendarViews/CalendarViews';
6
- export declare type TCalendarMonthValue = OnesyDate | [OnesyDate, OnesyDate];
7
- export declare type TCalendarMonthCalendar = OnesyDate;
8
- export declare type ICalendarMonthValuesValue = {
6
+ export type TCalendarMonthValue = OnesyDate | [OnesyDate, OnesyDate];
7
+ export type TCalendarMonthCalendar = OnesyDate;
8
+ export type ICalendarMonthValuesValue = {
9
9
  day: string;
10
10
  month: string;
11
11
  year: string;
@@ -16,8 +16,8 @@ export declare type ICalendarMonthValuesValue = {
16
16
  previous: OnesyDate;
17
17
  move: 'previous' | 'next';
18
18
  };
19
- export declare type TCalendarMonthValues = [ICalendarMonthValuesValue, ICalendarMonthValuesValue];
20
- export declare type ICalenarDays = Omit<ILine, 'onChange'> & {
19
+ export type TCalendarMonthValues = [ICalendarMonthValuesValue, ICalendarMonthValuesValue];
20
+ export type ICalenarDays = Omit<ILine, 'onChange'> & {
21
21
  value?: TCalendarMonthValue;
22
22
  valueDefault?: TCalendarMonthValue;
23
23
  onChange?: (value: TCalendarMonthValue) => any;
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import { OnesyDate } from '@onesy/date';
3
3
  import { ICalendar } from '../Calendar/Calendar';
4
4
  import { ICalendarEvent } from '../CalendarAvailability/CalendarAvailability';
5
- export declare type ICalendarViewsView = 'day' | 'week' | 'month';
6
- export declare type ICalendarViews = ICalendar & {
5
+ export type ICalendarViewsView = 'day' | 'week' | 'month';
6
+ export type ICalendarViews = ICalendar & {
7
7
  viewDefault?: ICalendarViewsView;
8
8
  dateDefault?: OnesyDate;
9
9
  times?: any;
@@ -3,7 +3,7 @@ import { OnesyDate } from '@onesy/date';
3
3
  import { ILine } from '../Line/Line';
4
4
  import { ICalendarEvent } from '../CalendarAvailability/CalendarAvailability';
5
5
  import { ICalendarViewsView } from '../CalendarViews/CalendarViews';
6
- export declare type ICalendarWeek = ILine & {
6
+ export type ICalendarWeek = ILine & {
7
7
  date?: OnesyDate;
8
8
  times?: any;
9
9
  events?: ICalendarEvent[];
@@ -221,10 +221,10 @@ const CalendarWeek = react_1.default.forwardRef((props_, ref) => {
221
221
  }, [rangeShade, style_react_1.colors, theme]);
222
222
  const itemToText = react_1.default.useCallback((item) => {
223
223
  if (item === 'pending')
224
- return 'scheduled';
224
+ return l('Scheduled');
225
225
  if (item === 'not-count-workout-session')
226
- return `don't count workout session`;
227
- return item;
226
+ return l(`Don't count workout session`);
227
+ return l(item);
228
228
  }, []);
229
229
  const renderTimes = (day, valuesAll, weekly = true, itemDay) => {
230
230
  if (itemDay !== undefined && !(itemDay === null || itemDay === void 0 ? void 0 : itemDay.active))
package/Card/Card.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
3
  import { IPropsAny } from '../types';
4
- export declare type ICard = ISurface & {
4
+ export type ICard = ISurface & {
5
5
  focus?: boolean;
6
6
  selected?: boolean;
7
7
  button?: boolean;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement, IPropsAny } from '../types';
3
- export declare type ICardButton = IBaseElement & {
3
+ export type ICardButton = IBaseElement & {
4
4
  focus?: boolean;
5
5
  selected?: boolean;
6
6
  href?: boolean;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IElevation, IVersion } from '../types';
4
- export declare type ICardFooter = ILine & {
4
+ export type ICardFooter = ILine & {
5
5
  version?: IVersion;
6
6
  elevation?: IElevation;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IElevation, IVersion } from '../types';
4
- export declare type ICardHeader = ILine & {
4
+ export type ICardHeader = ILine & {
5
5
  version?: IVersion;
6
6
  elevation?: IElevation;
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement, IVersion, IElevation } from '../types';
3
- export declare type ICardImage = IBaseElement & {
3
+ export type ICardImage = IBaseElement & {
4
4
  version?: IVersion;
5
5
  elevation?: IElevation;
6
6
  alt?: string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IVersion, IElevation } from '../types';
4
- export declare type ICardMain = ILine & {
4
+ export type ICardMain = ILine & {
5
5
  version?: IVersion;
6
6
  elevation?: IElevation;
7
7
  };
@@ -3,16 +3,16 @@ import { TMethod } from '@onesy/utils';
3
3
  import OnesySubscription from '@onesy/subscription';
4
4
  import { ISurface } from '../Surface/Surface';
5
5
  import { IElement, IValueBreakpoints, IElementReference, IPropsAny } from '../types';
6
- export declare type ICarouselValue = {
6
+ export type ICarouselValue = {
7
7
  index?: number;
8
8
  x?: number;
9
9
  y?: number;
10
10
  };
11
- export declare type TCarouselItem = string | null | IElement | {
11
+ export type TCarouselItem = string | null | IElement | {
12
12
  element: IElement;
13
13
  };
14
- export declare type TCarouseOnUpdate = (to: string | number, values: TCarouselItem[]) => any;
15
- export declare type ICarousel = Omit<ISurface, 'version' | 'onChange'> & {
14
+ export type TCarouseOnUpdate = (to: string | number, values: TCarouselItem[]) => any;
15
+ export type ICarousel = Omit<ISurface, 'version' | 'onChange'> & {
16
16
  version?: 'regular' | 'transition' | Partial<Record<IValueBreakpoints, 'regular' | 'transition'>>;
17
17
  valueDefault?: ICarouselValue;
18
18
  value?: ICarouselValue;
package/Chart/Chart.d.ts CHANGED
@@ -2,15 +2,15 @@ import React from 'react';
2
2
  import { TColorValues } from '@onesy/style-react';
3
3
  import { ISurface } from '../Surface/Surface';
4
4
  import { IStyle, IElementAny, IElement, IValueBreakpoints, IPropsAny, IColor } from '../types';
5
- export declare type IChartValueValues = Array<any>;
6
- export declare type IItemValue = {
5
+ export type IChartValueValues = Array<any>;
6
+ export type IItemValue = {
7
7
  value: number;
8
8
  label: number;
9
9
  percentage: number;
10
10
  axis: 'x' | 'y';
11
11
  props?: any;
12
12
  };
13
- export declare type IChartValue = {
13
+ export type IChartValue = {
14
14
  color?: IColor;
15
15
  tone?: TColorValues;
16
16
  name?: string;
@@ -18,7 +18,7 @@ export declare type IChartValue = {
18
18
  percentage?: string | number;
19
19
  values: IChartValueValues | Array<IChartValueValues>;
20
20
  };
21
- export declare type IChart = ISurface & {
21
+ export type IChart = ISurface & {
22
22
  title?: IElementAny;
23
23
  subtitle?: IElementAny;
24
24
  values?: Array<IChartValue>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IIconButton } from '../IconButton/IconButton';
3
3
  import { IRef, IColor } from '../types';
4
- export declare type ICheckbox = Omit<IIconButton, 'onChange'> & {
4
+ export type ICheckbox = Omit<IIconButton, 'onChange'> & {
5
5
  inputRef?: IRef;
6
6
  colorIndeterminate?: IColor;
7
7
  colorUnchecked?: IColor;
package/Chip/Chip.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IButton } from '../Button/Button';
3
- export declare type IChip = IButton & {
3
+ export type IChip = IButton & {
4
4
  input?: boolean;
5
5
  filter?: boolean;
6
6
  noCheckIcon?: boolean;
package/Chips/Chips.d.ts CHANGED
@@ -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 IChips = ILine & {
4
+ export type IChips = ILine & {
5
5
  total?: number;
6
6
  showAllDefault?: boolean;
7
7
  max?: number;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement, IHTMLElement } from '../types';
3
- export declare type IClickListener = IBaseElement & {
3
+ export type IClickListener = IBaseElement & {
4
4
  mouseEvent?: 'onClick' | 'onMove' | 'onMouseDown' | 'onMouseUp' | 'onMouseEnter' | 'onMouseLeave';
5
5
  touchEvent?: 'onTouchStart' | 'onTouchEnd' | 'onTouchMove';
6
6
  include?: Array<IHTMLElement>;
package/Clock/Clock.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import { OnesyDate } from '@onesy/date';
3
3
  import { IRoundMeter } from '../RoundMeter/RoundMeter';
4
- export declare type TClockValue = OnesyDate;
5
- export declare type TClockFormat = '12' | '24';
6
- export declare type TClockUnit = 'hour' | 'minute' | 'second';
7
- export declare type TClockDayTime = 'am' | 'pm';
8
- export declare type IClock = Omit<IRoundMeter, 'onChange'> & {
4
+ export type TClockValue = OnesyDate;
5
+ export type TClockFormat = '12' | '24';
6
+ export type TClockUnit = 'hour' | 'minute' | 'second';
7
+ export type TClockDayTime = 'am' | 'pm';
8
+ export type IClock = Omit<IRoundMeter, 'onChange'> & {
9
9
  value?: TClockValue;
10
10
  valueDefault?: TClockValue;
11
11
  onChange?: (value: TClockValue) => any;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ITextField } from '../TextField/TextField';
3
- export declare type IColorTextField = ITextField & {
3
+ export type IColorTextField = ITextField & {
4
4
  name?: any;
5
5
  valueColor?: string;
6
6
  valueOpacity?: string | number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IChart } from '../Chart/Chart';
3
- export declare type IColumnChart = IChart & {};
3
+ export type IColumnChart = IChart & {};
4
4
  declare const ColumnChart: React.FC<IColumnChart>;
5
5
  export default ColumnChart;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TMethod } from '@onesy/models';
3
3
  import { IChart, IChartValueValues } from '../Chart/Chart';
4
- export declare type IColumnChartItem = IChart & {
4
+ export type IColumnChartItem = IChart & {
5
5
  name?: string;
6
6
  refs?: {
7
7
  wrapper?: HTMLElement;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TMethod } from '@onesy/utils';
3
3
  import { IBaseElement } from '../types';
4
- export declare type IConfirmOpen = {
4
+ export type IConfirmOpen = {
5
5
  modal?: (promise: IConfirmPromiseArgument) => React.ReactElement;
6
6
  name?: string | boolean | React.ReactElement;
7
7
  description?: string | React.ReactElement;
@@ -18,15 +18,15 @@ export declare type IConfirmOpen = {
18
18
  ButtonPositiveProps?: any;
19
19
  [p: string]: any;
20
20
  };
21
- export declare type IConfirmPromiseArgument = {
21
+ export type IConfirmPromiseArgument = {
22
22
  resolve: TMethod;
23
23
  reject: TMethod;
24
24
  };
25
- export declare type IConfirmValue = {
25
+ export type IConfirmValue = {
26
26
  open: (value?: IConfirmOpen) => Promise<any>;
27
27
  close: (confirmed?: boolean) => void;
28
28
  };
29
- export declare type IConfirm = IBaseElement & {
29
+ export type IConfirm = IBaseElement & {
30
30
  throwError?: boolean;
31
31
  onOpen?: () => any;
32
32
  onClose?: () => any;