@onesy/ui-react 1.0.47 → 1.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/Accordion/Accordion.d.ts +3 -6
  2. package/AdvancedTextField/AdvancedTextField.d.ts +2 -2
  3. package/Append/Append.d.ts +4 -4
  4. package/AreaChart/AreaChart.d.ts +2 -2
  5. package/AreaChartItem/AreaChartItem.d.ts +4 -2
  6. package/AudioPlayer/AudioPlayer.d.ts +5 -7
  7. package/AudioRecorder/AudioRecorder.d.ts +3 -5
  8. package/AutoComplete/AutoComplete.d.ts +2 -4
  9. package/AutoCompleteCountry/AutoCompleteCountry.d.ts +1 -2
  10. package/AutoCompleteCurrency/AutoCompleteCurrency.d.ts +1 -2
  11. package/AutoCompleteGooglePlaces/AutoCompleteGooglePlaces.d.ts +3 -2
  12. package/Avatar/Avatar.d.ts +2 -2
  13. package/AvatarGroup/AvatarGroup.d.ts +3 -7
  14. package/Backdrop/Backdrop.d.ts +2 -2
  15. package/Badge/Badge.d.ts +3 -5
  16. package/Banner/Banner.d.ts +6 -4
  17. package/BottomAppBar/BottomAppBar.d.ts +3 -4
  18. package/BottomSheet/BottomSheet.d.ts +1 -2
  19. package/Box/Box.d.ts +2 -2
  20. package/Breadcrumbs/Breadcrumbs.d.ts +4 -2
  21. package/BubbleChart/BubbleChart.d.ts +1 -2
  22. package/BubbleChartItem/BubbleChartItem.d.ts +2 -2
  23. package/Button/Button.d.ts +4 -5
  24. package/Buttons/Buttons.d.ts +3 -7
  25. package/Calendar/Calendar.d.ts +8 -8
  26. package/CalendarAvailability/CalendarAvailability.d.ts +5 -4
  27. package/CalendarMenu/CalendarMenu.d.ts +2 -2
  28. package/CalendarMonth/CalendarMonth.d.ts +5 -8
  29. package/CalendarViews/CalendarViews.d.ts +2 -2
  30. package/CalendarWeek/CalendarWeek.d.ts +2 -2
  31. package/Card/Card.d.ts +2 -3
  32. package/CardButton/CardButton.d.ts +2 -3
  33. package/CardFooter/CardFooter.d.ts +3 -5
  34. package/CardHeader/CardHeader.d.ts +3 -5
  35. package/CardImage/CardImage.d.ts +3 -5
  36. package/CardMain/CardMain.d.ts +3 -5
  37. package/Carousel/Carousel.d.ts +4 -4
  38. package/Chart/Chart.d.ts +8 -10
  39. package/Checkbox/Checkbox.d.ts +2 -2
  40. package/Chip/Chip.d.ts +2 -2
  41. package/Chips/Chips.d.ts +4 -2
  42. package/Chips/Chips.js +2 -2
  43. package/ClickListener/ClickListener.d.ts +3 -3
  44. package/Clock/Clock.d.ts +2 -8
  45. package/ColorTextField/ColorTextField.d.ts +2 -2
  46. package/ColumnChart/ColumnChart.d.ts +1 -2
  47. package/ColumnChartItem/ColumnChartItem.d.ts +4 -2
  48. package/Confirm/Confirm.d.ts +8 -8
  49. package/Container/Container.d.ts +2 -2
  50. package/CookieBanner/CookieBanner.d.ts +2 -2
  51. package/Countdown/Countdown.d.ts +2 -2
  52. package/DatePicker/DatePicker.d.ts +4 -8
  53. package/DateRangePicker/DateRangePicker.d.ts +1 -2
  54. package/DateTimePicker/DateTimePicker.d.ts +5 -7
  55. package/DateTimeRangePicker/DateTimeRangePicker.d.ts +1 -2
  56. package/Divider/Divider.d.ts +2 -2
  57. package/DonutChart/DonutChart.d.ts +1 -2
  58. package/DragAndDropList/DragAndDropList.d.ts +2 -2
  59. package/Drawing/Drawing.d.ts +2 -2
  60. package/DropZone/DropZone.d.ts +2 -2
  61. package/DropZone/DropZone.js +2 -1
  62. package/Emojis/Emojis.d.ts +6 -6
  63. package/Expand/Expand.d.ts +2 -2
  64. package/Fab/Fab.d.ts +1 -2
  65. package/Fade/Fade.d.ts +1 -2
  66. package/FileChoose/FileChoose.d.ts +3 -6
  67. package/Focus/Focus.d.ts +1 -2
  68. package/Form/Form.d.ts +3 -4
  69. package/FormRow/FormRow.d.ts +2 -2
  70. package/Forms/Forms.d.ts +2 -2
  71. package/Frame/Frame.d.ts +3 -3
  72. package/Grid/Grid.d.ts +5 -2
  73. package/Grid/Grid.js +2 -1
  74. package/Grow/Grow.d.ts +1 -2
  75. package/HTMLCanvas/HTMLCanvas.d.ts +6 -9
  76. package/IFrame/IFrame.d.ts +3 -2
  77. package/Icon/Icon.d.ts +3 -6
  78. package/IconButton/IconButton.d.ts +1 -2
  79. package/Image/Image.d.ts +5 -5
  80. package/Image/Image.js +2 -1
  81. package/ImageCrop/ImageCrop.d.ts +2 -2
  82. package/ImageEdit/ImageEdit.d.ts +3 -5
  83. package/ImageGallery/ImageGallery.d.ts +2 -2
  84. package/ImageList/ImageList.d.ts +2 -2
  85. package/ImageList/ImageList.js +2 -1
  86. package/ImageListItem/ImageListItem.d.ts +2 -2
  87. package/ImageListItemBox/ImageListItemBox.d.ts +2 -2
  88. package/Info/Info.d.ts +2 -2
  89. package/Interaction/Interaction.d.ts +2 -3
  90. package/Keyframes/Keyframes.d.ts +4 -4
  91. package/Label/Label.d.ts +5 -7
  92. package/Labels/Labels.d.ts +3 -7
  93. package/Line/Line.d.ts +2 -2
  94. package/LineChart/LineChart.d.ts +2 -2
  95. package/LineChartItem/LineChartItem.d.ts +4 -2
  96. package/LinearMeter/LinearMeter.d.ts +3 -6
  97. package/LinearProgress/LinearProgress.d.ts +3 -5
  98. package/Link/Link.d.ts +2 -4
  99. package/Links/Links.d.ts +4 -4
  100. package/List/List.d.ts +4 -4
  101. package/ListItem/ListItem.d.ts +3 -5
  102. package/ListSubheader/ListSubheader.d.ts +1 -2
  103. package/MainProgress/MainProgress.d.ts +6 -6
  104. package/Markdown/Markdown.d.ts +2 -2
  105. package/Masonry/Masonry.d.ts +2 -2
  106. package/Medias/Medias.d.ts +4 -4
  107. package/Menu/Menu.d.ts +2 -2
  108. package/MenuDesktop/MenuDesktop.d.ts +3 -6
  109. package/MenuItem/MenuItem.d.ts +2 -2
  110. package/Meta/Meta.d.ts +2 -2
  111. package/Modal/Modal.d.ts +3 -6
  112. package/ModalFooter/ModalFooter.d.ts +1 -2
  113. package/ModalHeader/ModalHeader.d.ts +2 -2
  114. package/ModalIcon/ModalIcon.d.ts +1 -2
  115. package/ModalMain/ModalMain.d.ts +1 -2
  116. package/ModalText/ModalText.d.ts +1 -2
  117. package/ModalTitle/ModalTitle.d.ts +1 -2
  118. package/MoreOptions/MoreOptions.d.ts +2 -2
  119. package/Move/Move.d.ts +2 -2
  120. package/NavigationBar/NavigationBar.d.ts +2 -2
  121. package/NavigationDrawer/NavigationDrawer.d.ts +2 -2
  122. package/NavigationItem/NavigationItem.d.ts +3 -5
  123. package/NavigationRail/NavigationRail.d.ts +3 -4
  124. package/NotFound/NotFound.d.ts +3 -2
  125. package/NumericTextField/NumericTextField.d.ts +2 -2
  126. package/Page/Page.d.ts +4 -4
  127. package/PageTransition/PageTransition.d.ts +2 -2
  128. package/Pagination/Pagination.d.ts +3 -7
  129. package/PaginationItem/PaginationItem.d.ts +2 -2
  130. package/Parallax/Parallax.d.ts +2 -2
  131. package/Path/Path.d.ts +2 -2
  132. package/PieChart/PieChart.d.ts +4 -2
  133. package/Placeholder/Placeholder.d.ts +3 -4
  134. package/Portal/Portal.d.ts +2 -2
  135. package/Properties/Properties.d.ts +5 -5
  136. package/Property/Property.d.ts +2 -2
  137. package/Radio/Radio.d.ts +2 -2
  138. package/Radios/Radios.d.ts +3 -7
  139. package/Rating/Rating.d.ts +3 -8
  140. package/Reset/Reset.d.ts +1 -2
  141. package/Reveal/Reveal.d.ts +2 -2
  142. package/RichTextEditor/RichTextEditor.d.ts +3 -5
  143. package/RoundMeter/RoundMeter.d.ts +3 -6
  144. package/RoundProgress/RoundProgress.d.ts +3 -6
  145. package/ScatterChart/ScatterChart.d.ts +1 -2
  146. package/ScatterChartItem/ScatterChartItem.d.ts +4 -2
  147. package/ScreenCapture/ScreenCapture.d.ts +2 -2
  148. package/Section/Section.d.ts +2 -2
  149. package/SectionAction/SectionAction.d.ts +2 -2
  150. package/SectionBoxes/SectionBoxes.d.ts +4 -4
  151. package/SectionCards/SectionCards.d.ts +4 -4
  152. package/SectionCarousel/SectionCarousel.d.ts +4 -4
  153. package/SectionContact/SectionContact.d.ts +2 -2
  154. package/SectionImageGallery/SectionImageGallery.d.ts +2 -2
  155. package/SectionLogos/SectionLogos.d.ts +2 -2
  156. package/SectionMedia/SectionMedia.d.ts +2 -2
  157. package/SectionReviews/SectionReviews.d.ts +5 -4
  158. package/SectionTextMedia/SectionTextMedia.d.ts +2 -2
  159. package/SectionTimeline/SectionTimeline.d.ts +4 -4
  160. package/SectionWatch/SectionWatch.d.ts +2 -5
  161. package/Select/Select.d.ts +2 -2
  162. package/Share/Share.d.ts +3 -4
  163. package/Slide/Slide.d.ts +2 -2
  164. package/Slider/Slider.d.ts +4 -9
  165. package/SmartTextField/SmartTextField.d.ts +2 -3
  166. package/Snackbar/Snackbar.d.ts +3 -4
  167. package/Snackbars/Context.d.ts +2 -2
  168. package/Snackbars/Snackbars.d.ts +4 -4
  169. package/Space/Space.d.ts +3 -6
  170. package/SpeechToText/SpeechToText.d.ts +3 -5
  171. package/SpeedDial/SpeedDial.d.ts +3 -6
  172. package/SpeedDialItem/SpeedDialItem.d.ts +2 -2
  173. package/SpyScroll/SpyScroll.d.ts +2 -2
  174. package/Step/Step.d.ts +3 -5
  175. package/Stepper/Stepper.d.ts +4 -5
  176. package/Surface/Surface.d.ts +3 -6
  177. package/Switch/Switch.d.ts +5 -7
  178. package/Tab/Tab.d.ts +2 -3
  179. package/Table/Table.d.ts +3 -4
  180. package/TableBody/TableBody.d.ts +2 -4
  181. package/TableCell/TableCell.d.ts +3 -7
  182. package/TableFooter/TableFooter.d.ts +1 -4
  183. package/TableHead/TableHead.d.ts +2 -4
  184. package/TableHeader/TableHeader.d.ts +1 -4
  185. package/TablePagination/TablePagination.d.ts +3 -6
  186. package/TableRow/TableRow.d.ts +2 -4
  187. package/TableRow/TableRow.js +4 -4
  188. package/Tabs/Tabs.d.ts +2 -2
  189. package/Text/Text.d.ts +2 -2
  190. package/TextField/TextField.d.ts +4 -8
  191. package/TextToSpeech/TextToSpeech.d.ts +3 -5
  192. package/TimePicker/TimePicker.d.ts +5 -6
  193. package/TimeRangePicker/TimeRangePicker.d.ts +1 -2
  194. package/Timeline/Timeline.d.ts +2 -2
  195. package/TimelineItem/TimelineItem.d.ts +2 -2
  196. package/Timer/Timer.d.ts +2 -2
  197. package/ToggleButton/ToggleButton.d.ts +1 -2
  198. package/ToggleButtons/ToggleButtons.d.ts +1 -2
  199. package/Tooltip/Tooltip.d.ts +4 -5
  200. package/TopAppBar/TopAppBar.d.ts +3 -4
  201. package/Transition/Transition.d.ts +4 -4
  202. package/Transitions/Transitions.d.ts +2 -2
  203. package/Tree/Tree.d.ts +5 -5
  204. package/Type/Type.d.ts +3 -5
  205. package/VideoPlayer/VideoPlayer.d.ts +5 -7
  206. package/ViewSplit/ViewSplit.d.ts +4 -5
  207. package/Watch/Watch.d.ts +3 -4
  208. package/Weather/Weather.d.ts +3 -4
  209. package/Whiteboard/Whiteboard.d.ts +6 -6
  210. package/Widgets/Widgets.d.ts +4 -4
  211. package/WindowSplit/WindowSplit.d.ts +4 -5
  212. package/Zoom/Zoom.d.ts +1 -2
  213. package/esm/Chips/Chips.js +3 -3
  214. package/esm/DropZone/DropZone.js +2 -1
  215. package/esm/Grid/Grid.js +2 -1
  216. package/esm/Image/Image.js +2 -1
  217. package/esm/ImageList/ImageList.js +2 -1
  218. package/esm/TableRow/TableRow.js +1 -1
  219. package/esm/index.js +1 -1
  220. package/package.json +1 -1
  221. package/types.d.ts +11 -8
  222. package/useForm/useForm.d.ts +4 -4
  223. package/useForm/validate.d.ts +12 -12
  224. package/useLocation/useLocation.d.ts +1 -2
  225. package/useMediaQuery/useMediaQuery.d.ts +2 -2
  226. package/useScroll/useScroll.d.ts +2 -2
  227. package/useSwipe/useSwipe.d.ts +4 -4
  228. package/useVisible/useVisible.d.ts +4 -4
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  import { ITransition } from '..';
3
3
  import { IPropsAny } from '../types';
