@sovereignsquad/gds-core 6.11.0 → 6.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AISearchCard.js +97 -0
- package/dist/AISearchCard.mjs +73 -0
- package/dist/AccentPanel.js +94 -0
- package/dist/AccentPanel.mjs +69 -0
- package/dist/AccessRecoveryPanel.js +164 -0
- package/dist/AccessRecoveryPanel.mjs +140 -0
- package/dist/AccessSummary.js +57 -0
- package/dist/AccessSummary.mjs +33 -0
- package/dist/AccessibilityEvidence.js +131 -0
- package/dist/AccessibilityEvidence.mjs +104 -0
- package/dist/ActionBar.js +84 -0
- package/dist/ActionBar.mjs +60 -0
- package/dist/AdvancedDataTable.client.js +204 -0
- package/dist/AdvancedDataTable.client.mjs +180 -0
- package/dist/ArticleShell.js +43 -0
- package/dist/ArticleShell.mjs +19 -0
- package/dist/AsyncSurface.js +156 -0
- package/dist/AsyncSurface.mjs +132 -0
- package/dist/AuthShell.js +72 -0
- package/dist/AuthShell.mjs +48 -0
- package/dist/BottomTabBar.js +152 -0
- package/dist/BottomTabBar.mjs +128 -0
- package/dist/BottomTabBar.shared.js +31 -0
- package/dist/BottomTabBar.shared.mjs +6 -0
- package/dist/BoundedPreviewSurface.js +54 -0
- package/dist/BoundedPreviewSurface.mjs +30 -0
- package/dist/BrowseSelection.client.js +50 -0
- package/dist/BrowseSelection.client.mjs +26 -0
- package/dist/BrowseSurface.js +151 -0
- package/dist/BrowseSurface.mjs +127 -0
- package/dist/CardContracts.js +97 -0
- package/dist/CardContracts.mjs +68 -0
- package/dist/ChartTokenPanel.js +102 -0
- package/dist/ChartTokenPanel.mjs +78 -0
- package/dist/ChatSurface.js +217 -0
- package/dist/ChatSurface.mjs +190 -0
- package/dist/ChoiceChip.js +257 -0
- package/dist/ChoiceChip.mjs +230 -0
- package/dist/CommandPalette.client.js +129 -0
- package/dist/CommandPalette.client.mjs +103 -0
- package/dist/ConfirmDialog.js +65 -0
- package/dist/ConfirmDialog.mjs +41 -0
- package/dist/ConsumerDashboardGrid.js +35 -0
- package/dist/ConsumerDashboardGrid.mjs +11 -0
- package/dist/ConsumerSection.js +38 -0
- package/dist/ConsumerSection.mjs +14 -0
- package/dist/CreatorTheme.js +146 -0
- package/dist/CreatorTheme.mjs +120 -0
- package/dist/CtaButtonGroup.js +38 -0
- package/dist/CtaButtonGroup.mjs +14 -0
- package/dist/DataToolbar.js +63 -0
- package/dist/DataToolbar.mjs +39 -0
- package/dist/DetailFactsTable.js +134 -0
- package/dist/DetailFactsTable.mjs +110 -0
- package/dist/DetailFactsTable.shared.js +41 -0
- package/dist/DetailFactsTable.shared.mjs +16 -0
- package/dist/DetailProfileShell.js +52 -0
- package/dist/DetailProfileShell.mjs +28 -0
- package/dist/DiscoveryShell.js +189 -0
- package/dist/DiscoveryShell.mjs +164 -0
- package/dist/DocsCodeBlock.js +67 -0
- package/dist/DocsCodeBlock.mjs +43 -0
- package/dist/DocsCodeDisclosure.js +74 -0
- package/dist/DocsCodeDisclosure.mjs +50 -0
- package/dist/DocsPageShell.js +55 -0
- package/dist/DocsPageShell.mjs +31 -0
- package/dist/DocsShell.js +205 -0
- package/dist/DocsShell.mjs +180 -0
- package/dist/EditorialCard.js +140 -0
- package/dist/EditorialCard.mjs +116 -0
- package/dist/EditorialHero.js +247 -0
- package/dist/EditorialHero.mjs +223 -0
- package/dist/EmptyState.js +37 -0
- package/dist/EmptyState.mjs +13 -0
- package/dist/EvidencePanel.js +85 -0
- package/dist/EvidencePanel.mjs +61 -0
- package/dist/FeatureBand.js +90 -0
- package/dist/FeatureBand.mjs +66 -0
- package/dist/FeedbackRuntime.client.js +264 -0
- package/dist/FeedbackRuntime.client.mjs +237 -0
- package/dist/FilterDrawer.js +67 -0
- package/dist/FilterDrawer.mjs +43 -0
- package/dist/FitScoreChip.js +72 -0
- package/dist/FitScoreChip.mjs +48 -0
- package/dist/FoodMenuSection.js +79 -0
- package/dist/FoodMenuSection.mjs +55 -0
- package/dist/FormField.js +37 -0
- package/dist/FormField.mjs +13 -0
- package/dist/GameBoardTile.js +63 -0
- package/dist/GameBoardTile.mjs +39 -0
- package/dist/GdsAccentContrastMatrix.js +102 -0
- package/dist/GdsAccentContrastMatrix.mjs +85 -0
- package/dist/GdsAccessGate.js +226 -0
- package/dist/GdsAccessGate.mjs +204 -0
- package/dist/GdsAccessGateRuntime.js +236 -0
- package/dist/GdsAccessGateRuntime.mjs +203 -0
- package/dist/GdsAccessibilitySystemReference.js +78 -0
- package/dist/GdsAccessibilitySystemReference.mjs +54 -0
- package/dist/GdsAssetManager.client.js +208 -0
- package/dist/GdsAssetManager.client.mjs +180 -0
- package/dist/GdsBadge.js +115 -0
- package/dist/GdsBadge.mjs +91 -0
- package/dist/GdsBadge.shared-D2Cs4eos.d.mts +35 -0
- package/dist/GdsBadge.shared-D2Cs4eos.d.ts +35 -0
- package/dist/GdsBadge.shared.js +42 -0
- package/dist/GdsBadge.shared.mjs +16 -0
- package/dist/GdsBadgeStack.js +58 -0
- package/dist/GdsBadgeStack.mjs +33 -0
- package/dist/GdsBreadcrumbs.js +42 -0
- package/dist/GdsBreadcrumbs.mjs +18 -0
- package/dist/GdsBulkActionBar.js +73 -0
- package/dist/GdsBulkActionBar.mjs +49 -0
- package/dist/GdsButtonFeedbackReference.js +289 -0
- package/dist/GdsButtonFeedbackReference.mjs +273 -0
- package/dist/GdsChart.js +169 -0
- package/dist/GdsChart.mjs +145 -0
- package/dist/GdsChart.shared.js +247 -0
- package/dist/GdsChart.shared.mjs +215 -0
- package/dist/GdsColorSystemReference.js +116 -0
- package/dist/GdsColorSystemReference.mjs +100 -0
- package/dist/GdsCompareButton.js +79 -0
- package/dist/GdsCompareButton.mjs +55 -0
- package/dist/GdsContentDesign.js +371 -0
- package/dist/GdsContentDesign.mjs +339 -0
- package/dist/GdsCountBadge.js +70 -0
- package/dist/GdsCountBadge.mjs +46 -0
- package/dist/GdsDataTable.client.js +412 -0
- package/dist/GdsDataTable.client.mjs +385 -0
- package/dist/GdsDateInput.client.js +116 -0
- package/dist/GdsDateInput.client.mjs +90 -0
- package/dist/GdsDensity.js +46 -0
- package/dist/GdsDensity.mjs +20 -0
- package/dist/GdsDensitySpacingSystemReference.js +70 -0
- package/dist/GdsDensitySpacingSystemReference.mjs +52 -0
- package/dist/GdsDesignHandoff.js +250 -0
- package/dist/GdsDesignHandoff.mjs +222 -0
- package/dist/GdsDesignRuleProfilePanel.js +80 -0
- package/dist/GdsDesignRuleProfilePanel.mjs +61 -0
- package/dist/GdsForm.client.js +303 -0
- package/dist/GdsForm.client.mjs +271 -0
- package/dist/GdsFormControls.js +193 -0
- package/dist/GdsFormControls.mjs +166 -0
- package/dist/GdsGeneratedAvatar.js +86 -0
- package/dist/GdsGeneratedAvatar.mjs +65 -0
- package/dist/GdsGeneratedAvatar.shared.js +34 -0
- package/dist/GdsGeneratedAvatar.shared.mjs +10 -0
- package/dist/GdsGeneratedHero.js +277 -0
- package/dist/GdsGeneratedHero.mjs +256 -0
- package/dist/GdsGeneratedMark.js +90 -0
- package/dist/GdsGeneratedMark.mjs +66 -0
- package/dist/GdsGeneratedThumbnail.js +301 -0
- package/dist/GdsGeneratedThumbnail.mjs +280 -0
- package/dist/GdsI18nRuntime.js +83 -0
- package/dist/GdsI18nRuntime.mjs +52 -0
- package/dist/GdsI18nRuntime.shared.js +232 -0
- package/dist/GdsI18nRuntime.shared.mjs +198 -0
- package/dist/GdsIconBadge.js +60 -0
- package/dist/GdsIconBadge.mjs +36 -0
- package/dist/GdsIconSystemReference.js +128 -0
- package/dist/GdsIconSystemReference.mjs +104 -0
- package/dist/GdsInlineLink.js +42 -0
- package/dist/{chunk-W5O2JSVK.mjs → GdsInlineLink.mjs} +1 -3
- package/dist/GdsLogoLockup.js +131 -0
- package/dist/GdsLogoLockup.mjs +107 -0
- package/dist/GdsMap.client.js +395 -0
- package/dist/GdsMap.client.mjs +358 -0
- package/dist/GdsMapBasemapWash.js +51 -0
- package/dist/GdsMapBasemapWash.mjs +25 -0
- package/dist/GdsMapFilterRail.js +84 -0
- package/dist/GdsMapFilterRail.mjs +60 -0
- package/dist/GdsMapPinBadge.js +95 -0
- package/dist/{chunk-NTNVQZJU.mjs → GdsMapPinBadge.mjs} +12 -30
- package/dist/GdsMapPinBadge.shared.js +43 -0
- package/dist/GdsMapPinBadge.shared.mjs +14 -0
- package/dist/GdsMapPinPreviewCard.js +134 -0
- package/dist/GdsMapPinPreviewCard.mjs +110 -0
- package/dist/GdsMessageThread.js +92 -0
- package/dist/GdsMessageThread.mjs +68 -0
- package/dist/GdsMeter.js +46 -0
- package/dist/GdsMeter.mjs +22 -0
- package/dist/GdsMotionSystemReference.js +124 -0
- package/dist/GdsMotionSystemReference.mjs +106 -0
- package/dist/GdsNotificationBell.js +78 -0
- package/dist/GdsNotificationBell.mjs +54 -0
- package/dist/GdsPageTemplateFrame.js +178 -0
- package/dist/GdsPageTemplateFrame.mjs +150 -0
- package/dist/GdsPageTemplates.client.js +129 -0
- package/dist/GdsPageTemplates.client.mjs +104 -0
- package/dist/GdsPageTemplates.js +279 -0
- package/dist/GdsPageTemplates.mjs +247 -0
- package/dist/GdsPageTemplates.shared.js +331 -0
- package/dist/GdsPageTemplates.shared.mjs +303 -0
- package/dist/GdsPictogramSystemReference.js +288 -0
- package/dist/GdsPictogramSystemReference.mjs +264 -0
- package/dist/GdsPinSystemReference.js +164 -0
- package/dist/GdsPinSystemReference.mjs +147 -0
- package/dist/GdsPrimitives.js +84 -0
- package/dist/GdsPrimitives.mjs +62 -0
- package/dist/GdsRatingDisplay.js +61 -0
- package/dist/GdsRatingDisplay.mjs +37 -0
- package/dist/GdsReleaseNotes.client.js +126 -0
- package/dist/GdsReleaseNotes.client.mjs +102 -0
- package/dist/GdsRemovableTag.js +61 -0
- package/dist/GdsRemovableTag.mjs +37 -0
- package/dist/GdsResourceManager.client.js +280 -0
- package/dist/GdsResourceManager.client.mjs +254 -0
- package/dist/GdsRichTextEditor.client.js +146 -0
- package/dist/GdsRichTextEditor.client.mjs +112 -0
- package/dist/GdsSavedIndicator.js +62 -0
- package/dist/GdsSavedIndicator.mjs +38 -0
- package/dist/GdsSchemaForm.client.js +679 -0
- package/dist/GdsSchemaForm.client.mjs +650 -0
- package/dist/GdsShapeElevationSystemReference.js +140 -0
- package/dist/GdsShapeElevationSystemReference.mjs +125 -0
- package/dist/GdsShapeScope.js +44 -0
- package/dist/GdsShapeScope.mjs +19 -0
- package/dist/GdsTableScrollContainer.js +46 -0
- package/dist/GdsTableScrollContainer.mjs +22 -0
- package/dist/GdsThreadList.js +118 -0
- package/dist/GdsThreadList.mjs +94 -0
- package/dist/GdsTour.client.js +399 -0
- package/dist/GdsTour.client.mjs +380 -0
- package/dist/GdsTreeView.js +194 -0
- package/dist/GdsTreeView.mjs +170 -0
- package/dist/GdsTypographySystemReference.js +77 -0
- package/dist/GdsTypographySystemReference.mjs +57 -0
- package/dist/GdsViewToggle.js +48 -0
- package/dist/GdsViewToggle.mjs +24 -0
- package/dist/GdsViewportFrame.js +61 -0
- package/dist/GdsViewportFrame.mjs +37 -0
- package/dist/HeroSearchPanel.client.js +135 -0
- package/dist/HeroSearchPanel.client.mjs +109 -0
- package/dist/KanbanBoard.client.js +400 -0
- package/dist/KanbanBoard.client.mjs +382 -0
- package/dist/LayoutBlocks.js +331 -0
- package/dist/LayoutBlocks.mjs +301 -0
- package/dist/LayoutPrimitives.js +501 -0
- package/dist/LayoutPrimitives.mjs +465 -0
- package/dist/LayoutTemplatePreview.client.js +172 -0
- package/dist/LayoutTemplatePreview.client.mjs +151 -0
- package/dist/ListingCard.js +397 -0
- package/dist/ListingCard.mjs +373 -0
- package/dist/ListingCard.shared.js +49 -0
- package/dist/ListingCard.shared.mjs +18 -0
- package/dist/ListingPrimitives.js +116 -0
- package/dist/ListingPrimitives.mjs +89 -0
- package/dist/ListingState.client.js +98 -0
- package/dist/ListingState.client.mjs +72 -0
- package/dist/MapPanel.js +93 -0
- package/dist/MapPanel.mjs +69 -0
- package/dist/MaturityCapabilities.js +211 -0
- package/dist/MaturityCapabilities.mjs +184 -0
- package/dist/MeaningBadge.js +65 -0
- package/dist/MeaningBadge.mjs +41 -0
- package/dist/MediaCard.js +61 -0
- package/dist/MediaCard.mjs +37 -0
- package/dist/MediaField.js +117 -0
- package/dist/MediaField.mjs +93 -0
- package/dist/MediaPreviewCard.js +90 -0
- package/dist/MediaPreviewCard.mjs +66 -0
- package/dist/MediaWithFallback.js +112 -0
- package/dist/MediaWithFallback.mjs +88 -0
- package/dist/MetricCard.js +60 -0
- package/dist/MetricCard.mjs +36 -0
- package/dist/Notifications.client.js +301 -0
- package/dist/Notifications.client.mjs +273 -0
- package/dist/Notifications.js +220 -0
- package/dist/Notifications.mjs +194 -0
- package/dist/Notifications.shared.js +52 -0
- package/dist/Notifications.shared.mjs +26 -0
- package/dist/NumberStepper.js +124 -0
- package/dist/NumberStepper.mjs +100 -0
- package/dist/OverlayManager.client.js +300 -0
- package/dist/OverlayManager.client.mjs +270 -0
- package/dist/OwnedContrastSurface.js +83 -0
- package/dist/OwnedContrastSurface.mjs +58 -0
- package/dist/PageHeader.js +48 -0
- package/dist/PageHeader.mjs +24 -0
- package/dist/{PartnerDiscovery-pdJmaKwq.d.ts → PartnerDiscovery-BUwzROQc.d.mts} +37 -35
- package/dist/{PartnerDiscovery-Dy3YnO02.d.mts → PartnerDiscovery-DmIj5bAw.d.ts} +37 -35
- package/dist/PartnerDiscovery.js +629 -0
- package/dist/{chunk-PCG34VRY.mjs → PartnerDiscovery.mjs} +19 -106
- package/dist/PartnerDiscovery.shared.js +116 -0
- package/dist/PartnerDiscovery.shared.mjs +84 -0
- package/dist/PeriodSelector.js +69 -0
- package/dist/PeriodSelector.mjs +45 -0
- package/dist/PlaceholderPanel.js +59 -0
- package/dist/PlaceholderPanel.mjs +35 -0
- package/dist/PlaybackControls.client.js +91 -0
- package/dist/PlaybackControls.client.mjs +65 -0
- package/dist/PlaybackSurface.js +107 -0
- package/dist/PlaybackSurface.mjs +83 -0
- package/dist/ProductCard.js +75 -0
- package/dist/ProductCard.mjs +51 -0
- package/dist/ProgressCard.js +58 -0
- package/dist/ProgressCard.mjs +34 -0
- package/dist/ProviderCTA.js +104 -0
- package/dist/ProviderCTA.mjs +80 -0
- package/dist/ProviderIdentityButtons.js +221 -0
- package/dist/ProviderIdentityButtons.mjs +192 -0
- package/dist/PublicBrandFooter.js +70 -0
- package/dist/PublicBrandFooter.mjs +46 -0
- package/dist/PublicCaptureFlow.js +125 -0
- package/dist/PublicCaptureFlow.mjs +95 -0
- package/dist/PublicFlowShell.js +128 -0
- package/dist/PublicFlowShell.mjs +104 -0
- package/dist/PublicFoodCard.js +153 -0
- package/dist/PublicFoodCard.mjs +129 -0
- package/dist/PublicNav.js +51 -0
- package/dist/PublicNav.mjs +27 -0
- package/dist/PublicProductCard.js +145 -0
- package/dist/PublicProductCard.mjs +121 -0
- package/dist/PublicShell.js +168 -0
- package/dist/PublicShell.mjs +144 -0
- package/dist/PublicSiteFooter.js +35 -0
- package/dist/PublicSiteFooter.mjs +11 -0
- package/dist/{QuickStartCard-BhNYAGG3.d.ts → QuickStartCard-CYKhDjvS.d.ts} +551 -158
- package/dist/{QuickStartCard-BztqkfQK.d.mts → QuickStartCard-DT2GgJrP.d.mts} +551 -158
- package/dist/QuickStartCard.js +85 -0
- package/dist/QuickStartCard.mjs +60 -0
- package/dist/ReferenceLinkGrid.js +66 -0
- package/dist/ReferenceLinkGrid.mjs +42 -0
- package/dist/ReferenceLocaleNotice.js +32 -0
- package/dist/ReferenceLocaleNotice.mjs +8 -0
- package/dist/ReferenceSection.js +58 -0
- package/dist/ReferenceSection.mjs +34 -0
- package/dist/ReferenceThemeExplorer.copy.js +1209 -0
- package/dist/ReferenceThemeExplorer.copy.mjs +1184 -0
- package/dist/ReferenceThemeExplorer.js +801 -0
- package/dist/ReferenceThemeExplorer.mjs +802 -0
- package/dist/ReportingSection.js +72 -0
- package/dist/ReportingSection.mjs +48 -0
- package/dist/SafeStyles.js +303 -0
- package/dist/SafeStyles.mjs +274 -0
- package/dist/SearchableSelect.js +195 -0
- package/dist/SearchableSelect.mjs +171 -0
- package/dist/SectionPanel.js +96 -0
- package/dist/SectionPanel.mjs +72 -0
- package/dist/SemanticButton.js +326 -0
- package/dist/SemanticButton.mjs +296 -0
- package/dist/SemanticCharts.js +120 -0
- package/dist/SemanticCharts.mjs +77 -0
- package/dist/ShareButtonGroup.js +117 -0
- package/dist/ShareButtonGroup.mjs +93 -0
- package/dist/SidebarNav.js +92 -0
- package/dist/SidebarNav.mjs +66 -0
- package/dist/SimpleDataTable.js +59 -0
- package/dist/SimpleDataTable.mjs +35 -0
- package/dist/SocialAuthButtons.js +71 -0
- package/dist/SocialAuthButtons.mjs +49 -0
- package/dist/StateBlock.js +118 -0
- package/dist/StateBlock.mjs +95 -0
- package/dist/StatsSection.js +63 -0
- package/dist/StatsSection.mjs +39 -0
- package/dist/StatusBadge.js +94 -0
- package/dist/StatusBadge.mjs +68 -0
- package/dist/StyleUtilities.js +123 -0
- package/dist/StyleUtilities.mjs +91 -0
- package/dist/SurfacePresentation.js +63 -0
- package/dist/SurfacePresentation.mjs +38 -0
- package/dist/TaskPatterns.js +206 -0
- package/dist/TaskPatterns.mjs +180 -0
- package/dist/Telemetry.client.js +273 -0
- package/dist/Telemetry.client.mjs +243 -0
- package/dist/ThemeToggle.js +53 -0
- package/dist/{chunk-ZFGYQSNR.mjs → ThemeToggle.mjs} +3 -7
- package/dist/TrustLayer.client.js +184 -0
- package/dist/TrustLayer.client.mjs +158 -0
- package/dist/TrustLayer.js +94 -0
- package/dist/TrustLayer.mjs +68 -0
- package/dist/TrustLayer.shared.js +37 -0
- package/dist/TrustLayer.shared.mjs +13 -0
- package/dist/Typography.js +68 -0
- package/dist/Typography.mjs +37 -0
- package/dist/UploadDropzone.js +144 -0
- package/dist/UploadDropzone.mjs +120 -0
- package/dist/badge-shapes.js +75 -0
- package/dist/badge-shapes.mjs +44 -0
- package/dist/breakpoints.js +34 -0
- package/dist/breakpoints.mjs +10 -0
- package/dist/category-registry.js +33 -0
- package/dist/category-registry.mjs +9 -0
- package/dist/chart-colors.js +73 -0
- package/dist/chart-colors.mjs +44 -0
- package/dist/chart-primitives.js +169 -0
- package/dist/chart-primitives.mjs +144 -0
- package/dist/client.d.mts +3 -3
- package/dist/client.d.ts +3 -3
- package/dist/client.js +378 -23816
- package/dist/client.mjs +161 -959
- package/dist/dom-phrase-translation.js +130 -0
- package/dist/dom-phrase-translation.mjs +104 -0
- package/dist/generated-art-engine.js +119 -0
- package/dist/generated-art-engine.mjs +93 -0
- package/dist/generated-art-svg.js +263 -0
- package/dist/generated-art-svg.mjs +238 -0
- package/dist/generated-brand-badge.js +160 -0
- package/dist/generated-brand-badge.mjs +136 -0
- package/dist/generated-design-rule-coverage.js +54 -0
- package/dist/generated-design-rule-coverage.mjs +30 -0
- package/dist/icons.js +371 -0
- package/dist/{chunk-J66ITCXC.mjs → icons.mjs} +22 -15
- package/dist/index.d.mts +13 -12
- package/dist/index.d.ts +13 -12
- package/dist/index.js +448 -26750
- package/dist/index.mjs +192 -3030
- package/dist/locales/ar.js +477 -0
- package/dist/{chunk-EYRLICSG.mjs → locales/ar.mjs} +1 -3
- package/dist/locales/de.js +477 -0
- package/dist/{chunk-TVGDH5O5.mjs → locales/de.mjs} +1 -3
- package/dist/locales/en.js +477 -0
- package/dist/{chunk-D65VHUXK.mjs → locales/en.mjs} +1 -3
- package/dist/locales/es.js +477 -0
- package/dist/{chunk-J4TSXITU.mjs → locales/es.mjs} +1 -3
- package/dist/locales/fr.js +477 -0
- package/dist/{chunk-Z6XXK57E.mjs → locales/fr.mjs} +1 -3
- package/dist/locales/he.js +477 -0
- package/dist/{chunk-GAPCKZGX.mjs → locales/he.mjs} +1 -3
- package/dist/locales/hu.js +477 -0
- package/dist/{chunk-CWMDWMYL.mjs → locales/hu.mjs} +1 -3
- package/dist/locales/index.js +83 -0
- package/dist/locales/index.mjs +45 -0
- package/dist/locales/it.js +477 -0
- package/dist/{chunk-3UYDQTAZ.mjs → locales/it.mjs} +1 -3
- package/dist/locales/ja.js +477 -0
- package/dist/{chunk-FPDTLFIB.mjs → locales/ja.mjs} +1 -3
- package/dist/locales/ko.js +477 -0
- package/dist/{chunk-PLJT4I7B.mjs → locales/ko.mjs} +1 -3
- package/dist/locales/lazy/all.js +23 -5449
- package/dist/locales/lazy/all.mjs +12 -39
- package/dist/locales/lazy/ar.js +3 -919
- package/dist/locales/lazy/ar.mjs +2 -9
- package/dist/locales/lazy/de.js +3 -919
- package/dist/locales/lazy/de.mjs +2 -9
- package/dist/locales/lazy/es.js +3 -919
- package/dist/locales/lazy/es.mjs +2 -9
- package/dist/locales/lazy/fr.js +3 -919
- package/dist/locales/lazy/fr.mjs +2 -9
- package/dist/locales/lazy/he.js +3 -919
- package/dist/locales/lazy/he.mjs +2 -9
- package/dist/locales/lazy/hu.js +3 -919
- package/dist/locales/lazy/hu.mjs +2 -9
- package/dist/locales/lazy/index.js +3 -477
- package/dist/locales/lazy/index.mjs +1 -5
- package/dist/locales/lazy/it.js +3 -919
- package/dist/locales/lazy/it.mjs +2 -9
- package/dist/locales/lazy/ja.js +3 -919
- package/dist/locales/lazy/ja.mjs +2 -9
- package/dist/locales/lazy/ko.js +3 -919
- package/dist/locales/lazy/ko.mjs +2 -9
- package/dist/locales/lazy/registry.js +47 -0
- package/dist/{chunk-TD3JPMMO.mjs → locales/lazy/registry.mjs} +6 -11
- package/dist/locales/lazy/ru.js +3 -919
- package/dist/locales/lazy/ru.mjs +2 -9
- package/dist/locales/lazy/zh.js +3 -919
- package/dist/locales/lazy/zh.mjs +2 -9
- package/dist/locales/ru.js +477 -0
- package/dist/{chunk-RBXAJJB2.mjs → locales/ru.mjs} +1 -3
- package/dist/locales/zh.js +477 -0
- package/dist/{chunk-V6SP5O4D.mjs → locales/zh.mjs} +1 -3
- package/dist/map-tile-policy.js +55 -0
- package/dist/map-tile-policy.mjs +29 -0
- package/dist/map.d.mts +1 -3
- package/dist/map.d.ts +1 -3
- package/dist/map.js +6 -749
- package/dist/map.mjs +2 -389
- package/dist/pictograms.js +112 -0
- package/dist/pictograms.mjs +88 -0
- package/dist/pictograms.shared.js +262 -0
- package/dist/pictograms.shared.mjs +226 -0
- package/dist/reference-theme-explorer.js +3 -10401
- package/dist/reference-theme-explorer.mjs +1 -2008
- package/dist/rich-text-editor.js +3 -450
- package/dist/rich-text-editor.mjs +1 -115
- package/dist/server.d.mts +6 -5
- package/dist/server.d.ts +6 -5
- package/dist/server.js +304 -18097
- package/dist/server.mjs +120 -1122
- package/dist/useGdsDomPhraseTranslation.client.js +49 -0
- package/dist/useGdsDomPhraseTranslation.client.mjs +25 -0
- package/dist/vocabulary.js +166 -0
- package/dist/vocabulary.mjs +137 -0
- package/package.json +5 -5
- package/dist/GdsBadge-j_kQnIL0.d.mts +0 -417
- package/dist/GdsBadge-j_kQnIL0.d.ts +0 -417
- package/dist/chunk-ADNXPSGK.mjs +0 -6695
- package/dist/chunk-MQDFB3AS.mjs +0 -8311
- package/dist/chunk-RMPMU4MB.mjs +0 -2468
- package/dist/chunk-RSA7INLU.mjs +0 -246
- package/dist/chunk-SPPTDVJC.mjs +0 -211
|
@@ -0,0 +1,801 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var ReferenceThemeExplorer_exports = {};
|
|
21
|
+
__export(ReferenceThemeExplorer_exports, {
|
|
22
|
+
ReferenceThemeExplorer: () => ReferenceThemeExplorer
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(ReferenceThemeExplorer_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
+
var import_react = require("react");
|
|
27
|
+
var import_GdsAccentContrastMatrix = require("./GdsAccentContrastMatrix");
|
|
28
|
+
var import_GdsDesignRuleProfilePanel = require("./GdsDesignRuleProfilePanel");
|
|
29
|
+
var import_core = require("@mantine/core");
|
|
30
|
+
var import_ActionBar = require("./ActionBar");
|
|
31
|
+
var import_FormField = require("./FormField");
|
|
32
|
+
var import_badge_shapes = require("./badge-shapes");
|
|
33
|
+
var import_GdsGeneratedMark = require("./GdsGeneratedMark");
|
|
34
|
+
var import_ListingCard = require("./ListingCard");
|
|
35
|
+
var import_OwnedContrastSurface = require("./OwnedContrastSurface");
|
|
36
|
+
var import_locales = require("./locales");
|
|
37
|
+
var import_ReferenceSection = require("./ReferenceSection");
|
|
38
|
+
var import_StateBlock = require("./StateBlock");
|
|
39
|
+
var import_ThemeToggle = require("./ThemeToggle");
|
|
40
|
+
var import_ReferenceThemeExplorer = require("./ReferenceThemeExplorer.copy");
|
|
41
|
+
var import_gds_theme = require("@sovereignsquad/gds-theme");
|
|
42
|
+
function resolvePreviewColorScheme(presetId, requestedScheme) {
|
|
43
|
+
void presetId;
|
|
44
|
+
return requestedScheme;
|
|
45
|
+
}
|
|
46
|
+
const presetCatalog = (0, import_gds_theme.getGdsThemePresets)();
|
|
47
|
+
const vibeCatalog = (0, import_gds_theme.getGdsVibeThemes)();
|
|
48
|
+
const vibeCatalogById = Object.fromEntries(vibeCatalog.map((vibe) => [vibe.id, vibe]));
|
|
49
|
+
const themePresetCatalog = Object.fromEntries(
|
|
50
|
+
presetCatalog.map((preset) => [
|
|
51
|
+
preset.id,
|
|
52
|
+
{
|
|
53
|
+
label: preset.label,
|
|
54
|
+
bestFor: `Apps aligned with ${preset.label.toLowerCase()}.`,
|
|
55
|
+
summary: preset.description,
|
|
56
|
+
themeKey: preset.runtimeLane,
|
|
57
|
+
supportedUse: `General product adoption with ${preset.label}.`,
|
|
58
|
+
avoidFor: "Avoid creating a local non-canonical theme authority."
|
|
59
|
+
}
|
|
60
|
+
])
|
|
61
|
+
);
|
|
62
|
+
const colorSchemeProof = [
|
|
63
|
+
{
|
|
64
|
+
id: "light",
|
|
65
|
+
label: "Light",
|
|
66
|
+
description: "Validates readable default surfaces, controls, badges, and focus states against light backgrounds."
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: "dark",
|
|
70
|
+
label: "Dark",
|
|
71
|
+
description: "Validates contrast for public, operational, and feedback surfaces when dark mode is active."
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
id: "auto",
|
|
75
|
+
label: "Auto",
|
|
76
|
+
description: "Documents the adopter path for OS-controlled schemes while keeping the provider contract unchanged."
|
|
77
|
+
}
|
|
78
|
+
];
|
|
79
|
+
const fallbackExplorerCopy = import_ReferenceThemeExplorer.referenceThemeExplorerCopy.en;
|
|
80
|
+
function resolveExplorerCopy(locale) {
|
|
81
|
+
const localeBaseCopy = import_ReferenceThemeExplorer.referenceThemeExplorerCopy[locale] ?? {};
|
|
82
|
+
const localeOverrideCopy = import_ReferenceThemeExplorer.referenceThemeExplorerCopyOverrides[locale] ?? {};
|
|
83
|
+
const mergedCopy = {
|
|
84
|
+
...fallbackExplorerCopy,
|
|
85
|
+
...localeBaseCopy,
|
|
86
|
+
...localeOverrideCopy,
|
|
87
|
+
schemes: {
|
|
88
|
+
...fallbackExplorerCopy.schemes,
|
|
89
|
+
...localeBaseCopy.schemes,
|
|
90
|
+
...localeOverrideCopy.schemes
|
|
91
|
+
},
|
|
92
|
+
schemeDescriptions: {
|
|
93
|
+
...fallbackExplorerCopy.schemeDescriptions,
|
|
94
|
+
...localeBaseCopy.schemeDescriptions,
|
|
95
|
+
...localeOverrideCopy.schemeDescriptions
|
|
96
|
+
},
|
|
97
|
+
presetLabels: {
|
|
98
|
+
...fallbackExplorerCopy.presetLabels,
|
|
99
|
+
...localeBaseCopy.presetLabels,
|
|
100
|
+
...localeOverrideCopy.presetLabels
|
|
101
|
+
},
|
|
102
|
+
presetSummaries: {
|
|
103
|
+
...fallbackExplorerCopy.presetSummaries,
|
|
104
|
+
...localeBaseCopy.presetSummaries,
|
|
105
|
+
...localeOverrideCopy.presetSummaries
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
return mergedCopy;
|
|
109
|
+
}
|
|
110
|
+
function ThemePreviewSurface({
|
|
111
|
+
preset,
|
|
112
|
+
colorScheme,
|
|
113
|
+
copy
|
|
114
|
+
}) {
|
|
115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Paper, { withBorder: true, radius: "lg", p: { base: "xs", sm: "sm", md: "lg" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: "lg", children: [
|
|
116
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Group, { justify: "space-between", align: "flex-start", wrap: "wrap", children: [
|
|
117
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: 4, children: [
|
|
118
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { fw: 700, children: preset.label }),
|
|
119
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { size: "sm", c: "dimmed", children: preset.summary }),
|
|
120
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Text, { size: "sm", children: [
|
|
121
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: copy.previewBestFor }),
|
|
122
|
+
" ",
|
|
123
|
+
preset.bestFor
|
|
124
|
+
] }),
|
|
125
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Text, { size: "sm", children: [
|
|
126
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: copy.previewColorScheme }),
|
|
127
|
+
" ",
|
|
128
|
+
colorScheme,
|
|
129
|
+
" (",
|
|
130
|
+
copy.schemes[colorScheme],
|
|
131
|
+
")"
|
|
132
|
+
] }),
|
|
133
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Text, { size: "sm", children: [
|
|
134
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: copy.previewA11yProof }),
|
|
135
|
+
" ",
|
|
136
|
+
copy.previewA11yDescription
|
|
137
|
+
] })
|
|
138
|
+
] }),
|
|
139
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeToggle.ThemeToggle, {})
|
|
140
|
+
] }),
|
|
141
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
142
|
+
import_ActionBar.ActionBar,
|
|
143
|
+
{
|
|
144
|
+
primary: { action: "save", size: "sm" },
|
|
145
|
+
secondary: [{ action: "cancel", size: "sm" }],
|
|
146
|
+
tertiary: [{ action: "preview", size: "sm" }]
|
|
147
|
+
}
|
|
148
|
+
),
|
|
149
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.SimpleGrid, { cols: { base: 1, md: 2 }, spacing: "md", children: [
|
|
150
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Paper, { withBorder: true, radius: "md", p: { base: "xs", sm: "sm", md: "md" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: "sm", children: [
|
|
151
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { fw: 700, size: "sm", children: copy.tokenControls }),
|
|
152
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FormField.FormField, { label: copy.referenceInput, description: copy.referenceInputDescription, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.TextInput, { "aria-label": copy.referenceInput, placeholder: copy.referenceInputPlaceholder }) }),
|
|
153
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Group, { gap: "xs", wrap: "wrap", children: [
|
|
154
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Badge, { color: "teal", variant: "light", children: copy.success }),
|
|
155
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Badge, { color: "orange", variant: "light", children: copy.warning }),
|
|
156
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Badge, { color: "red", variant: "light", children: copy.critical })
|
|
157
|
+
] })
|
|
158
|
+
] }) }),
|
|
159
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
160
|
+
import_ListingCard.ListingCard,
|
|
161
|
+
{
|
|
162
|
+
title: copy.proofSurfaceTitle,
|
|
163
|
+
description: copy.proofSurfaceDescription,
|
|
164
|
+
metadata: [
|
|
165
|
+
{ id: "runtime", label: copy.metadataRuntimeLane, value: preset.themeKey },
|
|
166
|
+
{ id: "scheme", label: copy.metadataColorScheme, value: copy.schemes[colorScheme] },
|
|
167
|
+
{ id: "focus", label: copy.metadataA11yProof, value: copy.metadataA11yValue }
|
|
168
|
+
],
|
|
169
|
+
primaryAction: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Button, { size: "sm", children: copy.inspectRoute })
|
|
170
|
+
}
|
|
171
|
+
)
|
|
172
|
+
] })
|
|
173
|
+
] }) });
|
|
174
|
+
}
|
|
175
|
+
function AthleteGoldReferenceSurface({ copy }) {
|
|
176
|
+
const athleteGold = vibeCatalogById["gilded"];
|
|
177
|
+
const navItems = [
|
|
178
|
+
{ id: "home", label: "Home", marker: "\u2302", active: true },
|
|
179
|
+
{ id: "check-in", label: "Check-in", marker: "\u25C7" },
|
|
180
|
+
{ id: "live-session", label: "Live Session", marker: "\u25B6" },
|
|
181
|
+
{ id: "daily-to-do", label: "Daily To-Do", marker: "\u2611" },
|
|
182
|
+
{ id: "learning-hub", label: "Learning Hub", marker: "\u25A1" },
|
|
183
|
+
{ id: "recovery", label: "Recovery", marker: "\u2661", section: "TWO PILLARS" },
|
|
184
|
+
{ id: "fuel", label: "Fuel", marker: "\u25CB" },
|
|
185
|
+
{ id: "mental", label: "Mental", marker: "\u25CE" },
|
|
186
|
+
{ id: "reflection", label: "Reflection", marker: "\u270E" },
|
|
187
|
+
{ id: "habits", label: "Habits", marker: "\u2713" }
|
|
188
|
+
];
|
|
189
|
+
const surfaceProps = (0, import_OwnedContrastSurface.getGdsOwnedContrastProps)({
|
|
190
|
+
role: "athlete-gold-reference",
|
|
191
|
+
tokens: (0, import_OwnedContrastSurface.createGdsOwnedContrastTokens)(athleteGold, {
|
|
192
|
+
background: athleteGold.flatSurfaces ? athleteGold.canvasDark : athleteGold.gradient,
|
|
193
|
+
radius: "var(--mantine-radius-xl)",
|
|
194
|
+
backgroundColor: athleteGold.canvasDark,
|
|
195
|
+
borderColor: athleteGold.borderDark,
|
|
196
|
+
text: athleteGold.textDark,
|
|
197
|
+
muted: athleteGold.mutedDark
|
|
198
|
+
})
|
|
199
|
+
});
|
|
200
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
201
|
+
import_core.Paper,
|
|
202
|
+
{
|
|
203
|
+
withBorder: true,
|
|
204
|
+
radius: "lg",
|
|
205
|
+
p: { base: "xs", sm: "sm", md: "lg" },
|
|
206
|
+
"aria-label": copy.athleteGoldReferenceTitle ?? "Gilded reference surface",
|
|
207
|
+
...surfaceProps,
|
|
208
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: "xl", children: [
|
|
209
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Group, { gap: "md", align: "center", children: [
|
|
210
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
211
|
+
import_core.Box,
|
|
212
|
+
{
|
|
213
|
+
"aria-hidden": "true",
|
|
214
|
+
style: {
|
|
215
|
+
width: 64,
|
|
216
|
+
height: 64,
|
|
217
|
+
borderRadius: "var(--gds-radius-pill)",
|
|
218
|
+
display: "grid",
|
|
219
|
+
placeItems: "center",
|
|
220
|
+
color: athleteGold.canvasDark,
|
|
221
|
+
background: athleteGold.flatSurfaces ? `linear-gradient(90deg, ${athleteGold.accent} 0%, ${athleteGold.accent} 50%, ${athleteGold.primary} 50%, ${athleteGold.primary} 100%)` : `linear-gradient(135deg, ${athleteGold.accent}, ${athleteGold.primary})`,
|
|
222
|
+
boxShadow: athleteGold.flatSurfaces ? void 0 : `0 18px 38px ${athleteGold.glow}`,
|
|
223
|
+
fontFamily: "Georgia, serif",
|
|
224
|
+
fontSize: 28,
|
|
225
|
+
fontWeight: 800
|
|
226
|
+
},
|
|
227
|
+
children: "IQ"
|
|
228
|
+
}
|
|
229
|
+
),
|
|
230
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: 0, children: [
|
|
231
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Title, { order: 3, style: { color: athleteGold.textDark }, children: "Athlete IQ" }),
|
|
232
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { size: "sm", fw: 700, tt: "uppercase", style: { color: athleteGold.accent, letterSpacing: 0 }, children: "Performance OS" })
|
|
233
|
+
] })
|
|
234
|
+
] }),
|
|
235
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: "sm", children: [
|
|
236
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { size: "xs", tt: "uppercase", style: { color: athleteGold.mutedDark, letterSpacing: 0 }, children: "Today" }),
|
|
237
|
+
navItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: "xs", children: [
|
|
238
|
+
item.section ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { size: "xs", tt: "uppercase", style: { color: athleteGold.mutedDark, letterSpacing: 0, marginTop: 12 }, children: item.section }) : null,
|
|
239
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
240
|
+
import_core.Group,
|
|
241
|
+
{
|
|
242
|
+
justify: "space-between",
|
|
243
|
+
wrap: "nowrap",
|
|
244
|
+
px: "md",
|
|
245
|
+
py: "sm",
|
|
246
|
+
style: {
|
|
247
|
+
minHeight: 54,
|
|
248
|
+
borderRadius: 18,
|
|
249
|
+
color: item.active ? athleteGold.accent : athleteGold.textDark,
|
|
250
|
+
background: item.active ? `linear-gradient(90deg, color-mix(in srgb, ${athleteGold.accent} 18%, transparent), color-mix(in srgb, ${athleteGold.primary} 6%, transparent))` : "transparent",
|
|
251
|
+
border: item.active ? `1px solid ${athleteGold.borderDark}` : "1px solid transparent",
|
|
252
|
+
boxShadow: item.active ? `0 18px 38px ${athleteGold.glow}, inset 0 0 0 1px color-mix(in srgb, ${athleteGold.primary} 8%, transparent)` : void 0
|
|
253
|
+
},
|
|
254
|
+
children: [
|
|
255
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Group, { gap: "md", wrap: "nowrap", children: [
|
|
256
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { "aria-hidden": "true", fw: 700, style: { width: 20, color: item.active ? athleteGold.accent : athleteGold.mutedDark }, children: item.marker }),
|
|
257
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { fw: item.active ? 700 : 500, children: item.label })
|
|
258
|
+
] }),
|
|
259
|
+
item.active ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
260
|
+
import_core.Box,
|
|
261
|
+
{
|
|
262
|
+
"aria-hidden": "true",
|
|
263
|
+
style: {
|
|
264
|
+
width: 10,
|
|
265
|
+
height: 10,
|
|
266
|
+
borderRadius: "var(--gds-radius-pill)",
|
|
267
|
+
background: athleteGold.accent,
|
|
268
|
+
boxShadow: athleteGold.flatSurfaces ? void 0 : `0 0 22px ${athleteGold.glow}`
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
) : null
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
)
|
|
275
|
+
] }, item.id))
|
|
276
|
+
] })
|
|
277
|
+
] })
|
|
278
|
+
}
|
|
279
|
+
);
|
|
280
|
+
}
|
|
281
|
+
function ReferenceThemeExplorer({
|
|
282
|
+
initialSelection,
|
|
283
|
+
onSelectionChange
|
|
284
|
+
}) {
|
|
285
|
+
const { locale, t } = (0, import_gds_theme.useGdsTranslation)();
|
|
286
|
+
const styleProfileLabels = {
|
|
287
|
+
default: t("gds.styleProfile.default", "Preset default"),
|
|
288
|
+
minimal: t("gds.styleProfile.minimal", "Minimal"),
|
|
289
|
+
soft: t("gds.styleProfile.soft", "Soft"),
|
|
290
|
+
structured: t("gds.styleProfile.structured", "Structured")
|
|
291
|
+
};
|
|
292
|
+
const copy = resolveExplorerCopy(locale);
|
|
293
|
+
const previewMessages = (0, import_react.useMemo)(() => (0, import_locales.getGdsMessages)(locale), [locale]);
|
|
294
|
+
const [preset, setPreset] = (0, import_react.useState)(initialSelection?.preset ?? "default");
|
|
295
|
+
const [colorScheme, setColorScheme] = (0, import_react.useState)(initialSelection?.colorScheme ?? "light");
|
|
296
|
+
const [brandPrimary, setBrandPrimary] = (0, import_react.useState)(initialSelection?.brandPrimary ?? "blue");
|
|
297
|
+
const [brandFlatSurfaces, setBrandFlatSurfaces] = (0, import_react.useState)(initialSelection?.brandFlatSurfaces ?? true);
|
|
298
|
+
const [brandEditorialSerif, setBrandEditorialSerif] = (0, import_react.useState)(initialSelection?.brandEditorialSerif ?? false);
|
|
299
|
+
const [fontLane, setFontLane] = (0, import_react.useState)(initialSelection?.fontLane ?? "inter");
|
|
300
|
+
const [styleProfile, setStyleProfile] = (0, import_react.useState)(initialSelection?.styleProfile ?? "default");
|
|
301
|
+
const [comparisonEnabled, setComparisonEnabled] = (0, import_react.useState)(false);
|
|
302
|
+
const [comparisonPreset, setComparisonPreset] = (0, import_react.useState)("editorial");
|
|
303
|
+
const availableComparisonPresets = presetCatalog.filter((item) => item.id !== preset).map((item) => item.id);
|
|
304
|
+
const resolveTheme = (presetId) => (0, import_gds_theme.applyGdsFontLane)((0, import_gds_theme.resolveGdsThemePreset)(presetId, {
|
|
305
|
+
brandPrimary,
|
|
306
|
+
brandFlatSurfaces,
|
|
307
|
+
brandEditorialSerif
|
|
308
|
+
}), fontLane);
|
|
309
|
+
const localizedThemeCatalog = (0, import_react.useMemo)(() => {
|
|
310
|
+
const presetLabels = copy.presetLabels;
|
|
311
|
+
const presetSummaries = copy.presetSummaries;
|
|
312
|
+
return Object.fromEntries(Object.entries(themePresetCatalog).map(([id, item]) => {
|
|
313
|
+
const presetId = id;
|
|
314
|
+
const label = presetLabels[presetId] ?? item.label;
|
|
315
|
+
const summary = presetSummaries[presetId] ?? item.summary;
|
|
316
|
+
return [presetId, {
|
|
317
|
+
...item,
|
|
318
|
+
label,
|
|
319
|
+
summary,
|
|
320
|
+
bestFor: `${copy.appsAlignedWith} ${label}.`,
|
|
321
|
+
supportedUse: `${copy.generalAdoptionWith} ${label}.`,
|
|
322
|
+
avoidFor: copy.avoidLocalTheme
|
|
323
|
+
}];
|
|
324
|
+
}));
|
|
325
|
+
}, [copy]);
|
|
326
|
+
const selectionSummary = localizedThemeCatalog[preset];
|
|
327
|
+
const comparisonSummary = localizedThemeCatalog[comparisonPreset];
|
|
328
|
+
const selectedTheme = (0, import_react.useMemo)(() => resolveTheme(preset), [preset, brandPrimary, brandFlatSurfaces, brandEditorialSerif, fontLane]);
|
|
329
|
+
const comparedTheme = (0, import_react.useMemo)(() => resolveTheme(comparisonPreset), [comparisonPreset, brandPrimary, brandFlatSurfaces, brandEditorialSerif, fontLane]);
|
|
330
|
+
const effectiveColorScheme = resolvePreviewColorScheme(preset, colorScheme);
|
|
331
|
+
const effectiveComparisonScheme = resolvePreviewColorScheme(comparisonPreset, colorScheme);
|
|
332
|
+
const previewKey = `${preset}-${effectiveColorScheme}-${brandPrimary}-${brandFlatSurfaces}-${brandEditorialSerif}-${fontLane}${styleProfile === "default" ? "" : `-${styleProfile}`}`;
|
|
333
|
+
const comparisonPreviewKey = `${comparisonPreset}-${effectiveComparisonScheme}-${brandPrimary}-${brandFlatSurfaces}-${brandEditorialSerif}-${fontLane}`;
|
|
334
|
+
const previewRootId = `gds-theme-preview-${previewKey}`;
|
|
335
|
+
const comparisonPreviewRootId = `gds-theme-preview-${comparisonPreviewKey}`;
|
|
336
|
+
const selectedVibe = vibeCatalogById[preset];
|
|
337
|
+
(0, import_react.useEffect)(() => {
|
|
338
|
+
onSelectionChange?.({
|
|
339
|
+
preset,
|
|
340
|
+
colorScheme: effectiveColorScheme,
|
|
341
|
+
theme: selectedTheme,
|
|
342
|
+
fontLane,
|
|
343
|
+
styleProfile,
|
|
344
|
+
runtimeKey: previewKey,
|
|
345
|
+
brandPrimary,
|
|
346
|
+
brandFlatSurfaces,
|
|
347
|
+
brandEditorialSerif
|
|
348
|
+
});
|
|
349
|
+
}, [onSelectionChange, preset, effectiveColorScheme, selectedTheme, fontLane, styleProfile, previewKey, brandPrimary, brandFlatSurfaces, brandEditorialSerif]);
|
|
350
|
+
(0, import_react.useEffect)(() => {
|
|
351
|
+
if (comparisonPreset !== preset) {
|
|
352
|
+
return;
|
|
353
|
+
}
|
|
354
|
+
setComparisonPreset(availableComparisonPresets[0] ?? "editorial");
|
|
355
|
+
}, [comparisonPreset, preset, availableComparisonPresets]);
|
|
356
|
+
const reset = () => {
|
|
357
|
+
setPreset("default");
|
|
358
|
+
setColorScheme("light");
|
|
359
|
+
setBrandPrimary("blue");
|
|
360
|
+
setBrandFlatSurfaces(true);
|
|
361
|
+
setBrandEditorialSerif(false);
|
|
362
|
+
setComparisonEnabled(false);
|
|
363
|
+
setComparisonPreset("editorial");
|
|
364
|
+
setFontLane("inter");
|
|
365
|
+
setStyleProfile("default");
|
|
366
|
+
};
|
|
367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: "xl", children: [
|
|
368
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
369
|
+
import_ReferenceSection.ReferenceSection,
|
|
370
|
+
{
|
|
371
|
+
title: copy.themeLabTitle,
|
|
372
|
+
description: copy.themeLabDescription,
|
|
373
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.SimpleGrid, { cols: { base: 1, md: 2, xl: 3 }, spacing: "lg", children: [
|
|
374
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
375
|
+
import_core.Paper,
|
|
376
|
+
{
|
|
377
|
+
withBorder: true,
|
|
378
|
+
radius: "lg",
|
|
379
|
+
p: { base: "xs", sm: "sm", md: "lg" },
|
|
380
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: "md", children: [
|
|
381
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Title, { order: 4, children: copy.themePresetTitle }),
|
|
382
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Badge, { variant: "light", w: "fit-content", maw: "100%", "data-gds-theme-lab-active": true, children: [
|
|
383
|
+
copy.selected,
|
|
384
|
+
": ",
|
|
385
|
+
selectionSummary.label
|
|
386
|
+
] }),
|
|
387
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FormField.FormField, { label: copy.presetLabel, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
388
|
+
import_core.NativeSelect,
|
|
389
|
+
{
|
|
390
|
+
"aria-label": copy.presetLabel,
|
|
391
|
+
value: preset,
|
|
392
|
+
onChange: (event) => setPreset(event.currentTarget.value || "default"),
|
|
393
|
+
data: Object.entries(localizedThemeCatalog).map(([value, item]) => ({ value, label: item.label }))
|
|
394
|
+
}
|
|
395
|
+
) }),
|
|
396
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FormField.FormField, { label: copy.previewColorSchemeLabel, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
397
|
+
import_core.NativeSelect,
|
|
398
|
+
{
|
|
399
|
+
"aria-label": copy.previewColorSchemeLabel,
|
|
400
|
+
value: colorScheme,
|
|
401
|
+
onChange: (event) => setColorScheme(event.currentTarget.value || "light"),
|
|
402
|
+
data: [
|
|
403
|
+
{ value: "light", label: copy.schemes.light },
|
|
404
|
+
{ value: "dark", label: copy.schemes.dark },
|
|
405
|
+
{ value: "auto", label: copy.schemes.auto }
|
|
406
|
+
]
|
|
407
|
+
}
|
|
408
|
+
) }),
|
|
409
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FormField.FormField, { label: copy.webfontLaneLabel, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
410
|
+
import_core.NativeSelect,
|
|
411
|
+
{
|
|
412
|
+
"aria-label": copy.webfontLaneLabel,
|
|
413
|
+
value: fontLane,
|
|
414
|
+
onChange: (event) => setFontLane(event.currentTarget.value || "inter"),
|
|
415
|
+
data: (0, import_gds_theme.getGdsFontLanes)().map((lane) => ({ value: lane.id, label: lane.label }))
|
|
416
|
+
}
|
|
417
|
+
) }),
|
|
418
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FormField.FormField, { label: t("gds.themeExplorer.styleProfile", "Style profile"), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
419
|
+
import_core.NativeSelect,
|
|
420
|
+
{
|
|
421
|
+
"aria-label": t("gds.themeExplorer.styleProfile", "Style profile"),
|
|
422
|
+
value: styleProfile,
|
|
423
|
+
onChange: (event) => setStyleProfile((0, import_gds_theme.normalizeGdsStyleProfile)(event.currentTarget.value)),
|
|
424
|
+
data: import_gds_theme.GDS_STYLE_PROFILE_IDS.map((id) => ({ value: id, label: styleProfileLabels[id] }))
|
|
425
|
+
}
|
|
426
|
+
) }),
|
|
427
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Button, { variant: "default", size: "sm", onClick: reset, children: copy.resetThemeLab }),
|
|
428
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { size: "sm", c: "dimmed", children: copy.shellBehavior })
|
|
429
|
+
] })
|
|
430
|
+
}
|
|
431
|
+
),
|
|
432
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
433
|
+
import_core.Paper,
|
|
434
|
+
{
|
|
435
|
+
withBorder: true,
|
|
436
|
+
radius: "lg",
|
|
437
|
+
p: { base: "xs", sm: "sm", md: "lg" },
|
|
438
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: "md", children: [
|
|
439
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Title, { order: 4, children: copy.brandOptionsTitle }),
|
|
440
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FormField.FormField, { label: copy.brandPrimaryColorLabel, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
441
|
+
import_core.NativeSelect,
|
|
442
|
+
{
|
|
443
|
+
"aria-label": copy.brandPrimaryColorLabel,
|
|
444
|
+
value: brandPrimary,
|
|
445
|
+
onChange: (event) => setBrandPrimary(event.currentTarget.value || "blue"),
|
|
446
|
+
data: ["blue", "violet", "teal", "grape", "indigo", "orange"],
|
|
447
|
+
disabled: preset !== "brand"
|
|
448
|
+
}
|
|
449
|
+
) }),
|
|
450
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
451
|
+
import_core.Checkbox,
|
|
452
|
+
{
|
|
453
|
+
label: copy.useFlatSurfaces,
|
|
454
|
+
checked: brandFlatSurfaces,
|
|
455
|
+
onChange: (event) => setBrandFlatSurfaces(event.currentTarget.checked),
|
|
456
|
+
disabled: preset !== "brand"
|
|
457
|
+
}
|
|
458
|
+
),
|
|
459
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
460
|
+
import_core.Checkbox,
|
|
461
|
+
{
|
|
462
|
+
label: copy.useEditorialSerif,
|
|
463
|
+
checked: brandEditorialSerif,
|
|
464
|
+
onChange: (event) => setBrandEditorialSerif(event.currentTarget.checked),
|
|
465
|
+
disabled: preset !== "brand"
|
|
466
|
+
}
|
|
467
|
+
),
|
|
468
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { size: "sm", c: "dimmed", children: copy.generatorDescription })
|
|
469
|
+
] })
|
|
470
|
+
}
|
|
471
|
+
),
|
|
472
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
473
|
+
import_core.Paper,
|
|
474
|
+
{
|
|
475
|
+
withBorder: true,
|
|
476
|
+
radius: "lg",
|
|
477
|
+
p: { base: "xs", sm: "sm", md: "lg" },
|
|
478
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: "md", role: "status", "aria-live": "polite", children: [
|
|
479
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Title, { order: 4, children: copy.currentSelectionTitle }),
|
|
480
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Badge, { variant: "light", w: "fit-content", maw: "100%", "data-gds-theme-lab-active": true, children: [
|
|
481
|
+
copy.selected,
|
|
482
|
+
": ",
|
|
483
|
+
selectionSummary.label
|
|
484
|
+
] }),
|
|
485
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: 6, children: [
|
|
486
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { fw: 700, children: selectionSummary.label }),
|
|
487
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { size: "sm", c: "dimmed", children: selectionSummary.summary }),
|
|
488
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Text, { size: "sm", children: [
|
|
489
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: copy.bestFor }),
|
|
490
|
+
" ",
|
|
491
|
+
selectionSummary.bestFor
|
|
492
|
+
] }),
|
|
493
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Text, { size: "sm", children: [
|
|
494
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: copy.runtimeLane }),
|
|
495
|
+
" ",
|
|
496
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Code, { children: selectionSummary.themeKey })
|
|
497
|
+
] }),
|
|
498
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Text, { size: "sm", children: [
|
|
499
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: copy.colorScheme }),
|
|
500
|
+
" ",
|
|
501
|
+
colorScheme,
|
|
502
|
+
" (",
|
|
503
|
+
copy.schemes[colorScheme],
|
|
504
|
+
")"
|
|
505
|
+
] })
|
|
506
|
+
] }),
|
|
507
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
508
|
+
import_core.Checkbox,
|
|
509
|
+
{
|
|
510
|
+
"aria-label": copy.compareToggle,
|
|
511
|
+
label: copy.compareToggle,
|
|
512
|
+
checked: comparisonEnabled,
|
|
513
|
+
onChange: (event) => setComparisonEnabled(event.currentTarget.checked)
|
|
514
|
+
}
|
|
515
|
+
),
|
|
516
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FormField.FormField, { label: copy.comparisonPresetLabel, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
517
|
+
import_core.NativeSelect,
|
|
518
|
+
{
|
|
519
|
+
"aria-label": copy.comparisonPresetLabel,
|
|
520
|
+
value: comparisonPreset,
|
|
521
|
+
onChange: (event) => setComparisonPreset(event.currentTarget.value || "editorial"),
|
|
522
|
+
disabled: !comparisonEnabled,
|
|
523
|
+
data: availableComparisonPresets.map((value) => ({ value, label: localizedThemeCatalog[value].label }))
|
|
524
|
+
}
|
|
525
|
+
) })
|
|
526
|
+
] })
|
|
527
|
+
}
|
|
528
|
+
)
|
|
529
|
+
] })
|
|
530
|
+
}
|
|
531
|
+
),
|
|
532
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
533
|
+
import_ReferenceSection.ReferenceSection,
|
|
534
|
+
{
|
|
535
|
+
title: copy.shippedLanesTitle,
|
|
536
|
+
description: copy.shippedLanesDescription,
|
|
537
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.SimpleGrid, { cols: { base: 1, md: 2, xl: 4 }, spacing: "md", children: vibeCatalog.map((vibe) => {
|
|
538
|
+
const lane = localizedThemeCatalog[vibe.id];
|
|
539
|
+
const isSelected = vibe.id === preset;
|
|
540
|
+
const laneCardProps = (0, import_OwnedContrastSurface.getGdsOwnedContrastProps)({
|
|
541
|
+
role: "vibe-gallery-card",
|
|
542
|
+
tokens: (0, import_OwnedContrastSurface.createGdsOwnedContrastTokens)(vibe, {
|
|
543
|
+
background: vibe.flatSurfaces ? vibe.surfaceLight : `linear-gradient(135deg, ${vibe.surfaceLight}, color-mix(in srgb, ${vibe.primary} 12%, ${vibe.surfaceLight})), ${vibe.gradient}`,
|
|
544
|
+
radius: "var(--mantine-radius-lg)",
|
|
545
|
+
backgroundColor: vibe.surfaceLight,
|
|
546
|
+
borderColor: isSelected ? vibe.primary : vibe.borderLight,
|
|
547
|
+
boxShadow: isSelected ? vibe.flatSurfaces ? `0 0 0 2px ${vibe.primary}` : `0 0 0 2px ${vibe.primary}, 0 18px 46px ${vibe.glow}` : void 0
|
|
548
|
+
})
|
|
549
|
+
});
|
|
550
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
551
|
+
import_core.Paper,
|
|
552
|
+
{
|
|
553
|
+
withBorder: true,
|
|
554
|
+
radius: "md",
|
|
555
|
+
p: { base: "xs", sm: "sm", md: "md" },
|
|
556
|
+
role: "group",
|
|
557
|
+
"aria-label": `${lane.label} ${copy.cssVibeTheme}`,
|
|
558
|
+
...laneCardProps,
|
|
559
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: 6, children: [
|
|
560
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Group, { gap: "xs", justify: "space-between", align: "flex-start", wrap: "nowrap", children: [
|
|
561
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Group, { gap: 6, wrap: "nowrap", children: [
|
|
562
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
563
|
+
import_core.Box,
|
|
564
|
+
{
|
|
565
|
+
"aria-hidden": "true",
|
|
566
|
+
style: {
|
|
567
|
+
width: 28,
|
|
568
|
+
height: 28,
|
|
569
|
+
borderRadius: "var(--gds-radius-pill)",
|
|
570
|
+
// flatSurfaces lanes: hard-edge split of two solid colors, no blend.
|
|
571
|
+
background: vibe.flatSurfaces ? `conic-gradient(${vibe.primary} 0deg 180deg, ${vibe.accent} 180deg 360deg)` : `linear-gradient(135deg, ${vibe.primary}, ${vibe.accent})`,
|
|
572
|
+
boxShadow: vibe.flatSurfaces ? void 0 : `0 10px 28px ${vibe.glow}`,
|
|
573
|
+
border: `1px solid ${vibe.borderLight}`
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
),
|
|
577
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { fw: 700, size: "sm", children: lane.label })
|
|
578
|
+
] }),
|
|
579
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Badge, { variant: "light", children: copy.selected }) : null
|
|
580
|
+
] }),
|
|
581
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
582
|
+
import_GdsGeneratedMark.GdsGeneratedMark,
|
|
583
|
+
{
|
|
584
|
+
seed: (0, import_gds_theme.computeGdsThemeIdentity)({ preset: vibe.id, colorScheme: "light" }),
|
|
585
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_badge_shapes.GdsBadgeShapeCircle, {}),
|
|
586
|
+
colors: { primary: vibe.primary, accent: vibe.accent },
|
|
587
|
+
size: 32
|
|
588
|
+
}
|
|
589
|
+
),
|
|
590
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
591
|
+
import_core.Box,
|
|
592
|
+
{
|
|
593
|
+
"aria-hidden": "true",
|
|
594
|
+
style: {
|
|
595
|
+
height: 56,
|
|
596
|
+
borderRadius: "var(--gds-radius-lg)",
|
|
597
|
+
// Full-strength colors, not the ~12-16% opacity `vibe.hero` wash.
|
|
598
|
+
// flatSurfaces lanes (e.g. createBrandTheme('class-usa')): hard-edge
|
|
599
|
+
// two-color split, not a blend.
|
|
600
|
+
background: vibe.flatSurfaces ? `linear-gradient(90deg, ${vibe.primary} 0%, ${vibe.primary} 50%, ${vibe.accent} 50%, ${vibe.accent} 100%)` : `linear-gradient(135deg, ${vibe.primary}, ${vibe.accent})`,
|
|
601
|
+
border: `1px solid ${vibe.borderLight}`
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
),
|
|
605
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { fw: 700, size: "sm", children: copy.cssVibeTheme }),
|
|
606
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { size: "sm", c: "dimmed", children: lane.summary }),
|
|
607
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Text, { size: "xs", children: [
|
|
608
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: copy.bestFor }),
|
|
609
|
+
" ",
|
|
610
|
+
lane.supportedUse
|
|
611
|
+
] }),
|
|
612
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Code, { block: true, fz: "10px", tabIndex: 0, role: "group", "aria-label": lane.label, children: lane.themeKey }),
|
|
613
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
614
|
+
import_core.Button,
|
|
615
|
+
{
|
|
616
|
+
size: "xs",
|
|
617
|
+
variant: isSelected ? "filled" : "default",
|
|
618
|
+
onClick: () => setPreset(vibe.id),
|
|
619
|
+
children: copy.previewVibe
|
|
620
|
+
}
|
|
621
|
+
),
|
|
622
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Text, { size: "xs", c: "dimmed", children: [
|
|
623
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: copy.avoidFor }),
|
|
624
|
+
" ",
|
|
625
|
+
lane.avoidFor ?? copy.noSpecialExclusion
|
|
626
|
+
] })
|
|
627
|
+
] })
|
|
628
|
+
},
|
|
629
|
+
lane.themeKey
|
|
630
|
+
);
|
|
631
|
+
}) })
|
|
632
|
+
}
|
|
633
|
+
),
|
|
634
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
635
|
+
import_ReferenceSection.ReferenceSection,
|
|
636
|
+
{
|
|
637
|
+
title: copy.vibeContractTitle,
|
|
638
|
+
description: copy.vibeContractDescription,
|
|
639
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
640
|
+
import_core.Paper,
|
|
641
|
+
{
|
|
642
|
+
withBorder: true,
|
|
643
|
+
radius: "lg",
|
|
644
|
+
p: { base: "xs", sm: "sm", md: "lg" },
|
|
645
|
+
...selectedVibe ? (0, import_OwnedContrastSurface.getGdsOwnedContrastProps)({
|
|
646
|
+
role: "vibe-contract",
|
|
647
|
+
tokens: (0, import_OwnedContrastSurface.createGdsOwnedContrastTokens)(selectedVibe, {
|
|
648
|
+
// flatSurfaces lanes: flat background, not the atmospheric hero wash.
|
|
649
|
+
background: selectedVibe.flatSurfaces ? selectedVibe.surfaceLight : selectedVibe.hero,
|
|
650
|
+
radius: "var(--mantine-radius-xl)",
|
|
651
|
+
backgroundColor: selectedVibe.surfaceLight
|
|
652
|
+
})
|
|
653
|
+
}) : void 0,
|
|
654
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.SimpleGrid, { cols: { base: 1, md: 3 }, spacing: "md", children: selectedVibe ? [
|
|
655
|
+
[copy.tokenLabels[0], selectedVibe.primary],
|
|
656
|
+
[copy.tokenLabels[1], selectedVibe.accent],
|
|
657
|
+
[copy.tokenLabels[2], selectedVibe.canvasLight],
|
|
658
|
+
[copy.tokenLabels[3], selectedVibe.canvasDark],
|
|
659
|
+
[copy.tokenLabels[4], selectedVibe.surfaceLight],
|
|
660
|
+
[copy.tokenLabels[5], selectedVibe.surfaceDark]
|
|
661
|
+
].map(([label, value]) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Paper, { withBorder: true, radius: "md", p: { base: "xs", sm: "sm", md: "md" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: 8, children: [
|
|
662
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
663
|
+
import_core.Box,
|
|
664
|
+
{
|
|
665
|
+
"aria-hidden": "true",
|
|
666
|
+
style: {
|
|
667
|
+
height: 38,
|
|
668
|
+
borderRadius: 12,
|
|
669
|
+
background: value,
|
|
670
|
+
border: `1px solid ${selectedVibe.borderLight}`
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
),
|
|
674
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { fw: 700, size: "sm", children: label }),
|
|
675
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Code, { fz: "11px", children: value })
|
|
676
|
+
] }) }, label)) : null })
|
|
677
|
+
}
|
|
678
|
+
)
|
|
679
|
+
}
|
|
680
|
+
),
|
|
681
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
682
|
+
import_ReferenceSection.ReferenceSection,
|
|
683
|
+
{
|
|
684
|
+
title: copy.athleteGoldReferenceTitle ?? fallbackExplorerCopy.athleteGoldReferenceTitle,
|
|
685
|
+
description: copy.athleteGoldReferenceDescription ?? fallbackExplorerCopy.athleteGoldReferenceDescription,
|
|
686
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AthleteGoldReferenceSurface, { copy })
|
|
687
|
+
}
|
|
688
|
+
),
|
|
689
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
690
|
+
import_ReferenceSection.ReferenceSection,
|
|
691
|
+
{
|
|
692
|
+
title: copy.proofTitle,
|
|
693
|
+
description: copy.proofDescription,
|
|
694
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.SimpleGrid, { cols: { base: 1, md: 3 }, spacing: "md", children: colorSchemeProof.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Paper, { withBorder: true, radius: "md", p: { base: "xs", sm: "sm", md: "md" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: 6, children: [
|
|
695
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Badge, { variant: "light", color: item.id === "dark" ? "violet" : item.id === "auto" ? "teal" : "blue", w: "fit-content", children: copy.schemes[item.id] }),
|
|
696
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { size: "sm", children: copy.schemeDescriptions[item.id] }),
|
|
697
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { size: "xs", c: "dimmed", children: copy.requiredProof })
|
|
698
|
+
] }) }, item.id)) })
|
|
699
|
+
}
|
|
700
|
+
),
|
|
701
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
702
|
+
import_ReferenceSection.ReferenceSection,
|
|
703
|
+
{
|
|
704
|
+
title: copy.livePreviewTitle,
|
|
705
|
+
description: copy.livePreviewDescription,
|
|
706
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.SimpleGrid, { cols: { base: 1, xl: comparisonEnabled ? 2 : 1 }, spacing: "lg", children: [
|
|
707
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Box, { id: previewRootId, "data-gds-preview-root": true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
708
|
+
import_gds_theme.GdsProvider,
|
|
709
|
+
{
|
|
710
|
+
locale,
|
|
711
|
+
messages: previewMessages,
|
|
712
|
+
theme: selectedTheme,
|
|
713
|
+
defaultColorScheme: effectiveColorScheme,
|
|
714
|
+
colorSchemeRootElement: () => document.getElementById(previewRootId) ?? void 0,
|
|
715
|
+
cssVariablesSelector: `#${previewRootId}`,
|
|
716
|
+
applyDocumentColorScheme: false,
|
|
717
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
718
|
+
ThemePreviewSurface,
|
|
719
|
+
{
|
|
720
|
+
preset: selectionSummary,
|
|
721
|
+
colorScheme: effectiveColorScheme,
|
|
722
|
+
copy
|
|
723
|
+
}
|
|
724
|
+
)
|
|
725
|
+
},
|
|
726
|
+
previewKey
|
|
727
|
+
) }),
|
|
728
|
+
comparisonEnabled ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Box, { id: comparisonPreviewRootId, "data-gds-preview-root": true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
729
|
+
import_gds_theme.GdsProvider,
|
|
730
|
+
{
|
|
731
|
+
locale,
|
|
732
|
+
messages: previewMessages,
|
|
733
|
+
theme: comparedTheme,
|
|
734
|
+
defaultColorScheme: effectiveComparisonScheme,
|
|
735
|
+
colorSchemeRootElement: () => document.getElementById(comparisonPreviewRootId) ?? void 0,
|
|
736
|
+
cssVariablesSelector: `#${comparisonPreviewRootId}`,
|
|
737
|
+
applyDocumentColorScheme: false,
|
|
738
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Paper, { withBorder: true, radius: "lg", p: { base: "xs", sm: "sm", md: "lg" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: "md", children: [
|
|
739
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Group, { justify: "space-between", align: "flex-start", wrap: "wrap", children: [
|
|
740
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: 4, children: [
|
|
741
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { fw: 700, children: copy.comparisonPreviewTitle }),
|
|
742
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { size: "sm", c: "dimmed", children: copy.comparisonPreviewDescription })
|
|
743
|
+
] }),
|
|
744
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Badge, { color: "violet", variant: "light", children: comparisonSummary.label })
|
|
745
|
+
] }),
|
|
746
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
747
|
+
ThemePreviewSurface,
|
|
748
|
+
{
|
|
749
|
+
preset: comparisonSummary,
|
|
750
|
+
colorScheme: effectiveComparisonScheme,
|
|
751
|
+
copy
|
|
752
|
+
}
|
|
753
|
+
)
|
|
754
|
+
] }) })
|
|
755
|
+
},
|
|
756
|
+
comparisonPreviewKey
|
|
757
|
+
) }) : null
|
|
758
|
+
] })
|
|
759
|
+
}
|
|
760
|
+
),
|
|
761
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
762
|
+
import_ReferenceSection.ReferenceSection,
|
|
763
|
+
{
|
|
764
|
+
title: copy.unsupportedTitle,
|
|
765
|
+
description: copy.unsupportedDescription,
|
|
766
|
+
tone: "supporting",
|
|
767
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: "md", children: [
|
|
768
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
769
|
+
import_StateBlock.StateBlock,
|
|
770
|
+
{
|
|
771
|
+
variant: "permission",
|
|
772
|
+
title: copy.doNotCreateTitle,
|
|
773
|
+
description: copy.doNotCreateDescription,
|
|
774
|
+
compact: true
|
|
775
|
+
}
|
|
776
|
+
),
|
|
777
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.SimpleGrid, { cols: { base: 1, md: 2 }, spacing: "md", children: [
|
|
778
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Paper, { withBorder: true, radius: "md", p: { base: "xs", sm: "sm", md: "md" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: 6, children: [
|
|
779
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { fw: 700, size: "sm", children: copy.approvedRemediation }),
|
|
780
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Code, { block: true, tabIndex: 0, role: "group", "aria-label": copy.approvedRemediation, children: [
|
|
781
|
+
"createPublicBrandTheme(",
|
|
782
|
+
`{ flatSurfaces: true, overrides: { primaryColor: 'blue' } }`,
|
|
783
|
+
")"
|
|
784
|
+
] })
|
|
785
|
+
] }) }),
|
|
786
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Paper, { withBorder: true, radius: "md", p: { base: "xs", sm: "sm", md: "md" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: 6, children: [
|
|
787
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { fw: 700, size: "sm", children: copy.prohibitedOwnership }),
|
|
788
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Code, { block: true, tabIndex: 0, role: "group", "aria-label": copy.prohibitedOwnership, children: "extendGdsTheme(...) / createTheme(...) / mergeMantineTheme(...)" })
|
|
789
|
+
] }) })
|
|
790
|
+
] })
|
|
791
|
+
] })
|
|
792
|
+
}
|
|
793
|
+
),
|
|
794
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ReferenceSection.ReferenceSection, { title: copy.accentContrastTitle, description: copy.accentContrastDescription, children: (colorScheme === "auto" ? ["light", "dark"] : [colorScheme]).map((scheme) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_GdsAccentContrastMatrix.GdsAccentContrastMatrix, { preset, colorScheme: scheme }, scheme)) }),
|
|
795
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ReferenceSection.ReferenceSection, { title: copy.designRuleProfileTitle, description: copy.designRuleProfileDescription, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_GdsDesignRuleProfilePanel.GdsDesignRuleProfilePanel, { preset }) })
|
|
796
|
+
] });
|
|
797
|
+
}
|
|
798
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
799
|
+
0 && (module.exports = {
|
|
800
|
+
ReferenceThemeExplorer
|
|
801
|
+
});
|