@onesy/ui-react 1.0.59 → 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.
Files changed (114) hide show
  1. package/AudioPlayer/AudioPlayer.js +6 -23
  2. package/AudioRecorder/AudioRecorder.js +2 -1
  3. package/AutoComplete/AutoComplete.js +5 -4
  4. package/AutoCompleteCountry/AutoCompleteCountry.js +2 -1
  5. package/AutoCompleteCurrency/AutoCompleteCurrency.js +2 -1
  6. package/Breadcrumbs/Breadcrumbs.js +3 -2
  7. package/BubbleChart/BubbleChart.js +3 -2
  8. package/Calendar/Calendar.js +7 -6
  9. package/CalendarAvailability/CalendarAvailability.d.ts +4 -1
  10. package/CalendarAvailability/CalendarAvailability.js +23 -18
  11. package/CalendarMenu/CalendarMenu.js +6 -5
  12. package/CalendarMonth/CalendarMonth.js +8 -7
  13. package/CalendarViews/CalendarViews.d.ts +4 -1
  14. package/CalendarViews/CalendarViews.js +17 -12
  15. package/Chart/Chart.js +1 -0
  16. package/ColorTextField/ColorTextField.js +2 -1
  17. package/Confirm/Confirm.js +4 -3
  18. package/CookieBanner/CookieBanner.js +3 -2
  19. package/Countdown/Countdown.js +5 -4
  20. package/DatePicker/DatePicker.js +10 -9
  21. package/DateTimePicker/DateTimePicker.js +5 -4
  22. package/Drawing/Drawing.js +9 -8
  23. package/DropZone/DropZone.d.ts +1 -0
  24. package/DropZone/DropZone.js +3 -2
  25. package/Emojis/Emojis.js +46 -43
  26. package/Frame/Frame.js +6 -5
  27. package/ImageEdit/ImageEdit.js +21 -20
  28. package/Info/Info.js +2 -1
  29. package/Links/Links.d.ts +2 -0
  30. package/Links/Links.js +7 -6
  31. package/Medias/Medias.js +2 -1
  32. package/MenuDesktop/MenuDesktop.js +1 -3
  33. package/NavigationItem/NavigationItem.js +1 -1
  34. package/NotFound/NotFound.d.ts +1 -0
  35. package/NotFound/NotFound.js +3 -2
  36. package/Page/Page.js +2 -1
  37. package/PieChart/PieChart.js +4 -3
  38. package/RichTextEditor/RichTextEditor.js +57 -56
  39. package/ScreenCapture/ScreenCapture.js +2 -1
  40. package/SectionAction/SectionAction.js +2 -1
  41. package/SectionBoxes/SectionBoxes.js +2 -1
  42. package/SectionCards/SectionCards.js +2 -1
  43. package/SectionCarousel/SectionCarousel.js +2 -1
  44. package/SectionMedia/SectionMedia.js +2 -1
  45. package/SectionTextMedia/SectionTextMedia.js +2 -1
  46. package/Select/Select.js +2 -1
  47. package/Share/Share.js +15 -14
  48. package/SmartTextField/SmartTextField.js +13 -12
  49. package/SpeechToText/SpeechToText.js +3 -2
  50. package/SpeedDial/SpeedDial.js +1 -1
  51. package/SpeedDialItem/SpeedDialItem.js +1 -1
  52. package/TableCell/TableCell.js +2 -1
  53. package/TablePagination/TablePagination.js +2 -1
  54. package/TextField/TextField.d.ts +1 -0
  55. package/TextToSpeech/TextToSpeech.js +4 -3
  56. package/TimePicker/TimePicker.js +9 -8
  57. package/Timer/Timer.js +3 -2
  58. package/VideoPlayer/VideoPlayer.js +5 -4
  59. package/Widgets/Widgets.js +3 -2
  60. package/esm/AudioPlayer/AudioPlayer.js +7 -30
  61. package/esm/AudioRecorder/AudioRecorder.js +8 -7
  62. package/esm/AutoComplete/AutoComplete.js +5 -4
  63. package/esm/AutoCompleteCountry/AutoCompleteCountry.js +2 -0
  64. package/esm/AutoCompleteCurrency/AutoCompleteCurrency.js +2 -1
  65. package/esm/Breadcrumbs/Breadcrumbs.js +3 -2
  66. package/esm/BubbleChart/BubbleChart.js +3 -2
  67. package/esm/Calendar/Calendar.js +9 -8
  68. package/esm/CalendarAvailability/CalendarAvailability.js +31 -21
  69. package/esm/CalendarMenu/CalendarMenu.js +7 -6
  70. package/esm/CalendarMonth/CalendarMonth.js +8 -7
  71. package/esm/CalendarViews/CalendarViews.js +25 -15
  72. package/esm/Chart/Chart.js +1 -0
  73. package/esm/ColorTextField/ColorTextField.js +2 -1
  74. package/esm/Confirm/Confirm.js +7 -6
  75. package/esm/CookieBanner/CookieBanner.js +4 -3
  76. package/esm/Countdown/Countdown.js +10 -9
  77. package/esm/DatePicker/DatePicker.js +22 -21
  78. package/esm/DateTimePicker/DateTimePicker.js +11 -10
  79. package/esm/Drawing/Drawing.js +11 -10
  80. package/esm/DropZone/DropZone.js +4 -2
  81. package/esm/Emojis/Emojis.js +37 -34
  82. package/esm/Frame/Frame.js +6 -5
  83. package/esm/ImageEdit/ImageEdit.js +25 -24
  84. package/esm/Info/Info.js +2 -1
  85. package/esm/Links/Links.js +9 -6
  86. package/esm/Medias/Medias.js +2 -1
  87. package/esm/MenuDesktop/MenuDesktop.js +1 -2
  88. package/esm/NavigationItem/NavigationItem.js +1 -1
  89. package/esm/NotFound/NotFound.js +5 -3
  90. package/esm/Page/Page.js +3 -2
  91. package/esm/PieChart/PieChart.js +4 -4
  92. package/esm/RichTextEditor/RichTextEditor.js +76 -75
  93. package/esm/ScreenCapture/ScreenCapture.js +4 -3
  94. package/esm/SectionAction/SectionAction.js +2 -1
  95. package/esm/SectionBoxes/SectionBoxes.js +2 -1
  96. package/esm/SectionCards/SectionCards.js +2 -1
  97. package/esm/SectionCarousel/SectionCarousel.js +2 -1
  98. package/esm/SectionMedia/SectionMedia.js +2 -1
  99. package/esm/SectionTextMedia/SectionTextMedia.js +2 -1
  100. package/esm/Select/Select.js +2 -1
  101. package/esm/Share/Share.js +16 -15
  102. package/esm/SmartTextField/SmartTextField.js +15 -14
  103. package/esm/SpeechToText/SpeechToText.js +3 -2
  104. package/esm/SpeedDial/SpeedDial.js +1 -1
  105. package/esm/SpeedDialItem/SpeedDialItem.js +1 -1
  106. package/esm/TableCell/TableCell.js +2 -1
  107. package/esm/TablePagination/TablePagination.js +2 -1
  108. package/esm/TextToSpeech/TextToSpeech.js +4 -3
  109. package/esm/TimePicker/TimePicker.js +19 -18
  110. package/esm/Timer/Timer.js +7 -6
  111. package/esm/VideoPlayer/VideoPlayer.js +7 -6
  112. package/esm/Widgets/Widgets.js +3 -2
  113. package/esm/index.js +1 -1
  114. package/package.json +2 -2
@@ -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 : `Close ${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
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.59
1
+ /** @license UiReact v1.0.60
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesy/ui-react",
3
- "version": "1.0.59",
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.1",
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"