@primer/react-brand 0.69.1-rc.0a4e5ff5 → 0.70.0-rc.11ae3568
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/docs/components/ActionMenu/index.md +156 -0
- package/docs/components/AnchorNav/index.md +220 -0
- package/docs/components/Avatar/index.md +30 -0
- package/docs/components/Avatar/react.md +71 -0
- package/docs/components/Bento/index.md +223 -0
- package/docs/components/Breadcrumbs/index.md +51 -0
- package/docs/components/Breadcrumbs/react.md +53 -0
- package/docs/components/BreakoutBanner/index.md +102 -0
- package/docs/components/BreakoutBanner/react.md +174 -0
- package/docs/components/Button/index.md +133 -0
- package/docs/components/Button/react.md +94 -0
- package/docs/components/ButtonGroup/index.md +62 -0
- package/docs/components/ButtonGroup/react.md +60 -0
- package/docs/components/CTABanner/index.md +114 -0
- package/docs/components/CTABanner/react.md +343 -0
- package/docs/components/CTAForm/index.md +95 -0
- package/docs/components/CTAForm/react.md +103 -0
- package/docs/components/Card/index.md +126 -0
- package/docs/components/Card/react.md +240 -0
- package/docs/components/ComparisonTable/index.md +381 -0
- package/docs/components/EyebrowBanner/index.md +153 -0
- package/docs/components/FAQ/index.md +66 -0
- package/docs/components/FAQ/react.md +477 -0
- package/docs/components/Footnotes/index.md +41 -0
- package/docs/components/Footnotes/react.md +156 -0
- package/docs/components/Hero/index.md +65 -0
- package/docs/components/Hero/react.md +215 -0
- package/docs/components/IDE/index.md +278 -0
- package/docs/components/Icon/index.md +87 -0
- package/docs/components/Image/index.md +51 -0
- package/docs/components/Image/react.md +160 -0
- package/docs/components/Label/index.md +86 -0
- package/docs/components/Label/react.md +76 -0
- package/docs/components/LogoSuite/index.md +93 -0
- package/docs/components/LogoSuite/react.md +667 -0
- package/docs/components/MediaPlaylist/index.md +133 -0
- package/docs/components/MinimalFooter/index.md +94 -0
- package/docs/components/NavList/index.md +210 -0
- package/docs/components/OrderedList/index.md +55 -0
- package/docs/components/OrderedList/react.md +41 -0
- package/docs/components/Pagination/index.md +80 -0
- package/docs/components/Pillar/index.md +114 -0
- package/docs/components/Pillar/react.md +175 -0
- package/docs/components/PricingOptions/index.md +509 -0
- package/docs/components/Prose/index.md +158 -0
- package/docs/components/River/index.md +190 -0
- package/docs/components/River/react.md +295 -0
- package/docs/components/RiverAccordion/index.md +200 -0
- package/docs/components/RiverBreakoutTabs/index.md +171 -0
- package/docs/components/Section/index.md +40 -0
- package/docs/components/Section/react.md +137 -0
- package/docs/components/SectionIntro/index.md +77 -0
- package/docs/components/SectionIntro/react.md +107 -0
- package/docs/components/SectionIntroStacked/index.md +226 -0
- package/docs/components/Statistic/index.md +111 -0
- package/docs/components/SubNav/index.md +156 -0
- package/docs/components/SubdomainNavBar/index.md +136 -0
- package/docs/components/Tabs/index.md +243 -0
- package/docs/components/Testimonial/index.md +138 -0
- package/docs/components/Testimonial/react.md +191 -0
- package/docs/components/Tiles/index.md +1441 -0
- package/docs/components/Timeline/index.md +68 -0
- package/docs/components/Token/index.md +86 -0
- package/docs/components/Tooltip/index.md +61 -0
- package/docs/components/UnorderedList/index.md +67 -0
- package/docs/components/UnorderedList/react.md +89 -0
- package/docs/components/VideoPlayer/index.md +234 -0
- package/docs/components/index.md +53 -0
- package/docs/forms/Checkbox/index.md +86 -0
- package/docs/forms/Checkbox/react.md +111 -0
- package/docs/forms/CheckboxGroup/index.md +37 -0
- package/docs/forms/CheckboxGroup/react.md +175 -0
- package/docs/forms/FormControl/index.md +404 -0
- package/docs/forms/Radio/index.md +63 -0
- package/docs/forms/Radio/react.md +68 -0
- package/docs/forms/RadioGroup/index.md +45 -0
- package/docs/forms/RadioGroup/react.md +151 -0
- package/docs/forms/Select/index.md +244 -0
- package/docs/forms/TextArea/index.md +126 -0
- package/docs/forms/TextInput/index.md +221 -0
- package/docs/forms/index.md +14 -0
- package/docs/getting-started/esm.md +49 -0
- package/docs/getting-started/index.md +98 -0
- package/docs/index.md +99 -0
- package/docs/introduction/animation.md +127 -0
- package/docs/introduction/index.md +10 -0
- package/docs/introduction/mcp.md +52 -0
- package/docs/introduction/theming.md +132 -0
- package/docs/layout/Box/index.md +46 -0
- package/docs/layout/Box/react.md +284 -0
- package/docs/layout/Grid/index.md +132 -0
- package/docs/layout/Grid/react.md +117 -0
- package/docs/layout/Stack/index.md +60 -0
- package/docs/layout/Stack/react.md +166 -0
- package/docs/layout/index.md +9 -0
- package/docs/primitives/color.md +6 -0
- package/docs/primitives/index.md +8 -0
- package/docs/typography/Heading/index.md +53 -0
- package/docs/typography/Heading/react.md +182 -0
- package/docs/typography/Text/index.md +68 -0
- package/docs/typography/Text/react.md +125 -0
- package/docs/typography/index.md +8 -0
- package/esm/Footnotes/{Footnotes.module-Du0yaz7E.css → Footnotes.module-DG9Vx76y.css} +1 -1
- package/esm/Footnotes/Footnotes.module.js +1 -1
- package/esm/Footnotes/Footnotes.module.js.map +1 -1
- package/esm/Heading/Heading.d.ts +10 -0
- package/esm/Heading/Heading.d.ts.map +1 -1
- package/esm/Heading/Heading.js.map +1 -1
- package/esm/Hero/Hero.d.ts.map +1 -1
- package/esm/Hero/Hero.js +60 -58
- package/esm/Hero/Hero.js.map +1 -1
- package/esm/Hero/{Hero.module-Cy82CEW3.css → Hero.module-DqG5f0MT.css} +1 -1
- package/esm/Hero/Hero.module.js +1 -1
- package/esm/Hero/Hero.module.js.map +1 -1
- package/esm/NavList/NavList.d.ts +86 -0
- package/esm/NavList/NavList.d.ts.map +1 -0
- package/esm/NavList/NavList.js +277 -0
- package/esm/NavList/NavList.js.map +1 -0
- package/esm/NavList/NavList.module-CZFnt8br.css +1 -0
- package/esm/NavList/NavList.module.js +32 -0
- package/esm/NavList/NavList.module.js.map +1 -0
- package/esm/NavList/index.d.ts +2 -0
- package/esm/NavList/index.d.ts.map +1 -0
- package/esm/SectionIntroStacked/{SectionIntroStacked.module-Cr7kUqTH.css → SectionIntroStacked.module-C3cmwHDY.css} +1 -1
- package/esm/SectionIntroStacked/SectionIntroStacked.module.js +1 -1
- package/esm/SectionIntroStacked/SectionIntroStacked.module.js.map +1 -1
- package/esm/Token/Token.js +0 -1
- package/esm/Token/Token.js.map +1 -1
- package/esm/Token/{Token.module-BcKU1KwK.css → Token.module-DtWE9IPI.css} +1 -1
- package/esm/Token/Token.module.js +1 -1
- package/esm/Token/Token.module.js.map +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.esm.js +12 -11
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/nav-list/colors-with-modes-CGyt2t8f.css +1 -0
- package/lib/Grid/Grid.d.ts +1 -1
- package/lib/Heading/Heading.d.ts +10 -0
- package/lib/NavList/NavList.d.ts +85 -0
- package/lib/NavList/index.d.ts +1 -0
- package/lib/SubNav/SubNav.d.ts +1 -1
- package/lib/Token/Token.d.ts +1 -1
- package/lib/css/main.css +613 -74
- 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/media-playlist/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/nav-list/colors-with-modes.css +13 -0
- 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/text-cursor-animation/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/token/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
- package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/footer/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/media-playlist/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/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/media-playlist/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/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/media-playlist/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/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/media-playlist/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/token/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/token/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/llms.txt +97 -0
- package/package.json +17 -5
- package/esm/Hero/Hero.figma.d.ts +0 -2
- package/esm/Hero/Hero.figma.d.ts.map +0 -1
- package/esm/IDE/fixtures/content.d.ts +0 -7
- package/esm/IDE/fixtures/content.d.ts.map +0 -1
- package/esm/LogoSuite/LogoSuite.figma.d.ts +0 -2
- package/esm/LogoSuite/LogoSuite.figma.d.ts.map +0 -1
- package/esm/LogoSuite/LogoSuite.fixtures.d.ts +0 -2
- package/esm/LogoSuite/LogoSuite.fixtures.d.ts.map +0 -1
- package/esm/MonaSans/MonaSans.d.ts +0 -11
- package/esm/MonaSans/MonaSans.d.ts.map +0 -1
- package/esm/MonaSans/index.d.ts +0 -2
- package/esm/MonaSans/index.d.ts.map +0 -1
- package/esm/PricingOptions/PricingOptions.figma.d.ts +0 -2
- package/esm/PricingOptions/PricingOptions.figma.d.ts.map +0 -1
- package/esm/Tiles/Tiles.fixtures.d.ts +0 -7
- package/esm/Tiles/Tiles.fixtures.d.ts.map +0 -1
- package/esm/fixtures/third-party-logos/AzureLogo.d.ts +0 -5
- package/esm/fixtures/third-party-logos/AzureLogo.d.ts.map +0 -1
- package/esm/fixtures/third-party-logos/JetBrainsLogo.d.ts +0 -5
- package/esm/fixtures/third-party-logos/JetBrainsLogo.d.ts.map +0 -1
- package/esm/fixtures/third-party-logos/MicrosoftCopilotLogo.d.ts +0 -5
- package/esm/fixtures/third-party-logos/MicrosoftCopilotLogo.d.ts.map +0 -1
- package/esm/fixtures/third-party-logos/MicrosoftLogo.d.ts +0 -5
- package/esm/fixtures/third-party-logos/MicrosoftLogo.d.ts.map +0 -1
- package/esm/fixtures/third-party-logos/NeoVimLogo.d.ts +0 -5
- package/esm/fixtures/third-party-logos/NeoVimLogo.d.ts.map +0 -1
- package/esm/fixtures/third-party-logos/VisualStudioCodeLogo.d.ts +0 -5
- package/esm/fixtures/third-party-logos/VisualStudioCodeLogo.d.ts.map +0 -1
- package/esm/fixtures/third-party-logos/VisualStudioLogo.d.ts +0 -5
- package/esm/fixtures/third-party-logos/VisualStudioLogo.d.ts.map +0 -1
- package/esm/list/ListItem/index.d.ts +0 -2
- package/esm/list/ListItem/index.d.ts.map +0 -1
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOne.d.ts +0 -13
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOne.d.ts.map +0 -1
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOneSideBySide.d.ts +0 -14
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOneSideBySide.d.ts.map +0 -1
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/components/FormExample.d.ts +0 -8
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/components/FormExample.d.ts.map +0 -1
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/index.d.ts +0 -2
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/index.d.ts.map +0 -1
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/FeaturePreviewLevelTwo.d.ts +0 -49
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/FeaturePreviewLevelTwo.d.ts.map +0 -1
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/index.d.ts +0 -2
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/index.d.ts.map +0 -1
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/FeaturePreviewLevelZero.d.ts +0 -17
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/FeaturePreviewLevelZero.d.ts.map +0 -1
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/index.d.ts +0 -2
- package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/index.d.ts.map +0 -1
- package/esm/recipes/FeaturePreviewLPs/helpers.d.ts +0 -30
- package/esm/recipes/FeaturePreviewLPs/helpers.d.ts.map +0 -1
- package/esm/recipes/FlexTemplate/FlexSection/FlexSection.d.ts +0 -8
- package/esm/recipes/FlexTemplate/FlexSection/FlexSection.d.ts.map +0 -1
- package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulRiver.d.ts +0 -2
- package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulRiver.d.ts.map +0 -1
- package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulRiverAccordion.d.ts +0 -8
- package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulRiverAccordion.d.ts.map +0 -1
- package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulRiverBreakout.d.ts +0 -2
- package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulRiverBreakout.d.ts.map +0 -1
- package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulTestimonials.d.ts +0 -8
- package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulTestimonials.d.ts.map +0 -1
- package/esm/recipes/FlexTemplate/FlexSection/components/FlexSectionTestimonials.d.ts +0 -8
- package/esm/recipes/FlexTemplate/FlexSection/components/FlexSectionTestimonials.d.ts.map +0 -1
- package/esm/recipes/FlexTemplate/FlexSection/components/index.d.ts +0 -6
- package/esm/recipes/FlexTemplate/FlexSection/components/index.d.ts.map +0 -1
- package/esm/recipes/FlexTemplate/FlexSection/index.d.ts +0 -2
- package/esm/recipes/FlexTemplate/FlexSection/index.d.ts.map +0 -1
- package/esm/recipes/FlexTemplate/FlexTemplate.d.ts +0 -7
- package/esm/recipes/FlexTemplate/FlexTemplate.d.ts.map +0 -1
- package/esm/recipes/FlexTemplate/FlexTemplate.types.d.ts +0 -318
- package/esm/recipes/FlexTemplate/FlexTemplate.types.d.ts.map +0 -1
- package/esm/recipes/FlexTemplate/FlexTemplateTrailingSection/FlexTemplateTrailingSection.d.ts +0 -6
- package/esm/recipes/FlexTemplate/FlexTemplateTrailingSection/FlexTemplateTrailingSection.d.ts.map +0 -1
- package/esm/recipes/FlexTemplate/FlexTemplateTrailingSection/index.d.ts +0 -3
- package/esm/recipes/FlexTemplate/FlexTemplateTrailingSection/index.d.ts.map +0 -1
- package/esm/recipes/FlexTemplate/fixtures/content.d.ts +0 -2
- package/esm/recipes/FlexTemplate/fixtures/content.d.ts.map +0 -1
- package/esm/recipes/FlexTemplate/index.d.ts +0 -4
- package/esm/recipes/FlexTemplate/index.d.ts.map +0 -1
- package/esm/recipes/Flexsuite/Category/FlexSuiteSecurityCategory/FlexSuiteSecurityCategory.content.d.ts +0 -68
- package/esm/recipes/Flexsuite/Category/FlexSuiteSecurityCategory/FlexSuiteSecurityCategory.content.d.ts.map +0 -1
- package/esm/recipes/Flexsuite/Category/FlexSuiteSecurityCategory/FlexSuiteSecurityCategory.d.ts +0 -7
- package/esm/recipes/Flexsuite/Category/FlexSuiteSecurityCategory/FlexSuiteSecurityCategory.d.ts.map +0 -1
- package/esm/recipes/Flexsuite/Category/index.d.ts +0 -2
- package/esm/recipes/Flexsuite/Category/index.d.ts.map +0 -1
- package/esm/recipes/Flexsuite/Details/FlexSuiteAIDetailsPlaylist/FlexSuiteAIDetailsPlaylist.content.d.ts +0 -49
- package/esm/recipes/Flexsuite/Details/FlexSuiteAIDetailsPlaylist/FlexSuiteAIDetailsPlaylist.content.d.ts.map +0 -1
- package/esm/recipes/Flexsuite/Details/FlexSuiteAIDetailsPlaylist/FlexSuiteAIDetailsPlaylist.d.ts +0 -7
- package/esm/recipes/Flexsuite/Details/FlexSuiteAIDetailsPlaylist/FlexSuiteAIDetailsPlaylist.d.ts.map +0 -1
- package/esm/recipes/Flexsuite/Details/index.d.ts +0 -4
- package/esm/recipes/Flexsuite/Details/index.d.ts.map +0 -1
- package/esm/recipes/Flexsuite/Overview/FlexSuiteAIOverview.content.d.ts +0 -101
- package/esm/recipes/Flexsuite/Overview/FlexSuiteAIOverview.content.d.ts.map +0 -1
- package/esm/recipes/Flexsuite/Overview/FlexSuiteAIOverview.d.ts +0 -7
- package/esm/recipes/Flexsuite/Overview/FlexSuiteAIOverview.d.ts.map +0 -1
- package/esm/recipes/Flexsuite/Overview/FlexSuiteOverview.content.d.ts +0 -5
- package/esm/recipes/Flexsuite/Overview/FlexSuiteOverview.content.d.ts.map +0 -1
- package/esm/recipes/Flexsuite/Overview/index.d.ts +0 -4
- package/esm/recipes/Flexsuite/Overview/index.d.ts.map +0 -1
- package/esm/recipes/SolutionTemplates/CategoryPage/CategoryPage.d.ts +0 -16
- package/esm/recipes/SolutionTemplates/CategoryPage/CategoryPage.d.ts.map +0 -1
- package/esm/recipes/SolutionTemplates/SolutionPage/SolutionPage.d.ts +0 -33
- package/esm/recipes/SolutionTemplates/SolutionPage/SolutionPage.d.ts.map +0 -1
- package/esm/recipes/SolutionTemplates/SolutionPage/index.d.ts +0 -2
- package/esm/recipes/SolutionTemplates/SolutionPage/index.d.ts.map +0 -1
- package/esm/recipes/SolutionTemplates/SolutionsOverview/SolutionsOverview.d.ts +0 -17
- package/esm/recipes/SolutionTemplates/SolutionsOverview/SolutionsOverview.d.ts.map +0 -1
- package/esm/recipes/SolutionTemplates/helpers.d.ts +0 -127
- package/esm/recipes/SolutionTemplates/helpers.d.ts.map +0 -1
- package/esm/recipes/SolutionTemplates/index.d.ts +0 -1
- package/esm/recipes/SolutionTemplates/index.d.ts.map +0 -1
- package/esm/recipes/seo/Article/Article.d.ts +0 -14
- package/esm/recipes/seo/Article/Article.d.ts.map +0 -1
- package/esm/recipes/seo/Article/ArticleToC.d.ts +0 -4
- package/esm/recipes/seo/Article/ArticleToC.d.ts.map +0 -1
- package/esm/recipes/seo/Article/article-shared.d.ts +0 -5
- package/esm/recipes/seo/Article/article-shared.d.ts.map +0 -1
- package/esm/recipes/seo/Article/index.d.ts +0 -2
- package/esm/recipes/seo/Article/index.d.ts.map +0 -1
- package/esm/recipes/seo/Category/CategoryPage.d.ts +0 -9
- package/esm/recipes/seo/Category/CategoryPage.d.ts.map +0 -1
- package/esm/recipes/seo/Category/index.d.ts +0 -2
- package/esm/recipes/seo/Category/index.d.ts.map +0 -1
- package/esm/recipes/seo/helpers.d.ts +0 -16
- package/esm/recipes/seo/helpers.d.ts.map +0 -1
- package/esm/recipes/seo/index.d.ts +0 -1
- package/esm/recipes/seo/index.d.ts.map +0 -1
- package/esm/river/River.figma.d.ts +0 -2
- package/esm/river/River.figma.d.ts.map +0 -1
- package/lib/Hero/Hero.figma.d.ts +0 -1
- package/lib/IDE/fixtures/content.d.ts +0 -6
- package/lib/LogoSuite/LogoSuite.figma.d.ts +0 -1
- package/lib/LogoSuite/LogoSuite.fixtures.d.ts +0 -1
- package/lib/MonaSans/MonaSans.d.ts +0 -10
- package/lib/MonaSans/index.d.ts +0 -1
- package/lib/PricingOptions/PricingOptions.figma.d.ts +0 -1
- package/lib/Tiles/Tiles.fixtures.d.ts +0 -6
- package/lib/fixtures/third-party-logos/AzureLogo.d.ts +0 -4
- package/lib/fixtures/third-party-logos/JetBrainsLogo.d.ts +0 -4
- package/lib/fixtures/third-party-logos/MicrosoftCopilotLogo.d.ts +0 -4
- package/lib/fixtures/third-party-logos/MicrosoftLogo.d.ts +0 -4
- package/lib/fixtures/third-party-logos/NeoVimLogo.d.ts +0 -4
- package/lib/fixtures/third-party-logos/VisualStudioCodeLogo.d.ts +0 -4
- package/lib/fixtures/third-party-logos/VisualStudioLogo.d.ts +0 -4
- package/lib/index.esm.d.ts +0 -7
- package/lib/list/ListItem/index.d.ts +0 -1
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOne.d.ts +0 -12
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOneSideBySide.d.ts +0 -13
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/components/FormExample.d.ts +0 -7
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/index.d.ts +0 -1
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/FeaturePreviewLevelTwo.d.ts +0 -48
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/index.d.ts +0 -1
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/FeaturePreviewLevelZero.d.ts +0 -16
- package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/index.d.ts +0 -1
- package/lib/recipes/FeaturePreviewLPs/helpers.d.ts +0 -29
- package/lib/recipes/FlexTemplate/FlexSection/FlexSection.d.ts +0 -7
- package/lib/recipes/FlexTemplate/FlexSection/components/ContentfulRiver.d.ts +0 -1
- package/lib/recipes/FlexTemplate/FlexSection/components/ContentfulRiverAccordion.d.ts +0 -7
- package/lib/recipes/FlexTemplate/FlexSection/components/ContentfulRiverBreakout.d.ts +0 -1
- package/lib/recipes/FlexTemplate/FlexSection/components/ContentfulTestimonials.d.ts +0 -7
- package/lib/recipes/FlexTemplate/FlexSection/components/FlexSectionTestimonials.d.ts +0 -7
- package/lib/recipes/FlexTemplate/FlexSection/components/index.d.ts +0 -5
- package/lib/recipes/FlexTemplate/FlexSection/index.d.ts +0 -1
- package/lib/recipes/FlexTemplate/FlexTemplate.d.ts +0 -6
- package/lib/recipes/FlexTemplate/FlexTemplate.types.d.ts +0 -317
- package/lib/recipes/FlexTemplate/FlexTemplateTrailingSection/FlexTemplateTrailingSection.d.ts +0 -5
- package/lib/recipes/FlexTemplate/FlexTemplateTrailingSection/index.d.ts +0 -2
- package/lib/recipes/FlexTemplate/fixtures/content.d.ts +0 -1
- package/lib/recipes/FlexTemplate/index.d.ts +0 -3
- package/lib/recipes/Flexsuite/Category/FlexSuiteSecurityCategory/FlexSuiteSecurityCategory.content.d.ts +0 -67
- package/lib/recipes/Flexsuite/Category/FlexSuiteSecurityCategory/FlexSuiteSecurityCategory.d.ts +0 -6
- package/lib/recipes/Flexsuite/Category/index.d.ts +0 -1
- package/lib/recipes/Flexsuite/Details/FlexSuiteAIDetailsPlaylist/FlexSuiteAIDetailsPlaylist.content.d.ts +0 -48
- package/lib/recipes/Flexsuite/Details/FlexSuiteAIDetailsPlaylist/FlexSuiteAIDetailsPlaylist.d.ts +0 -6
- package/lib/recipes/Flexsuite/Details/index.d.ts +0 -3
- package/lib/recipes/Flexsuite/Overview/FlexSuiteAIOverview.content.d.ts +0 -100
- package/lib/recipes/Flexsuite/Overview/FlexSuiteAIOverview.d.ts +0 -6
- package/lib/recipes/Flexsuite/Overview/FlexSuiteOverview.content.d.ts +0 -4
- package/lib/recipes/Flexsuite/Overview/index.d.ts +0 -3
- package/lib/recipes/SolutionTemplates/CategoryPage/CategoryPage.d.ts +0 -15
- package/lib/recipes/SolutionTemplates/SolutionPage/SolutionPage.d.ts +0 -32
- package/lib/recipes/SolutionTemplates/SolutionPage/index.d.ts +0 -1
- package/lib/recipes/SolutionTemplates/SolutionsOverview/SolutionsOverview.d.ts +0 -16
- package/lib/recipes/SolutionTemplates/helpers.d.ts +0 -126
- package/lib/recipes/SolutionTemplates/index.d.ts +0 -0
- package/lib/recipes/seo/Article/Article.d.ts +0 -13
- package/lib/recipes/seo/Article/ArticleToC.d.ts +0 -3
- package/lib/recipes/seo/Article/article-shared.d.ts +0 -4
- package/lib/recipes/seo/Article/index.d.ts +0 -1
- package/lib/recipes/seo/Category/CategoryPage.d.ts +0 -8
- package/lib/recipes/seo/Category/index.d.ts +0 -1
- package/lib/recipes/seo/helpers.d.ts +0 -15
- package/lib/recipes/seo/index.d.ts +0 -0
- package/lib/river/River.figma.d.ts +0 -1
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Text input
|
|
3
|
+
description: Use the text input component for single-line text field.
|
|
4
|
+
keywords: ['input', 'form']
|
|
5
|
+
figma: 'https://www.figma.com/file/BJ95AjraesmRCWsKA013GS/Primer-Brand?node-id=1377%3A30676'
|
|
6
|
+
source: https://github.com/primer/brand/blob/main/packages/react/src/forms/TextInput/TextInput.tsx
|
|
7
|
+
storybook: '/brand/storybook/?path=/story/components-forms-textinput--playground'
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
```js
|
|
11
|
+
import {TextInput} from '@primer/react-brand'
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Examples
|
|
15
|
+
|
|
16
|
+
### Default
|
|
17
|
+
|
|
18
|
+
```jsx
|
|
19
|
+
<TextInput aria-label="Demo TextInput" />
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Variants
|
|
23
|
+
|
|
24
|
+
```jsx
|
|
25
|
+
<div
|
|
26
|
+
style={{
|
|
27
|
+
display: 'grid',
|
|
28
|
+
gridTemplateColumns: 'repeat(auto-fit, minmax(min(100%, 290px), 1fr))',
|
|
29
|
+
gap: '20px',
|
|
30
|
+
maxWidth: '600px',
|
|
31
|
+
width: '100%',
|
|
32
|
+
}}
|
|
33
|
+
>
|
|
34
|
+
<FormControl fullWidth>
|
|
35
|
+
<FormControl.Label>Text (default)</FormControl.Label>
|
|
36
|
+
<TextInput type="text" placeholder="alphanumeric" />
|
|
37
|
+
</FormControl>
|
|
38
|
+
<FormControl fullWidth>
|
|
39
|
+
<FormControl.Label>Number</FormControl.Label>
|
|
40
|
+
<TextInput type="number" placeholder="123" />
|
|
41
|
+
</FormControl>
|
|
42
|
+
<FormControl fullWidth>
|
|
43
|
+
<FormControl.Label>Email</FormControl.Label>
|
|
44
|
+
<TextInput type="email" autoComplete="email" placeholder="mona@github.com" />
|
|
45
|
+
</FormControl>
|
|
46
|
+
<FormControl fullWidth>
|
|
47
|
+
<FormControl.Label>Password</FormControl.Label>
|
|
48
|
+
<TextInput type="password" autoComplete="current-password" value="monalisa" />
|
|
49
|
+
</FormControl>
|
|
50
|
+
<FormControl fullWidth>
|
|
51
|
+
<FormControl.Label>Month</FormControl.Label>
|
|
52
|
+
<TextInput type="month" />
|
|
53
|
+
</FormControl>
|
|
54
|
+
<FormControl fullWidth>
|
|
55
|
+
<FormControl.Label>Telephone</FormControl.Label>
|
|
56
|
+
<TextInput type="tel" autoComplete="tel" />
|
|
57
|
+
</FormControl>
|
|
58
|
+
<FormControl fullWidth>
|
|
59
|
+
<FormControl.Label>Time</FormControl.Label>
|
|
60
|
+
<TextInput type="time" />
|
|
61
|
+
</FormControl>
|
|
62
|
+
<FormControl fullWidth>
|
|
63
|
+
<FormControl.Label>Date</FormControl.Label>
|
|
64
|
+
<TextInput type="date" />
|
|
65
|
+
</FormControl>
|
|
66
|
+
<FormControl fullWidth>
|
|
67
|
+
<FormControl.Label>Date (local)</FormControl.Label>
|
|
68
|
+
<TextInput type="datetime-local" />
|
|
69
|
+
</FormControl>
|
|
70
|
+
<FormControl fullWidth>
|
|
71
|
+
<FormControl.Label>URL</FormControl.Label>
|
|
72
|
+
<TextInput type="url" autoComplete="url" value="https://github.com" />
|
|
73
|
+
</FormControl>
|
|
74
|
+
</div>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Use with `FormControl`
|
|
78
|
+
|
|
79
|
+
Use `TextInput` alongside `FormControl` to ensure the control always has a corresponding form label.
|
|
80
|
+
|
|
81
|
+
[See FormControl for additional usage examples.](../FormControl/index.md)
|
|
82
|
+
|
|
83
|
+
```jsx
|
|
84
|
+
<FormControl>
|
|
85
|
+
<FormControl.Label>First name</FormControl.Label>
|
|
86
|
+
<TextInput autoComplete="given-name" />
|
|
87
|
+
</FormControl>
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Placeholder
|
|
91
|
+
|
|
92
|
+
```jsx
|
|
93
|
+
<FormControl fullWidth>
|
|
94
|
+
<FormControl.Label>First name</FormControl.Label>
|
|
95
|
+
<TextInput placeholder="Mona" autoComplete="given-name" />
|
|
96
|
+
</FormControl>
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Autocomplete
|
|
100
|
+
|
|
101
|
+
The `autoComplete` prop should be provided wherever possible to allow browsers to autofill the input field. See MDN for [a complete list of autocomplete values](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete).
|
|
102
|
+
|
|
103
|
+
```jsx
|
|
104
|
+
<FormControl fullWidth>
|
|
105
|
+
<FormControl.Label>First name</FormControl.Label>
|
|
106
|
+
<TextInput autoComplete="given-name" />
|
|
107
|
+
</FormControl>
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Validation
|
|
111
|
+
|
|
112
|
+
```jsx
|
|
113
|
+
<div style={{display: 'inline-grid', gap: 3}}>
|
|
114
|
+
<FormControl validationStatus="error">
|
|
115
|
+
<FormControl.Label>Error</FormControl.Label>
|
|
116
|
+
<TextInput />
|
|
117
|
+
<FormControl.Validation>This is an error message</FormControl.Validation>
|
|
118
|
+
</FormControl>
|
|
119
|
+
<FormControl validationStatus="success">
|
|
120
|
+
<FormControl.Label>Success</FormControl.Label>
|
|
121
|
+
<TextInput />
|
|
122
|
+
<FormControl.Validation>This is a success message</FormControl.Validation>
|
|
123
|
+
</FormControl>
|
|
124
|
+
</div>
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Full width
|
|
128
|
+
|
|
129
|
+
```jsx
|
|
130
|
+
<TextInput fullWidth aria-label="Full width TextInput" />
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Sizes
|
|
134
|
+
|
|
135
|
+
`FormControl` can appear in `medium` (default) and `large` dimensions using the `size` prop.
|
|
136
|
+
|
|
137
|
+
```jsx
|
|
138
|
+
<div style={{display: 'inline-grid', gap: 3}}>
|
|
139
|
+
<TextInput size="medium" aria-label="Medium TextInput" />
|
|
140
|
+
|
|
141
|
+
<TextInput size="large" aria-label="Large TextInput" />
|
|
142
|
+
</div>
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Required
|
|
146
|
+
|
|
147
|
+
Pass the `required` prop to ensure that the input field must be filled out before submitting the form.
|
|
148
|
+
|
|
149
|
+
```jsx
|
|
150
|
+
<TextInput required aria-label="Required TextInput" />
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Using `refs`
|
|
154
|
+
|
|
155
|
+
`TextInput` inputs can be used in [uncontrolled mode](https://reactjs.org/docs/uncontrolled-components.html) by forwarding a `ref` to the underlying element.
|
|
156
|
+
|
|
157
|
+
```jsx filename="noinline"
|
|
158
|
+
const App = () => {
|
|
159
|
+
const inputRef = React.useRef(null)
|
|
160
|
+
|
|
161
|
+
const handleSubmit = e => {
|
|
162
|
+
e.preventDefault()
|
|
163
|
+
if (!inputRef.current.value) {
|
|
164
|
+
alert(`Enter a value and try again.`)
|
|
165
|
+
return
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
alert(`Name: ${inputRef.current.value}`)
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return (
|
|
172
|
+
<form onSubmit={handleSubmit}>
|
|
173
|
+
<div
|
|
174
|
+
style={{
|
|
175
|
+
display: 'grid',
|
|
176
|
+
gap: 'var(--base-size-16)',
|
|
177
|
+
maxWidth: 400,
|
|
178
|
+
marginX: 'auto',
|
|
179
|
+
}}
|
|
180
|
+
>
|
|
181
|
+
<FormControl fullWidth>
|
|
182
|
+
<FormControl.Label>Name</FormControl.Label>
|
|
183
|
+
<TextInput ref={inputRef} />
|
|
184
|
+
</FormControl>
|
|
185
|
+
<Button type="submit" variant="primary">
|
|
186
|
+
Submit
|
|
187
|
+
</Button>
|
|
188
|
+
</div>
|
|
189
|
+
</form>
|
|
190
|
+
)
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
render(App)
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
## Component props
|
|
197
|
+
|
|
198
|
+
`TextInput` provides a React alternative to the native HTML `<input>` in single-line mode.
|
|
199
|
+
|
|
200
|
+
The component API supports all standard HTML attribute props, while providing some additional behaviour as described below.
|
|
201
|
+
|
|
202
|
+
### TextInput `Required`
|
|
203
|
+
|
|
204
|
+
| Name | Type | Default | Description |
|
|
205
|
+
| :----------------- | :------------------------------------------------------------------------------------------------------------------ | :-----: | :----------------------------------------------------------- |
|
|
206
|
+
| `children` | `'TextInput.Option' \| 'TextInput.OptGroup'`, | | Valid child nodes |
|
|
207
|
+
| `className` | `string` | | Sets a custom class |
|
|
208
|
+
| `id` | `string` | | Sets a custom id |
|
|
209
|
+
| `fullWidth` | `boolean` | | Stretches elements visually to the edges of its parent div. |
|
|
210
|
+
| `ref` | `React.RefObject` | | Forward a Ref to the underlying DOM node |
|
|
211
|
+
| `size` | `'medium' \| 'large'` | | Visual dimensions for the input |
|
|
212
|
+
| `type` | `'text' \| 'number' \| 'email' \| 'password' \| 'search' \| 'tel' \| 'url' \| 'date' \| 'time' \| 'datetime-local'` | `text` | Alternative text inputs |
|
|
213
|
+
| `validationStatus` | `'error' \| 'success'` | | Applies visual and semantic state to the underlying elements |
|
|
214
|
+
|
|
215
|
+
Additional props can be passed to the `<input>` element. [See MDN for a list of props](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input) accepted by the `<input>` element.
|
|
216
|
+
|
|
217
|
+
## Related components
|
|
218
|
+
|
|
219
|
+
- [FormControl](../FormControl/index.md)
|
|
220
|
+
- [Select](../Select/index.md)
|
|
221
|
+
- [TextInput](./index.md)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Forms
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## In this section
|
|
6
|
+
|
|
7
|
+
- [Checkbox](Checkbox/react.md): Use the checkbox component to select one or more options of a limited number of choices.
|
|
8
|
+
- [Checkbox group](CheckboxGroup/react.md): Checkbox group renders a set of checkboxes.
|
|
9
|
+
- [Form control](FormControl/index.md): Use the form control component to display form inputs alongside labels, validation and more.
|
|
10
|
+
- [Radio](Radio/react.md): Use the radio component when a user needs to select one option from a list.
|
|
11
|
+
- [Radio group](RadioGroup/react.md): Radio group is used to render a short list of mutually exclusive options.
|
|
12
|
+
- [Select](Select/index.md): Use the select component to enable selection of one option from a list.
|
|
13
|
+
- [Text input](TextInput/index.md): Use the text input component for single-line text field.
|
|
14
|
+
- [Textarea](TextArea/index.md): Use the textarea component for multi-line text input form fields.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Getting started
|
|
3
|
+
description: Primer Brand is open-sourced on GitHub and available on npm.
|
|
4
|
+
keywords: ['accessibility', 'introduction', 'simple']
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Using ESM, you will load only the React components and CSS you need.
|
|
8
|
+
|
|
9
|
+
We recommend using ESM if your project uses compatible bundlers or frameworks like Vite or Next.js.
|
|
10
|
+
|
|
11
|
+
### 1. Install Primer Brand
|
|
12
|
+
|
|
13
|
+
```shell
|
|
14
|
+
npm install @primer/react-brand
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### 2. Import components from the ESM folder
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
import {Hero, ThemeProvider} from '@primer/react-brand/esm'
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Each component's styles are automatically included when you import the component.
|
|
24
|
+
|
|
25
|
+
> Do not combine this approach with the global lib/css/main.css import.
|
|
26
|
+
>
|
|
27
|
+
> Choose one approach or the other to avoid loading duplicate styles.
|
|
28
|
+
|
|
29
|
+
### 3. Import the font assets
|
|
30
|
+
|
|
31
|
+
The Mona Sans typeface still needs to be loaded separately:
|
|
32
|
+
|
|
33
|
+
```js
|
|
34
|
+
import '@primer/react-brand/fonts/fonts.css'
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### 4. Use the `ThemeProvider`
|
|
38
|
+
|
|
39
|
+
```js
|
|
40
|
+
import {ThemeProvider} from '@primer/react-brand/esm'
|
|
41
|
+
|
|
42
|
+
function App() {
|
|
43
|
+
return (
|
|
44
|
+
<ThemeProvider>
|
|
45
|
+
<div>...</div>
|
|
46
|
+
</ThemeProvider>
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
```
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Getting started
|
|
3
|
+
description: Primer Brand is open-sourced on GitHub and available on npm.
|
|
4
|
+
keywords: ['introduction', 'simple', 'get started', 'tutorials']
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Primer Brand is [open-sourced on GitHub](https://github.com/primer/brand) and [available on npm](https://www.npmjs.com/package/@primer/react-brand).
|
|
8
|
+
|
|
9
|
+
### 1. Install Primer Brand
|
|
10
|
+
|
|
11
|
+
Install Primer Brand with [npm](https://www.npmjs.com/).
|
|
12
|
+
|
|
13
|
+
```shell
|
|
14
|
+
npm install @primer/react-brand
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### 2. Import global stylesheets
|
|
18
|
+
|
|
19
|
+
Primer Brand requires a global stylesheet to be loaded ahead-of-time.
|
|
20
|
+
|
|
21
|
+
> Refer to [this separate guide if you are using an ESM-compatible bundler](./esm.md). Component styles are included
|
|
22
|
+
> with the React component imports.
|
|
23
|
+
|
|
24
|
+
#### a. Using an application bundler (e.g. Webpack)
|
|
25
|
+
|
|
26
|
+
Import the `main` stylesheet at the earliest rendering opportunity:
|
|
27
|
+
|
|
28
|
+
```js
|
|
29
|
+
import '@primer/react-brand/lib/css/main.css'
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
or
|
|
33
|
+
|
|
34
|
+
#### b. Using a static stylesheet
|
|
35
|
+
|
|
36
|
+
Load the static stylesheet if you're unable to import stylesheets using a bundler
|
|
37
|
+
|
|
38
|
+
```html
|
|
39
|
+
<link href="https://unpkg.com/browse/@primer/react-brand@<version>/lib/css/main.css" rel="stylesheet" />
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### 3. (Optional) Import the custom font assets
|
|
43
|
+
|
|
44
|
+
Primer Brand references the `Mona Sans` typeface, which will need to be loaded alongside the main stylesheet.
|
|
45
|
+
|
|
46
|
+
```js
|
|
47
|
+
import '@primer/react-brand/fonts/fonts.css'
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
or
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<link href="https://unpkg.com/browse/@primer/react-brand@<version>/fonts/fonts.css" rel="stylesheet" />
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### 4. Use the ThemeProvider
|
|
57
|
+
|
|
58
|
+
You must add the `ThemeProvider` to the root of your application for theming to work correctly.
|
|
59
|
+
|
|
60
|
+
E.g.
|
|
61
|
+
|
|
62
|
+
```js
|
|
63
|
+
import {ThemeProvider} from '@primer/react-brand'
|
|
64
|
+
|
|
65
|
+
function App() {
|
|
66
|
+
return (
|
|
67
|
+
<ThemeProvider>
|
|
68
|
+
<div>...</div>
|
|
69
|
+
</ThemeProvider>
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### 5. Import components
|
|
75
|
+
|
|
76
|
+
Components can be imported into any React-based application.
|
|
77
|
+
|
|
78
|
+
E.g.
|
|
79
|
+
|
|
80
|
+
```js
|
|
81
|
+
import {Hero} from '@primer/react-brand'
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
```jsx
|
|
85
|
+
<Hero>
|
|
86
|
+
<Hero.Label>Label</Hero.Label>
|
|
87
|
+
<Hero.Heading>This is my super sweet hero heading</Hero.Heading>
|
|
88
|
+
<Hero.Description>
|
|
89
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sapien sit ullamcorper id. Aliquam luctus sed turpis
|
|
90
|
+
felis nam pulvinar risus elementum.
|
|
91
|
+
</Hero.Description>
|
|
92
|
+
<Hero.PrimaryAction href="#">Primary action</Hero.PrimaryAction>
|
|
93
|
+
<Hero.SecondaryAction href="#">Secondary action</Hero.SecondaryAction>
|
|
94
|
+
</Hero>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
> Building with an AI agent? Use the [Primer Brand MCP server](../introduction/mcp.md) to automatically use our
|
|
98
|
+
> components, tokens and patterns correctly.
|
package/docs/index.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Primer Brand docs (v0.70.0-rc.11ae3568)
|
|
2
|
+
|
|
3
|
+
These docs are bundled with `@primer/react-brand@0.70.0-rc.11ae3568` and match your installed version.
|
|
4
|
+
|
|
5
|
+
New here? Start with [Getting started](getting-started/index.md) for installation, global
|
|
6
|
+
stylesheet and font setup. Component directories are named after their import (e.g.
|
|
7
|
+
`components/Button`), and `react.md` holds the import line, live examples and props.
|
|
8
|
+
|
|
9
|
+
## Getting started
|
|
10
|
+
|
|
11
|
+
- [Getting started (ESM)](getting-started/esm.md): Primer Brand is open-sourced on GitHub and available on npm.
|
|
12
|
+
- [Getting started](getting-started/index.md): Primer Brand is open-sourced on GitHub and available on npm.
|
|
13
|
+
|
|
14
|
+
## Introduction
|
|
15
|
+
|
|
16
|
+
- [Animation](introduction/animation.md): Use animations to add visual interest and interactivity to a web page or application.
|
|
17
|
+
- [Guides](introduction/index.md): Get started with Primer Brand
|
|
18
|
+
- [MCP server](introduction/mcp.md): Help AI agents use Primer Brand correctly with our Model Context Protocol server.
|
|
19
|
+
- [Theming](introduction/theming.md)
|
|
20
|
+
|
|
21
|
+
## Primitives
|
|
22
|
+
|
|
23
|
+
- [Color](primitives/color.md)
|
|
24
|
+
- [Primitives](primitives/index.md): Learn about Primer Brand Primitives
|
|
25
|
+
|
|
26
|
+
## Layout
|
|
27
|
+
|
|
28
|
+
- [Box](layout/Box/react.md): Use a box to simplify the process of applying one-off styles to an element
|
|
29
|
+
- [Grid](layout/Grid/react.md): Use the grid component to create flexible and responsive grid-based layouts.
|
|
30
|
+
- [Layout](layout/index.md)
|
|
31
|
+
- [Stack](layout/Stack/react.md): Use the stack component to create a layout for its immediate children along the vertical or horizontal axis.
|
|
32
|
+
|
|
33
|
+
## Typography
|
|
34
|
+
|
|
35
|
+
- [Heading](typography/Heading/react.md): Use the heading component to render title or subtitle text.
|
|
36
|
+
- [Text](typography/Text/react.md): Use the text component create a range of body text
|
|
37
|
+
- [Typography](typography/index.md)
|
|
38
|
+
|
|
39
|
+
## Components
|
|
40
|
+
|
|
41
|
+
- [Action menu](components/ActionMenu/index.md): Use the action menu component to display a list of actions or selections that expand through a trigger button.
|
|
42
|
+
- [Anchor nav](components/AnchorNav/index.md): Use the anchor nav component for prompt navigation to different sections of a page.
|
|
43
|
+
- [Avatar](components/Avatar/react.md): Use the avatar component to display a thumbnail representation of a person.
|
|
44
|
+
- [Bento](components/Bento/index.md): Use the bento to present content in a responsive grid layout.
|
|
45
|
+
- [Breadcrumbs](components/Breadcrumbs/react.md): Breadcrumbs display the current page within the site's hierarchy, allowing users to easily navigate to a different level.
|
|
46
|
+
- [Breakout banner](components/BreakoutBanner/react.md): Use a breakout banner to break up content on longer pages and highlight important information.
|
|
47
|
+
- [Button](components/Button/react.md): Use the button component for the main actions on a page or form.
|
|
48
|
+
- [Button group](components/ButtonGroup/react.md): Use the button group component to group related buttons together.
|
|
49
|
+
- [Card](components/Card/react.md): Use the card component to display information in a compact way and link to other internal pages.
|
|
50
|
+
- [Comparison table](components/ComparisonTable/index.md): Use the comparison table component to compare two products or features in a table format.
|
|
51
|
+
- [Components](components/index.md): Primer Brand UI components
|
|
52
|
+
- [CTA banner](components/CTABanner/react.md): Use the CTA banner component to highlight and create urgency around user actions.
|
|
53
|
+
- [CTA form](components/CTAForm/react.md): Use the CTA form component to create a form that is used to collect minimal information from users.
|
|
54
|
+
- [Eyebrow banner](components/EyebrowBanner/index.md): Use the eyebrow banner to highlight important information at the top of a page.
|
|
55
|
+
- [FAQ](components/FAQ/react.md): Use the FAQ component to display content in a Q&A format.
|
|
56
|
+
- [Footnotes](components/Footnotes/react.md): Use footnotes to display contextual information and cite sources in the page content.
|
|
57
|
+
- [Hero](components/Hero/react.md): Use the hero component to render a full-width banner at the top of a page.
|
|
58
|
+
- [Icon](components/Icon/index.md): Use the icon component to display Octicons with an optional background
|
|
59
|
+
- [IDE](components/IDE/index.md): Use the IDE to showcase a simulated integrated developer environment, complete with a code editor and AI chat that's intended to enhance code representation in marketing contexts.
|
|
60
|
+
- [Image](components/Image/react.md): Use the image component to display a graphical representation.
|
|
61
|
+
- [Label](components/Label/react.md): Use the label component to add metadata or indicate the status of items.
|
|
62
|
+
- [Logo suite](components/LogoSuite/react.md): Use a logo suite to present a list logos, such as sponsors or vendors.
|
|
63
|
+
- [Media playlist](components/MediaPlaylist/index.md): Use MediaPlaylist to pair thumbnail-backed media items with a shared playback or media area.
|
|
64
|
+
- [Minimal footer](components/MinimalFooter/index.md): Use the minimal footer component to provide a global footer featuring legal links, GitHub logomarks and footnotes.
|
|
65
|
+
- [NavList](components/NavList/index.md): Use NavList to render vertical navigation with optional expandable groups.
|
|
66
|
+
- [Ordered list](components/OrderedList/react.md): Use the ordered list component to display a list of numbered items.
|
|
67
|
+
- [Pagination](components/Pagination/index.md): Use Pagination to display a sequence of links that allow navigation to discrete, related pages.
|
|
68
|
+
- [Pillar](components/Pillar/react.md): Use the pillar component to group related content together.
|
|
69
|
+
- [Pricing options](components/PricingOptions/index.md): Use the pricing options to display pricing plan information on a page.
|
|
70
|
+
- [Prose](components/Prose/index.md): Use the prose component to apply Primer Brand styles to HTML markup.
|
|
71
|
+
- [River](components/River/react.md): Use the river component to introduce a feature using a type and media pairing.
|
|
72
|
+
- [River accordion](components/RiverAccordion/index.md): Use the river accordion to create expandable content panels with associated visuals.
|
|
73
|
+
- [River breakout tabs](components/RiverBreakoutTabs/index.md): Use RiverBreakoutTabs to pair card-based tabs with a shared visual area on desktop and an accordion pattern on narrower viewports.
|
|
74
|
+
- [Section](components/Section/react.md): Use the section component to group related content together.
|
|
75
|
+
- [Section intro](components/SectionIntro/react.md): Use the section intro component to provide a title, optional description and link to a new section in the page.
|
|
76
|
+
- [Section intro stacked](components/SectionIntroStacked/index.md): Use this section intro component to provide a heading, link and itemized content in a stacked layout.
|
|
77
|
+
- [Statistic](components/Statistic/index.md): Use the statistic component display concise numerical information
|
|
78
|
+
- [Sub nav](components/SubNav/index.md): A sub nav is a secondary navigation element, typically positioned beneath a primary navigation.
|
|
79
|
+
- [Subdomain nav bar](components/SubdomainNavBar/index.md): Use the subdomain nav bar component for top level navigation for subdomain sites.
|
|
80
|
+
- [Tabs](components/Tabs/index.md): Use Tabs to display a list of tabs with associated content panels.
|
|
81
|
+
- [Testimonial](components/Testimonial/react.md): Use testimonial to display a quote from a customer or user.
|
|
82
|
+
- [Tiles](components/Tiles/index.md): Use tiles to display a grid of logos or icons with optional links.
|
|
83
|
+
- [Timeline](components/Timeline/index.md): Use the timeline component to display a list of connected items as a vertical timeline.
|
|
84
|
+
- [Token](components/Token/index.md): Token is a compact representation of an object, and is typically used to show a collection of related metadata.
|
|
85
|
+
- [Tooltip](components/Tooltip/index.md): Use the tooltip component to display a short message when a user hovers or focuses an interactive element.
|
|
86
|
+
- [Unordered list](components/UnorderedList/react.md): Use the unordered list component to present a collection of items without specific ordering.
|
|
87
|
+
- [Video player](components/VideoPlayer/index.md): Use the video player component to enable playback of self-hosted videos
|
|
88
|
+
|
|
89
|
+
## Forms
|
|
90
|
+
|
|
91
|
+
- [Checkbox](forms/Checkbox/react.md): Use the checkbox component to select one or more options of a limited number of choices.
|
|
92
|
+
- [Checkbox group](forms/CheckboxGroup/react.md): Checkbox group renders a set of checkboxes.
|
|
93
|
+
- [Form control](forms/FormControl/index.md): Use the form control component to display form inputs alongside labels, validation and more.
|
|
94
|
+
- [Forms](forms/index.md)
|
|
95
|
+
- [Radio](forms/Radio/react.md): Use the radio component when a user needs to select one option from a list.
|
|
96
|
+
- [Radio group](forms/RadioGroup/react.md): Radio group is used to render a short list of mutually exclusive options.
|
|
97
|
+
- [Select](forms/Select/index.md): Use the select component to enable selection of one option from a list.
|
|
98
|
+
- [Text input](forms/TextInput/index.md): Use the text input component for single-line text field.
|
|
99
|
+
- [Textarea](forms/TextArea/index.md): Use the textarea component for multi-line text input form fields.
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Animation
|
|
3
|
+
storybook: '/brand/storybook/?path=/story/components-animations--playground'
|
|
4
|
+
description: Use animations to add visual interest and interactivity to a web page or application.
|
|
5
|
+
options:
|
|
6
|
+
disablePageAnimation: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
### Animate component
|
|
10
|
+
|
|
11
|
+
You can alternatively compose animations into your React application using the `Animate` wrapper component. This can be useful in situations where you need to animate native HTML elements, or components that don't support the `animate` prop.
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import {Animate} from '@primer/react-brand'
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
<AnimationProvider>
|
|
19
|
+
<Animate animate="fade-in">
|
|
20
|
+
<Text>This text will fade-in</Text>
|
|
21
|
+
</Animate>
|
|
22
|
+
</AnimationProvider>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### AnimationProvider
|
|
26
|
+
|
|
27
|
+
An `AnimationProvider` is first required to enable animations on the page. This component should wrap specific parts of your application code, or the entire app.
|
|
28
|
+
The `AnimationProvider` assumes responsibility for triggering animations and automatically applying effects such as staggering.
|
|
29
|
+
|
|
30
|
+
By default, the `AnimationProvider` will stagger animations in order of DOM appearance. This behavior can be turned off by setting `autoStaggerChildren` to `false`.
|
|
31
|
+
|
|
32
|
+
The increment delta can also be increased or decreased using `staggerDelayIncrement`, which is set to 100ms by default.
|
|
33
|
+
|
|
34
|
+
```js
|
|
35
|
+
import {AnimationProvider} from '@primer/react-brand'
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Examples
|
|
39
|
+
|
|
40
|
+
Animations should be used sparingly. The examples below demonstrate some valid use-cases.
|
|
41
|
+
|
|
42
|
+
### River
|
|
43
|
+
|
|
44
|
+
Apply animation to `River.Content` instead of the entire element.
|
|
45
|
+
|
|
46
|
+
```jsx
|
|
47
|
+
<AnimationProvider>
|
|
48
|
+
<River>
|
|
49
|
+
<River.Visual>
|
|
50
|
+
<img src="/images/placeholder.png" alt="placeholder, blank area with a gray background color" />
|
|
51
|
+
</River.Visual>
|
|
52
|
+
<River.Content animate="slide-in-right">
|
|
53
|
+
<Heading>Heading</Heading>
|
|
54
|
+
<Text>
|
|
55
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sapien sit ullamcorper id. Aliquam luctus sed turpis
|
|
56
|
+
felis nam pulvinar risus elementum.
|
|
57
|
+
</Text>
|
|
58
|
+
<Link href="#">Call to action</Link>
|
|
59
|
+
</River.Content>
|
|
60
|
+
</River>
|
|
61
|
+
</AnimationProvider>
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Cards and staggering
|
|
65
|
+
|
|
66
|
+
`AnimationProvider` automatically applies a delay increment to all `children` that have `animation` presets defined. Extend the duration of each delay using `staggerDelayIncrement`.
|
|
67
|
+
|
|
68
|
+
Alternatively, use `delay` to stagger animations on adjacent elements if this feature is toggled off.
|
|
69
|
+
|
|
70
|
+
```jsx
|
|
71
|
+
<Grid>
|
|
72
|
+
<Grid.Column
|
|
73
|
+
span={{
|
|
74
|
+
xsmall: 12,
|
|
75
|
+
large: 6,
|
|
76
|
+
}}
|
|
77
|
+
>
|
|
78
|
+
<Animate animate="scale-in-up">
|
|
79
|
+
<Card href="https://github.com">
|
|
80
|
+
<Card.Icon icon={CopilotIcon} color="indigo" hasBackground />
|
|
81
|
+
<Card.Heading>Collaboration is the key to DevOps success</Card.Heading>
|
|
82
|
+
<Card.Description>Everything you need to know about getting started with GitHub Actions.</Card.Description>
|
|
83
|
+
</Card>
|
|
84
|
+
</Animate>
|
|
85
|
+
</Grid.Column>
|
|
86
|
+
<Grid.Column
|
|
87
|
+
span={{
|
|
88
|
+
xsmall: 12,
|
|
89
|
+
large: 6,
|
|
90
|
+
}}
|
|
91
|
+
>
|
|
92
|
+
<Animate animate="scale-in-up">
|
|
93
|
+
<Card href="https://github.com">
|
|
94
|
+
<Card.Icon icon={RocketIcon} hasBackground color="blue" />
|
|
95
|
+
<Card.Heading>GitHub Actions cheat sheet and more</Card.Heading>
|
|
96
|
+
<Card.Description>In a recent study, 70% of organizations reported they had adopted DevOps.</Card.Description>
|
|
97
|
+
</Card>
|
|
98
|
+
</Animate>
|
|
99
|
+
</Grid.Column>
|
|
100
|
+
</Grid>
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Immediate animations
|
|
104
|
+
|
|
105
|
+
Use `animationTrigger="immediate"` to run animations as soon as the component mounts
|
|
106
|
+
|
|
107
|
+
```jsx
|
|
108
|
+
<AnimationProvider animationTrigger="immediate">
|
|
109
|
+
<Heading animate="fade-in">This heading animates in immediately</Heading>
|
|
110
|
+
</AnimationProvider>
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
See Storybook for more examples of animation.
|
|
114
|
+
|
|
115
|
+
## Props
|
|
116
|
+
|
|
117
|
+
### AnimationProvider `Required`
|
|
118
|
+
|
|
119
|
+
| Name | Type | Default | Required | Description |
|
|
120
|
+
| ----------------------- | ----------- | -------------------- | -------- | -------------------------------------------------------------------------------------------- |
|
|
121
|
+
| `children` | `ReactNode` | | `true` | The children to render within the `AnimationProvider` |
|
|
122
|
+
| `disableAnimations` | `boolean` | | `false` | Prevents animations from running inside the provider |
|
|
123
|
+
| `animationTrigger` | | `'on-visible'` | `false` | Controls the trigger method for the animation. One of `click`, `on-visible`, or `immediate`. |
|
|
124
|
+
| `visibilityOptions` | | `'bottom-of-screen'` | `false` | Controls the intersection observer options for the animation. |
|
|
125
|
+
| `runOnce` | `boolean` | `false` | `false` | Will persist the animation end-state after the animation has completed. |
|
|
126
|
+
| `autoStaggerChildren` | `boolean` | `true` | | Will stagger the animations of the children using an incrementing delay |
|
|
127
|
+
| `staggerDelayIncrement` | `number` | `100` | | Stagger delay increment. Should be used alongside `autoStaggerChildren`. |
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Guides
|
|
3
|
+
description: Get started with Primer Brand
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## In this section
|
|
7
|
+
|
|
8
|
+
- [Animation](animation.md): Use animations to add visual interest and interactivity to a web page or application.
|
|
9
|
+
- [MCP server](mcp.md): Help AI agents use Primer Brand correctly with our Model Context Protocol server.
|
|
10
|
+
- [Theming](theming.md)
|