@sovereignsquad/gds-core 6.11.0 → 6.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AISearchCard.js +97 -0
- package/dist/AISearchCard.mjs +73 -0
- package/dist/AccentPanel.js +94 -0
- package/dist/AccentPanel.mjs +69 -0
- package/dist/AccessRecoveryPanel.js +164 -0
- package/dist/AccessRecoveryPanel.mjs +140 -0
- package/dist/AccessSummary.js +57 -0
- package/dist/AccessSummary.mjs +33 -0
- package/dist/AccessibilityEvidence.js +131 -0
- package/dist/AccessibilityEvidence.mjs +104 -0
- package/dist/ActionBar.js +84 -0
- package/dist/ActionBar.mjs +60 -0
- package/dist/AdvancedDataTable.client.js +204 -0
- package/dist/AdvancedDataTable.client.mjs +180 -0
- package/dist/ArticleShell.js +43 -0
- package/dist/ArticleShell.mjs +19 -0
- package/dist/AsyncSurface.js +156 -0
- package/dist/AsyncSurface.mjs +132 -0
- package/dist/AuthShell.js +72 -0
- package/dist/AuthShell.mjs +48 -0
- package/dist/BottomTabBar.js +152 -0
- package/dist/BottomTabBar.mjs +128 -0
- package/dist/BottomTabBar.shared.js +31 -0
- package/dist/BottomTabBar.shared.mjs +6 -0
- package/dist/BoundedPreviewSurface.js +54 -0
- package/dist/BoundedPreviewSurface.mjs +30 -0
- package/dist/BrowseSelection.client.js +50 -0
- package/dist/BrowseSelection.client.mjs +26 -0
- package/dist/BrowseSurface.js +151 -0
- package/dist/BrowseSurface.mjs +127 -0
- package/dist/CardContracts.js +97 -0
- package/dist/CardContracts.mjs +68 -0
- package/dist/ChartTokenPanel.js +102 -0
- package/dist/ChartTokenPanel.mjs +78 -0
- package/dist/ChatSurface.js +217 -0
- package/dist/ChatSurface.mjs +190 -0
- package/dist/ChoiceChip.js +257 -0
- package/dist/ChoiceChip.mjs +230 -0
- package/dist/CommandPalette.client.js +129 -0
- package/dist/CommandPalette.client.mjs +103 -0
- package/dist/ConfirmDialog.js +65 -0
- package/dist/ConfirmDialog.mjs +41 -0
- package/dist/ConsumerDashboardGrid.js +35 -0
- package/dist/ConsumerDashboardGrid.mjs +11 -0
- package/dist/ConsumerSection.js +38 -0
- package/dist/ConsumerSection.mjs +14 -0
- package/dist/CreatorTheme.js +146 -0
- package/dist/CreatorTheme.mjs +120 -0
- package/dist/CtaButtonGroup.js +38 -0
- package/dist/CtaButtonGroup.mjs +14 -0
- package/dist/DataToolbar.js +63 -0
- package/dist/DataToolbar.mjs +39 -0
- package/dist/DetailFactsTable.js +134 -0
- package/dist/DetailFactsTable.mjs +110 -0
- package/dist/DetailFactsTable.shared.js +41 -0
- package/dist/DetailFactsTable.shared.mjs +16 -0
- package/dist/DetailProfileShell.js +52 -0
- package/dist/DetailProfileShell.mjs +28 -0
- package/dist/DiscoveryShell.js +189 -0
- package/dist/DiscoveryShell.mjs +164 -0
- package/dist/DocsCodeBlock.js +67 -0
- package/dist/DocsCodeBlock.mjs +43 -0
- package/dist/DocsCodeDisclosure.js +74 -0
- package/dist/DocsCodeDisclosure.mjs +50 -0
- package/dist/DocsPageShell.js +55 -0
- package/dist/DocsPageShell.mjs +31 -0
- package/dist/DocsShell.js +205 -0
- package/dist/DocsShell.mjs +180 -0
- package/dist/EditorialCard.js +140 -0
- package/dist/EditorialCard.mjs +116 -0
- package/dist/EditorialHero.js +247 -0
- package/dist/EditorialHero.mjs +223 -0
- package/dist/EmptyState.js +37 -0
- package/dist/EmptyState.mjs +13 -0
- package/dist/EvidencePanel.js +85 -0
- package/dist/EvidencePanel.mjs +61 -0
- package/dist/FeatureBand.js +90 -0
- package/dist/FeatureBand.mjs +66 -0
- package/dist/FeedbackRuntime.client.js +264 -0
- package/dist/FeedbackRuntime.client.mjs +237 -0
- package/dist/FilterDrawer.js +67 -0
- package/dist/FilterDrawer.mjs +43 -0
- package/dist/FitScoreChip.js +72 -0
- package/dist/FitScoreChip.mjs +48 -0
- package/dist/FoodMenuSection.js +79 -0
- package/dist/FoodMenuSection.mjs +55 -0
- package/dist/FormField.js +37 -0
- package/dist/FormField.mjs +13 -0
- package/dist/GameBoardTile.js +63 -0
- package/dist/GameBoardTile.mjs +39 -0
- package/dist/GdsAccentContrastMatrix.js +102 -0
- package/dist/GdsAccentContrastMatrix.mjs +85 -0
- package/dist/GdsAccessGate.js +226 -0
- package/dist/GdsAccessGate.mjs +204 -0
- package/dist/GdsAccessGateRuntime.js +236 -0
- package/dist/GdsAccessGateRuntime.mjs +203 -0
- package/dist/GdsAccessibilitySystemReference.js +78 -0
- package/dist/GdsAccessibilitySystemReference.mjs +54 -0
- package/dist/GdsAssetManager.client.js +208 -0
- package/dist/GdsAssetManager.client.mjs +180 -0
- package/dist/GdsBadge.js +115 -0
- package/dist/GdsBadge.mjs +91 -0
- package/dist/GdsBadge.shared-D2Cs4eos.d.mts +35 -0
- package/dist/GdsBadge.shared-D2Cs4eos.d.ts +35 -0
- package/dist/GdsBadge.shared.js +42 -0
- package/dist/GdsBadge.shared.mjs +16 -0
- package/dist/GdsBadgeStack.js +58 -0
- package/dist/GdsBadgeStack.mjs +33 -0
- package/dist/GdsBreadcrumbs.js +42 -0
- package/dist/GdsBreadcrumbs.mjs +18 -0
- package/dist/GdsBulkActionBar.js +73 -0
- package/dist/GdsBulkActionBar.mjs +49 -0
- package/dist/GdsButtonFeedbackReference.js +289 -0
- package/dist/GdsButtonFeedbackReference.mjs +273 -0
- package/dist/GdsChart.js +169 -0
- package/dist/GdsChart.mjs +145 -0
- package/dist/GdsChart.shared.js +247 -0
- package/dist/GdsChart.shared.mjs +215 -0
- package/dist/GdsColorSystemReference.js +116 -0
- package/dist/GdsColorSystemReference.mjs +100 -0
- package/dist/GdsCompareButton.js +79 -0
- package/dist/GdsCompareButton.mjs +55 -0
- package/dist/GdsContentDesign.js +371 -0
- package/dist/GdsContentDesign.mjs +339 -0
- package/dist/GdsCountBadge.js +70 -0
- package/dist/GdsCountBadge.mjs +46 -0
- package/dist/GdsDataTable.client.js +412 -0
- package/dist/GdsDataTable.client.mjs +385 -0
- package/dist/GdsDateInput.client.js +116 -0
- package/dist/GdsDateInput.client.mjs +90 -0
- package/dist/GdsDensity.js +46 -0
- package/dist/GdsDensity.mjs +20 -0
- package/dist/GdsDensitySpacingSystemReference.js +70 -0
- package/dist/GdsDensitySpacingSystemReference.mjs +52 -0
- package/dist/GdsDesignHandoff.js +250 -0
- package/dist/GdsDesignHandoff.mjs +222 -0
- package/dist/GdsDesignRuleProfilePanel.js +80 -0
- package/dist/GdsDesignRuleProfilePanel.mjs +61 -0
- package/dist/GdsForm.client.js +303 -0
- package/dist/GdsForm.client.mjs +271 -0
- package/dist/GdsFormControls.js +193 -0
- package/dist/GdsFormControls.mjs +166 -0
- package/dist/GdsGeneratedAvatar.js +86 -0
- package/dist/GdsGeneratedAvatar.mjs +65 -0
- package/dist/GdsGeneratedAvatar.shared.js +34 -0
- package/dist/GdsGeneratedAvatar.shared.mjs +10 -0
- package/dist/GdsGeneratedHero.js +277 -0
- package/dist/GdsGeneratedHero.mjs +256 -0
- package/dist/GdsGeneratedMark.js +90 -0
- package/dist/GdsGeneratedMark.mjs +66 -0
- package/dist/GdsGeneratedThumbnail.js +301 -0
- package/dist/GdsGeneratedThumbnail.mjs +280 -0
- package/dist/GdsI18nRuntime.js +83 -0
- package/dist/GdsI18nRuntime.mjs +52 -0
- package/dist/GdsI18nRuntime.shared.js +232 -0
- package/dist/GdsI18nRuntime.shared.mjs +198 -0
- package/dist/GdsIconBadge.js +60 -0
- package/dist/GdsIconBadge.mjs +36 -0
- package/dist/GdsIconSystemReference.js +128 -0
- package/dist/GdsIconSystemReference.mjs +104 -0
- package/dist/GdsInlineLink.js +42 -0
- package/dist/{chunk-W5O2JSVK.mjs → GdsInlineLink.mjs} +1 -3
- package/dist/GdsLogoLockup.js +131 -0
- package/dist/GdsLogoLockup.mjs +107 -0
- package/dist/GdsMap.client.js +395 -0
- package/dist/GdsMap.client.mjs +358 -0
- package/dist/GdsMapBasemapWash.js +51 -0
- package/dist/GdsMapBasemapWash.mjs +25 -0
- package/dist/GdsMapFilterRail.js +84 -0
- package/dist/GdsMapFilterRail.mjs +60 -0
- package/dist/GdsMapPinBadge.js +95 -0
- package/dist/{chunk-NTNVQZJU.mjs → GdsMapPinBadge.mjs} +12 -30
- package/dist/GdsMapPinBadge.shared.js +43 -0
- package/dist/GdsMapPinBadge.shared.mjs +14 -0
- package/dist/GdsMapPinPreviewCard.js +134 -0
- package/dist/GdsMapPinPreviewCard.mjs +110 -0
- package/dist/GdsMessageThread.js +92 -0
- package/dist/GdsMessageThread.mjs +68 -0
- package/dist/GdsMeter.js +46 -0
- package/dist/GdsMeter.mjs +22 -0
- package/dist/GdsMotionSystemReference.js +124 -0
- package/dist/GdsMotionSystemReference.mjs +106 -0
- package/dist/GdsNotificationBell.js +78 -0
- package/dist/GdsNotificationBell.mjs +54 -0
- package/dist/GdsPageTemplateFrame.js +178 -0
- package/dist/GdsPageTemplateFrame.mjs +150 -0
- package/dist/GdsPageTemplates.client.js +129 -0
- package/dist/GdsPageTemplates.client.mjs +104 -0
- package/dist/GdsPageTemplates.js +279 -0
- package/dist/GdsPageTemplates.mjs +247 -0
- package/dist/GdsPageTemplates.shared.js +331 -0
- package/dist/GdsPageTemplates.shared.mjs +303 -0
- package/dist/GdsPictogramSystemReference.js +288 -0
- package/dist/GdsPictogramSystemReference.mjs +264 -0
- package/dist/GdsPinSystemReference.js +164 -0
- package/dist/GdsPinSystemReference.mjs +147 -0
- package/dist/GdsPrimitives.js +84 -0
- package/dist/GdsPrimitives.mjs +62 -0
- package/dist/GdsRatingDisplay.js +61 -0
- package/dist/GdsRatingDisplay.mjs +37 -0
- package/dist/GdsReleaseNotes.client.js +126 -0
- package/dist/GdsReleaseNotes.client.mjs +102 -0
- package/dist/GdsRemovableTag.js +61 -0
- package/dist/GdsRemovableTag.mjs +37 -0
- package/dist/GdsResourceManager.client.js +280 -0
- package/dist/GdsResourceManager.client.mjs +254 -0
- package/dist/GdsRichTextEditor.client.js +146 -0
- package/dist/GdsRichTextEditor.client.mjs +112 -0
- package/dist/GdsSavedIndicator.js +62 -0
- package/dist/GdsSavedIndicator.mjs +38 -0
- package/dist/GdsSchemaForm.client.js +679 -0
- package/dist/GdsSchemaForm.client.mjs +650 -0
- package/dist/GdsShapeElevationSystemReference.js +140 -0
- package/dist/GdsShapeElevationSystemReference.mjs +125 -0
- package/dist/GdsShapeScope.js +44 -0
- package/dist/GdsShapeScope.mjs +19 -0
- package/dist/GdsTableScrollContainer.js +46 -0
- package/dist/GdsTableScrollContainer.mjs +22 -0
- package/dist/GdsThreadList.js +118 -0
- package/dist/GdsThreadList.mjs +94 -0
- package/dist/GdsTour.client.js +399 -0
- package/dist/GdsTour.client.mjs +380 -0
- package/dist/GdsTreeView.js +194 -0
- package/dist/GdsTreeView.mjs +170 -0
- package/dist/GdsTypographySystemReference.js +77 -0
- package/dist/GdsTypographySystemReference.mjs +57 -0
- package/dist/GdsViewToggle.js +48 -0
- package/dist/GdsViewToggle.mjs +24 -0
- package/dist/GdsViewportFrame.js +61 -0
- package/dist/GdsViewportFrame.mjs +37 -0
- package/dist/HeroSearchPanel.client.js +135 -0
- package/dist/HeroSearchPanel.client.mjs +109 -0
- package/dist/KanbanBoard.client.js +400 -0
- package/dist/KanbanBoard.client.mjs +382 -0
- package/dist/LayoutBlocks.js +331 -0
- package/dist/LayoutBlocks.mjs +301 -0
- package/dist/LayoutPrimitives.js +501 -0
- package/dist/LayoutPrimitives.mjs +465 -0
- package/dist/LayoutTemplatePreview.client.js +172 -0
- package/dist/LayoutTemplatePreview.client.mjs +151 -0
- package/dist/ListingCard.js +397 -0
- package/dist/ListingCard.mjs +373 -0
- package/dist/ListingCard.shared.js +49 -0
- package/dist/ListingCard.shared.mjs +18 -0
- package/dist/ListingPrimitives.js +116 -0
- package/dist/ListingPrimitives.mjs +89 -0
- package/dist/ListingState.client.js +98 -0
- package/dist/ListingState.client.mjs +72 -0
- package/dist/MapPanel.js +93 -0
- package/dist/MapPanel.mjs +69 -0
- package/dist/MaturityCapabilities.js +211 -0
- package/dist/MaturityCapabilities.mjs +184 -0
- package/dist/MeaningBadge.js +65 -0
- package/dist/MeaningBadge.mjs +41 -0
- package/dist/MediaCard.js +61 -0
- package/dist/MediaCard.mjs +37 -0
- package/dist/MediaField.js +117 -0
- package/dist/MediaField.mjs +93 -0
- package/dist/MediaPreviewCard.js +90 -0
- package/dist/MediaPreviewCard.mjs +66 -0
- package/dist/MediaWithFallback.js +112 -0
- package/dist/MediaWithFallback.mjs +88 -0
- package/dist/MetricCard.js +60 -0
- package/dist/MetricCard.mjs +36 -0
- package/dist/Notifications.client.js +301 -0
- package/dist/Notifications.client.mjs +273 -0
- package/dist/Notifications.js +220 -0
- package/dist/Notifications.mjs +194 -0
- package/dist/Notifications.shared.js +52 -0
- package/dist/Notifications.shared.mjs +26 -0
- package/dist/NumberStepper.js +124 -0
- package/dist/NumberStepper.mjs +100 -0
- package/dist/OverlayManager.client.js +300 -0
- package/dist/OverlayManager.client.mjs +270 -0
- package/dist/OwnedContrastSurface.js +83 -0
- package/dist/OwnedContrastSurface.mjs +58 -0
- package/dist/PageHeader.js +48 -0
- package/dist/PageHeader.mjs +24 -0
- package/dist/{PartnerDiscovery-pdJmaKwq.d.ts → PartnerDiscovery-BUwzROQc.d.mts} +37 -35
- package/dist/{PartnerDiscovery-Dy3YnO02.d.mts → PartnerDiscovery-DmIj5bAw.d.ts} +37 -35
- package/dist/PartnerDiscovery.js +629 -0
- package/dist/{chunk-PCG34VRY.mjs → PartnerDiscovery.mjs} +19 -106
- package/dist/PartnerDiscovery.shared.js +116 -0
- package/dist/PartnerDiscovery.shared.mjs +84 -0
- package/dist/PeriodSelector.js +69 -0
- package/dist/PeriodSelector.mjs +45 -0
- package/dist/PlaceholderPanel.js +59 -0
- package/dist/PlaceholderPanel.mjs +35 -0
- package/dist/PlaybackControls.client.js +91 -0
- package/dist/PlaybackControls.client.mjs +65 -0
- package/dist/PlaybackSurface.js +107 -0
- package/dist/PlaybackSurface.mjs +83 -0
- package/dist/ProductCard.js +75 -0
- package/dist/ProductCard.mjs +51 -0
- package/dist/ProgressCard.js +58 -0
- package/dist/ProgressCard.mjs +34 -0
- package/dist/ProviderCTA.js +104 -0
- package/dist/ProviderCTA.mjs +80 -0
- package/dist/ProviderIdentityButtons.js +221 -0
- package/dist/ProviderIdentityButtons.mjs +192 -0
- package/dist/PublicBrandFooter.js +70 -0
- package/dist/PublicBrandFooter.mjs +46 -0
- package/dist/PublicCaptureFlow.js +125 -0
- package/dist/PublicCaptureFlow.mjs +95 -0
- package/dist/PublicFlowShell.js +128 -0
- package/dist/PublicFlowShell.mjs +104 -0
- package/dist/PublicFoodCard.js +153 -0
- package/dist/PublicFoodCard.mjs +129 -0
- package/dist/PublicNav.js +51 -0
- package/dist/PublicNav.mjs +27 -0
- package/dist/PublicProductCard.js +145 -0
- package/dist/PublicProductCard.mjs +121 -0
- package/dist/PublicShell.js +168 -0
- package/dist/PublicShell.mjs +144 -0
- package/dist/PublicSiteFooter.js +35 -0
- package/dist/PublicSiteFooter.mjs +11 -0
- package/dist/{QuickStartCard-BhNYAGG3.d.ts → QuickStartCard-CYKhDjvS.d.ts} +551 -158
- package/dist/{QuickStartCard-BztqkfQK.d.mts → QuickStartCard-DT2GgJrP.d.mts} +551 -158
- package/dist/QuickStartCard.js +85 -0
- package/dist/QuickStartCard.mjs +60 -0
- package/dist/ReferenceLinkGrid.js +66 -0
- package/dist/ReferenceLinkGrid.mjs +42 -0
- package/dist/ReferenceLocaleNotice.js +32 -0
- package/dist/ReferenceLocaleNotice.mjs +8 -0
- package/dist/ReferenceSection.js +58 -0
- package/dist/ReferenceSection.mjs +34 -0
- package/dist/ReferenceThemeExplorer.copy.js +1209 -0
- package/dist/ReferenceThemeExplorer.copy.mjs +1184 -0
- package/dist/ReferenceThemeExplorer.js +801 -0
- package/dist/ReferenceThemeExplorer.mjs +802 -0
- package/dist/ReportingSection.js +72 -0
- package/dist/ReportingSection.mjs +48 -0
- package/dist/SafeStyles.js +303 -0
- package/dist/SafeStyles.mjs +274 -0
- package/dist/SearchableSelect.js +195 -0
- package/dist/SearchableSelect.mjs +171 -0
- package/dist/SectionPanel.js +96 -0
- package/dist/SectionPanel.mjs +72 -0
- package/dist/SemanticButton.js +326 -0
- package/dist/SemanticButton.mjs +296 -0
- package/dist/SemanticCharts.js +120 -0
- package/dist/SemanticCharts.mjs +77 -0
- package/dist/ShareButtonGroup.js +117 -0
- package/dist/ShareButtonGroup.mjs +93 -0
- package/dist/SidebarNav.js +92 -0
- package/dist/SidebarNav.mjs +66 -0
- package/dist/SimpleDataTable.js +59 -0
- package/dist/SimpleDataTable.mjs +35 -0
- package/dist/SocialAuthButtons.js +71 -0
- package/dist/SocialAuthButtons.mjs +49 -0
- package/dist/StateBlock.js +118 -0
- package/dist/StateBlock.mjs +95 -0
- package/dist/StatsSection.js +63 -0
- package/dist/StatsSection.mjs +39 -0
- package/dist/StatusBadge.js +94 -0
- package/dist/StatusBadge.mjs +68 -0
- package/dist/StyleUtilities.js +123 -0
- package/dist/StyleUtilities.mjs +91 -0
- package/dist/SurfacePresentation.js +63 -0
- package/dist/SurfacePresentation.mjs +38 -0
- package/dist/TaskPatterns.js +206 -0
- package/dist/TaskPatterns.mjs +180 -0
- package/dist/Telemetry.client.js +273 -0
- package/dist/Telemetry.client.mjs +243 -0
- package/dist/ThemeToggle.js +53 -0
- package/dist/{chunk-ZFGYQSNR.mjs → ThemeToggle.mjs} +3 -7
- package/dist/TrustLayer.client.js +184 -0
- package/dist/TrustLayer.client.mjs +158 -0
- package/dist/TrustLayer.js +94 -0
- package/dist/TrustLayer.mjs +68 -0
- package/dist/TrustLayer.shared.js +37 -0
- package/dist/TrustLayer.shared.mjs +13 -0
- package/dist/Typography.js +68 -0
- package/dist/Typography.mjs +37 -0
- package/dist/UploadDropzone.js +144 -0
- package/dist/UploadDropzone.mjs +120 -0
- package/dist/badge-shapes.js +75 -0
- package/dist/badge-shapes.mjs +44 -0
- package/dist/breakpoints.js +34 -0
- package/dist/breakpoints.mjs +10 -0
- package/dist/category-registry.js +33 -0
- package/dist/category-registry.mjs +9 -0
- package/dist/chart-colors.js +73 -0
- package/dist/chart-colors.mjs +44 -0
- package/dist/chart-primitives.js +169 -0
- package/dist/chart-primitives.mjs +144 -0
- package/dist/client.d.mts +3 -3
- package/dist/client.d.ts +3 -3
- package/dist/client.js +378 -23816
- package/dist/client.mjs +161 -959
- package/dist/dom-phrase-translation.js +130 -0
- package/dist/dom-phrase-translation.mjs +104 -0
- package/dist/generated-art-engine.js +119 -0
- package/dist/generated-art-engine.mjs +93 -0
- package/dist/generated-art-svg.js +263 -0
- package/dist/generated-art-svg.mjs +238 -0
- package/dist/generated-brand-badge.js +160 -0
- package/dist/generated-brand-badge.mjs +136 -0
- package/dist/generated-design-rule-coverage.js +54 -0
- package/dist/generated-design-rule-coverage.mjs +30 -0
- package/dist/icons.js +371 -0
- package/dist/{chunk-J66ITCXC.mjs → icons.mjs} +22 -15
- package/dist/index.d.mts +13 -12
- package/dist/index.d.ts +13 -12
- package/dist/index.js +448 -26750
- package/dist/index.mjs +192 -3030
- package/dist/locales/ar.js +477 -0
- package/dist/{chunk-EYRLICSG.mjs → locales/ar.mjs} +1 -3
- package/dist/locales/de.js +477 -0
- package/dist/{chunk-TVGDH5O5.mjs → locales/de.mjs} +1 -3
- package/dist/locales/en.js +477 -0
- package/dist/{chunk-D65VHUXK.mjs → locales/en.mjs} +1 -3
- package/dist/locales/es.js +477 -0
- package/dist/{chunk-J4TSXITU.mjs → locales/es.mjs} +1 -3
- package/dist/locales/fr.js +477 -0
- package/dist/{chunk-Z6XXK57E.mjs → locales/fr.mjs} +1 -3
- package/dist/locales/he.js +477 -0
- package/dist/{chunk-GAPCKZGX.mjs → locales/he.mjs} +1 -3
- package/dist/locales/hu.js +477 -0
- package/dist/{chunk-CWMDWMYL.mjs → locales/hu.mjs} +1 -3
- package/dist/locales/index.js +83 -0
- package/dist/locales/index.mjs +45 -0
- package/dist/locales/it.js +477 -0
- package/dist/{chunk-3UYDQTAZ.mjs → locales/it.mjs} +1 -3
- package/dist/locales/ja.js +477 -0
- package/dist/{chunk-FPDTLFIB.mjs → locales/ja.mjs} +1 -3
- package/dist/locales/ko.js +477 -0
- package/dist/{chunk-PLJT4I7B.mjs → locales/ko.mjs} +1 -3
- package/dist/locales/lazy/all.js +23 -5449
- package/dist/locales/lazy/all.mjs +12 -39
- package/dist/locales/lazy/ar.js +3 -919
- package/dist/locales/lazy/ar.mjs +2 -9
- package/dist/locales/lazy/de.js +3 -919
- package/dist/locales/lazy/de.mjs +2 -9
- package/dist/locales/lazy/es.js +3 -919
- package/dist/locales/lazy/es.mjs +2 -9
- package/dist/locales/lazy/fr.js +3 -919
- package/dist/locales/lazy/fr.mjs +2 -9
- package/dist/locales/lazy/he.js +3 -919
- package/dist/locales/lazy/he.mjs +2 -9
- package/dist/locales/lazy/hu.js +3 -919
- package/dist/locales/lazy/hu.mjs +2 -9
- package/dist/locales/lazy/index.js +3 -477
- package/dist/locales/lazy/index.mjs +1 -5
- package/dist/locales/lazy/it.js +3 -919
- package/dist/locales/lazy/it.mjs +2 -9
- package/dist/locales/lazy/ja.js +3 -919
- package/dist/locales/lazy/ja.mjs +2 -9
- package/dist/locales/lazy/ko.js +3 -919
- package/dist/locales/lazy/ko.mjs +2 -9
- package/dist/locales/lazy/registry.js +47 -0
- package/dist/{chunk-TD3JPMMO.mjs → locales/lazy/registry.mjs} +6 -11
- package/dist/locales/lazy/ru.js +3 -919
- package/dist/locales/lazy/ru.mjs +2 -9
- package/dist/locales/lazy/zh.js +3 -919
- package/dist/locales/lazy/zh.mjs +2 -9
- package/dist/locales/ru.js +477 -0
- package/dist/{chunk-RBXAJJB2.mjs → locales/ru.mjs} +1 -3
- package/dist/locales/zh.js +477 -0
- package/dist/{chunk-V6SP5O4D.mjs → locales/zh.mjs} +1 -3
- package/dist/map-tile-policy.js +55 -0
- package/dist/map-tile-policy.mjs +29 -0
- package/dist/map.d.mts +1 -3
- package/dist/map.d.ts +1 -3
- package/dist/map.js +6 -749
- package/dist/map.mjs +2 -389
- package/dist/pictograms.js +112 -0
- package/dist/pictograms.mjs +88 -0
- package/dist/pictograms.shared.js +262 -0
- package/dist/pictograms.shared.mjs +226 -0
- package/dist/reference-theme-explorer.js +3 -10401
- package/dist/reference-theme-explorer.mjs +1 -2008
- package/dist/rich-text-editor.js +3 -450
- package/dist/rich-text-editor.mjs +1 -115
- package/dist/server.d.mts +6 -5
- package/dist/server.d.ts +6 -5
- package/dist/server.js +304 -18097
- package/dist/server.mjs +120 -1122
- package/dist/useGdsDomPhraseTranslation.client.js +49 -0
- package/dist/useGdsDomPhraseTranslation.client.mjs +25 -0
- package/dist/vocabulary.js +166 -0
- package/dist/vocabulary.mjs +137 -0
- package/package.json +5 -5
- package/dist/GdsBadge-j_kQnIL0.d.mts +0 -417
- package/dist/GdsBadge-j_kQnIL0.d.ts +0 -417
- package/dist/chunk-ADNXPSGK.mjs +0 -6695
- package/dist/chunk-MQDFB3AS.mjs +0 -8311
- package/dist/chunk-RMPMU4MB.mjs +0 -2468
- package/dist/chunk-RSA7INLU.mjs +0 -246
- package/dist/chunk-SPPTDVJC.mjs +0 -211
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var SemanticButton_exports = {};
|
|
21
|
+
__export(SemanticButton_exports, {
|
|
22
|
+
GDS_BUTTON_CONFIRM_WINDOW_MS: () => GDS_BUTTON_CONFIRM_WINDOW_MS,
|
|
23
|
+
GDS_BUTTON_FEEDBACK_DURATION_MS: () => GDS_BUTTON_FEEDBACK_DURATION_MS,
|
|
24
|
+
GDS_BUTTON_GRADIENT_TEXT_FLOOR: () => GDS_BUTTON_GRADIENT_TEXT_FLOOR,
|
|
25
|
+
GDS_BUTTON_OUTLINE_ACCENT_STROKE_PX: () => GDS_BUTTON_OUTLINE_ACCENT_STROKE_PX,
|
|
26
|
+
GDS_BUTTON_PENDING_DELAY_MS: () => GDS_BUTTON_PENDING_DELAY_MS,
|
|
27
|
+
GDS_BUTTON_PENDING_MIN_MS: () => GDS_BUTTON_PENDING_MIN_MS,
|
|
28
|
+
SemanticButton: () => SemanticButton
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(SemanticButton_exports);
|
|
31
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
32
|
+
var import_react = require("react");
|
|
33
|
+
var import_core = require("@mantine/core");
|
|
34
|
+
var import_gds_theme = require("@sovereignsquad/gds-theme");
|
|
35
|
+
var import_icons_react = require("@tabler/icons-react");
|
|
36
|
+
var import_vocabulary = require("./vocabulary");
|
|
37
|
+
const GDS_BUTTON_FEEDBACK_DURATION_MS = 2e3;
|
|
38
|
+
const GDS_BUTTON_PENDING_DELAY_MS = 500;
|
|
39
|
+
const GDS_BUTTON_PENDING_MIN_MS = 200;
|
|
40
|
+
const GDS_BUTTON_CONFIRM_WINDOW_MS = 3e3;
|
|
41
|
+
const GDS_BUTTON_GRADIENT_TEXT_FLOOR = { fontSizePx: 14, fontWeight: 600 };
|
|
42
|
+
const GDS_BUTTON_OUTLINE_ACCENT_STROKE_PX = 1.5;
|
|
43
|
+
const brandButtonStyles = {
|
|
44
|
+
primary: {
|
|
45
|
+
background: "var(--gds-brand-primary, var(--gds-vibe-primary, var(--mantine-primary-color-filled)))",
|
|
46
|
+
borderColor: "var(--gds-brand-primary, var(--gds-vibe-primary, var(--mantine-primary-color-filled)))",
|
|
47
|
+
// --gds-text-on-inverse is derived against --gds-bg-inverse only; against
|
|
48
|
+
// --gds-brand-primary it is 1.00:1 in the default dark preset (identical color).
|
|
49
|
+
color: "var(--gds-brand-primary-fg, var(--gds-text-on-inverse, var(--mantine-color-white)))"
|
|
50
|
+
},
|
|
51
|
+
secondary: {
|
|
52
|
+
background: "var(--gds-bg-card, var(--gds-vibe-surface, var(--mantine-color-white)))",
|
|
53
|
+
borderColor: "var(--gds-border-card, var(--gds-vibe-border, var(--mantine-color-gray-3)))",
|
|
54
|
+
color: "var(--gds-brand-primary, var(--gds-vibe-text, var(--mantine-color-dark-7)))"
|
|
55
|
+
},
|
|
56
|
+
accent: {
|
|
57
|
+
background: "var(--gds-brand-accent-action, var(--gds-brand-accent, var(--gds-vibe-accent, var(--mantine-primary-color-filled))))",
|
|
58
|
+
borderColor: "var(--gds-brand-accent-action, var(--gds-brand-accent, var(--gds-vibe-accent, var(--mantine-primary-color-filled))))",
|
|
59
|
+
// 1.66:1 against the gold-athlete dark accent.
|
|
60
|
+
color: "var(--gds-brand-accent-action-fg, var(--gds-text-on-inverse, var(--mantine-color-white)))"
|
|
61
|
+
},
|
|
62
|
+
disabled: {
|
|
63
|
+
background: "var(--gds-control-disabledBg, var(--mantine-color-gray-2))",
|
|
64
|
+
borderColor: "var(--gds-control-disabledBg, var(--mantine-color-gray-2))",
|
|
65
|
+
color: "var(--gds-control-disabledText, var(--mantine-color-gray-6))"
|
|
66
|
+
},
|
|
67
|
+
// `outline-accent` and `gradient` (issue 700) carry no inline paint. A stylesheet
|
|
68
|
+
// `:hover`/`:active` rule cannot override an inline style without `!important`, so their
|
|
69
|
+
// entire resting paint -- and every state layered on top of it -- lives in
|
|
70
|
+
// packages/gds-theme/styles.css, keyed on `data-gds-brand-button`; the component contributes
|
|
71
|
+
// only the attribute.
|
|
72
|
+
"outline-accent": {},
|
|
73
|
+
gradient: {}
|
|
74
|
+
};
|
|
75
|
+
const ICON_SIZE = "1rem";
|
|
76
|
+
function pendingLabel(action, t) {
|
|
77
|
+
switch (action) {
|
|
78
|
+
case "send":
|
|
79
|
+
return t("gds.pending.send", "Sending\u2026");
|
|
80
|
+
case "save":
|
|
81
|
+
return t("gds.pending.save", "Saving\u2026");
|
|
82
|
+
case "copy":
|
|
83
|
+
return t("gds.pending.copy", "Copying\u2026");
|
|
84
|
+
case "delete":
|
|
85
|
+
return t("gds.pending.delete", "Deleting\u2026");
|
|
86
|
+
case "add":
|
|
87
|
+
return t("gds.pending.add", "Adding\u2026");
|
|
88
|
+
case "download":
|
|
89
|
+
return t("gds.pending.download", "Downloading\u2026");
|
|
90
|
+
case "upload":
|
|
91
|
+
return t("gds.pending.upload", "Uploading\u2026");
|
|
92
|
+
case "refresh":
|
|
93
|
+
return t("gds.pending.refresh", "Refreshing\u2026");
|
|
94
|
+
case "complete":
|
|
95
|
+
return t("gds.pending.complete", "Completing\u2026");
|
|
96
|
+
case "submit":
|
|
97
|
+
return t("gds.pending.submit", "Submitting\u2026");
|
|
98
|
+
default:
|
|
99
|
+
return t("gds.pending.working", "Working\u2026");
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
function Layer({ motion, after, press, children }) {
|
|
103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
104
|
+
"span",
|
|
105
|
+
{
|
|
106
|
+
"data-gds-motion": motion || press ? "" : void 0,
|
|
107
|
+
"data-gds-button-motion": motion,
|
|
108
|
+
"data-gds-button-motion-after": after,
|
|
109
|
+
"data-gds-button-press": press,
|
|
110
|
+
children
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
function ButtonIcon({ phase, motion, Icon, SuccessIcon, fromRest, pressed }) {
|
|
115
|
+
let layers;
|
|
116
|
+
if (phase === "pending") {
|
|
117
|
+
const pending = motion?.pending ?? "spinner";
|
|
118
|
+
layers = pending === "spinner" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Layer, { motion: "spin", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons_react.IconLoader2, { size: ICON_SIZE }) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Layer, { motion: pending, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { size: ICON_SIZE }) });
|
|
119
|
+
} else if (phase === "success") {
|
|
120
|
+
const success = motion?.success;
|
|
121
|
+
if ((success === "fly-off" || success === "turn") && fromRest) {
|
|
122
|
+
layers = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
123
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Layer, { motion: success === "fly-off" ? "fly-off" : "turn-out", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { size: ICON_SIZE }) }),
|
|
124
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Layer, { motion: "pop-in", after: "exit", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons_react.IconCheck, { size: ICON_SIZE }) })
|
|
125
|
+
] });
|
|
126
|
+
} else if (success === "fly-off" || success === "turn" || success === "check-pop") {
|
|
127
|
+
layers = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Layer, { motion: "pop-in", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons_react.IconCheck, { size: ICON_SIZE }) });
|
|
128
|
+
} else if (success === "check-draw") {
|
|
129
|
+
layers = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Layer, { motion: "draw", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons_react.IconCheck, { size: ICON_SIZE }) });
|
|
130
|
+
} else if (success === "draw") {
|
|
131
|
+
layers = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Layer, { motion: "draw", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SuccessIcon, { size: ICON_SIZE }) });
|
|
132
|
+
} else {
|
|
133
|
+
layers = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Layer, { motion: "pop", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SuccessIcon, { size: ICON_SIZE }) });
|
|
134
|
+
}
|
|
135
|
+
} else if (phase === "error") {
|
|
136
|
+
layers = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Layer, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons_react.IconX, { size: ICON_SIZE }) });
|
|
137
|
+
} else {
|
|
138
|
+
layers = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Layer, { press: pressed ? motion?.press : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { size: ICON_SIZE }) });
|
|
139
|
+
}
|
|
140
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { "data-gds-button-icon": "", children: layers });
|
|
141
|
+
}
|
|
142
|
+
function SemanticButton({
|
|
143
|
+
action,
|
|
144
|
+
brandVariant,
|
|
145
|
+
loading,
|
|
146
|
+
feedbackState,
|
|
147
|
+
feedbackText,
|
|
148
|
+
onAction,
|
|
149
|
+
prerenderLabelOnly = true,
|
|
150
|
+
vocabularyPacks = [],
|
|
151
|
+
label: labelOverride,
|
|
152
|
+
...props
|
|
153
|
+
}) {
|
|
154
|
+
if (props.children !== void 0) {
|
|
155
|
+
(0, import_gds_theme.gdsDevWarnOnce)(
|
|
156
|
+
"SemanticButton:children",
|
|
157
|
+
"SemanticButton ignores children: its text comes from `action` or the `label` prop. Pass the text as `label`."
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
const { t } = (0, import_gds_theme.useGdsTranslation)();
|
|
161
|
+
const config = (0, import_vocabulary.resolveSemanticActionConfig)(action, vocabularyPacks);
|
|
162
|
+
const motion = config.motion;
|
|
163
|
+
const [mounted, setMounted] = (0, import_react.useState)(!prerenderLabelOnly);
|
|
164
|
+
const [phase, setPhaseState] = (0, import_react.useState)("idle");
|
|
165
|
+
const [cycle, setCycle] = (0, import_react.useState)(0);
|
|
166
|
+
const [fromRest, setFromRest] = (0, import_react.useState)(true);
|
|
167
|
+
const [presses, setPresses] = (0, import_react.useState)(0);
|
|
168
|
+
const [pressPhase, setPressPhase] = (0, import_react.useState)(null);
|
|
169
|
+
const phaseRef = (0, import_react.useRef)("idle");
|
|
170
|
+
const timers = (0, import_react.useRef)([]);
|
|
171
|
+
const alive = (0, import_react.useRef)(true);
|
|
172
|
+
const setPhase = (0, import_react.useCallback)((next) => {
|
|
173
|
+
phaseRef.current = next;
|
|
174
|
+
setPhaseState(next);
|
|
175
|
+
if (next !== "busy" && next !== "confirm") setPressPhase(null);
|
|
176
|
+
}, []);
|
|
177
|
+
const press = (0, import_react.useCallback)((during) => {
|
|
178
|
+
setPresses((n) => n + 1);
|
|
179
|
+
setPressPhase(during);
|
|
180
|
+
}, []);
|
|
181
|
+
const clearTimers = (0, import_react.useCallback)(() => {
|
|
182
|
+
for (const timer of timers.current) clearTimeout(timer);
|
|
183
|
+
timers.current = [];
|
|
184
|
+
}, []);
|
|
185
|
+
const later = (0, import_react.useCallback)((ms, fn) => {
|
|
186
|
+
timers.current.push(setTimeout(fn, ms));
|
|
187
|
+
}, []);
|
|
188
|
+
(0, import_react.useEffect)(() => {
|
|
189
|
+
alive.current = true;
|
|
190
|
+
return () => {
|
|
191
|
+
alive.current = false;
|
|
192
|
+
clearTimers();
|
|
193
|
+
};
|
|
194
|
+
}, [clearTimers]);
|
|
195
|
+
(0, import_react.useEffect)(() => {
|
|
196
|
+
if (prerenderLabelOnly) {
|
|
197
|
+
setMounted(true);
|
|
198
|
+
}
|
|
199
|
+
}, [prerenderLabelOnly]);
|
|
200
|
+
(0, import_react.useEffect)(() => {
|
|
201
|
+
if (feedbackState) {
|
|
202
|
+
setFromRest(true);
|
|
203
|
+
setCycle((n) => n + 1);
|
|
204
|
+
setPhase(feedbackState);
|
|
205
|
+
const timer = setTimeout(() => setPhase("idle"), GDS_BUTTON_FEEDBACK_DURATION_MS);
|
|
206
|
+
return () => clearTimeout(timer);
|
|
207
|
+
}
|
|
208
|
+
}, [feedbackState, setPhase]);
|
|
209
|
+
const { onClick, ...buttonRest } = props;
|
|
210
|
+
const handleClick = (0, import_react.useCallback)(async (event) => {
|
|
211
|
+
if (!onAction) {
|
|
212
|
+
press("idle");
|
|
213
|
+
onClick?.(event);
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
const current = phaseRef.current;
|
|
217
|
+
if (current === "busy" || current === "pending") {
|
|
218
|
+
event.preventDefault();
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
clearTimers();
|
|
222
|
+
if (motion?.confirm && current !== "confirm") {
|
|
223
|
+
press("confirm");
|
|
224
|
+
setPhase("confirm");
|
|
225
|
+
later(GDS_BUTTON_CONFIRM_WINDOW_MS, () => setPhase("idle"));
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
onClick?.(event);
|
|
229
|
+
press("busy");
|
|
230
|
+
setCycle((n) => n + 1);
|
|
231
|
+
setPhase("busy");
|
|
232
|
+
let shownAt = 0;
|
|
233
|
+
later(GDS_BUTTON_PENDING_DELAY_MS, () => {
|
|
234
|
+
shownAt = Date.now();
|
|
235
|
+
setPhase("pending");
|
|
236
|
+
});
|
|
237
|
+
let ok = true;
|
|
238
|
+
try {
|
|
239
|
+
await onAction();
|
|
240
|
+
} catch {
|
|
241
|
+
ok = false;
|
|
242
|
+
}
|
|
243
|
+
clearTimers();
|
|
244
|
+
if (shownAt) {
|
|
245
|
+
const remaining = GDS_BUTTON_PENDING_MIN_MS - (Date.now() - shownAt);
|
|
246
|
+
if (remaining > 0) await new Promise((resolve) => setTimeout(resolve, remaining));
|
|
247
|
+
}
|
|
248
|
+
if (!alive.current) return;
|
|
249
|
+
setFromRest(!shownAt);
|
|
250
|
+
setCycle((n) => n + 1);
|
|
251
|
+
setPhase(ok ? "success" : "error");
|
|
252
|
+
later(GDS_BUTTON_FEEDBACK_DURATION_MS, () => setPhase("idle"));
|
|
253
|
+
}, [onAction, onClick, motion?.confirm, clearTimers, later, setPhase, press]);
|
|
254
|
+
const restLabel = labelOverride ?? (0, import_vocabulary.getSemanticActionLabel)(action, t, vocabularyPacks);
|
|
255
|
+
const feedbackConfig = config.feedback ?? { icon: import_icons_react.IconCheck, color: "teal", messageId: "gds.feedback.saved" };
|
|
256
|
+
const successLabel = feedbackText || t(feedbackConfig.messageId, "Success");
|
|
257
|
+
const failedLabel = feedbackText || t("gds.feedback.failed", "Failed");
|
|
258
|
+
const errorAnnouncement = feedbackText || t("gds.feedback.error", "Something went wrong");
|
|
259
|
+
const confirmLabel = t("gds.feedback.confirmAgain", "Click again to confirm");
|
|
260
|
+
const workingLabel = pendingLabel(action, t);
|
|
261
|
+
const reservesWidth = Boolean(onAction) || feedbackState !== void 0;
|
|
262
|
+
let color = props.color;
|
|
263
|
+
const brandStyle = brandVariant ? brandButtonStyles[brandVariant] : void 0;
|
|
264
|
+
const disabled = props.disabled || brandVariant === "disabled";
|
|
265
|
+
const showingFeedback = phase === "success" || phase === "error";
|
|
266
|
+
const isStylesheetPaintedBrand = brandVariant === "outline-accent" || brandVariant === "gradient";
|
|
267
|
+
const brandButtonAttr = isStylesheetPaintedBrand && showingFeedback ? void 0 : brandVariant;
|
|
268
|
+
if (!mounted) {
|
|
269
|
+
const { leftSection, style, ...prerenderProps } = buttonRest;
|
|
270
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Button, { ...prerenderProps, onClick: onAction ? void 0 : onClick, loading, color, "data-gds-brand-button": brandButtonAttr, disabled, "aria-busy": loading ? true : void 0, style: { ...brandStyle, ...style }, children: labelOverride ?? (0, import_vocabulary.getSemanticActionLabel)(action, void 0, vocabularyPacks) });
|
|
271
|
+
}
|
|
272
|
+
let visibleLabel = restLabel;
|
|
273
|
+
let announcement = "";
|
|
274
|
+
if (phase === "success") {
|
|
275
|
+
visibleLabel = successLabel;
|
|
276
|
+
announcement = successLabel;
|
|
277
|
+
color = feedbackConfig.color;
|
|
278
|
+
} else if (phase === "error") {
|
|
279
|
+
visibleLabel = failedLabel;
|
|
280
|
+
announcement = errorAnnouncement;
|
|
281
|
+
color = "red";
|
|
282
|
+
} else if (phase === "pending") {
|
|
283
|
+
visibleLabel = workingLabel;
|
|
284
|
+
announcement = workingLabel;
|
|
285
|
+
} else if (phase === "confirm") {
|
|
286
|
+
visibleLabel = confirmLabel;
|
|
287
|
+
announcement = confirmLabel;
|
|
288
|
+
}
|
|
289
|
+
const ghosts = [restLabel, successLabel, failedLabel];
|
|
290
|
+
if (onAction) ghosts.push(workingLabel);
|
|
291
|
+
if (onAction && motion?.confirm) ghosts.push(confirmLabel);
|
|
292
|
+
const busy = phase === "busy" || phase === "pending";
|
|
293
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
294
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
295
|
+
import_core.Button,
|
|
296
|
+
{
|
|
297
|
+
...buttonRest,
|
|
298
|
+
onClick: handleClick,
|
|
299
|
+
leftSection: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonIcon, { phase, motion, Icon: config.icon, SuccessIcon: feedbackConfig.icon, fromRest, pressed: pressPhase === phase }, `${phase}-${cycle}-${pressPhase === phase ? presses : 0}`),
|
|
300
|
+
loading,
|
|
301
|
+
color,
|
|
302
|
+
"data-gds-brand-button": brandButtonAttr,
|
|
303
|
+
"data-gds-button-phase": phase === "idle" ? void 0 : phase,
|
|
304
|
+
disabled,
|
|
305
|
+
"aria-disabled": busy ? true : void 0,
|
|
306
|
+
"aria-busy": loading || busy ? true : void 0,
|
|
307
|
+
style: { ...brandStyle, ...props.style },
|
|
308
|
+
children: reservesWidth ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { "data-gds-button-label-stack": "", children: [
|
|
309
|
+
ghosts.map((ghost, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { "data-gds-button-label-ghost": "", "aria-hidden": "true", children: ghost }, index)),
|
|
310
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { "data-gds-button-label": "", children: visibleLabel })
|
|
311
|
+
] }) : visibleLabel
|
|
312
|
+
}
|
|
313
|
+
),
|
|
314
|
+
reservesWidth ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.VisuallyHidden, { role: "status", "aria-live": "polite", "aria-atomic": "true", children: announcement }) : null
|
|
315
|
+
] });
|
|
316
|
+
}
|
|
317
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
318
|
+
0 && (module.exports = {
|
|
319
|
+
GDS_BUTTON_CONFIRM_WINDOW_MS,
|
|
320
|
+
GDS_BUTTON_FEEDBACK_DURATION_MS,
|
|
321
|
+
GDS_BUTTON_GRADIENT_TEXT_FLOOR,
|
|
322
|
+
GDS_BUTTON_OUTLINE_ACCENT_STROKE_PX,
|
|
323
|
+
GDS_BUTTON_PENDING_DELAY_MS,
|
|
324
|
+
GDS_BUTTON_PENDING_MIN_MS,
|
|
325
|
+
SemanticButton
|
|
326
|
+
});
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
|
+
import { Button, VisuallyHidden } from "@mantine/core";
|
|
5
|
+
import { gdsDevWarnOnce, useGdsTranslation } from "@sovereignsquad/gds-theme";
|
|
6
|
+
import { IconCheck, IconLoader2, IconX } from "@tabler/icons-react";
|
|
7
|
+
import { getSemanticActionLabel, resolveSemanticActionConfig } from "./vocabulary.mjs";
|
|
8
|
+
const GDS_BUTTON_FEEDBACK_DURATION_MS = 2e3;
|
|
9
|
+
const GDS_BUTTON_PENDING_DELAY_MS = 500;
|
|
10
|
+
const GDS_BUTTON_PENDING_MIN_MS = 200;
|
|
11
|
+
const GDS_BUTTON_CONFIRM_WINDOW_MS = 3e3;
|
|
12
|
+
const GDS_BUTTON_GRADIENT_TEXT_FLOOR = { fontSizePx: 14, fontWeight: 600 };
|
|
13
|
+
const GDS_BUTTON_OUTLINE_ACCENT_STROKE_PX = 1.5;
|
|
14
|
+
const brandButtonStyles = {
|
|
15
|
+
primary: {
|
|
16
|
+
background: "var(--gds-brand-primary, var(--gds-vibe-primary, var(--mantine-primary-color-filled)))",
|
|
17
|
+
borderColor: "var(--gds-brand-primary, var(--gds-vibe-primary, var(--mantine-primary-color-filled)))",
|
|
18
|
+
// --gds-text-on-inverse is derived against --gds-bg-inverse only; against
|
|
19
|
+
// --gds-brand-primary it is 1.00:1 in the default dark preset (identical color).
|
|
20
|
+
color: "var(--gds-brand-primary-fg, var(--gds-text-on-inverse, var(--mantine-color-white)))"
|
|
21
|
+
},
|
|
22
|
+
secondary: {
|
|
23
|
+
background: "var(--gds-bg-card, var(--gds-vibe-surface, var(--mantine-color-white)))",
|
|
24
|
+
borderColor: "var(--gds-border-card, var(--gds-vibe-border, var(--mantine-color-gray-3)))",
|
|
25
|
+
color: "var(--gds-brand-primary, var(--gds-vibe-text, var(--mantine-color-dark-7)))"
|
|
26
|
+
},
|
|
27
|
+
accent: {
|
|
28
|
+
background: "var(--gds-brand-accent-action, var(--gds-brand-accent, var(--gds-vibe-accent, var(--mantine-primary-color-filled))))",
|
|
29
|
+
borderColor: "var(--gds-brand-accent-action, var(--gds-brand-accent, var(--gds-vibe-accent, var(--mantine-primary-color-filled))))",
|
|
30
|
+
// 1.66:1 against the gold-athlete dark accent.
|
|
31
|
+
color: "var(--gds-brand-accent-action-fg, var(--gds-text-on-inverse, var(--mantine-color-white)))"
|
|
32
|
+
},
|
|
33
|
+
disabled: {
|
|
34
|
+
background: "var(--gds-control-disabledBg, var(--mantine-color-gray-2))",
|
|
35
|
+
borderColor: "var(--gds-control-disabledBg, var(--mantine-color-gray-2))",
|
|
36
|
+
color: "var(--gds-control-disabledText, var(--mantine-color-gray-6))"
|
|
37
|
+
},
|
|
38
|
+
// `outline-accent` and `gradient` (issue 700) carry no inline paint. A stylesheet
|
|
39
|
+
// `:hover`/`:active` rule cannot override an inline style without `!important`, so their
|
|
40
|
+
// entire resting paint -- and every state layered on top of it -- lives in
|
|
41
|
+
// packages/gds-theme/styles.css, keyed on `data-gds-brand-button`; the component contributes
|
|
42
|
+
// only the attribute.
|
|
43
|
+
"outline-accent": {},
|
|
44
|
+
gradient: {}
|
|
45
|
+
};
|
|
46
|
+
const ICON_SIZE = "1rem";
|
|
47
|
+
function pendingLabel(action, t) {
|
|
48
|
+
switch (action) {
|
|
49
|
+
case "send":
|
|
50
|
+
return t("gds.pending.send", "Sending\u2026");
|
|
51
|
+
case "save":
|
|
52
|
+
return t("gds.pending.save", "Saving\u2026");
|
|
53
|
+
case "copy":
|
|
54
|
+
return t("gds.pending.copy", "Copying\u2026");
|
|
55
|
+
case "delete":
|
|
56
|
+
return t("gds.pending.delete", "Deleting\u2026");
|
|
57
|
+
case "add":
|
|
58
|
+
return t("gds.pending.add", "Adding\u2026");
|
|
59
|
+
case "download":
|
|
60
|
+
return t("gds.pending.download", "Downloading\u2026");
|
|
61
|
+
case "upload":
|
|
62
|
+
return t("gds.pending.upload", "Uploading\u2026");
|
|
63
|
+
case "refresh":
|
|
64
|
+
return t("gds.pending.refresh", "Refreshing\u2026");
|
|
65
|
+
case "complete":
|
|
66
|
+
return t("gds.pending.complete", "Completing\u2026");
|
|
67
|
+
case "submit":
|
|
68
|
+
return t("gds.pending.submit", "Submitting\u2026");
|
|
69
|
+
default:
|
|
70
|
+
return t("gds.pending.working", "Working\u2026");
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function Layer({ motion, after, press, children }) {
|
|
74
|
+
return /* @__PURE__ */ jsx(
|
|
75
|
+
"span",
|
|
76
|
+
{
|
|
77
|
+
"data-gds-motion": motion || press ? "" : void 0,
|
|
78
|
+
"data-gds-button-motion": motion,
|
|
79
|
+
"data-gds-button-motion-after": after,
|
|
80
|
+
"data-gds-button-press": press,
|
|
81
|
+
children
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
function ButtonIcon({ phase, motion, Icon, SuccessIcon, fromRest, pressed }) {
|
|
86
|
+
let layers;
|
|
87
|
+
if (phase === "pending") {
|
|
88
|
+
const pending = motion?.pending ?? "spinner";
|
|
89
|
+
layers = pending === "spinner" ? /* @__PURE__ */ jsx(Layer, { motion: "spin", children: /* @__PURE__ */ jsx(IconLoader2, { size: ICON_SIZE }) }) : /* @__PURE__ */ jsx(Layer, { motion: pending, children: /* @__PURE__ */ jsx(Icon, { size: ICON_SIZE }) });
|
|
90
|
+
} else if (phase === "success") {
|
|
91
|
+
const success = motion?.success;
|
|
92
|
+
if ((success === "fly-off" || success === "turn") && fromRest) {
|
|
93
|
+
layers = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
94
|
+
/* @__PURE__ */ jsx(Layer, { motion: success === "fly-off" ? "fly-off" : "turn-out", children: /* @__PURE__ */ jsx(Icon, { size: ICON_SIZE }) }),
|
|
95
|
+
/* @__PURE__ */ jsx(Layer, { motion: "pop-in", after: "exit", children: /* @__PURE__ */ jsx(IconCheck, { size: ICON_SIZE }) })
|
|
96
|
+
] });
|
|
97
|
+
} else if (success === "fly-off" || success === "turn" || success === "check-pop") {
|
|
98
|
+
layers = /* @__PURE__ */ jsx(Layer, { motion: "pop-in", children: /* @__PURE__ */ jsx(IconCheck, { size: ICON_SIZE }) });
|
|
99
|
+
} else if (success === "check-draw") {
|
|
100
|
+
layers = /* @__PURE__ */ jsx(Layer, { motion: "draw", children: /* @__PURE__ */ jsx(IconCheck, { size: ICON_SIZE }) });
|
|
101
|
+
} else if (success === "draw") {
|
|
102
|
+
layers = /* @__PURE__ */ jsx(Layer, { motion: "draw", children: /* @__PURE__ */ jsx(SuccessIcon, { size: ICON_SIZE }) });
|
|
103
|
+
} else {
|
|
104
|
+
layers = /* @__PURE__ */ jsx(Layer, { motion: "pop", children: /* @__PURE__ */ jsx(SuccessIcon, { size: ICON_SIZE }) });
|
|
105
|
+
}
|
|
106
|
+
} else if (phase === "error") {
|
|
107
|
+
layers = /* @__PURE__ */ jsx(Layer, { children: /* @__PURE__ */ jsx(IconX, { size: ICON_SIZE }) });
|
|
108
|
+
} else {
|
|
109
|
+
layers = /* @__PURE__ */ jsx(Layer, { press: pressed ? motion?.press : void 0, children: /* @__PURE__ */ jsx(Icon, { size: ICON_SIZE }) });
|
|
110
|
+
}
|
|
111
|
+
return /* @__PURE__ */ jsx("span", { "data-gds-button-icon": "", children: layers });
|
|
112
|
+
}
|
|
113
|
+
function SemanticButton({
|
|
114
|
+
action,
|
|
115
|
+
brandVariant,
|
|
116
|
+
loading,
|
|
117
|
+
feedbackState,
|
|
118
|
+
feedbackText,
|
|
119
|
+
onAction,
|
|
120
|
+
prerenderLabelOnly = true,
|
|
121
|
+
vocabularyPacks = [],
|
|
122
|
+
label: labelOverride,
|
|
123
|
+
...props
|
|
124
|
+
}) {
|
|
125
|
+
if (props.children !== void 0) {
|
|
126
|
+
gdsDevWarnOnce(
|
|
127
|
+
"SemanticButton:children",
|
|
128
|
+
"SemanticButton ignores children: its text comes from `action` or the `label` prop. Pass the text as `label`."
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
const { t } = useGdsTranslation();
|
|
132
|
+
const config = resolveSemanticActionConfig(action, vocabularyPacks);
|
|
133
|
+
const motion = config.motion;
|
|
134
|
+
const [mounted, setMounted] = useState(!prerenderLabelOnly);
|
|
135
|
+
const [phase, setPhaseState] = useState("idle");
|
|
136
|
+
const [cycle, setCycle] = useState(0);
|
|
137
|
+
const [fromRest, setFromRest] = useState(true);
|
|
138
|
+
const [presses, setPresses] = useState(0);
|
|
139
|
+
const [pressPhase, setPressPhase] = useState(null);
|
|
140
|
+
const phaseRef = useRef("idle");
|
|
141
|
+
const timers = useRef([]);
|
|
142
|
+
const alive = useRef(true);
|
|
143
|
+
const setPhase = useCallback((next) => {
|
|
144
|
+
phaseRef.current = next;
|
|
145
|
+
setPhaseState(next);
|
|
146
|
+
if (next !== "busy" && next !== "confirm") setPressPhase(null);
|
|
147
|
+
}, []);
|
|
148
|
+
const press = useCallback((during) => {
|
|
149
|
+
setPresses((n) => n + 1);
|
|
150
|
+
setPressPhase(during);
|
|
151
|
+
}, []);
|
|
152
|
+
const clearTimers = useCallback(() => {
|
|
153
|
+
for (const timer of timers.current) clearTimeout(timer);
|
|
154
|
+
timers.current = [];
|
|
155
|
+
}, []);
|
|
156
|
+
const later = useCallback((ms, fn) => {
|
|
157
|
+
timers.current.push(setTimeout(fn, ms));
|
|
158
|
+
}, []);
|
|
159
|
+
useEffect(() => {
|
|
160
|
+
alive.current = true;
|
|
161
|
+
return () => {
|
|
162
|
+
alive.current = false;
|
|
163
|
+
clearTimers();
|
|
164
|
+
};
|
|
165
|
+
}, [clearTimers]);
|
|
166
|
+
useEffect(() => {
|
|
167
|
+
if (prerenderLabelOnly) {
|
|
168
|
+
setMounted(true);
|
|
169
|
+
}
|
|
170
|
+
}, [prerenderLabelOnly]);
|
|
171
|
+
useEffect(() => {
|
|
172
|
+
if (feedbackState) {
|
|
173
|
+
setFromRest(true);
|
|
174
|
+
setCycle((n) => n + 1);
|
|
175
|
+
setPhase(feedbackState);
|
|
176
|
+
const timer = setTimeout(() => setPhase("idle"), GDS_BUTTON_FEEDBACK_DURATION_MS);
|
|
177
|
+
return () => clearTimeout(timer);
|
|
178
|
+
}
|
|
179
|
+
}, [feedbackState, setPhase]);
|
|
180
|
+
const { onClick, ...buttonRest } = props;
|
|
181
|
+
const handleClick = useCallback(async (event) => {
|
|
182
|
+
if (!onAction) {
|
|
183
|
+
press("idle");
|
|
184
|
+
onClick?.(event);
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
const current = phaseRef.current;
|
|
188
|
+
if (current === "busy" || current === "pending") {
|
|
189
|
+
event.preventDefault();
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
clearTimers();
|
|
193
|
+
if (motion?.confirm && current !== "confirm") {
|
|
194
|
+
press("confirm");
|
|
195
|
+
setPhase("confirm");
|
|
196
|
+
later(GDS_BUTTON_CONFIRM_WINDOW_MS, () => setPhase("idle"));
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
onClick?.(event);
|
|
200
|
+
press("busy");
|
|
201
|
+
setCycle((n) => n + 1);
|
|
202
|
+
setPhase("busy");
|
|
203
|
+
let shownAt = 0;
|
|
204
|
+
later(GDS_BUTTON_PENDING_DELAY_MS, () => {
|
|
205
|
+
shownAt = Date.now();
|
|
206
|
+
setPhase("pending");
|
|
207
|
+
});
|
|
208
|
+
let ok = true;
|
|
209
|
+
try {
|
|
210
|
+
await onAction();
|
|
211
|
+
} catch {
|
|
212
|
+
ok = false;
|
|
213
|
+
}
|
|
214
|
+
clearTimers();
|
|
215
|
+
if (shownAt) {
|
|
216
|
+
const remaining = GDS_BUTTON_PENDING_MIN_MS - (Date.now() - shownAt);
|
|
217
|
+
if (remaining > 0) await new Promise((resolve) => setTimeout(resolve, remaining));
|
|
218
|
+
}
|
|
219
|
+
if (!alive.current) return;
|
|
220
|
+
setFromRest(!shownAt);
|
|
221
|
+
setCycle((n) => n + 1);
|
|
222
|
+
setPhase(ok ? "success" : "error");
|
|
223
|
+
later(GDS_BUTTON_FEEDBACK_DURATION_MS, () => setPhase("idle"));
|
|
224
|
+
}, [onAction, onClick, motion?.confirm, clearTimers, later, setPhase, press]);
|
|
225
|
+
const restLabel = labelOverride ?? getSemanticActionLabel(action, t, vocabularyPacks);
|
|
226
|
+
const feedbackConfig = config.feedback ?? { icon: IconCheck, color: "teal", messageId: "gds.feedback.saved" };
|
|
227
|
+
const successLabel = feedbackText || t(feedbackConfig.messageId, "Success");
|
|
228
|
+
const failedLabel = feedbackText || t("gds.feedback.failed", "Failed");
|
|
229
|
+
const errorAnnouncement = feedbackText || t("gds.feedback.error", "Something went wrong");
|
|
230
|
+
const confirmLabel = t("gds.feedback.confirmAgain", "Click again to confirm");
|
|
231
|
+
const workingLabel = pendingLabel(action, t);
|
|
232
|
+
const reservesWidth = Boolean(onAction) || feedbackState !== void 0;
|
|
233
|
+
let color = props.color;
|
|
234
|
+
const brandStyle = brandVariant ? brandButtonStyles[brandVariant] : void 0;
|
|
235
|
+
const disabled = props.disabled || brandVariant === "disabled";
|
|
236
|
+
const showingFeedback = phase === "success" || phase === "error";
|
|
237
|
+
const isStylesheetPaintedBrand = brandVariant === "outline-accent" || brandVariant === "gradient";
|
|
238
|
+
const brandButtonAttr = isStylesheetPaintedBrand && showingFeedback ? void 0 : brandVariant;
|
|
239
|
+
if (!mounted) {
|
|
240
|
+
const { leftSection, style, ...prerenderProps } = buttonRest;
|
|
241
|
+
return /* @__PURE__ */ jsx(Button, { ...prerenderProps, onClick: onAction ? void 0 : onClick, loading, color, "data-gds-brand-button": brandButtonAttr, disabled, "aria-busy": loading ? true : void 0, style: { ...brandStyle, ...style }, children: labelOverride ?? getSemanticActionLabel(action, void 0, vocabularyPacks) });
|
|
242
|
+
}
|
|
243
|
+
let visibleLabel = restLabel;
|
|
244
|
+
let announcement = "";
|
|
245
|
+
if (phase === "success") {
|
|
246
|
+
visibleLabel = successLabel;
|
|
247
|
+
announcement = successLabel;
|
|
248
|
+
color = feedbackConfig.color;
|
|
249
|
+
} else if (phase === "error") {
|
|
250
|
+
visibleLabel = failedLabel;
|
|
251
|
+
announcement = errorAnnouncement;
|
|
252
|
+
color = "red";
|
|
253
|
+
} else if (phase === "pending") {
|
|
254
|
+
visibleLabel = workingLabel;
|
|
255
|
+
announcement = workingLabel;
|
|
256
|
+
} else if (phase === "confirm") {
|
|
257
|
+
visibleLabel = confirmLabel;
|
|
258
|
+
announcement = confirmLabel;
|
|
259
|
+
}
|
|
260
|
+
const ghosts = [restLabel, successLabel, failedLabel];
|
|
261
|
+
if (onAction) ghosts.push(workingLabel);
|
|
262
|
+
if (onAction && motion?.confirm) ghosts.push(confirmLabel);
|
|
263
|
+
const busy = phase === "busy" || phase === "pending";
|
|
264
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
265
|
+
/* @__PURE__ */ jsx(
|
|
266
|
+
Button,
|
|
267
|
+
{
|
|
268
|
+
...buttonRest,
|
|
269
|
+
onClick: handleClick,
|
|
270
|
+
leftSection: /* @__PURE__ */ jsx(ButtonIcon, { phase, motion, Icon: config.icon, SuccessIcon: feedbackConfig.icon, fromRest, pressed: pressPhase === phase }, `${phase}-${cycle}-${pressPhase === phase ? presses : 0}`),
|
|
271
|
+
loading,
|
|
272
|
+
color,
|
|
273
|
+
"data-gds-brand-button": brandButtonAttr,
|
|
274
|
+
"data-gds-button-phase": phase === "idle" ? void 0 : phase,
|
|
275
|
+
disabled,
|
|
276
|
+
"aria-disabled": busy ? true : void 0,
|
|
277
|
+
"aria-busy": loading || busy ? true : void 0,
|
|
278
|
+
style: { ...brandStyle, ...props.style },
|
|
279
|
+
children: reservesWidth ? /* @__PURE__ */ jsxs("span", { "data-gds-button-label-stack": "", children: [
|
|
280
|
+
ghosts.map((ghost, index) => /* @__PURE__ */ jsx("span", { "data-gds-button-label-ghost": "", "aria-hidden": "true", children: ghost }, index)),
|
|
281
|
+
/* @__PURE__ */ jsx("span", { "data-gds-button-label": "", children: visibleLabel })
|
|
282
|
+
] }) : visibleLabel
|
|
283
|
+
}
|
|
284
|
+
),
|
|
285
|
+
reservesWidth ? /* @__PURE__ */ jsx(VisuallyHidden, { role: "status", "aria-live": "polite", "aria-atomic": "true", children: announcement }) : null
|
|
286
|
+
] });
|
|
287
|
+
}
|
|
288
|
+
export {
|
|
289
|
+
GDS_BUTTON_CONFIRM_WINDOW_MS,
|
|
290
|
+
GDS_BUTTON_FEEDBACK_DURATION_MS,
|
|
291
|
+
GDS_BUTTON_GRADIENT_TEXT_FLOOR,
|
|
292
|
+
GDS_BUTTON_OUTLINE_ACCENT_STROKE_PX,
|
|
293
|
+
GDS_BUTTON_PENDING_DELAY_MS,
|
|
294
|
+
GDS_BUTTON_PENDING_MIN_MS,
|
|
295
|
+
SemanticButton
|
|
296
|
+
};
|