@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,13 +1,12 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement, IPropsAny } from '../types';
3
- export interface ICardButton extends IBaseElement {
3
+ export declare type ICardButton = IBaseElement & {
4
4
  focus?: boolean;
5
5
  selected?: boolean;
6
6
  href?: boolean;
7
- disabled?: boolean;
8
7
  onFocus?: (event: React.FocusEvent<any>) => any;
9
8
  onBlur?: (event: React.FocusEvent<any>) => any;
10
9
  InteractionProps?: IPropsAny;
11
- }
10
+ };
12
11
  declare const CardButton: React.FC<ICardButton>;
13
12
  export default CardButton;
@@ -1,11 +1,9 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
- import { IColor, IElevation, ITonal, IVersion } from '../types';
4
- export interface ICardFooter extends ILine {
5
- tonal?: ITonal;
6
- color?: IColor;
3
+ import { IElevation, IVersion } from '../types';
4
+ export declare type ICardFooter = ILine & {
7
5
  version?: IVersion;
8
6
  elevation?: IElevation;
9
- }
7
+ };
10
8
  declare const CardFooter: React.FC<ICardFooter>;
11
9
  export default CardFooter;
@@ -1,11 +1,9 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
- import { IColor, IElevation, ITonal, IVersion } from '../types';
4
- export interface ICardHeader extends ILine {
5
- tonal?: ITonal;
6
- color?: IColor;
3
+ import { IElevation, IVersion } from '../types';
4
+ export declare type ICardHeader = ILine & {
7
5
  version?: IVersion;
8
6
  elevation?: IElevation;
9
- }
7
+ };
10
8
  declare const CardHeader: React.FC<ICardHeader>;
11
9
  export default CardHeader;
@@ -1,14 +1,12 @@
1
1
  import React from 'react';
2
- import { IBaseElement, ITonal, IColor, IVersion, IElevation } from '../types';
3
- export interface ICardImage extends IBaseElement {
4
- tonal?: ITonal;
5
- color?: IColor;
2
+ import { IBaseElement, IVersion, IElevation } from '../types';
3
+ export declare type ICardImage = IBaseElement & {
6
4
  version?: IVersion;
7
5
  elevation?: IElevation;
8
6
  alt?: string;
9
7
  image?: string;
10
8
  shape?: 'all' | 'none' | 'top' | 'left' | 'bottom' | 'right';
11
9
  marginHorizontal?: boolean;
12
- }
10
+ };
13
11
  declare const CardImage: React.FC<ICardImage>;
14
12
  export default CardImage;
@@ -1,11 +1,9 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
- import { ITonal, IColor, IVersion, IElevation } from '../types';
4
- export interface ICardMain extends ILine {
5
- tonal?: ITonal;
6
- color?: IColor;
3
+ import { IVersion, IElevation } from '../types';
4
+ export declare type ICardMain = ILine & {
7
5
  version?: IVersion;
8
6
  elevation?: IElevation;
9
- }
7
+ };
10
8
  declare const CardMain: React.FC<ICardMain>;
11
9
  export default CardMain;
@@ -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 interface ICarouselValue {
6
+ export declare type ICarouselValue = {
7
7
  index?: number;
8
8
  x?: number;
9
9
  y?: number;
10
- }
10
+ };
11
11
  export declare type TCarouselItem = string | null | IElement | {
12
12
  element: IElement;
13
13
  };
14
14
  export declare type TCarouseOnUpdate = (to: string | number, values: TCarouselItem[]) => any;
