@rio-cloud/uikit-mcp 1.0.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.
- package/LICENSE +202 -0
- package/README.md +91 -0
- package/bin/uikit-mcp.mjs +23 -0
- package/data/pages/Components/components/accentbar.json +207 -0
- package/data/pages/Components/components/activity.json +87 -0
- package/data/pages/Components/components/animatednumber.json +99 -0
- package/data/pages/Components/components/animations.json +87 -0
- package/data/pages/Components/components/appheader.json +291 -0
- package/data/pages/Components/components/applayout.json +1198 -0
- package/data/pages/Components/components/appnavigationbar.json +327 -0
- package/data/pages/Components/components/areacharts.json +563 -0
- package/data/pages/Components/components/aspectratioplaceholder.json +75 -0
- package/data/pages/Components/components/assettree.json +3080 -0
- package/data/pages/Components/components/autosuggests.json +710 -0
- package/data/pages/Components/components/avatar.json +157 -0
- package/data/pages/Components/components/banner.json +599 -0
- package/data/pages/Components/components/barcharts.json +1507 -0
- package/data/pages/Components/components/barlist.json +223 -0
- package/data/pages/Components/components/basicmap.json +68 -0
- package/data/pages/Components/components/bottomsheet.json +601 -0
- package/data/pages/Components/components/button.json +583 -0
- package/data/pages/Components/components/buttontoolbar.json +63 -0
- package/data/pages/Components/components/calendarstripe.json +235 -0
- package/data/pages/Components/components/card.json +69 -0
- package/data/pages/Components/components/carousel.json +39 -0
- package/data/pages/Components/components/chartcolors.json +34 -0
- package/data/pages/Components/components/chartsgettingstarted.json +32 -0
- package/data/pages/Components/components/chat.json +39 -0
- package/data/pages/Components/components/checkbox.json +847 -0
- package/data/pages/Components/components/clearableinput.json +789 -0
- package/data/pages/Components/components/collapse.json +175 -0
- package/data/pages/Components/components/composedcharts.json +159 -0
- package/data/pages/Components/components/contentloader.json +233 -0
- package/data/pages/Components/components/datatabs.json +680 -0
- package/data/pages/Components/components/datepickers.json +287 -0
- package/data/pages/Components/components/dialogs.json +1492 -0
- package/data/pages/Components/components/divider.json +93 -0
- package/data/pages/Components/components/dropdowns.json +936 -0
- package/data/pages/Components/components/editablecontent.json +1117 -0
- package/data/pages/Components/components/expander.json +377 -0
- package/data/pages/Components/components/fade.json +403 -0
- package/data/pages/Components/components/fadeexpander.json +75 -0
- package/data/pages/Components/components/fadeup.json +127 -0
- package/data/pages/Components/components/feedback.json +269 -0
- package/data/pages/Components/components/filepickers.json +269 -0
- package/data/pages/Components/components/formlabel.json +115 -0
- package/data/pages/Components/components/fullscreenmap.json +22 -0
- package/data/pages/Components/components/groupeditemlist.json +323 -0
- package/data/pages/Components/components/iconlist.json +45 -0
- package/data/pages/Components/components/imagepreloader.json +81 -0
- package/data/pages/Components/components/labeledelement.json +75 -0
- package/data/pages/Components/components/licenseplate.json +69 -0
- package/data/pages/Components/components/linecharts.json +987 -0
- package/data/pages/Components/components/listmenu.json +313 -0
- package/data/pages/Components/components/loadmore.json +175 -0
- package/data/pages/Components/components/mainnavigation.json +39 -0
- package/data/pages/Components/components/mapcircle.json +34 -0
- package/data/pages/Components/components/mapcluster.json +51 -0
- package/data/pages/Components/components/mapcontext.json +105 -0
- package/data/pages/Components/components/mapdraggablemarker.json +34 -0
- package/data/pages/Components/components/mapgettingstarted.json +27 -0
- package/data/pages/Components/components/mapgroup.json +1198 -0
- package/data/pages/Components/components/mapinfobubble.json +34 -0
- package/data/pages/Components/components/maplayergroup.json +34 -0
- package/data/pages/Components/components/mapmarker.json +700 -0
- package/data/pages/Components/components/mappolygon.json +45 -0
- package/data/pages/Components/components/maproute.json +623 -0
- package/data/pages/Components/components/maproutegenerator.json +16 -0
- package/data/pages/Components/components/mapsettings.json +51 -0
- package/data/pages/Components/components/maputils.json +34 -0
- package/data/pages/Components/components/multiselects.json +1451 -0
- package/data/pages/Components/components/nodata.json +139 -0
- package/data/pages/Components/components/notifications.json +65 -0
- package/data/pages/Components/components/numbercontrol.json +301 -0
- package/data/pages/Components/components/onboarding.json +302 -0
- package/data/pages/Components/components/page.json +197 -0
- package/data/pages/Components/components/pager.json +93 -0
- package/data/pages/Components/components/piecharts.json +731 -0
- package/data/pages/Components/components/popover.json +251 -0
- package/data/pages/Components/components/position.json +69 -0
- package/data/pages/Components/components/radialbarcharts.json +1304 -0
- package/data/pages/Components/components/radiobutton.json +1105 -0
- package/data/pages/Components/components/releasenotes.json +44 -0
- package/data/pages/Components/components/resizer.json +93 -0
- package/data/pages/Components/components/responsivecolumnstripe.json +123 -0
- package/data/pages/Components/components/responsivevideo.json +75 -0
- package/data/pages/Components/components/rioglyph.json +93 -0
- package/data/pages/Components/components/rules.json +410 -0
- package/data/pages/Components/components/saveableinput.json +703 -0
- package/data/pages/Components/components/selects.json +701 -0
- package/data/pages/Components/components/sidebar.json +243 -0
- package/data/pages/Components/components/sliders.json +235 -0
- package/data/pages/Components/components/smoothscrollbars.json +335 -0
- package/data/pages/Components/components/spinners.json +343 -0
- package/data/pages/Components/components/states.json +1705 -0
- package/data/pages/Components/components/statswidgets.json +314 -0
- package/data/pages/Components/components/statusbar.json +177 -0
- package/data/pages/Components/components/stepbutton.json +57 -0
- package/data/pages/Components/components/steppedprogressbars.json +417 -0
- package/data/pages/Components/components/subnavigation.json +107 -0
- package/data/pages/Components/components/supportmarker.json +45 -0
- package/data/pages/Components/components/svgimage.json +81 -0
- package/data/pages/Components/components/switch.json +111 -0
- package/data/pages/Components/components/tables.json +144 -0
- package/data/pages/Components/components/tagmanager.json +86 -0
- package/data/pages/Components/components/tags.json +146 -0
- package/data/pages/Components/components/teaser.json +188 -0
- package/data/pages/Components/components/timeline.json +45 -0
- package/data/pages/Components/components/timepicker.json +163 -0
- package/data/pages/Components/components/togglebutton.json +247 -0
- package/data/pages/Components/components/tooltip.json +270 -0
- package/data/pages/Components/components/virtuallist.json +175 -0
- package/data/pages/Foundations/foundations.json +2475 -0
- package/data/pages/Getting-started/start/changelog.json +22 -0
- package/data/pages/Getting-started/start/goodtoknow.json +32 -0
- package/data/pages/Getting-started/start/guidelines/color-combinations.json +58 -0
- package/data/pages/Getting-started/start/guidelines/custom-css.json +27 -0
- package/data/pages/Getting-started/start/guidelines/custom-rioglyph.json +22 -0
- package/data/pages/Getting-started/start/guidelines/formatting.json +97 -0
- package/data/pages/Getting-started/start/guidelines/iframe.json +93 -0
- package/data/pages/Getting-started/start/guidelines/obfuscate-data.json +22 -0
- package/data/pages/Getting-started/start/guidelines/print-css.json +37 -0
- package/data/pages/Getting-started/start/guidelines/spinner.json +144 -0
- package/data/pages/Getting-started/start/guidelines/supported-browsers.json +22 -0
- package/data/pages/Getting-started/start/guidelines/writing.json +242 -0
- package/data/pages/Getting-started/start/howto.json +72 -0
- package/data/pages/Getting-started/start/intro.json +37 -0
- package/data/pages/Getting-started/start/responsiveness.json +52 -0
- package/data/pages/Templates/templates/common-table.json +39 -0
- package/data/pages/Templates/templates/detail-views.json +71 -0
- package/data/pages/Templates/templates/expandable-details.json +39 -0
- package/data/pages/Templates/templates/feature-cards.json +103 -0
- package/data/pages/Templates/templates/form-summary.json +39 -0
- package/data/pages/Templates/templates/form-toggle.json +39 -0
- package/data/pages/Templates/templates/list-blocks.json +119 -0
- package/data/pages/Templates/templates/loading-progress.json +39 -0
- package/data/pages/Templates/templates/options-panel.json +39 -0
- package/data/pages/Templates/templates/panel-variants.json +39 -0
- package/data/pages/Templates/templates/progress-cards.json +71 -0
- package/data/pages/Templates/templates/progress-success.json +39 -0
- package/data/pages/Templates/templates/settings-form.json +39 -0
- package/data/pages/Templates/templates/stats-blocks.json +135 -0
- package/data/pages/Templates/templates/table-panel.json +39 -0
- package/data/pages/Templates/templates/table-row-animation.json +39 -0
- package/data/pages/Templates/templates/usage-cards.json +39 -0
- package/data/pages/Utilities/utilities/deviceutils.json +39 -0
- package/data/pages/Utilities/utilities/featuretoggles.json +42 -0
- package/data/pages/Utilities/utilities/fueltypeutils.json +118 -0
- package/data/pages/Utilities/utilities/routeutils.json +34 -0
- package/data/pages/Utilities/utilities/useaftermount.json +63 -0
- package/data/pages/Utilities/utilities/useaverage.json +86 -0
- package/data/pages/Utilities/utilities/useclickoutside.json +69 -0
- package/data/pages/Utilities/utilities/useclipboard.json +57 -0
- package/data/pages/Utilities/utilities/usecount.json +92 -0
- package/data/pages/Utilities/utilities/usedarkmode.json +50 -0
- package/data/pages/Utilities/utilities/usedebuginfo.json +63 -0
- package/data/pages/Utilities/utilities/useeffectonce.json +57 -0
- package/data/pages/Utilities/utilities/useelapsedtime.json +57 -0
- package/data/pages/Utilities/utilities/useelementsize.json +63 -0
- package/data/pages/Utilities/utilities/useesc.json +57 -0
- package/data/pages/Utilities/utilities/useevent.json +75 -0
- package/data/pages/Utilities/utilities/usefocustrap.json +57 -0
- package/data/pages/Utilities/utilities/usefullscreen.json +197 -0
- package/data/pages/Utilities/utilities/usehover.json +57 -0
- package/data/pages/Utilities/utilities/useinterval.json +63 -0
- package/data/pages/Utilities/utilities/useisfocuswithin.json +75 -0
- package/data/pages/Utilities/utilities/usekey.json +75 -0
- package/data/pages/Utilities/utilities/uselocalstorage.json +69 -0
- package/data/pages/Utilities/utilities/uselocationsuggestions.json +110 -0
- package/data/pages/Utilities/utilities/usemax.json +86 -0
- package/data/pages/Utilities/utilities/usemin.json +86 -0
- package/data/pages/Utilities/utilities/usemutationobserver.json +69 -0
- package/data/pages/Utilities/utilities/useonlinestatus.json +39 -0
- package/data/pages/Utilities/utilities/useonscreen.json +63 -0
- package/data/pages/Utilities/utilities/usepostmessage.json +80 -0
- package/data/pages/Utilities/utilities/useprevious.json +63 -0
- package/data/pages/Utilities/utilities/useresizeobserver.json +65 -0
- package/data/pages/Utilities/utilities/usescrollposition.json +103 -0
- package/data/pages/Utilities/utilities/usesearch.json +197 -0
- package/data/pages/Utilities/utilities/usesorting.json +139 -0
- package/data/pages/Utilities/utilities/usestatewithvalidation.json +69 -0
- package/data/pages/Utilities/utilities/usesum.json +86 -0
- package/data/pages/Utilities/utilities/usetableexport.json +87 -0
- package/data/pages/Utilities/utilities/usetableselection.json +311 -0
- package/data/pages/Utilities/utilities/usetimeout.json +63 -0
- package/data/pages/Utilities/utilities/usetoggle.json +75 -0
- package/data/pages/Utilities/utilities/usewindowresize.json +63 -0
- package/data/version.json +4 -0
- package/docs/content-schema.md +147 -0
- package/docs/navigation-inventory.json +1310 -0
- package/docs/search-synonyms.json +43 -0
- package/package.json +38 -0
- package/server/index.mjs +268 -0
- package/server/lib/load-docs.mjs +48 -0
- package/server/lib/normalise-doc.mjs +220 -0
- package/server/lib/render-markdown.mjs +82 -0
- package/server/lib/search-index.mjs +49 -0
- package/server/lib/types.js +99 -0
|
@@ -0,0 +1,599 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"captured_at": "2025-11-21T12:07:34.925Z",
|
|
4
|
+
"source": "https://uikit.developers.rio.cloud/#components/banner",
|
|
5
|
+
"category": "Components",
|
|
6
|
+
"section": "Content",
|
|
7
|
+
"slug": "components/banner",
|
|
8
|
+
"version": "v1.13.2",
|
|
9
|
+
"hash_algorithm": "sha256",
|
|
10
|
+
"hash": "fa875c4428b25b120b9d42e8aa1a8d38ce6139b041bd4f11db399b9cb73618c2"
|
|
11
|
+
},
|
|
12
|
+
"title": "Banner",
|
|
13
|
+
"lead": "Convey information or prompt action through in-line banners, ideal for educational content, updates, or announcements.",
|
|
14
|
+
"content": [
|
|
15
|
+
{
|
|
16
|
+
"heading": "Banner",
|
|
17
|
+
"body": "Banner with multiple pages",
|
|
18
|
+
"examples": [
|
|
19
|
+
{
|
|
20
|
+
"caption": "Example 1",
|
|
21
|
+
"rendered_html": "<div class=\"playground-content bg-lighter padding-20 padding-bottom-25\" style=\"width: 100%;\"><div><div style=\"height: 0px; opacity: 0.0138889;\"><div style=\"position: relative;\"><div class=\"bg-white rounded border shadow-default padding-20 Banner display-flex text-color-darker overflow-hidden position-relative\"><div class=\"flex-1-1 overflow-hidden\"><div style=\"opacity: 0.0437861; transform: translateX(95.6214px) translateZ(0px);\"><div class=\"display-flex align-items-start align-items-center-ls width-100pct gap-15 \"><div class=\"BannerIcon flex-0 margin-x-5 min-width-25 \"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"80\" height=\"60\" viewBox=\"0 0 773 612\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" role=\"img\" artist=\"Katerina Limpitsouni\" source=\"https://undraw.co/\"><path d=\"M850.4211,442.927l32.63119-35.49645-26.706-21.07259-13.19279,29.16777-59.85542,19.77364a11.99113,11.99113,0,1,0,3.85641,17.25776Z\" transform=\"translate(-213.5 -144)\" fill=\"#ffb6b6\"></path><path d=\"M910.23781,362.72613c5.91493,13.18947-30.17271,50.86966-30.17271,50.86966-9.86955,7.98163-11.43422,27.95951-23.66746,30.18374-33,6-12.47561-.27862-21,3-8.02175,3.08529-.63334-23.32158-6-25-3.06911-.95987,14-12,14-12s15.38283-30.16748,24.84111-45.81544a30.64419,30.64419,0,0,1,25.32877-15.25847S904.32285,349.53668,910.23781,362.72613Z\" transform=\"translate(-213.5 -144)\" fill=\"#e6e6e6\"></path><path d=\"M757.45673,754.81488H382.499a33.5588,33.5588,0,0,1-33.5209-33.52087V177.5209A33.55882,33.55882,0,0,1,382.499,144H757.45673a33.5588,33.5588,0,0,1,33.52087,33.5209V721.294A33.55885,33.55885,0,0,1,757.45673,754.81488Z\" transform=\"translate(-213.5 -144)\" fill=\"#3f3d56\"></path><path d=\"M758.1167,733.4278H381.839a10.345,10.345,0,0,1-10.33319-10.3332V175.72026A10.345,10.345,0,0,1,381.839,165.38707H758.1167a10.345,10.345,0,0,1,10.33319,10.33319V723.0946A10.345,10.345,0,0,1,758.1167,733.4278Z\" transform=\"translate(-213.5 -144)\" fill=\"#fff\"></path><path d=\"M400.196,417.2599c1.05037-14.2625,2.78468-31.7964,16.89581-39.41573,6.65845-3.59524,13.70893-2.32332,20.40314.47908,6.46856,2.70794,12.5627,5.93585,19.5296,7.209a56.69026,56.69026,0,0,0,35.241-5.28468,54.16607,54.16607,0,0,0,24.92977-25.51437c2.67184-5.633,4.87982-11.73757,8.81615-16.6538a18.52389,18.52389,0,0,1,17.12456-7.08681c14.79633,1.82667,24.61523,14.7913,36.411,22.42333,5.67289,3.67045,12.18724,6.35048,19.05617,6.02185,7.04576-.33709,13.43255-3.67234,18.8321-8.02664,11.45675-9.23894,17.721-23.52709,29.74471-32.13629a41.19514,41.19514,0,0,1,39.53916-4.20191c12.32294,5.31576,21.04815,17.22645,23.353,30.334a38.96032,38.96032,0,0,1,.42437,9.78081c-.15032,1.92512,2.85044,1.91536,3,0a44.17215,44.17215,0,0,0-15.07446-36.23715c-10.63764-9.177-25.49968-12.15953-39.01706-8.62818a43.23533,43.23533,0,0,0-18.41555,10.1792c-5.56136,5.129-9.94759,11.34335-14.642,17.23377-4.57972,5.74648-9.632,11.2958-16.0599,15.00727a24.80725,24.80725,0,0,1-20.73557,2.35807c-6.93861-2.34062-12.81731-7.16276-18.36864-11.77972-5.72247-4.7593-11.41756-9.52111-18.2958-12.54508-6.39549-2.81172-13.72966-4.17555-20.38691-1.40649-6.00209,2.49655-9.97475,7.67868-12.919,13.28345-2.98866,5.68924-5.11718,11.82387-8.60435,17.249A48.90736,48.90736,0,0,1,498.2217,373.1771a54.78012,54.78012,0,0,1-35.33956,10.097c-6.84117-.486-13.06129-2.64742-19.25621-5.47945-6.83726-3.12568-14.03863-6.37658-21.7318-4.86232-6.63609,1.3062-12.21923,5.8149-16.09561,11.20076-4.47547,6.21822-6.44192,13.84154-7.46832,21.32868-.53695,3.91679-.84393,7.85686-1.13419,11.79815-.14184,1.926,2.85882,1.917,3,0Z\" transform=\"translate(-213.5 -144)\" fill=\"#e4e4e4\"></path><polygon points=\"716.987 596.364 702.742 596.363 695.965 541.418 716.989 541.419 716.987 596.364\" fill=\"#ffb6b6\"></polygon><path d=\"M930.10726,735.70841l-15.19932-6.174-.44841-.184-8.393,6.358a17.86958,17.86958,0,0,0-17.85526,17.0964c-.023.2529-.023.51739-.023.7818v.58637h45.93151V735.70841Z\" transform=\"translate(-213.5 -144)\" fill=\"#2f2e41\"></path><polygon points=\"683.627 583.107 670.189 587.835 645.56 538.254 665.392 531.277 683.627 583.107\" fill=\"#ffb6b6\"></polygon><path d=\"M895.22382,722.84182l-16.38691-.77921-.48406-.02474-5.8069,8.7833a17.86958,17.86958,0,0,0-11.1686,22.05356c.06223.24621.15.4957.23777.74512l.19463.55313,43.3277-15.24512L899.00888,721.51Z\" transform=\"translate(-213.5 -144)\" fill=\"#2f2e41\"></path><path d=\"M935.52078,503.45349c13.0322-.50537-3.1115,103.34849-3.1115,103.34849s4.7223,91.17944,3.72132,95.96437-.12622,17.69007-.12622,17.69007c-2.55325-4.6471-28.89515-1.13983-28.89515-1.13983l-3.58349-92.41012-18.29605-74.04172-25.3655,49.6313,24.31166,76.18146s9.8455,9.11035,8.79858,12.71055-26.83566,11.71936-31.57464,11.90315-2.5992-5.83187-2.82892-11.75557-22.52965-60.82569-30.3732-79.506-1.74582-45.02029,2.25809-64.16,25.0679-55.05869,25.0679-55.05869C881.67017,463.32037,922.48858,503.95885,935.52078,503.45349Z\" transform=\"translate(-213.5 -144)\" fill=\"#2f2e41\"></path><circle cx=\"685.55127\" cy=\"162.05023\" r=\"24.85645\" fill=\"#ffb6b6\"></circle><path d=\"M886.623,347.33507c-5.355,3.18356-8.55835,9.03292-10.39722,14.98516a142.0083,142.0083,0,0,0-6.10242,33.92893l-7.07371,68.7046-13.652,33.82577c29.19531-2.53425,93.93828,9.36166,93.93828,9.36166s2.40545-.80179,0-3.20728-4.74722-.27435-2.34176-2.67984.74721.27435-.0546-2.13113,0-.80179.80181-1.60364-6.20727-8.01825-6.20727-8.01825l6.41455-42.13666,8.01819-84.993c-9.62189-12.02731-28.97268-19.11734-28.97268-19.11734l-5-9-25,2Z\" transform=\"translate(-213.5 -144)\" fill=\"#e6e6e6\"></path><path d=\"M959.3844,442.358l-6.16847-36.36025L931.75,409.88738l1.88573,31.80434-9.39558,66.20083a11.99112,11.99112,0,1,0,15.6682,8.19816Z\" transform=\"translate(-213.5 -144)\" fill=\"#ffb6b6\"></path><path d=\"M941.65067,357.27688c13.89076,3.99945,19.36275,55.88559,19.36275,55.88559,6.292,25.04128-5.616,35.58679-8.638,35.47662-8.58891-.31311-13.34671-7.6646-18.0935-4.65028-2.71462,1.72383-3.22167-18.08506-3.22167-18.08506s-9.74017-18.43066-15.58211-35.75664a30.6442,30.6442,0,0,1,4.7027-29.19336S927.75992,353.27747,941.65067,357.27688Z\" transform=\"translate(-213.5 -144)\" fill=\"#e6e6e6\"></path><path d=\"M927.49412,298.45407c-.08172-4.03775-.53943-9.2034-3.36751-13.32291-2.38666-3.46558-7.20091-6.21189-11.68819-4.83874a4.85958,4.85958,0,0,0-2.41939-4.47909,12.76551,12.76551,0,0,0-5.54983-1.3977c-4.55269-.425-9.26885-.8664-13.8787.00818-5.17388.98084-9.40779,3.64538-11.60648,7.31535l-.049.11439-.44953,2.1742a2.0638,2.0638,0,0,1-1.0217,1.38952,2.0281,2.0281,0,0,1-1.72466.12257,1.87211,1.87211,0,0,0-2.50929,2.02708l.12262.86639-1.29957-.24524a1.86654,1.86654,0,0,0-2.10061,2.493l.35964.989a2.00066,2.00066,0,0,0-1.43037.62939,1.82861,1.82861,0,0,0-.24525,2.14147,17.01108,17.01108,0,0,0,5.99942,6.03209,14.143,14.143,0,0,0,3.57184,1.52845q.39234.11038.80918.19616a84.23836,84.23836,0,0,0,30.5283.91544,17.29319,17.29319,0,0,0-.67842,6.17921,6.49,6.49,0,0,0,3.89881,5.4763,8.17511,8.17511,0,0,0,1.42219.34328,8.77312,8.77312,0,0,1,1.365.33514,3.97518,3.97518,0,0,1,1.16063,6.80041s2.14147,1.77365,2.41122,1.68376a5.50348,5.50348,0,0,0,2.51747-2.23955C925.72047,315.82289,927.69028,308.009,927.49412,298.45407Z\" transform=\"translate(-213.5 -144)\" fill=\"#2f2e41\"></path><path d=\"M276.29766,673.35948l-2.92,14.65c-.22,1.12-.45,2.26-.7,3.39a14.28762,14.28762,0,0,0-7.34.41,68.51085,68.51085,0,0,1,5.04,8.43c-1.84,5.67-4.54,10.91-9.06,14.7a22.71967,22.71967,0,0,1-21.95,3.86l.13-.58c-4.86-9.43-2.22-21.32,3.82-30.03a58.38488,58.38488,0,0,1,10.85-11.47c4.07995-3.4,8.49-6.45,12.86-9.46A5.99007,5.99007,0,0,1,276.29766,673.35948Z\" transform=\"translate(-213.5 -144)\" fill=\"#e4e4e4\"></path><path id=\"a14ee49e-0bc4-4fe7-9ff0-205b8984b39e-1816\" data-name=\"a4b268fa-75d0-4ac1-9d87-14bdca948464-2189\" d=\"M240.40753,754.04932c-1.229-8.953-2.493-18.02-1.631-27.069.766-8.036,3.217-15.885,8.209-22.321a37.13191,37.13191,0,0,1,9.527-8.633c.953-.6,1.829.909.881,1.507a35.29987,35.29987,0,0,0-13.963,16.847c-3.04,7.732-3.528,16.161-3,24.374.317,4.967.988,9.9,1.665,14.83a.9.9,0,0,1-.61,1.074.878.878,0,0,1-1.074-.61Z\" transform=\"translate(-213.5 -144)\" fill=\"#f2f2f2\"></path><circle cx=\"355.05203\" cy=\"10.2658\" r=\"2.85162\" fill=\"#fff\"></circle><path d=\"M735.275,418.23648H397.033a1.05859,1.05859,0,0,1-1.05853-1.05853l.51373-1.178,338.78677.11938a1.05854,1.05854,0,0,1,.00782,2.11707H735.275Z\" transform=\"translate(-213.5 -144)\" fill=\"#3f3d56\"></path><rect x=\"245.79616\" y=\"266.83099\" width=\"2.07614\" height=\"5.91575\" fill=\"#3f3d56\"></rect><rect x=\"307.95251\" y=\"232.83099\" width=\"2.07614\" height=\"39.91578\" fill=\"#3f3d56\"></rect><rect x=\"370.23685\" y=\"184.83099\" width=\"2.07614\" height=\"87.91575\" fill=\"#3f3d56\"></rect><rect x=\"432.52121\" y=\"143.83099\" width=\"2.07614\" height=\"128.91575\" fill=\"#3f3d56\"></rect><rect x=\"494.80554\" y=\"237.83099\" width=\"2.07614\" height=\"34.91578\" fill=\"#3f3d56\"></rect><circle cx=\"433.68729\" cy=\"130.29436\" r=\"6.35126\" fill=\"#6c63ff\"></circle><circle cx=\"372.40295\" cy=\"167.55074\" r=\"6.35126\" fill=\"#6c63ff\"></circle><circle cx=\"495.97165\" cy=\"226.13194\" r=\"6.35126\" fill=\"#6c63ff\"></circle><path id=\"a2bcaba5-fcc7-43c7-8c54-c107139343be-1817\" data-name=\"ba0cc859-1ca5-421a-9acf-7fb9aa3b4e23-2190\" d=\"M520.83246,638.51V563.57122c0-.96109,1.11786-1.74023,2.49679-1.74023h11.14209c1.37894,0,2.49677.77914,2.49677,1.74023h0v75.13416Z\" transform=\"translate(-213.5 -144)\" fill=\"#3f3d56\"></path><path id=\"b02c718b-b277-4e02-ad4f-2608dd9924ba-1818\" data-name=\"a524792d-c043-478e-a7da-ec48af772355-2191\" d=\"M557.63309,638.762V581.50324c0-.92355,1.11789-1.67225,2.49679-1.67225H571.272c1.37891,0,2.49677.7487,2.49677,1.67225h0v57.13553Z\" transform=\"translate(-213.5 -144)\" fill=\"#3f3d56\"></path><path id=\"a6f13ee1-90c9-41e9-aa52-bae832a2d909-1819\" data-name=\"fd6a765d-e5c4-40cb-8615-8d176b643a05-2192\" d=\"M631.23431,638.62915V609.50729c-.09747-.34818,1.0163-.64986,2.49677-.6763h11.14209c1.48053.02642,2.59436.32812,2.49676.6763v29.19809Z\" transform=\"translate(-213.5 -144)\" fill=\"#3f3d56\"></path><path id=\"fa174473-4e9f-4d8b-98c3-8d6761a9e9bb-1820\" data-name=\"bd64d803-c830-42f7-b93c-47122685f128-2193\" d=\"M484.03156,638.62947V609.50728c0-.37343,1.11788-.67629,2.49679-.67629h11.14209c1.37888,0,2.49677.30316,2.49677.67629v29.1981Z\" transform=\"translate(-213.5 -144)\" fill=\"#3f3d56\"></path><path id=\"e966b75a-f3f6-4a21-bd4c-c130f0d0c74e-1821\" data-name=\"f4fc54bd-288c-4bcd-8f44-6b7e88ac2463-2194\" d=\"M594.43341,638.33881V497.71231c0-1.8035,1.11792-3.26562,2.49677-3.26562h11.14209c1.3789,0,2.49676,1.46212,2.49676,3.26562V638.70538Z\" transform=\"translate(-213.5 -144)\" fill=\"#6c63ff\"></path><path d=\"M695.38977,640h-252a1,1,0,0,1,0-2h252a1,1,0,0,1,0,2Z\" transform=\"translate(-213.5 -144)\" fill=\"#3f3d56\"></path><path d=\"M985.5,756h-771a1,1,0,0,1,0-2h771a1,1,0,0,1,0,2Z\" transform=\"translate(-213.5 -144)\" fill=\"#cacaca\"></path><circle cx=\"247.11862\" cy=\"253.9035\" r=\"6.35126\" fill=\"#6c63ff\"></circle><circle cx=\"309.11862\" cy=\"218.9035\" r=\"6.35126\" fill=\"#6c63ff\"></circle></svg></div><div class=\"flex-1-1 BannerContent display-flex gap-15 flex-row align-items-center\"><div class=\"flex-1-1 min-width-100\"><div class=\"text-size-16 text-medium\">Banner title</div>Content highlighting a specific feature or action that users should be aware of or engage with</div><div class=\"BannerActions flex-0 btn-toolbar \"><button type=\"button\" class=\"btn btn-muted-filled btn-component\" tabindex=\"0\">Button CTA</button><button type=\"button\" class=\"btn btn-primary btn-component\" tabindex=\"0\">Button CTA</button></div></div></div></div></div><div class=\"flex-0 margin-left-10 margin-right--5 margin-top--5 margin-top-0-ls align-self-start align-self-center-ls\"><button type=\"button\" class=\"btn btn-muted btn-sm btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-remove\"></span></button></div></div></div></div><button type=\"button\" class=\"btn btn-default btn-sm btn-component margin-top-25\" tabindex=\"0\">Reset</button></div></div>",
|
|
22
|
+
"tabs": [
|
|
23
|
+
{
|
|
24
|
+
"label": "React",
|
|
25
|
+
"language": "tsx",
|
|
26
|
+
"code": "import { useState } from 'react';\n\nimport Banner from '@rio-cloud/rio-uikit/Banner';\nimport Button from '@rio-cloud/rio-uikit/Button';\nimport DemoIllustration from './DemoIllustration';\n\nexport default () => {\n const [showBanner, setShowBanner] = useState(true);\n\n return (\n <div>\n <Banner show={showBanner} onClose={() => setShowBanner(false)}>\n <Banner.Page>\n <Banner.Icon>\n <DemoIllustration />\n </Banner.Icon>\n <Banner.Content\n title='Banner title'\n actions={\n <Banner.Actions>\n <Button bsStyle='muted-filled'>Button CTA</Button>\n <Button bsStyle='primary'>Button CTA</Button>\n </Banner.Actions>\n }\n >\n Content highlighting a specific feature or action that users should be aware of or engage with\n </Banner.Content>\n </Banner.Page>\n </Banner>\n\n <Button bsSize='sm' className='margin-top-25' onClick={() => setShowBanner(true)}>\n Reset\n </Button>\n </div>\n );\n};"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"label": "HTML",
|
|
30
|
+
"language": "html",
|
|
31
|
+
"code": "<div>\n <div style=\"height: 107px; opacity: 1;\">\n <div style=\"position: relative;\">\n <div class=\"bg-white rounded border shadow-default padding-20 Banner display-flex text-color-darker overflow-hidden position-relative\">\n <div class=\"flex-1-1 overflow-hidden\">\n <div style=\"opacity: 0.816991; transform: translateX(18.3009px) translateZ(0px);\">\n <div class=\"display-flex align-items-start align-items-center-ls width-100pct gap-15 \">\n <div class=\"BannerIcon flex-0 margin-x-5 min-width-25 \">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"80\" height=\"60\" viewBox=\"0 0 773 612\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" role=\"img\" artist=\"Katerina Limpitsouni\" source=\"https://undraw.co/\">\n <path d=\"M850.4211,442.927l32.63119-35.49645-26.706-21.07259-13.19279,29.16777-59.85542,19.77364a11.99113,11.99113,0,1,0,3.85641,17.25776Z\" transform=\"translate(-213.5 -144)\" fill=\"#ffb6b6\">\n </path>\n <path d=\"M910.23781,362.72613c5.91493,13.18947-30.17271,50.86966-30.17271,50.86966-9.86955,7.98163-11.43422,27.95951-23.66746,30.18374-33,6-12.47561-.27862-21,3-8.02175,3.08529-.63334-23.32158-6-25-3.06911-.95987,14-12,14-12s15.38283-30.16748,24.84111-45.81544a30.64419,30.64419,0,0,1,25.32877-15.25847S904.32285,349.53668,910.23781,362.72613Z\" transform=\"translate(-213.5 -144)\" fill=\"#e6e6e6\">\n </path>\n <path d=\"M757.45673,754.81488H382.499a33.5588,33.5588,0,0,1-33.5209-33.52087V177.5209A33.55882,33.55882,0,0,1,382.499,144H757.45673a33.5588,33.5588,0,0,1,33.52087,33.5209V721.294A33.55885,33.55885,0,0,1,757.45673,754.81488Z\" transform=\"translate(-213.5 -144)\" fill=\"#3f3d56\">\n </path>\n <path d=\"M758.1167,733.4278H381.839a10.345,10.345,0,0,1-10.33319-10.3332V175.72026A10.345,10.345,0,0,1,381.839,165.38707H758.1167a10.345,10.345,0,0,1,10.33319,10.33319V723.0946A10.345,10.345,0,0,1,758.1167,733.4278Z\" transform=\"translate(-213.5 -144)\" fill=\"#fff\">\n </path>\n <path d=\"M400.196,417.2599c1.05037-14.2625,2.78468-31.7964,16.89581-39.41573,6.65845-3.59524,13.70893-2.32332,20.40314.47908,6.46856,2.70794,12.5627,5.93585,19.5296,7.209a56.69026,56.69026,0,0,0,35.241-5.28468,54.16607,54.16607,0,0,0,24.92977-25.51437c2.67184-5.633,4.87982-11.73757,8.81615-16.6538a18.52389,18.52389,0,0,1,17.12456-7.08681c14.79633,1.82667,24.61523,14.7913,36.411,22.42333,5.67289,3.67045,12.18724,6.35048,19.05617,6.02185,7.04576-.33709,13.43255-3.67234,18.8321-8.02664,11.45675-9.23894,17.721-23.52709,29.74471-32.13629a41.19514,41.19514,0,0,1,39.53916-4.20191c12.32294,5.31576,21.04815,17.22645,23.353,30.334a38.96032,38.96032,0,0,1,.42437,9.78081c-.15032,1.92512,2.85044,1.91536,3,0a44.17215,44.17215,0,0,0-15.07446-36.23715c-10.63764-9.177-25.49968-12.15953-39.01706-8.62818a43.23533,43.23533,0,0,0-18.41555,10.1792c-5.56136,5.129-9.94759,11.34335-14.642,17.23377-4.57972,5.74648-9.632,11.2958-16.0599,15.00727a24.80725,24.80725,0,0,1-20.73557,2.35807c-6.93861-2.34062-12.81731-7.16276-18.36864-11.77972-5.72247-4.7593-11.41756-9.52111-18.2958-12.54508-6.39549-2.81172-13.72966-4.17555-20.38691-1.40649-6.00209,2.49655-9.97475,7.67868-12.919,13.28345-2.98866,5.68924-5.11718,11.82387-8.60435,17.249A48.90736,48.90736,0,0,1,498.2217,373.1771a54.78012,54.78012,0,0,1-35.33956,10.097c-6.84117-.486-13.06129-2.64742-19.25621-5.47945-6.83726-3.12568-14.03863-6.37658-21.7318-4.86232-6.63609,1.3062-12.21923,5.8149-16.09561,11.20076-4.47547,6.21822-6.44192,13.84154-7.46832,21.32868-.53695,3.91679-.84393,7.85686-1.13419,11.79815-.14184,1.926,2.85882,1.917,3,0Z\" transform=\"translate(-213.5 -144)\" fill=\"#e4e4e4\">\n </path>\n <polygon points=\"716.987 596.364 702.742 596.363 695.965 541.418 716.989 541.419 716.987 596.364\" fill=\"#ffb6b6\">\n </polygon>\n <path d=\"M930.10726,735.70841l-15.19932-6.174-.44841-.184-8.393,6.358a17.86958,17.86958,0,0,0-17.85526,17.0964c-.023.2529-.023.51739-.023.7818v.58637h45.93151V735.70841Z\" transform=\"translate(-213.5 -144)\" fill=\"#2f2e41\">\n </path>\n <polygon points=\"683.627 583.107 670.189 587.835 645.56 538.254 665.392 531.277 683.627 583.107\" fill=\"#ffb6b6\">\n </polygon>\n <path d=\"M895.22382,722.84182l-16.38691-.77921-.48406-.02474-5.8069,8.7833a17.86958,17.86958,0,0,0-11.1686,22.05356c.06223.24621.15.4957.23777.74512l.19463.55313,43.3277-15.24512L899.00888,721.51Z\" transform=\"translate(-213.5 -144)\" fill=\"#2f2e41\">\n </path>\n <path d=\"M935.52078,503.45349c13.0322-.50537-3.1115,103.34849-3.1115,103.34849s4.7223,91.17944,3.72132,95.96437-.12622,17.69007-.12622,17.69007c-2.55325-4.6471-28.89515-1.13983-28.89515-1.13983l-3.58349-92.41012-18.29605-74.04172-25.3655,49.6313,24.31166,76.18146s9.8455,9.11035,8.79858,12.71055-26.83566,11.71936-31.57464,11.90315-2.5992-5.83187-2.82892-11.75557-22.52965-60.82569-30.3732-79.506-1.74582-45.02029,2.25809-64.16,25.0679-55.05869,25.0679-55.05869C881.67017,463.32037,922.48858,503.95885,935.52078,503.45349Z\" transform=\"translate(-213.5 -144)\" fill=\"#2f2e41\">\n </path>\n <circle cx=\"685.55127\" cy=\"162.05023\" r=\"24.85645\" fill=\"#ffb6b6\">\n </circle>\n <path d=\"M886.623,347.33507c-5.355,3.18356-8.55835,9.03292-10.39722,14.98516a142.0083,142.0083,0,0,0-6.10242,33.92893l-7.07371,68.7046-13.652,33.82577c29.19531-2.53425,93.93828,9.36166,93.93828,9.36166s2.40545-.80179,0-3.20728-4.74722-.27435-2.34176-2.67984.74721.27435-.0546-2.13113,0-.80179.80181-1.60364-6.20727-8.01825-6.20727-8.01825l6.41455-42.13666,8.01819-84.993c-9.62189-12.02731-28.97268-19.11734-28.97268-19.11734l-5-9-25,2Z\" transform=\"translate(-213.5 -144)\" fill=\"#e6e6e6\">\n </path>\n <path d=\"M959.3844,442.358l-6.16847-36.36025L931.75,409.88738l1.88573,31.80434-9.39558,66.20083a11.99112,11.99112,0,1,0,15.6682,8.19816Z\" transform=\"translate(-213.5 -144)\" fill=\"#ffb6b6\">\n </path>\n <path d=\"M941.65067,357.27688c13.89076,3.99945,19.36275,55.88559,19.36275,55.88559,6.292,25.04128-5.616,35.58679-8.638,35.47662-8.58891-.31311-13.34671-7.6646-18.0935-4.65028-2.71462,1.72383-3.22167-18.08506-3.22167-18.08506s-9.74017-18.43066-15.58211-35.75664a30.6442,30.6442,0,0,1,4.7027-29.19336S927.75992,353.27747,941.65067,357.27688Z\" transform=\"translate(-213.5 -144)\" fill=\"#e6e6e6\">\n </path>\n <path d=\"M927.49412,298.45407c-.08172-4.03775-.53943-9.2034-3.36751-13.32291-2.38666-3.46558-7.20091-6.21189-11.68819-4.83874a4.85958,4.85958,0,0,0-2.41939-4.47909,12.76551,12.76551,0,0,0-5.54983-1.3977c-4.55269-.425-9.26885-.8664-13.8787.00818-5.17388.98084-9.40779,3.64538-11.60648,7.31535l-.049.11439-.44953,2.1742a2.0638,2.0638,0,0,1-1.0217,1.38952,2.0281,2.0281,0,0,1-1.72466.12257,1.87211,1.87211,0,0,0-2.50929,2.02708l.12262.86639-1.29957-.24524a1.86654,1.86654,0,0,0-2.10061,2.493l.35964.989a2.00066,2.00066,0,0,0-1.43037.62939,1.82861,1.82861,0,0,0-.24525,2.14147,17.01108,17.01108,0,0,0,5.99942,6.03209,14.143,14.143,0,0,0,3.57184,1.52845q.39234.11038.80918.19616a84.23836,84.23836,0,0,0,30.5283.91544,17.29319,17.29319,0,0,0-.67842,6.17921,6.49,6.49,0,0,0,3.89881,5.4763,8.17511,8.17511,0,0,0,1.42219.34328,8.77312,8.77312,0,0,1,1.365.33514,3.97518,3.97518,0,0,1,1.16063,6.80041s2.14147,1.77365,2.41122,1.68376a5.50348,5.50348,0,0,0,2.51747-2.23955C925.72047,315.82289,927.69028,308.009,927.49412,298.45407Z\" transform=\"translate(-213.5 -144)\" fill=\"#2f2e41\">\n </path>\n <path d=\"M276.29766,673.35948l-2.92,14.65c-.22,1.12-.45,2.26-.7,3.39a14.28762,14.28762,0,0,0-7.34.41,68.51085,68.51085,0,0,1,5.04,8.43c-1.84,5.67-4.54,10.91-9.06,14.7a22.71967,22.71967,0,0,1-21.95,3.86l.13-.58c-4.86-9.43-2.22-21.32,3.82-30.03a58.38488,58.38488,0,0,1,10.85-11.47c4.07995-3.4,8.49-6.45,12.86-9.46A5.99007,5.99007,0,0,1,276.29766,673.35948Z\" transform=\"translate(-213.5 -144)\" fill=\"#e4e4e4\">\n </path>\n <path id=\"a14ee49e-0bc4-4fe7-9ff0-205b8984b39e-1816\" data-name=\"a4b268fa-75d0-4ac1-9d87-14bdca948464-2189\" d=\"M240.40753,754.04932c-1.229-8.953-2.493-18.02-1.631-27.069.766-8.036,3.217-15.885,8.209-22.321a37.13191,37.13191,0,0,1,9.527-8.633c.953-.6,1.829.909.881,1.507a35.29987,35.29987,0,0,0-13.963,16.847c-3.04,7.732-3.528,16.161-3,24.374.317,4.967.988,9.9,1.665,14.83a.9.9,0,0,1-.61,1.074.878.878,0,0,1-1.074-.61Z\" transform=\"translate(-213.5 -144)\" fill=\"#f2f2f2\">\n </path>\n <circle cx=\"355.05203\" cy=\"10.2658\" r=\"2.85162\" fill=\"#fff\">\n </circle>\n <path d=\"M735.275,418.23648H397.033a1.05859,1.05859,0,0,1-1.05853-1.05853l.51373-1.178,338.78677.11938a1.05854,1.05854,0,0,1,.00782,2.11707H735.275Z\" transform=\"translate(-213.5 -144)\" fill=\"#3f3d56\">\n </path>\n <rect x=\"245.79616\" y=\"266.83099\" width=\"2.07614\" height=\"5.91575\" fill=\"#3f3d56\">\n </rect>\n <rect x=\"307.95251\" y=\"232.83099\" width=\"2.07614\" height=\"39.91578\" fill=\"#3f3d56\">\n </rect>\n <rect x=\"370.23685\" y=\"184.83099\" width=\"2.07614\" height=\"87.91575\" fill=\"#3f3d56\">\n </rect>\n <rect x=\"432.52121\" y=\"143.83099\" width=\"2.07614\" height=\"128.91575\" fill=\"#3f3d56\">\n </rect>\n <rect x=\"494.80554\" y=\"237.83099\" width=\"2.07614\" height=\"34.91578\" fill=\"#3f3d56\">\n </rect>\n <circle cx=\"433.68729\" cy=\"130.29436\" r=\"6.35126\" fill=\"#6c63ff\">\n </circle>\n <circle cx=\"372.40295\" cy=\"167.55074\" r=\"6.35126\" fill=\"#6c63ff\">\n </circle>\n <circle cx=\"495.97165\" cy=\"226.13194\" r=\"6.35126\" fill=\"#6c63ff\">\n </circle>\n <path id=\"a2bcaba5-fcc7-43c7-8c54-c107139343be-1817\" data-name=\"ba0cc859-1ca5-421a-9acf-7fb9aa3b4e23-2190\" d=\"M520.83246,638.51V563.57122c0-.96109,1.11786-1.74023,2.49679-1.74023h11.14209c1.37894,0,2.49677.77914,2.49677,1.74023h0v75.13416Z\" transform=\"translate(-213.5 -144)\" fill=\"#3f3d56\">\n </path>\n <path id=\"b02c718b-b277-4e02-ad4f-2608dd9924ba-1818\" data-name=\"a524792d-c043-478e-a7da-ec48af772355-2191\" d=\"M557.63309,638.762V581.50324c0-.92355,1.11789-1.67225,2.49679-1.67225H571.272c1.37891,0,2.49677.7487,2.49677,1.67225h0v57.13553Z\" transform=\"translate(-213.5 -144)\" fill=\"#3f3d56\">\n </path>\n <path id=\"a6f13ee1-90c9-41e9-aa52-bae832a2d909-1819\" data-name=\"fd6a765d-e5c4-40cb-8615-8d176b643a05-2192\" d=\"M631.23431,638.62915V609.50729c-.09747-.34818,1.0163-.64986,2.49677-.6763h11.14209c1.48053.02642,2.59436.32812,2.49676.6763v29.19809Z\" transform=\"translate(-213.5 -144)\" fill=\"#3f3d56\">\n </path>\n <path id=\"fa174473-4e9f-4d8b-98c3-8d6761a9e9bb-1820\" data-name=\"bd64d803-c830-42f7-b93c-47122685f128-2193\" d=\"M484.03156,638.62947V609.50728c0-.37343,1.11788-.67629,2.49679-.67629h11.14209c1.37888,0,2.49677.30316,2.49677.67629v29.1981Z\" transform=\"translate(-213.5 -144)\" fill=\"#3f3d56\">\n </path>\n <path id=\"e966b75a-f3f6-4a21-bd4c-c130f0d0c74e-1821\" data-name=\"f4fc54bd-288c-4bcd-8f44-6b7e88ac2463-2194\" d=\"M594.43341,638.33881V497.71231c0-1.8035,1.11792-3.26562,2.49677-3.26562h11.14209c1.3789,0,2.49676,1.46212,2.49676,3.26562V638.70538Z\" transform=\"translate(-213.5 -144)\" fill=\"#6c63ff\">\n </path>\n <path d=\"M695.38977,640h-252a1,1,0,0,1,0-2h252a1,1,0,0,1,0,2Z\" transform=\"translate(-213.5 -144)\" fill=\"#3f3d56\">\n </path>\n <path d=\"M985.5,756h-771a1,1,0,0,1,0-2h771a1,1,0,0,1,0,2Z\" transform=\"translate(-213.5 -144)\" fill=\"#cacaca\">\n </path>\n <circle cx=\"247.11862\" cy=\"253.9035\" r=\"6.35126\" fill=\"#6c63ff\">\n </circle>\n <circle cx=\"309.11862\" cy=\"218.9035\" r=\"6.35126\" fill=\"#6c63ff\">\n </circle>\n </svg>\n </div>\n <div class=\"flex-1-1 BannerContent display-flex gap-15 flex-row align-items-center\">\n <div class=\"flex-1-1 min-width-100\">\n <div class=\"text-size-16 text-medium\">Banner title</div>Content highlighting a specific feature or action that users should be aware of or engage with\n </div>\n <div class=\"BannerActions flex-0 btn-toolbar \">\n <button type=\"button\" class=\"btn btn-muted-filled btn-component\" tabindex=\"0\">Button CTA</button>\n <button type=\"button\" class=\"btn btn-primary btn-component\" tabindex=\"0\">Button CTA</button>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex-0 margin-left-10 margin-right--5 margin-top--5 margin-top-0-ls align-self-start align-self-center-ls\">\n <button type=\"button\" class=\"btn btn-muted btn-sm btn-icon-only btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-remove\">\n </span>\n </button>\n </div>\n </div>\n </div>\n </div>\n <button type=\"button\" class=\"btn btn-default btn-sm btn-component margin-top-25\" tabindex=\"0\">Reset</button>\n</div>"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"label": "Props",
|
|
35
|
+
"language": "json",
|
|
36
|
+
"code": null,
|
|
37
|
+
"props": [
|
|
38
|
+
{
|
|
39
|
+
"heading": "Banner",
|
|
40
|
+
"rows": [
|
|
41
|
+
{
|
|
42
|
+
"name": "show",
|
|
43
|
+
"type": "boolean",
|
|
44
|
+
"default": "true",
|
|
45
|
+
"description": "Defines if the content is shown or not."
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "dismissible",
|
|
49
|
+
"type": "boolean",
|
|
50
|
+
"default": "true",
|
|
51
|
+
"description": "Defines if a close button is shown or not. You can still add a custom CTA button to the content that handles visibility."
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "initialAnimation",
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
"default": "true",
|
|
57
|
+
"description": "Enables or disables initial animation."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "onClose",
|
|
61
|
+
"type": "() => void",
|
|
62
|
+
"default": "",
|
|
63
|
+
"description": "Callback when the close button is clicked."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "pageTimeout",
|
|
67
|
+
"type": "number",
|
|
68
|
+
"default": "20_000",
|
|
69
|
+
"description": "Defines the time when the next page is shown in milliseconds."
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "showPageNavigation",
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"default": "true",
|
|
75
|
+
"description": "Defines if the page navigation buttons shall be shown or not."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "border",
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"default": "true",
|
|
81
|
+
"description": "Defines if a border is shown or not. When placed on a white background, please disable the border so it looks better."
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "className",
|
|
85
|
+
"type": "string",
|
|
86
|
+
"default": "",
|
|
87
|
+
"description": "Additional classes for the wrapper element."
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "children",
|
|
91
|
+
"type": "ReactNode | ReactNode[]",
|
|
92
|
+
"default": "",
|
|
93
|
+
"description": "The actual banner content. Wrap your content in a <Banner.Page> component. When having multiple pages, usa an array of <Banner.Page> components."
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"heading": "Banner.Page",
|
|
99
|
+
"rows": [
|
|
100
|
+
{
|
|
101
|
+
"name": "className",
|
|
102
|
+
"type": "string",
|
|
103
|
+
"default": "",
|
|
104
|
+
"description": "Additional classes for the wrapper element."
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"heading": "Banner.Icon",
|
|
110
|
+
"rows": [
|
|
111
|
+
{
|
|
112
|
+
"name": "className",
|
|
113
|
+
"type": "string",
|
|
114
|
+
"default": "",
|
|
115
|
+
"description": "Additional classes for the wrapper element."
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"heading": "Banner.Content",
|
|
121
|
+
"rows": [
|
|
122
|
+
{
|
|
123
|
+
"name": "title",
|
|
124
|
+
"type": "string | React.ReactElement",
|
|
125
|
+
"default": "",
|
|
126
|
+
"description": "The title for the banner."
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "actions",
|
|
130
|
+
"type": "React.ReactElement",
|
|
131
|
+
"default": "",
|
|
132
|
+
"description": "Use this to add the banner call-to-action buttons. Wrap them in a <Banner.Actions> component."
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "minWidthBreakpoint",
|
|
136
|
+
"type": "number",
|
|
137
|
+
"default": "400",
|
|
138
|
+
"description": "Breakpoint in pixels where the action buttons are placed under the banner text. On larger screens, the buttons are next to the text."
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "className",
|
|
142
|
+
"type": "string",
|
|
143
|
+
"default": "",
|
|
144
|
+
"description": "Additional classes for the wrapper element."
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"heading": "Banner.Actions",
|
|
150
|
+
"rows": [
|
|
151
|
+
{
|
|
152
|
+
"name": "className",
|
|
153
|
+
"type": "string",
|
|
154
|
+
"default": "",
|
|
155
|
+
"description": "Additional classes for the wrapper element."
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"caption": "Example 2",
|
|
165
|
+
"rendered_html": "<div class=\"playground-content bg-lighter padding-20 padding-bottom-25\" style=\"width: 100%;\"><div><div style=\"height: 0px; opacity: 0.0138889;\"><div style=\"position: relative;\"><div class=\"bg-white rounded border shadow-default padding-20 Banner display-flex text-color-darker overflow-hidden position-relative\"><div class=\"flex-1-1 overflow-hidden\"><div style=\"opacity: 1; transform: none;\"><div class=\"display-flex align-items-start align-items-center-ls width-100pct gap-15 \"><div class=\"BannerIcon flex-0 margin-x-5 min-width-25 text-size-14\"><span class=\"rioglyph rioglyph-cog text-size-200pct\"></span></div><div class=\"flex-1-1 BannerContent display-flex gap-15 flex-row align-items-center\"><div class=\"flex-1-1 min-width-100\"><div class=\"text-size-16 text-medium\">Customize your experience</div>Update your preferences in settings for a tailored experience</div><div class=\"BannerActions flex-0 btn-toolbar \"><button type=\"button\" class=\"btn btn-primary btn-component\" tabindex=\"0\">Got it</button></div></div></div></div></div></div></div></div><button type=\"button\" class=\"btn btn-default btn-sm btn-component margin-top-25\" tabindex=\"0\">Reset</button></div></div>",
|
|
166
|
+
"tabs": [
|
|
167
|
+
{
|
|
168
|
+
"label": "React",
|
|
169
|
+
"language": "tsx",
|
|
170
|
+
"code": "import { useState } from 'react';\n\nimport Banner from '@rio-cloud/rio-uikit/Banner';\nimport Button from '@rio-cloud/rio-uikit/Button';\n\nexport default () => {\n const [showBanner, setShowBanner] = useState(true);\n\n return (\n <div>\n <Banner show={showBanner} dismissible={false} initialAnimation={false}>\n <Banner.Page>\n <Banner.Icon className='text-size-14'>\n <span className='rioglyph rioglyph-cog text-size-200pct' />\n </Banner.Icon>\n <Banner.Content\n title='Customize your experience'\n actions={\n <Banner.Actions>\n <Button bsStyle='primary' onClick={() => setShowBanner(false)}>\n Got it\n </Button>\n </Banner.Actions>\n }\n >\n Update your preferences in settings for a tailored experience\n </Banner.Content>\n </Banner.Page>\n </Banner>\n\n <Button bsSize='sm' className='margin-top-25' onClick={() => setShowBanner(true)}>\n Reset\n </Button>\n </div>\n );\n};"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"label": "HTML",
|
|
174
|
+
"language": "html",
|
|
175
|
+
"code": "<div>\n <div style=\"height: 84.8438px; opacity: 1;\">\n <div style=\"position: relative;\">\n <div class=\"bg-white rounded border shadow-default padding-20 Banner display-flex text-color-darker overflow-hidden position-relative\">\n <div class=\"flex-1-1 overflow-hidden\">\n <div style=\"opacity: 1; transform: none;\">\n <div class=\"display-flex align-items-start align-items-center-ls width-100pct gap-15 \">\n <div class=\"BannerIcon flex-0 margin-x-5 min-width-25 text-size-14\">\n <span class=\"rioglyph rioglyph-cog text-size-200pct\">\n </span>\n </div>\n <div class=\"flex-1-1 BannerContent display-flex gap-15 flex-row align-items-center\">\n <div class=\"flex-1-1 min-width-100\">\n <div class=\"text-size-16 text-medium\">Customize your experience</div>Update your preferences in settings for a tailored experience\n </div>\n <div class=\"BannerActions flex-0 btn-toolbar \">\n <button type=\"button\" class=\"btn btn-primary btn-component\" tabindex=\"0\">Got it</button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <button type=\"button\" class=\"btn btn-default btn-sm btn-component margin-top-25\" tabindex=\"0\">Reset</button>\n</div>"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"label": "Props",
|
|
179
|
+
"language": "json",
|
|
180
|
+
"code": null,
|
|
181
|
+
"props": [
|
|
182
|
+
{
|
|
183
|
+
"heading": "Banner",
|
|
184
|
+
"rows": [
|
|
185
|
+
{
|
|
186
|
+
"name": "show",
|
|
187
|
+
"type": "boolean",
|
|
188
|
+
"default": "true",
|
|
189
|
+
"description": "Defines if the content is shown or not."
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "dismissible",
|
|
193
|
+
"type": "boolean",
|
|
194
|
+
"default": "true",
|
|
195
|
+
"description": "Defines if a close button is shown or not. You can still add a custom CTA button to the content that handles visibility."
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "initialAnimation",
|
|
199
|
+
"type": "boolean",
|
|
200
|
+
"default": "true",
|
|
201
|
+
"description": "Enables or disables initial animation."
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "onClose",
|
|
205
|
+
"type": "() => void",
|
|
206
|
+
"default": "",
|
|
207
|
+
"description": "Callback when the close button is clicked."
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "pageTimeout",
|
|
211
|
+
"type": "number",
|
|
212
|
+
"default": "20_000",
|
|
213
|
+
"description": "Defines the time when the next page is shown in milliseconds."
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "showPageNavigation",
|
|
217
|
+
"type": "boolean",
|
|
218
|
+
"default": "true",
|
|
219
|
+
"description": "Defines if the page navigation buttons shall be shown or not."
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"name": "border",
|
|
223
|
+
"type": "boolean",
|
|
224
|
+
"default": "true",
|
|
225
|
+
"description": "Defines if a border is shown or not. When placed on a white background, please disable the border so it looks better."
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "className",
|
|
229
|
+
"type": "string",
|
|
230
|
+
"default": "",
|
|
231
|
+
"description": "Additional classes for the wrapper element."
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "children",
|
|
235
|
+
"type": "ReactNode | ReactNode[]",
|
|
236
|
+
"default": "",
|
|
237
|
+
"description": "The actual banner content. Wrap your content in a <Banner.Page> component. When having multiple pages, usa an array of <Banner.Page> components."
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"heading": "Banner.Page",
|
|
243
|
+
"rows": [
|
|
244
|
+
{
|
|
245
|
+
"name": "className",
|
|
246
|
+
"type": "string",
|
|
247
|
+
"default": "",
|
|
248
|
+
"description": "Additional classes for the wrapper element."
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"heading": "Banner.Icon",
|
|
254
|
+
"rows": [
|
|
255
|
+
{
|
|
256
|
+
"name": "className",
|
|
257
|
+
"type": "string",
|
|
258
|
+
"default": "",
|
|
259
|
+
"description": "Additional classes for the wrapper element."
|
|
260
|
+
}
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"heading": "Banner.Content",
|
|
265
|
+
"rows": [
|
|
266
|
+
{
|
|
267
|
+
"name": "title",
|
|
268
|
+
"type": "string | React.ReactElement",
|
|
269
|
+
"default": "",
|
|
270
|
+
"description": "The title for the banner."
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "actions",
|
|
274
|
+
"type": "React.ReactElement",
|
|
275
|
+
"default": "",
|
|
276
|
+
"description": "Use this to add the banner call-to-action buttons. Wrap them in a <Banner.Actions> component."
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "minWidthBreakpoint",
|
|
280
|
+
"type": "number",
|
|
281
|
+
"default": "400",
|
|
282
|
+
"description": "Breakpoint in pixels where the action buttons are placed under the banner text. On larger screens, the buttons are next to the text."
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"name": "className",
|
|
286
|
+
"type": "string",
|
|
287
|
+
"default": "",
|
|
288
|
+
"description": "Additional classes for the wrapper element."
|
|
289
|
+
}
|
|
290
|
+
]
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"heading": "Banner.Actions",
|
|
294
|
+
"rows": [
|
|
295
|
+
{
|
|
296
|
+
"name": "className",
|
|
297
|
+
"type": "string",
|
|
298
|
+
"default": "",
|
|
299
|
+
"description": "Additional classes for the wrapper element."
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
}
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"caption": "Example 3",
|
|
309
|
+
"rendered_html": "<div class=\"playground-content bg-white padding-20 padding-bottom-25\" style=\"width: 100%;\"><div><div style=\"height: 0px; opacity: 0.0138889;\"><div style=\"position: relative;\"><div class=\"bg-white rounded border shadow-default padding-20 Banner display-flex text-color-darker overflow-hidden position-relative border-color-white\"><div class=\"flex-1-1 overflow-hidden\"><div style=\"opacity: 0.0437861; transform: translateX(95.6214px) translateZ(0px);\"><div class=\"display-flex align-items-start align-items-center-ls width-100pct gap-15 \"><div class=\"BannerIcon flex-0 margin-x-5 min-width-25 text-size-14\"><span class=\"rioglyph rioglyph-hand-right text-size-200pct\"></span></div><div class=\"flex-1-1\"><div class=\"text-size-16 text-medium\">Pay attention to borders</div>On white background, disable the border prop so the component is more pleasing for the eye</div></div></div></div><div class=\"flex-0 margin-left-10 margin-right--5 margin-top--5 margin-top-0-ls align-self-start align-self-center-ls\"><button type=\"button\" class=\"btn btn-muted btn-sm btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-remove\"></span></button></div></div></div></div><button type=\"button\" class=\"btn btn-default btn-sm btn-component margin-top-25\" tabindex=\"0\">Reset</button></div></div>",
|
|
310
|
+
"tabs": [
|
|
311
|
+
{
|
|
312
|
+
"label": "React",
|
|
313
|
+
"language": "tsx",
|
|
314
|
+
"code": "import { useState } from 'react';\n\nimport Banner from '@rio-cloud/rio-uikit/Banner';\nimport Button from '@rio-cloud/rio-uikit/Button';\n\nexport default () => {\n const [showBanner, setShowBanner] = useState(true);\n\n return (\n <div>\n <Banner show={showBanner} border={false} onClose={() => setShowBanner(false)}>\n <Banner.Page>\n <Banner.Icon className='text-size-14'>\n <span className='rioglyph rioglyph-hand-right text-size-200pct' />\n </Banner.Icon>\n <Banner.Content title='Pay attention to borders'>\n On white background, disable the border prop so the component is more pleasing for the eye\n </Banner.Content>\n </Banner.Page>\n </Banner>\n\n <Button bsSize='sm' className='margin-top-25' onClick={() => setShowBanner(true)}>\n Reset\n </Button>\n </div>\n );\n};"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"label": "HTML",
|
|
318
|
+
"language": "html",
|
|
319
|
+
"code": "<div>\n <div style=\"height: 84.8438px; opacity: 1;\">\n <div style=\"position: relative;\">\n <div class=\"bg-white rounded border shadow-default padding-20 Banner display-flex text-color-darker overflow-hidden position-relative border-color-white\">\n <div class=\"flex-1-1 overflow-hidden\">\n <div style=\"opacity: 1; transform: none;\">\n <div class=\"display-flex align-items-start align-items-center-ls width-100pct gap-15 \">\n <div class=\"BannerIcon flex-0 margin-x-5 min-width-25 text-size-14\">\n <span class=\"rioglyph rioglyph-hand-right text-size-200pct\">\n </span>\n </div>\n <div class=\"flex-1-1\">\n <div class=\"text-size-16 text-medium\">Pay attention to borders</div>On white background, disable the border prop so the component is more pleasing for the eye\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex-0 margin-left-10 margin-right--5 margin-top--5 margin-top-0-ls align-self-start align-self-center-ls\">\n <button type=\"button\" class=\"btn btn-muted btn-sm btn-icon-only btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-remove\">\n </span>\n </button>\n </div>\n </div>\n </div>\n </div>\n <button type=\"button\" class=\"btn btn-default btn-sm btn-component margin-top-25\" tabindex=\"0\">Reset</button>\n</div>"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"label": "Props",
|
|
323
|
+
"language": "json",
|
|
324
|
+
"code": null,
|
|
325
|
+
"props": [
|
|
326
|
+
{
|
|
327
|
+
"heading": "Banner",
|
|
328
|
+
"rows": [
|
|
329
|
+
{
|
|
330
|
+
"name": "show",
|
|
331
|
+
"type": "boolean",
|
|
332
|
+
"default": "true",
|
|
333
|
+
"description": "Defines if the content is shown or not."
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "dismissible",
|
|
337
|
+
"type": "boolean",
|
|
338
|
+
"default": "true",
|
|
339
|
+
"description": "Defines if a close button is shown or not. You can still add a custom CTA button to the content that handles visibility."
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "initialAnimation",
|
|
343
|
+
"type": "boolean",
|
|
344
|
+
"default": "true",
|
|
345
|
+
"description": "Enables or disables initial animation."
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "onClose",
|
|
349
|
+
"type": "() => void",
|
|
350
|
+
"default": "",
|
|
351
|
+
"description": "Callback when the close button is clicked."
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "pageTimeout",
|
|
355
|
+
"type": "number",
|
|
356
|
+
"default": "20_000",
|
|
357
|
+
"description": "Defines the time when the next page is shown in milliseconds."
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "showPageNavigation",
|
|
361
|
+
"type": "boolean",
|
|
362
|
+
"default": "true",
|
|
363
|
+
"description": "Defines if the page navigation buttons shall be shown or not."
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"name": "border",
|
|
367
|
+
"type": "boolean",
|
|
368
|
+
"default": "true",
|
|
369
|
+
"description": "Defines if a border is shown or not. When placed on a white background, please disable the border so it looks better."
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "className",
|
|
373
|
+
"type": "string",
|
|
374
|
+
"default": "",
|
|
375
|
+
"description": "Additional classes for the wrapper element."
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"name": "children",
|
|
379
|
+
"type": "ReactNode | ReactNode[]",
|
|
380
|
+
"default": "",
|
|
381
|
+
"description": "The actual banner content. Wrap your content in a <Banner.Page> component. When having multiple pages, usa an array of <Banner.Page> components."
|
|
382
|
+
}
|
|
383
|
+
]
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"heading": "Banner.Page",
|
|
387
|
+
"rows": [
|
|
388
|
+
{
|
|
389
|
+
"name": "className",
|
|
390
|
+
"type": "string",
|
|
391
|
+
"default": "",
|
|
392
|
+
"description": "Additional classes for the wrapper element."
|
|
393
|
+
}
|
|
394
|
+
]
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"heading": "Banner.Icon",
|
|
398
|
+
"rows": [
|
|
399
|
+
{
|
|
400
|
+
"name": "className",
|
|
401
|
+
"type": "string",
|
|
402
|
+
"default": "",
|
|
403
|
+
"description": "Additional classes for the wrapper element."
|
|
404
|
+
}
|
|
405
|
+
]
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"heading": "Banner.Content",
|
|
409
|
+
"rows": [
|
|
410
|
+
{
|
|
411
|
+
"name": "title",
|
|
412
|
+
"type": "string | React.ReactElement",
|
|
413
|
+
"default": "",
|
|
414
|
+
"description": "The title for the banner."
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"name": "actions",
|
|
418
|
+
"type": "React.ReactElement",
|
|
419
|
+
"default": "",
|
|
420
|
+
"description": "Use this to add the banner call-to-action buttons. Wrap them in a <Banner.Actions> component."
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"name": "minWidthBreakpoint",
|
|
424
|
+
"type": "number",
|
|
425
|
+
"default": "400",
|
|
426
|
+
"description": "Breakpoint in pixels where the action buttons are placed under the banner text. On larger screens, the buttons are next to the text."
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"name": "className",
|
|
430
|
+
"type": "string",
|
|
431
|
+
"default": "",
|
|
432
|
+
"description": "Additional classes for the wrapper element."
|
|
433
|
+
}
|
|
434
|
+
]
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"heading": "Banner.Actions",
|
|
438
|
+
"rows": [
|
|
439
|
+
{
|
|
440
|
+
"name": "className",
|
|
441
|
+
"type": "string",
|
|
442
|
+
"default": "",
|
|
443
|
+
"description": "Additional classes for the wrapper element."
|
|
444
|
+
}
|
|
445
|
+
]
|
|
446
|
+
}
|
|
447
|
+
]
|
|
448
|
+
}
|
|
449
|
+
]
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"caption": "Example 4",
|
|
453
|
+
"rendered_html": "<div class=\"playground-content bg-lighter padding-20 padding-bottom-25\" style=\"width: 100%;\"><div><div style=\"height: 0px; opacity: 0.0138889;\"><div style=\"position: relative;\"><div class=\"bg-white rounded border shadow-default padding-20 Banner display-flex text-color-darker overflow-hidden position-relative\"><div class=\"flex-1-1 overflow-hidden\"><div style=\"opacity: 0.0437861; transform: translateX(95.6214px) translateZ(0px);\"><div class=\"display-flex align-items-start align-items-center-ls width-100pct gap-15 \"><div class=\"BannerIcon flex-0 margin-x-5 min-width-25 text-size-14\"><span class=\"rioglyph rioglyph-tasks text-size-200pct\"></span></div><div class=\"flex-1-1\"><div class=\"text-size-16 text-medium\">Tip 1</div><div class=\"max-width-800\">\nLorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt. Fusce ac ligula bibendum, rutrum libero quis, viverra sem. Interdum et malesuada fames ac ante ipsum primis in faucibus. Duis ut hendrerit massa, in molestie elit. Sed vitae orci ac purus volutpat posuere ac ut neque. Mauris ante orci, semper finibus lorem in, fringilla pretium velit.</div></div></div></div><div class=\"margin-5\"><div class=\"position-absolute bottom-5\" style=\"right: 45px;\"><div class=\"display-flex\"><button type=\"button\" class=\"btn btn-muted btn-xs btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-arrow-left\"></span></button><button type=\"button\" class=\"btn btn-muted btn-xs btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-arrow-right\"></span></button></div></div></div></div><div class=\"flex-0 margin-left-10 margin-right--5 margin-top--5 margin-top-0-ls align-self-start align-self-center-ls\"><button type=\"button\" class=\"btn btn-muted btn-sm btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-remove\"></span></button></div></div></div></div><button type=\"button\" class=\"btn btn-default btn-sm btn-component margin-top-25\" tabindex=\"0\">Reset</button></div></div>",
|
|
454
|
+
"tabs": [
|
|
455
|
+
{
|
|
456
|
+
"label": "React",
|
|
457
|
+
"language": "tsx",
|
|
458
|
+
"code": "import { useState } from 'react';\n\nimport Banner from '@rio-cloud/rio-uikit/Banner';\nimport Button from '@rio-cloud/rio-uikit/Button';\nimport { dummyText, dummyTextExtraShort, dummyTextLong, dummyTextShort } from '../../../utils/data';\n\nexport default () => {\n const [showBanner, setShowBanner] = useState(true);\n\n return (\n <div>\n <Banner show={showBanner} onClose={() => setShowBanner(false)}>\n {[\n <Banner.Page key='page-1'>\n <Banner.Icon className='text-size-14'>\n <span className='rioglyph rioglyph-tasks text-size-200pct' />\n </Banner.Icon>\n <Banner.Content title='Tip 1'>\n <div className='max-width-800'>{dummyText}</div>\n </Banner.Content>\n </Banner.Page>,\n <Banner.Page key='page-2'>\n <Banner.Icon className='text-size-14'>\n <span className='rioglyph rioglyph-carrier text-size-200pct' />\n </Banner.Icon>\n <Banner.Content title='Tip 2'>\n <div className='max-width-800'>{dummyTextShort}</div>\n </Banner.Content>\n </Banner.Page>,\n <Banner.Page key='page-3'>\n <Banner.Icon className='text-size-14'>\n <span className='rioglyph rioglyph-handshake text-size-200pct' />\n </Banner.Icon>\n <Banner.Content title='Tip 3'>\n <div className='max-width-800'>{dummyTextExtraShort}</div>\n </Banner.Content>\n </Banner.Page>,\n ]}\n </Banner>\n\n <Button bsSize='sm' className='margin-top-25' onClick={() => setShowBanner(true)}>\n Reset\n </Button>\n </div>\n );\n};"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"label": "HTML",
|
|
462
|
+
"language": "html",
|
|
463
|
+
"code": "<div>\n <div style=\"height: 169.844px; opacity: 1;\">\n <div style=\"position: relative;\">\n <div class=\"bg-white rounded border shadow-default padding-20 Banner display-flex text-color-darker overflow-hidden position-relative\">\n <div class=\"flex-1-1 overflow-hidden\">\n <div style=\"opacity: 1; transform: none;\">\n <div class=\"display-flex align-items-start align-items-center-ls width-100pct gap-15 \">\n <div class=\"BannerIcon flex-0 margin-x-5 min-width-25 text-size-14\">\n <span class=\"rioglyph rioglyph-tasks text-size-200pct\">\n </span>\n </div>\n <div class=\"flex-1-1\">\n <div class=\"text-size-16 text-medium\">Tip 1</div>\n <div class=\"max-width-800\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt. Fusce ac ligula bibendum, rutrum libero quis, viverra sem. Interdum et malesuada fames ac ante ipsum primis in faucibus. Duis ut hendrerit massa, in molestie elit. Sed vitae orci ac purus volutpat posuere ac ut neque. Mauris ante orci, semper finibus lorem in, fringilla pretium velit.</div>\n </div>\n </div>\n </div>\n <div class=\"margin-5\">\n <div class=\"position-absolute bottom-5\" style=\"right: 45px;\">\n <div class=\"display-flex\">\n <button type=\"button\" class=\"btn btn-muted btn-xs btn-icon-only btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-arrow-left\">\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-muted btn-xs btn-icon-only btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-arrow-right\">\n </span>\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex-0 margin-left-10 margin-right--5 margin-top--5 margin-top-0-ls align-self-start align-self-center-ls\">\n <button type=\"button\" class=\"btn btn-muted btn-sm btn-icon-only btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-remove\">\n </span>\n </button>\n </div>\n </div>\n </div>\n </div>\n <button type=\"button\" class=\"btn btn-default btn-sm btn-component margin-top-25\" tabindex=\"0\">Reset</button>\n</div>"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"label": "Props",
|
|
467
|
+
"language": "json",
|
|
468
|
+
"code": null,
|
|
469
|
+
"props": [
|
|
470
|
+
{
|
|
471
|
+
"heading": "Banner",
|
|
472
|
+
"rows": [
|
|
473
|
+
{
|
|
474
|
+
"name": "show",
|
|
475
|
+
"type": "boolean",
|
|
476
|
+
"default": "true",
|
|
477
|
+
"description": "Defines if the content is shown or not."
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"name": "dismissible",
|
|
481
|
+
"type": "boolean",
|
|
482
|
+
"default": "true",
|
|
483
|
+
"description": "Defines if a close button is shown or not. You can still add a custom CTA button to the content that handles visibility."
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"name": "initialAnimation",
|
|
487
|
+
"type": "boolean",
|
|
488
|
+
"default": "true",
|
|
489
|
+
"description": "Enables or disables initial animation."
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "onClose",
|
|
493
|
+
"type": "() => void",
|
|
494
|
+
"default": "",
|
|
495
|
+
"description": "Callback when the close button is clicked."
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"name": "pageTimeout",
|
|
499
|
+
"type": "number",
|
|
500
|
+
"default": "20_000",
|
|
501
|
+
"description": "Defines the time when the next page is shown in milliseconds."
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"name": "showPageNavigation",
|
|
505
|
+
"type": "boolean",
|
|
506
|
+
"default": "true",
|
|
507
|
+
"description": "Defines if the page navigation buttons shall be shown or not."
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"name": "border",
|
|
511
|
+
"type": "boolean",
|
|
512
|
+
"default": "true",
|
|
513
|
+
"description": "Defines if a border is shown or not. When placed on a white background, please disable the border so it looks better."
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"name": "className",
|
|
517
|
+
"type": "string",
|
|
518
|
+
"default": "",
|
|
519
|
+
"description": "Additional classes for the wrapper element."
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"name": "children",
|
|
523
|
+
"type": "ReactNode | ReactNode[]",
|
|
524
|
+
"default": "",
|
|
525
|
+
"description": "The actual banner content. Wrap your content in a <Banner.Page> component. When having multiple pages, usa an array of <Banner.Page> components."
|
|
526
|
+
}
|
|
527
|
+
]
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"heading": "Banner.Page",
|
|
531
|
+
"rows": [
|
|
532
|
+
{
|
|
533
|
+
"name": "className",
|
|
534
|
+
"type": "string",
|
|
535
|
+
"default": "",
|
|
536
|
+
"description": "Additional classes for the wrapper element."
|
|
537
|
+
}
|
|
538
|
+
]
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"heading": "Banner.Icon",
|
|
542
|
+
"rows": [
|
|
543
|
+
{
|
|
544
|
+
"name": "className",
|
|
545
|
+
"type": "string",
|
|
546
|
+
"default": "",
|
|
547
|
+
"description": "Additional classes for the wrapper element."
|
|
548
|
+
}
|
|
549
|
+
]
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"heading": "Banner.Content",
|
|
553
|
+
"rows": [
|
|
554
|
+
{
|
|
555
|
+
"name": "title",
|
|
556
|
+
"type": "string | React.ReactElement",
|
|
557
|
+
"default": "",
|
|
558
|
+
"description": "The title for the banner."
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"name": "actions",
|
|
562
|
+
"type": "React.ReactElement",
|
|
563
|
+
"default": "",
|
|
564
|
+
"description": "Use this to add the banner call-to-action buttons. Wrap them in a <Banner.Actions> component."
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"name": "minWidthBreakpoint",
|
|
568
|
+
"type": "number",
|
|
569
|
+
"default": "400",
|
|
570
|
+
"description": "Breakpoint in pixels where the action buttons are placed under the banner text. On larger screens, the buttons are next to the text."
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"name": "className",
|
|
574
|
+
"type": "string",
|
|
575
|
+
"default": "",
|
|
576
|
+
"description": "Additional classes for the wrapper element."
|
|
577
|
+
}
|
|
578
|
+
]
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"heading": "Banner.Actions",
|
|
582
|
+
"rows": [
|
|
583
|
+
{
|
|
584
|
+
"name": "className",
|
|
585
|
+
"type": "string",
|
|
586
|
+
"default": "",
|
|
587
|
+
"description": "Additional classes for the wrapper element."
|
|
588
|
+
}
|
|
589
|
+
]
|
|
590
|
+
}
|
|
591
|
+
]
|
|
592
|
+
}
|
|
593
|
+
]
|
|
594
|
+
}
|
|
595
|
+
]
|
|
596
|
+
}
|
|
597
|
+
],
|
|
598
|
+
"see_also": []
|
|
599
|
+
}
|