4
- export interface IExpand extends Omit<ITransition, 'className'> {
4
+ export declare type IExpand = Omit<ITransition, 'className'> & {
5
5
  value?: number;
6
6
  expandSize?: number;
7
7
  orientation?: 'veritcal' | 'horizontal';
8
8
  WrapperProps?: IPropsAny;
9
9
  className?: string;
10
- }
10
+ };
11
11
  declare const Expand: React.FC<IExpand>;
12
12
  export default Expand;
package/Fab/Fab.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IButton } from '../Button/Button';
3
- export interface IFab extends IButton {
4
- }
3
+ export declare type IFab = IButton & {};
5
4
  declare const Fab: React.FC<IFab>;
6
5
  export default Fab;
package/Fade/Fade.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { ITransition } from '..';
3
- export interface IFade extends ITransition {
4
- }
3
+ export declare type IFade = ITransition & {};
5
4
  declare const Fade: React.FC<IFade>;
6
5
  export default Fade;
@@ -1,12 +1,9 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
- import { ITonal, IColor, IRef, IElementReference, IPropsAny, ISize } from '../types';
3
+ import { IRef, IElementReference, IPropsAny } from '../types';
4
4
  export declare type TFileChooseValue = File | Array<File>;
5
- export interface IFileChoose extends ILine {
6
- tonal?: ITonal;
7
- color?: IColor;
5
+ export declare type IFileChoose = ILine & {
8
6
  inputRef?: IRef;
9
- size?: ISize;
10
7
  max?: number;
11
8
  allowedTypes?: Array<string>;
12
9
  files?: Array<File>;
@@ -23,6 +20,6 @@ export interface IFileChoose extends ILine {
23
20
  inputProps?: IPropsAny;
24
21
  WrapperProps?: IPropsAny;
25
22
  ComponentProps?: IPropsAny;
26
- }
23
+ };
27
24
  declare const FileChoose: React.FC<IFileChoose>;
28
25
  export default FileChoose;
package/Focus/Focus.d.ts CHANGED
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import { IBaseElement } from '../types';
3
3
  export declare const matches: (value: Element) => any;
4
4
  export declare const queryMatchFocusable = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]):not([disabled]), details:not([disabled]), summary:not(:disabled)";
