@onesy/ui-react 1.0.131 → 1.0.133

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 (303) 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/AutoComplete/AutoComplete.js +2 -2
  10. package/AutoCompleteCountry/AutoCompleteCountry.d.ts +1 -1
  11. package/AutoCompleteCurrency/AutoCompleteCurrency.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/Buttons/Buttons.js +8 -53
  26. package/Calendar/Calendar.d.ts +3 -3
  27. package/Calendar/Calendar.js +6 -6
  28. package/CalendarAvailability/CalendarAvailability.d.ts +2 -2
  29. package/CalendarAvailability/CalendarAvailability.js +8 -8
  30. package/CalendarMenu/CalendarMenu.d.ts +1 -1
  31. package/CalendarMenu/CalendarMenu.js +5 -5
  32. package/CalendarMonth/CalendarMonth.d.ts +5 -5
  33. package/CalendarViews/CalendarViews.d.ts +2 -2
  34. package/CalendarWeek/CalendarWeek.d.ts +1 -1
  35. package/Card/Card.d.ts +1 -1
  36. package/CardButton/CardButton.d.ts +1 -1
  37. package/CardFooter/CardFooter.d.ts +1 -1
  38. package/CardHeader/CardHeader.d.ts +1 -1
  39. package/CardImage/CardImage.d.ts +1 -1
  40. package/CardMain/CardMain.d.ts +1 -1
  41. package/Carousel/Carousel.d.ts +4 -4
  42. package/Carousel/Carousel.js +8 -8
  43. package/Chart/Chart.d.ts +4 -4
  44. package/Checkbox/Checkbox.d.ts +1 -1
  45. package/Chip/Chip.d.ts +1 -1
  46. package/Chips/Chips.d.ts +1 -1
  47. package/ClickListener/ClickListener.d.ts +1 -1
  48. package/Clock/Clock.d.ts +5 -5
  49. package/ColorTextField/ColorTextField.d.ts +1 -1
  50. package/ColumnChart/ColumnChart.d.ts +1 -1
  51. package/ColumnChartItem/ColumnChartItem.d.ts +1 -1
  52. package/Confirm/Confirm.d.ts +4 -4
  53. package/Container/Container.d.ts +1 -1
  54. package/CookieBanner/CookieBanner.d.ts +1 -1
  55. package/Countdown/Countdown.d.ts +1 -1
  56. package/DatePicker/DatePicker.d.ts +1 -1
  57. package/DatePicker/DatePicker.js +6 -6
  58. package/DateRangePicker/DateRangePicker.d.ts +1 -1
  59. package/DateTimePicker/DateTimePicker.d.ts +2 -2
  60. package/DateTimePicker/DateTimePicker.js +6 -6
  61. package/DateTimeRangePicker/DateTimeRangePicker.d.ts +1 -1
  62. package/Divider/Divider.d.ts +1 -1
  63. package/DonutChart/DonutChart.d.ts +1 -1
  64. package/DragAndDropList/DragAndDropList.d.ts +1 -1
  65. package/Drawing/Drawing.d.ts +2 -2
  66. package/Drawing/Drawing.js +12 -12
  67. package/DropZone/DropZone.d.ts +1 -1
  68. package/Emojis/Emojis.d.ts +3 -3
  69. package/Emojis/Emojis.js +2 -2
  70. package/Expand/Expand.d.ts +1 -1
  71. package/Fab/Fab.d.ts +1 -1
  72. package/Fade/Fade.d.ts +1 -1
  73. package/FileChoose/FileChoose.d.ts +2 -2
  74. package/Focus/Focus.d.ts +1 -1
  75. package/Form/Form.d.ts +1 -1
  76. package/FormRow/FormRow.d.ts +1 -1
  77. package/Forms/Forms.d.ts +1 -1
  78. package/Frame/Frame.d.ts +1 -1
  79. package/Grid/Grid.d.ts +2 -2
  80. package/Grow/Grow.d.ts +1 -1
  81. package/HTMLCanvas/HTMLCanvas.d.ts +2 -2
  82. package/HTMLCanvas/index.js +1 -2
  83. package/IFrame/IFrame.d.ts +1 -1
  84. package/Icon/Icon.d.ts +1 -1
  85. package/Icon/index.js +1 -2
  86. package/IconButton/IconButton.d.ts +1 -1
  87. package/Image/Image.d.ts +1 -1
  88. package/ImageCrop/ImageCrop.d.ts +2 -2
  89. package/ImageCrop/ImageCrop.js +17 -17
  90. package/ImageEdit/ImageEdit.d.ts +2 -2
  91. package/ImageEdit/ImageEdit.js +4 -4
  92. package/ImageGallery/ImageGallery.d.ts +1 -1
  93. package/ImageList/ImageList.d.ts +1 -1
  94. package/ImageListItem/ImageListItem.d.ts +1 -1
  95. package/ImageListItemBox/ImageListItemBox.d.ts +1 -1
  96. package/Info/Info.d.ts +1 -1
  97. package/Interaction/Interaction.d.ts +2 -2
  98. package/Keyframes/Keyframes.d.ts +3 -3
  99. package/Keyframes/index.js +1 -2
  100. package/Label/Label.d.ts +1 -1
  101. package/Labels/Labels.d.ts +1 -1
  102. package/Line/Line.d.ts +6 -6
  103. package/LineChart/LineChart.d.ts +1 -1
  104. package/LineChartItem/LineChartItem.d.ts +1 -1
  105. package/LinearMeter/LinearMeter.d.ts +1 -1
  106. package/LinearProgress/LinearProgress.d.ts +1 -1
  107. package/Link/Link.d.ts +1 -1
  108. package/Links/Links.d.ts +2 -2
  109. package/List/List.d.ts +1 -1
  110. package/ListItem/ListItem.d.ts +1 -1
  111. package/ListItem/ListItem.js +3 -3
  112. package/ListSubheader/ListSubheader.d.ts +1 -1
  113. package/MainProgress/MainProgress.d.ts +3 -3
  114. package/Markdown/Markdown.d.ts +1 -1
  115. package/Masonry/Masonry.d.ts +1 -1
  116. package/Medias/Medias.d.ts +3 -3
  117. package/Menu/Menu.d.ts +1 -1
  118. package/Menu/Menu.js +13 -13
  119. package/MenuDesktop/MenuDesktop.d.ts +3 -3
  120. package/MenuItem/MenuItem.d.ts +1 -1
  121. package/Meta/Meta.d.ts +1 -1
  122. package/Modal/Modal.d.ts +1 -1
  123. package/ModalFooter/ModalFooter.d.ts +1 -1
  124. package/ModalHeader/ModalHeader.d.ts +1 -1
  125. package/ModalIcon/ModalIcon.d.ts +1 -1
  126. package/ModalMain/ModalMain.d.ts +1 -1
  127. package/ModalText/ModalText.d.ts +1 -1
  128. package/ModalTitle/ModalTitle.d.ts +1 -1
  129. package/MoreOptions/MoreOptions.d.ts +1 -1
  130. package/Move/Move.d.ts +1 -1
  131. package/NavigationBar/NavigationBar.d.ts +2 -2
  132. package/NavigationDrawer/NavigationDrawer.d.ts +1 -1
  133. package/NavigationItem/NavigationItem.d.ts +2 -2
  134. package/NavigationRail/NavigationRail.d.ts +1 -1
  135. package/NotFound/NotFound.d.ts +1 -1
  136. package/NumericTextField/NumericTextField.d.ts +1 -1
  137. package/Page/Page.d.ts +2 -2
  138. package/PageTransition/PageTransition.d.ts +1 -1
  139. package/Pagination/Pagination.d.ts +1 -1
  140. package/PaginationItem/PaginationItem.d.ts +1 -1
  141. package/Parallax/Parallax.d.ts +2 -2
  142. package/Path/Path.d.ts +1 -1
  143. package/PieChart/PieChart.d.ts +1 -1
  144. package/Placeholder/Placeholder.d.ts +1 -1
  145. package/Portal/Portal.d.ts +1 -1
  146. package/Properties/Properties.d.ts +2 -2
  147. package/Property/Property.d.ts +1 -1
  148. package/Radio/Radio.d.ts +1 -1
  149. package/Radios/Radios.d.ts +1 -1
  150. package/Rating/Rating.d.ts +1 -1
  151. package/Reset/Reset.d.ts +1 -1
  152. package/Reveal/Reveal.d.ts +1 -1
  153. package/RichTextEditor/RichTextEditor.d.ts +1 -1
  154. package/RichTextEditor/RichTextEditor.js +20 -20
  155. package/RoundMeter/RoundMeter.d.ts +1 -1
  156. package/RoundProgress/RoundProgress.d.ts +1 -1
  157. package/ScatterChart/ScatterChart.d.ts +1 -1
  158. package/ScatterChartItem/ScatterChartItem.d.ts +1 -1
  159. package/ScreenCapture/ScreenCapture.d.ts +2 -2
  160. package/Section/Section.d.ts +2 -2
  161. package/SectionAction/SectionAction.d.ts +1 -1
  162. package/SectionBoxes/SectionBoxes.d.ts +2 -2
  163. package/SectionCards/SectionCards.d.ts +2 -2
  164. package/SectionCarousel/SectionCarousel.d.ts +2 -2
  165. package/SectionContact/SectionContact.d.ts +1 -1
  166. package/SectionImageGallery/SectionImageGallery.d.ts +1 -1
  167. package/SectionLogos/SectionLogos.d.ts +1 -1
  168. package/SectionMedia/SectionMedia.d.ts +1 -1
  169. package/SectionReviews/SectionReviews.d.ts +2 -2
  170. package/SectionTextMedia/SectionTextMedia.d.ts +1 -1
  171. package/SectionTimeline/SectionTimeline.d.ts +2 -2
  172. package/SectionWatch/SectionWatch.d.ts +1 -1
  173. package/Select/Select.d.ts +1 -1
  174. package/Select/Select.js +2 -2
  175. package/Share/Share.d.ts +1 -1
  176. package/Slide/Slide.d.ts +1 -1
  177. package/Slider/Slider.d.ts +2 -2
  178. package/SmartTextField/SmartTextField.d.ts +1 -1
  179. package/SmartTextField/SmartTextField.js +16 -16
  180. package/Snackbar/Snackbar.d.ts +1 -1
  181. package/Snackbars/Context.d.ts +1 -1
  182. package/Snackbars/Snackbars.d.ts +2 -2
  183. package/Space/Space.d.ts +1 -1
  184. package/Space/Space.js +26 -26
  185. package/Space/index.js +1 -2
  186. package/SpeechToText/SpeechToText.d.ts +1 -1
  187. package/SpeedDial/SpeedDial.d.ts +1 -1
  188. package/SpeedDialItem/SpeedDialItem.d.ts +1 -1
  189. package/SpyScroll/SpyScroll.d.ts +1 -1
  190. package/Step/Step.d.ts +1 -1
  191. package/Stepper/Stepper.d.ts +1 -1
  192. package/Surface/Surface.d.ts +1 -1
  193. package/Switch/Switch.d.ts +1 -1
  194. package/Tab/Tab.d.ts +1 -1
  195. package/Table/Table.d.ts +1 -1
  196. package/TableBody/TableBody.d.ts +1 -1
  197. package/TableCell/TableCell.d.ts +2 -2
  198. package/TableCell/TableCell.js +23 -4
  199. package/TableFooter/TableFooter.d.ts +1 -1
  200. package/TableHead/TableHead.d.ts +1 -1
  201. package/TableHeader/TableHeader.d.ts +1 -1
  202. package/TablePagination/TablePagination.d.ts +1 -1
  203. package/TableRow/TableRow.d.ts +1 -1
  204. package/Tabs/Tabs.d.ts +1 -1
  205. package/Text/Text.d.ts +1 -1
  206. package/TextField/TextField.d.ts +1 -1
  207. package/TextToSpeech/TextToSpeech.d.ts +1 -1
  208. package/TimePicker/TimePicker.d.ts +3 -3
  209. package/TimePicker/TimePicker.js +12 -12
  210. package/TimeRangePicker/TimeRangePicker.d.ts +1 -1
  211. package/Timeline/Timeline.d.ts +1 -1
  212. package/TimelineItem/TimelineItem.d.ts +1 -1
  213. package/Timer/Timer.d.ts +1 -1
  214. package/ToggleButton/ToggleButton.d.ts +1 -1
  215. package/ToggleButtons/ToggleButtons.d.ts +1 -1
  216. package/Tooltip/Tooltip.d.ts +1 -1
  217. package/TopAppBar/TopAppBar.d.ts +1 -1
  218. package/Transition/Transition.d.ts +3 -3
  219. package/Transition/index.js +1 -2
  220. package/Transitions/Transitions.d.ts +2 -2
  221. package/Transitions/Transitions.js +2 -2
  222. package/Tree/Tree.d.ts +1 -1
  223. package/Type/Type.d.ts +1 -1
  224. package/VideoPlayer/VideoPlayer.d.ts +1 -1
  225. package/VideoPlayer/VideoPlayer.js +4 -4
  226. package/ViewSplit/ViewSplit.d.ts +1 -1
  227. package/Watch/Watch.d.ts +1 -1
  228. package/Weather/Weather.d.ts +4 -4
  229. package/Whiteboard/Whiteboard.d.ts +5 -5
  230. package/Widgets/Widgets.d.ts +2 -2
  231. package/WindowSplit/WindowSplit.d.ts +1 -1
  232. package/Zoom/Zoom.d.ts +1 -1
  233. package/esm/Append/Append.js +6 -8
  234. package/esm/AutoComplete/AutoComplete.js +8 -20
  235. package/esm/Breadcrumbs/Breadcrumbs.js +1 -3
  236. package/esm/Buttons/Buttons.js +9 -55
  237. package/esm/Calendar/Calendar.js +74 -80
  238. package/esm/CalendarAvailability/CalendarAvailability.js +1 -2
  239. package/esm/CalendarMenu/CalendarMenu.js +2 -2
  240. package/esm/CalendarMonth/CalendarMonth.js +65 -68
  241. package/esm/CalendarWeek/CalendarWeek.js +3 -7
  242. package/esm/Carousel/Carousel.js +4 -12
  243. package/esm/Chart/Chart.js +19 -25
  244. package/esm/Clock/Clock.js +5 -8
  245. package/esm/Confirm/Confirm.js +1 -2
  246. package/esm/DatePicker/DatePicker.js +8 -13
  247. package/esm/DateTimePicker/DateTimePicker.js +6 -9
  248. package/esm/Drawing/Drawing.js +1 -6
  249. package/esm/Expand/Expand.js +1 -2
  250. package/esm/Fade/Fade.js +1 -2
  251. package/esm/Focus/Focus.js +1 -2
  252. package/esm/Grow/Grow.js +1 -2
  253. package/esm/HTMLCanvas/HTMLCanvas.js +2 -5
  254. package/esm/ImageCrop/ImageCrop.js +2 -5
  255. package/esm/ImageEdit/ImageEdit.js +5 -12
  256. package/esm/ImageGallery/ImageGallery.js +1 -2
  257. package/esm/Interaction/Interaction.js +1 -2
  258. package/esm/Keyframes/Keyframes.js +1 -2
  259. package/esm/LinearMeter/LinearMeter.js +77 -80
  260. package/esm/Markdown/Markdown.js +41 -144
  261. package/esm/MenuDesktop/MenuDesktop.js +5 -6
  262. package/esm/Rating/Rating.js +2 -4
  263. package/esm/RichTextEditor/RichTextEditor.js +36 -50
  264. package/esm/RoundMeter/RoundMeter.js +70 -73
  265. package/esm/ScreenCapture/ScreenCapture.js +2 -5
  266. package/esm/Select/Select.js +5 -9
  267. package/esm/Share/Share.js +4 -5
  268. package/esm/Slide/Slide.js +2 -4
  269. package/esm/Slider/Slider.js +3 -6
  270. package/esm/SmartTextField/SmartTextField.js +2 -4
  271. package/esm/Snackbar/Snackbar.js +1 -2
  272. package/esm/Snackbars/Snackbars.js +3 -3
  273. package/esm/Space/Space.js +3 -6
  274. package/esm/Switch/Switch.js +1 -2
  275. package/esm/TableCell/TableCell.js +23 -4
  276. package/esm/Tabs/Tabs.js +1 -2
  277. package/esm/TimePicker/TimePicker.js +27 -38
  278. package/esm/Timer/Timer.js +3 -4
  279. package/esm/Tooltip/Tooltip.js +1 -2
  280. package/esm/ViewSplit/ViewSplit.js +1 -2
  281. package/esm/Watch/Watch.js +4 -5
  282. package/esm/Weather/Weather.js +14 -17
  283. package/esm/Whiteboard/Whiteboard.js +1 -4
  284. package/esm/WindowSplit/WindowSplit.js +1 -2
  285. package/esm/Zoom/Zoom.js +1 -2
  286. package/esm/index.js +1 -1
  287. package/esm/useForm/useForm.js +1 -4
  288. package/esm/useLocation/useLocation.js +1 -2
  289. package/esm/useSwipe/useSwipe.js +1 -2
  290. package/esm/utils.js +10 -13
  291. package/index.js +2 -3
  292. package/package.json +3 -3
  293. package/types.d.ts +27 -27
  294. package/useForm/useForm.d.ts +2 -2
  295. package/useForm/validate.d.ts +12 -12
  296. package/useForm/validate.js +20 -20
  297. package/useLocation/useLocation.d.ts +1 -1
  298. package/useMediaQuery/useMediaQuery.d.ts +1 -1
  299. package/useScroll/useScroll.d.ts +2 -2
  300. package/useSwipe/useSwipe.d.ts +2 -2
  301. package/useVisible/useVisible.d.ts +2 -2
  302. package/utils.d.ts +1 -1
  303. package/utils.js +7 -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;
