@rio-cloud/rio-uikit 0.16.1-beta.23 → 0.16.1

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 (299) hide show
  1. package/ActionBarItem.d.ts +1 -1
  2. package/ActionBarItemList.d.ts +1 -1
  3. package/ActionBarItemListItem.d.ts +1 -1
  4. package/ActionBarItemListSeparator.d.ts +1 -1
  5. package/Activity.d.ts +1 -1
  6. package/AnimatedNumber.d.ts +1 -1
  7. package/AppNavigationBar.d.ts +1 -1
  8. package/ApplicationHeader.d.ts +1 -1
  9. package/ApplicationLayout.d.ts +1 -1
  10. package/ApplicationLayoutBodyBanner.d.ts +1 -1
  11. package/ApplicationLayoutBodyBottomBar.d.ts +1 -1
  12. package/ApplicationLayoutBodyNavigation.d.ts +1 -1
  13. package/Area.d.ts +1 -1
  14. package/AreaChart.d.ts +1 -1
  15. package/AreaGradient.d.ts +1 -1
  16. package/AssetTree.d.ts +1 -1
  17. package/AutoSuggest.d.ts +6 -5
  18. package/Bar.d.ts +5 -2
  19. package/BarChart.d.ts +1 -1
  20. package/BottomSheet.d.ts +1 -1
  21. package/BrowserWarning.d.ts +1 -1
  22. package/Button.d.ts +24 -2
  23. package/ButtonDropdown.d.ts +1 -1
  24. package/Carousel.d.ts +3 -1
  25. package/ChartNeedle.d.ts +1 -1
  26. package/ChartTooltip.d.ts +1 -1
  27. package/Checkbox.d.ts +1 -1
  28. package/Circle.d.ts +1 -1
  29. package/ClearableInput.d.ts +1 -1
  30. package/ClusterLayer.d.ts +1 -1
  31. package/ClusterMapMarker.d.ts +1 -1
  32. package/ClusterUtils.d.ts +1 -1
  33. package/Collapse.d.ts +1 -1
  34. package/Colors.d.ts +1 -1
  35. package/ConfirmationDialog.d.ts +9 -2
  36. package/ContentLoader.d.ts +5 -2
  37. package/ContextMenu.d.ts +1 -1
  38. package/ContextMenuItem.d.ts +1 -1
  39. package/CustomState.d.ts +1 -1
  40. package/DataTab.d.ts +1 -1
  41. package/DataTabs.d.ts +1 -1
  42. package/DatePicker.d.ts +1 -1
  43. package/DateRangePicker.d.ts +1 -1
  44. package/DeviceUtils.d.ts +1 -1
  45. package/Dialog.d.ts +1 -1
  46. package/DomMarker.d.ts +1 -1
  47. package/DropdownSubmenu.d.ts +1 -1
  48. package/EmptyState.d.ts +1 -1
  49. package/EnhancedMapEvent.d.ts +1 -1
  50. package/ErrorState.d.ts +1 -1
  51. package/EventUtils.d.ts +1 -1
  52. package/ExpanderList.d.ts +5 -5
  53. package/ExpanderPanel.d.ts +1 -1
  54. package/Fade.d.ts +11 -2
  55. package/FilePicker.d.ts +6 -2
  56. package/ForbiddenState.d.ts +1 -1
  57. package/ImagePreloader.d.ts +1 -1
  58. package/IncidentsLayer.d.ts +1 -1
  59. package/InfoDialog.d.ts +1 -1
  60. package/Legend.d.ts +1 -1
  61. package/Line.d.ts +1 -1
  62. package/LineChart.d.ts +1 -1
  63. package/ListMenu.d.ts +6 -5
  64. package/LoadMoreButton.d.ts +1 -1
  65. package/MaintenanceState.d.ts +1 -1
  66. package/Map.d.ts +10 -7
  67. package/MapBoundingBoxButton.d.ts +1 -1
  68. package/MapCenterMarkerButton.d.ts +1 -1
  69. package/MapClusterSettings.d.ts +1 -1
  70. package/MapCustomerPoiSettingsItem.d.ts +1 -1
  71. package/MapLayerGroup.d.ts +1 -1
  72. package/MapLayerIncidentsItem.d.ts +1 -1
  73. package/MapLayerRoadRestrictionsItem.d.ts +1 -1
  74. package/MapLayerSettings.d.ts +1 -1
  75. package/MapLayerTrafficItem.d.ts +1 -1
  76. package/MapLockMarkerButton.d.ts +1 -1
  77. package/MapSettings.d.ts +1 -1
  78. package/MapSettingsItem.d.ts +1 -1
  79. package/MapSettingsPanel.d.ts +1 -1
  80. package/MapSettingsTile.d.ts +1 -1
  81. package/MapTypeSettings.d.ts +1 -1
  82. package/MapWorkshopPoiSettingsItem.d.ts +1 -1
  83. package/Marker.d.ts +1 -1
  84. package/MarkerLayer.d.ts +1 -1
  85. package/MediaDialog.d.ts +8 -4
  86. package/MenuItem.d.ts +2 -2
  87. package/Multiselect.d.ts +11 -4
  88. package/NoData.d.ts +1 -1
  89. package/NotBookedState.d.ts +1 -1
  90. package/NotFoundState.d.ts +1 -1
  91. package/Notification.d.ts +1 -1
  92. package/NotificationsContainer.d.ts +1 -1
  93. package/NumberControl.d.ts +5 -2
  94. package/NumberInput.d.ts +5 -2
  95. package/OnboardingTip.d.ts +27 -2
  96. package/OverlayTrigger.d.ts +26 -2
  97. package/Pager.d.ts +1 -1
  98. package/PieChart.d.ts +1 -1
  99. package/Polygon.d.ts +1 -1
  100. package/Polyline.d.ts +1 -1
  101. package/Popover.d.ts +8 -2
  102. package/Position.d.ts +1 -1
  103. package/PositionUtils.d.ts +1 -1
  104. package/RadialBarChart.d.ts +1 -1
  105. package/RadioButton.d.ts +1 -1
  106. package/RangeSlider.d.ts +1 -1
  107. package/ReleaseNotes.d.ts +1 -1
  108. package/ReleaseNotesDialog.d.ts +1 -1
  109. package/Resizer.d.ts +10 -2
  110. package/ResponsiveVideo.d.ts +5 -2
  111. package/Route.d.ts +1 -1
  112. package/RuleConnector.d.ts +9 -0
  113. package/RuleConnector.js +2 -0
  114. package/RuleContainer.d.ts +5 -0
  115. package/RuleContainer.js +2 -0
  116. package/RulesWrapper.d.ts +5 -0
  117. package/RulesWrapper.js +2 -0
  118. package/SaveDialog.d.ts +9 -2
  119. package/Select.d.ts +5 -5
  120. package/Sidebar.d.ts +8 -2
  121. package/SimpleButtonDropdown.d.ts +1 -1
  122. package/SimpleClusterLayer.d.ts +1 -1
  123. package/SimpleDialog.d.ts +9 -2
  124. package/SimpleTooltip.d.ts +26 -2
  125. package/SingleButtonDropdown.d.ts +1 -1
  126. package/SingleMapMarker.d.ts +1 -1
  127. package/Slider.d.ts +1 -1
  128. package/SortArrowDown.d.ts +1 -1
  129. package/SortArrowUp.d.ts +1 -1
  130. package/SortArrows.d.ts +1 -1
  131. package/SortDirection.d.ts +1 -1
  132. package/SortUtils.d.ts +1 -1
  133. package/Spinner.d.ts +1 -1
  134. package/SplitButtonDropdown.d.ts +1 -1
  135. package/SplitDialog.d.ts +9 -2
  136. package/StatsWidget.d.ts +1 -1
  137. package/StatsWidgetNumber.d.ts +1 -1
  138. package/StatsWidgetSpacer.d.ts +1 -1
  139. package/StatsWidgets.d.ts +1 -1
  140. package/StatusBar.d.ts +1 -1
  141. package/SteppedProgressBar.d.ts +6 -2
  142. package/SubNavigation.d.ts +1 -1
  143. package/Switch.d.ts +5 -2
  144. package/TableCardsSorting.d.ts +1 -1
  145. package/TableSearch.d.ts +1 -1
  146. package/TableSettingsDialog.d.ts +1 -1
  147. package/TableToolbar.d.ts +1 -1
  148. package/TableViewToggles.d.ts +1 -1
  149. package/Tag.d.ts +1 -1
  150. package/TagList.d.ts +1 -1
  151. package/TagManager.d.ts +5 -5
  152. package/Teaser.d.ts +1 -1
  153. package/TeaserContainer.d.ts +1 -1
  154. package/TextMarker.d.ts +1 -1
  155. package/TimePicker.d.ts +1 -1
  156. package/ToggleButton.d.ts +1 -1
  157. package/Tooltip.d.ts +29 -2
  158. package/TrafficLayer.d.ts +1 -1
  159. package/Tree.d.ts +1 -1
  160. package/TreeCategory.d.ts +1 -1
  161. package/TreeOption.d.ts +1 -1
  162. package/TreeSearch.d.ts +1 -1
  163. package/TreeSummary.d.ts +1 -1
  164. package/TruckLayer.d.ts +1 -1
  165. package/TypeCounter.d.ts +1 -1
  166. package/VolkswagenApplicationHeader.d.ts +1 -1
  167. package/components/button/Button.js +6 -3
  168. package/components/datepicker/DatePicker.js +5 -2
  169. package/components/dialog/SplitDialog.js +5 -2
  170. package/components/dropdown/ButtonDropdown.js +9 -3
  171. package/components/map/components/Map.js +24 -1
  172. package/components/overlay/OverlayTrigger.js +2 -1
  173. package/components/rules/RuleConnector.js +76 -0
  174. package/components/rules/RuleContainer.js +68 -0
  175. package/components/rules/RulesWrapper.js +17 -0
  176. package/components/selects/BaseDropdownMenu.js +40 -26
  177. package/components/selects/Multiselect.js +5 -3
  178. package/components/selects/Select.js +7 -5
  179. package/framer-motion.d.ts +1 -0
  180. package/index.d.ts +7 -1
  181. package/index.js +6 -0
  182. package/lib/es/AutoSuggest.d.ts +6 -5
  183. package/lib/es/Bar.d.ts +4 -1
  184. package/lib/es/Button.d.ts +23 -1
  185. package/lib/es/Carousel.d.ts +2 -0
  186. package/lib/es/ConfirmationDialog.d.ts +8 -1
  187. package/lib/es/ContentLoader.d.ts +4 -1
  188. package/lib/es/ExpanderList.d.ts +5 -5
  189. package/lib/es/Fade.d.ts +10 -1
  190. package/lib/es/FilePicker.d.ts +5 -1
  191. package/lib/es/ListMenu.d.ts +6 -5
  192. package/lib/es/Map.d.ts +10 -7
  193. package/lib/es/MediaDialog.d.ts +8 -4
  194. package/lib/es/MenuItem.d.ts +1 -1
  195. package/lib/es/Multiselect.d.ts +11 -4
  196. package/lib/es/NumberControl.d.ts +4 -1
  197. package/lib/es/NumberInput.d.ts +4 -1
  198. package/lib/es/OnboardingTip.d.ts +26 -1
  199. package/lib/es/OverlayTrigger.d.ts +25 -1
  200. package/lib/es/Popover.d.ts +7 -1
  201. package/lib/es/Resizer.d.ts +9 -1
  202. package/lib/es/ResponsiveVideo.d.ts +4 -1
  203. package/lib/es/RuleConnector.d.ts +9 -0
  204. package/lib/es/RuleConnector.js +13 -0
  205. package/lib/es/RuleContainer.d.ts +5 -0
  206. package/lib/es/RuleContainer.js +13 -0
  207. package/lib/es/RulesWrapper.d.ts +5 -0
  208. package/lib/es/RulesWrapper.js +13 -0
  209. package/lib/es/SaveDialog.d.ts +8 -1
  210. package/lib/es/Select.d.ts +5 -5
  211. package/lib/es/Sidebar.d.ts +7 -1
  212. package/lib/es/SimpleDialog.d.ts +8 -1
  213. package/lib/es/SimpleTooltip.d.ts +25 -1
  214. package/lib/es/SplitDialog.d.ts +8 -1
  215. package/lib/es/SteppedProgressBar.d.ts +5 -1
  216. package/lib/es/Switch.d.ts +4 -1
  217. package/lib/es/TagManager.d.ts +5 -5
  218. package/lib/es/Tooltip.d.ts +28 -1
  219. package/lib/es/components/button/Button.js +6 -3
  220. package/lib/es/components/datepicker/DatePicker.js +3 -3
  221. package/lib/es/components/dialog/SplitDialog.js +5 -2
  222. package/lib/es/components/dropdown/ButtonDropdown.js +9 -3
  223. package/lib/es/components/map/components/Map.js +24 -1
  224. package/lib/es/components/overlay/OverlayTrigger.js +2 -1
  225. package/lib/es/components/rules/RuleConnector.js +84 -0
  226. package/lib/es/components/rules/RuleContainer.js +76 -0
  227. package/lib/es/components/rules/RulesWrapper.js +25 -0
  228. package/lib/es/components/selects/BaseDropdownMenu.js +40 -26
  229. package/lib/es/components/selects/Multiselect.js +5 -3
  230. package/lib/es/components/selects/Select.js +7 -5
  231. package/lib/es/framer-motion.d.ts +1 -0
  232. package/lib/es/index.d.ts +8 -2
  233. package/lib/es/index.js +24 -0
  234. package/lib/es/styles/components/Dialog.less +10 -0
  235. package/lib/es/styles/components/Dropdown.less +11 -2
  236. package/lib/es/styles/components/Select.less +5 -6
  237. package/lib/es/styles/design/box-sizing.less +8 -0
  238. package/lib/es/styles/design/fonts.less +23 -23
  239. package/lib/es/styles/design/normalize.less +0 -2
  240. package/lib/es/styles/design/responsive/flexgrid.less +4 -6
  241. package/lib/es/styles/design/responsive/sizing.less +3 -0
  242. package/lib/es/styles/design/tables.less +5 -0
  243. package/lib/es/styles/mixins/panels.less +3 -3
  244. package/lib/es/styles/print/print.less +36 -4
  245. package/lib/es/styles/rio-uikit-core.less +2 -1
  246. package/lib/es/styles/rio-uikit-print-utilities.less +1 -0
  247. package/lib/es/themes/Website/styles/rio-website.less +2 -2
  248. package/lib/es/types.ts +40 -16
  249. package/lib/es/utils/init.js +1 -1
  250. package/lib/es/version.json +1 -1
  251. package/package.json +13 -11
  252. package/styles/components/Dialog.less +10 -0
  253. package/styles/components/Dropdown.less +11 -2
  254. package/styles/components/Select.less +5 -6
  255. package/styles/design/box-sizing.less +8 -0
  256. package/styles/design/fonts.less +23 -23
  257. package/styles/design/normalize.less +0 -2
  258. package/styles/design/responsive/flexgrid.less +4 -6
  259. package/styles/design/responsive/sizing.less +3 -0
  260. package/styles/design/tables.less +5 -0
  261. package/styles/mixins/panels.less +3 -3
  262. package/styles/print/print.less +36 -4
  263. package/styles/rio-uikit-core.less +2 -1
  264. package/styles/rio-uikit-print-utilities.less +1 -0
  265. package/themes/Website/styles/rio-website.less +2 -2
  266. package/types.ts +40 -16
  267. package/useAfterMount.d.ts +1 -1
  268. package/useClickOutside.d.ts +1 -1
  269. package/useClipboard.d.ts +1 -1
  270. package/useDebugInfo.d.ts +1 -1
  271. package/useEffectOnce.d.ts +1 -1
  272. package/useElementSize.d.ts +1 -1
  273. package/useEsc.d.ts +1 -1
  274. package/useEvent.d.ts +1 -1
  275. package/useFullscreen.d.ts +1 -1
  276. package/useInterval.d.ts +1 -1
  277. package/useKey.d.ts +1 -1
  278. package/useLocalStorage.d.ts +1 -1
  279. package/useOnScreen.d.ts +1 -1
  280. package/useOnlineStatus.d.ts +1 -1
  281. package/useRenderCount.d.ts +1 -1
  282. package/useResizeObserver.d.ts +1 -1
  283. package/useSessionStorage.d.ts +1 -1
  284. package/useStateWithValidation.d.ts +1 -1
  285. package/useTimeout.d.ts +1 -1
  286. package/useWindowResize.d.ts +1 -1
  287. package/utils/init.js +1 -1
  288. package/version.json +1 -1
  289. package/.DS_Store +0 -0
  290. package/components/.DS_Store +0 -0
  291. package/components/map/.DS_Store +0 -0
  292. package/lib/.DS_Store +0 -0
  293. package/lib/es/.DS_Store +0 -0
  294. package/lib/es/components/.DS_Store +0 -0
  295. package/lib/es/styles/.DS_Store +0 -0
  296. package/lib/es/themes/.DS_Store +0 -0
  297. package/styles/.DS_Store +0 -0
  298. package/themes/.DS_Store +0 -0
  299. package/themes/Volkswagen/.DS_Store +0 -0