5
- export interface IFocus extends IBaseElement {
6
- }
5
+ export declare type IFocus = IBaseElement & {};
7
6
  declare const Focus: React.FC<IFocus>;
8
7
  export default Focus;
package/Form/Form.d.ts CHANGED
@@ -1,12 +1,11 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
- import { IElement, ISize } from '../types';
4
- export interface IForm extends ILine {
3
+ import { IElement } from '../types';
4
+ export declare type IForm = ILine & {
5
5
  accordion?: boolean;
6
6
  divider?: boolean;
7
7
  name?: string | IElement;
8
8
  description?: string | IElement;
9
- size?: ISize;
10
9
  start?: any;
11
10
  end?: any;
12
11
  footer?: IElement;
@@ -20,6 +19,6 @@ export interface IForm extends ILine {
20
19
  EndProps?: any;
21
20
  AccordionProps?: any;
22
21
  AccordionMainProps?: any;
23
- }
22
+ };
24
23
  declare const Form: React.FC<IForm>;
25
24
  export default Form;
@@ -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 interface IFormRow extends ILine {
4
+ export declare type IFormRow = ILine & {
5
5
  name?: string | IElement;
6
6
  description?: string | IElement;
7
7
  start?: any;
@@ -15,6 +15,6 @@ export interface IFormRow extends ILine {
15
15
  AsideProps?: any;
16
16
  StartProps?: any;
17
17
  EndProps?: any;
18
- }
18
+ };
19
19
  declare const FormRow: React.FC<IFormRow>;
20
20
  export default FormRow;
package/Forms/Forms.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
- export interface IForms extends ILine {
3
+ export declare type IForms = ILine & {
4
4
  divider?: boolean;
5
- }
5
+ };
6
6
  declare const Forms: React.FC<IForms>;
7
7
  export default Forms;
package/Frame/Frame.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
- export interface IFrame extends ILine {
3
+ export declare type IFrame = ILine & {
4
4
  url?: string;
5
5
  src?: string;
6
6
  value?: any;
7
7
  startOptions?: any;
8
8
  endOptions?: any;
9
9
  IconMobile?: any;
10
- IconTable?: any;
10
+ IconTablet?: any;
11
11
  IconLaptop?: any;
12
12
  IconDesktop?: any;
13
13
  iframeProps?: any;
@@ -16,6 +16,6 @@ export interface IFrame extends ILine {
16
16
  OptionsProps?: any;
17
17
  OptionsWrapperProps?: any;
18
18
  WrapperProps?: any;
19
- }
19
+ };
20
20
  declare const Frame: React.FC<IFrame>;
21
21
  export default Frame;
package/Grid/Grid.d.ts CHANGED
@@ -2,13 +2,16 @@ import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IValueBreakpoints, IPropsAny } from '../types';
4
4
  export declare type IGridValues = Partial<Record<IValueBreakpoints, number>>;
5
- export interface IGrid extends ILine {
5
+ export declare type IGrid = ILine & {
6
6
  auto?: boolean;
7
7
  columns?: number | IGridValues;
8
+ parentGap?: any;
9
+ parentRowGap?: any;
10
+ parentColumnGap?: any;
8
11
  offsets?: IGridValues;
9
12
  responsive?: boolean;
10
13
  values?: IGridValues;
11
14
  RootProps?: IPropsAny;
12
- }
15
+ };
13
16
  declare const Grid: React.FC<IGrid>;
14
17
  export default Grid;
package/Grid/Grid.js CHANGED
@@ -66,7 +66,8 @@ const Grid = react_1.default.forwardRef((props_, ref) => {
66
66
  const theme = (0, style_react_1.useOnesyTheme)();
67
67
  const props = react_1.default.useMemo(() => { var _a, _b, _c, _d, _e, _f, _g, _h; return (Object.assign(Object.assign(Object.assign({}, (_d = (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.ui) === null || _a === void 0 ? void 0 : _a.elements) === null || _b === void 0 ? void 0 : _b.all) === null || _c === void 0 ? void 0 : _c.props) === null || _d === void 0 ? void 0 : _d.default), (_h = (_g = (_f = (_e = theme === null || theme === void 0 ? void 0 : theme.ui) === null || _e === void 0 ? void 0 : _e.elements) === null || _f === void 0 ? void 0 : _f.onesyGrid) === null || _g === void 0 ? void 0 : _g.props) === null || _h === void 0 ? void 0 : _h.default), props_)); }, [props_]);
68
68
  const Line = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Line) || Line_1.default; }, [theme]);
