@onesy/ui-react 1.0.58 → 1.0.60
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/AudioPlayer/AudioPlayer.js +6 -23
- package/AudioRecorder/AudioRecorder.js +2 -1
- package/AutoComplete/AutoComplete.js +5 -4
- package/AutoCompleteCountry/AutoCompleteCountry.js +2 -1
- package/AutoCompleteCurrency/AutoCompleteCurrency.js +2 -1
- package/Breadcrumbs/Breadcrumbs.js +3 -2
- package/BubbleChart/BubbleChart.js +3 -2
- package/Calendar/Calendar.js +7 -6
- package/CalendarAvailability/CalendarAvailability.d.ts +4 -1
- package/CalendarAvailability/CalendarAvailability.js +23 -18
- package/CalendarMenu/CalendarMenu.js +6 -5
- package/CalendarMonth/CalendarMonth.js +8 -7
- package/CalendarViews/CalendarViews.d.ts +4 -1
- package/CalendarViews/CalendarViews.js +17 -12
- package/Chart/Chart.js +1 -0
- package/ColorTextField/ColorTextField.js +2 -1
- package/Confirm/Confirm.js +4 -3
- package/CookieBanner/CookieBanner.js +3 -2
- package/Countdown/Countdown.js +5 -4
- package/DatePicker/DatePicker.js +10 -9
- package/DateTimePicker/DateTimePicker.js +5 -4
- package/Drawing/Drawing.js +9 -8
- package/DropZone/DropZone.d.ts +1 -0
- package/DropZone/DropZone.js +3 -2
- package/Emojis/Emojis.js +46 -43
- package/Frame/Frame.js +6 -5
- package/ImageEdit/ImageEdit.js +21 -20
- package/Info/Info.js +2 -1
- package/Links/Links.d.ts +2 -0
- package/Links/Links.js +7 -6
- package/Medias/Medias.js +2 -1
- package/MenuDesktop/MenuDesktop.js +1 -3
- package/NavigationItem/NavigationItem.js +1 -1
- package/NotFound/NotFound.d.ts +1 -0
- package/NotFound/NotFound.js +3 -2
- package/Page/Page.js +2 -1
- package/PieChart/PieChart.js +4 -3
- package/RichTextEditor/RichTextEditor.js +57 -56
- package/ScreenCapture/ScreenCapture.js +2 -1
- package/SectionAction/SectionAction.js +2 -1
- package/SectionBoxes/SectionBoxes.js +2 -1
- package/SectionCards/SectionCards.js +2 -1
- package/SectionCarousel/SectionCarousel.js +2 -1
- package/SectionMedia/SectionMedia.js +2 -1
- package/SectionTextMedia/SectionTextMedia.js +2 -1
- package/Select/Select.js +9 -14
- package/Share/Share.js +15 -14
- package/SmartTextField/SmartTextField.js +13 -12
- package/SpeechToText/SpeechToText.js +3 -2
- package/SpeedDial/SpeedDial.js +1 -1
- package/SpeedDialItem/SpeedDialItem.js +1 -1
- package/TableCell/TableCell.js +2 -1
- package/TablePagination/TablePagination.js +2 -1
- package/TextField/TextField.d.ts +1 -0
- package/TextToSpeech/TextToSpeech.js +4 -3
- package/TimePicker/TimePicker.js +9 -8
- package/Timer/Timer.js +3 -2
- package/VideoPlayer/VideoPlayer.js +5 -4
- package/Widgets/Widgets.js +3 -2
- package/esm/AudioPlayer/AudioPlayer.js +7 -30
- package/esm/AudioRecorder/AudioRecorder.js +8 -7
- package/esm/AutoComplete/AutoComplete.js +5 -4
- package/esm/AutoCompleteCountry/AutoCompleteCountry.js +2 -0
- package/esm/AutoCompleteCurrency/AutoCompleteCurrency.js +2 -1
- package/esm/Breadcrumbs/Breadcrumbs.js +3 -2
- package/esm/BubbleChart/BubbleChart.js +3 -2
- package/esm/Calendar/Calendar.js +9 -8
- package/esm/CalendarAvailability/CalendarAvailability.js +31 -21
- package/esm/CalendarMenu/CalendarMenu.js +7 -6
- package/esm/CalendarMonth/CalendarMonth.js +8 -7
- package/esm/CalendarViews/CalendarViews.js +25 -15
- package/esm/Chart/Chart.js +1 -0
- package/esm/ColorTextField/ColorTextField.js +2 -1
- package/esm/Confirm/Confirm.js +7 -6
- package/esm/CookieBanner/CookieBanner.js +4 -3
- package/esm/Countdown/Countdown.js +10 -9
- package/esm/DatePicker/DatePicker.js +22 -21
- package/esm/DateTimePicker/DateTimePicker.js +11 -10
- package/esm/Drawing/Drawing.js +11 -10
- package/esm/DropZone/DropZone.js +4 -2
- package/esm/Emojis/Emojis.js +37 -34
- package/esm/Frame/Frame.js +6 -5
- package/esm/ImageEdit/ImageEdit.js +25 -24
- package/esm/Info/Info.js +2 -1
- package/esm/Links/Links.js +9 -6
- package/esm/Medias/Medias.js +2 -1
- package/esm/MenuDesktop/MenuDesktop.js +1 -2
- package/esm/NavigationItem/NavigationItem.js +1 -1
- package/esm/NotFound/NotFound.js +5 -3
- package/esm/Page/Page.js +3 -2
- package/esm/PieChart/PieChart.js +4 -4
- package/esm/RichTextEditor/RichTextEditor.js +76 -75
- package/esm/ScreenCapture/ScreenCapture.js +4 -3
- package/esm/SectionAction/SectionAction.js +2 -1
- package/esm/SectionBoxes/SectionBoxes.js +2 -1
- package/esm/SectionCards/SectionCards.js +2 -1
- package/esm/SectionCarousel/SectionCarousel.js +2 -1
- package/esm/SectionMedia/SectionMedia.js +2 -1
- package/esm/SectionTextMedia/SectionTextMedia.js +2 -1
- package/esm/Select/Select.js +11 -7
- package/esm/Share/Share.js +16 -15
- package/esm/SmartTextField/SmartTextField.js +15 -14
- package/esm/SpeechToText/SpeechToText.js +3 -2
- package/esm/SpeedDial/SpeedDial.js +1 -1
- package/esm/SpeedDialItem/SpeedDialItem.js +1 -1
- package/esm/TableCell/TableCell.js +2 -1
- package/esm/TablePagination/TablePagination.js +2 -1
- package/esm/TextToSpeech/TextToSpeech.js +4 -3
- package/esm/TimePicker/TimePicker.js +19 -18
- package/esm/Timer/Timer.js +7 -6
- package/esm/VideoPlayer/VideoPlayer.js +7 -6
- package/esm/Widgets/Widgets.js +3 -2
- package/esm/index.js +1 -1
- package/package.json +2 -2
@@ -153,6 +153,7 @@ const useStyle = styleMethod(theme => ({
|
|
153
153
|
});
|
154
154
|
const VideoPlayer = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
155
155
|
const theme = useOnesyTheme();
|
156
|
+
const l = theme.l;
|
156
157
|
const props = React.useMemo(() => _objectSpread(_objectSpread(_objectSpread({}, theme?.ui?.elements?.all?.props?.default), theme?.ui?.elements?.onesyVideoPlayer?.props?.default), props_), [props_]);
|
157
158
|
const Line = React.useMemo(() => theme?.elements?.Line || LineElement, [theme]);
|
158
159
|
const Surface = React.useMemo(() => theme?.elements?.Surface || SurfaceElement, [theme]);
|
@@ -604,7 +605,7 @@ const VideoPlayer = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
604
605
|
}),
|
605
606
|
primary: /*#__PURE__*/React.createElement(Type, {
|
606
607
|
version: "b3"
|
607
|
-
},
|
608
|
+
}, l('Back')),
|
608
609
|
onClick: () => setOpenMenu(null)
|
609
610
|
}, itemProps)));
|
610
611
|
}
|
@@ -616,11 +617,11 @@ const VideoPlayer = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
616
617
|
}),
|
617
618
|
primary: /*#__PURE__*/React.createElement(Type, {
|
618
619
|
version: "b3"
|
619
|
-
},
|
620
|
+
}, l('Playback speed')),
|
620
621
|
end: /*#__PURE__*/React.createElement(Type, {
|
621
622
|
version: "b3",
|
622
623
|
priority: "secondary"
|
623
|
-
}, playbackSpeed === 1 ? 'Normal' : playbackSpeed),
|
624
|
+
}, playbackSpeed === 1 ? l('Normal') : playbackSpeed),
|
624
625
|
onClick: () => setOpenMenu('playbackSpeed')
|
625
626
|
}, itemProps)));
|
626
627
|
if (quality_) items.push(/*#__PURE__*/React.createElement(ListItem, _extends({
|
@@ -630,11 +631,11 @@ const VideoPlayer = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
630
631
|
}),
|
631
632
|
primary: /*#__PURE__*/React.createElement(Type, {
|
632
633
|
version: "b3"
|
633
|
-
},
|
634
|
+
}, l('Quality')),
|
634
635
|
end: /*#__PURE__*/React.createElement(Type, {
|
635
636
|
version: "b3",
|
636
637
|
priority: "secondary"
|
637
|
-
}, !quality ? 'Original' : `${quality?.meta?.resolution}p`),
|
638
|
+
}, !quality ? l('Original') : `${quality?.meta?.resolution}p`),
|
638
639
|
onClick: () => setOpenMenu('quality')
|
639
640
|
}, itemProps)));
|
640
641
|
} else if (openMenu === 'quality') {
|
@@ -664,7 +665,7 @@ const VideoPlayer = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
664
665
|
key: option,
|
665
666
|
primary: /*#__PURE__*/React.createElement(Type, {
|
666
667
|
version: "b3"
|
667
|
-
}, option === 1 ? 'Normal' : option),
|
668
|
+
}, option === 1 ? l('Normal') : option),
|
668
669
|
onClick: () => onPlaybackSpeed(option),
|
669
670
|
selected: playbackSpeed === option
|
670
671
|
}, itemProps)));
|
package/esm/Widgets/Widgets.js
CHANGED
@@ -89,6 +89,7 @@ const useStyle = styleMethod(theme => ({
|
|
89
89
|
});
|
90
90
|
const Widgets = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
91
91
|
const theme = useOnesyTheme();
|
92
|
+
const l = theme.l;
|
92
93
|
const props = React.useMemo(() => _objectSpread(_objectSpread(_objectSpread({}, theme?.ui?.elements?.all?.props?.default), theme?.ui?.elements?.onesyWidgets?.props?.default), props_), [props_]);
|
93
94
|
const SpeedDial = React.useMemo(() => theme?.elements?.SpeedDial || SpeedDialElement, [theme]);
|
94
95
|
const SpeedDialItem = React.useMemo(() => theme?.elements?.SpeedDialItem || SpeedDialItemElement, [theme]);
|
@@ -156,12 +157,12 @@ const Widgets = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
156
157
|
alignment: "start",
|
157
158
|
Icon: Icon_,
|
158
159
|
noRotate: true
|
159
|
-
}, SpeedDialProps), widgets.map((item, index) => {
|
160
|
+
}, SpeedDialProps, other), widgets.map((item, index) => {
|
160
161
|
const valueItem = item.value !== undefined ? item.value : item.label;
|
161
162
|
return /*#__PURE__*/React.createElement(SpeedDialItem, {
|
162
163
|
key: index,
|
163
164
|
onClick: () => !openItems.includes(valueItem) ? open(valueItem) : close(valueItem),
|
164
|
-
label: !openItems.includes(valueItem) ? item.label :
|
165
|
+
label: !openItems.includes(valueItem) ? item.label : `${l('Close')} ${item.label}`,
|
165
166
|
Icon: item.Icon
|
166
167
|
});
|
167
168
|
})), widgetsToUse.map((item, index) => {
|
package/esm/index.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@onesy/ui-react",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.60",
|
4
4
|
"description": "UI for React",
|
5
5
|
"repository": "https://github.com/onesy-me/onesy.git",
|
6
6
|
"author": "Lazar <lazareric2@gmail.com>",
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"utils"
|
31
31
|
],
|
32
32
|
"peerDependencies": {
|
33
|
-
"@onesy/style-react": "^1.0.
|
33
|
+
"@onesy/style-react": "^1.0.2",
|
34
34
|
"react": "^18.2.0",
|
35
35
|
"react-dom": "^18.2.0",
|
36
36
|
"react-router-dom": "^6.15.0"
|