15
- export interface ICarousel extends Omit<ISurface, 'version'> {
15
+ export declare type ICarousel = Omit<ISurface, 'version'> & {
16
16
  version?: 'regular' | 'transition' | Partial<Record<IValueBreakpoints, 'regular' | 'transition'>>;
17
17
  valueDefault?: ICarouselValue;
18
18
  value?: ICarouselValue;
@@ -79,6 +79,6 @@ export interface ICarousel extends Omit<ISurface, 'version'> {
79
79
  ArrowNextTransitionComponentProps?: IPropsAny;
80
80
  ProgressTransitionComponentProps?: IPropsAny;
81
81
  ItemWrapperProps?: IPropsAny;
82
- }
82
+ };
83
83
  declare const Carousel: React.FC<ICarousel>;
84
84
  export default Carousel;
package/Chart/Chart.d.ts CHANGED
@@ -1,26 +1,23 @@
1
1
  import React from 'react';
2
2
  import { TColorValues } from '@onesy/style-react';
3
3
  import { ISurface } from '../Surface/Surface';
4
- import { IColor, IStyle, ITonal, IElementAny, IElement, IValueBreakpoints, IPropsAny } from '../types';
4
+ import { IStyle, IElementAny, IElement, IValueBreakpoints, IPropsAny } from '../types';
5
5
  export declare type IChartValueValues = Array<any>;
6
- export interface IItemValue {
6
+ export declare type IItemValue = {
7
7
  value: number;
8
8
  label: number;
9
9
  percentage: number;
10
10
  axis: 'x' | 'y';
11
11
  props?: any;
12
- }
13
- export interface IChartValue {
14
- color?: IColor;
12
+ };
13
+ export declare type IChartValue = {
15
14
  tone?: TColorValues;
16
15
  name?: string;
17
16
  style?: IStyle;
18
17
  percentage?: string | number;
19
18
  values: IChartValueValues | Array<IChartValueValues>;
20
- }
21
- export interface IChart extends ISurface {
22
- tonal?: ITonal;
23
- color?: IColor;
19
+ };
20
+ export declare type IChart = ISurface & {
24
21
  title?: IElementAny;
25
22
  subtitle?: IElementAny;
26
23
  values?: Array<IChartValue>;
@@ -104,6 +101,7 @@ export interface IChart extends ISurface {
104
101
  minPaddingY?: number | Partial<Record<IValueBreakpoints, number>>;
105
102
  maxPaddingX?: number | Partial<Record<IValueBreakpoints, number>>;
106
103
  maxPaddingY?: number | Partial<Record<IValueBreakpoints, number>>;
104
+ minMax?: any;
107
105
  noMain?: boolean;
108
106
  tooltipRender?: (values: IChartValue) => any;
109
107
  tooltipGroupRender?: (groups: Array<IChartValue>, groupsSorted: string[]) => any;
@@ -128,6 +126,6 @@ export interface IChart extends ISurface {
128
126
  LegendItemProps?: IPropsAny;
129
127
  GuidelineProps?: IPropsAny;
130
128
  WrapperProps?: IPropsAny;
131
- }
129
+ };
132
130
  declare const Chart: React.FC<IChart>;
133
131
  export default Chart;
@@ -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 interface ICheckbox extends IIconButton {
4
+ export declare type ICheckbox = IIconButton & {
5
5
  inputRef?: IRef;
6
6
  colorIndeterminate?: IColor;
7
7
  colorUnchecked?: IColor;
@@ -12,6 +12,6 @@ export interface ICheckbox extends IIconButton {
12
12
  onChange?: (value: boolean, event: React.ChangeEvent<any>) => any;
13
13
  indeterminate?: boolean;
14
14
  disabled?: boolean;
15
- }
15
+ };
16
16
  declare const Checkbox: React.FC<ICheckbox>;
17
17
  export default Checkbox;
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 interface IChip extends IButton {
3
+ export declare type IChip = IButton & {
4
4
  input?: boolean;
5
5
  filter?: boolean;
6
6
  noCheckIcon?: boolean;
@@ -8,6 +8,6 @@ export interface IChip extends IButton {
8
8
  onRemove?: (event: MouseEvent) => any;
9
9
  onSelected?: () => any;
10
10
  onUnselected?: () => any;
11
- }
11
+ };
12
12
  declare const Chip: React.FC<IChip>;
13
13
  export default Chip;
package/Chips/Chips.d.ts CHANGED
@@ -1,11 +1,13 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IElement, IPropsAny } from '../types';
4
- export interface IChips extends ILine {
4
+ export declare type IChips = ILine & {
5
5
  total?: number;
6
+ showAllDefault?: boolean;
6
7
  max?: number;
8
+ moreShowAll?: boolean;
7
9
  AdditionalChip?: IElement;
8
10
  AdditionalChipProps?: IPropsAny;
9
- }
11
+ };
10
12
  declare const Chips: React.FC<IChips>;
11
13
  export default Chips;
package/Chips/Chips.js CHANGED
@@ -64,7 +64,7 @@ const Chips = react_1.default.forwardRef((props_, ref) => {
64
64
  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.onesyChips) === null || _g === void 0 ? void 0 : _g.props) === null || _h === void 0 ? void 0 : _h.default), props_)); }, [props_]);
65
65
  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]);