69
- const { auto, wrap, columns = 12, gap: gap_, rowGap: rowGap_, columnGap: columnGap_, parentGap, parentRowGap, parentColumnGap, direction: direction_, offsets, values, responsive: responsive_, RootProps, Component = 'div', style, className, children } = props, other = __rest(props, ["auto", "wrap", "columns", "gap", "rowGap", "columnGap", "parentGap", "parentRowGap", "parentColumnGap", "direction", "offsets", "values", "responsive", "RootProps", "Component", "style", "className", "children"]);
69
+ const { auto, wrap, columns = 12, gap: gap_, rowGap: rowGap_, columnGap: columnGap_, parentGap, parentRowGap, parentColumnGap, direction: direction_, offsets, values, responsive: responsive_, RootProps, Component = 'div', style, className, children } = props, otherProps = __rest(props, ["auto", "wrap", "columns", "gap", "rowGap", "columnGap", "parentGap", "parentRowGap", "parentColumnGap", "direction", "offsets", "values", "responsive", "RootProps", "Component", "style", "className", "children"]);
70
+ const other = otherProps;
70
71
  const { classes } = useStyle();
71
72
  const refs = {
72
73
  root: react_1.default.useRef(undefined),
package/Grow/Grow.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { ITransition } from '..';
3
- export interface IGrow extends ITransition {
4
- }
3
+ export declare type IGrow = ITransition & {};
5
4
  declare const Grow: React.FC<IGrow>;
6
5
  export default Grow;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { IBaseElement, ISize } from '../types';
3
- export interface IHTMLCanvasOnChangeValue {
2
+ import { IBaseElement } from '../types';
3
+ export declare type IHTMLCanvasOnChangeValue = {
4
4
  zoom: number;
5
5
  top: number;
6
6
  left: number;
@@ -12,9 +12,8 @@ export interface IHTMLCanvasOnChangeValue {
12
12
  width: number;
13
13
  height: number;
14
14
  };
15
- }
16
- export interface IHTMLCanvas extends IBaseElement {
17
- size?: ISize;
15
+ };
16
+ export declare type IHTMLCanvas = IBaseElement & {
18
17
  minZoom?: number;
19
18
  maxZoom?: number;
20
19
  showGuidelinesDefault?: boolean;
@@ -29,15 +28,13 @@ export interface IHTMLCanvas extends IBaseElement {
29
28
  onMouseDown?: (event: MouseEvent) => any;
30
29
  onTouchStart?: (event: TouchEvent) => any;
31
30
  noActions?: boolean;
32
- noGuidelines?: boolean;
31
+ noGuideLines?: boolean;
33
32
  noFitCenter?: boolean;
34
33
  noZoomMenu?: boolean;
35
34
  methods?: any;
36
- disabled?: boolean;
37
35
  IconCenter?: any;
38
36
  ContainerProps?: any;
39
37
  IconButtonProps?: any;
40
- Component?: any;
41
- }
38
+ };
42
39
  declare const HTMLCanvas: React.FC<IHTMLCanvas>;
43
40
  export default HTMLCanvas;
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IPropsAny } from '../types';
4
- export interface IIFrame extends ILine {
4
+ export declare type IIFrame = ILine & {
5
5
  id?: string;
6
+ src?: string;
6
7
  WrapperProps?: IPropsAny;
7
- }
8
+ };
8
9
  declare const IFrame: React.FC<IIFrame>;
9
10
  export default IFrame;
package/Icon/Icon.d.ts CHANGED
@@ -1,17 +1,14 @@
1
1
  import React from 'react';
2
2
  import { TTone } from '@onesy/style-react';
3
- import { IBaseElement, ITonal, IColor } from '../types';
3
+ import { IBaseElement } from '../types';
4
4
  export declare const rtl_icons: string[];
5
- export interface IIcon extends IBaseElement {
6
- tonal?: ITonal;
7
- color?: IColor;
5
+ export declare type IIcon = IBaseElement & {
8
6
  size?: 'very small' | 'small' | 'regular' | 'medium' | 'large' | 'very large' | number;
9
7
  tone?: TTone;
10
8
  viewBox?: string;
11
9
  name?: string;
12
10
  short_name?: string;
13
11
  noRtl?: boolean;
14
- disabled?: boolean;
15
- }
12
+ };
16
13
  declare const Icon: React.FC<IIcon>;
17
14
  export default Icon;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IButton } from '../Button/Button';