@@ -151,8 +151,8 @@ const AutoComplete = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
151
151
  return (theme === null || theme === void 0 || (_theme$elements9 = theme.elements) === null || _theme$elements9 === void 0 ? void 0 : _theme$elements9.RoundProgress) || _RoundProgress.default;
152
152
  }, [theme]);
153
153
  const ListSubheader = _react.default.useMemo(() => {
154
- var _theme$elements10;
155
- return (theme === null || theme === void 0 || (_theme$elements10 = theme.elements) === null || _theme$elements10 === void 0 ? void 0 : _theme$elements10.ListSubheader) || _ListSubheader.default;
154
+ var _theme$elements0;
155
+ return (theme === null || theme === void 0 || (_theme$elements0 = theme.elements) === null || _theme$elements0 === void 0 ? void 0 : _theme$elements0.ListSubheader) || _ListSubheader.default;
156
156
  }, [theme]);
157
157
  const {
158
158
  tonal = true,
@@ -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,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,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IListItem } from '../ListItem/ListItem';
3
3
  import { IElement } from '../types';
4
- export declare type IBanner = IListItem & {
4
+ export type IBanner = IListItem & {
5
5
  maxWidth?: string | number;
6
6
  actions?: IElement;
7
7
  start?: any;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
- export declare type IBottomAppBar = ISurface & {
3
+ export type IBottomAppBar = ISurface & {
4
4
  fixed?: boolean;
5
5
  };
6
6
  declare const BottomAppBar: React.FC<IBottomAppBar>;
@@ -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;
@@ -39,7 +39,6 @@ const IconMaterialDone = exports.IconMaterialDone = /*#__PURE__*/_react.default.
39
39
  const useStyle = (0, _styleReact.style)(theme => ({
40
40
  root: {
41
41
  position: 'relative',
42
- borderRadius: theme.methods.shape.radius.value('xl', 'px'),
43
42
  maxWidth: '100%'
44
43
  },
45
44
  orientation_horizontal_size_small: {
@@ -66,26 +65,6 @@ const useStyle = (0, _styleReact.style)(theme => ({
66
65
  width: '100% !important'
67
66
  }
68
67
  },
69
- // Size
70
- size_small: {
71
- borderRadius: `${theme.shape.radius.unit * 2}px`
72
- },
73
- size_regular: {
74
- borderRadius: `${theme.shape.radius.unit * 2.5}px`
75
- },
76
- size_large: {
77
- borderRadius: `${theme.shape.radius.unit * 3.5}px`
78
- },
79
- // Size
80
- chip_size_small: {
81
- borderRadius: `${theme.shape.radius.unit - theme.shape.radius.unit / 4}px`
82
- },
83
- chip_size_regular: {
84
- borderRadius: `${theme.shape.radius.unit}px`
85
- },
86
- chip_size_large: {
87
- borderRadius: `${theme.shape.radius.unit + theme.shape.radius.unit / 4}px`
88
- },
89
68
  // Shadows
90
69
  elevation: {
91
70
  boxShadow: theme.shadows.values.neutral[1],
@@ -250,7 +229,6 @@ const Buttons = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
250
229
  classes
251
230
  } = useStyle();
252
231
  const [init, setInit] = _react.default.useState(false);
253
- const [preSelected, setPreSelected] = _react.default.useState([]);
254
232
  const [selected, setSelected] = _react.default.useState(() => {
255
233
  const valueNew = valueDefault !== undefined ? valueDefault : value;
256
234
  return valueNew !== undefined ? (0, _utils.is)('array', valueNew) ? valueNew : [valueNew] : [];
@@ -293,23 +271,13 @@ const Buttons = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
293
271
  } else {
294
272
  // Unselect
295
273
  if (selected.includes(itemProps.value) && (unselect || select === 'multiple' && selected.length > 1)) {
296
- if (!refs.noCheckIcon.current) {
297
- setPreSelected(items => items.filter(item => item !== itemProps.value));
298
- } else {
299
- valueNew = selected.filter(item => item !== itemProps.value);
300
- }
274
+ valueNew = selected.filter(item => item !== itemProps.value);
301
275
  } else {
302
276
  if (select === 'single') {
303
- if (!refs.noCheckIcon.current) {
304
- setPreSelected([itemProps.value]);
305
- valueNew = [...selected, itemProps.value];
306
- } else valueNew = [itemProps.value];
277
+ valueNew = [itemProps.value];
307
278
  }
308
279
  if (select === 'multiple') {
309
- if (!refs.noCheckIcon.current) {
310
- setPreSelected(items => (0, _utils.unique)([...items, itemProps.value]));
311
- valueNew = (0, _utils.unique)([...selected, itemProps.value]);
312
- } else valueNew = (0, _utils.unique)([...selected, itemProps.value]);
280
+ valueNew = (0, _utils.unique)([...selected, itemProps.value]);
313
281
  }
314
282
  }
315
283
  }
@@ -319,19 +287,12 @@ const Buttons = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
319
287
  if ((0, _utils.is)('function', onChange)) onChange(valueNew);
320
288
  }
321
289
  };
322
- const updateSelected = itemProps => {
323
- const valueNew = selected.filter(item => item !== itemProps.value);
324
-
325
- // Update inner or controlled
326
- if (!props.hasOwnProperty('value')) setSelected(valueNew);
327
- if ((0, _utils.is)('function', onChange)) onChange(valueNew);
328
- };
329
290
  const children = _react.default.Children.toArray(children_)
330
291
  // Clamp array to max of 5 values
331
292
  // .slice(0, 5)
332
293
  .map((item, index) => {
333
294
  var _item$props, _item$props2, _item$props3, _item$props4, _item$props5, _item$props6;
334
- return /*#__PURE__*/_react.default.cloneElement(item, _objectSpread(_objectSpread(_objectSpread({
295
+ return /*#__PURE__*/_react.default.cloneElement(item, _objectSpread(_objectSpread({
335
296
  key: index,
336
297
  className: (0, _styleReact.classNames)([item.className, classes.item, classes[version], classes[`start_orientation_${orientation}`], classes[`end_orientation_${orientation}`], selected.includes(item.props.value) && classes.selected, border && classes.border]),
337
298
  onClick: () => {
@@ -340,17 +301,11 @@ const Buttons = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
340
301
  // Invoke items on click method
341
302
  if ((0, _utils.is)('function', item.props.onClick)) item.props.onClick();
342
303
  }
343
- }, !refs.noCheckIcon.current && item.props.start && selected.includes(item.props.value) ? {
304
+ }, !refs.noCheckIcon.current && selected.includes(item.props.value) ? {
344
305
  start: /*#__PURE__*/_react.default.createElement(IconDoneAnimated, {
345
- simple: true,
346
306
  in: true,
347
- add: true
348
- })
349
- } : {}), !refs.noCheckIcon.current && !item.props.start && (selected.includes(item.props.value) || preSelected.includes(item.props.value)) ? {
350
- start: /*#__PURE__*/_react.default.createElement(IconDoneAnimated, {
351
- in: (item.props.start ? selected : preSelected).includes(item.props.value),
352
- onExited: () => updateSelected(item.props),
353
- add: true
307
+ add: true,
308
+ simple: true
354
309
  })
355
310
  } : {}), {}, {
356
311
  version: ((_item$props = item.props) === null || _item$props === void 0 ? void 0 : _item$props.version) !== undefined ? item.props.version : version,
@@ -372,7 +327,7 @@ const Buttons = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
372
327
  gap: 0,
373
328
  direction: "row",
374
329
  display: "inline-flex",
375
- className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Buttons', theme) && ['onesy-Buttons-root', `onesy-Buttons-version-${version}`, `onesy-Buttons-size-${size}`, disabled && `onesy-Buttons-disabled`], className, classes.root, classes[`size_${size}`], chip && classes[`chip_size_${size}`], classes[`orientation_${orientation}`], classes[`orientation_${orientation}_size_${size}`], fullWidth && classes.fullWidth, elevation && !disabled && ['filled', 'tonal'].includes(version) && classes.elevation, disabled && classes.disabled])
330
+ className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Buttons', theme) && ['onesy-Buttons-root', `onesy-Buttons-version-${version}`, `onesy-Buttons-size-${size}`, disabled && `onesy-Buttons-disabled`], className, classes.root, classes[`orientation_${orientation}`], classes[`orientation_${orientation}_size_${size}`], fullWidth && classes.fullWidth, elevation && !disabled && ['filled', 'tonal'].includes(version) && classes.elevation, disabled && classes.disabled])
376
331
  }, other), children);
377
332
  });
378
333
  Buttons.displayName = 'onesy-Buttons';
@@ -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;
@@ -194,16 +194,16 @@ const Calendar = /*#__PURE__*/_react.default.forwardRef((props__, ref) => {
194
194
  return (theme === null || theme === void 0 || (_theme$elements9 = theme.elements) === null || _theme$elements9 === void 0 ? void 0 : _theme$elements9.Divider) || _Divider.default;
195
195
  }, [theme]);
196
196
  const Type = _react.default.useMemo(() => {
197
- var _theme$elements10;
198
- return (theme === null || theme === void 0 || (_theme$elements10 = theme.elements) === null || _theme$elements10 === void 0 ? void 0 : _theme$elements10.Type) || _Type.default;
197
+ var _theme$elements0;
198
+ return (theme === null || theme === void 0 || (_theme$elements0 = theme.elements) === null || _theme$elements0 === void 0 ? void 0 : _theme$elements0.Type) || _Type.default;
199
199
  }, [theme]);
200
200
  const Carousel = _react.default.useMemo(() => {
201
- var _theme$elements11;
202
- return (theme === null || theme === void 0 || (_theme$elements11 = theme.elements) === null || _theme$elements11 === void 0 ? void 0 : _theme$elements11.Carousel) || _Carousel.default;
201
+ var _theme$elements1;
202
+ return (theme === null || theme === void 0 || (_theme$elements1 = theme.elements) === null || _theme$elements1 === void 0 ? void 0 : _theme$elements1.Carousel) || _Carousel.default;
203
203
  }, [theme]);
204
204
  const PaginationItem = _react.default.useMemo(() => {
205
- var _theme$elements12;
206
- return (theme === null || theme === void 0 || (_theme$elements12 = theme.elements) === null || _theme$elements12 === void 0 ? void 0 : _theme$elements12.PaginationItem) || _PaginationItem.default;
205
+ var _theme$elements10;
206
+ return (theme === null || theme === void 0 || (_theme$elements10 = theme.elements) === null || _theme$elements10 === void 0 ? void 0 : _theme$elements10.PaginationItem) || _PaginationItem.default;
207
207
  }, [theme]);
208
208
  const {
209
209
  tonal = true,
@@ -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;
@@ -161,20 +161,20 @@ const CalendarAvailability = /*#__PURE__*/_react.default.forwardRef((props_, ref
161
161
  return (theme === null || theme === void 0 || (_theme$elements9 = theme.elements) === null || _theme$elements9 === void 0 ? void 0 : _theme$elements9.ModalMain) || _ModalMain.default;
162
162
  }, [theme]);
163
163
  const Slide = _react.default.useMemo(() => {
164
- var _theme$elements10;
165
- return (theme === null || theme === void 0 || (_theme$elements10 = theme.elements) === null || _theme$elements10 === void 0 ? void 0 : _theme$elements10.Slide) || _Slide.default;
164
+ var _theme$elements0;
165
+ return (theme === null || theme === void 0 || (_theme$elements0 = theme.elements) === null || _theme$elements0 === void 0 ? void 0 : _theme$elements0.Slide) || _Slide.default;
166
166
  }, [theme]);
167
167
  const Button = _react.default.useMemo(() => {
168
- var _theme$elements11;
169
- return (theme === null || theme === void 0 || (_theme$elements11 = theme.elements) === null || _theme$elements11 === void 0 ? void 0 : _theme$elements11.Button) || _Button.default;
168
+ var _theme$elements1;
169
+ return (theme === null || theme === void 0 || (_theme$elements1 = theme.elements) === null || _theme$elements1 === void 0 ? void 0 : _theme$elements1.Button) || _Button.default;
170
170
  }, [theme]);
171
171
  const Select = _react.default.useMemo(() => {
172
- var _theme$elements12;
173
- return (theme === null || theme === void 0 || (_theme$elements12 = theme.elements) === null || _theme$elements12 === void 0 ? void 0 : _theme$elements12.Select) || _Select.default;
172
+ var _theme$elements10;
173
+ return (theme === null || theme === void 0 || (_theme$elements10 = theme.elements) === null || _theme$elements10 === void 0 ? void 0 : _theme$elements10.Select) || _Select.default;
174
174
  }, [theme]);
175
175
  const CalendarWeek = _react.default.useMemo(() => {
176
- var _theme$elements13;
177
- return (theme === null || theme === void 0 || (_theme$elements13 = theme.elements) === null || _theme$elements13 === void 0 ? void 0 : _theme$elements13.CalendarWeek) || _CalendarWeek.default;
176
+ var _theme$elements11;
177
+ return (theme === null || theme === void 0 || (_theme$elements11 = theme.elements) === null || _theme$elements11 === void 0 ? void 0 : _theme$elements11.CalendarWeek) || _CalendarWeek.default;
178
178
  }, [theme]);
179
179
  const {
180
180
  name,
@@ -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;
@@ -150,8 +150,8 @@ const CalendarMenu = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
150
150
  return (theme === null || theme === void 0 || (_theme$elements9 = theme.elements) === null || _theme$elements9 === void 0 ? void 0 : _theme$elements9.TimePicker) || _TimePicker.default;
151
151
  }, [theme]);
152
152
  const Type = _react.default.useMemo(() => {
153
- var _theme$elements10;
154
- return (theme === null || theme === void 0 || (_theme$elements10 = theme.elements) === null || _theme$elements10 === void 0 ? void 0 : _theme$elements10.Type) || _Type.default;
153
+ var _theme$elements0;
154
+ return (theme === null || theme === void 0 || (_theme$elements0 = theme.elements) === null || _theme$elements0 === void 0 ? void 0 : _theme$elements0.Type) || _Type.default;
155
155
  }, [theme]);
156
156
  const {
157
157
  value,
@@ -286,9 +286,9 @@ const CalendarMenu = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
286
286
  }
287
287
  if (value !== null && value !== void 0 && (_value$repeat9 = value.repeat) !== null && _value$repeat9 !== void 0 && _value$repeat9.skip_weekends && [0, 6].includes(day.dayWeek)) repeating = false;
288
288
  if (repeating) {
289
- var _value$repeat10, _value$repeat11, _value$repeat$ends;
289
+ var _value$repeat0, _value$repeat1, _value$repeat$ends;
290
290
  const formated = (0, _date.format)(day, _utils2.formats.date);
291
- if (value !== null && value !== void 0 && (_value$repeat10 = value.repeat) !== null && _value$repeat10 !== void 0 && (_value$repeat10 = _value$repeat10.ends) !== null && _value$repeat10 !== void 0 && _value$repeat10.active) {
291
+ if (value !== null && value !== void 0 && (_value$repeat0 = value.repeat) !== null && _value$repeat0 !== void 0 && (_value$repeat0 = _value$repeat0.ends) !== null && _value$repeat0 !== void 0 && _value$repeat0.active) {
292
292
  // date
293
293
  if ((value === null || value === void 0 ? void 0 : value.repeat.ends.version) === 'date') {
294
294
  const endsDate = new _date.OnesyDate(value === null || value === void 0 ? void 0 : value.repeat.ends.value);
@@ -299,7 +299,7 @@ const CalendarMenu = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
299
299
  if (!refs.repeatCount.current[value === null || value === void 0 ? void 0 : value.id]) refs.repeatCount.current[value === null || value === void 0 ? void 0 : value.id] = [];
300
300
  if (!refs.repeatCount.current[value === null || value === void 0 ? void 0 : value.id].includes(formated)) refs.repeatCount.current[value === null || value === void 0 ? void 0 : value.id].push(formated);
301
301
  }
302
- if (value !== null && value !== void 0 && (_value$repeat11 = value.repeat) !== null && _value$repeat11 !== void 0 && (_value$repeat11 = _value$repeat11.ends) !== null && _value$repeat11 !== void 0 && _value$repeat11.active) {
302
+ if (value !== null && value !== void 0 && (_value$repeat1 = value.repeat) !== null && _value$repeat1 !== void 0 && (_value$repeat1 = _value$repeat1.ends) !== null && _value$repeat1 !== void 0 && _value$repeat1.active) {
303
303
  var _refs$repeatCount$cur;
304
304
  const indexRepeated = (_refs$repeatCount$cur = refs.repeatCount.current[value === null || value === void 0 ? void 0 : value.id]) === null || _refs$repeatCount$cur === void 0 ? void 0 : _refs$repeatCount$cur.indexOf(formated);
305
305
 
@@ -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[];
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
  };