@rio-cloud/uikit-mcp 1.0.0 → 1.1.0

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 (388) hide show
  1. package/README.md +75 -40
  2. package/dist/doc-metadata.json +1872 -0
  3. package/dist/docs/components/accentBar.md +582 -0
  4. package/dist/docs/components/activity.md +330 -0
  5. package/dist/docs/components/animatedNumber.md +88 -0
  6. package/dist/docs/components/animatedTextReveal.md +381 -0
  7. package/dist/docs/components/animations.md +459 -0
  8. package/dist/docs/components/appHeader.md +737 -0
  9. package/dist/docs/components/appLayout.md +2016 -0
  10. package/dist/docs/components/appNavigationBar.md +274 -0
  11. package/dist/docs/components/areaCharts.md +828 -0
  12. package/dist/docs/components/aspectRatioPlaceholder.md +106 -0
  13. package/dist/docs/components/assetTree.md +3223 -0
  14. package/dist/docs/components/autosuggests.md +1177 -0
  15. package/dist/docs/components/avatar.md +206 -0
  16. package/dist/docs/components/banner.md +668 -0
  17. package/dist/docs/components/barCharts.md +2785 -0
  18. package/dist/docs/components/barList.md +517 -0
  19. package/dist/docs/components/basicMap.md +167 -0
  20. package/dist/docs/components/bottomSheet.md +721 -0
  21. package/dist/docs/components/button.md +775 -0
  22. package/dist/docs/components/buttonToolbar.md +134 -0
  23. package/dist/docs/components/calendarStripe.md +525 -0
  24. package/dist/docs/components/card.md +86 -0
  25. package/dist/docs/components/carousel.md +128 -0
  26. package/dist/docs/components/chartColors.md +716 -0
  27. package/dist/docs/components/chartsGettingStarted.md +28 -0
  28. package/dist/docs/components/chat.md +932 -0
  29. package/dist/docs/components/checkbox.md +996 -0
  30. package/dist/docs/components/clearableInput.md +806 -0
  31. package/dist/docs/components/collapse.md +189 -0
  32. package/dist/docs/components/composedCharts.md +424 -0
  33. package/dist/docs/components/contentLoader.md +674 -0
  34. package/dist/docs/components/dataTabs.md +1251 -0
  35. package/dist/docs/components/datepickers.md +2543 -0
  36. package/dist/docs/components/dialogs.md +2244 -0
  37. package/dist/docs/components/divider.md +219 -0
  38. package/dist/docs/components/dropdowns.md +17550 -0
  39. package/dist/docs/components/editableContent.md +1127 -0
  40. package/dist/docs/components/expander.md +970 -0
  41. package/dist/docs/components/fade.md +836 -0
  42. package/dist/docs/components/fadeExpander.md +180 -0
  43. package/dist/docs/components/fadeUp.md +396 -0
  44. package/dist/docs/components/feedback.md +758 -0
  45. package/dist/docs/components/filePickers.md +370 -0
  46. package/dist/docs/components/formLabel.md +251 -0
  47. package/dist/docs/components/fullscreenMap.md +10 -0
  48. package/dist/docs/components/groupedItemList.md +1001 -0
  49. package/dist/docs/components/iconList.md +306 -0
  50. package/dist/docs/components/imagePreloader.md +167 -0
  51. package/dist/docs/components/labeledElement.md +115 -0
  52. package/dist/docs/components/licensePlate.md +412 -0
  53. package/dist/docs/components/lineCharts.md +2014 -0
  54. package/dist/docs/components/listMenu.md +392 -0
  55. package/dist/docs/components/loadMore.md +219 -0
  56. package/dist/docs/components/mainNavigation.md +129 -0
  57. package/dist/docs/components/mapCircle.md +93 -0
  58. package/dist/docs/components/mapCluster.md +337 -0
  59. package/dist/docs/components/mapContext.md +284 -0
  60. package/dist/docs/components/mapDraggableMarker.md +150 -0
  61. package/dist/docs/components/mapGettingStarted.md +39 -0
  62. package/dist/docs/components/mapInfoBubble.md +135 -0
  63. package/dist/docs/components/mapLayerGroup.md +94 -0
  64. package/dist/docs/components/mapMarker.md +1814 -0
  65. package/dist/docs/components/mapPolygon.md +959 -0
  66. package/dist/docs/components/mapRoute.md +3816 -0
  67. package/dist/docs/components/mapRouteGenerator.md +6 -0
  68. package/dist/docs/components/mapSettings.md +1040 -0
  69. package/dist/docs/components/mapUtils.md +132 -0
  70. package/dist/docs/components/multiselects.md +1921 -0
  71. package/dist/docs/components/noData.md +210 -0
  72. package/dist/docs/components/notifications.md +314 -0
  73. package/dist/docs/components/numbercontrol.md +706 -0
  74. package/dist/docs/components/onboarding.md +297 -0
  75. package/dist/docs/components/page.md +241 -0
  76. package/dist/docs/components/pager.md +133 -0
  77. package/dist/docs/components/pieCharts.md +1284 -0
  78. package/dist/docs/components/popover.md +222 -0
  79. package/dist/docs/components/position.md +50 -0
  80. package/dist/docs/components/radialBarCharts.md +3663 -0
  81. package/dist/docs/components/radiobutton.md +1271 -0
  82. package/dist/docs/components/releaseNotes.md +135 -0
  83. package/dist/docs/components/resizer.md +162 -0
  84. package/dist/docs/components/responsiveColumnStripe.md +435 -0
  85. package/dist/docs/components/responsiveVideo.md +71 -0
  86. package/dist/docs/components/rioglyph.md +331 -0
  87. package/dist/docs/components/rules.md +965 -0
  88. package/dist/docs/components/saveableInput.md +1721 -0
  89. package/dist/docs/components/selects.md +1993 -0
  90. package/dist/docs/components/sidebar.md +332 -0
  91. package/dist/docs/components/sliders.md +376 -0
  92. package/dist/docs/components/smoothScrollbars.md +1180 -0
  93. package/dist/docs/components/spinners.md +506 -0
  94. package/dist/docs/components/states.md +1176 -0
  95. package/dist/docs/components/statsWidgets.md +636 -0
  96. package/dist/docs/components/statusBar.md +644 -0
  97. package/dist/docs/components/stepButton.md +61 -0
  98. package/dist/docs/components/steppedProgressBars.md +1064 -0
  99. package/dist/docs/components/subNavigation.md +470 -0
  100. package/dist/docs/components/supportMarker.md +115 -0
  101. package/dist/docs/components/svgImage.md +248 -0
  102. package/dist/docs/components/switch.md +554 -0
  103. package/dist/docs/components/tables.md +8 -0
  104. package/dist/docs/components/tagManager.md +476 -0
  105. package/dist/docs/components/tags.md +785 -0
  106. package/dist/docs/components/teaser.md +925 -0
  107. package/dist/docs/components/timeline.md +514 -0
  108. package/dist/docs/components/timepicker.md +262 -0
  109. package/dist/docs/components/toggleButton.md +178 -0
  110. package/dist/docs/components/tooltip.md +454 -0
  111. package/dist/docs/components/virtualList.md +483 -0
  112. package/dist/docs/foundations.md +20901 -0
  113. package/dist/docs/start/changelog.md +439 -0
  114. package/dist/docs/start/goodtoknow.md +14 -0
  115. package/dist/docs/start/guidelines/color-combinations.md +678 -0
  116. package/dist/docs/start/guidelines/custom-css.md +42 -0
  117. package/dist/docs/start/guidelines/custom-rioglyph.md +35 -0
  118. package/dist/docs/start/guidelines/formatting.md +587 -0
  119. package/dist/docs/start/guidelines/iframe.md +323 -0
  120. package/dist/docs/start/guidelines/obfuscate-data.md +30 -0
  121. package/dist/docs/start/guidelines/print-css.md +36 -0
  122. package/dist/docs/start/guidelines/spinner.md +710 -0
  123. package/dist/docs/start/guidelines/supported-browsers.md +10 -0
  124. package/dist/docs/start/guidelines/writing.md +635 -0
  125. package/dist/docs/start/howto.md +187 -0
  126. package/dist/docs/start/intro.md +43 -0
  127. package/dist/docs/start/responsiveness.md +98 -0
  128. package/dist/docs/templates/common-table.md +1111 -0
  129. package/dist/docs/templates/detail-views.md +942 -0
  130. package/dist/docs/templates/expandable-details.md +228 -0
  131. package/dist/docs/templates/feature-cards.md +549 -0
  132. package/dist/docs/templates/form-summary.md +199 -0
  133. package/dist/docs/templates/form-toggle.md +367 -0
  134. package/dist/docs/templates/list-blocks.md +1021 -0
  135. package/dist/docs/templates/loading-progress.md +109 -0
  136. package/dist/docs/templates/options-panel.md +152 -0
  137. package/dist/docs/templates/panel-variants.md +164 -0
  138. package/dist/docs/templates/progress-cards.md +607 -0
  139. package/dist/docs/templates/progress-success.md +142 -0
  140. package/dist/docs/templates/settings-form.md +434 -0
  141. package/dist/docs/templates/stats-blocks.md +1381 -0
  142. package/dist/docs/templates/table-panel.md +184 -0
  143. package/dist/docs/templates/table-row-animation.md +317 -0
  144. package/dist/docs/templates/usage-cards.md +227 -0
  145. package/dist/docs/utilities/deviceUtils.md +123 -0
  146. package/dist/docs/utilities/featureToggles.md +90 -0
  147. package/dist/docs/utilities/fuelTypeUtils.md +186 -0
  148. package/dist/docs/utilities/routeUtils.md +138 -0
  149. package/dist/docs/utilities/useAfterMount.md +66 -0
  150. package/dist/docs/utilities/useAutoAnimate.md +193 -0
  151. package/dist/docs/utilities/useAverage.md +95 -0
  152. package/dist/docs/utilities/useClickOutside.md +61 -0
  153. package/dist/docs/utilities/useClipboard.md +93 -0
  154. package/dist/docs/utilities/useCount.md +178 -0
  155. package/dist/docs/utilities/useDarkMode.md +49 -0
  156. package/dist/docs/utilities/useDebugInfo.md +126 -0
  157. package/dist/docs/utilities/useEffectOnce.md +58 -0
  158. package/dist/docs/utilities/useElapsedTime.md +58 -0
  159. package/dist/docs/utilities/useElementSize.md +71 -0
  160. package/dist/docs/utilities/useEsc.md +58 -0
  161. package/dist/docs/utilities/useEvent.md +64 -0
  162. package/dist/docs/utilities/useFocusTrap.md +85 -0
  163. package/dist/docs/utilities/useFullscreen.md +198 -0
  164. package/dist/docs/utilities/useHover.md +55 -0
  165. package/dist/docs/utilities/useIncomingPostMessages.md +237 -0
  166. package/dist/docs/utilities/useInterval.md +85 -0
  167. package/dist/docs/utilities/useIsFocusWithin.md +114 -0
  168. package/dist/docs/utilities/useKey.md +151 -0
  169. package/dist/docs/utilities/useLocalStorage.md +91 -0
  170. package/dist/docs/utilities/useLocationSuggestions.md +114 -0
  171. package/dist/docs/utilities/useMax.md +62 -0
  172. package/dist/docs/utilities/useMin.md +78 -0
  173. package/dist/docs/utilities/useMutationObserver.md +113 -0
  174. package/dist/docs/utilities/useOnScreen.md +138 -0
  175. package/dist/docs/utilities/useOnlineStatus.md +49 -0
  176. package/dist/docs/utilities/usePostMessage.md +117 -0
  177. package/dist/docs/utilities/usePostMessageSender.md +257 -0
  178. package/dist/docs/utilities/usePrevious.md +101 -0
  179. package/dist/docs/utilities/useResizeObserver.md +151 -0
  180. package/dist/docs/utilities/useScrollPosition.md +252 -0
  181. package/dist/docs/utilities/useSearch.md +228 -0
  182. package/dist/docs/utilities/useSorting.md +389 -0
  183. package/dist/docs/utilities/useStateWithValidation.md +83 -0
  184. package/dist/docs/utilities/useSum.md +155 -0
  185. package/dist/docs/utilities/useTableExport.md +404 -0
  186. package/dist/docs/utilities/useTableSelection.md +1120 -0
  187. package/dist/docs/utilities/useTimeout.md +55 -0
  188. package/dist/docs/utilities/useToggle.md +115 -0
  189. package/dist/docs/utilities/useWindowResize.md +70 -0
  190. package/dist/index.mjs +271 -0
  191. package/dist/search-synonyms.json +134 -0
  192. package/dist/version.json +4 -0
  193. package/package.json +23 -19
  194. package/bin/uikit-mcp.mjs +0 -23
  195. package/data/pages/Components/components/accentbar.json +0 -207
  196. package/data/pages/Components/components/activity.json +0 -87
  197. package/data/pages/Components/components/animatednumber.json +0 -99
  198. package/data/pages/Components/components/animations.json +0 -87
  199. package/data/pages/Components/components/appheader.json +0 -291
  200. package/data/pages/Components/components/applayout.json +0 -1198
  201. package/data/pages/Components/components/appnavigationbar.json +0 -327
  202. package/data/pages/Components/components/areacharts.json +0 -563
  203. package/data/pages/Components/components/aspectratioplaceholder.json +0 -75
  204. package/data/pages/Components/components/assettree.json +0 -3080
  205. package/data/pages/Components/components/autosuggests.json +0 -710
  206. package/data/pages/Components/components/avatar.json +0 -157
  207. package/data/pages/Components/components/banner.json +0 -599
  208. package/data/pages/Components/components/barcharts.json +0 -1507
  209. package/data/pages/Components/components/barlist.json +0 -223
  210. package/data/pages/Components/components/basicmap.json +0 -68
  211. package/data/pages/Components/components/bottomsheet.json +0 -601
  212. package/data/pages/Components/components/button.json +0 -583
  213. package/data/pages/Components/components/buttontoolbar.json +0 -63
  214. package/data/pages/Components/components/calendarstripe.json +0 -235
  215. package/data/pages/Components/components/card.json +0 -69
  216. package/data/pages/Components/components/carousel.json +0 -39
  217. package/data/pages/Components/components/chartcolors.json +0 -34
  218. package/data/pages/Components/components/chartsgettingstarted.json +0 -32
  219. package/data/pages/Components/components/chat.json +0 -39
  220. package/data/pages/Components/components/checkbox.json +0 -847
  221. package/data/pages/Components/components/clearableinput.json +0 -789
  222. package/data/pages/Components/components/collapse.json +0 -175
  223. package/data/pages/Components/components/composedcharts.json +0 -159
  224. package/data/pages/Components/components/contentloader.json +0 -233
  225. package/data/pages/Components/components/datatabs.json +0 -680
  226. package/data/pages/Components/components/datepickers.json +0 -287
  227. package/data/pages/Components/components/dialogs.json +0 -1492
  228. package/data/pages/Components/components/divider.json +0 -93
  229. package/data/pages/Components/components/dropdowns.json +0 -936
  230. package/data/pages/Components/components/editablecontent.json +0 -1117
  231. package/data/pages/Components/components/expander.json +0 -377
  232. package/data/pages/Components/components/fade.json +0 -403
  233. package/data/pages/Components/components/fadeexpander.json +0 -75
  234. package/data/pages/Components/components/fadeup.json +0 -127
  235. package/data/pages/Components/components/feedback.json +0 -269
  236. package/data/pages/Components/components/filepickers.json +0 -269
  237. package/data/pages/Components/components/formlabel.json +0 -115
  238. package/data/pages/Components/components/fullscreenmap.json +0 -22
  239. package/data/pages/Components/components/groupeditemlist.json +0 -323
  240. package/data/pages/Components/components/iconlist.json +0 -45
  241. package/data/pages/Components/components/imagepreloader.json +0 -81
  242. package/data/pages/Components/components/labeledelement.json +0 -75
  243. package/data/pages/Components/components/licenseplate.json +0 -69
  244. package/data/pages/Components/components/linecharts.json +0 -987
  245. package/data/pages/Components/components/listmenu.json +0 -313
  246. package/data/pages/Components/components/loadmore.json +0 -175
  247. package/data/pages/Components/components/mainnavigation.json +0 -39
  248. package/data/pages/Components/components/mapcircle.json +0 -34
  249. package/data/pages/Components/components/mapcluster.json +0 -51
  250. package/data/pages/Components/components/mapcontext.json +0 -105
  251. package/data/pages/Components/components/mapdraggablemarker.json +0 -34
  252. package/data/pages/Components/components/mapgettingstarted.json +0 -27
  253. package/data/pages/Components/components/mapgroup.json +0 -1198
  254. package/data/pages/Components/components/mapinfobubble.json +0 -34
  255. package/data/pages/Components/components/maplayergroup.json +0 -34
  256. package/data/pages/Components/components/mapmarker.json +0 -700
  257. package/data/pages/Components/components/mappolygon.json +0 -45
  258. package/data/pages/Components/components/maproute.json +0 -623
  259. package/data/pages/Components/components/maproutegenerator.json +0 -16
  260. package/data/pages/Components/components/mapsettings.json +0 -51
  261. package/data/pages/Components/components/maputils.json +0 -34
  262. package/data/pages/Components/components/multiselects.json +0 -1451
  263. package/data/pages/Components/components/nodata.json +0 -139
  264. package/data/pages/Components/components/notifications.json +0 -65
  265. package/data/pages/Components/components/numbercontrol.json +0 -301
  266. package/data/pages/Components/components/onboarding.json +0 -302
  267. package/data/pages/Components/components/page.json +0 -197
  268. package/data/pages/Components/components/pager.json +0 -93
  269. package/data/pages/Components/components/piecharts.json +0 -731
  270. package/data/pages/Components/components/popover.json +0 -251
  271. package/data/pages/Components/components/position.json +0 -69
  272. package/data/pages/Components/components/radialbarcharts.json +0 -1304
  273. package/data/pages/Components/components/radiobutton.json +0 -1105
  274. package/data/pages/Components/components/releasenotes.json +0 -44
  275. package/data/pages/Components/components/resizer.json +0 -93
  276. package/data/pages/Components/components/responsivecolumnstripe.json +0 -123
  277. package/data/pages/Components/components/responsivevideo.json +0 -75
  278. package/data/pages/Components/components/rioglyph.json +0 -93
  279. package/data/pages/Components/components/rules.json +0 -410
  280. package/data/pages/Components/components/saveableinput.json +0 -703
  281. package/data/pages/Components/components/selects.json +0 -701
  282. package/data/pages/Components/components/sidebar.json +0 -243
  283. package/data/pages/Components/components/sliders.json +0 -235
  284. package/data/pages/Components/components/smoothscrollbars.json +0 -335
  285. package/data/pages/Components/components/spinners.json +0 -343
  286. package/data/pages/Components/components/states.json +0 -1705
  287. package/data/pages/Components/components/statswidgets.json +0 -314
  288. package/data/pages/Components/components/statusbar.json +0 -177
  289. package/data/pages/Components/components/stepbutton.json +0 -57
  290. package/data/pages/Components/components/steppedprogressbars.json +0 -417
  291. package/data/pages/Components/components/subnavigation.json +0 -107
  292. package/data/pages/Components/components/supportmarker.json +0 -45
  293. package/data/pages/Components/components/svgimage.json +0 -81
  294. package/data/pages/Components/components/switch.json +0 -111
  295. package/data/pages/Components/components/tables.json +0 -144
  296. package/data/pages/Components/components/tagmanager.json +0 -86
  297. package/data/pages/Components/components/tags.json +0 -146
  298. package/data/pages/Components/components/teaser.json +0 -188
  299. package/data/pages/Components/components/timeline.json +0 -45
  300. package/data/pages/Components/components/timepicker.json +0 -163
  301. package/data/pages/Components/components/togglebutton.json +0 -247
  302. package/data/pages/Components/components/tooltip.json +0 -270
  303. package/data/pages/Components/components/virtuallist.json +0 -175
  304. package/data/pages/Foundations/foundations.json +0 -2475
  305. package/data/pages/Getting-started/start/changelog.json +0 -22
  306. package/data/pages/Getting-started/start/goodtoknow.json +0 -32
  307. package/data/pages/Getting-started/start/guidelines/color-combinations.json +0 -58
  308. package/data/pages/Getting-started/start/guidelines/custom-css.json +0 -27
  309. package/data/pages/Getting-started/start/guidelines/custom-rioglyph.json +0 -22
  310. package/data/pages/Getting-started/start/guidelines/formatting.json +0 -97
  311. package/data/pages/Getting-started/start/guidelines/iframe.json +0 -93
  312. package/data/pages/Getting-started/start/guidelines/obfuscate-data.json +0 -22
  313. package/data/pages/Getting-started/start/guidelines/print-css.json +0 -37
  314. package/data/pages/Getting-started/start/guidelines/spinner.json +0 -144
  315. package/data/pages/Getting-started/start/guidelines/supported-browsers.json +0 -22
  316. package/data/pages/Getting-started/start/guidelines/writing.json +0 -242
  317. package/data/pages/Getting-started/start/howto.json +0 -72
  318. package/data/pages/Getting-started/start/intro.json +0 -37
  319. package/data/pages/Getting-started/start/responsiveness.json +0 -52
  320. package/data/pages/Templates/templates/common-table.json +0 -39
  321. package/data/pages/Templates/templates/detail-views.json +0 -71
  322. package/data/pages/Templates/templates/expandable-details.json +0 -39
  323. package/data/pages/Templates/templates/feature-cards.json +0 -103
  324. package/data/pages/Templates/templates/form-summary.json +0 -39
  325. package/data/pages/Templates/templates/form-toggle.json +0 -39
  326. package/data/pages/Templates/templates/list-blocks.json +0 -119
  327. package/data/pages/Templates/templates/loading-progress.json +0 -39
  328. package/data/pages/Templates/templates/options-panel.json +0 -39
  329. package/data/pages/Templates/templates/panel-variants.json +0 -39
  330. package/data/pages/Templates/templates/progress-cards.json +0 -71
  331. package/data/pages/Templates/templates/progress-success.json +0 -39
  332. package/data/pages/Templates/templates/settings-form.json +0 -39
  333. package/data/pages/Templates/templates/stats-blocks.json +0 -135
  334. package/data/pages/Templates/templates/table-panel.json +0 -39
  335. package/data/pages/Templates/templates/table-row-animation.json +0 -39
  336. package/data/pages/Templates/templates/usage-cards.json +0 -39
  337. package/data/pages/Utilities/utilities/deviceutils.json +0 -39
  338. package/data/pages/Utilities/utilities/featuretoggles.json +0 -42
  339. package/data/pages/Utilities/utilities/fueltypeutils.json +0 -118
  340. package/data/pages/Utilities/utilities/routeutils.json +0 -34
  341. package/data/pages/Utilities/utilities/useaftermount.json +0 -63
  342. package/data/pages/Utilities/utilities/useaverage.json +0 -86
  343. package/data/pages/Utilities/utilities/useclickoutside.json +0 -69
  344. package/data/pages/Utilities/utilities/useclipboard.json +0 -57
  345. package/data/pages/Utilities/utilities/usecount.json +0 -92
  346. package/data/pages/Utilities/utilities/usedarkmode.json +0 -50
  347. package/data/pages/Utilities/utilities/usedebuginfo.json +0 -63
  348. package/data/pages/Utilities/utilities/useeffectonce.json +0 -57
  349. package/data/pages/Utilities/utilities/useelapsedtime.json +0 -57
  350. package/data/pages/Utilities/utilities/useelementsize.json +0 -63
  351. package/data/pages/Utilities/utilities/useesc.json +0 -57
  352. package/data/pages/Utilities/utilities/useevent.json +0 -75
  353. package/data/pages/Utilities/utilities/usefocustrap.json +0 -57
  354. package/data/pages/Utilities/utilities/usefullscreen.json +0 -197
  355. package/data/pages/Utilities/utilities/usehover.json +0 -57
  356. package/data/pages/Utilities/utilities/useinterval.json +0 -63
  357. package/data/pages/Utilities/utilities/useisfocuswithin.json +0 -75
  358. package/data/pages/Utilities/utilities/usekey.json +0 -75
  359. package/data/pages/Utilities/utilities/uselocalstorage.json +0 -69
  360. package/data/pages/Utilities/utilities/uselocationsuggestions.json +0 -110
  361. package/data/pages/Utilities/utilities/usemax.json +0 -86
  362. package/data/pages/Utilities/utilities/usemin.json +0 -86
  363. package/data/pages/Utilities/utilities/usemutationobserver.json +0 -69
  364. package/data/pages/Utilities/utilities/useonlinestatus.json +0 -39
  365. package/data/pages/Utilities/utilities/useonscreen.json +0 -63
  366. package/data/pages/Utilities/utilities/usepostmessage.json +0 -80
  367. package/data/pages/Utilities/utilities/useprevious.json +0 -63
  368. package/data/pages/Utilities/utilities/useresizeobserver.json +0 -65
  369. package/data/pages/Utilities/utilities/usescrollposition.json +0 -103
  370. package/data/pages/Utilities/utilities/usesearch.json +0 -197
  371. package/data/pages/Utilities/utilities/usesorting.json +0 -139
  372. package/data/pages/Utilities/utilities/usestatewithvalidation.json +0 -69
  373. package/data/pages/Utilities/utilities/usesum.json +0 -86
  374. package/data/pages/Utilities/utilities/usetableexport.json +0 -87
  375. package/data/pages/Utilities/utilities/usetableselection.json +0 -311
  376. package/data/pages/Utilities/utilities/usetimeout.json +0 -63
  377. package/data/pages/Utilities/utilities/usetoggle.json +0 -75
  378. package/data/pages/Utilities/utilities/usewindowresize.json +0 -63
  379. package/data/version.json +0 -4
  380. package/docs/content-schema.md +0 -147
  381. package/docs/navigation-inventory.json +0 -1310
  382. package/docs/search-synonyms.json +0 -43
  383. package/server/index.mjs +0 -268
  384. package/server/lib/load-docs.mjs +0 -48
  385. package/server/lib/normalise-doc.mjs +0 -220
  386. package/server/lib/render-markdown.mjs +0 -82
  387. package/server/lib/search-index.mjs +0 -49
  388. package/server/lib/types.js +0 -99
