@nascentdigital/funnel-ui 4.4.18
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/dist/Tailwind.d.ts +201 -0
- package/dist/Tailwind.js +282 -0
- package/dist/client/app/AppContainer.d.ts +10 -0
- package/dist/client/app/AppContainer.js +22 -0
- package/dist/client/app/AppContext.d.ts +11 -0
- package/dist/client/app/AppContext.js +6 -0
- package/dist/client/app/AppPreview.d.ts +7 -0
- package/dist/client/app/AppPreview.js +51 -0
- package/dist/client/app/PageContainer.d.ts +8 -0
- package/dist/client/app/PageContainer.js +22 -0
- package/dist/client/app/index.d.ts +9 -0
- package/dist/client/app/index.js +25 -0
- package/dist/client/app/useAppConfig.d.ts +2 -0
- package/dist/client/app/useAppConfig.js +9 -0
- package/dist/client/app/useBrand.d.ts +9 -0
- package/dist/client/app/useBrand.js +17 -0
- package/dist/client/app/useLanguage.d.ts +2 -0
- package/dist/client/app/useLanguage.js +11 -0
- package/dist/client/app/usePageData.d.ts +2 -0
- package/dist/client/app/usePageData.js +25 -0
- package/dist/client/app/usePageUrl.d.ts +1 -0
- package/dist/client/app/usePageUrl.js +12 -0
- package/dist/client/app/useRegion.d.ts +1 -0
- package/dist/client/app/useRegion.js +10 -0
- package/dist/client/app/useSite.d.ts +2 -0
- package/dist/client/app/useSite.js +13 -0
- package/dist/client/atomic/AnimatedText.d.ts +12 -0
- package/dist/client/atomic/AnimatedText.js +90 -0
- package/dist/client/atomic/MaskedInput.d.ts +20 -0
- package/dist/client/atomic/MaskedInput.js +63 -0
- package/dist/client/atomic/index.d.ts +2 -0
- package/dist/client/atomic/index.js +18 -0
- package/dist/client/fields/EmbeddedVideo/EmbeddedPlayer.d.ts +36 -0
- package/dist/client/fields/EmbeddedVideo/EmbeddedPlayer.js +2 -0
- package/dist/client/fields/EmbeddedVideo/EmbeddedVideo.d.ts +13 -0
- package/dist/client/fields/EmbeddedVideo/EmbeddedVideo.js +22 -0
- package/dist/client/fields/EmbeddedVideo/EmbeddedVideoContainer.d.ts +7 -0
- package/dist/client/fields/EmbeddedVideo/EmbeddedVideoContainer.js +24 -0
- package/dist/client/fields/EmbeddedVideo/EmbeddedVideoContext.d.ts +8 -0
- package/dist/client/fields/EmbeddedVideo/EmbeddedVideoContext.js +11 -0
- package/dist/client/fields/EmbeddedVideo/index.d.ts +4 -0
- package/dist/client/fields/EmbeddedVideo/index.js +20 -0
- package/dist/client/fields/EmbeddedVideo/useEmbeddedPlayerProgress.d.ts +10 -0
- package/dist/client/fields/EmbeddedVideo/useEmbeddedPlayerProgress.js +66 -0
- package/dist/client/fields/EmbeddedVideo/useEmbeddedPlayerRef.d.ts +9 -0
- package/dist/client/fields/EmbeddedVideo/useEmbeddedPlayerRef.js +29 -0
- package/dist/client/fields/EmbeddedVideo/vimeo/VimeoPlayer.d.ts +63 -0
- package/dist/client/fields/EmbeddedVideo/vimeo/VimeoPlayer.js +326 -0
- package/dist/client/fields/EmbeddedVideo/vimeo/VimeoVideo.d.ts +13 -0
- package/dist/client/fields/EmbeddedVideo/vimeo/VimeoVideo.js +60 -0
- package/dist/client/fields/EmbeddedVideo/vimeo/index.d.ts +1 -0
- package/dist/client/fields/EmbeddedVideo/vimeo/index.js +17 -0
- package/dist/client/fields/EmbeddedVideo/youtube/YTApi.d.ts +92 -0
- package/dist/client/fields/EmbeddedVideo/youtube/YTApi.js +24 -0
- package/dist/client/fields/EmbeddedVideo/youtube/YoutubePlayer.d.ts +56 -0
- package/dist/client/fields/EmbeddedVideo/youtube/YoutubePlayer.js +288 -0
- package/dist/client/fields/EmbeddedVideo/youtube/YoutubeVideo.d.ts +13 -0
- package/dist/client/fields/EmbeddedVideo/youtube/YoutubeVideo.js +71 -0
- package/dist/client/fields/EmbeddedVideo/youtube/index.d.ts +3 -0
- package/dist/client/fields/EmbeddedVideo/youtube/index.js +19 -0
- package/dist/client/fields/LazyVideo.d.ts +8 -0
- package/dist/client/fields/LazyVideo.js +100 -0
- package/dist/client/fields/index.d.ts +2 -0
- package/dist/client/fields/index.js +18 -0
- package/dist/client/forms/Form.d.ts +13 -0
- package/dist/client/forms/Form.js +68 -0
- package/dist/client/forms/FormContext.d.ts +5 -0
- package/dist/client/forms/FormContext.js +6 -0
- package/dist/client/forms/fields/BooleanField.d.ts +16 -0
- package/dist/client/forms/fields/BooleanField.js +47 -0
- package/dist/client/forms/fields/EnumField.d.ts +20 -0
- package/dist/client/forms/fields/EnumField.js +65 -0
- package/dist/client/forms/fields/Field.d.ts +15 -0
- package/dist/client/forms/fields/Field.js +39 -0
- package/dist/client/forms/fields/FieldErrorController.d.ts +12 -0
- package/dist/client/forms/fields/FieldErrorController.js +13 -0
- package/dist/client/forms/fields/FieldLayout.d.ts +16 -0
- package/dist/client/forms/fields/FieldLayout.js +32 -0
- package/dist/client/forms/fields/TextField.d.ts +25 -0
- package/dist/client/forms/fields/TextField.js +178 -0
- package/dist/client/forms/fields/index.d.ts +2 -0
- package/dist/client/forms/fields/index.js +18 -0
- package/dist/client/forms/fields/useField.d.ts +2 -0
- package/dist/client/forms/fields/useField.js +26 -0
- package/dist/client/forms/index.d.ts +4 -0
- package/dist/client/forms/index.js +20 -0
- package/dist/client/forms/interactive/CheckboxField.d.ts +14 -0
- package/dist/client/forms/interactive/CheckboxField.js +19 -0
- package/dist/client/forms/interactive/RadioField.d.ts +12 -0
- package/dist/client/forms/interactive/RadioField.js +16 -0
- package/dist/client/forms/interactive/RadioGroupField.d.ts +12 -0
- package/dist/client/forms/interactive/RadioGroupField.js +10 -0
- package/dist/client/forms/interactive/SelectField.d.ts +17 -0
- package/dist/client/forms/interactive/SelectField.js +16 -0
- package/dist/client/forms/interactive/index.d.ts +4 -0
- package/dist/client/forms/interactive/index.js +20 -0
- package/dist/client/forms/useForm.d.ts +2 -0
- package/dist/client/forms/useForm.js +17 -0
- package/dist/client/forms/useTempFields.d.ts +7 -0
- package/dist/client/forms/useTempFields.js +54 -0
- package/dist/client/hooks/assets/index.d.ts +2 -0
- package/dist/client/hooks/assets/index.js +18 -0
- package/dist/client/hooks/assets/useImageProxy.d.ts +2 -0
- package/dist/client/hooks/assets/useImageProxy.js +43 -0
- package/dist/client/hooks/assets/useVideoProxy.d.ts +2 -0
- package/dist/client/hooks/assets/useVideoProxy.js +43 -0
- package/dist/client/hooks/breakpoint/BreakpointContainer.d.ts +9 -0
- package/dist/client/hooks/breakpoint/BreakpointContainer.js +39 -0
- package/dist/client/hooks/breakpoint/BreakpointContext.d.ts +7 -0
- package/dist/client/hooks/breakpoint/BreakpointContext.js +9 -0
- package/dist/client/hooks/breakpoint/index.d.ts +3 -0
- package/dist/client/hooks/breakpoint/index.js +19 -0
- package/dist/client/hooks/breakpoint/useCurrentBreakpoint.d.ts +2 -0
- package/dist/client/hooks/breakpoint/useCurrentBreakpoint.js +10 -0
- package/dist/client/hooks/index.d.ts +26 -0
- package/dist/client/hooks/index.js +42 -0
- package/dist/client/hooks/ui-lock/UILockContainer.d.ts +5 -0
- package/dist/client/hooks/ui-lock/UILockContainer.js +57 -0
- package/dist/client/hooks/ui-lock/UILockContext.d.ts +9 -0
- package/dist/client/hooks/ui-lock/UILockContext.js +6 -0
- package/dist/client/hooks/ui-lock/UILockRef.d.ts +36 -0
- package/dist/client/hooks/ui-lock/UILockRef.js +32 -0
- package/dist/client/hooks/ui-lock/index.d.ts +3 -0
- package/dist/client/hooks/ui-lock/index.js +19 -0
- package/dist/client/hooks/ui-lock/useUILock.d.ts +16 -0
- package/dist/client/hooks/ui-lock/useUILock.js +121 -0
- package/dist/client/hooks/useCounter.d.ts +11 -0
- package/dist/client/hooks/useCounter.js +57 -0
- package/dist/client/hooks/useCycle.d.ts +5 -0
- package/dist/client/hooks/useCycle.js +15 -0
- package/dist/client/hooks/useElementRect.d.ts +2 -0
- package/dist/client/hooks/useElementRect.js +63 -0
- package/dist/client/hooks/useElementScrolled.d.ts +17 -0
- package/dist/client/hooks/useElementScrolled.js +51 -0
- package/dist/client/hooks/useElementSelector.d.ts +2 -0
- package/dist/client/hooks/useElementSelector.js +160 -0
- package/dist/client/hooks/useElementSize.d.ts +2 -0
- package/dist/client/hooks/useElementSize.js +64 -0
- package/dist/client/hooks/useFindElements.d.ts +9 -0
- package/dist/client/hooks/useFindElements.js +147 -0
- package/dist/client/hooks/useInViewport.d.ts +16 -0
- package/dist/client/hooks/useInViewport.js +46 -0
- package/dist/client/hooks/useIsDesktop.d.ts +1 -0
- package/dist/client/hooks/useIsDesktop.js +22 -0
- package/dist/client/hooks/useKeyboardFocus.d.ts +7 -0
- package/dist/client/hooks/useKeyboardFocus.js +40 -0
- package/dist/client/hooks/useLatestValue.d.ts +1 -0
- package/dist/client/hooks/useLatestValue.js +21 -0
- package/dist/client/hooks/useLock.d.ts +13 -0
- package/dist/client/hooks/useLock.js +161 -0
- package/dist/client/hooks/useMixedResponsiveValue.d.ts +2 -0
- package/dist/client/hooks/useMixedResponsiveValue.js +20 -0
- package/dist/client/hooks/usePathname.d.ts +9 -0
- package/dist/client/hooks/usePathname.js +25 -0
- package/dist/client/hooks/useRefElement.d.ts +8 -0
- package/dist/client/hooks/useRefElement.js +34 -0
- package/dist/client/hooks/useRefresh.d.ts +2 -0
- package/dist/client/hooks/useRefresh.js +25 -0
- package/dist/client/hooks/useResizeObserver.d.ts +5 -0
- package/dist/client/hooks/useResizeObserver.js +179 -0
- package/dist/client/hooks/useResponsiveValue.d.ts +2 -0
- package/dist/client/hooks/useResponsiveValue.js +16 -0
- package/dist/client/hooks/useRouter.d.ts +20 -0
- package/dist/client/hooks/useRouter.js +49 -0
- package/dist/client/hooks/useSafeLayoutEffect.d.ts +2 -0
- package/dist/client/hooks/useSafeLayoutEffect.js +9 -0
- package/dist/client/hooks/useTouch.d.ts +2 -0
- package/dist/client/hooks/useTouch.js +10 -0
- package/dist/client/hooks/useViewportSize.d.ts +7 -0
- package/dist/client/hooks/useViewportSize.js +66 -0
- package/dist/client/hooks/useWindowScrolled.d.ts +8 -0
- package/dist/client/hooks/useWindowScrolled.js +52 -0
- package/dist/client/index.d.ts +9 -0
- package/dist/client/index.js +25 -0
- package/dist/client/interaction/Carousel.d.ts +48 -0
- package/dist/client/interaction/Carousel.js +498 -0
- package/dist/client/interaction/ClickObserver.d.ts +19 -0
- package/dist/client/interaction/ClickObserver.js +76 -0
- package/dist/client/interaction/InfiniteScroller.d.ts +9 -0
- package/dist/client/interaction/InfiniteScroller.js +47 -0
- package/dist/client/interaction/Loader.d.ts +14 -0
- package/dist/client/interaction/Loader.js +74 -0
- package/dist/client/interaction/Marquee.d.ts +5 -0
- package/dist/client/interaction/Marquee.js +26 -0
- package/dist/client/interaction/Popup.d.ts +36 -0
- package/dist/client/interaction/Popup.js +244 -0
- package/dist/client/interaction/Tooltip.d.ts +16 -0
- package/dist/client/interaction/Tooltip.js +122 -0
- package/dist/client/interaction/UILevel.d.ts +1 -0
- package/dist/client/interaction/UILevel.js +2 -0
- package/dist/client/interaction/backdrop/BackdropContainer.d.ts +5 -0
- package/dist/client/interaction/backdrop/BackdropContainer.js +114 -0
- package/dist/client/interaction/backdrop/BackdropContext.d.ts +8 -0
- package/dist/client/interaction/backdrop/BackdropContext.js +6 -0
- package/dist/client/interaction/backdrop/BackdropEvent.d.ts +64 -0
- package/dist/client/interaction/backdrop/BackdropEvent.js +92 -0
- package/dist/client/interaction/backdrop/index.d.ts +4 -0
- package/dist/client/interaction/backdrop/index.js +20 -0
- package/dist/client/interaction/backdrop/useBackdrop.d.ts +13 -0
- package/dist/client/interaction/backdrop/useBackdrop.js +58 -0
- package/dist/client/interaction/backdrop/useBackdropClick.d.ts +2 -0
- package/dist/client/interaction/backdrop/useBackdropClick.js +21 -0
- package/dist/client/interaction/backdrop/useBackdropVisible.d.ts +1 -0
- package/dist/client/interaction/backdrop/useBackdropVisible.js +30 -0
- package/dist/client/interaction/focus/FocusArea.d.ts +10 -0
- package/dist/client/interaction/focus/FocusArea.js +38 -0
- package/dist/client/interaction/focus/FocusContext.d.ts +7 -0
- package/dist/client/interaction/focus/FocusContext.js +7 -0
- package/dist/client/interaction/focus/FocusController.d.ts +9 -0
- package/dist/client/interaction/focus/FocusController.js +40 -0
- package/dist/client/interaction/focus/FocusService.d.ts +20 -0
- package/dist/client/interaction/focus/FocusService.js +204 -0
- package/dist/client/interaction/focus/LinkedList.d.ts +18 -0
- package/dist/client/interaction/focus/LinkedList.js +122 -0
- package/dist/client/interaction/focus/index.d.ts +2 -0
- package/dist/client/interaction/focus/index.js +18 -0
- package/dist/client/interaction/focus/useFocusService.d.ts +2 -0
- package/dist/client/interaction/focus/useFocusService.js +14 -0
- package/dist/client/interaction/index.d.ts +12 -0
- package/dist/client/interaction/index.js +28 -0
- package/dist/client/interaction/modal/Modal.d.ts +29 -0
- package/dist/client/interaction/modal/Modal.js +136 -0
- package/dist/client/interaction/modal/ModalContainer.d.ts +5 -0
- package/dist/client/interaction/modal/ModalContainer.js +104 -0
- package/dist/client/interaction/modal/ModalContext.d.ts +8 -0
- package/dist/client/interaction/modal/ModalContext.js +6 -0
- package/dist/client/interaction/modal/ModalEvent.d.ts +39 -0
- package/dist/client/interaction/modal/ModalEvent.js +53 -0
- package/dist/client/interaction/modal/index.d.ts +2 -0
- package/dist/client/interaction/modal/index.js +18 -0
- package/dist/client/interaction/paginator/Paginator.d.ts +33 -0
- package/dist/client/interaction/paginator/Paginator.js +67 -0
- package/dist/client/interaction/paginator/index.d.ts +1 -0
- package/dist/client/interaction/paginator/index.js +17 -0
- package/dist/client/layouts/MasonaryLayout.d.ts +7 -0
- package/dist/client/layouts/MasonaryLayout.js +53 -0
- package/dist/client/layouts/index.d.ts +1 -0
- package/dist/client/layouts/index.js +17 -0
- package/dist/client/refs.d.ts +2 -0
- package/dist/client/refs.js +13 -0
- package/dist/client/transitions/Revelator.d.ts +42 -0
- package/dist/client/transitions/Revelator.js +60 -0
- package/dist/client/transitions/SideScroll.d.ts +14 -0
- package/dist/client/transitions/SideScroll.js +51 -0
- package/dist/client/transitions/StyleInViewport.d.ts +20 -0
- package/dist/client/transitions/StyleInViewport.js +66 -0
- package/dist/client/transitions/StyleSwitch.d.ts +297 -0
- package/dist/client/transitions/StyleSwitch.js +78 -0
- package/dist/client/transitions/index.d.ts +6 -0
- package/dist/client/transitions/index.js +22 -0
- package/dist/client/transitions/parallax/Parallax.d.ts +20 -0
- package/dist/client/transitions/parallax/Parallax.js +72 -0
- package/dist/client/transitions/parallax/ParallaxContext.d.ts +11 -0
- package/dist/client/transitions/parallax/ParallaxContext.js +6 -0
- package/dist/client/transitions/parallax/ParallaxItem.d.ts +14 -0
- package/dist/client/transitions/parallax/ParallaxItem.js +37 -0
- package/dist/client/transitions/parallax/ParallaxRemote.d.ts +29 -0
- package/dist/client/transitions/parallax/ParallaxRemote.js +136 -0
- package/dist/client/transitions/parallax/ParallaxUtils.d.ts +5 -0
- package/dist/client/transitions/parallax/ParallaxUtils.js +19 -0
- package/dist/client/transitions/parallax/index.d.ts +2 -0
- package/dist/client/transitions/parallax/index.js +18 -0
- package/dist/client/transitions/parallax/useDisableParallax.d.ts +4 -0
- package/dist/client/transitions/parallax/useDisableParallax.js +13 -0
- package/dist/client/transitions/parallax/useParallax.d.ts +2 -0
- package/dist/client/transitions/parallax/useParallax.js +18 -0
- package/dist/client/transitions/parallax/useTransforms.d.ts +34 -0
- package/dist/client/transitions/parallax/useTransforms.js +176 -0
- package/dist/client/transitions/reveal/Reveal.d.ts +14 -0
- package/dist/client/transitions/reveal/Reveal.js +75 -0
- package/dist/client/transitions/reveal/RevealAnimation.d.ts +17 -0
- package/dist/client/transitions/reveal/RevealAnimation.js +2 -0
- package/dist/client/transitions/reveal/RevealAnimator.d.ts +13 -0
- package/dist/client/transitions/reveal/RevealAnimator.js +41 -0
- package/dist/client/transitions/reveal/RevealController.d.ts +13 -0
- package/dist/client/transitions/reveal/RevealController.js +114 -0
- package/dist/client/transitions/reveal/RevealElementAnimator.d.ts +13 -0
- package/dist/client/transitions/reveal/RevealElementAnimator.js +65 -0
- package/dist/client/transitions/reveal/index.d.ts +2 -0
- package/dist/client/transitions/reveal/index.js +18 -0
- package/dist/client/utils/OnKey.d.ts +20 -0
- package/dist/client/utils/OnKey.js +33 -0
- package/dist/client/utils/SharedMutationObserver.d.ts +20 -0
- package/dist/client/utils/SharedMutationObserver.js +202 -0
- package/dist/client/utils/index.d.ts +2 -0
- package/dist/client/utils/index.js +18 -0
- package/dist/server/atomic/Markup.d.ts +14 -0
- package/dist/server/atomic/Markup.js +34 -0
- package/dist/server/atomic/NascentLogo.d.ts +6 -0
- package/dist/server/atomic/NascentLogo.js +9 -0
- package/dist/server/atomic/index.d.ts +2 -0
- package/dist/server/atomic/index.js +18 -0
- package/dist/server/blocks/Block.d.ts +16 -0
- package/dist/server/blocks/Block.js +92 -0
- package/dist/server/blocks/Clients.d.ts +33 -0
- package/dist/server/blocks/Clients.js +82 -0
- package/dist/server/blocks/Editorial.d.ts +33 -0
- package/dist/server/blocks/Editorial.js +80 -0
- package/dist/server/blocks/Form.d.ts +46 -0
- package/dist/server/blocks/Form.js +74 -0
- package/dist/server/blocks/FormMessage.d.ts +15 -0
- package/dist/server/blocks/FormMessage.js +37 -0
- package/dist/server/blocks/MediaLayout.d.ts +309 -0
- package/dist/server/blocks/MediaLayout.js +105 -0
- package/dist/server/blocks/Message.d.ts +76 -0
- package/dist/server/blocks/Message.js +352 -0
- package/dist/server/blocks/Outcome.d.ts +84 -0
- package/dist/server/blocks/Outcome.js +489 -0
- package/dist/server/blocks/OutcomeDetail.d.ts +303 -0
- package/dist/server/blocks/OutcomeDetail.js +63 -0
- package/dist/server/blocks/Projects.d.ts +43 -0
- package/dist/server/blocks/Projects.js +109 -0
- package/dist/server/blocks/Stat.d.ts +325 -0
- package/dist/server/blocks/Stat.js +107 -0
- package/dist/server/blocks/Stats.d.ts +36 -0
- package/dist/server/blocks/Stats.js +79 -0
- package/dist/server/blocks/Testimonial.d.ts +30 -0
- package/dist/server/blocks/Testimonial.js +68 -0
- package/dist/server/blocks/ValueProp.d.ts +43 -0
- package/dist/server/blocks/ValueProp.js +125 -0
- package/dist/server/blocks/index.d.ts +13 -0
- package/dist/server/blocks/index.js +29 -0
- package/dist/server/data/PrePaginator.d.ts +8 -0
- package/dist/server/data/PrePaginator.js +30 -0
- package/dist/server/data/index.d.ts +1 -0
- package/dist/server/data/index.js +17 -0
- package/dist/server/entities/Client.d.ts +327 -0
- package/dist/server/entities/Client.js +118 -0
- package/dist/server/entities/ClientBadge.d.ts +293 -0
- package/dist/server/entities/ClientBadge.js +37 -0
- package/dist/server/entities/Person.d.ts +314 -0
- package/dist/server/entities/Person.js +98 -0
- package/dist/server/entities/Project.d.ts +329 -0
- package/dist/server/entities/Project.js +112 -0
- package/dist/server/entities/UniqueSellingPoint.d.ts +327 -0
- package/dist/server/entities/UniqueSellingPoint.js +119 -0
- package/dist/server/entities/index.d.ts +6 -0
- package/dist/server/entities/index.js +22 -0
- package/dist/server/entities/previews/MessagePreview.d.ts +299 -0
- package/dist/server/entities/previews/MessagePreview.js +41 -0
- package/dist/server/entities/previews/PagePreview.d.ts +10 -0
- package/dist/server/entities/previews/PagePreview.js +42 -0
- package/dist/server/entities/previews/index.d.ts +2 -0
- package/dist/server/entities/previews/index.js +18 -0
- package/dist/server/fields/Caption.d.ts +13 -0
- package/dist/server/fields/Caption.js +45 -0
- package/dist/server/fields/Description.d.ts +13 -0
- package/dist/server/fields/Description.js +46 -0
- package/dist/server/fields/FreeFormContent.d.ts +17 -0
- package/dist/server/fields/FreeFormContent.js +43 -0
- package/dist/server/fields/Headline.d.ts +13 -0
- package/dist/server/fields/Headline.js +46 -0
- package/dist/server/fields/Icon.d.ts +10 -0
- package/dist/server/fields/Icon.js +39 -0
- package/dist/server/fields/Link.d.ts +16 -0
- package/dist/server/fields/Link.js +61 -0
- package/dist/server/fields/Quote.d.ts +13 -0
- package/dist/server/fields/Quote.js +46 -0
- package/dist/server/fields/RichText.d.ts +296 -0
- package/dist/server/fields/RichText.js +217 -0
- package/dist/server/fields/Title.d.ts +292 -0
- package/dist/server/fields/Title.js +38 -0
- package/dist/server/fields/Visual.d.ts +12 -0
- package/dist/server/fields/Visual.js +66 -0
- package/dist/server/fields/index.d.ts +10 -0
- package/dist/server/fields/index.js +26 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/index.js +25 -0
- package/dist/server/panels/BlockPanel.d.ts +14 -0
- package/dist/server/panels/BlockPanel.js +56 -0
- package/dist/server/panels/MessagePanel.d.ts +31 -0
- package/dist/server/panels/MessagePanel.js +81 -0
- package/dist/server/panels/VisualPanel.d.ts +36 -0
- package/dist/server/panels/VisualPanel.js +143 -0
- package/dist/server/panels/index.d.ts +3 -0
- package/dist/server/panels/index.js +19 -0
- package/dist/server/schema/Anchor.d.ts +7 -0
- package/dist/server/schema/Anchor.js +24 -0
- package/dist/server/schema/AspectRatio.d.ts +9 -0
- package/dist/server/schema/AspectRatio.js +43 -0
- package/dist/server/schema/BlockConfig.d.ts +56 -0
- package/dist/server/schema/BlockConfig.js +192 -0
- package/dist/server/schema/CollectionSchema.d.ts +4 -0
- package/dist/server/schema/CollectionSchema.js +15 -0
- package/dist/server/schema/ItemAlignment.d.ts +12 -0
- package/dist/server/schema/ItemAlignment.js +42 -0
- package/dist/server/schema/ItemPosition.d.ts +6 -0
- package/dist/server/schema/ItemPosition.js +25 -0
- package/dist/server/schema/ItemSize.d.ts +6 -0
- package/dist/server/schema/ItemSize.js +24 -0
- package/dist/server/schema/TextAlignment.d.ts +6 -0
- package/dist/server/schema/TextAlignment.js +22 -0
- package/dist/server/schema/index.d.ts +8 -0
- package/dist/server/schema/index.js +24 -0
- package/dist/server/sections/index.d.ts +1 -0
- package/dist/server/sections/index.js +17 -0
- package/dist/server/sections/renderSection.d.ts +6 -0
- package/dist/server/sections/renderSection.js +19 -0
- package/dist/server/transitions/Slide.d.ts +293 -0
- package/dist/server/transitions/Slide.js +31 -0
- package/dist/server/transitions/index.d.ts +3 -0
- package/dist/server/transitions/index.js +19 -0
- package/dist/styles/app/AppPreview.css +49 -0
- package/dist/styles/app/_index.css +1 -0
- package/dist/styles/base/_index.css +2 -0
- package/dist/styles/base/global.css +9 -0
- package/dist/styles/base/tailwind.css +3 -0
- package/dist/styles/blocks/Block-layout.css +244 -0
- package/dist/styles/blocks/Block-spacing.css +150 -0
- package/dist/styles/blocks/Block-theming.css +14 -0
- package/dist/styles/blocks/Clients.css +10 -0
- package/dist/styles/blocks/Editorial.css +133 -0
- package/dist/styles/blocks/Form.css +13 -0
- package/dist/styles/blocks/MediaLayout.css +215 -0
- package/dist/styles/blocks/Message.css +353 -0
- package/dist/styles/blocks/Outcome.css +83 -0
- package/dist/styles/blocks/Projects.css +18 -0
- package/dist/styles/blocks/Stat.css +45 -0
- package/dist/styles/blocks/Stats.css +38 -0
- package/dist/styles/blocks/Testimonial.css +323 -0
- package/dist/styles/blocks/ValueProp.css +135 -0
- package/dist/styles/blocks/_index.css +14 -0
- package/dist/styles/components/_index.css +3 -0
- package/dist/styles/components/container.css +58 -0
- package/dist/styles/components/divider.css +6 -0
- package/dist/styles/components/embed/VimeoPlayer.css +49 -0
- package/dist/styles/components/embed/YoutubePlayer.css +72 -0
- package/dist/styles/components/embed/_index.css +2 -0
- package/dist/styles/entities/Client.css +5 -0
- package/dist/styles/entities/ClientBadge.css +14 -0
- package/dist/styles/entities/Person.css +76 -0
- package/dist/styles/entities/Project.css +44 -0
- package/dist/styles/entities/UniqueSellingPoint.css +54 -0
- package/dist/styles/entities/_index.css +5 -0
- package/dist/styles/fields/Caption.css +23 -0
- package/dist/styles/fields/Description.css +23 -0
- package/dist/styles/fields/FreeFormContent.css +24 -0
- package/dist/styles/fields/Headline.css +38 -0
- package/dist/styles/fields/Icon.css +20 -0
- package/dist/styles/fields/LazyVideo.css +12 -0
- package/dist/styles/fields/Link.css +16 -0
- package/dist/styles/fields/Quote.css +48 -0
- package/dist/styles/fields/RichText.css +243 -0
- package/dist/styles/fields/Title.css +17 -0
- package/dist/styles/fields/Visual.css +27 -0
- package/dist/styles/fields/_index.css +11 -0
- package/dist/styles/index.css +9 -0
- package/dist/styles/layouts/MasonryLayout.css +24 -0
- package/dist/styles/layouts/_index.css +1 -0
- package/dist/styles/panels/MessagePanel.css +56 -0
- package/dist/styles/panels/VisualPanel.css +58 -0
- package/dist/styles/panels/_index.css +2 -0
- package/dist/styles/utilities/_index.css +7 -0
- package/dist/styles/utilities/ellipsis.css +7 -0
- package/dist/styles/utilities/fade.css +16 -0
- package/dist/styles/utilities/glass.css +8 -0
- package/dist/styles/utilities/interpolate.css +22 -0
- package/dist/styles/utilities/masks.css +18 -0
- package/dist/styles/utilities/stacked.css +24 -0
- package/dist/styles/utilities/text-gradient.css +37 -0
- package/dist/types/HTMLBlockElement.d.ts +6 -0
- package/dist/types/HTMLBlockElement.js +2 -0
- package/dist/types/HTMLElements.d.ts +129 -0
- package/dist/types/HTMLElements.js +2 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +18 -0
- package/package.json +73 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.Loader = Loader;
|
|
8
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
|
+
const funnel_core_1 = require("@nascentdigital/funnel-core");
|
|
10
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
11
|
+
const react_1 = require("react");
|
|
12
|
+
const hooks_1 = require("../hooks");
|
|
13
|
+
// component
|
|
14
|
+
function Loader({ className, state = 'ready', title, action: actionLabel, triggerOffset, manual = false, onLoad = funnel_core_1.Fn.NoOp }) {
|
|
15
|
+
// bind context + hooks
|
|
16
|
+
const { stateClassName, action } = (0, react_1.useMemo)(() => getContext({ state, actionLabel, manual, onLoad }), [state, actionLabel, manual, onLoad]);
|
|
17
|
+
const spinnerId = (0, react_1.useId)();
|
|
18
|
+
const spinnerRef = (0, react_1.useRef)(null);
|
|
19
|
+
const [inView] = (0, hooks_1.useInViewport)({
|
|
20
|
+
targetId: spinnerId,
|
|
21
|
+
targetRef: spinnerRef,
|
|
22
|
+
padding: triggerOffset !== undefined
|
|
23
|
+
? `${triggerOffset !== null && triggerOffset !== void 0 ? triggerOffset : 0}px 0px ${triggerOffset}px 0px`
|
|
24
|
+
: undefined
|
|
25
|
+
});
|
|
26
|
+
const onLoadRef = (0, react_1.useRef)(onLoad);
|
|
27
|
+
onLoadRef.current = onLoad;
|
|
28
|
+
// autoload
|
|
29
|
+
(0, react_1.useEffect)(() => {
|
|
30
|
+
// ignore if not in view OR if not ready OR if manual
|
|
31
|
+
if (manual || state !== 'ready' || !inView) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
// trigger load
|
|
35
|
+
onLoadRef.current();
|
|
36
|
+
}, [inView, state, manual]);
|
|
37
|
+
// render
|
|
38
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(className, 'nd-Loader', stateClassName), children: [(title || action) &&
|
|
39
|
+
(0, jsx_runtime_1.jsxs)("div", { children: [title &&
|
|
40
|
+
(0, jsx_runtime_1.jsx)("span", { children: title }), action] }), (0, jsx_runtime_1.jsx)("span", { id: spinnerId, ref: spinnerRef, className: "nd-Loader-spinner" })] }));
|
|
41
|
+
}
|
|
42
|
+
function getContext({ state, actionLabel, manual, onLoad }) {
|
|
43
|
+
const createAction = ({ actionClassName = '', disabled = false } = {}) => {
|
|
44
|
+
// fail if there's no action label
|
|
45
|
+
if (!actionLabel) {
|
|
46
|
+
console.warn(`[Loader] cannot create "action" button - no action label provided for state: "${state}"`);
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
// render
|
|
50
|
+
return ((0, jsx_runtime_1.jsx)("button", { className: (0, classnames_1.default)('nd-Loader-action', actionClassName), disabled: disabled, onClick: onLoad, children: (0, jsx_runtime_1.jsx)("span", { className: "nd-Loader-actionLabel", children: actionLabel }) }));
|
|
51
|
+
};
|
|
52
|
+
// determine action (if any)
|
|
53
|
+
let stateClassName;
|
|
54
|
+
let action;
|
|
55
|
+
switch (state) {
|
|
56
|
+
case 'ready':
|
|
57
|
+
stateClassName = 'nd-Loader-ready';
|
|
58
|
+
action = manual && createAction();
|
|
59
|
+
break;
|
|
60
|
+
case 'loading':
|
|
61
|
+
stateClassName = 'nd-Loader-loading';
|
|
62
|
+
action = manual && actionLabel && createAction({ disabled: true });
|
|
63
|
+
break;
|
|
64
|
+
case 'error':
|
|
65
|
+
stateClassName = 'nd-Loader-error';
|
|
66
|
+
action = actionLabel && createAction();
|
|
67
|
+
break;
|
|
68
|
+
case 'complete':
|
|
69
|
+
stateClassName = 'nd-Loader-complete';
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
// return context
|
|
73
|
+
return { stateClassName, action };
|
|
74
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Marquee = Marquee;
|
|
18
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
20
|
+
const react_fast_marquee_1 = __importDefault(require("react-fast-marquee"));
|
|
21
|
+
// component
|
|
22
|
+
function Marquee(_a) {
|
|
23
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
24
|
+
// render
|
|
25
|
+
return ((0, jsx_runtime_1.jsx)(react_fast_marquee_1.default, Object.assign({ className: (0, classnames_1.default)('nd-Marquee', className) }, props)));
|
|
26
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Callback, Frame, Rect } from '@nascentdigital/funnel-core';
|
|
2
|
+
import { Variants } from 'framer-motion';
|
|
3
|
+
import { HTMLAttributes } from 'react';
|
|
4
|
+
import { ClickObserver } from './ClickObserver';
|
|
5
|
+
import { UILevel } from './UILevel';
|
|
6
|
+
export declare function Popup({ className, style, anchor, level, placement, anchorOffset, viewportPadding, animation, dismissTrigger, disableBackground, disabled, bubbleCloseEvent, open, onOpened: onOpenedRaw, onClose, onClosed: onClosedRaw, children, ...props }: Popup.Props): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export declare namespace Popup {
|
|
8
|
+
type Props = HTMLAttributes<HTMLDivElement> & {
|
|
9
|
+
anchor?: Rect | Element | string | null | undefined;
|
|
10
|
+
level?: UILevel;
|
|
11
|
+
placement?: Placement;
|
|
12
|
+
anchorOffset?: number;
|
|
13
|
+
viewportPadding?: number;
|
|
14
|
+
animation?: Animation;
|
|
15
|
+
dismissTrigger?: ClickObserver.Trigger | 'none';
|
|
16
|
+
disableBackground?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
bubbleCloseEvent?: boolean;
|
|
19
|
+
open?: boolean;
|
|
20
|
+
onOpened?: Callback.Void;
|
|
21
|
+
onClose?: Callback.Void;
|
|
22
|
+
onClosed?: Callback.Void;
|
|
23
|
+
};
|
|
24
|
+
type Placement = 'top-start' | 'top' | 'top-end' | 'top-match' | 'bottom-start' | 'bottom' | 'bottom-end' | 'bottom-match' | 'left-start' | 'left' | 'left-end' | 'right-start' | 'right' | 'right-end';
|
|
25
|
+
type Animation = 'in' | 'out' | 'in-out';
|
|
26
|
+
type GetFrameArgs = {
|
|
27
|
+
anchorRect: Rect;
|
|
28
|
+
contentElement: HTMLDivElement;
|
|
29
|
+
placement: Popup.Placement;
|
|
30
|
+
anchorOffset: number;
|
|
31
|
+
viewportPadding: number;
|
|
32
|
+
};
|
|
33
|
+
function getFrame({ anchorRect, contentElement, placement, anchorOffset, viewportPadding }: GetFrameArgs): Partial<Frame>;
|
|
34
|
+
}
|
|
35
|
+
export declare const animations: Variants;
|
|
36
|
+
export declare function getAnchorRect(anchor: Rect | Element | string | null | undefined): Rect | null;
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.animations = void 0;
|
|
18
|
+
exports.Popup = Popup;
|
|
19
|
+
exports.getAnchorRect = getAnchorRect;
|
|
20
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
21
|
+
const funnel_core_1 = require("@nascentdigital/funnel-core");
|
|
22
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
23
|
+
const framer_motion_1 = require("framer-motion");
|
|
24
|
+
const react_1 = require("react");
|
|
25
|
+
const react_dom_1 = require("react-dom");
|
|
26
|
+
const react_hotkeys_hook_1 = require("react-hotkeys-hook");
|
|
27
|
+
const hooks_1 = require("../hooks");
|
|
28
|
+
const ClickObserver_1 = require("./ClickObserver");
|
|
29
|
+
// component
|
|
30
|
+
function Popup(_a) {
|
|
31
|
+
var { className, style = {}, anchor, level = 'l1', placement = 'bottom', anchorOffset = 0, viewportPadding = 0, animation = 'in-out', dismissTrigger, disableBackground = false, disabled = false, bubbleCloseEvent = false, open = false, onOpened: onOpenedRaw = funnel_core_1.Fn.NoOp, onClose = funnel_core_1.Fn.NoOp, onClosed: onClosedRaw = funnel_core_1.Fn.NoOp, children } = _a, props = __rest(_a, ["className", "style", "anchor", "level", "placement", "anchorOffset", "viewportPadding", "animation", "dismissTrigger", "disableBackground", "disabled", "bubbleCloseEvent", "open", "onOpened", "onClose", "onClosed", "children"]);
|
|
32
|
+
// bind context
|
|
33
|
+
const [active, setActive] = (0, react_1.useState)(false);
|
|
34
|
+
const openedRef = (0, react_1.useRef)(false);
|
|
35
|
+
const contentRef = (0, react_1.useRef)(null);
|
|
36
|
+
const id = (0, react_1.useId)();
|
|
37
|
+
const anchorRect = getAnchorRect(anchor);
|
|
38
|
+
const onOpenedRef = (0, react_1.useRef)(onOpenedRaw);
|
|
39
|
+
onOpenedRef.current = onOpenedRaw;
|
|
40
|
+
const onClosedRef = (0, react_1.useRef)(onClosedRaw);
|
|
41
|
+
onClosedRef.current = onClosedRaw;
|
|
42
|
+
const closeCallback = (0, react_1.useCallback)(() => {
|
|
43
|
+
if (openedRef.current) {
|
|
44
|
+
onClose();
|
|
45
|
+
}
|
|
46
|
+
}, [onClose]);
|
|
47
|
+
// re-render on window size change
|
|
48
|
+
(0, hooks_1.useViewportSize)();
|
|
49
|
+
// close on escape
|
|
50
|
+
(0, react_hotkeys_hook_1.useHotkeys)('esc', closeCallback);
|
|
51
|
+
// show/hide based on open change
|
|
52
|
+
(0, react_1.useEffect)(() => {
|
|
53
|
+
// raise event on open/close
|
|
54
|
+
let unlock = undefined;
|
|
55
|
+
if (open) {
|
|
56
|
+
// update ref
|
|
57
|
+
openedRef.current = true;
|
|
58
|
+
// activate
|
|
59
|
+
setActive(true);
|
|
60
|
+
// lock keyboard
|
|
61
|
+
unlock = funnel_core_1.Browser.lockFocus(`#${CSS.escape(id)}`);
|
|
62
|
+
}
|
|
63
|
+
// raise event on close (if it was actually opened)
|
|
64
|
+
else if (openedRef.current) {
|
|
65
|
+
// deactivate
|
|
66
|
+
setActive(false);
|
|
67
|
+
// update ref
|
|
68
|
+
openedRef.current = false;
|
|
69
|
+
}
|
|
70
|
+
// on unmount
|
|
71
|
+
return () => {
|
|
72
|
+
// unlock (if locked)
|
|
73
|
+
if (unlock) {
|
|
74
|
+
unlock();
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}, [open, id]);
|
|
78
|
+
// skip for SSR
|
|
79
|
+
if (!funnel_core_1.Browser.available) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
// compute popup rect (if visible + ready)
|
|
83
|
+
const contentElement = contentRef.current;
|
|
84
|
+
const popupFrame = active && !!anchorRect && !!contentElement
|
|
85
|
+
? Popup.getFrame({
|
|
86
|
+
anchorRect,
|
|
87
|
+
contentElement,
|
|
88
|
+
placement,
|
|
89
|
+
anchorOffset,
|
|
90
|
+
viewportPadding
|
|
91
|
+
})
|
|
92
|
+
: {};
|
|
93
|
+
// helpers
|
|
94
|
+
const onClickOutside = (e) => {
|
|
95
|
+
// consume click
|
|
96
|
+
if (!bubbleCloseEvent) {
|
|
97
|
+
e.preventDefault();
|
|
98
|
+
e.stopPropagation();
|
|
99
|
+
}
|
|
100
|
+
// close
|
|
101
|
+
onClose();
|
|
102
|
+
};
|
|
103
|
+
const onAnimationComplete = (definition) => {
|
|
104
|
+
if (definition === 'visible') {
|
|
105
|
+
onOpenedRef.current();
|
|
106
|
+
}
|
|
107
|
+
else if (definition === 'exit') {
|
|
108
|
+
onClosedRef.current();
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
// render
|
|
112
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(framer_motion_1.AnimatePresence, { children: open && !!anchorRect &&
|
|
113
|
+
(0, jsx_runtime_1.jsx)(framer_motion_1.motion.div, { id: id, className: (0, classnames_1.default)('Popup-wrap', {
|
|
114
|
+
'Popup-disableBg': disableBackground,
|
|
115
|
+
'Popup-disabled': disabled,
|
|
116
|
+
'Popup-l1': level === 'l1',
|
|
117
|
+
'Popup-l2': level === 'l2',
|
|
118
|
+
'Popup-l3': level === 'l3'
|
|
119
|
+
}), variants: exports.animations, initial: animation !== 'out' ? 'hidden' : 'visible', animate: "visible", exit: animation !== 'in' ? 'exit' : 'visible', onAnimationComplete: definition => onAnimationComplete(definition), children: (0, jsx_runtime_1.jsx)(ClickObserver_1.ClickObserver, { trigger: dismissTrigger === 'none' ? 'click' : dismissTrigger, disabled: !open || dismissTrigger === 'none', onClickOutside: onClickOutside, children: (0, jsx_runtime_1.jsx)("div", Object.assign({}, props, { ref: contentRef, style: Object.assign(Object.assign({}, style), popupFrame), className: (0, classnames_1.default)(className, 'Popup-root'), children: children })) }) }, id) }), document.body) }));
|
|
120
|
+
}
|
|
121
|
+
// extension
|
|
122
|
+
(function (Popup) {
|
|
123
|
+
// helpers
|
|
124
|
+
function getFrame({ anchorRect, contentElement, placement, anchorOffset, viewportPadding }) {
|
|
125
|
+
// get geometries
|
|
126
|
+
const viewportRect = new funnel_core_1.Rect(viewportPadding, viewportPadding, window.innerWidth - viewportPadding * 2, window.innerHeight - viewportPadding * 2);
|
|
127
|
+
const contentWidth = contentElement.offsetWidth;
|
|
128
|
+
const contentHeight = contentElement.offsetHeight;
|
|
129
|
+
// horizontal layout if left/right
|
|
130
|
+
const popupFrame = {};
|
|
131
|
+
const [primary, secondary] = placement.split('-');
|
|
132
|
+
if (primary === 'left' || primary === 'right') {
|
|
133
|
+
// determine space to left/right
|
|
134
|
+
const spaceLeft = Math.max(0, anchorRect.left - viewportRect.left - anchorOffset);
|
|
135
|
+
const spaceRight = Math.max(0, viewportRect.right - anchorRect.right - anchorOffset);
|
|
136
|
+
// place left if it fits or it fits better than on the right
|
|
137
|
+
if ((primary === 'left' && (spaceLeft >= contentWidth || spaceLeft > spaceRight))
|
|
138
|
+
|| (primary === 'right' && spaceRight < contentWidth && spaceRight < spaceLeft)) {
|
|
139
|
+
popupFrame.right = viewportRect.right - anchorRect.left + anchorOffset;
|
|
140
|
+
}
|
|
141
|
+
// or place right
|
|
142
|
+
else {
|
|
143
|
+
popupFrame.left = anchorRect.right + anchorOffset;
|
|
144
|
+
}
|
|
145
|
+
// top-align on start
|
|
146
|
+
if (secondary === 'start') {
|
|
147
|
+
popupFrame.top = anchorRect.top;
|
|
148
|
+
}
|
|
149
|
+
// bottom-align on end
|
|
150
|
+
else if (secondary === 'end') {
|
|
151
|
+
popupFrame.bottom = viewportRect.bottom - anchorRect.bottom;
|
|
152
|
+
}
|
|
153
|
+
// or center against anchor
|
|
154
|
+
else {
|
|
155
|
+
// set top bounds so it's centered
|
|
156
|
+
popupFrame.top = Math.max(anchorRect.top + (anchorRect.height - contentHeight) / 2, viewportRect.top);
|
|
157
|
+
// offset if the bottom is bleeding over
|
|
158
|
+
if (popupFrame.top + contentHeight > viewportRect.bottom) {
|
|
159
|
+
popupFrame.top -= popupFrame.top + contentHeight - viewportRect.bottom;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
// or standard vertical layout
|
|
164
|
+
else {
|
|
165
|
+
// determine space to top/bottom
|
|
166
|
+
const spaceTop = Math.max(0, anchorRect.top - viewportRect.top - anchorOffset);
|
|
167
|
+
const spaceBottom = Math.max(0, viewportRect.bottom - anchorRect.bottom - anchorOffset);
|
|
168
|
+
// place above if it fits or it fits better than on the right
|
|
169
|
+
if ((primary === 'top' && (spaceTop >= contentHeight || spaceBottom < spaceTop))
|
|
170
|
+
|| (primary === 'bottom' && spaceBottom < contentHeight && spaceBottom < spaceTop)) {
|
|
171
|
+
popupFrame.bottom = viewportRect.bottom - anchorRect.top + anchorOffset;
|
|
172
|
+
}
|
|
173
|
+
// or place below
|
|
174
|
+
else {
|
|
175
|
+
popupFrame.top = anchorRect.bottom + anchorOffset;
|
|
176
|
+
}
|
|
177
|
+
// left-align on start
|
|
178
|
+
if (secondary === 'start') {
|
|
179
|
+
popupFrame.left = anchorRect.left;
|
|
180
|
+
}
|
|
181
|
+
// right-align on end
|
|
182
|
+
else if (secondary === 'end') {
|
|
183
|
+
popupFrame.right = viewportRect.right - anchorRect.right;
|
|
184
|
+
}
|
|
185
|
+
// match width
|
|
186
|
+
else if (secondary === 'match') {
|
|
187
|
+
popupFrame.left = anchorRect.left;
|
|
188
|
+
popupFrame.width = anchorRect.width;
|
|
189
|
+
}
|
|
190
|
+
// or center against anchor
|
|
191
|
+
else {
|
|
192
|
+
// set left bounds so it's centered
|
|
193
|
+
popupFrame.left = Math.max(anchorRect.left + (anchorRect.width - contentWidth) / 2, viewportRect.left);
|
|
194
|
+
// offset if the right is bleeding over
|
|
195
|
+
if (popupFrame.left + contentWidth > viewportRect.right) {
|
|
196
|
+
popupFrame.left -= popupFrame.left + contentWidth - viewportRect.right;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
// return position insets
|
|
201
|
+
return popupFrame;
|
|
202
|
+
}
|
|
203
|
+
Popup.getFrame = getFrame;
|
|
204
|
+
})(Popup || (exports.Popup = Popup = {}));
|
|
205
|
+
// helpers
|
|
206
|
+
exports.animations = {
|
|
207
|
+
hidden: {
|
|
208
|
+
opacity: 0
|
|
209
|
+
},
|
|
210
|
+
visible: {
|
|
211
|
+
opacity: 1,
|
|
212
|
+
transition: {
|
|
213
|
+
ease: 'easeOut',
|
|
214
|
+
duration: 0.5,
|
|
215
|
+
when: 'beforeChildren'
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
exit: {
|
|
219
|
+
opacity: 0,
|
|
220
|
+
transition: {
|
|
221
|
+
ease: 'easeIn',
|
|
222
|
+
duration: 0.15,
|
|
223
|
+
bounce: 0,
|
|
224
|
+
when: 'afterChildren'
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
function getAnchorRect(anchor) {
|
|
229
|
+
// skip if there's no anchor or if we're SSR
|
|
230
|
+
if (!anchor || !funnel_core_1.Browser.available) {
|
|
231
|
+
return null;
|
|
232
|
+
}
|
|
233
|
+
// or skip if we already have a rect
|
|
234
|
+
else if (anchor instanceof funnel_core_1.Rect) {
|
|
235
|
+
return anchor;
|
|
236
|
+
}
|
|
237
|
+
// try to coerce anchor into an element (or fail)
|
|
238
|
+
const anchorElement = typeof anchor === 'string'
|
|
239
|
+
? document.querySelector(anchor)
|
|
240
|
+
: anchor;
|
|
241
|
+
return anchorElement
|
|
242
|
+
? funnel_core_1.Rect.fromInsets(anchorElement.getBoundingClientRect())
|
|
243
|
+
: null;
|
|
244
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
|
+
import { Popup } from './Popup';
|
|
3
|
+
export declare function Tooltip({ delay, scroller, content, children, anchorClassName, popupClassName, onClose, placement, anchorOffset, viewportPadding, disabled }: DelayedPopup.Props): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare namespace DelayedPopup {
|
|
5
|
+
type Props = Pick<Popup.Props, 'anchorOffset' | 'viewportPadding' | 'placement' | 'onClose'> & {
|
|
6
|
+
delay?: number;
|
|
7
|
+
scroller?: string | RefObject<HTMLElement | null>;
|
|
8
|
+
content: ReactNode;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
anchorClassName?: string;
|
|
11
|
+
popupClassName?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
};
|
|
14
|
+
type HoverState = 'inactive' | 'waiting' | 'active';
|
|
15
|
+
type TapState = 'inactive' | 'active';
|
|
16
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Tooltip = Tooltip;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const funnel_core_1 = require("@nascentdigital/funnel-core");
|
|
9
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
10
|
+
const framer_motion_1 = require("framer-motion");
|
|
11
|
+
const react_1 = require("react");
|
|
12
|
+
const react_dom_1 = require("react-dom");
|
|
13
|
+
const rxjs_1 = require("rxjs");
|
|
14
|
+
const hooks_1 = require("../hooks");
|
|
15
|
+
const ClickObserver_1 = require("./ClickObserver");
|
|
16
|
+
const Popup_1 = require("./Popup");
|
|
17
|
+
// component
|
|
18
|
+
function Tooltip({ delay = 200, scroller, content, children, anchorClassName, popupClassName, onClose = funnel_core_1.Fn.NoOp, placement = 'bottom', anchorOffset = 0, viewportPadding = 0, disabled = false }) {
|
|
19
|
+
// bind state + hooks
|
|
20
|
+
const id = (0, react_1.useId)();
|
|
21
|
+
const [hoverState, setHoverState] = (0, react_1.useState)('inactive');
|
|
22
|
+
const [tapState, setTapState] = (0, react_1.useState)('inactive');
|
|
23
|
+
const [anchorRef, anchorElement] = (0, hooks_1.useRefElement)();
|
|
24
|
+
const [contentRef, contentElement] = (0, hooks_1.useRefElement)();
|
|
25
|
+
const scrollerRef = (0, hooks_1.useElementSelector)(scroller);
|
|
26
|
+
const scrollOffsetRef = (0, react_1.useRef)(undefined);
|
|
27
|
+
// only pass scroller ref if a scroller element was provided in props
|
|
28
|
+
const { scrollY } = (0, hooks_1.useElementScrolled)(scroller ? scrollerRef : undefined);
|
|
29
|
+
// set open if either hover state or tap state are active and not disabled
|
|
30
|
+
const open = (0, react_1.useMemo)(() => {
|
|
31
|
+
return (hoverState === 'active' || tapState === 'active') && !disabled;
|
|
32
|
+
}, [hoverState, tapState, disabled]);
|
|
33
|
+
// state for: hover [inactive, waiting, active] (mouse focus), tap [inactive, active] (pointer down)
|
|
34
|
+
// hooks for: window resize, scroll, on-window-click -> dismiss / deactivate anything
|
|
35
|
+
// helpers
|
|
36
|
+
const onOpen = (0, react_1.useCallback)(() => {
|
|
37
|
+
var _a;
|
|
38
|
+
// when tooltip is opened, set initial scroll offset
|
|
39
|
+
scrollOffsetRef.current = (_a = scrollY === null || scrollY === void 0 ? void 0 : scrollY.offset) !== null && _a !== void 0 ? _a : 0;
|
|
40
|
+
}, [scrollOffsetRef, scrollY]);
|
|
41
|
+
// wire on mouse enter
|
|
42
|
+
const onPointerEnter = (0, react_1.useCallback)((e) => {
|
|
43
|
+
// ignore event if it's not a mouse event
|
|
44
|
+
if (e.pointerType !== 'mouse') {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
// set hover state to waiting
|
|
48
|
+
setHoverState('waiting');
|
|
49
|
+
// delay opening popup
|
|
50
|
+
(0, rxjs_1.timer)(delay).subscribe(() => setHoverState(prevState => {
|
|
51
|
+
// if current state is still waiting, set to active and call onOpen
|
|
52
|
+
if (prevState === 'waiting') {
|
|
53
|
+
onOpen();
|
|
54
|
+
return 'active';
|
|
55
|
+
}
|
|
56
|
+
// if prevState is not waiting, set to inactive
|
|
57
|
+
else {
|
|
58
|
+
return 'inactive';
|
|
59
|
+
}
|
|
60
|
+
}));
|
|
61
|
+
}, [onOpen, delay]);
|
|
62
|
+
// wire on mouse leave
|
|
63
|
+
const onPointerLeave = (0, react_1.useCallback)((e) => {
|
|
64
|
+
// ignore event if it's not a mouse event
|
|
65
|
+
if (e.pointerType !== 'mouse') {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
// update hover state
|
|
69
|
+
setHoverState('inactive');
|
|
70
|
+
onClose();
|
|
71
|
+
}, [onClose]);
|
|
72
|
+
// wire tap on mobile
|
|
73
|
+
const onClick = (0, react_1.useCallback)((e) => {
|
|
74
|
+
// ignore mouse click - only hover should be triggered when mouse is present
|
|
75
|
+
if ('pointerType' in e && e.pointerType === 'mouse') {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
// update tap state and call onOpen
|
|
79
|
+
setTapState('active');
|
|
80
|
+
onOpen();
|
|
81
|
+
}, [onOpen]);
|
|
82
|
+
// dismiss popup
|
|
83
|
+
const dismiss = (0, react_1.useCallback)(() => {
|
|
84
|
+
// update hover and tap state to inactive
|
|
85
|
+
setHoverState('inactive');
|
|
86
|
+
setTapState('inactive');
|
|
87
|
+
onClose();
|
|
88
|
+
}, [onClose]);
|
|
89
|
+
// listen for scroll changes
|
|
90
|
+
(0, react_1.useEffect)(() => {
|
|
91
|
+
// if tooltip is open and scroll offset has changed, dismiss tooltip
|
|
92
|
+
const hasScrolled = scrollOffsetRef.current !== undefined && (scrollY === null || scrollY === void 0 ? void 0 : scrollY.offset) !== undefined
|
|
93
|
+
&& scrollOffsetRef.current !== (scrollY === null || scrollY === void 0 ? void 0 : scrollY.offset);
|
|
94
|
+
if (open && hasScrolled) {
|
|
95
|
+
dismiss();
|
|
96
|
+
}
|
|
97
|
+
}, [open, scrollY, dismiss]);
|
|
98
|
+
// bind hover and click listeners
|
|
99
|
+
(0, react_1.useEffect)(() => {
|
|
100
|
+
anchorElement === null || anchorElement === void 0 ? void 0 : anchorElement.addEventListener('pointerenter', onPointerEnter);
|
|
101
|
+
anchorElement === null || anchorElement === void 0 ? void 0 : anchorElement.addEventListener('pointerleave', onPointerLeave);
|
|
102
|
+
anchorElement === null || anchorElement === void 0 ? void 0 : anchorElement.addEventListener('click', onClick);
|
|
103
|
+
// unbind listeners
|
|
104
|
+
return () => {
|
|
105
|
+
anchorElement === null || anchorElement === void 0 ? void 0 : anchorElement.removeEventListener('pointerenter', onPointerEnter);
|
|
106
|
+
anchorElement === null || anchorElement === void 0 ? void 0 : anchorElement.removeEventListener('pointerleave', onPointerLeave);
|
|
107
|
+
anchorElement === null || anchorElement === void 0 ? void 0 : anchorElement.removeEventListener('click', onClick);
|
|
108
|
+
};
|
|
109
|
+
}, [anchorElement, onPointerEnter, onPointerLeave, onClick]);
|
|
110
|
+
const anchorRect = (0, Popup_1.getAnchorRect)(anchorElement);
|
|
111
|
+
const popupFrame = !!anchorRect && !!contentElement
|
|
112
|
+
? Popup_1.Popup.getFrame({
|
|
113
|
+
anchorRect,
|
|
114
|
+
contentElement,
|
|
115
|
+
placement,
|
|
116
|
+
anchorOffset,
|
|
117
|
+
viewportPadding
|
|
118
|
+
}) : {};
|
|
119
|
+
// render
|
|
120
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: anchorClassName, ref: anchorRef, children: children }), funnel_core_1.Browser.available && (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(framer_motion_1.AnimatePresence, { children: open && !!anchorElement &&
|
|
121
|
+
(0, jsx_runtime_1.jsx)(framer_motion_1.motion.div, { id: id, className: "fixed inset-0 z-popup pointer-events-none", initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, transition: { ease: 'circIn', duration: 0.2 }, children: (0, jsx_runtime_1.jsx)(ClickObserver_1.ClickObserver, { disabled: !open, onClickOutside: dismiss, children: (0, jsx_runtime_1.jsx)("div", { ref: contentRef, style: popupFrame, className: (0, classnames_1.default)(popupClassName, 'absolute pointer-events-auto'), children: content }) }) }, id) }), document.body)] }));
|
|
122
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type UILevel = 'l1' | 'l2' | 'l3';
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.BackdropContainer = BackdropContainer;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const funnel_core_1 = require("@nascentdigital/funnel-core");
|
|
9
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
10
|
+
const framer_motion_1 = require("framer-motion");
|
|
11
|
+
const react_1 = require("react");
|
|
12
|
+
const react_dom_1 = require("react-dom");
|
|
13
|
+
const rxjs_1 = require("rxjs");
|
|
14
|
+
const BackdropContext_1 = require("./BackdropContext");
|
|
15
|
+
const BackdropEvent_1 = require("./BackdropEvent");
|
|
16
|
+
// component
|
|
17
|
+
function BackdropContainer({ children }) {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
// bind context
|
|
20
|
+
const [dependantId, setDependantId] = (0, react_1.useState)();
|
|
21
|
+
const dependantsRef = (0, react_1.useRef)([]);
|
|
22
|
+
const dependants = dependantsRef.current;
|
|
23
|
+
const context = (0, react_1.useMemo)(() => ({
|
|
24
|
+
eventBus: new rxjs_1.Subject()
|
|
25
|
+
}), []);
|
|
26
|
+
const { eventBus } = context;
|
|
27
|
+
const backdropOptions = (_b = (_a = dependants.find(ctx => ctx.id === dependantId)) === null || _a === void 0 ? void 0 : _a.options) !== null && _b !== void 0 ? _b : {};
|
|
28
|
+
// listen to events from dependants
|
|
29
|
+
(0, react_1.useEffect)(() => {
|
|
30
|
+
// subscribe to events, proxying changes to backdrop
|
|
31
|
+
const subscription = eventBus
|
|
32
|
+
.pipe((0, rxjs_1.filter)(e => BackdropEvent_1.BackdropEvent.Capture.guard(e) || BackdropEvent_1.BackdropEvent.Release.guard(e)))
|
|
33
|
+
.subscribe(event => {
|
|
34
|
+
// handle capture
|
|
35
|
+
const dependants = dependantsRef.current;
|
|
36
|
+
const { id } = event;
|
|
37
|
+
if (BackdropEvent_1.BackdropEvent.Capture.guard(event)) {
|
|
38
|
+
// exit if dependant already exists in list
|
|
39
|
+
if (dependants.some(ctx => ctx.id === id)) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
// add new dependant
|
|
43
|
+
dependants.push({
|
|
44
|
+
id,
|
|
45
|
+
options: event.options
|
|
46
|
+
});
|
|
47
|
+
// set dependant to first in active list
|
|
48
|
+
setDependantId(id);
|
|
49
|
+
// raise event
|
|
50
|
+
eventBus.next(BackdropEvent_1.BackdropEvent.Show.create(dependants.map(ctx => ctx.id), id, event.options));
|
|
51
|
+
}
|
|
52
|
+
// handle release
|
|
53
|
+
else if (BackdropEvent_1.BackdropEvent.Release.guard(event)) {
|
|
54
|
+
// determine index (or exit if not found)
|
|
55
|
+
const dependantIndex = dependants.findIndex(ctx => ctx.id === id);
|
|
56
|
+
if (dependantIndex < 0) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
// remove dependant from list
|
|
60
|
+
dependants.splice(dependantIndex, 1);
|
|
61
|
+
// reactivate previous dependant (if any)
|
|
62
|
+
const dependantCount = dependants.length;
|
|
63
|
+
const nextDependant = dependantCount > 0
|
|
64
|
+
? dependants[dependantCount - 1]
|
|
65
|
+
: undefined;
|
|
66
|
+
if (nextDependant) {
|
|
67
|
+
eventBus.next(BackdropEvent_1.BackdropEvent.FocusChange.create(nextDependant.id));
|
|
68
|
+
setDependantId(nextDependant.id);
|
|
69
|
+
}
|
|
70
|
+
// or unlock ui
|
|
71
|
+
else {
|
|
72
|
+
eventBus.next(BackdropEvent_1.BackdropEvent.Hide.create());
|
|
73
|
+
setDependantId(undefined);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
// unmount
|
|
78
|
+
return () => subscription.unsubscribe();
|
|
79
|
+
}, [eventBus]);
|
|
80
|
+
// handle lock/unlock of ui
|
|
81
|
+
(0, react_1.useEffect)(() => {
|
|
82
|
+
// handle ui lock if we have a dependant
|
|
83
|
+
let unlock = undefined;
|
|
84
|
+
if (dependantId) {
|
|
85
|
+
unlock = funnel_core_1.Browser.lockFocus(`#${CSS.escape(dependantId)}`);
|
|
86
|
+
}
|
|
87
|
+
// unlock previous (if any)
|
|
88
|
+
return () => unlock && unlock();
|
|
89
|
+
}, [dependantId]);
|
|
90
|
+
// handle click
|
|
91
|
+
const onClick = () => {
|
|
92
|
+
// raise click event if we're open
|
|
93
|
+
if (dependantId) {
|
|
94
|
+
eventBus.next(BackdropEvent_1.BackdropEvent.Click.create());
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
// render
|
|
98
|
+
const { hideNav = false, level = 'l1' } = backdropOptions;
|
|
99
|
+
return ((0, jsx_runtime_1.jsxs)(BackdropContext_1.BackdropContext.Provider, { value: context, children: [children, funnel_core_1.Browser.available && (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(framer_motion_1.AnimatePresence, { mode: "wait", children: dependantId &&
|
|
100
|
+
(0, jsx_runtime_1.jsx)(framer_motion_1.motion.div, { className: (0, classnames_1.default)('Backdrop-root', {
|
|
101
|
+
'Backdrop-l1': !hideNav && level === 'l1',
|
|
102
|
+
'Backdrop-l2': hideNav || level === 'l2',
|
|
103
|
+
'Backdrop-l3': !hideNav && level === 'l3'
|
|
104
|
+
}), variants: animationVariants, initial: "invisible", animate: "visible", exit: "invisible", onClick: onClick }, "backdrop") }), document.body)] }));
|
|
105
|
+
}
|
|
106
|
+
// animations
|
|
107
|
+
const animationVariants = {
|
|
108
|
+
invisible: {
|
|
109
|
+
opacity: 0
|
|
110
|
+
},
|
|
111
|
+
visible: {
|
|
112
|
+
opacity: 1
|
|
113
|
+
}
|
|
114
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import { BackdropEvent } from './BackdropEvent';
|
|
3
|
+
export declare const BackdropContext: import("react").Context<BackdropContext.Data>;
|
|
4
|
+
export declare namespace BackdropContext {
|
|
5
|
+
type Data = {
|
|
6
|
+
eventBus: Subject<BackdropEvent>;
|
|
7
|
+
};
|
|
8
|
+
}
|