@sovereignsquad/gds-core 6.10.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-BqbYrKRY.d.ts → QuickStartCard-CYKhDjvS.d.ts} +805 -161
- package/dist/{QuickStartCard-lE9kMqH8.d.mts → QuickStartCard-DT2GgJrP.d.mts} +805 -161
- 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 -23797
- 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 -26709
- package/dist/index.mjs +192 -3008
- package/dist/locales/ar.js +477 -0
- package/dist/{chunk-7NNKXZFF.mjs → locales/ar.mjs} +3 -5
- 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-YASVRGKJ.mjs → locales/he.mjs} +2 -4
- 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-V5WUGRFL.mjs → locales/it.mjs} +2 -4
- package/dist/locales/ja.js +477 -0
- package/dist/{chunk-XL7MGQJ4.mjs → locales/ja.mjs} +2 -4
- 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-LTNPECWV.mjs +0 -6676
- package/dist/chunk-MO5TLIIB.mjs +0 -8311
- package/dist/chunk-PJR3OJJD.mjs +0 -2468
- package/dist/chunk-SPPTDVJC.mjs +0 -211
- package/dist/chunk-SV3VL3GG.mjs +0 -246
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
const maturityCapabilities = [
|
|
2
|
+
{
|
|
3
|
+
id: "admin-delivery",
|
|
4
|
+
issueNumber: 240,
|
|
5
|
+
title: "Admin delivery contracts",
|
|
6
|
+
status: "production-ready",
|
|
7
|
+
priorityOrder: 1,
|
|
8
|
+
benefit: "Product teams can build CRUD, analytics, and resource-management surfaces without page-local form/table assembly.",
|
|
9
|
+
packageLanes: ["@sovereignsquad/gds-admin", "@sovereignsquad/gds-core"],
|
|
10
|
+
primaryContracts: ["AdminCrudForm", "AdminDataTable", "AdminAnalyticsTable", "AdminResourceManager", "DataToolbar", "StateBlock"],
|
|
11
|
+
runtimeFlow: ["route loads records", "GDS renders loading/empty/error/ready state", "operator edits or sorts", "consumer action executes", "GDS exposes completion/retry state"],
|
|
12
|
+
uxStates: ["loading", "empty", "error", "ready", "refreshing", "dirty", "readonly", "permission-limited"],
|
|
13
|
+
accessibility: ["scoped table headers", "aria-sort for sortable columns", "labeled controls", "aria-invalid on field errors", "keyboard reachable action rows"],
|
|
14
|
+
observability: ["submit", "submit_success", "submit_error", "sort_change", "retry", "destructive_confirmed"],
|
|
15
|
+
retriesAndTimeouts: "Retry callbacks remain explicit and app-owned; GDS keeps failed state visible and preserves recovery actions.",
|
|
16
|
+
rollback: "Adopt one admin route at a time; exports are additive and previous local screens can stay pinned while migrating.",
|
|
17
|
+
testing: ["admin component render states", "field validation labels", "sortable header semantics", "resource empty/error recovery"],
|
|
18
|
+
documentation: ["API_REFERENCE.md", "USER_GUIDE.md", "GitHub Pages /maturity"],
|
|
19
|
+
edgeCases: ["no rows", "permission-limited rows", "failed delete after confirmation", "readonly form with dirty data", "localized long labels"],
|
|
20
|
+
operationalBehavior: "Consumers own persistence and authorization; GDS owns consistent presentation, states, actions, and accessibility expectations."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: "runtime-feedback",
|
|
24
|
+
issueNumber: 241,
|
|
25
|
+
title: "Runtime feedback API",
|
|
26
|
+
status: "production-ready",
|
|
27
|
+
priorityOrder: 2,
|
|
28
|
+
benefit: "Native alerts, browser confirms, and ad hoc overlays can be replaced with one accessible feedback runtime.",
|
|
29
|
+
packageLanes: ["@sovereignsquad/gds-core", "@sovereignsquad/gds-admin"],
|
|
30
|
+
primaryContracts: ["GdsConfirmProvider", "useGdsConfirm", "GdsToastProvider", "useGdsToasts", "AdminModal", "AdminDetailDrawer", "CommandPalette"],
|
|
31
|
+
runtimeFlow: ["request feedback surface", "trap or announce state", "operator confirms/cancels/retries", "consumer action resolves", "GDS closes or persists recovery state"],
|
|
32
|
+
uxStates: ["closed", "open", "submitting", "success", "error", "retryable", "cancelled"],
|
|
33
|
+
accessibility: ["focus trap", "return focus", "escape behavior", "screen-reader status announcement", "non-auto-dismissed errors"],
|
|
34
|
+
observability: ["open", "confirm", "cancel", "close", "timeout", "retry", "action_complete"],
|
|
35
|
+
retriesAndTimeouts: "Recoverable failures keep retry actions visible; long-running actions should set consumer timeouts and report timeout state through the feedback API.",
|
|
36
|
+
rollback: "Consumers can keep old wrappers route-by-route while replacing native dialogs with GDS providers.",
|
|
37
|
+
testing: ["provider hook behavior", "retry action rendering", "modal/drawer focus behavior", "confirmation cancellation"],
|
|
38
|
+
documentation: ["feedback runtime guide", "alert/confirm replacement guidance", "API_REFERENCE.md"],
|
|
39
|
+
edgeCases: ["nested overlay attempt", "missing provider", "action throws", "operator cancels", "timeout after confirmation"],
|
|
40
|
+
operationalBehavior: "Feedback surfaces make irreversible decisions and async failures visible instead of silently failing or relying on browser-native dialogs."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: "foundation-surfaces",
|
|
44
|
+
issueNumber: 242,
|
|
45
|
+
title: "Foundation surface governance",
|
|
46
|
+
status: "production-ready",
|
|
47
|
+
priorityOrder: 3,
|
|
48
|
+
benefit: "Teams can compose governed layouts, token-safe surfaces, and semantic icons without raw inline styles or direct icon imports.",
|
|
49
|
+
packageLanes: ["@sovereignsquad/gds-core", "@sovereignsquad/gds-theme"],
|
|
50
|
+
primaryContracts: ["LayoutBlocks", "getGdsLayoutTemplates", "renderGdsLayout", "validateGdsLayout", "GdsIcons", "GdsIcon"],
|
|
51
|
+
runtimeFlow: ["load schema or JSX composition", "validate known block types", "render token-backed primitives", "surface diagnostics for invalid configuration"],
|
|
52
|
+
uxStates: ["valid", "invalid configuration", "fallback", "responsive", "reduced-motion"],
|
|
53
|
+
accessibility: ["icon-only controls require labels", "reading order follows DOM order", "focus remains visible", "responsive layout preserves hierarchy"],
|
|
54
|
+
observability: ["layout_validation_error", "unsupported_block", "icon_missing"],
|
|
55
|
+
retriesAndTimeouts: "No network retry is required by the primitive; consumers retry schema fetches and then re-run validation.",
|
|
56
|
+
rollback: "Static JSX and local layouts can be migrated to block templates incrementally because block APIs are additive.",
|
|
57
|
+
testing: ["layout validation", "unsafe string rejection", "template rendering", "icon registry coverage"],
|
|
58
|
+
documentation: ["layout primitive guide", "no-inline-style replacement path", "icon registry guide"],
|
|
59
|
+
edgeCases: ["unsupported blocks", "unsafe script strings", "missing props", "RTL layout", "long localized text"],
|
|
60
|
+
operationalBehavior: "Invalid layout configuration produces diagnostics rather than unsafe rendering."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: "global-readiness",
|
|
64
|
+
issueNumber: 243,
|
|
65
|
+
title: "Global readiness and accessibility evidence",
|
|
66
|
+
status: "operational-contract",
|
|
67
|
+
priorityOrder: 4,
|
|
68
|
+
benefit: "Developers and product owners can verify localization, RTL behavior, text expansion, and accessibility evidence for shared GDS surfaces.",
|
|
69
|
+
packageLanes: ["@sovereignsquad/gds-theme", "@sovereignsquad/gds-core"],
|
|
70
|
+
primaryContracts: ["GdsProvider", "getGdsMessages", "ReferenceLocaleNotice", "EvidencePanel", "locale coverage verification"],
|
|
71
|
+
runtimeFlow: ["resolve locale", "set provider messages and direction", "render localized route copy", "show evidence or fallback status", "fail release checks on missing coverage"],
|
|
72
|
+
uxStates: ["localized", "fallback", "RTL", "missing key", "evidence available"],
|
|
73
|
+
accessibility: ["WCAG 2.2 AA target", "keyboard operation", "screen-reader compatible state copy", "visible focus", "non-color-only state"],
|
|
74
|
+
observability: ["missing_locale_key", "unsupported_locale_route", "accessibility_evidence_missing"],
|
|
75
|
+
retriesAndTimeouts: "Runtime translation fetches are app-owned; GDS provides deterministic fallback copy and verification scripts.",
|
|
76
|
+
rollback: "Locale additions are additive; consumers can pin older versions if a translation regression ships.",
|
|
77
|
+
testing: ["message parity", "route coverage", "RTL provider behavior", "evidence registry coverage"],
|
|
78
|
+
documentation: ["supported locale guide", "accessibility evidence guide", "localized GitHub Pages benefits"],
|
|
79
|
+
edgeCases: ["German text expansion", "Arabic/Hebrew RTL", "mixed LTR data in RTL shell", "missing translation key"],
|
|
80
|
+
operationalBehavior: "Release gates prevent docs and package copy from drifting across supported locales."
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: "adoption-governance",
|
|
84
|
+
issueNumber: 244,
|
|
85
|
+
title: "Adoption governance tooling",
|
|
86
|
+
status: "adoption-tooling",
|
|
87
|
+
priorityOrder: 5,
|
|
88
|
+
benefit: "Consumer teams can score adoption quality, track exceptions, and migrate away from banned UI paths with CI evidence.",
|
|
89
|
+
packageLanes: ["@sovereignsquad/gds-compliance", "@sovereignsquad/gds-eslint-config"],
|
|
90
|
+
primaryContracts: ["gds-compliance", "gds-adoption.json", "board audit", "codemod recipes", "exception registry"],
|
|
91
|
+
runtimeFlow: ["scan consumer repo", "classify findings", "match approved exceptions", "compute release risk", "fail or warn according to mode"],
|
|
92
|
+
uxStates: ["pass", "warn", "fail", "approved exception", "expired exception"],
|
|
93
|
+
accessibility: ["reports readable as plain text", "findings not dependent on color alone", "replacement paths name accessible GDS contracts"],
|
|
94
|
+
observability: ["adoption_score", "violation_count", "expired_exception", "release_blocker"],
|
|
95
|
+
retriesAndTimeouts: "File scanning is local; GitHub board audits use bounded API retries for transient rate limits.",
|
|
96
|
+
rollback: "Consumers can run warn mode before strict enforcement and pin prior package versions during migration.",
|
|
97
|
+
testing: ["scanner fixtures", "exception matching", "codemod verification", "strict board audit"],
|
|
98
|
+
documentation: ["COMPLIANCE_TOOLKIT.md", "ADOPTION_AND_MIGRATION_PLAYBOOK.md", "exception lifecycle guide"],
|
|
99
|
+
edgeCases: ["generated files", "approved runtime exception", "nested workspaces", "raw HTML in documentation examples"],
|
|
100
|
+
operationalBehavior: "The tooling distinguishes approved temporary exceptions from true violations and makes release blockers visible."
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: "theme-operations",
|
|
104
|
+
issueNumber: 245,
|
|
105
|
+
title: "Theme operations contracts",
|
|
106
|
+
status: "operational-contract",
|
|
107
|
+
priorityOrder: 6,
|
|
108
|
+
benefit: "Token authoring, high-contrast readiness, motion, and design handoff become release-managed contracts rather than informal style decisions.",
|
|
109
|
+
packageLanes: ["@sovereignsquad/gds-theme", "@sovereignsquad/gds-core"],
|
|
110
|
+
primaryContracts: ["resolveGdsThemePreset", "getGdsVibeThemes", "withGdsMotion", "getGdsFontLanes", "ReferenceThemeExplorer"],
|
|
111
|
+
runtimeFlow: ["resolve theme lane", "apply token/font metadata", "respect color scheme and reduced motion", "validate docs and release gates"],
|
|
112
|
+
uxStates: ["light", "dark", "high contrast ready", "reduced motion", "invalid brand contrast"],
|
|
113
|
+
accessibility: ["contrast validation policy", "forced-colors guidance", "prefers-reduced-motion support", "locale-safe font fallback"],
|
|
114
|
+
observability: ["theme_invalid", "contrast_warning", "motion_disabled", "font_lane_fallback"],
|
|
115
|
+
retriesAndTimeouts: "Theme validation is rerun after token edits; no render-time retry loop is required.",
|
|
116
|
+
rollback: "Invalid themes should fail before publication; consumers can pin prior theme packages.",
|
|
117
|
+
testing: ["theme preset coverage", "font lane coverage", "motion helper regression", "theme governance verification"],
|
|
118
|
+
documentation: ["THEME_GOVERNANCE.md", "CLI_AND_LLD.md", "GitHub Pages /themes"],
|
|
119
|
+
edgeCases: ["low-contrast brand color", "missing glyph coverage", "dark/high-contrast mismatch", "OS reduced-motion preference"],
|
|
120
|
+
operationalBehavior: "Theme changes are treated as governed release artifacts with validation and documented handoff metadata."
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: "product-system",
|
|
124
|
+
issueNumber: 246,
|
|
125
|
+
title: "Product system delivery contract",
|
|
126
|
+
status: "production-ready",
|
|
127
|
+
priorityOrder: 7,
|
|
128
|
+
benefit: "Product owners can evaluate shipped GDS value by capability, benefit, DoD, observability, docs, and adoption path in every supported language.",
|
|
129
|
+
packageLanes: ["@sovereignsquad/gds", "@sovereignsquad/gds-core"],
|
|
130
|
+
primaryContracts: ["getGdsRecommendedMaturityCapabilities", "getGdsMaturityCapabilities", "DocsPageShell", "SimpleDataTable", "FeatureBand"],
|
|
131
|
+
runtimeFlow: ["read static capability registry", "render localized benefits", "link issues and API contracts", "verify docs coverage", "publish npm release"],
|
|
132
|
+
uxStates: ["documented", "localized", "verified", "published", "closed"],
|
|
133
|
+
accessibility: ["semantic docs headings", "accessible tables", "RTL-safe localized copy", "keyboard reachable links"],
|
|
134
|
+
observability: ["capability_viewed", "docs_gap_found", "release_verified"],
|
|
135
|
+
retriesAndTimeouts: "Publication verification uses bounded registry polling; docs routes are static and do not require runtime retries.",
|
|
136
|
+
rollback: "Docs and registry are additive; package consumers can pin the previous npm version.",
|
|
137
|
+
testing: ["route locale coverage", "API docs coverage", "reference build", "release verification"],
|
|
138
|
+
documentation: ["README.md", "API_REFERENCE.md", "USER_GUIDE.md", "GitHub Pages /maturity"],
|
|
139
|
+
edgeCases: ["unsupported locale fallback", "API listed but not exported", "out-of-date issue status", "registry publication delay"],
|
|
140
|
+
operationalBehavior: "The capability registry is the shared product/developer contract for the seven recommended maturity investments."
|
|
141
|
+
}
|
|
142
|
+
];
|
|
143
|
+
function cloneCapability(capability) {
|
|
144
|
+
return {
|
|
145
|
+
...capability,
|
|
146
|
+
packageLanes: [...capability.packageLanes],
|
|
147
|
+
primaryContracts: [...capability.primaryContracts],
|
|
148
|
+
runtimeFlow: [...capability.runtimeFlow],
|
|
149
|
+
uxStates: [...capability.uxStates],
|
|
150
|
+
accessibility: [...capability.accessibility],
|
|
151
|
+
observability: [...capability.observability],
|
|
152
|
+
testing: [...capability.testing],
|
|
153
|
+
documentation: [...capability.documentation],
|
|
154
|
+
edgeCases: [...capability.edgeCases]
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
function getGdsMaturityCapabilities() {
|
|
158
|
+
return maturityCapabilities.map(cloneCapability);
|
|
159
|
+
}
|
|
160
|
+
function getGdsRecommendedMaturityCapabilities() {
|
|
161
|
+
return getGdsMaturityCapabilities().sort((a, b) => a.priorityOrder - b.priorityOrder);
|
|
162
|
+
}
|
|
163
|
+
function getGdsMaturityCapability(id) {
|
|
164
|
+
const capability = maturityCapabilities.find((entry) => entry.id === id);
|
|
165
|
+
return capability ? cloneCapability(capability) : void 0;
|
|
166
|
+
}
|
|
167
|
+
function getGdsMaturitySummary() {
|
|
168
|
+
return maturityCapabilities.reduce((summary, capability) => {
|
|
169
|
+
summary.total += 1;
|
|
170
|
+
summary[capability.status] += 1;
|
|
171
|
+
return summary;
|
|
172
|
+
}, {
|
|
173
|
+
total: 0,
|
|
174
|
+
"production-ready": 0,
|
|
175
|
+
"adoption-tooling": 0,
|
|
176
|
+
"operational-contract": 0
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
export {
|
|
180
|
+
getGdsMaturityCapabilities,
|
|
181
|
+
getGdsMaturityCapability,
|
|
182
|
+
getGdsMaturitySummary,
|
|
183
|
+
getGdsRecommendedMaturityCapabilities
|
|
184
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var MeaningBadge_exports = {};
|
|
20
|
+
__export(MeaningBadge_exports, {
|
|
21
|
+
MeaningBadge: () => MeaningBadge
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(MeaningBadge_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_core = require("@mantine/core");
|
|
26
|
+
var import_icons = require("./icons");
|
|
27
|
+
const meaningTokens = {
|
|
28
|
+
attention: {
|
|
29
|
+
bg: "var(--gds-brand-accent, var(--mantine-color-orange-5))",
|
|
30
|
+
fg: "var(--gds-brand-accent-fg, var(--gds-text-on-inverse, var(--mantine-color-white)))"
|
|
31
|
+
},
|
|
32
|
+
validation: {
|
|
33
|
+
bg: "var(--gds-badge-solid-success, var(--gds-state-success, var(--mantine-color-teal-6)))",
|
|
34
|
+
fg: "var(--gds-badge-solid-success-fg, var(--gds-text-on-inverse, var(--mantine-color-white)))"
|
|
35
|
+
},
|
|
36
|
+
info: {
|
|
37
|
+
bg: "var(--gds-bg-info-tag, #f1ece4)",
|
|
38
|
+
fg: "var(--gds-bg-info-tag-fg, var(--gds-text-primary, var(--mantine-color-dark-7)))"
|
|
39
|
+
},
|
|
40
|
+
urgency: {
|
|
41
|
+
bg: "var(--gds-brand-accent-tint, #f3ded5)",
|
|
42
|
+
fg: "var(--gds-brand-accent-tint-fg, var(--gds-text-primary, var(--mantine-color-dark-7)))"
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
function MeaningBadge({ variant, label, icon, style, ...props }) {
|
|
46
|
+
if (!label) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
const tokens = meaningTokens[variant] ?? meaningTokens.info;
|
|
50
|
+
const leftSection = typeof icon === "string" && (0, import_icons.isGdsIconKey)(icon) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.GdsIcon, { icon, size: "xs" }) : icon;
|
|
51
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
52
|
+
import_core.Badge,
|
|
53
|
+
{
|
|
54
|
+
variant: "filled",
|
|
55
|
+
leftSection,
|
|
56
|
+
...props,
|
|
57
|
+
style: { backgroundColor: tokens.bg, color: tokens.fg, ...style },
|
|
58
|
+
children: label
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
63
|
+
0 && (module.exports = {
|
|
64
|
+
MeaningBadge
|
|
65
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Badge } from "@mantine/core";
|
|
3
|
+
import { GdsIcon, isGdsIconKey } from "./icons.mjs";
|
|
4
|
+
const meaningTokens = {
|
|
5
|
+
attention: {
|
|
6
|
+
bg: "var(--gds-brand-accent, var(--mantine-color-orange-5))",
|
|
7
|
+
fg: "var(--gds-brand-accent-fg, var(--gds-text-on-inverse, var(--mantine-color-white)))"
|
|
8
|
+
},
|
|
9
|
+
validation: {
|
|
10
|
+
bg: "var(--gds-badge-solid-success, var(--gds-state-success, var(--mantine-color-teal-6)))",
|
|
11
|
+
fg: "var(--gds-badge-solid-success-fg, var(--gds-text-on-inverse, var(--mantine-color-white)))"
|
|
12
|
+
},
|
|
13
|
+
info: {
|
|
14
|
+
bg: "var(--gds-bg-info-tag, #f1ece4)",
|
|
15
|
+
fg: "var(--gds-bg-info-tag-fg, var(--gds-text-primary, var(--mantine-color-dark-7)))"
|
|
16
|
+
},
|
|
17
|
+
urgency: {
|
|
18
|
+
bg: "var(--gds-brand-accent-tint, #f3ded5)",
|
|
19
|
+
fg: "var(--gds-brand-accent-tint-fg, var(--gds-text-primary, var(--mantine-color-dark-7)))"
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
function MeaningBadge({ variant, label, icon, style, ...props }) {
|
|
23
|
+
if (!label) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
const tokens = meaningTokens[variant] ?? meaningTokens.info;
|
|
27
|
+
const leftSection = typeof icon === "string" && isGdsIconKey(icon) ? /* @__PURE__ */ jsx(GdsIcon, { icon, size: "xs" }) : icon;
|
|
28
|
+
return /* @__PURE__ */ jsx(
|
|
29
|
+
Badge,
|
|
30
|
+
{
|
|
31
|
+
variant: "filled",
|
|
32
|
+
leftSection,
|
|
33
|
+
...props,
|
|
34
|
+
style: { backgroundColor: tokens.bg, color: tokens.fg, ...style },
|
|
35
|
+
children: label
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
MeaningBadge
|
|
41
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var MediaCard_exports = {};
|
|
20
|
+
__export(MediaCard_exports, {
|
|
21
|
+
MediaCard: () => MediaCard
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(MediaCard_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_core = require("@mantine/core");
|
|
26
|
+
var import_icons = require("./icons");
|
|
27
|
+
var import_CardContracts = require("./CardContracts");
|
|
28
|
+
function MediaCard({
|
|
29
|
+
title,
|
|
30
|
+
image,
|
|
31
|
+
description,
|
|
32
|
+
status,
|
|
33
|
+
overlay,
|
|
34
|
+
actions = [],
|
|
35
|
+
size = "md",
|
|
36
|
+
density = "comfortable",
|
|
37
|
+
variant = "media-top"
|
|
38
|
+
}) {
|
|
39
|
+
const EyeIcon = import_icons.GdsIcons.Eye;
|
|
40
|
+
const contract = (0, import_CardContracts.resolveGdsCardContract)({ size, density, variant });
|
|
41
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Card, { withBorder: true, radius: "lg", padding: contract.padding, ...contract.dataAttributes, children: [
|
|
42
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Card.Section, { pos: "relative", children: [
|
|
43
|
+
image,
|
|
44
|
+
overlay ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { position: "absolute", inset: 12, display: "flex", justifyContent: "flex-end", alignItems: "flex-start" }, children: overlay }) : null
|
|
45
|
+
] }),
|
|
46
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: contract.gap, mt: contract.gap, children: [
|
|
47
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Group, { justify: "space-between", align: "flex-start", children: [
|
|
48
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: 4, children: [
|
|
49
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Title, { order: contract.titleOrder, children: title }),
|
|
50
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { size: "sm", c: "dimmed", lineClamp: contract.descriptionClamp, children: description }) : null
|
|
51
|
+
] }),
|
|
52
|
+
status ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Badge, { variant: "light", children: status }) : null
|
|
53
|
+
] }),
|
|
54
|
+
actions.length ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Group, { justify: "flex-end", gap: "xs", children: actions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.ActionIcon, { variant: "light", "aria-label": action.label, onClick: action.onClick, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EyeIcon, { size: "1rem" }) }, action.label)) }) : null
|
|
55
|
+
] })
|
|
56
|
+
] });
|
|
57
|
+
}
|
|
58
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
59
|
+
0 && (module.exports = {
|
|
60
|
+
MediaCard
|
|
61
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ActionIcon, Badge, Card, Group, Stack, Text, Title } from "@mantine/core";
|
|
3
|
+
import { GdsIcons } from "./icons.mjs";
|
|
4
|
+
import { resolveGdsCardContract } from "./CardContracts.mjs";
|
|
5
|
+
function MediaCard({
|
|
6
|
+
title,
|
|
7
|
+
image,
|
|
8
|
+
description,
|
|
9
|
+
status,
|
|
10
|
+
overlay,
|
|
11
|
+
actions = [],
|
|
12
|
+
size = "md",
|
|
13
|
+
density = "comfortable",
|
|
14
|
+
variant = "media-top"
|
|
15
|
+
}) {
|
|
16
|
+
const EyeIcon = GdsIcons.Eye;
|
|
17
|
+
const contract = resolveGdsCardContract({ size, density, variant });
|
|
18
|
+
return /* @__PURE__ */ jsxs(Card, { withBorder: true, radius: "lg", padding: contract.padding, ...contract.dataAttributes, children: [
|
|
19
|
+
/* @__PURE__ */ jsxs(Card.Section, { pos: "relative", children: [
|
|
20
|
+
image,
|
|
21
|
+
overlay ? /* @__PURE__ */ jsx("div", { style: { position: "absolute", inset: 12, display: "flex", justifyContent: "flex-end", alignItems: "flex-start" }, children: overlay }) : null
|
|
22
|
+
] }),
|
|
23
|
+
/* @__PURE__ */ jsxs(Stack, { gap: contract.gap, mt: contract.gap, children: [
|
|
24
|
+
/* @__PURE__ */ jsxs(Group, { justify: "space-between", align: "flex-start", children: [
|
|
25
|
+
/* @__PURE__ */ jsxs(Stack, { gap: 4, children: [
|
|
26
|
+
/* @__PURE__ */ jsx(Title, { order: contract.titleOrder, children: title }),
|
|
27
|
+
description ? /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", lineClamp: contract.descriptionClamp, children: description }) : null
|
|
28
|
+
] }),
|
|
29
|
+
status ? /* @__PURE__ */ jsx(Badge, { variant: "light", children: status }) : null
|
|
30
|
+
] }),
|
|
31
|
+
actions.length ? /* @__PURE__ */ jsx(Group, { justify: "flex-end", gap: "xs", children: actions.map((action) => /* @__PURE__ */ jsx(ActionIcon, { variant: "light", "aria-label": action.label, onClick: action.onClick, children: /* @__PURE__ */ jsx(EyeIcon, { size: "1rem" }) }, action.label)) }) : null
|
|
32
|
+
] })
|
|
33
|
+
] });
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
MediaCard
|
|
37
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var MediaField_exports = {};
|
|
20
|
+
__export(MediaField_exports, {
|
|
21
|
+
MediaField: () => MediaField
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(MediaField_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_core = require("@mantine/core");
|
|
26
|
+
var import_FormField = require("./FormField");
|
|
27
|
+
const stateLabels = {
|
|
28
|
+
empty: { label: "Empty", color: "gray" },
|
|
29
|
+
"drag-active": { label: "Drop to select", color: "violet" },
|
|
30
|
+
selected: { label: "Selected", color: "blue" },
|
|
31
|
+
"preview-loading": { label: "Preview loading", color: "violet" },
|
|
32
|
+
saved: { label: "Saved", color: "teal" },
|
|
33
|
+
invalid: { label: "Needs attention", color: "red" },
|
|
34
|
+
uploading: { label: "Uploading", color: "violet" },
|
|
35
|
+
"upload-failed": { label: "Upload failed", color: "red" },
|
|
36
|
+
"unsupported-type": { label: "Unsupported type", color: "red" },
|
|
37
|
+
"too-large": { label: "Too large", color: "red" },
|
|
38
|
+
removed: { label: "Removed", color: "gray" },
|
|
39
|
+
readonly: { label: "Read only", color: "gray" }
|
|
40
|
+
};
|
|
41
|
+
function MediaField({
|
|
42
|
+
label,
|
|
43
|
+
description,
|
|
44
|
+
value,
|
|
45
|
+
preview,
|
|
46
|
+
uploadControl,
|
|
47
|
+
urlInput,
|
|
48
|
+
helpText,
|
|
49
|
+
policyText,
|
|
50
|
+
error,
|
|
51
|
+
retryAction,
|
|
52
|
+
replaceAction,
|
|
53
|
+
onRemove,
|
|
54
|
+
onReset,
|
|
55
|
+
removeAction,
|
|
56
|
+
resetAction,
|
|
57
|
+
statusAction,
|
|
58
|
+
acceptedTypes,
|
|
59
|
+
maxSize,
|
|
60
|
+
progress,
|
|
61
|
+
readonly = false,
|
|
62
|
+
state = "empty",
|
|
63
|
+
mode = "stacked"
|
|
64
|
+
}) {
|
|
65
|
+
const resolvedState = readonly ? "readonly" : state;
|
|
66
|
+
const stateBadge = stateLabels[resolvedState];
|
|
67
|
+
const resolvedRemoveAction = removeAction ?? (!readonly && onRemove ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Button, { type: "button", variant: "light", color: "red", onClick: onRemove, children: "Remove" }) : null);
|
|
68
|
+
const resolvedResetAction = resetAction ?? (!readonly && onReset ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Button, { type: "button", variant: "default", onClick: onReset, children: "Reset" }) : null);
|
|
69
|
+
const boundedProgress = typeof progress === "number" ? Math.max(0, Math.min(100, progress)) : void 0;
|
|
70
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
71
|
+
import_FormField.FormField,
|
|
72
|
+
{
|
|
73
|
+
label,
|
|
74
|
+
description,
|
|
75
|
+
error,
|
|
76
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Paper, { withBorder: true, radius: "xl", p: "lg", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: "md", children: [
|
|
77
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Group, { justify: "flex-end", align: "center", gap: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Group, { gap: "xs", justify: "flex-end", children: [
|
|
78
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Badge, { variant: "light", color: stateBadge.color, children: stateBadge.label }),
|
|
79
|
+
statusAction
|
|
80
|
+
] }) }),
|
|
81
|
+
preview ? preview : null,
|
|
82
|
+
typeof boundedProgress === "number" ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: 4, children: [
|
|
83
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Progress, { value: boundedProgress, "aria-label": "Upload progress" }),
|
|
84
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Text, { size: "xs", c: "dimmed", children: [
|
|
85
|
+
boundedProgress,
|
|
86
|
+
"% complete"
|
|
87
|
+
] })
|
|
88
|
+
] }) : null,
|
|
89
|
+
(uploadControl || urlInput) && !readonly ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
90
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Divider, {}),
|
|
91
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { gap: "sm", style: mode === "split" ? { display: "grid", gridTemplateColumns: "repeat(auto-fit, minmax(220px, 1fr))" } : void 0, children: [
|
|
92
|
+
uploadControl,
|
|
93
|
+
urlInput
|
|
94
|
+
] })
|
|
95
|
+
] }) : null,
|
|
96
|
+
value ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { size: "sm", c: "dimmed", style: { wordBreak: "break-all" }, children: value }) : null,
|
|
97
|
+
helpText ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { size: "sm", c: "dimmed", children: helpText }) : null,
|
|
98
|
+
acceptedTypes || maxSize ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Group, { gap: "xs", wrap: "wrap", children: [
|
|
99
|
+
acceptedTypes ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Badge, { variant: "outline", color: "gray", children: acceptedTypes }) : null,
|
|
100
|
+
maxSize ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Badge, { variant: "outline", color: "gray", children: maxSize }) : null
|
|
101
|
+
] }) : null,
|
|
102
|
+
policyText ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { size: "sm", c: error ? "red.7" : "dimmed", children: policyText }) : null,
|
|
103
|
+
typeof error !== "string" && error ? error : null,
|
|
104
|
+
replaceAction || resolvedRemoveAction || resolvedResetAction || retryAction ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Group, { gap: "sm", children: [
|
|
105
|
+
replaceAction,
|
|
106
|
+
resolvedResetAction,
|
|
107
|
+
retryAction,
|
|
108
|
+
resolvedRemoveAction
|
|
109
|
+
] }) : null
|
|
110
|
+
] }) })
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
115
|
+
0 && (module.exports = {
|
|
116
|
+
MediaField
|
|
117
|
+
});
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Badge, Button, Divider, Group, Paper, Progress, Stack, Text } from "@mantine/core";
|
|
3
|
+
import { FormField } from "./FormField.mjs";
|
|
4
|
+
const stateLabels = {
|
|
5
|
+
empty: { label: "Empty", color: "gray" },
|
|
6
|
+
"drag-active": { label: "Drop to select", color: "violet" },
|
|
7
|
+
selected: { label: "Selected", color: "blue" },
|
|
8
|
+
"preview-loading": { label: "Preview loading", color: "violet" },
|
|
9
|
+
saved: { label: "Saved", color: "teal" },
|
|
10
|
+
invalid: { label: "Needs attention", color: "red" },
|
|
11
|
+
uploading: { label: "Uploading", color: "violet" },
|
|
12
|
+
"upload-failed": { label: "Upload failed", color: "red" },
|
|
13
|
+
"unsupported-type": { label: "Unsupported type", color: "red" },
|
|
14
|
+
"too-large": { label: "Too large", color: "red" },
|
|
15
|
+
removed: { label: "Removed", color: "gray" },
|
|
16
|
+
readonly: { label: "Read only", color: "gray" }
|
|
17
|
+
};
|
|
18
|
+
function MediaField({
|
|
19
|
+
label,
|
|
20
|
+
description,
|
|
21
|
+
value,
|
|
22
|
+
preview,
|
|
23
|
+
uploadControl,
|
|
24
|
+
urlInput,
|
|
25
|
+
helpText,
|
|
26
|
+
policyText,
|
|
27
|
+
error,
|
|
28
|
+
retryAction,
|
|
29
|
+
replaceAction,
|
|
30
|
+
onRemove,
|
|
31
|
+
onReset,
|
|
32
|
+
removeAction,
|
|
33
|
+
resetAction,
|
|
34
|
+
statusAction,
|
|
35
|
+
acceptedTypes,
|
|
36
|
+
maxSize,
|
|
37
|
+
progress,
|
|
38
|
+
readonly = false,
|
|
39
|
+
state = "empty",
|
|
40
|
+
mode = "stacked"
|
|
41
|
+
}) {
|
|
42
|
+
const resolvedState = readonly ? "readonly" : state;
|
|
43
|
+
const stateBadge = stateLabels[resolvedState];
|
|
44
|
+
const resolvedRemoveAction = removeAction ?? (!readonly && onRemove ? /* @__PURE__ */ jsx(Button, { type: "button", variant: "light", color: "red", onClick: onRemove, children: "Remove" }) : null);
|
|
45
|
+
const resolvedResetAction = resetAction ?? (!readonly && onReset ? /* @__PURE__ */ jsx(Button, { type: "button", variant: "default", onClick: onReset, children: "Reset" }) : null);
|
|
46
|
+
const boundedProgress = typeof progress === "number" ? Math.max(0, Math.min(100, progress)) : void 0;
|
|
47
|
+
return /* @__PURE__ */ jsx(
|
|
48
|
+
FormField,
|
|
49
|
+
{
|
|
50
|
+
label,
|
|
51
|
+
description,
|
|
52
|
+
error,
|
|
53
|
+
children: /* @__PURE__ */ jsx(Paper, { withBorder: true, radius: "xl", p: "lg", children: /* @__PURE__ */ jsxs(Stack, { gap: "md", children: [
|
|
54
|
+
/* @__PURE__ */ jsx(Group, { justify: "flex-end", align: "center", gap: "sm", children: /* @__PURE__ */ jsxs(Group, { gap: "xs", justify: "flex-end", children: [
|
|
55
|
+
/* @__PURE__ */ jsx(Badge, { variant: "light", color: stateBadge.color, children: stateBadge.label }),
|
|
56
|
+
statusAction
|
|
57
|
+
] }) }),
|
|
58
|
+
preview ? preview : null,
|
|
59
|
+
typeof boundedProgress === "number" ? /* @__PURE__ */ jsxs(Stack, { gap: 4, children: [
|
|
60
|
+
/* @__PURE__ */ jsx(Progress, { value: boundedProgress, "aria-label": "Upload progress" }),
|
|
61
|
+
/* @__PURE__ */ jsxs(Text, { size: "xs", c: "dimmed", children: [
|
|
62
|
+
boundedProgress,
|
|
63
|
+
"% complete"
|
|
64
|
+
] })
|
|
65
|
+
] }) : null,
|
|
66
|
+
(uploadControl || urlInput) && !readonly ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
67
|
+
/* @__PURE__ */ jsx(Divider, {}),
|
|
68
|
+
/* @__PURE__ */ jsxs(Stack, { gap: "sm", style: mode === "split" ? { display: "grid", gridTemplateColumns: "repeat(auto-fit, minmax(220px, 1fr))" } : void 0, children: [
|
|
69
|
+
uploadControl,
|
|
70
|
+
urlInput
|
|
71
|
+
] })
|
|
72
|
+
] }) : null,
|
|
73
|
+
value ? /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", style: { wordBreak: "break-all" }, children: value }) : null,
|
|
74
|
+
helpText ? /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", children: helpText }) : null,
|
|
75
|
+
acceptedTypes || maxSize ? /* @__PURE__ */ jsxs(Group, { gap: "xs", wrap: "wrap", children: [
|
|
76
|
+
acceptedTypes ? /* @__PURE__ */ jsx(Badge, { variant: "outline", color: "gray", children: acceptedTypes }) : null,
|
|
77
|
+
maxSize ? /* @__PURE__ */ jsx(Badge, { variant: "outline", color: "gray", children: maxSize }) : null
|
|
78
|
+
] }) : null,
|
|
79
|
+
policyText ? /* @__PURE__ */ jsx(Text, { size: "sm", c: error ? "red.7" : "dimmed", children: policyText }) : null,
|
|
80
|
+
typeof error !== "string" && error ? error : null,
|
|
81
|
+
replaceAction || resolvedRemoveAction || resolvedResetAction || retryAction ? /* @__PURE__ */ jsxs(Group, { gap: "sm", children: [
|
|
82
|
+
replaceAction,
|
|
83
|
+
resolvedResetAction,
|
|
84
|
+
retryAction,
|
|
85
|
+
resolvedRemoveAction
|
|
86
|
+
] }) : null
|
|
87
|
+
] }) })
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
export {
|
|
92
|
+
MediaField
|
|
93
|
+
};
|