@primer/react-brand 0.75.0-rc.a3f7dbd6 → 0.75.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/docs/components/SubdomainNavBar/index.md +215 -86
- package/docs/index.md +2 -2
- package/esm/Accordion/Accordion.d.ts +2 -2
- package/esm/Accordion/Accordion.d.ts.map +1 -1
- package/esm/Accordion/Accordion.js +2 -2
- package/esm/Accordion/Accordion.js.map +1 -1
- package/esm/Accordion/Accordion.module.js +6 -5
- package/esm/ActionMenu/ActionMenu.d.ts +2 -2
- package/esm/ActionMenu/ActionMenu.js +3 -2
- package/esm/ActionMenu/ActionMenu.js.map +1 -1
- package/esm/ActionMenu/ActionMenu.module.js +7 -6
- package/esm/AnchorNav/AnchorNav.d.ts +4 -4
- package/esm/AnchorNav/AnchorNav.d.ts.map +1 -1
- package/esm/AnchorNav/AnchorNav.js +9 -4
- package/esm/AnchorNav/AnchorNav.js.map +1 -1
- package/esm/AnchorNav/AnchorNav.module.js +5 -4
- package/esm/AnchorNav/useExpandedMenu.js.map +1 -1
- package/esm/Avatar/Avatar.js +1 -1
- package/esm/Avatar/Avatar.js.map +1 -1
- package/esm/Avatar/Avatar.module.js +5 -4
- package/esm/Bento/Bento.d.ts +4 -4
- package/esm/Bento/Bento.js +1 -1
- package/esm/Bento/Bento.js.map +1 -1
- package/esm/Bento/Bento.module.js +7 -6
- package/esm/Box/Box.d.ts +1 -1
- package/esm/Box/Box.d.ts.map +1 -1
- package/esm/Box/Box.js +1 -1
- package/esm/Box/Box.js.map +1 -1
- package/esm/Breadcrumbs/Breadcrumbs.js +1 -1
- package/esm/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/esm/Breadcrumbs/Breadcrumbs.module.js +7 -6
- package/esm/BreakoutBanner/BreakoutBanner.js +1 -1
- package/esm/BreakoutBanner/BreakoutBanner.js.map +1 -1
- package/esm/BreakoutBanner/BreakoutBanner.module.js +5 -4
- package/esm/Button/Button.js +1 -1
- package/esm/Button/Button.js.map +1 -1
- package/esm/Button/Button.module.js +5 -4
- package/esm/ButtonGroup/ButtonGroup.js +1 -1
- package/esm/ButtonGroup/ButtonGroup.js.map +1 -1
- package/esm/ButtonGroup/ButtonGroup.module.js +3 -2
- package/esm/CTABanner/CTABanner.d.ts +1 -1
- package/esm/CTABanner/CTABanner.js +2 -2
- package/esm/CTABanner/CTABanner.js.map +1 -1
- package/esm/CTABanner/CTABanner.module.js +4 -3
- package/esm/CTAForm/CTAForm.js +1 -1
- package/esm/CTAForm/CTAForm.js.map +1 -1
- package/esm/CTAForm/CTAForm.module.js +4 -3
- package/esm/Card/Card.d.ts +2 -2
- package/esm/Card/Card.d.ts.map +1 -1
- package/esm/Card/Card.js +3 -3
- package/esm/Card/Card.js.map +1 -1
- package/esm/Card/Card.module.js +18 -17
- package/esm/ComparisonTable/ComparisonTable.d.ts +3 -3
- package/esm/ComparisonTable/ComparisonTable.js +1 -1
- package/esm/ComparisonTable/ComparisonTable.js.map +1 -1
- package/esm/ComparisonTable/ComparisonTable.module.js +4 -3
- package/esm/ExpandableArrow/ExpandableArrow.d.ts +2 -1
- package/esm/ExpandableArrow/ExpandableArrow.d.ts.map +1 -1
- package/esm/ExpandableArrow/ExpandableArrow.js +1 -1
- package/esm/ExpandableArrow/ExpandableArrow.js.map +1 -1
- package/esm/ExpandableArrow/ExpandableArrow.module.js +4 -3
- package/esm/EyebrowBanner/EyebrowBanner.js +2 -2
- package/esm/EyebrowBanner/EyebrowBanner.js.map +1 -1
- package/esm/EyebrowBanner/EyebrowBanner.module.js +12 -11
- package/esm/EyebrowText/EyebrowText.js +1 -1
- package/esm/EyebrowText/EyebrowText.js.map +1 -1
- package/esm/EyebrowText/EyebrowText.module.js +4 -3
- package/esm/FAQ/FAQ.d.ts +2 -2
- package/esm/FAQ/FAQ.d.ts.map +1 -1
- package/esm/FAQ/FAQ.js +1 -1
- package/esm/FAQ/FAQ.js.map +1 -1
- package/esm/FAQ/FAQ.module.js +7 -6
- package/esm/FAQ/FAQGroup.d.ts +2 -2
- package/esm/FAQ/FAQGroup.d.ts.map +1 -1
- package/esm/FAQ/FAQGroup.js +7 -3
- package/esm/FAQ/FAQGroup.js.map +1 -1
- package/esm/FAQ/FAQGroup.module.js +8 -7
- package/esm/Footnotes/Footnotes.d.ts +2 -2
- package/esm/Footnotes/Footnotes.d.ts.map +1 -1
- package/esm/Footnotes/Footnotes.js +2 -2
- package/esm/Footnotes/Footnotes.js.map +1 -1
- package/esm/Footnotes/Footnotes.module.js +7 -6
- package/esm/FrostedGlassVFX/FrostedGlassVFX.d.ts +1 -1
- package/esm/FrostedGlassVFX/FrostedGlassVFX.d.ts.map +1 -1
- package/esm/FrostedGlassVFX/FrostedGlassVFX.js +1 -1
- package/esm/FrostedGlassVFX/FrostedGlassVFX.js.map +1 -1
- package/esm/FrostedGlassVFX/FrostedGlassVFX.module.js +4 -3
- package/esm/Grid/Grid.d.ts +2 -2
- package/esm/Grid/Grid.js +2 -2
- package/esm/Grid/Grid.js.map +1 -1
- package/esm/Grid/Grid.module.js +5 -4
- package/esm/Heading/Heading.js +1 -1
- package/esm/Heading/Heading.js.map +1 -1
- package/esm/Heading/Heading.module.js +4 -3
- package/esm/Hero/Hero.js +1 -1
- package/esm/Hero/Hero.js.map +1 -1
- package/esm/Hero/Hero.module.js +4 -3
- package/esm/Hero/HeroContext.js.map +1 -1
- package/esm/Hero/sub-components/HeroButtonGroup.js +1 -1
- package/esm/Hero/sub-components/HeroButtonGroup.js.map +1 -1
- package/esm/Hero/sub-components/HeroDescription.js +1 -1
- package/esm/Hero/sub-components/HeroDescription.js.map +1 -1
- package/esm/Hero/sub-components/HeroEyebrow.js +1 -1
- package/esm/Hero/sub-components/HeroEyebrow.js.map +1 -1
- package/esm/Hero/sub-components/HeroHeading.js +1 -1
- package/esm/Hero/sub-components/HeroHeading.js.map +1 -1
- package/esm/Hero/sub-components/HeroImage.js +1 -1
- package/esm/Hero/sub-components/HeroImage.js.map +1 -1
- package/esm/Hero/sub-components/HeroLabel.js +1 -1
- package/esm/Hero/sub-components/HeroLabel.js.map +1 -1
- package/esm/Hero/sub-components/HeroPrimaryAction.js.map +1 -1
- package/esm/Hero/sub-components/HeroSecondaryAction.js.map +1 -1
- package/esm/Hero/sub-components/HeroVideo.js +2 -2
- package/esm/Hero/sub-components/HeroVideo.js.map +1 -1
- package/esm/IDE/IDE.d.ts +1 -1
- package/esm/IDE/IDE.js +3 -2
- package/esm/IDE/IDE.js.map +1 -1
- package/esm/IDE/IDE.module.js +8 -7
- package/esm/Icon/Icon.d.ts +2 -2
- package/esm/Icon/Icon.d.ts.map +1 -1
- package/esm/Icon/Icon.js +2 -2
- package/esm/Icon/Icon.js.map +1 -1
- package/esm/Icon/Icon.module.js +4 -3
- package/esm/Image/Image.d.ts +1 -1
- package/esm/Image/Image.d.ts.map +1 -1
- package/esm/Image/Image.js +1 -1
- package/esm/Image/Image.js.map +1 -1
- package/esm/Image/Image.module.js +5 -4
- package/esm/InlineCode/InlineCode.js +1 -1
- package/esm/InlineCode/InlineCode.js.map +1 -1
- package/esm/InlineCode/InlineCode.module.js +5 -4
- package/esm/InlineLink/InlineLink.js +2 -2
- package/esm/InlineLink/InlineLink.js.map +1 -1
- package/esm/InlineLink/InlineLink.module.js +3 -2
- package/esm/Label/Label.js +1 -1
- package/esm/Label/Label.js.map +1 -1
- package/esm/Label/Label.module.js +6 -5
- package/esm/Link/Link.d.ts +1 -1
- package/esm/Link/Link.d.ts.map +1 -1
- package/esm/Link/Link.js +2 -2
- package/esm/Link/Link.js.map +1 -1
- package/esm/Link/Link.module.js +4 -3
- package/esm/LogoSuite/LogoSuite.d.ts +1 -1
- package/esm/LogoSuite/LogoSuite.js +4 -3
- package/esm/LogoSuite/LogoSuite.js.map +1 -1
- package/esm/LogoSuite/LogoSuite.module.js +11 -10
- package/esm/MediaPlaylist/MediaPlaylist.d.ts +4 -4
- package/esm/MediaPlaylist/MediaPlaylist.d.ts.map +1 -1
- package/esm/MediaPlaylist/MediaPlaylist.js +1 -1
- package/esm/MediaPlaylist/MediaPlaylist.js.map +1 -1
- package/esm/MediaPlaylist/MediaPlaylist.module.js +25 -24
- package/esm/MediaPlaylist/useMediaPlaylist.js.map +1 -1
- package/esm/MinimalFooter/MinimalFooter.d.ts +3 -3
- package/esm/MinimalFooter/MinimalFooter.d.ts.map +1 -1
- package/esm/MinimalFooter/MinimalFooter.js +4 -3
- package/esm/MinimalFooter/MinimalFooter.js.map +1 -1
- package/esm/MinimalFooter/MinimalFooter.module.js +15 -14
- package/esm/MinimalVideoPlayer/MinimalVideoPlayer.js +2 -2
- package/esm/MinimalVideoPlayer/MinimalVideoPlayer.js.map +1 -1
- package/esm/MinimalVideoPlayer/MinimalVideoPlayer.module.js +6 -5
- package/esm/MinimalVideoPlayer/useMinimalVideoPlayback.js.map +1 -1
- package/esm/NavList/NavList.js +2 -2
- package/esm/NavList/NavList.js.map +1 -1
- package/esm/NavList/NavList.module.js +18 -17
- package/esm/Pagination/Pagination.d.ts +1 -1
- package/esm/Pagination/Pagination.d.ts.map +1 -1
- package/esm/Pagination/Pagination.js +1 -1
- package/esm/Pagination/Pagination.js.map +1 -1
- package/esm/Pagination/Pagination.module.js +11 -10
- package/esm/Pagination/model.js.map +1 -1
- package/esm/Pillar/Pillar.d.ts +2 -2
- package/esm/Pillar/Pillar.d.ts.map +1 -1
- package/esm/Pillar/Pillar.js +1 -1
- package/esm/Pillar/Pillar.js.map +1 -1
- package/esm/Pillar/Pillar.module.js +9 -8
- package/esm/PricingOptions/PricingOptions.d.ts +1 -1
- package/esm/PricingOptions/PricingOptions.js +5 -3
- package/esm/PricingOptions/PricingOptions.js.map +1 -1
- package/esm/PricingOptions/PricingOptions.module.js +13 -12
- package/esm/Prose/Prose.js +1 -1
- package/esm/Prose/Prose.js.map +1 -1
- package/esm/Prose/Prose.module.js +4 -3
- package/esm/Section/Section.js +1 -1
- package/esm/Section/Section.js.map +1 -1
- package/esm/Section/Section.module.js +5 -4
- package/esm/SectionIntro/SectionIntro.js +1 -1
- package/esm/SectionIntro/SectionIntro.js.map +1 -1
- package/esm/SectionIntro/SectionIntro.module.js +4 -3
- package/esm/SectionIntroStacked/SectionIntroStacked.d.ts +3 -3
- package/esm/SectionIntroStacked/SectionIntroStacked.js +1 -1
- package/esm/SectionIntroStacked/SectionIntroStacked.js.map +1 -1
- package/esm/SectionIntroStacked/SectionIntroStacked.module.js +6 -5
- package/esm/Stack/Stack.js +1 -1
- package/esm/Stack/Stack.js.map +1 -1
- package/esm/Stack/Stack.module.js +4 -3
- package/esm/Statistic/Statistic.js +1 -1
- package/esm/Statistic/Statistic.js.map +1 -1
- package/esm/Statistic/Statistic.module.js +6 -5
- package/esm/SubNav/SubNav.d.ts +4 -4
- package/esm/SubNav/SubNav.d.ts.map +1 -1
- package/esm/SubNav/SubNav.js +6 -4
- package/esm/SubNav/SubNav.js.map +1 -1
- package/esm/SubNav/SubNav.module.js +9 -8
- package/esm/SubNav/useContainsFocus.js.map +1 -1
- package/esm/SubdomainNavBar/NavigationVisbilityObserver.d.ts +3 -1
- package/esm/SubdomainNavBar/NavigationVisbilityObserver.d.ts.map +1 -1
- package/esm/SubdomainNavBar/NavigationVisbilityObserver.js +117 -64
- package/esm/SubdomainNavBar/NavigationVisbilityObserver.js.map +1 -1
- package/esm/SubdomainNavBar/SubdomainNavBar.d.ts +157 -20
- package/esm/SubdomainNavBar/SubdomainNavBar.d.ts.map +1 -1
- package/esm/SubdomainNavBar/SubdomainNavBar.js +479 -299
- package/esm/SubdomainNavBar/SubdomainNavBar.js.map +1 -1
- package/esm/SubdomainNavBar/SubdomainNavBar.module-WIrpYyjV.css +1 -0
- package/esm/SubdomainNavBar/SubdomainNavBar.module.js +36 -11
- package/esm/SubdomainNavBar/SubdomainNavBar.module.js.map +1 -1
- package/esm/SubdomainNavBar/SubdomainNavBarLinkContext.d.ts +9 -0
- package/esm/SubdomainNavBar/SubdomainNavBarLinkContext.d.ts.map +1 -0
- package/esm/SubdomainNavBar/SubdomainNavBarLinkContext.js +10 -0
- package/esm/SubdomainNavBar/SubdomainNavBarLinkContext.js.map +1 -0
- package/esm/SubdomainNavBar/useSearchKeyboardShortcut.d.ts +8 -0
- package/esm/SubdomainNavBar/useSearchKeyboardShortcut.d.ts.map +1 -0
- package/esm/SubdomainNavBar/useSearchKeyboardShortcut.js +52 -0
- package/esm/SubdomainNavBar/useSearchKeyboardShortcut.js.map +1 -0
- package/esm/SubdomainNavBar/useSearchResults.d.ts +24 -0
- package/esm/SubdomainNavBar/useSearchResults.d.ts.map +1 -0
- package/esm/SubdomainNavBar/useSearchResults.js +57 -0
- package/esm/SubdomainNavBar/useSearchResults.js.map +1 -0
- package/esm/SubdomainNavBar/useVisibilityObserver.d.ts +1 -1
- package/esm/SubdomainNavBar/useVisibilityObserver.d.ts.map +1 -1
- package/esm/SubdomainNavBar/useVisibilityObserver.js +60 -23
- package/esm/SubdomainNavBar/useVisibilityObserver.js.map +1 -1
- package/esm/Tabs/Tabs.js +3 -2
- package/esm/Tabs/Tabs.js.map +1 -1
- package/esm/Tabs/Tabs.module.js +12 -11
- package/esm/Testimonial/Testimonial.d.ts +1 -1
- package/esm/Testimonial/Testimonial.d.ts.map +1 -1
- package/esm/Testimonial/Testimonial.js +1 -1
- package/esm/Testimonial/Testimonial.js.map +1 -1
- package/esm/Testimonial/Testimonial.module.js +8 -7
- package/esm/Text/Text.d.ts +1 -1
- package/esm/Text/Text.d.ts.map +1 -1
- package/esm/Text/Text.js +1 -1
- package/esm/Text/Text.js.map +1 -1
- package/esm/Text/Text.module.js +4 -3
- package/esm/TextCursorAnimation/TextCursorAnimation.d.ts +1 -1
- package/esm/TextCursorAnimation/TextCursorAnimation.d.ts.map +1 -1
- package/esm/TextCursorAnimation/TextCursorAnimation.js +1 -1
- package/esm/TextCursorAnimation/TextCursorAnimation.js.map +1 -1
- package/esm/TextCursorAnimation/TextCursorAnimation.module.js +10 -9
- package/esm/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/esm/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/esm/ThemeProvider/ThemeProvider.js +4 -4
- package/esm/ThemeProvider/ThemeProvider.js.map +1 -1
- package/esm/ThemeProvider/useTheme.js.map +1 -1
- package/esm/Tiles/Tiles.js +2 -2
- package/esm/Tiles/Tiles.js.map +1 -1
- package/esm/Tiles/Tiles.module.js +4 -3
- package/esm/Timeline/Timeline.d.ts +3 -3
- package/esm/Timeline/Timeline.d.ts.map +1 -1
- package/esm/Timeline/Timeline.js +2 -2
- package/esm/Timeline/Timeline.js.map +1 -1
- package/esm/Timeline/Timeline.module.js +5 -4
- package/esm/Token/Token.js +1 -1
- package/esm/Token/Token.js.map +1 -1
- package/esm/Token/Token.module.js +6 -5
- package/esm/Tooltip/Tooltip.js +2 -2
- package/esm/Tooltip/Tooltip.js.map +1 -1
- package/esm/Tooltip/Tooltip.module.js +4 -3
- package/esm/VideoPlayer/VideoPlayer.d.ts +2 -2
- package/esm/VideoPlayer/VideoPlayer.js +2 -2
- package/esm/VideoPlayer/VideoPlayer.js.map +1 -1
- package/esm/VideoPlayer/VideoPlayer.module.js +29 -28
- package/esm/VideoPlayer/components/CCButton/CCButton.d.ts +2 -2
- package/esm/VideoPlayer/components/CCButton/CCButton.d.ts.map +1 -1
- package/esm/VideoPlayer/components/CCButton/CCButton.js +1 -1
- package/esm/VideoPlayer/components/CCButton/CCButton.js.map +1 -1
- package/esm/VideoPlayer/components/Captions/Captions.d.ts +2 -2
- package/esm/VideoPlayer/components/Captions/Captions.d.ts.map +1 -1
- package/esm/VideoPlayer/components/Captions/Captions.js +1 -1
- package/esm/VideoPlayer/components/Captions/Captions.js.map +1 -1
- package/esm/VideoPlayer/components/Captions/Captions.module.js +5 -4
- package/esm/VideoPlayer/components/ControlsBar/ControlsBar.d.ts +2 -2
- package/esm/VideoPlayer/components/ControlsBar/ControlsBar.d.ts.map +1 -1
- package/esm/VideoPlayer/components/ControlsBar/ControlsBar.js +1 -1
- package/esm/VideoPlayer/components/ControlsBar/ControlsBar.js.map +1 -1
- package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.d.ts +2 -2
- package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.d.ts.map +1 -1
- package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.js +2 -1
- package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.js.map +1 -1
- package/esm/VideoPlayer/components/IconControl/IconControl.d.ts +2 -2
- package/esm/VideoPlayer/components/IconControl/IconControl.d.ts.map +1 -1
- package/esm/VideoPlayer/components/IconControl/IconControl.js +1 -1
- package/esm/VideoPlayer/components/IconControl/IconControl.js.map +1 -1
- package/esm/VideoPlayer/components/MuteButton/MuteButton.d.ts +2 -2
- package/esm/VideoPlayer/components/MuteButton/MuteButton.d.ts.map +1 -1
- package/esm/VideoPlayer/components/MuteButton/MuteButton.js +2 -1
- package/esm/VideoPlayer/components/MuteButton/MuteButton.js.map +1 -1
- package/esm/VideoPlayer/components/PauseIcon/PauseIcon.d.ts +2 -2
- package/esm/VideoPlayer/components/PauseIcon/PauseIcon.d.ts.map +1 -1
- package/esm/VideoPlayer/components/PauseIcon/PauseIcon.js.map +1 -1
- package/esm/VideoPlayer/components/PlayIcon/PlayIcon.d.ts +2 -2
- package/esm/VideoPlayer/components/PlayIcon/PlayIcon.d.ts.map +1 -1
- package/esm/VideoPlayer/components/PlayIcon/PlayIcon.js.map +1 -1
- package/esm/VideoPlayer/components/PlayPauseButton/PlayPauseButton.d.ts +2 -2
- package/esm/VideoPlayer/components/PlayPauseButton/PlayPauseButton.d.ts.map +1 -1
- package/esm/VideoPlayer/components/PlayPauseButton/PlayPauseButton.js.map +1 -1
- package/esm/VideoPlayer/components/Range/Range.d.ts +1 -1
- package/esm/VideoPlayer/components/Range/Range.d.ts.map +1 -1
- package/esm/VideoPlayer/components/Range/Range.js +1 -1
- package/esm/VideoPlayer/components/Range/Range.js.map +1 -1
- package/esm/VideoPlayer/components/SeekControl/SeekControl.d.ts +2 -2
- package/esm/VideoPlayer/components/SeekControl/SeekControl.d.ts.map +1 -1
- package/esm/VideoPlayer/components/SeekControl/SeekControl.js +1 -1
- package/esm/VideoPlayer/components/SeekControl/SeekControl.js.map +1 -1
- package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.d.ts +2 -2
- package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.d.ts.map +1 -1
- package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.js +3 -2
- package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.js.map +1 -1
- package/esm/VideoPlayer/components/VolumeControl/VolumeControl.d.ts +2 -1
- package/esm/VideoPlayer/components/VolumeControl/VolumeControl.d.ts.map +1 -1
- package/esm/VideoPlayer/components/VolumeControl/VolumeControl.js.map +1 -1
- package/esm/VideoPlayer/components/VolumeControl/VolumeControl.module.js +3 -2
- package/esm/VideoPlayer/hooks/useIsElementFullScreen.js.map +1 -1
- package/esm/VideoPlayer/hooks/useVideo.js.map +1 -1
- package/esm/VideoPlayer/hooks/useVideoResizeObserver.js.map +1 -1
- package/esm/animation/Animate/Animate.d.ts +1 -1
- package/esm/animation/Animate/Animate.d.ts.map +1 -1
- package/esm/animation/Animate/Animate.js +1 -1
- package/esm/animation/Animate/Animate.js.map +1 -1
- package/esm/animation/Animation.module.js +4 -3
- package/esm/animation/AnimationProvider/AnimationProvider.d.ts +1 -1
- package/esm/animation/AnimationProvider/AnimationProvider.d.ts.map +1 -1
- package/esm/animation/AnimationProvider/AnimationProvider.js.map +1 -1
- package/esm/animation/TextRevealAnimation/TextRevealAnimation.js +1 -1
- package/esm/animation/TextRevealAnimation/TextRevealAnimation.js.map +1 -1
- package/esm/animation/TextRevealAnimation/TextRevealAnimation.module.js +5 -4
- package/esm/animation/TextRevealAnimation/useTextRevealAnimationLines.js.map +1 -1
- package/esm/animation/useAnimation.js.map +1 -1
- package/esm/component-helpers/shared.module.js +3 -2
- package/esm/component-helpers.d.ts +2 -2
- package/esm/component-helpers.d.ts.map +1 -1
- package/esm/constants.js.map +1 -1
- package/esm/css/stylesheets.js +1 -1
- package/esm/findElementInChildren.js.map +1 -1
- package/esm/forms/Checkbox/Checkbox.js +2 -2
- package/esm/forms/Checkbox/Checkbox.js.map +1 -1
- package/esm/forms/Checkbox/Checkbox.module.js +4 -3
- package/esm/forms/ControlGroup/ControlGroup.js +3 -2
- package/esm/forms/ControlGroup/ControlGroup.js.map +1 -1
- package/esm/forms/ControlGroup/ControlGroup.module.js +7 -6
- package/esm/forms/FormControl/FormControl.d.ts +5 -5
- package/esm/forms/FormControl/FormControl.d.ts.map +1 -1
- package/esm/forms/FormControl/FormControl.js +4 -3
- package/esm/forms/FormControl/FormControl.js.map +1 -1
- package/esm/forms/FormControl/FormControl.module.js +5 -4
- package/esm/forms/Radio/Radio.js +1 -1
- package/esm/forms/Radio/Radio.js.map +1 -1
- package/esm/forms/Radio/Radio.module.js +4 -3
- package/esm/forms/Select/Select.d.ts +2 -2
- package/esm/forms/Select/Select.js +1 -1
- package/esm/forms/Select/Select.js.map +1 -1
- package/esm/forms/Select/Select.module.js +4 -3
- package/esm/forms/TextInput/TextInput.js +1 -1
- package/esm/forms/TextInput/TextInput.js.map +1 -1
- package/esm/forms/TextInput/TextInput.module.js +5 -4
- package/esm/forms/Textarea/Textarea.js +1 -1
- package/esm/forms/Textarea/Textarea.js.map +1 -1
- package/esm/forms/Textarea/Textarea.module.js +4 -3
- package/esm/hooks/useAnchoredPosition.js +7 -4
- package/esm/hooks/useAnchoredPosition.js.map +1 -1
- package/esm/hooks/useCursorAnimation.js +4 -2
- package/esm/hooks/useCursorAnimation.js.map +1 -1
- package/esm/hooks/useFocusTrap.js.map +1 -1
- package/esm/hooks/useId.js.map +1 -1
- package/esm/hooks/useKeyboardEscape.js.map +1 -1
- package/esm/hooks/useOnClickOutside.js.map +1 -1
- package/esm/hooks/useReducedMotion.js +1 -1
- package/esm/hooks/useReducedMotion.js.map +1 -1
- package/esm/hooks/useRef.js.map +1 -1
- package/esm/hooks/useResizeObserver.js.map +1 -1
- package/esm/hooks/useTabs.js +1 -1
- package/esm/hooks/useTabs.js.map +1 -1
- package/esm/hooks/useWindowSize.js +7 -7
- package/esm/hooks/useWindowSize.js.map +1 -1
- package/esm/list/ListItem/ListItem.js +4 -2
- package/esm/list/ListItem/ListItem.js.map +1 -1
- package/esm/list/ListItem/ListItem.module.js +5 -4
- package/esm/list/OrderedList/OrderedList.d.ts +2 -2
- package/esm/list/OrderedList/OrderedList.d.ts.map +1 -1
- package/esm/list/OrderedList/OrderedList.js +1 -1
- package/esm/list/OrderedList/OrderedList.js.map +1 -1
- package/esm/list/OrderedList/OrderedList.module.js +3 -2
- package/esm/list/UnorderedList/UnorderedList.d.ts +2 -2
- package/esm/list/UnorderedList/UnorderedList.d.ts.map +1 -1
- package/esm/list/UnorderedList/UnorderedList.js +1 -1
- package/esm/list/UnorderedList/UnorderedList.js.map +1 -1
- package/esm/list/list-shared.module.js +3 -2
- package/esm/list/listContext.js.map +1 -1
- package/esm/node_modules/@primer/octicons-react/dist/icons/AlertFillIcon.js +28 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/AlertFillIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/ArrowUpIcon.js +20 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/ArrowUpIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/ArrowUpRightIcon.js +20 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/ArrowUpRightIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/CheckCircleFillIcon.js +28 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/CheckCircleFillIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/CheckIcon.js +20 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/CheckIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronDownIcon.js +28 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronDownIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronLeftIcon.js +28 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronLeftIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronRightIcon.js +28 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronRightIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronUpIcon.js +28 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronUpIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/CopilotIcon.js +33 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/CopilotIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/DashIcon.js +20 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/DashIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/LinkExternalIcon.js +20 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/LinkExternalIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/MarkGithubIcon.js +20 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/MarkGithubIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/MuteIcon.js +20 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/MuteIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/PaperAirplaneIcon.js +20 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/PaperAirplaneIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/PauseIcon.js +20 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/PauseIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/PlayIcon.js +20 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/PlayIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/ReplyIcon.js +20 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/ReplyIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/ScreenFullIcon.js +20 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/ScreenFullIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/ScreenNormalIcon.js +20 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/ScreenNormalIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/SearchIcon.js +20 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/SearchIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/TriangleDownIcon.js +20 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/TriangleDownIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/TriangleUpIcon.js +20 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/TriangleUpIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/UnmuteIcon.js +20 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/UnmuteIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/XIcon.js +28 -0
- package/esm/node_modules/@primer/octicons-react/dist/icons/XIcon.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/renderOcticon-DuMQdmQC.js +132 -0
- package/esm/node_modules/@primer/octicons-react/dist/renderOcticon-DuMQdmQC.js.map +1 -0
- package/esm/node_modules/clsx/dist/clsx.js +1 -1
- package/esm/node_modules/clsx/dist/clsx.js.map +1 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes-BGj0AiDW.css +1 -0
- package/esm/river/River/River.js +2 -2
- package/esm/river/River/River.js.map +1 -1
- package/esm/river/RiverAccordion/RiverAccordion.d.ts +4 -4
- package/esm/river/RiverAccordion/RiverAccordion.js +3 -2
- package/esm/river/RiverAccordion/RiverAccordion.js.map +1 -1
- package/esm/river/RiverAccordion/RiverAccordion.module.js +16 -15
- package/esm/river/RiverBreakout/RiverBreakout.d.ts +1 -1
- package/esm/river/RiverBreakout/RiverBreakout.js +1 -1
- package/esm/river/RiverBreakout/RiverBreakout.js.map +1 -1
- package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.d.ts +5 -5
- package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.js +2 -2
- package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.js.map +1 -1
- package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.module.js +31 -30
- package/esm/river/RiverStoryScroll/RiverStoryScroll.d.ts +1 -1
- package/esm/river/RiverStoryScroll/RiverStoryScroll.d.ts.map +1 -1
- package/esm/river/RiverStoryScroll/RiverStoryScroll.js +5 -3
- package/esm/river/RiverStoryScroll/RiverStoryScroll.js.map +1 -1
- package/esm/river/RiverStoryScroll/RiverStoryScroll.module.js +8 -7
- package/esm/river/RiverStoryScroll/RiverStoryScrollProvider.d.ts +2 -2
- package/esm/river/RiverStoryScroll/RiverStoryScrollProvider.d.ts.map +1 -1
- package/esm/river/RiverStoryScroll/RiverStoryScrollProvider.js.map +1 -1
- package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.d.ts +1 -1
- package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.d.ts.map +1 -1
- package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.js +1 -1
- package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.js.map +1 -1
- package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.d.ts +1 -1
- package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.d.ts.map +1 -1
- package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.js +1 -1
- package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.js.map +1 -1
- package/esm/river/river-shared.module.js +13 -12
- package/esm/utils/getTextContent.js.map +1 -1
- package/esm/utils/isFragmentElement.js.map +1 -1
- package/lib/Accordion/Accordion.d.ts +2 -2
- package/lib/ActionMenu/ActionMenu.d.ts +2 -2
- package/lib/AnchorNav/AnchorNav.d.ts +4 -4
- package/lib/Bento/Bento.d.ts +4 -4
- package/lib/Box/Box.d.ts +1 -1
- package/lib/CTABanner/CTABanner.d.ts +1 -1
- package/lib/Card/Card.d.ts +2 -2
- package/lib/ComparisonTable/ComparisonTable.d.ts +3 -3
- package/lib/ExpandableArrow/ExpandableArrow.d.ts +2 -1
- package/lib/FAQ/FAQ.d.ts +2 -2
- package/lib/FAQ/FAQGroup.d.ts +2 -2
- package/lib/Footnotes/Footnotes.d.ts +2 -2
- package/lib/FrostedGlassVFX/FrostedGlassVFX.d.ts +1 -1
- package/lib/Grid/Grid.d.ts +2 -2
- package/lib/IDE/IDE.d.ts +1 -1
- package/lib/Icon/Icon.d.ts +2 -2
- package/lib/Image/Image.d.ts +1 -1
- package/lib/Link/Link.d.ts +1 -1
- package/lib/LogoSuite/LogoSuite.d.ts +1 -1
- package/lib/MediaPlaylist/MediaPlaylist.d.ts +4 -4
- package/lib/MinimalFooter/MinimalFooter.d.ts +3 -3
- package/lib/Pagination/Pagination.d.ts +1 -1
- package/lib/Pillar/Pillar.d.ts +2 -2
- package/lib/PricingOptions/PricingOptions.d.ts +1 -1
- package/lib/SectionIntroStacked/SectionIntroStacked.d.ts +3 -3
- package/lib/SubNav/SubNav.d.ts +4 -4
- package/lib/SubdomainNavBar/NavigationVisbilityObserver.d.ts +3 -1
- package/lib/SubdomainNavBar/SubdomainNavBar.d.ts +157 -20
- package/lib/SubdomainNavBar/SubdomainNavBarLinkContext.d.ts +8 -0
- package/lib/SubdomainNavBar/useSearchKeyboardShortcut.d.ts +7 -0
- package/lib/SubdomainNavBar/useSearchResults.d.ts +23 -0
- package/lib/SubdomainNavBar/useVisibilityObserver.d.ts +1 -1
- package/lib/Testimonial/Testimonial.d.ts +1 -1
- package/lib/Text/Text.d.ts +1 -1
- package/lib/TextCursorAnimation/TextCursorAnimation.d.ts +1 -1
- package/lib/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/lib/Timeline/Timeline.d.ts +3 -3
- package/lib/VideoPlayer/VideoPlayer.d.ts +2 -2
- package/lib/VideoPlayer/components/CCButton/CCButton.d.ts +2 -2
- package/lib/VideoPlayer/components/Captions/Captions.d.ts +2 -2
- package/lib/VideoPlayer/components/ControlsBar/ControlsBar.d.ts +2 -2
- package/lib/VideoPlayer/components/FullScreenButton/FullScreenButton.d.ts +2 -2
- package/lib/VideoPlayer/components/IconControl/IconControl.d.ts +2 -2
- package/lib/VideoPlayer/components/MuteButton/MuteButton.d.ts +2 -2
- package/lib/VideoPlayer/components/PauseIcon/PauseIcon.d.ts +2 -2
- package/lib/VideoPlayer/components/PlayIcon/PlayIcon.d.ts +2 -2
- package/lib/VideoPlayer/components/PlayPauseButton/PlayPauseButton.d.ts +2 -2
- package/lib/VideoPlayer/components/Range/Range.d.ts +1 -1
- package/lib/VideoPlayer/components/SeekControl/SeekControl.d.ts +2 -2
- package/lib/VideoPlayer/components/VideoTooltip/VideoTooltip.d.ts +2 -2
- package/lib/VideoPlayer/components/VolumeControl/VolumeControl.d.ts +2 -1
- package/lib/animation/Animate/Animate.d.ts +1 -1
- package/lib/animation/AnimationProvider/AnimationProvider.d.ts +1 -1
- package/lib/component-helpers.d.ts +2 -2
- package/lib/css/main.css +1390 -1056
- package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
- package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
- package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/blinking-cursor/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-code/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-code/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/nav-list/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/river.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +7 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/token/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
- package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/footer/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-code/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/media-playlist/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/token/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/footer/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-code/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/media-playlist/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/token/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tooltip/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/json/colors.json +3 -0
- package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
- package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
- package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/footer/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-code/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/media-playlist/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/token/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/token/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/token/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
- package/lib/forms/FormControl/FormControl.d.ts +5 -5
- package/lib/forms/Select/Select.d.ts +2 -2
- package/lib/index.js +1 -1
- package/lib/list/OrderedList/OrderedList.d.ts +2 -2
- package/lib/list/UnorderedList/UnorderedList.d.ts +2 -2
- package/lib/river/RiverAccordion/RiverAccordion.d.ts +4 -4
- package/lib/river/RiverBreakout/RiverBreakout.d.ts +1 -1
- package/lib/river/RiverBreakoutTabs/RiverBreakoutTabs.d.ts +5 -5
- package/lib/river/RiverStoryScroll/RiverStoryScroll.d.ts +1 -1
- package/lib/river/RiverStoryScroll/RiverStoryScrollProvider.d.ts +2 -2
- package/lib/river/RiverStoryScroll/RiverStoryScrollResponder.d.ts +1 -1
- package/lib/river/RiverStoryScroll/RiverStoryScrollTracker.d.ts +1 -1
- package/llms.txt +2 -2
- package/package.json +24 -24
- package/esm/SubdomainNavBar/SubdomainNavBar.module-Rf4qEDka.css +0 -1
- package/esm/node_modules/@primer/octicons-react/dist/index.esm.js +0 -434
- package/esm/node_modules/@primer/octicons-react/dist/index.esm.js.map +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes-ehJCoExh.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import { BaseProps } from '../component-helpers';
|
|
3
3
|
/**
|
|
4
4
|
* Design tokens
|
|
@@ -13,7 +13,7 @@ export type TimelineItemProps = BaseProps<HTMLLIElement>;
|
|
|
13
13
|
* Use Timeline to display a list of connected items as a vertical timeline.
|
|
14
14
|
* @see https://primer.style/brand/components/Timeline
|
|
15
15
|
*/
|
|
16
|
-
export declare const Timeline: (({ animate, className, children, fullWidth, ...rest }: PropsWithChildren<TimelineProps>) =>
|
|
17
|
-
Item: ({ className, children, ...rest }: PropsWithChildren<TimelineItemProps>) =>
|
|
16
|
+
export declare const Timeline: (({ animate, className, children, fullWidth, ...rest }: PropsWithChildren<TimelineProps>) => React.JSX.Element) & {
|
|
17
|
+
Item: ({ className, children, ...rest }: PropsWithChildren<TimelineItemProps>) => React.JSX.Element;
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=Timeline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../src/Timeline/Timeline.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../src/Timeline/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,iBAAiB,EAAuB,MAAM,OAAO,CAAA;AAGpE,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAI9C;;GAEG;AACH,OAAO,4GAA4G,CAAA;AACnH,OAAO,+FAA+F,CAAA;AAEtG,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAAA;AAmB/B,MAAM,MAAM,iBAAiB,GAAG,SAAS,CAAC,aAAa,CAAC,CAAA;AAwBxD;;;GAGG;AACH,eAAO,MAAM,QAAQ,0DA7C6D,iBAAiB,CAAC,aAAa,CAAC;6CAmBpE,iBAAiB,CAAC,iBAAiB,CAAC;CA4BhF,CAAA"}
|
package/esm/Timeline/Timeline.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import e from "../node_modules/clsx/dist/clsx.js";
|
|
1
|
+
import { clsx as e } from "../node_modules/clsx/dist/clsx.js";
|
|
2
2
|
import { useAnimation as t } from "../animation/useAnimation.js";
|
|
3
3
|
import { Text as n } from "../Text/Text.js";
|
|
4
4
|
import r from "./Timeline.module.js";
|
|
5
|
-
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/timeline/
|
|
5
|
+
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/timeline/base-CXOJfjx4.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes-DDIdeMJX.css';/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
import i, { useCallback as a, useMemo as o } from "react";
|
|
8
8
|
import { jsx as s } from "react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timeline.js","names":[],"sources":["../../src/Timeline/Timeline.tsx"],"sourcesContent":["import React, {PropsWithChildren, useMemo, useCallback} from 'react'\nimport {clsx} from 'clsx'\nimport styles from './Timeline.module.css'\nimport {BaseProps} from '../component-helpers'\nimport {useAnimation} from '../animation'\nimport {Text} from '../Text'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/timeline/base.css'\n\nexport type TimelineProps = {\n fullWidth?: boolean\n} & BaseProps<HTMLUListElement>\n\nconst TimelineBase = ({animate, className, children, fullWidth = false, ...rest}: PropsWithChildren<TimelineProps>) => {\n const {classes: animationClasses, styles: animationInlineStyles} = useAnimation(animate)\n\n const timelineClassName = clsx(\n animationClasses,\n styles.Timeline,\n fullWidth && styles['Timeline--full-width'],\n className,\n )\n\n return (\n <ul className={timelineClassName} style={{...animationInlineStyles}} {...rest}>\n {children}\n </ul>\n )\n}\n\nexport type TimelineItemProps = BaseProps<HTMLLIElement>\n\nconst Item = ({className, children, ...rest}: PropsWithChildren<TimelineItemProps>) => {\n const itemClassName = clsx(styles['Timeline__item'], className)\n const childrenArray = useMemo(() => React.Children.toArray(children), [children])\n\n const getConditionalVariant = useCallback(() => {\n if (childrenArray.some(child => React.isValidElement(child) && (child.type === 'b' || child.type === 'em'))) {\n return 'muted'\n }\n return 'default'\n }, [childrenArray])\n\n const defaultColor = childrenArray.length === 1 ? 'default' : getConditionalVariant()\n\n return (\n <li className={itemClassName} {...rest}>\n <Text className={styles['Timeline__item-text']} size=\"200\" variant={defaultColor}>\n {children}\n </Text>\n </li>\n )\n}\n\n/**\n * Use Timeline to display a list of connected items as a vertical timeline.\n * @see https://primer.style/brand/components/Timeline\n */\nexport const Timeline = Object.assign(TimelineBase, {\n Item,\n})\n"],"mappings":";;;;;;;;AA8DA,IAAa,IAAW,OAAO,QA7CT,EAAC,YAAS,cAAW,aAAU,eAAY,IAAO,GAAG,QAA4C;CACrH,IAAM,EAAC,SAAS,GAAkB,QAAQ,MAAyB,EAAa,
|
|
1
|
+
{"version":3,"file":"Timeline.js","names":[],"sources":["../../src/Timeline/Timeline.tsx"],"sourcesContent":["import React, {PropsWithChildren, useMemo, useCallback} from 'react'\nimport {clsx} from 'clsx'\nimport styles from './Timeline.module.css'\nimport {BaseProps} from '../component-helpers'\nimport {useAnimation} from '../animation'\nimport {Text} from '../Text'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/timeline/base.css'\n\nexport type TimelineProps = {\n fullWidth?: boolean\n} & BaseProps<HTMLUListElement>\n\nconst TimelineBase = ({animate, className, children, fullWidth = false, ...rest}: PropsWithChildren<TimelineProps>) => {\n const {classes: animationClasses, styles: animationInlineStyles} = useAnimation(animate)\n\n const timelineClassName = clsx(\n animationClasses,\n styles.Timeline,\n fullWidth && styles['Timeline--full-width'],\n className,\n )\n\n return (\n <ul className={timelineClassName} style={{...animationInlineStyles}} {...rest}>\n {children}\n </ul>\n )\n}\n\nexport type TimelineItemProps = BaseProps<HTMLLIElement>\n\nconst Item = ({className, children, ...rest}: PropsWithChildren<TimelineItemProps>) => {\n const itemClassName = clsx(styles['Timeline__item'], className)\n const childrenArray = useMemo(() => React.Children.toArray(children), [children])\n\n const getConditionalVariant = useCallback(() => {\n if (childrenArray.some(child => React.isValidElement(child) && (child.type === 'b' || child.type === 'em'))) {\n return 'muted'\n }\n return 'default'\n }, [childrenArray])\n\n const defaultColor = childrenArray.length === 1 ? 'default' : getConditionalVariant()\n\n return (\n <li className={itemClassName} {...rest}>\n <Text className={styles['Timeline__item-text']} size=\"200\" variant={defaultColor}>\n {children}\n </Text>\n </li>\n )\n}\n\n/**\n * Use Timeline to display a list of connected items as a vertical timeline.\n * @see https://primer.style/brand/components/Timeline\n */\nexport const Timeline = Object.assign(TimelineBase, {\n Item,\n})\n"],"mappings":";;;;;;;;AA8DA,IAAa,IAAW,OAAO,QA7CT,EAAC,YAAS,cAAW,aAAU,eAAY,IAAO,GAAG,QAA4C;CACrH,IAAM,EAAC,SAAS,GAAkB,QAAQ,MAAyB,EAAa,CAAO;CASvF,OACE,kBAAC,MAAD;EAAI,WARoB,EACxB,GACA,EAAO,UACP,KAAa,EAAO,yBACpB,CAIe;EAAmB,OAAO,EAAC,GAAG,EAAqB;EAAG,GAAI;EACtE;CACC,CAAA;AAER,GA8BoD,EAClD,OA3BY,EAAC,cAAW,aAAU,GAAG,QAAgD;CACrF,IAAM,IAAgB,EAAK,EAAO,gBAAmB,CAAS,GACxD,IAAgB,QAAc,EAAM,SAAS,QAAQ,CAAQ,GAAG,CAAC,CAAQ,CAAC,GAE1E,IAAwB,QACxB,EAAc,MAAK,MAAS,EAAM,eAAe,CAAK,MAAM,EAAM,SAAS,OAAO,EAAM,SAAS,KAAK,IACjG,UAEF,WACN,CAAC,CAAa,CAAC,GAEZ,IAAe,EAAc,WAAW,IAAI,YAAY,EAAsB;CAEpF,OACE,kBAAC,MAAD;EAAI,WAAW;EAAe,GAAI;YAChC,kBAAC,GAAD;GAAM,WAAW,EAAO;GAAwB,MAAK;GAAM,SAAS;GACjE;EACG,CAAA;CACJ,CAAA;AAER,EAQA,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import './Timeline.module-CQrQaD-z.css'
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import './Timeline.module-CQrQaD-z.css';//#region src/Timeline/Timeline.module.css
|
|
2
|
+
var e = "Primer_Brand__Timeline-module__Timeline___BK9r7", t = "Primer_Brand__Timeline-module__Timeline__item___1RcCO", n = {
|
|
3
|
+
Timeline: e,
|
|
4
|
+
Timeline__item: t,
|
|
4
5
|
"Timeline--full-width": "Primer_Brand__Timeline-module__Timeline--full-width___ezRqP",
|
|
5
6
|
"Timeline__item-text": "Primer_Brand__Timeline-module__Timeline__item-text___5BcIe"
|
|
6
7
|
};
|
|
7
8
|
//#endregion
|
|
8
|
-
export { e as default };
|
|
9
|
+
export { e as Timeline, t as Timeline__item, n as default };
|
|
9
10
|
|
|
10
11
|
//# sourceMappingURL=Timeline.module.js.map
|
package/esm/Token/Token.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from "../node_modules/clsx/dist/clsx.js";
|
|
1
|
+
import { clsx as e } from "../node_modules/clsx/dist/clsx.js";
|
|
2
2
|
import { useAnimation as t } from "../animation/useAnimation.js";
|
|
3
3
|
import { Text as n } from "../Text/Text.js";
|
|
4
4
|
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes-5VT1x9eF.css';/* empty css */
|
package/esm/Token/Token.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Token.js","names":[],"sources":["../../src/Token/Token.tsx"],"sourcesContent":["import {clsx} from 'clsx'\nimport React, {forwardRef, type Ref} from 'react'\n\nimport {Text} from '../Text'\nimport {useAnimation} from '../animation'\nimport type {BaseProps} from '../component-helpers'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css'\n\nimport styles from './Token.module.css'\n\nexport const TokenVariants = ['default', 'accent', 'outline', 'invisible'] as const\n\nexport const defaultTokenVariant = TokenVariants[0]\n\ntype TokenLeadingVisual = React.ReactElement | React.ComponentType<{className?: string}>\n\ntype TokenSharedProps = {\n /**\n * The leading visual appears before the Token content.\n * Pass an element to supply custom props, or a component type that accepts an optional className.\n */\n leadingVisual?: TokenLeadingVisual\n /**\n * The variant variations available in Token.\n */\n variant?: (typeof TokenVariants)[number]\n /**\n * The HTML element rendered by Token.\n */\n as?: 'span' | 'a'\n ['data-testid']?: string\n}\n\ntype TokenSpanProps = BaseProps<HTMLSpanElement> &\n TokenSharedProps & {\n as?: 'span'\n } & React.ComponentPropsWithoutRef<'span'>\n\ntype TokenAnchorProps = BaseProps<HTMLAnchorElement> &\n TokenSharedProps & {\n as: 'a'\n href: string\n } & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>\n\nexport type TokenProps = TokenSpanProps | TokenAnchorProps\n\nconst testIds = {\n root: 'Token',\n get leadingVisual() {\n return `${this.root}-leading-visual`\n },\n}\n\nconst _Token = forwardRef<HTMLSpanElement | HTMLAnchorElement, TokenProps>(\n (\n {\n animate,\n variant = defaultTokenVariant,\n as = 'span',\n children,\n className,\n 'data-testid': testId,\n leadingVisual: LeadingVisual,\n style,\n ...props\n },\n ref: Ref<HTMLSpanElement | HTMLAnchorElement>,\n ) => {\n const {classes: animationClasses, styles: animationInlineStyles} = useAnimation(animate)\n\n const tokenClassName = clsx(\n animationClasses,\n styles.Token,\n LeadingVisual && styles['Token--hasLeadingVisual'],\n as === 'a' && styles['Token--interactive'],\n styles[`Token--variant-${variant}`],\n className,\n )\n\n const tokenChildren = (\n <>\n {LeadingVisual && (\n <span className={styles['Token__leading-visual']} data-testid={testIds.leadingVisual} aria-hidden=\"true\">\n {typeof LeadingVisual === 'function' ? (\n <LeadingVisual className={styles['Token__visual']} />\n ) : (\n React.isValidElement<{className?: string}>(LeadingVisual) &&\n React.cloneElement(LeadingVisual, {\n className: clsx(styles['Token__visual'], LeadingVisual.props.className),\n })\n )}\n </span>\n )}\n <Text as=\"span\" size=\"100\" className={styles['Token__label']}>\n {children}\n </Text>\n </>\n )\n\n if (as === 'a') {\n return (\n <a\n ref={ref as Ref<HTMLAnchorElement>}\n className={tokenClassName}\n data-testid={testId || testIds.root}\n style={{...animationInlineStyles, ...style}}\n {...props}\n >\n {tokenChildren}\n </a>\n )\n }\n\n return (\n <span\n ref={ref as Ref<HTMLSpanElement>}\n className={tokenClassName}\n data-testid={testId || testIds.root}\n style={{...animationInlineStyles, ...style}}\n {...props}\n >\n {tokenChildren}\n </span>\n )\n },\n)\n\n/**\n * Use Token to display compact metadata that describes or supports adjacent content.\n * @see https://primer.style/brand/components/Token\n */\nexport const Token = Object.assign(_Token, {testIds})\n"],"mappings":";;;;;;;;AAcA,IAAa,IAAgB;CAAC;CAAW;CAAU;CAAW;
|
|
1
|
+
{"version":3,"file":"Token.js","names":[],"sources":["../../src/Token/Token.tsx"],"sourcesContent":["import {clsx} from 'clsx'\nimport React, {forwardRef, type Ref} from 'react'\n\nimport {Text} from '../Text'\nimport {useAnimation} from '../animation'\nimport type {BaseProps} from '../component-helpers'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css'\n\nimport styles from './Token.module.css'\n\nexport const TokenVariants = ['default', 'accent', 'outline', 'invisible'] as const\n\nexport const defaultTokenVariant = TokenVariants[0]\n\ntype TokenLeadingVisual = React.ReactElement | React.ComponentType<{className?: string}>\n\ntype TokenSharedProps = {\n /**\n * The leading visual appears before the Token content.\n * Pass an element to supply custom props, or a component type that accepts an optional className.\n */\n leadingVisual?: TokenLeadingVisual\n /**\n * The variant variations available in Token.\n */\n variant?: (typeof TokenVariants)[number]\n /**\n * The HTML element rendered by Token.\n */\n as?: 'span' | 'a'\n ['data-testid']?: string\n}\n\ntype TokenSpanProps = BaseProps<HTMLSpanElement> &\n TokenSharedProps & {\n as?: 'span'\n } & React.ComponentPropsWithoutRef<'span'>\n\ntype TokenAnchorProps = BaseProps<HTMLAnchorElement> &\n TokenSharedProps & {\n as: 'a'\n href: string\n } & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>\n\nexport type TokenProps = TokenSpanProps | TokenAnchorProps\n\nconst testIds = {\n root: 'Token',\n get leadingVisual() {\n return `${this.root}-leading-visual`\n },\n}\n\nconst _Token = forwardRef<HTMLSpanElement | HTMLAnchorElement, TokenProps>(\n (\n {\n animate,\n variant = defaultTokenVariant,\n as = 'span',\n children,\n className,\n 'data-testid': testId,\n leadingVisual: LeadingVisual,\n style,\n ...props\n },\n ref: Ref<HTMLSpanElement | HTMLAnchorElement>,\n ) => {\n const {classes: animationClasses, styles: animationInlineStyles} = useAnimation(animate)\n\n const tokenClassName = clsx(\n animationClasses,\n styles.Token,\n LeadingVisual && styles['Token--hasLeadingVisual'],\n as === 'a' && styles['Token--interactive'],\n styles[`Token--variant-${variant}`],\n className,\n )\n\n const tokenChildren = (\n <>\n {LeadingVisual && (\n <span className={styles['Token__leading-visual']} data-testid={testIds.leadingVisual} aria-hidden=\"true\">\n {typeof LeadingVisual === 'function' ? (\n <LeadingVisual className={styles['Token__visual']} />\n ) : (\n React.isValidElement<{className?: string}>(LeadingVisual) &&\n React.cloneElement(LeadingVisual, {\n className: clsx(styles['Token__visual'], LeadingVisual.props.className),\n })\n )}\n </span>\n )}\n <Text as=\"span\" size=\"100\" className={styles['Token__label']}>\n {children}\n </Text>\n </>\n )\n\n if (as === 'a') {\n return (\n <a\n ref={ref as Ref<HTMLAnchorElement>}\n className={tokenClassName}\n data-testid={testId || testIds.root}\n style={{...animationInlineStyles, ...style}}\n {...props}\n >\n {tokenChildren}\n </a>\n )\n }\n\n return (\n <span\n ref={ref as Ref<HTMLSpanElement>}\n className={tokenClassName}\n data-testid={testId || testIds.root}\n style={{...animationInlineStyles, ...style}}\n {...props}\n >\n {tokenChildren}\n </span>\n )\n },\n)\n\n/**\n * Use Token to display compact metadata that describes or supports adjacent content.\n * @see https://primer.style/brand/components/Token\n */\nexport const Token = Object.assign(_Token, {testIds})\n"],"mappings":";;;;;;;;AAcA,IAAa,IAAgB;CAAC;CAAW;CAAU;CAAW;AAAW,GAE5D,IAAsB,EAAc,IAkC3C,IAAU;CACd,MAAM;CACN,IAAI,gBAAgB;EAClB,OAAO,GAAG,KAAK,KAAK;CACtB;AACF,GAEM,IAAS,GAEX,EACE,YACA,aAAU,GACV,QAAK,QACL,aACA,cACA,eAAe,GACf,eAAe,GACf,UACA,GAAG,KAEL,MACG;CACH,IAAM,EAAC,SAAS,GAAkB,QAAQ,MAAyB,EAAa,CAAO,GAEjF,IAAiB,EACrB,GACA,EAAO,OACP,KAAiB,EAAO,4BACxB,MAAO,OAAO,EAAO,uBACrB,EAAO,kBAAkB,MACzB,CACF,GAEM,IACJ,kBAAA,GAAA,EAAA,UAAA,CACG,KACC,kBAAC,QAAD;EAAM,WAAW,EAAO;EAA0B,eAAa,EAAQ;EAAe,eAAY;YAC/F,OAAO,KAAkB,aACxB,kBAAC,GAAD,EAAe,WAAW,EAAO,cAAmB,CAAA,IAEpD,EAAM,eAAqC,CAAa,KACxD,EAAM,aAAa,GAAe,EAChC,WAAW,EAAK,EAAO,eAAkB,EAAc,MAAM,SAAS,EACxE,CAAC;CAEC,CAAA,GAER,kBAAC,GAAD;EAAM,IAAG;EAAO,MAAK;EAAM,WAAW,EAAO;EAC1C;CACG,CAAA,CACN,EAAA,CAAA;CAiBJ,OAZI,EAFA,MAAO,MAEN,MAaF,QAbC;EACO;EACL,WAAW;EACX,eAAa,KAAU,EAAQ;EAC/B,OAAO;GAAC,GAAG;GAAuB,GAAG;EAAK;EAC1C,GAAI;YAEH;CACA,CAAA;AAeT,CACF,GAMa,IAAQ,OAAO,OAAO,GAAQ,EAAC,WAAO,CAAC"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import './Token.module-DtWE9IPI.css'
|
|
2
|
-
|
|
1
|
+
import './Token.module-DtWE9IPI.css';//#region src/Token/Token.module.css
|
|
2
|
+
var e = "Primer_Brand__Token-module__Token___nJxhW", t = "Primer_Brand__Token-module__Token__label___e3Cx3", n = "Primer_Brand__Token-module__Token__visual___Nlxfv", r = {
|
|
3
|
+
Token: e,
|
|
3
4
|
"Token--hasLeadingVisual": "Primer_Brand__Token-module__Token--hasLeadingVisual___Erv8L",
|
|
4
5
|
"Token--interactive": "Primer_Brand__Token-module__Token--interactive___ZpgTX",
|
|
5
6
|
"Token--variant-default": "Primer_Brand__Token-module__Token--variant-default___eMkcM",
|
|
6
7
|
"Token--variant-accent": "Primer_Brand__Token-module__Token--variant-accent___fSxf7",
|
|
7
8
|
"Token--variant-outline": "Primer_Brand__Token-module__Token--variant-outline___GTmIy",
|
|
8
9
|
"Token--variant-invisible": "Primer_Brand__Token-module__Token--variant-invisible___IR7Ki",
|
|
9
|
-
Token__label:
|
|
10
|
+
Token__label: t,
|
|
10
11
|
"Token__leading-visual": "Primer_Brand__Token-module__Token__leading-visual____uvYs",
|
|
11
|
-
Token__visual:
|
|
12
|
+
Token__visual: n
|
|
12
13
|
};
|
|
13
14
|
//#endregion
|
|
14
|
-
export { e as default };
|
|
15
|
+
export { e as Token, t as Token__label, n as Token__visual, r as default };
|
|
15
16
|
|
|
16
17
|
//# sourceMappingURL=Token.module.js.map
|
package/esm/Tooltip/Tooltip.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from "../node_modules/clsx/dist/clsx.js";
|
|
1
|
+
import { clsx as e } from "../node_modules/clsx/dist/clsx.js";
|
|
2
2
|
import { useId as t } from "../hooks/useId.js";
|
|
3
3
|
import { useProvidedRefOrCreate as n } from "../hooks/useRef.js";
|
|
4
4
|
import r from "./Tooltip.module.js";
|
|
@@ -99,7 +99,7 @@ var m = {
|
|
|
99
99
|
"data-direction": j,
|
|
100
100
|
...w,
|
|
101
101
|
role: b === "description" ? "tooltip" : void 0,
|
|
102
|
-
"aria-hidden": b === "label"
|
|
102
|
+
"aria-hidden": b === "label" || void 0,
|
|
103
103
|
id: E,
|
|
104
104
|
onMouseEnter: N,
|
|
105
105
|
onMouseLeave: P,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.js","names":[],"sources":["../../src/Tooltip/Tooltip.tsx"],"sourcesContent":["import React, {Children, useEffect, useRef, useState} from 'react'\nimport {clsx} from 'clsx'\nimport {useId} from '../hooks/useId'\nimport {getAnchoredPosition} from '@primer/behaviors'\nimport type {AnchorSide, AnchorAlignment} from '@primer/behaviors'\nimport {isSupported, apply} from '@oddbird/popover-polyfill/fn'\nimport {useProvidedRefOrCreate} from '../hooks/useRef'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './Tooltip.module.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css'\nimport {BaseProps} from '../component-helpers'\n\ntype TooltipDirection = 'n' | 'e' | 's' | 'w'\nexport type TooltipProps = {\n direction?: TooltipDirection\n text: string\n type?: 'label' | 'description'\n children?: React.ReactNode\n} & BaseProps<HTMLDivElement>\n\nexport type TriggerPropsType = {\n 'aria-describedby'?: string\n 'aria-labelledby'?: string\n 'aria-label'?: string\n onBlur?: React.FocusEventHandler\n onFocus?: React.FocusEventHandler\n onMouseEnter?: React.MouseEventHandler\n onMouseLeave?: React.MouseEventHandler\n ref?: React.RefObject<HTMLElement | null>\n}\n\n// map tooltip direction to anchoredPosition props\nconst directionToPosition: Record<TooltipDirection, {side: AnchorSide; align: AnchorAlignment}> = {\n n: {side: 'outside-top', align: 'center'},\n e: {side: 'outside-right', align: 'center'},\n s: {side: 'outside-bottom', align: 'center'},\n w: {side: 'outside-left', align: 'center'},\n}\n\n// map anchoredPosition props to tooltip direction\nconst positionToDirection: Record<string, TooltipDirection> = {\n 'outside-top-center': 'n',\n 'outside-right-center': 'e',\n 'outside-bottom-center': 's',\n 'outside-left-center': 'w',\n}\n\n// The list is from GitHub's custom-axe-rules https://github.com/github/github/blob/master/app/assets/modules/github/axe-custom-rules.ts#L3\nconst interactiveElements = [\n 'a[href]',\n 'button:not(:disabled)',\n 'summary',\n 'select',\n 'input:not([type=hidden])',\n 'textarea',\n]\n\nconst isInteractive = (element: HTMLElement) => {\n return (\n interactiveElements.some(selector => element.matches(selector)) ||\n (element.hasAttribute('role') && element.getAttribute('role') === 'button')\n )\n}\nexport const TooltipContext = React.createContext<{tooltipId?: string}>({})\n\nexport const Tooltip = React.forwardRef(\n ({direction = 's', text, type = 'description', children, id, className, ...rest}: TooltipProps, forwardedRef) => {\n const tooltipId = useId(id)\n const child = (Children.only(children) as React.ReactElement<TriggerPropsType> | null) ?? null\n const triggerRef = useProvidedRefOrCreate(forwardedRef as React.RefObject<HTMLElement | null> | null)\n const tooltipElRef = useRef<HTMLDivElement>(null)\n // Used to delay the closing of the tooltip to make sure the user can move the mouse from the trigger to the tooltip\n const closeTooltipTimeoutRef = useRef<NodeJS.Timeout | null>(null)\n const tooltipCloseTimeout = 200\n\n const [calculatedDirection, setCalculatedDirection] = useState<TooltipDirection>(direction)\n\n const openTooltip = React.useCallback(() => {\n if (closeTooltipTimeoutRef.current) {\n clearTimeout(closeTooltipTimeoutRef.current)\n closeTooltipTimeoutRef.current = null\n }\n\n if (tooltipElRef.current && triggerRef.current && !tooltipElRef.current.matches(':popover-open')) {\n tooltipElRef.current.showPopover()\n }\n }, [tooltipElRef, triggerRef])\n\n const closeTooltip = React.useCallback(() => {\n closeTooltipTimeoutRef.current = setTimeout(() => {\n if (tooltipElRef.current && triggerRef.current && tooltipElRef.current.matches(':popover-open')) {\n tooltipElRef.current.hidePopover()\n }\n }, tooltipCloseTimeout)\n }, [tooltipElRef, triggerRef])\n\n useEffect(() => {\n return () => {\n if (closeTooltipTimeoutRef.current) {\n clearTimeout(closeTooltipTimeoutRef.current)\n }\n }\n }, [closeTooltipTimeoutRef])\n\n useEffect(() => {\n if (!tooltipElRef.current || !triggerRef.current) return\n /*\n * ACCESSIBILITY CHECKS\n */\n // Has trigger element or any of its children interactive elements?\n const isTriggerInteractive = isInteractive(triggerRef.current)\n const triggerChildren = triggerRef.current.childNodes\n const hasInteractiveChild = Array.from(triggerChildren).some(triggerChild => {\n return triggerChild instanceof HTMLElement && isInteractive(triggerChild)\n })\n\n if (\n !(isTriggerInteractive || hasInteractiveChild) &&\n (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test')\n ) {\n // eslint-disable-next-line no-console\n console.warn(\n 'The `Tooltip` component expects a single React element that contains interactive content. Consider using a `<button>` or equivalent interactive element instead.',\n )\n }\n\n // If the tooltip is used for labelling the interactive element, the trigger element or any of its children should not have aria-label\n if (type === 'label') {\n const hasAriaLabel = triggerRef.current.hasAttribute('aria-label')\n const hasAriaLabelInChildren = Array.from(triggerRef.current.childNodes).some(\n triggerChild => triggerChild instanceof HTMLElement && triggerChild.hasAttribute('aria-label'),\n )\n\n if (\n (hasAriaLabel || hasAriaLabelInChildren) &&\n (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test')\n ) {\n // eslint-disable-next-line no-console\n console.warn(\n 'The label type `Tooltip` is going to be used here to label the trigger element. Please remove the aria-label from the trigger element.',\n )\n }\n }\n\n // SSR safe polyfill apply\n if (typeof window !== 'undefined') {\n if (!isSupported()) {\n apply()\n }\n }\n\n /*\n * TOOLTIP POSITIONING\n */\n const tooltip = tooltipElRef.current\n const trigger = triggerRef.current\n tooltip.setAttribute('popover', 'auto')\n const settings = {\n side: directionToPosition[direction].side,\n align: directionToPosition[direction].align,\n anchorOffset: 8,\n }\n\n const positionSet = () => {\n const {top, left, anchorAlign, anchorSide} = getAnchoredPosition(tooltip, trigger, settings)\n\n tooltip.style.top = `${top}px`\n tooltip.style.left = `${left}px`\n // This is required to make sure the popover is positioned correctly i.e. when there is not enough space on the specified direction, we set a new direction to position the ::after\n const calculatedDirectionString = positionToDirection[`${anchorSide}-${anchorAlign}` as string]\n setCalculatedDirection(calculatedDirectionString)\n }\n\n tooltip.addEventListener('toggle', positionSet)\n\n return () => {\n tooltip.removeEventListener('toggle', positionSet)\n }\n }, [tooltipElRef, triggerRef, direction, type])\n\n return (\n <TooltipContext.Provider value={{tooltipId}}>\n {child &&\n React.cloneElement(child, {\n ref: triggerRef,\n // If it is a type description, we use tooltip to describe the trigger\n 'aria-describedby': type === 'description' ? tooltipId : child.props['aria-describedby'],\n // If it is a label type, we use tooltip to label the trigger\n 'aria-labelledby': type === 'label' ? tooltipId : child.props['aria-labelledby'],\n onBlur: (event: React.FocusEvent) => {\n closeTooltip()\n child.props.onBlur?.(event)\n },\n onFocus: (event: React.FocusEvent) => {\n openTooltip()\n child.props.onFocus?.(event)\n },\n onMouseEnter: (event: React.MouseEvent) => {\n openTooltip()\n child.props.onMouseEnter?.(event)\n },\n onMouseLeave: (event: React.MouseEvent) => {\n closeTooltip()\n child.props.onMouseLeave?.(event)\n },\n })}\n <div\n className={clsx(styles.Tooltip, className)}\n ref={tooltipElRef}\n data-direction={calculatedDirection}\n {...rest}\n // Only need tooltip role if the tooltip is a description for supplementary information\n role={type === 'description' ? 'tooltip' : undefined}\n // stop AT from announcing the tooltip twice when it is a label type because it will be announced with \"aria-labelledby\"\n aria-hidden={type === 'label' ? true : undefined}\n id={tooltipId}\n // mouse leave and enter on the tooltip itself is needed to keep the tooltip open when the mouse is over the tooltip\n onMouseEnter={openTooltip}\n onMouseLeave={closeTooltip}\n >\n {text}\n </div>\n </TooltipContext.Provider>\n )\n },\n)\n"],"mappings":";;;;;;;;;;AAiCA,IAAM,IAA4F;CAChG,GAAG;EAAC,MAAM;EAAe,OAAO;EAAS;CACzC,GAAG;EAAC,MAAM;EAAiB,OAAO;EAAS;CAC3C,GAAG;EAAC,MAAM;EAAkB,OAAO;EAAS;CAC5C,GAAG;EAAC,MAAM;EAAgB,OAAO;EAAS;CAC3C,EAGK,IAAwD;CAC5D,sBAAsB;CACtB,wBAAwB;CACxB,yBAAyB;CACzB,uBAAuB;CACxB,EAGK,IAAsB;CAC1B;CACA;CACA;CACA;CACA;CACA;CACD,EAEK,KAAiB,MAEnB,EAAoB,MAAK,MAAY,EAAQ,QAAQ,EAAS,CAAC,IAC9D,EAAQ,aAAa,OAAO,IAAI,EAAQ,aAAa,OAAO,KAAK,UAGzD,IAAiB,EAAM,cAAoC,EAAE,CAAC,EAE9D,IAAU,EAAM,YAC1B,EAAC,eAAY,KAAK,SAAM,UAAO,eAAe,aAAU,OAAI,cAAW,GAAG,KAAqB,MAAiB;CAC/G,IAAM,IAAY,EAAM,EAAG,EACrB,IAAS,EAAS,KAAK,EAAS,IAAoD,MACpF,IAAa,EAAuB,EAA2D,EAC/F,IAAe,EAAuB,KAAK,EAE3C,IAAyB,EAA8B,KAAK,EAG5D,CAAC,GAAqB,KAA0B,EAA2B,EAAU,EAErF,IAAc,EAAM,kBAAkB;AAM1C,EALA,AAEE,EAAuB,aADvB,aAAa,EAAuB,QAAQ,EACX,OAG/B,EAAa,WAAW,EAAW,WAAW,CAAC,EAAa,QAAQ,QAAQ,gBAAgB,IAC9F,EAAa,QAAQ,aAAa;IAEnC,CAAC,GAAc,EAAW,CAAC,EAExB,IAAe,EAAM,kBAAkB;AAC3C,IAAuB,UAAU,iBAAiB;AAChD,GAAI,EAAa,WAAW,EAAW,WAAW,EAAa,QAAQ,QAAQ,gBAAgB,IAC7F,EAAa,QAAQ,aAAa;KAEnC,IAAoB;IACtB,CAAC,GAAc,EAAW,CAAC;AAsF9B,QApFA,cACe;AACX,EAAI,EAAuB,WACzB,aAAa,EAAuB,QAAQ;IAG/C,CAAC,EAAuB,CAAC,EAE5B,QAAgB;AACd,MAAI,CAAC,EAAa,WAAW,CAAC,EAAW,QAAS;EAKlD,IAAM,IAAuB,EAAc,EAAW,QAAQ,EACxD,IAAkB,EAAW,QAAQ,YACrC,IAAsB,MAAM,KAAK,EAAgB,CAAC,MAAK,MACpD,aAAwB,eAAe,EAAc,EAAa,CACzE;AAaF,MAVE,EAAE,KAAwB,OAAA,QAAA,IAAA,aACA,iBAAA,QAAA,IAAA,aAA0C,WAGpE,QAAQ,KACN,mKACD,EAIC,MAAS,SAAS;GACpB,IAAM,IAAe,EAAW,QAAQ,aAAa,aAAa,EAC5D,IAAyB,MAAM,KAAK,EAAW,QAAQ,WAAW,CAAC,MACvE,MAAgB,aAAwB,eAAe,EAAa,aAAa,aAAa,CAC/F;AAED,IACG,KAAgB,OAAA,QAAA,IAAA,aACS,iBAAA,QAAA,IAAA,aAA0C,WAGpE,QAAQ,KACN,yIACD;;AAKL,EAAI,OAAO,SAAW,QACf,GAAa,IAChB,GAAO;EAOX,IAAM,IAAU,EAAa,SACvB,IAAU,EAAW;AAC3B,IAAQ,aAAa,WAAW,OAAO;EACvC,IAAM,IAAW;GACf,MAAM,EAAoB,GAAW;GACrC,OAAO,EAAoB,GAAW;GACtC,cAAc;GACf,EAEK,UAAoB;GACxB,IAAM,EAAC,QAAK,SAAM,gBAAa,kBAAc,EAAoB,GAAS,GAAS,EAAS;AAG5F,GADA,EAAQ,MAAM,MAAM,GAAG,EAAI,KAC3B,EAAQ,MAAM,OAAO,GAAG,EAAK;GAE7B,IAAM,IAA4B,EAAoB,GAAG,EAAW,GAAG;AACvE,KAAuB,EAA0B;;AAKnD,SAFA,EAAQ,iBAAiB,UAAU,EAAY,QAElC;AACX,KAAQ,oBAAoB,UAAU,EAAY;;IAEnD;EAAC;EAAc;EAAY;EAAW;EAAK,CAAC,EAG7C,kBAAC,EAAe,UAAhB;EAAyB,OAAO,EAAC,cAAU;YAA3C,CACG,KACC,EAAM,aAAa,GAAO;GACxB,KAAK;GAEL,oBAAoB,MAAS,gBAAgB,IAAY,EAAM,MAAM;GAErE,mBAAmB,MAAS,UAAU,IAAY,EAAM,MAAM;GAC9D,SAAS,MAA4B;AAEnC,IADA,GAAc,EACd,EAAM,MAAM,SAAS,EAAM;;GAE7B,UAAU,MAA4B;AAEpC,IADA,GAAa,EACb,EAAM,MAAM,UAAU,EAAM;;GAE9B,eAAe,MAA4B;AAEzC,IADA,GAAa,EACb,EAAM,MAAM,eAAe,EAAM;;GAEnC,eAAe,MAA4B;AAEzC,IADA,GAAc,EACd,EAAM,MAAM,eAAe,EAAM;;GAEpC,CAAC,EACJ,kBAAC,OAAD;GACE,WAAW,EAAK,EAAO,SAAS,EAAU;GAC1C,KAAK;GACL,kBAAgB;GAChB,GAAI;GAEJ,MAAM,MAAS,gBAAgB,YAAY,KAAA;GAE3C,eAAa,MAAS,UAAU,KAAO,KAAA;GACvC,IAAI;GAEJ,cAAc;GACd,cAAc;aAEb;GACG,CAAA,CACkB;;EAG/B"}
|
|
1
|
+
{"version":3,"file":"Tooltip.js","names":[],"sources":["../../src/Tooltip/Tooltip.tsx"],"sourcesContent":["import React, {Children, useEffect, useRef, useState} from 'react'\nimport {clsx} from 'clsx'\nimport {useId} from '../hooks/useId'\nimport {getAnchoredPosition} from '@primer/behaviors'\nimport type {AnchorSide, AnchorAlignment} from '@primer/behaviors'\nimport {isSupported, apply} from '@oddbird/popover-polyfill/fn'\nimport {useProvidedRefOrCreate} from '../hooks/useRef'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './Tooltip.module.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css'\nimport {BaseProps} from '../component-helpers'\n\ntype TooltipDirection = 'n' | 'e' | 's' | 'w'\nexport type TooltipProps = {\n direction?: TooltipDirection\n text: string\n type?: 'label' | 'description'\n children?: React.ReactNode\n} & BaseProps<HTMLDivElement>\n\nexport type TriggerPropsType = {\n 'aria-describedby'?: string\n 'aria-labelledby'?: string\n 'aria-label'?: string\n onBlur?: React.FocusEventHandler\n onFocus?: React.FocusEventHandler\n onMouseEnter?: React.MouseEventHandler\n onMouseLeave?: React.MouseEventHandler\n ref?: React.RefObject<HTMLElement | null>\n}\n\n// map tooltip direction to anchoredPosition props\nconst directionToPosition: Record<TooltipDirection, {side: AnchorSide; align: AnchorAlignment}> = {\n n: {side: 'outside-top', align: 'center'},\n e: {side: 'outside-right', align: 'center'},\n s: {side: 'outside-bottom', align: 'center'},\n w: {side: 'outside-left', align: 'center'},\n}\n\n// map anchoredPosition props to tooltip direction\nconst positionToDirection: Record<string, TooltipDirection> = {\n 'outside-top-center': 'n',\n 'outside-right-center': 'e',\n 'outside-bottom-center': 's',\n 'outside-left-center': 'w',\n}\n\n// The list is from GitHub's custom-axe-rules https://github.com/github/github/blob/master/app/assets/modules/github/axe-custom-rules.ts#L3\nconst interactiveElements = [\n 'a[href]',\n 'button:not(:disabled)',\n 'summary',\n 'select',\n 'input:not([type=hidden])',\n 'textarea',\n]\n\nconst isInteractive = (element: HTMLElement) => {\n return (\n interactiveElements.some(selector => element.matches(selector)) ||\n (element.hasAttribute('role') && element.getAttribute('role') === 'button')\n )\n}\nexport const TooltipContext = React.createContext<{tooltipId?: string}>({})\n\nexport const Tooltip = React.forwardRef(\n ({direction = 's', text, type = 'description', children, id, className, ...rest}: TooltipProps, forwardedRef) => {\n const tooltipId = useId(id)\n const child = (Children.only(children) as React.ReactElement<TriggerPropsType> | null) ?? null\n const triggerRef = useProvidedRefOrCreate(forwardedRef as React.RefObject<HTMLElement | null> | null)\n const tooltipElRef = useRef<HTMLDivElement>(null)\n // Used to delay the closing of the tooltip to make sure the user can move the mouse from the trigger to the tooltip\n const closeTooltipTimeoutRef = useRef<NodeJS.Timeout | null>(null)\n const tooltipCloseTimeout = 200\n\n const [calculatedDirection, setCalculatedDirection] = useState<TooltipDirection>(direction)\n\n const openTooltip = React.useCallback(() => {\n if (closeTooltipTimeoutRef.current) {\n clearTimeout(closeTooltipTimeoutRef.current)\n closeTooltipTimeoutRef.current = null\n }\n\n if (tooltipElRef.current && triggerRef.current && !tooltipElRef.current.matches(':popover-open')) {\n tooltipElRef.current.showPopover()\n }\n }, [tooltipElRef, triggerRef])\n\n const closeTooltip = React.useCallback(() => {\n closeTooltipTimeoutRef.current = setTimeout(() => {\n if (tooltipElRef.current && triggerRef.current && tooltipElRef.current.matches(':popover-open')) {\n tooltipElRef.current.hidePopover()\n }\n }, tooltipCloseTimeout)\n }, [tooltipElRef, triggerRef])\n\n useEffect(() => {\n return () => {\n if (closeTooltipTimeoutRef.current) {\n clearTimeout(closeTooltipTimeoutRef.current)\n }\n }\n }, [closeTooltipTimeoutRef])\n\n useEffect(() => {\n if (!tooltipElRef.current || !triggerRef.current) return\n /*\n * ACCESSIBILITY CHECKS\n */\n // Has trigger element or any of its children interactive elements?\n const isTriggerInteractive = isInteractive(triggerRef.current)\n const triggerChildren = triggerRef.current.childNodes\n const hasInteractiveChild = Array.from(triggerChildren).some(triggerChild => {\n return triggerChild instanceof HTMLElement && isInteractive(triggerChild)\n })\n\n if (\n !(isTriggerInteractive || hasInteractiveChild) &&\n (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test')\n ) {\n // eslint-disable-next-line no-console\n console.warn(\n 'The `Tooltip` component expects a single React element that contains interactive content. Consider using a `<button>` or equivalent interactive element instead.',\n )\n }\n\n // If the tooltip is used for labelling the interactive element, the trigger element or any of its children should not have aria-label\n if (type === 'label') {\n const hasAriaLabel = triggerRef.current.hasAttribute('aria-label')\n const hasAriaLabelInChildren = Array.from(triggerRef.current.childNodes).some(\n triggerChild => triggerChild instanceof HTMLElement && triggerChild.hasAttribute('aria-label'),\n )\n\n if (\n (hasAriaLabel || hasAriaLabelInChildren) &&\n (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test')\n ) {\n // eslint-disable-next-line no-console\n console.warn(\n 'The label type `Tooltip` is going to be used here to label the trigger element. Please remove the aria-label from the trigger element.',\n )\n }\n }\n\n // SSR safe polyfill apply\n if (typeof window !== 'undefined') {\n if (!isSupported()) {\n apply()\n }\n }\n\n /*\n * TOOLTIP POSITIONING\n */\n const tooltip = tooltipElRef.current\n const trigger = triggerRef.current\n tooltip.setAttribute('popover', 'auto')\n const settings = {\n side: directionToPosition[direction].side,\n align: directionToPosition[direction].align,\n anchorOffset: 8,\n }\n\n const positionSet = () => {\n const {top, left, anchorAlign, anchorSide} = getAnchoredPosition(tooltip, trigger, settings)\n\n tooltip.style.top = `${top}px`\n tooltip.style.left = `${left}px`\n // This is required to make sure the popover is positioned correctly i.e. when there is not enough space on the specified direction, we set a new direction to position the ::after\n const calculatedDirectionString = positionToDirection[`${anchorSide}-${anchorAlign}` as string]\n setCalculatedDirection(calculatedDirectionString)\n }\n\n tooltip.addEventListener('toggle', positionSet)\n\n return () => {\n tooltip.removeEventListener('toggle', positionSet)\n }\n }, [tooltipElRef, triggerRef, direction, type])\n\n return (\n <TooltipContext.Provider value={{tooltipId}}>\n {child &&\n React.cloneElement(child, {\n ref: triggerRef,\n // If it is a type description, we use tooltip to describe the trigger\n 'aria-describedby': type === 'description' ? tooltipId : child.props['aria-describedby'],\n // If it is a label type, we use tooltip to label the trigger\n 'aria-labelledby': type === 'label' ? tooltipId : child.props['aria-labelledby'],\n onBlur: (event: React.FocusEvent) => {\n closeTooltip()\n child.props.onBlur?.(event)\n },\n onFocus: (event: React.FocusEvent) => {\n openTooltip()\n child.props.onFocus?.(event)\n },\n onMouseEnter: (event: React.MouseEvent) => {\n openTooltip()\n child.props.onMouseEnter?.(event)\n },\n onMouseLeave: (event: React.MouseEvent) => {\n closeTooltip()\n child.props.onMouseLeave?.(event)\n },\n })}\n <div\n className={clsx(styles.Tooltip, className)}\n ref={tooltipElRef}\n data-direction={calculatedDirection}\n {...rest}\n // Only need tooltip role if the tooltip is a description for supplementary information\n role={type === 'description' ? 'tooltip' : undefined}\n // stop AT from announcing the tooltip twice when it is a label type because it will be announced with \"aria-labelledby\"\n aria-hidden={type === 'label' ? true : undefined}\n id={tooltipId}\n // mouse leave and enter on the tooltip itself is needed to keep the tooltip open when the mouse is over the tooltip\n onMouseEnter={openTooltip}\n onMouseLeave={closeTooltip}\n >\n {text}\n </div>\n </TooltipContext.Provider>\n )\n },\n)\n"],"mappings":"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"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import './Tooltip.module-5Km7qGR5.css'
|
|
2
|
-
|
|
1
|
+
import './Tooltip.module-5Km7qGR5.css';//#region src/Tooltip/Tooltip.module.css
|
|
2
|
+
var e = "Primer_Brand__Tooltip-module__Tooltip___0Eipx", t = {
|
|
3
|
+
Tooltip: e,
|
|
3
4
|
":popover-open": "Primer_Brand__Tooltip-module__:popover-open___GpZlX",
|
|
4
5
|
"tooltip-appear": "Primer_Brand__Tooltip-module__tooltip-appear___hAyFD"
|
|
5
6
|
};
|
|
6
7
|
//#endregion
|
|
7
|
-
export { e as default };
|
|
8
|
+
export { e as Tooltip, t as default };
|
|
8
9
|
|
|
9
10
|
//# sourceMappingURL=Tooltip.module.js.map
|
|
@@ -19,8 +19,8 @@ type VideoPlayerProps = {
|
|
|
19
19
|
playIcon?: FunctionComponent;
|
|
20
20
|
} & HTMLProps<HTMLVideoElement>;
|
|
21
21
|
export declare const VideoPlayer: React.ForwardRefExoticComponent<Omit<VideoPlayerProps, "ref"> & React.RefAttributes<HTMLVideoElement>> & {
|
|
22
|
-
Source: (props: React.HTMLProps<HTMLSourceElement>) =>
|
|
23
|
-
Track: ({ kind, ...rest }: React.HTMLProps<HTMLTrackElement>) =>
|
|
22
|
+
Source: (props: React.HTMLProps<HTMLSourceElement>) => React.JSX.Element;
|
|
23
|
+
Track: ({ kind, ...rest }: React.HTMLProps<HTMLTrackElement>) => React.JSX.Element;
|
|
24
24
|
Provider: React.ForwardRefExoticComponent<{
|
|
25
25
|
children?: React.ReactNode | undefined;
|
|
26
26
|
} & React.RefAttributes<HTMLVideoElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import e from "../node_modules/clsx/dist/clsx.js";
|
|
1
|
+
import { clsx as e } from "../node_modules/clsx/dist/clsx.js";
|
|
2
2
|
import { useProvidedRefOrCreate as t } from "../hooks/useRef.js";
|
|
3
3
|
import { Text as n } from "../Text/Text.js";
|
|
4
|
-
import { MarkGithubIcon as r } from "../node_modules/@primer/octicons-react/dist/
|
|
4
|
+
import { MarkGithubIcon as r } from "../node_modules/@primer/octicons-react/dist/icons/MarkGithubIcon.js";
|
|
5
5
|
import { PlayIcon as i } from "./components/PlayIcon/PlayIcon.js";
|
|
6
6
|
import a from "./VideoPlayer.module.js";
|
|
7
7
|
import { VideoContext as o, VideoProvider as s, useVideo as c } from "./hooks/useVideo.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoPlayer.js","names":[],"sources":["../../src/VideoPlayer/VideoPlayer.tsx"],"sourcesContent":["import React, {forwardRef, useCallback, useContext, type HTMLProps, type FunctionComponent} from 'react'\nimport {clsx} from 'clsx'\nimport {Text} from '../Text'\nimport {type AnimateProps} from '../animation'\nimport {\n Captions,\n CCButton,\n ControlsBar,\n FullScreenButton,\n MuteButton,\n PlayIcon as DefaultPlayIcon,\n PlayPauseButton,\n SeekControl,\n VolumeControl,\n} from './components'\nimport {MarkGithubIcon} from '@primer/octicons-react'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/video-player/base.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './VideoPlayer.module.css'\nimport {useVideoResizeObserver} from './hooks/'\nimport {useVideo, VideoContext, VideoProvider} from './hooks/useVideo'\nimport {useProvidedRefOrCreate} from '../hooks/useRef'\n\ntype VideoPlayerProps = {\n title: string\n visuallyHiddenTitle?: boolean\n showBranding?: boolean\n animate?: AnimateProps\n showPlayPauseButton?: boolean\n showSeekControl?: boolean\n showCCButton?: boolean\n showMuteButton?: boolean\n showVolumeControl?: boolean\n showFullScreenButton?: boolean\n playIcon?: FunctionComponent\n} & HTMLProps<HTMLVideoElement>\n\nconst Root = forwardRef<HTMLVideoElement, VideoPlayerProps>(\n (\n {\n title,\n visuallyHiddenTitle,\n showBranding = true,\n children,\n className,\n showPlayPauseButton = true,\n showSeekControl = true,\n showCCButton = true,\n showMuteButton = true,\n showVolumeControl = true,\n showFullScreenButton = true,\n playIcon: PlayIcon = () => <DefaultPlayIcon className={styles.VideoPlayer__playButton} />,\n ...rest\n }: VideoPlayerProps,\n forwardedRef,\n ) => {\n const videoContext = useVideo()\n const {ccEnabled, fullscreenRef, isPlaying, ref, togglePlaying} = videoContext\n const forwardedRefCallback = useCallback(\n (node: HTMLVideoElement | null) => {\n assignRef(forwardedRef, node)\n },\n [forwardedRef],\n )\n const providedRef = useProvidedRefOrCreate<HTMLVideoElement>(forwardedRefCallback)\n\n const setVideoElementRef = useCallback(\n (node: HTMLVideoElement | null) => {\n assignRef(ref, node)\n assignRef(providedRef, node)\n },\n [ref, providedRef],\n )\n\n const isSmall = useVideoResizeObserver({\n videoWrapperRef: fullscreenRef,\n className: styles['VideoPlayer__container--small'],\n })\n\n const showControlsRow1 = showPlayPauseButton || showSeekControl\n const showControlsRow2 = showCCButton || showMuteButton || showVolumeControl || showFullScreenButton\n const showControlsBar = showControlsRow1 || showControlsRow2\n\n return (\n <div data-video-player-container className={styles.VideoPlayer__container} ref={fullscreenRef}>\n <div className={styles.VideoPlayer__overlayContainer}>\n <video\n ref={setVideoElementRef}\n title={title}\n controls={false}\n className={clsx(styles.VideoPlayer, className)}\n {...rest}\n >\n {children}\n <track kind=\"captions\" />\n </video>\n {showBranding || !visuallyHiddenTitle ? (\n <div className={clsx(styles.VideoPlayer__title, isPlaying && styles['VideoPlayer__title--hidden'])}>\n {showBranding && <MarkGithubIcon size={40} aria-label=\"GitHub logo\" />}\n {!visuallyHiddenTitle && (\n <Text size=\"400\" weight=\"medium\" className={styles.VideoPlayer__controlTextColor}>\n {title}\n </Text>\n )}\n </div>\n ) : null}\n <button\n className={clsx(\n styles.VideoPlayer__playButtonOverlay,\n isPlaying && styles['VideoPlayer__playButtonOverlay--transparent'],\n )}\n onClick={togglePlaying}\n aria-label={isPlaying ? 'Pause' : 'Play'}\n >\n {!isPlaying && <PlayIcon />}\n </button>\n </div>\n\n {ccEnabled && <Captions />}\n {showControlsBar && (\n <ControlsBar>\n {showControlsRow1 && (\n <div className={styles['VideoPlayer__controlsBar__row1']}>\n {showPlayPauseButton && <PlayPauseButton />}\n {showSeekControl && <SeekControl />}\n </div>\n )}\n {showControlsRow2 && (\n <div className={styles['VideoPlayer__controlsBar__row2']}>\n {showCCButton && <CCButton />}\n {showMuteButton && <MuteButton />}\n {showVolumeControl && !isSmall && <VolumeControl />}\n {showFullScreenButton && <FullScreenButton />}\n </div>\n )}\n </ControlsBar>\n )}\n </div>\n )\n },\n)\n\nfunction assignRef<T>(targetRef: React.RefObject<T> | React.Ref<T> | null | undefined, value: T | null) {\n if (!targetRef) return\n\n if (typeof targetRef === 'function') {\n targetRef(value)\n return\n }\n\n ;(targetRef as React.MutableRefObject<T | null>).current = value\n}\n\nconst VideoPlayerSource = (props: React.HTMLProps<HTMLSourceElement>) => <source {...props} />\n\nconst VideoPlayerTrack = ({kind = 'captions', ...rest}: React.HTMLProps<HTMLTrackElement>) => (\n <track kind={kind} {...rest} />\n)\n\nconst RootWithProvider = forwardRef<HTMLVideoElement, VideoPlayerProps>((props, ref) => {\n const context = useContext(VideoContext)\n\n return context ? (\n <Root ref={ref} {...props} />\n ) : (\n <VideoProvider>\n <Root ref={ref} {...props} />\n </VideoProvider>\n )\n})\n\nexport const VideoPlayer = Object.assign(RootWithProvider, {\n Source: VideoPlayerSource,\n Track: VideoPlayerTrack,\n Provider: VideoProvider,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA2CA,IAAM,IAAO,GAET,EACE,UACA,wBACA,kBAAe,IACf,aACA,cACA,yBAAsB,IACtB,qBAAkB,IAClB,kBAAe,IACf,oBAAiB,IACjB,uBAAoB,IACpB,0BAAuB,IACvB,UAAU,UAAiB,kBAAC,GAAD,EAAiB,WAAW,EAAO,
|
|
1
|
+
{"version":3,"file":"VideoPlayer.js","names":[],"sources":["../../src/VideoPlayer/VideoPlayer.tsx"],"sourcesContent":["import React, {forwardRef, useCallback, useContext, type HTMLProps, type FunctionComponent} from 'react'\nimport {clsx} from 'clsx'\nimport {Text} from '../Text'\nimport {type AnimateProps} from '../animation'\nimport {\n Captions,\n CCButton,\n ControlsBar,\n FullScreenButton,\n MuteButton,\n PlayIcon as DefaultPlayIcon,\n PlayPauseButton,\n SeekControl,\n VolumeControl,\n} from './components'\nimport {MarkGithubIcon} from '@primer/octicons-react'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/video-player/base.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './VideoPlayer.module.css'\nimport {useVideoResizeObserver} from './hooks/'\nimport {useVideo, VideoContext, VideoProvider} from './hooks/useVideo'\nimport {useProvidedRefOrCreate} from '../hooks/useRef'\n\ntype VideoPlayerProps = {\n title: string\n visuallyHiddenTitle?: boolean\n showBranding?: boolean\n animate?: AnimateProps\n showPlayPauseButton?: boolean\n showSeekControl?: boolean\n showCCButton?: boolean\n showMuteButton?: boolean\n showVolumeControl?: boolean\n showFullScreenButton?: boolean\n playIcon?: FunctionComponent\n} & HTMLProps<HTMLVideoElement>\n\nconst Root = forwardRef<HTMLVideoElement, VideoPlayerProps>(\n (\n {\n title,\n visuallyHiddenTitle,\n showBranding = true,\n children,\n className,\n showPlayPauseButton = true,\n showSeekControl = true,\n showCCButton = true,\n showMuteButton = true,\n showVolumeControl = true,\n showFullScreenButton = true,\n playIcon: PlayIcon = () => <DefaultPlayIcon className={styles.VideoPlayer__playButton} />,\n ...rest\n }: VideoPlayerProps,\n forwardedRef,\n ) => {\n const videoContext = useVideo()\n const {ccEnabled, fullscreenRef, isPlaying, ref, togglePlaying} = videoContext\n const forwardedRefCallback = useCallback(\n (node: HTMLVideoElement | null) => {\n assignRef(forwardedRef, node)\n },\n [forwardedRef],\n )\n const providedRef = useProvidedRefOrCreate<HTMLVideoElement>(forwardedRefCallback)\n\n const setVideoElementRef = useCallback(\n (node: HTMLVideoElement | null) => {\n assignRef(ref, node)\n assignRef(providedRef, node)\n },\n [ref, providedRef],\n )\n\n const isSmall = useVideoResizeObserver({\n videoWrapperRef: fullscreenRef,\n className: styles['VideoPlayer__container--small'],\n })\n\n const showControlsRow1 = showPlayPauseButton || showSeekControl\n const showControlsRow2 = showCCButton || showMuteButton || showVolumeControl || showFullScreenButton\n const showControlsBar = showControlsRow1 || showControlsRow2\n\n return (\n <div data-video-player-container className={styles.VideoPlayer__container} ref={fullscreenRef}>\n <div className={styles.VideoPlayer__overlayContainer}>\n <video\n ref={setVideoElementRef}\n title={title}\n controls={false}\n className={clsx(styles.VideoPlayer, className)}\n {...rest}\n >\n {children}\n <track kind=\"captions\" />\n </video>\n {showBranding || !visuallyHiddenTitle ? (\n <div className={clsx(styles.VideoPlayer__title, isPlaying && styles['VideoPlayer__title--hidden'])}>\n {showBranding && <MarkGithubIcon size={40} aria-label=\"GitHub logo\" />}\n {!visuallyHiddenTitle && (\n <Text size=\"400\" weight=\"medium\" className={styles.VideoPlayer__controlTextColor}>\n {title}\n </Text>\n )}\n </div>\n ) : null}\n <button\n className={clsx(\n styles.VideoPlayer__playButtonOverlay,\n isPlaying && styles['VideoPlayer__playButtonOverlay--transparent'],\n )}\n onClick={togglePlaying}\n aria-label={isPlaying ? 'Pause' : 'Play'}\n >\n {!isPlaying && <PlayIcon />}\n </button>\n </div>\n\n {ccEnabled && <Captions />}\n {showControlsBar && (\n <ControlsBar>\n {showControlsRow1 && (\n <div className={styles['VideoPlayer__controlsBar__row1']}>\n {showPlayPauseButton && <PlayPauseButton />}\n {showSeekControl && <SeekControl />}\n </div>\n )}\n {showControlsRow2 && (\n <div className={styles['VideoPlayer__controlsBar__row2']}>\n {showCCButton && <CCButton />}\n {showMuteButton && <MuteButton />}\n {showVolumeControl && !isSmall && <VolumeControl />}\n {showFullScreenButton && <FullScreenButton />}\n </div>\n )}\n </ControlsBar>\n )}\n </div>\n )\n },\n)\n\nfunction assignRef<T>(targetRef: React.RefObject<T> | React.Ref<T> | null | undefined, value: T | null) {\n if (!targetRef) return\n\n if (typeof targetRef === 'function') {\n targetRef(value)\n return\n }\n\n ;(targetRef as React.MutableRefObject<T | null>).current = value\n}\n\nconst VideoPlayerSource = (props: React.HTMLProps<HTMLSourceElement>) => <source {...props} />\n\nconst VideoPlayerTrack = ({kind = 'captions', ...rest}: React.HTMLProps<HTMLTrackElement>) => (\n <track kind={kind} {...rest} />\n)\n\nconst RootWithProvider = forwardRef<HTMLVideoElement, VideoPlayerProps>((props, ref) => {\n const context = useContext(VideoContext)\n\n return context ? (\n <Root ref={ref} {...props} />\n ) : (\n <VideoProvider>\n <Root ref={ref} {...props} />\n </VideoProvider>\n )\n})\n\nexport const VideoPlayer = Object.assign(RootWithProvider, {\n Source: VideoPlayerSource,\n Track: VideoPlayerTrack,\n Provider: VideoProvider,\n})\n"],"mappings":"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"}
|
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import './VideoPlayer.module-BpVcE2WB.css'
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import './VideoPlayer.module-BpVcE2WB.css';//#region src/VideoPlayer/VideoPlayer.module.css
|
|
2
|
+
var e = "Primer_Brand__VideoPlayer-module__VideoPlayer__container___zr6Iu", t = "Primer_Brand__VideoPlayer-module__VideoPlayer__overlayContainer___KADCQ", n = "Primer_Brand__VideoPlayer-module__VideoPlayer___GJSo9", r = "Primer_Brand__VideoPlayer-module__VideoPlayer__playButtonOverlay___uXPU2", i = "Primer_Brand__VideoPlayer-module__VideoPlayer__playButton___UmSvY", a = "Primer_Brand__VideoPlayer-module__VideoPlayer__title___3e5F_", o = "Primer_Brand__VideoPlayer-module__VideoPlayer__controlsBar___B_mfd", s = "Primer_Brand__VideoPlayer-module__VideoPlayer__controlsBar__row1___Vz_Zo", c = "Primer_Brand__VideoPlayer-module__VideoPlayer__controlsBar__row2___pzzds", l = "Primer_Brand__VideoPlayer-module__VideoPlayer__controls___FYZtO", u = "Primer_Brand__VideoPlayer-module__VideoPlayer__iconControl____tvm5", d = "Primer_Brand__VideoPlayer-module__VideoPlayer__closedCaption___ODIq4", f = "Primer_Brand__VideoPlayer-module__VideoPlayer__seek___OwcjI", p = "Primer_Brand__VideoPlayer-module__VideoPlayer__progressTime___9p6bX", m = "Primer_Brand__VideoPlayer-module__VideoPlayer__totalTime___5JBGC", h = "Primer_Brand__VideoPlayer-module__VideoPlayer__progressBar___86Eto", g = "Primer_Brand__VideoPlayer-module__VideoPlayer__ccOff___NHsg6", _ = "Primer_Brand__VideoPlayer-module__VideoPlayer__ccText___7TAGa", v = "Primer_Brand__VideoPlayer-module__VideoPlayer__range___h4_en", y = "Primer_Brand__VideoPlayer-module__VideoPlayer__rangeInput___ma_RQ", b = "Primer_Brand__VideoPlayer-module__VideoPlayer__rangeProgress___t_oOr", x = "Primer_Brand__VideoPlayer-module__VideoPlayer__tooltip___QrVwV", S = "Primer_Brand__VideoPlayer-module__VideoPlayer__tooltipContent___IOBAO", C = "Primer_Brand__VideoPlayer-module__VideoPlayer__tooltipText___SPfNc", w = "Primer_Brand__VideoPlayer-module__VideoPlayer__controlTextColor___Ih3yg", T = "Primer_Brand__VideoPlayer-module__VideoPlayer__seekTime___Wb0Ol", E = {
|
|
3
|
+
VideoPlayer__container: e,
|
|
4
|
+
VideoPlayer__overlayContainer: t,
|
|
5
|
+
VideoPlayer: n,
|
|
5
6
|
"VideoPlayer__container--fullscreen": "Primer_Brand__VideoPlayer-module__VideoPlayer__container--fullscreen___MChxa",
|
|
6
|
-
VideoPlayer__playButtonOverlay:
|
|
7
|
+
VideoPlayer__playButtonOverlay: r,
|
|
7
8
|
"VideoPlayer__playButtonOverlay--transparent": "Primer_Brand__VideoPlayer-module__VideoPlayer__playButtonOverlay--transparent___0UmfX",
|
|
8
|
-
VideoPlayer__playButton:
|
|
9
|
-
VideoPlayer__title:
|
|
9
|
+
VideoPlayer__playButton: i,
|
|
10
|
+
VideoPlayer__title: a,
|
|
10
11
|
"VideoPlayer__title--hidden": "Primer_Brand__VideoPlayer-module__VideoPlayer__title--hidden___t7cGG",
|
|
11
|
-
VideoPlayer__controlsBar:
|
|
12
|
-
VideoPlayer__controlsBar__row1:
|
|
13
|
-
VideoPlayer__controlsBar__row2:
|
|
14
|
-
VideoPlayer__controls:
|
|
15
|
-
VideoPlayer__iconControl:
|
|
16
|
-
VideoPlayer__closedCaption:
|
|
17
|
-
VideoPlayer__seek:
|
|
18
|
-
VideoPlayer__progressTime:
|
|
12
|
+
VideoPlayer__controlsBar: o,
|
|
13
|
+
VideoPlayer__controlsBar__row1: s,
|
|
14
|
+
VideoPlayer__controlsBar__row2: c,
|
|
15
|
+
VideoPlayer__controls: l,
|
|
16
|
+
VideoPlayer__iconControl: u,
|
|
17
|
+
VideoPlayer__closedCaption: d,
|
|
18
|
+
VideoPlayer__seek: f,
|
|
19
|
+
VideoPlayer__progressTime: p,
|
|
19
20
|
"VideoPlayer__container--small": "Primer_Brand__VideoPlayer-module__VideoPlayer__container--small___aQE4d",
|
|
20
|
-
VideoPlayer__totalTime:
|
|
21
|
-
VideoPlayer__progressBar:
|
|
22
|
-
VideoPlayer__ccOff:
|
|
23
|
-
VideoPlayer__ccText:
|
|
24
|
-
VideoPlayer__range:
|
|
25
|
-
VideoPlayer__rangeInput:
|
|
26
|
-
VideoPlayer__rangeProgress:
|
|
27
|
-
VideoPlayer__tooltip:
|
|
28
|
-
VideoPlayer__tooltipContent:
|
|
29
|
-
VideoPlayer__tooltipText:
|
|
21
|
+
VideoPlayer__totalTime: m,
|
|
22
|
+
VideoPlayer__progressBar: h,
|
|
23
|
+
VideoPlayer__ccOff: g,
|
|
24
|
+
VideoPlayer__ccText: _,
|
|
25
|
+
VideoPlayer__range: v,
|
|
26
|
+
VideoPlayer__rangeInput: y,
|
|
27
|
+
VideoPlayer__rangeProgress: b,
|
|
28
|
+
VideoPlayer__tooltip: x,
|
|
29
|
+
VideoPlayer__tooltipContent: S,
|
|
30
|
+
VideoPlayer__tooltipText: C,
|
|
30
31
|
"VideoPlayer__tooltip-visible": "Primer_Brand__VideoPlayer-module__VideoPlayer__tooltip-visible___nqoFm",
|
|
31
|
-
VideoPlayer__controlTextColor:
|
|
32
|
-
VideoPlayer__seekTime:
|
|
32
|
+
VideoPlayer__controlTextColor: w,
|
|
33
|
+
VideoPlayer__seekTime: T
|
|
33
34
|
};
|
|
34
35
|
//#endregion
|
|
35
|
-
export { e as default };
|
|
36
|
+
export { n as VideoPlayer, g as VideoPlayer__ccOff, _ as VideoPlayer__ccText, d as VideoPlayer__closedCaption, e as VideoPlayer__container, w as VideoPlayer__controlTextColor, l as VideoPlayer__controls, o as VideoPlayer__controlsBar, s as VideoPlayer__controlsBar__row1, c as VideoPlayer__controlsBar__row2, u as VideoPlayer__iconControl, t as VideoPlayer__overlayContainer, i as VideoPlayer__playButton, r as VideoPlayer__playButtonOverlay, h as VideoPlayer__progressBar, p as VideoPlayer__progressTime, v as VideoPlayer__range, y as VideoPlayer__rangeInput, b as VideoPlayer__rangeProgress, f as VideoPlayer__seek, T as VideoPlayer__seekTime, a as VideoPlayer__title, x as VideoPlayer__tooltip, S as VideoPlayer__tooltipContent, C as VideoPlayer__tooltipText, m as VideoPlayer__totalTime, E as default };
|
|
36
37
|
|
|
37
38
|
//# sourceMappingURL=VideoPlayer.module.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type HTMLAttributes } from 'react';
|
|
2
|
-
export declare const CCButton: ({ className, ...props }: HTMLAttributes<HTMLButtonElement>) =>
|
|
1
|
+
import React, { type HTMLAttributes } from 'react';
|
|
2
|
+
export declare const CCButton: ({ className, ...props }: HTMLAttributes<HTMLButtonElement>) => React.JSX.Element;
|
|
3
3
|
//# sourceMappingURL=CCButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CCButton.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/CCButton/CCButton.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"CCButton.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/CCButton/CCButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,cAAc,EAAC,MAAM,OAAO,CAAA;AAQhD,eAAO,MAAM,QAAQ,GAAI,yBAAuB,cAAc,CAAC,iBAAiB,CAAC,sBAoBhF,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from "../../../node_modules/clsx/dist/clsx.js";
|
|
1
|
+
import { clsx as e } from "../../../node_modules/clsx/dist/clsx.js";
|
|
2
2
|
import { Text as t } from "../../../Text/Text.js";
|
|
3
3
|
import n from "../../VideoPlayer.module.js";
|
|
4
4
|
import { useVideo as r } from "../../hooks/useVideo.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CCButton.js","names":[],"sources":["../../../../src/VideoPlayer/components/CCButton/CCButton.tsx"],"sourcesContent":["import React, {type HTMLAttributes} from 'react'\nimport {clsx} from 'clsx'\n\nimport {Text} from '../../../Text'\nimport styles from '../../VideoPlayer.module.css'\nimport {VideoTooltip} from '../'\nimport {useVideo} from '../../hooks/useVideo'\n\nexport const CCButton = ({className, ...props}: HTMLAttributes<HTMLButtonElement>) => {\n const {ccEnabled, toggleCC} = useVideo()\n\n return (\n <button\n className={clsx(\n className,\n styles.VideoPlayer__iconControl,\n styles.VideoPlayer__closedCaption,\n !ccEnabled && styles.VideoPlayer__ccOff,\n )}\n onClick={toggleCC}\n {...props}\n >\n <Text className={styles.VideoPlayer__ccText} aria-hidden=\"true\">\n CC\n </Text>\n <VideoTooltip>{ccEnabled ? 'Disable captions' : 'Enable captions'}</VideoTooltip>\n </button>\n )\n}\n"],"mappings":";;;;;;;;AAQA,IAAa,KAAY,EAAC,cAAW,GAAG,QAA8C;CACpF,IAAM,EAAC,cAAW,gBAAY,
|
|
1
|
+
{"version":3,"file":"CCButton.js","names":[],"sources":["../../../../src/VideoPlayer/components/CCButton/CCButton.tsx"],"sourcesContent":["import React, {type HTMLAttributes} from 'react'\nimport {clsx} from 'clsx'\n\nimport {Text} from '../../../Text'\nimport styles from '../../VideoPlayer.module.css'\nimport {VideoTooltip} from '../'\nimport {useVideo} from '../../hooks/useVideo'\n\nexport const CCButton = ({className, ...props}: HTMLAttributes<HTMLButtonElement>) => {\n const {ccEnabled, toggleCC} = useVideo()\n\n return (\n <button\n className={clsx(\n className,\n styles.VideoPlayer__iconControl,\n styles.VideoPlayer__closedCaption,\n !ccEnabled && styles.VideoPlayer__ccOff,\n )}\n onClick={toggleCC}\n {...props}\n >\n <Text className={styles.VideoPlayer__ccText} aria-hidden=\"true\">\n CC\n </Text>\n <VideoTooltip>{ccEnabled ? 'Disable captions' : 'Enable captions'}</VideoTooltip>\n </button>\n )\n}\n"],"mappings":";;;;;;;;AAQA,IAAa,KAAY,EAAC,cAAW,GAAG,QAA8C;CACpF,IAAM,EAAC,cAAW,gBAAY,EAAS;CAEvC,OACE,kBAAC,UAAD;EACE,WAAW,EACT,GACA,EAAO,0BACP,EAAO,4BACP,CAAC,KAAa,EAAO,kBACvB;EACA,SAAS;EACT,GAAI;YARN,CAUE,kBAAC,GAAD;GAAM,WAAW,EAAO;GAAqB,eAAY;aAAO;EAE1D,CAAA,GACN,kBAAC,GAAD,EAAA,UAAe,IAAY,qBAAqB,kBAAgC,CAAA,CAC1E;;AAEZ"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type HTMLAttributes } from 'react';
|
|
2
|
-
export declare const Captions: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) =>
|
|
1
|
+
import React, { type HTMLAttributes } from 'react';
|
|
2
|
+
export declare const Captions: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => React.JSX.Element | null;
|
|
3
3
|
//# sourceMappingURL=Captions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Captions.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/Captions/Captions.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"Captions.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/Captions/Captions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,cAAc,EAAsB,MAAM,OAAO,CAAA;AAOrE,eAAO,MAAM,QAAQ,GAAI,yBAAuB,cAAc,CAAC,cAAc,CAAC,6BA6C7E,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from "../../../node_modules/clsx/dist/clsx.js";
|
|
1
|
+
import { clsx as e } from "../../../node_modules/clsx/dist/clsx.js";
|
|
2
2
|
import { Text as t } from "../../../Text/Text.js";
|
|
3
3
|
import n from "./Captions.module.js";
|
|
4
4
|
import { useVideo as r } from "../../hooks/useVideo.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Captions.js","names":[],"sources":["../../../../src/VideoPlayer/components/Captions/Captions.tsx"],"sourcesContent":["import React, {type HTMLAttributes, useEffect, useState} from 'react'\nimport {clsx} from 'clsx'\n\nimport {Text} from '../../../Text'\nimport styles from './Captions.module.css'\nimport {useVideo} from '../../hooks/useVideo'\n\nexport const Captions = ({className, ...props}: HTMLAttributes<HTMLDivElement>) => {\n const [caption, setCaption] = useState('')\n const {ref} = useVideo()\n\n const videoRef = ref?.current\n const trackInformation = videoRef?.textTracks[0]?.cues\n\n useEffect(() => {\n if (!videoRef) {\n return\n }\n\n const compareAndSetCaption = () => {\n if (!trackInformation) {\n return\n }\n\n for (let i = 0; i < trackInformation.length; i++) {\n const cue = trackInformation[i]\n\n if (videoRef.currentTime >= cue.startTime && videoRef.currentTime < cue.endTime) {\n setCaption(cue['text'])\n break\n }\n\n setCaption('')\n }\n }\n\n videoRef.addEventListener('timeupdate', compareAndSetCaption)\n\n return () => videoRef.removeEventListener('timeupdate', compareAndSetCaption)\n }, [videoRef, trackInformation])\n\n if (!trackInformation) {\n return null\n }\n\n return (\n <div className={clsx(className, styles.Captions)} {...props}>\n <Text as=\"p\" className={styles.Captions__text} align=\"center\">\n {caption}\n </Text>\n </div>\n )\n}\n"],"mappings":";;;;;;;AAOA,IAAa,KAAY,EAAC,cAAW,GAAG,QAA2C;CACjF,IAAM,CAAC,GAAS,KAAc,EAAS,
|
|
1
|
+
{"version":3,"file":"Captions.js","names":[],"sources":["../../../../src/VideoPlayer/components/Captions/Captions.tsx"],"sourcesContent":["import React, {type HTMLAttributes, useEffect, useState} from 'react'\nimport {clsx} from 'clsx'\n\nimport {Text} from '../../../Text'\nimport styles from './Captions.module.css'\nimport {useVideo} from '../../hooks/useVideo'\n\nexport const Captions = ({className, ...props}: HTMLAttributes<HTMLDivElement>) => {\n const [caption, setCaption] = useState('')\n const {ref} = useVideo()\n\n const videoRef = ref?.current\n const trackInformation = videoRef?.textTracks[0]?.cues\n\n useEffect(() => {\n if (!videoRef) {\n return\n }\n\n const compareAndSetCaption = () => {\n if (!trackInformation) {\n return\n }\n\n for (let i = 0; i < trackInformation.length; i++) {\n const cue = trackInformation[i]\n\n if (videoRef.currentTime >= cue.startTime && videoRef.currentTime < cue.endTime) {\n setCaption(cue['text'])\n break\n }\n\n setCaption('')\n }\n }\n\n videoRef.addEventListener('timeupdate', compareAndSetCaption)\n\n return () => videoRef.removeEventListener('timeupdate', compareAndSetCaption)\n }, [videoRef, trackInformation])\n\n if (!trackInformation) {\n return null\n }\n\n return (\n <div className={clsx(className, styles.Captions)} {...props}>\n <Text as=\"p\" className={styles.Captions__text} align=\"center\">\n {caption}\n </Text>\n </div>\n )\n}\n"],"mappings":";;;;;;;AAOA,IAAa,KAAY,EAAC,cAAW,GAAG,QAA2C;CACjF,IAAM,CAAC,GAAS,KAAc,EAAS,EAAE,GACnC,EAAC,WAAO,EAAS,GAEjB,IAAW,GAAK,SAChB,IAAmB,GAAU,WAAW,EAAE,EAAE;CAiClD,OA/BA,QAAgB;EACd,IAAI,CAAC,GACH;EAGF,IAAM,UAA6B;GAC5B,OAIL,KAAK,IAAI,IAAI,GAAG,IAAI,EAAiB,QAAQ,KAAK;IAChD,IAAM,IAAM,EAAiB;IAE7B,IAAI,EAAS,eAAe,EAAI,aAAa,EAAS,cAAc,EAAI,SAAS;KAC/E,EAAW,EAAI,IAAO;KACtB;IACF;IAEA,EAAW,EAAE;GACf;EACF;EAIA,OAFA,EAAS,iBAAiB,cAAc,CAAoB,SAE/C,EAAS,oBAAoB,cAAc,CAAoB;CAC9E,GAAG,CAAC,GAAU,CAAgB,CAAC,GAE1B,IAKH,kBAAC,OAAD;EAAK,WAAW,EAAK,GAAW,EAAO,QAAQ;EAAG,GAAI;YACpD,kBAAC,GAAD;GAAM,IAAG;GAAI,WAAW,EAAO;GAAgB,OAAM;aAClD;EACG,CAAA;CACH,CAAA,IARE;AAUX"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import './Captions.module-CvaHeR3V.css'
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import './Captions.module-CvaHeR3V.css';//#region src/VideoPlayer/components/Captions/Captions.module.css
|
|
2
|
+
var e = "Primer_Brand__Captions-module__Captions___5Wpoz", t = "Primer_Brand__Captions-module__Captions__text___lrxrJ", n = {
|
|
3
|
+
Captions: e,
|
|
4
|
+
Captions__text: t
|
|
4
5
|
};
|
|
5
6
|
//#endregion
|
|
6
|
-
export { e as default };
|
|
7
|
+
export { e as Captions, t as Captions__text, n as default };
|
|
7
8
|
|
|
8
9
|
//# sourceMappingURL=Captions.module.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type HTMLAttributes } from 'react';
|
|
1
|
+
import React, { type HTMLAttributes } from 'react';
|
|
2
2
|
export type ControlsBarProps = HTMLAttributes<HTMLDivElement>;
|
|
3
|
-
export declare const ControlsBar: ({ className, ...rest }: ControlsBarProps) =>
|
|
3
|
+
export declare const ControlsBar: ({ className, ...rest }: ControlsBarProps) => React.JSX.Element;
|
|
4
4
|
//# sourceMappingURL=ControlsBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlsBar.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/ControlsBar/ControlsBar.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"ControlsBar.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/ControlsBar/ControlsBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,cAAc,EAAC,MAAM,OAAO,CAAA;AAKhD,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAA;AAE7D,eAAO,MAAM,WAAW,GAAI,wBAAsB,gBAAgB,sBAEjE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlsBar.js","names":[],"sources":["../../../../src/VideoPlayer/components/ControlsBar/ControlsBar.tsx"],"sourcesContent":["import React, {type HTMLAttributes} from 'react'\nimport {clsx} from 'clsx'\n\nimport styles from '../../VideoPlayer.module.css'\n\nexport type ControlsBarProps = HTMLAttributes<HTMLDivElement>\n\nexport const ControlsBar = ({className, ...rest}: ControlsBarProps) => (\n <div className={clsx(styles.VideoPlayer__controlsBar, className)} {...rest} />\n)\n"],"mappings":";;;;;AAOA,IAAa,KAAe,EAAC,cAAW,GAAG,QACzC,kBAAC,OAAD;CAAK,WAAW,EAAK,EAAO,0BAA0B,
|
|
1
|
+
{"version":3,"file":"ControlsBar.js","names":[],"sources":["../../../../src/VideoPlayer/components/ControlsBar/ControlsBar.tsx"],"sourcesContent":["import React, {type HTMLAttributes} from 'react'\nimport {clsx} from 'clsx'\n\nimport styles from '../../VideoPlayer.module.css'\n\nexport type ControlsBarProps = HTMLAttributes<HTMLDivElement>\n\nexport const ControlsBar = ({className, ...rest}: ControlsBarProps) => (\n <div className={clsx(styles.VideoPlayer__controlsBar, className)} {...rest} />\n)\n"],"mappings":";;;;;AAOA,IAAa,KAAe,EAAC,cAAW,GAAG,QACzC,kBAAC,OAAD;CAAK,WAAW,EAAK,EAAO,0BAA0B,CAAS;CAAG,GAAI;AAAO,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type HTMLAttributes } from 'react';
|
|
2
|
-
export declare const FullScreenButton: (props: HTMLAttributes<HTMLButtonElement>) =>
|
|
1
|
+
import React, { type HTMLAttributes } from 'react';
|
|
2
|
+
export declare const FullScreenButton: (props: HTMLAttributes<HTMLButtonElement>) => React.JSX.Element;
|
|
3
3
|
//# sourceMappingURL=FullScreenButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FullScreenButton.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/FullScreenButton/FullScreenButton.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"FullScreenButton.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/FullScreenButton/FullScreenButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,cAAc,EAAC,MAAM,OAAO,CAAA;AAMhD,eAAO,MAAM,gBAAgB,GAAI,OAAO,cAAc,CAAC,iBAAiB,CAAC,sBAOxE,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ScreenFullIcon as e
|
|
1
|
+
import { ScreenFullIcon as e } from "../../../node_modules/@primer/octicons-react/dist/icons/ScreenFullIcon.js";
|
|
2
|
+
import { ScreenNormalIcon as t } from "../../../node_modules/@primer/octicons-react/dist/icons/ScreenNormalIcon.js";
|
|
2
3
|
import { useVideo as n } from "../../hooks/useVideo.js";
|
|
3
4
|
import { IconControl as r } from "../IconControl/IconControl.js";
|
|
4
5
|
import "react";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FullScreenButton.js","names":[],"sources":["../../../../src/VideoPlayer/components/FullScreenButton/FullScreenButton.tsx"],"sourcesContent":["import React, {type HTMLAttributes} from 'react'\nimport {ScreenFullIcon, ScreenNormalIcon} from '@primer/octicons-react'\n\nimport {IconControl} from '../'\nimport {useVideo} from '../../hooks'\n\nexport const FullScreenButton = (props: HTMLAttributes<HTMLButtonElement>) => {\n const {isFullScreen, toggleFullScreen} = useVideo()\n return (\n <IconControl onClick={toggleFullScreen} tooltip={isFullScreen ? 'Exit full screen' : 'Full screen'} {...props}>\n {isFullScreen ? <ScreenNormalIcon size={24} /> : <ScreenFullIcon size={24} />}\n </IconControl>\n )\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"FullScreenButton.js","names":[],"sources":["../../../../src/VideoPlayer/components/FullScreenButton/FullScreenButton.tsx"],"sourcesContent":["import React, {type HTMLAttributes} from 'react'\nimport {ScreenFullIcon, ScreenNormalIcon} from '@primer/octicons-react'\n\nimport {IconControl} from '../'\nimport {useVideo} from '../../hooks'\n\nexport const FullScreenButton = (props: HTMLAttributes<HTMLButtonElement>) => {\n const {isFullScreen, toggleFullScreen} = useVideo()\n return (\n <IconControl onClick={toggleFullScreen} tooltip={isFullScreen ? 'Exit full screen' : 'Full screen'} {...props}>\n {isFullScreen ? <ScreenNormalIcon size={24} /> : <ScreenFullIcon size={24} />}\n </IconControl>\n )\n}\n"],"mappings":";;;;;;;AAMA,IAAa,KAAoB,MAA6C;CAC5E,IAAM,EAAC,iBAAc,wBAAoB,EAAS;CAClD,OACE,kBAAC,GAAD;EAAa,SAAS;EAAkB,SAAS,IAAe,qBAAqB;EAAe,GAAI;YACtF,EAAf,IAAgB,IAAiC,GAAlC,EAAkB,MAAM,GAAK,CAA+B;CACjE,CAAA;AAEjB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type HTMLAttributes } from 'react';
|
|
1
|
+
import React, { type HTMLAttributes } from 'react';
|
|
2
2
|
type IconControlProps = {
|
|
3
3
|
tooltip: string;
|
|
4
4
|
} & HTMLAttributes<HTMLButtonElement>;
|
|
5
|
-
export declare const IconControl: ({ tooltip, children, className, ...rest }: IconControlProps) =>
|
|
5
|
+
export declare const IconControl: ({ tooltip, children, className, ...rest }: IconControlProps) => React.JSX.Element;
|
|
6
6
|
export {};
|
|
7
7
|
//# sourceMappingURL=IconControl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconControl.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/IconControl/IconControl.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"IconControl.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/IconControl/IconControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,cAAc,EAAC,MAAM,OAAO,CAAA;AAMhD,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,MAAM,CAAA;CAChB,GAAG,cAAc,CAAC,iBAAiB,CAAC,CAAA;AAErC,eAAO,MAAM,WAAW,GAAI,2CAAyC,gBAAgB,sBAKpF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconControl.js","names":[],"sources":["../../../../src/VideoPlayer/components/IconControl/IconControl.tsx"],"sourcesContent":["import React, {type HTMLAttributes} from 'react'\nimport {clsx} from 'clsx'\n\nimport {VideoTooltip} from '../'\nimport styles from '../../VideoPlayer.module.css'\n\ntype IconControlProps = {\n tooltip: string\n} & HTMLAttributes<HTMLButtonElement>\n\nexport const IconControl = ({tooltip, children, className, ...rest}: IconControlProps) => (\n <button className={clsx(styles.VideoPlayer__iconControl, className)} {...rest}>\n {children}\n <VideoTooltip>{tooltip}</VideoTooltip>\n </button>\n)\n"],"mappings":";;;;;;AAUA,IAAa,KAAe,EAAC,YAAS,aAAU,cAAW,GAAG,QAC5D,kBAAC,UAAD;CAAQ,WAAW,EAAK,EAAO,0BAA0B,
|
|
1
|
+
{"version":3,"file":"IconControl.js","names":[],"sources":["../../../../src/VideoPlayer/components/IconControl/IconControl.tsx"],"sourcesContent":["import React, {type HTMLAttributes} from 'react'\nimport {clsx} from 'clsx'\n\nimport {VideoTooltip} from '../'\nimport styles from '../../VideoPlayer.module.css'\n\ntype IconControlProps = {\n tooltip: string\n} & HTMLAttributes<HTMLButtonElement>\n\nexport const IconControl = ({tooltip, children, className, ...rest}: IconControlProps) => (\n <button className={clsx(styles.VideoPlayer__iconControl, className)} {...rest}>\n {children}\n <VideoTooltip>{tooltip}</VideoTooltip>\n </button>\n)\n"],"mappings":";;;;;;AAUA,IAAa,KAAe,EAAC,YAAS,aAAU,cAAW,GAAG,QAC5D,kBAAC,UAAD;CAAQ,WAAW,EAAK,EAAO,0BAA0B,CAAS;CAAG,GAAI;WAAzE,CACG,GACD,kBAAC,GAAD,EAAA,UAAe,EAAsB,CAAA,CAC/B"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type HTMLAttributes } from 'react';
|
|
2
|
-
export declare const MuteButton: (props: HTMLAttributes<HTMLButtonElement>) =>
|
|
1
|
+
import React, { type HTMLAttributes } from 'react';
|
|
2
|
+
export declare const MuteButton: (props: HTMLAttributes<HTMLButtonElement>) => React.JSX.Element;
|
|
3
3
|
//# sourceMappingURL=MuteButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MuteButton.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/MuteButton/MuteButton.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"MuteButton.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/MuteButton/MuteButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,cAAc,EAAC,MAAM,OAAO,CAAA;AAMhD,eAAO,MAAM,UAAU,GAAI,OAAO,cAAc,CAAC,iBAAiB,CAAC,sBAOlE,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { MuteIcon as e
|
|
1
|
+
import { MuteIcon as e } from "../../../node_modules/@primer/octicons-react/dist/icons/MuteIcon.js";
|
|
2
|
+
import { UnmuteIcon as t } from "../../../node_modules/@primer/octicons-react/dist/icons/UnmuteIcon.js";
|
|
2
3
|
import { useVideo as n } from "../../hooks/useVideo.js";
|
|
3
4
|
import { IconControl as r } from "../IconControl/IconControl.js";
|
|
4
5
|
import "react";
|