@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
package/dist/index.mjs
CHANGED
|
@@ -1,2633 +1,201 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
import {
|
|
137
|
-
|
|
138
|
-
} from "./
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
Center,
|
|
193
|
-
ChatInput,
|
|
194
|
-
ChatMessage,
|
|
195
|
-
ChatThread,
|
|
196
|
-
Checkbox,
|
|
197
|
-
ChoiceChip,
|
|
198
|
-
ClippedFlexChild,
|
|
199
|
-
ConsumerDashboardGrid,
|
|
200
|
-
ConsumerSection,
|
|
201
|
-
Container,
|
|
202
|
-
CountBadge,
|
|
203
|
-
CreatorThemeBoundary,
|
|
204
|
-
CreatorThemeDiagnostics,
|
|
205
|
-
CtaButtonGroup,
|
|
206
|
-
DataToolbar,
|
|
207
|
-
DetailFactsTable,
|
|
208
|
-
DetailProfileShell,
|
|
209
|
-
DocsPageShell,
|
|
210
|
-
EditorialCard,
|
|
211
|
-
EditorialHero,
|
|
212
|
-
EmptyState,
|
|
213
|
-
EvidencePanel,
|
|
214
|
-
FeatureBand,
|
|
215
|
-
FilterChipGroup,
|
|
216
|
-
FilterDrawer,
|
|
217
|
-
FitScoreChip,
|
|
218
|
-
FloatingActionPlacement,
|
|
219
|
-
FoodMenuSection,
|
|
220
|
-
GDS_DETAIL_FACTS_LABEL_COLUMN_PX,
|
|
221
|
-
GDS_DETAIL_FACT_IDS,
|
|
222
|
-
GDS_PICTOGRAM_BASE_STROKE,
|
|
223
|
-
GDS_PICTOGRAM_DISABLED_OPACITY,
|
|
224
|
-
GDS_PICTOGRAM_GRID,
|
|
225
|
-
GDS_PICTOGRAM_HERO_LAYERS,
|
|
226
|
-
GDS_PICTOGRAM_SCALE_PX,
|
|
227
|
-
GDS_PICTOGRAM_STROKE_BY_SCALE,
|
|
228
|
-
GDS_PICTOGRAM_TREATMENT_SCALE,
|
|
229
|
-
GDS_QUICK_START_ICON_BOX_PX,
|
|
230
|
-
GdsAdminDashboardTemplate,
|
|
231
|
-
GdsAnalyticsTemplate,
|
|
232
|
-
GdsAreaChart,
|
|
233
|
-
GdsBarChart,
|
|
234
|
-
GdsBenchmarkBarChart,
|
|
235
|
-
GdsBreadcrumbs,
|
|
236
|
-
GdsCalendarHeatmapChart,
|
|
237
|
-
GdsChartAxis,
|
|
238
|
-
GdsChartLegend,
|
|
239
|
-
GdsChartTooltip,
|
|
240
|
-
GdsCompareButton,
|
|
241
|
-
GdsContentPatternCatalog,
|
|
242
|
-
GdsCountBadge,
|
|
243
|
-
GdsCrudEditorTemplate,
|
|
244
|
-
GdsDesignHandoffCatalog,
|
|
245
|
-
GdsDirectionBoundary,
|
|
246
|
-
GdsDivergingBarChart,
|
|
247
|
-
GdsEmptyStateTemplate,
|
|
248
|
-
GdsErrorPageTemplate,
|
|
249
|
-
GdsFormattedCurrency,
|
|
250
|
-
GdsFormattedDate,
|
|
251
|
-
GdsFormattedNumber,
|
|
252
|
-
GdsGaugeChart,
|
|
253
|
-
GdsHistogramChart,
|
|
254
|
-
GdsLineChart,
|
|
255
|
-
GdsLocaleText,
|
|
256
|
-
GdsLogoLockup,
|
|
257
|
-
GdsLongitudinalChart,
|
|
258
|
-
GdsMaturityRadarChart,
|
|
259
|
-
GdsMediaFrame,
|
|
260
|
-
GdsMeter,
|
|
261
|
-
GdsNotificationBell,
|
|
262
|
-
GdsOverflowFrame,
|
|
263
|
-
GdsPageTemplateCatalog,
|
|
264
|
-
GdsPictogram,
|
|
265
|
-
GdsPlural,
|
|
266
|
-
GdsPublicEventTemplate,
|
|
267
|
-
GdsRadarChart,
|
|
268
|
-
GdsRatingDisplay,
|
|
269
|
-
GdsRatingScale,
|
|
270
|
-
GdsRelativeTime,
|
|
271
|
-
GdsRemovableTag,
|
|
272
|
-
GdsResourceManagerTemplate,
|
|
273
|
-
GdsResponsiveChartFrame,
|
|
274
|
-
GdsResponsiveVisibility,
|
|
275
|
-
GdsSafeBox,
|
|
276
|
-
GdsSegmentedControl,
|
|
277
|
-
GdsSettingsTemplate,
|
|
278
|
-
GdsSlider,
|
|
279
|
-
GdsSlopeChart,
|
|
280
|
-
GdsSparkline,
|
|
281
|
-
GdsStackedBarChart,
|
|
282
|
-
GdsSymmetryChart,
|
|
283
|
-
GdsWizardStepper,
|
|
284
|
-
Group,
|
|
285
|
-
InlineAlert,
|
|
286
|
-
InlineEmphasis,
|
|
287
|
-
InlineText,
|
|
288
|
-
LabelTag,
|
|
289
|
-
LabelText,
|
|
290
|
-
LastCheckedLabel,
|
|
291
|
-
LayeredSurfaceSlot,
|
|
292
|
-
ListItemSection,
|
|
293
|
-
Loader,
|
|
294
|
-
MapPanel,
|
|
295
|
-
MeaningBadge,
|
|
296
|
-
MediaCard,
|
|
297
|
-
MediaField,
|
|
298
|
-
MediaPreviewCard,
|
|
299
|
-
MediaWithFallback,
|
|
300
|
-
MetadataText,
|
|
301
|
-
MetricCard,
|
|
302
|
-
Modal,
|
|
303
|
-
MonospaceInputFrame,
|
|
304
|
-
MultiSelect,
|
|
305
|
-
NotificationCenterView,
|
|
306
|
-
NumberInput,
|
|
307
|
-
NumberStepper,
|
|
308
|
-
NumericCell,
|
|
309
|
-
OverflowContainer,
|
|
310
|
-
PROVIDER_IDENTITY_REGISTRY,
|
|
311
|
-
PageHeader,
|
|
312
|
-
PageTitle,
|
|
313
|
-
PasswordInput,
|
|
314
|
-
PeriodSelector,
|
|
315
|
-
PillBar,
|
|
316
|
-
PlaceholderPanel,
|
|
317
|
-
PlaybackSurface,
|
|
318
|
-
PriceEstimateLabel,
|
|
319
|
-
ProductCard,
|
|
320
|
-
Progress,
|
|
321
|
-
ProgressCard,
|
|
322
|
-
ProviderIdentityButton,
|
|
323
|
-
ProviderIdentityButtonGroup,
|
|
324
|
-
PublicBrandFooter,
|
|
325
|
-
PublicFlowShell,
|
|
326
|
-
PublicFoodCard,
|
|
327
|
-
PublicNav,
|
|
328
|
-
PublicProductCard,
|
|
329
|
-
PublicShell,
|
|
330
|
-
PublicSiteFooter,
|
|
331
|
-
QuickStartCard,
|
|
332
|
-
Radio,
|
|
333
|
-
ReferenceLinkGrid,
|
|
334
|
-
ReferenceLocaleNotice,
|
|
335
|
-
ReportingSection,
|
|
336
|
-
ResultSummary,
|
|
337
|
-
ScrollArea,
|
|
338
|
-
SearchableSelect,
|
|
339
|
-
SectionTitle,
|
|
340
|
-
Select,
|
|
341
|
-
SemanticInset,
|
|
342
|
-
SimpleGrid,
|
|
343
|
-
Slider,
|
|
344
|
-
SocialAuthButtons,
|
|
345
|
-
SoftChipGroup,
|
|
346
|
-
SortMenu,
|
|
347
|
-
Stack,
|
|
348
|
-
StatsSection,
|
|
349
|
-
StatusBadge,
|
|
350
|
-
StreamingIndicator,
|
|
351
|
-
Switch,
|
|
352
|
-
TRUST_BADGE_DEFINITIONS,
|
|
353
|
-
Table,
|
|
354
|
-
Tabs,
|
|
355
|
-
TextInput,
|
|
356
|
-
Textarea,
|
|
357
|
-
ThemeIcon,
|
|
358
|
-
Tooltip,
|
|
359
|
-
TrustBadge,
|
|
360
|
-
VisuallyHidden,
|
|
361
|
-
compareGdsLocaleString,
|
|
362
|
-
createGdsAccessAdapter,
|
|
363
|
-
createGdsAccessGateEvent,
|
|
364
|
-
createGdsAccessibilityEvidenceIndex,
|
|
365
|
-
createGdsContentExpansionReport,
|
|
366
|
-
createGdsMissingKeyTracker,
|
|
367
|
-
createGdsNotificationAuditEvent,
|
|
368
|
-
createGdsNotificationId,
|
|
369
|
-
createGdsPageTemplateEvent,
|
|
370
|
-
createGdsPictogramFamily,
|
|
371
|
-
createGdsStyleContract,
|
|
372
|
-
createGdsTextExpansionFixture,
|
|
373
|
-
formatGdsCurrency,
|
|
374
|
-
formatGdsDate,
|
|
375
|
-
formatGdsNumber,
|
|
376
|
-
formatGdsPlural,
|
|
377
|
-
formatGdsRelativeTime,
|
|
378
|
-
gdsActivityPictograms,
|
|
379
|
-
gdsPictogramUsageRules,
|
|
380
|
-
gdsStyle,
|
|
381
|
-
generateGdsDesignHandoffReport,
|
|
382
|
-
getGdsAccessGateActionPriority,
|
|
383
|
-
getGdsAccessGateReasons,
|
|
384
|
-
getGdsAccessGateStates,
|
|
385
|
-
getGdsAccessibilityEvidence,
|
|
386
|
-
getGdsAccessibilityEvidenceSummary,
|
|
387
|
-
getGdsActivityPictogramKeys,
|
|
388
|
-
getGdsBlockTypes,
|
|
389
|
-
getGdsContentPattern,
|
|
390
|
-
getGdsContentPatterns,
|
|
391
|
-
getGdsCopyTemplate,
|
|
392
|
-
getGdsCopyTemplates,
|
|
393
|
-
getGdsDesignComponentMappings,
|
|
394
|
-
getGdsDesignTokenMappings,
|
|
395
|
-
getGdsLayoutTemplate,
|
|
396
|
-
getGdsLayoutTemplates,
|
|
397
|
-
getGdsMaturityCapabilities,
|
|
398
|
-
getGdsMaturityCapability,
|
|
399
|
-
getGdsMaturitySummary,
|
|
400
|
-
getGdsNotificationLivePolicy,
|
|
401
|
-
getGdsPageTemplate,
|
|
402
|
-
getGdsPageTemplates,
|
|
403
|
-
getGdsRecommendedMaturityCapabilities,
|
|
404
|
-
getGdsTaskPattern,
|
|
405
|
-
getGdsTaskPatterns,
|
|
406
|
-
getProviderIdentityLabel,
|
|
407
|
-
getProviderIdentityPolicy,
|
|
408
|
-
getSupportedProviderIdentityIds,
|
|
409
|
-
isGdsActivityPictogramKey,
|
|
410
|
-
redactGdsAccessGateMetadata,
|
|
411
|
-
registerGdsBlock,
|
|
412
|
-
renderGdsCopyTemplate,
|
|
413
|
-
renderGdsLayout,
|
|
414
|
-
renderGdsLayoutWithDiagnostics,
|
|
415
|
-
resolveAccentPanelStyles,
|
|
416
|
-
resolveGdsAccessAdapterState,
|
|
417
|
-
resolveGdsAccessState,
|
|
418
|
-
resolveGdsActivityPictogramLabel,
|
|
419
|
-
resolveGdsLocale,
|
|
420
|
-
resolveGdsMessage,
|
|
421
|
-
sortGdsAccessGateActions,
|
|
422
|
-
sortGdsLocaleStrings,
|
|
423
|
-
useGdsDirection,
|
|
424
|
-
validateCreatorCss,
|
|
425
|
-
validateGdsAccessGateContract,
|
|
426
|
-
validateGdsAccessibilityEvidence,
|
|
427
|
-
validateGdsContentPatterns,
|
|
428
|
-
validateGdsCopyTemplate,
|
|
429
|
-
validateGdsDesignHandoffMappings,
|
|
430
|
-
validateGdsLayout,
|
|
431
|
-
validateGdsPageTemplates,
|
|
432
|
-
validateGdsTaskPatterns
|
|
433
|
-
} from "./chunk-MQDFB3AS.mjs";
|
|
434
|
-
import {
|
|
435
|
-
GDS_PIN_APPROXIMATE_DASH,
|
|
436
|
-
GDS_PIN_EMOJI_SCALE,
|
|
437
|
-
GDS_PIN_EMPHASIS_STROKE,
|
|
438
|
-
GDS_PIN_HEAD_CENTER_OFFSET,
|
|
439
|
-
GDS_PIN_ICON_SCALE,
|
|
440
|
-
GDS_PIN_SELECTED_SCALE,
|
|
441
|
-
GdsMapPinBadge
|
|
442
|
-
} from "./chunk-NTNVQZJU.mjs";
|
|
443
|
-
import {
|
|
444
|
-
ActionBar,
|
|
445
|
-
ChartTokenPanel,
|
|
446
|
-
FormField,
|
|
447
|
-
GDS_CHART_SERIES_COLORS,
|
|
448
|
-
GDS_CHART_SERIES_SLOTS,
|
|
449
|
-
GDS_LISTING_PICK_BADGE_FONT_SIZE_PX,
|
|
450
|
-
GDS_LISTING_PICK_BADGE_ICON_PX,
|
|
451
|
-
GDS_LISTING_PICK_BADGE_INSET_PX,
|
|
452
|
-
GDS_LISTING_PICK_BADGE_LINE_HEIGHT_PX,
|
|
453
|
-
GDS_LISTING_PICK_BADGE_PADDING_BLOCK_PX,
|
|
454
|
-
GDS_LISTING_PICK_BADGE_PADDING_INLINE_PX,
|
|
455
|
-
GDS_LISTING_TILE_SIZE_PX,
|
|
456
|
-
GdsBadge,
|
|
457
|
-
GdsBleed,
|
|
458
|
-
GdsBox,
|
|
459
|
-
GdsChart,
|
|
460
|
-
GdsCluster,
|
|
461
|
-
GdsColumnGrid,
|
|
462
|
-
GdsColumnGridItem,
|
|
463
|
-
GdsContainer,
|
|
464
|
-
GdsGeneratedThumbnail,
|
|
465
|
-
GdsGrid,
|
|
466
|
-
GdsInline,
|
|
467
|
-
GdsSidebar,
|
|
468
|
-
GdsSplit,
|
|
469
|
-
GdsStack,
|
|
470
|
-
GdsVocabulary,
|
|
471
|
-
ListingCard,
|
|
472
|
-
MAX_LISTING_CARD_ACTIONS,
|
|
473
|
-
ReferenceSection,
|
|
474
|
-
SectionPanel,
|
|
475
|
-
SemanticChartFrame,
|
|
476
|
-
SimpleDataTable,
|
|
477
|
-
createGdsOwnedContrastTokens,
|
|
478
|
-
createGdsVocabularyPack,
|
|
479
|
-
gdsBadgeAccentColors,
|
|
480
|
-
gdsBadgeAccentShades,
|
|
481
|
-
gdsCardDensityPaddingMap,
|
|
482
|
-
gdsCardGapMap,
|
|
483
|
-
gdsCardMediaRatioMap,
|
|
484
|
-
gdsCardSizePaddingMap,
|
|
485
|
-
gdsCardTitleOrderMap,
|
|
486
|
-
gdsChartSetATypeRegistry,
|
|
487
|
-
gdsChartSetBTypeRegistry,
|
|
488
|
-
gdsChartSetCTypeRegistry,
|
|
489
|
-
gdsChartTypeRegistry,
|
|
490
|
-
gdsDefaultChartLegend,
|
|
491
|
-
gdsGeneratedPaletteCssRefs,
|
|
492
|
-
gdsLocales,
|
|
493
|
-
gdsSeededRandom,
|
|
494
|
-
gdsSeriesPalette,
|
|
495
|
-
getGdsChartSeriesColor,
|
|
496
|
-
getGdsMessages,
|
|
497
|
-
getGdsOwnedContrastProps,
|
|
498
|
-
getGdsSeriesColor,
|
|
499
|
-
getSemanticActionConfig,
|
|
500
|
-
getSemanticActionLabel,
|
|
501
|
-
isGdsChartSetAType,
|
|
502
|
-
isGdsChartSetBType,
|
|
503
|
-
isGdsChartSetCType,
|
|
504
|
-
mergeGdsVocabularyPacks,
|
|
505
|
-
normalizeGdsResponsiveValue,
|
|
506
|
-
resolveGdsCardContract,
|
|
507
|
-
resolveGdsChartTokenColor,
|
|
508
|
-
resolveGdsGeneratedPaletteHex,
|
|
509
|
-
resolveGdsLayoutStyle,
|
|
510
|
-
resolveSemanticActionConfig,
|
|
511
|
-
validateGdsChartData
|
|
512
|
-
} from "./chunk-RMPMU4MB.mjs";
|
|
513
|
-
import {
|
|
514
|
-
GDS_PIN_SILHOUETTE_PATH,
|
|
515
|
-
GdsBadgeShapeCircle,
|
|
516
|
-
GdsBadgeShapeHexagon,
|
|
517
|
-
GdsBadgeShapePin,
|
|
518
|
-
GdsBadgeShapeRosette,
|
|
519
|
-
GdsBadgeShapeShield,
|
|
520
|
-
GdsBadgeShapeSquircle,
|
|
521
|
-
GdsBadgeShapes,
|
|
522
|
-
GdsBadgeStack,
|
|
523
|
-
GdsBadgeStackLayer,
|
|
524
|
-
MissingDataPrompt,
|
|
525
|
-
StateBlock,
|
|
526
|
-
isPresentationMode,
|
|
527
|
-
resolveSurfacePresentationStyles
|
|
528
|
-
} from "./chunk-SPPTDVJC.mjs";
|
|
529
|
-
import {
|
|
530
|
-
GdsIcon,
|
|
531
|
-
GdsIcons,
|
|
532
|
-
gdsIconRegistry,
|
|
533
|
-
gdsIconToneColor,
|
|
534
|
-
getGdsIconKeys,
|
|
535
|
-
getGdsIconMetadata,
|
|
536
|
-
getGdsIconToneColor,
|
|
537
|
-
isGdsIconKey
|
|
538
|
-
} from "./chunk-J66ITCXC.mjs";
|
|
539
|
-
import {
|
|
540
|
-
ko
|
|
541
|
-
} from "./chunk-PLJT4I7B.mjs";
|
|
542
|
-
import {
|
|
543
|
-
ru
|
|
544
|
-
} from "./chunk-RBXAJJB2.mjs";
|
|
545
|
-
import {
|
|
546
|
-
zh
|
|
547
|
-
} from "./chunk-V6SP5O4D.mjs";
|
|
548
|
-
import {
|
|
549
|
-
de
|
|
550
|
-
} from "./chunk-TVGDH5O5.mjs";
|
|
551
|
-
import {
|
|
552
|
-
es
|
|
553
|
-
} from "./chunk-J4TSXITU.mjs";
|
|
554
|
-
import {
|
|
555
|
-
fr
|
|
556
|
-
} from "./chunk-Z6XXK57E.mjs";
|
|
557
|
-
import {
|
|
558
|
-
he
|
|
559
|
-
} from "./chunk-GAPCKZGX.mjs";
|
|
560
|
-
import {
|
|
561
|
-
hu
|
|
562
|
-
} from "./chunk-CWMDWMYL.mjs";
|
|
563
|
-
import {
|
|
564
|
-
it
|
|
565
|
-
} from "./chunk-3UYDQTAZ.mjs";
|
|
566
|
-
import {
|
|
567
|
-
ja
|
|
568
|
-
} from "./chunk-FPDTLFIB.mjs";
|
|
569
|
-
import {
|
|
570
|
-
ar
|
|
571
|
-
} from "./chunk-EYRLICSG.mjs";
|
|
572
|
-
import {
|
|
573
|
-
en
|
|
574
|
-
} from "./chunk-D65VHUXK.mjs";
|
|
575
|
-
|
|
576
|
-
// src/GdsPinSystemReference.tsx
|
|
577
|
-
import { useMemo } from "react";
|
|
578
|
-
import { Code, Group as Group2, Stack as Stack2, Table as Table2, Text } from "@mantine/core";
|
|
579
|
-
import {
|
|
580
|
-
GDS_ACCENT_SHADES,
|
|
581
|
-
getGdsContrastRatio,
|
|
582
|
-
getGdsVibeThemeCssVariables,
|
|
583
|
-
resolveGdsAccentTokens,
|
|
584
|
-
useGdsAmbientTheme,
|
|
585
|
-
useGdsTranslation
|
|
586
|
-
} from "@sovereignsquad/gds-theme";
|
|
587
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
588
|
-
var DEFAULT_ACCENTS = ["ocean", "teal", "grape", "forest"];
|
|
589
|
-
function GdsPinSystemReference({
|
|
590
|
-
preset,
|
|
591
|
-
colorScheme,
|
|
592
|
-
accents = DEFAULT_ACCENTS
|
|
593
|
-
}) {
|
|
594
|
-
const { t } = useGdsTranslation();
|
|
595
|
-
const ambient = useGdsAmbientTheme();
|
|
596
|
-
const activePreset = preset ?? ambient.preset;
|
|
597
|
-
const activeScheme = colorScheme ?? ambient.colorScheme;
|
|
598
|
-
const rows = useMemo(() => {
|
|
599
|
-
const tokens = resolveGdsAccentTokens(void 0, activeScheme, activePreset);
|
|
600
|
-
const surface = getGdsVibeThemeCssVariables(activePreset, activeScheme)["--gds-bg-card"];
|
|
601
|
-
return accents.flatMap((accent) => GDS_ACCENT_SHADES.map((shade) => {
|
|
602
|
-
const value = tokens[`--gds-accent-${accent}-${shade}`];
|
|
603
|
-
const filled = getGdsContrastRatio("#ffffff", value);
|
|
604
|
-
const outline = getGdsContrastRatio(value, surface);
|
|
605
|
-
return { accent, shade, value, filled, outline };
|
|
606
|
-
}));
|
|
607
|
-
}, [accents, activeScheme, activePreset]);
|
|
608
|
-
return /* @__PURE__ */ jsxs(Stack2, { gap: "md", children: [
|
|
609
|
-
/* @__PURE__ */ jsxs(Stack2, { gap: "2xs", children: [
|
|
610
|
-
/* @__PURE__ */ jsx(Text, { fw: 700, children: "Anatomy \u2014 exactly two layers" }),
|
|
611
|
-
/* @__PURE__ */ jsx(Text, { size: "sm", children: "A pin is the shape and the icon. Nothing else. An earlier revision added a ring capsule and it was removed; the component keeps two layers so a consumer cannot end up compositing a third." }),
|
|
612
|
-
/* @__PURE__ */ jsxs(Group2, { gap: "lg", align: "center", children: [
|
|
613
|
-
/* @__PURE__ */ jsx(GdsMapPinBadge, { accent: "ocean", icon: "Location", label: "Outline mode", size: 56 }),
|
|
614
|
-
/* @__PURE__ */ jsx(GdsMapPinBadge, { accent: "ocean", icon: "Location", label: "Filled mode", size: 56, filled: true }),
|
|
615
|
-
/* @__PURE__ */ jsx(GdsMapPinBadge, { accent: "ocean", icon: "Location", label: "Emoji mode", size: 56, emoji: "\u{1F3CA}" })
|
|
616
|
-
] }),
|
|
617
|
-
/* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", children: "Outline: pin and icon share the accent. Filled: solid accent with an inverse icon that never reuses the accent. Emoji: a fixed dark-neutral disc with an accent ring \u2014 OS-rendered glyphs have colours GDS cannot control, so their legibility must not depend on the active accent." })
|
|
618
|
-
] }),
|
|
619
|
-
/* @__PURE__ */ jsxs(Stack2, { gap: "2xs", children: [
|
|
620
|
-
/* @__PURE__ */ jsx(Text, { fw: 700, children: "States \u2014 silhouette and scale, never the hue" }),
|
|
621
|
-
/* @__PURE__ */ jsxs(Text, { size: "sm", children: [
|
|
622
|
-
"The governing rule (issue 545): the fill belongs to the activity, so state is carried by silhouette and scale. Hover darkens the ",
|
|
623
|
-
/* @__PURE__ */ jsx("em", { children: "stroke" }),
|
|
624
|
-
" one step down the same accent\u2019s own ladder at weight 2.25; selection scales the whole marker by ",
|
|
625
|
-
GDS_PIN_SELECTED_SCALE,
|
|
626
|
-
" ",
|
|
627
|
-
"around the tail tip, so the anchored map point does not move; approximate location swaps the solid accent stroke for a dashed neutral one while the icon keeps the accent. No state ever repaints the category\u2019s own colour \u2014 a test enforces it."
|
|
628
|
-
] }),
|
|
629
|
-
/* @__PURE__ */ jsxs(Group2, { gap: "lg", align: "flex-end", children: [
|
|
630
|
-
/* @__PURE__ */ jsx(GdsMapPinBadge, { accent: "forest", icon: "Location", label: "Idle", size: 56, filled: true }),
|
|
631
|
-
/* @__PURE__ */ jsx(GdsMapPinBadge, { accent: "forest", icon: "Location", label: "Hovered", size: 56, filled: true, state: "hovered" }),
|
|
632
|
-
/* @__PURE__ */ jsx(GdsMapPinBadge, { accent: "forest", icon: "Location", label: "Selected", size: 56, filled: true, state: "selected" }),
|
|
633
|
-
/* @__PURE__ */ jsx(GdsMapPinBadge, { accent: "forest", icon: "Location", label: "Approximate location", size: 56, state: "approximate" })
|
|
634
|
-
] }),
|
|
635
|
-
/* @__PURE__ */ jsxs(Text, { size: "sm", c: "dimmed", children: [
|
|
636
|
-
"Saved is not a state: it is a user action with its own governed control, composed as",
|
|
637
|
-
" ",
|
|
638
|
-
/* @__PURE__ */ jsx(Code, { children: '<GdsSavedIndicator mode="corner" anchor={<GdsMapPinBadge \u2026/>} />' }),
|
|
639
|
-
" \u2014 a pin can be saved while hovered or selected."
|
|
640
|
-
] })
|
|
641
|
-
] }),
|
|
642
|
-
/* @__PURE__ */ jsxs(Stack2, { gap: "2xs", children: [
|
|
643
|
-
/* @__PURE__ */ jsx(Text, { fw: 700, children: "The centre is solved, not eyeballed" }),
|
|
644
|
-
/* @__PURE__ */ jsxs(Text, { size: "sm", children: [
|
|
645
|
-
"The icon is centred on the pin\u2019s own circle, whose centre sits one unit above the box centre in the 24-unit path space \u2014 so the offset is exactly ",
|
|
646
|
-
/* @__PURE__ */ jsx(Code, { children: "-1/24" }),
|
|
647
|
-
":"
|
|
648
|
-
] }),
|
|
649
|
-
/* @__PURE__ */ jsx(Code, { block: true, tabIndex: 0, role: "group", "aria-label": t("gds.docsCodeBlock.region", "Code"), children: `transform: ${GDS_PIN_HEAD_CENTER_OFFSET} scale(${GDS_PIN_ICON_SCALE})` }),
|
|
650
|
-
/* @__PURE__ */ jsxs(Text, { size: "sm", c: "dimmed", children: [
|
|
651
|
-
"The rule is \u201Ccentre on the pin\u2019s circle\u201D, not a number tuned until it looked right. The visible dome\u2019s midpoint is a ",
|
|
652
|
-
/* @__PURE__ */ jsx("em", { children: "different" }),
|
|
653
|
-
" point \u2014 centring on the dome would be a distinct deliberate choice, not a correction to this one. The icon scale is bounded at ",
|
|
654
|
-
GDS_PIN_ICON_SCALE,
|
|
655
|
-
": the widest shipped glyphs render past the circle above roughly 0.48."
|
|
656
|
-
] })
|
|
657
|
-
] }),
|
|
658
|
-
/* @__PURE__ */ jsxs(Stack2, { gap: "2xs", children: [
|
|
659
|
-
/* @__PURE__ */ jsx(Text, { fw: 700, children: "Accent \xD7 shade, measured live" }),
|
|
660
|
-
/* @__PURE__ */ jsxs(Text, { size: "sm", children: [
|
|
661
|
-
"Shades darken only. Lightening breaks the filled-mode white-on-accent guarantee \u2014 ",
|
|
662
|
-
/* @__PURE__ */ jsx(Code, { children: "teal" }),
|
|
663
|
-
" ",
|
|
664
|
-
"fails at only +4 lightness \u2014 so a theme wanting lighter categories declares a lighter",
|
|
665
|
-
" ",
|
|
666
|
-
/* @__PURE__ */ jsx("em", { children: "base" }),
|
|
667
|
-
", which the contrast gate then verifies."
|
|
668
|
-
] }),
|
|
669
|
-
/* @__PURE__ */ jsx(Table2.ScrollContainer, { minWidth: 520, children: /* @__PURE__ */ jsxs(Table2, { striped: true, withTableBorder: true, children: [
|
|
670
|
-
/* @__PURE__ */ jsxs(Table2.Caption, { children: [
|
|
671
|
-
"Contrast for ",
|
|
672
|
-
activePreset,
|
|
673
|
-
" in ",
|
|
674
|
-
activeScheme,
|
|
675
|
-
" mode, computed from resolved tokens \u2014 not written down."
|
|
676
|
-
] }),
|
|
677
|
-
/* @__PURE__ */ jsx(Table2.Thead, { children: /* @__PURE__ */ jsxs(Table2.Tr, { children: [
|
|
678
|
-
/* @__PURE__ */ jsx(Table2.Th, { scope: "col", children: "Accent" }),
|
|
679
|
-
/* @__PURE__ */ jsx(Table2.Th, { scope: "col", children: "Shade" }),
|
|
680
|
-
/* @__PURE__ */ jsx(Table2.Th, { scope: "col", children: "Pin" }),
|
|
681
|
-
/* @__PURE__ */ jsx(Table2.Th, { scope: "col", children: "Filled (icon on accent)" }),
|
|
682
|
-
/* @__PURE__ */ jsx(Table2.Th, { scope: "col", children: "Outline (accent on card)" })
|
|
683
|
-
] }) }),
|
|
684
|
-
/* @__PURE__ */ jsx(Table2.Tbody, { children: rows.map((row) => /* @__PURE__ */ jsxs(Table2.Tr, { children: [
|
|
685
|
-
/* @__PURE__ */ jsx(Table2.Th, { scope: "row", children: row.accent }),
|
|
686
|
-
/* @__PURE__ */ jsx(Table2.Td, { children: row.shade }),
|
|
687
|
-
/* @__PURE__ */ jsx(Table2.Td, { children: /* @__PURE__ */ jsx(GdsMapPinBadge, { accent: row.accent, shade: row.shade, icon: "Location", label: `${row.accent} ${row.shade}`, filled: true }) }),
|
|
688
|
-
/* @__PURE__ */ jsx(Table2.Td, { children: /* @__PURE__ */ jsx(
|
|
689
|
-
GdsBadge,
|
|
690
|
-
{
|
|
691
|
-
tone: (row.filled ?? 0) >= 4.5 ? "success" : "danger",
|
|
692
|
-
icon: (row.filled ?? 0) >= 4.5 ? "Success" : "Danger",
|
|
693
|
-
label: `${row.filled?.toFixed(2) ?? "\u2014"}:1 / 4.5`
|
|
694
|
-
}
|
|
695
|
-
) }),
|
|
696
|
-
/* @__PURE__ */ jsx(Table2.Td, { children: /* @__PURE__ */ jsxs(Text, { size: "sm", children: [
|
|
697
|
-
row.outline?.toFixed(2) ?? "\u2014",
|
|
698
|
-
":1"
|
|
699
|
-
] }) })
|
|
700
|
-
] }, `${row.accent}-${row.shade}`)) })
|
|
701
|
-
] }) }),
|
|
702
|
-
/* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", children: "Outline figures are reported, not enforced: no component renders an accent as text on a page, so gating that mode would fail the build for a combination nothing draws." })
|
|
703
|
-
] }),
|
|
704
|
-
/* @__PURE__ */ jsxs(Stack2, { gap: "2xs", children: [
|
|
705
|
-
/* @__PURE__ */ jsx(Text, { fw: 700, children: "Do not hand-compose a pin" }),
|
|
706
|
-
/* @__PURE__ */ jsxs(Text, { size: "sm", children: [
|
|
707
|
-
"The centring offset, icon scale and contrast guarantee are all solved together. A hand-built pin gets one of them wrong silently \u2014 the icon drifts off the circle, or the glyph clips, or the accent stops carrying its white icon. ",
|
|
708
|
-
/* @__PURE__ */ jsx(Code, { children: "label" }),
|
|
709
|
-
" is always consumer-supplied and never derived from an icon library\u2019s display name: Tabler\u2019s",
|
|
710
|
-
" ",
|
|
711
|
-
/* @__PURE__ */ jsx(Code, { children: "IconBallFootball" }),
|
|
712
|
-
" reads as \u201CBallFootball\u201D, which is not a category."
|
|
713
|
-
] })
|
|
714
|
-
] })
|
|
715
|
-
] });
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
// src/category-registry.ts
|
|
719
|
-
function resolveGdsCategoryBadgeIcon(category, iconStyle) {
|
|
720
|
-
if (iconStyle === "emoji" && category.emoji) {
|
|
721
|
-
return { mode: "emoji", emoji: category.emoji };
|
|
722
|
-
}
|
|
723
|
-
return { mode: "tabler", icon: category.icon };
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
// src/GdsGeneratedHero.tsx
|
|
727
|
-
import { cloneElement, isValidElement, useId, useMemo as useMemo2 } from "react";
|
|
728
|
-
import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
729
|
-
var ASPECT_RATIO_VIEWBOX = {
|
|
730
|
-
"21:9": { width: 630, height: 270 },
|
|
731
|
-
"16:9": { width: 640, height: 360 },
|
|
732
|
-
"3:1": { width: 600, height: 200 }
|
|
733
|
-
};
|
|
734
|
-
var isIconKey = (icon) => typeof icon === "string";
|
|
735
|
-
function renderIcon(icon) {
|
|
736
|
-
if (isIconKey(icon)) {
|
|
737
|
-
return /* @__PURE__ */ jsx2(GdsIcon, { icon, size: "100%", tone: "default" });
|
|
738
|
-
}
|
|
739
|
-
if (isValidElement(icon)) {
|
|
740
|
-
return cloneElement(icon, { stroke: 1.75 });
|
|
741
|
-
}
|
|
742
|
-
return icon;
|
|
743
|
-
}
|
|
744
|
-
function darkSurface(colorRef) {
|
|
745
|
-
return `color-mix(in srgb, ${colorRef} 30%, black)`;
|
|
746
|
-
}
|
|
747
|
-
var BADGE_SLOTS = {
|
|
748
|
-
large: [{ x: 0.85, y: 0.32 }],
|
|
749
|
-
medium: [
|
|
750
|
-
{ x: 0.14, y: 0.72 },
|
|
751
|
-
{ x: 0.52, y: 0.82 }
|
|
752
|
-
],
|
|
753
|
-
small: [
|
|
754
|
-
{ x: 0.34, y: 0.18 },
|
|
755
|
-
{ x: 0.7, y: 0.6 },
|
|
756
|
-
{ x: 0.94, y: 0.84 }
|
|
757
|
-
]
|
|
758
|
-
};
|
|
759
|
-
var SLOT_SIZE_FACTOR = { large: 0.32, medium: 0.2, small: 0.13 };
|
|
760
|
-
var SLOT_OPACITY = { large: 1, medium: 0.85, small: 0.6 };
|
|
761
|
-
function seededShuffle(items, next) {
|
|
762
|
-
const result = [...items];
|
|
763
|
-
for (let i = result.length - 1; i > 0; i -= 1) {
|
|
764
|
-
const j = Math.floor(next() * (i + 1));
|
|
765
|
-
[result[i], result[j]] = [result[j], result[i]];
|
|
766
|
-
}
|
|
767
|
-
return result;
|
|
768
|
-
}
|
|
769
|
-
function placeBadges(badges, seed) {
|
|
770
|
-
const next = gdsSeededRandom(`${seed}:badges`);
|
|
771
|
-
const capped = badges.slice(0, 6);
|
|
772
|
-
const bySize = {
|
|
773
|
-
large: capped.slice(0, 1),
|
|
774
|
-
medium: capped.slice(1, 3),
|
|
775
|
-
small: capped.slice(3, 6)
|
|
776
|
-
};
|
|
777
|
-
const placed = [];
|
|
778
|
-
Object.keys(BADGE_SLOTS).forEach((size) => {
|
|
779
|
-
const slots = seededShuffle(BADGE_SLOTS[size], next);
|
|
780
|
-
bySize[size].forEach((badge, index) => {
|
|
781
|
-
const slot = slots[index];
|
|
782
|
-
placed.push({ badge, size, x: slot.x, y: slot.y, jitterDeg: (next() - 0.5) * 10 });
|
|
783
|
-
});
|
|
784
|
-
});
|
|
785
|
-
return placed;
|
|
786
|
-
}
|
|
787
|
-
function computeMosaicTiles(seed, viewBoxWidth, viewBoxHeight) {
|
|
788
|
-
const next = gdsSeededRandom(`${seed}:mosaic`);
|
|
789
|
-
const columns = 9;
|
|
790
|
-
const rows = 4;
|
|
791
|
-
const cellWidth = viewBoxWidth / columns;
|
|
792
|
-
const cellHeight = viewBoxHeight / rows;
|
|
793
|
-
const tiles = [];
|
|
794
|
-
for (let row = 0; row < rows; row += 1) {
|
|
795
|
-
for (let col = 0; col < columns; col += 1) {
|
|
796
|
-
if (next() < 0.32) {
|
|
797
|
-
continue;
|
|
798
|
-
}
|
|
799
|
-
const inset = 0.08 + next() * 0.1;
|
|
800
|
-
tiles.push({
|
|
801
|
-
x: col * cellWidth + cellWidth * inset,
|
|
802
|
-
y: row * cellHeight + cellHeight * inset,
|
|
803
|
-
width: cellWidth * (1 - inset * 2),
|
|
804
|
-
height: cellHeight * (1 - inset * 2),
|
|
805
|
-
opacity: 0.05 + next() * 0.11,
|
|
806
|
-
usePrimary: next() < 0.5
|
|
807
|
-
});
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
return tiles;
|
|
811
|
-
}
|
|
812
|
-
function computeIconFieldPlacements(seed, count, viewBoxWidth, viewBoxHeight) {
|
|
813
|
-
const next = gdsSeededRandom(`${seed}:icon-field`);
|
|
814
|
-
return Array.from({ length: count }, () => ({
|
|
815
|
-
x: viewBoxWidth * (0.08 + next() * 0.84),
|
|
816
|
-
y: viewBoxHeight * (0.1 + next() * 0.8),
|
|
817
|
-
size: viewBoxHeight * (0.22 + next() * 0.16),
|
|
818
|
-
rotationDeg: (next() - 0.5) * 40
|
|
819
|
-
}));
|
|
820
|
-
}
|
|
821
|
-
function renderBackground(background, badges, seed, palette, viewBoxWidth, viewBoxHeight) {
|
|
822
|
-
if (background === "mosaic-abstract") {
|
|
823
|
-
const tiles = computeMosaicTiles(seed, viewBoxWidth, viewBoxHeight);
|
|
824
|
-
return /* @__PURE__ */ jsx2(Fragment, { children: tiles.map((tile, index) => /* @__PURE__ */ jsx2(
|
|
825
|
-
"rect",
|
|
826
|
-
{
|
|
827
|
-
x: tile.x,
|
|
828
|
-
y: tile.y,
|
|
829
|
-
width: tile.width,
|
|
830
|
-
height: tile.height,
|
|
831
|
-
rx: Math.min(tile.width, tile.height) * 0.12,
|
|
832
|
-
fill: tile.usePrimary ? palette.primary : palette.accent,
|
|
833
|
-
opacity: tile.opacity
|
|
834
|
-
},
|
|
835
|
-
index
|
|
836
|
-
)) });
|
|
837
|
-
}
|
|
838
|
-
if (background === "icon-field") {
|
|
839
|
-
const icons = badges.length > 0 ? badges : null;
|
|
840
|
-
if (!icons) {
|
|
841
|
-
return null;
|
|
842
|
-
}
|
|
843
|
-
const next = gdsSeededRandom(`${seed}:icon-field-pick`);
|
|
844
|
-
const placements = computeIconFieldPlacements(seed, Math.min(icons.length, 8), viewBoxWidth, viewBoxHeight);
|
|
845
|
-
return /* @__PURE__ */ jsx2(Fragment, { children: placements.map((placement, index) => {
|
|
846
|
-
const icon = icons[Math.floor(next() * icons.length)];
|
|
847
|
-
return /* @__PURE__ */ jsx2(
|
|
848
|
-
"g",
|
|
849
|
-
{
|
|
850
|
-
transform: `translate(${placement.x} ${placement.y}) rotate(${placement.rotationDeg}) scale(${placement.size / 24})`,
|
|
851
|
-
opacity: 0.1,
|
|
852
|
-
style: { color: "var(--gds-text-on-inverse, var(--mantine-color-white))" },
|
|
853
|
-
children: /* @__PURE__ */ jsx2("svg", { x: -12, y: -12, width: 24, height: 24, viewBox: "0 0 24 24", children: renderIcon(icon.icon) })
|
|
854
|
-
},
|
|
855
|
-
index
|
|
856
|
-
);
|
|
857
|
-
}) });
|
|
858
|
-
}
|
|
859
|
-
if (typeof background === "object" && background.type === "region-mosaic") {
|
|
860
|
-
return /* @__PURE__ */ jsx2(Fragment, { children: background.regions.map((region, index) => {
|
|
861
|
-
const weight = region.weight ?? 1;
|
|
862
|
-
return /* @__PURE__ */ jsx2(
|
|
863
|
-
"rect",
|
|
864
|
-
{
|
|
865
|
-
x: region.x0 * viewBoxWidth,
|
|
866
|
-
y: region.y0 * viewBoxHeight,
|
|
867
|
-
width: (region.x1 - region.x0) * viewBoxWidth,
|
|
868
|
-
height: (region.y1 - region.y0) * viewBoxHeight,
|
|
869
|
-
fill: palette.accent,
|
|
870
|
-
opacity: Math.min(0.85, 0.06 + weight * 0.05)
|
|
871
|
-
},
|
|
872
|
-
index
|
|
873
|
-
);
|
|
874
|
-
}) });
|
|
875
|
-
}
|
|
876
|
-
return null;
|
|
877
|
-
}
|
|
878
|
-
function GdsGeneratedHero({
|
|
879
|
-
seed,
|
|
880
|
-
paletteSource,
|
|
881
|
-
category,
|
|
882
|
-
shade,
|
|
883
|
-
colors,
|
|
884
|
-
tintWithBackground,
|
|
885
|
-
mixRatio,
|
|
886
|
-
background = "wash",
|
|
887
|
-
badges = [],
|
|
888
|
-
aspectRatio = "21:9",
|
|
889
|
-
label,
|
|
890
|
-
className,
|
|
891
|
-
style
|
|
892
|
-
}) {
|
|
893
|
-
const gradientId = useId();
|
|
894
|
-
const palette = useMemo2(
|
|
895
|
-
() => gdsGeneratedPaletteCssRefs({ paletteSource, category, shade, colors, tintWithBackground, mixRatio }),
|
|
896
|
-
[paletteSource, category, shade, colors, tintWithBackground, mixRatio]
|
|
897
|
-
);
|
|
898
|
-
const { width: viewBoxWidth, height: viewBoxHeight } = ASPECT_RATIO_VIEWBOX[aspectRatio];
|
|
899
|
-
const placedBadges = useMemo2(() => placeBadges(badges, seed), [badges, seed]);
|
|
900
|
-
const inverseColor = "var(--gds-text-on-inverse, var(--mantine-color-white))";
|
|
901
|
-
return /* @__PURE__ */ jsxs2(
|
|
902
|
-
"div",
|
|
903
|
-
{
|
|
904
|
-
"data-gds-generated-hero": "",
|
|
905
|
-
role: "group",
|
|
906
|
-
"aria-label": label,
|
|
907
|
-
className,
|
|
908
|
-
style: {
|
|
909
|
-
position: "relative",
|
|
910
|
-
aspectRatio: aspectRatio.replace(":", " / "),
|
|
911
|
-
overflow: "hidden",
|
|
912
|
-
borderRadius: "var(--mantine-radius-md, 12px)",
|
|
913
|
-
...style
|
|
914
|
-
},
|
|
915
|
-
children: [
|
|
916
|
-
/* @__PURE__ */ jsxs2(
|
|
917
|
-
"svg",
|
|
918
|
-
{
|
|
919
|
-
viewBox: `0 0 ${viewBoxWidth} ${viewBoxHeight}`,
|
|
920
|
-
preserveAspectRatio: "xMidYMid slice",
|
|
921
|
-
"aria-hidden": "true",
|
|
922
|
-
style: { position: "absolute", inset: 0, width: "100%", height: "100%", display: "block" },
|
|
923
|
-
children: [
|
|
924
|
-
/* @__PURE__ */ jsx2("defs", { children: /* @__PURE__ */ jsxs2("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "1", y2: "1", children: [
|
|
925
|
-
/* @__PURE__ */ jsx2("stop", { offset: "0%", stopColor: palette.primary }),
|
|
926
|
-
/* @__PURE__ */ jsx2("stop", { offset: "100%", stopColor: darkSurface(palette.primary) })
|
|
927
|
-
] }) }),
|
|
928
|
-
/* @__PURE__ */ jsx2("rect", { width: viewBoxWidth, height: viewBoxHeight, fill: `url(#${gradientId})` }),
|
|
929
|
-
renderBackground(background, badges, seed, palette, viewBoxWidth, viewBoxHeight)
|
|
930
|
-
]
|
|
931
|
-
}
|
|
932
|
-
),
|
|
933
|
-
placedBadges.map(({ badge, size, x, y, jitterDeg }) => {
|
|
934
|
-
const boxSize = viewBoxHeight * SLOT_SIZE_FACTOR[size];
|
|
935
|
-
const BadgeTag = badge.onSelect ? "button" : "span";
|
|
936
|
-
return /* @__PURE__ */ jsx2(
|
|
937
|
-
BadgeTag,
|
|
938
|
-
{
|
|
939
|
-
"data-gds-generated-hero-badge": size,
|
|
940
|
-
type: badge.onSelect ? "button" : void 0,
|
|
941
|
-
onClick: badge.onSelect ? () => badge.onSelect?.(badge.key) : void 0,
|
|
942
|
-
role: badge.onSelect ? void 0 : "img",
|
|
943
|
-
"aria-label": badge.label,
|
|
944
|
-
title: badge.onSelect ? void 0 : badge.label,
|
|
945
|
-
style: {
|
|
946
|
-
position: "absolute",
|
|
947
|
-
insetInlineStart: `${x * 100}%`,
|
|
948
|
-
insetBlockStart: `${y * 100}%`,
|
|
949
|
-
transform: `translate(-50%, -50%) rotate(${jitterDeg}deg)`,
|
|
950
|
-
width: boxSize,
|
|
951
|
-
height: boxSize,
|
|
952
|
-
display: "inline-flex",
|
|
953
|
-
alignItems: "center",
|
|
954
|
-
justifyContent: "center",
|
|
955
|
-
borderRadius: "50%",
|
|
956
|
-
background: darkSurface(palette.accent),
|
|
957
|
-
color: inverseColor,
|
|
958
|
-
opacity: SLOT_OPACITY[size],
|
|
959
|
-
boxShadow: `0 2px 10px ${darkSurface(palette.primary)}`,
|
|
960
|
-
border: "none",
|
|
961
|
-
padding: 0,
|
|
962
|
-
font: badge.onSelect ? "inherit" : void 0,
|
|
963
|
-
cursor: badge.onSelect ? "pointer" : void 0
|
|
964
|
-
},
|
|
965
|
-
children: /* @__PURE__ */ jsx2("span", { "aria-hidden": "true", style: { width: "55%", height: "55%", display: "inline-flex" }, children: renderIcon(badge.icon) })
|
|
966
|
-
},
|
|
967
|
-
badge.key
|
|
968
|
-
);
|
|
969
|
-
})
|
|
970
|
-
]
|
|
971
|
-
}
|
|
972
|
-
);
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
// src/GdsSavedIndicator.tsx
|
|
976
|
-
import { ActionIcon as ActionIcon2 } from "@mantine/core";
|
|
977
|
-
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
978
|
-
function GdsSavedIndicator({
|
|
979
|
-
saved,
|
|
980
|
-
saveLabel,
|
|
981
|
-
unsaveLabel,
|
|
982
|
-
onSaveChange,
|
|
983
|
-
mode = "button",
|
|
984
|
-
disabled,
|
|
985
|
-
anchor,
|
|
986
|
-
anchorSize = "2.5em"
|
|
987
|
-
}) {
|
|
988
|
-
const size = `var(--gds-control-height-${mode === "corner" ? "sm" : "md"})`;
|
|
989
|
-
const control = /* @__PURE__ */ jsx3(
|
|
990
|
-
ActionIcon2,
|
|
991
|
-
{
|
|
992
|
-
variant: saved ? "filled" : "default",
|
|
993
|
-
"aria-pressed": saved,
|
|
994
|
-
"aria-label": saved ? unsaveLabel : saveLabel,
|
|
995
|
-
disabled,
|
|
996
|
-
onClick: () => onSaveChange?.(!saved),
|
|
997
|
-
radius: "xl",
|
|
998
|
-
"data-gds-saved-indicator": mode,
|
|
999
|
-
style: { width: size, height: size, minWidth: size },
|
|
1000
|
-
children: /* @__PURE__ */ jsx3(GdsIcon, { icon: "Favorite", size: mode === "corner" ? "xs" : "sm" })
|
|
1001
|
-
}
|
|
1002
|
-
);
|
|
1003
|
-
if (mode !== "corner" || !anchor) return control;
|
|
1004
|
-
return /* @__PURE__ */ jsxs3(GdsBadgeStack, { size: anchorSize, label: saved ? unsaveLabel : saveLabel, children: [
|
|
1005
|
-
/* @__PURE__ */ jsx3(GdsBadgeStackLayer, { cutout: "top-end", children: anchor }),
|
|
1006
|
-
/* @__PURE__ */ jsx3(GdsBadgeStackLayer, { corner: "top-end", scale: 0.45, children: control })
|
|
1007
|
-
] });
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
// src/GdsViewportFrame.tsx
|
|
1011
|
-
import { Paper, Stack as Stack3, Text as Text2 } from "@mantine/core";
|
|
1012
|
-
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1013
|
-
var FRAME_WIDTHS = {
|
|
1014
|
-
compact: "22.5rem",
|
|
1015
|
-
medium: "48rem",
|
|
1016
|
-
expanded: "64rem"
|
|
1017
|
-
};
|
|
1018
|
-
function GdsViewportFrame({
|
|
1019
|
-
width = "compact",
|
|
1020
|
-
height = "26rem",
|
|
1021
|
-
label,
|
|
1022
|
-
children
|
|
1023
|
-
}) {
|
|
1024
|
-
return /* @__PURE__ */ jsxs4(Stack3, { gap: "xs", align: "flex-start", children: [
|
|
1025
|
-
/* @__PURE__ */ jsx4(
|
|
1026
|
-
Paper,
|
|
1027
|
-
{
|
|
1028
|
-
withBorder: true,
|
|
1029
|
-
radius: "md",
|
|
1030
|
-
"data-gds-viewport-frame": width,
|
|
1031
|
-
style: {
|
|
1032
|
-
contain: "layout paint",
|
|
1033
|
-
position: "relative",
|
|
1034
|
-
overflow: "hidden",
|
|
1035
|
-
width: FRAME_WIDTHS[width],
|
|
1036
|
-
maxWidth: "100%",
|
|
1037
|
-
height
|
|
1038
|
-
},
|
|
1039
|
-
children: /* @__PURE__ */ jsx4("div", { style: { position: "absolute", inset: 0, overflowY: "auto" }, children })
|
|
1040
|
-
}
|
|
1041
|
-
),
|
|
1042
|
-
label ? /* @__PURE__ */ jsx4(Text2, { size: "xs", c: "dimmed", children: label }) : null
|
|
1043
|
-
] });
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
// src/GdsMapBasemapWash.tsx
|
|
1047
|
-
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1048
|
-
var GDS_MAP_WASH_TINT = 0.28;
|
|
1049
|
-
var GDS_MAP_WASH_SATURATION = 0.35;
|
|
1050
|
-
var washStyle = (tint) => ({
|
|
1051
|
-
position: "absolute",
|
|
1052
|
-
inset: 0,
|
|
1053
|
-
pointerEvents: "none",
|
|
1054
|
-
// Uses the live var(), not a pre-resolved colour, so a theme switch re-resolves it.
|
|
1055
|
-
background: `color-mix(in srgb, var(--gds-vibe-canvas, var(--gds-bg-canvas)) ${Math.round(tint * 100)}%, transparent)`,
|
|
1056
|
-
backdropFilter: `saturate(${GDS_MAP_WASH_SATURATION})`,
|
|
1057
|
-
// Below Leaflet's overlay panes (zIndex 700) so popups/markers stay un-washed.
|
|
1058
|
-
zIndex: 450
|
|
1059
|
-
});
|
|
1060
|
-
function GdsMapBasemapWash({ children, tint = GDS_MAP_WASH_TINT }) {
|
|
1061
|
-
if (children === void 0 || children === null || children === false) return null;
|
|
1062
|
-
return /* @__PURE__ */ jsxs5("div", { "data-gds-map-basemap-wash-host": true, style: { position: "relative" }, children: [
|
|
1063
|
-
children,
|
|
1064
|
-
/* @__PURE__ */ jsx5("div", { "data-gds-map-basemap-wash": true, "aria-hidden": true, style: washStyle(tint) })
|
|
1065
|
-
] });
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
// src/GdsMapFilterRail.tsx
|
|
1069
|
-
import { useEffect, useRef } from "react";
|
|
1070
|
-
import { Box as Box2, Group as Group3 } from "@mantine/core";
|
|
1071
|
-
import { useGdsTranslation as useGdsTranslation2 } from "@sovereignsquad/gds-theme";
|
|
1072
|
-
import { Fragment as Fragment2, jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1073
|
-
var ALL_VALUE = "__gds-map-filter-all__";
|
|
1074
|
-
var withCount = (label, count) => count === void 0 ? label : /* @__PURE__ */ jsxs6(Fragment2, { children: [
|
|
1075
|
-
label,
|
|
1076
|
-
" \xB7 ",
|
|
1077
|
-
count
|
|
1078
|
-
] });
|
|
1079
|
-
function GdsMapFilterRail({
|
|
1080
|
-
options,
|
|
1081
|
-
value,
|
|
1082
|
-
onChange,
|
|
1083
|
-
ariaLabel,
|
|
1084
|
-
allLabel: allLabelProp,
|
|
1085
|
-
onHeightChange
|
|
1086
|
-
}) {
|
|
1087
|
-
const { t } = useGdsTranslation2();
|
|
1088
|
-
const allLabel = allLabelProp ?? t("gds.gdsMapFilterRail.allLabel", "All");
|
|
1089
|
-
const hostRef = useRef(null);
|
|
1090
|
-
useEffect(() => {
|
|
1091
|
-
if (!onHeightChange || !hostRef.current) return void 0;
|
|
1092
|
-
const host = hostRef.current;
|
|
1093
|
-
onHeightChange(host.getBoundingClientRect().height);
|
|
1094
|
-
const observer = new ResizeObserver(() => onHeightChange(host.getBoundingClientRect().height));
|
|
1095
|
-
observer.observe(host);
|
|
1096
|
-
return () => observer.disconnect();
|
|
1097
|
-
}, [onHeightChange]);
|
|
1098
|
-
const selectedValue = value ?? ALL_VALUE;
|
|
1099
|
-
const total = options.length > 0 && options.every((o) => o.count !== void 0) ? options.reduce((sum, o) => sum + (o.count ?? 0), 0) : void 0;
|
|
1100
|
-
const check = /* @__PURE__ */ jsx6(GdsIcon, { icon: "Success", size: "xs", tone: "default" });
|
|
1101
|
-
const decorated = (id, label) => selectedValue === id ? /* @__PURE__ */ jsxs6(Group3, { gap: 4, wrap: "nowrap", component: "span", children: [
|
|
1102
|
-
check,
|
|
1103
|
-
label
|
|
1104
|
-
] }) : label;
|
|
1105
|
-
const railOptions = [
|
|
1106
|
-
// "All" always renders first, even with zero options.
|
|
1107
|
-
{ value: ALL_VALUE, label: decorated(ALL_VALUE, withCount(allLabel, total)) },
|
|
1108
|
-
...options.map((option) => ({
|
|
1109
|
-
value: option.id,
|
|
1110
|
-
label: decorated(option.id, withCount(option.label, option.count))
|
|
1111
|
-
}))
|
|
1112
|
-
];
|
|
1113
|
-
return /* @__PURE__ */ jsx6(Box2, { ref: hostRef, "data-gds-map-filter-rail": true, children: /* @__PURE__ */ jsx6(
|
|
1114
|
-
PillBar,
|
|
1115
|
-
{
|
|
1116
|
-
ariaLabel,
|
|
1117
|
-
options: railOptions,
|
|
1118
|
-
value: selectedValue,
|
|
1119
|
-
onChange: (next) => onChange(next === ALL_VALUE ? null : next)
|
|
1120
|
-
}
|
|
1121
|
-
) });
|
|
1122
|
-
}
|
|
1123
|
-
|
|
1124
|
-
// src/GdsMapPinPreviewCard.tsx
|
|
1125
|
-
import { Box as Box3, CloseButton, Group as Group4, Paper as Paper2, Skeleton, Stack as Stack4, Text as Text3, Title } from "@mantine/core";
|
|
1126
|
-
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1127
|
-
var SURFACE_SHADOW = "var(--gds-elevation-sheet, var(--mantine-shadow-lg))";
|
|
1128
|
-
function PreviewSkeleton() {
|
|
1129
|
-
return /* @__PURE__ */ jsxs7(Stack4, { gap: "sm", children: [
|
|
1130
|
-
/* @__PURE__ */ jsx7(Skeleton, { height: 140, radius: "md" }),
|
|
1131
|
-
/* @__PURE__ */ jsx7(Skeleton, { height: 24, width: "70%", radius: "md" }),
|
|
1132
|
-
/* @__PURE__ */ jsx7(Skeleton, { height: 14, width: "45%", radius: "md" }),
|
|
1133
|
-
/* @__PURE__ */ jsx7(Skeleton, { height: 14, width: "100%", radius: "md" }),
|
|
1134
|
-
/* @__PURE__ */ jsx7(Skeleton, { height: 44, radius: "md" })
|
|
1135
|
-
] });
|
|
1136
|
-
}
|
|
1137
|
-
function GdsMapPinPreviewCard({
|
|
1138
|
-
title,
|
|
1139
|
-
category: categoryProp,
|
|
1140
|
-
activity,
|
|
1141
|
-
neighbourhood,
|
|
1142
|
-
summary,
|
|
1143
|
-
audience: audienceProp,
|
|
1144
|
-
ageRange,
|
|
1145
|
-
trust,
|
|
1146
|
-
priceEstimate,
|
|
1147
|
-
lastChecked,
|
|
1148
|
-
thumbnailSeed,
|
|
1149
|
-
categories,
|
|
1150
|
-
primaryAction,
|
|
1151
|
-
saved,
|
|
1152
|
-
saveLabel,
|
|
1153
|
-
unsaveLabel,
|
|
1154
|
-
onSaveChange,
|
|
1155
|
-
onClose,
|
|
1156
|
-
closeLabel,
|
|
1157
|
-
loading = false
|
|
1158
|
-
}) {
|
|
1159
|
-
const hasMedia = Boolean(thumbnailSeed && categories && categories.length > 0);
|
|
1160
|
-
const hasEstimate = Boolean(priceEstimate || lastChecked);
|
|
1161
|
-
const hasSave = Boolean(saveLabel && unsaveLabel);
|
|
1162
|
-
const category = categoryProp ?? activity;
|
|
1163
|
-
const audience = audienceProp ?? ageRange;
|
|
1164
|
-
const meta = [category, neighbourhood].filter((part) => part !== void 0 && part !== null);
|
|
1165
|
-
return /* @__PURE__ */ jsx7(
|
|
1166
|
-
Paper2,
|
|
1167
|
-
{
|
|
1168
|
-
withBorder: true,
|
|
1169
|
-
radius: "lg",
|
|
1170
|
-
p: "md",
|
|
1171
|
-
"data-gds-map-pin-preview-card": true,
|
|
1172
|
-
style: { boxShadow: SURFACE_SHADOW, maxWidth: 360 },
|
|
1173
|
-
children: loading ? /* @__PURE__ */ jsx7(PreviewSkeleton, {}) : /* @__PURE__ */ jsxs7(Stack4, { gap: "sm", children: [
|
|
1174
|
-
hasMedia ? /* @__PURE__ */ jsxs7(Box3, { style: { position: "relative" }, children: [
|
|
1175
|
-
/* @__PURE__ */ jsx7(
|
|
1176
|
-
GdsGeneratedThumbnail,
|
|
1177
|
-
{
|
|
1178
|
-
seed: thumbnailSeed,
|
|
1179
|
-
categories,
|
|
1180
|
-
aspectRatio: "16:9",
|
|
1181
|
-
badges: "none"
|
|
1182
|
-
}
|
|
1183
|
-
),
|
|
1184
|
-
onClose && closeLabel ? /* @__PURE__ */ jsx7(
|
|
1185
|
-
CloseButton,
|
|
1186
|
-
{
|
|
1187
|
-
"aria-label": closeLabel,
|
|
1188
|
-
onClick: onClose,
|
|
1189
|
-
radius: "xl",
|
|
1190
|
-
size: "lg",
|
|
1191
|
-
variant: "filled",
|
|
1192
|
-
style: { position: "absolute", top: "var(--mantine-spacing-xs)", right: "var(--mantine-spacing-xs)" }
|
|
1193
|
-
}
|
|
1194
|
-
) : null
|
|
1195
|
-
] }) : onClose && closeLabel ? /* @__PURE__ */ jsx7(Group4, { justify: "flex-end", children: /* @__PURE__ */ jsx7(CloseButton, { "aria-label": closeLabel, onClick: onClose, radius: "xl", size: "lg" }) }) : null,
|
|
1196
|
-
/* @__PURE__ */ jsxs7(Stack4, { gap: 4, children: [
|
|
1197
|
-
/* @__PURE__ */ jsx7(Title, { order: 3, size: "h4", children: title }),
|
|
1198
|
-
meta.length > 0 ? /* @__PURE__ */ jsx7(Text3, { size: "sm", c: "dimmed", "data-gds-map-pin-preview-meta": true, children: meta.map((part, index) => /* @__PURE__ */ jsxs7("span", { children: [
|
|
1199
|
-
index > 0 ? " \xB7 " : "",
|
|
1200
|
-
part
|
|
1201
|
-
] }, index)) }) : null
|
|
1202
|
-
] }),
|
|
1203
|
-
summary ? /* @__PURE__ */ jsx7(Text3, { size: "sm", children: summary }) : null,
|
|
1204
|
-
audience || trust ? /* @__PURE__ */ jsxs7(Group4, { gap: "xs", children: [
|
|
1205
|
-
audience ? /* @__PURE__ */ jsx7(GdsBadge, { tone: "neutral", label: audience }) : null,
|
|
1206
|
-
trust ? /* @__PURE__ */ jsx7(MeaningBadge, { variant: trust.variant, label: trust.label }) : null
|
|
1207
|
-
] }) : null,
|
|
1208
|
-
hasEstimate ? /* @__PURE__ */ jsx7(Paper2, { withBorder: true, radius: "md", p: "sm", "data-gds-map-pin-preview-estimate": true, children: /* @__PURE__ */ jsxs7(Stack4, { gap: 2, children: [
|
|
1209
|
-
priceEstimate ? /* @__PURE__ */ jsx7(Text3, { size: "sm", fw: 600, children: priceEstimate }) : null,
|
|
1210
|
-
lastChecked ? /* @__PURE__ */ jsx7(Text3, { size: "xs", c: "dimmed", children: lastChecked }) : null
|
|
1211
|
-
] }) }) : null,
|
|
1212
|
-
primaryAction || hasSave ? /* @__PURE__ */ jsxs7(Group4, { gap: "xs", wrap: "nowrap", align: "stretch", children: [
|
|
1213
|
-
primaryAction ? /* @__PURE__ */ jsx7(Box3, { style: { flex: 1 }, children: primaryAction }) : null,
|
|
1214
|
-
hasSave ? /* @__PURE__ */ jsx7(
|
|
1215
|
-
GdsSavedIndicator,
|
|
1216
|
-
{
|
|
1217
|
-
saved: Boolean(saved),
|
|
1218
|
-
saveLabel,
|
|
1219
|
-
unsaveLabel,
|
|
1220
|
-
onSaveChange
|
|
1221
|
-
}
|
|
1222
|
-
) : null
|
|
1223
|
-
] }) : null
|
|
1224
|
-
] })
|
|
1225
|
-
}
|
|
1226
|
-
);
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
// src/GdsGeneratedAvatar.tsx
|
|
1230
|
-
import { useId as useId2, useMemo as useMemo3 } from "react";
|
|
1231
|
-
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1232
|
-
function gdsAvatarInitials(name) {
|
|
1233
|
-
const words = name.trim().split(/\s+/).filter(Boolean);
|
|
1234
|
-
if (words.length === 0) return "";
|
|
1235
|
-
const first = [...words[0]][0] ?? "";
|
|
1236
|
-
const last = words.length > 1 ? [...words[words.length - 1]][0] ?? "" : "";
|
|
1237
|
-
return (first + last).toLocaleUpperCase();
|
|
1238
|
-
}
|
|
1239
|
-
function GdsGeneratedAvatar({
|
|
1240
|
-
name,
|
|
1241
|
-
seed,
|
|
1242
|
-
size = "2.5em",
|
|
1243
|
-
paletteSource,
|
|
1244
|
-
category,
|
|
1245
|
-
shade,
|
|
1246
|
-
colors,
|
|
1247
|
-
className,
|
|
1248
|
-
style
|
|
1249
|
-
}) {
|
|
1250
|
-
const gradientId = useId2();
|
|
1251
|
-
const palette = useMemo3(
|
|
1252
|
-
() => gdsGeneratedPaletteCssRefs({ paletteSource, category, shade, colors }),
|
|
1253
|
-
[paletteSource, category, shade, colors]
|
|
1254
|
-
);
|
|
1255
|
-
const identity = seed ?? name;
|
|
1256
|
-
const angle = useMemo3(() => Math.round(gdsSeededRandom(identity)() * 360), [identity]);
|
|
1257
|
-
const initials = gdsAvatarInitials(name);
|
|
1258
|
-
const rad = angle * Math.PI / 180;
|
|
1259
|
-
const [x2, y2] = [Math.round(50 + Math.cos(rad) * 50), Math.round(50 + Math.sin(rad) * 50)];
|
|
1260
|
-
const [x1, y1] = [100 - x2, 100 - y2];
|
|
1261
|
-
return /* @__PURE__ */ jsx8(
|
|
1262
|
-
"span",
|
|
1263
|
-
{
|
|
1264
|
-
"data-gds-generated-avatar": "",
|
|
1265
|
-
role: "img",
|
|
1266
|
-
"aria-label": name,
|
|
1267
|
-
className,
|
|
1268
|
-
style: { display: "inline-block", width: size, height: size, borderRadius: "50%", overflow: "hidden", ...style },
|
|
1269
|
-
children: /* @__PURE__ */ jsxs8("svg", { viewBox: "0 0 48 48", "aria-hidden": "true", style: { display: "block", width: "100%", height: "100%" }, children: [
|
|
1270
|
-
/* @__PURE__ */ jsx8("defs", { children: /* @__PURE__ */ jsxs8("linearGradient", { id: gradientId, x1: `${x1}%`, y1: `${y1}%`, x2: `${x2}%`, y2: `${y2}%`, children: [
|
|
1271
|
-
/* @__PURE__ */ jsx8("stop", { offset: "0%", stopColor: palette.primary }),
|
|
1272
|
-
/* @__PURE__ */ jsx8("stop", { offset: "100%", stopColor: palette.accent })
|
|
1273
|
-
] }) }),
|
|
1274
|
-
/* @__PURE__ */ jsx8("rect", { width: "48", height: "48", fill: `url(#${gradientId})` }),
|
|
1275
|
-
initials ? /* @__PURE__ */ jsx8(
|
|
1276
|
-
"text",
|
|
1277
|
-
{
|
|
1278
|
-
x: "24",
|
|
1279
|
-
y: "25",
|
|
1280
|
-
textAnchor: "middle",
|
|
1281
|
-
dominantBaseline: "central",
|
|
1282
|
-
fontFamily: "var(--mantine-font-family, sans-serif)",
|
|
1283
|
-
fontWeight: 600,
|
|
1284
|
-
fontSize: initials.length > 1 ? 17 : 20,
|
|
1285
|
-
fill: "var(--gds-text-on-inverse, var(--mantine-color-white, #ffffff))",
|
|
1286
|
-
children: initials
|
|
1287
|
-
}
|
|
1288
|
-
) : null
|
|
1289
|
-
] })
|
|
1290
|
-
}
|
|
1291
|
-
);
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
// src/GdsIconBadge.tsx
|
|
1295
|
-
import { resolveGdsAccentTokens as resolveGdsAccentTokens2 } from "@sovereignsquad/gds-theme";
|
|
1296
|
-
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
1297
|
-
var resolvedAccentTokens = resolveGdsAccentTokens2(void 0, "light");
|
|
1298
|
-
var accentBackground = (accent, shade) => `var(--gds-accent-${accent}-${shade}, ${resolvedAccentTokens[`--gds-accent-${accent}-${shade}`]})`;
|
|
1299
|
-
var accentForeground = (accent) => `var(--gds-accent-${accent}-on, #ffffff)`;
|
|
1300
|
-
var isIconKey2 = (icon) => typeof icon === "string";
|
|
1301
|
-
function GdsIconBadge({ accent, shade = "base", icon, label, size = "1.5em", className, style }) {
|
|
1302
|
-
const fg = accentForeground(accent);
|
|
1303
|
-
return /* @__PURE__ */ jsx9(
|
|
1304
|
-
"span",
|
|
1305
|
-
{
|
|
1306
|
-
"data-gds-icon-badge": "",
|
|
1307
|
-
role: label ? "img" : void 0,
|
|
1308
|
-
"aria-label": label || void 0,
|
|
1309
|
-
"aria-hidden": label ? void 0 : true,
|
|
1310
|
-
className,
|
|
1311
|
-
style: {
|
|
1312
|
-
display: "inline-flex",
|
|
1313
|
-
alignItems: "center",
|
|
1314
|
-
justifyContent: "center",
|
|
1315
|
-
width: size,
|
|
1316
|
-
height: size,
|
|
1317
|
-
flexShrink: 0,
|
|
1318
|
-
borderRadius: "50%",
|
|
1319
|
-
background: accentBackground(accent, shade),
|
|
1320
|
-
color: fg,
|
|
1321
|
-
...style
|
|
1322
|
-
},
|
|
1323
|
-
children: isIconKey2(icon) ? /* @__PURE__ */ jsx9(GdsIcon, { icon, size: "65%", tone: "default", decorative: true }) : icon
|
|
1324
|
-
}
|
|
1325
|
-
);
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
// src/dom-phrase-translation.ts
|
|
1329
|
-
var translatableAttributes = [
|
|
1330
|
-
"aria-label",
|
|
1331
|
-
"alt",
|
|
1332
|
-
"placeholder",
|
|
1333
|
-
"title"
|
|
1334
|
-
];
|
|
1335
|
-
function normalizeGdsPhrase(value) {
|
|
1336
|
-
return value.replace(/\s+/g, " ").trim();
|
|
1337
|
-
}
|
|
1338
|
-
function translateWithIndex(value, index) {
|
|
1339
|
-
if (!value) {
|
|
1340
|
-
return value;
|
|
1341
|
-
}
|
|
1342
|
-
return index.get(normalizeGdsPhrase(value)) ?? value;
|
|
1343
|
-
}
|
|
1344
|
-
async function translateGdsPhrase(value, locale, loadIndex) {
|
|
1345
|
-
if (!value || locale === "en") {
|
|
1346
|
-
return value;
|
|
1347
|
-
}
|
|
1348
|
-
const index = await loadIndex(locale);
|
|
1349
|
-
return translateWithIndex(value, index);
|
|
1350
|
-
}
|
|
1351
|
-
var VERBATIM_ELEMENTS = "code, pre, kbd, samp, script, style, input, textarea, select, option";
|
|
1352
|
-
function shouldSkipNode(node) {
|
|
1353
|
-
const parent = node.parentElement;
|
|
1354
|
-
return Boolean(parent?.closest(VERBATIM_ELEMENTS));
|
|
1355
|
-
}
|
|
1356
|
-
var originalText = /* @__PURE__ */ new WeakMap();
|
|
1357
|
-
var originalAttributes = /* @__PURE__ */ new WeakMap();
|
|
1358
|
-
var lastWrittenText = /* @__PURE__ */ new WeakMap();
|
|
1359
|
-
var lastWrittenAttributes = /* @__PURE__ */ new WeakMap();
|
|
1360
|
-
function translateTextNode(node, index, restore) {
|
|
1361
|
-
if (shouldSkipNode(node)) {
|
|
1362
|
-
return;
|
|
1363
|
-
}
|
|
1364
|
-
const current = node.nodeValue ?? "";
|
|
1365
|
-
let original = originalText.get(node);
|
|
1366
|
-
if (original === void 0) {
|
|
1367
|
-
original = current;
|
|
1368
|
-
originalText.set(node, original);
|
|
1369
|
-
} else if (current !== (lastWrittenText.get(node) ?? original)) {
|
|
1370
|
-
original = current;
|
|
1371
|
-
originalText.set(node, original);
|
|
1372
|
-
}
|
|
1373
|
-
const normalized = normalizeGdsPhrase(original);
|
|
1374
|
-
if (!normalized) {
|
|
1375
|
-
return;
|
|
1376
|
-
}
|
|
1377
|
-
const translated = restore ? normalized : translateWithIndex(normalized, index);
|
|
1378
|
-
const next = translated === normalized ? original : original.replace(normalized, translated);
|
|
1379
|
-
if (node.nodeValue !== next) {
|
|
1380
|
-
node.nodeValue = next;
|
|
1381
|
-
}
|
|
1382
|
-
lastWrittenText.set(node, next);
|
|
1383
|
-
}
|
|
1384
|
-
function translateElementAttributes(element, index, restore) {
|
|
1385
|
-
if (element.closest(VERBATIM_ELEMENTS)) {
|
|
1386
|
-
return;
|
|
1387
|
-
}
|
|
1388
|
-
let originals = originalAttributes.get(element);
|
|
1389
|
-
if (!originals) {
|
|
1390
|
-
originals = /* @__PURE__ */ new Map();
|
|
1391
|
-
originalAttributes.set(element, originals);
|
|
1392
|
-
}
|
|
1393
|
-
let written = lastWrittenAttributes.get(element);
|
|
1394
|
-
if (!written) {
|
|
1395
|
-
written = /* @__PURE__ */ new Map();
|
|
1396
|
-
lastWrittenAttributes.set(element, written);
|
|
1397
|
-
}
|
|
1398
|
-
for (const attribute of translatableAttributes) {
|
|
1399
|
-
const current = element.getAttribute(attribute);
|
|
1400
|
-
if (current === null) continue;
|
|
1401
|
-
if (!originals.has(attribute)) {
|
|
1402
|
-
originals.set(attribute, current);
|
|
1403
|
-
} else if (current !== (written.get(attribute) ?? originals.get(attribute))) {
|
|
1404
|
-
originals.set(attribute, current);
|
|
1405
|
-
}
|
|
1406
|
-
const original = originals.get(attribute);
|
|
1407
|
-
const next = restore ? original : translateWithIndex(original, index);
|
|
1408
|
-
if (element.getAttribute(attribute) !== next) {
|
|
1409
|
-
element.setAttribute(attribute, next);
|
|
1410
|
-
}
|
|
1411
|
-
written.set(attribute, next);
|
|
1412
|
-
}
|
|
1413
|
-
}
|
|
1414
|
-
async function translateGdsDom(root, locale, loadIndex) {
|
|
1415
|
-
const restore = locale === "en";
|
|
1416
|
-
const index = restore ? /* @__PURE__ */ new Map() : await loadIndex(locale);
|
|
1417
|
-
const walker = document.createTreeWalker(root, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_ELEMENT);
|
|
1418
|
-
let current = walker.currentNode;
|
|
1419
|
-
while (current) {
|
|
1420
|
-
if (current.nodeType === Node.TEXT_NODE) {
|
|
1421
|
-
translateTextNode(current, index, restore);
|
|
1422
|
-
} else if (current.nodeType === Node.ELEMENT_NODE) {
|
|
1423
|
-
translateElementAttributes(current, index, restore);
|
|
1424
|
-
}
|
|
1425
|
-
current = walker.nextNode();
|
|
1426
|
-
}
|
|
1427
|
-
}
|
|
1428
|
-
|
|
1429
|
-
// src/useGdsDomPhraseTranslation.client.ts
|
|
1430
|
-
import { useEffect as useEffect2 } from "react";
|
|
1431
|
-
function useGdsDomPhraseTranslation({ root, locale, loadIndex, routeKey }) {
|
|
1432
|
-
useEffect2(() => {
|
|
1433
|
-
if (!root) return void 0;
|
|
1434
|
-
let cancelled = false;
|
|
1435
|
-
const run = () => {
|
|
1436
|
-
translateGdsDom(root, locale, loadIndex).catch(() => {
|
|
1437
|
-
});
|
|
1438
|
-
};
|
|
1439
|
-
run();
|
|
1440
|
-
const observer = new MutationObserver(() => {
|
|
1441
|
-
if (!cancelled) run();
|
|
1442
|
-
});
|
|
1443
|
-
observer.observe(root, { childList: true, subtree: true, characterData: true });
|
|
1444
|
-
return () => {
|
|
1445
|
-
cancelled = true;
|
|
1446
|
-
observer.disconnect();
|
|
1447
|
-
};
|
|
1448
|
-
}, [root, locale, loadIndex, routeKey]);
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
// src/GdsMotionSystemReference.tsx
|
|
1452
|
-
import { Badge as Badge2, Code as Code2, Group as Group5, Stack as Stack5, Table as Table3, Text as Text4, UnstyledButton } from "@mantine/core";
|
|
1453
|
-
import {
|
|
1454
|
-
gdsMotionDurations,
|
|
1455
|
-
gdsMotionEasings,
|
|
1456
|
-
gdsMotionPresets,
|
|
1457
|
-
GDS_DEFAULT_REACTION_AXIS,
|
|
1458
|
-
useGdsReducedMotion
|
|
1459
|
-
} from "@sovereignsquad/gds-theme";
|
|
1460
|
-
import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1461
|
-
function GdsMotionSystemReference() {
|
|
1462
|
-
const reducedMotion = useGdsReducedMotion();
|
|
1463
|
-
const axis = GDS_DEFAULT_REACTION_AXIS;
|
|
1464
|
-
return /* @__PURE__ */ jsxs9(Stack5, { gap: "md", "data-gds-motion-system-reference": "", children: [
|
|
1465
|
-
/* @__PURE__ */ jsxs9(Stack5, { gap: "2xs", children: [
|
|
1466
|
-
/* @__PURE__ */ jsx10(Text4, { fw: 700, children: "Durations and easings \u2014 the whole vocabulary" }),
|
|
1467
|
-
/* @__PURE__ */ jsx10(Text4, { size: "sm", children: "Six durations and five easings; every transition in the system is composed from these. Nothing animates outside this table." }),
|
|
1468
|
-
/* @__PURE__ */ jsx10(Group5, { gap: "xs", children: Object.entries(gdsMotionDurations).map(([name, ms]) => /* @__PURE__ */ jsxs9(Badge2, { variant: "light", children: [
|
|
1469
|
-
name,
|
|
1470
|
-
" \xB7 ",
|
|
1471
|
-
ms,
|
|
1472
|
-
"ms"
|
|
1473
|
-
] }, name)) }),
|
|
1474
|
-
/* @__PURE__ */ jsx10(Group5, { gap: "xs", children: Object.entries(gdsMotionEasings).map(([name, curve]) => /* @__PURE__ */ jsxs9(Badge2, { variant: "outline", children: [
|
|
1475
|
-
name,
|
|
1476
|
-
" \xB7 ",
|
|
1477
|
-
curve
|
|
1478
|
-
] }, name)) })
|
|
1479
|
-
] }),
|
|
1480
|
-
/* @__PURE__ */ jsxs9(Stack5, { gap: "2xs", children: [
|
|
1481
|
-
/* @__PURE__ */ jsx10(Text4, { fw: 700, children: "The seven presets, live" }),
|
|
1482
|
-
/* @__PURE__ */ jsxs9(Text4, { size: "sm", children: [
|
|
1483
|
-
"A preset names an intent \u2014 overlay, drawer, command, list, feedback, skeleton, state \u2014 and carries its transition, transforms, and its own reduced-motion form. Hover each specimen: the movement you see IS the preset\u2019s transition, read from the export, not re-authored for this page.",
|
|
1484
|
-
reducedMotion ? " This visit has prefers-reduced-motion, so every specimen is showing its reduced form \u2014 that fallback being automatic is the feature." : ""
|
|
1485
|
-
] }),
|
|
1486
|
-
/* @__PURE__ */ jsx10(Group5, { gap: "sm", align: "stretch", children: Object.values(gdsMotionPresets).map((preset) => /* @__PURE__ */ jsx10(
|
|
1487
|
-
UnstyledButton,
|
|
1488
|
-
{
|
|
1489
|
-
"data-gds-motion": true,
|
|
1490
|
-
"data-gds-motion-specimen": preset.id,
|
|
1491
|
-
style: {
|
|
1492
|
-
padding: "var(--gds-space-sm)",
|
|
1493
|
-
borderRadius: "var(--gds-radius-panel)",
|
|
1494
|
-
border: "1px solid var(--gds-border-card)",
|
|
1495
|
-
background: "var(--gds-bg-card)",
|
|
1496
|
-
transition: reducedMotion ? preset.reducedTransition : preset.transition,
|
|
1497
|
-
transform: reducedMotion ? preset.reducedTransform : preset.exitTransform
|
|
1498
|
-
},
|
|
1499
|
-
onMouseEnter: (event) => {
|
|
1500
|
-
event.currentTarget.style.transform = reducedMotion ? preset.reducedTransform ?? "none" : preset.enterTransform;
|
|
1501
|
-
event.currentTarget.style.opacity = "1";
|
|
1502
|
-
},
|
|
1503
|
-
onMouseLeave: (event) => {
|
|
1504
|
-
event.currentTarget.style.transform = reducedMotion ? preset.reducedTransform ?? "none" : preset.exitTransform;
|
|
1505
|
-
event.currentTarget.style.opacity = "0.85";
|
|
1506
|
-
},
|
|
1507
|
-
children: /* @__PURE__ */ jsxs9(Stack5, { gap: 2, children: [
|
|
1508
|
-
/* @__PURE__ */ jsx10(Text4, { size: "sm", fw: 600, children: preset.id }),
|
|
1509
|
-
/* @__PURE__ */ jsxs9(Text4, { size: "xs", c: "dimmed", children: [
|
|
1510
|
-
preset.duration,
|
|
1511
|
-
" \xB7 ",
|
|
1512
|
-
preset.easing
|
|
1513
|
-
] }),
|
|
1514
|
-
/* @__PURE__ */ jsx10(Text4, { size: "xs", c: "dimmed", children: preset.usage })
|
|
1515
|
-
] })
|
|
1516
|
-
},
|
|
1517
|
-
preset.id
|
|
1518
|
-
)) })
|
|
1519
|
-
] }),
|
|
1520
|
-
/* @__PURE__ */ jsxs9(Stack5, { gap: "2xs", children: [
|
|
1521
|
-
/* @__PURE__ */ jsx10(Text4, { fw: 700, children: "The reaction axis \u2014 micro-feedback on every control" }),
|
|
1522
|
-
/* @__PURE__ */ jsx10(Text4, { size: "sm", children: "Hover, active, and pressed treatments plus the focus ring are an AXIS a theme declares once, not per-component CSS: every governed control reacts consistently, and a theme can retune all of it in one place. The values below are the default axis\u2019s own." }),
|
|
1523
|
-
/* @__PURE__ */ jsx10(GdsTableScrollContainer, { children: /* @__PURE__ */ jsx10(Table3, { withTableBorder: true, children: /* @__PURE__ */ jsxs9(Table3.Tbody, { children: [
|
|
1524
|
-
/* @__PURE__ */ jsxs9(Table3.Tr, { children: [
|
|
1525
|
-
/* @__PURE__ */ jsx10(Table3.Td, { children: "hover" }),
|
|
1526
|
-
/* @__PURE__ */ jsx10(Table3.Td, { children: /* @__PURE__ */ jsx10(Code2, { children: String(axis.hover) }) })
|
|
1527
|
-
] }),
|
|
1528
|
-
/* @__PURE__ */ jsxs9(Table3.Tr, { children: [
|
|
1529
|
-
/* @__PURE__ */ jsx10(Table3.Td, { children: "active" }),
|
|
1530
|
-
/* @__PURE__ */ jsx10(Table3.Td, { children: /* @__PURE__ */ jsx10(Code2, { children: String(axis.active) }) })
|
|
1531
|
-
] }),
|
|
1532
|
-
/* @__PURE__ */ jsxs9(Table3.Tr, { children: [
|
|
1533
|
-
/* @__PURE__ */ jsx10(Table3.Td, { children: "pressed" }),
|
|
1534
|
-
/* @__PURE__ */ jsx10(Table3.Td, { children: /* @__PURE__ */ jsx10(Code2, { children: String(axis.pressed) }) })
|
|
1535
|
-
] }),
|
|
1536
|
-
axis.focusRing ? /* @__PURE__ */ jsxs9(Table3.Tr, { children: [
|
|
1537
|
-
/* @__PURE__ */ jsx10(Table3.Td, { children: "focus ring" }),
|
|
1538
|
-
/* @__PURE__ */ jsx10(Table3.Td, { children: /* @__PURE__ */ jsx10(Code2, { children: `${axis.focusRing.width} ${axis.focusRing.style}, offset ${axis.focusRing.offset}, role ${axis.focusRing.colorRole}` }) })
|
|
1539
|
-
] }) : null,
|
|
1540
|
-
/* @__PURE__ */ jsxs9(Table3.Tr, { children: [
|
|
1541
|
-
/* @__PURE__ */ jsx10(Table3.Td, { children: "transition scope" }),
|
|
1542
|
-
/* @__PURE__ */ jsx10(Table3.Td, { children: /* @__PURE__ */ jsx10(Code2, { children: (axis.transitionScope ?? []).join(", ") }) })
|
|
1543
|
-
] })
|
|
1544
|
-
] }) }) }),
|
|
1545
|
-
/* @__PURE__ */ jsxs9(Text4, { size: "sm", c: "dimmed", children: [
|
|
1546
|
-
"Wire-up is one call: ",
|
|
1547
|
-
/* @__PURE__ */ jsx10(Code2, { children: "withGdsMotion(theme)" }),
|
|
1548
|
-
" \u2014 see docs/MOTION_SYSTEM.md. Reduced motion collapses every treatment to its documented safe form via the same tokens; nothing opts out element by element."
|
|
1549
|
-
] })
|
|
1550
|
-
] })
|
|
1551
|
-
] });
|
|
1552
|
-
}
|
|
1553
|
-
|
|
1554
|
-
// src/GdsShapeElevationSystemReference.tsx
|
|
1555
|
-
import { Button as Button2, Card, Chip, Code as Code3, Group as Group6, Paper as Paper3, SimpleGrid as SimpleGrid2, Stack as Stack6, Table as Table4, Text as Text5, TextInput as TextInput2 } from "@mantine/core";
|
|
1556
|
-
import {
|
|
1557
|
-
GDS_RADIUS_STEPS,
|
|
1558
|
-
GDS_RADIUS_ROLES,
|
|
1559
|
-
resolveGdsShapeTokens,
|
|
1560
|
-
GDS_SHAPE_PROFILE_NAMES,
|
|
1561
|
-
GDS_SHAPE_PROFILES,
|
|
1562
|
-
GDS_ELEVATION_STEPS,
|
|
1563
|
-
GDS_ELEVATION_ROLES,
|
|
1564
|
-
resolveGdsElevationTokens
|
|
1565
|
-
} from "@sovereignsquad/gds-theme";
|
|
1566
|
-
import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1567
|
-
function GdsShapeElevationSystemReference() {
|
|
1568
|
-
const shapeTokens = resolveGdsShapeTokens();
|
|
1569
|
-
const elevationTokens = resolveGdsElevationTokens();
|
|
1570
|
-
return /* @__PURE__ */ jsxs10(Stack6, { gap: "md", "data-gds-shape-elevation-system-reference": "", children: [
|
|
1571
|
-
/* @__PURE__ */ jsxs10(Stack6, { gap: "2xs", children: [
|
|
1572
|
-
/* @__PURE__ */ jsx11(Text5, { fw: 700, children: "Radius steps \u2014 the whole scale" }),
|
|
1573
|
-
/* @__PURE__ */ jsx11(Text5, { size: "sm", children: "Seven steps, none to pill; every rounded corner in the system is one of these." }),
|
|
1574
|
-
/* @__PURE__ */ jsx11(Group6, { gap: "sm", align: "flex-end", children: GDS_RADIUS_STEPS.map((step) => /* @__PURE__ */ jsxs10(Stack6, { gap: 4, align: "center", children: [
|
|
1575
|
-
/* @__PURE__ */ jsx11(
|
|
1576
|
-
Paper3,
|
|
1577
|
-
{
|
|
1578
|
-
withBorder: true,
|
|
1579
|
-
p: "md",
|
|
1580
|
-
style: { borderRadius: shapeTokens[`--gds-radius-${step}`], background: "var(--gds-bg-card)" },
|
|
1581
|
-
children: /* @__PURE__ */ jsx11(Text5, { size: "xs", fw: 600, children: step })
|
|
1582
|
-
}
|
|
1583
|
-
),
|
|
1584
|
-
/* @__PURE__ */ jsx11(Text5, { size: "xs", c: "dimmed", children: /* @__PURE__ */ jsx11(Code3, { children: shapeTokens[`--gds-radius-${step}`] }) })
|
|
1585
|
-
] }, step)) })
|
|
1586
|
-
] }),
|
|
1587
|
-
/* @__PURE__ */ jsxs10(Stack6, { gap: "2xs", children: [
|
|
1588
|
-
/* @__PURE__ */ jsx11(Text5, { fw: 700, children: "Radius roles \u2014 named surfaces, not raw steps" }),
|
|
1589
|
-
/* @__PURE__ */ jsxs10(Text5, { size: "sm", children: [
|
|
1590
|
-
"Component source asks for a role, never a step directly \u2014 every role below resolves through the same axis ",
|
|
1591
|
-
/* @__PURE__ */ jsx11(Code3, { children: "resolveGdsShapeTokens()" }),
|
|
1592
|
-
" emits, falling back to the axis\u2019s default step when a theme leaves a role undeclared."
|
|
1593
|
-
] }),
|
|
1594
|
-
/* @__PURE__ */ jsx11(GdsTableScrollContainer, { children: /* @__PURE__ */ jsx11(Table4, { withTableBorder: true, children: /* @__PURE__ */ jsx11(Table4.Tbody, { children: GDS_RADIUS_ROLES.map((role) => /* @__PURE__ */ jsxs10(Table4.Tr, { children: [
|
|
1595
|
-
/* @__PURE__ */ jsx11(Table4.Td, { children: role }),
|
|
1596
|
-
/* @__PURE__ */ jsx11(Table4.Td, { children: /* @__PURE__ */ jsx11(Code3, { children: shapeTokens[`--gds-radius-${role}`] }) })
|
|
1597
|
-
] }, role)) }) }) }),
|
|
1598
|
-
(() => {
|
|
1599
|
-
const values = GDS_RADIUS_ROLES.map((role) => shapeTokens[`--gds-radius-${role}`]);
|
|
1600
|
-
const distinctCount = new Set(values).size;
|
|
1601
|
-
return /* @__PURE__ */ jsxs10(Text5, { size: "sm", c: "dimmed", children: [
|
|
1602
|
-
distinctCount === 1 ? `All ${GDS_RADIUS_ROLES.length} roles above resolve to the same value here: this axis declares no per-role overrides, so every role falls back to the default step.` : `${distinctCount} distinct value(s) across ${GDS_RADIUS_ROLES.length} roles.`,
|
|
1603
|
-
" ",
|
|
1604
|
-
"Card, Paper, Button, TextInput, Badge, Chip, Modal and Drawer take their radius from these roles, so a theme or a ",
|
|
1605
|
-
/* @__PURE__ */ jsx11(Code3, { children: "GdsShapeScope" }),
|
|
1606
|
-
" that changes a role changes those components."
|
|
1607
|
-
] });
|
|
1608
|
-
})()
|
|
1609
|
-
] }),
|
|
1610
|
-
/* @__PURE__ */ jsxs10(Stack6, { gap: "2xs", "data-gds-shape-profiles": "", children: [
|
|
1611
|
-
/* @__PURE__ */ jsx11(Text5, { fw: 700, children: "Shape profiles \u2014 the same components, three role maps" }),
|
|
1612
|
-
/* @__PURE__ */ jsxs10(Text5, { size: "sm", children: [
|
|
1613
|
-
"Each column wraps the same Card, Paper, TextInput, Button and Chip in a",
|
|
1614
|
-
" ",
|
|
1615
|
-
/* @__PURE__ */ jsx11(Code3, { children: "GdsShapeScope" }),
|
|
1616
|
-
". A scope sets only its profile\u2019s own roles, from",
|
|
1617
|
-
" ",
|
|
1618
|
-
/* @__PURE__ */ jsx11(Code3, { children: "GDS_SHAPE_PROFILES" }),
|
|
1619
|
-
", pointing at the active theme\u2019s own steps; every other role, and every role under ",
|
|
1620
|
-
/* @__PURE__ */ jsx11(Code3, { children: "default" }),
|
|
1621
|
-
", stays the theme\u2019s."
|
|
1622
|
-
] }),
|
|
1623
|
-
/* @__PURE__ */ jsx11(SimpleGrid2, { cols: { base: 1, md: GDS_SHAPE_PROFILE_NAMES.length }, spacing: "md", children: GDS_SHAPE_PROFILE_NAMES.map((profile) => {
|
|
1624
|
-
const roles = profile === "default" ? {} : GDS_SHAPE_PROFILES[profile];
|
|
1625
|
-
return /* @__PURE__ */ jsx11(GdsShapeScope, { profile, children: /* @__PURE__ */ jsxs10(Stack6, { gap: "sm", children: [
|
|
1626
|
-
/* @__PURE__ */ jsx11(Text5, { fw: 600, children: profile }),
|
|
1627
|
-
/* @__PURE__ */ jsx11(Card, { children: /* @__PURE__ */ jsxs10(Stack6, { gap: "xs", children: [
|
|
1628
|
-
/* @__PURE__ */ jsx11(Text5, { size: "sm", fw: 600, children: "Card" }),
|
|
1629
|
-
/* @__PURE__ */ jsx11(TextInput2, { label: "Input", placeholder: "Search" }),
|
|
1630
|
-
/* @__PURE__ */ jsxs10(Group6, { gap: "xs", children: [
|
|
1631
|
-
/* @__PURE__ */ jsx11(Button2, { size: "xs", children: "Button" }),
|
|
1632
|
-
/* @__PURE__ */ jsx11(Chip, { size: "xs", checked: true, readOnly: true, children: "Chip" })
|
|
1633
|
-
] })
|
|
1634
|
-
] }) }),
|
|
1635
|
-
/* @__PURE__ */ jsx11(Paper3, { p: "xs", children: /* @__PURE__ */ jsx11(GdsTableScrollContainer, { children: /* @__PURE__ */ jsx11(Table4, { children: /* @__PURE__ */ jsx11(Table4.Tbody, { children: ["card", "panel", "input", "button", "chip", "modal", "sheet"].map((role) => /* @__PURE__ */ jsxs10(Table4.Tr, { children: [
|
|
1636
|
-
/* @__PURE__ */ jsx11(Table4.Td, { children: role }),
|
|
1637
|
-
/* @__PURE__ */ jsx11(Table4.Td, { children: /* @__PURE__ */ jsx11(Code3, { children: roles[role] ?? "theme" }) })
|
|
1638
|
-
] }, role)) }) }) }) })
|
|
1639
|
-
] }) }, profile);
|
|
1640
|
-
}) })
|
|
1641
|
-
] }),
|
|
1642
|
-
/* @__PURE__ */ jsxs10(Stack6, { gap: "2xs", children: [
|
|
1643
|
-
/* @__PURE__ */ jsx11(Text5, { fw: 700, children: "Elevation steps \u2014 flat to raised" }),
|
|
1644
|
-
/* @__PURE__ */ jsx11(Text5, { size: "sm", children: "Five steps, none to a deep shadow. The axis itself refuses a step that comes back down after a raised one \u2014 a modal flatter than the card behind it is treated as a rendering bug, not a theme choice." }),
|
|
1645
|
-
/* @__PURE__ */ jsx11(Group6, { gap: "sm", align: "flex-end", children: GDS_ELEVATION_STEPS.map((step) => /* @__PURE__ */ jsx11(Stack6, { gap: 4, align: "center", children: /* @__PURE__ */ jsx11(
|
|
1646
|
-
Paper3,
|
|
1647
|
-
{
|
|
1648
|
-
p: "md",
|
|
1649
|
-
style: { boxShadow: elevationTokens[`--gds-elevation-${step}`], background: "var(--gds-bg-card)" },
|
|
1650
|
-
children: /* @__PURE__ */ jsx11(Text5, { size: "xs", fw: 600, children: step })
|
|
1651
|
-
}
|
|
1652
|
-
) }, step)) })
|
|
1653
|
-
] }),
|
|
1654
|
-
/* @__PURE__ */ jsxs10(Stack6, { gap: "2xs", children: [
|
|
1655
|
-
/* @__PURE__ */ jsx11(Text5, { fw: 700, children: "Elevation roles \u2014 named surfaces, not raw steps" }),
|
|
1656
|
-
/* @__PURE__ */ jsxs10(Text5, { size: "sm", children: [
|
|
1657
|
-
"Same role-over-step discipline as shape: a card and a tooltip never share a hand-tuned shadow, they share a role that resolves through ",
|
|
1658
|
-
/* @__PURE__ */ jsx11(Code3, { children: "resolveGdsElevationTokens()" }),
|
|
1659
|
-
"."
|
|
1660
|
-
] }),
|
|
1661
|
-
/* @__PURE__ */ jsx11(GdsTableScrollContainer, { children: /* @__PURE__ */ jsx11(Table4, { withTableBorder: true, children: /* @__PURE__ */ jsx11(Table4.Tbody, { children: GDS_ELEVATION_ROLES.map((role) => /* @__PURE__ */ jsxs10(Table4.Tr, { children: [
|
|
1662
|
-
/* @__PURE__ */ jsx11(Table4.Td, { children: role }),
|
|
1663
|
-
/* @__PURE__ */ jsx11(Table4.Td, { children: /* @__PURE__ */ jsx11(
|
|
1664
|
-
Paper3,
|
|
1665
|
-
{
|
|
1666
|
-
p: "xs",
|
|
1667
|
-
style: { boxShadow: elevationTokens[`--gds-elevation-${role}`], background: "var(--gds-bg-card)", display: "inline-block" },
|
|
1668
|
-
children: /* @__PURE__ */ jsx11(Text5, { size: "xs", c: "dimmed", children: role })
|
|
1669
|
-
}
|
|
1670
|
-
) })
|
|
1671
|
-
] }, role)) }) }) })
|
|
1672
|
-
] })
|
|
1673
|
-
] });
|
|
1674
|
-
}
|
|
1675
|
-
|
|
1676
|
-
// src/GdsDensitySpacingSystemReference.tsx
|
|
1677
|
-
import { Box as Box4, Code as Code4, Group as Group7, Stack as Stack7, Table as Table5, Text as Text6 } from "@mantine/core";
|
|
1678
|
-
import {
|
|
1679
|
-
GDS_SPACE_STEPS,
|
|
1680
|
-
GDS_CONTROL_SIZES,
|
|
1681
|
-
GDS_MIN_TARGET_PX,
|
|
1682
|
-
GDS_CONTROL_HEIGHT_EXCEPTIONS,
|
|
1683
|
-
resolveGdsDensityTokens
|
|
1684
|
-
} from "@sovereignsquad/gds-theme";
|
|
1685
|
-
import { jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1686
|
-
function GdsDensitySpacingSystemReference() {
|
|
1687
|
-
const tokens = resolveGdsDensityTokens();
|
|
1688
|
-
return /* @__PURE__ */ jsxs11(Stack7, { gap: "md", "data-gds-density-spacing-system-reference": "", children: [
|
|
1689
|
-
/* @__PURE__ */ jsxs11(Stack7, { gap: "2xs", children: [
|
|
1690
|
-
/* @__PURE__ */ jsx12(Text6, { fw: 700, children: "Spacing steps \u2014 the whole scale" }),
|
|
1691
|
-
/* @__PURE__ */ jsx12(Text6, { size: "sm", children: "Ten steps, none to 3xl; every margin, gap, and padding in the system is one of these. Shown at the default comfortable density (factor 1)." }),
|
|
1692
|
-
/* @__PURE__ */ jsx12(Group7, { gap: "sm", align: "flex-end", children: GDS_SPACE_STEPS.map((step) => /* @__PURE__ */ jsxs11(Stack7, { gap: 4, align: "center", children: [
|
|
1693
|
-
/* @__PURE__ */ jsx12(
|
|
1694
|
-
Box4,
|
|
1695
|
-
{
|
|
1696
|
-
style: {
|
|
1697
|
-
width: tokens[`--gds-space-${step}`],
|
|
1698
|
-
height: tokens[`--gds-space-${step}`],
|
|
1699
|
-
minWidth: 2,
|
|
1700
|
-
minHeight: 2,
|
|
1701
|
-
background: "var(--gds-brand-primary, var(--gds-vibe-primary, var(--mantine-primary-color-filled)))",
|
|
1702
|
-
borderRadius: "var(--gds-radius-xs)"
|
|
1703
|
-
}
|
|
1704
|
-
}
|
|
1705
|
-
),
|
|
1706
|
-
/* @__PURE__ */ jsx12(Text6, { size: "xs", fw: 600, children: step }),
|
|
1707
|
-
/* @__PURE__ */ jsx12(Text6, { size: "xs", c: "dimmed", children: /* @__PURE__ */ jsx12(Code4, { children: tokens[`--gds-space-${step}`] }) })
|
|
1708
|
-
] }, step)) })
|
|
1709
|
-
] }),
|
|
1710
|
-
/* @__PURE__ */ jsxs11(Stack7, { gap: "2xs", children: [
|
|
1711
|
-
/* @__PURE__ */ jsx12(Text6, { fw: 700, children: "Control heights \u2014 the accessibility floor holds" }),
|
|
1712
|
-
/* @__PURE__ */ jsxs11(Text6, { size: "sm", children: [
|
|
1713
|
-
"Five control sizes. GDS holds a ",
|
|
1714
|
-
GDS_MIN_TARGET_PX,
|
|
1715
|
-
"px floor (stricter than WCAG 2.5.8\u2019s 24px \u2014 the AAA figure Apple and Google both publish). A compact or spacious density mode scales spacing freely, but a control height only shrinks below the floor when the size carries a recorded exception below."
|
|
1716
|
-
] }),
|
|
1717
|
-
/* @__PURE__ */ jsx12(GdsTableScrollContainer, { children: /* @__PURE__ */ jsx12(Table5, { withTableBorder: true, children: /* @__PURE__ */ jsx12(Table5.Tbody, { children: GDS_CONTROL_SIZES.map((size) => /* @__PURE__ */ jsxs11(Table5.Tr, { children: [
|
|
1718
|
-
/* @__PURE__ */ jsx12(Table5.Td, { children: size }),
|
|
1719
|
-
/* @__PURE__ */ jsx12(Table5.Td, { children: /* @__PURE__ */ jsx12(Code4, { children: tokens[`--gds-control-height-${size}`] }) }),
|
|
1720
|
-
/* @__PURE__ */ jsx12(Table5.Td, { children: /* @__PURE__ */ jsx12(Text6, { size: "xs", c: "dimmed", children: GDS_CONTROL_HEIGHT_EXCEPTIONS[size] ?? "holds the floor" }) })
|
|
1721
|
-
] }, size)) }) }) })
|
|
1722
|
-
] })
|
|
1723
|
-
] });
|
|
1724
|
-
}
|
|
1725
|
-
|
|
1726
|
-
// src/GdsIconSystemReference.tsx
|
|
1727
|
-
import { Badge as Badge3, Code as Code5, Group as Group8, Stack as Stack8, Text as Text7 } from "@mantine/core";
|
|
1728
|
-
import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1729
|
-
var CATEGORIES = [
|
|
1730
|
-
"action",
|
|
1731
|
-
"status",
|
|
1732
|
-
"resource",
|
|
1733
|
-
"navigation",
|
|
1734
|
-
"media",
|
|
1735
|
-
"feedback",
|
|
1736
|
-
"system",
|
|
1737
|
-
"content",
|
|
1738
|
-
"commerce",
|
|
1739
|
-
"security"
|
|
1740
|
-
];
|
|
1741
|
-
var TONES = ["default", "primary", "success", "warning", "danger", "info", "muted"];
|
|
1742
|
-
function GdsIconSystemReference() {
|
|
1743
|
-
const keys = getGdsIconKeys();
|
|
1744
|
-
const byCategory = CATEGORIES.map((category) => ({
|
|
1745
|
-
category,
|
|
1746
|
-
icons: keys.filter((key) => getGdsIconMetadata(key).category === category)
|
|
1747
|
-
}));
|
|
1748
|
-
return /* @__PURE__ */ jsxs12(Stack8, { gap: "md", "data-gds-icon-system-reference": "", children: [
|
|
1749
|
-
/* @__PURE__ */ jsxs12(Stack8, { gap: "2xs", children: [
|
|
1750
|
-
/* @__PURE__ */ jsxs12(Text7, { fw: 700, children: [
|
|
1751
|
-
"The icon dictionary \u2014 ",
|
|
1752
|
-
keys.length,
|
|
1753
|
-
" icons across ",
|
|
1754
|
-
CATEGORIES.length,
|
|
1755
|
-
" categories"
|
|
1756
|
-
] }),
|
|
1757
|
-
/* @__PURE__ */ jsxs12(Text7, { size: "sm", children: [
|
|
1758
|
-
"Every icon a consumer may use, governed through ",
|
|
1759
|
-
/* @__PURE__ */ jsx13(Code5, { children: "GdsIcon" }),
|
|
1760
|
-
" rather than a direct Tabler import \u2014 grouped by the same semantic category",
|
|
1761
|
-
/* @__PURE__ */ jsx13(Code5, { children: "getGdsIconMetadata()" }),
|
|
1762
|
-
" assigns each key."
|
|
1763
|
-
] }),
|
|
1764
|
-
byCategory.map(({ category, icons }) => /* @__PURE__ */ jsxs12(Stack8, { gap: 4, children: [
|
|
1765
|
-
/* @__PURE__ */ jsxs12(Group8, { gap: "xs", align: "center", children: [
|
|
1766
|
-
/* @__PURE__ */ jsx13(Text7, { size: "sm", fw: 600, children: category }),
|
|
1767
|
-
/* @__PURE__ */ jsx13(Badge3, { size: "xs", variant: "light", children: icons.length })
|
|
1768
|
-
] }),
|
|
1769
|
-
/* @__PURE__ */ jsx13(Group8, { gap: "md", children: icons.map((key) => {
|
|
1770
|
-
const meta = getGdsIconMetadata(key);
|
|
1771
|
-
return /* @__PURE__ */ jsxs12(Stack8, { gap: 2, align: "center", w: 64, children: [
|
|
1772
|
-
/* @__PURE__ */ jsx13(GdsIcon, { icon: key, size: "lg", label: meta.defaultLabel }),
|
|
1773
|
-
/* @__PURE__ */ jsx13(Text7, { size: "xs", c: "dimmed", ta: "center", children: meta.defaultLabel })
|
|
1774
|
-
] }, key);
|
|
1775
|
-
}) })
|
|
1776
|
-
] }, category))
|
|
1777
|
-
] }),
|
|
1778
|
-
/* @__PURE__ */ jsxs12(Stack8, { gap: "2xs", children: [
|
|
1779
|
-
/* @__PURE__ */ jsx13(Text7, { fw: 700, children: "Tones \u2014 semantic colour, never a raw hex" }),
|
|
1780
|
-
/* @__PURE__ */ jsxs12(Text7, { size: "sm", children: [
|
|
1781
|
-
"Seven tones; ",
|
|
1782
|
-
/* @__PURE__ */ jsx13(Code5, { children: "default" }),
|
|
1783
|
-
" inherits the surrounding text colour, the rest read from ",
|
|
1784
|
-
/* @__PURE__ */ jsx13(Code5, { children: "gdsIconToneColor" }),
|
|
1785
|
-
"."
|
|
1786
|
-
] }),
|
|
1787
|
-
/* @__PURE__ */ jsx13(Group8, { gap: "lg", children: TONES.map((tone) => /* @__PURE__ */ jsxs12(Stack8, { gap: 2, align: "center", children: [
|
|
1788
|
-
/* @__PURE__ */ jsx13(GdsIcon, { icon: "Star", size: "lg", tone, label: `${tone} tone` }),
|
|
1789
|
-
/* @__PURE__ */ jsx13(Text7, { size: "xs", c: "dimmed", children: tone }),
|
|
1790
|
-
/* @__PURE__ */ jsx13(Text7, { size: "xs", c: "dimmed", children: gdsIconToneColor[tone] ?? "inherited" })
|
|
1791
|
-
] }, tone)) })
|
|
1792
|
-
] }),
|
|
1793
|
-
/* @__PURE__ */ jsxs12(Stack8, { gap: "2xs", children: [
|
|
1794
|
-
/* @__PURE__ */ jsx13(Text7, { fw: 700, children: "Decorative vs informative \u2014 the accessibility contract" }),
|
|
1795
|
-
/* @__PURE__ */ jsxs12(Text7, { size: "sm", children: [
|
|
1796
|
-
"An icon with no ",
|
|
1797
|
-
/* @__PURE__ */ jsx13(Code5, { children: "label" }),
|
|
1798
|
-
" renders ",
|
|
1799
|
-
/* @__PURE__ */ jsx13(Code5, { children: "aria-hidden" }),
|
|
1800
|
-
" \u2014 decorative, because the text beside it already carries the meaning. Supplying ",
|
|
1801
|
-
/* @__PURE__ */ jsx13(Code5, { children: "label" }),
|
|
1802
|
-
"makes it informative: the icon itself gets the accessible name, for the rare case where nothing else on the page does."
|
|
1803
|
-
] }),
|
|
1804
|
-
/* @__PURE__ */ jsxs12(Group8, { gap: "xl", children: [
|
|
1805
|
-
/* @__PURE__ */ jsxs12(Group8, { gap: "xs", children: [
|
|
1806
|
-
/* @__PURE__ */ jsx13(GdsIcon, { icon: "Info", size: "md" }),
|
|
1807
|
-
/* @__PURE__ */ jsx13(Text7, { size: "sm", children: "Decorative \u2014 no label, aria-hidden, text does the work" })
|
|
1808
|
-
] }),
|
|
1809
|
-
/* @__PURE__ */ jsxs12(Group8, { gap: "xs", children: [
|
|
1810
|
-
/* @__PURE__ */ jsx13(GdsIcon, { icon: "Info", size: "md", label: "More information" }),
|
|
1811
|
-
/* @__PURE__ */ jsx13(Text7, { size: "sm", children: "Informative \u2014 labelled, the icon alone carries the name" })
|
|
1812
|
-
] })
|
|
1813
|
-
] })
|
|
1814
|
-
] }),
|
|
1815
|
-
/* @__PURE__ */ jsxs12(Stack8, { gap: "2xs", children: [
|
|
1816
|
-
/* @__PURE__ */ jsx13(Text7, { fw: 700, children: "Badge glyph mode is a separate axis" }),
|
|
1817
|
-
/* @__PURE__ */ jsxs12(Text7, { size: "sm", children: [
|
|
1818
|
-
"Badges can additionally switch every glyph to emoji instead of a Tabler stroke icon (",
|
|
1819
|
-
/* @__PURE__ */ jsx13(Code5, { children: "useGdsBadgeIconStyle" }),
|
|
1820
|
-
"/",
|
|
1821
|
-
/* @__PURE__ */ jsx13(Code5, { children: "GdsIconStyleContext" }),
|
|
1822
|
-
", issue 525) \u2014 a badge-specific mode, not part of this dictionary. See Badges under Systems for the live toggle."
|
|
1823
|
-
] })
|
|
1824
|
-
] })
|
|
1825
|
-
] });
|
|
1826
|
-
}
|
|
1827
|
-
|
|
1828
|
-
// src/GdsPictogramSystemReference.tsx
|
|
1829
|
-
import { Badge as Badge4, Code as Code6, Group as Group9, Stack as Stack9, Table as Table6, Text as Text8 } from "@mantine/core";
|
|
1830
|
-
import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1831
|
-
var STATES = ["default", "hover", "selected", "disabled"];
|
|
1832
|
-
function GdsPictogramSystemReference() {
|
|
1833
|
-
const keys = getGdsActivityPictogramKeys();
|
|
1834
|
-
const treatments = Object.keys(GDS_PICTOGRAM_TREATMENT_SCALE);
|
|
1835
|
-
const scales = Object.keys(GDS_PICTOGRAM_SCALE_PX);
|
|
1836
|
-
return /* @__PURE__ */ jsxs13(Stack9, { gap: "md", "data-gds-pictogram-system-reference": "", children: [
|
|
1837
|
-
/* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
|
|
1838
|
-
/* @__PURE__ */ jsxs13(Text8, { fw: 700, children: [
|
|
1839
|
-
"The activity family \u2014 ",
|
|
1840
|
-
keys.length,
|
|
1841
|
-
" pictograms"
|
|
1842
|
-
] }),
|
|
1843
|
-
/* @__PURE__ */ jsxs13(Text8, { size: "sm", children: [
|
|
1844
|
-
"One governed family (",
|
|
1845
|
-
/* @__PURE__ */ jsx14(Code6, { children: gdsActivityPictograms.id }),
|
|
1846
|
-
") on a",
|
|
1847
|
-
" ",
|
|
1848
|
-
GDS_PICTOGRAM_GRID,
|
|
1849
|
-
"\xD7",
|
|
1850
|
-
GDS_PICTOGRAM_GRID,
|
|
1851
|
-
" optical grid \u2014 they signal the activity, never a scene. Every path is the real, unmodified data of a published icon-library glyph, never hand-drawn or redrawn:",
|
|
1852
|
-
" ",
|
|
1853
|
-
keys.length - Object.values(gdsActivityPictograms.pictograms).filter((p) => p.fillMode === "fill").length,
|
|
1854
|
-
" ",
|
|
1855
|
-
"render as a line drawing at a base stroke of ",
|
|
1856
|
-
/* @__PURE__ */ jsx14(Code6, { children: GDS_PICTOGRAM_BASE_STROKE }),
|
|
1857
|
-
", matching the source icon set's own line grammar; the remaining",
|
|
1858
|
-
" ",
|
|
1859
|
-
Object.values(gdsActivityPictograms.pictograms).filter((p) => p.fillMode === "fill").length,
|
|
1860
|
-
" ",
|
|
1861
|
-
"ship as a solid ",
|
|
1862
|
-
/* @__PURE__ */ jsx14(Code6, { children: "currentColor" }),
|
|
1863
|
-
" shape because that is the only real form the source glyph exists in."
|
|
1864
|
-
] }),
|
|
1865
|
-
/* @__PURE__ */ jsx14(Group9, { gap: "lg", children: keys.map((key) => /* @__PURE__ */ jsxs13(Stack9, { gap: 4, align: "center", w: 72, children: [
|
|
1866
|
-
/* @__PURE__ */ jsx14(GdsPictogram, { pictogram: key, treatment: "detail", label: gdsActivityPictograms.pictograms[key].label }),
|
|
1867
|
-
/* @__PURE__ */ jsx14(Text8, { size: "xs", c: "dimmed", ta: "center", children: gdsActivityPictograms.pictograms[key].label })
|
|
1868
|
-
] }, key)) })
|
|
1869
|
-
] }),
|
|
1870
|
-
/* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
|
|
1871
|
-
/* @__PURE__ */ jsxs13(Text8, { fw: 700, children: [
|
|
1872
|
-
"Contextual treatments \u2014 ",
|
|
1873
|
-
treatments.length,
|
|
1874
|
-
" contexts, one drawing each"
|
|
1875
|
-
] }),
|
|
1876
|
-
/* @__PURE__ */ jsxs13(Text8, { size: "sm", children: [
|
|
1877
|
-
/* @__PURE__ */ jsx14(Code6, { children: "list" }),
|
|
1878
|
-
", ",
|
|
1879
|
-
/* @__PURE__ */ jsx14(Code6, { children: "detail" }),
|
|
1880
|
-
", ",
|
|
1881
|
-
/* @__PURE__ */ jsx14(Code6, { children: "hero" }),
|
|
1882
|
-
", and ",
|
|
1883
|
-
/* @__PURE__ */ jsx14(Code6, { children: "pin" }),
|
|
1884
|
-
" each resolve to their own default scale (",
|
|
1885
|
-
/* @__PURE__ */ jsx14(Code6, { children: "GDS_PICTOGRAM_TREATMENT_SCALE" }),
|
|
1886
|
-
") and stroke weight \u2014 the path data itself never changes across a row."
|
|
1887
|
-
] }),
|
|
1888
|
-
/* @__PURE__ */ jsx14(GdsTableScrollContainer, { children: /* @__PURE__ */ jsxs13(Table6, { withTableBorder: true, children: [
|
|
1889
|
-
/* @__PURE__ */ jsx14(Table6.Thead, { children: /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
1890
|
-
/* @__PURE__ */ jsx14(Table6.Th, { children: "Pictogram" }),
|
|
1891
|
-
treatments.map((treatment) => /* @__PURE__ */ jsxs13(Table6.Th, { children: [
|
|
1892
|
-
treatment,
|
|
1893
|
-
" \xB7 ",
|
|
1894
|
-
GDS_PICTOGRAM_TREATMENT_SCALE[treatment],
|
|
1895
|
-
" \xB7 ",
|
|
1896
|
-
GDS_PICTOGRAM_SCALE_PX[GDS_PICTOGRAM_TREATMENT_SCALE[treatment]],
|
|
1897
|
-
"px"
|
|
1898
|
-
] }, treatment))
|
|
1899
|
-
] }) }),
|
|
1900
|
-
/* @__PURE__ */ jsx14(Table6.Tbody, { children: keys.map((key) => /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
1901
|
-
/* @__PURE__ */ jsx14(Table6.Td, { children: gdsActivityPictograms.pictograms[key].label }),
|
|
1902
|
-
treatments.map((treatment) => /* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(GdsPictogram, { pictogram: key, treatment, label: gdsActivityPictograms.pictograms[key].label }) }, treatment))
|
|
1903
|
-
] }, key)) })
|
|
1904
|
-
] }) })
|
|
1905
|
-
] }),
|
|
1906
|
-
/* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
|
|
1907
|
-
/* @__PURE__ */ jsxs13(Text8, { fw: 700, children: [
|
|
1908
|
-
"Scales \u2014 ",
|
|
1909
|
-
scales.length,
|
|
1910
|
-
" sizes, stroke tuned per size"
|
|
1911
|
-
] }),
|
|
1912
|
-
/* @__PURE__ */ jsxs13(Text8, { size: "sm", children: [
|
|
1913
|
-
"The same ",
|
|
1914
|
-
/* @__PURE__ */ jsx14(Code6, { children: "soccer" }),
|
|
1915
|
-
" drawing at each scale, with the grid-space stroke width (",
|
|
1916
|
-
/* @__PURE__ */ jsx14(Code6, { children: "GDS_PICTOGRAM_STROKE_BY_SCALE" }),
|
|
1917
|
-
") that keeps it legible at that rendered size \u2014 ",
|
|
1918
|
-
/* @__PURE__ */ jsx14(Code6, { children: "scale" }),
|
|
1919
|
-
" overrides a treatment\u2019s default here to isolate the axis."
|
|
1920
|
-
] }),
|
|
1921
|
-
/* @__PURE__ */ jsx14(Group9, { gap: "xl", align: "flex-end", children: scales.map((scale) => /* @__PURE__ */ jsxs13(Stack9, { gap: 4, align: "center", children: [
|
|
1922
|
-
/* @__PURE__ */ jsx14(GdsPictogram, { pictogram: "soccer", scale, label: `Soccer at ${scale}` }),
|
|
1923
|
-
/* @__PURE__ */ jsxs13(Text8, { size: "xs", c: "dimmed", children: [
|
|
1924
|
-
scale,
|
|
1925
|
-
" \xB7 ",
|
|
1926
|
-
GDS_PICTOGRAM_SCALE_PX[scale],
|
|
1927
|
-
"px \xB7 stroke ",
|
|
1928
|
-
GDS_PICTOGRAM_STROKE_BY_SCALE[scale]
|
|
1929
|
-
] })
|
|
1930
|
-
] }, scale)) })
|
|
1931
|
-
] }),
|
|
1932
|
-
/* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
|
|
1933
|
-
/* @__PURE__ */ jsxs13(Text8, { fw: 700, children: [
|
|
1934
|
-
"Interaction states \u2014 ",
|
|
1935
|
-
STATES.length,
|
|
1936
|
-
" states, token colour only"
|
|
1937
|
-
] }),
|
|
1938
|
-
/* @__PURE__ */ jsxs13(Text8, { size: "sm", children: [
|
|
1939
|
-
"Rendered at the ",
|
|
1940
|
-
/* @__PURE__ */ jsx14(Code6, { children: "detail" }),
|
|
1941
|
-
" treatment so ",
|
|
1942
|
-
/* @__PURE__ */ jsx14(Code6, { children: "selected" }),
|
|
1943
|
-
"\u2019s accent fill and ",
|
|
1944
|
-
/* @__PURE__ */ jsx14(Code6, { children: "disabled" }),
|
|
1945
|
-
"\u2019s reduced opacity read clearly. No state introduces a new hue: ",
|
|
1946
|
-
/* @__PURE__ */ jsx14(Code6, { children: "hover" }),
|
|
1947
|
-
" is a surface-level cue owned by the host, so the drawing itself is identical to ",
|
|
1948
|
-
/* @__PURE__ */ jsx14(Code6, { children: "default" }),
|
|
1949
|
-
"."
|
|
1950
|
-
] }),
|
|
1951
|
-
/* @__PURE__ */ jsx14(GdsTableScrollContainer, { children: /* @__PURE__ */ jsxs13(Table6, { withTableBorder: true, children: [
|
|
1952
|
-
/* @__PURE__ */ jsx14(Table6.Thead, { children: /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
1953
|
-
/* @__PURE__ */ jsx14(Table6.Th, { children: "Pictogram" }),
|
|
1954
|
-
STATES.map((state) => /* @__PURE__ */ jsx14(Table6.Th, { children: state }, state))
|
|
1955
|
-
] }) }),
|
|
1956
|
-
/* @__PURE__ */ jsx14(Table6.Tbody, { children: keys.map((key) => /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
1957
|
-
/* @__PURE__ */ jsx14(Table6.Td, { children: gdsActivityPictograms.pictograms[key].label }),
|
|
1958
|
-
STATES.map((state) => /* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(GdsPictogram, { pictogram: key, treatment: "detail", state, label: `${gdsActivityPictograms.pictograms[key].label} \u2014 ${state}` }) }, state))
|
|
1959
|
-
] }, key)) })
|
|
1960
|
-
] }) })
|
|
1961
|
-
] }),
|
|
1962
|
-
/* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
|
|
1963
|
-
/* @__PURE__ */ jsxs13(Text8, { fw: 700, children: [
|
|
1964
|
-
"Hero layering \u2014 ",
|
|
1965
|
-
GDS_PICTOGRAM_HERO_LAYERS.length,
|
|
1966
|
-
" layers, scale/opacity only"
|
|
1967
|
-
] }),
|
|
1968
|
-
/* @__PURE__ */ jsxs13(Text8, { size: "sm", children: [
|
|
1969
|
-
"The bounded recipe behind the ",
|
|
1970
|
-
/* @__PURE__ */ jsx14(Code6, { children: "hero" }),
|
|
1971
|
-
" treatment: the real mark plus",
|
|
1972
|
-
" ",
|
|
1973
|
-
GDS_PICTOGRAM_HERO_LAYERS.length - 1,
|
|
1974
|
-
" larger, fainter, offset echoes of the identical path \u2014 depth from transform and opacity alone, never a second colour."
|
|
1975
|
-
] }),
|
|
1976
|
-
/* @__PURE__ */ jsx14(GdsTableScrollContainer, { children: /* @__PURE__ */ jsxs13(Table6, { withTableBorder: true, children: [
|
|
1977
|
-
/* @__PURE__ */ jsx14(Table6.Thead, { children: /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
1978
|
-
/* @__PURE__ */ jsx14(Table6.Th, { children: "Layer" }),
|
|
1979
|
-
/* @__PURE__ */ jsx14(Table6.Th, { children: "scale" }),
|
|
1980
|
-
/* @__PURE__ */ jsx14(Table6.Th, { children: "opacity" }),
|
|
1981
|
-
/* @__PURE__ */ jsx14(Table6.Th, { children: "offsetX" }),
|
|
1982
|
-
/* @__PURE__ */ jsx14(Table6.Th, { children: "offsetY" })
|
|
1983
|
-
] }) }),
|
|
1984
|
-
/* @__PURE__ */ jsx14(Table6.Tbody, { children: GDS_PICTOGRAM_HERO_LAYERS.map((layer, index) => /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
1985
|
-
/* @__PURE__ */ jsx14(Table6.Td, { children: index }),
|
|
1986
|
-
/* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(Code6, { children: layer.scale }) }),
|
|
1987
|
-
/* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(Code6, { children: layer.opacity }) }),
|
|
1988
|
-
/* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(Code6, { children: layer.offsetX }) }),
|
|
1989
|
-
/* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(Code6, { children: layer.offsetY }) })
|
|
1990
|
-
] }, `${layer.scale}-${layer.offsetX}-${layer.offsetY}`)) })
|
|
1991
|
-
] }) }),
|
|
1992
|
-
/* @__PURE__ */ jsxs13(Group9, { gap: "xl", align: "center", children: [
|
|
1993
|
-
/* @__PURE__ */ jsx14(GdsPictogram, { pictogram: "basketball", treatment: "hero", label: "Basketball, hero treatment" }),
|
|
1994
|
-
/* @__PURE__ */ jsx14(GdsPictogram, { pictogram: "camps", treatment: "hero", label: "Camps, hero treatment" })
|
|
1995
|
-
] })
|
|
1996
|
-
] }),
|
|
1997
|
-
/* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
|
|
1998
|
-
/* @__PURE__ */ jsx14(Text8, { fw: 700, children: "Numeric contract \u2014 read from the exports, never retyped" }),
|
|
1999
|
-
/* @__PURE__ */ jsx14(GdsTableScrollContainer, { children: /* @__PURE__ */ jsx14(Table6, { withTableBorder: true, children: /* @__PURE__ */ jsxs13(Table6.Tbody, { children: [
|
|
2000
|
-
/* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
2001
|
-
/* @__PURE__ */ jsx14(Table6.Td, { children: "Optical grid" }),
|
|
2002
|
-
/* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsxs13(Code6, { children: [
|
|
2003
|
-
GDS_PICTOGRAM_GRID,
|
|
2004
|
-
"\xD7",
|
|
2005
|
-
GDS_PICTOGRAM_GRID
|
|
2006
|
-
] }) })
|
|
2007
|
-
] }),
|
|
2008
|
-
/* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
2009
|
-
/* @__PURE__ */ jsx14(Table6.Td, { children: "Base stroke" }),
|
|
2010
|
-
/* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(Code6, { children: GDS_PICTOGRAM_BASE_STROKE }) })
|
|
2011
|
-
] }),
|
|
2012
|
-
/* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
2013
|
-
/* @__PURE__ */ jsx14(Table6.Td, { children: "Disabled opacity" }),
|
|
2014
|
-
/* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(Code6, { children: GDS_PICTOGRAM_DISABLED_OPACITY }) })
|
|
2015
|
-
] }),
|
|
2016
|
-
scales.map((scale) => /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
2017
|
-
/* @__PURE__ */ jsxs13(Table6.Td, { children: [
|
|
2018
|
-
"Scale ",
|
|
2019
|
-
/* @__PURE__ */ jsx14(Code6, { children: scale })
|
|
2020
|
-
] }),
|
|
2021
|
-
/* @__PURE__ */ jsxs13(Table6.Td, { children: [
|
|
2022
|
-
GDS_PICTOGRAM_SCALE_PX[scale],
|
|
2023
|
-
"px, stroke ",
|
|
2024
|
-
/* @__PURE__ */ jsx14(Code6, { children: GDS_PICTOGRAM_STROKE_BY_SCALE[scale] })
|
|
2025
|
-
] })
|
|
2026
|
-
] }, scale)),
|
|
2027
|
-
treatments.map((treatment) => /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
2028
|
-
/* @__PURE__ */ jsxs13(Table6.Td, { children: [
|
|
2029
|
-
"Treatment ",
|
|
2030
|
-
/* @__PURE__ */ jsx14(Code6, { children: treatment })
|
|
2031
|
-
] }),
|
|
2032
|
-
/* @__PURE__ */ jsxs13(Table6.Td, { children: [
|
|
2033
|
-
"defaults to scale ",
|
|
2034
|
-
/* @__PURE__ */ jsx14(Code6, { children: GDS_PICTOGRAM_TREATMENT_SCALE[treatment] })
|
|
2035
|
-
] })
|
|
2036
|
-
] }, treatment))
|
|
2037
|
-
] }) }) })
|
|
2038
|
-
] }),
|
|
2039
|
-
/* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
|
|
2040
|
-
/* @__PURE__ */ jsxs13(Text8, { fw: 700, children: [
|
|
2041
|
-
"Usage rules \u2014 ",
|
|
2042
|
-
gdsPictogramUsageRules.length,
|
|
2043
|
-
" rules from the source guidelines"
|
|
2044
|
-
] }),
|
|
2045
|
-
/* @__PURE__ */ jsxs13(Text8, { size: "sm", children: [
|
|
2046
|
-
"Shipped as data (",
|
|
2047
|
-
/* @__PURE__ */ jsx14(Code6, { children: "gdsPictogramUsageRules" }),
|
|
2048
|
-
") rather than retyped prose, so this list can never drift from what the mechanism actually enforces or documents."
|
|
2049
|
-
] }),
|
|
2050
|
-
/* @__PURE__ */ jsx14(Stack9, { gap: 4, children: gdsPictogramUsageRules.map((rule) => /* @__PURE__ */ jsxs13(Group9, { gap: "xs", align: "flex-start", wrap: "nowrap", children: [
|
|
2051
|
-
/* @__PURE__ */ jsx14(Badge4, { size: "xs", variant: "light", style: { flexShrink: 0 }, children: rule.treatment }),
|
|
2052
|
-
/* @__PURE__ */ jsx14(Text8, { size: "sm", children: rule.rule })
|
|
2053
|
-
] }, rule.id)) })
|
|
2054
|
-
] }),
|
|
2055
|
-
/* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
|
|
2056
|
-
/* @__PURE__ */ jsx14(Text8, { fw: 700, children: "Decorative vs informative \u2014 the accessibility contract" }),
|
|
2057
|
-
/* @__PURE__ */ jsxs13(Text8, { size: "sm", children: [
|
|
2058
|
-
"Exact parity with ",
|
|
2059
|
-
/* @__PURE__ */ jsx14(Code6, { children: "GdsIcon" }),
|
|
2060
|
-
": no ",
|
|
2061
|
-
/* @__PURE__ */ jsx14(Code6, { children: "label" }),
|
|
2062
|
-
" renders",
|
|
2063
|
-
" ",
|
|
2064
|
-
/* @__PURE__ */ jsx14(Code6, { children: "aria-hidden" }),
|
|
2065
|
-
"; supplying ",
|
|
2066
|
-
/* @__PURE__ */ jsx14(Code6, { children: "label" }),
|
|
2067
|
-
" renders ",
|
|
2068
|
-
/* @__PURE__ */ jsx14(Code6, { children: 'role="img"' }),
|
|
2069
|
-
" ",
|
|
2070
|
-
"with an ",
|
|
2071
|
-
/* @__PURE__ */ jsx14(Code6, { children: "aria-label" }),
|
|
2072
|
-
". Pictograms are never mirrored for RTL locales \u2014 they are direction-neutral drawings, not directional glyphs."
|
|
2073
|
-
] }),
|
|
2074
|
-
/* @__PURE__ */ jsxs13(Group9, { gap: "xl", children: [
|
|
2075
|
-
/* @__PURE__ */ jsxs13(Group9, { gap: "xs", children: [
|
|
2076
|
-
/* @__PURE__ */ jsx14(GdsPictogram, { pictogram: "tennis" }),
|
|
2077
|
-
/* @__PURE__ */ jsx14(Text8, { size: "sm", children: "Decorative \u2014 no label, aria-hidden, the card\u2019s own title carries the name" })
|
|
2078
|
-
] }),
|
|
2079
|
-
/* @__PURE__ */ jsxs13(Group9, { gap: "xs", children: [
|
|
2080
|
-
/* @__PURE__ */ jsx14(GdsPictogram, { pictogram: "tennis", label: "Tennis" }),
|
|
2081
|
-
/* @__PURE__ */ jsx14(Text8, { size: "sm", children: "Informative \u2014 labelled, the pictogram alone carries the name" })
|
|
2082
|
-
] })
|
|
2083
|
-
] })
|
|
2084
|
-
] })
|
|
2085
|
-
] });
|
|
2086
|
-
}
|
|
2087
|
-
|
|
2088
|
-
// src/GdsTypographySystemReference.tsx
|
|
2089
|
-
import { Code as Code7, Group as Group10, Stack as Stack10, Table as Table7, Text as Text9 } from "@mantine/core";
|
|
2090
|
-
import {
|
|
2091
|
-
GDS_TEXT_STEPS,
|
|
2092
|
-
GDS_WEIGHT_NAMES,
|
|
2093
|
-
resolveGdsTypographyTokens
|
|
2094
|
-
} from "@sovereignsquad/gds-theme";
|
|
2095
|
-
import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2096
|
-
function GdsTypographySystemReference() {
|
|
2097
|
-
const tokens = resolveGdsTypographyTokens();
|
|
2098
|
-
return /* @__PURE__ */ jsxs14(Stack10, { gap: "md", "data-gds-typography-system-reference": "", children: [
|
|
2099
|
-
/* @__PURE__ */ jsxs14(Stack10, { gap: "2xs", children: [
|
|
2100
|
-
/* @__PURE__ */ jsx15(Text9, { fw: 700, children: "Text-size steps \u2014 the whole scale" }),
|
|
2101
|
-
/* @__PURE__ */ jsxs14(Text9, { size: "sm", children: [
|
|
2102
|
-
"Nine steps on a modular scale (base \xD7 ratio); ",
|
|
2103
|
-
/* @__PURE__ */ jsx15(Code7, { children: "xs" }),
|
|
2104
|
-
"\u2013",
|
|
2105
|
-
/* @__PURE__ */ jsx15(Code7, { children: "xl" }),
|
|
2106
|
-
" are overridden to match Mantine\u2019s own non-uniform ramp exactly, the rest are computed from the ratio. Each line below renders at its own resolved size."
|
|
2107
|
-
] }),
|
|
2108
|
-
/* @__PURE__ */ jsx15(Stack10, { gap: "xs", children: GDS_TEXT_STEPS.map((step) => /* @__PURE__ */ jsxs14(Group10, { gap: "sm", align: "baseline", children: [
|
|
2109
|
-
/* @__PURE__ */ jsx15(
|
|
2110
|
-
Text9,
|
|
2111
|
-
{
|
|
2112
|
-
span: true,
|
|
2113
|
-
style: {
|
|
2114
|
-
fontSize: tokens[`--gds-font-size-${step}`],
|
|
2115
|
-
lineHeight: tokens[`--gds-line-height-${step}`] ?? void 0
|
|
2116
|
-
},
|
|
2117
|
-
children: step
|
|
2118
|
-
}
|
|
2119
|
-
),
|
|
2120
|
-
/* @__PURE__ */ jsx15(Text9, { size: "xs", c: "dimmed", children: /* @__PURE__ */ jsx15(Code7, { children: tokens[`--gds-font-size-${step}`] }) })
|
|
2121
|
-
] }, step)) })
|
|
2122
|
-
] }),
|
|
2123
|
-
/* @__PURE__ */ jsxs14(Stack10, { gap: "2xs", children: [
|
|
2124
|
-
/* @__PURE__ */ jsx15(Text9, { fw: 700, children: "Weights \u2014 four steps, always ascending" }),
|
|
2125
|
-
/* @__PURE__ */ jsx15(Text9, { size: "sm", children: "The axis rejects a weight scale that does not ascend at construction time, before it can render as broken text." }),
|
|
2126
|
-
/* @__PURE__ */ jsx15(Group10, { gap: "lg", children: GDS_WEIGHT_NAMES.map((name) => /* @__PURE__ */ jsxs14(Text9, { fw: Number(tokens[`--gds-weight-${name}`]), size: "lg", children: [
|
|
2127
|
-
name,
|
|
2128
|
-
" \xB7 ",
|
|
2129
|
-
tokens[`--gds-weight-${name}`]
|
|
2130
|
-
] }, name)) })
|
|
2131
|
-
] }),
|
|
2132
|
-
/* @__PURE__ */ jsxs14(Stack10, { gap: "2xs", children: [
|
|
2133
|
-
/* @__PURE__ */ jsx15(Text9, { fw: 700, children: "Font lanes \u2014 display, body, mono" }),
|
|
2134
|
-
/* @__PURE__ */ jsx15(Text9, { size: "sm", children: "Three roles a theme assigns a registered lane id to; component source asks for a role, never a font family directly." }),
|
|
2135
|
-
/* @__PURE__ */ jsx15(GdsTableScrollContainer, { children: /* @__PURE__ */ jsx15(Table7, { withTableBorder: true, children: /* @__PURE__ */ jsx15(Table7.Tbody, { children: ["display", "body", "mono"].map((role) => /* @__PURE__ */ jsxs14(Table7.Tr, { children: [
|
|
2136
|
-
/* @__PURE__ */ jsx15(Table7.Td, { children: role }),
|
|
2137
|
-
/* @__PURE__ */ jsx15(Table7.Td, { children: /* @__PURE__ */ jsx15(Code7, { children: tokens[`--gds-font-lane-${role}`] }) })
|
|
2138
|
-
] }, role)) }) }) })
|
|
2139
|
-
] })
|
|
2140
|
-
] });
|
|
2141
|
-
}
|
|
2142
|
-
|
|
2143
|
-
// src/GdsColorSystemReference.tsx
|
|
2144
|
-
import { Box as Box5, Group as Group11, Stack as Stack11, Text as Text10 } from "@mantine/core";
|
|
2145
|
-
import {
|
|
2146
|
-
ACCENT_ROLES,
|
|
2147
|
-
DOMINANT_ROLES,
|
|
2148
|
-
SECONDARY_ROLES,
|
|
2149
|
-
GDS_ACCENT_MODES,
|
|
2150
|
-
GDS_ACCENT_MODE_ENFORCEMENT,
|
|
2151
|
-
GDS_ACCENT_NAMES,
|
|
2152
|
-
getGdsVibeThemeCssVariables as getGdsVibeThemeCssVariables2
|
|
2153
|
-
} from "@sovereignsquad/gds-theme";
|
|
2154
|
-
import { jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2155
|
-
var roleVarName = (role) => `--gds-${role.replace(".", "-")}`;
|
|
2156
|
-
function RoleGroup({ title, description, roles, vars }) {
|
|
2157
|
-
return /* @__PURE__ */ jsxs15(Stack11, { gap: "2xs", children: [
|
|
2158
|
-
/* @__PURE__ */ jsx16(Text10, { fw: 700, children: title }),
|
|
2159
|
-
/* @__PURE__ */ jsx16(Text10, { size: "sm", children: description }),
|
|
2160
|
-
/* @__PURE__ */ jsx16(Group11, { gap: "sm", wrap: "wrap", children: roles.map((role) => {
|
|
2161
|
-
const value = vars[roleVarName(role)];
|
|
2162
|
-
return /* @__PURE__ */ jsxs15(Stack11, { gap: 4, align: "center", miw: 96, children: [
|
|
2163
|
-
/* @__PURE__ */ jsx16(
|
|
2164
|
-
Box5,
|
|
2165
|
-
{
|
|
2166
|
-
style: {
|
|
2167
|
-
width: 40,
|
|
2168
|
-
height: 40,
|
|
2169
|
-
background: value,
|
|
2170
|
-
border: "1px solid var(--gds-border-card, var(--mantine-color-gray-3))",
|
|
2171
|
-
borderRadius: "var(--gds-radius-sm)"
|
|
2172
|
-
}
|
|
2173
|
-
}
|
|
2174
|
-
),
|
|
2175
|
-
/* @__PURE__ */ jsx16(Text10, { size: "xs", fw: 600, children: role }),
|
|
2176
|
-
/* @__PURE__ */ jsx16(Text10, { size: "xs", c: "dimmed", ff: "monospace", children: value ?? "unset" })
|
|
2177
|
-
] }, role);
|
|
2178
|
-
}) })
|
|
2179
|
-
] });
|
|
2180
|
-
}
|
|
2181
|
-
function GdsColorSystemReference() {
|
|
2182
|
-
const light = getGdsVibeThemeCssVariables2("default", "light");
|
|
2183
|
-
return /* @__PURE__ */ jsxs15(Stack11, { gap: "md", "data-gds-color-system-reference": "", children: [
|
|
2184
|
-
/* @__PURE__ */ jsxs15(Stack11, { gap: "2xs", children: [
|
|
2185
|
-
/* @__PURE__ */ jsx16(Text10, { fw: 700, children: "Semantic roles \u2014 the 60-30-10 classification" }),
|
|
2186
|
-
/* @__PURE__ */ jsx16(Text10, { size: "sm", children: "Every BrandSemanticRole belongs to exactly one class, enforced at module load so a role added without a classification fails loudly rather than under-counting silently. Swatches shown for the default preset, light scheme." })
|
|
2187
|
-
] }),
|
|
2188
|
-
/* @__PURE__ */ jsx16(
|
|
2189
|
-
RoleGroup,
|
|
2190
|
-
{
|
|
2191
|
-
title: "Dominant (~60%)",
|
|
2192
|
-
description: "Large-surface roles: backgrounds, body text, disabled states. Low-saturation by design so a 60% share reads calm, not loud.",
|
|
2193
|
-
roles: DOMINANT_ROLES,
|
|
2194
|
-
vars: light
|
|
2195
|
-
}
|
|
2196
|
-
),
|
|
2197
|
-
/* @__PURE__ */ jsx16(
|
|
2198
|
-
RoleGroup,
|
|
2199
|
-
{
|
|
2200
|
-
title: "Secondary (~30%)",
|
|
2201
|
-
description: "Brand-chrome roles: moderate-frequency, identity-carrying. Appears often but never as the majority page fill.",
|
|
2202
|
-
roles: SECONDARY_ROLES,
|
|
2203
|
-
vars: light
|
|
2204
|
-
}
|
|
2205
|
-
),
|
|
2206
|
-
/* @__PURE__ */ jsx16(
|
|
2207
|
-
RoleGroup,
|
|
2208
|
-
{
|
|
2209
|
-
title: "Accent (~10%)",
|
|
2210
|
-
description: "Scarce-signal roles: CTAs, status, badges, focus rings. Rare and attention-carrying, never a background fill for a large surface.",
|
|
2211
|
-
roles: ACCENT_ROLES,
|
|
2212
|
-
vars: light
|
|
2213
|
-
}
|
|
2214
|
-
),
|
|
2215
|
-
/* @__PURE__ */ jsxs15(Stack11, { gap: "2xs", children: [
|
|
2216
|
-
/* @__PURE__ */ jsx16(Text10, { fw: 700, children: "The accent axis \u2014 governed names, shades, and modes" }),
|
|
2217
|
-
/* @__PURE__ */ jsx16(Text10, { size: "sm", children: "A theme supplies one ramp per accent name; every shade and mode below is derived from it, never hand-picked per combination." }),
|
|
2218
|
-
/* @__PURE__ */ jsxs15(Stack11, { gap: "xs", children: [
|
|
2219
|
-
/* @__PURE__ */ jsxs15(Text10, { size: "sm", children: [
|
|
2220
|
-
/* @__PURE__ */ jsx16(Text10, { component: "span", fw: 600, children: "Accent names" }),
|
|
2221
|
-
": ",
|
|
2222
|
-
GDS_ACCENT_NAMES.join(", ")
|
|
2223
|
-
] }),
|
|
2224
|
-
/* @__PURE__ */ jsx16(Stack11, { gap: 4, children: GDS_ACCENT_MODES.map((mode) => /* @__PURE__ */ jsxs15(Text10, { size: "sm", children: [
|
|
2225
|
-
/* @__PURE__ */ jsx16(Text10, { component: "span", fw: 600, children: mode }),
|
|
2226
|
-
" \u2014 ",
|
|
2227
|
-
GDS_ACCENT_MODE_ENFORCEMENT[mode].enforced ? "enforced" : "measured only",
|
|
2228
|
-
": ",
|
|
2229
|
-
GDS_ACCENT_MODE_ENFORCEMENT[mode].reason
|
|
2230
|
-
] }, mode)) })
|
|
2231
|
-
] })
|
|
2232
|
-
] }),
|
|
2233
|
-
/* @__PURE__ */ jsxs15(Stack11, { gap: "2xs", children: [
|
|
2234
|
-
/* @__PURE__ */ jsx16(Text10, { fw: 700, children: "Live contrast matrix \u2014 default preset, light scheme" }),
|
|
2235
|
-
/* @__PURE__ */ jsx16(Text10, { size: "sm", children: "Every accent x shade x mode combination, with its measured ratio and required threshold. Computed by evaluateGdsAccentContrast() \u2014 the same function verify:accent-contrast runs." }),
|
|
2236
|
-
/* @__PURE__ */ jsx16(GdsAccentContrastMatrix, { preset: "default", colorScheme: "light" })
|
|
2237
|
-
] })
|
|
2238
|
-
] });
|
|
2239
|
-
}
|
|
2240
|
-
|
|
2241
|
-
// src/GdsAccessibilitySystemReference.tsx
|
|
2242
|
-
import { Badge as Badge5, Box as Box6, Group as Group12, Stack as Stack12, Text as Text11 } from "@mantine/core";
|
|
2243
|
-
import { auditGdsAccessibilityFloor, gdsAccessibilityFloorRules } from "@sovereignsquad/gds-theme";
|
|
2244
|
-
import { jsx as jsx17, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2245
|
-
function GdsAccessibilitySystemReference() {
|
|
2246
|
-
const audit = auditGdsAccessibilityFloor();
|
|
2247
|
-
const holds = audit.violations.length === 0;
|
|
2248
|
-
return /* @__PURE__ */ jsxs16(Stack12, { gap: "md", "data-gds-accessibility-system-reference": "", children: [
|
|
2249
|
-
/* @__PURE__ */ jsxs16(Stack12, { gap: "2xs", children: [
|
|
2250
|
-
/* @__PURE__ */ jsxs16(Group12, { gap: "xs", align: "center", children: [
|
|
2251
|
-
/* @__PURE__ */ jsx17(Text11, { fw: 700, children: "Live audit \u2014 every preset, every scheme" }),
|
|
2252
|
-
/* @__PURE__ */ jsx17(Badge5, { color: holds ? "green" : "red", variant: "light", children: holds ? "Holds" : `${audit.violations.length} violation(s)` })
|
|
2253
|
-
] }),
|
|
2254
|
-
/* @__PURE__ */ jsxs16(Text11, { size: "sm", children: [
|
|
2255
|
-
audit.rulesEvaluated,
|
|
2256
|
-
" rule",
|
|
2257
|
-
audit.rulesEvaluated === 1 ? "" : "s",
|
|
2258
|
-
" checked across",
|
|
2259
|
-
" ",
|
|
2260
|
-
audit.presetsChecked,
|
|
2261
|
-
" preset/scheme combinations \u2014 the same function `npm run verify:a11y-floor` runs, called directly here rather than restated."
|
|
2262
|
-
] })
|
|
2263
|
-
] }),
|
|
2264
|
-
/* @__PURE__ */ jsxs16(Stack12, { gap: "2xs", children: [
|
|
2265
|
-
/* @__PURE__ */ jsx17(Text11, { fw: 700, children: "The rules \u2014 minimums no theme may cross" }),
|
|
2266
|
-
/* @__PURE__ */ jsx17(Text11, { size: "sm", children: "Every rule is checkable from resolved tokens alone, so it runs over every preset in both schemes without a browser. Rules needing real rendered geometry belong to the runtime harness instead (forced-colors, focus-ring, touch-target-floor)." }),
|
|
2267
|
-
/* @__PURE__ */ jsx17(
|
|
2268
|
-
SimpleDataTable,
|
|
2269
|
-
{
|
|
2270
|
-
columns: [
|
|
2271
|
-
{ key: "id", header: "Rule" },
|
|
2272
|
-
{ key: "axis", header: "Axis" },
|
|
2273
|
-
{ key: "wcag", header: "WCAG" },
|
|
2274
|
-
{
|
|
2275
|
-
key: "rationale",
|
|
2276
|
-
header: "Why",
|
|
2277
|
-
// A bare `Text` in a table cell gets squeezed to whatever width the other
|
|
2278
|
-
// columns leave it -- measured live at 52px, wrapping this sentence-length
|
|
2279
|
-
// rationale into a near-vertical string and ballooning the row to 452px tall.
|
|
2280
|
-
// A minimum width gives it a readable wrap instead.
|
|
2281
|
-
render: (row) => /* @__PURE__ */ jsx17(Box6, { miw: 260, maw: 360, children: /* @__PURE__ */ jsx17(Text11, { size: "xs", c: "dimmed", children: row.rationale }) })
|
|
2282
|
-
}
|
|
2283
|
-
],
|
|
2284
|
-
rows: gdsAccessibilityFloorRules,
|
|
2285
|
-
getRowKey: (row) => row.id
|
|
2286
|
-
}
|
|
2287
|
-
)
|
|
2288
|
-
] })
|
|
2289
|
-
] });
|
|
2290
|
-
}
|
|
2291
|
-
|
|
2292
|
-
// src/GdsButtonFeedbackReference.tsx
|
|
2293
|
-
import { useCallback, useEffect as useEffect3, useRef as useRef2, useState } from "react";
|
|
2294
|
-
import { Badge as Badge6, Box as Box7, Button as Button3, Group as Group13, SegmentedControl, SimpleGrid as SimpleGrid3, Stack as Stack13, Text as Text12 } from "@mantine/core";
|
|
2295
|
-
import { jsx as jsx18, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2296
|
-
var feedbackRows = Object.entries(GdsVocabulary).filter(([, config]) => Boolean(config.feedback)).map(([action, config]) => ({
|
|
2297
|
-
action,
|
|
2298
|
-
color: config.feedback.color,
|
|
2299
|
-
messageId: config.feedback.messageId,
|
|
2300
|
-
Icon: config.feedback.icon
|
|
2301
|
-
}));
|
|
2302
|
-
var totalActions = Object.keys(GdsVocabulary).length;
|
|
2303
|
-
var motionRows = Object.entries(GdsVocabulary).filter(([, config]) => Boolean(config.motion)).map(([action, config]) => ({
|
|
2304
|
-
action,
|
|
2305
|
-
press: config.motion.press ?? "\u2014",
|
|
2306
|
-
pending: config.motion.pending ?? "spinner",
|
|
2307
|
-
success: config.motion.success ?? "pop",
|
|
2308
|
-
confirm: config.motion.confirm ? "yes" : "no"
|
|
2309
|
-
}));
|
|
2310
|
-
var cycleRows = motionRows.filter((row) => {
|
|
2311
|
-
const motion = GdsVocabulary[row.action].motion;
|
|
2312
|
-
return Boolean(motion.success || motion.pending && motion.pending !== "spinner" || motion.confirm);
|
|
2313
|
-
});
|
|
2314
|
-
var DEMO_LATENCIES = {
|
|
2315
|
-
fast: Math.round(GDS_BUTTON_PENDING_DELAY_MS / 2),
|
|
2316
|
-
slow: GDS_BUTTON_PENDING_DELAY_MS * 3
|
|
2317
|
-
};
|
|
2318
|
-
function simulatedAction(latencyMs, succeed) {
|
|
2319
|
-
return () => new Promise((resolve, reject) => {
|
|
2320
|
-
setTimeout(() => succeed ? resolve() : reject(new Error("Simulated failure")), latencyMs);
|
|
2321
|
-
});
|
|
2322
|
-
}
|
|
2323
|
-
function PressMotionCatalog() {
|
|
2324
|
-
return /* @__PURE__ */ jsx18(SimpleGrid3, { cols: { base: 1, xs: 2, sm: 3, md: 4 }, spacing: "xs", "data-gds-button-press-reference": "", children: motionRows.map((row) => /* @__PURE__ */ jsx18(Group13, { gap: "xs", wrap: "nowrap", "data-gds-button-press-demo": row.action, children: /* @__PURE__ */ jsx18(SemanticButton, { action: row.action, variant: "light" }) }, row.action)) });
|
|
2325
|
-
}
|
|
2326
|
-
function ActionMotionDemo() {
|
|
2327
|
-
const [outcome, setOutcome] = useState("success");
|
|
2328
|
-
const [speed, setSpeed] = useState("slow");
|
|
2329
|
-
const run = simulatedAction(DEMO_LATENCIES[speed], outcome === "success");
|
|
2330
|
-
return /* @__PURE__ */ jsxs17(Stack13, { gap: "xs", "data-gds-button-motion-reference": "", children: [
|
|
2331
|
-
/* @__PURE__ */ jsxs17(Group13, { gap: "sm", wrap: "wrap", children: [
|
|
2332
|
-
/* @__PURE__ */ jsx18(
|
|
2333
|
-
SegmentedControl,
|
|
2334
|
-
{
|
|
2335
|
-
"aria-label": "Simulated outcome",
|
|
2336
|
-
value: outcome,
|
|
2337
|
-
onChange: (value) => setOutcome(value),
|
|
2338
|
-
data: [{ value: "success", label: "Succeeds" }, { value: "error", label: "Fails" }]
|
|
2339
|
-
}
|
|
2340
|
-
),
|
|
2341
|
-
/* @__PURE__ */ jsx18(
|
|
2342
|
-
SegmentedControl,
|
|
2343
|
-
{
|
|
2344
|
-
"aria-label": "Simulated duration",
|
|
2345
|
-
value: speed,
|
|
2346
|
-
onChange: (value) => setSpeed(value),
|
|
2347
|
-
data: [
|
|
2348
|
-
{ value: "fast", label: `${DEMO_LATENCIES.fast}ms` },
|
|
2349
|
-
{ value: "slow", label: `${DEMO_LATENCIES.slow}ms` }
|
|
2350
|
-
]
|
|
2351
|
-
}
|
|
2352
|
-
)
|
|
2353
|
-
] }),
|
|
2354
|
-
/* @__PURE__ */ jsx18(SimpleGrid3, { cols: { base: 1, xs: 2, md: 3 }, spacing: "xs", children: cycleRows.map((row) => /* @__PURE__ */ jsx18(Group13, { gap: "xs", wrap: "nowrap", "data-gds-button-motion-demo": row.action, children: /* @__PURE__ */ jsx18(SemanticButton, { action: row.action, onAction: run }) }, row.action)) })
|
|
2355
|
-
] });
|
|
2356
|
-
}
|
|
2357
|
-
var representativeByColor = Array.from(
|
|
2358
|
-
feedbackRows.reduce((acc, row) => acc.has(row.color) ? acc : acc.set(row.color, row), /* @__PURE__ */ new Map()).values()
|
|
2359
|
-
);
|
|
2360
|
-
function LiveFeedbackButton({ action }) {
|
|
2361
|
-
const [state, setState] = useState(null);
|
|
2362
|
-
const timer = useRef2(null);
|
|
2363
|
-
const fire = useCallback((next) => {
|
|
2364
|
-
setState(next);
|
|
2365
|
-
if (timer.current) clearTimeout(timer.current);
|
|
2366
|
-
timer.current = setTimeout(() => setState(null), GDS_BUTTON_FEEDBACK_DURATION_MS);
|
|
2367
|
-
}, []);
|
|
2368
|
-
useEffect3(() => () => {
|
|
2369
|
-
if (timer.current) clearTimeout(timer.current);
|
|
2370
|
-
}, []);
|
|
2371
|
-
return /* @__PURE__ */ jsxs17(Group13, { gap: "xs", wrap: "nowrap", children: [
|
|
2372
|
-
/* @__PURE__ */ jsx18(SemanticButton, { action, feedbackState: state, onClick: () => fire("success") }),
|
|
2373
|
-
/* @__PURE__ */ jsx18(SemanticButton, { action, variant: "light", feedbackState: state, onClick: () => fire("error") })
|
|
2374
|
-
] });
|
|
2375
|
-
}
|
|
2376
|
-
var GDS_BUTTON_VARIANT_HIERARCHY = ["filled", "light", "outline", "subtle", "default"];
|
|
2377
|
-
var brandIntentDemos = [
|
|
2378
|
-
{ variant: "outline-accent", label: "outline-accent" },
|
|
2379
|
-
{ variant: "gradient", label: "gradient" }
|
|
2380
|
-
];
|
|
2381
|
-
function BrandIntentDemo({ variant }) {
|
|
2382
|
-
const [state, setState] = useState(null);
|
|
2383
|
-
const timer = useRef2(null);
|
|
2384
|
-
const fire = useCallback((next) => {
|
|
2385
|
-
setState(next);
|
|
2386
|
-
if (timer.current) clearTimeout(timer.current);
|
|
2387
|
-
timer.current = setTimeout(() => setState(null), GDS_BUTTON_FEEDBACK_DURATION_MS);
|
|
2388
|
-
}, []);
|
|
2389
|
-
useEffect3(() => () => {
|
|
2390
|
-
if (timer.current) clearTimeout(timer.current);
|
|
2391
|
-
}, []);
|
|
2392
|
-
return /* @__PURE__ */ jsxs17(Group13, { gap: "xs", wrap: "wrap", "data-gds-brand-intent-demo": variant, align: "center", children: [
|
|
2393
|
-
/* @__PURE__ */ jsx18(SemanticButton, { action: "save", brandVariant: variant, feedbackState: state, onClick: () => fire("success") }),
|
|
2394
|
-
/* @__PURE__ */ jsx18(SemanticButton, { action: "delete", brandVariant: variant, feedbackState: state, onClick: () => fire("error") }),
|
|
2395
|
-
/* @__PURE__ */ jsx18(SemanticButton, { action: "preview", brandVariant: variant, loading: true }),
|
|
2396
|
-
/* @__PURE__ */ jsx18(SemanticButton, { action: "preview", brandVariant: variant, disabled: true })
|
|
2397
|
-
] });
|
|
2398
|
-
}
|
|
2399
|
-
function GdsButtonFeedbackReference() {
|
|
2400
|
-
return /* @__PURE__ */ jsxs17(Stack13, { gap: "md", "data-gds-button-feedback-reference": "", children: [
|
|
2401
|
-
/* @__PURE__ */ jsxs17(Stack13, { gap: "2xs", "data-gds-button-variant-reference": "", children: [
|
|
2402
|
-
/* @__PURE__ */ jsx18(Text12, { fw: 700, children: "Variants" }),
|
|
2403
|
-
/* @__PURE__ */ jsx18(Text12, { size: "sm", children: "Emphasis from strongest to weakest. Under every preset the filled button takes the preset's primary colour and the others keep their own treatment, so a page has one primary action and the rest read as secondary. Red marks a destructive action at the same two emphasis levels." }),
|
|
2404
|
-
/* @__PURE__ */ jsx18(Group13, { gap: "xs", wrap: "wrap", children: GDS_BUTTON_VARIANT_HIERARCHY.map((variant) => /* @__PURE__ */ jsx18(Button3, { variant, "data-gds-button-variant-probe": variant, children: variant }, variant)) }),
|
|
2405
|
-
/* @__PURE__ */ jsx18(Group13, { gap: "xs", wrap: "wrap", children: ["filled", "light"].map((variant) => /* @__PURE__ */ jsx18(Button3, { color: "red", variant, "data-gds-button-variant-probe": `red-${variant}`, children: `red ${variant}` }, variant)) })
|
|
2406
|
-
] }),
|
|
2407
|
-
/* @__PURE__ */ jsxs17(Stack13, { gap: "2xs", children: [
|
|
2408
|
-
/* @__PURE__ */ jsxs17(Group13, { gap: "xs", align: "center", children: [
|
|
2409
|
-
/* @__PURE__ */ jsx18(Text12, { fw: 700, children: "Live \u2014 click either button" }),
|
|
2410
|
-
/* @__PURE__ */ jsxs17(Badge6, { variant: "light", children: [
|
|
2411
|
-
GDS_BUTTON_FEEDBACK_DURATION_MS,
|
|
2412
|
-
"ms"
|
|
2413
|
-
] })
|
|
2414
|
-
] }),
|
|
2415
|
-
/* @__PURE__ */ jsxs17(Text12, { size: "sm", children: [
|
|
2416
|
-
"The left button fires the success treatment, the right one fires the error treatment. Watch the label and the icon change, then revert on their own after",
|
|
2417
|
-
" ",
|
|
2418
|
-
GDS_BUTTON_FEEDBACK_DURATION_MS,
|
|
2419
|
-
"ms \u2014 the duration is owned by the component (`GDS_BUTTON_FEEDBACK_DURATION_MS`), not by the caller. One row per distinct feedback colour declared in the vocabulary."
|
|
2420
|
-
] }),
|
|
2421
|
-
/* @__PURE__ */ jsx18(Stack13, { gap: "xs", children: representativeByColor.map((row) => /* @__PURE__ */ jsxs17(Group13, { gap: "sm", align: "center", wrap: "wrap", children: [
|
|
2422
|
-
/* @__PURE__ */ jsx18(Box7, { miw: 110, children: /* @__PURE__ */ jsx18(Text12, { size: "xs", c: "dimmed", ff: "monospace", children: row.color }) }),
|
|
2423
|
-
/* @__PURE__ */ jsx18(LiveFeedbackButton, { action: row.action })
|
|
2424
|
-
] }, row.action)) })
|
|
2425
|
-
] }),
|
|
2426
|
-
/* @__PURE__ */ jsxs17(Stack13, { gap: "2xs", children: [
|
|
2427
|
-
/* @__PURE__ */ jsxs17(Group13, { gap: "xs", align: "center", children: [
|
|
2428
|
-
/* @__PURE__ */ jsx18(Text12, { fw: 700, children: "Action micro-interactions \u2014 onAction" }),
|
|
2429
|
-
/* @__PURE__ */ jsxs17(Badge6, { variant: "light", children: [
|
|
2430
|
-
"pending after ",
|
|
2431
|
-
GDS_BUTTON_PENDING_DELAY_MS,
|
|
2432
|
-
"ms"
|
|
2433
|
-
] }),
|
|
2434
|
-
/* @__PURE__ */ jsxs17(Badge6, { variant: "light", children: [
|
|
2435
|
-
"pending at least ",
|
|
2436
|
-
GDS_BUTTON_PENDING_MIN_MS,
|
|
2437
|
-
"ms"
|
|
2438
|
-
] })
|
|
2439
|
-
] }),
|
|
2440
|
-
/* @__PURE__ */ jsxs17(Text12, { size: "sm", children: [
|
|
2441
|
-
"Pass the action as ",
|
|
2442
|
-
/* @__PURE__ */ jsx18("code", { children: "onAction" }),
|
|
2443
|
-
" and the button runs the whole cycle from its promise. An action that settles within ",
|
|
2444
|
-
GDS_BUTTON_PENDING_DELAY_MS,
|
|
2445
|
-
"ms goes straight to its result; a slower one shows its pending motion and label, held at least",
|
|
2446
|
-
" ",
|
|
2447
|
-
GDS_BUTTON_PENDING_MIN_MS,
|
|
2448
|
-
"ms so it never flickers. Clicks are ignored while it runs and the button stays focusable (",
|
|
2449
|
-
/* @__PURE__ */ jsx18("code", { children: "aria-disabled" }),
|
|
2450
|
-
"). The result shows for",
|
|
2451
|
-
" ",
|
|
2452
|
-
GDS_BUTTON_FEEDBACK_DURATION_MS,
|
|
2453
|
-
"ms. Delete asks for a second click within",
|
|
2454
|
-
" ",
|
|
2455
|
-
GDS_BUTTON_CONFIRM_WINDOW_MS,
|
|
2456
|
-
"ms. Each button reserves the width of its widest state, so the layout does not move, and a live region announces pending, success and error."
|
|
2457
|
-
] }),
|
|
2458
|
-
/* @__PURE__ */ jsxs17(Text12, { size: "sm", children: [
|
|
2459
|
-
"Every action also has a click motion, played once on each click whether or not the button runs an ",
|
|
2460
|
-
/* @__PURE__ */ jsx18("code", { children: "onAction" }),
|
|
2461
|
-
": chosen from what its icon depicts, so the bell rings, the gear turns, the eye blinks and the trash lid lifts. Click any of the",
|
|
2462
|
-
" ",
|
|
2463
|
-
motionRows.length,
|
|
2464
|
-
" buttons below."
|
|
2465
|
-
] }),
|
|
2466
|
-
/* @__PURE__ */ jsx18(PressMotionCatalog, {}),
|
|
2467
|
-
/* @__PURE__ */ jsxs17(Text12, { size: "sm", c: "dimmed", children: [
|
|
2468
|
-
"The actions below run a simulated ",
|
|
2469
|
-
/* @__PURE__ */ jsx18("code", { children: "onAction" }),
|
|
2470
|
-
": each waits the selected time, then succeeds or fails. With reduced motion turned on in the operating system, nothing moves: icons and labels swap without animation."
|
|
2471
|
-
] }),
|
|
2472
|
-
/* @__PURE__ */ jsx18(ActionMotionDemo, {}),
|
|
2473
|
-
/* @__PURE__ */ jsx18(
|
|
2474
|
-
SimpleDataTable,
|
|
2475
|
-
{
|
|
2476
|
-
columns: [
|
|
2477
|
-
{ key: "action", header: "Action" },
|
|
2478
|
-
{ key: "press", header: "Click motion" },
|
|
2479
|
-
{ key: "pending", header: "Pending motion" },
|
|
2480
|
-
{ key: "success", header: "Success motion" },
|
|
2481
|
-
{ key: "confirm", header: "Confirm first" }
|
|
2482
|
-
],
|
|
2483
|
-
rows: motionRows,
|
|
2484
|
-
getRowKey: (row) => row.action
|
|
2485
|
-
}
|
|
2486
|
-
)
|
|
2487
|
-
] }),
|
|
2488
|
-
/* @__PURE__ */ jsxs17(Stack13, { gap: "2xs", children: [
|
|
2489
|
-
/* @__PURE__ */ jsx18(Text12, { fw: 700, children: "Success feedback is per action" }),
|
|
2490
|
-
/* @__PURE__ */ jsxs17(Text12, { size: "sm", children: [
|
|
2491
|
-
feedbackRows.length,
|
|
2492
|
-
" of ",
|
|
2493
|
-
totalActions,
|
|
2494
|
-
" governed actions declare their own success feedback \u2014 icon, colour, and message key. The icon and message are the action's own, not a generic tick: a `delete` confirms with \u201CDeleted\u201D and its own glyph."
|
|
2495
|
-
] }),
|
|
2496
|
-
/* @__PURE__ */ jsx18(Text12, { size: "sm", c: "dimmed", children: "The colour column is what each action declares in the vocabulary. What reaches the screen also depends on the active preset's governed Button rules, which repaint some button surfaces by design \u2014 click the buttons above in the preset you care about rather than reading a colour off this table." }),
|
|
2497
|
-
/* @__PURE__ */ jsx18(
|
|
2498
|
-
SimpleDataTable,
|
|
2499
|
-
{
|
|
2500
|
-
columns: [
|
|
2501
|
-
{ key: "action", header: "Action" },
|
|
2502
|
-
{
|
|
2503
|
-
key: "Icon",
|
|
2504
|
-
header: "Icon",
|
|
2505
|
-
render: (row) => /* @__PURE__ */ jsx18(row.Icon, { size: "1rem" })
|
|
2506
|
-
},
|
|
2507
|
-
{ key: "color", header: "Colour (declared)" },
|
|
2508
|
-
{
|
|
2509
|
-
key: "messageId",
|
|
2510
|
-
header: "Message key",
|
|
2511
|
-
// A bare key in a table cell gets squeezed by the other columns; a minimum width
|
|
2512
|
-
// keeps the dotted id on one line instead of wrapping per segment.
|
|
2513
|
-
render: (row) => /* @__PURE__ */ jsx18(Box7, { miw: 200, children: /* @__PURE__ */ jsx18(Text12, { size: "xs", c: "dimmed", ff: "monospace", children: row.messageId }) })
|
|
2514
|
-
}
|
|
2515
|
-
],
|
|
2516
|
-
rows: feedbackRows,
|
|
2517
|
-
getRowKey: (row) => row.action
|
|
2518
|
-
}
|
|
2519
|
-
)
|
|
2520
|
-
] }),
|
|
2521
|
-
/* @__PURE__ */ jsxs17(Stack13, { gap: "2xs", children: [
|
|
2522
|
-
/* @__PURE__ */ jsx18(Text12, { fw: 700, children: "Error feedback is uniform" }),
|
|
2523
|
-
/* @__PURE__ */ jsx18(Text12, { size: "sm", children: "Where success is per action, the error treatment is fixed for every action: the same cross icon, a short shake, the short `gds.feedback.failed` label on the button (so it keeps its width), and the full `gds.feedback.error` message in the live region, so a failure reads the same way wherever it appears. Pass `feedbackText` to replace the label in either state \u2014 the icon stays governed." })
|
|
2524
|
-
] }),
|
|
2525
|
-
/* @__PURE__ */ jsxs17(Stack13, { gap: "2xs", "data-gds-brand-intent-reference": "", children: [
|
|
2526
|
-
/* @__PURE__ */ jsxs17(Group13, { gap: "xs", align: "center", children: [
|
|
2527
|
-
/* @__PURE__ */ jsx18(Text12, { fw: 700, children: "Brand intents \u2014 outline-accent & gradient" }),
|
|
2528
|
-
/* @__PURE__ */ jsxs17(Badge6, { variant: "light", children: [
|
|
2529
|
-
GDS_BUTTON_OUTLINE_ACCENT_STROKE_PX,
|
|
2530
|
-
"px stroke"
|
|
2531
|
-
] }),
|
|
2532
|
-
/* @__PURE__ */ jsxs17(Badge6, { variant: "light", children: [
|
|
2533
|
-
GDS_BUTTON_GRADIENT_TEXT_FLOOR.fontSizePx,
|
|
2534
|
-
"px / ",
|
|
2535
|
-
GDS_BUTTON_GRADIENT_TEXT_FLOOR.fontWeight,
|
|
2536
|
-
" label floor"
|
|
2537
|
-
] })
|
|
2538
|
-
] }),
|
|
2539
|
-
/* @__PURE__ */ jsxs17(Text12, { size: "sm", children: [
|
|
2540
|
-
"Two brand treatments the inline brand-variant map cannot express \u2014 an accent-as-outline action (transparent fill, accent stroke and label) and the reserved Scout AI gradient action (a solid fill where the active preset declares no ",
|
|
2541
|
-
/* @__PURE__ */ jsx18("code", { children: "ai" }),
|
|
2542
|
-
` lane). Hover and press either "Save" button to see the stylesheet-driven wash/deepen and brightness states; the "Delete" button fires the same transient error treatment as above, which fully replaces the intent's own paint for its duration. The third and fourth buttons in each row are the loading and disabled states.`
|
|
2543
|
-
] }),
|
|
2544
|
-
/* @__PURE__ */ jsx18(Stack13, { gap: "xs", children: brandIntentDemos.map((demo) => /* @__PURE__ */ jsxs17(Group13, { gap: "sm", align: "center", wrap: "wrap", children: [
|
|
2545
|
-
/* @__PURE__ */ jsx18(Box7, { miw: 110, children: /* @__PURE__ */ jsx18(Text12, { size: "xs", c: "dimmed", ff: "monospace", children: demo.label }) }),
|
|
2546
|
-
/* @__PURE__ */ jsx18(BrandIntentDemo, { variant: demo.variant })
|
|
2547
|
-
] }, demo.variant)) })
|
|
2548
|
-
] })
|
|
2549
|
-
] });
|
|
2550
|
-
}
|
|
1
|
+
export * from "./GdsPrimitives.mjs";
|
|
2
|
+
export * from "./Typography.mjs";
|
|
3
|
+
export * from "./StatusBadge.mjs";
|
|
4
|
+
export * from "./StyleUtilities.mjs";
|
|
5
|
+
export * from "./SafeStyles.mjs";
|
|
6
|
+
export * from "./vocabulary.mjs";
|
|
7
|
+
export * from "./icons.mjs";
|
|
8
|
+
export * from "./pictograms.mjs";
|
|
9
|
+
import { GDS_PICTOGRAM_GRID, GDS_PICTOGRAM_BASE_STROKE, GDS_PICTOGRAM_SCALE_PX, GDS_PICTOGRAM_STROKE_BY_SCALE, GDS_PICTOGRAM_TREATMENT_SCALE, GDS_PICTOGRAM_HERO_LAYERS, GDS_PICTOGRAM_DISABLED_OPACITY, gdsPictogramUsageRules, createGdsPictogramFamily, gdsActivityPictograms, getGdsActivityPictogramKeys, isGdsActivityPictogramKey, resolveGdsActivityPictogramLabel } from "./pictograms.shared.mjs";
|
|
10
|
+
export * from "./badge-shapes.mjs";
|
|
11
|
+
export * from "./GdsBadgeStack.mjs";
|
|
12
|
+
export * from "./GdsBadge.mjs";
|
|
13
|
+
import { gdsBadgeAccentColors, gdsBadgeAccentShades } from "./GdsBadge.shared.mjs";
|
|
14
|
+
export * from "./GdsAccentContrastMatrix.mjs";
|
|
15
|
+
export * from "./GdsPinSystemReference.mjs";
|
|
16
|
+
export * from "./GdsCountBadge.mjs";
|
|
17
|
+
export * from "./GdsMapPinBadge.mjs";
|
|
18
|
+
import { GDS_PIN_EMPHASIS_STROKE, GDS_PIN_SELECTED_SCALE, GDS_PIN_APPROXIMATE_DASH, GDS_PIN_HEAD_CENTER_OFFSET, GDS_PIN_ICON_SCALE, GDS_PIN_EMOJI_SCALE } from "./GdsMapPinBadge.shared.mjs";
|
|
19
|
+
export * from "./category-registry.mjs";
|
|
20
|
+
export * from "./generated-art-engine.mjs";
|
|
21
|
+
export * from "./GdsGeneratedThumbnail.mjs";
|
|
22
|
+
export * from "./GdsGeneratedHero.mjs";
|
|
23
|
+
export * from "./GdsRemovableTag.mjs";
|
|
24
|
+
export * from "./GdsSavedIndicator.mjs";
|
|
25
|
+
export * from "./GdsDensity.mjs";
|
|
26
|
+
export * from "./GdsShapeScope.mjs";
|
|
27
|
+
export * from "./GdsTreeView.mjs";
|
|
28
|
+
export * from "./GdsBulkActionBar.mjs";
|
|
29
|
+
export * from "./GdsThreadList.mjs";
|
|
30
|
+
export * from "./GdsMessageThread.mjs";
|
|
31
|
+
export * from "./GdsViewToggle.mjs";
|
|
32
|
+
export * from "./CardContracts.mjs";
|
|
33
|
+
export * from "./breakpoints.mjs";
|
|
34
|
+
export * from "./LayoutPrimitives.mjs";
|
|
35
|
+
export * from "./LayoutBlocks.mjs";
|
|
36
|
+
export * from "./AccentPanel.mjs";
|
|
37
|
+
export * from "./SectionPanel.mjs";
|
|
38
|
+
export * from "./BrowseSurface.mjs";
|
|
39
|
+
export * from "./BoundedPreviewSurface.mjs";
|
|
40
|
+
export * from "./GdsViewportFrame.mjs";
|
|
41
|
+
export * from "./OwnedContrastSurface.mjs";
|
|
42
|
+
export * from "./SurfacePresentation.mjs";
|
|
43
|
+
export * from "./SemanticButton.mjs";
|
|
44
|
+
export * from "./ActionBar.mjs";
|
|
45
|
+
export * from "./CtaButtonGroup.mjs";
|
|
46
|
+
export * from "./ProviderIdentityButtons.mjs";
|
|
47
|
+
export * from "./ShareButtonGroup.mjs";
|
|
48
|
+
export * from "./SocialAuthButtons.mjs";
|
|
49
|
+
export * from "./ChoiceChip.mjs";
|
|
50
|
+
export * from "./NumberStepper.mjs";
|
|
51
|
+
export * from "./ThemeToggle.mjs";
|
|
52
|
+
export * from "./GdsCompareButton.mjs";
|
|
53
|
+
export * from "./EmptyState.mjs";
|
|
54
|
+
export * from "./StateBlock.mjs";
|
|
55
|
+
export * from "./AsyncSurface.mjs";
|
|
56
|
+
export * from "./PlaceholderPanel.mjs";
|
|
57
|
+
export * from "./ConfirmDialog.mjs";
|
|
58
|
+
export * from "./Notifications.mjs";
|
|
59
|
+
import { createGdsNotificationId, getGdsNotificationLivePolicy, createGdsNotificationAuditEvent } from "./Notifications.shared.mjs";
|
|
60
|
+
export * from "./Notifications.client.mjs";
|
|
61
|
+
export * from "./GdsNotificationBell.mjs";
|
|
62
|
+
export * from "./FeedbackRuntime.client.mjs";
|
|
63
|
+
export * from "./Telemetry.client.mjs";
|
|
64
|
+
export * from "./MetricCard.mjs";
|
|
65
|
+
export * from "./ProgressCard.mjs";
|
|
66
|
+
export * from "./ConsumerSection.mjs";
|
|
67
|
+
export * from "./ConsumerDashboardGrid.mjs";
|
|
68
|
+
export * from "./GameBoardTile.mjs";
|
|
69
|
+
export * from "./EditorialCard.mjs";
|
|
70
|
+
export * from "./EditorialHero.mjs";
|
|
71
|
+
export * from "./FeatureBand.mjs";
|
|
72
|
+
export * from "./ProductCard.mjs";
|
|
73
|
+
export * from "./PublicProductCard.mjs";
|
|
74
|
+
export * from "./PublicFoodCard.mjs";
|
|
75
|
+
export * from "./FoodMenuSection.mjs";
|
|
76
|
+
export * from "./ListingCard.mjs";
|
|
77
|
+
import { MAX_LISTING_CARD_ACTIONS, GDS_LISTING_TILE_SIZE_PX, GDS_LISTING_PICK_BADGE_INSET_PX, GDS_LISTING_PICK_BADGE_ICON_PX, GDS_LISTING_PICK_BADGE_FONT_SIZE_PX, GDS_LISTING_PICK_BADGE_LINE_HEIGHT_PX, GDS_LISTING_PICK_BADGE_PADDING_BLOCK_PX, GDS_LISTING_PICK_BADGE_PADDING_INLINE_PX } from "./ListingCard.shared.mjs";
|
|
78
|
+
export * from "./ListingPrimitives.mjs";
|
|
79
|
+
export * from "./ListingState.client.mjs";
|
|
80
|
+
export * from "./BrowseSelection.client.mjs";
|
|
81
|
+
export * from "./DetailProfileShell.mjs";
|
|
82
|
+
export * from "./DetailFactsTable.mjs";
|
|
83
|
+
import { GDS_DETAIL_FACT_IDS, GDS_DETAIL_FACTS_LABEL_COLUMN_PX } from "./DetailFactsTable.shared.mjs";
|
|
84
|
+
export * from "./ProviderCTA.mjs";
|
|
85
|
+
export * from "./FitScoreChip.mjs";
|
|
86
|
+
export * from "./MeaningBadge.mjs";
|
|
87
|
+
export * from "./TrustLayer.mjs";
|
|
88
|
+
import { TRUST_BADGE_DEFINITIONS } from "./TrustLayer.shared.mjs";
|
|
89
|
+
export * from "./TrustLayer.client.mjs";
|
|
90
|
+
export * from "./AISearchCard.mjs";
|
|
91
|
+
export * from "./HeroSearchPanel.client.mjs";
|
|
92
|
+
export * from "./QuickStartCard.mjs";
|
|
93
|
+
export * from "./PublicShell.mjs";
|
|
94
|
+
export * from "./DiscoveryShell.mjs";
|
|
95
|
+
export * from "./DocsShell.mjs";
|
|
96
|
+
export * from "./DocsPageShell.mjs";
|
|
97
|
+
export * from "./ArticleShell.mjs";
|
|
98
|
+
export * from "./AuthShell.mjs";
|
|
99
|
+
export * from "./PublicNav.mjs";
|
|
100
|
+
export * from "./BottomTabBar.mjs";
|
|
101
|
+
import { BOTTOM_TAB_MAX_ITEMS, BOTTOM_TAB_HEIGHT } from "./BottomTabBar.shared.mjs";
|
|
102
|
+
export * from "./SidebarNav.mjs";
|
|
103
|
+
export * from "./PublicSiteFooter.mjs";
|
|
104
|
+
export * from "./PublicBrandFooter.mjs";
|
|
105
|
+
export * from "./GdsBreadcrumbs.mjs";
|
|
106
|
+
export * from "./PageHeader.mjs";
|
|
107
|
+
export * from "./DocsCodeBlock.mjs";
|
|
108
|
+
export * from "./DocsCodeDisclosure.mjs";
|
|
109
|
+
export * from "./GdsTableScrollContainer.mjs";
|
|
110
|
+
export * from "./GdsReleaseNotes.client.mjs";
|
|
111
|
+
export * from "./FormField.mjs";
|
|
112
|
+
export * from "./GdsFormControls.mjs";
|
|
113
|
+
export * from "./GdsDateInput.client.mjs";
|
|
114
|
+
export * from "./GdsForm.client.mjs";
|
|
115
|
+
export * from "./GdsSchemaForm.client.mjs";
|
|
116
|
+
export * from "./SearchableSelect.mjs";
|
|
117
|
+
export * from "./FilterDrawer.mjs";
|
|
118
|
+
export * from "./DataToolbar.mjs";
|
|
119
|
+
export * from "./UploadDropzone.mjs";
|
|
120
|
+
export * from "./MediaField.mjs";
|
|
121
|
+
export * from "./MediaCard.mjs";
|
|
122
|
+
export * from "./MediaPreviewCard.mjs";
|
|
123
|
+
export * from "./MediaWithFallback.mjs";
|
|
124
|
+
export * from "./GdsAssetManager.client.mjs";
|
|
125
|
+
export * from "./PlaybackSurface.mjs";
|
|
126
|
+
export * from "./PlaybackControls.client.mjs";
|
|
127
|
+
export * from "./SimpleDataTable.mjs";
|
|
128
|
+
export * from "./AdvancedDataTable.client.mjs";
|
|
129
|
+
export * from "./GdsDataTable.client.mjs";
|
|
130
|
+
export * from "./GdsResourceManager.client.mjs";
|
|
131
|
+
export * from "./StatsSection.mjs";
|
|
132
|
+
export * from "./PeriodSelector.mjs";
|
|
133
|
+
export * from "./EvidencePanel.mjs";
|
|
134
|
+
export * from "./ChartTokenPanel.mjs";
|
|
135
|
+
export * from "./GdsChart.mjs";
|
|
136
|
+
import { gdsChartTypeRegistry, gdsDefaultChartLegend, gdsChartSetATypeRegistry, gdsChartSetBTypeRegistry, gdsChartSetCTypeRegistry, isGdsChartSetAType, isGdsChartSetBType, isGdsChartSetCType, validateGdsChartData } from "./GdsChart.shared.mjs";
|
|
137
|
+
export * from "./SemanticCharts.mjs";
|
|
138
|
+
import { gdsSeriesPalette, getGdsSeriesColor, getGdsChartSeriesColor, resolveGdsChartTokenColor, GDS_CHART_SERIES_SLOTS, GDS_CHART_SERIES_COLORS } from "./chart-colors.mjs";
|
|
139
|
+
export * from "./ReportingSection.mjs";
|
|
140
|
+
export * from "./AccessSummary.mjs";
|
|
141
|
+
export * from "./AccessRecoveryPanel.mjs";
|
|
142
|
+
export * from "./GdsAccessGate.mjs";
|
|
143
|
+
export * from "./AccessibilityEvidence.mjs";
|
|
144
|
+
export * from "./OverlayManager.client.mjs";
|
|
145
|
+
export * from "./CommandPalette.client.mjs";
|
|
146
|
+
export * from "./GdsTour.client.mjs";
|
|
147
|
+
export * from "./GdsI18nRuntime.mjs";
|
|
148
|
+
import { resolveGdsLocale, formatGdsNumber, formatGdsCurrency, formatGdsDate, formatGdsRelativeTime, formatGdsPlural, compareGdsLocaleString, sortGdsLocaleStrings, createGdsMissingKeyTracker, resolveGdsMessage, createGdsTextExpansionFixture } from "./GdsI18nRuntime.shared.mjs";
|
|
149
|
+
export * from "./GdsPageTemplates.mjs";
|
|
150
|
+
import { getGdsPageTemplates, getGdsPageTemplate, validateGdsPageTemplates, createGdsPageTemplateEvent } from "./GdsPageTemplates.shared.mjs";
|
|
151
|
+
export * from "./GdsPageTemplates.client.mjs";
|
|
152
|
+
export * from "./TaskPatterns.mjs";
|
|
153
|
+
export * from "./MaturityCapabilities.mjs";
|
|
154
|
+
export * from "./CreatorTheme.mjs";
|
|
155
|
+
export * from "./LayoutTemplatePreview.client.mjs";
|
|
156
|
+
export * from "./GdsContentDesign.mjs";
|
|
157
|
+
export * from "./GdsDesignHandoff.mjs";
|
|
158
|
+
export * from "./KanbanBoard.client.mjs";
|
|
159
|
+
export * from "./ChatSurface.mjs";
|
|
160
|
+
export * from "./PublicFlowShell.mjs";
|
|
161
|
+
export * from "./PublicCaptureFlow.mjs";
|
|
162
|
+
export * from "./MapPanel.mjs";
|
|
163
|
+
export * from "./GdsMapBasemapWash.mjs";
|
|
164
|
+
export * from "./GdsMapFilterRail.mjs";
|
|
165
|
+
export * from "./GdsMapPinPreviewCard.mjs";
|
|
166
|
+
export * from "./GdsGeneratedAvatar.mjs";
|
|
167
|
+
import { gdsAvatarInitials } from "./GdsGeneratedAvatar.shared.mjs";
|
|
168
|
+
export * from "./GdsGeneratedMark.mjs";
|
|
169
|
+
export * from "./GdsLogoLockup.mjs";
|
|
170
|
+
export * from "./GdsIconBadge.mjs";
|
|
171
|
+
export * from "./GdsMeter.mjs";
|
|
172
|
+
export * from "./GdsRatingDisplay.mjs";
|
|
173
|
+
export * from "./dom-phrase-translation.mjs";
|
|
174
|
+
export * from "./useGdsDomPhraseTranslation.client.mjs";
|
|
175
|
+
export * from "./GdsMotionSystemReference.mjs";
|
|
176
|
+
export * from "./GdsShapeElevationSystemReference.mjs";
|
|
177
|
+
export * from "./GdsDensitySpacingSystemReference.mjs";
|
|
178
|
+
export * from "./GdsIconSystemReference.mjs";
|
|
179
|
+
export * from "./GdsPictogramSystemReference.mjs";
|
|
180
|
+
export * from "./GdsTypographySystemReference.mjs";
|
|
181
|
+
export * from "./GdsColorSystemReference.mjs";
|
|
182
|
+
export * from "./GdsAccessibilitySystemReference.mjs";
|
|
183
|
+
export * from "./GdsButtonFeedbackReference.mjs";
|
|
184
|
+
export * from "./GdsDesignRuleProfilePanel.mjs";
|
|
185
|
+
export * from "./GdsInlineLink.mjs";
|
|
186
|
+
export * from "./PartnerDiscovery.mjs";
|
|
187
|
+
import { partnerDiscoveryDefaultAmenities, partnerDiscoveryFamilyAmenities, partnerDiscoveryDefaultFilterState, redactPartnerDiscoveryEventMetadata, emitPartnerDiscoveryEvent, togglePartnerAmenity, togglePartnerPrice, resetPartnerDiscoveryFilters, filterPartnerPlaces } from "./PartnerDiscovery.shared.mjs";
|
|
188
|
+
export * from "./ReferenceLocaleNotice.mjs";
|
|
189
|
+
export * from "./ReferenceLinkGrid.mjs";
|
|
190
|
+
export * from "./ReferenceSection.mjs";
|
|
191
|
+
export * from "./locales/index.mjs";
|
|
2551
192
|
export {
|
|
2552
|
-
AISearchCard,
|
|
2553
|
-
AccentPanel,
|
|
2554
|
-
AccessRecoveryPanel,
|
|
2555
|
-
AccessSummary,
|
|
2556
|
-
Accordion,
|
|
2557
|
-
ActionBar,
|
|
2558
|
-
ActionIcon,
|
|
2559
|
-
ActiveFilterChips,
|
|
2560
|
-
AdvancedDataTable,
|
|
2561
|
-
AmenityChipGrid,
|
|
2562
|
-
Anchor,
|
|
2563
|
-
ArticleShell,
|
|
2564
|
-
AsyncSurface,
|
|
2565
|
-
AuthShell,
|
|
2566
193
|
BOTTOM_TAB_HEIGHT,
|
|
2567
194
|
BOTTOM_TAB_MAX_ITEMS,
|
|
2568
|
-
Badge,
|
|
2569
|
-
BannerNotice,
|
|
2570
|
-
BodyText,
|
|
2571
|
-
BottomTabBar,
|
|
2572
|
-
BoundedPreviewSurface,
|
|
2573
|
-
Box,
|
|
2574
|
-
BrowseSurface,
|
|
2575
|
-
BulkActionsBar,
|
|
2576
|
-
Button,
|
|
2577
|
-
CardTitle,
|
|
2578
|
-
Center,
|
|
2579
|
-
ChartTokenPanel,
|
|
2580
|
-
ChatInput,
|
|
2581
|
-
ChatMessage,
|
|
2582
|
-
ChatThread,
|
|
2583
|
-
Checkbox,
|
|
2584
|
-
ChoiceChip,
|
|
2585
|
-
ClippedFlexChild,
|
|
2586
|
-
CommandPalette,
|
|
2587
|
-
CommandRegistryProvider,
|
|
2588
|
-
ConfirmChecklist,
|
|
2589
|
-
ConfirmDialog,
|
|
2590
|
-
ConsumerDashboardGrid,
|
|
2591
|
-
ConsumerSection,
|
|
2592
|
-
Container,
|
|
2593
|
-
CountBadge,
|
|
2594
|
-
CreatorThemeBoundary,
|
|
2595
|
-
CreatorThemeDiagnostics,
|
|
2596
|
-
CtaButtonGroup,
|
|
2597
|
-
DataToolbar,
|
|
2598
|
-
DetailFactsTable,
|
|
2599
|
-
DetailProfileShell,
|
|
2600
|
-
DiscoveryShell,
|
|
2601
|
-
DocsCodeBlock,
|
|
2602
|
-
DocsCodeDisclosure,
|
|
2603
|
-
DocsHeaderActionSelect,
|
|
2604
|
-
DocsPageShell,
|
|
2605
|
-
DocsShell,
|
|
2606
|
-
EditorialCard,
|
|
2607
|
-
EditorialHero,
|
|
2608
|
-
EmptyState,
|
|
2609
|
-
EvidencePanel,
|
|
2610
|
-
FeatureBand,
|
|
2611
|
-
FileUploadField,
|
|
2612
|
-
FilterChipGroup,
|
|
2613
|
-
FilterDrawer,
|
|
2614
|
-
FitScoreChip,
|
|
2615
|
-
FloatingActionPlacement,
|
|
2616
|
-
FoodMenuSection,
|
|
2617
|
-
FormErrorSummary,
|
|
2618
|
-
FormField,
|
|
2619
|
-
GDS_BUTTON_CONFIRM_WINDOW_MS,
|
|
2620
|
-
GDS_BUTTON_FEEDBACK_DURATION_MS,
|
|
2621
|
-
GDS_BUTTON_GRADIENT_TEXT_FLOOR,
|
|
2622
|
-
GDS_BUTTON_OUTLINE_ACCENT_STROKE_PX,
|
|
2623
|
-
GDS_BUTTON_PENDING_DELAY_MS,
|
|
2624
|
-
GDS_BUTTON_PENDING_MIN_MS,
|
|
2625
195
|
GDS_CHART_SERIES_COLORS,
|
|
2626
196
|
GDS_CHART_SERIES_SLOTS,
|
|
2627
197
|
GDS_DETAIL_FACTS_LABEL_COLUMN_PX,
|
|
2628
198
|
GDS_DETAIL_FACT_IDS,
|
|
2629
|
-
GDS_HERO_SEARCH_FIELD_FLEX_BASIS_PX,
|
|
2630
|
-
GDS_HERO_SEARCH_FIELD_MIN_WIDTH_PX,
|
|
2631
199
|
GDS_LISTING_PICK_BADGE_FONT_SIZE_PX,
|
|
2632
200
|
GDS_LISTING_PICK_BADGE_ICON_PX,
|
|
2633
201
|
GDS_LISTING_PICK_BADGE_INSET_PX,
|
|
@@ -2635,8 +203,6 @@ export {
|
|
|
2635
203
|
GDS_LISTING_PICK_BADGE_PADDING_BLOCK_PX,
|
|
2636
204
|
GDS_LISTING_PICK_BADGE_PADDING_INLINE_PX,
|
|
2637
205
|
GDS_LISTING_TILE_SIZE_PX,
|
|
2638
|
-
GDS_MAP_WASH_SATURATION,
|
|
2639
|
-
GDS_MAP_WASH_TINT,
|
|
2640
206
|
GDS_PICTOGRAM_BASE_STROKE,
|
|
2641
207
|
GDS_PICTOGRAM_DISABLED_OPACITY,
|
|
2642
208
|
GDS_PICTOGRAM_GRID,
|
|
@@ -2650,459 +216,55 @@ export {
|
|
|
2650
216
|
GDS_PIN_HEAD_CENTER_OFFSET,
|
|
2651
217
|
GDS_PIN_ICON_SCALE,
|
|
2652
218
|
GDS_PIN_SELECTED_SCALE,
|
|
2653
|
-
GDS_PIN_SILHOUETTE_PATH,
|
|
2654
|
-
GDS_QUICK_START_ICON_BOX_PX,
|
|
2655
|
-
GameBoardTile,
|
|
2656
|
-
GdsAccentContrastMatrix,
|
|
2657
|
-
GdsAccessGate,
|
|
2658
|
-
GdsAccessibilitySystemReference,
|
|
2659
|
-
GdsAdminDashboardTemplate,
|
|
2660
|
-
GdsAnalyticsTemplate,
|
|
2661
|
-
GdsAreaChart,
|
|
2662
|
-
GdsAssetManager,
|
|
2663
|
-
GdsAssetManagerTemplate,
|
|
2664
|
-
GdsAssetPreviewCard,
|
|
2665
|
-
GdsBadge,
|
|
2666
|
-
GdsBadgeShapeCircle,
|
|
2667
|
-
GdsBadgeShapeHexagon,
|
|
2668
|
-
GdsBadgeShapePin,
|
|
2669
|
-
GdsBadgeShapeRosette,
|
|
2670
|
-
GdsBadgeShapeShield,
|
|
2671
|
-
GdsBadgeShapeSquircle,
|
|
2672
|
-
GdsBadgeShapes,
|
|
2673
|
-
GdsBadgeStack,
|
|
2674
|
-
GdsBadgeStackLayer,
|
|
2675
|
-
GdsBarChart,
|
|
2676
|
-
GdsBenchmarkBarChart,
|
|
2677
|
-
GdsBleed,
|
|
2678
|
-
GdsBox,
|
|
2679
|
-
GdsBreadcrumbs,
|
|
2680
|
-
GdsBulkActionBar,
|
|
2681
|
-
GdsButtonFeedbackReference,
|
|
2682
|
-
GdsCalendarHeatmapChart,
|
|
2683
|
-
GdsChart,
|
|
2684
|
-
GdsChartAxis,
|
|
2685
|
-
GdsChartLegend,
|
|
2686
|
-
GdsChartTooltip,
|
|
2687
|
-
GdsCluster,
|
|
2688
|
-
GdsColorSystemReference,
|
|
2689
|
-
GdsColumnGrid,
|
|
2690
|
-
GdsColumnGridItem,
|
|
2691
|
-
GdsCompareButton,
|
|
2692
|
-
GdsConfirmProvider,
|
|
2693
|
-
GdsContainer,
|
|
2694
|
-
GdsContentPatternCatalog,
|
|
2695
|
-
GdsCountBadge,
|
|
2696
|
-
GdsCrudEditorTemplate,
|
|
2697
|
-
GdsDataTable,
|
|
2698
|
-
GdsDateInput,
|
|
2699
|
-
GdsDateRangeInput,
|
|
2700
|
-
GdsDateTimeInput,
|
|
2701
|
-
GdsDensityProvider,
|
|
2702
|
-
GdsDensitySpacingSystemReference,
|
|
2703
|
-
GdsDesignHandoffCatalog,
|
|
2704
|
-
GdsDesignRuleProfilePanel,
|
|
2705
|
-
GdsDialog,
|
|
2706
|
-
GdsDirectionBoundary,
|
|
2707
|
-
GdsDivergingBarChart,
|
|
2708
|
-
GdsDrawer,
|
|
2709
|
-
GdsEmptyStateTemplate,
|
|
2710
|
-
GdsErrorPageTemplate,
|
|
2711
|
-
GdsFormProvider,
|
|
2712
|
-
GdsFormattedCurrency,
|
|
2713
|
-
GdsFormattedDate,
|
|
2714
|
-
GdsFormattedNumber,
|
|
2715
|
-
GdsGaugeChart,
|
|
2716
|
-
GdsGeneratedAvatar,
|
|
2717
|
-
GdsGeneratedHero,
|
|
2718
|
-
GdsGeneratedMark,
|
|
2719
|
-
GdsGeneratedThumbnail,
|
|
2720
|
-
GdsGrid,
|
|
2721
|
-
GdsGuidedTour,
|
|
2722
|
-
GdsHistogramChart,
|
|
2723
|
-
GdsIcon,
|
|
2724
|
-
GdsIconBadge,
|
|
2725
|
-
GdsIconSystemReference,
|
|
2726
|
-
GdsIcons,
|
|
2727
|
-
GdsInline,
|
|
2728
|
-
GdsInlineLink,
|
|
2729
|
-
GdsLayoutTemplatePreview,
|
|
2730
|
-
GdsLineChart,
|
|
2731
|
-
GdsLocaleText,
|
|
2732
|
-
GdsLogoLockup,
|
|
2733
|
-
GdsLongitudinalChart,
|
|
2734
|
-
GdsMapBasemapWash,
|
|
2735
|
-
GdsMapFilterRail,
|
|
2736
|
-
GdsMapPinBadge,
|
|
2737
|
-
GdsMapPinPreviewCard,
|
|
2738
|
-
GdsMaturityRadarChart,
|
|
2739
|
-
GdsMediaFrame,
|
|
2740
|
-
GdsMessageThread,
|
|
2741
|
-
GdsMeter,
|
|
2742
|
-
GdsModal,
|
|
2743
|
-
GdsMotionSystemReference,
|
|
2744
|
-
GdsNotificationBell,
|
|
2745
|
-
GdsNotificationCenter,
|
|
2746
|
-
GdsNotificationProvider,
|
|
2747
|
-
GdsOverflowFrame,
|
|
2748
|
-
GdsPageTemplateCatalog,
|
|
2749
|
-
GdsPictogram,
|
|
2750
|
-
GdsPictogramSystemReference,
|
|
2751
|
-
GdsPinSystemReference,
|
|
2752
|
-
GdsPlural,
|
|
2753
|
-
GdsPublicEventTemplate,
|
|
2754
|
-
GdsRadarChart,
|
|
2755
|
-
GdsRatingDisplay,
|
|
2756
|
-
GdsRatingScale,
|
|
2757
|
-
GdsRelativeTime,
|
|
2758
|
-
GdsReleaseNotes,
|
|
2759
|
-
GdsRemovableTag,
|
|
2760
|
-
GdsResourceManager,
|
|
2761
|
-
GdsResourceManagerTemplate,
|
|
2762
|
-
GdsResponsiveChartFrame,
|
|
2763
|
-
GdsResponsiveVisibility,
|
|
2764
|
-
GdsSafeBox,
|
|
2765
|
-
GdsSavedIndicator,
|
|
2766
|
-
GdsSchemaForm,
|
|
2767
|
-
GdsSegmentedControl,
|
|
2768
|
-
GdsSettingsTemplate,
|
|
2769
|
-
GdsShapeElevationSystemReference,
|
|
2770
|
-
GdsShapeScope,
|
|
2771
|
-
GdsSheet,
|
|
2772
|
-
GdsSidePanel,
|
|
2773
|
-
GdsSidebar,
|
|
2774
|
-
GdsSlider,
|
|
2775
|
-
GdsSlopeChart,
|
|
2776
|
-
GdsSparkline,
|
|
2777
|
-
GdsSplit,
|
|
2778
|
-
GdsStack,
|
|
2779
|
-
GdsStackedBarChart,
|
|
2780
|
-
GdsSymmetryChart,
|
|
2781
|
-
GdsTableScrollContainer,
|
|
2782
|
-
GdsTelemetryProvider,
|
|
2783
|
-
GdsThreadList,
|
|
2784
|
-
GdsToastProvider,
|
|
2785
|
-
GdsToastViewport,
|
|
2786
|
-
GdsTourButton,
|
|
2787
|
-
GdsTourProvider,
|
|
2788
|
-
GdsTreeView,
|
|
2789
|
-
GdsTypographySystemReference,
|
|
2790
|
-
GdsValidationSummary,
|
|
2791
|
-
GdsViewToggle,
|
|
2792
|
-
GdsViewportFrame,
|
|
2793
|
-
GdsVocabulary,
|
|
2794
|
-
GdsWizardStepper,
|
|
2795
|
-
GdsWorkspaceInboxTemplate,
|
|
2796
|
-
Group,
|
|
2797
|
-
HeroSearchPanel,
|
|
2798
|
-
InlineAlert,
|
|
2799
|
-
InlineEmphasis,
|
|
2800
|
-
InlineText,
|
|
2801
|
-
KanbanBoard,
|
|
2802
|
-
KanbanCard,
|
|
2803
|
-
KanbanColumn,
|
|
2804
|
-
LabelTag,
|
|
2805
|
-
LabelText,
|
|
2806
|
-
LastCheckedLabel,
|
|
2807
|
-
LayeredSurfaceSlot,
|
|
2808
|
-
ListItemSection,
|
|
2809
|
-
ListingCard,
|
|
2810
|
-
ListingProvider,
|
|
2811
|
-
Loader,
|
|
2812
219
|
MAX_LISTING_CARD_ACTIONS,
|
|
2813
|
-
MapPanel,
|
|
2814
|
-
MeaningBadge,
|
|
2815
|
-
MediaCard,
|
|
2816
|
-
MediaField,
|
|
2817
|
-
MediaPreviewCard,
|
|
2818
|
-
MediaWithFallback,
|
|
2819
|
-
MetadataText,
|
|
2820
|
-
MetricCard,
|
|
2821
|
-
MissingDataPrompt,
|
|
2822
|
-
Modal,
|
|
2823
|
-
MonospaceInputFrame,
|
|
2824
|
-
MultiSelect,
|
|
2825
|
-
NotificationCenter,
|
|
2826
|
-
NotificationCenterView,
|
|
2827
|
-
NumberInput,
|
|
2828
|
-
NumberStepper,
|
|
2829
|
-
NumericCell,
|
|
2830
|
-
OverflowContainer,
|
|
2831
|
-
OverlayManagerProvider,
|
|
2832
|
-
PROVIDER_IDENTITY_REGISTRY,
|
|
2833
|
-
PageHeader,
|
|
2834
|
-
PageTitle,
|
|
2835
|
-
PartnerAboutPageSections,
|
|
2836
|
-
PartnerAmenityBadgeGrid,
|
|
2837
|
-
PartnerContactBlock,
|
|
2838
|
-
PartnerDiscoveryFilters,
|
|
2839
|
-
PartnerDiscoveryFooter,
|
|
2840
|
-
PartnerDiscoveryHeader,
|
|
2841
|
-
PartnerDiscoveryShell,
|
|
2842
|
-
PartnerFaqList,
|
|
2843
|
-
PartnerListIndex,
|
|
2844
|
-
PartnerMapControls,
|
|
2845
|
-
PartnerMapListShell,
|
|
2846
|
-
PartnerMapPin,
|
|
2847
|
-
PartnerNewsletterCapture,
|
|
2848
|
-
PartnerNewsletterForm,
|
|
2849
|
-
PartnerParentTipPanel,
|
|
2850
|
-
PartnerPlaceDetailTemplate,
|
|
2851
|
-
PartnerPlaceResultCard,
|
|
2852
|
-
PartnerSubmissionEntry,
|
|
2853
|
-
PasswordInput,
|
|
2854
|
-
PeriodSelector,
|
|
2855
|
-
PillBar,
|
|
2856
|
-
PlaceholderPanel,
|
|
2857
|
-
PlaybackControls,
|
|
2858
|
-
PlaybackOverlayControls,
|
|
2859
|
-
PlaybackSurface,
|
|
2860
|
-
PriceEstimateLabel,
|
|
2861
|
-
ProductCard,
|
|
2862
|
-
Progress,
|
|
2863
|
-
ProgressCard,
|
|
2864
|
-
ProviderCTA,
|
|
2865
|
-
ProviderIdentityButton,
|
|
2866
|
-
ProviderIdentityButtonGroup,
|
|
2867
|
-
PublicAcceptStep,
|
|
2868
|
-
PublicBrandFooter,
|
|
2869
|
-
PublicCaptureFlow,
|
|
2870
|
-
PublicConsentStep,
|
|
2871
|
-
PublicCtaStep,
|
|
2872
|
-
PublicFlowShell,
|
|
2873
|
-
PublicFoodCard,
|
|
2874
|
-
PublicIdentityStep,
|
|
2875
|
-
PublicNav,
|
|
2876
|
-
PublicProductCard,
|
|
2877
|
-
PublicRestartStep,
|
|
2878
|
-
PublicShareOverlay,
|
|
2879
|
-
PublicShell,
|
|
2880
|
-
PublicSiteFooter,
|
|
2881
|
-
QuickStartCard,
|
|
2882
|
-
Radio,
|
|
2883
|
-
ReferenceLinkGrid,
|
|
2884
|
-
ReferenceLocaleNotice,
|
|
2885
|
-
ReferenceSection,
|
|
2886
|
-
ReportOutdatedLink,
|
|
2887
|
-
ReportingSection,
|
|
2888
|
-
ResultSummary,
|
|
2889
|
-
ScrollArea,
|
|
2890
|
-
SearchableSelect,
|
|
2891
|
-
SectionPanel,
|
|
2892
|
-
SectionTitle,
|
|
2893
|
-
Select,
|
|
2894
|
-
SemanticButton,
|
|
2895
|
-
SemanticChartFrame,
|
|
2896
|
-
SemanticInset,
|
|
2897
|
-
ShareButtonGroup,
|
|
2898
|
-
SidebarNav,
|
|
2899
|
-
SidebarNavItem,
|
|
2900
|
-
SidebarNavSection,
|
|
2901
|
-
SimpleDataTable,
|
|
2902
|
-
SimpleGrid,
|
|
2903
|
-
Slider,
|
|
2904
|
-
SocialAuthButtons,
|
|
2905
|
-
SoftChipGroup,
|
|
2906
|
-
SortMenu,
|
|
2907
|
-
SourceBlock,
|
|
2908
|
-
Stack,
|
|
2909
|
-
StateBlock,
|
|
2910
|
-
StatsSection,
|
|
2911
|
-
StatusBadge,
|
|
2912
|
-
StreamingIndicator,
|
|
2913
|
-
Switch,
|
|
2914
220
|
TRUST_BADGE_DEFINITIONS,
|
|
2915
|
-
Table,
|
|
2916
|
-
Tabs,
|
|
2917
|
-
TextInput,
|
|
2918
|
-
Textarea,
|
|
2919
|
-
ThemeIcon,
|
|
2920
|
-
ThemeToggle,
|
|
2921
|
-
Tooltip,
|
|
2922
|
-
TrustBadge,
|
|
2923
|
-
UploadDropzone,
|
|
2924
|
-
ValidatedFieldMessage,
|
|
2925
|
-
VisuallyHidden,
|
|
2926
|
-
ar,
|
|
2927
221
|
compareGdsLocaleString,
|
|
2928
|
-
createGdsAccessAdapter,
|
|
2929
|
-
createGdsAccessGateEvent,
|
|
2930
|
-
createGdsAccessibilityEvidenceIndex,
|
|
2931
|
-
createGdsAssetAdapter,
|
|
2932
|
-
createGdsContentExpansionReport,
|
|
2933
|
-
createGdsDraftAdapter,
|
|
2934
|
-
createGdsFormFromSchema,
|
|
2935
222
|
createGdsMissingKeyTracker,
|
|
2936
223
|
createGdsNotificationAuditEvent,
|
|
2937
224
|
createGdsNotificationId,
|
|
2938
|
-
createGdsOwnedContrastTokens,
|
|
2939
225
|
createGdsPageTemplateEvent,
|
|
2940
226
|
createGdsPictogramFamily,
|
|
2941
|
-
createGdsResourceAdapter,
|
|
2942
|
-
createGdsStyleContract,
|
|
2943
|
-
createGdsTableAdapter,
|
|
2944
|
-
createGdsTelemetryAdapter,
|
|
2945
227
|
createGdsTextExpansionFixture,
|
|
2946
|
-
createGdsVocabularyPack,
|
|
2947
|
-
de,
|
|
2948
|
-
emitGdsEvent,
|
|
2949
228
|
emitPartnerDiscoveryEvent,
|
|
2950
|
-
en,
|
|
2951
|
-
es,
|
|
2952
229
|
filterPartnerPlaces,
|
|
2953
230
|
formatGdsCurrency,
|
|
2954
231
|
formatGdsDate,
|
|
2955
232
|
formatGdsNumber,
|
|
2956
233
|
formatGdsPlural,
|
|
2957
234
|
formatGdsRelativeTime,
|
|
2958
|
-
fr,
|
|
2959
235
|
gdsActivityPictograms,
|
|
2960
236
|
gdsAvatarInitials,
|
|
2961
237
|
gdsBadgeAccentColors,
|
|
2962
238
|
gdsBadgeAccentShades,
|
|
2963
|
-
gdsBreakpointByAlias,
|
|
2964
|
-
gdsCardDensityPaddingMap,
|
|
2965
|
-
gdsCardGapMap,
|
|
2966
|
-
gdsCardMediaRatioMap,
|
|
2967
|
-
gdsCardSizePaddingMap,
|
|
2968
|
-
gdsCardTitleOrderMap,
|
|
2969
239
|
gdsChartSetATypeRegistry,
|
|
2970
240
|
gdsChartSetBTypeRegistry,
|
|
2971
241
|
gdsChartSetCTypeRegistry,
|
|
2972
242
|
gdsChartTypeRegistry,
|
|
2973
243
|
gdsDefaultChartLegend,
|
|
2974
|
-
gdsFormReducer,
|
|
2975
|
-
gdsGeneratedPaletteCssRefs,
|
|
2976
|
-
gdsIconRegistry,
|
|
2977
|
-
gdsIconToneColor,
|
|
2978
|
-
gdsLocales,
|
|
2979
|
-
gdsOperationalEventTypes,
|
|
2980
244
|
gdsPictogramUsageRules,
|
|
2981
|
-
gdsSeededRandom,
|
|
2982
245
|
gdsSeriesPalette,
|
|
2983
|
-
gdsStyle,
|
|
2984
|
-
gdsUxFailureReasons,
|
|
2985
|
-
generateGdsDesignHandoffReport,
|
|
2986
|
-
getGdsAccessGateActionPriority,
|
|
2987
|
-
getGdsAccessGateReasons,
|
|
2988
|
-
getGdsAccessGateStates,
|
|
2989
|
-
getGdsAccessibilityEvidence,
|
|
2990
|
-
getGdsAccessibilityEvidenceSummary,
|
|
2991
246
|
getGdsActivityPictogramKeys,
|
|
2992
|
-
getGdsBlockTypes,
|
|
2993
247
|
getGdsChartSeriesColor,
|
|
2994
|
-
getGdsContentPattern,
|
|
2995
|
-
getGdsContentPatterns,
|
|
2996
|
-
getGdsCopyTemplate,
|
|
2997
|
-
getGdsCopyTemplates,
|
|
2998
|
-
getGdsDesignComponentMappings,
|
|
2999
|
-
getGdsDesignTokenMappings,
|
|
3000
|
-
getGdsIconKeys,
|
|
3001
|
-
getGdsIconMetadata,
|
|
3002
|
-
getGdsIconToneColor,
|
|
3003
|
-
getGdsLayoutTemplate,
|
|
3004
|
-
getGdsLayoutTemplates,
|
|
3005
|
-
getGdsMaturityCapabilities,
|
|
3006
|
-
getGdsMaturityCapability,
|
|
3007
|
-
getGdsMaturitySummary,
|
|
3008
|
-
getGdsMessages,
|
|
3009
248
|
getGdsNotificationLivePolicy,
|
|
3010
|
-
getGdsOwnedContrastProps,
|
|
3011
249
|
getGdsPageTemplate,
|
|
3012
250
|
getGdsPageTemplates,
|
|
3013
|
-
getGdsRecommendedMaturityCapabilities,
|
|
3014
251
|
getGdsSeriesColor,
|
|
3015
|
-
getGdsShapeScopeStyle,
|
|
3016
|
-
getGdsTaskPattern,
|
|
3017
|
-
getGdsTaskPatterns,
|
|
3018
|
-
getProviderIdentityLabel,
|
|
3019
|
-
getProviderIdentityPolicy,
|
|
3020
|
-
getSemanticActionConfig,
|
|
3021
|
-
getSemanticActionLabel,
|
|
3022
|
-
getSupportedProviderIdentityIds,
|
|
3023
|
-
he,
|
|
3024
|
-
hu,
|
|
3025
252
|
isGdsActivityPictogramKey,
|
|
3026
253
|
isGdsChartSetAType,
|
|
3027
254
|
isGdsChartSetBType,
|
|
3028
255
|
isGdsChartSetCType,
|
|
3029
|
-
isGdsIconKey,
|
|
3030
|
-
isGdsOperationalEventType,
|
|
3031
|
-
isPresentationMode,
|
|
3032
|
-
it,
|
|
3033
|
-
ja,
|
|
3034
|
-
jsonSchemaToGdsFormSchema,
|
|
3035
|
-
ko,
|
|
3036
|
-
listingQueryReducer,
|
|
3037
|
-
mergeGdsVocabularyPacks,
|
|
3038
|
-
normalizeGdsPhrase,
|
|
3039
|
-
normalizeGdsResponsiveValue,
|
|
3040
|
-
openApiToGdsFormSchema,
|
|
3041
256
|
partnerDiscoveryDefaultAmenities,
|
|
3042
257
|
partnerDiscoveryDefaultFilterState,
|
|
3043
258
|
partnerDiscoveryFamilyAmenities,
|
|
3044
|
-
redactGdsAccessGateMetadata,
|
|
3045
259
|
redactPartnerDiscoveryEventMetadata,
|
|
3046
|
-
registerGdsBlock,
|
|
3047
|
-
renderGdsCopyTemplate,
|
|
3048
|
-
renderGdsLayout,
|
|
3049
|
-
renderGdsLayoutWithDiagnostics,
|
|
3050
260
|
resetPartnerDiscoveryFilters,
|
|
3051
|
-
resolveAccentPanelStyles,
|
|
3052
|
-
resolveGdsAccessAdapterState,
|
|
3053
|
-
resolveGdsAccessState,
|
|
3054
261
|
resolveGdsActivityPictogramLabel,
|
|
3055
|
-
resolveGdsCardContract,
|
|
3056
|
-
resolveGdsCategoryBadgeIcon,
|
|
3057
262
|
resolveGdsChartTokenColor,
|
|
3058
|
-
resolveGdsGeneratedPaletteHex,
|
|
3059
|
-
resolveGdsLayoutStyle,
|
|
3060
263
|
resolveGdsLocale,
|
|
3061
264
|
resolveGdsMessage,
|
|
3062
|
-
resolveSemanticActionConfig,
|
|
3063
|
-
resolveSurfacePresentationStyles,
|
|
3064
|
-
ru,
|
|
3065
|
-
serializeGdsTableQuery,
|
|
3066
|
-
sortGdsAccessGateActions,
|
|
3067
265
|
sortGdsLocaleStrings,
|
|
3068
266
|
togglePartnerAmenity,
|
|
3069
267
|
togglePartnerPrice,
|
|
3070
|
-
translateGdsDom,
|
|
3071
|
-
translateGdsPhrase,
|
|
3072
|
-
useCommandLauncher,
|
|
3073
|
-
useDiscoveryShellState,
|
|
3074
|
-
useGdsAssetUploadQueue,
|
|
3075
|
-
useGdsBrowseSelection,
|
|
3076
|
-
useGdsCardContract,
|
|
3077
|
-
useGdsConfirm,
|
|
3078
|
-
useGdsDataTable,
|
|
3079
|
-
useGdsDensity,
|
|
3080
|
-
useGdsDirection,
|
|
3081
|
-
useGdsDomPhraseTranslation,
|
|
3082
|
-
useGdsForm,
|
|
3083
|
-
useGdsFormOrchestration,
|
|
3084
|
-
useGdsFormSnapshot,
|
|
3085
|
-
useGdsKanbanOrientation,
|
|
3086
|
-
useGdsNotifications,
|
|
3087
|
-
useGdsResourceManager,
|
|
3088
|
-
useGdsTelemetry,
|
|
3089
|
-
useGdsToasts,
|
|
3090
|
-
useGdsTour,
|
|
3091
|
-
useHasSeenTour,
|
|
3092
|
-
useListingState,
|
|
3093
|
-
useOverlayManager,
|
|
3094
|
-
usePlaybackKeyboardControls,
|
|
3095
|
-
validateCreatorCss,
|
|
3096
|
-
validateGdsAccessGateContract,
|
|
3097
|
-
validateGdsAccessibilityEvidence,
|
|
3098
|
-
validateGdsAsset,
|
|
3099
268
|
validateGdsChartData,
|
|
3100
|
-
|
|
3101
|
-
validateGdsCopyTemplate,
|
|
3102
|
-
validateGdsDesignHandoffMappings,
|
|
3103
|
-
validateGdsLayout,
|
|
3104
|
-
validateGdsPageTemplates,
|
|
3105
|
-
validateGdsTaskPatterns,
|
|
3106
|
-
zh,
|
|
3107
|
-
zodToGdsFormSchema
|
|
269
|
+
validateGdsPageTemplates
|
|
3108
270
|
};
|