@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.
- package/README.md +75 -40
- package/dist/doc-metadata.json +1872 -0
- package/dist/docs/components/accentBar.md +582 -0
- package/dist/docs/components/activity.md +330 -0
- package/dist/docs/components/animatedNumber.md +88 -0
- package/dist/docs/components/animatedTextReveal.md +381 -0
- package/dist/docs/components/animations.md +459 -0
- package/dist/docs/components/appHeader.md +737 -0
- package/dist/docs/components/appLayout.md +2016 -0
- package/dist/docs/components/appNavigationBar.md +274 -0
- package/dist/docs/components/areaCharts.md +828 -0
- package/dist/docs/components/aspectRatioPlaceholder.md +106 -0
- package/dist/docs/components/assetTree.md +3223 -0
- package/dist/docs/components/autosuggests.md +1177 -0
- package/dist/docs/components/avatar.md +206 -0
- package/dist/docs/components/banner.md +668 -0
- package/dist/docs/components/barCharts.md +2785 -0
- package/dist/docs/components/barList.md +517 -0
- package/dist/docs/components/basicMap.md +167 -0
- package/dist/docs/components/bottomSheet.md +721 -0
- package/dist/docs/components/button.md +775 -0
- package/dist/docs/components/buttonToolbar.md +134 -0
- package/dist/docs/components/calendarStripe.md +525 -0
- package/dist/docs/components/card.md +86 -0
- package/dist/docs/components/carousel.md +128 -0
- package/dist/docs/components/chartColors.md +716 -0
- package/dist/docs/components/chartsGettingStarted.md +28 -0
- package/dist/docs/components/chat.md +932 -0
- package/dist/docs/components/checkbox.md +996 -0
- package/dist/docs/components/clearableInput.md +806 -0
- package/dist/docs/components/collapse.md +189 -0
- package/dist/docs/components/composedCharts.md +424 -0
- package/dist/docs/components/contentLoader.md +674 -0
- package/dist/docs/components/dataTabs.md +1251 -0
- package/dist/docs/components/datepickers.md +2543 -0
- package/dist/docs/components/dialogs.md +2244 -0
- package/dist/docs/components/divider.md +219 -0
- package/dist/docs/components/dropdowns.md +17550 -0
- package/dist/docs/components/editableContent.md +1127 -0
- package/dist/docs/components/expander.md +970 -0
- package/dist/docs/components/fade.md +836 -0
- package/dist/docs/components/fadeExpander.md +180 -0
- package/dist/docs/components/fadeUp.md +396 -0
- package/dist/docs/components/feedback.md +758 -0
- package/dist/docs/components/filePickers.md +370 -0
- package/dist/docs/components/formLabel.md +251 -0
- package/dist/docs/components/fullscreenMap.md +10 -0
- package/dist/docs/components/groupedItemList.md +1001 -0
- package/dist/docs/components/iconList.md +306 -0
- package/dist/docs/components/imagePreloader.md +167 -0
- package/dist/docs/components/labeledElement.md +115 -0
- package/dist/docs/components/licensePlate.md +412 -0
- package/dist/docs/components/lineCharts.md +2014 -0
- package/dist/docs/components/listMenu.md +392 -0
- package/dist/docs/components/loadMore.md +219 -0
- package/dist/docs/components/mainNavigation.md +129 -0
- package/dist/docs/components/mapCircle.md +93 -0
- package/dist/docs/components/mapCluster.md +337 -0
- package/dist/docs/components/mapContext.md +284 -0
- package/dist/docs/components/mapDraggableMarker.md +150 -0
- package/dist/docs/components/mapGettingStarted.md +39 -0
- package/dist/docs/components/mapInfoBubble.md +135 -0
- package/dist/docs/components/mapLayerGroup.md +94 -0
- package/dist/docs/components/mapMarker.md +1814 -0
- package/dist/docs/components/mapPolygon.md +959 -0
- package/dist/docs/components/mapRoute.md +3816 -0
- package/dist/docs/components/mapRouteGenerator.md +6 -0
- package/dist/docs/components/mapSettings.md +1040 -0
- package/dist/docs/components/mapUtils.md +132 -0
- package/dist/docs/components/multiselects.md +1921 -0
- package/dist/docs/components/noData.md +210 -0
- package/dist/docs/components/notifications.md +314 -0
- package/dist/docs/components/numbercontrol.md +706 -0
- package/dist/docs/components/onboarding.md +297 -0
- package/dist/docs/components/page.md +241 -0
- package/dist/docs/components/pager.md +133 -0
- package/dist/docs/components/pieCharts.md +1284 -0
- package/dist/docs/components/popover.md +222 -0
- package/dist/docs/components/position.md +50 -0
- package/dist/docs/components/radialBarCharts.md +3663 -0
- package/dist/docs/components/radiobutton.md +1271 -0
- package/dist/docs/components/releaseNotes.md +135 -0
- package/dist/docs/components/resizer.md +162 -0
- package/dist/docs/components/responsiveColumnStripe.md +435 -0
- package/dist/docs/components/responsiveVideo.md +71 -0
- package/dist/docs/components/rioglyph.md +331 -0
- package/dist/docs/components/rules.md +965 -0
- package/dist/docs/components/saveableInput.md +1721 -0
- package/dist/docs/components/selects.md +1993 -0
- package/dist/docs/components/sidebar.md +332 -0
- package/dist/docs/components/sliders.md +376 -0
- package/dist/docs/components/smoothScrollbars.md +1180 -0
- package/dist/docs/components/spinners.md +506 -0
- package/dist/docs/components/states.md +1176 -0
- package/dist/docs/components/statsWidgets.md +636 -0
- package/dist/docs/components/statusBar.md +644 -0
- package/dist/docs/components/stepButton.md +61 -0
- package/dist/docs/components/steppedProgressBars.md +1064 -0
- package/dist/docs/components/subNavigation.md +470 -0
- package/dist/docs/components/supportMarker.md +115 -0
- package/dist/docs/components/svgImage.md +248 -0
- package/dist/docs/components/switch.md +554 -0
- package/dist/docs/components/tables.md +8 -0
- package/dist/docs/components/tagManager.md +476 -0
- package/dist/docs/components/tags.md +785 -0
- package/dist/docs/components/teaser.md +925 -0
- package/dist/docs/components/timeline.md +514 -0
- package/dist/docs/components/timepicker.md +262 -0
- package/dist/docs/components/toggleButton.md +178 -0
- package/dist/docs/components/tooltip.md +454 -0
- package/dist/docs/components/virtualList.md +483 -0
- package/dist/docs/foundations.md +20901 -0
- package/dist/docs/start/changelog.md +439 -0
- package/dist/docs/start/goodtoknow.md +14 -0
- package/dist/docs/start/guidelines/color-combinations.md +678 -0
- package/dist/docs/start/guidelines/custom-css.md +42 -0
- package/dist/docs/start/guidelines/custom-rioglyph.md +35 -0
- package/dist/docs/start/guidelines/formatting.md +587 -0
- package/dist/docs/start/guidelines/iframe.md +323 -0
- package/dist/docs/start/guidelines/obfuscate-data.md +30 -0
- package/dist/docs/start/guidelines/print-css.md +36 -0
- package/dist/docs/start/guidelines/spinner.md +710 -0
- package/dist/docs/start/guidelines/supported-browsers.md +10 -0
- package/dist/docs/start/guidelines/writing.md +635 -0
- package/dist/docs/start/howto.md +187 -0
- package/dist/docs/start/intro.md +43 -0
- package/dist/docs/start/responsiveness.md +98 -0
- package/dist/docs/templates/common-table.md +1111 -0
- package/dist/docs/templates/detail-views.md +942 -0
- package/dist/docs/templates/expandable-details.md +228 -0
- package/dist/docs/templates/feature-cards.md +549 -0
- package/dist/docs/templates/form-summary.md +199 -0
- package/dist/docs/templates/form-toggle.md +367 -0
- package/dist/docs/templates/list-blocks.md +1021 -0
- package/dist/docs/templates/loading-progress.md +109 -0
- package/dist/docs/templates/options-panel.md +152 -0
- package/dist/docs/templates/panel-variants.md +164 -0
- package/dist/docs/templates/progress-cards.md +607 -0
- package/dist/docs/templates/progress-success.md +142 -0
- package/dist/docs/templates/settings-form.md +434 -0
- package/dist/docs/templates/stats-blocks.md +1381 -0
- package/dist/docs/templates/table-panel.md +184 -0
- package/dist/docs/templates/table-row-animation.md +317 -0
- package/dist/docs/templates/usage-cards.md +227 -0
- package/dist/docs/utilities/deviceUtils.md +123 -0
- package/dist/docs/utilities/featureToggles.md +90 -0
- package/dist/docs/utilities/fuelTypeUtils.md +186 -0
- package/dist/docs/utilities/routeUtils.md +138 -0
- package/dist/docs/utilities/useAfterMount.md +66 -0
- package/dist/docs/utilities/useAutoAnimate.md +193 -0
- package/dist/docs/utilities/useAverage.md +95 -0
- package/dist/docs/utilities/useClickOutside.md +61 -0
- package/dist/docs/utilities/useClipboard.md +93 -0
- package/dist/docs/utilities/useCount.md +178 -0
- package/dist/docs/utilities/useDarkMode.md +49 -0
- package/dist/docs/utilities/useDebugInfo.md +126 -0
- package/dist/docs/utilities/useEffectOnce.md +58 -0
- package/dist/docs/utilities/useElapsedTime.md +58 -0
- package/dist/docs/utilities/useElementSize.md +71 -0
- package/dist/docs/utilities/useEsc.md +58 -0
- package/dist/docs/utilities/useEvent.md +64 -0
- package/dist/docs/utilities/useFocusTrap.md +85 -0
- package/dist/docs/utilities/useFullscreen.md +198 -0
- package/dist/docs/utilities/useHover.md +55 -0
- package/dist/docs/utilities/useIncomingPostMessages.md +237 -0
- package/dist/docs/utilities/useInterval.md +85 -0
- package/dist/docs/utilities/useIsFocusWithin.md +114 -0
- package/dist/docs/utilities/useKey.md +151 -0
- package/dist/docs/utilities/useLocalStorage.md +91 -0
- package/dist/docs/utilities/useLocationSuggestions.md +114 -0
- package/dist/docs/utilities/useMax.md +62 -0
- package/dist/docs/utilities/useMin.md +78 -0
- package/dist/docs/utilities/useMutationObserver.md +113 -0
- package/dist/docs/utilities/useOnScreen.md +138 -0
- package/dist/docs/utilities/useOnlineStatus.md +49 -0
- package/dist/docs/utilities/usePostMessage.md +117 -0
- package/dist/docs/utilities/usePostMessageSender.md +257 -0
- package/dist/docs/utilities/usePrevious.md +101 -0
- package/dist/docs/utilities/useResizeObserver.md +151 -0
- package/dist/docs/utilities/useScrollPosition.md +252 -0
- package/dist/docs/utilities/useSearch.md +228 -0
- package/dist/docs/utilities/useSorting.md +389 -0
- package/dist/docs/utilities/useStateWithValidation.md +83 -0
- package/dist/docs/utilities/useSum.md +155 -0
- package/dist/docs/utilities/useTableExport.md +404 -0
- package/dist/docs/utilities/useTableSelection.md +1120 -0
- package/dist/docs/utilities/useTimeout.md +55 -0
- package/dist/docs/utilities/useToggle.md +115 -0
- package/dist/docs/utilities/useWindowResize.md +70 -0
- package/dist/index.mjs +271 -0
- package/dist/search-synonyms.json +134 -0
- package/dist/version.json +4 -0
- package/package.json +23 -19
- package/bin/uikit-mcp.mjs +0 -23
- package/data/pages/Components/components/accentbar.json +0 -207
- package/data/pages/Components/components/activity.json +0 -87
- package/data/pages/Components/components/animatednumber.json +0 -99
- package/data/pages/Components/components/animations.json +0 -87
- package/data/pages/Components/components/appheader.json +0 -291
- package/data/pages/Components/components/applayout.json +0 -1198
- package/data/pages/Components/components/appnavigationbar.json +0 -327
- package/data/pages/Components/components/areacharts.json +0 -563
- package/data/pages/Components/components/aspectratioplaceholder.json +0 -75
- package/data/pages/Components/components/assettree.json +0 -3080
- package/data/pages/Components/components/autosuggests.json +0 -710
- package/data/pages/Components/components/avatar.json +0 -157
- package/data/pages/Components/components/banner.json +0 -599
- package/data/pages/Components/components/barcharts.json +0 -1507
- package/data/pages/Components/components/barlist.json +0 -223
- package/data/pages/Components/components/basicmap.json +0 -68
- package/data/pages/Components/components/bottomsheet.json +0 -601
- package/data/pages/Components/components/button.json +0 -583
- package/data/pages/Components/components/buttontoolbar.json +0 -63
- package/data/pages/Components/components/calendarstripe.json +0 -235
- package/data/pages/Components/components/card.json +0 -69
- package/data/pages/Components/components/carousel.json +0 -39
- package/data/pages/Components/components/chartcolors.json +0 -34
- package/data/pages/Components/components/chartsgettingstarted.json +0 -32
- package/data/pages/Components/components/chat.json +0 -39
- package/data/pages/Components/components/checkbox.json +0 -847
- package/data/pages/Components/components/clearableinput.json +0 -789
- package/data/pages/Components/components/collapse.json +0 -175
- package/data/pages/Components/components/composedcharts.json +0 -159
- package/data/pages/Components/components/contentloader.json +0 -233
- package/data/pages/Components/components/datatabs.json +0 -680
- package/data/pages/Components/components/datepickers.json +0 -287
- package/data/pages/Components/components/dialogs.json +0 -1492
- package/data/pages/Components/components/divider.json +0 -93
- package/data/pages/Components/components/dropdowns.json +0 -936
- package/data/pages/Components/components/editablecontent.json +0 -1117
- package/data/pages/Components/components/expander.json +0 -377
- package/data/pages/Components/components/fade.json +0 -403
- package/data/pages/Components/components/fadeexpander.json +0 -75
- package/data/pages/Components/components/fadeup.json +0 -127
- package/data/pages/Components/components/feedback.json +0 -269
- package/data/pages/Components/components/filepickers.json +0 -269
- package/data/pages/Components/components/formlabel.json +0 -115
- package/data/pages/Components/components/fullscreenmap.json +0 -22
- package/data/pages/Components/components/groupeditemlist.json +0 -323
- package/data/pages/Components/components/iconlist.json +0 -45
- package/data/pages/Components/components/imagepreloader.json +0 -81
- package/data/pages/Components/components/labeledelement.json +0 -75
- package/data/pages/Components/components/licenseplate.json +0 -69
- package/data/pages/Components/components/linecharts.json +0 -987
- package/data/pages/Components/components/listmenu.json +0 -313
- package/data/pages/Components/components/loadmore.json +0 -175
- package/data/pages/Components/components/mainnavigation.json +0 -39
- package/data/pages/Components/components/mapcircle.json +0 -34
- package/data/pages/Components/components/mapcluster.json +0 -51
- package/data/pages/Components/components/mapcontext.json +0 -105
- package/data/pages/Components/components/mapdraggablemarker.json +0 -34
- package/data/pages/Components/components/mapgettingstarted.json +0 -27
- package/data/pages/Components/components/mapgroup.json +0 -1198
- package/data/pages/Components/components/mapinfobubble.json +0 -34
- package/data/pages/Components/components/maplayergroup.json +0 -34
- package/data/pages/Components/components/mapmarker.json +0 -700
- package/data/pages/Components/components/mappolygon.json +0 -45
- package/data/pages/Components/components/maproute.json +0 -623
- package/data/pages/Components/components/maproutegenerator.json +0 -16
- package/data/pages/Components/components/mapsettings.json +0 -51
- package/data/pages/Components/components/maputils.json +0 -34
- package/data/pages/Components/components/multiselects.json +0 -1451
- package/data/pages/Components/components/nodata.json +0 -139
- package/data/pages/Components/components/notifications.json +0 -65
- package/data/pages/Components/components/numbercontrol.json +0 -301
- package/data/pages/Components/components/onboarding.json +0 -302
- package/data/pages/Components/components/page.json +0 -197
- package/data/pages/Components/components/pager.json +0 -93
- package/data/pages/Components/components/piecharts.json +0 -731
- package/data/pages/Components/components/popover.json +0 -251
- package/data/pages/Components/components/position.json +0 -69
- package/data/pages/Components/components/radialbarcharts.json +0 -1304
- package/data/pages/Components/components/radiobutton.json +0 -1105
- package/data/pages/Components/components/releasenotes.json +0 -44
- package/data/pages/Components/components/resizer.json +0 -93
- package/data/pages/Components/components/responsivecolumnstripe.json +0 -123
- package/data/pages/Components/components/responsivevideo.json +0 -75
- package/data/pages/Components/components/rioglyph.json +0 -93
- package/data/pages/Components/components/rules.json +0 -410
- package/data/pages/Components/components/saveableinput.json +0 -703
- package/data/pages/Components/components/selects.json +0 -701
- package/data/pages/Components/components/sidebar.json +0 -243
- package/data/pages/Components/components/sliders.json +0 -235
- package/data/pages/Components/components/smoothscrollbars.json +0 -335
- package/data/pages/Components/components/spinners.json +0 -343
- package/data/pages/Components/components/states.json +0 -1705
- package/data/pages/Components/components/statswidgets.json +0 -314
- package/data/pages/Components/components/statusbar.json +0 -177
- package/data/pages/Components/components/stepbutton.json +0 -57
- package/data/pages/Components/components/steppedprogressbars.json +0 -417
- package/data/pages/Components/components/subnavigation.json +0 -107
- package/data/pages/Components/components/supportmarker.json +0 -45
- package/data/pages/Components/components/svgimage.json +0 -81
- package/data/pages/Components/components/switch.json +0 -111
- package/data/pages/Components/components/tables.json +0 -144
- package/data/pages/Components/components/tagmanager.json +0 -86
- package/data/pages/Components/components/tags.json +0 -146
- package/data/pages/Components/components/teaser.json +0 -188
- package/data/pages/Components/components/timeline.json +0 -45
- package/data/pages/Components/components/timepicker.json +0 -163
- package/data/pages/Components/components/togglebutton.json +0 -247
- package/data/pages/Components/components/tooltip.json +0 -270
- package/data/pages/Components/components/virtuallist.json +0 -175
- package/data/pages/Foundations/foundations.json +0 -2475
- package/data/pages/Getting-started/start/changelog.json +0 -22
- package/data/pages/Getting-started/start/goodtoknow.json +0 -32
- package/data/pages/Getting-started/start/guidelines/color-combinations.json +0 -58
- package/data/pages/Getting-started/start/guidelines/custom-css.json +0 -27
- package/data/pages/Getting-started/start/guidelines/custom-rioglyph.json +0 -22
- package/data/pages/Getting-started/start/guidelines/formatting.json +0 -97
- package/data/pages/Getting-started/start/guidelines/iframe.json +0 -93
- package/data/pages/Getting-started/start/guidelines/obfuscate-data.json +0 -22
- package/data/pages/Getting-started/start/guidelines/print-css.json +0 -37
- package/data/pages/Getting-started/start/guidelines/spinner.json +0 -144
- package/data/pages/Getting-started/start/guidelines/supported-browsers.json +0 -22
- package/data/pages/Getting-started/start/guidelines/writing.json +0 -242
- package/data/pages/Getting-started/start/howto.json +0 -72
- package/data/pages/Getting-started/start/intro.json +0 -37
- package/data/pages/Getting-started/start/responsiveness.json +0 -52
- package/data/pages/Templates/templates/common-table.json +0 -39
- package/data/pages/Templates/templates/detail-views.json +0 -71
- package/data/pages/Templates/templates/expandable-details.json +0 -39
- package/data/pages/Templates/templates/feature-cards.json +0 -103
- package/data/pages/Templates/templates/form-summary.json +0 -39
- package/data/pages/Templates/templates/form-toggle.json +0 -39
- package/data/pages/Templates/templates/list-blocks.json +0 -119
- package/data/pages/Templates/templates/loading-progress.json +0 -39
- package/data/pages/Templates/templates/options-panel.json +0 -39
- package/data/pages/Templates/templates/panel-variants.json +0 -39
- package/data/pages/Templates/templates/progress-cards.json +0 -71
- package/data/pages/Templates/templates/progress-success.json +0 -39
- package/data/pages/Templates/templates/settings-form.json +0 -39
- package/data/pages/Templates/templates/stats-blocks.json +0 -135
- package/data/pages/Templates/templates/table-panel.json +0 -39
- package/data/pages/Templates/templates/table-row-animation.json +0 -39
- package/data/pages/Templates/templates/usage-cards.json +0 -39
- package/data/pages/Utilities/utilities/deviceutils.json +0 -39
- package/data/pages/Utilities/utilities/featuretoggles.json +0 -42
- package/data/pages/Utilities/utilities/fueltypeutils.json +0 -118
- package/data/pages/Utilities/utilities/routeutils.json +0 -34
- package/data/pages/Utilities/utilities/useaftermount.json +0 -63
- package/data/pages/Utilities/utilities/useaverage.json +0 -86
- package/data/pages/Utilities/utilities/useclickoutside.json +0 -69
- package/data/pages/Utilities/utilities/useclipboard.json +0 -57
- package/data/pages/Utilities/utilities/usecount.json +0 -92
- package/data/pages/Utilities/utilities/usedarkmode.json +0 -50
- package/data/pages/Utilities/utilities/usedebuginfo.json +0 -63
- package/data/pages/Utilities/utilities/useeffectonce.json +0 -57
- package/data/pages/Utilities/utilities/useelapsedtime.json +0 -57
- package/data/pages/Utilities/utilities/useelementsize.json +0 -63
- package/data/pages/Utilities/utilities/useesc.json +0 -57
- package/data/pages/Utilities/utilities/useevent.json +0 -75
- package/data/pages/Utilities/utilities/usefocustrap.json +0 -57
- package/data/pages/Utilities/utilities/usefullscreen.json +0 -197
- package/data/pages/Utilities/utilities/usehover.json +0 -57
- package/data/pages/Utilities/utilities/useinterval.json +0 -63
- package/data/pages/Utilities/utilities/useisfocuswithin.json +0 -75
- package/data/pages/Utilities/utilities/usekey.json +0 -75
- package/data/pages/Utilities/utilities/uselocalstorage.json +0 -69
- package/data/pages/Utilities/utilities/uselocationsuggestions.json +0 -110
- package/data/pages/Utilities/utilities/usemax.json +0 -86
- package/data/pages/Utilities/utilities/usemin.json +0 -86
- package/data/pages/Utilities/utilities/usemutationobserver.json +0 -69
- package/data/pages/Utilities/utilities/useonlinestatus.json +0 -39
- package/data/pages/Utilities/utilities/useonscreen.json +0 -63
- package/data/pages/Utilities/utilities/usepostmessage.json +0 -80
- package/data/pages/Utilities/utilities/useprevious.json +0 -63
- package/data/pages/Utilities/utilities/useresizeobserver.json +0 -65
- package/data/pages/Utilities/utilities/usescrollposition.json +0 -103
- package/data/pages/Utilities/utilities/usesearch.json +0 -197
- package/data/pages/Utilities/utilities/usesorting.json +0 -139
- package/data/pages/Utilities/utilities/usestatewithvalidation.json +0 -69
- package/data/pages/Utilities/utilities/usesum.json +0 -86
- package/data/pages/Utilities/utilities/usetableexport.json +0 -87
- package/data/pages/Utilities/utilities/usetableselection.json +0 -311
- package/data/pages/Utilities/utilities/usetimeout.json +0 -63
- package/data/pages/Utilities/utilities/usetoggle.json +0 -75
- package/data/pages/Utilities/utilities/usewindowresize.json +0 -63
- package/data/version.json +0 -4
- package/docs/content-schema.md +0 -147
- package/docs/navigation-inventory.json +0 -1310
- package/docs/search-synonyms.json +0 -43
- package/server/index.mjs +0 -268
- package/server/lib/load-docs.mjs +0 -48
- package/server/lib/normalise-doc.mjs +0 -220
- package/server/lib/render-markdown.mjs +0 -82
- package/server/lib/search-index.mjs +0 -49
- package/server/lib/types.js +0 -99
|
@@ -0,0 +1,836 @@
|
|
|
1
|
+
# Fade
|
|
2
|
+
|
|
3
|
+
*Category:* Components
|
|
4
|
+
*Section:* Show/Hide
|
|
5
|
+
*Source:* https://uikit.developers.rio.cloud/#components/fade
|
|
6
|
+
*Captured:* 2025-12-12T12:38:24.744Z
|
|
7
|
+
|
|
8
|
+
The Fade component fades in and out content with a given animation style.
|
|
9
|
+
|
|
10
|
+
## Fade
|
|
11
|
+
|
|
12
|
+
### Example: Example 1
|
|
13
|
+
|
|
14
|
+
Animation styles:fade (default)fromLeftfromRightfromTopfromBottom
|
|
15
|
+
|
|
16
|
+
Toggle content
|
|
17
|
+
|
|
18
|
+
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.
|
|
19
|
+
|
|
20
|
+
#### Summary
|
|
21
|
+
|
|
22
|
+
Animation styles:fade (default)fromLeftfromRightfromTopfromBottom
|
|
23
|
+
|
|
24
|
+
Toggle content
|
|
25
|
+
|
|
26
|
+
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.
|
|
27
|
+
|
|
28
|
+
#### React (tsx)
|
|
29
|
+
|
|
30
|
+
```tsx
|
|
31
|
+
import { useState } from 'react';
|
|
32
|
+
|
|
33
|
+
import Fade, { type FadeAnimationStyle } from '@rio-cloud/rio-uikit/Fade';
|
|
34
|
+
import RadioButton from '@rio-cloud/rio-uikit/RadioButton';
|
|
35
|
+
import ToggleButton from '@rio-cloud/rio-uikit/ToggleButton';
|
|
36
|
+
import { dummyText } from '../../../utils/data';
|
|
37
|
+
|
|
38
|
+
export default () => {
|
|
39
|
+
const [showContent, setShowContent] = useState(true);
|
|
40
|
+
const [animationStyle, setAnimationStyle] = useState<FadeAnimationStyle>('fade');
|
|
41
|
+
|
|
42
|
+
return (
|
|
43
|
+
<div>
|
|
44
|
+
<div className='margin-bottom-25'>
|
|
45
|
+
<label>Animation styles:</label>
|
|
46
|
+
<div>
|
|
47
|
+
<RadioButton name='radiosInline' inline onClick={() => setAnimationStyle('fade')} defaultChecked>
|
|
48
|
+
fade (default)
|
|
49
|
+
</RadioButton>
|
|
50
|
+
<RadioButton name='radiosInline' inline onClick={() => setAnimationStyle('fromLeft')}>
|
|
51
|
+
fromLeft
|
|
52
|
+
</RadioButton>
|
|
53
|
+
<RadioButton name='radiosInline' inline onClick={() => setAnimationStyle('fromRight')}>
|
|
54
|
+
fromRight
|
|
55
|
+
</RadioButton>
|
|
56
|
+
<RadioButton name='radiosInline' inline onClick={() => setAnimationStyle('fromTop')}>
|
|
57
|
+
fromTop
|
|
58
|
+
</RadioButton>
|
|
59
|
+
<RadioButton name='radiosInline' inline onClick={() => setAnimationStyle('fromBottom')}>
|
|
60
|
+
fromBottom
|
|
61
|
+
</RadioButton>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<ToggleButton
|
|
66
|
+
className='margin-bottom-10'
|
|
67
|
+
active={showContent}
|
|
68
|
+
onClick={() => setShowContent(!showContent)}
|
|
69
|
+
>
|
|
70
|
+
Toggle content
|
|
71
|
+
</ToggleButton>
|
|
72
|
+
|
|
73
|
+
<div className='min-height-150'>
|
|
74
|
+
<Fade animationStyle={animationStyle} show={showContent}>
|
|
75
|
+
<div className='panel panel-default panel-body'>
|
|
76
|
+
<div className='display-flex justify-content-center'>
|
|
77
|
+
<div className='width-50 flex-1-0 text-size-20'>
|
|
78
|
+
<span className='rioglyph rioglyph-truck text-size-200pct text-color-gray' />
|
|
79
|
+
</div>
|
|
80
|
+
<div className='text-color-darker'>{dummyText}</div>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
</Fade>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
);
|
|
87
|
+
};
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
#### HTML (html)
|
|
91
|
+
|
|
92
|
+
```html
|
|
93
|
+
<div>
|
|
94
|
+
<div class="margin-bottom-25">
|
|
95
|
+
<label>Animation styles:</label>
|
|
96
|
+
<div>
|
|
97
|
+
<label class="radio radio-inline" tabindex="0">
|
|
98
|
+
<input type="radio" class="" name="radiosInline" value="" checked="">
|
|
99
|
+
<span class="radio-text">
|
|
100
|
+
<span>fade (default)</span>
|
|
101
|
+
</span>
|
|
102
|
+
</label>
|
|
103
|
+
<label class="radio radio-inline" tabindex="0">
|
|
104
|
+
<input type="radio" class="" name="radiosInline" value="">
|
|
105
|
+
<span class="radio-text">
|
|
106
|
+
<span>fromLeft</span>
|
|
107
|
+
</span>
|
|
108
|
+
</label>
|
|
109
|
+
<label class="radio radio-inline" tabindex="0">
|
|
110
|
+
<input type="radio" class="" name="radiosInline" value="">
|
|
111
|
+
<span class="radio-text">
|
|
112
|
+
<span>fromRight</span>
|
|
113
|
+
</span>
|
|
114
|
+
</label>
|
|
115
|
+
<label class="radio radio-inline" tabindex="0">
|
|
116
|
+
<input type="radio" class="" name="radiosInline" value="">
|
|
117
|
+
<span class="radio-text">
|
|
118
|
+
<span>fromTop</span>
|
|
119
|
+
</span>
|
|
120
|
+
</label>
|
|
121
|
+
<label class="radio radio-inline" tabindex="0">
|
|
122
|
+
<input type="radio" class="" name="radiosInline" value="">
|
|
123
|
+
<span class="radio-text">
|
|
124
|
+
<span>fromBottom</span>
|
|
125
|
+
</span>
|
|
126
|
+
</label>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
<button type="button" class="btn btn-default btn-toggle active btn-component margin-bottom-10" tabindex="0">Toggle content</button>
|
|
130
|
+
<div class="min-height-150">
|
|
131
|
+
<div style="opacity: 1; transform: none;">
|
|
132
|
+
<div class="panel panel-default panel-body">
|
|
133
|
+
<div class="display-flex justify-content-center">
|
|
134
|
+
<div class="width-50 flex-1-0 text-size-20">
|
|
135
|
+
<span class="rioglyph rioglyph-truck text-size-200pct text-color-gray">
|
|
136
|
+
</span>
|
|
137
|
+
</div>
|
|
138
|
+
<div class="text-color-darker">
|
|
139
|
+
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>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
#### Props
|
|
148
|
+
|
|
149
|
+
| Name | Type | Default | Description |
|
|
150
|
+
| --- | --- | --- | --- |
|
|
151
|
+
| show | Boolean | true | Defines whether to show the content or not. |
|
|
152
|
+
| duration | Number | 0.2 | Duration of the fade animation in seconds. |
|
|
153
|
+
| initial | Boolean | false | Defines whether or not the animation is triggered initially when showing the content. |
|
|
154
|
+
| animationStyle | String | fade | Defines the desired animation style. Possible values are: fade tabs page pageBackfromLeft fromRight fromTop fromBottom |
|
|
155
|
+
| exitBeforeEnter | Boolean | false | If set to true, only one component will be rendered at a time. The exiting component will finish its exit animation before the entering component is rendered. |
|
|
156
|
+
| onExitComplete | Function | () => {} | Fires when all exiting nodes have completed animating out. |
|
|
157
|
+
| animatePresenceProps | Object | — | Additional custom props for the underlying Framer motion AnimatePresence component. Use this for additional customizations. |
|
|
158
|
+
| motionProps | Object | — | Additional custom props for the underlying Framer motion <motion.div> component. Use this for additional customizations. |
|
|
159
|
+
|
|
160
|
+
### Example: Example 2
|
|
161
|
+
|
|
162
|
+
Fading tab content:
|
|
163
|
+
When using tabs or pills to switch between content, please us the fade style 'tabs'. It's the default so you don't have to explicitly set it.
|
|
164
|
+
Tab 1
|
|
165
|
+
Tab 2
|
|
166
|
+
|
|
167
|
+
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.
|
|
168
|
+
|
|
169
|
+
#### Summary
|
|
170
|
+
|
|
171
|
+
Fading tab content:
|
|
172
|
+
When using tabs or pills to switch between content, please us the fade style 'tabs'. It's the default so you don't have to explicitly set it.
|
|
173
|
+
Tab 1
|
|
174
|
+
Tab 2
|
|
175
|
+
|
|
176
|
+
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.
|
|
177
|
+
|
|
178
|
+
#### React (tsx)
|
|
179
|
+
|
|
180
|
+
```tsx
|
|
181
|
+
import { useState } from 'react';
|
|
182
|
+
|
|
183
|
+
import Fade from '@rio-cloud/rio-uikit/Fade';
|
|
184
|
+
import { dummyText } from '../../../utils/data';
|
|
185
|
+
|
|
186
|
+
export default () => {
|
|
187
|
+
const [currentTab, setCurrentTab] = useState(1);
|
|
188
|
+
|
|
189
|
+
return (
|
|
190
|
+
<div>
|
|
191
|
+
<div className='h6'>Fading tab content:</div>
|
|
192
|
+
<p>
|
|
193
|
+
When using tabs or pills to switch between content, please us the fade style <code>'tabs'</code>. It's
|
|
194
|
+
the default so you don't have to explicitly set it.
|
|
195
|
+
</p>
|
|
196
|
+
<ul className='nav nav-tabs'>
|
|
197
|
+
<li className={currentTab === 1 ? 'active' : ''}>
|
|
198
|
+
<span onClick={() => setCurrentTab(1)}>Tab 1</span>
|
|
199
|
+
</li>
|
|
200
|
+
<li className={currentTab === 2 ? 'active' : ''}>
|
|
201
|
+
<span onClick={() => setCurrentTab(2)}>Tab 2</span>
|
|
202
|
+
</li>
|
|
203
|
+
</ul>
|
|
204
|
+
<div className='tab-content-bordered'>
|
|
205
|
+
<Fade initial={false} exitBeforeEnter>
|
|
206
|
+
{currentTab === 1 && <ContentTab1 key='contentTab1' />}
|
|
207
|
+
{currentTab === 2 && <ContentTab2 key='contentTab2' />}
|
|
208
|
+
</Fade>
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
);
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
const ContentTab1 = () => (
|
|
215
|
+
<div className='display-flex justify-content-center'>
|
|
216
|
+
<div className='width-50 flex-1-0 text-size-20'>
|
|
217
|
+
<span className='rioglyph rioglyph-truck text-size-200pct text-color-gray' />
|
|
218
|
+
</div>
|
|
219
|
+
<div className='text-color-darker'>{dummyText}</div>
|
|
220
|
+
</div>
|
|
221
|
+
);
|
|
222
|
+
|
|
223
|
+
const ContentTab2 = () => (
|
|
224
|
+
<div className='display-flex justify-content-center'>
|
|
225
|
+
<div className='width-50 flex-1-0 text-size-20'>
|
|
226
|
+
<span className='rioglyph rioglyph-bus text-size-200pct text-color-gray' />
|
|
227
|
+
</div>
|
|
228
|
+
<div className='text-color-darker'>{dummyText}</div>
|
|
229
|
+
</div>
|
|
230
|
+
);
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
#### HTML (html)
|
|
234
|
+
|
|
235
|
+
```html
|
|
236
|
+
<div>
|
|
237
|
+
<div class="h6">Fading tab content:</div>
|
|
238
|
+
<p>When using tabs or pills to switch between content, please us the fade style <code>'tabs'</code>. It's the default so you don't have to explicitly set it.</p>
|
|
239
|
+
<ul class="nav nav-tabs">
|
|
240
|
+
<li class="active">
|
|
241
|
+
<span>Tab 1</span>
|
|
242
|
+
</li>
|
|
243
|
+
<li class="">
|
|
244
|
+
<span>Tab 2</span>
|
|
245
|
+
</li>
|
|
246
|
+
</ul>
|
|
247
|
+
<div class="tab-content-bordered">
|
|
248
|
+
<div style="opacity: 1; transform: none;">
|
|
249
|
+
<div class="display-flex justify-content-center">
|
|
250
|
+
<div class="width-50 flex-1-0 text-size-20">
|
|
251
|
+
<span class="rioglyph rioglyph-truck text-size-200pct text-color-gray">
|
|
252
|
+
</span>
|
|
253
|
+
</div>
|
|
254
|
+
<div class="text-color-darker">
|
|
255
|
+
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>
|
|
256
|
+
</div>
|
|
257
|
+
</div>
|
|
258
|
+
</div>
|
|
259
|
+
</div>
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
#### Props
|
|
263
|
+
|
|
264
|
+
| Name | Type | Default | Description |
|
|
265
|
+
| --- | --- | --- | --- |
|
|
266
|
+
| show | Boolean | true | Defines whether to show the content or not. |
|
|
267
|
+
| duration | Number | 0.2 | Duration of the fade animation in seconds. |
|
|
268
|
+
| initial | Boolean | false | Defines whether or not the animation is triggered initially when showing the content. |
|
|
269
|
+
| animationStyle | String | fade | Defines the desired animation style. Possible values are: fade tabs page pageBackfromLeft fromRight fromTop fromBottom |
|
|
270
|
+
| exitBeforeEnter | Boolean | false | If set to true, only one component will be rendered at a time. The exiting component will finish its exit animation before the entering component is rendered. |
|
|
271
|
+
| onExitComplete | Function | () => {} | Fires when all exiting nodes have completed animating out. |
|
|
272
|
+
| animatePresenceProps | Object | — | Additional custom props for the underlying Framer motion AnimatePresence component. Use this for additional customizations. |
|
|
273
|
+
| motionProps | Object | — | Additional custom props for the underlying Framer motion <motion.div> component. Use this for additional customizations. |
|
|
274
|
+
|
|
275
|
+
### Example: Example 3
|
|
276
|
+
|
|
277
|
+
Fading pills content:
|
|
278
|
+
When using tabs or pills to switch between content, please us the fade style 'tabs'. It's the default so you don't have to explicitly set it.
|
|
279
|
+
Tab 1
|
|
280
|
+
Tab 2
|
|
281
|
+
|
|
282
|
+
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.
|
|
283
|
+
|
|
284
|
+
#### Summary
|
|
285
|
+
|
|
286
|
+
Fading pills content:
|
|
287
|
+
When using tabs or pills to switch between content, please us the fade style 'tabs'. It's the default so you don't have to explicitly set it.
|
|
288
|
+
Tab 1
|
|
289
|
+
Tab 2
|
|
290
|
+
|
|
291
|
+
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.
|
|
292
|
+
|
|
293
|
+
#### React (tsx)
|
|
294
|
+
|
|
295
|
+
```tsx
|
|
296
|
+
import { useState } from 'react';
|
|
297
|
+
|
|
298
|
+
import Fade from '@rio-cloud/rio-uikit/Fade';
|
|
299
|
+
import { dummyText, dummyTextExtraShort } from '../../../utils/data';
|
|
300
|
+
|
|
301
|
+
export default () => {
|
|
302
|
+
const [currentTab, setCurrentTab] = useState(1);
|
|
303
|
+
|
|
304
|
+
return (
|
|
305
|
+
<div className='max-width-500'>
|
|
306
|
+
<div className='h6'>Fading pills content:</div>
|
|
307
|
+
<p>
|
|
308
|
+
When using tabs or pills to switch between content, please us the fade style <code>'tabs'</code>. It's
|
|
309
|
+
the default so you don't have to explicitly set it.
|
|
310
|
+
</p>
|
|
311
|
+
<ul className='nav nav-pills'>
|
|
312
|
+
<li className={currentTab === 1 ? 'active' : ''}>
|
|
313
|
+
<span onClick={() => setCurrentTab(1)}>Tab 1</span>
|
|
314
|
+
</li>
|
|
315
|
+
<li className={currentTab === 2 ? 'active' : ''}>
|
|
316
|
+
<span onClick={() => setCurrentTab(2)}>Tab 2</span>
|
|
317
|
+
</li>
|
|
318
|
+
</ul>
|
|
319
|
+
<div className='padding-20 overflow-hidden'>
|
|
320
|
+
<Fade initial={false} exitBeforeEnter>
|
|
321
|
+
{currentTab === 1 && <ContentTab1 key='contentTab1' />}
|
|
322
|
+
{currentTab === 2 && <ContentTab2 key='contentTab2' />}
|
|
323
|
+
</Fade>
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
326
|
+
);
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
const ContentTab1 = () => (
|
|
330
|
+
<div className='display-flex justify-content-center'>
|
|
331
|
+
<div className='margin-right-20 text-size-20'>
|
|
332
|
+
<span className='rioglyph rioglyph-truck text-size-200pct text-color-gray' />
|
|
333
|
+
</div>
|
|
334
|
+
<div className='flex-1-1 text-color-darker'>{dummyText}</div>
|
|
335
|
+
</div>
|
|
336
|
+
);
|
|
337
|
+
|
|
338
|
+
const ContentTab2 = () => (
|
|
339
|
+
<div className='display-flex justify-content-center'>
|
|
340
|
+
<div className='margin-right-20 text-size-20'>
|
|
341
|
+
<span className='rioglyph rioglyph-bus text-size-200pct text-color-gray' />
|
|
342
|
+
</div>
|
|
343
|
+
<div className='flex-1-1'>
|
|
344
|
+
<form>
|
|
345
|
+
<div className='form-group'>
|
|
346
|
+
<label className='display-flex flex-wrap justify-content-between'>
|
|
347
|
+
Default input<span className='text-italic'>Some input info for the user</span>
|
|
348
|
+
</label>
|
|
349
|
+
<input type='text' className='form-control' defaultValue='rio' />
|
|
350
|
+
</div>
|
|
351
|
+
<div className='form-group'>
|
|
352
|
+
<label className='display-flex flex-wrap justify-content-between'>Another input</label>
|
|
353
|
+
<input type='text' className='form-control' defaultValue='rio' />
|
|
354
|
+
</div>
|
|
355
|
+
</form>
|
|
356
|
+
<div className='text-color-darker'>{dummyTextExtraShort}</div>
|
|
357
|
+
</div>
|
|
358
|
+
</div>
|
|
359
|
+
);
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
#### HTML (html)
|
|
363
|
+
|
|
364
|
+
```html
|
|
365
|
+
<div class="max-width-500">
|
|
366
|
+
<div class="h6">Fading pills content:</div>
|
|
367
|
+
<p>When using tabs or pills to switch between content, please us the fade style <code>'tabs'</code>. It's the default so you don't have to explicitly set it.</p>
|
|
368
|
+
<ul class="nav nav-pills">
|
|
369
|
+
<li class="active">
|
|
370
|
+
<span>Tab 1</span>
|
|
371
|
+
</li>
|
|
372
|
+
<li class="">
|
|
373
|
+
<span>Tab 2</span>
|
|
374
|
+
</li>
|
|
375
|
+
</ul>
|
|
376
|
+
<div class="padding-20 overflow-hidden">
|
|
377
|
+
<div style="opacity: 1; transform: none;">
|
|
378
|
+
<div class="display-flex justify-content-center">
|
|
379
|
+
<div class="margin-right-20 text-size-20">
|
|
380
|
+
<span class="rioglyph rioglyph-truck text-size-200pct text-color-gray">
|
|
381
|
+
</span>
|
|
382
|
+
</div>
|
|
383
|
+
<div class="flex-1-1 text-color-darker">
|
|
384
|
+
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>
|
|
385
|
+
</div>
|
|
386
|
+
</div>
|
|
387
|
+
</div>
|
|
388
|
+
</div>
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
#### Props
|
|
392
|
+
|
|
393
|
+
| Name | Type | Default | Description |
|
|
394
|
+
| --- | --- | --- | --- |
|
|
395
|
+
| show | Boolean | true | Defines whether to show the content or not. |
|
|
396
|
+
| duration | Number | 0.2 | Duration of the fade animation in seconds. |
|
|
397
|
+
| initial | Boolean | false | Defines whether or not the animation is triggered initially when showing the content. |
|
|
398
|
+
| animationStyle | String | fade | Defines the desired animation style. Possible values are: fade tabs page pageBackfromLeft fromRight fromTop fromBottom |
|
|
399
|
+
| exitBeforeEnter | Boolean | false | If set to true, only one component will be rendered at a time. The exiting component will finish its exit animation before the entering component is rendered. |
|
|
400
|
+
| onExitComplete | Function | () => {} | Fires when all exiting nodes have completed animating out. |
|
|
401
|
+
| animatePresenceProps | Object | — | Additional custom props for the underlying Framer motion AnimatePresence component. Use this for additional customizations. |
|
|
402
|
+
| motionProps | Object | — | Additional custom props for the underlying Framer motion <motion.div> component. Use this for additional customizations. |
|
|
403
|
+
|
|
404
|
+
### Example: Example 4
|
|
405
|
+
|
|
406
|
+
Page transition fade:
|
|
407
|
+
You may want to use 'page' or 'pageBack' style when you want to animate content as page transition. Example usage would be in a dialog, when showing onboarding screens or for steps.
|
|
408
|
+
|
|
409
|
+
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.
|
|
410
|
+
|
|
411
|
+
Previous
|
|
412
|
+
|
|
413
|
+
Next
|
|
414
|
+
|
|
415
|
+
#### Summary
|
|
416
|
+
|
|
417
|
+
Page transition fade:
|
|
418
|
+
You may want to use 'page' or 'pageBack' style when you want to animate content as page transition. Example usage would be in a dialog, when showing onboarding screens or for steps.
|
|
419
|
+
|
|
420
|
+
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.
|
|
421
|
+
|
|
422
|
+
Previous
|
|
423
|
+
|
|
424
|
+
Next
|
|
425
|
+
|
|
426
|
+
#### React (tsx)
|
|
427
|
+
|
|
428
|
+
```tsx
|
|
429
|
+
import { useState } from 'react';
|
|
430
|
+
|
|
431
|
+
import Fade, { type FadeAnimationStyle } from '@rio-cloud/rio-uikit/Fade';
|
|
432
|
+
import Pager from '@rio-cloud/rio-uikit/Pager';
|
|
433
|
+
import { dummyText, dummyTextExtraShort } from '../../../utils/data';
|
|
434
|
+
|
|
435
|
+
export default () => {
|
|
436
|
+
const [currentContent, setCurrentContent] = useState(1);
|
|
437
|
+
const [animationStyle, setAnimationStyle] = useState<FadeAnimationStyle>('page');
|
|
438
|
+
|
|
439
|
+
const handleNext = () => {
|
|
440
|
+
setCurrentContent(currentContent + 1);
|
|
441
|
+
setAnimationStyle('page');
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
const handlePrev = () => {
|
|
445
|
+
setCurrentContent(currentContent - 1);
|
|
446
|
+
setAnimationStyle('pageBack');
|
|
447
|
+
};
|
|
448
|
+
|
|
449
|
+
return (
|
|
450
|
+
<div className='max-width-500'>
|
|
451
|
+
<div className='h6'>Page transition fade:</div>
|
|
452
|
+
<p>
|
|
453
|
+
You may want to use <code>'page'</code> or <code>'pageBack'</code> style when you want to animate
|
|
454
|
+
content as page transition. Example usage would be in a dialog, when showing onboarding screens or for
|
|
455
|
+
steps.
|
|
456
|
+
</p>
|
|
457
|
+
<hr />
|
|
458
|
+
<div className='padding-20 overflow-hidden min-height-250'>
|
|
459
|
+
<Fade
|
|
460
|
+
initial={false}
|
|
461
|
+
exitBeforeEnter
|
|
462
|
+
animationStyle={animationStyle}
|
|
463
|
+
onExitComplete={() => console.log('Animation completed')}
|
|
464
|
+
>
|
|
465
|
+
{currentContent === 1 && <Content1 key='content1' />}
|
|
466
|
+
{currentContent === 2 && <Content2 key='content2' />}
|
|
467
|
+
{currentContent === 3 && <Content3 key='content3' />}
|
|
468
|
+
</Fade>
|
|
469
|
+
</div>
|
|
470
|
+
<div className='display-flex gap-15 justify-content-between'>
|
|
471
|
+
<Pager
|
|
472
|
+
title='Previous'
|
|
473
|
+
variant={Pager.VARIANT_COMPACT}
|
|
474
|
+
disabled={currentContent === 1}
|
|
475
|
+
alignRight
|
|
476
|
+
onClick={handlePrev}
|
|
477
|
+
/>
|
|
478
|
+
<Pager
|
|
479
|
+
title='Next'
|
|
480
|
+
variant={Pager.VARIANT_COMPACT}
|
|
481
|
+
disabled={currentContent === 3}
|
|
482
|
+
onClick={handleNext}
|
|
483
|
+
/>
|
|
484
|
+
</div>
|
|
485
|
+
</div>
|
|
486
|
+
);
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
const Content1 = () => (
|
|
490
|
+
<div className='display-flex justify-content-center'>
|
|
491
|
+
<div className='margin-right-20 text-size-20'>
|
|
492
|
+
<span className='rioglyph rioglyph-truck text-size-200pct text-color-gray' />
|
|
493
|
+
</div>
|
|
494
|
+
<div className='flex-1-1 text-color-darker'>{dummyText}</div>
|
|
495
|
+
</div>
|
|
496
|
+
);
|
|
497
|
+
|
|
498
|
+
const Content2 = () => (
|
|
499
|
+
<div className='display-flex justify-content-center'>
|
|
500
|
+
<div className='margin-right-20 text-size-20'>
|
|
501
|
+
<span className='rioglyph rioglyph-bus text-size-200pct text-color-gray' />
|
|
502
|
+
</div>
|
|
503
|
+
<div className='flex-1-1'>
|
|
504
|
+
<form>
|
|
505
|
+
<div className='form-group'>
|
|
506
|
+
<label className='display-flex flex-wrap justify-content-between'>
|
|
507
|
+
Default input<span className='text-italic'>Some input info for the user</span>
|
|
508
|
+
</label>
|
|
509
|
+
<input type='text' className='form-control' defaultValue='rio' />
|
|
510
|
+
</div>
|
|
511
|
+
<div className='form-group'>
|
|
512
|
+
<label className='display-flex flex-wrap justify-content-between'>Another input</label>
|
|
513
|
+
<input type='text' className='form-control' defaultValue='rio' />
|
|
514
|
+
</div>
|
|
515
|
+
</form>
|
|
516
|
+
<div className='text-color-darker'>{dummyTextExtraShort}</div>
|
|
517
|
+
</div>
|
|
518
|
+
</div>
|
|
519
|
+
);
|
|
520
|
+
|
|
521
|
+
const Content3 = () => (
|
|
522
|
+
<div className='display-flex align-items-center justify-content-center min-height-200'>
|
|
523
|
+
<div className='margin-right-20 text-size-20'>
|
|
524
|
+
<span className='rioglyph rioglyph-ok-circle text-size-200pct text-color-success' />
|
|
525
|
+
</div>
|
|
526
|
+
<div className='text-color-darker'>You are done</div>
|
|
527
|
+
</div>
|
|
528
|
+
);
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
#### HTML (html)
|
|
532
|
+
|
|
533
|
+
```html
|
|
534
|
+
<div class="max-width-500">
|
|
535
|
+
<div class="h6">Page transition fade:</div>
|
|
536
|
+
<p>You may want to use <code>'page'</code> or <code>'pageBack'</code> style when you want to animate content as page transition. Example usage would be in a dialog, when showing onboarding screens or for steps.</p>
|
|
537
|
+
<hr>
|
|
538
|
+
<div class="padding-20 overflow-hidden min-height-250">
|
|
539
|
+
<div style="opacity: 1; transform: none;">
|
|
540
|
+
<div class="display-flex justify-content-center">
|
|
541
|
+
<div class="margin-right-20 text-size-20">
|
|
542
|
+
<span class="rioglyph rioglyph-truck text-size-200pct text-color-gray">
|
|
543
|
+
</span>
|
|
544
|
+
</div>
|
|
545
|
+
<div class="flex-1-1 text-color-darker">
|
|
546
|
+
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>
|
|
547
|
+
</div>
|
|
548
|
+
</div>
|
|
549
|
+
</div>
|
|
550
|
+
<div class="display-flex gap-15 justify-content-between">
|
|
551
|
+
<div class="Pager bg-white border display-flex justify-space-between align-items-center flex-row-reverse pointer-events-none cursor-pointer user-select-none rounded-circle padding-y-5 padding-x-15 width-auto">
|
|
552
|
+
<div class="display-flex flex-1-1 flex-column align-items-end">
|
|
553
|
+
<div class="text-color-light">Previous</div>
|
|
554
|
+
</div>
|
|
555
|
+
<span class="rioglyph text-color-light rioglyph-chevron-left margin-right-5 text-size-10">
|
|
556
|
+
</span>
|
|
557
|
+
</div>
|
|
558
|
+
<div class="Pager bg-white border display-flex justify-space-between align-items-center cursor-pointer user-select-none rounded-circle padding-y-5 padding-x-15 width-auto">
|
|
559
|
+
<div class="display-flex flex-1-1 flex-column ">
|
|
560
|
+
<div class="text-color-darker">Next</div>
|
|
561
|
+
</div>
|
|
562
|
+
<span class="rioglyph text-color-darker rioglyph-chevron-right margin-left-5 text-size-10">
|
|
563
|
+
</span>
|
|
564
|
+
</div>
|
|
565
|
+
</div>
|
|
566
|
+
</div>
|
|
567
|
+
```
|
|
568
|
+
|
|
569
|
+
#### Props
|
|
570
|
+
|
|
571
|
+
| Name | Type | Default | Description |
|
|
572
|
+
| --- | --- | --- | --- |
|
|
573
|
+
| show | Boolean | true | Defines whether to show the content or not. |
|
|
574
|
+
| duration | Number | 0.2 | Duration of the fade animation in seconds. |
|
|
575
|
+
| initial | Boolean | false | Defines whether or not the animation is triggered initially when showing the content. |
|
|
576
|
+
| animationStyle | String | fade | Defines the desired animation style. Possible values are: fade tabs page pageBackfromLeft fromRight fromTop fromBottom |
|
|
577
|
+
| exitBeforeEnter | Boolean | false | If set to true, only one component will be rendered at a time. The exiting component will finish its exit animation before the entering component is rendered. |
|
|
578
|
+
| onExitComplete | Function | () => {} | Fires when all exiting nodes have completed animating out. |
|
|
579
|
+
| animatePresenceProps | Object | — | Additional custom props for the underlying Framer motion AnimatePresence component. Use this for additional customizations. |
|
|
580
|
+
| motionProps | Object | — | Additional custom props for the underlying Framer motion <motion.div> component. Use this for additional customizations. |
|
|
581
|
+
|
|
582
|
+
### Example: Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
|
583
|
+
|
|
584
|
+
This demonstrates how transitions can be used to create a more engaging user experience.
|
|
585
|
+
Selecting an item from this list takes you to a second view that provides detailed information specific to the chosen item.
|
|
586
|
+
This approach is particularly beneficial when dealing with limited space, such as narrow sidebars or dialog boxes with multiple steps. By utilizing transitions in these scenarios, you can effectively guide users through the process without cluttering the interface.
|
|
587
|
+
|
|
588
|
+
Lorem ipsum
|
|
589
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
|
590
|
+
|
|
591
|
+
Dolor
|
|
592
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
|
593
|
+
|
|
594
|
+
Sit amet
|
|
595
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
|
596
|
+
|
|
597
|
+
Consetetur sadipscing
|
|
598
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
|
599
|
+
|
|
600
|
+
#### Summary
|
|
601
|
+
|
|
602
|
+
This demonstrates how transitions can be used to create a more engaging user experience.
|
|
603
|
+
Selecting an item from this list takes you to a second view that provides detailed information specific to the chosen item.
|
|
604
|
+
This approach is particularly beneficial when dealing with limited space, such as narrow sidebars or dialog boxes with multiple steps. By utilizing transitions in these scenarios, you can effectively guide users through the process without cluttering the interface.
|
|
605
|
+
|
|
606
|
+
Lorem ipsum
|
|
607
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
|
608
|
+
|
|
609
|
+
Dolor
|
|
610
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
|
611
|
+
|
|
612
|
+
Sit amet
|
|
613
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
|
614
|
+
|
|
615
|
+
Consetetur sadipscing
|
|
616
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
|
617
|
+
|
|
618
|
+
#### React (tsx)
|
|
619
|
+
|
|
620
|
+
```tsx
|
|
621
|
+
import { useState } from 'react';
|
|
622
|
+
|
|
623
|
+
import Fade, { type FadeAnimationStyle } from '@rio-cloud/rio-uikit/Fade';
|
|
624
|
+
import AppNavigationBar from '@rio-cloud/rio-uikit/AppNavigationBar';
|
|
625
|
+
import Divider from '@rio-cloud/rio-uikit/Divider';
|
|
626
|
+
import { dummyTextExtraShort } from '../../../utils/data';
|
|
627
|
+
|
|
628
|
+
type Details = {
|
|
629
|
+
title: string;
|
|
630
|
+
};
|
|
631
|
+
|
|
632
|
+
export default () => {
|
|
633
|
+
const [currentContent, setCurrentContent] = useState('list');
|
|
634
|
+
const [animationStyle, setAnimationStyle] = useState<FadeAnimationStyle>('page');
|
|
635
|
+
|
|
636
|
+
const [details, setDetails] = useState<Details>();
|
|
637
|
+
|
|
638
|
+
const handleNext = (currentDetails: Details) => {
|
|
639
|
+
setCurrentContent('details');
|
|
640
|
+
setDetails(currentDetails);
|
|
641
|
+
setAnimationStyle('page');
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
const handlePrev = () => {
|
|
645
|
+
setCurrentContent('list');
|
|
646
|
+
setAnimationStyle('pageBack');
|
|
647
|
+
};
|
|
648
|
+
|
|
649
|
+
return (
|
|
650
|
+
<div>
|
|
651
|
+
<div className='max-width-600'>
|
|
652
|
+
<p>This demonstrates how transitions can be used to create a more engaging user experience.</p>
|
|
653
|
+
<p>
|
|
654
|
+
Selecting an item from this list takes you to a second view that provides detailed information
|
|
655
|
+
specific to the chosen item.
|
|
656
|
+
</p>
|
|
657
|
+
<p>
|
|
658
|
+
This approach is particularly beneficial when dealing with limited space, such as narrow sidebars or
|
|
659
|
+
dialog boxes with multiple steps. By utilizing transitions in these scenarios, you can effectively
|
|
660
|
+
guide users through the process without cluttering the interface.
|
|
661
|
+
</p>
|
|
662
|
+
</div>
|
|
663
|
+
<div className='max-width-500 min-height-500 border bg-white overflow-hidden'>
|
|
664
|
+
<div className=''>
|
|
665
|
+
<Fade
|
|
666
|
+
initial={false}
|
|
667
|
+
exitBeforeEnter
|
|
668
|
+
animationStyle={animationStyle}
|
|
669
|
+
onExitComplete={() => console.log('Animation completed')}
|
|
670
|
+
duration={0.25}
|
|
671
|
+
motionProps={{ transition: { duration: 0.25, type: 'spring' } }}
|
|
672
|
+
>
|
|
673
|
+
{currentContent === 'list' && (
|
|
674
|
+
<div className='padding-20'>
|
|
675
|
+
<ListItem key='content1' onNext={handleNext} title='Lorem ipsum' />
|
|
676
|
+
<Divider dividerColor='lighter' className='padding-y-10' />
|
|
677
|
+
<ListItem key='content2' onNext={handleNext} title='Dolor' />
|
|
678
|
+
<Divider dividerColor='lighter' className='padding-y-10' />
|
|
679
|
+
<ListItem key='content3' onNext={handleNext} title='Sit amet' />
|
|
680
|
+
<Divider dividerColor='lighter' className='padding-y-10' />
|
|
681
|
+
<ListItem key='content4' onNext={handleNext} title='Consetetur sadipscing' />
|
|
682
|
+
<Divider dividerColor='lighter' className='padding-y-10' />
|
|
683
|
+
</div>
|
|
684
|
+
)}
|
|
685
|
+
{currentContent === 'details' && (
|
|
686
|
+
<ItemDetails key='content2' title={details?.title} onBack={handlePrev} />
|
|
687
|
+
)}
|
|
688
|
+
</Fade>
|
|
689
|
+
</div>
|
|
690
|
+
</div>
|
|
691
|
+
</div>
|
|
692
|
+
);
|
|
693
|
+
};
|
|
694
|
+
|
|
695
|
+
const ListItem = ({ title, onNext }: { title: string; onNext: (details: Details) => void }) => (
|
|
696
|
+
<div
|
|
697
|
+
className='rounded hover-bg-lightest cursor-pointer padding-x-15 padding-y-10'
|
|
698
|
+
onClick={() => onNext({ title })}
|
|
699
|
+
>
|
|
700
|
+
<div className='display-flex align-items-center gap-10'>
|
|
701
|
+
<div className='flex-1-1'>
|
|
702
|
+
<div className='text-size-20 text-medium'>{title}</div>
|
|
703
|
+
<div className='text-color-dark'>
|
|
704
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
|
705
|
+
</div>
|
|
706
|
+
</div>
|
|
707
|
+
<div className='text-color-dark'>
|
|
708
|
+
<span className='rioglyph rioglyph-chevron-right' />
|
|
709
|
+
</div>
|
|
710
|
+
</div>
|
|
711
|
+
</div>
|
|
712
|
+
);
|
|
713
|
+
|
|
714
|
+
const ItemDetails = ({ title = '', onBack }: { title: string | undefined; onBack: VoidFunction }) => (
|
|
715
|
+
<div>
|
|
716
|
+
<AppNavigationBar title={title} onNavigateBack={onBack} className='border border-bottom-only' />
|
|
717
|
+
<div className='display-flex justify-content-center padding-20 padding-top-25'>
|
|
718
|
+
<div className='margin-right-20 text-size-20'>
|
|
719
|
+
<span className='rioglyph rioglyph-bus text-size-200pct text-color-gray' />
|
|
720
|
+
</div>
|
|
721
|
+
<div className='flex-1-1'>
|
|
722
|
+
<form>
|
|
723
|
+
<div className='form-group'>
|
|
724
|
+
<label className='display-flex flex-wrap justify-content-between'>
|
|
725
|
+
Default input<span className='text-italic'>Some input info for the user</span>
|
|
726
|
+
</label>
|
|
727
|
+
<input type='text' className='form-control' defaultValue='rio' />
|
|
728
|
+
</div>
|
|
729
|
+
<div className='form-group'>
|
|
730
|
+
<label className='display-flex flex-wrap justify-content-between'>Another input</label>
|
|
731
|
+
<input type='text' className='form-control' defaultValue='rio' />
|
|
732
|
+
</div>
|
|
733
|
+
</form>
|
|
734
|
+
<div className='text-color-darker'>{dummyTextExtraShort}</div>
|
|
735
|
+
</div>
|
|
736
|
+
</div>
|
|
737
|
+
</div>
|
|
738
|
+
);
|
|
739
|
+
```
|
|
740
|
+
|
|
741
|
+
#### HTML (html)
|
|
742
|
+
|
|
743
|
+
```html
|
|
744
|
+
<div>
|
|
745
|
+
<div class="max-width-600">
|
|
746
|
+
<p>This demonstrates how transitions can be used to create a more engaging user experience.</p>
|
|
747
|
+
<p>Selecting an item from this list takes you to a second view that provides detailed information specific to the chosen item.</p>
|
|
748
|
+
<p>This approach is particularly beneficial when dealing with limited space, such as narrow sidebars or dialog boxes with multiple steps. By utilizing transitions in these scenarios, you can effectively guide users through the process without cluttering the interface.</p>
|
|
749
|
+
</div>
|
|
750
|
+
<div class="max-width-500 min-height-500 border bg-white overflow-hidden">
|
|
751
|
+
<div class="">
|
|
752
|
+
<div style="opacity: 1; transform: none;">
|
|
753
|
+
<div class="padding-20">
|
|
754
|
+
<div class="rounded hover-bg-lightest cursor-pointer padding-x-15 padding-y-10">
|
|
755
|
+
<div class="display-flex align-items-center gap-10">
|
|
756
|
+
<div class="flex-1-1">
|
|
757
|
+
<div class="text-size-20 text-medium">Lorem ipsum</div>
|
|
758
|
+
<div class="text-color-dark">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod</div>
|
|
759
|
+
</div>
|
|
760
|
+
<div class="text-color-dark">
|
|
761
|
+
<span class="rioglyph rioglyph-chevron-right">
|
|
762
|
+
</span>
|
|
763
|
+
</div>
|
|
764
|
+
</div>
|
|
765
|
+
</div>
|
|
766
|
+
<div class="Divider position-relative width-100pct padding-y-10" style="padding-top: 15px; padding-bottom: 15px;">
|
|
767
|
+
<div class="divider-line bg-lighter" style="width: 100%; height: 1px;">
|
|
768
|
+
</div>
|
|
769
|
+
</div>
|
|
770
|
+
<div class="rounded hover-bg-lightest cursor-pointer padding-x-15 padding-y-10">
|
|
771
|
+
<div class="display-flex align-items-center gap-10">
|
|
772
|
+
<div class="flex-1-1">
|
|
773
|
+
<div class="text-size-20 text-medium">Dolor</div>
|
|
774
|
+
<div class="text-color-dark">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod</div>
|
|
775
|
+
</div>
|
|
776
|
+
<div class="text-color-dark">
|
|
777
|
+
<span class="rioglyph rioglyph-chevron-right">
|
|
778
|
+
</span>
|
|
779
|
+
</div>
|
|
780
|
+
</div>
|
|
781
|
+
</div>
|
|
782
|
+
<div class="Divider position-relative width-100pct padding-y-10" style="padding-top: 15px; padding-bottom: 15px;">
|
|
783
|
+
<div class="divider-line bg-lighter" style="width: 100%; height: 1px;">
|
|
784
|
+
</div>
|
|
785
|
+
</div>
|
|
786
|
+
<div class="rounded hover-bg-lightest cursor-pointer padding-x-15 padding-y-10">
|
|
787
|
+
<div class="display-flex align-items-center gap-10">
|
|
788
|
+
<div class="flex-1-1">
|
|
789
|
+
<div class="text-size-20 text-medium">Sit amet</div>
|
|
790
|
+
<div class="text-color-dark">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod</div>
|
|
791
|
+
</div>
|
|
792
|
+
<div class="text-color-dark">
|
|
793
|
+
<span class="rioglyph rioglyph-chevron-right">
|
|
794
|
+
</span>
|
|
795
|
+
</div>
|
|
796
|
+
</div>
|
|
797
|
+
</div>
|
|
798
|
+
<div class="Divider position-relative width-100pct padding-y-10" style="padding-top: 15px; padding-bottom: 15px;">
|
|
799
|
+
<div class="divider-line bg-lighter" style="width: 100%; height: 1px;">
|
|
800
|
+
</div>
|
|
801
|
+
</div>
|
|
802
|
+
<div class="rounded hover-bg-lightest cursor-pointer padding-x-15 padding-y-10">
|
|
803
|
+
<div class="display-flex align-items-center gap-10">
|
|
804
|
+
<div class="flex-1-1">
|
|
805
|
+
<div class="text-size-20 text-medium">Consetetur sadipscing</div>
|
|
806
|
+
<div class="text-color-dark">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod</div>
|
|
807
|
+
</div>
|
|
808
|
+
<div class="text-color-dark">
|
|
809
|
+
<span class="rioglyph rioglyph-chevron-right">
|
|
810
|
+
</span>
|
|
811
|
+
</div>
|
|
812
|
+
</div>
|
|
813
|
+
</div>
|
|
814
|
+
<div class="Divider position-relative width-100pct padding-y-10" style="padding-top: 15px; padding-bottom: 15px;">
|
|
815
|
+
<div class="divider-line bg-lighter" style="width: 100%; height: 1px;">
|
|
816
|
+
</div>
|
|
817
|
+
</div>
|
|
818
|
+
</div>
|
|
819
|
+
</div>
|
|
820
|
+
</div>
|
|
821
|
+
</div>
|
|
822
|
+
</div>
|
|
823
|
+
```
|
|
824
|
+
|
|
825
|
+
#### Props
|
|
826
|
+
|
|
827
|
+
| Name | Type | Default | Description |
|
|
828
|
+
| --- | --- | --- | --- |
|
|
829
|
+
| show | Boolean | true | Defines whether to show the content or not. |
|
|
830
|
+
| duration | Number | 0.2 | Duration of the fade animation in seconds. |
|
|
831
|
+
| initial | Boolean | false | Defines whether or not the animation is triggered initially when showing the content. |
|
|
832
|
+
| animationStyle | String | fade | Defines the desired animation style. Possible values are: fade tabs page pageBackfromLeft fromRight fromTop fromBottom |
|
|
833
|
+
| exitBeforeEnter | Boolean | false | If set to true, only one component will be rendered at a time. The exiting component will finish its exit animation before the entering component is rendered. |
|
|
834
|
+
| onExitComplete | Function | () => {} | Fires when all exiting nodes have completed animating out. |
|
|
835
|
+
| animatePresenceProps | Object | — | Additional custom props for the underlying Framer motion AnimatePresence component. Use this for additional customizations. |
|
|
836
|
+
| motionProps | Object | — | Additional custom props for the underlying Framer motion <motion.div> component. Use this for additional customizations. |
|