@onesy/ui-react 1.0.1 → 1.0.3
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 +1 -1
- package/Accordion/Accordion.js +2 -2
- package/Append/Append.d.ts +1 -1
- package/AreaChartItem/AreaChartItem.js +8 -8
- package/AudioPlayer/AudioPlayer.js +25 -25
- package/AudioRecorder/AudioRecorder.js +10 -10
- package/AutoComplete/AutoComplete.d.ts +2 -2
- package/AutoComplete/AutoComplete.js +2 -2
- package/Avatar/Avatar.js +4 -4
- package/Breadcrumbs/Breadcrumbs.js +2 -2
- package/BubbleChartItem/BubbleChartItem.js +6 -6
- package/Calendar/Calendar.d.ts +2 -2
- package/Calendar/Calendar.js +7 -7
- package/CalendarAvailability/CalendarAvailability.js +5 -5
- package/CalendarMenu/CalendarMenu.js +6 -6
- package/CalendarMonth/CalendarMonth.d.ts +3 -3
- package/CalendarMonth/CalendarMonth.js +2 -2
- package/CalendarViews/CalendarViews.d.ts +1 -1
- package/CalendarViews/CalendarViews.js +2 -2
- package/Carousel/Carousel.d.ts +2 -2
- package/Carousel/Carousel.js +2 -2
- package/Chart/Chart.d.ts +1 -1
- package/Chip/Chip.js +1 -1
- package/Clock/Clock.d.ts +4 -4
- package/Clock/Clock.js +11 -11
- package/ColumnChartItem/ColumnChartItem.js +6 -6
- package/Confirm/Confirm.js +4 -4
- package/Countdown/Countdown.js +4 -4
- package/DatePicker/DatePicker.js +3 -3
- package/DateTimePicker/DateTimePicker.d.ts +1 -1
- package/DateTimePicker/DateTimePicker.js +3 -3
- package/DragAndDropList/DragAndDropList.js +5 -5
- package/Drawing/Drawing.d.ts +1 -1
- package/Drawing/Drawing.js +4 -4
- package/DropZone/DropZone.js +1 -1
- package/Emojis/Emojis.js +8 -8
- package/FileChoose/FileChoose.d.ts +1 -1
- package/FileChoose/FileChoose.js +5 -5
- package/Frame/Frame.js +4 -4
- package/Grid/Grid.d.ts +1 -1
- package/HTMLCanvas/HTMLCanvas.js +6 -6
- package/ImageCrop/ImageCrop.d.ts +1 -1
- package/ImageCrop/ImageCrop.js +22 -22
- package/ImageEdit/ImageEdit.d.ts +1 -1
- package/ImageEdit/ImageEdit.js +23 -23
- package/ImageGallery/ImageGallery.js +14 -14
- package/Info/Info.js +1 -1
- package/Interaction/Interaction.d.ts +1 -1
- package/Keyframes/Keyframes.d.ts +1 -1
- package/Line/Line.d.ts +5 -5
- package/LineChartItem/LineChartItem.js +7 -7
- package/Links/Links.js +2 -2
- package/MainProgress/MainProgress.js +13 -13
- package/Medias/Medias.d.ts +1 -1
- package/Medias/Medias.js +1 -1
- package/MenuDesktop/MenuDesktop.d.ts +2 -2
- package/MenuDesktop/MenuDesktop.js +1 -1
- package/MenuItem/MenuItem.js +2 -2
- package/MoreOptions/MoreOptions.js +1 -1
- package/NavigationBar/NavigationBar.d.ts +1 -1
- package/NavigationItem/NavigationItem.d.ts +1 -1
- package/NumericTextField/NumericTextField.js +2 -2
- package/Page/Page.js +2 -2
- package/Pagination/Pagination.js +4 -4
- package/Parallax/Parallax.d.ts +1 -1
- package/Rating/Rating.js +2 -2
- package/RichTextEditor/RichTextEditor.js +69 -69
- package/ScatterChartItem/ScatterChartItem.js +6 -6
- package/ScreenCapture/ScreenCapture.d.ts +1 -1
- package/ScreenCapture/ScreenCapture.js +8 -8
- package/Section/Section.d.ts +1 -1
- package/SectionContact/SectionContact.js +3 -3
- package/SectionMedia/SectionMedia.js +1 -1
- package/Select/Select.js +2 -2
- package/Share/Share.js +4 -4
- package/Slider/Slider.d.ts +1 -1
- package/SmartTextField/SmartTextField.js +31 -31
- package/Snackbar/Snackbar.js +1 -1
- package/Space/Space.js +13 -13
- package/SpeechToText/SpeechToText.js +2 -2
- package/SpeedDial/SpeedDial.js +1 -1
- package/TableCell/TableCell.d.ts +1 -1
- package/TableCell/TableCell.js +1 -1
- package/TablePagination/TablePagination.js +4 -4
- package/Tabs/Tabs.js +4 -4
- package/TextField/TextField.js +1 -1
- package/TextToSpeech/TextToSpeech.js +2 -2
- package/TimePicker/TimePicker.d.ts +2 -2
- package/TimePicker/TimePicker.js +2 -2
- package/Timer/Timer.js +5 -5
- package/Transition/Transition.d.ts +1 -1
- package/Transitions/Transitions.d.ts +1 -1
- package/Tree/Tree.js +3 -3
- package/VideoPlayer/VideoPlayer.js +29 -29
- package/ViewSplit/ViewSplit.js +2 -2
- package/Weather/Weather.d.ts +3 -3
- package/Weather/Weather.js +5 -5
- package/Widgets/Widgets.js +2 -2
- package/WindowSplit/WindowSplit.js +2 -2
- package/esm/Accordion/Accordion.js +2 -2
- package/esm/AreaChartItem/AreaChartItem.js +8 -8
- package/esm/AudioPlayer/AudioPlayer.js +25 -25
- package/esm/AudioRecorder/AudioRecorder.js +10 -10
- package/esm/AutoComplete/AutoComplete.js +2 -2
- package/esm/Avatar/Avatar.js +2 -2
- package/esm/Breadcrumbs/Breadcrumbs.js +2 -2
- package/esm/BubbleChartItem/BubbleChartItem.js +6 -6
- package/esm/Calendar/Calendar.js +7 -7
- package/esm/CalendarAvailability/CalendarAvailability.js +5 -5
- package/esm/CalendarMenu/CalendarMenu.js +6 -6
- package/esm/CalendarMonth/CalendarMonth.js +2 -2
- package/esm/CalendarViews/CalendarViews.js +2 -2
- package/esm/Carousel/Carousel.js +2 -2
- package/esm/Chip/Chip.js +1 -1
- package/esm/Clock/Clock.js +11 -11
- package/esm/ColumnChartItem/ColumnChartItem.js +6 -6
- package/esm/Confirm/Confirm.js +4 -4
- package/esm/Countdown/Countdown.js +4 -4
- package/esm/DatePicker/DatePicker.js +3 -3
- package/esm/DateTimePicker/DateTimePicker.js +3 -3
- package/esm/DragAndDropList/DragAndDropList.js +5 -5
- package/esm/Drawing/Drawing.js +4 -4
- package/esm/DropZone/DropZone.js +1 -1
- package/esm/Emojis/Emojis.js +8 -8
- package/esm/FileChoose/FileChoose.js +5 -5
- package/esm/Frame/Frame.js +4 -4
- package/esm/HTMLCanvas/HTMLCanvas.js +6 -6
- package/esm/ImageCrop/ImageCrop.js +22 -22
- package/esm/ImageEdit/ImageEdit.js +23 -23
- package/esm/ImageGallery/ImageGallery.js +14 -14
- package/esm/Info/Info.js +1 -1
- package/esm/LineChartItem/LineChartItem.js +7 -7
- package/esm/Links/Links.js +2 -2
- package/esm/MainProgress/MainProgress.js +13 -13
- package/esm/Medias/Medias.js +1 -1
- package/esm/MenuDesktop/MenuDesktop.js +1 -1
- package/esm/MenuItem/MenuItem.js +2 -2
- package/esm/MoreOptions/MoreOptions.js +1 -1
- package/esm/NumericTextField/NumericTextField.js +2 -2
- package/esm/Page/Page.js +2 -2
- package/esm/Pagination/Pagination.js +4 -4
- package/esm/Rating/Rating.js +2 -2
- package/esm/RichTextEditor/RichTextEditor.js +69 -69
- package/esm/ScatterChartItem/ScatterChartItem.js +6 -6
- package/esm/ScreenCapture/ScreenCapture.js +8 -8
- package/esm/SectionContact/SectionContact.js +3 -3
- package/esm/SectionMedia/SectionMedia.js +1 -1
- package/esm/Select/Select.js +2 -2
- package/esm/Share/Share.js +4 -4
- package/esm/SmartTextField/SmartTextField.js +31 -31
- package/esm/Snackbar/Snackbar.js +1 -1
- package/esm/Space/Space.js +13 -13
- package/esm/SpeechToText/SpeechToText.js +2 -2
- package/esm/SpeedDial/SpeedDial.js +1 -1
- package/esm/TableCell/TableCell.js +1 -1
- package/esm/TablePagination/TablePagination.js +4 -4
- package/esm/Tabs/Tabs.js +4 -4
- package/esm/TextField/TextField.js +1 -1
- package/esm/TextToSpeech/TextToSpeech.js +2 -2
- package/esm/TimePicker/TimePicker.js +2 -2
- package/esm/Timer/Timer.js +5 -5
- package/esm/Tree/Tree.js +3 -3
- package/esm/VideoPlayer/VideoPlayer.js +29 -29
- package/esm/ViewSplit/ViewSplit.js +2 -2
- package/esm/Weather/Weather.js +5 -5
- package/esm/Widgets/Widgets.js +2 -2
- package/esm/WindowSplit/WindowSplit.js +2 -2
- package/esm/index.js +1 -1
- package/esm/useScroll/useScroll.js +2 -2
- package/package.json +1 -1
- package/types.d.ts +23 -23
- package/useForm/validate.d.ts +6 -6
- package/useScroll/useScroll.d.ts +1 -1
- package/useScroll/useScroll.js +2 -2
package/Tree/Tree.js
CHANGED
@@ -18,7 +18,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
18
|
const react_1 = __importDefault(require("react"));
|
19
19
|
const utils_1 = require("@onesy/utils");
|
20
20
|
const style_react_1 = require("@onesy/style-react");
|
21
|
-
const IconMaterialExpandMoreW100_1 = __importDefault(require("@
|
21
|
+
const IconMaterialExpandMoreW100_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialExpandMoreW100"));
|
22
22
|
const Checkbox_1 = __importDefault(require("../Checkbox"));
|
23
23
|
const Surface_1 = __importDefault(require("../Surface"));
|
24
24
|
const Type_1 = __importDefault(require("../Type"));
|
@@ -55,7 +55,6 @@ const useStyle = (0, style_react_1.style)(theme => ({
|
|
55
55
|
lineHeight: '1.15',
|
56
56
|
margin: '0',
|
57
57
|
position: 'relative',
|
58
|
-
color: 'inherit',
|
59
58
|
padding: `${theme.methods.space.value(0.25, 'px')} ${theme.methods.space.value(1, 'px')}`,
|
60
59
|
borderRadius: `${theme.shape.radius.unit * 0.5}px`
|
61
60
|
},
|
@@ -69,6 +68,7 @@ const useStyle = (0, style_react_1.style)(theme => ({
|
|
69
68
|
height: '14px',
|
70
69
|
borderLeft: '2px solid',
|
71
70
|
borderBottom: '2px solid',
|
71
|
+
color: theme.palette.color.neutral['90'],
|
72
72
|
borderColor: theme.palette.light ? theme.palette.color.neutral['90'] : theme.palette.color.neutral['20'],
|
73
73
|
borderBottomLeftRadius: '6px',
|
74
74
|
transform: `rotateY(${theme.direction === 'ltr' ? 0 : 180}deg)`
|
@@ -133,7 +133,7 @@ const Tree = react_1.default.forwardRef((props_, ref) => {
|
|
133
133
|
ids: {
|
134
134
|
middle: react_1.default.useId()
|
135
135
|
},
|
136
|
-
inProgressTransition: react_1.default.useRef()
|
136
|
+
inProgressTransition: react_1.default.useRef(null)
|
137
137
|
};
|
138
138
|
const styles = {
|
139
139
|
root: {}
|
@@ -19,18 +19,18 @@ const react_1 = __importDefault(require("react"));
|
|
19
19
|
const utils_1 = require("@onesy/utils");
|
20
20
|
const style_react_1 = require("@onesy/style-react");
|
21
21
|
const date_1 = require("@onesy/date");
|
22
|
-
const IconMaterialPlayArrowW100_1 = __importDefault(require("@
|
23
|
-
const IconMaterialPauseW100_1 = __importDefault(require("@
|
24
|
-
const IconMaterialForwardMediaW100_1 = __importDefault(require("@
|
25
|
-
const IconMaterialVolumeDownAltW100_1 = __importDefault(require("@
|
26
|
-
const IconMaterialVolumeOffW100_1 = __importDefault(require("@
|
27
|
-
const IconMaterialFullscreenW100_1 = __importDefault(require("@
|
28
|
-
const IconMaterialFullscreenExitW100_1 = __importDefault(require("@
|
29
|
-
const IconMaterialSettingsW100_1 = __importDefault(require("@
|
30
|
-
const IconMaterialTuneW100_1 = __importDefault(require("@
|
31
|
-
const IconMaterialSlowMotionVideoW100_1 = __importDefault(require("@
|
32
|
-
const IconMaterialPictureInPictureAltW100_1 = __importDefault(require("@
|
33
|
-
const IconMaterialArrowBackIosW100_1 = __importDefault(require("@
|
22
|
+
const IconMaterialPlayArrowW100_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialPlayArrowW100"));
|
23
|
+
const IconMaterialPauseW100_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialPauseW100"));
|
24
|
+
const IconMaterialForwardMediaW100_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialForwardMediaW100"));
|
25
|
+
const IconMaterialVolumeDownAltW100_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialVolumeDownAltW100"));
|
26
|
+
const IconMaterialVolumeOffW100_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialVolumeOffW100"));
|
27
|
+
const IconMaterialFullscreenW100_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialFullscreenW100"));
|
28
|
+
const IconMaterialFullscreenExitW100_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialFullscreenExitW100"));
|
29
|
+
const IconMaterialSettingsW100_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialSettingsW100"));
|
30
|
+
const IconMaterialTuneW100_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialTuneW100"));
|
31
|
+
const IconMaterialSlowMotionVideoW100_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialSlowMotionVideoW100"));
|
32
|
+
const IconMaterialPictureInPictureAltW100_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialPictureInPictureAltW100"));
|
33
|
+
const IconMaterialArrowBackIosW100_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialArrowBackIosW100"));
|
34
34
|
const Line_1 = __importDefault(require("../Line"));
|
35
35
|
const Surface_1 = __importDefault(require("../Surface"));
|
36
36
|
const Slider_1 = __importDefault(require("../Slider"));
|
@@ -190,25 +190,25 @@ const VideoPlayer = react_1.default.forwardRef((props_, ref) => {
|
|
190
190
|
const [playbackSpeed, setPlaybackSpeed] = react_1.default.useState(1);
|
191
191
|
const [openMenu, setOpenMenu] = react_1.default.useState();
|
192
192
|
const refs = {
|
193
|
-
root: react_1.default.useRef(
|
194
|
-
video: react_1.default.useRef(),
|
195
|
-
controls: react_1.default.useRef(
|
196
|
-
duration: react_1.default.useRef(
|
197
|
-
time: react_1.default.useRef(
|
198
|
-
play: react_1.default.useRef(
|
199
|
-
updating: react_1.default.useRef(
|
200
|
-
onPlay: react_1.default.useRef(
|
201
|
-
onPause: react_1.default.useRef(
|
202
|
-
onTimeChange: react_1.default.useRef(
|
203
|
-
onBackward: react_1.default.useRef(
|
204
|
-
onForward: react_1.default.useRef(
|
205
|
-
onStop: react_1.default.useRef(
|
206
|
-
startMediaSession: react_1.default.useRef(
|
207
|
-
updateMediaSession: react_1.default.useRef(
|
208
|
-
startMediaSessionOnPlay: react_1.default.useRef(
|
193
|
+
root: react_1.default.useRef(null),
|
194
|
+
video: react_1.default.useRef(null),
|
195
|
+
controls: react_1.default.useRef(null),
|
196
|
+
duration: react_1.default.useRef(null),
|
197
|
+
time: react_1.default.useRef(null),
|
198
|
+
play: react_1.default.useRef(null),
|
199
|
+
updating: react_1.default.useRef(null),
|
200
|
+
onPlay: react_1.default.useRef(null),
|
201
|
+
onPause: react_1.default.useRef(null),
|
202
|
+
onTimeChange: react_1.default.useRef(null),
|
203
|
+
onBackward: react_1.default.useRef(null),
|
204
|
+
onForward: react_1.default.useRef(null),
|
205
|
+
onStop: react_1.default.useRef(null),
|
206
|
+
startMediaSession: react_1.default.useRef(null),
|
207
|
+
updateMediaSession: react_1.default.useRef(null),
|
208
|
+
startMediaSessionOnPlay: react_1.default.useRef(null),
|
209
209
|
fullScreen: react_1.default.useRef(fullScreen),
|
210
210
|
mouseMoved: react_1.default.useRef(mouseMoved),
|
211
|
-
timeoutMouseMoved: react_1.default.useRef(
|
211
|
+
timeoutMouseMoved: react_1.default.useRef(null)
|
212
212
|
};
|
213
213
|
refs.duration.current = duration;
|
214
214
|
refs.time.current = time;
|
package/ViewSplit/ViewSplit.js
CHANGED
@@ -18,8 +18,8 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
18
|
const react_1 = __importDefault(require("react"));
|
19
19
|
const utils_1 = require("@onesy/utils");
|
20
20
|
const style_react_1 = require("@onesy/style-react");
|
21
|
-
const IconMaterialSwapHorizW100_1 = __importDefault(require("@
|
22
|
-
const IconMaterialSwapVertW100_1 = __importDefault(require("@
|
21
|
+
const IconMaterialSwapHorizW100_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialSwapHorizW100"));
|
22
|
+
const IconMaterialSwapVertW100_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialSwapVertW100"));
|
23
23
|
const Line_1 = __importDefault(require("../Line"));
|
24
24
|
const Divider_1 = __importDefault(require("../Divider"));
|
25
25
|
const IconButton_1 = __importDefault(require("../IconButton"));
|
package/Weather/Weather.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ISurface } from '../Surface/Surface';
|
3
3
|
import { ISize, IElementReference, IPropsAny } from '../types';
|
4
|
-
export
|
5
|
-
export
|
6
|
-
export
|
4
|
+
export type TWeatherDayTime = 'day' | 'night';
|
5
|
+
export type TWeather = 'clear' | 'partly clear' | 'rainy' | 'partly rainy' | 'snowy' | 'partly snowy';
|
6
|
+
export type TTemperature = number;
|
7
7
|
export interface IWeather extends ISurface {
|
8
8
|
size?: ISize;
|
9
9
|
shadow?: boolean;
|
package/Weather/Weather.js
CHANGED
@@ -18,11 +18,11 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
18
|
const react_1 = __importDefault(require("react"));
|
19
19
|
const utils_1 = require("@onesy/utils");
|
20
20
|
const style_react_1 = require("@onesy/style-react");
|
21
|
-
const IconMaterialCircleW100Filled_1 = __importDefault(require("@
|
22
|
-
const IconMaterialNightlightW100Filled_1 = __importDefault(require("@
|
23
|
-
const IconMaterialCloudW100Filled_1 = __importDefault(require("@
|
24
|
-
const IconMaterialRainyW100Filled_1 = __importDefault(require("@
|
25
|
-
const IconMaterialCloudySnowingW100Filled_1 = __importDefault(require("@
|
21
|
+
const IconMaterialCircleW100Filled_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialCircleW100Filled"));
|
22
|
+
const IconMaterialNightlightW100Filled_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialNightlightW100Filled"));
|
23
|
+
const IconMaterialCloudW100Filled_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialCloudW100Filled"));
|
24
|
+
const IconMaterialRainyW100Filled_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialRainyW100Filled"));
|
25
|
+
const IconMaterialCloudySnowingW100Filled_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialCloudySnowingW100Filled"));
|
26
26
|
const Surface_1 = __importDefault(require("../Surface"));
|
27
27
|
const Type_1 = __importDefault(require("../Type"));
|
28
28
|
const Fade_1 = __importDefault(require("../Fade"));
|
package/Widgets/Widgets.js
CHANGED
@@ -18,8 +18,8 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
18
|
const react_1 = __importDefault(require("react"));
|
19
19
|
const utils_1 = require("@onesy/utils");
|
20
20
|
const style_react_1 = require("@onesy/style-react");
|
21
|
-
const IconMaterialCloseW100_1 = __importDefault(require("@
|
22
|
-
const IconMaterialWidgetsW100_1 = __importDefault(require("@
|
21
|
+
const IconMaterialCloseW100_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialCloseW100"));
|
22
|
+
const IconMaterialWidgetsW100_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialWidgetsW100"));
|
23
23
|
const SpeedDial_1 = __importDefault(require("../SpeedDial"));
|
24
24
|
const SpeedDialItem_1 = __importDefault(require("../SpeedDialItem"));
|
25
25
|
const Transition_1 = __importDefault(require("../Transition"));
|
@@ -18,8 +18,8 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
18
|
const react_1 = __importDefault(require("react"));
|
19
19
|
const utils_1 = require("@onesy/utils");
|
20
20
|
const style_react_1 = require("@onesy/style-react");
|
21
|
-
const IconMaterialSwapHorizW100_1 = __importDefault(require("@
|
22
|
-
const IconMaterialSwapVertW100_1 = __importDefault(require("@
|
21
|
+
const IconMaterialSwapHorizW100_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialSwapHorizW100"));
|
22
|
+
const IconMaterialSwapVertW100_1 = __importDefault(require("@onesy/icons-material-rounded-react/IconMaterialSwapVertW100"));
|
23
23
|
const Line_1 = __importDefault(require("../Line"));
|
24
24
|
const Divider_1 = __importDefault(require("../Divider"));
|
25
25
|
const IconButton_1 = __importDefault(require("../IconButton"));
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
7
7
|
import React from 'react';
|
8
8
|
import { is } from '@onesy/utils';
|
9
9
|
import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
|
10
|
-
import IconMaterialExpandMore from '@
|
10
|
+
import IconMaterialExpandMore from '@onesy/icons-material-rounded-react/IconMaterialExpandMoreW100';
|
11
11
|
import SurfaceElement from '../Surface';
|
12
12
|
import FadeElement from '../Fade';
|
13
13
|
import ExpandElement from '../Expand';
|
@@ -205,7 +205,7 @@ const Accordion = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
205
205
|
button: React.useId(),
|
206
206
|
data: React.useId()
|
207
207
|
},
|
208
|
-
expandInProgress: React.useRef()
|
208
|
+
expandInProgress: React.useRef(null)
|
209
209
|
};
|
210
210
|
const {
|
211
211
|
classes
|
@@ -72,15 +72,15 @@ const AreaChartItem = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
72
72
|
classes
|
73
73
|
} = useStyle();
|
74
74
|
const refs = {
|
75
|
-
minMax: React.useRef(
|
76
|
-
smooth: React.useRef(
|
77
|
-
theme: React.useRef(
|
78
|
-
path: React.useRef(),
|
79
|
-
pathBackground: React.useRef(),
|
75
|
+
minMax: React.useRef(null),
|
76
|
+
smooth: React.useRef(null),
|
77
|
+
theme: React.useRef(null),
|
78
|
+
path: React.useRef(null),
|
79
|
+
pathBackground: React.useRef(null),
|
80
80
|
pathStyle: React.useRef({}),
|
81
|
-
animate: React.useRef(
|
82
|
-
animateTimeout: React.useRef(),
|
83
|
-
init: React.useRef(
|
81
|
+
animate: React.useRef(null),
|
82
|
+
animateTimeout: React.useRef(null),
|
83
|
+
init: React.useRef(null)
|
84
84
|
};
|
85
85
|
const keys = React.useMemo(() => {
|
86
86
|
const result = [];
|
@@ -8,15 +8,15 @@ import React from 'react';
|
|
8
8
|
import { clamp, getLeadingZerosNumber, is, isEnvironment } from '@onesy/utils';
|
9
9
|
import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
|
10
10
|
import { duration as durationMethod } from '@onesy/date';
|
11
|
-
import IconMaterialPlayArrow from '@
|
12
|
-
import IconMaterialPause from '@
|
13
|
-
import IconMaterialForwardMedia from '@
|
14
|
-
import IconMaterialVolumeDownAlt from '@
|
15
|
-
import IconMaterialVolumeOff from '@
|
16
|
-
import IconMaterialSettings from '@
|
17
|
-
import IconMaterialTune from '@
|
18
|
-
import IconMaterialSlowMotionVideo from '@
|
19
|
-
import IconMaterialArrowBackIos from '@
|
11
|
+
import IconMaterialPlayArrow from '@onesy/icons-material-rounded-react/IconMaterialPlayArrowW100';
|
12
|
+
import IconMaterialPause from '@onesy/icons-material-rounded-react/IconMaterialPauseW100';
|
13
|
+
import IconMaterialForwardMedia from '@onesy/icons-material-rounded-react/IconMaterialForwardMediaW100';
|
14
|
+
import IconMaterialVolumeDownAlt from '@onesy/icons-material-rounded-react/IconMaterialVolumeDownAltW100';
|
15
|
+
import IconMaterialVolumeOff from '@onesy/icons-material-rounded-react/IconMaterialVolumeOffW100';
|
16
|
+
import IconMaterialSettings from '@onesy/icons-material-rounded-react/IconMaterialSettingsW100';
|
17
|
+
import IconMaterialTune from '@onesy/icons-material-rounded-react/IconMaterialTuneW100';
|
18
|
+
import IconMaterialSlowMotionVideo from '@onesy/icons-material-rounded-react/IconMaterialSlowMotionVideoW100';
|
19
|
+
import IconMaterialArrowBackIos from '@onesy/icons-material-rounded-react/IconMaterialArrowBackIosW100';
|
20
20
|
import LineElement from '../Line';
|
21
21
|
import SurfaceElement from '../Surface';
|
22
22
|
import SliderElement from '../Slider';
|
@@ -188,22 +188,22 @@ const AudioPlayer = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
188
188
|
const [playbackSpeed, setPlaybackSpeed] = React.useState(1);
|
189
189
|
const [openMenu, setOpenMenu] = React.useState();
|
190
190
|
const refs = {
|
191
|
-
root: React.useRef(
|
192
|
-
audio: React.useRef(),
|
193
|
-
controls: React.useRef(
|
194
|
-
duration: React.useRef(
|
195
|
-
time: React.useRef(
|
196
|
-
play: React.useRef(
|
197
|
-
updating: React.useRef(
|
198
|
-
onPlay: React.useRef(
|
199
|
-
onPause: React.useRef(
|
200
|
-
onTimeChange: React.useRef(
|
201
|
-
onBackward: React.useRef(
|
202
|
-
onForward: React.useRef(
|
203
|
-
onStop: React.useRef(
|
204
|
-
startMediaSession: React.useRef(
|
205
|
-
updateMediaSession: React.useRef(
|
206
|
-
startMediaSessionOnPlay: React.useRef(
|
191
|
+
root: React.useRef(null),
|
192
|
+
audio: React.useRef(null),
|
193
|
+
controls: React.useRef(null),
|
194
|
+
duration: React.useRef(null),
|
195
|
+
time: React.useRef(null),
|
196
|
+
play: React.useRef(null),
|
197
|
+
updating: React.useRef(null),
|
198
|
+
onPlay: React.useRef(null),
|
199
|
+
onPause: React.useRef(null),
|
200
|
+
onTimeChange: React.useRef(null),
|
201
|
+
onBackward: React.useRef(null),
|
202
|
+
onForward: React.useRef(null),
|
203
|
+
onStop: React.useRef(null),
|
204
|
+
startMediaSession: React.useRef(null),
|
205
|
+
updateMediaSession: React.useRef(null),
|
206
|
+
startMediaSessionOnPlay: React.useRef(null)
|
207
207
|
};
|
208
208
|
refs.duration.current = duration;
|
209
209
|
refs.time.current = time;
|
@@ -8,11 +8,11 @@ import React from 'react';
|
|
8
8
|
import { getLeadingZerosNumber, is, isEnvironment } from '@onesy/utils';
|
9
9
|
import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
|
10
10
|
import { OnesyDate, duration } from '@onesy/date';
|
11
|
-
import IconMaterialMic from '@
|
12
|
-
import IconMaterialSend from '@
|
13
|
-
import IconMaterialPlayArrow from '@
|
14
|
-
import IconMaterialPause from '@
|
15
|
-
import IconMaterialStop from '@
|
11
|
+
import IconMaterialMic from '@onesy/icons-material-rounded-react/IconMaterialMicW100';
|
12
|
+
import IconMaterialSend from '@onesy/icons-material-rounded-react/IconMaterialSendW100';
|
13
|
+
import IconMaterialPlayArrow from '@onesy/icons-material-rounded-react/IconMaterialPlayArrowW100';
|
14
|
+
import IconMaterialPause from '@onesy/icons-material-rounded-react/IconMaterialPauseW100';
|
15
|
+
import IconMaterialStop from '@onesy/icons-material-rounded-react/IconMaterialStopW100';
|
16
16
|
import LineElement from '../Line';
|
17
17
|
import FadeElement from '../Fade';
|
18
18
|
import TypeElement from '../Type';
|
@@ -100,14 +100,14 @@ const AudioRecorder = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
100
100
|
classes
|
101
101
|
} = useStyle();
|
102
102
|
const refs = {
|
103
|
-
root: React.useRef(
|
104
|
-
mediaRecorder: React.useRef(),
|
103
|
+
root: React.useRef(null),
|
104
|
+
mediaRecorder: React.useRef(null),
|
105
105
|
mediaRecorderBytes: React.useRef([]),
|
106
106
|
start: React.useRef(0),
|
107
107
|
valuePaused: React.useRef(0),
|
108
|
-
value: React.useRef(
|
109
|
-
animationFrame: React.useRef(
|
110
|
-
onData: React.useRef(
|
108
|
+
value: React.useRef(null),
|
109
|
+
animationFrame: React.useRef(null),
|
110
|
+
onData: React.useRef(null)
|
111
111
|
};
|
112
112
|
refs.onData.current = onData;
|
113
113
|
const supported = isEnvironment('browser') && window.navigator.mediaDevices?.getUserMedia;
|
@@ -7,8 +7,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
7
7
|
import React from 'react';
|
8
8
|
import { getObjectValue, is, isEnvironment } from '@onesy/utils';
|
9
9
|
import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
|
10
|
-
import IconMaterialClose from '@
|
11
|
-
import IconMaterialArrowDropDown from '@
|
10
|
+
import IconMaterialClose from '@onesy/icons-material-rounded-react/IconMaterialCloseW100';
|
11
|
+
import IconMaterialArrowDropDown from '@onesy/icons-material-rounded-react/IconMaterialArrowDropDownW100';
|
12
12
|
import MenuElement from '../Menu';
|
13
13
|
import ChipElement from '../Chip';
|
14
14
|
import TypeElement from '../Type';
|
package/esm/Avatar/Avatar.js
CHANGED
@@ -5,11 +5,11 @@ const _excluded = ["tonal", "version", "size", "color", "image", "alt", "square"
|
|
5
5
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
7
7
|
import React from 'react';
|
8
|
+
import { stringToColor } from '@onesy/utils';
|
8
9
|
import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
|
9
10
|
import ButtonElement from '../Button';
|
10
11
|
import TypeElement from '../Type';
|
11
12
|
import { staticClassName } from '../utils';
|
12
|
-
import { stringToColor } from '@onesy/utils';
|
13
13
|
const useStyle = styleMethod(theme => ({
|
14
14
|
root: {
|
15
15
|
'&.onesy-Button-root': {
|
@@ -81,7 +81,7 @@ const Avatar = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
81
81
|
if (size === 'small') typeProps.size = '0.75rem';else if (size === 'regular') typeProps.size = '1rem';else if (size === 'large') typeProps.size = '1.25rem';else if (!['small', 'regular', 'large'].includes(size)) typeProps.size = `${size * 0.4 / 16}rem`;
|
82
82
|
children = /*#__PURE__*/React.createElement(Type, _extends({}, typeProps, TypeProps), children);
|
83
83
|
}
|
84
|
-
const color = color_ === 'auto' ? stringToColor(children_) : color_;
|
84
|
+
const color = color_ === 'auto' ? stringToColor(children_ || '') : color_;
|
85
85
|
return /*#__PURE__*/React.createElement(Button, _extends({
|
86
86
|
ref: ref,
|
87
87
|
tonal: tonal,
|
@@ -7,8 +7,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
7
7
|
import React from 'react';
|
8
8
|
import { clamp, is, unique } from '@onesy/utils';
|
9
9
|
import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
|
10
|
-
import IconMaterialNavigateNext from '@
|
11
|
-
import IconMaterialMoreHoriz from '@
|
10
|
+
import IconMaterialNavigateNext from '@onesy/icons-material-rounded-react/IconMaterialNavigateNextW100';
|
11
|
+
import IconMaterialMoreHoriz from '@onesy/icons-material-rounded-react/IconMaterialMoreHorizW100';
|
12
12
|
import LineElement from '../Line';
|
13
13
|
import TypeElement from '../Type';
|
14
14
|
import IconButtonElement from '../IconButton';
|
@@ -58,13 +58,13 @@ const BubbleChartItem = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
58
58
|
classes
|
59
59
|
} = useStyle();
|
60
60
|
const refs = {
|
61
|
-
minMax: React.useRef(
|
62
|
-
theme: React.useRef(
|
63
|
-
path: React.useRef(),
|
61
|
+
minMax: React.useRef(null),
|
62
|
+
theme: React.useRef(null),
|
63
|
+
path: React.useRef(null),
|
64
64
|
pathStyle: React.useRef({}),
|
65
|
-
animate: React.useRef(
|
66
|
-
animateTimeout: React.useRef(),
|
67
|
-
init: React.useRef(
|
65
|
+
animate: React.useRef(null),
|
66
|
+
animateTimeout: React.useRef(null),
|
67
|
+
init: React.useRef(null)
|
68
68
|
};
|
69
69
|
const keys = React.useMemo(() => {
|
70
70
|
const result = [];
|
package/esm/Calendar/Calendar.js
CHANGED
@@ -8,9 +8,9 @@ import React from 'react';
|
|
8
8
|
import { clamp, is, isEnvironment, Try } from '@onesy/utils';
|
9
9
|
import { classNames, style, useOnesyTheme } from '@onesy/style-react';
|
10
10
|
import { OnesyDate, add, remove, format, set } from '@onesy/date';
|
11
|
-
import IconMaterialNavigateBefore from '@
|
12
|
-
import IconMaterialNavigateNext from '@
|
13
|
-
import IconMaterialArrowDropDown from '@
|
11
|
+
import IconMaterialNavigateBefore from '@onesy/icons-material-rounded-react/IconMaterialNavigateBeforeW100';
|
12
|
+
import IconMaterialNavigateNext from '@onesy/icons-material-rounded-react/IconMaterialNavigateNextW100';
|
13
|
+
import IconMaterialArrowDropDown from '@onesy/icons-material-rounded-react/IconMaterialArrowDropDownW100';
|
14
14
|
import SurfaceElement from '../Surface';
|
15
15
|
import LineElement from '../Line';
|
16
16
|
import FadeElement from '../Fade';
|
@@ -192,10 +192,10 @@ const Calendar = /*#__PURE__*/React.forwardRef((props__, ref) => {
|
|
192
192
|
classes
|
193
193
|
} = useStyle();
|
194
194
|
const refs = {
|
195
|
-
root: React.useRef(
|
196
|
-
month: React.useRef(
|
197
|
-
year: React.useRef(
|
198
|
-
inProgressTransition: React.useRef()
|
195
|
+
root: React.useRef(null),
|
196
|
+
month: React.useRef(null),
|
197
|
+
year: React.useRef(null),
|
198
|
+
inProgressTransition: React.useRef(null)
|
199
199
|
};
|
200
200
|
const [value, setValue] = React.useState(() => {
|
201
201
|
const valueResult = (valueDefault !== undefined ? valueDefault : value_) || now && (range ? [new OnesyDate(), new OnesyDate()] : [new OnesyDate()]);
|
@@ -8,11 +8,11 @@ import React from 'react';
|
|
8
8
|
import { capitalize, cleanValue, is, textToInnerHTML } from '@onesy/utils';
|
9
9
|
import { style as styleMethod, classNames, useOnesyTheme, colors } from '@onesy/style-react';
|
10
10
|
import { OnesyDate, add, endOf, format, remove, set, startOf } from '@onesy/date';
|
11
|
-
import IconMaterialEdit from '@
|
12
|
-
import IconMaterialKeyboardArrowDown from '@
|
13
|
-
import IconMaterialArrowForwardIos from '@
|
14
|
-
import IconMaterialArrowBackIosNew from '@
|
15
|
-
import IconMaterialDelete from '@
|
11
|
+
import IconMaterialEdit from '@onesy/icons-material-rounded-react/IconMaterialEditW100';
|
12
|
+
import IconMaterialKeyboardArrowDown from '@onesy/icons-material-rounded-react/IconMaterialKeyboardArrowDownW100';
|
13
|
+
import IconMaterialArrowForwardIos from '@onesy/icons-material-rounded-react/IconMaterialArrowForwardIosW100';
|
14
|
+
import IconMaterialArrowBackIosNew from '@onesy/icons-material-rounded-react/IconMaterialArrowBackIosNewW100';
|
15
|
+
import IconMaterialDelete from '@onesy/icons-material-rounded-react/IconMaterialDeleteW100';
|
16
16
|
import CalendarWeekElement from '../CalendarWeek';
|
17
17
|
import SelectElement from '../Select';
|
18
18
|
import ButtonElement from '../Button';
|
@@ -8,12 +8,12 @@ import React from 'react';
|
|
8
8
|
import { hash, is } from '@onesy/utils';
|
9
9
|
import { classNames, style, useOnesyTheme } from '@onesy/style-react';
|
10
10
|
import { OnesyDate, add, diff, format, is as isDate } from '@onesy/date';
|
11
|
-
import IconMaterialScheduleRounded from '@
|
12
|
-
import IconMaterialWbSunnyRounded from '@
|
13
|
-
import IconMaterialWbTwilightRounded from '@
|
14
|
-
import IconMaterialCounter7Rounded from '@
|
15
|
-
import IconMaterialCalendarMonthRounded from '@
|
16
|
-
import IconMaterialDeleteRounded from '@
|
11
|
+
import IconMaterialScheduleRounded from '@onesy/icons-material-rounded-react/IconMaterialScheduleW100';
|
12
|
+
import IconMaterialWbSunnyRounded from '@onesy/icons-material-rounded-react/IconMaterialWbSunnyW100';
|
13
|
+
import IconMaterialWbTwilightRounded from '@onesy/icons-material-rounded-react/IconMaterialWbTwilightW100';
|
14
|
+
import IconMaterialCounter7Rounded from '@onesy/icons-material-rounded-react/IconMaterialCounter7W100';
|
15
|
+
import IconMaterialCalendarMonthRounded from '@onesy/icons-material-rounded-react/IconMaterialCalendarMonthW100';
|
16
|
+
import IconMaterialDeleteRounded from '@onesy/icons-material-rounded-react/IconMaterialDeleteW100';
|
17
17
|
import MenuElement from '../Menu';
|
18
18
|
import CalendarElement from '../Calendar';
|
19
19
|
import LineElement from '../Line';
|
@@ -232,8 +232,8 @@ const CalendarMonth = /*#__PURE__*/React.forwardRef((props__, ref) => {
|
|
232
232
|
id: React.useRef(`${month.year} ${month.month}`),
|
233
233
|
previous: React.useRef(month),
|
234
234
|
previousTheme: React.useRef(theme.palette.light),
|
235
|
-
move: React.useRef(),
|
236
|
-
noTransition: React.useRef(
|
235
|
+
move: React.useRef(null),
|
236
|
+
noTransition: React.useRef(null)
|
237
237
|
};
|
238
238
|
const weekStartDay = !['Monday', 'Sunday'].includes(weekStartDay_) ? 'Monday' : weekStartDay_;
|
239
239
|
|
@@ -8,8 +8,8 @@ import React from 'react';
|
|
8
8
|
import { capitalize, is } from '@onesy/utils';
|
9
9
|
import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
|
10
10
|
import { add, OnesyDate, endOf, format, remove, startOf } from '@onesy/date';
|
11
|
-
import IconMaterialArrowBackIosNew from '@
|
12
|
-
import IconMaterialArrowForwardIos from '@
|
11
|
+
import IconMaterialArrowBackIosNew from '@onesy/icons-material-rounded-react/IconMaterialArrowBackIosNewW100';
|
12
|
+
import IconMaterialArrowForwardIos from '@onesy/icons-material-rounded-react/IconMaterialArrowForwardIosW100';
|
13
13
|
import CalendarWeekElement from '../CalendarWeek';
|
14
14
|
import CalendarMonthElement from '../CalendarMonth';
|
15
15
|
import IconButtonElement from '../IconButton';
|
package/esm/Carousel/Carousel.js
CHANGED
@@ -7,8 +7,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
7
7
|
import React from 'react';
|
8
8
|
import { is, unique, clamp, debounce, equalDeep, isEnvironment } from '@onesy/utils';
|
9
9
|
import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
|
10
|
-
import IconMaterialNavigateBefore from '@
|
11
|
-
import IconMaterialNavigateNext from '@
|
10
|
+
import IconMaterialNavigateBefore from '@onesy/icons-material-rounded-react/IconMaterialNavigateBeforeW100';
|
11
|
+
import IconMaterialNavigateNext from '@onesy/icons-material-rounded-react/IconMaterialNavigateNextW100';
|
12
12
|
import LineElement from '../Line';
|
13
13
|
import FadeElement from '../Fade';
|
14
14
|
import IconButtonElement from '../IconButton';
|
package/esm/Chip/Chip.js
CHANGED
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
7
7
|
import React from 'react';
|
8
8
|
import { is } from '@onesy/utils';
|
9
9
|
import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
|
10
|
-
import IconMaterialClose from '@
|
10
|
+
import IconMaterialClose from '@onesy/icons-material-rounded-react/IconMaterialCloseW100';
|
11
11
|
import ButtonElement from '../Button';
|
12
12
|
import { IconDoneAnimated } from '../Buttons/Buttons';
|
13
13
|
import { staticClassName } from '../utils';
|
package/esm/Clock/Clock.js
CHANGED
@@ -71,17 +71,17 @@ const Clock = /*#__PURE__*/React.forwardRef((props__, ref) => {
|
|
71
71
|
const [selecting, setSelecting] = React.useState((selectingDefault !== undefined ? selectingDefault : selecting_) || 'hour');
|
72
72
|
const [mouseDown, setMouseDown] = React.useState(false);
|
73
73
|
const refs = {
|
74
|
-
root: React.useRef(
|
75
|
-
middle: React.useRef(
|
76
|
-
mouseDown: React.useRef(
|
77
|
-
value: React.useRef(),
|
78
|
-
selecting: React.useRef(),
|
79
|
-
autoNext: React.useRef(),
|
80
|
-
hour: React.useRef(),
|
81
|
-
minute: React.useRef(),
|
82
|
-
second: React.useRef(),
|
83
|
-
format: React.useRef(),
|
84
|
-
dayTime: React.useRef(
|
74
|
+
root: React.useRef(null),
|
75
|
+
middle: React.useRef(null),
|
76
|
+
mouseDown: React.useRef(null),
|
77
|
+
value: React.useRef(null),
|
78
|
+
selecting: React.useRef(null),
|
79
|
+
autoNext: React.useRef(null),
|
80
|
+
hour: React.useRef(null),
|
81
|
+
minute: React.useRef(null),
|
82
|
+
second: React.useRef(null),
|
83
|
+
format: React.useRef(null),
|
84
|
+
dayTime: React.useRef(null),
|
85
85
|
previous: React.useRef(selecting)
|
86
86
|
};
|
87
87
|
refs.mouseDown.current = mouseDown;
|
@@ -54,13 +54,13 @@ const ColumnChartItem = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
54
54
|
classes
|
55
55
|
} = useStyle();
|
56
56
|
const refs = {
|
57
|
-
minMax: React.useRef(
|
58
|
-
theme: React.useRef(
|
59
|
-
path: React.useRef(),
|
57
|
+
minMax: React.useRef(null),
|
58
|
+
theme: React.useRef(null),
|
59
|
+
path: React.useRef(null),
|
60
60
|
pathStyle: React.useRef({}),
|
61
|
-
animate: React.useRef(
|
62
|
-
animateTimeout: React.useRef(),
|
63
|
-
init: React.useRef(
|
61
|
+
animate: React.useRef(null),
|
62
|
+
animateTimeout: React.useRef(null),
|
63
|
+
init: React.useRef(null)
|
64
64
|
};
|
65
65
|
const keys = React.useMemo(() => {
|
66
66
|
const result = [];
|
package/esm/Confirm/Confirm.js
CHANGED
@@ -62,11 +62,11 @@ const Confirm = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
62
62
|
const [openModal, setOpenModal] = React.useState(false);
|
63
63
|
const refs = {
|
64
64
|
value: React.useRef({}),
|
65
|
-
modal: React.useRef(),
|
66
|
-
props: React.useRef(
|
65
|
+
modal: React.useRef(null),
|
66
|
+
props: React.useRef(null),
|
67
67
|
promise: {
|
68
|
-
resolve: React.useRef(
|
69
|
-
reject: React.useRef(
|
68
|
+
resolve: React.useRef(null),
|
69
|
+
reject: React.useRef(null)
|
70
70
|
}
|
71
71
|
};
|
72
72
|
refs.props.current = props;
|
@@ -8,10 +8,10 @@ import React from 'react';
|
|
8
8
|
import { clamp, getLeadingZerosNumber, is } from '@onesy/utils';
|
9
9
|
import { OnesyDate, duration } from '@onesy/date';
|
10
10
|
import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
|
11
|
-
import IconMaterialAvTimer from '@
|
12
|
-
import IconMaterialPlayArrow from '@
|
13
|
-
import IconMaterialPause from '@
|
14
|
-
import IconMaterialStop from '@
|
11
|
+
import IconMaterialAvTimer from '@onesy/icons-material-rounded-react/IconMaterialAvTimerW100';
|
12
|
+
import IconMaterialPlayArrow from '@onesy/icons-material-rounded-react/IconMaterialPlayArrowW100';
|
13
|
+
import IconMaterialPause from '@onesy/icons-material-rounded-react/IconMaterialPauseW100';
|
14
|
+
import IconMaterialStop from '@onesy/icons-material-rounded-react/IconMaterialStopW100';
|
15
15
|
import FadeElement from '../Fade';
|
16
16
|
import TypeElement from '../Type';
|
17
17
|
import TooltipElement from '../Tooltip';
|
@@ -8,9 +8,9 @@ import React from 'react';
|
|
8
8
|
import { is, unique } from '@onesy/utils';
|
9
9
|
import { OnesyDate, endOf, format, is as isOnesyDate, startOf } from '@onesy/date';
|
10
10
|
import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
|
11
|
-
import IconMaterialCalendarToday from '@
|
12
|
-
import IconMaterialEdit from '@
|
13
|
-
import IconMaterialClose from '@
|
11
|
+
import IconMaterialCalendarToday from '@onesy/icons-material-rounded-react/IconMaterialCalendarTodayW100Filled';
|
12
|
+
import IconMaterialEdit from '@onesy/icons-material-rounded-react/IconMaterialEditW100';
|
13
|
+
import IconMaterialClose from '@onesy/icons-material-rounded-react/IconMaterialCloseW100';
|
14
14
|
import IconButtonElement from '../IconButton';
|
15
15
|
import ButtonElement from '../Button';
|
16
16
|
import AdvancedTextFieldElement from '../AdvancedTextField';
|