3
- export interface IIconButton extends IButton {
4
- }
3
+ export declare type IIconButton = IButton & {};
5
4
  declare const IconButton: React.FC<IIconButton>;
6
5
  export default IconButton;
package/Image/Image.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import { IUseVisible } from '../useVisible/useVisible';
3
- import { IBaseElement, ITonal, IColor, IPropsAny } from '../types';
4
- export interface IImage extends IBaseElement {
5
- tonal?: ITonal;
6
- color?: IColor;
3
+ import { IBaseElement, IPropsAny } from '../types';
4
+ export declare type IImage = IBaseElement & {
7
5
  src?: string;
6
+ url?: string;
7
+ urlSmall?: string;
8
8
  sources?: Array<string>;
9
9
  alt?: string;
10
10
  description?: string;
@@ -22,6 +22,6 @@ export interface IImage extends IBaseElement {
22
22
  NoImageProps?: IPropsAny;
23
23
  DescriptionProps?: IPropsAny;
24
24
  UseVisibleProps?: IUseVisible;
25
- }
25
+ };
26
26
  declare const Image: React.FC<IImage>;
27
27
  export default Image;
package/Image/Image.js CHANGED
@@ -115,7 +115,8 @@ const Image = react_1.default.forwardRef((props_, ref) => {
115
115
  const Line = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Line) || Line_1.default; }, [theme]);
116
116
  const Type = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Type) || Type_1.default; }, [theme]);
117
117
  const Surface = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Surface) || Surface_1.default; }, [theme]);
