@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.
- package/Accordion/Accordion.d.ts +2 -2
- package/AdvancedTextField/AdvancedTextField.d.ts +1 -1
- package/Append/Append.d.ts +3 -3
- package/AreaChart/AreaChart.d.ts +1 -1
- package/AreaChartItem/AreaChartItem.d.ts +1 -1
- package/AudioPlayer/AudioPlayer.d.ts +1 -1
- package/AudioRecorder/AudioRecorder.d.ts +1 -1
- package/AutoComplete/AutoComplete.d.ts +3 -3
- package/AutoComplete/AutoComplete.js +2 -2
- package/AutoCompleteCountry/AutoCompleteCountry.d.ts +1 -1
- package/AutoCompleteCurrency/AutoCompleteCurrency.d.ts +1 -1
- package/Avatar/Avatar.d.ts +1 -1
- package/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/Backdrop/Backdrop.d.ts +1 -1
- package/Badge/Badge.d.ts +1 -1
- package/Banner/Banner.d.ts +1 -1
- package/BottomAppBar/BottomAppBar.d.ts +1 -1
- package/BottomSheet/BottomSheet.d.ts +1 -1
- package/Box/Box.d.ts +1 -1
- package/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/BubbleChart/BubbleChart.d.ts +1 -1
- package/BubbleChartItem/BubbleChartItem.d.ts +1 -1
- package/Button/Button.d.ts +1 -1
- package/Buttons/Buttons.d.ts +1 -1
- package/Buttons/Buttons.js +8 -53
- package/Calendar/Calendar.d.ts +3 -3
- package/Calendar/Calendar.js +6 -6
- package/CalendarAvailability/CalendarAvailability.d.ts +2 -2
- package/CalendarAvailability/CalendarAvailability.js +8 -8
- package/CalendarMenu/CalendarMenu.d.ts +1 -1
- package/CalendarMenu/CalendarMenu.js +5 -5
- package/CalendarMonth/CalendarMonth.d.ts +5 -5
- package/CalendarViews/CalendarViews.d.ts +2 -2
- package/CalendarWeek/CalendarWeek.d.ts +1 -1
- package/Card/Card.d.ts +1 -1
- package/CardButton/CardButton.d.ts +1 -1
- package/CardFooter/CardFooter.d.ts +1 -1
- package/CardHeader/CardHeader.d.ts +1 -1
- package/CardImage/CardImage.d.ts +1 -1
- package/CardMain/CardMain.d.ts +1 -1
- package/Carousel/Carousel.d.ts +4 -4
- package/Carousel/Carousel.js +8 -8
- package/Chart/Chart.d.ts +4 -4
- package/Checkbox/Checkbox.d.ts +1 -1
- package/Chip/Chip.d.ts +1 -1
- package/Chips/Chips.d.ts +1 -1
- package/ClickListener/ClickListener.d.ts +1 -1
- package/Clock/Clock.d.ts +5 -5
- package/ColorTextField/ColorTextField.d.ts +1 -1
- package/ColumnChart/ColumnChart.d.ts +1 -1
- package/ColumnChartItem/ColumnChartItem.d.ts +1 -1
- package/Confirm/Confirm.d.ts +4 -4
- package/Container/Container.d.ts +1 -1
- package/CookieBanner/CookieBanner.d.ts +1 -1
- package/Countdown/Countdown.d.ts +1 -1
- package/DatePicker/DatePicker.d.ts +1 -1
- package/DatePicker/DatePicker.js +6 -6
- package/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/DateTimePicker/DateTimePicker.d.ts +2 -2
- package/DateTimePicker/DateTimePicker.js +6 -6
- package/DateTimeRangePicker/DateTimeRangePicker.d.ts +1 -1
- package/Divider/Divider.d.ts +1 -1
- package/DonutChart/DonutChart.d.ts +1 -1
- package/DragAndDropList/DragAndDropList.d.ts +1 -1
- package/Drawing/Drawing.d.ts +2 -2
- package/Drawing/Drawing.js +12 -12
- package/DropZone/DropZone.d.ts +1 -1
- package/Emojis/Emojis.d.ts +3 -3
- package/Emojis/Emojis.js +2 -2
- package/Expand/Expand.d.ts +1 -1
- package/Fab/Fab.d.ts +1 -1
- package/Fade/Fade.d.ts +1 -1
- package/FileChoose/FileChoose.d.ts +2 -2
- package/Focus/Focus.d.ts +1 -1
- package/Form/Form.d.ts +1 -1
- package/FormRow/FormRow.d.ts +1 -1
- package/Forms/Forms.d.ts +1 -1
- package/Frame/Frame.d.ts +1 -1
- package/Grid/Grid.d.ts +2 -2
- package/Grow/Grow.d.ts +1 -1
- package/HTMLCanvas/HTMLCanvas.d.ts +2 -2
- package/HTMLCanvas/index.js +1 -2
- package/IFrame/IFrame.d.ts +1 -1
- package/Icon/Icon.d.ts +1 -1
- package/Icon/index.js +1 -2
- package/IconButton/IconButton.d.ts +1 -1
- package/Image/Image.d.ts +1 -1
- package/ImageCrop/ImageCrop.d.ts +2 -2
- package/ImageCrop/ImageCrop.js +17 -17
- package/ImageEdit/ImageEdit.d.ts +2 -2
- package/ImageEdit/ImageEdit.js +4 -4
- package/ImageGallery/ImageGallery.d.ts +1 -1
- package/ImageList/ImageList.d.ts +1 -1
- package/ImageListItem/ImageListItem.d.ts +1 -1
- package/ImageListItemBox/ImageListItemBox.d.ts +1 -1
- package/Info/Info.d.ts +1 -1
- package/Interaction/Interaction.d.ts +2 -2
- package/Keyframes/Keyframes.d.ts +3 -3
- package/Keyframes/index.js +1 -2
- package/Label/Label.d.ts +1 -1
- package/Labels/Labels.d.ts +1 -1
- package/Line/Line.d.ts +6 -6
- package/LineChart/LineChart.d.ts +1 -1
- package/LineChartItem/LineChartItem.d.ts +1 -1
- package/LinearMeter/LinearMeter.d.ts +1 -1
- package/LinearProgress/LinearProgress.d.ts +1 -1
- package/Link/Link.d.ts +1 -1
- package/Links/Links.d.ts +2 -2
- package/List/List.d.ts +1 -1
- package/ListItem/ListItem.d.ts +1 -1
- package/ListItem/ListItem.js +3 -3
- package/ListSubheader/ListSubheader.d.ts +1 -1
- package/MainProgress/MainProgress.d.ts +3 -3
- package/Markdown/Markdown.d.ts +1 -1
- package/Masonry/Masonry.d.ts +1 -1
- package/Medias/Medias.d.ts +3 -3
- package/Menu/Menu.d.ts +1 -1
- package/Menu/Menu.js +13 -13
- package/MenuDesktop/MenuDesktop.d.ts +3 -3
- package/MenuItem/MenuItem.d.ts +1 -1
- package/Meta/Meta.d.ts +1 -1
- package/Modal/Modal.d.ts +1 -1
- package/ModalFooter/ModalFooter.d.ts +1 -1
- package/ModalHeader/ModalHeader.d.ts +1 -1
- package/ModalIcon/ModalIcon.d.ts +1 -1
- package/ModalMain/ModalMain.d.ts +1 -1
- package/ModalText/ModalText.d.ts +1 -1
- package/ModalTitle/ModalTitle.d.ts +1 -1
- package/MoreOptions/MoreOptions.d.ts +1 -1
- package/Move/Move.d.ts +1 -1
- package/NavigationBar/NavigationBar.d.ts +2 -2
- package/NavigationDrawer/NavigationDrawer.d.ts +1 -1
- package/NavigationItem/NavigationItem.d.ts +2 -2
- package/NavigationRail/NavigationRail.d.ts +1 -1
- package/NotFound/NotFound.d.ts +1 -1
- package/NumericTextField/NumericTextField.d.ts +1 -1
- package/Page/Page.d.ts +2 -2
- package/PageTransition/PageTransition.d.ts +1 -1
- package/Pagination/Pagination.d.ts +1 -1
- package/PaginationItem/PaginationItem.d.ts +1 -1
- package/Parallax/Parallax.d.ts +2 -2
- package/Path/Path.d.ts +1 -1
- package/PieChart/PieChart.d.ts +1 -1
- package/Placeholder/Placeholder.d.ts +1 -1
- package/Portal/Portal.d.ts +1 -1
- package/Properties/Properties.d.ts +2 -2
- package/Property/Property.d.ts +1 -1
- package/Radio/Radio.d.ts +1 -1
- package/Radios/Radios.d.ts +1 -1
- package/Rating/Rating.d.ts +1 -1
- package/Reset/Reset.d.ts +1 -1
- package/Reveal/Reveal.d.ts +1 -1
- package/RichTextEditor/RichTextEditor.d.ts +1 -1
- package/RichTextEditor/RichTextEditor.js +20 -20
- package/RoundMeter/RoundMeter.d.ts +1 -1
- package/RoundProgress/RoundProgress.d.ts +1 -1
- package/ScatterChart/ScatterChart.d.ts +1 -1
- package/ScatterChartItem/ScatterChartItem.d.ts +1 -1
- package/ScreenCapture/ScreenCapture.d.ts +2 -2
- package/Section/Section.d.ts +2 -2
- package/SectionAction/SectionAction.d.ts +1 -1
- package/SectionBoxes/SectionBoxes.d.ts +2 -2
- package/SectionCards/SectionCards.d.ts +2 -2
- package/SectionCarousel/SectionCarousel.d.ts +2 -2
- package/SectionContact/SectionContact.d.ts +1 -1
- package/SectionImageGallery/SectionImageGallery.d.ts +1 -1
- package/SectionLogos/SectionLogos.d.ts +1 -1
- package/SectionMedia/SectionMedia.d.ts +1 -1
- package/SectionReviews/SectionReviews.d.ts +2 -2
- package/SectionTextMedia/SectionTextMedia.d.ts +1 -1
- package/SectionTimeline/SectionTimeline.d.ts +2 -2
- package/SectionWatch/SectionWatch.d.ts +1 -1
- package/Select/Select.d.ts +1 -1
- package/Select/Select.js +2 -2
- package/Share/Share.d.ts +1 -1
- package/Slide/Slide.d.ts +1 -1
- package/Slider/Slider.d.ts +2 -2
- package/SmartTextField/SmartTextField.d.ts +1 -1
- package/SmartTextField/SmartTextField.js +16 -16
- package/Snackbar/Snackbar.d.ts +1 -1
- package/Snackbars/Context.d.ts +1 -1
- package/Snackbars/Snackbars.d.ts +2 -2
- package/Space/Space.d.ts +1 -1
- package/Space/Space.js +26 -26
- package/Space/index.js +1 -2
- package/SpeechToText/SpeechToText.d.ts +1 -1
- package/SpeedDial/SpeedDial.d.ts +1 -1
- package/SpeedDialItem/SpeedDialItem.d.ts +1 -1
- package/SpyScroll/SpyScroll.d.ts +1 -1
- package/Step/Step.d.ts +1 -1
- package/Stepper/Stepper.d.ts +1 -1
- package/Surface/Surface.d.ts +1 -1
- package/Switch/Switch.d.ts +1 -1
- package/Tab/Tab.d.ts +1 -1
- package/Table/Table.d.ts +1 -1
- package/TableBody/TableBody.d.ts +1 -1
- package/TableCell/TableCell.d.ts +2 -2
- package/TableCell/TableCell.js +23 -4
- package/TableFooter/TableFooter.d.ts +1 -1
- package/TableHead/TableHead.d.ts +1 -1
- package/TableHeader/TableHeader.d.ts +1 -1
- package/TablePagination/TablePagination.d.ts +1 -1
- package/TableRow/TableRow.d.ts +1 -1
- package/Tabs/Tabs.d.ts +1 -1
- package/Text/Text.d.ts +1 -1
- package/TextField/TextField.d.ts +1 -1
- package/TextToSpeech/TextToSpeech.d.ts +1 -1
- package/TimePicker/TimePicker.d.ts +3 -3
- package/TimePicker/TimePicker.js +12 -12
- package/TimeRangePicker/TimeRangePicker.d.ts +1 -1
- package/Timeline/Timeline.d.ts +1 -1
- package/TimelineItem/TimelineItem.d.ts +1 -1
- package/Timer/Timer.d.ts +1 -1
- package/ToggleButton/ToggleButton.d.ts +1 -1
- package/ToggleButtons/ToggleButtons.d.ts +1 -1
- package/Tooltip/Tooltip.d.ts +1 -1
- package/TopAppBar/TopAppBar.d.ts +1 -1
- package/Transition/Transition.d.ts +3 -3
- package/Transition/index.js +1 -2
- package/Transitions/Transitions.d.ts +2 -2
- package/Transitions/Transitions.js +2 -2
- package/Tree/Tree.d.ts +1 -1
- package/Type/Type.d.ts +1 -1
- package/VideoPlayer/VideoPlayer.d.ts +1 -1
- package/VideoPlayer/VideoPlayer.js +4 -4
- package/ViewSplit/ViewSplit.d.ts +1 -1
- package/Watch/Watch.d.ts +1 -1
- package/Weather/Weather.d.ts +4 -4
- package/Whiteboard/Whiteboard.d.ts +5 -5
- package/Widgets/Widgets.d.ts +2 -2
- package/WindowSplit/WindowSplit.d.ts +1 -1
- package/Zoom/Zoom.d.ts +1 -1
- package/esm/Append/Append.js +6 -8
- package/esm/AutoComplete/AutoComplete.js +8 -20
- package/esm/Breadcrumbs/Breadcrumbs.js +1 -3
- package/esm/Buttons/Buttons.js +9 -55
- package/esm/Calendar/Calendar.js +74 -80
- package/esm/CalendarAvailability/CalendarAvailability.js +1 -2
- package/esm/CalendarMenu/CalendarMenu.js +2 -2
- package/esm/CalendarMonth/CalendarMonth.js +65 -68
- package/esm/CalendarWeek/CalendarWeek.js +3 -7
- package/esm/Carousel/Carousel.js +4 -12
- package/esm/Chart/Chart.js +19 -25
- package/esm/Clock/Clock.js +5 -8
- package/esm/Confirm/Confirm.js +1 -2
- package/esm/DatePicker/DatePicker.js +8 -13
- package/esm/DateTimePicker/DateTimePicker.js +6 -9
- package/esm/Drawing/Drawing.js +1 -6
- package/esm/Expand/Expand.js +1 -2
- package/esm/Fade/Fade.js +1 -2
- package/esm/Focus/Focus.js +1 -2
- package/esm/Grow/Grow.js +1 -2
- package/esm/HTMLCanvas/HTMLCanvas.js +2 -5
- package/esm/ImageCrop/ImageCrop.js +2 -5
- package/esm/ImageEdit/ImageEdit.js +5 -12
- package/esm/ImageGallery/ImageGallery.js +1 -2
- package/esm/Interaction/Interaction.js +1 -2
- package/esm/Keyframes/Keyframes.js +1 -2
- package/esm/LinearMeter/LinearMeter.js +77 -80
- package/esm/Markdown/Markdown.js +41 -144
- package/esm/MenuDesktop/MenuDesktop.js +5 -6
- package/esm/Rating/Rating.js +2 -4
- package/esm/RichTextEditor/RichTextEditor.js +36 -50
- package/esm/RoundMeter/RoundMeter.js +70 -73
- package/esm/ScreenCapture/ScreenCapture.js +2 -5
- package/esm/Select/Select.js +5 -9
- package/esm/Share/Share.js +4 -5
- package/esm/Slide/Slide.js +2 -4
- package/esm/Slider/Slider.js +3 -6
- package/esm/SmartTextField/SmartTextField.js +2 -4
- package/esm/Snackbar/Snackbar.js +1 -2
- package/esm/Snackbars/Snackbars.js +3 -3
- package/esm/Space/Space.js +3 -6
- package/esm/Switch/Switch.js +1 -2
- package/esm/TableCell/TableCell.js +23 -4
- package/esm/Tabs/Tabs.js +1 -2
- package/esm/TimePicker/TimePicker.js +27 -38
- package/esm/Timer/Timer.js +3 -4
- package/esm/Tooltip/Tooltip.js +1 -2
- package/esm/ViewSplit/ViewSplit.js +1 -2
- package/esm/Watch/Watch.js +4 -5
- package/esm/Weather/Weather.js +14 -17
- package/esm/Whiteboard/Whiteboard.js +1 -4
- package/esm/WindowSplit/WindowSplit.js +1 -2
- package/esm/Zoom/Zoom.js +1 -2
- package/esm/index.js +1 -1
- package/esm/useForm/useForm.js +1 -4
- package/esm/useLocation/useLocation.js +1 -2
- package/esm/useSwipe/useSwipe.js +1 -2
- package/esm/utils.js +10 -13
- package/index.js +2 -3
- package/package.json +3 -3
- package/types.d.ts +27 -27
- package/useForm/useForm.d.ts +2 -2
- package/useForm/validate.d.ts +12 -12
- package/useForm/validate.js +20 -20
- package/useLocation/useLocation.d.ts +1 -1
- package/useMediaQuery/useMediaQuery.d.ts +1 -1
- package/useScroll/useScroll.d.ts +2 -2
- package/useSwipe/useSwipe.d.ts +2 -2
- package/useVisible/useVisible.d.ts +2 -2
- package/utils.d.ts +1 -1
- package/utils.js +7 -2
package/Select/Select.js
CHANGED
|
@@ -499,9 +499,9 @@ const Select = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
499
499
|
onMouseUp,
|
|
500
500
|
onMouseDown,
|
|
501
501
|
onClick: event => {
|
|
502
|
-
var _item$props7, _item$props8, _item$props9, _item$
|
|
502
|
+
var _item$props7, _item$props8, _item$props9, _item$props0, _item$props1;
|
|
503
503
|
if (multiple && value.includes((_item$props7 = item.props) === null || _item$props7 === void 0 ? void 0 : _item$props7.value)) onUnselect((_item$props8 = item.props) === null || _item$props8 === void 0 ? void 0 : _item$props8.value);else onSelect((_item$props9 = item.props) === null || _item$props9 === void 0 ? void 0 : _item$props9.value);
|
|
504
|
-
if ((0, _utils.is)('function', (_item$
|
|
504
|
+
if ((0, _utils.is)('function', (_item$props0 = item.props) === null || _item$props0 === void 0 ? void 0 : _item$props0.onClick)) (_item$props1 = item.props) === null || _item$props1 === void 0 || _item$props1.onClick(event);
|
|
505
505
|
if (!multiple) setOpen(false);
|
|
506
506
|
}
|
|
507
507
|
});
|
package/Share/Share.d.ts
CHANGED
package/Slide/Slide.d.ts
CHANGED
package/Slider/Slider.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IBaseElement, IElement, IPropsAny, ISizeAny } from '../types';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type TSliderValue = number | Array<number>;
|
|
4
|
+
export type ISlider = Omit<IBaseElement, 'onChange'> & {
|
|
5
5
|
value?: TSliderValue;
|
|
6
6
|
valueDefault?: TSliderValue;
|
|
7
7
|
onChange?: (value: TSliderValue) => any;
|
|
@@ -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
|
|
4
|
+
export type ISmartTextField = ITextField & {
|
|
5
5
|
placeholder?: any;
|
|
6
6
|
edit?: boolean;
|
|
7
7
|
mention?: boolean;
|
|
@@ -199,36 +199,36 @@ const SmartTextField = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
199
199
|
return (theme === null || theme === void 0 || (_theme$elements9 = theme.elements) === null || _theme$elements9 === void 0 ? void 0 : _theme$elements9.Append) || _Append.default;
|
|
200
200
|
}, [theme]);
|
|
201
201
|
const Fade = _react.default.useMemo(() => {
|
|
202
|
-
var _theme$
|
|
203
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
202
|
+
var _theme$elements0;
|
|
203
|
+
return (theme === null || theme === void 0 || (_theme$elements0 = theme.elements) === null || _theme$elements0 === void 0 ? void 0 : _theme$elements0.Fade) || _Fade.default;
|
|
204
204
|
}, [theme]);
|
|
205
205
|
const Tooltip = _react.default.useMemo(() => {
|
|
206
|
-
var _theme$
|
|
207
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
206
|
+
var _theme$elements1;
|
|
207
|
+
return (theme === null || theme === void 0 || (_theme$elements1 = theme.elements) === null || _theme$elements1 === void 0 ? void 0 : _theme$elements1.Tooltip) || _Tooltip.default;
|
|
208
208
|
}, [theme]);
|
|
209
209
|
const ToggleButton = _react.default.useMemo(() => {
|
|
210
|
-
var _theme$
|
|
211
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
210
|
+
var _theme$elements10;
|
|
211
|
+
return (theme === null || theme === void 0 || (_theme$elements10 = theme.elements) === null || _theme$elements10 === void 0 ? void 0 : _theme$elements10.ToggleButton) || _ToggleButton.default;
|
|
212
212
|
}, [theme]);
|
|
213
213
|
const ClickListener = _react.default.useMemo(() => {
|
|
214
|
-
var _theme$
|
|
215
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
214
|
+
var _theme$elements11;
|
|
215
|
+
return (theme === null || theme === void 0 || (_theme$elements11 = theme.elements) === null || _theme$elements11 === void 0 ? void 0 : _theme$elements11.ClickListener) || _ClickListener.default;
|
|
216
216
|
}, [theme]);
|
|
217
217
|
const ToggleButtons = _react.default.useMemo(() => {
|
|
218
|
-
var _theme$
|
|
219
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
218
|
+
var _theme$elements12;
|
|
219
|
+
return (theme === null || theme === void 0 || (_theme$elements12 = theme.elements) === null || _theme$elements12 === void 0 ? void 0 : _theme$elements12.ToggleButtons) || _ToggleButtons.default;
|
|
220
220
|
}, [theme]);
|
|
221
221
|
const Menu = _react.default.useMemo(() => {
|
|
222
|
-
var _theme$
|
|
223
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
222
|
+
var _theme$elements13;
|
|
223
|
+
return (theme === null || theme === void 0 || (_theme$elements13 = theme.elements) === null || _theme$elements13 === void 0 ? void 0 : _theme$elements13.Menu) || _Menu.default;
|
|
224
224
|
}, [theme]);
|
|
225
225
|
const Divider = _react.default.useMemo(() => {
|
|
226
|
-
var _theme$
|
|
227
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
226
|
+
var _theme$elements14;
|
|
227
|
+
return (theme === null || theme === void 0 || (_theme$elements14 = theme.elements) === null || _theme$elements14 === void 0 ? void 0 : _theme$elements14.Divider) || _Divider.default;
|
|
228
228
|
}, [theme]);
|
|
229
229
|
const ColorTextField = _react.default.useMemo(() => {
|
|
230
|
-
var _theme$
|
|
231
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
230
|
+
var _theme$elements15;
|
|
231
|
+
return (theme === null || theme === void 0 || (_theme$elements15 = theme.elements) === null || _theme$elements15 === void 0 ? void 0 : _theme$elements15.ColorTextField) || _ColorTextField.default;
|
|
232
232
|
}, [theme]);
|
|
233
233
|
const {
|
|
234
234
|
tonal = true,
|
package/Snackbar/Snackbar.d.ts
CHANGED
|
@@ -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
|
|
4
|
+
export type ISnackbar = ISurface & {
|
|
5
5
|
open?: boolean;
|
|
6
6
|
primary?: IElement;
|
|
7
7
|
end?: IElement;
|
package/Snackbars/Context.d.ts
CHANGED
package/Snackbars/Snackbars.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ISnackbar } from '../Snackbar/Snackbar';
|
|
3
3
|
import { IBaseElement, IPropsAny } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type ISnackbarsValue = {
|
|
5
5
|
add: (value: ISnackbar) => void;
|
|
6
6
|
remove: (value: 'first' | 'last' | string) => void;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type ISnackbars = IBaseElement & {
|
|
9
9
|
max?: number;
|
|
10
10
|
position?: 'top' | 'bottom';
|
|
11
11
|
alignment?: 'start' | 'left' | 'center' | 'right' | 'end';
|
package/Space/Space.d.ts
CHANGED
package/Space/Space.js
CHANGED
|
@@ -356,56 +356,56 @@ const Space = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
356
356
|
return (theme === null || theme === void 0 || (_theme$elements9 = theme.elements) === null || _theme$elements9 === void 0 ? void 0 : _theme$elements9.Label) || _Label.default;
|
|
357
357
|
}, [theme]);
|
|
358
358
|
const List = _react.default.useMemo(() => {
|
|
359
|
-
var _theme$
|
|
360
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
359
|
+
var _theme$elements0;
|
|
360
|
+
return (theme === null || theme === void 0 || (_theme$elements0 = theme.elements) === null || _theme$elements0 === void 0 ? void 0 : _theme$elements0.List) || _List.default;
|
|
361
361
|
}, [theme]);
|
|
362
362
|
const ListItem = _react.default.useMemo(() => {
|
|
363
|
-
var _theme$
|
|
364
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
363
|
+
var _theme$elements1;
|
|
364
|
+
return (theme === null || theme === void 0 || (_theme$elements1 = theme.elements) === null || _theme$elements1 === void 0 ? void 0 : _theme$elements1.ListItem) || _ListItem.default;
|
|
365
365
|
}, [theme]);
|
|
366
366
|
const NavigationDrawer = _react.default.useMemo(() => {
|
|
367
|
-
var _theme$
|
|
368
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
367
|
+
var _theme$elements10;
|
|
368
|
+
return (theme === null || theme === void 0 || (_theme$elements10 = theme.elements) === null || _theme$elements10 === void 0 ? void 0 : _theme$elements10.NavigationDrawer) || _NavigationDrawer.default;
|
|
369
369
|
}, [theme]);
|
|
370
370
|
const NumericTextField = _react.default.useMemo(() => {
|
|
371
|
-
var _theme$
|
|
372
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
371
|
+
var _theme$elements11;
|
|
372
|
+
return (theme === null || theme === void 0 || (_theme$elements11 = theme.elements) === null || _theme$elements11 === void 0 ? void 0 : _theme$elements11.NumericTextField) || _NumericTextField.default;
|
|
373
373
|
}, [theme]);
|
|
374
374
|
const Select = _react.default.useMemo(() => {
|
|
375
|
-
var _theme$
|
|
376
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
375
|
+
var _theme$elements12;
|
|
376
|
+
return (theme === null || theme === void 0 || (_theme$elements12 = theme.elements) === null || _theme$elements12 === void 0 ? void 0 : _theme$elements12.Select) || _Select.default;
|
|
377
377
|
}, [theme]);
|
|
378
378
|
const Slider = _react.default.useMemo(() => {
|
|
379
|
-
var _theme$
|
|
380
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
379
|
+
var _theme$elements13;
|
|
380
|
+
return (theme === null || theme === void 0 || (_theme$elements13 = theme.elements) === null || _theme$elements13 === void 0 ? void 0 : _theme$elements13.Slider) || _Slider.default;
|
|
381
381
|
}, [theme]);
|
|
382
382
|
const SmartTextField = _react.default.useMemo(() => {
|
|
383
|
-
var _theme$
|
|
384
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
383
|
+
var _theme$elements14;
|
|
384
|
+
return (theme === null || theme === void 0 || (_theme$elements14 = theme.elements) === null || _theme$elements14 === void 0 ? void 0 : _theme$elements14.SmartTextField) || _SmartTextField.default;
|
|
385
385
|
}, [theme]);
|
|
386
386
|
const Switch = _react.default.useMemo(() => {
|
|
387
|
-
var _theme$
|
|
388
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
387
|
+
var _theme$elements15;
|
|
388
|
+
return (theme === null || theme === void 0 || (_theme$elements15 = theme.elements) === null || _theme$elements15 === void 0 ? void 0 : _theme$elements15.Switch) || _Switch.default;
|
|
389
389
|
}, [theme]);
|
|
390
390
|
const TextField = _react.default.useMemo(() => {
|
|
391
|
-
var _theme$
|
|
392
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
391
|
+
var _theme$elements16;
|
|
392
|
+
return (theme === null || theme === void 0 || (_theme$elements16 = theme.elements) === null || _theme$elements16 === void 0 ? void 0 : _theme$elements16.TextField) || _TextField.default;
|
|
393
393
|
}, [theme]);
|
|
394
394
|
const Tooltip = _react.default.useMemo(() => {
|
|
395
|
-
var _theme$
|
|
396
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
395
|
+
var _theme$elements17;
|
|
396
|
+
return (theme === null || theme === void 0 || (_theme$elements17 = theme.elements) === null || _theme$elements17 === void 0 ? void 0 : _theme$elements17.Tooltip) || _Tooltip.default;
|
|
397
397
|
}, [theme]);
|
|
398
398
|
const Type = _react.default.useMemo(() => {
|
|
399
|
-
var _theme$
|
|
400
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
399
|
+
var _theme$elements18;
|
|
400
|
+
return (theme === null || theme === void 0 || (_theme$elements18 = theme.elements) === null || _theme$elements18 === void 0 ? void 0 : _theme$elements18.Type) || _Type.default;
|
|
401
401
|
}, [theme]);
|
|
402
402
|
const Surface = _react.default.useMemo(() => {
|
|
403
|
-
var _theme$
|
|
404
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
403
|
+
var _theme$elements19;
|
|
404
|
+
return (theme === null || theme === void 0 || (_theme$elements19 = theme.elements) === null || _theme$elements19 === void 0 ? void 0 : _theme$elements19.Surface) || _Surface.default;
|
|
405
405
|
}, [theme]);
|
|
406
406
|
const HTMLCanvas = _react.default.useMemo(() => {
|
|
407
|
-
var _theme$
|
|
408
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
407
|
+
var _theme$elements20;
|
|
408
|
+
return (theme === null || theme === void 0 || (_theme$elements20 = theme.elements) === null || _theme$elements20 === void 0 ? void 0 : _theme$elements20.HTMLCanvas) || _HTMLCanvas.default;
|
|
409
409
|
}, [theme]);
|
|
410
410
|
const {
|
|
411
411
|
size = 'regular',
|
package/Space/index.js
CHANGED
|
@@ -22,5 +22,4 @@ Object.keys(_Space).forEach(function (key) {
|
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
|
-
function
|
|
26
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
@@ -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
|
|
4
|
+
export type ISpeechToText = Omit<ILine, 'onChange'> & {
|
|
5
5
|
SpeechRecognition?: any;
|
|
6
6
|
continuous?: boolean;
|
|
7
7
|
grammars?: any;
|
package/SpeedDial/SpeedDial.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ILine } from '../Line/Line';
|
|
3
3
|
import { IVersion, IElement, IElementReference, IPropsAny } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type ISpeedDial = Omit<ILine, 'direction'> & {
|
|
5
5
|
version?: IVersion;
|
|
6
6
|
open?: boolean;
|
|
7
7
|
openDefault?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IIconButton } from '../IconButton/IconButton';
|
|
3
3
|
import { IElement, IElementReference, IPropsAny } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type ISpeedDialItem = IIconButton & {
|
|
5
5
|
open?: boolean;
|
|
6
6
|
name?: IElement;
|
|
7
7
|
label?: IElement;
|
package/SpyScroll/SpyScroll.d.ts
CHANGED
package/Step/Step.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ILine } from '../Line/Line';
|
|
3
3
|
import { IColor, IVersion, IElement, IPropsAny } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type IStep = ILine & {
|
|
5
5
|
version?: IVersion;
|
|
6
6
|
iconColor?: IColor;
|
|
7
7
|
iconColorActive?: IColor;
|
package/Stepper/Stepper.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ILine } from '../Line/Line';
|
|
3
3
|
import { IColor, IVersion, IPropsAny } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type IStepper = ILine & {
|
|
5
5
|
version?: IVersion;
|
|
6
6
|
iconColor?: IColor;
|
|
7
7
|
iconColorActive?: IColor;
|
package/Surface/Surface.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IBaseElement, IVersion, IElevation, IPropsAny } from '../types';
|
|
3
|
-
export
|
|
3
|
+
export type ISurface = IBaseElement & {
|
|
4
4
|
version?: IVersion;
|
|
5
5
|
elevation?: IElevation;
|
|
6
6
|
backgroundOpacity?: number;
|
package/Switch/Switch.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IBaseElement, IRef, IElement } from '../types';
|
|
3
|
-
export
|
|
3
|
+
export type ISwitch = Omit<IBaseElement, 'onChange'> & {
|
|
4
4
|
inputRef?: IRef;
|
|
5
5
|
version?: any;
|
|
6
6
|
valueDefault?: boolean;
|
package/Tab/Tab.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { ISurface } from '../Surface/Surface';
|
|
3
3
|
import { ITooltip } from '../Tooltip/Tooltip';
|
|
4
4
|
import { IElement, IPropsAny } from '../types';
|
|
5
|
-
export
|
|
5
|
+
export type ITab = Omit<ISurface, 'version' | 'onChange'> & {
|
|
6
6
|
version?: 'primary' | 'secondary';
|
|
7
7
|
size?: 'small' | 'regular' | 'large';
|
|
8
8
|
value?: any;
|
package/Table/Table.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ISurface } from '../Surface/Surface';
|
|
3
3
|
import { IElement, IPropsAny, IElementReference } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type ITable = ISurface & {
|
|
5
5
|
header?: IElement;
|
|
6
6
|
footer?: IElement;
|
|
7
7
|
WrapperComponentProps?: IPropsAny;
|
package/TableBody/TableBody.d.ts
CHANGED
package/TableCell/TableCell.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TLineAlign, TLineJustify } from '../Line/Line';
|
|
3
3
|
import { IBaseElement, IPropsAny } from '../types';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type ITableCellSort = 'asc' | 'desc';
|
|
5
|
+
export type ITableCell = IBaseElement & {
|
|
6
6
|
sort?: boolean;
|
|
7
7
|
sortedByDefault?: ITableCellSort;
|
|
8
8
|
sortedBy?: ITableCellSort;
|
package/TableCell/TableCell.js
CHANGED
|
@@ -67,7 +67,9 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
67
67
|
},
|
|
68
68
|
sticky: {
|
|
69
69
|
position: 'sticky',
|
|
70
|
-
zIndex: '14'
|
|
70
|
+
zIndex: '14'
|
|
71
|
+
},
|
|
72
|
+
sticky_left: {
|
|
71
73
|
'&::after': {
|
|
72
74
|
content: "''",
|
|
73
75
|
position: 'absolute',
|
|
@@ -79,11 +81,28 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
79
81
|
pointerEvents: 'none'
|
|
80
82
|
}
|
|
81
83
|
},
|
|
82
|
-
|
|
84
|
+
sticky_right: {
|
|
85
|
+
'&::after': {
|
|
86
|
+
content: "''",
|
|
87
|
+
position: 'absolute',
|
|
88
|
+
top: '0',
|
|
89
|
+
left: '-24px',
|
|
90
|
+
bottom: '0',
|
|
91
|
+
width: '24px',
|
|
92
|
+
transition: theme.methods.transitions.make('box-shadow'),
|
|
93
|
+
pointerEvents: 'none'
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
stickyActive_left: {
|
|
83
97
|
'&::after': {
|
|
84
98
|
boxShadow: `inset 11px 0 7px -7px ${theme.palette.light ? 'rgba(0, 0, 0, 0.04)' : 'rgba(255, 255, 255, 0.14)'}`
|
|
85
99
|
}
|
|
86
100
|
},
|
|
101
|
+
stickyActive_right: {
|
|
102
|
+
'&::after': {
|
|
103
|
+
boxShadow: `inset -11px 0 7px -7px ${theme.palette.light ? 'rgba(0, 0, 0, 0.04)' : 'rgba(255, 255, 255, 0.14)'}`
|
|
104
|
+
}
|
|
105
|
+
},
|
|
87
106
|
sort: {
|
|
88
107
|
cursor: 'pointer',
|
|
89
108
|
borderRadius: 2,
|
|
@@ -195,7 +214,7 @@ const TableCell = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
195
214
|
_react.default.useEffect(() => {
|
|
196
215
|
if (sticky) {
|
|
197
216
|
if (root) {
|
|
198
|
-
const parentOverflow = (0, _utils2.getOverflowParent)(root);
|
|
217
|
+
const parentOverflow = (0, _utils2.getOverflowParent)(root, false);
|
|
199
218
|
const offsetPrevious = stickyPosition === 'left' ? root.offsetLeft : window.innerWidth - root.getBoundingClientRect().right;
|
|
200
219
|
const method = () => {
|
|
201
220
|
const offsetNew = stickyPosition === 'left' ? root.offsetLeft : window.innerWidth - root.getBoundingClientRect().right;
|
|
@@ -233,7 +252,7 @@ const TableCell = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
233
252
|
setRoot(item);
|
|
234
253
|
},
|
|
235
254
|
role: "cell",
|
|
236
|
-
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('TableCell', theme) && [`onesy-TableCell-root`, `onesy-TableCell-size-${size}`, sticky && `onesy-TableCell-sticky`, stickyPosition && `onesy-TableCell-sticky-position-${stickyPosition}`, stickyActive && `onesy-TableHead-sticky-active`], className, classes.root, position === 'head' ? classes.head : classes.body, noWeight && classes.noWeight, sticky && classes.sticky, stickyActive && classes
|
|
255
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('TableCell', theme) && [`onesy-TableCell-root`, `onesy-TableCell-size-${size}`, sticky && `onesy-TableCell-sticky`, stickyPosition && `onesy-TableCell-sticky-position-${stickyPosition}`, stickyActive && `onesy-TableHead-sticky-active`], className, classes.root, position === 'head' ? classes.head : classes.body, noWeight && classes.noWeight, sticky && [classes.sticky, classes[`sticky_${stickyPosition}`]], stickyActive && classes[`stickyActive_${stickyPosition}`]]),
|
|
237
256
|
style: _objectSpread(_objectSpread({}, style), stylesOther)
|
|
238
257
|
}, other), /*#__PURE__*/_react.default.createElement(Line, {
|
|
239
258
|
gap: 0,
|
package/TableHead/TableHead.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ILine } from '../Line/Line';
|
|
3
3
|
import { IElementReference, IVersion } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type ITableRow = Omit<ILine, 'onChange'> & {
|
|
5
5
|
version?: IVersion;
|
|
6
6
|
elevation?: boolean;
|
|
7
7
|
page?: number;
|
package/TableRow/TableRow.d.ts
CHANGED
package/Tabs/Tabs.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { ISurface } from '../Surface/Surface';
|
|
3
3
|
import { TLineAlign, TLineJustify } from '../Line/Line';
|
|
4
4
|
import { IElementReference, IPropsAny } from '../types';
|
|
5
|
-
export
|
|
5
|
+
export type ITabs = Omit<ISurface, 'version' | 'onChange'> & {
|
|
6
6
|
version?: 'primary' | 'secondary';
|
|
7
7
|
value?: any;
|
|
8
8
|
valueDefault?: any;
|
package/Text/Text.d.ts
CHANGED
package/TextField/TextField.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import OnesySubscription from '@onesy/subscription';
|
|
3
3
|
import { IBaseElement, IVersion, IRef, IElement, IValueBreakpoints, IPropsAny, IElementReference } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type ITextField = Omit<IBaseElement, 'onChange'> & {
|
|
5
5
|
version?: IVersion;
|
|
6
6
|
rootRef?: IRef;
|
|
7
7
|
valueDefault?: string | number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ILine } from '../Line/Line';
|
|
3
3
|
import { IElementReference, IPropsAny } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type ITextToSpeech = ILine & {
|
|
5
5
|
read?: string;
|
|
6
6
|
speechSynthesisUtterance?: any;
|
|
7
7
|
language?: string;
|
|
@@ -3,9 +3,9 @@ import { OnesyDate } from '@onesy/date';
|
|
|
3
3
|
import { TClockUnit } from '../Clock/Clock';
|
|
4
4
|
import { IAdvancedTextField } from '../AdvancedTextField/AdvancedTextField';
|
|
5
5
|
import { IValueBreakpoints, IElementReference, IPropsAny } from '../types';
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
6
|
+
export type TTimePickerValue = OnesyDate | [OnesyDate, OnesyDate];
|
|
7
|
+
export type TTimePickerSelecting = TClockUnit | [TClockUnit, TClockUnit];
|
|
8
|
+
export type ITimePicker = Omit<IAdvancedTextField, 'version' | 'onChange'> & {
|
|
9
9
|
version?: 'auto' | 'mobile' | 'desktop';
|
|
10
10
|
value?: TTimePickerValue;
|
|
11
11
|
valueDefault?: TTimePickerValue;
|
package/TimePicker/TimePicker.js
CHANGED
|
@@ -258,28 +258,28 @@ const TimePicker = /*#__PURE__*/_react.default.forwardRef((props__, ref) => {
|
|
|
258
258
|
return (theme === null || theme === void 0 || (_theme$elements9 = theme.elements) === null || _theme$elements9 === void 0 ? void 0 : _theme$elements9.ToggleButton) || _ToggleButton.default;
|
|
259
259
|
}, [theme]);
|
|
260
260
|
const ToggleButtons = _react.default.useMemo(() => {
|
|
261
|
-
var _theme$
|
|
262
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
261
|
+
var _theme$elements0;
|
|
262
|
+
return (theme === null || theme === void 0 || (_theme$elements0 = theme.elements) === null || _theme$elements0 === void 0 ? void 0 : _theme$elements0.ToggleButtons) || _ToggleButtons.default;
|
|
263
263
|
}, [theme]);
|
|
264
264
|
const Button = _react.default.useMemo(() => {
|
|
265
|
-
var _theme$
|
|
266
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
265
|
+
var _theme$elements1;
|
|
266
|
+
return (theme === null || theme === void 0 || (_theme$elements1 = theme.elements) === null || _theme$elements1 === void 0 ? void 0 : _theme$elements1.Button) || _Button.default;
|
|
267
267
|
}, [theme]);
|
|
268
268
|
const Slide = _react.default.useMemo(() => {
|
|
269
|
-
var _theme$
|
|
270
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
269
|
+
var _theme$elements10;
|
|
270
|
+
return (theme === null || theme === void 0 || (_theme$elements10 = theme.elements) === null || _theme$elements10 === void 0 ? void 0 : _theme$elements10.Slide) || _Slide.default;
|
|
271
271
|
}, [theme]);
|
|
272
272
|
const Clock = _react.default.useMemo(() => {
|
|
273
|
-
var _theme$
|
|
274
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
273
|
+
var _theme$elements11;
|
|
274
|
+
return (theme === null || theme === void 0 || (_theme$elements11 = theme.elements) === null || _theme$elements11 === void 0 ? void 0 : _theme$elements11.Clock) || _Clock.default;
|
|
275
275
|
}, [theme]);
|
|
276
276
|
const Tab = _react.default.useMemo(() => {
|
|
277
|
-
var _theme$
|
|
278
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
277
|
+
var _theme$elements12;
|
|
278
|
+
return (theme === null || theme === void 0 || (_theme$elements12 = theme.elements) === null || _theme$elements12 === void 0 ? void 0 : _theme$elements12.Tab) || _Tab.default;
|
|
279
279
|
}, [theme]);
|
|
280
280
|
const Tabs = _react.default.useMemo(() => {
|
|
281
|
-
var _theme$
|
|
282
|
-
return (theme === null || theme === void 0 || (_theme$
|
|
281
|
+
var _theme$elements13;
|
|
282
|
+
return (theme === null || theme === void 0 || (_theme$elements13 = theme.elements) === null || _theme$elements13 === void 0 ? void 0 : _theme$elements13.Tabs) || _Tabs.default;
|
|
283
283
|
}, [theme]);
|
|
284
284
|
const {
|
|
285
285
|
tonal = true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ITimePicker } from '../TimePicker/TimePicker';
|
|
3
|
-
export
|
|
3
|
+
export type ITimeRangePicker = ITimePicker & {};
|
|
4
4
|
declare const TimeRangePicker: React.FC<ITimeRangePicker>;
|
|
5
5
|
export default TimeRangePicker;
|
package/Timeline/Timeline.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ILine } from '../Line/Line';
|
|
3
3
|
import { IElement, IPropsAny, IElementReference } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type ITimelineItem = ILine & {
|
|
5
5
|
orientation?: 'vertical' | 'horizontal';
|
|
6
6
|
start?: IElement;
|
|
7
7
|
end?: IElement;
|
package/Timer/Timer.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ISurface } from '../Surface/Surface';
|
|
3
3
|
import { IElementReference, IPropsAny } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type ITimer = ISurface & {
|
|
5
5
|
renderValue?: (value: string) => any;
|
|
6
6
|
icon?: boolean;
|
|
7
7
|
onStart?: (event: React.MouseEvent<any>) => any;
|