@primer/react-brand 0.79.1-rc.ed00156c → 0.80.0-rc.4bfa3a79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/components/LogoSuite/react.md +215 -13
- package/docs/components/Spinner/index.md +56 -0
- package/docs/components/index.md +1 -0
- package/docs/forms/FormControl/index.md +5 -0
- package/docs/forms/ToggleSwitch/index.md +129 -0
- package/docs/forms/index.md +1 -0
- package/docs/index.md +4 -2
- package/docs/introduction/theming.md +13 -0
- package/esm/Accordion/Accordion.js +1 -1
- package/esm/Accordion/{Accordion.module-B-iFuyHy.css → Accordion.module-B-vGHUg7.css} +1 -1
- package/esm/Accordion/Accordion.module.js +1 -1
- package/esm/Accordion/Accordion.module.js.map +1 -1
- package/esm/ActionMenu/ActionMenu.js +3 -3
- package/esm/ActionMenu/ActionMenu.js.map +1 -1
- package/esm/AnchorNav/AnchorNav.js +1 -1
- package/esm/Breadcrumbs/Breadcrumbs.js +1 -1
- package/esm/Button/Button.js +1 -1
- package/esm/CTABanner/CTABanner.js +1 -1
- package/esm/Card/Card.js +1 -1
- package/esm/ComparisonTable/ComparisonTable.js +1 -1
- package/esm/EyebrowBanner/EyebrowBanner.js +1 -1
- package/esm/FAQ/FAQ.js +1 -1
- package/esm/FAQ/FAQGroup.js +1 -1
- package/esm/FeatureComparisonTable/FeatureComparisonTable.js +1 -1
- package/esm/FeatureComparisonTable/FeatureComparisonTable.module-BH8n2Ttj.css +1 -0
- package/esm/FeatureComparisonTable/FeatureComparisonTable.module.js +1 -2
- package/esm/FeatureComparisonTable/FeatureComparisonTable.module.js.map +1 -1
- package/esm/FeatureComparisonTable/sub-components/FeatureComparisonTableRow.d.ts.map +1 -1
- package/esm/FeatureComparisonTable/sub-components/FeatureComparisonTableRow.js +1 -1
- package/esm/FeatureComparisonTable/sub-components/FeatureComparisonTableRow.js.map +1 -1
- package/esm/FrostedGlassVFX/FrostedGlassVFX.js +1 -1
- package/esm/Grid/Grid.js +1 -1
- package/esm/Heading/Heading.module-ChqO_lH5.css +1 -0
- package/esm/Heading/Heading.module.js +1 -1
- package/esm/Heading/Heading.module.js.map +1 -1
- package/esm/IDE/IDE.js +1 -1
- package/esm/Icon/Icon.js +1 -1
- package/esm/IconButton/IconButton.d.ts.map +1 -1
- package/esm/IconButton/IconButton.js +44 -42
- package/esm/IconButton/IconButton.js.map +1 -1
- package/esm/IconButton/{IconButton.module-tmxv8TCl.css → IconButton.module-D2UJBm7x.css} +1 -1
- package/esm/IconButton/IconButton.module.js +4 -5
- package/esm/IconButton/IconButton.module.js.map +1 -1
- package/esm/InlineCode/InlineCode.js +1 -1
- package/esm/InlineLink/InlineLink.js +1 -1
- package/esm/InlineLink/{InlineLink.module-6R63us8B.css → InlineLink.module-BXx17-pO.css} +1 -1
- package/esm/InlineLink/InlineLink.module.js +1 -1
- package/esm/InlineLink/InlineLink.module.js.map +1 -1
- package/esm/Label/Label.js +1 -1
- package/esm/Label/Label.module-ChD9OmD6.css +1 -0
- package/esm/Label/Label.module.js +1 -1
- package/esm/Label/Label.module.js.map +1 -1
- package/esm/Link/Link.js +1 -1
- package/esm/LogoSuite/LogoSuite.d.ts +5 -1
- package/esm/LogoSuite/LogoSuite.d.ts.map +1 -1
- package/esm/LogoSuite/LogoSuite.js +37 -34
- package/esm/LogoSuite/LogoSuite.js.map +1 -1
- package/esm/LogoSuite/LogoSuite.module-BUJyNoZs.css +1 -0
- package/esm/LogoSuite/LogoSuite.module.js +3 -1
- package/esm/LogoSuite/LogoSuite.module.js.map +1 -1
- package/esm/MediaPlaylist/MediaPlaylist.js +1 -1
- package/esm/MinimalFooter/MinimalFooter.js +1 -1
- package/esm/MinimalVideoPlayer/MinimalVideoPlayer.d.ts.map +1 -1
- package/esm/MinimalVideoPlayer/MinimalVideoPlayer.js +33 -42
- package/esm/MinimalVideoPlayer/MinimalVideoPlayer.js.map +1 -1
- package/esm/NavList/NavList.js +1 -1
- package/esm/NavList/{NavList.module-zvpwnkzz.css → NavList.module-f9LV2-bb.css} +1 -1
- package/esm/NavList/NavList.module.js +1 -1
- package/esm/NavList/NavList.module.js.map +1 -1
- package/esm/PlayIcon.d.ts +3 -0
- package/esm/PlayIcon.d.ts.map +1 -0
- package/esm/PlayIcon.js +22 -0
- package/esm/PlayIcon.js.map +1 -0
- package/esm/PricingOptions/PricingOptions.js +1 -1
- package/esm/Prose/Prose.js +1 -1
- package/esm/Spinner/Spinner.d.ts +11 -0
- package/esm/Spinner/Spinner.d.ts.map +1 -0
- package/esm/Spinner/Spinner.js +48 -0
- package/esm/Spinner/Spinner.js.map +1 -0
- package/esm/Spinner/Spinner.module-BjDTZLR7.css +1 -0
- package/esm/Spinner/Spinner.module.js +13 -0
- package/esm/Spinner/Spinner.module.js.map +1 -0
- package/esm/Spinner/index.d.ts +3 -0
- package/esm/Spinner/index.d.ts.map +1 -0
- package/esm/SubNav/SubNav.js +1 -1
- package/esm/SubNav/SubNav.module-kWRa0Laq.css +1 -0
- package/esm/SubNav/SubNav.module.js +1 -1
- package/esm/SubNav/SubNav.module.js.map +1 -1
- package/esm/SubdomainNavBar/SubdomainNavBar.js +1 -1
- package/esm/Tabs/Tabs.js +1 -1
- package/esm/Testimonial/Testimonial.js +1 -1
- package/esm/Text/Text.module-Bf-3ooDP.css +1 -0
- package/esm/Text/Text.module.js +1 -1
- package/esm/Text/Text.module.js.map +1 -1
- package/esm/TextCursorAnimation/TextCursorAnimation.js +1 -1
- package/esm/ThemeProvider/ThemeProvider.d.ts +1 -0
- package/esm/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/esm/ThemeProvider/ThemeProvider.js +11 -9
- package/esm/ThemeProvider/ThemeProvider.js.map +1 -1
- package/esm/Tiles/Tiles.js +1 -1
- package/esm/Timeline/Timeline.js +1 -1
- package/esm/Token/Token.js +1 -1
- package/esm/Token/Token.module-Di856FbT.css +1 -0
- package/esm/Token/Token.module.js +1 -1
- package/esm/Token/Token.module.js.map +1 -1
- package/esm/Tooltip/Tooltip.js +1 -1
- package/esm/VideoPlayer/VideoPlayer.js +1 -1
- package/esm/css/stylesheets.js +1 -1
- package/esm/forms/Checkbox/Checkbox.js +1 -1
- package/esm/forms/FormControl/FormControl.d.ts.map +1 -1
- package/esm/forms/FormControl/FormControl.js +125 -105
- package/esm/forms/FormControl/FormControl.js.map +1 -1
- package/esm/forms/FormControl/FormControl.module-NDvIk_Aq.css +1 -0
- package/esm/forms/FormControl/FormControl.module.js +7 -4
- package/esm/forms/FormControl/FormControl.module.js.map +1 -1
- package/esm/forms/Radio/Radio.js +1 -1
- package/esm/forms/Select/Select.js +1 -1
- package/esm/forms/TextInput/TextInput.js +1 -1
- package/esm/forms/Textarea/Textarea.js +1 -1
- package/esm/forms/ToggleSwitch/ToggleSwitch.d.ts +34 -0
- package/esm/forms/ToggleSwitch/ToggleSwitch.d.ts.map +1 -0
- package/esm/forms/ToggleSwitch/ToggleSwitch.js +81 -0
- package/esm/forms/ToggleSwitch/ToggleSwitch.js.map +1 -0
- package/esm/forms/ToggleSwitch/ToggleSwitch.module-C_gXnHNW.css +1 -0
- package/esm/forms/ToggleSwitch/ToggleSwitch.module.js +18 -0
- package/esm/forms/ToggleSwitch/ToggleSwitch.module.js.map +1 -0
- package/esm/forms/ToggleSwitch/index.d.ts +3 -0
- package/esm/forms/ToggleSwitch/index.d.ts.map +1 -0
- package/esm/forms/index.d.ts +1 -0
- package/esm/forms/index.d.ts.map +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.esm.js +72 -70
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes-CBE7L2wV.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/colors/global-with-modes-CjksF091.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes-DKHKbQRW.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes-CyS5r4GY.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes-CD0Na993.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes-BngjsaKj.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes-Bog-yunW.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes-BbjIdlS-.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes-q-NjRozG.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes-DKA7xAYz.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes-HElP20qs.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes-BTVqJ9iR.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes-BygKJG38.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/feature-comparison-table/colors-with-modes-k7YIWAQV.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes-PKZWykxm.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes-fV7rwA0l.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes-Chf_t26p.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes-BPFx95T7.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon-button/base-_lTjJKpQ.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon-button/colors-with-modes-BsaQYf6M.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes-CTreurKT.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/inline-code/colors-with-modes-B72y-n-A.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes-CT7QXZTs.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes-S_161ALk.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes-JvDrymoz.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes-BsfJ9fNj.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/media-playlist/colors-with-modes-DTTUHiv1.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/nav-list/colors-with-modes-BCIP0l57.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes-DNrd36sc.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes-BVL83uw2.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes-DOJW-F1w.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/spinner/base-BUCpHNCY.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/spinner/colors-with-modes-ufFxqo2V.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes-8aCELL7I.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes-J9EPudv_.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes-D9l5QVGg.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes-isyQx5qj.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes-wctZLA5X.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes-BLWCqYua.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes-DNNJvx8C.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/toggle-switch/base-CWVI8qLT.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/toggle-switch/colors-with-modes-Byi9AmE8.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes-CzvPUrZu.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes-CjEAA-Ic.css +1 -0
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes-M9ib_BKQ.css +1 -0
- package/esm/river/River/River.js +1 -1
- package/esm/river/RiverStoryScroll/RiverStoryScroll.js +1 -1
- package/lib/LogoSuite/LogoSuite.d.ts +5 -1
- package/lib/PlayIcon.d.ts +2 -0
- package/lib/Spinner/Spinner.d.ts +10 -0
- package/lib/Spinner/index.d.ts +2 -0
- package/lib/ThemeProvider/ThemeProvider.d.ts +1 -0
- package/lib/css/main.css +1444 -165
- package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +141 -2
- 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 +45 -2
- 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 +38 -2
- package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +12 -2
- package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +10 -2
- 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 +9 -2
- package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +9 -2
- package/lib/design-tokens/css/tokens/functional/components/button/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +35 -2
- 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 +10 -2
- 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 +10 -2
- 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 +47 -2
- package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +16 -2
- package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +52 -2
- 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 +13 -2
- 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/feature-comparison-table/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/feature-comparison-table/colors-with-modes.css +17 -2
- package/lib/design-tokens/css/tokens/functional/components/footer/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +18 -2
- 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 +11 -2
- package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +9 -2
- 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 +36 -2
- package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/icon-button/base.css +3 -3
- package/lib/design-tokens/css/tokens/functional/components/icon-button/colors-with-modes.css +22 -2
- package/lib/design-tokens/css/tokens/functional/components/icon-button/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 +29 -2
- package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-code/colors-with-modes.css +11 -2
- package/lib/design-tokens/css/tokens/functional/components/inline-code/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +10 -2
- 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 +33 -2
- 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 +10 -2
- 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 +14 -2
- 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 +9 -2
- 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 +9 -2
- package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +16 -2
- 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 +10 -2
- 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 +10 -2
- package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/spinner/base.css +12 -0
- package/lib/design-tokens/css/tokens/functional/components/spinner/colors-with-modes.css +20 -0
- package/lib/design-tokens/css/tokens/functional/components/spinner/colors.css +8 -0
- 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 +20 -2
- package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +19 -2
- 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 +14 -2
- 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 +55 -2
- package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes.css +11 -2
- package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tiles/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css +11 -2
- 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 +9 -2
- package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/toggle-switch/base.css +30 -0
- package/lib/design-tokens/css/tokens/functional/components/toggle-switch/colors-with-modes.css +44 -0
- package/lib/design-tokens/css/tokens/functional/components/toggle-switch/colors.css +16 -0
- package/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css +21 -2
- 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 +9 -2
- 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 +20 -2
- 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/button/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/feature-comparison-table/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/footer/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/icon-button/base.js +2 -2
- package/lib/design-tokens/js/module/tokens/functional/components/icon-button/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-code/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/media-playlist/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/spinner/base.js +20 -0
- package/lib/design-tokens/js/module/tokens/functional/components/spinner/colors.js +15 -0
- package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/tiles/base.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/toggle-switch/base.js +56 -0
- package/lib/design-tokens/js/module/tokens/functional/components/toggle-switch/colors.js +63 -0
- 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/button/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/feature-comparison-table/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/footer/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/icon-button/base.js +3 -3
- package/lib/design-tokens/js/tokens/functional/components/icon-button/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-code/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/media-playlist/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/spinner/base.js +10 -0
- package/lib/design-tokens/js/tokens/functional/components/spinner/colors.js +6 -0
- package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tiles/base.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/toggle-switch/base.js +28 -0
- package/lib/design-tokens/js/tokens/functional/components/toggle-switch/colors.js +14 -0
- package/lib/design-tokens/js/tokens/functional/components/token/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/tooltip/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/json/colors.json +11 -0
- package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
- package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
- package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/button/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/feature-comparison-table/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/footer/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/icon-button/base.scss +3 -3
- package/lib/design-tokens/scss/tokens/functional/components/icon-button/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-code/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/media-playlist/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/spinner/base.scss +9 -0
- package/lib/design-tokens/scss/tokens/functional/components/spinner/colors.scss +5 -0
- package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/tiles/base.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/toggle-switch/base.scss +27 -0
- package/lib/design-tokens/scss/tokens/functional/components/toggle-switch/colors.scss +13 -0
- 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/button/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/button/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/feature-comparison-table/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/feature-comparison-table/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon-button/base.d.ts +2 -2
- package/lib/design-tokens/ts/tokens/functional/components/icon-button/base.js +2 -2
- package/lib/design-tokens/ts/tokens/functional/components/icon-button/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/icon-button/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/spinner/base.d.ts +23 -0
- package/lib/design-tokens/ts/tokens/functional/components/spinner/base.js +20 -0
- package/lib/design-tokens/ts/tokens/functional/components/spinner/colors.d.ts +15 -0
- package/lib/design-tokens/ts/tokens/functional/components/spinner/colors.js +12 -0
- package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tiles/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tiles/base.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/toggle-switch/base.d.ts +59 -0
- package/lib/design-tokens/ts/tokens/functional/components/toggle-switch/base.js +56 -0
- package/lib/design-tokens/ts/tokens/functional/components/toggle-switch/colors.d.ts +39 -0
- package/lib/design-tokens/ts/tokens/functional/components/toggle-switch/colors.js +36 -0
- package/lib/design-tokens/ts/tokens/functional/components/token/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/token/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
- package/lib/forms/ToggleSwitch/ToggleSwitch.d.ts +33 -0
- package/lib/forms/ToggleSwitch/index.d.ts +2 -0
- package/lib/forms/index.d.ts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/llms.txt +4 -2
- package/package.json +1 -1
- package/esm/FeatureComparisonTable/FeatureComparisonTable.module-CGnj3YJu.css +0 -1
- package/esm/Heading/Heading.module-YfiTxQkR.css +0 -1
- package/esm/Label/Label.module-DDkalJAE.css +0 -1
- package/esm/LogoSuite/LogoSuite.module-BCbX-lfy.css +0 -1
- package/esm/SubNav/SubNav.module-cyUt0N_h.css +0 -1
- package/esm/Text/Text.module-D0UHZ0pq.css +0 -1
- package/esm/Token/Token.module-DtWE9IPI.css +0 -1
- package/esm/forms/FormControl/FormControl.module-CSNT689n.css +0 -1
- package/esm/node_modules/@primer/octicons-react/dist/icons/PlayIcon.js +0 -20
- package/esm/node_modules/@primer/octicons-react/dist/icons/PlayIcon.js.map +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes-BVk7bh0Y.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/colors/global-with-modes-Bdet_nBw.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes-PcQKqJQI.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes-mgXFtgvP.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes-98imfMkq.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes-DYugDcQy.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes-kII0kqk3.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes-C43pQ5wc.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes-D2oNfyDt.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes-C05YPRXo.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes-B9zRp3WA.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes-BzV3LYhH.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes-Dc8Ya1HV.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/feature-comparison-table/colors-with-modes-Dw8AMSYp.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes-CMFhnjfv.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes-CMw13Yda.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes-6QocK2fy.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes-Bjhpbkke.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon-button/base-DLPw97mz.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon-button/colors-with-modes-D7iaptsa.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes-DSf1PV6b.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/inline-code/colors-with-modes-Bj7XtHMY.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes-DujakhtG.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes-BB1L_8rS.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes-Dh1w7a05.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes-B8ia26TA.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/media-playlist/colors-with-modes-YId8eSZQ.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/nav-list/colors-with-modes-CGyt2t8f.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes-DBi2l0Re.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes-Y3yB1rAU.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes-omPmv64b.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes-Bna3nyXf.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes-C_lnz8M6.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes-DCEDN6wM.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes-8ryG-BX6.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes-BucKYl1n.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes-DTTqGOfy.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes-DDIdeMJX.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes-5VT1x9eF.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes-BrRCxJ2E.css +0 -1
- package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes-CTkp-z-l.css +0 -1
package/esm/Tabs/Tabs.js
CHANGED
|
@@ -7,7 +7,7 @@ import { Text as a } from "../Text/Text.js";
|
|
|
7
7
|
import { ChevronLeftIcon as o } from "../node_modules/@primer/octicons-react/dist/icons/ChevronLeftIcon.js";
|
|
8
8
|
import { ChevronRightIcon as s } from "../node_modules/@primer/octicons-react/dist/icons/ChevronRightIcon.js";
|
|
9
9
|
import { useTabs as c } from "../hooks/useTabs.js";
|
|
10
|
-
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes-
|
|
10
|
+
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes-D9l5QVGg.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tabs/base-T7ABwZVf.css';/* empty css */
|
|
11
11
|
/* empty css */
|
|
12
12
|
import l from "./Tabs.module.js";
|
|
13
13
|
import { Children as u, cloneElement as d, forwardRef as f, isValidElement as p, memo as m, useCallback as h, useEffect as g, useRef as _ } from "react";
|
|
@@ -5,7 +5,7 @@ import { Text as i } from "../Text/Text.js";
|
|
|
5
5
|
import { TextCursorAnimation as a } from "../TextCursorAnimation/TextCursorAnimation.js";
|
|
6
6
|
import { Link as o } from "../Link/Link.js";
|
|
7
7
|
import { Avatar as s } from "../Avatar/Avatar.js";
|
|
8
|
-
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes-
|
|
8
|
+
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes-isyQx5qj.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/testimonial/base-CAG7koNB.css';/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
import c from "./Testimonial.module.js";
|
|
11
11
|
import l, { forwardRef as u } from "react";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.Primer_Brand__Text-module__Text___XeGJJ{font-family:var(--brand-body-fontFamily)}[data-color-mode=dark] .Primer_Brand__Text-module__Text--antialiased___TYoXS{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:auto}@media (prefers-color-scheme:dark){[data-color-mode=auto] .Primer_Brand__Text-module__Text--antialiased___TYoXS{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:auto}}.Primer_Brand__Text-module__Text--default___GhPh_{color:var(--brand-color-text-default)}.Primer_Brand__Text-module__Text--muted___rE6mh{color:var(--brand-color-text-muted)}.Primer_Brand__Text-module__Text-font--mona-sans___a8XJD{font-family:var(--brand-body-fontFamily)}.Primer_Brand__Text-module__Text-font--hubot-sans___ugBUt{font-family:var(--brand-body-fontFamilyAlt)}.Primer_Brand__Text-module__Text-font--monospace___QXHDQ{font-family:var(--brand-fontStack-monospace)}.Primer_Brand__Text-module__Text--1000___tukKR{font-weight:var(--brand-text-weight-1000);font-size:var(--brand-text-size-1000);line-height:var(--brand-text-lineHeight-1000);letter-spacing:var(--brand-text-letterSpacing-1000)}.Primer_Brand__Text-module__Text--900___32GJV{font-weight:var(--brand-text-weight-900);font-size:var(--brand-text-size-900);line-height:var(--brand-text-lineHeight-900);letter-spacing:var(--brand-text-letterSpacing-900)}.Primer_Brand__Text-module__Text--800___fyc1I{font-weight:var(--brand-text-weight-800);font-size:var(--brand-text-size-800);line-height:var(--brand-text-lineHeight-800);letter-spacing:var(--brand-text-letterSpacing-800)}.Primer_Brand__Text-module__Text--700___d10Sw{font-weight:var(--brand-text-weight-700);font-size:var(--brand-text-size-700);line-height:var(--brand-text-lineHeight-700);letter-spacing:var(--brand-text-letterSpacing-700)}.Primer_Brand__Text-module__Text--600___4BFh8{font-weight:var(--brand-text-weight-600);font-size:var(--brand-text-size-600);line-height:var(--brand-text-lineHeight-600)}.Primer_Brand__Text-module__Text--500___PC29z{font-weight:var(--brand-text-weight-500);font-size:var(--brand-text-size-500);line-height:var(--brand-text-lineHeight-500)}.Primer_Brand__Text-module__Text--400___6gPcS{font-weight:var(--brand-text-weight-400);font-size:var(--brand-text-size-400);line-height:var(--brand-text-lineHeight-400);letter-spacing:var(--brand-text-letterSpacing-400)}.Primer_Brand__Text-module__Text--350___3wtcG{font-weight:var(--brand-text-weight-350);font-size:var(--brand-text-size-350);line-height:var(--brand-text-lineHeight-350);letter-spacing:var(--brand-text-letterSpacing-350)}.Primer_Brand__Text-module__Text--300___6_Yx4{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__Text-module__Text--200____P1wy{font-weight:var(--brand-text-weight-200);font-size:var(--brand-text-size-200);line-height:var(--brand-text-lineHeight-200);letter-spacing:var(--brand-text-letterSpacing-200)}.Primer_Brand__Text-module__Text--100___B2ueX{font-weight:var(--brand-text-weight-100);font-size:var(--brand-text-size-100);line-height:var(--brand-text-lineHeight-100);letter-spacing:var(--brand-text-letterSpacing-100)}.Primer_Brand__Text-module__Text--weight-heavy___QCeKv,.Primer_Brand__Text-module__Text-narrow--weight-heavy___24MXE{font-weight:var(--base-text-weight-heavy)}.Primer_Brand__Text-module__Text--weight-extrabold___VQOAJ,.Primer_Brand__Text-module__Text-narrow--weight-extrabold___EYii_{font-weight:var(--base-text-weight-extrabold)}.Primer_Brand__Text-module__Text--weight-bold___6UQaB,.Primer_Brand__Text-module__Text-narrow--weight-bold___yldzx{font-weight:var(--base-text-weight-bold)}.Primer_Brand__Text-module__Text--weight-semibold___RwHEI,.Primer_Brand__Text-module__Text-narrow--weight-semibold___WHElR{font-weight:var(--base-text-weight-semibold)}.Primer_Brand__Text-module__Text--weight-medium___qJKf_,.Primer_Brand__Text-module__Text-narrow--weight-medium___rrr6b{font-weight:var(--base-text-weight-medium)}.Primer_Brand__Text-module__Text--weight-normal___8EPr2,.Primer_Brand__Text-module__Text-narrow--weight-normal___2bidj{font-weight:var(--base-text-weight-normal)}.Primer_Brand__Text-module__Text--weight-light___6OYNB,.Primer_Brand__Text-module__Text-narrow--weight-light___LpqTO{font-weight:var(--base-text-weight-light)}.Primer_Brand__Text-module__Text--weight-extralight___C_7HK,.Primer_Brand__Text-module__Text-narrow--weight-extralight___4x_ZL{font-weight:var(--base-text-weight-extralight)}@media screen and (width>=48rem){.Primer_Brand__Text-module__Text-regular--weight-heavy___C6cCn{font-weight:var(--base-text-weight-heavy)}.Primer_Brand__Text-module__Text-regular--weight-extrabold___o622g{font-weight:var(--base-text-weight-extrabold)}.Primer_Brand__Text-module__Text-regular--weight-bold___EIEc7{font-weight:var(--base-text-weight-bold)}.Primer_Brand__Text-module__Text-regular--weight-semibold___5kMg1{font-weight:var(--base-text-weight-semibold)}.Primer_Brand__Text-module__Text-regular--weight-medium___OkZWd{font-weight:var(--base-text-weight-medium)}.Primer_Brand__Text-module__Text-regular--weight-normal___uxTUt{font-weight:var(--base-text-weight-normal)}.Primer_Brand__Text-module__Text-regular--weight-light___aTMvp{font-weight:var(--base-text-weight-light)}.Primer_Brand__Text-module__Text-regular--weight-extralight___GcMAT{font-weight:var(--base-text-weight-extralight)}}@media screen and (width>=80rem){.Primer_Brand__Text-module__Text-wide--weight-heavy___2TsqG{font-weight:var(--base-text-weight-heavy)}.Primer_Brand__Text-module__Text-wide--weight-extrabold___aGeMc{font-weight:var(--base-text-weight-extrabold)}.Primer_Brand__Text-module__Text-wide--weight-bold___nnBEA{font-weight:var(--base-text-weight-bold)}.Primer_Brand__Text-module__Text-wide--weight-semibold___Qz6Ns{font-weight:var(--base-text-weight-semibold)}.Primer_Brand__Text-module__Text-wide--weight-medium___azsiu{font-weight:var(--base-text-weight-medium)}.Primer_Brand__Text-module__Text-wide--weight-normal___qsXEg{font-weight:var(--base-text-weight-normal)}.Primer_Brand__Text-module__Text-wide--weight-light___bYqfS{font-weight:var(--base-text-weight-light)}.Primer_Brand__Text-module__Text-wide--weight-extralight___5n89w{font-weight:var(--base-text-weight-extralight)}}.Primer_Brand__Text-module__Text-align--start___hayyq{text-align:start}.Primer_Brand__Text-module__Text-align--end____rbX8{text-align:end}.Primer_Brand__Text-module__Text-align--center___NERb4{text-align:center}
|
package/esm/Text/Text.module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './Text.module-
|
|
1
|
+
import './Text.module-Bf-3ooDP.css';//#region src/Text/Text.module.css
|
|
2
2
|
var e = "Primer_Brand__Text-module__Text___XeGJJ", t = {
|
|
3
3
|
Text: e,
|
|
4
4
|
"Text--antialiased": "Primer_Brand__Text-module__Text--antialiased___TYoXS",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.module.js","names":[],"sources":["../../src/Text/Text.module.css"],"sourcesContent":[".Text {\n font-family: var(--brand-body-fontFamily);\n}\n\n[data-color-mode='dark'] .Text--antialiased {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: auto;\n}\n\n.Text--default {\n color: var(--brand-color-text-default);\n}\n\n.Text--muted {\n color: var(--brand-color-text-muted);\n}\n\n.Text-font--mona-sans {\n font-family: var(--brand-body-fontFamily);\n}\n\n.Text-font--hubot-sans {\n font-family: var(--brand-body-fontFamilyAlt);\n}\n\n.Text-font--monospace {\n font-family: var(--brand-fontStack-monospace);\n}\n\n.Text--1000 {\n font-weight: var(--brand-text-weight-1000);\n font-size: var(--brand-text-size-1000);\n line-height: var(--brand-text-lineHeight-1000);\n letter-spacing: var(--brand-text-letterSpacing-1000);\n}\n\n.Text--900 {\n font-weight: var(--brand-text-weight-900);\n font-size: var(--brand-text-size-900);\n line-height: var(--brand-text-lineHeight-900);\n letter-spacing: var(--brand-text-letterSpacing-900);\n}\n\n.Text--800 {\n font-weight: var(--brand-text-weight-800);\n font-size: var(--brand-text-size-800);\n line-height: var(--brand-text-lineHeight-800);\n letter-spacing: var(--brand-text-letterSpacing-800);\n}\n\n.Text--700 {\n font-weight: var(--brand-text-weight-700);\n font-size: var(--brand-text-size-700);\n line-height: var(--brand-text-lineHeight-700);\n letter-spacing: var(--brand-text-letterSpacing-700);\n}\n\n.Text--600 {\n font-weight: var(--brand-text-weight-600);\n font-size: var(--brand-text-size-600);\n line-height: var(--brand-text-lineHeight-600);\n}\n\n.Text--500 {\n font-weight: var(--brand-text-weight-500);\n font-size: var(--brand-text-size-500);\n line-height: var(--brand-text-lineHeight-500);\n}\n\n.Text--400 {\n font-weight: var(--brand-text-weight-400);\n font-size: var(--brand-text-size-400);\n line-height: var(--brand-text-lineHeight-400);\n letter-spacing: var(--brand-text-letterSpacing-400);\n}\n\n.Text--350 {\n font-weight: var(--brand-text-weight-350);\n font-size: var(--brand-text-size-350);\n line-height: var(--brand-text-lineHeight-350);\n letter-spacing: var(--brand-text-letterSpacing-350);\n}\n\n.Text--300 {\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.Text--200 {\n font-weight: var(--brand-text-weight-200);\n font-size: var(--brand-text-size-200);\n line-height: var(--brand-text-lineHeight-200);\n letter-spacing: var(--brand-text-letterSpacing-200);\n}\n\n.Text--100 {\n font-weight: var(--brand-text-weight-100);\n font-size: var(--brand-text-size-100);\n line-height: var(--brand-text-lineHeight-100);\n letter-spacing: var(--brand-text-letterSpacing-100);\n}\n\n.Text--weight-heavy,\n.Text-narrow--weight-heavy {\n font-weight: var(--base-text-weight-heavy);\n}\n\n.Text--weight-extrabold,\n.Text-narrow--weight-extrabold {\n font-weight: var(--base-text-weight-extrabold);\n}\n\n.Text--weight-bold,\n.Text-narrow--weight-bold {\n font-weight: var(--base-text-weight-bold);\n}\n\n.Text--weight-semibold,\n.Text-narrow--weight-semibold {\n font-weight: var(--base-text-weight-semibold);\n}\n\n.Text--weight-medium,\n.Text-narrow--weight-medium {\n font-weight: var(--base-text-weight-medium);\n}\n\n.Text--weight-normal,\n.Text-narrow--weight-normal {\n font-weight: var(--base-text-weight-normal);\n}\n\n.Text--weight-light,\n.Text-narrow--weight-light {\n font-weight: var(--base-text-weight-light);\n}\n\n.Text--weight-extralight,\n.Text-narrow--weight-extralight {\n font-weight: var(--base-text-weight-extralight);\n}\n\n@media screen and (min-width: 48rem) {\n .Text-regular--weight-heavy {\n font-weight: var(--base-text-weight-heavy);\n }\n\n .Text-regular--weight-extrabold {\n font-weight: var(--base-text-weight-extrabold);\n }\n\n .Text-regular--weight-bold {\n font-weight: var(--base-text-weight-bold);\n }\n\n .Text-regular--weight-semibold {\n font-weight: var(--base-text-weight-semibold);\n }\n\n .Text-regular--weight-medium {\n font-weight: var(--base-text-weight-medium);\n }\n\n .Text-regular--weight-normal {\n font-weight: var(--base-text-weight-normal);\n }\n\n .Text-regular--weight-light {\n font-weight: var(--base-text-weight-light);\n }\n\n .Text-regular--weight-extralight {\n font-weight: var(--base-text-weight-extralight);\n }\n}\n\n@media screen and (min-width: 80rem) {\n .Text-wide--weight-heavy {\n font-weight: var(--base-text-weight-heavy);\n }\n\n .Text-wide--weight-extrabold {\n font-weight: var(--base-text-weight-extrabold);\n }\n\n .Text-wide--weight-bold {\n font-weight: var(--base-text-weight-bold);\n }\n\n .Text-wide--weight-semibold {\n font-weight: var(--base-text-weight-semibold);\n }\n\n .Text-wide--weight-medium {\n font-weight: var(--base-text-weight-medium);\n }\n\n .Text-wide--weight-normal {\n font-weight: var(--base-text-weight-normal);\n }\n\n .Text-wide--weight-light {\n font-weight: var(--base-text-weight-light);\n }\n\n .Text-wide--weight-extralight {\n font-weight: var(--base-text-weight-extralight);\n }\n}\n\n.Text-align--start {\n text-align: start;\n}\n\n.Text-align--end {\n text-align: end;\n}\n\n.Text-align--center {\n text-align: center;\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Text.module.js","names":[],"sources":["../../src/Text/Text.module.css"],"sourcesContent":[".Text {\n font-family: var(--brand-body-fontFamily);\n}\n\n[data-color-mode='dark'] .Text--antialiased {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: auto;\n}\n\n@media (prefers-color-scheme: dark) {\n [data-color-mode='auto'] .Text--antialiased {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: auto;\n }\n}\n\n.Text--default {\n color: var(--brand-color-text-default);\n}\n\n.Text--muted {\n color: var(--brand-color-text-muted);\n}\n\n.Text-font--mona-sans {\n font-family: var(--brand-body-fontFamily);\n}\n\n.Text-font--hubot-sans {\n font-family: var(--brand-body-fontFamilyAlt);\n}\n\n.Text-font--monospace {\n font-family: var(--brand-fontStack-monospace);\n}\n\n.Text--1000 {\n font-weight: var(--brand-text-weight-1000);\n font-size: var(--brand-text-size-1000);\n line-height: var(--brand-text-lineHeight-1000);\n letter-spacing: var(--brand-text-letterSpacing-1000);\n}\n\n.Text--900 {\n font-weight: var(--brand-text-weight-900);\n font-size: var(--brand-text-size-900);\n line-height: var(--brand-text-lineHeight-900);\n letter-spacing: var(--brand-text-letterSpacing-900);\n}\n\n.Text--800 {\n font-weight: var(--brand-text-weight-800);\n font-size: var(--brand-text-size-800);\n line-height: var(--brand-text-lineHeight-800);\n letter-spacing: var(--brand-text-letterSpacing-800);\n}\n\n.Text--700 {\n font-weight: var(--brand-text-weight-700);\n font-size: var(--brand-text-size-700);\n line-height: var(--brand-text-lineHeight-700);\n letter-spacing: var(--brand-text-letterSpacing-700);\n}\n\n.Text--600 {\n font-weight: var(--brand-text-weight-600);\n font-size: var(--brand-text-size-600);\n line-height: var(--brand-text-lineHeight-600);\n}\n\n.Text--500 {\n font-weight: var(--brand-text-weight-500);\n font-size: var(--brand-text-size-500);\n line-height: var(--brand-text-lineHeight-500);\n}\n\n.Text--400 {\n font-weight: var(--brand-text-weight-400);\n font-size: var(--brand-text-size-400);\n line-height: var(--brand-text-lineHeight-400);\n letter-spacing: var(--brand-text-letterSpacing-400);\n}\n\n.Text--350 {\n font-weight: var(--brand-text-weight-350);\n font-size: var(--brand-text-size-350);\n line-height: var(--brand-text-lineHeight-350);\n letter-spacing: var(--brand-text-letterSpacing-350);\n}\n\n.Text--300 {\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.Text--200 {\n font-weight: var(--brand-text-weight-200);\n font-size: var(--brand-text-size-200);\n line-height: var(--brand-text-lineHeight-200);\n letter-spacing: var(--brand-text-letterSpacing-200);\n}\n\n.Text--100 {\n font-weight: var(--brand-text-weight-100);\n font-size: var(--brand-text-size-100);\n line-height: var(--brand-text-lineHeight-100);\n letter-spacing: var(--brand-text-letterSpacing-100);\n}\n\n.Text--weight-heavy,\n.Text-narrow--weight-heavy {\n font-weight: var(--base-text-weight-heavy);\n}\n\n.Text--weight-extrabold,\n.Text-narrow--weight-extrabold {\n font-weight: var(--base-text-weight-extrabold);\n}\n\n.Text--weight-bold,\n.Text-narrow--weight-bold {\n font-weight: var(--base-text-weight-bold);\n}\n\n.Text--weight-semibold,\n.Text-narrow--weight-semibold {\n font-weight: var(--base-text-weight-semibold);\n}\n\n.Text--weight-medium,\n.Text-narrow--weight-medium {\n font-weight: var(--base-text-weight-medium);\n}\n\n.Text--weight-normal,\n.Text-narrow--weight-normal {\n font-weight: var(--base-text-weight-normal);\n}\n\n.Text--weight-light,\n.Text-narrow--weight-light {\n font-weight: var(--base-text-weight-light);\n}\n\n.Text--weight-extralight,\n.Text-narrow--weight-extralight {\n font-weight: var(--base-text-weight-extralight);\n}\n\n@media screen and (min-width: 48rem) {\n .Text-regular--weight-heavy {\n font-weight: var(--base-text-weight-heavy);\n }\n\n .Text-regular--weight-extrabold {\n font-weight: var(--base-text-weight-extrabold);\n }\n\n .Text-regular--weight-bold {\n font-weight: var(--base-text-weight-bold);\n }\n\n .Text-regular--weight-semibold {\n font-weight: var(--base-text-weight-semibold);\n }\n\n .Text-regular--weight-medium {\n font-weight: var(--base-text-weight-medium);\n }\n\n .Text-regular--weight-normal {\n font-weight: var(--base-text-weight-normal);\n }\n\n .Text-regular--weight-light {\n font-weight: var(--base-text-weight-light);\n }\n\n .Text-regular--weight-extralight {\n font-weight: var(--base-text-weight-extralight);\n }\n}\n\n@media screen and (min-width: 80rem) {\n .Text-wide--weight-heavy {\n font-weight: var(--base-text-weight-heavy);\n }\n\n .Text-wide--weight-extrabold {\n font-weight: var(--base-text-weight-extrabold);\n }\n\n .Text-wide--weight-bold {\n font-weight: var(--base-text-weight-bold);\n }\n\n .Text-wide--weight-semibold {\n font-weight: var(--base-text-weight-semibold);\n }\n\n .Text-wide--weight-medium {\n font-weight: var(--base-text-weight-medium);\n }\n\n .Text-wide--weight-normal {\n font-weight: var(--base-text-weight-normal);\n }\n\n .Text-wide--weight-light {\n font-weight: var(--base-text-weight-light);\n }\n\n .Text-wide--weight-extralight {\n font-weight: var(--base-text-weight-extralight);\n }\n}\n\n.Text-align--start {\n text-align: start;\n}\n\n.Text-align--end {\n text-align: end;\n}\n\n.Text-align--center {\n text-align: center;\n}\n"],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { clsx as e } from "../node_modules/clsx/dist/clsx.js";
|
|
2
2
|
import { useCursorAnimation as t } from "../hooks/useCursorAnimation.js";
|
|
3
3
|
import { EyebrowText as n } from "../EyebrowText/EyebrowText.js";
|
|
4
|
-
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes-
|
|
4
|
+
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes-wctZLA5X.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/base-DKbXhPKv.css';/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
import r from "./TextCursorAnimation.module.js";
|
|
7
7
|
import { useRef as i } from "react";
|
|
@@ -8,6 +8,7 @@ export type ColorMode = `${ColorModesEnum}` | (string & {});
|
|
|
8
8
|
export type ResolvedColorMode = ColorModesEnum.LIGHT | ColorModesEnum.DARK;
|
|
9
9
|
export type ThemeContextProps = {
|
|
10
10
|
colorMode: ResolvedColorMode;
|
|
11
|
+
originalColorMode?: ColorMode;
|
|
11
12
|
availableColorModes: ColorModesEnum[];
|
|
12
13
|
};
|
|
13
14
|
export type ThemeProviderProps = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/ThemeProvider/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAmC,cAAc,EAAE,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAGhG,oBAAY,cAAc;IACxB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,MAAM,MAAM,SAAS,GAAG,GAAG,cAAc,EAAE,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAC3D,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,KAAK,GAAG,cAAc,CAAC,IAAI,CAAA;AAW1E,MAAM,MAAM,iBAAiB,GAAG;IAI9B,SAAS,EAAE,iBAAiB,CAAA;IAK5B,mBAAmB,EAAE,cAAc,EAAE,CAAA;CACtC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAA;AAGlC,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/ThemeProvider/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAmC,cAAc,EAAE,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAGhG,oBAAY,cAAc;IACxB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,MAAM,MAAM,SAAS,GAAG,GAAG,cAAc,EAAE,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAC3D,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,KAAK,GAAG,cAAc,CAAC,IAAI,CAAA;AAW1E,MAAM,MAAM,iBAAiB,GAAG;IAI9B,SAAS,EAAE,iBAAiB,CAAA;IAK5B,iBAAiB,CAAC,EAAE,SAAS,CAAA;IAK7B,mBAAmB,EAAE,cAAc,EAAE,CAAA;CACtC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAA;AAGlC,eAAO,MAAM,YAAY,kCAIvB,CAAA;AAEF;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAAC,SAAuB,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAC,EAAE,iBAAiB,CAAC,kBAAkB,CAAC,qBAyBhH"}
|
|
@@ -10,28 +10,30 @@ function o(e) {
|
|
|
10
10
|
}
|
|
11
11
|
var s = "light", c = t({
|
|
12
12
|
colorMode: s,
|
|
13
|
+
originalColorMode: s,
|
|
13
14
|
availableColorModes: Object.values(a)
|
|
14
15
|
});
|
|
15
16
|
function l({ colorMode: t = s, children: l, ...u }) {
|
|
16
|
-
let [
|
|
17
|
+
let [d, f] = r(s), p = t === "auto" ? d : o(t), m = n(() => Object.values(a), []);
|
|
17
18
|
return e(() => {
|
|
18
|
-
if (t
|
|
19
|
+
if (t !== "auto" || typeof window.matchMedia != "function") return;
|
|
20
|
+
let e = window.matchMedia("(prefers-color-scheme: dark)"), n = (e) => {
|
|
21
|
+
f(e.matches ? "dark" : "light");
|
|
22
|
+
};
|
|
23
|
+
return e.addEventListener("change", n), f(e.matches ? "dark" : "light"), () => e.removeEventListener("change", n);
|
|
19
24
|
}, [t]), /* @__PURE__ */ i(c.Provider, {
|
|
20
25
|
value: {
|
|
21
|
-
colorMode:
|
|
22
|
-
|
|
26
|
+
colorMode: p,
|
|
27
|
+
originalColorMode: t,
|
|
28
|
+
availableColorModes: m
|
|
23
29
|
},
|
|
24
30
|
children: /* @__PURE__ */ i("div", {
|
|
25
|
-
"data-color-mode":
|
|
31
|
+
"data-color-mode": t === "auto" ? "auto" : p,
|
|
26
32
|
...u,
|
|
27
33
|
children: l
|
|
28
34
|
})
|
|
29
35
|
});
|
|
30
36
|
}
|
|
31
|
-
var u = () => window.matchMedia("(prefers-color-scheme: dark)"), d = () => u().matches ? "dark" : "light", f = (e) => {
|
|
32
|
-
let t = u(), n = (t) => e(t.matches ? "dark" : "light");
|
|
33
|
-
return t.addEventListener("change", n), () => t.removeEventListener("change", n);
|
|
34
|
-
};
|
|
35
37
|
//#endregion
|
|
36
38
|
export { a as ColorModesEnum, c as ThemeContext, l as ThemeProvider };
|
|
37
39
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.js","names":[],"sources":["../../src/ThemeProvider/ThemeProvider.tsx"],"sourcesContent":["import React, {useState, useMemo, createContext, HTMLAttributes, PropsWithChildren} from 'react'\nimport useIsomorphicLayoutEffect from '../hooks/useIsomorphicLayoutEffect'\n\nexport enum ColorModesEnum {\n LIGHT = 'light',\n DARK = 'dark',\n AUTO = 'auto',\n}\n\nexport type ColorMode = `${ColorModesEnum}` | (string & {})\nexport type ResolvedColorMode = ColorModesEnum.LIGHT | ColorModesEnum.DARK\n\n/**\n * Resolves a color mode to the light or dark theme it should use.\n */\nfunction resolveColorMode(mode: string): ResolvedColorMode {\n return mode === ColorModesEnum.DARK || mode.startsWith(`${ColorModesEnum.DARK}_`)\n ? ColorModesEnum.DARK\n : ColorModesEnum.LIGHT\n}\n\nexport type ThemeContextProps = {\n /*\n * The active color mode of the parent ThemeProvider.\n */\n colorMode: ResolvedColorMode\n\n /*\n * List of available color modes.\n */\n availableColorModes: ColorModesEnum[]\n}\n\nexport type ThemeProviderProps = {\n colorMode?: ColorMode\n} & HTMLAttributes<HTMLDivElement>\n\nconst defaultMode = ColorModesEnum.LIGHT\nexport const ThemeContext = createContext<ThemeContextProps>({\n colorMode: defaultMode,\n availableColorModes: Object.values(ColorModesEnum),\n})\n\n/**\n * ThemeProvider is used to provide theme-related context to its child components.\n */\nexport function ThemeProvider({colorMode = defaultMode, children, ...rest}: PropsWithChildren<ThemeProviderProps>) {\n const [autoMode, setAutoMode] = useState<ResolvedColorMode>(defaultMode)\n const activeMode = colorMode === ColorModesEnum.AUTO ? autoMode : resolveColorMode(colorMode)\n const availableColorModes = useMemo(() => Object.values(ColorModesEnum), [])\n\n useIsomorphicLayoutEffect(() => {\n if (colorMode !== ColorModesEnum.AUTO
|
|
1
|
+
{"version":3,"file":"ThemeProvider.js","names":[],"sources":["../../src/ThemeProvider/ThemeProvider.tsx"],"sourcesContent":["import React, {useState, useMemo, createContext, HTMLAttributes, PropsWithChildren} from 'react'\nimport useIsomorphicLayoutEffect from '../hooks/useIsomorphicLayoutEffect'\n\nexport enum ColorModesEnum {\n LIGHT = 'light',\n DARK = 'dark',\n AUTO = 'auto',\n}\n\nexport type ColorMode = `${ColorModesEnum}` | (string & {})\nexport type ResolvedColorMode = ColorModesEnum.LIGHT | ColorModesEnum.DARK\n\n/**\n * Resolves a color mode to the light or dark theme it should use.\n */\nfunction resolveColorMode(mode: string): ResolvedColorMode {\n return mode === ColorModesEnum.DARK || mode.startsWith(`${ColorModesEnum.DARK}_`)\n ? ColorModesEnum.DARK\n : ColorModesEnum.LIGHT\n}\n\nexport type ThemeContextProps = {\n /*\n * The active color mode of the parent ThemeProvider.\n */\n colorMode: ResolvedColorMode\n\n /*\n * The colorMode prop before its resolved to a valid theme.\n */\n originalColorMode?: ColorMode\n\n /*\n * List of available color modes.\n */\n availableColorModes: ColorModesEnum[]\n}\n\nexport type ThemeProviderProps = {\n colorMode?: ColorMode\n} & HTMLAttributes<HTMLDivElement>\n\nconst defaultMode = ColorModesEnum.LIGHT\nexport const ThemeContext = createContext<ThemeContextProps>({\n colorMode: defaultMode,\n originalColorMode: defaultMode,\n availableColorModes: Object.values(ColorModesEnum),\n})\n\n/**\n * ThemeProvider is used to provide theme-related context to its child components.\n */\nexport function ThemeProvider({colorMode = defaultMode, children, ...rest}: PropsWithChildren<ThemeProviderProps>) {\n const [autoMode, setAutoMode] = useState<ResolvedColorMode>(defaultMode)\n const activeMode = colorMode === ColorModesEnum.AUTO ? autoMode : resolveColorMode(colorMode)\n const availableColorModes = useMemo(() => Object.values(ColorModesEnum), [])\n\n useIsomorphicLayoutEffect(() => {\n if (colorMode !== ColorModesEnum.AUTO || typeof window.matchMedia !== 'function') return\n\n const preference = window.matchMedia(`(prefers-color-scheme: ${ColorModesEnum.DARK})`)\n const handlePreferenceChange = (event: MediaQueryListEvent) => {\n setAutoMode(event.matches ? ColorModesEnum.DARK : ColorModesEnum.LIGHT)\n }\n\n preference.addEventListener('change', handlePreferenceChange)\n setAutoMode(preference.matches ? ColorModesEnum.DARK : ColorModesEnum.LIGHT)\n return () => preference.removeEventListener('change', handlePreferenceChange)\n }, [colorMode])\n\n return (\n <ThemeContext.Provider value={{colorMode: activeMode, originalColorMode: colorMode, availableColorModes}}>\n <div data-color-mode={colorMode === ColorModesEnum.AUTO ? ColorModesEnum.AUTO : activeMode} {...rest}>\n {children}\n </div>\n </ThemeContext.Provider>\n )\n}\n"],"mappings":";;;;AAGA,IAAY,IAAL,yBAAA,GAAA;QACL,EAAA,QAAA,SACA,EAAA,OAAA,QACA,EAAA,OAAA;AACF,EAAA,CAAA,CAAA;AAQA,SAAS,EAAiB,GAAiC;CACzD,OAAO,MAAA,UAAgC,EAAK,WAAW,OAAyB,IAAA,SAAA;AAGlF;AAuBA,IAAM,IAAA,SACO,IAAe,EAAiC;CAC3D,WAAW;CACX,mBAAmB;CACnB,qBAAqB,OAAO,OAAO,CAAc;AACnD,CAAC;AAKD,SAAgB,EAAc,EAAC,eAAY,GAAa,aAAU,GAAG,KAA8C;CACjH,IAAM,CAAC,GAAU,KAAe,EAA4B,CAAW,GACjE,IAAa,MAAA,SAAoC,IAAW,EAAiB,CAAS,GACtF,IAAsB,QAAc,OAAO,OAAO,CAAc,GAAG,CAAC,CAAC;CAe3E,OAbA,QAAgC;EAC9B,IAAI,MAAA,UAAqC,OAAO,OAAO,cAAe,YAAY;EAElF,IAAM,IAAa,OAAO,WAAW,8BAAgD,GAC/E,KAA0B,MAA+B;GAC7D,EAAY,EAAM,UAAA,SAAA,OAAoD;EACxE;EAIA,OAFA,EAAW,iBAAiB,UAAU,CAAsB,GAC5D,EAAY,EAAW,UAAA,SAAA,OAAoD,SAC9D,EAAW,oBAAoB,UAAU,CAAsB;CAC9E,GAAG,CAAC,CAAS,CAAC,GAGZ,kBAAC,EAAa,UAAd;EAAuB,OAAO;GAAC,WAAW;GAAY,mBAAmB;GAAW;EAAmB;YACrG,kBAAC,OAAD;GAAK,mBAAiB,MAAA,SAAA,SAA0D;GAAY,GAAI;GAC7F;EACE,CAAA;CACgB,CAAA;AAE3B"}
|
package/esm/Tiles/Tiles.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Text as t } from "../Text/Text.js";
|
|
|
3
3
|
import { ArrowUpRightIcon as n } from "../node_modules/@primer/octicons-react/dist/icons/ArrowUpRightIcon.js";
|
|
4
4
|
import r from "../component-helpers/shared.module.js";
|
|
5
5
|
import { isFragmentElement as i } from "../utils/isFragmentElement.js";
|
|
6
|
-
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes-
|
|
6
|
+
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes-BLWCqYua.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tiles/base-CX1T1tsR.css';/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import a from "./Tiles.module.js";
|
|
9
9
|
import o, { createContext as s, forwardRef as c, useContext as l } from "react";
|
package/esm/Timeline/Timeline.js
CHANGED
|
@@ -2,7 +2,7 @@ import { clsx as e } from "../node_modules/clsx/dist/clsx.js";
|
|
|
2
2
|
import { useAnimation as t } from "../animation/useAnimation.js";
|
|
3
3
|
import { Text as n } from "../Text/Text.js";
|
|
4
4
|
import r from "./Timeline.module.js";
|
|
5
|
-
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/timeline/base-CXOJfjx4.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes-
|
|
5
|
+
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/timeline/base-CXOJfjx4.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes-DNNJvx8C.css';/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
import i, { useCallback as a, useMemo as o } from "react";
|
|
8
8
|
import { jsx as s } from "react/jsx-runtime";
|
package/esm/Token/Token.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { clsx as e } from "../node_modules/clsx/dist/clsx.js";
|
|
2
2
|
import { useAnimation as t } from "../animation/useAnimation.js";
|
|
3
3
|
import { Text as n } from "../Text/Text.js";
|
|
4
|
-
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes-
|
|
4
|
+
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes-CzvPUrZu.css';/* empty css */
|
|
5
5
|
import r from "./Token.module.js";
|
|
6
6
|
import i, { forwardRef as a } from "react";
|
|
7
7
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.Primer_Brand__Token-module__Token___nJxhW{border:var(--brand-borderWidth-thin) solid transparent;border-radius:var(--brand-borderRadius-small);align-items:center;gap:var(--base-size-8);min-width:0;max-width:100%;padding-inline:var(--base-size-8);padding-block:var(--base-size-6);vertical-align:middle;padding-block-end:var(--base-size-6);display:inline-flex}.Primer_Brand__Token-module__Token--hasLeadingVisual___Erv8L{padding-inline:calc((var(--base-size-4) + var(--base-size-8)) / 2);padding-block:calc((var(--base-size-4) + var(--base-size-8)) / 2)}.Primer_Brand__Token-module__Token--interactive___ZpgTX{cursor:pointer;-webkit-text-decoration:none;text-decoration:none}.Primer_Brand__Token-module__Token--interactive___ZpgTX:focus-visible{outline:var(--base-size-4) solid var(--brand-color-focus);outline-offset:var(--base-size-2)}[data-color-mode=dark] .Primer_Brand__Token-module__Token___nJxhW{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:auto}@media (prefers-color-scheme:dark){[data-color-mode=auto] .Primer_Brand__Token-module__Token___nJxhW{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:auto}}.Primer_Brand__Token-module__Token--variant-default___eMkcM{background-color:var(--brand-Token-bgColor-default);color:var(--brand-Token-fgColor-default)}.Primer_Brand__Token-module__Token--interactive___ZpgTX.Primer_Brand__Token-module__Token--variant-default___eMkcM:hover{background-color:var(--brand-Token-bgColor-hover-default)}.Primer_Brand__Token-module__Token--variant-accent___fSxf7{background-color:var(--brand-Token-bgColor-accent);color:var(--brand-Token-fgColor-accent)}.Primer_Brand__Token-module__Token--interactive___ZpgTX.Primer_Brand__Token-module__Token--variant-accent___fSxf7:hover{background-color:var(--brand-Token-bgColor-hover-accent)}.Primer_Brand__Token-module__Token--variant-outline___GTmIy{background-color:var(--brand-Token-bgColor-outline);border-color:var(--brand-Token-border-outline);color:var(--brand-Token-fgColor-outline)}.Primer_Brand__Token-module__Token--interactive___ZpgTX.Primer_Brand__Token-module__Token--variant-outline___GTmIy:hover{background-color:var(--brand-Token-bgColor-hover-outline)}.Primer_Brand__Token-module__Token--variant-invisible___IR7Ki{color:var(--brand-Token-fgColor-invisible);background-color:#0000}.Primer_Brand__Token-module__Token--interactive___ZpgTX.Primer_Brand__Token-module__Token--variant-invisible___IR7Ki:hover{background-color:var(--brand-Token-bgColor-hover-invisible)}.Primer_Brand__Token-module__Token__label___e3Cx3{text-overflow:ellipsis;min-width:0;font-weight:var(--base-text-weight-normal);line-height:var(--brand-text-lineHeight-100);white-space:nowrap;letter-spacing:var(--brand-text-letterSpacing-100);flex:auto;display:block;overflow:hidden}.Primer_Brand__Token-module__Token___nJxhW>.Primer_Brand__Token-module__Token__label___e3Cx3{color:inherit}.Primer_Brand__Token-module__Token__leading-visual____uvYs{width:calc((var(--base-size-16) + var(--base-size-20)) / 2);height:calc((var(--base-size-16) + var(--base-size-20)) / 2);flex-shrink:0;justify-content:center;align-items:center;display:flex}.Primer_Brand__Token-module__Token__visual___Nlxfv{display:block}.Primer_Brand__Token-module__Token__leading-visual____uvYs>.Primer_Brand__Token-module__Token__visual___Nlxfv{width:calc((var(--base-size-16) + var(--base-size-20)) / 2);height:calc((var(--base-size-16) + var(--base-size-20)) / 2);max-width:calc((var(--base-size-16) + var(--base-size-20)) / 2);max-height:calc((var(--base-size-16) + var(--base-size-20)) / 2);border-radius:2px}.Primer_Brand__Token-module__Token__leading-visual____uvYs>.Primer_Brand__Token-module__Token__visual___Nlxfv svg,.Primer_Brand__Token-module__Token__leading-visual____uvYs>.Primer_Brand__Token-module__Token__visual___Nlxfv img{width:100%;height:100%}@media (forced-colors:active){.Primer_Brand__Token-module__Token___nJxhW{outline:var(--brand-borderWidth-thin) solid transparent}.Primer_Brand__Token-module__Token--interactive___ZpgTX:focus-visible{outline-color:highlight}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './Token.module-
|
|
1
|
+
import './Token.module-Di856FbT.css';//#region src/Token/Token.module.css
|
|
2
2
|
var e = "Primer_Brand__Token-module__Token___nJxhW", t = "Primer_Brand__Token-module__Token__label___e3Cx3", n = "Primer_Brand__Token-module__Token__visual___Nlxfv", r = {
|
|
3
3
|
Token: e,
|
|
4
4
|
"Token--hasLeadingVisual": "Primer_Brand__Token-module__Token--hasLeadingVisual___Erv8L",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Token.module.js","names":[],"sources":["../../src/Token/Token.module.css"],"sourcesContent":[".Token {\n align-items: center;\n border: var(--brand-borderWidth-thin) solid transparent;\n border-radius: var(--brand-borderRadius-small);\n display: inline-flex;\n gap: var(--base-size-8);\n min-width: 0;\n max-width: 100%;\n padding-inline: var(--base-size-8);\n padding-block: var(--base-size-6);\n padding-block-end: var(--base-size-6);\n vertical-align: middle;\n}\n\n.Token--hasLeadingVisual {\n padding-inline: calc((var(--base-size-4) + var(--base-size-8)) / 2);\n padding-block: calc((var(--base-size-4) + var(--base-size-8)) / 2);\n}\n\n.Token--interactive {\n cursor: pointer;\n text-decoration: none;\n}\n\n.Token--interactive:focus-visible {\n outline: var(--base-size-4) solid var(--brand-color-focus);\n outline-offset: var(--base-size-2);\n}\n\n[data-color-mode='dark'] .Token {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: auto;\n}\n\n.Token--variant-default {\n background-color: var(--brand-Token-bgColor-default);\n color: var(--brand-Token-fgColor-default);\n}\n\n.Token--interactive.Token--variant-default:hover {\n background-color: var(--brand-Token-bgColor-hover-default);\n}\n\n.Token--variant-accent {\n background-color: var(--brand-Token-bgColor-accent);\n color: var(--brand-Token-fgColor-accent);\n}\n\n.Token--interactive.Token--variant-accent:hover {\n background-color: var(--brand-Token-bgColor-hover-accent);\n}\n\n.Token--variant-outline {\n background-color: var(--brand-Token-bgColor-outline);\n border-color: var(--brand-Token-border-outline);\n color: var(--brand-Token-fgColor-outline);\n}\n\n.Token--interactive.Token--variant-outline:hover {\n background-color: var(--brand-Token-bgColor-hover-outline);\n}\n\n.Token--variant-invisible {\n background-color: transparent;\n color: var(--brand-Token-fgColor-invisible);\n}\n\n.Token--interactive.Token--variant-invisible:hover {\n background-color: var(--brand-Token-bgColor-hover-invisible);\n}\n\n.Token__label {\n display: block;\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n font-weight: var(--base-text-weight-normal);\n line-height: var(--brand-text-lineHeight-100);\n white-space: nowrap;\n letter-spacing: var(--brand-text-letterSpacing-100);\n}\n\n.Token > .Token__label {\n color: inherit;\n}\n\n.Token__leading-visual {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n width: calc((var(--base-size-16) + var(--base-size-20)) / 2);\n height: calc((var(--base-size-16) + var(--base-size-20)) / 2);\n}\n\n.Token__visual {\n display: block;\n}\n\n/* Keep leading visuals inside a fixed 18x18 slot so larger children like Avatar dont increase Token height. */\n.Token__leading-visual > .Token__visual {\n width: calc((var(--base-size-16) + var(--base-size-20)) / 2);\n height: calc((var(--base-size-16) + var(--base-size-20)) / 2);\n max-width: calc((var(--base-size-16) + var(--base-size-20)) / 2);\n max-height: calc((var(--base-size-16) + var(--base-size-20)) / 2);\n border-radius: 2px;\n}\n\n.Token__leading-visual > .Token__visual svg,\n.Token__leading-visual > .Token__visual img {\n width: 100%;\n height: 100%;\n}\n\n@media (forced-colors: active) {\n .Token {\n outline: var(--brand-borderWidth-thin) solid transparent;\n }\n\n .Token--interactive:focus-visible {\n outline-color: Highlight;\n }\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Token.module.js","names":[],"sources":["../../src/Token/Token.module.css"],"sourcesContent":[".Token {\n align-items: center;\n border: var(--brand-borderWidth-thin) solid transparent;\n border-radius: var(--brand-borderRadius-small);\n display: inline-flex;\n gap: var(--base-size-8);\n min-width: 0;\n max-width: 100%;\n padding-inline: var(--base-size-8);\n padding-block: var(--base-size-6);\n padding-block-end: var(--base-size-6);\n vertical-align: middle;\n}\n\n.Token--hasLeadingVisual {\n padding-inline: calc((var(--base-size-4) + var(--base-size-8)) / 2);\n padding-block: calc((var(--base-size-4) + var(--base-size-8)) / 2);\n}\n\n.Token--interactive {\n cursor: pointer;\n text-decoration: none;\n}\n\n.Token--interactive:focus-visible {\n outline: var(--base-size-4) solid var(--brand-color-focus);\n outline-offset: var(--base-size-2);\n}\n\n[data-color-mode='dark'] .Token {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: auto;\n}\n\n@media (prefers-color-scheme: dark) {\n [data-color-mode='auto'] .Token {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: auto;\n }\n}\n\n.Token--variant-default {\n background-color: var(--brand-Token-bgColor-default);\n color: var(--brand-Token-fgColor-default);\n}\n\n.Token--interactive.Token--variant-default:hover {\n background-color: var(--brand-Token-bgColor-hover-default);\n}\n\n.Token--variant-accent {\n background-color: var(--brand-Token-bgColor-accent);\n color: var(--brand-Token-fgColor-accent);\n}\n\n.Token--interactive.Token--variant-accent:hover {\n background-color: var(--brand-Token-bgColor-hover-accent);\n}\n\n.Token--variant-outline {\n background-color: var(--brand-Token-bgColor-outline);\n border-color: var(--brand-Token-border-outline);\n color: var(--brand-Token-fgColor-outline);\n}\n\n.Token--interactive.Token--variant-outline:hover {\n background-color: var(--brand-Token-bgColor-hover-outline);\n}\n\n.Token--variant-invisible {\n background-color: transparent;\n color: var(--brand-Token-fgColor-invisible);\n}\n\n.Token--interactive.Token--variant-invisible:hover {\n background-color: var(--brand-Token-bgColor-hover-invisible);\n}\n\n.Token__label {\n display: block;\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n font-weight: var(--base-text-weight-normal);\n line-height: var(--brand-text-lineHeight-100);\n white-space: nowrap;\n letter-spacing: var(--brand-text-letterSpacing-100);\n}\n\n.Token > .Token__label {\n color: inherit;\n}\n\n.Token__leading-visual {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n width: calc((var(--base-size-16) + var(--base-size-20)) / 2);\n height: calc((var(--base-size-16) + var(--base-size-20)) / 2);\n}\n\n.Token__visual {\n display: block;\n}\n\n/* Keep leading visuals inside a fixed 18x18 slot so larger children like Avatar dont increase Token height. */\n.Token__leading-visual > .Token__visual {\n width: calc((var(--base-size-16) + var(--base-size-20)) / 2);\n height: calc((var(--base-size-16) + var(--base-size-20)) / 2);\n max-width: calc((var(--base-size-16) + var(--base-size-20)) / 2);\n max-height: calc((var(--base-size-16) + var(--base-size-20)) / 2);\n border-radius: 2px;\n}\n\n.Token__leading-visual > .Token__visual svg,\n.Token__leading-visual > .Token__visual img {\n width: 100%;\n height: 100%;\n}\n\n@media (forced-colors: active) {\n .Token {\n outline: var(--brand-borderWidth-thin) solid transparent;\n }\n\n .Token--interactive:focus-visible {\n outline-color: Highlight;\n }\n}\n"],"mappings":""}
|
package/esm/Tooltip/Tooltip.js
CHANGED
|
@@ -2,7 +2,7 @@ import { clsx as e } from "../node_modules/clsx/dist/clsx.js";
|
|
|
2
2
|
import { useId as t } from "../hooks/useId.js";
|
|
3
3
|
import { useProvidedRefOrCreate as n } from "../hooks/useRef.js";
|
|
4
4
|
import r from "./Tooltip.module.js";
|
|
5
|
-
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes-
|
|
5
|
+
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes-CjEAA-Ic.css';/* empty css */
|
|
6
6
|
import i, { Children as a, useEffect as o, useRef as s, useState as c } from "react";
|
|
7
7
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
8
|
import { getAnchoredPosition as d } from "@primer/behaviors";
|
|
@@ -14,7 +14,7 @@ import { MuteButton as m } from "./components/MuteButton/MuteButton.js";
|
|
|
14
14
|
import { PlayPauseButton as h } from "./components/PlayPauseButton/PlayPauseButton.js";
|
|
15
15
|
import { SeekControl as g } from "./components/SeekControl/SeekControl.js";
|
|
16
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-
|
|
17
|
+
import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes-M9ib_BKQ.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/video-player/base-Bs0Tq22P.css';/* empty css */
|
|
18
18
|
/* empty css */
|
|
19
19
|
import { forwardRef as v, useCallback as y, useContext as b } from "react";
|
|
20
20
|
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
package/esm/css/stylesheets.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './utilities-BivJncWo.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/colors/global-with-modes-
|
|
1
|
+
import './utilities-BivJncWo.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/colors/global-with-modes-CjksF091.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/size/border-B0NqqX5b.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/size/breakpoints-DV9ZFHGu.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/typography/typography-responsive-D6GwCHec.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/size/size-SXubYfUg.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/animation/base-BIr7u5g8.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/base/typography/typography-CAC6sGQ3.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/base/size/size-6EfgMG7y.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes-CBE7L2wV.css';import './reset-CbGp2YkS.css';/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
@@ -2,7 +2,7 @@ import { clsx as e } from "../../node_modules/clsx/dist/clsx.js";
|
|
|
2
2
|
import { useId as t } from "../../hooks/useId.js";
|
|
3
3
|
import { useProvidedRefOrCreate as n } from "../../hooks/useRef.js";
|
|
4
4
|
import r from "../../hooks/useIsomorphicLayoutEffect.js";
|
|
5
|
-
import '../../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes-
|
|
5
|
+
import '../../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes-DKA7xAYz.css';/* empty css */
|
|
6
6
|
import i from "./Checkbox.module.js";
|
|
7
7
|
import { forwardRef as a, useCallback as o } from "react";
|
|
8
8
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../../src/forms/FormControl/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAK9C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAA;AACtD,OAAO,KAAK,EAAC,oBAAoB,EAAE,cAAc,EAAC,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../../src/forms/FormControl/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAK9C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAA;AACtD,OAAO,KAAK,EAAC,oBAAoB,EAAE,cAAc,EAAC,MAAM,KAAK,CAAA;AAY7D,OAAO,2GAA2G,CAAA;AAIlH,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,WAAW,CAAC,GAAG;IACtD;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;CACxC,CAAA;AAmMD,KAAK,qBAAqB,GAAG;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;IACvC,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAAA;AA4C/B,KAAK,0BAA0B,GAAG;IAChC,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;CACxC,GAAG,SAAS,CAAC,eAAe,CAAC,CAAA;AA8B9B,KAAK,oBAAoB,GAAG,iBAAiB,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAAA;AAMzE;;;GAGG;AACH,eAAO,MAAM,WAAW,kGA3QrB,iBAAiB,CAAC,gBAAgB,CAAC;gIAgMnC,iBAAiB,CAAC,qBAAqB,CAAC;sEAqCuC,0BAA0B;mCA8B7D,oBAAoB;CAYjE,CAAA"}
|
|
@@ -1,151 +1,171 @@
|
|
|
1
1
|
import { clsx as e } from "../../node_modules/clsx/dist/clsx.js";
|
|
2
2
|
import { useId as t } from "../../hooks/useId.js";
|
|
3
3
|
import { Text as n } from "../../Text/Text.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import u from "
|
|
13
|
-
import d from "
|
|
14
|
-
import {
|
|
4
|
+
import { Spinner as r } from "../../Spinner/Spinner.js";
|
|
5
|
+
import { AlertFillIcon as i } from "../../node_modules/@primer/octicons-react/dist/icons/AlertFillIcon.js";
|
|
6
|
+
import { CheckCircleFillIcon as a } from "../../node_modules/@primer/octicons-react/dist/icons/CheckCircleFillIcon.js";
|
|
7
|
+
import '../../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes-DKA7xAYz.css';/* empty css */
|
|
8
|
+
import { Checkbox as o } from "../Checkbox/Checkbox.js";
|
|
9
|
+
import { Textarea as s } from "../Textarea/Textarea.js";
|
|
10
|
+
import { TextInput as c } from "../TextInput/TextInput.js";
|
|
11
|
+
import { Select as l } from "../Select/Select.js";
|
|
12
|
+
import { Radio as u } from "../Radio/Radio.js";
|
|
13
|
+
import d from "../ToggleSwitch/ToggleSwitch.module.js";
|
|
14
|
+
import { ToggleSwitch as f } from "../ToggleSwitch/ToggleSwitch.js";
|
|
15
|
+
import p from "./FormControl.module.js";
|
|
16
|
+
import m from "react";
|
|
17
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
15
18
|
//#region src/forms/FormControl/FormControl.tsx
|
|
16
|
-
var
|
|
17
|
-
let
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
id: `FormControl--${
|
|
20
|
-
className: e(
|
|
21
|
-
...
|
|
22
|
-
children:
|
|
23
|
-
if (!
|
|
24
|
-
|
|
19
|
+
var _ = ({ children: n, className: i, hasBorder: a, fullWidth: g, id: _, required: x, size: S = "medium", validationStatus: C, ...w }) => {
|
|
20
|
+
let T = t(_), E = m.Children.toArray(n), D = E.some((e) => m.isValidElement(e) && (e.type === o || e.type === u)), O = E.find((e) => m.isValidElement(e) && e.type === f), k = !!O, A = [E.some((e) => m.isValidElement(e) && e.type === b) && `${T}-hint`, E.some((e) => m.isValidElement(e) && e.type === y) && `${T}-validation`].filter(Boolean).join(" ") || void 0;
|
|
21
|
+
return /* @__PURE__ */ h("section", {
|
|
22
|
+
id: `FormControl--${T}`,
|
|
23
|
+
className: e(p.FormControl, g && p["FormControl--fullWidth"], D && p["FormControl--checkbox"], k && p["FormControl--toggle-switch"], a && p["FormControl--border"], i),
|
|
24
|
+
...w,
|
|
25
|
+
children: m.Children.map(n, (t) => {
|
|
26
|
+
if (!m.isValidElement(t)) return t;
|
|
27
|
+
if (t.type === c) {
|
|
28
|
+
let n = t;
|
|
29
|
+
return m.cloneElement(n, {
|
|
30
|
+
className: e(n.props.className),
|
|
31
|
+
id: T,
|
|
32
|
+
name: n.props.name || T,
|
|
33
|
+
required: n.props.required || x,
|
|
34
|
+
validationStatus: n.props.validationStatus || C,
|
|
35
|
+
fullWidth: g,
|
|
36
|
+
size: S,
|
|
37
|
+
"aria-describedby": A
|
|
38
|
+
});
|
|
39
|
+
}
|
|
25
40
|
if (t.type === s) {
|
|
26
|
-
let
|
|
27
|
-
return
|
|
28
|
-
className: e(
|
|
29
|
-
id:
|
|
30
|
-
name:
|
|
31
|
-
required:
|
|
32
|
-
validationStatus:
|
|
33
|
-
fullWidth:
|
|
34
|
-
size:
|
|
35
|
-
"aria-describedby":
|
|
41
|
+
let n = t;
|
|
42
|
+
return m.cloneElement(n, {
|
|
43
|
+
className: e(n.props.className),
|
|
44
|
+
id: T,
|
|
45
|
+
name: n.props.name || T,
|
|
46
|
+
required: n.props.required || x,
|
|
47
|
+
validationStatus: n.props.validationStatus || C,
|
|
48
|
+
fullWidth: g,
|
|
49
|
+
size: S,
|
|
50
|
+
"aria-describedby": A
|
|
36
51
|
});
|
|
37
52
|
}
|
|
38
|
-
if (t.type ===
|
|
39
|
-
let
|
|
40
|
-
return
|
|
41
|
-
className: e(
|
|
42
|
-
id:
|
|
43
|
-
name:
|
|
44
|
-
required:
|
|
45
|
-
validationStatus:
|
|
46
|
-
fullWidth:
|
|
47
|
-
size:
|
|
48
|
-
"aria-describedby":
|
|
53
|
+
if (t.type === l) {
|
|
54
|
+
let n = t;
|
|
55
|
+
return m.cloneElement(n, {
|
|
56
|
+
className: e(n.props.className),
|
|
57
|
+
id: T,
|
|
58
|
+
name: n.props.name || T,
|
|
59
|
+
required: n.props.required || x,
|
|
60
|
+
validationStatus: n.props.validationStatus || C,
|
|
61
|
+
fullWidth: g,
|
|
62
|
+
size: S,
|
|
63
|
+
"aria-describedby": A
|
|
49
64
|
});
|
|
50
65
|
}
|
|
51
|
-
if (t.type ===
|
|
52
|
-
let
|
|
53
|
-
return
|
|
54
|
-
className: e(
|
|
55
|
-
id:
|
|
56
|
-
name:
|
|
57
|
-
required:
|
|
58
|
-
validationStatus:
|
|
59
|
-
|
|
60
|
-
size: y,
|
|
61
|
-
"aria-describedby": n
|
|
66
|
+
if (t.type === o) {
|
|
67
|
+
let n = t;
|
|
68
|
+
return m.cloneElement(n, {
|
|
69
|
+
className: e(n.props.className, p["FormControl-control--checkbox"]),
|
|
70
|
+
id: T,
|
|
71
|
+
name: n.props.name || T,
|
|
72
|
+
required: n.props.required || x,
|
|
73
|
+
validationStatus: n.props.validationStatus || C,
|
|
74
|
+
"aria-describedby": A
|
|
62
75
|
});
|
|
63
76
|
}
|
|
64
|
-
if (t.type ===
|
|
65
|
-
let
|
|
66
|
-
return
|
|
67
|
-
className: e(
|
|
68
|
-
id:
|
|
69
|
-
name:
|
|
70
|
-
required:
|
|
71
|
-
|
|
72
|
-
"aria-describedby": n
|
|
77
|
+
if (t.type === u) {
|
|
78
|
+
let n = t;
|
|
79
|
+
return m.cloneElement(n, {
|
|
80
|
+
className: e(D && p["FormControl-control--radio"], n.props.className),
|
|
81
|
+
id: T,
|
|
82
|
+
name: n.props.name,
|
|
83
|
+
required: n.props.required || x,
|
|
84
|
+
"aria-describedby": A
|
|
73
85
|
});
|
|
74
86
|
}
|
|
75
|
-
if (t.type ===
|
|
76
|
-
let r =
|
|
77
|
-
return
|
|
78
|
-
className: e(
|
|
79
|
-
id:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"aria-
|
|
87
|
+
if (t.type === f) {
|
|
88
|
+
let n = t, r = [n.props["aria-describedby"], A].filter(Boolean).join(" ");
|
|
89
|
+
return m.cloneElement(n, {
|
|
90
|
+
className: e(p["FormControl-control--toggle-switch"], n.props.className),
|
|
91
|
+
id: T,
|
|
92
|
+
toggleSwitchSpinnerInLabel: E.some((e) => m.isValidElement(e) && e.type === v && !e.props.visuallyHidden),
|
|
93
|
+
"aria-describedby": r ? [...new Set(r.split(/\s+/))].join(" ") : void 0,
|
|
94
|
+
"aria-invalid": n.props["aria-invalid"] ?? (C === "error" || void 0)
|
|
83
95
|
});
|
|
84
96
|
}
|
|
85
|
-
if (t.type ===
|
|
97
|
+
if (t.type === v) {
|
|
86
98
|
let n = t;
|
|
87
|
-
return
|
|
88
|
-
className: e(
|
|
89
|
-
htmlFor:
|
|
90
|
-
children: n.props.children,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
99
|
+
return m.cloneElement(n, {
|
|
100
|
+
className: e(D && p["FormControl-label--checkbox"], k && p["FormControl-label--toggle-switch"], n.props.className),
|
|
101
|
+
htmlFor: T,
|
|
102
|
+
children: O?.props.loading && !n.props.visuallyHidden ? [...m.Children.toArray(n.props.children), /* @__PURE__ */ h("span", {
|
|
103
|
+
"aria-hidden": "true",
|
|
104
|
+
className: p["FormControl-toggleSwitch-spinnerSlot"],
|
|
105
|
+
children: /* @__PURE__ */ h(r, {
|
|
106
|
+
size: "small",
|
|
107
|
+
accessibleLabel: null,
|
|
108
|
+
className: d["ToggleSwitch-spinner"],
|
|
109
|
+
"data-testid": f.testIds.spinner
|
|
110
|
+
})
|
|
111
|
+
}, "toggleSwitch-spinner")] : n.props.children,
|
|
112
|
+
required: !k && x,
|
|
113
|
+
validationStatus: C,
|
|
114
|
+
size: S,
|
|
115
|
+
showRequiredIndicator: !D && n.props.showRequiredIndicator
|
|
95
116
|
});
|
|
96
117
|
}
|
|
97
|
-
if (t.type ===
|
|
98
|
-
let
|
|
99
|
-
return
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
id: `${S}-validation`
|
|
118
|
+
if (t.type === y) {
|
|
119
|
+
let e = t;
|
|
120
|
+
return m.cloneElement(e, {
|
|
121
|
+
validationStatus: C,
|
|
122
|
+
id: `${T}-validation`
|
|
103
123
|
});
|
|
104
124
|
}
|
|
105
|
-
if (t.type ===
|
|
125
|
+
if (t.type === b) {
|
|
106
126
|
let e = t;
|
|
107
|
-
return
|
|
127
|
+
return m.cloneElement(e, { id: `${T}-hint` });
|
|
108
128
|
}
|
|
109
129
|
return t;
|
|
110
130
|
})
|
|
111
131
|
});
|
|
112
|
-
},
|
|
132
|
+
}, v = ({ children: t, className: n, htmlFor: r, required: i, showRequiredIndicator: a = !0, size: o = "medium", validationStatus: s, visuallyHidden: c, ...l }) => /* @__PURE__ */ g("label", {
|
|
113
133
|
htmlFor: r,
|
|
114
|
-
className: e(
|
|
134
|
+
className: e(p["FormControl-label"], s && p[`FormControl-label--${s}`], p[`FormControl-label--${o}`], c && p["FormControl-label--visually-hidden"], n),
|
|
115
135
|
...l,
|
|
116
|
-
children: [
|
|
117
|
-
className:
|
|
136
|
+
children: [m.Children.map(t, (t) => m.isValidElement(t) && t.type === b ? m.cloneElement(t, { className: e(p["FormControl--visible"], t.props.className) }) : t), i && a && /* @__PURE__ */ g("span", {
|
|
137
|
+
className: p["FormControl-label-required"],
|
|
118
138
|
"aria-hidden": !0,
|
|
119
139
|
children: [" ", "*"]
|
|
120
140
|
})]
|
|
121
|
-
}),
|
|
141
|
+
}), y = ({ children: t, validationStatus: r, className: o, ...s }) => /* @__PURE__ */ g(n, {
|
|
122
142
|
as: "span",
|
|
123
143
|
size: "100",
|
|
124
|
-
className: e(
|
|
144
|
+
className: e(p["FormControl-validation"], r && p["FormControl-validation--animate-in"], r && p[`FormControl-validation--${r}`], o),
|
|
125
145
|
...s,
|
|
126
146
|
children: [
|
|
127
|
-
|
|
128
|
-
className:
|
|
129
|
-
children: /* @__PURE__ */
|
|
147
|
+
r === "error" && /* @__PURE__ */ h("span", {
|
|
148
|
+
className: p["FormControl-validation-error-icon"],
|
|
149
|
+
children: /* @__PURE__ */ h(i, {})
|
|
130
150
|
}),
|
|
131
|
-
|
|
132
|
-
className:
|
|
133
|
-
children: /* @__PURE__ */
|
|
151
|
+
r === "success" && /* @__PURE__ */ h("span", {
|
|
152
|
+
className: p["FormControl-validation-success-icon"],
|
|
153
|
+
children: /* @__PURE__ */ h(a, {})
|
|
134
154
|
}),
|
|
135
155
|
t
|
|
136
156
|
]
|
|
137
|
-
}),
|
|
157
|
+
}), b = ({ className: t, ...r }) => /* @__PURE__ */ h(n, {
|
|
138
158
|
as: "span",
|
|
139
159
|
size: "100",
|
|
140
160
|
variant: "muted",
|
|
141
|
-
className: e(
|
|
161
|
+
className: e(p["FormControl-hint"], t),
|
|
142
162
|
...r
|
|
143
|
-
}),
|
|
144
|
-
Label:
|
|
145
|
-
Validation:
|
|
146
|
-
Hint:
|
|
163
|
+
}), x = Object.assign(_, {
|
|
164
|
+
Label: v,
|
|
165
|
+
Validation: y,
|
|
166
|
+
Hint: b
|
|
147
167
|
});
|
|
148
168
|
//#endregion
|
|
149
|
-
export {
|
|
169
|
+
export { x as FormControl };
|
|
150
170
|
|
|
151
171
|
//# sourceMappingURL=FormControl.js.map
|