@primer/react-brand 0.68.0-rc.59bbed40 → 0.68.0-rc.5bd56cbb
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/esm/Accordion/Accordion.d.ts +50 -0
- package/esm/Accordion/Accordion.d.ts.map +1 -0
- package/esm/Accordion/Accordion.js +79 -0
- package/esm/Accordion/Accordion.js.map +1 -0
- package/esm/Accordion/Accordion.module-D4diKFGj.css +1 -0
- package/esm/Accordion/Accordion.module.js +36 -0
- package/esm/Accordion/Accordion.module.js.map +1 -0
- package/esm/Accordion/index.d.ts +2 -0
- package/esm/Accordion/index.d.ts.map +1 -0
- package/esm/ActionMenu/ActionMenu.d.ts +159 -0
- package/esm/ActionMenu/ActionMenu.d.ts.map +1 -0
- package/esm/ActionMenu/ActionMenu.js +292 -0
- package/esm/ActionMenu/ActionMenu.js.map +1 -0
- package/esm/ActionMenu/ActionMenu.module-Km0HNn_2.css +1 -0
- package/esm/ActionMenu/ActionMenu.module.js +36 -0
- package/esm/ActionMenu/ActionMenu.module.js.map +1 -0
- package/esm/ActionMenu/index.d.ts +2 -0
- package/esm/ActionMenu/index.d.ts.map +1 -0
- package/esm/AnchorNav/AnchorNav.d.ts +75 -0
- package/esm/AnchorNav/AnchorNav.d.ts.map +1 -0
- package/esm/AnchorNav/AnchorNav.js +225 -0
- package/esm/AnchorNav/AnchorNav.js.map +1 -0
- package/esm/AnchorNav/AnchorNav.module-33_8-9r9.css +1 -0
- package/esm/AnchorNav/AnchorNav.module.js +29 -0
- package/esm/AnchorNav/AnchorNav.module.js.map +1 -0
- package/esm/AnchorNav/index.d.ts +2 -0
- package/esm/AnchorNav/index.d.ts.map +1 -0
- package/esm/AnchorNav/useExpandedMenu.d.ts +3 -0
- package/esm/AnchorNav/useExpandedMenu.d.ts.map +1 -0
- package/esm/AnchorNav/useExpandedMenu.js +33 -0
- package/esm/AnchorNav/useExpandedMenu.js.map +1 -0
- package/esm/Avatar/Avatar.d.ts +25 -0
- package/esm/Avatar/Avatar.d.ts.map +1 -0
- package/esm/Avatar/Avatar.js +35 -0
- package/esm/Avatar/Avatar.js.map +1 -0
- package/esm/Avatar/Avatar.module-DzfWmLu4.css +1 -0
- package/esm/Avatar/Avatar.module.js +28 -0
- package/esm/Avatar/Avatar.module.js.map +1 -0
- package/esm/Avatar/index.d.ts +2 -0
- package/esm/Avatar/index.d.ts.map +1 -0
- package/esm/Bento/Bento.d.ts +60 -0
- package/esm/Bento/Bento.d.ts.map +1 -0
- package/esm/Bento/Bento.js +109 -0
- package/esm/Bento/Bento.js.map +1 -0
- package/esm/Bento/Bento.module-4fhgWKyL.css +1 -0
- package/esm/Bento/Bento.module.js +456 -0
- package/esm/Bento/Bento.module.js.map +1 -0
- package/esm/Bento/index.d.ts +2 -0
- package/esm/Bento/index.d.ts.map +1 -0
- package/esm/Box/Box.d.ts +87 -0
- package/esm/Box/Box.d.ts.map +1 -0
- package/esm/Box/Box.js +51 -0
- package/esm/Box/Box.js.map +1 -0
- package/esm/Box/Box.module-BgKMrzcY.css +1 -0
- package/esm/Box/Box.module.js +928 -0
- package/esm/Box/Box.module.js.map +1 -0
- package/esm/Box/index.d.ts +2 -0
- package/esm/Box/index.d.ts.map +1 -0
- package/esm/Breadcrumbs/Breadcrumbs.d.ts +23 -0
- package/esm/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/esm/Breadcrumbs/Breadcrumbs.js +38 -0
- package/esm/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/esm/Breadcrumbs/Breadcrumbs.module-C-xmitEo.css +1 -0
- package/esm/Breadcrumbs/Breadcrumbs.module.js +12 -0
- package/esm/Breadcrumbs/Breadcrumbs.module.js.map +1 -0
- package/esm/Breadcrumbs/index.d.ts +2 -0
- package/esm/Breadcrumbs/index.d.ts.map +1 -0
- package/esm/BreakoutBanner/BreakoutBanner.d.ts +59 -0
- package/esm/BreakoutBanner/BreakoutBanner.d.ts.map +1 -0
- package/esm/BreakoutBanner/BreakoutBanner.js +96 -0
- package/esm/BreakoutBanner/BreakoutBanner.js.map +1 -0
- package/esm/BreakoutBanner/BreakoutBanner.module-DGBSJFNJ.css +1 -0
- package/esm/BreakoutBanner/BreakoutBanner.module.js +15 -0
- package/esm/BreakoutBanner/BreakoutBanner.module.js.map +1 -0
- package/esm/BreakoutBanner/index.d.ts +2 -0
- package/esm/BreakoutBanner/index.d.ts.map +1 -0
- package/esm/Button/Button.d.ts +49 -0
- package/esm/Button/Button.d.ts.map +1 -0
- package/esm/Button/Button.js +101 -0
- package/esm/Button/Button.js.map +1 -0
- package/esm/Button/Button.module-ryfDlr26.css +1 -0
- package/esm/Button/Button.module.js +31 -0
- package/esm/Button/Button.module.js.map +1 -0
- package/esm/Button/index.d.ts +2 -0
- package/esm/Button/index.d.ts.map +1 -0
- package/esm/ButtonGroup/ButtonGroup.d.ts +11 -0
- package/esm/ButtonGroup/ButtonGroup.d.ts.map +1 -0
- package/esm/ButtonGroup/ButtonGroup.js +24 -0
- package/esm/ButtonGroup/ButtonGroup.js.map +1 -0
- package/esm/ButtonGroup/ButtonGroup.module-wZYyupar.css +1 -0
- package/esm/ButtonGroup/ButtonGroup.module.js +5 -0
- package/esm/ButtonGroup/ButtonGroup.module.js.map +1 -0
- package/esm/ButtonGroup/index.d.ts +2 -0
- package/esm/ButtonGroup/index.d.ts.map +1 -0
- package/esm/CTABanner/CTABanner.d.ts +100 -0
- package/esm/CTABanner/CTABanner.d.ts.map +1 -0
- package/esm/CTABanner/CTABanner.js +139 -0
- package/esm/CTABanner/CTABanner.js.map +1 -0
- package/esm/CTABanner/CTABanner.module-BTMGYz51.css +1 -0
- package/esm/CTABanner/CTABanner.module.js +27 -0
- package/esm/CTABanner/CTABanner.module.js.map +1 -0
- package/esm/CTABanner/index.d.ts +2 -0
- package/esm/CTABanner/index.d.ts.map +1 -0
- package/esm/CTAForm/CTAForm.d.ts +7 -0
- package/esm/CTAForm/CTAForm.d.ts.map +1 -0
- package/esm/CTAForm/CTAForm.js +51 -0
- package/esm/CTAForm/CTAForm.js.map +1 -0
- package/esm/CTAForm/CTAForm.module-Nf5sHaJq.css +1 -0
- package/esm/CTAForm/CTAForm.module.js +10 -0
- package/esm/CTAForm/CTAForm.module.js.map +1 -0
- package/esm/CTAForm/index.d.ts +2 -0
- package/esm/CTAForm/index.d.ts.map +1 -0
- package/esm/Card/Card.d.ts +107 -0
- package/esm/Card/Card.d.ts.map +1 -0
- package/esm/Card/Card.js +150 -0
- package/esm/Card/Card.js.map +1 -0
- package/esm/Card/Card.module-OxFQdnTA.css +1 -0
- package/esm/Card/Card.module.js +41 -0
- package/esm/Card/Card.module.js.map +1 -0
- package/esm/Card/CardSkewEffect.d.ts +9 -0
- package/esm/Card/CardSkewEffect.d.ts.map +1 -0
- package/esm/Card/CardSkewEffect.js +42 -0
- package/esm/Card/CardSkewEffect.js.map +1 -0
- package/esm/Card/index.d.ts +3 -0
- package/esm/Card/index.d.ts.map +1 -0
- package/esm/ComparisonTable/ComparisonTable.d.ts +34 -0
- package/esm/ComparisonTable/ComparisonTable.d.ts.map +1 -0
- package/esm/ComparisonTable/ComparisonTable.js +102 -0
- package/esm/ComparisonTable/ComparisonTable.js.map +1 -0
- package/esm/ComparisonTable/ComparisonTable.module-CUq68rV0.css +1 -0
- package/esm/ComparisonTable/ComparisonTable.module.js +20 -0
- package/esm/ComparisonTable/ComparisonTable.module.js.map +1 -0
- package/esm/ComparisonTable/index.d.ts +2 -0
- package/esm/ComparisonTable/index.d.ts.map +1 -0
- package/esm/ExpandableArrow/ExpandableArrow.d.ts +10 -0
- package/esm/ExpandableArrow/ExpandableArrow.d.ts.map +1 -0
- package/esm/ExpandableArrow/ExpandableArrow.js +31 -0
- package/esm/ExpandableArrow/ExpandableArrow.js.map +1 -0
- package/esm/ExpandableArrow/ExpandableArrow.module-hRhRe88K.css +1 -0
- package/esm/ExpandableArrow/ExpandableArrow.module.js +11 -0
- package/esm/ExpandableArrow/ExpandableArrow.module.js.map +1 -0
- package/esm/ExpandableArrow/index.d.ts +2 -0
- package/esm/ExpandableArrow/index.d.ts.map +1 -0
- package/esm/EyebrowBanner/EyebrowBanner.d.ts +50 -0
- package/esm/EyebrowBanner/EyebrowBanner.d.ts.map +1 -0
- package/esm/EyebrowBanner/EyebrowBanner.js +120 -0
- package/esm/EyebrowBanner/EyebrowBanner.js.map +1 -0
- package/esm/EyebrowBanner/EyebrowBanner.module-C8hfGfYx.css +1 -0
- package/esm/EyebrowBanner/EyebrowBanner.module.js +49 -0
- package/esm/EyebrowBanner/EyebrowBanner.module.js.map +1 -0
- package/esm/EyebrowBanner/index.d.ts +2 -0
- package/esm/EyebrowBanner/index.d.ts.map +1 -0
- package/esm/EyebrowText/EyebrowText.d.ts +18 -0
- package/esm/EyebrowText/EyebrowText.d.ts.map +1 -0
- package/esm/EyebrowText/EyebrowText.js +27 -0
- package/esm/EyebrowText/EyebrowText.js.map +1 -0
- package/esm/EyebrowText/EyebrowText.module-DRReWOj8.css +1 -0
- package/esm/EyebrowText/EyebrowText.module.js +8 -0
- package/esm/EyebrowText/EyebrowText.module.js.map +1 -0
- package/esm/EyebrowText/index.d.ts +2 -0
- package/esm/EyebrowText/index.d.ts.map +1 -0
- package/esm/FAQ/FAQ.d.ts +45 -0
- package/esm/FAQ/FAQ.d.ts.map +1 -0
- package/esm/FAQ/FAQ.js +71 -0
- package/esm/FAQ/FAQ.js.map +1 -0
- package/esm/FAQ/FAQ.module-C8rxdU0Z.css +1 -0
- package/esm/FAQ/FAQ.module.js +16 -0
- package/esm/FAQ/FAQ.module.js.map +1 -0
- package/esm/FAQ/FAQGroup.d.ts +25 -0
- package/esm/FAQ/FAQGroup.d.ts.map +1 -0
- package/esm/FAQ/FAQGroup.js +146 -0
- package/esm/FAQ/FAQGroup.js.map +1 -0
- package/esm/FAQ/FAQGroup.module-qm5jP0zF.css +1 -0
- package/esm/FAQ/FAQGroup.module.js +20 -0
- package/esm/FAQ/FAQGroup.module.js.map +1 -0
- package/esm/FAQ/index.d.ts +3 -0
- package/esm/FAQ/index.d.ts.map +1 -0
- package/esm/Footnotes/Footnotes.d.ts +32 -0
- package/esm/Footnotes/Footnotes.d.ts.map +1 -0
- package/esm/Footnotes/Footnotes.js +70 -0
- package/esm/Footnotes/Footnotes.js.map +1 -0
- package/esm/Footnotes/Footnotes.module-Du0yaz7E.css +1 -0
- package/esm/Footnotes/Footnotes.module.js +11 -0
- package/esm/Footnotes/Footnotes.module.js.map +1 -0
- package/esm/Footnotes/index.d.ts +2 -0
- package/esm/Footnotes/index.d.ts.map +1 -0
- package/esm/FrostedGlassVFX/FrostedGlassVFX.d.ts +26 -0
- package/esm/FrostedGlassVFX/FrostedGlassVFX.d.ts.map +1 -0
- package/esm/FrostedGlassVFX/FrostedGlassVFX.js +23 -0
- package/esm/FrostedGlassVFX/FrostedGlassVFX.js.map +1 -0
- package/esm/FrostedGlassVFX/FrostedGlassVFX.module-CBwswPOI.css +1 -0
- package/esm/FrostedGlassVFX/FrostedGlassVFX.module.js +11 -0
- package/esm/FrostedGlassVFX/FrostedGlassVFX.module.js.map +1 -0
- package/esm/FrostedGlassVFX/index.d.ts +2 -0
- package/esm/FrostedGlassVFX/index.d.ts.map +1 -0
- package/esm/Grid/Grid.d.ts +103 -0
- package/esm/Grid/Grid.d.ts.map +1 -0
- package/esm/Grid/Grid.js +43 -0
- package/esm/Grid/Grid.js.map +1 -0
- package/esm/Grid/Grid.module-wbqYcimR.css +1 -0
- package/esm/Grid/Grid.module.js +183 -0
- package/esm/Grid/Grid.module.js.map +1 -0
- package/esm/Grid/index.d.ts +2 -0
- package/esm/Grid/index.d.ts.map +1 -0
- package/esm/Heading/Heading.d.ts +50 -0
- package/esm/Heading/Heading.d.ts.map +1 -0
- package/esm/Heading/Heading.js +68 -0
- package/esm/Heading/Heading.js.map +1 -0
- package/esm/Heading/Heading.module-YfiTxQkR.css +1 -0
- package/esm/Heading/Heading.module.js +78 -0
- package/esm/Heading/Heading.module.js.map +1 -0
- package/esm/Heading/index.d.ts +2 -0
- package/esm/Heading/index.d.ts.map +1 -0
- package/esm/Hero/Hero.d.ts +199 -0
- package/esm/Hero/Hero.d.ts.map +1 -0
- package/esm/Hero/Hero.figma.d.ts +2 -0
- package/esm/Hero/Hero.figma.d.ts.map +1 -0
- package/esm/Hero/Hero.js +174 -0
- package/esm/Hero/Hero.js.map +1 -0
- package/esm/Hero/Hero.module-b8OFm8Ci.css +1 -0
- package/esm/Hero/Hero.module.js +57 -0
- package/esm/Hero/Hero.module.js.map +1 -0
- package/esm/Hero/HeroContext.d.ts +35 -0
- package/esm/Hero/HeroContext.d.ts.map +1 -0
- package/esm/Hero/HeroContext.js +17 -0
- package/esm/Hero/HeroContext.js.map +1 -0
- package/esm/Hero/index.d.ts +2 -0
- package/esm/Hero/index.d.ts.map +1 -0
- package/esm/Hero/sub-components/HeroDescription.d.ts +88 -0
- package/esm/Hero/sub-components/HeroDescription.d.ts.map +1 -0
- package/esm/Hero/sub-components/HeroDescription.js +28 -0
- package/esm/Hero/sub-components/HeroDescription.js.map +1 -0
- package/esm/Hero/sub-components/HeroEyebrow.d.ts +5 -0
- package/esm/Hero/sub-components/HeroEyebrow.d.ts.map +1 -0
- package/esm/Hero/sub-components/HeroEyebrow.js +15 -0
- package/esm/Hero/sub-components/HeroEyebrow.js.map +1 -0
- package/esm/Hero/sub-components/HeroHeading.d.ts +6 -0
- package/esm/Hero/sub-components/HeroHeading.d.ts.map +1 -0
- package/esm/Hero/sub-components/HeroHeading.js +28 -0
- package/esm/Hero/sub-components/HeroHeading.js.map +1 -0
- package/esm/Hero/sub-components/HeroImage.d.ts +39 -0
- package/esm/Hero/sub-components/HeroImage.d.ts.map +1 -0
- package/esm/Hero/sub-components/HeroImage.js +24 -0
- package/esm/Hero/sub-components/HeroImage.js.map +1 -0
- package/esm/Hero/sub-components/HeroLabel.d.ts +8 -0
- package/esm/Hero/sub-components/HeroLabel.d.ts.map +1 -0
- package/esm/Hero/sub-components/HeroLabel.js +25 -0
- package/esm/Hero/sub-components/HeroLabel.js.map +1 -0
- package/esm/Hero/sub-components/HeroPrimaryAction.d.ts +29 -0
- package/esm/Hero/sub-components/HeroPrimaryAction.d.ts.map +1 -0
- package/esm/Hero/sub-components/HeroPrimaryAction.js +29 -0
- package/esm/Hero/sub-components/HeroPrimaryAction.js.map +1 -0
- package/esm/Hero/sub-components/HeroSecondaryAction.d.ts +29 -0
- package/esm/Hero/sub-components/HeroSecondaryAction.d.ts.map +1 -0
- package/esm/Hero/sub-components/HeroSecondaryAction.js +29 -0
- package/esm/Hero/sub-components/HeroSecondaryAction.js.map +1 -0
- package/esm/Hero/sub-components/HeroVideo.d.ts +41 -0
- package/esm/Hero/sub-components/HeroVideo.d.ts.map +1 -0
- package/esm/Hero/sub-components/HeroVideo.js +60 -0
- package/esm/Hero/sub-components/HeroVideo.js.map +1 -0
- package/esm/Hero/sub-components/index.d.ts +17 -0
- package/esm/Hero/sub-components/index.d.ts.map +1 -0
- package/esm/IDE/IDE.d.ts +164 -0
- package/esm/IDE/IDE.d.ts.map +1 -0
- package/esm/IDE/IDE.js +395 -0
- package/esm/IDE/IDE.js.map +1 -0
- package/esm/IDE/IDE.module-CFxIRObF.css +1 -0
- package/esm/IDE/IDE.module.js +44 -0
- package/esm/IDE/IDE.module.js.map +1 -0
- package/esm/IDE/fixtures/content.d.ts +7 -0
- package/esm/IDE/fixtures/content.d.ts.map +1 -0
- package/esm/IDE/index.d.ts +2 -0
- package/esm/IDE/index.d.ts.map +1 -0
- package/esm/Icon/Icon.d.ts +23 -0
- package/esm/Icon/Icon.d.ts.map +1 -0
- package/esm/Icon/Icon.js +41 -0
- package/esm/Icon/Icon.js.map +1 -0
- package/esm/Icon/Icon.module-C1_lP1JO.css +1 -0
- package/esm/Icon/Icon.module.js +43 -0
- package/esm/Icon/Icon.module.js.map +1 -0
- package/esm/Icon/index.d.ts +2 -0
- package/esm/Icon/index.d.ts.map +1 -0
- package/esm/Image/Image.d.ts +25 -0
- package/esm/Image/Image.d.ts.map +1 -0
- package/esm/Image/Image.js +80 -0
- package/esm/Image/Image.js.map +1 -0
- package/esm/Image/Image.module-BPflj1a0.css +1 -0
- package/esm/Image/Image.module.js +18 -0
- package/esm/Image/Image.module.js.map +1 -0
- package/esm/Image/index.d.ts +2 -0
- package/esm/Image/index.d.ts.map +1 -0
- package/esm/InlineLink/InlineLink.d.ts +18 -0
- package/esm/InlineLink/InlineLink.d.ts.map +1 -0
- package/esm/InlineLink/InlineLink.js +18 -0
- package/esm/InlineLink/InlineLink.js.map +1 -0
- package/esm/InlineLink/InlineLink.module-6R63us8B.css +1 -0
- package/esm/InlineLink/InlineLink.module.js +5 -0
- package/esm/InlineLink/InlineLink.module.js.map +1 -0
- package/esm/InlineLink/index.d.ts +2 -0
- package/esm/InlineLink/index.d.ts.map +1 -0
- package/esm/LICENSE +21 -0
- package/esm/Label/Label.d.ts +37 -0
- package/esm/Label/Label.d.ts.map +1 -0
- package/esm/Label/Label.js +49 -0
- package/esm/Label/Label.js.map +1 -0
- package/esm/Label/Label.module-DDkalJAE.css +1 -0
- package/esm/Label/Label.module.js +35 -0
- package/esm/Label/Label.module.js.map +1 -0
- package/esm/Label/index.d.ts +2 -0
- package/esm/Label/index.d.ts.map +1 -0
- package/esm/Link/Link.d.ts +29 -0
- package/esm/Link/Link.d.ts.map +1 -0
- package/esm/Link/Link.js +63 -0
- package/esm/Link/Link.js.map +1 -0
- package/esm/Link/Link.module-CiGiy5gk.css +1 -0
- package/esm/Link/Link.module.js +15 -0
- package/esm/Link/Link.module.js.map +1 -0
- package/esm/Link/index.d.ts +2 -0
- package/esm/Link/index.d.ts.map +1 -0
- package/esm/LogoSuite/LogoSuite.d.ts +139 -0
- package/esm/LogoSuite/LogoSuite.d.ts.map +1 -0
- package/esm/LogoSuite/LogoSuite.figma.d.ts +2 -0
- package/esm/LogoSuite/LogoSuite.figma.d.ts.map +1 -0
- package/esm/LogoSuite/LogoSuite.fixtures.d.ts +2 -0
- package/esm/LogoSuite/LogoSuite.fixtures.d.ts.map +1 -0
- package/esm/LogoSuite/LogoSuite.js +146 -0
- package/esm/LogoSuite/LogoSuite.js.map +1 -0
- package/esm/LogoSuite/LogoSuite.module-CWV4mJoG.css +1 -0
- package/esm/LogoSuite/LogoSuite.module.js +35 -0
- package/esm/LogoSuite/LogoSuite.module.js.map +1 -0
- package/esm/LogoSuite/index.d.ts +2 -0
- package/esm/LogoSuite/index.d.ts.map +1 -0
- package/esm/MinimalFooter/MinimalFooter.d.ts +96 -0
- package/esm/MinimalFooter/MinimalFooter.d.ts.map +1 -0
- package/esm/MinimalFooter/MinimalFooter.js +211 -0
- package/esm/MinimalFooter/MinimalFooter.js.map +1 -0
- package/esm/MinimalFooter/MinimalFooter.module-DPMYigso.css +1 -0
- package/esm/MinimalFooter/MinimalFooter.module.js +18 -0
- package/esm/MinimalFooter/MinimalFooter.module.js.map +1 -0
- package/esm/MinimalFooter/index.d.ts +2 -0
- package/esm/MinimalFooter/index.d.ts.map +1 -0
- package/esm/MonaSans/MonaSans.d.ts +11 -0
- package/esm/MonaSans/MonaSans.d.ts.map +1 -0
- package/esm/MonaSans/index.d.ts +2 -0
- package/esm/MonaSans/index.d.ts.map +1 -0
- package/esm/Pagination/Pagination.d.ts +24 -0
- package/esm/Pagination/Pagination.d.ts.map +1 -0
- package/esm/Pagination/Pagination.js +95 -0
- package/esm/Pagination/Pagination.js.map +1 -0
- package/esm/Pagination/Pagination.module-C7Z_pTFq.css +1 -0
- package/esm/Pagination/Pagination.module.js +10 -0
- package/esm/Pagination/Pagination.module.js.map +1 -0
- package/esm/Pagination/index.d.ts +2 -0
- package/esm/Pagination/index.d.ts.map +1 -0
- package/esm/Pagination/model.d.ts +9 -0
- package/esm/Pagination/model.d.ts.map +1 -0
- package/esm/Pagination/model.js +66 -0
- package/esm/Pagination/model.js.map +1 -0
- package/esm/Pillar/Pillar.d.ts +52 -0
- package/esm/Pillar/Pillar.d.ts.map +1 -0
- package/esm/Pillar/Pillar.js +86 -0
- package/esm/Pillar/Pillar.js.map +1 -0
- package/esm/Pillar/Pillar.module-Cpx4mbRH.css +1 -0
- package/esm/Pillar/Pillar.module.js +16 -0
- package/esm/Pillar/Pillar.module.js.map +1 -0
- package/esm/Pillar/index.d.ts +2 -0
- package/esm/Pillar/index.d.ts.map +1 -0
- package/esm/PricingOptions/PricingOptions.d.ts +126 -0
- package/esm/PricingOptions/PricingOptions.d.ts.map +1 -0
- package/esm/PricingOptions/PricingOptions.figma.d.ts +2 -0
- package/esm/PricingOptions/PricingOptions.figma.d.ts.map +1 -0
- package/esm/PricingOptions/PricingOptions.js +362 -0
- package/esm/PricingOptions/PricingOptions.js.map +1 -0
- package/esm/PricingOptions/PricingOptions.module-Cm3Oq9u6.css +1 -0
- package/esm/PricingOptions/PricingOptions.module.js +53 -0
- package/esm/PricingOptions/PricingOptions.module.js.map +1 -0
- package/esm/PricingOptions/index.d.ts +2 -0
- package/esm/PricingOptions/index.d.ts.map +1 -0
- package/esm/Prose/Prose.d.ts +21 -0
- package/esm/Prose/Prose.d.ts.map +1 -0
- package/esm/Prose/Prose.js +18 -0
- package/esm/Prose/Prose.js.map +1 -0
- package/esm/Prose/Prose.module-CL7KawRN.css +1 -0
- package/esm/Prose/Prose.module.js +10 -0
- package/esm/Prose/Prose.module.js.map +1 -0
- package/esm/Prose/index.d.ts +2 -0
- package/esm/Prose/index.d.ts.map +1 -0
- package/esm/Section/Section.d.ts +66 -0
- package/esm/Section/Section.d.ts.map +1 -0
- package/esm/Section/Section.js +51 -0
- package/esm/Section/Section.js.map +1 -0
- package/esm/Section/Section.module-B8zA8qj8.css +1 -0
- package/esm/Section/Section.module.js +42 -0
- package/esm/Section/Section.module.js.map +1 -0
- package/esm/Section/index.d.ts +2 -0
- package/esm/Section/index.d.ts.map +1 -0
- package/esm/SectionIntro/SectionIntro.d.ts +33 -0
- package/esm/SectionIntro/SectionIntro.d.ts.map +1 -0
- package/esm/SectionIntro/SectionIntro.js +66 -0
- package/esm/SectionIntro/SectionIntro.js.map +1 -0
- package/esm/SectionIntro/SectionIntro.module-CiRymbla.css +1 -0
- package/esm/SectionIntro/SectionIntro.module.js +15 -0
- package/esm/SectionIntro/SectionIntro.module.js.map +1 -0
- package/esm/SectionIntro/index.d.ts +2 -0
- package/esm/SectionIntro/index.d.ts.map +1 -0
- package/esm/SectionIntroStacked/SectionIntroStacked.d.ts +36 -0
- package/esm/SectionIntroStacked/SectionIntroStacked.d.ts.map +1 -0
- package/esm/SectionIntroStacked/SectionIntroStacked.js +125 -0
- package/esm/SectionIntroStacked/SectionIntroStacked.js.map +1 -0
- package/esm/SectionIntroStacked/SectionIntroStacked.module-DvJXKMKX.css +1 -0
- package/esm/SectionIntroStacked/SectionIntroStacked.module.js +20 -0
- package/esm/SectionIntroStacked/SectionIntroStacked.module.js.map +1 -0
- package/esm/SectionIntroStacked/index.d.ts +2 -0
- package/esm/SectionIntroStacked/index.d.ts.map +1 -0
- package/esm/Stack/Stack.d.ts +88 -0
- package/esm/Stack/Stack.d.ts.map +1 -0
- package/esm/Stack/Stack.js +40 -0
- package/esm/Stack/Stack.js.map +1 -0
- package/esm/Stack/Stack.module-ZIKnqNP_.css +1 -0
- package/esm/Stack/Stack.module.js +227 -0
- package/esm/Stack/Stack.module.js.map +1 -0
- package/esm/Stack/index.d.ts +2 -0
- package/esm/Stack/index.d.ts.map +1 -0
- package/esm/Statistic/Statistic.d.ts +119 -0
- package/esm/Statistic/Statistic.d.ts.map +1 -0
- package/esm/Statistic/Statistic.js +74 -0
- package/esm/Statistic/Statistic.js.map +1 -0
- package/esm/Statistic/Statistic.module-Dqb6n1GX.css +1 -0
- package/esm/Statistic/Statistic.module.js +26 -0
- package/esm/Statistic/Statistic.module.js.map +1 -0
- package/esm/Statistic/index.d.ts +2 -0
- package/esm/Statistic/index.d.ts.map +1 -0
- package/esm/SubNav/SubNav.d.ts +81 -0
- package/esm/SubNav/SubNav.d.ts.map +1 -0
- package/esm/SubNav/SubNav.js +343 -0
- package/esm/SubNav/SubNav.js.map +1 -0
- package/esm/SubNav/SubNav.module-CFXuWNmS.css +1 -0
- package/esm/SubNav/SubNav.module.js +52 -0
- package/esm/SubNav/SubNav.module.js.map +1 -0
- package/esm/SubNav/index.d.ts +2 -0
- package/esm/SubNav/index.d.ts.map +1 -0
- package/esm/SubNav/useContainsFocus.d.ts +10 -0
- package/esm/SubNav/useContainsFocus.d.ts.map +1 -0
- package/esm/SubNav/useContainsFocus.js +22 -0
- package/esm/SubNav/useContainsFocus.js.map +1 -0
- package/esm/SubdomainNavBar/NavigationVisbilityObserver.d.ts +6 -0
- package/esm/SubdomainNavBar/NavigationVisbilityObserver.d.ts.map +1 -0
- package/esm/SubdomainNavBar/NavigationVisbilityObserver.js +73 -0
- package/esm/SubdomainNavBar/NavigationVisbilityObserver.js.map +1 -0
- package/esm/SubdomainNavBar/SubdomainNavBar.d.ts +86 -0
- package/esm/SubdomainNavBar/SubdomainNavBar.d.ts.map +1 -0
- package/esm/SubdomainNavBar/SubdomainNavBar.js +397 -0
- package/esm/SubdomainNavBar/SubdomainNavBar.js.map +1 -0
- package/esm/SubdomainNavBar/SubdomainNavBar.module-Rf4qEDka.css +1 -0
- package/esm/SubdomainNavBar/SubdomainNavBar.module.js +62 -0
- package/esm/SubdomainNavBar/SubdomainNavBar.module.js.map +1 -0
- package/esm/SubdomainNavBar/index.d.ts +2 -0
- package/esm/SubdomainNavBar/index.d.ts.map +1 -0
- package/esm/SubdomainNavBar/useVisibilityObserver.d.ts +6 -0
- package/esm/SubdomainNavBar/useVisibilityObserver.d.ts.map +1 -0
- package/esm/SubdomainNavBar/useVisibilityObserver.js +30 -0
- package/esm/SubdomainNavBar/useVisibilityObserver.js.map +1 -0
- package/esm/Tabs/Tabs.d.ts +182 -0
- package/esm/Tabs/Tabs.d.ts.map +1 -0
- package/esm/Tabs/Tabs.js +196 -0
- package/esm/Tabs/Tabs.js.map +1 -0
- package/esm/Tabs/Tabs.module-D8VFUDRe.css +1 -0
- package/esm/Tabs/Tabs.module.js +28 -0
- package/esm/Tabs/Tabs.module.js.map +1 -0
- package/esm/Tabs/index.d.ts +2 -0
- package/esm/Tabs/index.d.ts.map +1 -0
- package/esm/Testimonial/Testimonial.d.ts +73 -0
- package/esm/Testimonial/Testimonial.d.ts.map +1 -0
- package/esm/Testimonial/Testimonial.js +125 -0
- package/esm/Testimonial/Testimonial.js.map +1 -0
- package/esm/Testimonial/Testimonial.module-DRCosU_J.css +1 -0
- package/esm/Testimonial/Testimonial.module.js +41 -0
- package/esm/Testimonial/Testimonial.module.js.map +1 -0
- package/esm/Testimonial/index.d.ts +2 -0
- package/esm/Testimonial/index.d.ts.map +1 -0
- package/esm/Text/Text.d.ts +63 -0
- package/esm/Text/Text.d.ts.map +1 -0
- package/esm/Text/Text.js +54 -0
- package/esm/Text/Text.js.map +1 -0
- package/esm/Text/Text.module-D0UHZ0pq.css +1 -0
- package/esm/Text/Text.module.js +59 -0
- package/esm/Text/Text.module.js.map +1 -0
- package/esm/Text/index.d.ts +2 -0
- package/esm/Text/index.d.ts.map +1 -0
- package/esm/TextCursorAnimation/TextCursorAnimation.d.ts +18 -0
- package/esm/TextCursorAnimation/TextCursorAnimation.d.ts.map +1 -0
- package/esm/TextCursorAnimation/TextCursorAnimation.js +51 -0
- package/esm/TextCursorAnimation/TextCursorAnimation.js.map +1 -0
- package/esm/TextCursorAnimation/TextCursorAnimation.module-CkVDXNW5.css +1 -0
- package/esm/TextCursorAnimation/TextCursorAnimation.module.js +10 -0
- package/esm/TextCursorAnimation/TextCursorAnimation.module.js.map +1 -0
- package/esm/TextCursorAnimation/index.d.ts +2 -0
- package/esm/TextCursorAnimation/index.d.ts.map +1 -0
- package/esm/ThemeProvider/ThemeProvider.d.ts +20 -0
- package/esm/ThemeProvider/ThemeProvider.d.ts.map +1 -0
- package/esm/ThemeProvider/ThemeProvider.js +35 -0
- package/esm/ThemeProvider/ThemeProvider.js.map +1 -0
- package/esm/ThemeProvider/index.d.ts +3 -0
- package/esm/ThemeProvider/index.d.ts.map +1 -0
- package/esm/ThemeProvider/useTheme.d.ts +2 -0
- package/esm/ThemeProvider/useTheme.d.ts.map +1 -0
- package/esm/ThemeProvider/useTheme.js +8 -0
- package/esm/ThemeProvider/useTheme.js.map +1 -0
- package/esm/Tiles/Tiles.d.ts +50 -0
- package/esm/Tiles/Tiles.d.ts.map +1 -0
- package/esm/Tiles/Tiles.fixtures.d.ts +7 -0
- package/esm/Tiles/Tiles.fixtures.d.ts.map +1 -0
- package/esm/Tiles/Tiles.js +69 -0
- package/esm/Tiles/Tiles.js.map +1 -0
- package/esm/Tiles/Tiles.module-D7UJKhKM.css +1 -0
- package/esm/Tiles/Tiles.module.js +18 -0
- package/esm/Tiles/Tiles.module.js.map +1 -0
- package/esm/Tiles/index.d.ts +2 -0
- package/esm/Tiles/index.d.ts.map +1 -0
- package/esm/Timeline/Timeline.d.ts +19 -0
- package/esm/Timeline/Timeline.d.ts.map +1 -0
- package/esm/Timeline/Timeline.js +33 -0
- package/esm/Timeline/Timeline.js.map +1 -0
- package/esm/Timeline/Timeline.module-CQrQaD-z.css +1 -0
- package/esm/Timeline/Timeline.module.js +10 -0
- package/esm/Timeline/Timeline.module.js.map +1 -0
- package/esm/Timeline/index.d.ts +2 -0
- package/esm/Timeline/index.d.ts.map +1 -0
- package/esm/Token/Token.d.ts +47 -0
- package/esm/Token/Token.d.ts.map +1 -0
- package/esm/Token/Token.js +47 -0
- package/esm/Token/Token.js.map +1 -0
- package/esm/Token/Token.module-BcKU1KwK.css +1 -0
- package/esm/Token/Token.module.js +16 -0
- package/esm/Token/Token.module.js.map +1 -0
- package/esm/Token/index.d.ts +2 -0
- package/esm/Token/index.d.ts.map +1 -0
- package/esm/Tooltip/Tooltip.d.ts +26 -0
- package/esm/Tooltip/Tooltip.d.ts.map +1 -0
- package/esm/Tooltip/Tooltip.js +113 -0
- package/esm/Tooltip/Tooltip.js.map +1 -0
- package/esm/Tooltip/Tooltip.module-5Km7qGR5.css +1 -0
- package/esm/Tooltip/Tooltip.module.js +9 -0
- package/esm/Tooltip/Tooltip.module.js.map +1 -0
- package/esm/Tooltip/index.d.ts +2 -0
- package/esm/Tooltip/index.d.ts.map +1 -0
- package/esm/VideoPlayer/VideoPlayer.d.ts +29 -0
- package/esm/VideoPlayer/VideoPlayer.d.ts.map +1 -0
- package/esm/VideoPlayer/VideoPlayer.js +109 -0
- package/esm/VideoPlayer/VideoPlayer.js.map +1 -0
- package/esm/VideoPlayer/VideoPlayer.module-BpVcE2WB.css +1 -0
- package/esm/VideoPlayer/VideoPlayer.module.js +37 -0
- package/esm/VideoPlayer/VideoPlayer.module.js.map +1 -0
- package/esm/VideoPlayer/components/CCButton/CCButton.d.ts +3 -0
- package/esm/VideoPlayer/components/CCButton/CCButton.d.ts.map +1 -0
- package/esm/VideoPlayer/components/CCButton/CCButton.js +25 -0
- package/esm/VideoPlayer/components/CCButton/CCButton.js.map +1 -0
- package/esm/VideoPlayer/components/CCButton/index.d.ts +2 -0
- package/esm/VideoPlayer/components/CCButton/index.d.ts.map +1 -0
- package/esm/VideoPlayer/components/Captions/Captions.d.ts +3 -0
- package/esm/VideoPlayer/components/Captions/Captions.d.ts.map +1 -0
- package/esm/VideoPlayer/components/Captions/Captions.js +37 -0
- package/esm/VideoPlayer/components/Captions/Captions.js.map +1 -0
- package/esm/VideoPlayer/components/Captions/Captions.module-CvaHeR3V.css +1 -0
- package/esm/VideoPlayer/components/Captions/Captions.module.js +8 -0
- package/esm/VideoPlayer/components/Captions/Captions.module.js.map +1 -0
- package/esm/VideoPlayer/components/Captions/index.d.ts +2 -0
- package/esm/VideoPlayer/components/Captions/index.d.ts.map +1 -0
- package/esm/VideoPlayer/components/ControlsBar/ControlsBar.d.ts +4 -0
- package/esm/VideoPlayer/components/ControlsBar/ControlsBar.d.ts.map +1 -0
- package/esm/VideoPlayer/components/ControlsBar/ControlsBar.js +13 -0
- package/esm/VideoPlayer/components/ControlsBar/ControlsBar.js.map +1 -0
- package/esm/VideoPlayer/components/ControlsBar/index.d.ts +2 -0
- package/esm/VideoPlayer/components/ControlsBar/index.d.ts.map +1 -0
- package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.d.ts +3 -0
- package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.d.ts.map +1 -0
- package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.js +19 -0
- package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.js.map +1 -0
- package/esm/VideoPlayer/components/FullScreenButton/index.d.ts +2 -0
- package/esm/VideoPlayer/components/FullScreenButton/index.d.ts.map +1 -0
- package/esm/VideoPlayer/components/IconControl/IconControl.d.ts +7 -0
- package/esm/VideoPlayer/components/IconControl/IconControl.d.ts.map +1 -0
- package/esm/VideoPlayer/components/IconControl/IconControl.js +15 -0
- package/esm/VideoPlayer/components/IconControl/IconControl.js.map +1 -0
- package/esm/VideoPlayer/components/IconControl/index.d.ts +2 -0
- package/esm/VideoPlayer/components/IconControl/index.d.ts.map +1 -0
- package/esm/VideoPlayer/components/MuteButton/MuteButton.d.ts +3 -0
- package/esm/VideoPlayer/components/MuteButton/MuteButton.d.ts.map +1 -0
- package/esm/VideoPlayer/components/MuteButton/MuteButton.js +19 -0
- package/esm/VideoPlayer/components/MuteButton/MuteButton.js.map +1 -0
- package/esm/VideoPlayer/components/MuteButton/index.d.ts +2 -0
- package/esm/VideoPlayer/components/MuteButton/index.d.ts.map +1 -0
- package/esm/VideoPlayer/components/PauseIcon/PauseIcon.d.ts +3 -0
- package/esm/VideoPlayer/components/PauseIcon/PauseIcon.d.ts.map +1 -0
- package/esm/VideoPlayer/components/PauseIcon/PauseIcon.js +27 -0
- package/esm/VideoPlayer/components/PauseIcon/PauseIcon.js.map +1 -0
- package/esm/VideoPlayer/components/PauseIcon/index.d.ts +2 -0
- package/esm/VideoPlayer/components/PauseIcon/index.d.ts.map +1 -0
- package/esm/VideoPlayer/components/PlayIcon/PlayIcon.d.ts +3 -0
- package/esm/VideoPlayer/components/PlayIcon/PlayIcon.d.ts.map +1 -0
- package/esm/VideoPlayer/components/PlayIcon/PlayIcon.js +19 -0
- package/esm/VideoPlayer/components/PlayIcon/PlayIcon.js.map +1 -0
- package/esm/VideoPlayer/components/PlayIcon/index.d.ts +2 -0
- package/esm/VideoPlayer/components/PlayIcon/index.d.ts.map +1 -0
- package/esm/VideoPlayer/components/PlayPauseButton/PlayPauseButton.d.ts +3 -0
- package/esm/VideoPlayer/components/PlayPauseButton/PlayPauseButton.d.ts.map +1 -0
- package/esm/VideoPlayer/components/PlayPauseButton/PlayPauseButton.js +20 -0
- package/esm/VideoPlayer/components/PlayPauseButton/PlayPauseButton.js.map +1 -0
- package/esm/VideoPlayer/components/PlayPauseButton/index.d.ts +2 -0
- package/esm/VideoPlayer/components/PlayPauseButton/index.d.ts.map +1 -0
- package/esm/VideoPlayer/components/Range/Range.d.ts +10 -0
- package/esm/VideoPlayer/components/Range/Range.d.ts.map +1 -0
- package/esm/VideoPlayer/components/Range/Range.js +75 -0
- package/esm/VideoPlayer/components/Range/Range.js.map +1 -0
- package/esm/VideoPlayer/components/Range/index.d.ts +2 -0
- package/esm/VideoPlayer/components/Range/index.d.ts.map +1 -0
- package/esm/VideoPlayer/components/SeekControl/SeekControl.d.ts +5 -0
- package/esm/VideoPlayer/components/SeekControl/SeekControl.d.ts.map +1 -0
- package/esm/VideoPlayer/components/SeekControl/SeekControl.js +59 -0
- package/esm/VideoPlayer/components/SeekControl/SeekControl.js.map +1 -0
- package/esm/VideoPlayer/components/SeekControl/index.d.ts +2 -0
- package/esm/VideoPlayer/components/SeekControl/index.d.ts.map +1 -0
- package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.d.ts +5 -0
- package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.d.ts.map +1 -0
- package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.js +50 -0
- package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.js.map +1 -0
- package/esm/VideoPlayer/components/VideoTooltip/index.d.ts +2 -0
- package/esm/VideoPlayer/components/VideoTooltip/index.d.ts.map +1 -0
- package/esm/VideoPlayer/components/VolumeControl/VolumeControl.d.ts +3 -0
- package/esm/VideoPlayer/components/VolumeControl/VolumeControl.d.ts.map +1 -0
- package/esm/VideoPlayer/components/VolumeControl/VolumeControl.js +25 -0
- package/esm/VideoPlayer/components/VolumeControl/VolumeControl.js.map +1 -0
- package/esm/VideoPlayer/components/VolumeControl/VolumeControl.module-DRSCPBbP.css +1 -0
- package/esm/VideoPlayer/components/VolumeControl/VolumeControl.module.js +5 -0
- package/esm/VideoPlayer/components/VolumeControl/VolumeControl.module.js.map +1 -0
- package/esm/VideoPlayer/components/VolumeControl/index.d.ts +2 -0
- package/esm/VideoPlayer/components/VolumeControl/index.d.ts.map +1 -0
- package/esm/VideoPlayer/components/index.d.ts +14 -0
- package/esm/VideoPlayer/components/index.d.ts.map +1 -0
- package/esm/VideoPlayer/hooks/index.d.ts +5 -0
- package/esm/VideoPlayer/hooks/index.d.ts.map +1 -0
- package/esm/VideoPlayer/hooks/useIsElementFullScreen.d.ts +3 -0
- package/esm/VideoPlayer/hooks/useIsElementFullScreen.d.ts.map +1 -0
- package/esm/VideoPlayer/hooks/useIsElementFullScreen.js +23 -0
- package/esm/VideoPlayer/hooks/useIsElementFullScreen.js.map +1 -0
- package/esm/VideoPlayer/hooks/useVideo.d.ts +37 -0
- package/esm/VideoPlayer/hooks/useVideo.d.ts.map +1 -0
- package/esm/VideoPlayer/hooks/useVideo.js +147 -0
- package/esm/VideoPlayer/hooks/useVideo.js.map +1 -0
- package/esm/VideoPlayer/hooks/useVideoKeypressHandlers.d.ts +4 -0
- package/esm/VideoPlayer/hooks/useVideoKeypressHandlers.d.ts.map +1 -0
- package/esm/VideoPlayer/hooks/useVideoResizeObserver.d.ts +6 -0
- package/esm/VideoPlayer/hooks/useVideoResizeObserver.d.ts.map +1 -0
- package/esm/VideoPlayer/hooks/useVideoResizeObserver.js +25 -0
- package/esm/VideoPlayer/hooks/useVideoResizeObserver.js.map +1 -0
- package/esm/VideoPlayer/index.d.ts +3 -0
- package/esm/VideoPlayer/index.d.ts.map +1 -0
- package/esm/animation/Animate/Animate.d.ts +11 -0
- package/esm/animation/Animate/Animate.d.ts.map +1 -0
- package/esm/animation/Animate/Animate.js +25 -0
- package/esm/animation/Animate/Animate.js.map +1 -0
- package/esm/animation/Animate/index.d.ts +2 -0
- package/esm/animation/Animate/index.d.ts.map +1 -0
- package/esm/animation/Animation.module-Bz_IX_fh.css +1 -0
- package/esm/animation/Animation.module.js +22 -0
- package/esm/animation/Animation.module.js.map +1 -0
- package/esm/animation/AnimationProvider/AnimationProvider.d.ts +47 -0
- package/esm/animation/AnimationProvider/AnimationProvider.d.ts.map +1 -0
- package/esm/animation/AnimationProvider/AnimationProvider.js +125 -0
- package/esm/animation/AnimationProvider/AnimationProvider.js.map +1 -0
- package/esm/animation/AnimationProvider/index.d.ts +2 -0
- package/esm/animation/AnimationProvider/index.d.ts.map +1 -0
- package/esm/animation/TextRevealAnimation/TextRevealAnimation.d.ts +7 -0
- package/esm/animation/TextRevealAnimation/TextRevealAnimation.d.ts.map +1 -0
- package/esm/animation/TextRevealAnimation/TextRevealAnimation.js +36 -0
- package/esm/animation/TextRevealAnimation/TextRevealAnimation.js.map +1 -0
- package/esm/animation/TextRevealAnimation/TextRevealAnimation.module-BzK16DXS.css +1 -0
- package/esm/animation/TextRevealAnimation/TextRevealAnimation.module.js +10 -0
- package/esm/animation/TextRevealAnimation/TextRevealAnimation.module.js.map +1 -0
- package/esm/animation/TextRevealAnimation/index.d.ts +2 -0
- package/esm/animation/TextRevealAnimation/index.d.ts.map +1 -0
- package/esm/animation/TextRevealAnimation/useTextRevealAnimationLines.d.ts +6 -0
- package/esm/animation/TextRevealAnimation/useTextRevealAnimationLines.d.ts.map +1 -0
- package/esm/animation/TextRevealAnimation/useTextRevealAnimationLines.js +31 -0
- package/esm/animation/TextRevealAnimation/useTextRevealAnimationLines.js.map +1 -0
- package/esm/animation/index.d.ts +5 -0
- package/esm/animation/index.d.ts.map +1 -0
- package/esm/animation/useAnimation.d.ts +12 -0
- package/esm/animation/useAnimation.d.ts.map +1 -0
- package/esm/animation/useAnimation.js +27 -0
- package/esm/animation/useAnimation.js.map +1 -0
- package/esm/component-helpers.d.ts +36 -0
- package/esm/component-helpers.d.ts.map +1 -0
- package/esm/constants.d.ts +5 -0
- package/esm/constants.d.ts.map +1 -0
- package/esm/constants.js +45 -0
- package/esm/constants.js.map +1 -0
- package/esm/css/reset-PKNIUbst.css +1 -0
- package/esm/css/stylesheets.d.ts +14 -0
- package/esm/css/stylesheets.d.ts.map +1 -0
- package/esm/css/stylesheets.js +15 -0
- package/esm/css/stylesheets.js.map +1 -0
- package/esm/css/utilities-BivJncWo.css +1 -0
- package/esm/findElementInChildren.d.ts +4 -0
- package/esm/findElementInChildren.d.ts.map +1 -0
- package/esm/findElementInChildren.js +13 -0
- package/esm/findElementInChildren.js.map +1 -0
- package/esm/fixtures/third-party-logos/AzureLogo.d.ts +5 -0
- package/esm/fixtures/third-party-logos/AzureLogo.d.ts.map +1 -0
- package/esm/fixtures/third-party-logos/JetBrainsLogo.d.ts +5 -0
- package/esm/fixtures/third-party-logos/JetBrainsLogo.d.ts.map +1 -0
- package/esm/fixtures/third-party-logos/MicrosoftCopilotLogo.d.ts +5 -0
- package/esm/fixtures/third-party-logos/MicrosoftCopilotLogo.d.ts.map +1 -0
- package/esm/fixtures/third-party-logos/MicrosoftLogo.d.ts +5 -0
- package/esm/fixtures/third-party-logos/MicrosoftLogo.d.ts.map +1 -0
- package/esm/fixtures/third-party-logos/NeoVimLogo.d.ts +5 -0
- package/esm/fixtures/third-party-logos/NeoVimLogo.d.ts.map +1 -0
- package/esm/fixtures/third-party-logos/VisualStudioCodeLogo.d.ts +5 -0
- package/esm/fixtures/third-party-logos/VisualStudioCodeLogo.d.ts.map +1 -0
- package/esm/fixtures/third-party-logos/VisualStudioLogo.d.ts +5 -0
- package/esm/fixtures/third-party-logos/VisualStudioLogo.d.ts.map +1 -0
- package/esm/forms/Checkbox/Checkbox.d.ts +28 -0
- package/esm/forms/Checkbox/Checkbox.d.ts.map +1 -0
- package/esm/forms/Checkbox/Checkbox.js +74 -0
- package/esm/forms/Checkbox/Checkbox.js.map +1 -0
- package/esm/forms/Checkbox/Checkbox.module-DTWn-eCl.css +1 -0
- package/esm/forms/Checkbox/Checkbox.module.js +12 -0
- package/esm/forms/Checkbox/Checkbox.module.js.map +1 -0
- package/esm/forms/Checkbox/index.d.ts +2 -0
- package/esm/forms/Checkbox/index.d.ts.map +1 -0
- package/esm/forms/CheckboxGroup/CheckboxGroup.d.ts +15 -0
- package/esm/forms/CheckboxGroup/CheckboxGroup.d.ts.map +1 -0
- package/esm/forms/CheckboxGroup/CheckboxGroup.js +7 -0
- package/esm/forms/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/esm/forms/CheckboxGroup/index.d.ts +2 -0
- package/esm/forms/CheckboxGroup/index.d.ts.map +1 -0
- package/esm/forms/ControlGroup/ControlGroup.d.ts +20 -0
- package/esm/forms/ControlGroup/ControlGroup.d.ts.map +1 -0
- package/esm/forms/ControlGroup/ControlGroup.js +74 -0
- package/esm/forms/ControlGroup/ControlGroup.js.map +1 -0
- package/esm/forms/ControlGroup/ControlGroup.module-B7ITrHM_.css +1 -0
- package/esm/forms/ControlGroup/ControlGroup.module.js +15 -0
- package/esm/forms/ControlGroup/ControlGroup.module.js.map +1 -0
- package/esm/forms/ControlGroup/index.d.ts +2 -0
- package/esm/forms/ControlGroup/index.d.ts.map +1 -0
- package/esm/forms/FormControl/FormControl.d.ts +55 -0
- package/esm/forms/FormControl/FormControl.d.ts.map +1 -0
- package/esm/forms/FormControl/FormControl.js +149 -0
- package/esm/forms/FormControl/FormControl.js.map +1 -0
- package/esm/forms/FormControl/FormControl.module-UQqb_zPR.css +1 -0
- package/esm/forms/FormControl/FormControl.module.js +25 -0
- package/esm/forms/FormControl/FormControl.module.js.map +1 -0
- package/esm/forms/FormControl/index.d.ts +2 -0
- package/esm/forms/FormControl/index.d.ts.map +1 -0
- package/esm/forms/Radio/Radio.d.ts +19 -0
- package/esm/forms/Radio/Radio.d.ts.map +1 -0
- package/esm/forms/Radio/Radio.js +38 -0
- package/esm/forms/Radio/Radio.js.map +1 -0
- package/esm/forms/Radio/Radio.module-C_NUEyme.css +1 -0
- package/esm/forms/Radio/Radio.module.js +10 -0
- package/esm/forms/Radio/Radio.module.js.map +1 -0
- package/esm/forms/Radio/index.d.ts +2 -0
- package/esm/forms/Radio/index.d.ts.map +1 -0
- package/esm/forms/RadioGroup/RadioGroup.d.ts +15 -0
- package/esm/forms/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/esm/forms/RadioGroup/RadioGroup.js +7 -0
- package/esm/forms/RadioGroup/RadioGroup.js.map +1 -0
- package/esm/forms/RadioGroup/index.d.ts +2 -0
- package/esm/forms/RadioGroup/index.d.ts.map +1 -0
- package/esm/forms/Select/Select.d.ts +46 -0
- package/esm/forms/Select/Select.d.ts.map +1 -0
- package/esm/forms/Select/Select.js +34 -0
- package/esm/forms/Select/Select.js.map +1 -0
- package/esm/forms/Select/Select.module-q1LyPHa8.css +1 -0
- package/esm/forms/Select/Select.module.js +16 -0
- package/esm/forms/Select/Select.module.js.map +1 -0
- package/esm/forms/Select/index.d.ts +2 -0
- package/esm/forms/Select/index.d.ts.map +1 -0
- package/esm/forms/TextInput/TextInput.d.ts +54 -0
- package/esm/forms/TextInput/TextInput.d.ts.map +1 -0
- package/esm/forms/TextInput/TextInput.js +93 -0
- package/esm/forms/TextInput/TextInput.js.map +1 -0
- package/esm/forms/TextInput/TextInput.module-zPnaJdhX.css +1 -0
- package/esm/forms/TextInput/TextInput.module.js +48 -0
- package/esm/forms/TextInput/TextInput.module.js.map +1 -0
- package/esm/forms/TextInput/index.d.ts +2 -0
- package/esm/forms/TextInput/index.d.ts.map +1 -0
- package/esm/forms/Textarea/Textarea.d.ts +38 -0
- package/esm/forms/Textarea/Textarea.d.ts.map +1 -0
- package/esm/forms/Textarea/Textarea.js +31 -0
- package/esm/forms/Textarea/Textarea.js.map +1 -0
- package/esm/forms/Textarea/Textarea.module-CdUlSjWq.css +1 -0
- package/esm/forms/Textarea/Textarea.module.js +21 -0
- package/esm/forms/Textarea/Textarea.module.js.map +1 -0
- package/esm/forms/Textarea/index.d.ts +2 -0
- package/esm/forms/Textarea/index.d.ts.map +1 -0
- package/esm/forms/form-types.d.ts +3 -0
- package/esm/forms/form-types.d.ts.map +1 -0
- package/esm/forms/index.d.ts +14 -0
- package/esm/forms/index.d.ts.map +1 -0
- package/esm/hooks/useAnchoredPosition.d.ts +21 -0
- package/esm/hooks/useAnchoredPosition.d.ts.map +1 -0
- package/esm/hooks/useAnchoredPosition.js +25 -0
- package/esm/hooks/useAnchoredPosition.js.map +1 -0
- package/esm/hooks/useCursorAnimation.d.ts +38 -0
- package/esm/hooks/useCursorAnimation.d.ts.map +1 -0
- package/esm/hooks/useCursorAnimation.js +52 -0
- package/esm/hooks/useCursorAnimation.js.map +1 -0
- package/esm/hooks/useFocusTrap.d.ts +31 -0
- package/esm/hooks/useFocusTrap.d.ts.map +1 -0
- package/esm/hooks/useFocusTrap.js +28 -0
- package/esm/hooks/useFocusTrap.js.map +1 -0
- package/esm/hooks/useId.d.ts +3 -0
- package/esm/hooks/useId.d.ts.map +1 -0
- package/esm/hooks/useId.js +10 -0
- package/esm/hooks/useId.js.map +1 -0
- package/esm/hooks/useIsomorphicLayoutEffect.d.ts +4 -0
- package/esm/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/esm/hooks/useIsomorphicLayoutEffect.js +7 -0
- package/esm/hooks/useIsomorphicLayoutEffect.js.map +1 -0
- package/esm/hooks/useKeyboardEscape.d.ts +2 -0
- package/esm/hooks/useKeyboardEscape.d.ts.map +1 -0
- package/esm/hooks/useKeyboardEscape.js +14 -0
- package/esm/hooks/useKeyboardEscape.js.map +1 -0
- package/esm/hooks/useOnClickOutside.d.ts +3 -0
- package/esm/hooks/useOnClickOutside.d.ts.map +1 -0
- package/esm/hooks/useOnClickOutside.js +20 -0
- package/esm/hooks/useOnClickOutside.js.map +1 -0
- package/esm/hooks/useReducedMotion.d.ts +6 -0
- package/esm/hooks/useReducedMotion.d.ts.map +1 -0
- package/esm/hooks/useReducedMotion.js +17 -0
- package/esm/hooks/useReducedMotion.js.map +1 -0
- package/esm/hooks/useRef.d.ts +12 -0
- package/esm/hooks/useRef.d.ts.map +1 -0
- package/esm/hooks/useRef.js +26 -0
- package/esm/hooks/useRef.js.map +1 -0
- package/esm/hooks/useResizeObserver.d.ts +7 -0
- package/esm/hooks/useResizeObserver.d.ts.map +1 -0
- package/esm/hooks/useResizeObserver.js +21 -0
- package/esm/hooks/useResizeObserver.js.map +1 -0
- package/esm/hooks/useTabs.d.ts +57 -0
- package/esm/hooks/useTabs.d.ts.map +1 -0
- package/esm/hooks/useTabs.js +129 -0
- package/esm/hooks/useTabs.js.map +1 -0
- package/esm/hooks/useWindowSize.d.ts +22 -0
- package/esm/hooks/useWindowSize.d.ts.map +1 -0
- package/esm/hooks/useWindowSize.js +60 -0
- package/esm/hooks/useWindowSize.js.map +1 -0
- package/esm/index.d.ts +58 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.esm.d.ts +8 -0
- package/esm/index.esm.d.ts.map +1 -0
- package/esm/index.esm.js +77 -0
- package/esm/list/ListItem/ListItem.d.ts +19 -0
- package/esm/list/ListItem/ListItem.d.ts.map +1 -0
- package/esm/list/ListItem/ListItem.js +51 -0
- package/esm/list/ListItem/ListItem.js.map +1 -0
- package/esm/list/ListItem/ListItem.module-CtD-ZiWp.css +1 -0
- package/esm/list/ListItem/ListItem.module.js +12 -0
- package/esm/list/ListItem/ListItem.module.js.map +1 -0
- package/esm/list/ListItem/index.d.ts +2 -0
- package/esm/list/ListItem/index.d.ts.map +1 -0
- package/esm/list/OrderedList/OrderedList.d.ts +9 -0
- package/esm/list/OrderedList/OrderedList.d.ts.map +1 -0
- package/esm/list/OrderedList/OrderedList.js +23 -0
- package/esm/list/OrderedList/OrderedList.js.map +1 -0
- package/esm/list/OrderedList/OrderedList.module-DBJeYW8p.css +1 -0
- package/esm/list/OrderedList/OrderedList.module.js +5 -0
- package/esm/list/OrderedList/OrderedList.module.js.map +1 -0
- package/esm/list/OrderedList/index.d.ts +2 -0
- package/esm/list/OrderedList/index.d.ts.map +1 -0
- package/esm/list/UnorderedList/UnorderedList.d.ts +14 -0
- package/esm/list/UnorderedList/UnorderedList.d.ts.map +1 -0
- package/esm/list/UnorderedList/UnorderedList.js +22 -0
- package/esm/list/UnorderedList/UnorderedList.js.map +1 -0
- package/esm/list/UnorderedList/index.d.ts +2 -0
- package/esm/list/UnorderedList/index.d.ts.map +1 -0
- package/esm/list/index.d.ts +3 -0
- package/esm/list/index.d.ts.map +1 -0
- package/esm/list/list-shared.module-CXsvDQ7x.css +1 -0
- package/esm/list/list-shared.module.js +5 -0
- package/esm/list/list-shared.module.js.map +1 -0
- package/esm/list/listContext.d.ts +4 -0
- package/esm/list/listContext.d.ts.map +1 -0
- package/esm/list/listContext.js +7 -0
- package/esm/list/listContext.js.map +1 -0
- package/esm/node_modules/@primer/octicons-react/dist/index.esm.js +440 -0
- package/esm/node_modules/@primer/octicons-react/dist/index.esm.js.map +1 -0
- package/esm/node_modules/clsx/dist/clsx.js +18 -0
- package/esm/node_modules/clsx/dist/clsx.js.map +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes-BVk7bh0Y.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/base/size/size-DBypfR6O.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/base/typography/typography-CAC6sGQ3.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/animation/base-BIr7u5g8.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/colors/global-with-modes-tpdcmiok.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes-PcQKqJQI.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes-B69RzUbe.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes-98imfMkq.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/bento/base-BRft1s9J.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes-DYugDcQy.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes-Wg6T_h7K.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/card/base-BRKNIzyd.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes-C43pQ5wc.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes-D2oNfyDt.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table-L50b0Mii.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes-B9zRp3WA.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes-BzV3LYhH.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner-CPW2Ri4S.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/faq/base-BIIAD0RC.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes-Dc8Ya1HV.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/faq/faq-s_zeJJpd.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes-DhME9i-y.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base-BlFewKzM.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes-CMw13Yda.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes-6QocK2fy.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/grid/grid-Cjk6fsH8.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/hero/base-BDi-g8vJ.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon/colors-CctMSz17.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes-Bjhpbkke.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/ide/base-Cg4X8uay.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes-DSf1PV6b.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/inline-link/base-BJeYaOpB.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes-DujakhtG.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes-BB1L_8rS.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes-Dh1w7a05.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/logosuite/base-DTi5Rx4y.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes-n4fDsxWz.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/pagination/colors-with-modes-C2GLM06X.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes-DBi2l0Re.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options-B9TarQsR.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/prose/base-ZeVUZmHp.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes-Y3yB1rAU.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/river/base-Ue-p74RC.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/river/river-QteO10lt.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes-omPmv64b.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/section/section-GXjcxN8l.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/statistic/base-DWOQrMC8.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/sub-nav/base-DIkvLW-s.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes-5gfdihUt.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes-ehJCoExh.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tabs/base-T7ABwZVf.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes-DCEDN6wM.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/testimonial/base-CAG7koNB.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes-8ryG-BX6.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes-DTTqGOfy.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/timeline/base-CXOJfjx4.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes-DDIdeMJX.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes-5VT1x9eF.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes-BrRCxJ2E.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/video-player/base-Bs0Tq22P.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes-CTkp-z-l.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/size/border-B0NqqX5b.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/size/breakpoints-DV9ZFHGu.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/size/size-Dr6y-7jl.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/typography/typography-responsive-D6GwCHec.css +1 -0
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOne.d.ts +13 -0
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOne.d.ts.map +1 -0
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOneSideBySide.d.ts +14 -0
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOneSideBySide.d.ts.map +1 -0
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/components/FormExample.d.ts +8 -0
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/components/FormExample.d.ts.map +1 -0
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/index.d.ts +2 -0
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/index.d.ts.map +1 -0
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/FeaturePreviewLevelTwo.d.ts +49 -0
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/FeaturePreviewLevelTwo.d.ts.map +1 -0
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/index.d.ts +2 -0
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/index.d.ts.map +1 -0
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/FeaturePreviewLevelZero.d.ts +17 -0
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/FeaturePreviewLevelZero.d.ts.map +1 -0
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/index.d.ts +2 -0
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/index.d.ts.map +1 -0
- package/esm/recipes/FeaturePreviewLPs/helpers.d.ts +30 -0
- package/esm/recipes/FeaturePreviewLPs/helpers.d.ts.map +1 -0
- package/esm/recipes/FlexTemplate/FlexSection/FlexSection.d.ts +8 -0
- package/esm/recipes/FlexTemplate/FlexSection/FlexSection.d.ts.map +1 -0
- package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulRiver.d.ts +2 -0
- package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulRiver.d.ts.map +1 -0
- package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulRiverAccordion.d.ts +8 -0
- package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulRiverAccordion.d.ts.map +1 -0
- package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulRiverBreakout.d.ts +2 -0
- package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulRiverBreakout.d.ts.map +1 -0
- package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulTestimonials.d.ts +8 -0
- package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulTestimonials.d.ts.map +1 -0
- package/esm/recipes/FlexTemplate/FlexSection/components/FlexSectionTestimonials.d.ts +8 -0
- package/esm/recipes/FlexTemplate/FlexSection/components/FlexSectionTestimonials.d.ts.map +1 -0
- package/esm/recipes/FlexTemplate/FlexSection/components/index.d.ts +6 -0
- package/esm/recipes/FlexTemplate/FlexSection/components/index.d.ts.map +1 -0
- package/esm/recipes/FlexTemplate/FlexSection/index.d.ts +2 -0
- package/esm/recipes/FlexTemplate/FlexSection/index.d.ts.map +1 -0
- package/esm/recipes/FlexTemplate/FlexTemplate.d.ts +7 -0
- package/esm/recipes/FlexTemplate/FlexTemplate.d.ts.map +1 -0
- package/esm/recipes/FlexTemplate/FlexTemplate.types.d.ts +318 -0
- package/esm/recipes/FlexTemplate/FlexTemplate.types.d.ts.map +1 -0
- package/esm/recipes/FlexTemplate/FlexTemplateTrailingSection/FlexTemplateTrailingSection.d.ts +6 -0
- package/esm/recipes/FlexTemplate/FlexTemplateTrailingSection/FlexTemplateTrailingSection.d.ts.map +1 -0
- package/esm/recipes/FlexTemplate/FlexTemplateTrailingSection/index.d.ts +3 -0
- package/esm/recipes/FlexTemplate/FlexTemplateTrailingSection/index.d.ts.map +1 -0
- package/esm/recipes/FlexTemplate/fixtures/content.d.ts +2 -0
- package/esm/recipes/FlexTemplate/fixtures/content.d.ts.map +1 -0
- package/esm/recipes/FlexTemplate/index.d.ts +4 -0
- package/esm/recipes/FlexTemplate/index.d.ts.map +1 -0
- package/esm/recipes/Flexsuite/Category/FlexSuiteSecurityCategory/FlexSuiteSecurityCategory.content.d.ts +59 -0
- package/esm/recipes/Flexsuite/Category/FlexSuiteSecurityCategory/FlexSuiteSecurityCategory.content.d.ts.map +1 -0
- package/esm/recipes/Flexsuite/Category/FlexSuiteSecurityCategory/FlexSuiteSecurityCategory.d.ts +7 -0
- package/esm/recipes/Flexsuite/Category/FlexSuiteSecurityCategory/FlexSuiteSecurityCategory.d.ts.map +1 -0
- package/esm/recipes/Flexsuite/Category/index.d.ts +2 -0
- package/esm/recipes/Flexsuite/Category/index.d.ts.map +1 -0
- package/esm/recipes/Flexsuite/Overview/FlexSuiteAIOverview.content.d.ts +101 -0
- package/esm/recipes/Flexsuite/Overview/FlexSuiteAIOverview.content.d.ts.map +1 -0
- package/esm/recipes/Flexsuite/Overview/FlexSuiteAIOverview.d.ts +7 -0
- package/esm/recipes/Flexsuite/Overview/FlexSuiteAIOverview.d.ts.map +1 -0
- package/esm/recipes/Flexsuite/Overview/FlexSuiteOverview.content.d.ts +5 -0
- package/esm/recipes/Flexsuite/Overview/FlexSuiteOverview.content.d.ts.map +1 -0
- package/esm/recipes/Flexsuite/Overview/index.d.ts +4 -0
- package/esm/recipes/Flexsuite/Overview/index.d.ts.map +1 -0
- package/esm/recipes/SolutionTemplates/CategoryPage/CategoryPage.d.ts +16 -0
- package/esm/recipes/SolutionTemplates/CategoryPage/CategoryPage.d.ts.map +1 -0
- package/esm/recipes/SolutionTemplates/SolutionPage/SolutionPage.d.ts +33 -0
- package/esm/recipes/SolutionTemplates/SolutionPage/SolutionPage.d.ts.map +1 -0
- package/esm/recipes/SolutionTemplates/SolutionPage/index.d.ts +2 -0
- package/esm/recipes/SolutionTemplates/SolutionPage/index.d.ts.map +1 -0
- package/esm/recipes/SolutionTemplates/SolutionsOverview/SolutionsOverview.d.ts +17 -0
- package/esm/recipes/SolutionTemplates/SolutionsOverview/SolutionsOverview.d.ts.map +1 -0
- package/esm/recipes/SolutionTemplates/helpers.d.ts +127 -0
- package/esm/recipes/SolutionTemplates/helpers.d.ts.map +1 -0
- package/esm/recipes/SolutionTemplates/index.d.ts +1 -0
- package/esm/recipes/SolutionTemplates/index.d.ts.map +1 -0
- package/esm/recipes/seo/Article/Article.d.ts +14 -0
- package/esm/recipes/seo/Article/Article.d.ts.map +1 -0
- package/esm/recipes/seo/Article/ArticleToC.d.ts +4 -0
- package/esm/recipes/seo/Article/ArticleToC.d.ts.map +1 -0
- package/esm/recipes/seo/Article/article-shared.d.ts +5 -0
- package/esm/recipes/seo/Article/article-shared.d.ts.map +1 -0
- package/esm/recipes/seo/Article/index.d.ts +2 -0
- package/esm/recipes/seo/Article/index.d.ts.map +1 -0
- package/esm/recipes/seo/Category/CategoryPage.d.ts +9 -0
- package/esm/recipes/seo/Category/CategoryPage.d.ts.map +1 -0
- package/esm/recipes/seo/Category/index.d.ts +2 -0
- package/esm/recipes/seo/Category/index.d.ts.map +1 -0
- package/esm/recipes/seo/helpers.d.ts +16 -0
- package/esm/recipes/seo/helpers.d.ts.map +1 -0
- package/esm/recipes/seo/index.d.ts +1 -0
- package/esm/recipes/seo/index.d.ts.map +1 -0
- package/esm/river/River/River.d.ts +105 -0
- package/esm/river/River/River.d.ts.map +1 -0
- package/esm/river/River/River.js +91 -0
- package/esm/river/River/River.js.map +1 -0
- package/esm/river/River/index.d.ts +3 -0
- package/esm/river/River/index.d.ts.map +1 -0
- package/esm/river/River.figma.d.ts +2 -0
- package/esm/river/River.figma.d.ts.map +1 -0
- package/esm/river/RiverAccordion/RiverAccordion.d.ts +35 -0
- package/esm/river/RiverAccordion/RiverAccordion.d.ts.map +1 -0
- package/esm/river/RiverAccordion/RiverAccordion.js +142 -0
- package/esm/river/RiverAccordion/RiverAccordion.js.map +1 -0
- package/esm/river/RiverAccordion/RiverAccordion.module-DrtqdEOQ.css +1 -0
- package/esm/river/RiverAccordion/RiverAccordion.module.js +21 -0
- package/esm/river/RiverAccordion/RiverAccordion.module.js.map +1 -0
- package/esm/river/RiverAccordion/index.d.ts +2 -0
- package/esm/river/RiverAccordion/index.d.ts.map +1 -0
- package/esm/river/RiverBreakout/RiverBreakout.d.ts +20 -0
- package/esm/river/RiverBreakout/RiverBreakout.d.ts.map +1 -0
- package/esm/river/RiverBreakout/RiverBreakout.js +34 -0
- package/esm/river/RiverBreakout/RiverBreakout.js.map +1 -0
- package/esm/river/RiverBreakout/index.d.ts +2 -0
- package/esm/river/RiverBreakout/index.d.ts.map +1 -0
- package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.d.ts +42 -0
- package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.d.ts.map +1 -0
- package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.js +192 -0
- package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.js.map +1 -0
- package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.module-CyFjQIyU.css +1 -0
- package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.module.js +34 -0
- package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.module.js.map +1 -0
- package/esm/river/RiverBreakoutTabs/index.d.ts +2 -0
- package/esm/river/RiverBreakoutTabs/index.d.ts.map +1 -0
- package/esm/river/RiverStoryScroll/RiverStoryScroll.d.ts +23 -0
- package/esm/river/RiverStoryScroll/RiverStoryScroll.d.ts.map +1 -0
- package/esm/river/RiverStoryScroll/RiverStoryScroll.js +83 -0
- package/esm/river/RiverStoryScroll/RiverStoryScroll.js.map +1 -0
- package/esm/river/RiverStoryScroll/RiverStoryScroll.module-D8dFaLHq.css +1 -0
- package/esm/river/RiverStoryScroll/RiverStoryScroll.module.js +27 -0
- package/esm/river/RiverStoryScroll/RiverStoryScroll.module.js.map +1 -0
- package/esm/river/RiverStoryScroll/RiverStoryScrollProvider.d.ts +13 -0
- package/esm/river/RiverStoryScroll/RiverStoryScrollProvider.d.ts.map +1 -0
- package/esm/river/RiverStoryScroll/RiverStoryScrollProvider.js +33 -0
- package/esm/river/RiverStoryScroll/RiverStoryScrollProvider.js.map +1 -0
- package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.d.ts +11 -0
- package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.d.ts.map +1 -0
- package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.js +24 -0
- package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.js.map +1 -0
- package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.d.ts +10 -0
- package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.d.ts.map +1 -0
- package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.js +41 -0
- package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.js.map +1 -0
- package/esm/river/RiverStoryScroll/index.d.ts +2 -0
- package/esm/river/RiverStoryScroll/index.d.ts.map +1 -0
- package/esm/river/index.d.ts +6 -0
- package/esm/river/index.d.ts.map +1 -0
- package/esm/river/river-shared.module-Cc5R8-Kl.css +1 -0
- package/esm/river/river-shared.module.js +32 -0
- package/esm/river/river-shared.module.js.map +1 -0
- package/esm/utils/isFragmentElement.d.ts +5 -0
- package/esm/utils/isFragmentElement.d.ts.map +1 -0
- package/esm/utils/isFragmentElement.js +7 -0
- package/esm/utils/isFragmentElement.js.map +1 -0
- package/lib/Pillar/Pillar.d.ts +2 -4
- package/lib/css/main.css +3297 -3297
- package/lib/css/stylesheets.d.ts +1 -0
- 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/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-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/pagination/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 +1 -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/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/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-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/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/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/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-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/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/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/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/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-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/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/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/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-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/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/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/index.esm.d.ts +7 -0
- package/lib/index.js +1 -1
- package/lib/recipes/FlexTemplate/FlexTemplate.types.d.ts +0 -2
- package/lib/recipes/Flexsuite/{Overview/FlexSuiteSecurityOverview.content.d.ts → Category/FlexSuiteSecurityCategory/FlexSuiteSecurityCategory.content.d.ts} +10 -10
- package/lib/recipes/Flexsuite/Category/FlexSuiteSecurityCategory/FlexSuiteSecurityCategory.d.ts +6 -0
- package/lib/recipes/Flexsuite/Category/index.d.ts +1 -0
- package/lib/recipes/Flexsuite/Overview/index.d.ts +1 -2
- package/package.json +32 -4
- package/lib/recipes/Flexsuite/Overview/FlexSuiteSecurityOverview.d.ts +0 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAA;AAUlE,OAAO,2GAA2G,CAAA;AAClH,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAE9C,KAAK,gBAAgB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;AAC7C,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,CAAC,EAAE,gBAAgB,CAAA;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,OAAO,GAAG,aAAa,CAAA;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,GAAG,SAAS,CAAC,cAAc,CAAC,CAAA;AAE7B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAA;IAChC,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAA;IACjC,YAAY,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAA;IACtC,YAAY,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAA;IACtC,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CAC1C,CAAA;AAkCD,eAAO,MAAM,cAAc;gBAAoC,MAAM;EAAM,CAAA;AAE3E,eAAO,MAAM,OAAO,2FAgKnB,CAAA"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import e from "../node_modules/clsx/dist/clsx.js";
|
|
2
|
+
import { useId as t } from "../hooks/useId.js";
|
|
3
|
+
import { useProvidedRefOrCreate as n } from "../hooks/useRef.js";
|
|
4
|
+
import r from "./Tooltip.module.js";
|
|
5
|
+
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes-BrRCxJ2E.css';/* empty css */
|
|
6
|
+
import i, { Children as a, useEffect as o, useRef as s, useState as c } from "react";
|
|
7
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
|
+
import { getAnchoredPosition as d } from "@primer/behaviors";
|
|
9
|
+
import { apply as f, isSupported as p } from "@oddbird/popover-polyfill/fn";
|
|
10
|
+
//#region src/Tooltip/Tooltip.tsx
|
|
11
|
+
var m = {
|
|
12
|
+
n: {
|
|
13
|
+
side: "outside-top",
|
|
14
|
+
align: "center"
|
|
15
|
+
},
|
|
16
|
+
e: {
|
|
17
|
+
side: "outside-right",
|
|
18
|
+
align: "center"
|
|
19
|
+
},
|
|
20
|
+
s: {
|
|
21
|
+
side: "outside-bottom",
|
|
22
|
+
align: "center"
|
|
23
|
+
},
|
|
24
|
+
w: {
|
|
25
|
+
side: "outside-left",
|
|
26
|
+
align: "center"
|
|
27
|
+
}
|
|
28
|
+
}, h = {
|
|
29
|
+
"outside-top-center": "n",
|
|
30
|
+
"outside-right-center": "e",
|
|
31
|
+
"outside-bottom-center": "s",
|
|
32
|
+
"outside-left-center": "w"
|
|
33
|
+
}, g = [
|
|
34
|
+
"a[href]",
|
|
35
|
+
"button:not(:disabled)",
|
|
36
|
+
"summary",
|
|
37
|
+
"select",
|
|
38
|
+
"input:not([type=hidden])",
|
|
39
|
+
"textarea"
|
|
40
|
+
], _ = (e) => g.some((t) => e.matches(t)) || e.hasAttribute("role") && e.getAttribute("role") === "button", v = i.createContext({}), y = i.forwardRef(({ direction: g = "s", text: y, type: b = "description", children: x, id: S, className: C, ...w }, T) => {
|
|
41
|
+
let E = t(S), D = a.only(x) ?? null, O = n(T), k = s(null), A = s(null), [j, M] = c(g), N = i.useCallback(() => {
|
|
42
|
+
A.current &&= (clearTimeout(A.current), null), k.current && O.current && !k.current.matches(":popover-open") && k.current.showPopover();
|
|
43
|
+
}, [k, O]), P = i.useCallback(() => {
|
|
44
|
+
A.current = setTimeout(() => {
|
|
45
|
+
k.current && O.current && k.current.matches(":popover-open") && k.current.hidePopover();
|
|
46
|
+
}, 200);
|
|
47
|
+
}, [k, O]);
|
|
48
|
+
return o(() => () => {
|
|
49
|
+
A.current && clearTimeout(A.current);
|
|
50
|
+
}, [A]), o(() => {
|
|
51
|
+
if (!k.current || !O.current) return;
|
|
52
|
+
let e = _(O.current), t = O.current.childNodes, n = Array.from(t).some((e) => e instanceof HTMLElement && _(e));
|
|
53
|
+
if (!(e || n) && (process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test") && console.warn("The `Tooltip` component expects a single React element that contains interactive content. Consider using a `<button>` or equivalent interactive element instead."), b === "label") {
|
|
54
|
+
let e = O.current.hasAttribute("aria-label"), t = Array.from(O.current.childNodes).some((e) => e instanceof HTMLElement && e.hasAttribute("aria-label"));
|
|
55
|
+
(e || t) && (process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test") && console.warn("The label type `Tooltip` is going to be used here to label the trigger element. Please remove the aria-label from the trigger element.");
|
|
56
|
+
}
|
|
57
|
+
typeof window < "u" && (p() || f());
|
|
58
|
+
let r = k.current, i = O.current;
|
|
59
|
+
r.setAttribute("popover", "auto");
|
|
60
|
+
let a = {
|
|
61
|
+
side: m[g].side,
|
|
62
|
+
align: m[g].align,
|
|
63
|
+
anchorOffset: 8
|
|
64
|
+
}, o = () => {
|
|
65
|
+
let { top: e, left: t, anchorAlign: n, anchorSide: o } = d(r, i, a);
|
|
66
|
+
r.style.top = `${e}px`, r.style.left = `${t}px`;
|
|
67
|
+
let s = h[`${o}-${n}`];
|
|
68
|
+
M(s);
|
|
69
|
+
};
|
|
70
|
+
return r.addEventListener("toggle", o), () => {
|
|
71
|
+
r.removeEventListener("toggle", o);
|
|
72
|
+
};
|
|
73
|
+
}, [
|
|
74
|
+
k,
|
|
75
|
+
O,
|
|
76
|
+
g,
|
|
77
|
+
b
|
|
78
|
+
]), /* @__PURE__ */ u(v.Provider, {
|
|
79
|
+
value: { tooltipId: E },
|
|
80
|
+
children: [D && i.cloneElement(D, {
|
|
81
|
+
ref: O,
|
|
82
|
+
"aria-describedby": b === "description" ? E : D.props["aria-describedby"],
|
|
83
|
+
"aria-labelledby": b === "label" ? E : D.props["aria-labelledby"],
|
|
84
|
+
onBlur: (e) => {
|
|
85
|
+
P(), D.props.onBlur?.(e);
|
|
86
|
+
},
|
|
87
|
+
onFocus: (e) => {
|
|
88
|
+
N(), D.props.onFocus?.(e);
|
|
89
|
+
},
|
|
90
|
+
onMouseEnter: (e) => {
|
|
91
|
+
N(), D.props.onMouseEnter?.(e);
|
|
92
|
+
},
|
|
93
|
+
onMouseLeave: (e) => {
|
|
94
|
+
P(), D.props.onMouseLeave?.(e);
|
|
95
|
+
}
|
|
96
|
+
}), /* @__PURE__ */ l("div", {
|
|
97
|
+
className: e(r.Tooltip, C),
|
|
98
|
+
ref: k,
|
|
99
|
+
"data-direction": j,
|
|
100
|
+
...w,
|
|
101
|
+
role: b === "description" ? "tooltip" : void 0,
|
|
102
|
+
"aria-hidden": b === "label" ? !0 : void 0,
|
|
103
|
+
id: E,
|
|
104
|
+
onMouseEnter: N,
|
|
105
|
+
onMouseLeave: P,
|
|
106
|
+
children: y
|
|
107
|
+
})]
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
//#endregion
|
|
111
|
+
export { y as Tooltip, v as TooltipContext };
|
|
112
|
+
|
|
113
|
+
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.Primer_Brand__Tooltip-module__Tooltip___0Eipx{display:none}@media (forced-colors:active){.Primer_Brand__Tooltip-module__Tooltip___0Eipx{outline:var(--brand-borderWidth-thin) solid transparent}}.Primer_Brand__Tooltip-module__Tooltip___0Eipx[popover]{--offset:var(--base-size-8,--base-size-8);--b:1em;--h:.5em;--p:50%;--r:var(--brand-borderRadius-medium);--c:var(--brand-color-neutral-emphasisPlus);clip:auto;white-space:normal;width:max-content;font:normal normal var(--brand-text-size-100) / var(--brand-text-lineHeight-100) var(--brand-fontStack-sansSerif);-webkit-font-smoothing:subpixel-antialiased;color:var(--brand-Tooltip-color-default);text-align:center;word-wrap:break-word;background:var(--c);border-radius:var(--r);opacity:0;border:0;max-width:250px;margin:auto;padding:.5em .75em;position:absolute;inset:auto;overflow:visible}:is(.Primer_Brand__Tooltip-module__Tooltip___0Eipx[popover]:popover-open,.Primer_Brand__Tooltip-module__Tooltip___0Eipx[popover].Primer_Brand__Tooltip-module__\:popover-open___GpZlX){animation-name:Primer_Brand__Tooltip-module__tooltip-appear___hAyFD;animation-duration:.2s;animation-duration:var(--brand-animation-duration-faster,.2s);animation-timing-function:ease-in;animation-delay:0s;animation-fill-mode:forwards;display:block}.Primer_Brand__Tooltip-module__Tooltip___0Eipx:after{height:var(--offset);content:"";display:block;position:absolute;left:0;right:0}.Primer_Brand__Tooltip-module__Tooltip___0Eipx[data-direction=n]{-o-border-image:conic-gradient(var(--c) 0, var(--c) 0) 0 / var(--r) calc(100% - var(--p) - var(--b) / 2) 0 calc(var(--p) - var(--b) / 2) / 0 0 var(--h) 0;border-image:conic-gradient(var(--c) 0, var(--c) 0) fill 0 / var(--r) calc(100% - var(--p) - var(--b) / 2) 0 calc(var(--p) - var(--b) / 2) / 0 0 var(--h) 0;clip-path:polygon(0 100%, 0 0, 100% 0, 100% 100%, min(100%, var(--p) + var(--b) / 2) 100%, var(--p) calc(100% + var(--h)), max(0%, var(--p) - var(--b) / 2) 100%)}@supports (background:conic-gradient(red 0deg, red 0deg 1deg, red 2deg)){.Primer_Brand__Tooltip-module__Tooltip___0Eipx[data-direction=n]{-o-border-image:conic-gradient(var(--c) 0 0) 0 / var(--r) calc(100% - var(--p) - var(--b) / 2) 0 calc(var(--p) - var(--b) / 2) / 0 0 var(--h) 0;border-image:conic-gradient(var(--c) 0 0) fill 0 / var(--r) calc(100% - var(--p) - var(--b) / 2) 0 calc(var(--p) - var(--b) / 2) / 0 0 var(--h) 0}}.Primer_Brand__Tooltip-module__Tooltip___0Eipx[data-direction=s]{-o-border-image:conic-gradient(var(--c) 0, var(--c) 0) 0/ 0 calc(100% - var(--p) - var(--b) / 2) var(--r) calc(var(--p) - var(--b) / 2) / var(--h) 0 0 0;border-image:conic-gradient(var(--c) 0, var(--c) 0) fill 0/ 0 calc(100% - var(--p) - var(--b) / 2) var(--r) calc(var(--p) - var(--b) / 2) / var(--h) 0 0 0;clip-path:polygon(0 0, 0 100%, 100% 100%, 100% 0, min(100%, var(--p) + var(--b) / 2) 0, var(--p) calc(-1 * var(--h)), max(0%, var(--p) - var(--b) / 2) 0)}@supports (background:conic-gradient(red 0deg, red 0deg 1deg, red 2deg)){.Primer_Brand__Tooltip-module__Tooltip___0Eipx[data-direction=s]{-o-border-image:conic-gradient(var(--c) 0 0) 0/ 0 calc(100% - var(--p) - var(--b) / 2) var(--r) calc(var(--p) - var(--b) / 2) / var(--h) 0 0 0;border-image:conic-gradient(var(--c) 0 0) fill 0/ 0 calc(100% - var(--p) - var(--b) / 2) var(--r) calc(var(--p) - var(--b) / 2) / var(--h) 0 0 0}}.Primer_Brand__Tooltip-module__Tooltip___0Eipx[data-direction=w]{-o-border-image:conic-gradient(var(--c) 0, var(--c) 0) 0 / calc(var(--p) - var(--b) / 2) 0 calc(100% - var(--p) - var(--b) / 2) var(--r) / 0 var(--h) 0 0;border-image:conic-gradient(var(--c) 0, var(--c) 0) fill 0 / calc(var(--p) - var(--b) / 2) 0 calc(100% - var(--p) - var(--b) / 2) var(--r) / 0 var(--h) 0 0;clip-path:polygon(100% 100%, 0 100%, 0 0, 100% 0, 100% max(0%, var(--p) - var(--b) / 2), calc(100% + var(--h)) var(--p), 100% min(100%, var(--p) + var(--b) / 2))}@supports (background:conic-gradient(red 0deg, red 0deg 1deg, red 2deg)){.Primer_Brand__Tooltip-module__Tooltip___0Eipx[data-direction=w]{-o-border-image:conic-gradient(var(--c) 0 0) 0 / calc(var(--p) - var(--b) / 2) 0 calc(100% - var(--p) - var(--b) / 2) var(--r) / 0 var(--h) 0 0;border-image:conic-gradient(var(--c) 0 0) fill 0 / calc(var(--p) - var(--b) / 2) 0 calc(100% - var(--p) - var(--b) / 2) var(--r) / 0 var(--h) 0 0}}.Primer_Brand__Tooltip-module__Tooltip___0Eipx[data-direction=e]{-o-border-image:conic-gradient(var(--c) 0, var(--c) 0) 0 / calc(var(--p) - var(--b) / 2) var(--r) calc(100% - var(--p) - var(--b) / 2) 0/ 0 0 0 var(--h);border-image:conic-gradient(var(--c) 0, var(--c) 0) fill 0 / calc(var(--p) - var(--b) / 2) var(--r) calc(100% - var(--p) - var(--b) / 2) 0/ 0 0 0 var(--h);clip-path:polygon(0 100%, 100% 100%, 100% 0, 0 0, 0 max(0%, var(--p) - var(--b) / 2), calc(-1 * var(--h)) var(--p), 0 min(100%, var(--p) + var(--b) / 2))}@supports (background:conic-gradient(red 0deg, red 0deg 1deg, red 2deg)){.Primer_Brand__Tooltip-module__Tooltip___0Eipx[data-direction=e]{-o-border-image:conic-gradient(var(--c) 0 0) 0 / calc(var(--p) - var(--b) / 2) var(--r) calc(100% - var(--p) - var(--b) / 2) 0/ 0 0 0 var(--h);border-image:conic-gradient(var(--c) 0 0) fill 0 / calc(var(--p) - var(--b) / 2) var(--r) calc(100% - var(--p) - var(--b) / 2) 0/ 0 0 0 var(--h)}}.Primer_Brand__Tooltip-module__Tooltip___0Eipx[data-direction=n]:after{top:100%}.Primer_Brand__Tooltip-module__Tooltip___0Eipx[data-direction=s]:after{bottom:100%}.Primer_Brand__Tooltip-module__Tooltip___0Eipx[data-direction=w]:after{height:100%;width:var(--offset);content:"";display:block;position:absolute;bottom:0;left:100%}.Primer_Brand__Tooltip-module__Tooltip___0Eipx[data-direction=e]:after{height:100%;width:var(--offset);content:"";margin-left:calc(var(--offset) * -1px);display:block;position:absolute;bottom:0;right:100%}@keyframes Primer_Brand__Tooltip-module__tooltip-appear___hAyFD{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.Primer_Brand__Tooltip-module__Tooltip___0Eipx,.Primer_Brand__Tooltip-module__Tooltip___0Eipx:before,.Primer_Brand__Tooltip-module__Tooltip___0Eipx:after,.Primer_Brand__Tooltip-module__Tooltip___0Eipx *{animation-duration:0s!important}}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import './Tooltip.module-5Km7qGR5.css';var e = {
|
|
2
|
+
Tooltip: "Primer_Brand__Tooltip-module__Tooltip___0Eipx",
|
|
3
|
+
":popover-open": "Primer_Brand__Tooltip-module__:popover-open___GpZlX",
|
|
4
|
+
"tooltip-appear": "Primer_Brand__Tooltip-module__tooltip-appear___hAyFD"
|
|
5
|
+
};
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as default };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=Tooltip.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.module.js","names":[],"sources":["../../src/Tooltip/Tooltip.module.css"],"sourcesContent":[".Tooltip {\n display: none;\n}\n\n@media (forced-colors: active) {\n .Tooltip {\n outline: var(--brand-borderWidth-thin) solid transparent;\n }\n}\n\n/* Overriding the default popover styles */\n.Tooltip[popover] {\n --offset: var(\n --base-size-8,\n --base-size-8\n ); /* This is a \"magic number\". Just gives some room to make sure the tooltip stay open when mouse leaves the trigger to hover tooltip */\n /* these vars are for the triangle, via https://www.smashingmagazine.com/2024/03/modern-css-tooltips-speech-bubbles-part1/ */\n --b: 1em; /* triangle base width */\n --h: 0.5em; /* triangle height */\n --p: 50%; /* center triangle position (0%:left 100%:right) */\n --r: var(--brand-borderRadius-medium); /* border radius */\n --c: var(--brand-color-neutral-emphasisPlus); /* bg color */\n\n position: absolute;\n padding: 0.5em 0.75em;\n width: max-content;\n margin: auto;\n clip: auto;\n white-space: normal;\n font: normal normal var(--brand-text-size-100) / var(--brand-text-lineHeight-100) var(--brand-fontStack-sansSerif);\n -webkit-font-smoothing: subpixel-antialiased;\n color: var(--brand-Tooltip-color-default);\n text-align: center;\n word-wrap: break-word;\n background: var(--c);\n border-radius: var(--r);\n border: 0;\n opacity: 0;\n max-width: 250px;\n inset: auto;\n /* for scrollbar */\n overflow: visible;\n}\n\n.Tooltip[popover]:popover-open, /* selector in chrome is :popover-open */\n.Tooltip[popover].\\:popover-open {\n /* selector in firefox and safari is \\:popover-open */\n display: block;\n animation-name: tooltip-appear;\n animation-duration: var(--brand-animation-duration-faster, 0.2s);\n animation-fill-mode: forwards;\n animation-timing-function: ease-in;\n animation-delay: 0s;\n}\n\n/* This is needed to keep the tooltip open when the user leaves the trigger element to hover tooltip */\n.Tooltip::after {\n position: absolute;\n display: block;\n right: 0;\n left: 0;\n height: var(--offset);\n content: '';\n}\n\n/* Directional styles */\n.Tooltip[data-direction='n'] {\n border-image: conic-gradient(var(--c) 0 0) fill 0 / var(--r) calc(100% - var(--p) - var(--b) / 2) 0\n calc(var(--p) - var(--b) / 2) / 0 0 var(--h) 0;\n clip-path: polygon(\n 0 100%,\n 0 0,\n 100% 0,\n 100% 100%,\n min(100%, var(--p) + var(--b) / 2) 100%,\n var(--p) calc(100% + var(--h)),\n max(0%, var(--p) - var(--b) / 2) 100%\n );\n}\n\n.Tooltip[data-direction='s'] {\n border-image: conic-gradient(var(--c) 0 0) fill 0/ 0 calc(100% - var(--p) - var(--b) / 2) var(--r) calc(\n var(--p) - var(--b) / 2\n ) / var(--h) 0 0 0;\n clip-path: polygon(\n 0 0,\n 0 100%,\n 100% 100%,\n 100% 0,\n min(100%, var(--p) + var(--b) / 2) 0,\n var(--p) calc(-1 * var(--h)),\n max(0%, var(--p) - var(--b) / 2) 0\n );\n}\n\n.Tooltip[data-direction='w'] {\n border-image: conic-gradient(var(--c) 0 0) fill 0 / calc(var(--p) - var(--b) / 2) 0\n calc(100% - var(--p) - var(--b) / 2) var(--r) / 0 var(--h) 0 0;\n clip-path: polygon(\n 100% 100%,\n 0 100%,\n 0 0,\n 100% 0,\n 100% max(0%, var(--p) - var(--b) / 2),\n calc(100% + var(--h)) var(--p),\n 100% min(100%, var(--p) + var(--b) / 2)\n );\n}\n\n.Tooltip[data-direction='e'] {\n border-image: conic-gradient(var(--c) 0 0) fill 0 / calc(var(--p) - var(--b) / 2) var(--r)\n calc(100% - var(--p) - var(--b) / 2) 0/ 0 0 0 var(--h);\n clip-path: polygon(\n 0 100%,\n 100% 100%,\n 100% 0,\n 0 0,\n 0 max(0%, var(--p) - var(--b) / 2),\n calc(-1 * var(--h)) var(--p),\n 0 min(100%, var(--p) + var(--b) / 2)\n );\n}\n\n.Tooltip[data-direction='n']::after {\n top: 100%;\n}\n\n.Tooltip[data-direction='s']::after {\n bottom: 100%;\n}\n\n.Tooltip[data-direction='w']::after {\n position: absolute;\n display: block;\n height: 100%;\n width: var(--offset);\n content: '';\n bottom: 0;\n left: 100%;\n}\n\n.Tooltip[data-direction='e']::after {\n position: absolute;\n display: block;\n height: 100%;\n width: var(--offset);\n content: '';\n bottom: 0;\n right: 100%;\n margin-left: calc(var(--offset) * -1px);\n}\n\n@keyframes tooltip-appear {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */\n@media (prefers-reduced-motion: reduce) {\n .Tooltip,\n .Tooltip::before,\n .Tooltip::after,\n .Tooltip * {\n animation-duration: 0s !important;\n }\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Tooltip/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React, { type HTMLProps, type FunctionComponent } from 'react';
|
|
2
|
+
import { type AnimateProps } from '../animation';
|
|
3
|
+
/**
|
|
4
|
+
* Design tokens
|
|
5
|
+
*/
|
|
6
|
+
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/video-player/base.css';
|
|
7
|
+
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css';
|
|
8
|
+
type VideoPlayerProps = {
|
|
9
|
+
title: string;
|
|
10
|
+
visuallyHiddenTitle?: boolean;
|
|
11
|
+
showBranding?: boolean;
|
|
12
|
+
animate?: AnimateProps;
|
|
13
|
+
showPlayPauseButton?: boolean;
|
|
14
|
+
showSeekControl?: boolean;
|
|
15
|
+
showCCButton?: boolean;
|
|
16
|
+
showMuteButton?: boolean;
|
|
17
|
+
showVolumeControl?: boolean;
|
|
18
|
+
showFullScreenButton?: boolean;
|
|
19
|
+
playIcon?: FunctionComponent;
|
|
20
|
+
} & HTMLProps<HTMLVideoElement>;
|
|
21
|
+
export declare const VideoPlayer: React.ForwardRefExoticComponent<Omit<VideoPlayerProps, "ref"> & React.RefAttributes<HTMLVideoElement>> & {
|
|
22
|
+
Source: (props: React.HTMLProps<HTMLSourceElement>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
Track: ({ kind, ...rest }: React.HTMLProps<HTMLTrackElement>) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
Provider: React.ForwardRefExoticComponent<{
|
|
25
|
+
children?: React.ReactNode | undefined;
|
|
26
|
+
} & React.RefAttributes<HTMLVideoElement>>;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=VideoPlayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VideoPlayer.d.ts","sourceRoot":"","sources":["../../src/VideoPlayer/VideoPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAsC,KAAK,SAAS,EAAE,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAGxG,OAAO,EAAC,KAAK,YAAY,EAAC,MAAM,cAAc,CAAA;AAc9C;;GAEG;AACH,OAAO,mGAAmG,CAAA;AAC1G,OAAO,gHAAgH,CAAA;AAQvH,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC7B,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAAA;AAwI/B,eAAO,MAAM,WAAW;oBAlBU,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC;+BAEZ,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC;;;;CAoBvF,CAAA"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import e from "../node_modules/clsx/dist/clsx.js";
|
|
2
|
+
import { useProvidedRefOrCreate as t } from "../hooks/useRef.js";
|
|
3
|
+
import { Text as n } from "../Text/Text.js";
|
|
4
|
+
import { PlayIcon as r } from "./components/PlayIcon/PlayIcon.js";
|
|
5
|
+
import { MarkGithubIcon as i } from "../node_modules/@primer/octicons-react/dist/index.esm.js";
|
|
6
|
+
import a from "./VideoPlayer.module.js";
|
|
7
|
+
import { VideoContext as o, VideoProvider as s, useVideo as c } from "./hooks/useVideo.js";
|
|
8
|
+
import { Captions as l } from "./components/Captions/Captions.js";
|
|
9
|
+
import { CCButton as u } from "./components/CCButton/CCButton.js";
|
|
10
|
+
import { ControlsBar as d } from "./components/ControlsBar/ControlsBar.js";
|
|
11
|
+
import { useVideoResizeObserver as f } from "./hooks/useVideoResizeObserver.js";
|
|
12
|
+
import { FullScreenButton as p } from "./components/FullScreenButton/FullScreenButton.js";
|
|
13
|
+
import { MuteButton as m } from "./components/MuteButton/MuteButton.js";
|
|
14
|
+
import { PlayPauseButton as h } from "./components/PlayPauseButton/PlayPauseButton.js";
|
|
15
|
+
import { SeekControl as g } from "./components/SeekControl/SeekControl.js";
|
|
16
|
+
import { VolumeControl as _ } from "./components/VolumeControl/VolumeControl.js";
|
|
17
|
+
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes-CTkp-z-l.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/video-player/base-Bs0Tq22P.css';/* empty css */
|
|
18
|
+
/* empty css */
|
|
19
|
+
import { forwardRef as v, useCallback as y, useContext as b } from "react";
|
|
20
|
+
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
21
|
+
//#region src/VideoPlayer/VideoPlayer.tsx
|
|
22
|
+
var C = v(({ title: o, visuallyHiddenTitle: s, showBranding: v = !0, children: b, className: C, showPlayPauseButton: T = !0, showSeekControl: E = !0, showCCButton: D = !0, showMuteButton: O = !0, showVolumeControl: k = !0, showFullScreenButton: A = !0, playIcon: j = () => /* @__PURE__ */ x(r, { className: a.VideoPlayer__playButton }), ...M }, N) => {
|
|
23
|
+
let { ccEnabled: P, fullscreenRef: F, isPlaying: I, ref: L, togglePlaying: R } = c(), z = t(y((e) => {
|
|
24
|
+
w(N, e);
|
|
25
|
+
}, [N])), B = y((e) => {
|
|
26
|
+
w(L, e), w(z, e);
|
|
27
|
+
}, [L, z]), V = f({
|
|
28
|
+
videoWrapperRef: F,
|
|
29
|
+
className: a["VideoPlayer__container--small"]
|
|
30
|
+
}), H = T || E, U = D || O || k || A, W = H || U;
|
|
31
|
+
return /* @__PURE__ */ S("div", {
|
|
32
|
+
"data-video-player-container": !0,
|
|
33
|
+
className: a.VideoPlayer__container,
|
|
34
|
+
ref: F,
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ S("div", {
|
|
37
|
+
className: a.VideoPlayer__overlayContainer,
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ S("video", {
|
|
40
|
+
ref: B,
|
|
41
|
+
title: o,
|
|
42
|
+
controls: !1,
|
|
43
|
+
className: e(a.VideoPlayer, C),
|
|
44
|
+
...M,
|
|
45
|
+
children: [b, /* @__PURE__ */ x("track", { kind: "captions" })]
|
|
46
|
+
}),
|
|
47
|
+
v || !s ? /* @__PURE__ */ S("div", {
|
|
48
|
+
className: e(a.VideoPlayer__title, I && a["VideoPlayer__title--hidden"]),
|
|
49
|
+
children: [v && /* @__PURE__ */ x(i, {
|
|
50
|
+
size: 40,
|
|
51
|
+
"aria-label": "GitHub logo"
|
|
52
|
+
}), !s && /* @__PURE__ */ x(n, {
|
|
53
|
+
size: "400",
|
|
54
|
+
weight: "medium",
|
|
55
|
+
className: a.VideoPlayer__controlTextColor,
|
|
56
|
+
children: o
|
|
57
|
+
})]
|
|
58
|
+
}) : null,
|
|
59
|
+
/* @__PURE__ */ x("button", {
|
|
60
|
+
className: e(a.VideoPlayer__playButtonOverlay, I && a["VideoPlayer__playButtonOverlay--transparent"]),
|
|
61
|
+
onClick: R,
|
|
62
|
+
"aria-label": I ? "Pause" : "Play",
|
|
63
|
+
children: !I && /* @__PURE__ */ x(j, {})
|
|
64
|
+
})
|
|
65
|
+
]
|
|
66
|
+
}),
|
|
67
|
+
P && /* @__PURE__ */ x(l, {}),
|
|
68
|
+
W && /* @__PURE__ */ S(d, { children: [H && /* @__PURE__ */ S("div", {
|
|
69
|
+
className: a.VideoPlayer__controlsBar__row1,
|
|
70
|
+
children: [T && /* @__PURE__ */ x(h, {}), E && /* @__PURE__ */ x(g, {})]
|
|
71
|
+
}), U && /* @__PURE__ */ S("div", {
|
|
72
|
+
className: a.VideoPlayer__controlsBar__row2,
|
|
73
|
+
children: [
|
|
74
|
+
D && /* @__PURE__ */ x(u, {}),
|
|
75
|
+
O && /* @__PURE__ */ x(m, {}),
|
|
76
|
+
k && !V && /* @__PURE__ */ x(_, {}),
|
|
77
|
+
A && /* @__PURE__ */ x(p, {})
|
|
78
|
+
]
|
|
79
|
+
})] })
|
|
80
|
+
]
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
function w(e, t) {
|
|
84
|
+
if (e) {
|
|
85
|
+
if (typeof e == "function") {
|
|
86
|
+
e(t);
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
e.current = t;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
var T = (e) => /* @__PURE__ */ x("source", { ...e }), E = ({ kind: e = "captions", ...t }) => /* @__PURE__ */ x("track", {
|
|
93
|
+
kind: e,
|
|
94
|
+
...t
|
|
95
|
+
}), D = v((e, t) => b(o) ? /* @__PURE__ */ x(C, {
|
|
96
|
+
ref: t,
|
|
97
|
+
...e
|
|
98
|
+
}) : /* @__PURE__ */ x(s, { children: /* @__PURE__ */ x(C, {
|
|
99
|
+
ref: t,
|
|
100
|
+
...e
|
|
101
|
+
}) })), O = Object.assign(D, {
|
|
102
|
+
Source: T,
|
|
103
|
+
Track: E,
|
|
104
|
+
Provider: s
|
|
105
|
+
});
|
|
106
|
+
//#endregion
|
|
107
|
+
export { O as VideoPlayer };
|
|
108
|
+
|
|
109
|
+
//# sourceMappingURL=VideoPlayer.js.map
|
|
@@ -0,0 +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,yBAA2B,CAAA,EACzF,GAAG,KAEL,MACG;CAEH,IAAM,EAAC,cAAW,kBAAe,cAAW,QAAK,qBAD5B,GAC6C,EAO5D,IAAc,EANS,GAC1B,MAAkC;AACjC,IAAU,GAAc,EAAK;IAE/B,CAAC,EAAa,CAE6C,CAAqB,EAE5E,IAAqB,GACxB,MAAkC;AAEjC,EADA,EAAU,GAAK,EAAK,EACpB,EAAU,GAAa,EAAK;IAE9B,CAAC,GAAK,EAAY,CACnB,EAEK,IAAU,EAAuB;EACrC,iBAAiB;EACjB,WAAW,EAAO;EACnB,CAAC,EAEI,IAAmB,KAAuB,GAC1C,IAAmB,KAAgB,KAAkB,KAAqB,GAC1E,IAAkB,KAAoB;AAE5C,QACE,kBAAC,OAAD;EAAK,+BAAA;EAA4B,WAAW,EAAO;EAAwB,KAAK;YAAhF;GACE,kBAAC,OAAD;IAAK,WAAW,EAAO;cAAvB;KACE,kBAAC,SAAD;MACE,KAAK;MACE;MACP,UAAU;MACV,WAAW,EAAK,EAAO,aAAa,EAAU;MAC9C,GAAI;gBALN,CAOG,GACD,kBAAC,SAAD,EAAO,MAAK,YAAa,CAAA,CACnB;;KACP,KAAgB,CAAC,IAChB,kBAAC,OAAD;MAAK,WAAW,EAAK,EAAO,oBAAoB,KAAa,EAAO,8BAA8B;gBAAlG,CACG,KAAgB,kBAAC,GAAD;OAAgB,MAAM;OAAI,cAAW;OAAgB,CAAA,EACrE,CAAC,KACA,kBAAC,GAAD;OAAM,MAAK;OAAM,QAAO;OAAS,WAAW,EAAO;iBAChD;OACI,CAAA,CAEL;UACJ;KACJ,kBAAC,UAAD;MACE,WAAW,EACT,EAAO,gCACP,KAAa,EAAO,+CACrB;MACD,SAAS;MACT,cAAY,IAAY,UAAU;gBAEjC,CAAC,KAAa,kBAAC,GAAD,EAAY,CAAA;MACpB,CAAA;KACL;;GAEL,KAAa,kBAAC,GAAD,EAAY,CAAA;GACzB,KACC,kBAAC,GAAD,EAAA,UAAA,CACG,KACC,kBAAC,OAAD;IAAK,WAAW,EAAO;cAAvB,CACG,KAAuB,kBAAC,GAAD,EAAmB,CAAA,EAC1C,KAAmB,kBAAC,GAAD,EAAe,CAAA,CAC/B;OAEP,KACC,kBAAC,OAAD;IAAK,WAAW,EAAO;cAAvB;KACG,KAAgB,kBAAC,GAAD,EAAY,CAAA;KAC5B,KAAkB,kBAAC,GAAD,EAAc,CAAA;KAChC,KAAqB,CAAC,KAAW,kBAAC,GAAD,EAAiB,CAAA;KAClD,KAAwB,kBAAC,GAAD,EAAoB,CAAA;KACzC;MAEI,EAAA,CAAA;GAEZ;;EAGX;AAED,SAAS,EAAa,GAAiE,GAAiB;AACjG,QAEL;MAAI,OAAO,KAAc,YAAY;AACnC,KAAU,EAAM;AAChB;;AAGA,IAA+C,UAAU;;;AAG7D,IAAM,KAAqB,MAA8C,kBAAC,UAAD,EAAQ,GAAI,GAAS,CAAA,EAExF,KAAoB,EAAC,UAAO,YAAY,GAAG,QAC/C,kBAAC,SAAD;CAAa;CAAM,GAAI;CAAQ,CAAA,EAG3B,IAAmB,GAAgD,GAAO,MAC9D,EAAW,EAEpB,GACL,kBAAC,GAAD;CAAW;CAAK,GAAI;CAAS,CAAA,GAE7B,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;CAAW;CAAK,GAAI;CAAS,CAAA,EACf,CAAA,CAElB,EAEW,IAAc,OAAO,OAAO,GAAkB;CACzD,QAAQ;CACR,OAAO;CACP,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.Primer_Brand__VideoPlayer-module__VideoPlayer__container___zr6Iu{border-radius:var(--brand-borderRadius-medium);background-color:var(--base-color-scale-black-0);flex-direction:column;width:100%;display:flex;overflow:hidden}.Primer_Brand__VideoPlayer-module__VideoPlayer__overlayContainer___KADCQ{flex:1;height:100%;position:relative}@media (forced-colors:active){.Primer_Brand__VideoPlayer-module__VideoPlayer__container___zr6Iu{border:var(--brand-borderWidth-thin) solid ButtonBorder}}.Primer_Brand__VideoPlayer-module__VideoPlayer___GJSo9{--brand-VideoPlayer-controls-min-height:56px;width:100%;max-height:calc(100vh - 56px);max-height:calc(100vh - var(--brand-VideoPlayer-controls-min-height));margin:0 auto;display:block}.Primer_Brand__VideoPlayer-module__VideoPlayer__container--fullscreen___MChxa .Primer_Brand__VideoPlayer-module__VideoPlayer___GJSo9{height:100%;position:absolute}.Primer_Brand__VideoPlayer-module__VideoPlayer__playButtonOverlay___uXPU2{z-index:1;background:#0003;border:none;width:100%;height:100%;position:absolute;top:0;left:0}.Primer_Brand__VideoPlayer-module__VideoPlayer__playButtonOverlay___uXPU2 svg{top:calc(var(--brand-VideoPlayer-controls-min-height) / 2);position:relative}.Primer_Brand__VideoPlayer-module__VideoPlayer__playButtonOverlay___uXPU2.Primer_Brand__VideoPlayer-module__VideoPlayer__playButtonOverlay--transparent___0UmfX{background:0 0}.Primer_Brand__VideoPlayer-module__VideoPlayer__playButtonOverlay___uXPU2:focus-visible{outline:var(--brand-borderWidth-thicker) solid var(--brand-color-focus);outline-offset:var(--base-size-2)}.Primer_Brand__VideoPlayer-module__VideoPlayer__playButton___UmSvY{width:25%;height:25%;max-width:var(--brand-VideoPlayer-playButton-width);max-height:var(--brand-VideoPlayer-playButton-height);opacity:.8;color:var(--brand-videoPlayer-playButton-fgColor-rest)}@media (forced-colors:active){.Primer_Brand__VideoPlayer-module__VideoPlayer__playButton___UmSvY{color:highlight;opacity:1}}.Primer_Brand__VideoPlayer-module__VideoPlayer__title___3e5F_{transition:var(--brand-VideoPlayer-transition);z-index:2;width:100%;padding:var(--base-size-16);color:var(--brand-videoPlayer-title-fgColor);grid-gap:var(--base-size-12);background:var(--brand-videoPlayer-title-bgColor);transition:all var(--brand-animation-duration-fast) var(--brand-animation-easing-default);grid-template-columns:auto auto;justify-content:flex-start;align-items:center;display:grid;position:absolute;top:0;left:0}.Primer_Brand__VideoPlayer-module__VideoPlayer__title___3e5F_.Primer_Brand__VideoPlayer-module__VideoPlayer__title--hidden___t7cGG{opacity:0;visibility:hidden}@media (forced-colors:active){.Primer_Brand__VideoPlayer-module__VideoPlayer__title___3e5F_{color:canvastext;background:canvas}}.Primer_Brand__VideoPlayer-module__VideoPlayer__controlsBar___B_mfd{min-height:var(--brand-VideoPlayer-controls-min-height);grid-gap:var(--base-size-16);justify-content:space-between;align-items:center;gap:var(--base-size-16);border-bottom-right-radius:var(--brand-borderRadius-medium);border-bottom-left-radius:var(--brand-borderRadius-medium);width:100%;padding:var(--base-size-12) var(--base-size-16);pointer-events:all;opacity:1;grid-template-columns:1fr;grid-auto-flow:column;display:grid}.Primer_Brand__VideoPlayer-module__VideoPlayer__controlsBar__row1___Vz_Zo,.Primer_Brand__VideoPlayer-module__VideoPlayer__controlsBar__row2___pzzds{align-items:center;gap:var(--base-size-16);display:flex}@media (width<=34rem){.Primer_Brand__VideoPlayer-module__VideoPlayer__controlsBar___B_mfd{gap:var(--base-size-12);grid-template-rows:auto auto;grid-template-columns:1fr;grid-auto-flow:row}.Primer_Brand__VideoPlayer-module__VideoPlayer__controlsBar__row2___pzzds{justify-self:space-evenly;justify-content:space-evenly;width:100%}}.Primer_Brand__VideoPlayer-module__VideoPlayer__controls___FYZtO:focus,.Primer_Brand__VideoPlayer-module__VideoPlayer__controls___FYZtO:focus-within{bottom:0}.Primer_Brand__VideoPlayer-module__VideoPlayer__iconControl____tvm5{cursor:pointer;width:auto;height:var(--base-size-24);box-sizing:content-box;background:0 0;border:none;padding:0;position:relative}.Primer_Brand__VideoPlayer-module__VideoPlayer__iconControl____tvm5:focus-visible{outline:var(--brand-borderWidth-thick) solid var(--brand-color-focus);outline-offset:var(--base-size-6);opacity:1}.Primer_Brand__VideoPlayer-module__VideoPlayer__iconControl____tvm5:not(.Primer_Brand__VideoPlayer-module__VideoPlayer__closedCaption___ODIq4):focus-visible{border-radius:var(--brand-borderRadius-small)}.Primer_Brand__VideoPlayer-module__VideoPlayer__iconControl____tvm5 svg{color:var(--brand-videoPlayer-controls-fgColor)}.Primer_Brand__VideoPlayer-module__VideoPlayer__seek___OwcjI{align-items:center;gap:var(--base-size-16);flex:1;display:flex}.Primer_Brand__VideoPlayer-module__VideoPlayer__progressTime___9p6bX{color:var(--brand-videoPlayer-controls-fgColor)}.Primer_Brand__VideoPlayer-module__VideoPlayer__container--small___aQE4d .Primer_Brand__VideoPlayer-module__VideoPlayer__totalTime___5JBGC{display:none}.Primer_Brand__VideoPlayer-module__VideoPlayer__progressBar___86Eto{height:var(--base-size-6);flex:1}.Primer_Brand__VideoPlayer-module__VideoPlayer__closedCaption___ODIq4{border-radius:var(--brand-borderRadius-medium);padding:.125rem var(--base-size-4);border:.125rem solid var(--brand-videoPlayer-closedCaption-borderColor-enabled);background:var(--brand-videoPlayer-closedCaption-bgColor-enabled);position:relative}.Primer_Brand__VideoPlayer-module__VideoPlayer__ccOff___NHsg6{background-color:#0000}.Primer_Brand__VideoPlayer-module__VideoPlayer__ccText___7TAGa{color:var(--brand-videoPlayer-closedCaption-fgColor-enabled);line-height:25px}.Primer_Brand__VideoPlayer-module__VideoPlayer__ccOff___NHsg6 .Primer_Brand__VideoPlayer-module__VideoPlayer__ccText___7TAGa{color:var(--brand-videoPlayer-closedCaption-fgColor-disabled)}@media (forced-colors:active){.Primer_Brand__VideoPlayer-module__VideoPlayer__iconControl____tvm5 svg{color:buttontext}.Primer_Brand__VideoPlayer-module__VideoPlayer__iconControl____tvm5:focus-visible{outline-color:highlight}.Primer_Brand__VideoPlayer-module__VideoPlayer__closedCaption___ODIq4:focus-visible{outline:none}.Primer_Brand__VideoPlayer-module__VideoPlayer__closedCaption___ODIq4:not(.Primer_Brand__VideoPlayer-module__VideoPlayer__ccOff___NHsg6){background:highlight;border-color:highlight}.Primer_Brand__VideoPlayer-module__VideoPlayer__closedCaption___ODIq4:not(.Primer_Brand__VideoPlayer-module__VideoPlayer__ccOff___NHsg6) .Primer_Brand__VideoPlayer-module__VideoPlayer__ccText___7TAGa{color:highlighttext;background-color:highlight}}.Primer_Brand__VideoPlayer-module__VideoPlayer__range___h4_en{width:100%;min-width:var(--brand-VideoPlayer-range-minWidth);height:var(--brand-VideoPlayer-range-height);background-color:var(--brand-videoPlayer-range-bgColor-default);border-radius:var(--brand-VideoPlayer-range-borderRadius);position:relative}.Primer_Brand__VideoPlayer-module__VideoPlayer__rangeInput___ma_RQ{appearance:none;z-index:1;width:100%;height:var(--brand-VideoPlayer-range-height);cursor:pointer;opacity:0;background:0 0;margin:0;display:block;position:absolute;top:0;left:0}.Primer_Brand__VideoPlayer-module__VideoPlayer__rangeInput___ma_RQ:focus-visible{outline:var(--brand-borderWidth-thick) solid var(--brand-color-focus);outline-offset:var(--base-size-8);border-radius:var(--brand-borderRadius-small);opacity:1}.Primer_Brand__VideoPlayer-module__VideoPlayer__range___h4_en:hover .Primer_Brand__VideoPlayer-module__VideoPlayer__rangeInput___ma_RQ{opacity:1}.Primer_Brand__VideoPlayer-module__VideoPlayer__rangeInput___ma_RQ::-moz-range-track{background:0 0;border:none}.Primer_Brand__VideoPlayer-module__VideoPlayer__rangeInput___ma_RQ::-webkit-slider-runnable-track{background:0 0;border:none}.Primer_Brand__VideoPlayer-module__VideoPlayer__rangeProgress___t_oOr{appearance:none;border-radius:var(--brand-VideoPlayer-range-borderRadius);width:100%;height:var(--brand-VideoPlayer-range-height);border:0;position:absolute;top:0;left:0;overflow:hidden}.Primer_Brand__VideoPlayer-module__VideoPlayer__rangeProgress___t_oOr::-webkit-progress-bar{background-color:var(--brand-videoPlayer-range-bgColor-default)}.Primer_Brand__VideoPlayer-module__VideoPlayer__rangeProgress___t_oOr::-webkit-progress-value{background-color:var(--brand-videoPlayer-range-bgColor-progress)}.Primer_Brand__VideoPlayer-module__VideoPlayer__rangeProgress___t_oOr::-moz-progress-bar{background:var(--brand-videoPlayer-range-bgColor-progress)}.Primer_Brand__VideoPlayer-module__VideoPlayer__rangeProgress___t_oOr::-ms-fill-lower{background-color:var(--brand-videoPlayer-range-bgColor-progress);border:none}.Primer_Brand__VideoPlayer-module__VideoPlayer__rangeProgress___t_oOr::-ms-fill-upper{background-color:var(--brand-videoPlayer-range-bgColor-default);border:none}@media (forced-colors:active){.Primer_Brand__VideoPlayer-module__VideoPlayer__rangeProgress___t_oOr::-webkit-progress-bar{background-color:fieldtext}.Primer_Brand__VideoPlayer-module__VideoPlayer__rangeProgress___t_oOr::-webkit-progress-value{background-color:highlight}.Primer_Brand__VideoPlayer-module__VideoPlayer__rangeProgress___t_oOr::-moz-progress-bar{background:highlight}.Primer_Brand__VideoPlayer-module__VideoPlayer__rangeProgress___t_oOr::-ms-fill-lower{background-color:highlight}.Primer_Brand__VideoPlayer-module__VideoPlayer__rangeProgress___t_oOr::-ms-fill-upper{background-color:fieldtext}}.Primer_Brand__VideoPlayer-module__VideoPlayer__tooltip___QrVwV{z-index:2;width:var(--base-size-8);height:var(--base-size-8);margin-bottom:var(--base-size-16);opacity:0;position:absolute;bottom:100%;left:50%;transform:translate(-50%,50%)}.Primer_Brand__VideoPlayer-module__VideoPlayer__tooltip___QrVwV:before{bottom:calc(var(--base-size-4) * -1);width:var(--base-size-12);height:var(--base-size-12);content:"";background:var(--base-color-scale-white-0);border-radius:var(--brand-borderRadius-small);position:absolute;left:0;transform:rotate(45deg)}.Primer_Brand__VideoPlayer-module__VideoPlayer__tooltipContent___IOBAO{z-index:-1;box-shadow:0 var(--base-size-4) var(--base-size-4) #1b1f2433;padding:var(--brand-VideoPlayer-tooltip-padding-block) var(--brand-VideoPlayer-tooltip-padding-inline);border-radius:var(--brand-borderRadius-medium);background:#fff;position:absolute;bottom:0;left:50%;transform:translate(-50%)}.Primer_Brand__VideoPlayer-module__VideoPlayer__tooltipText___SPfNc{color:var(--base-color-scale-gray-9)}.Primer_Brand__VideoPlayer-module__VideoPlayer__tooltip-visible___nqoFm{opacity:1}.Primer_Brand__VideoPlayer-module__VideoPlayer__controlTextColor___Ih3yg{color:var(--base-color-scale-white-0)}.Primer_Brand__VideoPlayer-module__VideoPlayer__seekTime___Wb0Ol{white-space:nowrap}.Primer_Brand__VideoPlayer-module__VideoPlayer__container--small___aQE4d .Primer_Brand__VideoPlayer-module__VideoPlayer__title___3e5F_ span{font-weight:var(--brand-text-weight-300);font-size:var(--brand-text-size-300);line-height:var(--brand-text-lineHeight-300);letter-spacing:var(--brand-text-letterSpacing-300)}.Primer_Brand__VideoPlayer-module__VideoPlayer__container--small___aQE4d .Primer_Brand__VideoPlayer-module__VideoPlayer__title___3e5F_ svg{width:var(--base-size-24);height:var(--base-size-24)}.Primer_Brand__VideoPlayer-module__VideoPlayer__container--small___aQE4d .Primer_Brand__VideoPlayer-module__VideoPlayer__controls___FYZtO{position:initial;position:static}@media (prefers-reduced-motion:reduce){.Primer_Brand__VideoPlayer-module__VideoPlayer___GJSo9,.Primer_Brand__VideoPlayer-module__VideoPlayer___GJSo9:before,.Primer_Brand__VideoPlayer-module__VideoPlayer___GJSo9:after,.Primer_Brand__VideoPlayer-module__VideoPlayer___GJSo9 *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import './VideoPlayer.module-BpVcE2WB.css';var e = {
|
|
2
|
+
VideoPlayer__container: "Primer_Brand__VideoPlayer-module__VideoPlayer__container___zr6Iu",
|
|
3
|
+
VideoPlayer__overlayContainer: "Primer_Brand__VideoPlayer-module__VideoPlayer__overlayContainer___KADCQ",
|
|
4
|
+
VideoPlayer: "Primer_Brand__VideoPlayer-module__VideoPlayer___GJSo9",
|
|
5
|
+
"VideoPlayer__container--fullscreen": "Primer_Brand__VideoPlayer-module__VideoPlayer__container--fullscreen___MChxa",
|
|
6
|
+
VideoPlayer__playButtonOverlay: "Primer_Brand__VideoPlayer-module__VideoPlayer__playButtonOverlay___uXPU2",
|
|
7
|
+
"VideoPlayer__playButtonOverlay--transparent": "Primer_Brand__VideoPlayer-module__VideoPlayer__playButtonOverlay--transparent___0UmfX",
|
|
8
|
+
VideoPlayer__playButton: "Primer_Brand__VideoPlayer-module__VideoPlayer__playButton___UmSvY",
|
|
9
|
+
VideoPlayer__title: "Primer_Brand__VideoPlayer-module__VideoPlayer__title___3e5F_",
|
|
10
|
+
"VideoPlayer__title--hidden": "Primer_Brand__VideoPlayer-module__VideoPlayer__title--hidden___t7cGG",
|
|
11
|
+
VideoPlayer__controlsBar: "Primer_Brand__VideoPlayer-module__VideoPlayer__controlsBar___B_mfd",
|
|
12
|
+
VideoPlayer__controlsBar__row1: "Primer_Brand__VideoPlayer-module__VideoPlayer__controlsBar__row1___Vz_Zo",
|
|
13
|
+
VideoPlayer__controlsBar__row2: "Primer_Brand__VideoPlayer-module__VideoPlayer__controlsBar__row2___pzzds",
|
|
14
|
+
VideoPlayer__controls: "Primer_Brand__VideoPlayer-module__VideoPlayer__controls___FYZtO",
|
|
15
|
+
VideoPlayer__iconControl: "Primer_Brand__VideoPlayer-module__VideoPlayer__iconControl____tvm5",
|
|
16
|
+
VideoPlayer__closedCaption: "Primer_Brand__VideoPlayer-module__VideoPlayer__closedCaption___ODIq4",
|
|
17
|
+
VideoPlayer__seek: "Primer_Brand__VideoPlayer-module__VideoPlayer__seek___OwcjI",
|
|
18
|
+
VideoPlayer__progressTime: "Primer_Brand__VideoPlayer-module__VideoPlayer__progressTime___9p6bX",
|
|
19
|
+
"VideoPlayer__container--small": "Primer_Brand__VideoPlayer-module__VideoPlayer__container--small___aQE4d",
|
|
20
|
+
VideoPlayer__totalTime: "Primer_Brand__VideoPlayer-module__VideoPlayer__totalTime___5JBGC",
|
|
21
|
+
VideoPlayer__progressBar: "Primer_Brand__VideoPlayer-module__VideoPlayer__progressBar___86Eto",
|
|
22
|
+
VideoPlayer__ccOff: "Primer_Brand__VideoPlayer-module__VideoPlayer__ccOff___NHsg6",
|
|
23
|
+
VideoPlayer__ccText: "Primer_Brand__VideoPlayer-module__VideoPlayer__ccText___7TAGa",
|
|
24
|
+
VideoPlayer__range: "Primer_Brand__VideoPlayer-module__VideoPlayer__range___h4_en",
|
|
25
|
+
VideoPlayer__rangeInput: "Primer_Brand__VideoPlayer-module__VideoPlayer__rangeInput___ma_RQ",
|
|
26
|
+
VideoPlayer__rangeProgress: "Primer_Brand__VideoPlayer-module__VideoPlayer__rangeProgress___t_oOr",
|
|
27
|
+
VideoPlayer__tooltip: "Primer_Brand__VideoPlayer-module__VideoPlayer__tooltip___QrVwV",
|
|
28
|
+
VideoPlayer__tooltipContent: "Primer_Brand__VideoPlayer-module__VideoPlayer__tooltipContent___IOBAO",
|
|
29
|
+
VideoPlayer__tooltipText: "Primer_Brand__VideoPlayer-module__VideoPlayer__tooltipText___SPfNc",
|
|
30
|
+
"VideoPlayer__tooltip-visible": "Primer_Brand__VideoPlayer-module__VideoPlayer__tooltip-visible___nqoFm",
|
|
31
|
+
VideoPlayer__controlTextColor: "Primer_Brand__VideoPlayer-module__VideoPlayer__controlTextColor___Ih3yg",
|
|
32
|
+
VideoPlayer__seekTime: "Primer_Brand__VideoPlayer-module__VideoPlayer__seekTime___Wb0Ol"
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { e as default };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=VideoPlayer.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VideoPlayer.module.js","names":[],"sources":["../../src/VideoPlayer/VideoPlayer.module.css"],"sourcesContent":["/* ---------------------------------------------------------- */\n/* VideoPlayer Contents */\n/* ---------------------------------------------------------- */\n/* Table of contents: */\n/* 1. Container */\n/* 2. Player */\n/* 2. Center Play Button */\n/* 4. Title */\n/* 5. Controls */\n/* 6. Range Element */\n/* 7. Tooltip */\n/* 8. Captions */\n/* ---------------------------------------------------------- */\n\n/* ---------------------------------------------------------- */\n/* 1. Container */\n/* ---------------------------------------------------------- */\n\n.VideoPlayer__container {\n width: 100%;\n border-radius: var(--brand-borderRadius-medium);\n overflow: hidden;\n background-color: var(--base-color-scale-black-0);\n display: flex;\n flex-direction: column;\n}\n\n.VideoPlayer__overlayContainer {\n flex: 1;\n position: relative;\n height: 100%;\n}\n\n@media (forced-colors: active) {\n .VideoPlayer__container {\n border: var(--brand-borderWidth-thin) solid ButtonBorder;\n }\n}\n\n/* ---------------------------------------------------------- */\n/* 2. Player */\n/* ---------------------------------------------------------- */\n\n.VideoPlayer {\n /* Private variable used for internal calculations */\n --brand-VideoPlayer-controls-min-height: 56px;\n width: 100%;\n max-height: calc(100vh - var(--brand-VideoPlayer-controls-min-height));\n margin: 0 auto;\n display: block;\n}\n\n.VideoPlayer__container--fullscreen .VideoPlayer {\n position: absolute;\n height: 100%;\n}\n\n/* ---------------------------------------------------------- */\n/* 3. Center Play Button */\n/* ---------------------------------------------------------- */\n\n.VideoPlayer__playButtonOverlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: #00000033; /* TODO Use a token for this once v8 migration has been completed */\n border: none;\n z-index: 1;\n}\n\n.VideoPlayer__playButtonOverlay svg {\n position: relative;\n top: calc(var(--brand-VideoPlayer-controls-min-height) / 2);\n}\n\n.VideoPlayer__playButtonOverlay.VideoPlayer__playButtonOverlay--transparent {\n background: transparent;\n}\n\n.VideoPlayer__playButtonOverlay:focus-visible {\n outline: var(--brand-borderWidth-thicker) solid var(--brand-color-focus);\n outline-offset: var(--base-size-2);\n}\n\n.VideoPlayer__playButton {\n width: 25%;\n height: 25%;\n max-width: var(--brand-VideoPlayer-playButton-width);\n max-height: var(--brand-VideoPlayer-playButton-height);\n opacity: 0.8;\n color: var(--brand-videoPlayer-playButton-fgColor-rest);\n}\n\n@media (forced-colors: active) {\n .VideoPlayer__playButton {\n color: Highlight;\n opacity: 1;\n }\n}\n\n/* ---------------------------------------------------------- */\n/* 4. Title */\n/* ---------------------------------------------------------- */\n\n.VideoPlayer__title {\n transition: var(--brand-VideoPlayer-transition);\n top: 0;\n position: absolute;\n left: 0;\n width: 100%;\n z-index: 2;\n padding: var(--base-size-16);\n color: var(--brand-videoPlayer-title-fgColor);\n display: grid;\n align-items: center;\n justify-content: flex-start;\n grid-gap: var(--base-size-12);\n grid-template-columns: auto auto;\n background: var(--brand-videoPlayer-title-bgColor);\n transition: all var(--brand-animation-duration-fast) var(--brand-animation-easing-default);\n}\n\n.VideoPlayer__title.VideoPlayer__title--hidden {\n opacity: 0;\n visibility: hidden;\n}\n\n@media (forced-colors: active) {\n .VideoPlayer__title {\n background: Canvas;\n color: CanvasText;\n }\n}\n\n/* ---------------------------------------------------------- */\n/* 5. Controls */\n/* ---------------------------------------------------------- */\n\n.VideoPlayer__controlsBar {\n min-height: var(--brand-VideoPlayer-controls-min-height);\n display: grid;\n grid-template-columns: 1fr;\n grid-auto-flow: column;\n justify-content: space-between;\n align-items: center;\n gap: var(--base-size-16);\n border-bottom-right-radius: var(--brand-borderRadius-medium);\n border-bottom-left-radius: var(--brand-borderRadius-medium);\n width: 100%;\n padding: var(--base-size-12) var(--base-size-16);\n pointer-events: all;\n opacity: 1;\n}\n\n.VideoPlayer__controlsBar__row1,\n.VideoPlayer__controlsBar__row2 {\n display: flex;\n align-items: center;\n gap: var(--base-size-16);\n}\n\n@media (max-width: 34rem) {\n .VideoPlayer__controlsBar {\n grid-template-columns: 1fr;\n grid-auto-flow: row;\n grid-template-rows: auto auto;\n gap: var(--base-size-12);\n }\n\n .VideoPlayer__controlsBar__row2 {\n justify-self: space-evenly;\n justify-content: space-evenly;\n width: 100%;\n }\n}\n\n.VideoPlayer__controls:focus,\n.VideoPlayer__controls:focus-within {\n bottom: 0;\n}\n\n.VideoPlayer__iconControl {\n width: auto;\n background: none;\n border: none;\n cursor: pointer;\n height: var(--base-size-24);\n box-sizing: content-box;\n position: relative;\n padding: 0;\n}\n\n.VideoPlayer__iconControl:focus-visible {\n outline: var(--brand-borderWidth-thick) solid var(--brand-color-focus);\n outline-offset: var(--base-size-6);\n opacity: 1;\n}\n\n.VideoPlayer__iconControl:not(.VideoPlayer__closedCaption):focus-visible {\n border-radius: var(--brand-borderRadius-small);\n}\n\n.VideoPlayer__iconControl svg {\n color: var(--brand-videoPlayer-controls-fgColor);\n}\n\n.VideoPlayer__seek {\n flex: 1;\n display: flex;\n align-items: center;\n gap: var(--base-size-16);\n}\n\n.VideoPlayer__progressTime {\n color: var(--brand-videoPlayer-controls-fgColor);\n}\n\n.VideoPlayer__container--small .VideoPlayer__totalTime {\n display: none;\n}\n\n.VideoPlayer__progressBar {\n flex: 1;\n height: var(--base-size-6);\n}\n\n.VideoPlayer__closedCaption {\n border-radius: var(--brand-borderRadius-medium);\n padding: 0.125rem var(--base-size-4);\n border: 0.125rem solid var(--brand-videoPlayer-closedCaption-borderColor-enabled);\n background: var(--brand-videoPlayer-closedCaption-bgColor-enabled);\n position: relative;\n}\n\n.VideoPlayer__ccOff {\n background-color: transparent;\n}\n\n.VideoPlayer__ccText {\n color: var(--brand-videoPlayer-closedCaption-fgColor-enabled);\n line-height: 25px; /* visual alignment */\n}\n\n.VideoPlayer__ccOff .VideoPlayer__ccText {\n color: var(--brand-videoPlayer-closedCaption-fgColor-disabled);\n}\n\n@media (forced-colors: active) {\n .VideoPlayer__iconControl svg {\n color: ButtonText;\n }\n\n .VideoPlayer__iconControl:focus-visible {\n outline-color: Highlight;\n }\n\n .VideoPlayer__closedCaption:focus-visible {\n outline: none;\n }\n\n .VideoPlayer__closedCaption:not(.VideoPlayer__ccOff) {\n background: Highlight;\n border-color: Highlight;\n }\n\n .VideoPlayer__closedCaption:not(.VideoPlayer__ccOff) .VideoPlayer__ccText {\n background-color: Highlight;\n color: HighlightText;\n }\n}\n\n/* ---------------------------------------------------------- */\n/* 6. Range Element */\n/* ---------------------------------------------------------- */\n.VideoPlayer__range {\n position: relative;\n width: 100%;\n min-width: var(--brand-VideoPlayer-range-minWidth);\n height: var(--brand-VideoPlayer-range-height);\n background-color: var(--brand-videoPlayer-range-bgColor-default);\n border-radius: var(--brand-VideoPlayer-range-borderRadius);\n}\n\n.VideoPlayer__rangeInput {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n z-index: 1;\n display: block;\n width: 100%;\n height: var(--brand-VideoPlayer-range-height);\n margin: 0;\n cursor: pointer;\n background: transparent;\n position: absolute;\n top: 0;\n left: 0;\n opacity: 0;\n}\n\n.VideoPlayer__rangeInput:focus-visible {\n outline: var(--brand-borderWidth-thick) solid var(--brand-color-focus);\n outline-offset: var(--base-size-8);\n border-radius: var(--brand-borderRadius-small);\n opacity: 1;\n}\n\n.VideoPlayer__range:hover .VideoPlayer__rangeInput {\n opacity: 1;\n}\n\n.VideoPlayer__rangeInput::-moz-range-track,\n.VideoPlayer__rangeInput::-webkit-slider-runnable-track {\n background: transparent;\n border: none;\n}\n\n.VideoPlayer__rangeProgress {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n overflow: hidden;\n border: 0;\n border-radius: var(--brand-VideoPlayer-range-borderRadius);\n width: 100%;\n position: absolute;\n height: var(--brand-VideoPlayer-range-height);\n top: 0;\n left: 0;\n}\n\n.VideoPlayer__rangeProgress::-webkit-progress-bar {\n background-color: var(--brand-videoPlayer-range-bgColor-default);\n}\n\n.VideoPlayer__rangeProgress::-webkit-progress-value {\n background-color: var(--brand-videoPlayer-range-bgColor-progress);\n}\n\n.VideoPlayer__rangeProgress::-moz-progress-bar {\n background: var(--brand-videoPlayer-range-bgColor-progress);\n}\n\n.VideoPlayer__rangeProgress::-ms-fill-lower {\n background-color: var(--brand-videoPlayer-range-bgColor-progress);\n border: none;\n}\n\n.VideoPlayer__rangeProgress::-ms-fill-upper {\n background-color: var(--brand-videoPlayer-range-bgColor-default);\n border: none;\n}\n\n@media (forced-colors: active) {\n .VideoPlayer__rangeProgress::-webkit-progress-bar {\n background-color: FieldText;\n }\n\n .VideoPlayer__rangeProgress::-webkit-progress-value {\n background-color: Highlight;\n }\n\n .VideoPlayer__rangeProgress::-moz-progress-bar {\n background: Highlight;\n }\n\n .VideoPlayer__rangeProgress::-ms-fill-lower {\n background-color: Highlight;\n }\n\n .VideoPlayer__rangeProgress::-ms-fill-upper {\n background-color: FieldText;\n }\n}\n\n/* ---------------------------------------------------------- */\n/* 7. Tooltip */\n/* ---------------------------------------------------------- */\n\n.VideoPlayer__tooltip {\n position: absolute;\n left: 50%;\n bottom: 100%;\n z-index: 2;\n width: var(--base-size-8);\n height: var(--base-size-8);\n margin-bottom: var(--base-size-16);\n opacity: 0;\n transform: translate(-50%, 50%);\n}\n\n.VideoPlayer__tooltip::before {\n position: absolute;\n bottom: calc(var(--base-size-4) * -1);\n left: 0;\n width: var(--base-size-12);\n height: var(--base-size-12);\n content: '';\n background: var(--base-color-scale-white-0);\n border-radius: var(--brand-borderRadius-small);\n transform: rotate(45deg);\n}\n\n.VideoPlayer__tooltipContent {\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: -1;\n background: white;\n box-shadow: 0 var(--base-size-4) var(--base-size-4) #1b1f2433;\n transform: translate3d(-50%, 0, 0);\n padding: var(--brand-VideoPlayer-tooltip-padding-block) var(--brand-VideoPlayer-tooltip-padding-inline);\n border-radius: var(--brand-borderRadius-medium);\n}\n\n.VideoPlayer__tooltipText {\n color: var(--base-color-scale-gray-9);\n}\n\n.VideoPlayer__tooltip-visible {\n opacity: 1;\n}\n\n.VideoPlayer__controlTextColor {\n color: var(--base-color-scale-white-0);\n}\n\n.VideoPlayer__seekTime {\n white-space: nowrap;\n}\n\n.VideoPlayer__container--small .VideoPlayer__title span {\n font-weight: var(--brand-text-weight-300);\n font-size: var(--brand-text-size-300);\n line-height: var(--brand-text-lineHeight-300);\n letter-spacing: var(--brand-text-letterSpacing-300);\n}\n\n.VideoPlayer__container--small .VideoPlayer__title svg {\n width: var(--base-size-24);\n height: var(--base-size-24);\n}\n\n.VideoPlayer__container--small .VideoPlayer__controls {\n position: initial;\n}\n\n/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */\n@media (prefers-reduced-motion: reduce) {\n .VideoPlayer,\n .VideoPlayer::before,\n .VideoPlayer::after,\n .VideoPlayer * {\n animation: none !important;\n transition: none !important;\n scroll-behavior: auto !important;\n }\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CCButton.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/CCButton/CCButton.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,KAAK,cAAc,EAAC,MAAM,OAAO,CAAA;AAQhD,eAAO,MAAM,QAAQ,GAAI,yBAAuB,cAAc,CAAC,iBAAiB,CAAC,4CAoBhF,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import e from "../../../node_modules/clsx/dist/clsx.js";
|
|
2
|
+
import { Text as t } from "../../../Text/Text.js";
|
|
3
|
+
import n from "../../VideoPlayer.module.js";
|
|
4
|
+
import { useVideo as r } from "../../hooks/useVideo.js";
|
|
5
|
+
import { VideoTooltip as i } from "../VideoTooltip/VideoTooltip.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
8
|
+
//#region src/VideoPlayer/components/CCButton/CCButton.tsx
|
|
9
|
+
var s = ({ className: s, ...c }) => {
|
|
10
|
+
let { ccEnabled: l, toggleCC: u } = r();
|
|
11
|
+
return /* @__PURE__ */ o("button", {
|
|
12
|
+
className: e(s, n.VideoPlayer__iconControl, n.VideoPlayer__closedCaption, !l && n.VideoPlayer__ccOff),
|
|
13
|
+
onClick: u,
|
|
14
|
+
...c,
|
|
15
|
+
children: [/* @__PURE__ */ a(t, {
|
|
16
|
+
className: n.VideoPlayer__ccText,
|
|
17
|
+
"aria-hidden": "true",
|
|
18
|
+
children: "CC"
|
|
19
|
+
}), /* @__PURE__ */ a(i, { children: l ? "Disable captions" : "Enable captions" })]
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { s as CCButton };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=CCButton.js.map
|
|
@@ -0,0 +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,GAAU;AAExC,QACE,kBAAC,UAAD;EACE,WAAW,EACT,GACA,EAAO,0BACP,EAAO,4BACP,CAAC,KAAa,EAAO,mBACtB;EACD,SAAS;EACT,GAAI;YARN,CAUE,kBAAC,GAAD;GAAM,WAAW,EAAO;GAAqB,eAAY;aAAO;GAEzD,CAAA,EACP,kBAAC,GAAD,EAAA,UAAe,IAAY,qBAAqB,mBAAiC,CAAA,CAC1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/CCButton/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Captions.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/Captions/Captions.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,KAAK,cAAc,EAAsB,MAAM,OAAO,CAAA;AAOrE,eAAO,MAAM,QAAQ,GAAI,yBAAuB,cAAc,CAAC,cAAc,CAAC,mDA6C7E,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import e from "../../../node_modules/clsx/dist/clsx.js";
|
|
2
|
+
import { Text as t } from "../../../Text/Text.js";
|
|
3
|
+
import n from "./Captions.module.js";
|
|
4
|
+
import { useVideo as r } from "../../hooks/useVideo.js";
|
|
5
|
+
import { useEffect as i, useState as a } from "react";
|
|
6
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
7
|
+
//#region src/VideoPlayer/components/Captions/Captions.tsx
|
|
8
|
+
var s = ({ className: s, ...c }) => {
|
|
9
|
+
let [l, u] = a(""), { ref: d } = r(), f = d?.current, p = f?.textTracks[0]?.cues;
|
|
10
|
+
return i(() => {
|
|
11
|
+
if (!f) return;
|
|
12
|
+
let e = () => {
|
|
13
|
+
if (p) for (let e = 0; e < p.length; e++) {
|
|
14
|
+
let t = p[e];
|
|
15
|
+
if (f.currentTime >= t.startTime && f.currentTime < t.endTime) {
|
|
16
|
+
u(t.text);
|
|
17
|
+
break;
|
|
18
|
+
}
|
|
19
|
+
u("");
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
return f.addEventListener("timeupdate", e), () => f.removeEventListener("timeupdate", e);
|
|
23
|
+
}, [f, p]), p ? /* @__PURE__ */ o("div", {
|
|
24
|
+
className: e(s, n.Captions),
|
|
25
|
+
...c,
|
|
26
|
+
children: /* @__PURE__ */ o(t, {
|
|
27
|
+
as: "p",
|
|
28
|
+
className: n.Captions__text,
|
|
29
|
+
align: "center",
|
|
30
|
+
children: l
|
|
31
|
+
})
|
|
32
|
+
}) : null;
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { s as Captions };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=Captions.js.map
|
|
@@ -0,0 +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,GAAG,EACpC,EAAC,WAAO,GAAU,EAElB,IAAW,GAAK,SAChB,IAAmB,GAAU,WAAW,IAAI;AAiClD,QA/BA,QAAgB;AACd,MAAI,CAAC,EACH;EAGF,IAAM,UAA6B;AAC5B,SAIL,MAAK,IAAI,IAAI,GAAG,IAAI,EAAiB,QAAQ,KAAK;IAChD,IAAM,IAAM,EAAiB;AAE7B,QAAI,EAAS,eAAe,EAAI,aAAa,EAAS,cAAc,EAAI,SAAS;AAC/E,OAAW,EAAI,KAAQ;AACvB;;AAGF,MAAW,GAAG;;;AAMlB,SAFA,EAAS,iBAAiB,cAAc,EAAqB,QAEhD,EAAS,oBAAoB,cAAc,EAAqB;IAC5E,CAAC,GAAU,EAAiB,CAAC,EAE3B,IAKH,kBAAC,OAAD;EAAK,WAAW,EAAK,GAAW,EAAO,SAAS;EAAE,GAAI;YACpD,kBAAC,GAAD;GAAM,IAAG;GAAI,WAAW,EAAO;GAAgB,OAAM;aAClD;GACI,CAAA;EACH,CAAA,GARC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.Primer_Brand__Captions-module__Captions___5Wpoz{flex:0 0 var(--base-size-64);width:100%;padding:var(--base-size-8) var(--base-size-16) 0;pointer-events:none;background-color:var(--base-color-scale-black-0);justify-content:center;align-items:center;display:flex}.Primer_Brand__Captions-module__Captions__text___lrxrJ{color:var(--brand-VideoPlayer-closedCaption-text-fgColor)}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './Captions.module-CvaHeR3V.css';var e = {
|
|
2
|
+
Captions: "Primer_Brand__Captions-module__Captions___5Wpoz",
|
|
3
|
+
Captions__text: "Primer_Brand__Captions-module__Captions__text___lrxrJ"
|
|
4
|
+
};
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as default };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=Captions.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Captions.module.js","names":[],"sources":["../../../../src/VideoPlayer/components/Captions/Captions.module.css"],"sourcesContent":[".Captions {\n flex: 0 0 var(--base-size-64);\n width: 100%;\n padding: var(--base-size-8) var(--base-size-16) 0;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n background-color: var(--base-color-scale-black-0);\n}\n\n.Captions__text {\n color: var(--brand-VideoPlayer-closedCaption-text-fgColor);\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/Captions/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
export type ControlsBarProps = HTMLAttributes<HTMLDivElement>;
|
|
3
|
+
export declare const ControlsBar: ({ className, ...rest }: ControlsBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=ControlsBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ControlsBar.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/ControlsBar/ControlsBar.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,KAAK,cAAc,EAAC,MAAM,OAAO,CAAA;AAKhD,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAA;AAE7D,eAAO,MAAM,WAAW,GAAI,wBAAsB,gBAAgB,4CAEjE,CAAA"}
|