118
- const { tonal = true, color = 'primary', src, url, urlSmall, sources, alt, description, alignDescription = 'start', width, height, align, responsive = true, lazyLoad = true, fullWidth, maxWidth, loading, RootProps, NoImageProps, DescriptionProps, UseVisibleProps, className, style, children: children_ } = props, other = __rest(props, ["tonal", "color", "src", "url", "urlSmall", "sources", "alt", "description", "alignDescription", "width", "height", "align", "responsive", "lazyLoad", "fullWidth", "maxWidth", "loading", "RootProps", "NoImageProps", "DescriptionProps", "UseVisibleProps", "className", "style", "children"]);
118
+ const { tonal = true, color = 'primary', src, url, urlSmall, sources, alt, description, alignDescription = 'start', width, height, align, responsive = true, lazyLoad = true, fullWidth, maxWidth, loading, RootProps, NoImageProps, DescriptionProps, UseVisibleProps, className, style, children: children_ } = props, otherProps = __rest(props, ["tonal", "color", "src", "url", "urlSmall", "sources", "alt", "description", "alignDescription", "width", "height", "align", "responsive", "lazyLoad", "fullWidth", "maxWidth", "loading", "RootProps", "NoImageProps", "DescriptionProps", "UseVisibleProps", "className", "style", "children"]);
119
+ const other = otherProps;
119
120
  const { classes } = useStyle();
120
121
  let Component = 'img';
121
122
  const [root, setRoot] = react_1.default.useState();
@@ -6,7 +6,7 @@ export declare type TImageCrop = {
6
6
  width?: number;
7
7
  height?: number;
8
8
  };
9
- export interface IImageCrop extends IBaseElement {
9
+ export declare type IImageCrop = IBaseElement & {
10
10
  image?: string | HTMLCanvasElement;
11
11
  minWidth?: number;
12
12
  minHeight?: number;
@@ -23,6 +23,6 @@ export interface IImageCrop extends IBaseElement {
23
23
  onFocus?: (event: React.FocusEvent<any>) => any;
24
24
  onBlur?: (event: React.FocusEvent<any>) => any;
25
25
  TooltipProps?: IPropsAny;
26
- }
26
+ };
27
27
  declare const ImageCrop: React.FC<IImageCrop>;
28
28
  export default ImageCrop;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TMethod } from '@onesy/models';
3
3
  import { ILine } from '../Line/Line';
4
- import { IElementReference, IElement, ITonal, IColor, IPropsAny } from '../types';
4
+ import { IElementReference, IElement, IPropsAny } from '../types';
5
5
  export declare type TImageEditFilter = {
6
6
  label?: string;
7
7
  Icon?: IElementReference;
@@ -10,9 +10,7 @@ export declare type TImageEditFilter = {
10
10
  renderIconButton: (value: string, selected: boolean, onChangeFilter: TMethod) => IElement;
11
11
  renderSlider: (value: string, filterValuesCopy: any, onFilterSliderChange: TMethod) => IElement;
12
12
  };
13
- export interface IImageEdit extends ILine {
14
- tonal?: ITonal;
15
- color?: IColor;
13
+ export declare type IImageEdit = ILine & {
16
14
  image?: string | HTMLCanvasElement;
17
15
  name?: string;
18
16
  type?: string;
@@ -63,6 +61,6 @@ export interface IImageEdit extends ILine {
63
61
  TooltipProps?: IPropsAny;
64
62
  ImageCropProps?: IPropsAny;
65
63
  IconButtonProps?: IPropsAny;
66
- }
64
+ };
67
65
  declare const ImageEdit: React.FC<IImageEdit>;
68
66
  export default ImageEdit;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IElementReference, IMediaObject } from '../types';
4
- export interface IImageGallery extends ILine {
4
+ export declare type IImageGallery = ILine & {
5
5
  version?: 'regular' | 'modal';
6
6
  open?: boolean;
7
7
  size?: 'small' | 'regular' | 'large';
@@ -25,6 +25,6 @@ export interface IImageGallery extends ILine {
25
25
  IconStart?: IElementReference;
26
26
  IconEnd?: IElementReference;
27
27
  IconClose?: IElementReference;
28
- }
28
+ };
29
29
  declare const ImageGallery: React.FC<IImageGallery>;
30
30
  export default ImageGallery;
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement, IValueBreakpoints } from '../types';
3
- export interface IImageList extends IBaseElement {
3
+ export declare type IImageList = IBaseElement & {
4
4
  version?: 'standard' | 'vowen' | 'masonry';
5
5
  gap?: number | Partial<Record<IValueBreakpoints, number>>;
6
6
  rowGap?: number | Partial<Record<IValueBreakpoints, number>>;
7
7
  columnGap?: number | Partial<Record<IValueBreakpoints, number>>;
8
8
  columns?: number | Partial<Record<IValueBreakpoints, number>>;
9
- }
9
+ };
10
10
  declare const ImageList: React.FC<IImageList>;
11
11
  export default ImageList;
@@ -46,7 +46,8 @@ const ImageList = react_1.default.forwardRef((props_, ref) => {
46
46
  const theme = (0, style_react_1.useOnesyTheme)();
47
47
  const props = react_1.default.useMemo(() => { var _a, _b, _c, _d, _e, _f, _g, _h; return (Object.assign(Object.assign(Object.assign({}, (_d = (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.ui) === null || _a === void 0 ? void 0 : _a.elements) === null || _b === void 0 ? void 0 : _b.all) === null || _c === void 0 ? void 0 : _c.props) === null || _d === void 0 ? void 0 : _d.default), (_h = (_g = (_f = (_e = theme === null || theme === void 0 ? void 0 : theme.ui) === null || _e === void 0 ? void 0 : _e.elements) === null || _f === void 0 ? void 0 : _f.onesyImageList) === null || _g === void 0 ? void 0 : _g.props) === null || _h === void 0 ? void 0 : _h.default), props_)); }, [props_]);
48
48
  const { classes } = useStyle();
49
- const { version = 'standard', gap: gap_, rowGap: rowGap_, columnGap: columnGap_, columns: columns_, Component = 'ul', className, style, children } = props, other = __rest(props, ["version", "gap", "rowGap", "columnGap", "columns", "Component", "className", "style", "children"]);
49
+ const { version = 'standard', gap: gap_, rowGap: rowGap_, columnGap: columnGap_, columns: columns_, Component = 'ul', className, style, children } = props, otherProps = __rest(props, ["version", "gap", "rowGap", "columnGap", "columns", "Component", "className", "style", "children"]);
50
+ const other = otherProps;
50
51
  const refs = {
51
52
  root: react_1.default.useRef(undefined)
52
53
  };
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IValueBreakpoints } from '../types';
4
- export interface IImageListItem extends ILine {
4
+ export declare type IImageListItem = ILine & {
5
5
  rows?: number | Partial<Record<IValueBreakpoints, number>>;
6
6
  columns?: number | Partial<Record<IValueBreakpoints, number>>;
7
7
  version?: 'standard' | 'vowen' | 'masonry';
8
- }
8
+ };
9
9
  declare const ImageListItem: React.FC<IImageListItem>;