66
66
  const Chip = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Chip) || Chip_1.default; }, [theme]);
67
- const { size = 'regular', gap = 1, align = 'flex-start', justify = 'flex-start', direction = 'row', wrap, total, max, showAllDefault, onMoreShowAll = true, AdditionalChip, AdditionalChipProps = {}, Component = 'div', className, style, children: children_ } = props, other = __rest(props, ["size", "gap", "align", "justify", "direction", "wrap", "total", "max", "showAllDefault", "onMoreShowAll", "AdditionalChip", "AdditionalChipProps", "Component", "className", "style", "children"]);
67
+ const { size = 'regular', gap = 1, align = 'flex-start', justify = 'flex-start', direction = 'row', wrap, total, max, showAllDefault, moreShowAll = true, AdditionalChip, AdditionalChipProps = {}, Component = 'div', className, style, children: children_ } = props, other = __rest(props, ["size", "gap", "align", "justify", "direction", "wrap", "total", "max", "showAllDefault", "moreShowAll", "AdditionalChip", "AdditionalChipProps", "Component", "className", "style", "children"]);
68
68
  const { classes } = useStyle();
69
69
  const [showAll, setShowAll] = react_1.default.useState(showAllDefault !== undefined ? showAllDefault : false);
70
70
  const onClickMore = react_1.default.useCallback(() => {
@@ -83,7 +83,7 @@ const Chips = react_1.default.forwardRef((props_, ref) => {
83
83
  AdditionalChipProps.TypeProps = {};
84
84
  AdditionalChipProps.TypeProps.size = '0.44em';
85
85
  children.push(AdditionalChip ||
86
- (0, jsx_runtime_1.jsx)(Chip, Object.assign({ color: 'default' }, other, AdditionalChipProps, { onClick: (onMoreShowAll ? onClickMore : undefined) }, { children: value })));
86
+ (0, jsx_runtime_1.jsx)(Chip, Object.assign({ color: 'default' }, other, AdditionalChipProps, { onClick: (moreShowAll ? onClickMore : undefined) }, { children: value })));
87
87
  }
88
88
  }
89
89
  return ((0, jsx_runtime_1.jsx)(Line, Object.assign({ ref: ref, gap: gap, justify: justify, align: align, direction: direction, wrap: wrap, Component: Component, className: (0, style_react_1.classNames)([
@@ -1,14 +1,14 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement, IHTMLElement } from '../types';
3
- export interface IClickListener extends IBaseElement {
3
+ export declare type IClickListener = IBaseElement & {
4
4
  mouseEvent?: 'onClick' | 'onMove' | 'onMouseDown' | 'onMouseUp' | 'onMouseEnter' | 'onMouseLeave';
5
5
  touchEvent?: 'onTouchStart' | 'onTouchEnd' | 'onTouchMove';
6
6
  include?: Array<IHTMLElement>;
7
7
  includeParentQueries?: Array<string>;
8
8
  includeQueries?: Array<string>;
9
- ignoreNonExistin?: boolean;
9
+ ignoreNonExisting?: boolean;
10
10
  onClickInside?: () => any;
11
11
  onClickOutside?: () => any;
12
- }
12
+ };
13
13
  declare const ClickListener: React.FC<IClickListener>;
14
14
  export default ClickListener;
package/Clock/Clock.d.ts CHANGED
@@ -1,21 +1,17 @@
1
1
  import React from 'react';
2
2
  import { OnesyDate } from '@onesy/date';
3
3
  import { IRoundMeter } from '../RoundMeter/RoundMeter';
4
- import { ITonal, IColor, ISize } from '../types';
5
4
  export declare type TClockValue = OnesyDate;
6
5
  export declare type TClockFormat = '12' | '24';
7
6
  export declare type TClockUnit = 'hour' | 'minute' | 'second';
8
7
  export declare type TClockDayTime = 'am' | 'pm';
9
- export interface IClock extends IRoundMeter {
10
- tonal?: ITonal;
11
- color?: IColor;
8
+ export declare type IClock = IRoundMeter & {
12
9
  value?: TClockValue;
13
10
  valueDefault?: TClockValue;
14
11
  onChange?: (value: TClockValue) => any;
15
12
  selecting?: TClockUnit;
16
13
  selectingDefault?: TClockUnit;
17
14
  onChangeSelecting?: (value: TClockUnit) => any;
18
- size?: ISize;
19
15
  format?: TClockFormat;
20
16
  dayTime?: TClockDayTime;
21
17
  hour?: boolean;
@@ -25,11 +21,9 @@ export interface IClock extends IRoundMeter {
25
21
  min?: OnesyDate;
26
22
  max?: OnesyDate;
27
23
  validate?: (value: OnesyDate) => boolean;
28
- readOnly?: boolean;
29
- disabled?: boolean;
30
24
  valid?: (value: OnesyDate, selecting: TClockUnit) => any;
31
25
  renderValue?: (value: TClockValue, version: TClockUnit, x: number, y: number, valueNumber: number, otherProps: any) => React.ReactNode;
32
26
  onDoneSelecting?: (value: TClockValue, selecting: TClockUnit) => any;
33
- }
27
+ };
34
28
  declare const Clock: React.FC<IClock>;
35
29
  export default Clock;
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  import { ITextField } from '../TextField/TextField';
3
- export interface IColorTextField extends ITextField {
3
+ export declare type IColorTextField = ITextField & {
4
4
  name?: any;
5
5
  valueColor?: string;
6
6
  valueOpacity?: string | number;
7
7
  onChangeColor?: (valueNew: string) => any;
8
8
  onChangeOpacity?: (valueNew: string | number) => any;
9
9
  opacity?: boolean;
10
- }
10
+ };
11
11
  declare const ColorTextField: React.FC<IColorTextField>;
12
12
  export default ColorTextField;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IChart } from '../Chart/Chart';
3
- export interface IColumnChart extends IChart {
4
- }
3
+ export declare type IColumnChart = IChart & {};
5
4
  declare const ColumnChart: React.FC<IColumnChart>;
6
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 interface IColumnChartItem extends IChart {
4
+ export declare type IColumnChartItem = IChart & {
5
5
  name?: string;
6
6
  refs?: {
7
7
  wrapper?: HTMLElement;
@@ -15,6 +15,8 @@ export interface IColumnChartItem extends IChart {
15
15
  width?: number;
16
16
  updateDefs?: TMethod;
17
17
  updateLegend?: TMethod;
18
- }
18
+ BackgroundProps?: any;
19
+ BorderProps?: any;
20
+ };
19
21
  declare const ColumnChartItem: React.FC<IColumnChartItem>;
20
22
  export default ColumnChartItem;
@@ -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 interface IConfirmOpen {
4
+ export declare type IConfirmOpen = {
5
5
  modal?: (promise: IConfirmPromiseArgument) => React.ReactElement;
6
6
  name?: string | boolean | React.ReactElement;
7
7
  description?: string | React.ReactElement;
@@ -17,19 +17,19 @@ export interface IConfirmOpen {
17
17
  ButtonNegativeProps?: any;
18
18
  ButtonPositiveProps?: any;
19
19
  [p: string]: any;
20
- }
21
- export interface IConfirmPromiseArgument {
20
+ };
21
+ export declare type IConfirmPromiseArgument = {
22
22
  resolve: TMethod;
23
23
  reject: TMethod;
24
- }
25
- export interface IConfirmValue {
24
+ };
25
+ export declare type IConfirmValue = {
26
26
  open: (value?: IConfirmOpen) => Promise<any>;
27
27
  close: (confirmed?: boolean) => void;
28
- }
29
- export interface IConfirm extends IBaseElement {
28
+ };
29
+ export declare type IConfirm = IBaseElement & {
30
30
  throwError?: boolean;
31
31
  onOpen?: () => any;
32
32
  onClose?: () => any;
33
- }
33
+ };
34
34
  declare const Confirm: React.FC<IConfirm>;
35
35
  export default Confirm;
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
3
  import { IValueBreakpoints } from '../types';
4
- export interface IContainer extends ILine {
4
+ export declare type IContainer = ILine & {
5
5
  alignment?: 'start' | 'center' | 'end' | Partial<Record<IValueBreakpoints, 'start' | 'center' | 'end'>>;
6
6
  paddingVertical?: 'both' | 'start' | 'end' | 'none' | Partial<Record<IValueBreakpoints, 'both' | 'start' | 'end' | 'none'>>;
7
7
  paddingHorizontal?: 'both' | 'start' | 'end' | 'none' | Partial<Record<IValueBreakpoints, 'both' | 'start' | 'end' | 'none'>>;
8
8
  fullWidth?: boolean | Partial<Record<IValueBreakpoints, boolean>>;
9
9
  maxWidth?: 'xxs' | 'xs' | 'sm' | 'rg' | 'lg' | 'xl' | 'unset' | Partial<Record<IValueBreakpoints, 'xxs' | 'xs' | 'sm' | 'rg' | 'lg' | 'xl' | 'unset'>>;
10
- }
10
+ };
11
11
  declare const Container: React.FC<IContainer>;
12
12
  export default Container;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IPropsAny } from '../types';
3
3
  import { ISurface } from '../Surface/Surface';
4
- export interface ICookieBanner extends ISurface {
4
+ export declare type ICookieBanner = ISurface & {
5
5
  name?: any;
6
6
  description?: any;
7
7
  startActions?: any;
@@ -18,6 +18,6 @@ export interface ICookieBanner extends ISurface {
18
18
  RejectButtonProps?: IPropsAny;
19
19
  AllowButtonProps?: IPropsAny;
20
20
  TransitionProps?: IPropsAny;
21
- }
21
+ };
22
22
  declare const CookieBanner: React.FC<ICookieBanner>;
23
23
  export default CookieBanner;
@@ -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 interface ICountdown extends Omit<ISurface, 'version'> {
4
+ export declare type ICountdown = Omit<ISurface, 'version'> & {
5
5
  version?: 'linear' | 'round';
6
6
  renderValue?: (value: string) => IElement;
7
7
  icon?: boolean;
@@ -20,6 +20,6 @@ export interface ICountdown extends Omit<ISurface, 'version'> {
20
20
  IconButtonProps?: IPropsAny;
21
21
  LinearProgressProps?: IPropsAny;
22
22
  IconProps?: IPropsAny;
23
- }
23
+ };
24
24
  declare const Countdown: React.FC<ICountdown>;
25
25
  export default Countdown;
@@ -3,14 +3,11 @@ import { OnesyDate } from '@onesy/date';
3
3
  import { ILine } from '../Line/Line';
4
4
  import { TCalendarUnit } from '../Calendar/Calendar';
5
5
  import { TCalendarMonthCalendar, TCalendarMonthValue } from '../CalendarMonth/CalendarMonth';
6
- import { ITonal, IColor, ISize, IValueBreakpoints, IElement, IElementReference, IPropsAny } from '../types';
6
+ import { IValueBreakpoints, IElement, IElementReference, IPropsAny } from '../types';
7
7
  export declare const SEPARATOR_SYMBOL = "\u2013";
8
8
  export declare const SEPARATOR: string;
9
- export interface IDatePicker extends ILine {
10
- tonal?: ITonal;
11
- color?: IColor;
9
+ export declare type IDatePicker = ILine & {
12
10
  version?: 'auto' | 'mobile' | 'desktop';
13
- size?: ISize;
14
11
  value?: TCalendarMonthValue;
15
12
  valueDefault?: TCalendarMonthValue;
16
13
  onChange?: (value: TCalendarMonthValue) => any;
@@ -27,6 +24,7 @@ export interface IDatePicker extends ILine {
27
24
  calendars?: number;
28
25
  placeholder?: string;
29
26
  openMobile?: 'input' | 'select';
27
+ weekStartDay?: string;
30
28
  modeModalSubHeadingText?: string;
31
29
  modeModalSubHeadingTextRange?: string;
32
30
  selectModeHeadingText?: string;
@@ -45,8 +43,6 @@ export interface IDatePicker extends ILine {
45
43
  heading?: boolean;
46
44
  actions?: boolean;
47
45
  fullWidth?: boolean;
48
- readOnly?: boolean;
49
- disabled?: boolean;
50
46
  onClick?: (event: React.MouseEvent<any>) => any;
51
47
  onClose?: (event: React.MouseEvent<any>) => any;
52
48
  onCancel?: (event: React.MouseEvent<any>) => any;
@@ -68,6 +64,6 @@ export interface IDatePicker extends ILine {
68
64
  ModalProps?: IPropsAny;
69
65
  IconProps?: IPropsAny;
70
66
  MobileSurfaceProps?: IPropsAny;
71
- }
67
+ };
72
68
  declare const DatePicker: React.FC<IDatePicker>;
73
69
  export default DatePicker;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IDatePicker } from '../DatePicker/DatePicker';
3
- export interface IDateRangePicker extends IDatePicker {
4
- }
3
+ export declare type IDateRangePicker = IDatePicker & {};
5
4
  declare const DateRangePicker: React.FC<IDateRangePicker>;
6
5
  export default DateRangePicker;
@@ -4,11 +4,9 @@ import { IAdvancedTextField } from '../AdvancedTextField/AdvancedTextField';
4
4
  import { TCalendarMonthValue } from '../CalendarMonth/CalendarMonth';
5
5
  import { TCalendarUnit } from '../Calendar/Calendar';
6
6
  import { TClockUnit } from '../Clock/Clock';
7
- import { ITonal, IColor, IValueBreakpoints, IElementReference, IPropsAny } from '../types';
7
+ import { IValueBreakpoints, IElementReference, IPropsAny } from '../types';
8
8
  export declare type TDateTimePicker = OnesyDate;
9
- export interface IDateTimePicker extends Omit<IAdvancedTextField, 'version'> {
10
- tonal?: ITonal;
11
- color?: IColor;
9
+ export declare type IDateTimePicker = Omit<IAdvancedTextField, 'version'> & {
12
10
  version?: 'auto' | 'mobile' | 'desktop';
13
11
  value?: TCalendarMonthValue;
14
12
  valueDefault?: TCalendarMonthValue;
@@ -34,8 +32,6 @@ export interface IDateTimePicker extends Omit<IAdvancedTextField, 'version'> {
34
32
  clear?: boolean;
35
33
  placeholder?: string;
36
34
  fullWidth?: boolean;
37
- readOnly?: boolean;
38
- disabled?: boolean;
39
35
  onClose?: (event: React.MouseEvent<any>) => any;
40
36
  onCancel?: (event: React.MouseEvent<any>) => any;
41
37
  onToday?: (event: React.MouseEvent<any>) => any;
@@ -56,6 +52,8 @@ export interface IDateTimePicker extends Omit<IAdvancedTextField, 'version'> {
56
52
  MiddleProps?: IPropsAny;
57
53
  MainProps?: IPropsAny;
58
54
  IconProps?: IPropsAny;
59
- }
55
+ ModeDesktopProps?: IPropsAny;
56
+ ModeMobileProps?: IPropsAny;
57
+ };
60
58
  declare const DateTimePicker: React.FC<IDateTimePicker>;
61
59
  export default DateTimePicker;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IDateTimePicker } from '../DateTimePicker/DateTimePicker';
3
- export interface IDateTimeRangePicker extends IDateTimePicker {
4
- }
3
+ export declare type IDateTimeRangePicker = IDateTimePicker & {};
5
4
  declare const DateTimeRangePicker: React.FC<IDateTimeRangePicker>;
6
5
  export default DateTimeRangePicker;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ISurface } from '../Surface/Surface';
3
- export interface IDivider extends ISurface {
3
+ export declare type IDivider = ISurface & {
4
4
  inset?: boolean;
5
5
  middle?: boolean;
6
6
  padding?: number;
@@ -8,6 +8,6 @@ export interface IDivider extends ISurface {
8
8
  alignment?: 'start' | 'center' | 'end';
9
9
  orientation?: 'vertical' | 'horizontal';
10
10
  flex?: boolean;
11
- }
11
+ };
12
12
  declare const Divider: React.FC<IDivider>;
13
13
  export default Divider;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IPieChart } from '../PieChart/PieChart';
3
- export interface IDonutChart extends IPieChart {
4
- }
3
+ export declare type IDonutChart = IPieChart & {};
5
4
  declare const DonutChart: React.FC<IDonutChart>;
6
5
  export default DonutChart;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IBaseElement } from '../types';
3
- export interface IDragAndDropList extends IBaseElement {
3
+ export declare type IDragAndDropList = IBaseElement & {
4
4
  onChange?: (indexPrevious: number, indexNew: number) => any;
5
5
  items?: any[];
6
6
  image?: boolean;
@@ -11,6 +11,6 @@ export interface IDragAndDropList extends IBaseElement {
11
11
  getDraggingElement?: (event: DragEvent) => HTMLElement;
12
12
  onDraggedElement?: (value: any) => any;
13
13
  onDragStart?: (item: any, event: DragEvent) => any;
14
- }
14
+ };
15
15
  declare const DragAndDropList: React.FC<IDragAndDropList>;
16
16
  export default DragAndDropList;
@@ -6,7 +6,7 @@ export declare type TDrawingValue = Array<{
6
6
  stroke?: string;
7
7
  strokeWidth?: number;
8
8
  }>;
9
- export interface IDrawing extends ISurface {
9
+ export declare type IDrawing = ISurface & {
10
10
  render?: (element: string, props: IPropsAny, value: TDrawingValue) => IElement;
11
11
  svgRef?: IRef;
12
12
  updates?: boolean;
@@ -43,6 +43,6 @@ export interface IDrawing extends ISurface {
43
43
  PaletteProps?: IPropsAny;
44
44
  IconButtonProps?: IPropsAny;
45
45
  ColorTextFieldProps?: IPropsAny;
46
- }
46
+ };
47
47
  declare const Drawing: React.FC<IDrawing>;
48
48
  export default Drawing;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IFileChoose } from '../FileChoose/FileChoose';
3
3
  import { IElement, IVersion } from '../types';
4
- export interface IDropZone extends IFileChoose {
4
+ export declare type IDropZone = IFileChoose & {
5
5
  version?: IVersion;
6
6
  start?: IElement;
7
7
  onFocus?: (event: React.FocusEvent<any>) => any;
@@ -10,6 +10,6 @@ export interface IDropZone extends IFileChoose {
10
10
  onDragOver?: (event: React.DragEvent<any>) => any;
11
11
  onDragEnter?: (event: React.DragEvent<any>) => any;
12
12
  onDragLeave?: (event: React.DragEvent<any>) => any;
13
- }
13
+ };
14
14
  declare const DropZone: React.FC<IDropZone>;
15
15
  export default DropZone;
@@ -61,7 +61,8 @@ const DropZone = react_1.default.forwardRef((props_, ref) => {
61
61
  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]);
62
62
  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]);
63
63
  const Interaction = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Interaction) || Interaction_1.default; }, [theme]);
64
- const { tonal = true, color = 'default', version, start, files, multiple, max, allowedTypes, valueDefault, value: value_, onChange: onChange_, IconStart = IconMaterialCloudUploadW100_1.default, onFocus: onFocus_, onBlur: onBlur_, onDrop: onDrop_, onDragOver: onDragOver_, onDragEnter: onDragEnter_, onDragLeave: onDragLeave_, disabled, children, className } = props, other = __rest(props, ["tonal", "color", "version", "start", "files", "multiple", "max", "allowedTypes", "valueDefault", "value", "onChange", "IconStart", "onFocus", "onBlur", "onDrop", "onDragOver", "onDragEnter", "onDragLeave", "disabled", "children", "className"]);
64
+ const { tonal = true, color = 'default', version, start, files, multiple, max, allowedTypes, valueDefault, value: value_, onChange: onChange_, IconStart = IconMaterialCloudUploadW100_1.default, onFocus: onFocus_, onBlur: onBlur_, onDrop: onDrop_, onDragOver: onDragOver_, onDragEnter: onDragEnter_, onDragLeave: onDragLeave_, disabled, children, className } = props, otherProps = __rest(props, ["tonal", "color", "version", "start", "files", "multiple", "max", "allowedTypes", "valueDefault", "value", "onChange", "IconStart", "onFocus", "onBlur", "onDrop", "onDragOver", "onDragEnter", "onDragLeave", "disabled", "children", "className"]);
65
+ const other = otherProps;
65
66
  const { classes } = useStyle();
66
67
  const [init, setInit] = react_1.default.useState(false);
67
68
  const [focus, setFocus] = react_1.default.useState(false);
@@ -1,22 +1,22 @@
1
1
  import React from 'react';
2
2
  import { IMenu } from '../Menu/Menu';
3
- export interface IEmojiCategory {
3
+ export declare type IEmojiCategory = {
4
4
  name: string;
5
5
  groups: string[];
6
6
  icon: any;
7
- }
8
- export interface IEmoji {
7
+ };
8
+ export declare type IEmoji = {
9
9
  alias: string | string[];
10
10
  unicode: string;
11
11
  category: string;
12
- }
13
- export interface IEmojis extends IMenu {
12
+ };
13
+ export declare type IEmojis = IMenu & {
14
14
  emojis?: IEmoji[];
15
15
  categories?: IEmojiCategory[];
16
16
  selected?: string[];
17
17
  onSelect?: (value: IEmoji) => any;
18
18
  search?: boolean;
19
19
  tabs?: boolean;
20
- }
20
+ };
21
21
  declare const Emojis: React.FC<IEmojis>;
22
22
  export default Emojis;