@@ -0,0 +1,775 @@
1
+ # Button
2
+
3
+ *Category:* Components
4
+ *Section:* Interaction
5
+ *Source:* https://uikit.developers.rio.cloud/#components/button
6
+ *Captured:* 2025-12-12T12:38:12.809Z
7
+
8
+ The button component is the React equivalent to the normal HTML button with some To check out the HTML version click here: Buttons
9
+
10
+ ## Button
11
+
12
+ ### Example: Standard buttons
13
+
14
+ Standard buttons
15
+ DefaultPrimarySecondarySuccessInfoWarningDangerMuted filledMuted
16
+ Disabled buttons
17
+ DefaultPrimarySecondarySuccessInfoWarningDangerMuted filledMuted
18
+ Button sizes
19
+ Extra SmallSmallMediumLarge
20
+ Icon only buttons
21
+
22
+ #### Summary
23
+
24
+ Standard buttons
25
+ DefaultPrimarySecondarySuccessInfoWarningDangerMuted filledMuted
26
+ Disabled buttons
27
+ DefaultPrimarySecondarySuccessInfoWarningDangerMuted filledMuted
28
+ Button sizes
29
+ Extra SmallSmallMediumLarge
30
+ Icon only buttons
31
+
32
+ #### React (tsx)
33
+
34
+ ```tsx
35
+ import Button from '@rio-cloud/rio-uikit/Button';
36
+ import ButtonToolbar from '@rio-cloud/rio-uikit/ButtonToolbar';
37
+ import FormLabel from '@rio-cloud/rio-uikit/FormLabel';
38
+
39
+ export default () => (
40
+ <div>
41
+ <FormLabel>Standard buttons</FormLabel>
42
+ <ButtonToolbar>
43
+ <Button iconName='rioglyph-truck'>Default</Button>
44
+ <Button bsStyle={Button.PRIMARY} iconName='rioglyph-heart'>
45
+ Primary
46
+ </Button>
47
+ <Button bsStyle={Button.SECONDARY} iconName='rioglyph-poi'>
48
+ Secondary
49
+ </Button>
50
+ <Button bsStyle={Button.SUCCESS} iconName='rioglyph-thumbs-up'>
51
+ Success
52
+ </Button>
53
+ <Button bsStyle={Button.INFO} iconName='rioglyph-info-sign'>
54
+ Info
55
+ </Button>
56
+ <Button bsStyle={Button.WARNING} iconName='rioglyph-warning-sign'>
57
+ Warning
58
+ </Button>
59
+ <Button bsStyle={Button.DANGER} iconName='rioglyph-error-sign'>
60
+ Danger
61
+ </Button>
62
+ <Button bsStyle={Button.MUTED_FILLED} iconName='rioglyph-cog'>
63
+ Muted filled
64
+ </Button>
65
+ <Button bsStyle={Button.MUTED} iconName='rioglyph-heart'>
66
+ Muted
67
+ </Button>
68
+ </ButtonToolbar>
69
+
70
+ <FormLabel className='margin-top-15'>Disabled buttons</FormLabel>
71
+ <ButtonToolbar>
72
+ <Button disabled iconName='rioglyph-truck'>
73
+ Default
74
+ </Button>
75
+ <Button bsStyle={Button.PRIMARY} disabled iconName='rioglyph-heart'>
76
+ Primary
77
+ </Button>
78
+ <Button bsStyle={Button.SECONDARY} disabled iconName='rioglyph-poi'>
79
+ Secondary
80
+ </Button>
81
+ <Button bsStyle={Button.SUCCESS} disabled iconName='rioglyph-thumbs-up'>
82
+ Success
83
+ </Button>
84
+ <Button bsStyle={Button.INFO} disabled iconName='rioglyph-info-sign'>
85
+ Info
86
+ </Button>
87
+ <Button bsStyle={Button.WARNING} disabled iconName='rioglyph-warning-sign'>
88
+ Warning
89
+ </Button>
90
+ <Button bsStyle={Button.DANGER} disabled iconName='rioglyph-error-sign'>
91
+ Danger
92
+ </Button>
93
+ <Button bsStyle={Button.MUTED_FILLED} disabled iconName='rioglyph-cog'>
94
+ Muted filled
95
+ </Button>
96
+ <Button bsStyle={Button.MUTED} disabled iconName='rioglyph-heart'>
97
+ Muted
98
+ </Button>
99
+ </ButtonToolbar>
100
+
101
+ <FormLabel className='margin-top-15'>Button sizes</FormLabel>
102
+ <ButtonToolbar>
103
+ <Button bsSize={Button.XS} iconName='rioglyph-truck'>
104
+ Extra Small
105
+ </Button>
106
+ <Button bsStyle={Button.PRIMARY} bsSize={Button.SM} iconName='rioglyph-heart'>
107
+ Small
108
+ </Button>
109
+ <Button bsStyle={Button.SUCCESS} bsSize={Button.MD} iconName='rioglyph-thumbs-up'>
110
+ Medium
111
+ </Button>
112
+ <Button
113
+ bsStyle={Button.INFO}
114
+ bsSize={Button.LG}
115
+ onClick={() => console.log('button clicked')}
116
+ iconName='rioglyph-info-sign'
117
+ >
118
+ Large
119
+ </Button>
120
+ </ButtonToolbar>
121
+
122
+ <FormLabel className='margin-top-15'>Icon only buttons</FormLabel>
123
+ <ButtonToolbar>
124
+ <Button iconOnly iconName='rioglyph-truck' />
125
+ <Button bsStyle={Button.PRIMARY} iconOnly iconName='rioglyph-heart' />
126
+ <Button bsStyle={Button.SUCCESS} iconOnly iconName='rioglyph-thumbs-up' />
127
+ <Button bsStyle={Button.INFO} iconOnly iconName='rioglyph-status-driving' />
128
+ <Button bsStyle={Button.WARNING} iconOnly iconName='rioglyph-warning-sign' />
129
+ <Button bsStyle={Button.DANGER} iconOnly iconName='rioglyph-error-sign' />
130
+ <Button bsStyle={Button.MUTED_FILLED} iconOnly iconName='rioglyph-cog' />
131
+ <Button bsStyle={Button.MUTED} iconOnly iconName='rioglyph-heart' />
132
+ </ButtonToolbar>
133
+ </div>
134
+ );
135
+ ```
136
+
137
+ #### HTML (html)
138
+
139
+ ```html
140
+ <div>
141
+ <div class="text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5">Standard buttons</div>
142
+ <div class="btn-toolbar">
143
+ <button type="button" class="btn btn-default btn-component" tabindex="0">
144
+ <span class="rioglyph rioglyph-truck">
145
+ </span>Default</button>
146
+ <button type="button" class="btn btn-primary btn-component" tabindex="0">
147
+ <span class="rioglyph rioglyph-heart">
148
+ </span>Primary</button>
149
+ <button type="button" class="btn btn-secondary btn-component" tabindex="0">
150
+ <span class="rioglyph rioglyph-poi">
151
+ </span>Secondary</button>
152
+ <button type="button" class="btn btn-success btn-component" tabindex="0">
153
+ <span class="rioglyph rioglyph-thumbs-up">
154
+ </span>Success</button>
155
+ <button type="button" class="btn btn-info btn-component" tabindex="0">
156
+ <span class="rioglyph rioglyph-info-sign">
157
+ </span>Info</button>
158
+ <button type="button" class="btn btn-warning btn-component" tabindex="0">
159
+ <span class="rioglyph rioglyph-warning-sign">
160
+ </span>Warning</button>
161
+ <button type="button" class="btn btn-danger btn-component" tabindex="0">
162
+ <span class="rioglyph rioglyph-error-sign">
163
+ </span>Danger</button>
164
+ <button type="button" class="btn btn-muted-filled btn-component" tabindex="0">
165
+ <span class="rioglyph rioglyph-cog">
166
+ </span>Muted filled</button>
167
+ <button type="button" class="btn btn-muted btn-component" tabindex="0">
168
+ <span class="rioglyph rioglyph-heart">
169
+ </span>Muted</button>
170
+ </div>
171
+ <div class="text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15">Disabled buttons</div>
172
+ <div class="btn-toolbar">
173
+ <button type="button" class="btn btn-default btn-component" disabled="" tabindex="0">
174
+ <span class="rioglyph rioglyph-truck">
175
+ </span>Default</button>
176
+ <button type="button" class="btn btn-primary btn-component" disabled="" tabindex="0">
177
+ <span class="rioglyph rioglyph-heart">
178
+ </span>Primary</button>
179
+ <button type="button" class="btn btn-secondary btn-component" disabled="" tabindex="0">
180
+ <span class="rioglyph rioglyph-poi">
181
+ </span>Secondary</button>
182
+ <button type="button" class="btn btn-success btn-component" disabled="" tabindex="0">
183
+ <span class="rioglyph rioglyph-thumbs-up">
184
+ </span>Success</button>
185
+ <button type="button" class="btn btn-info btn-component" disabled="" tabindex="0">
186
+ <span class="rioglyph rioglyph-info-sign">
187
+ </span>Info</button>
188
+ <button type="button" class="btn btn-warning btn-component" disabled="" tabindex="0">
189
+ <span class="rioglyph rioglyph-warning-sign">
190
+ </span>Warning</button>
191
+ <button type="button" class="btn btn-danger btn-component" disabled="" tabindex="0">
192
+ <span class="rioglyph rioglyph-error-sign">
193
+ </span>Danger</button>
194
+ <button type="button" class="btn btn-muted-filled btn-component" disabled="" tabindex="0">
195
+ <span class="rioglyph rioglyph-cog">
196
+ </span>Muted filled</button>
197
+ <button type="button" class="btn btn-muted btn-component" disabled="" tabindex="0">
198
+ <span class="rioglyph rioglyph-heart">
199
+ </span>Muted</button>
200
+ </div>
201
+ <div class="text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15">Button sizes</div>
202
+ <div class="btn-toolbar">
203
+ <button type="button" class="btn btn-default btn-xs btn-component" tabindex="0">
204
+ <span class="rioglyph rioglyph-truck">
205
+ </span>Extra Small</button>
206
+ <button type="button" class="btn btn-primary btn-sm btn-component" tabindex="0">
207
+ <span class="rioglyph rioglyph-heart">
208
+ </span>Small</button>
209
+ <button type="button" class="btn btn-success btn-md btn-component" tabindex="0">
210
+ <span class="rioglyph rioglyph-thumbs-up">
211
+ </span>Medium</button>
212
+ <button type="button" class="btn btn-info btn-lg btn-component" tabindex="0">
213
+ <span class="rioglyph rioglyph-info-sign">
214
+ </span>Large</button>
215
+ </div>
216
+ <div class="text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15">Icon only buttons</div>
217
+ <div class="btn-toolbar">
218
+ <button type="button" class="btn btn-default btn-icon-only btn-component" tabindex="0">
219
+ <span class="rioglyph rioglyph-truck">
220
+ </span>
221
+ </button>
222
+ <button type="button" class="btn btn-primary btn-icon-only btn-component" tabindex="0">
223
+ <span class="rioglyph rioglyph-heart">
224
+ </span>
225
+ </button>
226
+ <button type="button" class="btn btn-success btn-icon-only btn-component" tabindex="0">
227
+ <span class="rioglyph rioglyph-thumbs-up">
228
+ </span>
229
+ </button>
230
+ <button type="button" class="btn btn-info btn-icon-only btn-component" tabindex="0">
231
+ <span class="rioglyph rioglyph-status-driving">
232
+ </span>
233
+ </button>
234
+ <button type="button" class="btn btn-warning btn-icon-only btn-component" tabindex="0">
235
+ <span class="rioglyph rioglyph-warning-sign">
236
+ </span>
237
+ </button>
238
+ <button type="button" class="btn btn-danger btn-icon-only btn-component" tabindex="0">
239
+ <span class="rioglyph rioglyph-error-sign">
240
+ </span>
241
+ </button>
242
+ <button type="button" class="btn btn-muted-filled btn-icon-only btn-component" tabindex="0">
243
+ <span class="rioglyph rioglyph-cog">
244
+ </span>
245
+ </button>
246
+ <button type="button" class="btn btn-muted btn-icon-only btn-component" tabindex="0">
247
+ <span class="rioglyph rioglyph-heart">
248
+ </span>
249
+ </button>
250
+ </div>
251
+ </div>
252
+ ```
253
+
254
+ #### Props
255
+
256
+ | Name | Type | Default | Description |
257
+ | --- | --- | --- | --- |
258
+ | disabled | Boolean | false | Set the button disabled. |
259
+ | active | Boolean | false | Set the button toggled. Should be used in combination with "asToggle" prop. |
260
+ | asToggle | Boolean | false | Use the button as a toggle button. The toggle state can be controlled viw the "active" prop. |
261
+ | iconOnly | Boolean | false | Use when the content of the button is an icon only to adapt the button spacing accordingly. |
262
+ | iconName | String | — | Optional rio-glyph icon name that comes in handy for icon only buttons for not adding a span tag for the icon which reduces boilerplate code. |
263
+ | iconRight | Boolean | false | Adds right side spacing for an icon. This should be used when having navigation buttons that use an icon on the right side. |
264
+ | multiline | Boolean | false | Defines whether the button text break into multiple lines when the button space exceeds. Multiline buttons should be used as exception only. |
265
+ | block | Boolean | false | Defines whether the button takes up the full width of the parent element. |
266
+ | onClick | Function | () => {} | Callback function triggered when clicking the button. |
267
+ | bsStyle | String | default | Sets the button style. Possible values are: default, primary, info, warning, danger, success, muted-filled and muted or Button.DEFAULT, Button.PRIMARY, Button.INFO, Button.WARNING, Button.DANGER, Button.SUCCESS, Button.MUTED_FILLED and Button.MUTED |
268
+ | bsSize | String | — | Sets the button size. Possible values are: xs, sm, md and lg or Button.XS, Button.SM, Button.MD and Button.LG |
269
+ | variant | String | — | Sets the button variant. Possible values are: link, link-inline, outline and action or Button.VARIANT_LINK, Button.VARIANT_LINK_INLINE, Button.VARIANT_OUTLINE and Button.VARIANT_ACTION |
270
+ | className | String | — | Additional classes to be set on the button element. |
271
+ | children | any | — | Any element to be rendered on the button. |
272
+
273
+ ### Example: Link buttons
274
+
275
+ Link buttons
276
+ PrimarySuccessInfoWarningDanger
277
+ Link inline buttons
278
+
279
+ This is an example for an Inline link button.
280
+ Note Link buttons can also be used within text blocks by setting the variant type to Button.VARIANT_LINK_INLINE.
281
+
282
+ #### Summary
283
+
284
+ Link buttons
285
+ PrimarySuccessInfoWarningDanger
286
+ Link inline buttons
287
+
288
+ This is an example for an Inline link button.
289
+ Note Link buttons can also be used within text blocks by setting the variant type to Button.VARIANT_LINK_INLINE.
290
+
291
+ #### React (tsx)
292
+
293
+ ```tsx
294
+ import Button from '@rio-cloud/rio-uikit/Button';
295
+ import ButtonToolbar from '@rio-cloud/rio-uikit/ButtonToolbar';
296
+ import FormLabel from '@rio-cloud/rio-uikit/FormLabel';
297
+
298
+ export default () => (
299
+ <div>
300
+ <FormLabel>Link buttons</FormLabel>
301
+ <ButtonToolbar>
302
+ <Button bsStyle={Button.PRIMARY} variant={Button.VARIANT_LINK} iconName='rioglyph-heart'>
303
+ Primary
304
+ </Button>
305
+ <Button bsStyle={Button.SUCCESS} variant={Button.VARIANT_LINK} iconName='rioglyph-thumbs-up'>
306
+ Success
307
+ </Button>
308
+ <Button bsStyle={Button.INFO} variant={Button.VARIANT_LINK} iconName='rioglyph-info-sign'>
309
+ Info
310
+ </Button>
311
+ <Button bsStyle={Button.WARNING} variant={Button.VARIANT_LINK} iconName='rioglyph-warning-sign'>
312
+ Warning
313
+ </Button>
314
+ <Button bsStyle={Button.DANGER} variant={Button.VARIANT_LINK} iconName='rioglyph-error-sign'>
315
+ Danger
316
+ </Button>
317
+ </ButtonToolbar>
318
+ <div>
319
+ <FormLabel className='margin-top-25'>Link inline buttons</FormLabel>
320
+ </div>
321
+ <div className='display-inline-flex gap-4'>
322
+ This is an example for an{' '}
323
+ <Button bsStyle={Button.PRIMARY} variant={Button.VARIANT_LINK_INLINE} iconName='rioglyph-new-window'>
324
+ Inline link
325
+ </Button>{' '}
326
+ button.
327
+ </div>
328
+ <p className='margin-top-25'>
329
+ <span className='label label-info label-condensed margin-right-5'>Note</span> Link buttons can also be used
330
+ within text blocks by setting the variant type to <code className='code'>Button.VARIANT_LINK_INLINE</code>.
331
+ </p>
332
+ </div>
333
+ );
334
+ ```
335
+
336
+ #### HTML (html)
337
+
338
+ ```html
339
+ <div data-capture-callout="true">
340
+ <div class="text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5">Link buttons</div>
341
+ <div class="btn-toolbar">
342
+ <button type="button" class="btn btn-primary btn-link btn-component" tabindex="0">
343
+ <span class="rioglyph rioglyph-heart">
344
+ </span>Primary</button>
345
+ <button type="button" class="btn btn-success btn-link btn-component" tabindex="0">
346
+ <span class="rioglyph rioglyph-thumbs-up">
347
+ </span>Success</button>
348
+ <button type="button" class="btn btn-info btn-link btn-component" tabindex="0">
349
+ <span class="rioglyph rioglyph-info-sign">
350
+ </span>Info</button>
351
+ <button type="button" class="btn btn-warning btn-link btn-component" tabindex="0">
352
+ <span class="rioglyph rioglyph-warning-sign">
353
+ </span>Warning</button>
354
+ <button type="button" class="btn btn-danger btn-link btn-component" tabindex="0">
355
+ <span class="rioglyph rioglyph-error-sign">
356
+ </span>Danger</button>
357
+ </div>
358
+ <div>
359
+ <div class="text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-25">Link inline buttons</div>
360
+ </div>
361
+ <div class="display-inline-flex gap-4">This is an example for an <button type="button" class="btn btn-primary btn-link btn-link-inline btn-component" tabindex="0">
362
+ <span class="rioglyph rioglyph-new-window">
363
+ </span>Inline link</button> button.</div>
364
+ <p class="margin-top-25">
365
+ <span class="label label-info label-condensed margin-right-5">Note</span> Link buttons can also be used within text blocks by setting the variant type to <code class="code">Button.VARIANT_LINK_INLINE</code>.
366
+ </p>
367
+ </div>
368
+ ```
369
+
370
+ #### Props
371
+
372
+ | Name | Type | Default | Description |
373
+ | --- | --- | --- | --- |
374
+ | disabled | Boolean | false | Set the button disabled. |
375
+ | active | Boolean | false | Set the button toggled. Should be used in combination with "asToggle" prop. |
376
+ | asToggle | Boolean | false | Use the button as a toggle button. The toggle state can be controlled viw the "active" prop. |
377
+ | iconOnly | Boolean | false | Use when the content of the button is an icon only to adapt the button spacing accordingly. |
378
+ | iconName | String | — | Optional rio-glyph icon name that comes in handy for icon only buttons for not adding a span tag for the icon which reduces boilerplate code. |
379
+ | iconRight | Boolean | false | Adds right side spacing for an icon. This should be used when having navigation buttons that use an icon on the right side. |
380
+ | multiline | Boolean | false | Defines whether the button text break into multiple lines when the button space exceeds. Multiline buttons should be used as exception only. |
381
+ | block | Boolean | false | Defines whether the button takes up the full width of the parent element. |
382
+ | onClick | Function | () => {} | Callback function triggered when clicking the button. |
383
+ | bsStyle | String | default | Sets the button style. Possible values are: default, primary, info, warning, danger, success, muted-filled and muted or Button.DEFAULT, Button.PRIMARY, Button.INFO, Button.WARNING, Button.DANGER, Button.SUCCESS, Button.MUTED_FILLED and Button.MUTED |
384
+ | bsSize | String | — | Sets the button size. Possible values are: xs, sm, md and lg or Button.XS, Button.SM, Button.MD and Button.LG |
385
+ | variant | String | — | Sets the button variant. Possible values are: link, link-inline, outline and action or Button.VARIANT_LINK, Button.VARIANT_LINK_INLINE, Button.VARIANT_OUTLINE and Button.VARIANT_ACTION |
386
+ | className | String | — | Additional classes to be set on the button element. |
387
+ | children | any | — | Any element to be rendered on the button. |
388
+
389
+ ### Example: Button group
390
+
391
+ Button group
392
+
393
+ Button with tooltips
394
+ Button with TooltipDisabled Button with Tooltip
395
+ Block button
396
+ Block button
397
+ Multiline button
398
+ This is a multiline button with a lot of Text
399
+ Toggle button
400
+ Toggle me
401
+ Add something / take picture button example
402
+
403
+ #### Summary
404
+
405
+ Button group
406
+
407
+ Button with tooltips
408
+ Button with TooltipDisabled Button with Tooltip
409
+ Block button
410
+ Block button
411
+ Multiline button
412
+ This is a multiline button with a lot of Text
413
+ Toggle button
414
+ Toggle me
415
+ Add something / take picture button example
416
+
417
+ #### React (tsx)
418
+
419
+ ```tsx
420
+ import Button from '@rio-cloud/rio-uikit/Button';
421
+ import ButtonToolbar from '@rio-cloud/rio-uikit/ButtonToolbar';
422
+ import SimpleTooltip from '@rio-cloud/rio-uikit/SimpleTooltip';
423
+ import FormLabel from '@rio-cloud/rio-uikit/FormLabel';
424
+
425
+ export default () => (
426
+ <div>
427
+ <FormLabel>Button group</FormLabel>
428
+ <ButtonToolbar>
429
+ <div className='btn-group'>
430
+ <Button iconName='rioglyph-cloud-download' iconOnly />
431
+ <Button iconName='rioglyph-cloud-upload' iconOnly />
432
+ <Button iconName='rioglyph-cog' iconOnly />
433
+ </div>
434
+ </ButtonToolbar>
435
+
436
+ <FormLabel className='margin-top-15'>Button with tooltips</FormLabel>
437
+ <ButtonToolbar>
438
+ <SimpleTooltip content='Uhh, click me!' width='auto' placement='bottom'>
439
+ <Button bsStyle={Button.INFO}>Button with Tooltip</Button>
440
+ </SimpleTooltip>
441
+
442
+ <SimpleTooltip content='This is not the button you are looking for' placement='top'>
443
+ <span className='cursor-not-allowed'>
444
+ <Button bsStyle={Button.INFO} disabled>
445
+ Disabled Button with Tooltip
446
+ </Button>
447
+ </span>
448
+ </SimpleTooltip>
449
+ </ButtonToolbar>
450
+
451
+ <FormLabel className='margin-top-15'>Block button</FormLabel>
452
+ <ButtonToolbar className='max-width-500'>
453
+ <Button block>Block button</Button>
454
+ </ButtonToolbar>
455
+
456
+ <FormLabel className='margin-top-15'>Multiline button</FormLabel>
457
+ <ButtonToolbar className='max-width-200'>
458
+ <Button bsStyle={Button.PRIMARY} bsSize={Button.LG} multiline>
459
+ This is a multiline button with a lot of Text
460
+ </Button>
461
+ </ButtonToolbar>
462
+
463
+ <FormLabel className='margin-top-15'>Toggle button</FormLabel>
464
+ <ButtonToolbar className='max-width-200'>
465
+ <Button asToggle>Toggle me</Button>
466
+ </ButtonToolbar>
467
+
468
+ <FormLabel className='margin-top-15'>Add something / take picture button example</FormLabel>
469
+ <ButtonToolbar className='max-width-200'>
470
+ <Button
471
+ bsStyle='unstyled'
472
+ className={
473
+ 'height-70 width-60 bg-lightest border border-style-dashed ' +
474
+ 'border-width-1 border-color-light text-color-light hover-text-color-darker'
475
+ }
476
+ >
477
+ <span className='rioglyph rioglyph-plus-sign margin-0 text-size-20' />
478
+ </Button>
479
+ </ButtonToolbar>
480
+ </div>
481
+ );
482
+ ```
483
+
484
+ #### HTML (html)
485
+
486
+ ```html
487
+ <div>
488
+ <div class="text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5">Button group</div>
489
+ <div class="btn-toolbar">
490
+ <div class="btn-group">
491
+ <button type="button" class="btn btn-default btn-icon-only btn-component" tabindex="0">
492
+ <span class="rioglyph rioglyph-cloud-download">
493
+ </span>
494
+ </button>
495
+ <button type="button" class="btn btn-default btn-icon-only btn-component" tabindex="0">
496
+ <span class="rioglyph rioglyph-cloud-upload">
497
+ </span>
498
+ </button>
499
+ <button type="button" class="btn btn-default btn-icon-only btn-component" tabindex="0">
500
+ <span class="rioglyph rioglyph-cog">
501
+ </span>
502
+ </button>
503
+ </div>
504
+ </div>
505
+ <div class="text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15">Button with tooltips</div>
506
+ <div class="btn-toolbar">
507
+ <button type="button" class="btn btn-info btn-component" tabindex="0">Button with Tooltip</button>
508
+ <span class="cursor-not-allowed">
509
+ <button type="button" class="btn btn-info btn-component" disabled="" tabindex="0">Disabled Button with Tooltip</button>
510
+ </span>
511
+ </div>
512
+ <div class="text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15">Block button</div>
513
+ <div class="max-width-500 btn-toolbar">
514
+ <button type="button" class="btn btn-default btn-block btn-component" tabindex="0">Block button</button>
515
+ </div>
516
+ <div class="text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15">Multiline button</div>
517
+ <div class="max-width-200 btn-toolbar">
518
+ <button type="button" class="btn btn-primary btn-lg btn-multiline btn-component" tabindex="0">This is a multiline button with a lot of Text</button>
519
+ </div>
520
+ <div class="text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15">Toggle button</div>
521
+ <div class="max-width-200 btn-toolbar">
522
+ <button type="button" class="btn btn-default btn-toggle btn-component" tabindex="0">Toggle me</button>
523
+ </div>
524
+ <div class="text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15">Add something / take picture button example</div>
525
+ <div class="max-width-200 btn-toolbar">
526
+ <button type="button" class="btn btn-unstyled btn-component height-70 width-60 bg-lightest border border-style-dashed border-width-1 border-color-light text-color-light hover-text-color-darker" tabindex="0">
527
+ <span class="rioglyph rioglyph-plus-sign margin-0 text-size-20">
528
+ </span>
529
+ </button>
530
+ </div>
531
+ </div>
532
+ ```
533
+
534
+ #### Props
535
+
536
+ | Name | Type | Default | Description |
537
+ | --- | --- | --- | --- |
538
+ | disabled | Boolean | false | Set the button disabled. |
539
+ | active | Boolean | false | Set the button toggled. Should be used in combination with "asToggle" prop. |
540
+ | asToggle | Boolean | false | Use the button as a toggle button. The toggle state can be controlled viw the "active" prop. |
541
+ | iconOnly | Boolean | false | Use when the content of the button is an icon only to adapt the button spacing accordingly. |
542
+ | iconName | String | — | Optional rio-glyph icon name that comes in handy for icon only buttons for not adding a span tag for the icon which reduces boilerplate code. |
543
+ | iconRight | Boolean | false | Adds right side spacing for an icon. This should be used when having navigation buttons that use an icon on the right side. |
544
+ | multiline | Boolean | false | Defines whether the button text break into multiple lines when the button space exceeds. Multiline buttons should be used as exception only. |
545
+ | block | Boolean | false | Defines whether the button takes up the full width of the parent element. |
546
+ | onClick | Function | () => {} | Callback function triggered when clicking the button. |
547
+ | bsStyle | String | default | Sets the button style. Possible values are: default, primary, info, warning, danger, success, muted-filled and muted or Button.DEFAULT, Button.PRIMARY, Button.INFO, Button.WARNING, Button.DANGER, Button.SUCCESS, Button.MUTED_FILLED and Button.MUTED |
548
+ | bsSize | String | — | Sets the button size. Possible values are: xs, sm, md and lg or Button.XS, Button.SM, Button.MD and Button.LG |
549
+ | variant | String | — | Sets the button variant. Possible values are: link, link-inline, outline and action or Button.VARIANT_LINK, Button.VARIANT_LINK_INLINE, Button.VARIANT_OUTLINE and Button.VARIANT_ACTION |
550
+ | className | String | — | Additional classes to be set on the button element. |
551
+ | children | any | — | Any element to be rendered on the button. |
552
+
553
+ ### Example: Outlined buttons (transparent)
554
+
555
+ Outlined buttons (transparent)
556
+ DefaultPrimarySuccessInfoWarningDangerMuted filledMuted
557
+
558
+ #### Summary
559
+
560
+ Outlined buttons (transparent)
561
+ DefaultPrimarySuccessInfoWarningDangerMuted filledMuted
562
+
563
+ #### React (tsx)
564
+
565
+ ```tsx
566
+ import Button from '@rio-cloud/rio-uikit/Button';
567
+ import ButtonToolbar from '@rio-cloud/rio-uikit/ButtonToolbar';
568
+ import FormLabel from '@rio-cloud/rio-uikit/FormLabel';
569
+
570
+ export default () => (
571
+ <div>
572
+ <FormLabel>Outlined buttons (transparent)</FormLabel>
573
+ <ButtonToolbar>
574
+ <Button variant={Button.VARIANT_OUTLINE} iconName='rioglyph-truck'>
575
+ Default
576
+ </Button>
577
+ <Button bsStyle={Button.PRIMARY} variant={Button.VARIANT_OUTLINE} iconName='rioglyph-heart'>
578
+ Primary
579
+ </Button>
580
+ <Button bsStyle={Button.SUCCESS} variant={Button.VARIANT_OUTLINE} iconName='rioglyph-thumbs-up'>
581
+ Success
582
+ </Button>
583
+ <Button bsStyle={Button.INFO} variant={Button.VARIANT_OUTLINE} iconName='rioglyph-info-sign'>
584
+ Info
585
+ </Button>
586
+ <Button bsStyle={Button.WARNING} variant={Button.VARIANT_OUTLINE} iconName='rioglyph-warning-sign'>
587
+ Warning
588
+ </Button>
589
+ <Button bsStyle={Button.DANGER} variant={Button.VARIANT_OUTLINE} iconName='rioglyph-error-sign'>
590
+ Danger
591
+ </Button>
592
+ <Button bsStyle={Button.MUTED_FILLED} variant={Button.VARIANT_OUTLINE} iconName='rioglyph-cog'>
593
+ Muted filled
594
+ </Button>
595
+ <Button bsStyle={Button.MUTED} variant={Button.VARIANT_OUTLINE} iconName='rioglyph-heart'>
596
+ Muted
597
+ </Button>
598
+ </ButtonToolbar>
599
+ </div>
600
+ );
601
+ ```
602
+
603
+ #### HTML (html)
604
+
605
+ ```html
606
+ <div>
607
+ <div class="text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5">Outlined buttons (transparent)</div>
608
+ <div class="btn-toolbar">
609
+ <button type="button" class="btn btn-default btn-outline btn-component" tabindex="0">
610
+ <span class="rioglyph rioglyph-truck">
611
+ </span>Default</button>
612
+ <button type="button" class="btn btn-primary btn-outline btn-component" tabindex="0">
613
+ <span class="rioglyph rioglyph-heart">
614
+ </span>Primary</button>
615
+ <button type="button" class="btn btn-success btn-outline btn-component" tabindex="0">
616
+ <span class="rioglyph rioglyph-thumbs-up">
617
+ </span>Success</button>
618
+ <button type="button" class="btn btn-info btn-outline btn-component" tabindex="0">
619
+ <span class="rioglyph rioglyph-info-sign">
620
+ </span>Info</button>
621
+ <button type="button" class="btn btn-warning btn-outline btn-component" tabindex="0">
622
+ <span class="rioglyph rioglyph-warning-sign">
623
+ </span>Warning</button>
624
+ <button type="button" class="btn btn-danger btn-outline btn-component" tabindex="0">
625
+ <span class="rioglyph rioglyph-error-sign">
626
+ </span>Danger</button>
627
+ <button type="button" class="btn btn-muted-filled btn-outline btn-component" tabindex="0">
628
+ <span class="rioglyph rioglyph-cog">
629
+ </span>Muted filled</button>
630
+ <button type="button" class="btn btn-muted btn-outline btn-component" tabindex="0">
631
+ <span class="rioglyph rioglyph-heart">
632
+ </span>Muted</button>
633
+ </div>
634
+ </div>
635
+ ```
636
+
637
+ #### Props
638
+
639
+ | Name | Type | Default | Description |
640
+ | --- | --- | --- | --- |
641
+ | disabled | Boolean | false | Set the button disabled. |
642
+ | active | Boolean | false | Set the button toggled. Should be used in combination with "asToggle" prop. |
643
+ | asToggle | Boolean | false | Use the button as a toggle button. The toggle state can be controlled viw the "active" prop. |
644
+ | iconOnly | Boolean | false | Use when the content of the button is an icon only to adapt the button spacing accordingly. |
645
+ | iconName | String | — | Optional rio-glyph icon name that comes in handy for icon only buttons for not adding a span tag for the icon which reduces boilerplate code. |
646
+ | iconRight | Boolean | false | Adds right side spacing for an icon. This should be used when having navigation buttons that use an icon on the right side. |
647
+ | multiline | Boolean | false | Defines whether the button text break into multiple lines when the button space exceeds. Multiline buttons should be used as exception only. |
648
+ | block | Boolean | false | Defines whether the button takes up the full width of the parent element. |
649
+ | onClick | Function | () => {} | Callback function triggered when clicking the button. |
650
+ | bsStyle | String | default | Sets the button style. Possible values are: default, primary, info, warning, danger, success, muted-filled and muted or Button.DEFAULT, Button.PRIMARY, Button.INFO, Button.WARNING, Button.DANGER, Button.SUCCESS, Button.MUTED_FILLED and Button.MUTED |
651
+ | bsSize | String | — | Sets the button size. Possible values are: xs, sm, md and lg or Button.XS, Button.SM, Button.MD and Button.LG |
652
+ | variant | String | — | Sets the button variant. Possible values are: link, link-inline, outline and action or Button.VARIANT_LINK, Button.VARIANT_LINK_INLINE, Button.VARIANT_OUTLINE and Button.VARIANT_ACTION |
653
+ | className | String | — | Additional classes to be set on the button element. |
654
+ | children | any | — | Any element to be rendered on the button. |
655
+
656
+ ### Example: Action buttons
657
+
658
+ Action buttons
659
+ Click me!Click me!Click me!Click me!Click me!Click me!
660
+
661
+ #### Summary
662
+
663
+ Action buttons
664
+ Click me!Click me!Click me!Click me!Click me!Click me!
665
+
666
+ #### React (tsx)
667
+
668
+ ```tsx
669
+ import Button from '@rio-cloud/rio-uikit/Button';
670
+ import ButtonToolbar from '@rio-cloud/rio-uikit/ButtonToolbar';
671
+ import FormLabel from '@rio-cloud/rio-uikit/FormLabel';
672
+
673
+ export default () => (
674
+ <div>
675
+ <FormLabel>Action buttons</FormLabel>
676
+ <ButtonToolbar className='align-items-start'>
677
+ <Button
678
+ bsStyle={Button.PRIMARY}
679
+ variant={Button.VARIANT_ACTION}
680
+ iconName='rioglyph-truck'
681
+ className='text-size-h1'
682
+ >
683
+ Click me!
684
+ </Button>
685
+ <Button
686
+ bsStyle={Button.SUCCESS}
687
+ variant={Button.VARIANT_ACTION}
688
+ iconName='rioglyph-thumbs-up'
689
+ className='text-size-h2'
690
+ >
691
+ Click me!
692
+ </Button>
693
+ <Button
694
+ bsStyle={Button.INFO}
695
+ variant={Button.VARIANT_ACTION}
696
+ iconName='rioglyph-info-sign'
697
+ className='text-size-h3'
698
+ >
699
+ Click me!
700
+ </Button>
701
+ <Button
702
+ bsStyle={Button.WARNING}
703
+ variant={Button.VARIANT_ACTION}
704
+ iconName='rioglyph-warning-sign'
705
+ className='text-size-20'
706
+ >
707
+ Click me!
708
+ </Button>
709
+ <Button
710
+ bsStyle={Button.DANGER}
711
+ variant={Button.VARIANT_ACTION}
712
+ iconName='rioglyph-error-sign'
713
+ className='text-size-16'
714
+ >
715
+ Click me!
716
+ </Button>
717
+ <Button
718
+ bsStyle={Button.MUTED}
719
+ variant={Button.VARIANT_ACTION}
720
+ iconName='rioglyph-cog'
721
+ className='text-size-14'
722
+ >
723
+ Click me!
724
+ </Button>
725
+ </ButtonToolbar>
726
+ </div>
727
+ );
728
+ ```
729
+
730
+ #### HTML (html)
731
+
732
+ ```html
733
+ <div>
734
+ <div class="text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5">Action buttons</div>
735
+ <div class="align-items-start btn-toolbar">
736
+ <button type="button" class="btn btn-primary btn-action btn-component text-size-h1" tabindex="0">
737
+ <span class="rioglyph rioglyph-truck">
738
+ </span>Click me!</button>
739
+ <button type="button" class="btn btn-success btn-action btn-component text-size-h2" tabindex="0">
740
+ <span class="rioglyph rioglyph-thumbs-up">
741
+ </span>Click me!</button>
742
+ <button type="button" class="btn btn-info btn-action btn-component text-size-h3" tabindex="0">
743
+ <span class="rioglyph rioglyph-info-sign">
744
+ </span>Click me!</button>
745
+ <button type="button" class="btn btn-warning btn-action btn-component text-size-20" tabindex="0">
746
+ <span class="rioglyph rioglyph-warning-sign">
747
+ </span>Click me!</button>
748
+ <button type="button" class="btn btn-danger btn-action btn-component text-size-16" tabindex="0">
749
+ <span class="rioglyph rioglyph-error-sign">
750
+ </span>Click me!</button>
751
+ <button type="button" class="btn btn-muted btn-action btn-component text-size-14" tabindex="0">
752
+ <span class="rioglyph rioglyph-cog">
753
+ </span>Click me!</button>
754
+ </div>
755
+ </div>
756
+ ```
757
+
758
+ #### Props
759
+
760
+ | Name | Type | Default | Description |
761
+ | --- | --- | --- | --- |
762
+ | disabled | Boolean | false | Set the button disabled. |
763
+ | active | Boolean | false | Set the button toggled. Should be used in combination with "asToggle" prop. |
764
+ | asToggle | Boolean | false | Use the button as a toggle button. The toggle state can be controlled viw the "active" prop. |
765
+ | iconOnly | Boolean | false | Use when the content of the button is an icon only to adapt the button spacing accordingly. |
766
+ | iconName | String | — | Optional rio-glyph icon name that comes in handy for icon only buttons for not adding a span tag for the icon which reduces boilerplate code. |
767
+ | iconRight | Boolean | false | Adds right side spacing for an icon. This should be used when having navigation buttons that use an icon on the right side. |
768
+ | multiline | Boolean | false | Defines whether the button text break into multiple lines when the button space exceeds. Multiline buttons should be used as exception only. |
769
+ | block | Boolean | false | Defines whether the button takes up the full width of the parent element. |
770
+ | onClick | Function | () => {} | Callback function triggered when clicking the button. |
771
+ | bsStyle | String | default | Sets the button style. Possible values are: default, primary, info, warning, danger, success, muted-filled and muted or Button.DEFAULT, Button.PRIMARY, Button.INFO, Button.WARNING, Button.DANGER, Button.SUCCESS, Button.MUTED_FILLED and Button.MUTED |
772
+ | bsSize | String | — | Sets the button size. Possible values are: xs, sm, md and lg or Button.XS, Button.SM, Button.MD and Button.LG |
773
+ | variant | String | — | Sets the button variant. Possible values are: link, link-inline, outline and action or Button.VARIANT_LINK, Button.VARIANT_LINK_INLINE, Button.VARIANT_OUTLINE and Button.VARIANT_ACTION |
774
+ | className | String | — | Additional classes to be set on the button element. |
775
+ | children | any | — | Any element to be rendered on the button. |