10
10
  export default ImageListItem;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { IListItem } from '../ListItem/ListItem';
3
- export interface IImageListItemBox extends IListItem {
3
+ export declare type IImageListItemBox = IListItem & {
4
4
  position?: 'top' | 'bottom';
5
5
  backgroundOpacity?: number;
6
- }
6
+ };
7
7
  declare const ImageListItemBox: React.FC<IImageListItemBox>;
8
8
  export default ImageListItemBox;
package/Info/Info.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IMenu } from '../Menu/Menu';
3
- export interface IInfo extends IMenu {
3
+ export declare type IInfo = IMenu & {
4
4
  name?: string;
5
5
  title?: string;
6
6
  render?: () => any;
@@ -10,6 +10,6 @@ export interface IInfo extends IMenu {
10
10
  TitleProps?: any;
11
11
  ContainerProps?: any;
12
12
  TooltipProps?: any;
13
- }
13
+ };
14
14
  declare const Info: React.FC<IInfo>;
15
15
  export default Info;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import OnesySubscription from '@onesy/subscription/OnesySubscription';
3
3
  import { IBaseElement } from '../types';
4
4
  export declare type TMethodsVersion = 'add' | 'pulse' | 'remove';
5
- export interface IInteraction extends IBaseElement {
5
+ export declare type IInteraction = IBaseElement & {
6
6
  wave?: boolean;
7
7
  background?: boolean;
8
8
  border?: boolean;
@@ -15,7 +15,6 @@ export interface IInteraction extends IBaseElement {
15
15
  wave_version?: 'simple';
16
16
  subscription?: OnesySubscription;
17
17
  clear?: any;
18
- disabled?: boolean;
19
- }
18
+ };
20
19
  declare const Interaction: React.FC<IInteraction>;
21
20
  export default Interaction;
@@ -2,11 +2,11 @@ import React from 'react';
2
2
  import { TTransitionsDurationProperties } from '@onesy/style-react';
3
3
  import { IBaseElement, IRef } from '../types';
4
4
  export declare type TKeyframesStatus = 'appended' | 'add' | 'adding' | 'added' | 'removed';
5
- export interface IKeyframe {
5
+ export declare type IKeyframe = {
6
6
  name: string;
7
7
  timeout: number;
8
- }
9
- export interface IKeyframes extends Omit<IBaseElement, 'className'> {
8
+ };
9
+ export declare type IKeyframes = Omit<IBaseElement, 'className'> & {
10
10
  ref?: IRef;
11
11
  className?: boolean;
12
12
  prefix?: string;
@@ -27,6 +27,6 @@ export interface IKeyframes extends Omit<IBaseElement, 'className'> {
27
27
  onAdding?: (element: HTMLElement) => void;
28
28
  onAdded?: (element: HTMLElement) => void;
29
29
  onRemoved?: (element: HTMLElement) => void;
30
- }
30
+ };
31
31
  declare const Keyframes: React.FC<IKeyframes>;
32
32
  export default Keyframes;
package/Label/Label.d.ts CHANGED
@@ -1,16 +1,14 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
- import { ITonal, IColor, IVersion, ISize, IElement, IPropsAny } from '../types';
4
- export interface ILabel extends ILine {
5
- tonal?: ITonal;
6
- color?: IColor;
3
+ import { IColor, IVersion, IElement, IPropsAny } from '../types';
4
+ export declare type ILabel = ILine & {
7
5
  colorUnchecked?: IColor;
8
6
  version?: IVersion;
9
- size?: ISize;
10
7
  position?: 'start' | 'top' | 'bottom' | 'end';
11
8
  input?: IElement;
12
9
  label?: IElement;
13
10
  name?: IElement;
11
+ valueDefault?: boolean;
14
12
  checkedDefault?: boolean;
15
13
  value?: any;
16
14
  checked?: any;
@@ -18,9 +16,9 @@ export interface ILabel extends ILine {
18
16
  error?: boolean;
19
17
  helperText?: string;
20
18
  footer?: IElement;
21
- disabled?: boolean;
22
19
  LabelProps?: IPropsAny;
23
20
  TypeProps?: IPropsAny;
24
- }
21
+ TextProps?: IPropsAny;
22
+ };
25
23
  declare const Label: React.FC<ILabel>;
26
24
  export default Label;
@@ -1,12 +1,9 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
- import { ITonal, IColor, IVersion, ISize, IElement, IPropsAny } from '../types';
4
- export interface ILabels extends ILine {
5
- tonal?: ITonal;
6
- color?: IColor;
3
+ import { IColor, IVersion, IElement, IPropsAny } from '../types';
4
+ export declare type ILabels = ILine & {
7
5
  colorUnchecked?: IColor;
8
6
  version?: IVersion;
9
- size?: ISize;
10
7
  name?: IElement;
11
8
  label?: IElement;
12
9
  valueDefault?: any[];
@@ -14,9 +11,8 @@ export interface ILabels extends ILine {
14
11
  value?: any[];
15
12
  checked?: any[];
16
13
  onChange?: (value: any) => any;
17
- disabled?: boolean;
18
14
  WrapperProps?: IPropsAny;
19
15
  LabelProps?: IPropsAny;
20
- }
16
+ };
21
17
  declare const Labels: React.FC<ILabels>;
22
18
  export default Labels;
package/Line/Line.d.ts CHANGED
@@ -5,7 +5,7 @@ export declare type TLineJustify = 'inherit' | 'initial' | 'flex-start' | 'cente
5
5
  export declare type TLineDirection = 'inherit' | 'row' | 'row-reverse' | 'column' | 'column-reverse';
6
6
  export declare type TLineWrap = 'inherit' | 'wrap' | 'nowrap' | 'wrap-reverse';
7
7
  export declare type TLineDisplay = 'inherit' | 'flex' | 'inline-flex';
8
- export interface ILine extends IBaseElement {
8
+ export declare type ILine = IBaseElement & {
9
9
  display?: TLineDisplay | Partial<Record<IValueBreakpoints, TLineDisplay>>;
10
10
  direction?: TLineDirection | Partial<Record<IValueBreakpoints, TLineDirection>>;
11
11
  align?: TLineAlign | Partial<Record<IValueBreakpoints, TLineAlign>>;
@@ -19,6 +19,6 @@ export interface ILine extends IBaseElement {
19
19
  fullWidth?: boolean | Partial<Record<IValueBreakpoints, boolean>>;
20
20
  divider?: boolean | Partial<Record<IValueBreakpoints, boolean>>;
21
21
  DividerProps?: IPropsAny;
22
- }
22
+ };
23
23
  declare const Line: React.FC<ILine>;
24
24
  export default Line;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { IChart } from '../Chart/Chart';
3
- export interface ILineChart extends IChart {
3
+ export declare type ILineChart = IChart & {
4
4
  smooth?: boolean;
5
5
  smoothRatio?: number;
6
- }
6
+ };
7
7
  declare const LineChart: React.FC<ILineChart>;
8
8
  export default LineChart;
@@ -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 interface ILineChartItem extends IChart {
4
+ export declare type ILineChartItem = IChart & {
5
5
  name?: string;
6
6
  refs?: {
7
7
  wrapper?: HTMLElement;
@@ -16,6 +16,8 @@ export interface ILineChartItem extends IChart {
16
16
  updateLegend?: TMethod;
17
17
  smooth?: boolean;
18
18
  smoothRatio?: number;
19
- }
19
+ BackgroundProps?: any;
20
+ BorderProps?: any;
21
+ };
20
22
  declare const LineChartItem: React.FC<ILineChartItem>;
21
23
  export default LineChartItem;
@@ -1,9 +1,6 @@
1
1
  import React from 'react';
2
- import { IBaseElement, ITonal, IColor, ISize, IStyle, IElement, IPropsAny } from '../types';
3
- export interface ILinearMeter extends IBaseElement {
4
- tonal?: ITonal;
5
- color?: IColor;
6
- size?: ISize;
2
+ import { IBaseElement, IStyle, IElement, IPropsAny } from '../types';
3
+ export declare type ILinearMeter = IBaseElement & {
7
4
  parts?: number;
8
5
  lineCap?: 'inherit' | 'round' | 'square' | 'butt';
9
6
  orientation?: 'vertical' | 'horizontal';
@@ -48,6 +45,6 @@ export interface ILinearMeter extends IBaseElement {
48
45
  LineMainProps?: IPropsAny;
49
46
  LinesProgressProps?: IPropsAny;
50
47
  LineProgressProps?: IPropsAny;
51
- }
48
+ };
52
49
  declare const LinearMeter: React.FC<ILinearMeter>;
53
50
  export default LinearMeter;
@@ -1,8 +1,6 @@
1
1
  import React from 'react';
2
- import { IBaseElement, ITonal, IColor } from '../types';
3
- export interface ILinearProress extends IBaseElement {
4
- tonal?: ITonal;
5
- color?: IColor;
2
+ import { IBaseElement } from '../types';
3
+ export declare type ILinearProress = IBaseElement & {
6
4
  value?: number | {
7
5
  progress?: number;
8
6
  buffer?: number;
@@ -10,6 +8,6 @@ export interface ILinearProress extends IBaseElement {
10
8
  version?: 'determinate' | 'indeterminate';
11
9
  buffer?: boolean;
12
10
  reverse?: boolean;
13
- }
11
+ };
14
12
  declare const LinearProgress: React.FC<ILinearProress>;
15
13
  export default LinearProgress;