@@ -34,6 +34,9 @@
34
34
  .align-self-start@{suffix} { align-self: flex-start !important }
35
35
  .align-self-stretch@{suffix} { align-self: stretch !important }
36
36
 
37
+ .place-items-center@{suffix} { place-items: center !important }
38
+ .place-self-center@{suffix} { place-self: center !important }
39
+
37
40
  /* Flexbox - Helper */
38
41
  .flex-0-1@{suffix} { flex: 0 1 auto !important }
39
42
  .flex-1-0@{suffix} { flex: 1 0 auto !important }
@@ -70,9 +73,4 @@ each(@gridColumns, {
70
73
  .grid-colspan-auto@{suffix} { grid-column: auto !important }
71
74
 
72
75
  // AutoRows
73
- .grid-auto-rows@{suffix} { grid-auto-rows: minmax(min-content, max-content)}
74
-
75
- // Placement
76
- .place-items-center@{suffix} {
77
- place-items: center !important;
78
- }
76
+ .grid-auto-rows@{suffix} { grid-auto-rows: minmax(min-content, max-content)}
@@ -10,6 +10,9 @@
10
10
  .max-height-0@{suffix} { max-height: 0 !important }
11
11
  .max-width-0@{suffix} { max-width: 0 !important }
12
12
 
13
+ .max-width-none@{suffix} { max-width: none !important }
14
+ .max-height-none@{suffix} { max-height: none !important }
15
+
13
16
  // width/height px
14
17
  each(@sizes-px, {
15
18
  // width
@@ -227,8 +227,10 @@
227
227
  &.table-checkbox {
228
228
  min-width: 40px;
229
229
  width: 40px;
230
+ max-width: 40px;
230
231
 
231
232
  &:first-child {
233
+ max-width: 50px;
232
234
  min-width: 50px;
233
235
  width: 50px;
234
236
  }
@@ -281,6 +283,9 @@
281
283
 
282
284
  &:first-child {
283
285
  padding-left: @table-cell-padding;
286
+ max-width: 50px;
287
+ min-width: 50px;
288
+ width: 50px;
284
289
  }
285
290
 
286
291
  // > .dropdown > .dropdown-toggle {
@@ -12,9 +12,9 @@
12
12
  border-top-color: @panel-border-color;
13
13
  }
14
14
 
15
- .badge {
16
- color: @text-color;
17
- background-color: @panel-color;
15
+ .badge:not([class*="badge-"]) {
16
+ color: @gray-darkest;
17
+ background-color: @color-white;
18
18
  }
19
19
  }
20
20
 
@@ -1,12 +1,28 @@
1
1
  // Print utils classes - WORK IN PROGRESS
2
+ @media screen {
3
+ .only-printable {
4
+ display: none !important;
5
+ }
6
+ }
7
+
2
8
  @media print {
3
- @page { margin: 1cm }
9
+ @page { margin: 0 }
10
+ body { margin: 1.6cm }
4
11
 
5
12
  body,
6
13
  #root {
7
14
  background: transparent !important;
8
15
  }
9
16
 
17
+ html,
18
+ html:not(.window-iframe) {
19
+ background-color: #ffffff;
20
+ }
21
+
22
+ .scroll-to-top {
23
+ display: none !important;
24
+ }
25
+
10
26
  // Bootstrap Stuff
11
27
  *,
12
28
  *:before,
@@ -60,9 +76,14 @@
60
76
  display: none !important;
61
77
  }
62
78
 
79
+ .only-printable {
80
+ display: block !important;
81
+ }
82
+
63
83
  .ApplicationLayoutHeader,
64
84
  .ApplicationLayoutBody,
65
- .ApplicationLayoutSidebar {
85
+ .ApplicationLayoutSidebar,
86
+ #uikit-root .modal {
66
87
  &:not(.print-area) {
67
88
  display: none !important;
68
89
  }
@@ -72,7 +93,6 @@
72
93
  .ApplicationLayoutSidebar,
73
94
  .ApplicationLayoutSidebar .Sidebar {
74
95
  float: none !important;
75
- //height: auto !important;
76
96
  overflow: visible !important;
77
97
  width: 100% !important;
78
98
  }
@@ -87,17 +107,29 @@
87
107
  .SidebarContent {
88
108
  display: block !important;
89
109
 
90
- .SidebarHeader,
91
110
  .SidebarBody {
92
111
  display: block !important;
93
112
  }
94
113
 
114
+ .SidebarHeader,
95
115
  .SidebarFooter {
96
116
  display: none !important;
97
117
  }
98
118
  }
99
119
  }
100
120
 
121
+ #uikit-root .modal {
122
+ width: 100% !important;
123
+
124
+ .modal-dialog .modal-content {
125
+ box-shadow: none !important;
126
+ }
127
+
128
+ .modal-backdrop {
129
+ display: none !important;
130
+ }
131
+ }
132
+
101
133
  // Components
102
134
  .table {
103
135
  display: table !important;
@@ -8,6 +8,7 @@
8
8
  @import (less) './design/normalize.less';
9
9
 
10
10
  // Styles // right order is important
11
+ @import (less) './design/box-sizing.less';
11
12
  @import (less) './design/code.less';
12
13
  @import (less) './design/cols.less';
13
14
  @import (less) './design/tables.less';
@@ -70,7 +71,7 @@
70
71
  @import (less) './filter/_imports.less';
71
72
 
72
73
  // Print
73
- @import (less) './print/print.less';
74
+ // @import (less) './print/print.less';
74
75
 
75
76
  // Component styles
76
77
  @import (less) './components/Activity.less';
@@ -1,6 +1,7 @@
1
1
  // Styles
2
2
  @import (less) './variables.less';
3
3
  @import (less) './mixins/_mixins.less';
4
+ @import (less) './print/print.less';
4
5
 
5
6
  // Utility Classes
6
7
  @import (less) './design/responsive/_imports.less';
@@ -2208,11 +2208,11 @@ body:not(.legal-documents) {
2208
2208
  }
2209
2209
 
2210
2210
  &[class*="clip-top"]:after {
2211
- top: 0;
2211
+ top: -1px;
2212
2212
  }
2213
2213
 
2214
2214
  &[class*="clip-bottom"]::after {
2215
- bottom: 0;
2215
+ bottom: -1px;
2216
2216
  }
2217
2217
 
2218
2218
  &[class*="clip-white"]:after {
package/lib/es/types.ts CHANGED
@@ -588,7 +588,7 @@ export interface DomMarkerProps {
588
588
 
589
589
  export interface DropdownSubmenuProps {
590
590
  title?: string | React.ReactNode;
591
- items?: MenuItemProps[];
591
+ items?: MenuItem[];
592
592
  disabled?: boolean;
593
593
  className?: string;
594
594
  }
@@ -769,15 +769,15 @@ export interface LineChartProps {
769
769
  tooltip?: ChartTooltip | boolean;
770
770
  }
771
771
 
772
- export interface ListMenuItems {
772
+ export interface ListMenuItem {
773
773
  group?: string | React.ReactNode;
774
774
  groupNavItem?: React.ReactNode;
775
- navItems: NavItems[];
775
+ navItems: NavItem[];
776
776
  isSubItem?: boolean;
777
777
  }
778
778
 
779
779
  export interface ListMenuProps {
780
- menuItems: ListMenuItems[];
780
+ menuItems: ListMenuItem[];
781
781
  enableFilter?: boolean;
782
782
  focusFilter?: boolean;
783
783
  filterKey?: string;
@@ -808,7 +808,7 @@ export type markerColor =
808
808
  | 'bg-map-marker-geofence'
809
809
  | 'bg-map-marker-route';
810
810
 
811
- export interface MediaDialogMediaProps {
811
+ export interface MediaDialogMedia {
812
812
  type: 'image' | 'video';
813
813
  src: string;
814
814
  title: string | React.ReactNode;
@@ -818,7 +818,7 @@ export interface MediaDialogMediaProps {
818
818
  }
819
819
 
820
820
  export interface MediaDialogProps extends BaseDialogProps {
821
- media: MediaDialogMediaProps[];
821
+ media: MediaDialogMedia[];
822
822
  previousButtonText: string | React.ReactNode;
823
823
  previousButtonCallback?: Function;
824
824
  nextButtonText: string | React.ReactNode;
@@ -984,7 +984,7 @@ export interface MarkerLayerProps {
984
984
  clusterDissolvable?: boolean;
985
985
  }
986
986
 
987
- export interface MenuItemProps {
987
+ export interface MenuItem {
988
988
  value?: string | React.ReactNode;
989
989
  disabled?: boolean;
990
990
  divider?: boolean;
@@ -1005,7 +1005,7 @@ interface MultiselectCounterMessage {
1005
1005
  many: string | React.ReactNode;
1006
1006
  }
1007
1007
 
1008
- interface MultiselectOption {
1008
+ export interface MultiselectOption {
1009
1009
  id: string;
1010
1010
  label: string | React.ReactNode;
1011
1011
  selected?: boolean;
@@ -1023,7 +1023,7 @@ export interface MultiselectProps {
1023
1023
  pullRight?: boolean;
1024
1024
  autoDropDirection?: boolean;
1025
1025
  value?: [];
1026
- bsSize?: 'sm' | 'lg' | 'small' | 'large';
1026
+ bsSize?: 'sm' | 'lg';
1027
1027
  disabled?: boolean;
1028
1028
  className?: string;
1029
1029
  tabIndex?: number;
@@ -1038,7 +1038,7 @@ export interface MultiselectProps {
1038
1038
 
1039
1039
  // N --------------------------------------------------------------------------------------------------
1040
1040
 
1041
- export interface NavItems {
1041
+ export interface NavItem {
1042
1042
  key: string;
1043
1043
  item: React.ReactNode;
1044
1044
  disabled?: boolean;
@@ -1083,7 +1083,7 @@ export interface NumberControlProps {
1083
1083
  step?: number;
1084
1084
  disabled?: boolean;
1085
1085
  onValueChanged?: (value: number) => void;
1086
- bsSize?: 'sm' | 'lg' | 'small' | 'large';
1086
+ bsSize?: 'sm' | 'lg';
1087
1087
  className?: string;
1088
1088
  unit?: string | React.ReactNode;
1089
1089
  inputAddon?: string;
@@ -1097,7 +1097,7 @@ export interface NumberInputProps {
1097
1097
  type?: string;
1098
1098
  disabled?: boolean;
1099
1099
  onValueChanged?: (value: number) => void;
1100
- bsSize?: 'sm' | 'lg' | 'small' | 'large';
1100
+ bsSize?: 'sm' | 'lg';
1101
1101
  className?: string;
1102
1102
  unit?: string | React.ReactNode;
1103
1103
  inputAddon?: string;
@@ -1450,6 +1450,30 @@ export interface RouteProps {
1450
1450
  markers?: JSX.Element[];
1451
1451
  }
1452
1452
 
1453
+ export interface RulesWrapperProps {}
1454
+
1455
+ export interface RuleContainerProps {
1456
+ show: boolean;
1457
+ unchecked: boolean;
1458
+ background: string;
1459
+ borderColor: string;
1460
+ hideConnector: boolean;
1461
+ customConnector: string | JSX.Element;
1462
+ className: string;
1463
+ }
1464
+
1465
+ export interface RuleConnectorProps {
1466
+ placement: 'start' | 'center' | 'end';
1467
+ icon: string;
1468
+ hidden: boolean;
1469
+ background: string;
1470
+ pageBackground: string;
1471
+ contentClassName: string;
1472
+ hasBorder: boolean;
1473
+ borderColor: string;
1474
+ className: string;
1475
+ }
1476
+
1453
1477
  // S --------------------------------------------------------------------------------------------------
1454
1478
 
1455
1479
  export interface SelectedSuggestion {
@@ -1533,7 +1557,7 @@ export interface SimpleButtonDropdownProps {
1533
1557
  noCaret?: boolean;
1534
1558
  splitButton?: boolean;
1535
1559
  usePortal?: boolean;
1536
- items: MenuItemProps[];
1560
+ items: MenuItem[];
1537
1561
  className?: string;
1538
1562
  dropdownClassName?: string;
1539
1563
  disabled?: boolean;
@@ -1867,15 +1891,15 @@ export interface TagListProps {
1867
1891
  className?: string;
1868
1892
  }
1869
1893
 
1870
- export interface TagManagerTagProp {
1894
+ export interface TagManagerTag {
1871
1895
  label?: string;
1872
1896
  toAdd?: boolean;
1873
1897
  toRemove?: boolean;
1874
1898
  }
1875
1899
 
1876
1900
  export interface TagManagerProps {
1877
- tagList: TagManagerTagProp[];
1878
- tagSuggestions: TagManagerTagProp[];
1901
+ tagList: TagManagerTag[];
1902
+ tagSuggestions: TagManagerTag[];
1879
1903
  onTagListChange?: Function;
1880
1904
  placeholder?: string;
1881
1905
  customTagPlaceholder?: string;
@@ -14,7 +14,7 @@ var _deviceUtils = require("./deviceUtils");
14
14
  var _version = _interopRequireDefault(require("../version.json"));
15
15
  var uikitVersion = _version["default"].version;
16
16
 
17
- // Note: using import.meta.env.DEV does not work here due to backwards compatibility with webpack and jest setups
17
+ // Note: using import.meta.env.DEV does not work here due to backward compatibility with webpack and jest setups
18
18
  var isProdEnv = function isProdEnv() {
19
19
  return _process["default"].env.NODE_ENV === 'production' || location.protocol.startsWith('https');
20
20
  };
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.16.1-beta.23"
2
+ "version": "0.16.1"
3
3
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@rio-cloud/rio-uikit",
3
- "version": "0.16.1-beta.23",
3
+ "version": "0.16.1",
4
4
  "description": "The RIO UIKIT component library",
5
5
  "repository": "https://collaboration.msi.audi.com/stash/projects/RIOFRONT/repos/uikit-web/browse",
6
6
  "scripts": {
7
7
  "build": "npm run build:styles && npm run build:vite && echo '\n👉 For an npm release use build:npm 👈'",
8
- "build:npm": "npm run build:cjs && npm run build:esm && npm run copy-to-package && echo '\n📦 Publish to npm only from within 'package' folder 📦'",
8
+ "build:npm": "npm run build:cjs && npm run build:esm && npm run copy-to-package && npm run fixEsmImports && echo '\n📦 Publish to npm only from within 'package' folder 📦'",
9
9
  "build:cjs": "NODE_ENV=production BABEL_ENV=cjs babel src --out-dir package/lib/es --copy-files",
10
10
  "build:esm": "NODE_ENV=production BABEL_ENV=esm babel src --out-dir package --copy-files",
11
11
  "build:vite": "vite build",
@@ -14,12 +14,14 @@
14
14
  "build:style-core": "vite build --mode style-core",
15
15
  "build:style-responsive": "vite build --mode style-responsive",
16
16
  "build:style-print": "vite build --mode style-print",
17
- "build:style-website": "vite build --mode style-website",
17
+ "build:style-website": "vite build --mode style-website && npm run fixCssMinified",
18
18
  "build:style-buyButton": "vite build --mode style-buyButton",
19
19
  "build:style-man": "vite build --mode style-man",
20
20
  "build:style-vw": "vite build --mode style-vw",
21
21
  "build:style-scania": "vite build --mode style-scania",
22
22
  "build:style-xmas": "vite build --mode style-xmas",
23
+ "fixEsmImports": "node tools/fixEsmImportsInDeclarations.mjs",
24
+ "fixCssMinified": "node tools/fixCssMinified.mjs",
23
25
  "copy-to-package": "copyfiles package.json README.md LICENSE package",
24
26
  "test": "vitest run",
25
27
  "test:ci": "vitest run --reporter=junit --outputFile.junit=./results/jest/junit.xml",
@@ -41,15 +43,15 @@
41
43
  ],
42
44
  "devDependencies": {
43
45
  "@babel/cli": "7.19.3",
44
- "@babel/core": "7.19.3",
46
+ "@babel/core": "7.19.6",
45
47
  "@babel/eslint-parser": "7.19.1",
46
48
  "@babel/plugin-proposal-class-properties": "7.18.6",
47
49
  "@babel/plugin-proposal-object-rest-spread": "7.19.4",
48
50
  "@babel/plugin-syntax-dynamic-import": "7.8.3",
49
- "@babel/plugin-transform-modules-commonjs": "7.18.6",
51
+ "@babel/plugin-transform-modules-commonjs": "7.19.6",
50
52
  "@babel/plugin-transform-react-display-name": "7.18.6",
51
53
  "@babel/plugin-transform-react-jsx": "7.19.0",
52
- "@babel/plugin-transform-runtime": "7.19.1",
54
+ "@babel/plugin-transform-runtime": "7.19.6",
53
55
  "@babel/preset-env": "7.19.4",
54
56
  "@babel/preset-react": "7.18.6",
55
57
  "@babel/runtime": "7.19.4",
@@ -60,8 +62,8 @@
60
62
  "@types/react": "18.0.21",
61
63
  "@types/react-redux": "7.1.24",
62
64
  "@types/resize-observer-browser": "0.1.7",
63
- "@typescript-eslint/eslint-plugin": "5.40.0",
64
- "@typescript-eslint/parser": "5.40.0",
65
+ "@typescript-eslint/eslint-plugin": "5.40.1",
66
+ "@typescript-eslint/parser": "5.40.1",
65
67
  "@vitejs/plugin-react": "^2.1.0",
66
68
  "@vitest/coverage-c8": "0.24.3",
67
69
  "@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
@@ -71,7 +73,7 @@
71
73
  "dotenv": "16.0.3",
72
74
  "enzyme": "3.11.0",
73
75
  "enzyme-adapter-react-16": "1.15.6",
74
- "eslint": "8.25.0",
76
+ "eslint": "8.26.0",
75
77
  "eslint-config-prettier": "8.5.0",
76
78
  "eslint-plugin-compat": "4.0.2",
77
79
  "eslint-plugin-getsentry": "2.0.0",
@@ -113,7 +115,7 @@
113
115
  "lodash": "4.17.21",
114
116
  "moment": "2.29.4",
115
117
  "natural-orderby": "2.0.3",
116
- "process": "^0.11.10",
118
+ "process": "0.11.10",
117
119
  "prop-types": "15.8.1",
118
120
  "react-bootstrap": "1.6.4",
119
121
  "react-content-loader": "6.2.0",
@@ -125,6 +127,6 @@
125
127
  "react-popper": "2.3.0",
126
128
  "react-responsive": "9.0.0",
127
129
  "react-transition-group": "4.4.5",
128
- "recharts": "2.1.14"
130
+ "recharts": "2.1.15"
129
131
  }
130
132
  }
@@ -212,6 +212,16 @@ body {
212
212
  .modal-body {
213
213
  position: relative;
214
214
  padding: @modal-inner-padding;
215
+
216
+ &:first-child {
217
+ border-top-left-radius: @border-radius-lg;
218
+ border-top-right-radius: @border-radius-lg;
219
+ }
220
+
221
+ &:last-child {
222
+ border-bottom-left-radius: @border-radius-lg;
223
+ border-bottom-right-radius: @border-radius-lg;
224
+ }
215
225
  }
216
226
 
217
227
  .modal-footer {
@@ -1,7 +1,9 @@
1
1
  @dropdown-max-height: 211px; // Used for Select and AutoSuggest components
2
2
 
3
- .btn-group.open .dropdown-toggle {
4
- box-shadow: none !important;
3
+ .btn-group {
4
+ &.open .dropdown-toggle {
5
+ box-shadow: none !important;
6
+ }
5
7
  }
6
8
 
7
9
  .dropdown {
@@ -18,6 +20,7 @@
18
20
  padding: 0;
19
21
  position: absolute;
20
22
  text-align: left;
23
+ //width: 100%;
21
24
  z-index: @zindex-dropdown;
22
25
 
23
26
  // closed by default
@@ -28,6 +31,12 @@
28
31
  display: block;
29
32
  }
30
33
 
34
+ .AutoSuggest &,
35
+ .select &,
36
+ .multiselect & {
37
+ width: 100%;
38
+ }
39
+
31
40
  // portal style
32
41
  #uikit-root > & {
33
42
  display: block;
@@ -162,13 +162,17 @@
162
162
  .dropdown-menu {
163
163
  max-height: @dropdown-max-height;
164
164
  overflow-x: hidden;
165
- width: 100%; // not on dropdowns, only on selects
166
165
 
167
166
  svg {
168
167
  margin-right: 0.5em;
169
168
  vertical-align: middle;
170
169
  }
171
170
 
171
+ &.pull-right {
172
+ left: auto !important;
173
+ right: 0 !important;
174
+ }
175
+
172
176
  > li {
173
177
  > a.focus {
174
178
  text-decoration: none;
@@ -189,11 +193,6 @@
189
193
  }
190
194
  }
191
195
 
192
- &.pull-right {
193
- left: auto !important;
194
- right: 0 !important;
195
- }
196
-
197
196
  &.dropup.open .dropdown-menu {
198
197
  bottom: 0;
199
198
  left: 0;
@@ -0,0 +1,8 @@
1
+ .box-sizing {
2
+ &-border-box {
3
+ box-sizing: border-box !important;
4
+ }
5
+ &-content-box {
6
+ box-sizing: content-box !important;
7
+ }
8
+ }