@sovereignsquad/gds-core 3.9.0 → 6.8.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.
Files changed (122) hide show
  1. package/dist/GdsBadge-DqTdnomt.d.mts +417 -0
  2. package/dist/GdsBadge-DqTdnomt.d.ts +417 -0
  3. package/dist/PartnerDiscovery-As_-JKtb.d.ts +732 -0
  4. package/dist/PartnerDiscovery-Bwxixtka.d.mts +732 -0
  5. package/dist/QuickStartCard-CB7r-85z.d.ts +17500 -0
  6. package/dist/QuickStartCard-xIP1gbCL.d.mts +17500 -0
  7. package/dist/chunk-2AX4NCID.mjs +9 -0
  8. package/dist/chunk-2IUOZG4C.mjs +9 -0
  9. package/dist/chunk-2XZMNT7I.mjs +338 -0
  10. package/dist/chunk-3D7BVS7D.mjs +9 -0
  11. package/dist/chunk-4LG6EED4.mjs +338 -0
  12. package/dist/chunk-6LULEPIE.mjs +9 -0
  13. package/dist/chunk-6PBDLFSF.mjs +338 -0
  14. package/dist/{chunk-TQ7ZYMEA.mjs → chunk-BH2SMTND.mjs} +2258 -4014
  15. package/dist/chunk-BHR4A3C6.mjs +338 -0
  16. package/dist/chunk-CNTTKK3H.mjs +338 -0
  17. package/dist/chunk-GGDCO5HR.mjs +338 -0
  18. package/dist/chunk-GKNSUUUE.mjs +338 -0
  19. package/dist/chunk-GMK5GXWR.mjs +338 -0
  20. package/dist/chunk-H2QNW4D5.mjs +1768 -0
  21. package/dist/chunk-IHPZ7BNV.mjs +338 -0
  22. package/dist/chunk-J66ITCXC.mjs +473 -0
  23. package/dist/chunk-J6MXKFIM.mjs +9 -0
  24. package/dist/chunk-JTMPFTCK.mjs +338 -0
  25. package/dist/{chunk-BUC7QXRO.mjs → chunk-KFEPREUF.mjs} +13 -5
  26. package/dist/chunk-LNVLXOLI.mjs +9 -0
  27. package/dist/chunk-MAIU557K.mjs +9 -0
  28. package/dist/chunk-MPZFCWWS.mjs +210 -0
  29. package/dist/chunk-NWS7KJ2G.mjs +245 -0
  30. package/dist/chunk-OC3M4CZY.mjs +9 -0
  31. package/dist/chunk-QO653DAE.mjs +338 -0
  32. package/dist/chunk-RCLWUNMR.mjs +9 -0
  33. package/dist/chunk-SHQDVHGR.mjs +338 -0
  34. package/dist/{chunk-5AJJNRZF.mjs → chunk-TJ3WMH25.mjs} +1916 -2026
  35. package/dist/chunk-VU2JLVD3.mjs +89 -0
  36. package/dist/chunk-W5O2JSVK.mjs +20 -0
  37. package/dist/chunk-WNOWHB26.mjs +9 -0
  38. package/dist/chunk-XLPTCIXT.mjs +9 -0
  39. package/dist/chunk-ZCQXBKDM.mjs +24 -0
  40. package/dist/chunk-ZFGYQSNR.mjs +33 -0
  41. package/dist/client.d.mts +1296 -37
  42. package/dist/client.d.ts +1296 -37
  43. package/dist/client.js +11039 -6379
  44. package/dist/client.mjs +273 -58
  45. package/dist/en-Dd7uvXnv.d.mts +336 -0
  46. package/dist/en-Dd7uvXnv.d.ts +336 -0
  47. package/dist/index.d.mts +632 -5
  48. package/dist/index.d.ts +632 -5
  49. package/dist/index.js +21618 -14851
  50. package/dist/index.mjs +2138 -59
  51. package/dist/locales/lazy/all.d.mts +2 -0
  52. package/dist/locales/lazy/all.d.ts +2 -0
  53. package/dist/locales/lazy/all.js +1 -0
  54. package/dist/locales/lazy/all.mjs +24 -0
  55. package/dist/locales/lazy/ar.d.mts +2 -0
  56. package/dist/locales/lazy/ar.d.ts +2 -0
  57. package/dist/locales/lazy/ar.js +683 -0
  58. package/dist/locales/lazy/ar.mjs +4 -0
  59. package/dist/locales/lazy/de.d.mts +2 -0
  60. package/dist/locales/lazy/de.d.ts +2 -0
  61. package/dist/locales/lazy/de.js +683 -0
  62. package/dist/locales/lazy/de.mjs +4 -0
  63. package/dist/locales/lazy/es.d.mts +2 -0
  64. package/dist/locales/lazy/es.d.ts +2 -0
  65. package/dist/locales/lazy/es.js +683 -0
  66. package/dist/locales/lazy/es.mjs +4 -0
  67. package/dist/locales/lazy/fr.d.mts +2 -0
  68. package/dist/locales/lazy/fr.d.ts +2 -0
  69. package/dist/locales/lazy/fr.js +683 -0
  70. package/dist/locales/lazy/fr.mjs +4 -0
  71. package/dist/locales/lazy/he.d.mts +2 -0
  72. package/dist/locales/lazy/he.d.ts +2 -0
  73. package/dist/locales/lazy/he.js +683 -0
  74. package/dist/locales/lazy/he.mjs +4 -0
  75. package/dist/locales/lazy/hu.d.mts +2 -0
  76. package/dist/locales/lazy/hu.d.ts +2 -0
  77. package/dist/locales/lazy/hu.js +683 -0
  78. package/dist/locales/lazy/hu.mjs +4 -0
  79. package/dist/locales/lazy/index.d.mts +25 -0
  80. package/dist/locales/lazy/index.d.ts +25 -0
  81. package/dist/locales/lazy/index.js +384 -0
  82. package/dist/locales/lazy/index.mjs +9 -0
  83. package/dist/locales/lazy/it.d.mts +2 -0
  84. package/dist/locales/lazy/it.d.ts +2 -0
  85. package/dist/locales/lazy/it.js +683 -0
  86. package/dist/locales/lazy/it.mjs +4 -0
  87. package/dist/locales/lazy/ja.d.mts +2 -0
  88. package/dist/locales/lazy/ja.d.ts +2 -0
  89. package/dist/locales/lazy/ja.js +683 -0
  90. package/dist/locales/lazy/ja.mjs +4 -0
  91. package/dist/locales/lazy/ko.d.mts +2 -0
  92. package/dist/locales/lazy/ko.d.ts +2 -0
  93. package/dist/locales/lazy/ko.js +683 -0
  94. package/dist/locales/lazy/ko.mjs +4 -0
  95. package/dist/locales/lazy/ru.d.mts +2 -0
  96. package/dist/locales/lazy/ru.d.ts +2 -0
  97. package/dist/locales/lazy/ru.js +683 -0
  98. package/dist/locales/lazy/ru.mjs +4 -0
  99. package/dist/locales/lazy/zh.d.mts +2 -0
  100. package/dist/locales/lazy/zh.d.ts +2 -0
  101. package/dist/locales/lazy/zh.js +683 -0
  102. package/dist/locales/lazy/zh.mjs +4 -0
  103. package/dist/map.css +664 -0
  104. package/dist/map.d.mts +118 -0
  105. package/dist/map.d.ts +118 -0
  106. package/dist/map.js +777 -0
  107. package/dist/map.mjs +395 -0
  108. package/dist/reference-theme-explorer.d.mts +34 -0
  109. package/dist/reference-theme-explorer.d.ts +34 -0
  110. package/dist/reference-theme-explorer.js +8322 -0
  111. package/dist/reference-theme-explorer.mjs +1988 -0
  112. package/dist/rich-text-editor.d.mts +32 -0
  113. package/dist/rich-text-editor.d.ts +32 -0
  114. package/dist/rich-text-editor.js +469 -0
  115. package/dist/rich-text-editor.mjs +115 -0
  116. package/dist/server.d.mts +112 -248
  117. package/dist/server.d.ts +112 -248
  118. package/dist/server.js +6797 -1679
  119. package/dist/server.mjs +588 -55
  120. package/package.json +104 -9
  121. package/dist/AISearchCard-Bbnsd-yl.d.mts +0 -7786
  122. package/dist/AISearchCard-Bbnsd-yl.d.ts +0 -7786
package/dist/client.d.ts CHANGED
@@ -1,22 +1,30 @@
1
- import { ge as SemanticAction, gg as SemanticActionId, eb as GdsVocabularyPack, eO as MediaFit, eP as MediaPreviewAspectRatio, aW as GdsAccessGateContract, aU as GdsAccessGateAction, aX as GdsAccessGateEvent, cU as GdsNotificationMessage, cy as GdsLayoutTemplate, cW as GdsNotificationPolicy, cQ as GdsNotificationAuditEvent, fA as PublicFlowAction } from './AISearchCard-Bbnsd-yl.js';
2
- export { A as AISearchCard, a as AISearchCardProps, b as AccentPanel, c as AccentPanelProps, d as AccentPanelVariant, e as AccentTone, f as AccessSummary, g as AccessSummaryProps, h as ActionBar, i as ActionBarAction, j as ActionBarIconAction, k as ActionBarProps, l as ActiveFilterChips, m as ActiveFilterChipsProps, n as ArticleShell, o as ArticleShellProps, p as AsyncSurface, q as AsyncSurfaceProps, r as AsyncSurfaceState, s as AuthShell, t as AuthShellProps, B as BOTTOM_TAB_HEIGHT, u as BOTTOM_TAB_MAX_ITEMS, v as BannerNotice, w as BannerNoticeProps, x as BodyText, y as BottomTabBar, z as BottomTabBarProps, C as BoundedPreviewSurface, D as BoundedPreviewSurfaceProps, E as BreadcrumbItem, F as BrowseSurface, G as BrowseSurfaceFilterChip, H as BrowseSurfaceProps, I as BrowseSurfaceScopeOption, J as BulkActionsBar, K as BulkActionsBarProps, L as CardTitle, M as ChartLegendItem, N as ChartTokenPanel, O as ChartTokenPanelProps, P as ChartTokenPanelState, Q as ChatInput, R as ChatMessage, S as ChatMessageModel, T as ChatRole, U as ChatThread, V as ChatThreadProps, W as ChoiceChip, X as ChoiceChipProps, Y as ClippedFlexChild, Z as ComboboxOption, _ as ConsumerDashboardGrid, $ as ConsumerDashboardGridProps, a0 as ConsumerSection, a1 as ConsumerSectionProps, a2 as CountBadge, a3 as CountBadgeProps, a4 as CreatorCssPolicy, a5 as CreatorCssSeverity, a6 as CreatorCssValidationIssue, a7 as CreatorThemeBoundary, a8 as CreatorThemeBoundaryProps, a9 as CreatorThemeDiagnostics, aa as CtaButtonGroup, ab as CtaButtonGroupProps, ac as DataToolbar, ad as DataToolbarFilterChip, ae as DataToolbarProps, af as DetailProfileShell, ag as DetailProfileShellProps, ah as DocsPageShell, ai as DocsPageShellProps, aj as EditorialCard, ak as EditorialCardProps, al as EditorialCardVariant, am as EditorialHero, an as EditorialHeroAction, ao as EditorialHeroMetaItem, ap as EditorialHeroProps, aq as EmptyState, ar as EmptyStateProps, as as EvidencePanel, at as EvidencePanelProps, au as EvidencePanelState, av as FeatureBand, aw as FeatureBandItem, ax as FeatureBandProps, ay as FilterChipGroup, az as FilterDrawer, aA as FilterDrawerMode, aB as FilterDrawerProps, aC as FitScoreChip, aD as FitScoreChipProps, aE as FitScoreDimension, aF as FloatingActionPlacement, aG as FloatingActionPlacementProps, aH as FoodCardAvailabilityState, aI as FoodCardMarker, aJ as FoodCardMediaRatio, aK as FoodCardMetadata, aL as FoodMenuCategory, aM as FoodMenuItem, aN as FoodMenuSection, aO as FoodMenuSectionProps, aP as FormField, aQ as FormFieldProps, aR as GdsAccessAdapter, aS as GdsAccessAdapterOptions, aT as GdsAccessEntitlement, aV as GdsAccessGateActionKind, aY as GdsAccessGateReason, aZ as GdsAccessGateState, a_ as GdsAccessSession, a$ as GdsAccessibilityEvidence, b0 as GdsAccessibilityEvidenceState, b1 as GdsAccessibilityEvidenceSummary, b2 as GdsAccessibilityEvidenceValidationResult, b3 as GdsAdminDashboardTemplate, b4 as GdsAdminDashboardTemplateProps, b5 as GdsAnalyticsTemplate, b6 as GdsAnalyticsTemplateProps, b7 as GdsAreaChart, b8 as GdsAtBrowserStatus, b9 as GdsBarChart, ba as GdsBenchmarkBarChart, bb as GdsBleed, bc as GdsBleedProps, bd as GdsBlockRenderer, be as GdsBorderRole, bf as GdsBox, bg as GdsBoxProps, bh as GdsBoxWithChildrenProps, bi as GdsBubbleChartConfig, bj as GdsCalendarHeatmapChart, bk as GdsCardContractOptions, bl as GdsCardDensity, bm as GdsCardInteractiveMode, bn as GdsCardResolvedContract, bo as GdsCardSize, bp as GdsCardVariant, bq as GdsCartesianChartConfig, br as GdsChart, bs as GdsChartAxis, bt as GdsChartBaseConfig, bu as GdsChartConfig, bv as GdsChartDatum, bw as GdsChartLegend, bx as GdsChartLegendItem, by as GdsChartProps, bz as GdsChartRendererAdapter, bA as GdsChartRendererContext, bB as GdsChartSetAType, bC as GdsChartSetBType, bD as GdsChartTooltip, bE as GdsChartType, bF as GdsChartTypeDefinition, bG as GdsChartValidationResult, bH as GdsCluster, bI as GdsClusterProps, bJ as GdsContainer, bK as GdsContainerProps, bL as GdsContentPattern, bM as GdsContentPatternCatalog, bN as GdsContentPatternId, bO as GdsCopyTemplate, bP as GdsCrudEditorTemplate, bQ as GdsCrudEditorTemplateProps, bR as GdsDesignComponentMap, bS as GdsDesignHandoffCatalog, bT as GdsDesignHandoffReport, bU as GdsDesignTokenMap, bV as GdsDirectionBoundary, bW as GdsDivergingBarChart, bX as GdsEmptyStateTemplate, bY as GdsEmptyStateTemplateProps, bZ as GdsErrorPageTemplate, b_ as GdsErrorPageTemplateProps, b$ as GdsFormatOptions, c0 as GdsFormattedCurrency, c1 as GdsFormattedCurrencyProps, c2 as GdsFormattedDate, c3 as GdsFormattedDateProps, c4 as GdsFormattedNumber, c5 as GdsFormattedNumberProps, c6 as GdsFunnelChartConfig, c7 as GdsGaugeChart, c8 as GdsGrid, c9 as GdsGridProps, ca as GdsHandoffStatus, cb as GdsHeatmapChartConfig, cc as GdsHistogramChart, cd as GdsI18nRuntimeEvent, ce as GdsI18nRuntimeEventType, cf as GdsIcon, cg as GdsIconA11yMode, ch as GdsIconCategory, ci as GdsIconKey, cj as GdsIconMetadata, ck as GdsIconName, cl as GdsIconProps, cm as GdsIconTone, cn as GdsIcons, co as GdsInline, cp as GdsInlineProps, cq as GdsKeyboardBehavior, cr as GdsKnownLimitation, cs as GdsLayoutAlign, ct as GdsLayoutBreakpoint, cu as GdsLayoutJustify, cv as GdsLayoutOverflow, cw as GdsLayoutPrimitiveBaseProps, cx as GdsLayoutSize, cz as GdsLayoutToken, cA as GdsLayoutWrap, cB as GdsLineChart, cC as GdsLocale, cD as GdsLocaleText, cE as GdsLocaleTextProps, cF as GdsLongitudinalChart, cG as GdsMaturityCapability, cH as GdsMaturityCapabilityArea, cI as GdsMaturityCapabilityStatus, cJ as GdsMaturityRadarChart, cK as GdsMediaFit, cL as GdsMediaFrame, cM as GdsMediaFrameProps, cN as GdsMessageSeverity, cO as GdsMissingKeyTracker, cP as GdsNotificationAction, cR as GdsNotificationAuditEventType, cS as GdsNotificationDedupePolicy, cT as GdsNotificationLivePolicy, cV as GdsNotificationPersistence, cX as GdsNotificationRetryPolicy, cY as GdsNotificationSeverity, cZ as GdsNotificationStatus, c_ as GdsOverflowFrame, c$ as GdsOverflowFrameProps, d0 as GdsOverflowPolicy, d1 as GdsOwnedContrastPropsInput, d2 as GdsOwnedContrastRole, d3 as GdsOwnedContrastTokens, d4 as GdsPageTemplateAction, d5 as GdsPageTemplateBaseProps, d6 as GdsPageTemplateCatalog, d7 as GdsPageTemplateConfig, d8 as GdsPageTemplateId, d9 as GdsPageTemplateSection, da as GdsPageTemplateState, db as GdsPageTemplateTelemetryEvent, dc as GdsPageTemplateTelemetryEventName, dd as GdsPartToWholeChartConfig, de as GdsPatternTelemetryEvent, df as GdsPlaceholderContract, dg as GdsPlural, dh as GdsPluralMessage, di as GdsPluralProps, dj as GdsPropAnnotation, dk as GdsPublicEventTemplate, dl as GdsPublicEventTemplateProps, dm as GdsRadarChart, dn as GdsRadarChartConfig, dp as GdsRadiusToken, dq as GdsRatingScale, dr as GdsRatingScaleProps, ds as GdsRelativeTime, dt as GdsRelativeTimeProps, du as GdsResourceManagerTemplate, dv as GdsResourceManagerTemplateProps, dw as GdsResponsiveChartFrame, dx as GdsResponsiveResolution, dy as GdsResponsiveValue, dz as GdsResponsiveVisibility, dA as GdsResponsiveVisibilityProps, dB as GdsSafeBox, dC as GdsSafeBoxProps, dD as GdsSafeStyleProps, dE as GdsScatterChartConfig, dF as GdsScreenReaderNote, dG as GdsSegmentedControl, dH as GdsSegmentedControlOption, dI as GdsSegmentedControlProps, dJ as GdsSelectionGroupProps, dK as GdsSelectionOption, dL as GdsSemanticBackground, dM as GdsSeriesTone, dN as GdsSettingsGroup, dO as GdsSettingsTemplate, dP as GdsSettingsTemplateProps, dQ as GdsSidebar, dR as GdsSidebarProps, dS as GdsSlider, dT as GdsSliderProps, dU as GdsSlopeChart, dV as GdsSparkline, dW as GdsSplit, dX as GdsSplitProps, dY as GdsStack, dZ as GdsStackProps, d_ as GdsStackedBarChart, d$ as GdsStyleContract, e0 as GdsSymmetryChart, e1 as GdsTaskPattern, e2 as GdsTaskState, e3 as GdsTaskStep, e4 as GdsTextExpansionFixture, e5 as GdsTextRoleProps, e6 as GdsTitleRoleProps, e7 as GdsTreemapChartConfig, e8 as GdsTypographyProps, e9 as GdsVisibilityValue, ea as GdsVocabulary, ec as GdsWcagMapping, ed as GdsWizardStep, ee as GdsWizardStepper, ef as GdsWizardStepperProps, eg as InlineAlert, eh as InlineAlertProps, ei as InlineEmphasis, ej as InlineText, ek as LabelTag, el as LabelTagProps, em as LabelTagTone, en as LabelText, eo as LayeredSurfaceSlot, ep as LayeredSurfaceSlotProps, eq as LayoutBlock, er as LayoutBlockType, es as LayoutRenderResult, et as LayoutSchema, eu as LayoutValidationIssue, ev as ListItemSection, ew as ListingCard, ex as ListingCardAffordance, ey as ListingCardMediaRatio, ez as ListingCardProps, eA as ListingFilterChip, eB as ListingMetadataRow, eC as MAX_LISTING_CARD_ACTIONS, eD as MapPanel, eE as MapPanelProps, eF as MeaningBadge, eG as MeaningBadgeProps, eH as MeaningVariant, eI as MediaCard, eJ as MediaCardAction, eK as MediaCardProps, eL as MediaField, eM as MediaFieldProps, eN as MediaFieldState, eQ as MediaPreviewCard, eR as MediaPreviewCardProps, eS as MediaPreviewMetadata, eT as MediaPreviewState, eU as MediaWithFallback, eV as MediaWithFallbackProps, eW as MetadataText, eX as MetricCard, eY as MetricCardProps, eZ as MissingDataPrompt, e_ as MissingDataPromptProps, e$ as MonospaceInputFrame, f0 as NotificationCenterView, f1 as NumberStepper, f2 as NumberStepperProps, f3 as NumericCell, f4 as OverflowContainer, f5 as OverflowContainerProps, f6 as PROVIDER_IDENTITY_REGISTRY, f7 as PageHeader, f8 as PageHeaderEyebrowVariant, f9 as PageHeaderProps, fa as PageTitle, fb as PeriodSelector, fc as PeriodSelectorOption, fd as PeriodSelectorProps, fe as PillBar, ff as PlaceholderPanel, fg as PlaceholderPanelProps, fh as PlaybackSurface, fi as PlaybackSurfaceProps, fj as PlaybackSurfaceState, fk as ProductCard, fl as ProductCardAction, fm as ProductCardMetaItem, fn as ProductCardProps, fo as ProgressCard, fp as ProgressCardProps, fq as ProviderIdentity, fr as ProviderIdentityButton, fs as ProviderIdentityButtonGroup, ft as ProviderIdentityButtonGroupProps, fu as ProviderIdentityButtonProps, fv as ProviderIdentityVariant, fw as PublicBrandFooter, fx as PublicBrandFooterClassNames, fy as PublicBrandFooterLayoutVariant, fz as PublicBrandFooterProps, fB as PublicFlowActionPriority, fC as PublicFlowShell, fD as PublicFlowShellProps, fE as PublicFlowStage, fF as PublicFlowStageStatus, fG as PublicFoodCard, fH as PublicFoodCardProps, fI as PublicNav, fJ as PublicNavItem, fK as PublicNavProps, fL as PublicProductCard, fM as PublicProductCardHelperKind, fN as PublicProductCardMetaItem, fO as PublicProductCardProps, fP as PublicProductCardState, fQ as PublicShell, fR as PublicShellBottomTabOptions, fS as PublicShellClassNames, fT as PublicShellHeaderVariant, fU as PublicShellMobileNavigationMode, fV as PublicShellProps, fW as PublicSiteFooter, fX as PublicSiteFooterProps, fY as ReferenceLinkGrid, fZ as ReferenceLinkGridItem, f_ as ReferenceLinkGridProps, f$ as ReferenceLocaleNotice, g0 as ReferenceLocaleNoticeProps, g1 as ReferenceSection, g2 as ReferenceSectionProps, g3 as ReportingSection, g4 as ReportingSectionProps, g5 as ReportingSectionState, g6 as ResultSummary, g7 as ResultSummaryProps, g8 as SearchableSelect, g9 as SearchableSelectProps, ga as SectionPanel, gb as SectionPanelProps, gc as SectionPanelTone, gd as SectionTitle, gf as SemanticActionDefinition, gh as SemanticChartFrame, gi as SemanticChartFrameProps, gj as SemanticChartProps, gk as SemanticInset, gl as SimpleDataTable, gm as SimpleDataTableProps, gn as SimpleTableColumn, go as SocialAuthButtons, gp as SocialAuthButtonsProps, gq as SocialAuthProviderId, gr as SocialAuthProviderOption, gs as SoftChipGroup, gt as SortMenu, gu as SortMenuProps, gv as SortOption, gw as StateBlock, gx as StateBlockProps, gy as StateBlockVariant, gz as StatsSection, gA as StatsSectionProps, gB as StatusBadge, gC as StatusBadgeProps, gD as StatusVariant, gE as StreamingIndicator, gF as SurfaceContentAlign, gG as SurfaceContentJustify, gH as SurfacePresentation, gI as SurfacePresentationProps, gJ as VisuallyHidden, gK as VocabularyResolver, gL as ar, gM as compareGdsLocaleString, gN as createGdsAccessAdapter, gO as createGdsAccessGateEvent, gP as createGdsAccessibilityEvidenceIndex, gQ as createGdsContentExpansionReport, gR as createGdsMissingKeyTracker, gS as createGdsNotificationAuditEvent, gT as createGdsNotificationId, gU as createGdsOwnedContrastTokens, gV as createGdsPageTemplateEvent, gW as createGdsStyleContract, gX as createGdsTextExpansionFixture, gY as createGdsVocabularyPack, gZ as de, g_ as en, g$ as es, h0 as formatGdsCurrency, h1 as formatGdsDate, h2 as formatGdsNumber, h3 as formatGdsPlural, h4 as formatGdsRelativeTime, h5 as fr, h6 as gdsCardDensityPaddingMap, h7 as gdsCardGapMap, h8 as gdsCardMediaRatioMap, h9 as gdsCardSizePaddingMap, ha as gdsCardTitleOrderMap, hb as gdsChartSetATypeRegistry, hc as gdsChartSetBTypeRegistry, hd as gdsChartTypeRegistry, he as gdsDefaultChartLegend, hf as gdsIconRegistry, hg as gdsIconToneColor, hh as gdsLocales, hi as gdsSeriesPalette, hj as gdsStyle, hk as generateGdsDesignHandoffReport, hl as getGdsAccessGateActionPriority, hm as getGdsAccessGateReasons, hn as getGdsAccessGateStates, ho as getGdsAccessibilityEvidence, hp as getGdsAccessibilityEvidenceSummary, hq as getGdsBlockTypes, hr as getGdsContentPattern, hs as getGdsContentPatterns, ht as getGdsCopyTemplate, hu as getGdsCopyTemplates, hv as getGdsDesignComponentMappings, hw as getGdsDesignTokenMappings, hx as getGdsIconKeys, hy as getGdsIconMetadata, hz as getGdsIconToneColor, hA as getGdsLayoutTemplate, hB as getGdsLayoutTemplates, hC as getGdsMaturityCapabilities, hD as getGdsMaturityCapability, hE as getGdsMaturitySummary, hF as getGdsMessages, hG as getGdsNotificationLivePolicy, hH as getGdsOwnedContrastProps, hI as getGdsPageTemplate, hJ as getGdsPageTemplates, hK as getGdsRecommendedMaturityCapabilities, hL as getGdsSeriesColor, hM as getGdsTaskPattern, hN as getGdsTaskPatterns, hO as getProviderIdentityLabel, hP as getProviderIdentityPolicy, hQ as getSemanticActionConfig, hR as getSemanticActionLabel, hS as getSupportedProviderIdentityIds, hT as he, hU as hu, hV as isGdsChartSetAType, hW as isGdsChartSetBType, hX as isGdsIconKey, hY as isPresentationMode, hZ as it, h_ as mergeGdsVocabularyPacks, h$ as normalizeGdsResponsiveValue, i0 as redactGdsAccessGateMetadata, i1 as registerGdsBlock, i2 as renderGdsCopyTemplate, i3 as renderGdsLayout, i4 as renderGdsLayoutWithDiagnostics, i5 as resolveAccentPanelStyles, i6 as resolveGdsAccessAdapterState, i7 as resolveGdsAccessState, i8 as resolveGdsCardContract, i9 as resolveGdsLayoutStyle, ia as resolveGdsLocale, ib as resolveGdsMessage, ic as resolveSemanticActionConfig, id as resolveSurfacePresentationStyles, ie as ru, ig as sortGdsAccessGateActions, ih as sortGdsLocaleStrings, ii as useGdsDirection, ij as validateCreatorCss, ik as validateGdsAccessGateContract, il as validateGdsAccessibilityEvidence, im as validateGdsChartData, io as validateGdsContentPatterns, ip as validateGdsCopyTemplate, iq as validateGdsDesignHandoffMappings, ir as validateGdsLayout, is as validateGdsPageTemplates, it as validateGdsTaskPatterns } from './AISearchCard-Bbnsd-yl.js';
1
+ import { hh as SemanticAction, hj as SemanticActionId, f6 as GdsVocabularyPack, bQ as GdsCardContractOptions, bT as GdsCardResolvedContract, fM as MediaFit, fN as MediaPreviewAspectRatio, bg as GdsAccessGateContract, be as GdsAccessGateAction, bh as GdsAccessGateEvent, dA as GdsNotificationMessage, d4 as GdsLayoutTemplate, dC as GdsNotificationPolicy, du as GdsNotificationAuditEvent, gB as PublicFlowAction } from './QuickStartCard-CB7r-85z.js';
2
+ export { A as AISearchCard, a as AISearchCardProps, b as AccentPanel, c as AccentPanelProps, d as AccentPanelVariant, e as AccentTone, f as AccessSummary, g as AccessSummaryProps, jE as ActionBar, jF as ActionBarAction, jG as ActionBarIconAction, jH as ActionBarProps, h as ActiveFilterChips, i as ActiveFilterChipsProps, j as ArticleShell, k as ArticleShellProps, l as AsyncSurface, m as AsyncSurfaceProps, n as AsyncSurfaceState, o as AuthShell, p as AuthShellProps, B as BOTTOM_TAB_HEIGHT, q as BOTTOM_TAB_MAX_ITEMS, r as BannerNotice, s as BannerNoticeProps, t as BodyText, u as BottomTabBar, v as BottomTabBarProps, w as BoundedPreviewSurface, x as BoundedPreviewSurfaceProps, y as BreadcrumbItem, z as BrowseSurface, C as BrowseSurfaceFilterChip, D as BrowseSurfaceProps, E as BrowseSurfaceScopeOption, F as BulkActionsBar, G as BulkActionsBarProps, H as CardTitle, I as ChartLegendItem, J as ChartTokenPanel, K as ChartTokenPanelProps, L as ChartTokenPanelState, M as ChatInput, N as ChatMessage, O as ChatMessageModel, P as ChatRole, Q as ChatThread, R as ChatThreadProps, S as ChoiceChip, T as ChoiceChipProps, U as ClippedFlexChild, V as ComboboxOption, W as ConsumerDashboardGrid, X as ConsumerDashboardGridProps, Y as ConsumerSection, Z as ConsumerSectionProps, _ as CountBadge, $ as CountBadgeProps, a0 as CreatorCssPolicy, a1 as CreatorCssSeverity, a2 as CreatorCssValidationIssue, a3 as CreatorThemeBoundary, a4 as CreatorThemeBoundaryProps, a5 as CreatorThemeDiagnostics, a6 as CtaButtonGroup, a7 as CtaButtonGroupProps, a8 as DataToolbar, a9 as DataToolbarFilterChip, aa as DataToolbarProps, ab as DetailFact, ac as DetailFactsTable, ad as DetailFactsTableProps, ae as DetailProfileShell, af as DetailProfileShellProps, ag as DocsPageShell, ah as DocsPageShellProps, ai as EditorialCard, aj as EditorialCardProps, ak as EditorialCardVariant, al as EditorialHero, am as EditorialHeroAction, an as EditorialHeroMetaItem, ao as EditorialHeroProps, ap as EmptyState, aq as EmptyStateProps, ar as EvidencePanel, as as EvidencePanelProps, at as EvidencePanelState, au as FeatureBand, av as FeatureBandItem, aw as FeatureBandProps, ax as FilterChipGroup, ay as FilterDrawer, az as FilterDrawerMode, aA as FilterDrawerProps, aB as FitScoreChip, aC as FitScoreChipProps, aD as FitScoreDimension, aE as FloatingActionPlacement, aF as FloatingActionPlacementProps, aG as FoodCardAvailabilityState, aH as FoodCardMarker, aI as FoodCardMediaRatio, aJ as FoodCardMetadata, aK as FoodMenuCategory, aL as FoodMenuItem, aM as FoodMenuSection, aN as FoodMenuSectionProps, aO as FormField, aP as FormFieldProps, aQ as GDS_DETAIL_FACTS_LABEL_COLUMN_PX, aR as GDS_DETAIL_FACT_IDS, aS as GDS_LISTING_PICK_BADGE_FONT_SIZE_PX, aT as GDS_LISTING_PICK_BADGE_ICON_PX, aU as GDS_LISTING_PICK_BADGE_INSET_PX, aV as GDS_LISTING_PICK_BADGE_LINE_HEIGHT_PX, aW as GDS_LISTING_PICK_BADGE_PADDING_BLOCK_PX, aX as GDS_LISTING_PICK_BADGE_PADDING_INLINE_PX, aY as GDS_LISTING_TILE_SIZE_PX, aZ as GDS_PICTOGRAM_BASE_STROKE, a_ as GDS_PICTOGRAM_DISABLED_OPACITY, a$ as GDS_PICTOGRAM_GRID, b0 as GDS_PICTOGRAM_HERO_LAYERS, b1 as GDS_PICTOGRAM_SCALE_PX, b2 as GDS_PICTOGRAM_STROKE_BY_SCALE, b3 as GDS_PICTOGRAM_TREATMENT_SCALE, b4 as GDS_PIN_APPROXIMATE_DASH, b5 as GDS_PIN_EMOJI_SCALE, b6 as GDS_PIN_EMPHASIS_STROKE, b7 as GDS_PIN_HEAD_CENTER_OFFSET, b8 as GDS_PIN_ICON_SCALE, b9 as GDS_PIN_SELECTED_SCALE, ba as GDS_QUICK_START_ICON_BOX_PX, bb as GdsAccessAdapter, bc as GdsAccessAdapterOptions, bd as GdsAccessEntitlement, bf as GdsAccessGateActionKind, bi as GdsAccessGateReason, bj as GdsAccessGateState, bk as GdsAccessSession, bl as GdsAccessibilityEvidence, bm as GdsAccessibilityEvidenceState, bn as GdsAccessibilityEvidenceSummary, bo as GdsAccessibilityEvidenceValidationResult, bp as GdsActivityPictogramKey, bq as GdsAdminDashboardTemplate, br as GdsAdminDashboardTemplateProps, bs as GdsAnalyticsTemplate, bt as GdsAnalyticsTemplateProps, bu as GdsAreaChart, bv as GdsAtBrowserStatus, bw as GdsBadgeStack, bx as GdsBadgeStackCorner, by as GdsBadgeStackLayer, bz as GdsBadgeStackLayerProps, bA as GdsBadgeStackProps, bB as GdsBarChart, bC as GdsBenchmarkBarChart, bD as GdsBleed, bE as GdsBleedProps, bF as GdsBlockRenderer, bG as GdsBorderRole, bH as GdsBox, bI as GdsBoxProps, bJ as GdsBoxWithChildrenProps, bK as GdsBreadcrumbItem, bL as GdsBreadcrumbs, bM as GdsBreadcrumbsProps, bN as GdsBubbleChartConfig, bO as GdsCalendarHeatmapChart, bP as GdsCandlestickChartConfig, bR as GdsCardDensity, bS as GdsCardInteractiveMode, bU as GdsCardSize, bV as GdsCardVariant, bW as GdsCartesianChartConfig, bX as GdsChart, bY as GdsChartAxis, bZ as GdsChartBaseConfig, b_ as GdsChartConfig, b$ as GdsChartDatum, c0 as GdsChartLegend, c1 as GdsChartLegendItem, c2 as GdsChartProps, c3 as GdsChartRendererAdapter, c4 as GdsChartRendererContext, c5 as GdsChartSetAType, c6 as GdsChartSetBType, c7 as GdsChartSetCType, c8 as GdsChartTooltip, c9 as GdsChartType, ca as GdsChartTypeDefinition, cb as GdsChartValidationResult, cc as GdsCluster, cd as GdsClusterProps, ce as GdsColumnGrid, cf as GdsColumnGridItem, cg as GdsColumnGridItemProps, ch as GdsColumnGridProps, ci as GdsCompareButton, cj as GdsCompareButtonProps, ck as GdsContainer, cl as GdsContainerProps, cm as GdsContentPattern, cn as GdsContentPatternCatalog, co as GdsContentPatternId, cp as GdsCopyTemplate, cq as GdsCountBadge, cr as GdsCountBadgeProps, cs as GdsCountBadgeTone, ct as GdsCrudEditorTemplate, cu as GdsCrudEditorTemplateProps, cv as GdsDesignComponentMap, cw as GdsDesignHandoffCatalog, cx as GdsDesignHandoffReport, cy as GdsDesignTokenMap, cz as GdsDetailFactId, cA as GdsDirectionBoundary, cB as GdsDivergingBarChart, cC as GdsEmptyStateTemplate, cD as GdsEmptyStateTemplateProps, cE as GdsErrorPageTemplate, cF as GdsErrorPageTemplateProps, cG as GdsFormatOptions, cH as GdsFormattedCurrency, cI as GdsFormattedCurrencyProps, cJ as GdsFormattedDate, cK as GdsFormattedDateProps, cL as GdsFormattedNumber, cM as GdsFormattedNumberProps, cN as GdsFunnelChartConfig, cO as GdsGaugeChart, cP as GdsGrid, cQ as GdsGridProps, cR as GdsHandoffStatus, cS as GdsHeatmapChartConfig, cT as GdsHistogramChart, cU as GdsI18nRuntimeEvent, cV as GdsI18nRuntimeEventType, cW as GdsInline, cX as GdsInlineProps, cY as GdsKeyboardBehavior, cZ as GdsKnownLimitation, c_ as GdsLayoutAlign, c$ as GdsLayoutBreakpoint, d0 as GdsLayoutJustify, d1 as GdsLayoutOverflow, d2 as GdsLayoutPrimitiveBaseProps, d3 as GdsLayoutSize, d5 as GdsLayoutToken, d6 as GdsLayoutWrap, d7 as GdsLineChart, d8 as GdsLocale, d9 as GdsLocaleText, da as GdsLocaleTextProps, db as GdsLogoLockup, dc as GdsLogoLockupProps, dd as GdsLongitudinalChart, de as GdsMapPinBadge, df as GdsMapPinBadgeProps, dg as GdsMapPinState, dh as GdsMaturityCapability, di as GdsMaturityCapabilityArea, dj as GdsMaturityCapabilityStatus, dk as GdsMaturityRadarChart, dl as GdsMediaFit, dm as GdsMediaFrame, dn as GdsMediaFrameProps, dp as GdsMessageSeverity, dq as GdsMeter, dr as GdsMeterProps, ds as GdsMissingKeyTracker, dt as GdsNotificationAction, dv as GdsNotificationAuditEventType, dw as GdsNotificationBell, dx as GdsNotificationBellProps, dy as GdsNotificationDedupePolicy, dz as GdsNotificationLivePolicy, dB as GdsNotificationPersistence, dD as GdsNotificationRetryPolicy, dE as GdsNotificationSeverity, dF as GdsNotificationStatus, dG as GdsOverflowFrame, dH as GdsOverflowFrameProps, dI as GdsOverflowPolicy, dJ as GdsOwnedContrastPropsInput, dK as GdsOwnedContrastRole, dL as GdsOwnedContrastTokens, dM as GdsPageTemplateAction, dN as GdsPageTemplateBaseProps, dO as GdsPageTemplateCatalog, dP as GdsPageTemplateConfig, dQ as GdsPageTemplateId, dR as GdsPageTemplateSection, dS as GdsPageTemplateState, dT as GdsPageTemplateTelemetryEvent, dU as GdsPageTemplateTelemetryEventName, dV as GdsPartToWholeChartConfig, dW as GdsPatternTelemetryEvent, dX as GdsPictogram, dY as GdsPictogramDefinition, dZ as GdsPictogramFamily, d_ as GdsPictogramHeroLayer, d$ as GdsPictogramProps, e0 as GdsPictogramScale, e1 as GdsPictogramState, e2 as GdsPictogramTreatment, e3 as GdsPictogramUsageRule, e4 as GdsPlaceholderContract, e5 as GdsPlural, e6 as GdsPluralMessage, e7 as GdsPluralProps, e8 as GdsPropAnnotation, e9 as GdsPublicEventTemplate, ea as GdsPublicEventTemplateProps, eb as GdsRadarChart, ec as GdsRadarChartConfig, ed as GdsRadiusToken, ee as GdsRatingDisplay, ef as GdsRatingDisplayProps, eg as GdsRatingScale, eh as GdsRatingScaleProps, ei as GdsRelativeTime, ej as GdsRelativeTimeProps, ek as GdsRemovableTag, el as GdsRemovableTagProps, em as GdsRemovableTagTone, en as GdsResourceManagerTemplate, eo as GdsResourceManagerTemplateProps, ep as GdsResponsiveChartFrame, eq as GdsResponsiveResolution, er as GdsResponsiveValue, es as GdsResponsiveVisibility, et as GdsResponsiveVisibilityProps, eu as GdsSafeBox, ev as GdsSafeBoxProps, ew as GdsSafeStyleProps, ex as GdsSankeyChartConfig, ey as GdsScatterChartConfig, ez as GdsScreenReaderNote, eA as GdsSegmentedControl, eB as GdsSegmentedControlOption, eC as GdsSegmentedControlProps, eD as GdsSelectionGroupProps, eE as GdsSelectionOption, eF as GdsSemanticBackground, eG as GdsSeriesTone, eH as GdsSettingsGroup, eI as GdsSettingsTemplate, eJ as GdsSettingsTemplateProps, eK as GdsSidebar, eL as GdsSidebarProps, eM as GdsSlider, eN as GdsSliderProps, eO as GdsSlopeChart, eP as GdsSparkline, eQ as GdsSplit, eR as GdsSplitProps, eS as GdsStack, eT as GdsStackProps, eU as GdsStackedBarChart, eV as GdsStyleContract, eW as GdsSymmetryChart, eX as GdsTaskPattern, eY as GdsTaskState, eZ as GdsTaskStep, e_ as GdsTextExpansionFixture, e$ as GdsTextRoleProps, f0 as GdsTitleRoleProps, f1 as GdsTreemapChartConfig, f2 as GdsTrustLabel, f3 as GdsTypographyProps, f4 as GdsVisibilityValue, f5 as GdsVocabulary, f7 as GdsWcagMapping, f8 as GdsWizardStep, f9 as GdsWizardStepper, fa as GdsWizardStepperProps, fb as InlineAlert, fc as InlineAlertProps, fd as InlineEmphasis, fe as InlineText, ff as LabelTag, fg as LabelTagProps, fh as LabelTagTone, fi as LabelText, fj as LastCheckedLabel, fk as LastCheckedLabelProps, fl as LayeredSurfaceSlot, fm as LayeredSurfaceSlotProps, fn as LayoutBlock, fo as LayoutBlockType, fp as LayoutRenderResult, fq as LayoutSchema, fr as LayoutValidationIssue, fs as ListItemSection, ft as ListingCard, fu as ListingCardAffordance, fv as ListingCardMediaRatio, fw as ListingCardPickBadge, fx as ListingCardProps, fy as ListingFilterChip, fz as ListingMetadataRow, fA as MAX_LISTING_CARD_ACTIONS, fB as MapPanel, fC as MapPanelProps, fD as MeaningBadge, fE as MeaningBadgeProps, fF as MeaningVariant, fG as MediaCard, fH as MediaCardAction, fI as MediaCardProps, fJ as MediaField, fK as MediaFieldProps, fL as MediaFieldState, fO as MediaPreviewCard, fP as MediaPreviewCardProps, fQ as MediaPreviewMetadata, fR as MediaPreviewState, fS as MediaWithFallback, fT as MediaWithFallbackProps, fU as MetadataText, fV as MetricCard, fW as MetricCardProps, fX as MissingDataPrompt, fY as MissingDataPromptProps, fZ as MonospaceInputFrame, f_ as NotificationCenterView, f$ as NumberStepper, g0 as NumberStepperProps, g1 as NumericCell, g2 as OverflowContainer, g3 as OverflowContainerProps, g4 as PROVIDER_IDENTITY_REGISTRY, g5 as PageHeader, g6 as PageHeaderEyebrowVariant, g7 as PageHeaderProps, g8 as PageTitle, g9 as PeriodSelector, ga as PeriodSelectorOption, gb as PeriodSelectorProps, gc as PillBar, gd as PlaceholderPanel, ge as PlaceholderPanelProps, gf as PlaybackSurface, gg as PlaybackSurfaceProps, gh as PlaybackSurfaceState, gi as PriceEstimateLabel, gj as PriceEstimateLabelProps, gk as PriceEstimateStatus, gl as ProductCard, gm as ProductCardAction, gn as ProductCardMetaItem, go as ProductCardProps, gp as ProgressCard, gq as ProgressCardProps, gr as ProviderIdentity, gs as ProviderIdentityButton, gt as ProviderIdentityButtonGroup, gu as ProviderIdentityButtonGroupProps, gv as ProviderIdentityButtonProps, gw as ProviderIdentityVariant, gx as PublicBrandFooter, gy as PublicBrandFooterClassNames, gz as PublicBrandFooterLayoutVariant, gA as PublicBrandFooterProps, gC as PublicFlowActionPriority, gD as PublicFlowShell, gE as PublicFlowShellProps, gF as PublicFlowStage, gG as PublicFlowStageStatus, gH as PublicFoodCard, gI as PublicFoodCardProps, gJ as PublicNav, gK as PublicNavItem, gL as PublicNavProps, gM as PublicProductCard, gN as PublicProductCardHelperKind, gO as PublicProductCardMetaItem, gP as PublicProductCardProps, gQ as PublicProductCardState, gR as PublicShell, gS as PublicShellBottomTabOptions, gT as PublicShellClassNames, gU as PublicShellHeaderVariant, gV as PublicShellMobileNavigationMode, gW as PublicShellProps, gX as PublicSiteFooter, gY as PublicSiteFooterProps, gZ as QuickStartCard, g_ as QuickStartCardProps, g$ as ReferenceLinkGrid, h0 as ReferenceLinkGridItem, h1 as ReferenceLinkGridProps, h2 as ReferenceLocaleNotice, h3 as ReferenceLocaleNoticeProps, h4 as ReferenceSection, h5 as ReferenceSectionProps, h6 as ReportingSection, h7 as ReportingSectionProps, h8 as ReportingSectionState, h9 as ResultSummary, ha as ResultSummaryProps, hb as SearchableSelect, hc as SearchableSelectProps, hd as SectionPanel, he as SectionPanelProps, hf as SectionPanelTone, hg as SectionTitle, hi as SemanticActionDefinition, hk as SemanticChartFrame, hl as SemanticChartFrameProps, hm as SemanticChartProps, hn as SemanticInset, ho as SimpleDataTable, hp as SimpleDataTableProps, hq as SimpleTableColumn, hr as SocialAuthButtons, hs as SocialAuthButtonsProps, ht as SocialAuthProviderId, hu as SocialAuthProviderOption, hv as SoftChipGroup, hw as SortMenu, hx as SortMenuProps, hy as SortOption, hz as StateBlock, hA as StateBlockProps, hB as StateBlockVariant, hC as StatsSection, hD as StatsSectionProps, hE as StatusBadge, hF as StatusBadgeProps, hG as StatusVariant, hH as StreamingIndicator, hI as SurfaceContentAlign, hJ as SurfaceContentJustify, hK as SurfacePresentation, hL as SurfacePresentationProps, hM as TRUST_BADGE_DEFINITIONS, hN as TrustBadge, hO as TrustBadgeProps, hP as VisuallyHidden, hQ as VocabularyResolver, hR as ar, hS as compareGdsLocaleString, hT as createGdsAccessAdapter, hU as createGdsAccessGateEvent, hV as createGdsAccessibilityEvidenceIndex, hW as createGdsContentExpansionReport, hX as createGdsMissingKeyTracker, hY as createGdsNotificationAuditEvent, hZ as createGdsNotificationId, h_ as createGdsOwnedContrastTokens, h$ as createGdsPageTemplateEvent, i0 as createGdsPictogramFamily, i1 as createGdsStyleContract, i2 as createGdsTextExpansionFixture, i3 as createGdsVocabularyPack, i4 as de, i5 as es, i6 as formatGdsCurrency, i7 as formatGdsDate, i8 as formatGdsNumber, i9 as formatGdsPlural, ia as formatGdsRelativeTime, ib as fr, ic as gdsActivityPictograms, id as gdsCardDensityPaddingMap, ie as gdsCardGapMap, ig as gdsCardMediaRatioMap, ih as gdsCardSizePaddingMap, ii as gdsCardTitleOrderMap, ij as gdsChartSetATypeRegistry, ik as gdsChartSetBTypeRegistry, il as gdsChartSetCTypeRegistry, im as gdsChartTypeRegistry, io as gdsDefaultChartLegend, ip as gdsLocales, iq as gdsPictogramUsageRules, ir as gdsSeriesPalette, is as gdsStyle, it as generateGdsDesignHandoffReport, iu as getGdsAccessGateActionPriority, iv as getGdsAccessGateReasons, iw as getGdsAccessGateStates, ix as getGdsAccessibilityEvidence, iy as getGdsAccessibilityEvidenceSummary, iz as getGdsActivityPictogramKeys, iA as getGdsBlockTypes, iB as getGdsContentPattern, iC as getGdsContentPatterns, iD as getGdsCopyTemplate, iE as getGdsCopyTemplates, iF as getGdsDesignComponentMappings, iG as getGdsDesignTokenMappings, iH as getGdsLayoutTemplate, iI as getGdsLayoutTemplates, iJ as getGdsMaturityCapabilities, iK as getGdsMaturityCapability, iL as getGdsMaturitySummary, iM as getGdsMessages, iN as getGdsNotificationLivePolicy, iO as getGdsOwnedContrastProps, iP as getGdsPageTemplate, iQ as getGdsPageTemplates, iR as getGdsRecommendedMaturityCapabilities, iS as getGdsSeriesColor, iT as getGdsTaskPattern, iU as getGdsTaskPatterns, iV as getProviderIdentityLabel, iW as getProviderIdentityPolicy, iX as getSemanticActionConfig, iY as getSemanticActionLabel, iZ as getSupportedProviderIdentityIds, i_ as he, i$ as hu, j0 as isGdsActivityPictogramKey, j1 as isGdsChartSetAType, j2 as isGdsChartSetBType, j3 as isGdsChartSetCType, j4 as isPresentationMode, j5 as it, j6 as ja, j7 as ko, j8 as mergeGdsVocabularyPacks, j9 as normalizeGdsResponsiveValue, ja as redactGdsAccessGateMetadata, jb as registerGdsBlock, jc as renderGdsCopyTemplate, jd as renderGdsLayout, je as renderGdsLayoutWithDiagnostics, jf as resolveAccentPanelStyles, jg as resolveGdsAccessAdapterState, jh as resolveGdsAccessState, ji as resolveGdsActivityPictogramLabel, jj as resolveGdsCardContract, jk as resolveGdsLayoutStyle, jl as resolveGdsLocale, jm as resolveGdsMessage, jn as resolveSemanticActionConfig, jo as resolveSurfacePresentationStyles, jp as ru, jq as sortGdsAccessGateActions, jr as sortGdsLocaleStrings, js as useGdsDirection, jt as validateCreatorCss, ju as validateGdsAccessGateContract, jv as validateGdsAccessibilityEvidence, jw as validateGdsChartData, jx as validateGdsContentPatterns, jy as validateGdsCopyTemplate, jz as validateGdsDesignHandoffMappings, jA as validateGdsLayout, jB as validateGdsPageTemplates, jC as validateGdsTaskPatterns, jD as zh } from './QuickStartCard-CB7r-85z.js';
3
3
  import * as _mantine_core from '@mantine/core';
4
- import { MantineThemeOverride, ButtonProps, MantineColor, MantineSpacing, MantineBreakpoint, NativeSelectProps, NavLinkProps, ModalProps, DrawerProps } from '@mantine/core';
4
+ import { ButtonProps, MantineColor, MantineSpacing, MantineBreakpoint, NativeSelectProps, NavLinkProps, ModalProps, DrawerProps } from '@mantine/core';
5
5
  export { Accordion, AccordionProps, ActionIcon, ActionIconProps, Anchor, AnchorProps, Badge, BadgeProps, Box, BoxProps, Button, ButtonProps, Center, CenterProps, Checkbox, CheckboxProps, Container, ContainerProps, Group, GroupProps, Loader, LoaderProps, Modal, ModalProps, MultiSelect, MultiSelectProps, NumberInput, NumberInputProps, PasswordInput, PasswordInputProps, Progress, ProgressProps, Radio, RadioProps, ScrollArea, ScrollAreaProps, Select, SelectProps, SimpleGrid, SimpleGridProps, Slider, SliderProps, Stack, StackProps, Switch, SwitchProps, Table, TableProps, Tabs, TabsProps, TextInput, TextInputProps, Textarea, TextareaProps, ThemeIcon, ThemeIconProps, Tooltip, TooltipProps } from '@mantine/core';
6
6
  import * as react from 'react';
7
- import react__default, { ReactNode } from 'react';
8
- import { GdsThemePresetId, GdsFontLaneId } from '@sovereignsquad/gds-theme';
7
+ import react__default, { ReactNode, CSSProperties, RefObject, ComponentPropsWithoutRef } from 'react';
8
+ export { c as GDS_PIN_SILHOUETTE_PATH, d as GdsBadge, a as GdsBadgeAccentName, G as GdsBadgeAccentShade, e as GdsBadgeProps, f as GdsBadgeShapeCircle, g as GdsBadgeShapeHexagon, h as GdsBadgeShapeName, i as GdsBadgeShapePin, j as GdsBadgeShapeRosette, k as GdsBadgeShapeShield, l as GdsBadgeShapeSquircle, m as GdsBadgeShapes, n as GdsBadgeTone, o as GdsIcon, p as GdsIconA11yMode, q as GdsIconCategory, b as GdsIconKey, r as GdsIconMetadata, s as GdsIconName, t as GdsIconProps, u as GdsIconTone, v as GdsIcons, w as gdsBadgeAccentColors, x as gdsBadgeAccentShades, y as gdsIconRegistry, z as gdsIconToneColor, A as getGdsIconKeys, B as getGdsIconMetadata, C as getGdsIconToneColor, D as isGdsIconKey } from './GdsBadge-DqTdnomt.js';
9
+ import { GdsDensityMode } from '@sovereignsquad/gds-theme';
10
+ export { GdsDensityMode } from '@sovereignsquad/gds-theme';
11
+ export { e as en } from './en-Dd7uvXnv.js';
9
12
  import '@tabler/icons-react';
10
13
 
14
+ /** Props for `ConfirmDialog`. */
11
15
  interface ConfirmDialogProps {
12
16
  opened: boolean;
13
17
  onClose: () => void;
14
18
  onConfirm: () => void;
15
19
  title: string;
16
20
  children: ReactNode;
21
+ /** Semantic action id for the confirm button; defaults to `confirm`. */
17
22
  confirmAction?: SemanticAction;
23
+ /** Semantic action id for the cancel button; defaults to `cancel`. */
18
24
  cancelAction?: SemanticAction;
25
+ /** Styles the confirm button as destructive (red); defaults to true. */
19
26
  isDanger?: boolean;
27
+ /** Shows the confirm button in a loading state and disables cancel; defaults to false. */
20
28
  loading?: boolean;
21
29
  }
22
30
  /**
@@ -24,8 +32,11 @@ interface ConfirmDialogProps {
24
32
  */
25
33
  declare function ConfirmDialog({ opened, onClose, onConfirm, title, children, confirmAction, cancelAction, isDanger, loading, }: ConfirmDialogProps): react.JSX.Element;
26
34
 
35
+ /** Props for the `ThemeToggle` component. */
27
36
  interface ThemeToggleProps {
37
+ /** Icon button size. Defaults to `xl` (44px — GDS's own touch-target floor, GDS_MIN_TARGET_PX). */
28
38
  size?: 'sm' | 'md' | 'lg' | 'xl';
39
+ /** Called with the newly selected scheme after each toggle. */
29
40
  onColorSchemeChange?: (nextScheme: 'light' | 'dark') => void;
30
41
  }
31
42
  /**
@@ -34,39 +45,80 @@ interface ThemeToggleProps {
34
45
  */
35
46
  declare function ThemeToggle({ size, onColorSchemeChange }: ThemeToggleProps): react.JSX.Element;
36
47
 
37
- type ThemePresetId = GdsThemePresetId;
38
- type ThemeSchemeId = 'light' | 'dark' | 'auto';
39
- interface ThemeExplorerSelection {
40
- preset: ThemePresetId;
41
- colorScheme: ThemeSchemeId;
42
- theme: MantineThemeOverride;
43
- fontLane?: GdsFontLaneId;
44
- runtimeKey?: string;
45
- brandPrimary?: string;
46
- brandFlatSurfaces?: boolean;
47
- brandEditorialSerif?: boolean;
48
- }
49
- declare function ReferenceThemeExplorer({ initialSelection, onSelectionChange, }: {
50
- initialSelection?: ThemeExplorerSelection;
51
- onSelectionChange?: (selection: ThemeExplorerSelection) => void;
52
- }): react.JSX.Element;
53
-
48
+ /**
49
+ * How long a transient success/error feedback treatment stays on the button before it reverts
50
+ * to its resting label. Exported so documentation surfaces read the real value rather than
51
+ * restating it (Rule 14) -- a change here changes both the behaviour and the page.
52
+ */
53
+ declare const GDS_BUTTON_FEEDBACK_DURATION_MS = 2000;
54
+ /**
55
+ * Minimum label typography for the `gradient` brand intent (issue 700). White label text on
56
+ * the reserved Scout AI gradient fill (issue 697) clears only the WCAG non-text threshold
57
+ * (3:1) -- the `ai-accent-text-contrast` accessibility-floor rule measures and reports this
58
+ * every run -- never the 4.5:1 normal-text floor, so the gradient intent's label is held at or
59
+ * above this size and weight as a hard component invariant rather than relying on a preset to
60
+ * compensate.
61
+ */
62
+ declare const GDS_BUTTON_GRADIENT_TEXT_FLOOR: {
63
+ readonly fontSizePx: 14;
64
+ readonly fontWeight: 600;
65
+ };
66
+ /** Outline stroke width for the `outline-accent` brand intent, in px (issue 700). */
67
+ declare const GDS_BUTTON_OUTLINE_ACCENT_STROKE_PX = 1.5;
68
+ /** Props for `SemanticButton`; extends Mantine `ButtonProps` and the native button attributes. */
54
69
  interface SemanticButtonProps extends ButtonProps, Omit<react__default.ComponentPropsWithoutRef<'button'>, keyof ButtonProps | 'leftSection' | 'children'> {
70
+ /** Governed semantic action id whose label and icon are resolved from the vocabulary. */
55
71
  action: SemanticActionId;
56
- brandVariant?: 'primary' | 'secondary' | 'accent' | 'disabled';
72
+ /**
73
+ * Applies a brand color treatment; the `disabled` variant also disables the button.
74
+ * `outline-accent` (transparent fill, accent stroke and label) and `gradient` (the reserved
75
+ * Scout AI gradient fill, issue 697, over a solid primary-chain fallback where a preset
76
+ * declares no `ai` lane) are issue 700: their full hover/pressed/disabled state axis lives in
77
+ * `packages/gds-theme/styles.css`, keyed on the `data-gds-brand-button` attribute this
78
+ * component emits, because a stylesheet `:hover`/`:active` rule cannot override an inline
79
+ * style. Never combine either with a destructive action -- style those through the existing
80
+ * `danger` vocabulary intent instead.
81
+ */
82
+ brandVariant?: 'primary' | 'secondary' | 'accent' | 'disabled' | 'outline-accent' | 'gradient';
57
83
  loading?: boolean;
84
+ /** Triggers a transient success/error feedback treatment (icon, color, label) for ~2s. */
58
85
  feedbackState?: 'success' | 'error' | null;
86
+ /** Overrides the label shown during a feedback state. */
59
87
  feedbackText?: string;
88
+ /** Renders the untranslated label on first paint to avoid a hydration mismatch, then upgrades; defaults to true. */
60
89
  prerenderLabelOnly?: boolean;
90
+ /** Additional vocabulary packs consulted when resolving the action's label and icon. */
61
91
  vocabularyPacks?: GdsVocabularyPack[];
92
+ /**
93
+ * Overrides the rendered label with an arbitrary node instead of the vocabulary-resolved
94
+ * string -- the vocabulary system is string-only by design (it exists to keep a label
95
+ * translated and consistent everywhere the same `action` appears), so a caller that genuinely
96
+ * needs non-string content (e.g. a caller-supplied `ReactNode` label prop of its own) sets this
97
+ * rather than reimplementing button chrome locally. The icon, `feedbackState`, and
98
+ * `prerenderLabelOnly` behavior are unaffected -- only the text content changes.
99
+ */
100
+ label?: react__default.ReactNode;
62
101
  }
63
- declare function SemanticButton({ action, brandVariant, loading, feedbackState, feedbackText, prerenderLabelOnly, vocabularyPacks, ...props }: SemanticButtonProps): react__default.JSX.Element;
102
+ /**
103
+ * Button whose label is resolved from a governed semantic `action` id (via the GDS
104
+ * vocabulary) rather than a hardcoded string, so the same action reads and
105
+ * localizes consistently everywhere it appears. Supports brand variants, a
106
+ * `loading` busy state, and transient success/error feedback. Use it for any
107
+ * action tied to a known semantic verb; fall back to Mantine's raw `Button` only
108
+ * for one-off actions with no vocabulary entry.
109
+ */
110
+ declare function SemanticButton({ action, brandVariant, loading, feedbackState, feedbackText, prerenderLabelOnly, vocabularyPacks, label: labelOverride, ...props }: SemanticButtonProps): react__default.JSX.Element;
64
111
 
112
+ /** Props for {@link GameBoardTile}. */
65
113
  interface GameBoardTileProps {
114
+ /** Content shown on the tile's revealed face. */
66
115
  face: ReactNode;
116
+ /** Whether the tile is currently face-up. */
67
117
  revealed: boolean;
118
+ /** Whether the tile has been matched (dimmed, no highlight). */
68
119
  matched: boolean;
69
120
  disabled: boolean;
121
+ /** Called when the tile is pressed. */
70
122
  onPress: () => void;
71
123
  /** Mantine color token for revealed (non-matched) highlight, e.g. `violet.5` or product primary. */
72
124
  highlightColor?: MantineColor;
@@ -77,18 +129,71 @@ interface GameBoardTileProps {
77
129
  */
78
130
  declare function GameBoardTile({ face, revealed, matched, disabled, onPress, highlightColor, }: GameBoardTileProps): react.JSX.Element;
79
131
 
132
+ /** Props for {@link GdsDensityProvider}. */
133
+ interface GdsDensityProviderProps {
134
+ /** Ambient density mode applied to the subtree. */
135
+ density: GdsDensityMode;
136
+ children: ReactNode;
137
+ }
138
+ /** Sets the ambient density mode read by `useGdsDensity()` for its descendants. */
139
+ declare function GdsDensityProvider({ density, children }: GdsDensityProviderProps): react.JSX.Element;
140
+ /** Reads the ambient density mode set by the nearest `GdsDensityProvider` (defaults to `'comfortable'` outside one). */
141
+ declare function useGdsDensity(): GdsDensityMode;
142
+ /**
143
+ * Density-aware wrapper around `resolveGdsCardContract`: falls back to the
144
+ * ambient `useGdsDensity()` value when `density` isn't explicitly passed,
145
+ * instead of `resolveGdsCardContract`'s own hardcoded `'comfortable'` default.
146
+ * Existing direct callers of `resolveGdsCardContract` are unaffected.
147
+ */
148
+ declare function useGdsCardContract(options?: GdsCardContractOptions): GdsCardResolvedContract;
149
+
150
+ /** Props for {@link ProviderCTA}. */
151
+ interface ProviderCTAProps {
152
+ /** Panel headline. Defaults to the localized claim headline. */
153
+ headline?: ReactNode;
154
+ /** Panel body copy. Defaults to the localized claim body copy. */
155
+ body?: ReactNode;
156
+ /** Primary action's label. Defaults to the localized claim action label. */
157
+ actionLabel?: ReactNode;
158
+ /** Fires when the primary action is activated. */
159
+ onAction: () => void;
160
+ /** Ghost secondary action's label; the button renders only when this is given. */
161
+ secondaryLabel?: ReactNode;
162
+ /** Fires when the secondary action is activated. A no-op if `secondaryLabel` is given without this. */
163
+ onSecondary?: () => void;
164
+ }
165
+ /**
166
+ * Governed provider-claim panel: a calm, factual card prompting "are you the
167
+ * provider?" with a headline, body copy, and a primary + optional ghost action
168
+ * pair, both rendered through the governed button lane (`SemanticButton`) so
169
+ * their hover/press/focus treatment is never reimplemented locally. Fires only
170
+ * the callbacks it is given — it never navigates, fetches, or mutates data
171
+ * itself, and carries no claim workflow of its own. Every default is a
172
+ * localized value from the gds-core locale packs.
173
+ */
174
+ declare function ProviderCTA({ headline, body, actionLabel, onAction, secondaryLabel, onSecondary, }: ProviderCTAProps): react.JSX.Element;
175
+
176
+ /** Serializable query state for a listing surface: search, sort, active filters, pagination, and row selection. */
80
177
  interface ListingQueryState {
81
178
  search: string;
82
179
  sort: string;
83
180
  filters: string[];
84
181
  page: number;
85
182
  pageSize: number;
183
+ /** Ids of currently selected rows. */
86
184
  selection: string[];
87
185
  }
186
+ /** Initial defaults for a listing's query state. */
88
187
  interface ListingStateConfig {
188
+ /** Initial sort; defaults to `'newest'`. */
89
189
  defaultSort?: string;
190
+ /** Initial page size; defaults to 25. */
90
191
  defaultPageSize?: number;
91
192
  }
193
+ /**
194
+ * Reducer actions for {@link ListingQueryState}. Search/sort/filter/page-size
195
+ * changes reset to page 1 and clear the selection; `reset-query` restores defaults.
196
+ */
92
197
  type ListingAction = {
93
198
  type: 'set-search';
94
199
  value: string;
@@ -114,17 +219,75 @@ type ListingAction = {
114
219
  } | {
115
220
  type: 'reset-query';
116
221
  };
222
+ /** Context value exposed by {@link ListingProvider}: the current query state and its dispatch. */
117
223
  interface ListingStateValue {
118
224
  state: ListingQueryState;
119
225
  dispatch: (action: ListingAction) => void;
120
226
  }
227
+ /**
228
+ * Reducer for {@link ListingQueryState}. Search/sort/filter/page-size changes reset
229
+ * the page to 1 and clear the selection; page numbers are clamped to at least 1;
230
+ * filter and selection toggles add/remove the value; `reset-query` restores the
231
+ * initial state while preserving the current sort and page size.
232
+ */
121
233
  declare function listingQueryReducer(state: ListingQueryState, action: ListingAction): ListingQueryState;
234
+ /** Provides {@link ListingQueryState} and its dispatch to descendants via context, seeded from `config`. */
122
235
  declare function ListingProvider({ children, config, }: {
123
236
  children: ReactNode;
124
237
  config?: ListingStateConfig;
125
238
  }): react.JSX.Element;
239
+ /** Returns the nearest {@link ListingStateValue}; throws when used outside a {@link ListingProvider}. */
126
240
  declare function useListingState(): ListingStateValue;
127
241
 
242
+ /** Options for {@link useGdsBrowseSelection}. */
243
+ interface GdsBrowseSelectionOptions {
244
+ /** Uncontrolled initial selection. Ignored once `selectedId` is supplied (controlled mode). */
245
+ defaultSelectedId?: string | null;
246
+ /**
247
+ * Controlled selection. Once supplied (including `null`), the hook mirrors this value instead
248
+ * of managing its own state, and every transition reports through `onChange` rather than
249
+ * mutating internally.
250
+ */
251
+ selectedId?: string | null;
252
+ /** Fires whenever the selection changes, in both controlled and uncontrolled mode. */
253
+ onChange?: (selectedId: string | null) => void;
254
+ }
255
+ /** Return value of {@link useGdsBrowseSelection}: the current selection plus its transitions. */
256
+ interface GdsBrowseSelection {
257
+ /** The currently selected id, or `null` when nothing is selected. */
258
+ selectedId: string | null;
259
+ /** True when `id` is the current selection. */
260
+ isSelected: (id: string) => boolean;
261
+ /** Selects `id` outright, replacing any prior selection. */
262
+ select: (id: string) => void;
263
+ /** Selects `id`, or clears the selection when `id` is already selected. */
264
+ toggle: (id: string) => void;
265
+ /** Clears the selection. */
266
+ clear: () => void;
267
+ }
268
+ /**
269
+ * Single-selection state shareable between a `ListingCard` list and a set of `GdsMapPinBadge`
270
+ * pins in a browse surface: one id drives both the selected card's ring treatment (`selected`
271
+ * prop) and the matching pin's `state="selected"` — the "selected card = selected pin" behavior
272
+ * a browse split view needs, without every consumer reinventing the sync (issue 701).
273
+ *
274
+ * Works uncontrolled (internal state, the default) or controlled (mirrors `selectedId`, calling
275
+ * `onChange` instead of self-managing — controlled mode never mutates internal state). `select`
276
+ * accepts any id, including one not present in the rendered list; `toggle` selects, or clears
277
+ * when the id is already current; `clear` always clears. A pure client-side state mechanism — no
278
+ * timers, no async, no persistence — SSR-safe by the `.client.ts` convention (excluded from the
279
+ * package's server barrel).
280
+ *
281
+ * @example
282
+ * ```tsx
283
+ * const browse = useGdsBrowseSelection();
284
+ * <ListingCard title="Riverside Field" selected={browse.isSelected('riverside')} onSurfaceActivate={() => browse.toggle('riverside')} />
285
+ * <GdsMapPinBadge accent="forest" icon="Location" label="Riverside Field" state={browse.isSelected('riverside') ? 'selected' : 'idle'} />
286
+ * ```
287
+ */
288
+ declare function useGdsBrowseSelection(options?: GdsBrowseSelectionOptions): GdsBrowseSelection;
289
+
290
+ /** Sidebar open/close state plus imperative controls returned by `useDiscoveryShellState`. */
128
291
  interface DiscoveryShellState {
129
292
  opened: boolean;
130
293
  open: () => void;
@@ -132,83 +295,162 @@ interface DiscoveryShellState {
132
295
  toggle: () => void;
133
296
  setOpened: (next: boolean) => void;
134
297
  }
298
+ /** Options for `useDiscoveryShellState`. */
135
299
  interface UseDiscoveryShellStateOptions {
300
+ /** Initial open state before any stored value is read; defaults to false. */
136
301
  defaultSidebarOpen?: boolean;
302
+ /** localStorage key used to persist and restore the sidebar open state. */
137
303
  sidebarStorageKey?: string;
304
+ /** Called whenever the open state changes. */
138
305
  onSidebarOpenedChange?: (opened: boolean) => void;
139
306
  }
307
+ /**
308
+ * Manages sidebar open/close state for `DiscoveryShell`, optionally persisting it
309
+ * to `localStorage` under `sidebarStorageKey` and notifying `onSidebarOpenedChange`.
310
+ */
140
311
  declare function useDiscoveryShellState({ defaultSidebarOpen, sidebarStorageKey, onSidebarOpenedChange, }?: UseDiscoveryShellStateOptions): DiscoveryShellState;
312
+ /** Props for `DiscoveryShell`. */
141
313
  interface DiscoveryShellProps {
142
314
  header?: ReactNode;
143
315
  sidebar: ReactNode;
144
316
  footer?: ReactNode;
145
317
  children: ReactNode;
318
+ /** Accessible label for the mobile navigation toggle; defaults to "Toggle navigation". */
146
319
  mobileNavigationLabel?: string;
320
+ /** Hides this shell's own mobile navigation burger — for a caller (e.g. `DocsShell` in `inline-collapse` mode) that renders its own mobile toggle instead, so the two don't both render side by side. Defaults to false. */
321
+ hideMobileNavigationToggle?: boolean;
147
322
  defaultSidebarOpen?: boolean;
148
323
  sidebarStorageKey?: string;
324
+ /** Controlled sidebar open state; when set, the shell defers to the caller instead of its own state. */
149
325
  sidebarOpened?: boolean;
150
326
  onSidebarOpenedChange?: (opened: boolean) => void;
327
+ /** Keeps the sidebar sticky within the viewport; defaults to true. */
151
328
  stickySidebar?: boolean;
329
+ /** Allows collapsing the sidebar on desktop via a burger; defaults to false. */
152
330
  desktopCollapsible?: boolean;
331
+ /** Accessible label for the desktop sidebar toggle; defaults to "Toggle sidebar". */
153
332
  desktopNavigationLabel?: string;
333
+ /** Sidebar width; defaults to `var(--gds-layout-sidebar-width, 280px)`. */
154
334
  sidebarWidth?: number | string;
335
+ /** Header height; defaults to `var(--gds-layout-header-height, 60px)`. */
155
336
  headerHeight?: number | string;
337
+ /** Main-content padding; defaults to "md". */
156
338
  shellPadding?: MantineSpacing | number;
339
+ /** Breakpoint at which the sidebar collapses into the mobile drawer; defaults to "sm". */
157
340
  collapseBreakpoint?: MantineBreakpoint;
341
+ /** Closes the mobile drawer when a nav item is activated; defaults to true. */
158
342
  closeMobileNavigationOnItemSelect?: boolean;
159
343
  }
160
344
  /**
161
345
  * DiscoveryShell is the canonical sidebar-first application shell for GDS.
162
346
  * It owns the responsive header, sidebar, and main-content layout contract.
163
347
  */
164
- declare function DiscoveryShell({ header, sidebar, footer, children, mobileNavigationLabel, defaultSidebarOpen, sidebarStorageKey, sidebarOpened, onSidebarOpenedChange, stickySidebar, desktopCollapsible, desktopNavigationLabel, sidebarWidth, headerHeight, shellPadding, collapseBreakpoint, closeMobileNavigationOnItemSelect, }: DiscoveryShellProps): react.JSX.Element;
348
+ declare function DiscoveryShell({ header, sidebar, footer, children, mobileNavigationLabel: mobileNavigationLabelProp, hideMobileNavigationToggle, defaultSidebarOpen, sidebarStorageKey, sidebarOpened, onSidebarOpenedChange, stickySidebar, desktopCollapsible, desktopNavigationLabel: desktopNavigationLabelProp, sidebarWidth, headerHeight, shellPadding, collapseBreakpoint, closeMobileNavigationOnItemSelect, }: DiscoveryShellProps): react.JSX.Element;
165
349
 
350
+ /** Props for {@link DocsShell}. */
166
351
  interface DocsShellProps {
167
352
  brand: ReactNode;
353
+ /** Main navigation shown in the sidebar under a "Primary" heading. */
168
354
  primaryNavigation?: ReactNode;
355
+ /** Secondary navigation shown in the sidebar under a "More" heading. */
169
356
  secondaryNavigation?: ReactNode;
357
+ /** Contextual text shown next to the brand on wider viewports. */
170
358
  headerContext?: ReactNode;
171
359
  actions?: ReactNode;
360
+ /** Navigation surfaced on small viewports. */
172
361
  mobileNavigation?: ReactNode;
362
+ /** Whether mobile navigation collapses inline under the header or opens in a drawer. Defaults to `'drawer'`. */
173
363
  mobileNavigationMode?: 'inline-collapse' | 'drawer';
174
364
  footer?: ReactNode;
175
365
  children: ReactNode;
366
+ /** Content container width; `'full'` spans the viewport. Defaults to `'full'`. */
176
367
  contentWidth?: number | 'sm' | 'md' | 'lg' | 'xl' | 'full';
177
368
  }
369
+ /** A single option in a {@link DocsHeaderActionSelect}. */
178
370
  interface DocsHeaderActionSelectOption {
179
371
  value: string;
180
372
  label: string;
181
373
  }
374
+ /** Props for {@link DocsHeaderActionSelect}. */
182
375
  interface DocsHeaderActionSelectProps extends Omit<NativeSelectProps, 'data' | 'onChange'> {
376
+ /** Accessible label for the select (rendered as `aria-label`). */
183
377
  label: string;
184
378
  options: DocsHeaderActionSelectOption[];
379
+ /** Called with the selected option's value. */
185
380
  onChange: (value: string) => void;
186
381
  }
382
+ /** Compact, width-clamped native select for the docs header action row (e.g. version/language pickers). */
187
383
  declare function DocsHeaderActionSelect({ label, options, value, onChange, ...props }: DocsHeaderActionSelectProps): react.JSX.Element;
384
+ /**
385
+ * Documentation app shell built on {@link DiscoveryShell}: a brand/context header
386
+ * with actions, a primary/secondary sidebar, optional inline-collapse or drawer
387
+ * mobile navigation, and a width-constrained content container.
388
+ */
188
389
  declare function DocsShell({ brand, primaryNavigation, secondaryNavigation, headerContext, actions, mobileNavigation, mobileNavigationMode, footer, children, contentWidth, }: DocsShellProps): react.JSX.Element;
189
390
 
391
+ /** Props for {@link SidebarNav}, the `<nav>` container. */
190
392
  interface SidebarNavProps {
191
393
  children: ReactNode;
394
+ /**
395
+ * Accessible label for the nav landmark; defaults to the `gds.sidebarNav.ariaLabel` phrase
396
+ * ("Primary navigation"). Give each `SidebarNav` on a page a distinct label, for example when a
397
+ * shell renders one in `primaryNavigation` and another in `secondaryNavigation`.
398
+ */
192
399
  ariaLabel?: string;
400
+ /** Vertical gap between sections; defaults to `'md'`. */
193
401
  gap?: string | number;
194
402
  }
403
+ /** Props for {@link SidebarNavSection}, a labeled group of nav items. */
195
404
  interface SidebarNavSectionProps {
405
+ /** Optional group heading. */
196
406
  label?: ReactNode;
197
407
  children: ReactNode;
408
+ /** When true, pushes the section to the bottom of the sidebar (via `margin-top: auto`). */
198
409
  pushToBottom?: boolean;
199
410
  }
411
+ /** Props for {@link SidebarNavItem}; extends Mantine `NavLinkProps` but owns `label`/`leftSection`/`description`. */
200
412
  interface SidebarNavItemProps extends Omit<NavLinkProps, 'label' | 'leftSection' | 'description'> {
413
+ /** Semantic action id; supplies a default label and icon from the vocabulary. */
201
414
  action?: SemanticActionId;
415
+ /** Explicit label; overrides the label derived from `action`. */
202
416
  label?: ReactNode;
203
417
  description?: ReactNode;
418
+ /** Content rendered in the item's right section. */
204
419
  badge?: ReactNode;
420
+ /** Explicit leading icon; overrides the icon derived from `action`. */
205
421
  icon?: ReactNode;
206
422
  'aria-label'?: string;
207
423
  'aria-current'?: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false';
424
+ /** Vocabulary packs consulted to resolve `action` labels and icons. */
208
425
  vocabularyPacks?: GdsVocabularyPack[];
209
426
  }
210
- declare function SidebarNav({ children, ariaLabel, gap }: SidebarNavProps): react.JSX.Element;
427
+ /**
428
+ * Full-height sidebar navigation landmark that stacks its sections inside a labeled `<nav>`. This
429
+ * is the content shell navigation slots expect (`primaryNavigation` and `secondaryNavigation` on
430
+ * `DocsShell` and the `gds-admin` `AppShell`). Inside a shell sidebar it is a second, labelled
431
+ * `<nav>` within the shell's unlabelled navbar `<nav>`.
432
+ */
433
+ declare function SidebarNav({ children, ariaLabel: ariaLabelProp, gap }: SidebarNavProps): react.JSX.Element;
434
+ /** Groups sidebar items under an optional heading; `pushToBottom` anchors the group to the bottom of the sidebar. */
211
435
  declare function SidebarNavSection({ label, children, pushToBottom }: SidebarNavSectionProps): react.JSX.Element;
436
+ /**
437
+ * Polymorphic sidebar nav item built on Mantine `NavLink`. Resolves its label and
438
+ * leading icon from a semantic `action` (via the vocabulary/translation) unless
439
+ * overridden, mirrors the active state into `aria-current="page"`, and renders any
440
+ * `badge` in the right section. Renders as an `<a>` by default.
441
+ *
442
+ * Pick the element by what the item does. A routed item passes `href` (or `component={Link}`
443
+ * with `href`). An item that switches in-memory view state passes `component="button"` and
444
+ * `onClick`, and renders `<button type="button">`. `active` sets `aria-current="page"` on both.
445
+ * An item with only `onClick` renders an `<a>` without `href`, which is not in the tab order and
446
+ * exposes no link or button role; `data-gds-nav-close` does not make it reachable.
447
+ *
448
+ * @example
449
+ * ```tsx
450
+ * <SidebarNavItem href="/records" label="Records" active={pathname === '/records'} />
451
+ * <SidebarNavItem component="button" label="Map" active={view === 'map'} onClick={() => setView('map')} />
452
+ * ```
453
+ */
212
454
  declare const SidebarNavItem: (<C = "a">(props: _mantine_core.PolymorphicComponentProps<C, SidebarNavItemProps>) => React.ReactElement) & Omit<react.FunctionComponent<(SidebarNavItemProps & {
213
455
  component?: any;
214
456
  } & Omit<Omit<any, "ref">, "component" | keyof SidebarNavItemProps> & {
@@ -219,105 +461,169 @@ declare const SidebarNavItem: (<C = "a">(props: _mantine_core.PolymorphicCompone
219
461
  renderRoot?: (props: Record<string, any>) => any;
220
462
  })>, never> & Record<string, never>;
221
463
 
464
+ /** Props for {@link DocsCodeBlock}. */
222
465
  interface DocsCodeBlockProps {
223
466
  code: string;
224
467
  language?: string;
225
468
  title?: string;
469
+ /** Show the copy-to-clipboard button; defaults to on. */
226
470
  withCopy?: boolean;
227
471
  }
472
+ /** Renders a code block in a bordered panel with an optional title, language label, and copy-to-clipboard action. */
228
473
  declare function DocsCodeBlock({ code, language, title, withCopy }: DocsCodeBlockProps): react.JSX.Element;
229
474
 
475
+ /** A share destination: the Web Share API (`native`), clipboard (`copy`), or a specific network. */
230
476
  type ShareChannel = 'native' | 'copy' | 'mail' | 'message' | 'x' | 'facebook' | 'linkedin' | 'whatsapp' | 'telegram';
477
+ /** Props for {@link ShareButtonGroup}. */
231
478
  interface ShareButtonGroupProps {
479
+ /** URL to share. */
232
480
  url: string;
233
481
  title?: string;
234
482
  text?: string;
483
+ /** Channels to render, in order. Defaults to `['native', 'copy', 'mail']`. */
235
484
  channels?: ShareChannel[];
485
+ /** Render icon-only action buttons instead of labelled buttons. */
236
486
  compact?: boolean;
487
+ /** Heading above the buttons. Defaults to `'Share this'`. */
237
488
  label?: ReactNode;
238
489
  description?: ReactNode;
239
490
  }
240
- declare function ShareButtonGroup({ url, title, text, channels, compact, label, description, }: ShareButtonGroupProps): react.JSX.Element;
491
+ /**
492
+ * Governed share affordance rendering a chosen set of {@link ShareChannel}s.
493
+ * `native` uses the Web Share API (falling back to copy), `copy` writes the URL
494
+ * to the clipboard, and network channels open pre-encoded share intents, each
495
+ * with a transient confirmation message.
496
+ */
497
+ declare function ShareButtonGroup({ url, title, text, channels, compact, label: labelProp, description, }: ShareButtonGroupProps): react.JSX.Element;
241
498
 
499
+ /** Visual/interaction state of an `UploadDropzone`. */
242
500
  type UploadDropzoneState = 'idle' | 'drag-active' | 'selected' | 'upload-pending' | 'upload-failed' | 'unsupported-type' | 'too-large' | 'removed' | 'readonly';
501
+ /** Props for `UploadDropzone`. */
243
502
  interface UploadDropzoneProps {
244
503
  title: string;
245
504
  description?: string;
505
+ /** Called with the chosen files on drop or file-picker selection. */
246
506
  onFilesSelected?: (files: File[]) => void;
507
+ /** `accept` attribute forwarded to the underlying file input. */
247
508
  accept?: string;
509
+ /** Badge summarizing the accepted file types. */
248
510
  acceptedTypesLabel?: string;
511
+ /** Badge summarizing the maximum file size. */
249
512
  maxSizeLabel?: string;
513
+ /** Allows selecting multiple files; defaults to true. */
250
514
  multiple?: boolean;
515
+ /** Label for the choose-files button; defaults to "Choose files". */
251
516
  actionLabel?: string;
517
+ /** Layout density; `panel` (default) or condensed `inline`. */
252
518
  mode?: 'panel' | 'inline';
519
+ /** Controlled dropzone state; defaults to `idle`. */
253
520
  state?: UploadDropzoneState;
521
+ /** Names of already-selected files, listed below the prompt. */
254
522
  selectedFiles?: string[];
523
+ /** Error message shown in the alert region. */
255
524
  error?: string;
525
+ /** Policy or help text shown near the actions. */
256
526
  policyText?: string;
527
+ /** Upload progress (0–100), shown while in the `upload-pending` state. */
257
528
  progressValue?: number;
529
+ /** `id` applied to the file input. */
258
530
  inputId?: string;
531
+ /** `aria-describedby` applied to the file input. */
259
532
  describedBy?: string;
533
+ /** Forces the invalid/error styling regardless of `state`. */
260
534
  invalid?: boolean;
535
+ /** Marks the file input as required. */
261
536
  required?: boolean;
537
+ /** Retry control shown alongside the choose-files button. */
262
538
  retryAction?: ReactNode;
539
+ /** Remove control shown alongside the choose-files button. */
263
540
  removeAction?: ReactNode;
541
+ /** Renders a non-interactive, disabled dropzone; defaults to false. */
264
542
  readonly?: boolean;
265
543
  }
266
- declare function UploadDropzone({ title, description, onFilesSelected, accept, acceptedTypesLabel, maxSizeLabel, multiple, actionLabel, mode, state, selectedFiles, error, policyText, progressValue, inputId, describedBy, invalid, required, retryAction, removeAction, readonly, }: UploadDropzoneProps): react.JSX.Element;
544
+ /**
545
+ * Accessible drag-and-drop upload zone with governed states (idle, drag-active,
546
+ * selected, upload-pending with a progress bar, and error variants), an
547
+ * accepted-types / max-size summary, and optional retry/remove actions. Forwards
548
+ * selected files via `onFilesSelected`; file transport is owned by the caller.
549
+ */
550
+ declare function UploadDropzone({ title, description, onFilesSelected, accept, acceptedTypesLabel, maxSizeLabel, multiple, actionLabel: actionLabelProp, mode, state, selectedFiles, error, policyText, progressValue, inputId, describedBy, invalid, required, retryAction, removeAction, readonly, }: UploadDropzoneProps): react.JSX.Element;
267
551
 
552
+ /** How an asset's media is fitted in previews: the underlying `MediaFit` values plus `'crop'`. */
268
553
  type GdsAssetDisplayMode = MediaFit | 'crop';
554
+ /** Lifecycle state of an asset as it moves through validation, upload, and metadata capture. */
269
555
  type GdsAssetStatus = 'empty' | 'validating' | 'uploading' | 'processing' | 'ready' | 'failed' | 'retrying' | 'metadata-incomplete';
556
+ /** A managed media asset with its source, metadata, and current lifecycle status. */
270
557
  interface GdsAsset {
271
558
  id: string;
272
559
  url?: string;
273
560
  thumbnailUrl?: string;
274
561
  fileName: string;
275
562
  mimeType: string;
563
+ /** Size in bytes. */
276
564
  size: number;
565
+ /** Alternative text; required before publish when the alt-text policy demands it. */
277
566
  alt?: string;
278
567
  caption?: string;
279
568
  status: GdsAssetStatus;
280
569
  displayMode?: GdsAssetDisplayMode;
281
570
  }
571
+ /** Policy for which accessibility metadata must be present before an asset is `ready`. */
282
572
  interface GdsAltTextPolicy {
573
+ /** Require non-empty alt text before the asset is considered complete. */
283
574
  requireAlt?: boolean;
575
+ /** Require a non-empty caption before the asset is considered complete. */
284
576
  requireCaption?: boolean;
285
577
  }
578
+ /** Validation policy for accepted file types and size, extending the alt-text requirements. */
286
579
  interface GdsAssetValidationPolicy extends GdsAltTextPolicy {
580
+ /** Allowed MIME types; when set, other types fail validation. */
287
581
  acceptedTypes?: string[];
582
+ /** Maximum file size in bytes. */
288
583
  maxSizeBytes?: number;
289
584
  }
585
+ /** A single upload request handed to a {@link GdsAssetAdapter}. */
290
586
  interface GdsAssetUploadRequest {
291
587
  file: File;
588
+ /** Abort signal wired to the queue's per-upload timeout. */
292
589
  signal?: AbortSignal;
590
+ /** Progress callback (0–100) the adapter should call as bytes upload. */
293
591
  onProgress?: (progress: number) => void;
294
592
  }
593
+ /** Pluggable transport for uploading, removing, and thumbnailing assets. */
295
594
  interface GdsAssetAdapter {
296
595
  upload: (request: GdsAssetUploadRequest) => Promise<GdsAsset>;
297
596
  remove?: (assetId: string) => Promise<void> | void;
298
597
  thumbnail?: (asset: GdsAsset) => Promise<string> | string;
299
598
  }
599
+ /** One entry in the upload queue, tracking its file, resolved asset, progress, and error. */
300
600
  interface GdsAssetQueueItem {
301
601
  id: string;
302
602
  fileName: string;
303
603
  file?: File;
304
604
  asset?: GdsAsset;
305
605
  status: GdsAssetStatus;
606
+ /** Upload progress, 0–100. */
306
607
  progress: number;
307
608
  error?: string;
308
609
  }
610
+ /** A metadata-only queue event emitted for observability (never carries file contents). */
309
611
  interface GdsAssetEvent {
310
612
  type: 'asset_selected' | 'validation_failed' | 'upload_started' | 'upload_failed' | 'upload_retry' | 'metadata_saved';
311
613
  timestamp: number;
614
+ /** Always `'metadata-only'` — a marker that no file bytes are included. */
312
615
  privacy: 'metadata-only';
313
616
  message?: string;
314
617
  }
618
+ /** Configuration for {@link useGdsAssetUploadQueue}. */
315
619
  interface UseGdsAssetUploadQueueConfig {
316
620
  adapter: GdsAssetAdapter;
317
621
  policy?: GdsAssetValidationPolicy;
318
622
  onEvent?: (event: GdsAssetEvent) => void;
623
+ /** Per-upload abort timeout in ms. Defaults to 10000. */
319
624
  timeoutMs?: number;
320
625
  }
626
+ /** Imperative controller returned by {@link useGdsAssetUploadQueue}. */
321
627
  interface GdsAssetUploadQueueController {
322
628
  items: GdsAssetQueueItem[];
323
629
  selectFiles: (files: File[]) => Promise<void>;
@@ -325,18 +631,23 @@ interface GdsAssetUploadQueueController {
325
631
  remove: (itemId: string) => Promise<void>;
326
632
  saveMetadata: (itemId: string, metadata: Pick<GdsAsset, 'alt' | 'caption' | 'displayMode'>) => void;
327
633
  }
634
+ /** Props for {@link GdsAssetPreviewCard}. */
328
635
  interface GdsAssetPreviewCardProps {
329
636
  asset: GdsAsset;
330
637
  aspectRatio?: MediaPreviewAspectRatio;
331
638
  actions?: ReactNode;
332
639
  }
640
+ /** Props for {@link GdsAssetManager}, combining the upload-queue config with presentation options. */
333
641
  interface GdsAssetManagerProps extends UseGdsAssetUploadQueueConfig {
334
642
  title: string;
335
643
  description?: string;
644
+ /** Allow selecting more than one file. Defaults to `true`. */
336
645
  multiple?: boolean;
337
646
  displayMode?: GdsAssetDisplayMode;
338
647
  }
648
+ /** Creates a default in-browser {@link GdsAssetAdapter} that uploads via `URL.createObjectURL` and leaves metadata incomplete. */
339
649
  declare function createGdsAssetAdapter(): GdsAssetAdapter;
650
+ /** Validates a file against the accepted-types and max-size policy, returning `{ valid, message? }`. */
340
651
  declare function validateGdsAsset(file: File, policy?: GdsAssetValidationPolicy): {
341
652
  valid: boolean;
342
653
  message: string;
@@ -344,56 +655,185 @@ declare function validateGdsAsset(file: File, policy?: GdsAssetValidationPolicy)
344
655
  valid: boolean;
345
656
  message?: undefined;
346
657
  };
658
+ /**
659
+ * Governed upload-queue hook: validates selected files, uploads them through the
660
+ * adapter with a per-item timeout, tracks progress/retry/removal, and enforces
661
+ * the alt-text/caption policy before an item reaches `ready`.
662
+ */
347
663
  declare function useGdsAssetUploadQueue({ adapter, policy, onEvent, timeoutMs, }: UseGdsAssetUploadQueueConfig): GdsAssetUploadQueueController;
664
+ /** Renders a single asset as a governed {@link MediaPreviewCard}, mapping status to the card's state and showing type/size metadata. */
348
665
  declare function GdsAssetPreviewCard({ asset, aspectRatio }: GdsAssetPreviewCardProps): react.JSX.Element;
666
+ /**
667
+ * End-to-end governed asset manager: a dropzone wired to {@link useGdsAssetUploadQueue},
668
+ * per-item previews, retry controls, and inline alt-text/caption editing that gates
669
+ * publish until the metadata policy is satisfied.
670
+ */
349
671
  declare function GdsAssetManager({ title, description, adapter, policy, onEvent, timeoutMs, multiple, displayMode, }: GdsAssetManagerProps): react.JSX.Element;
350
672
 
673
+ /** Access failure the panel helps the user recover from. */
351
674
  type AccessRecoveryState = 'unauthenticated' | 'expired-session' | 'timeout' | 'forbidden' | 'missing' | 'unavailable';
675
+ /** A recovery action button rendered in the panel. */
352
676
  interface AccessRecoveryAction {
677
+ /** Semantic action id resolving to a governed label/icon. */
353
678
  action: SemanticAction;
354
679
  onClick?: () => void;
355
680
  loading?: boolean;
356
681
  disabled?: boolean;
357
682
  color?: string;
683
+ /** Button variant; the primary action defaults to "filled", others to "default". */
358
684
  variant?: 'filled' | 'light' | 'outline' | 'subtle' | 'default';
359
685
  }
686
+ /** Props for {@link AccessRecoveryPanel}. */
360
687
  interface AccessRecoveryPanelProps {
688
+ /** Access failure to render; selects default copy and recovery actions. */
361
689
  state: AccessRecoveryState;
690
+ /** Overrides the localized default title for the state. */
362
691
  title?: string;
692
+ /** Overrides the localized default description for the state. */
363
693
  description?: ReactNode;
694
+ /** Explicit primary action, overriding the state's default. `null` removes it. */
364
695
  primaryAction?: AccessRecoveryAction | null;
696
+ /** Explicit secondary action, overriding the state's default. `null` removes it. */
365
697
  secondaryAction?: AccessRecoveryAction | null;
698
+ /** Explicit tertiary action, overriding the state's default. `null` removes it. */
366
699
  tertiaryAction?: AccessRecoveryAction | null;
700
+ /** Wires the default retry action where the state supports it. */
367
701
  onRetry?: () => void;
702
+ /** Wires the default sign-in action where the state supports it. */
368
703
  onSignIn?: () => void;
704
+ /** Wires the default back action where the state supports it. */
369
705
  onBack?: () => void;
706
+ /** Optional support/contact action placed in a remaining slot. */
370
707
  supportAction?: AccessRecoveryAction | null;
708
+ /** Renders the underlying StateBlock in compact form. */
371
709
  compact?: boolean;
372
710
  }
711
+ /**
712
+ * Governed access-recovery panel: renders a StateBlock with localized title and
713
+ * description plus default primary/secondary/tertiary recovery actions tailored to
714
+ * each access-failure state. Any action can be overridden or removed per prop.
715
+ */
373
716
  declare function AccessRecoveryPanel({ state, title, description, primaryAction, secondaryAction, tertiaryAction, onRetry, onSignIn, onBack, supportAction, compact, }: AccessRecoveryPanelProps): react.JSX.Element;
374
717
 
718
+ /** Props for `GdsAccessGate`, extending the access-gate contract with the rendered content and handlers. */
375
719
  interface GdsAccessGateProps extends GdsAccessGateContract {
720
+ /** Public teaser/preview shown regardless of access state. */
376
721
  preview: ReactNode;
722
+ /** Content revealed once unlocked; a function form is only evaluated when it is actually rendered. */
377
723
  protectedContent: ReactNode | (() => ReactNode);
724
+ /** Placeholder shown in place of protected content while locked; defaults to a skeleton. */
378
725
  lockedPlaceholder?: ReactNode;
726
+ /** Extra metadata attached to emitted events. */
379
727
  metadata?: Record<string, unknown>;
728
+ /** Called when a recovery action is chosen. */
380
729
  onAction?: (action: GdsAccessGateAction) => void | Promise<void>;
730
+ /** Receives access-gate lifecycle events (view, denied, unlocked, timeout, error, action). */
381
731
  onEvent?: (event: GdsAccessGateEvent) => void;
382
732
  }
383
- declare function GdsAccessGate({ id, state, reason, title, description, actions, entitlementLabel, teaserLabel, protectedContentPolicy, preview, protectedContent, lockedPlaceholder, metadata, onAction, onEvent, }: GdsAccessGateProps): react.JSX.Element;
733
+ /**
734
+ * Renders a public teaser/preview and gates the protected content behind an access
735
+ * `state` (`locked`, `permission-denied`, `expired`, `unlocked`, …), showing
736
+ * governed sign-in/subscribe/request-access/retry recovery actions and — per
737
+ * `protectedContentPolicy` — never evaluating the protected subtree while locked.
738
+ * Use it for paywalls, auth walls, and entitlement gates: drive `state`/`reason`
739
+ * from your own auth/entitlement runtime and handle choices via `onAction`/`onEvent`.
740
+ */
741
+ declare function GdsAccessGate({ id, state, reason, title, description, actions, entitlementLabel, teaserLabel: teaserLabelProp, protectedContentPolicy, preview, protectedContent, lockedPlaceholder, metadata, onAction, onEvent, }: GdsAccessGateProps): react.JSX.Element;
384
742
 
743
+ /**
744
+ * Shared, GDS-owned prop surface for the date/time input family — deliberately
745
+ * NOT `extends`-ing any `@mantine/dates` prop type. Structurally reusing a
746
+ * vendor prop type in a public interface leaks it into GDS's public `.d.ts`
747
+ * surface (`scripts/verify-public-types-boundary.mjs`'s gate exists exactly
748
+ * to catch this), which defeats the point of wrapping `@mantine/dates` behind
749
+ * a GDS contract in the first place (see DEPENDENCY_GOVERNANCE.md's Primitive
750
+ * engine class).
751
+ */
752
+ interface GdsDateInputBaseProps {
753
+ label?: ReactNode;
754
+ description?: ReactNode;
755
+ placeholder?: string;
756
+ disabled?: boolean;
757
+ required?: boolean;
758
+ error?: ReactNode;
759
+ id?: string;
760
+ name?: string;
761
+ minDate?: Date | string;
762
+ maxDate?: Date | string;
763
+ /** Dayjs format string for the displayed value (Mantine's own default is `'MMMM D, YYYY'`). */
764
+ valueFormat?: string;
765
+ className?: string;
766
+ style?: CSSProperties;
767
+ 'aria-label'?: string;
768
+ 'aria-describedby'?: string;
769
+ 'aria-invalid'?: boolean;
770
+ }
771
+ /** Props for {@link GdsDateInput}: a single date `value` (`Date` or ISO string) and a `Date | null` change handler. */
772
+ interface GdsDateInputProps extends GdsDateInputBaseProps {
773
+ /** Selected date as a `Date` or ISO (`yyyy-mm-dd`) string. */
774
+ value?: Date | string | null;
775
+ /** Called with the selected date, or `null` when cleared. */
776
+ onChange?: (value: Date | null) => void;
777
+ }
778
+ /**
779
+ * Governed single-date input wrapping the date engine behind a GDS-owned prop
780
+ * surface. Accepts a `Date` or ISO (`yyyy-mm-dd`) string as `value` and emits a
781
+ * `Date | null`, with clearable UX and optional `minDate`/`maxDate` bounds
782
+ * (validated in development). Use it for any single calendar-date field; use
783
+ * {@link GdsDateTimeInput} when a time-of-day is also needed, or
784
+ * {@link GdsDateRangeInput} for a start/end range.
785
+ */
786
+ declare function GdsDateInput({ value, onChange, minDate, maxDate, ...rest }: GdsDateInputProps): react.JSX.Element;
787
+ /** Props for {@link GdsDateTimeInput}: a single date-and-time `value` (`Date` or ISO string) and a `Date | null` change handler. */
788
+ interface GdsDateTimeInputProps extends GdsDateInputBaseProps {
789
+ /** Selected moment as a `Date` or ISO string. */
790
+ value?: Date | string | null;
791
+ /** Called with the selected moment, or `null` when cleared. */
792
+ onChange?: (value: Date | null) => void;
793
+ }
794
+ /**
795
+ * Governed date-and-time input: like {@link GdsDateInput} but captures a
796
+ * time-of-day alongside the calendar date, wrapping the date engine behind the
797
+ * same GDS-owned `Date | string` value / `Date | null` change contract. Use it
798
+ * when the moment matters (appointments, deadlines with a time), not just the day.
799
+ */
800
+ declare function GdsDateTimeInput({ value, onChange, minDate, maxDate, ...rest }: GdsDateTimeInputProps): react.JSX.Element;
801
+ /** A `[start, end]` date-range tuple; either end may be `null` while the range is incomplete. */
802
+ type GdsDateRangeValue = [Date | null, Date | null];
803
+ /** Props for {@link GdsDateRangeInput}: a `[start, end]` range `value` and a matching change handler. */
804
+ interface GdsDateRangeInputProps extends GdsDateInputBaseProps {
805
+ /** Selected `[start, end]` range. */
806
+ value?: GdsDateRangeValue;
807
+ /** Called with the updated `[start, end]` range. */
808
+ onChange?: (value: GdsDateRangeValue) => void;
809
+ }
810
+ /**
811
+ * Governed start/end date-range input built on the same GDS-owned surface as
812
+ * {@link GdsDateInput}. Its `value` and `onChange` use a `[start, end]` tuple of
813
+ * `Date | null`. Use it for period pickers — coverage windows, report ranges,
814
+ * booking spans — instead of wiring two separate single-date inputs.
815
+ */
816
+ declare function GdsDateRangeInput({ value, onChange, minDate, maxDate, ...rest }: GdsDateRangeInputProps): react.JSX.Element;
817
+
818
+ /** Severity of a validation issue; `blocking` prevents submit, `warning`/`info` do not. */
385
819
  type ValidationSeverity = 'blocking' | 'warning' | 'info';
820
+ /** A single field-level validation issue. */
386
821
  interface ValidationIssue {
387
822
  field: string;
388
823
  message: string;
389
824
  severity: ValidationSeverity;
390
825
  }
826
+ /** Lifecycle state of a form submission, from `idle` through validation, autosave, and success/error. */
391
827
  type SubmitState = 'idle' | 'validating' | 'autosaving' | 'saved' | 'submitting' | 'optimistic' | 'success' | 'error' | 'restored';
828
+ /** Per-field state tracked by the form reducer. */
392
829
  interface FieldState {
393
830
  value: unknown;
831
+ /** Whether the field has been focused/blurred by the user. */
394
832
  touched: boolean;
833
+ /** Whether the field's value has changed from its initial value. */
395
834
  dirty: boolean;
396
835
  }
836
+ /** Complete immutable snapshot of a form: all field states, current issues, and submit status. */
397
837
  interface FormSnapshot {
398
838
  fields: Record<string, FieldState>;
399
839
  issues: ValidationIssue[];
@@ -418,6 +858,7 @@ type GdsFormAction = {
418
858
  type: 'reset';
419
859
  values?: Record<string, unknown>;
420
860
  };
861
+ /** Pure reducer that advances a `FormSnapshot`: setting/touching fields, replacing issues, updating submit state, or resetting to new values. */
421
862
  declare function gdsFormReducer(state: FormSnapshot, action: GdsFormAction): FormSnapshot;
422
863
  type SyncValidator = (snapshot: FormSnapshot) => ValidationIssue[];
423
864
  type AsyncValidator = (snapshot: FormSnapshot) => Promise<ValidationIssue[]>;
@@ -428,26 +869,36 @@ interface UseGdsFormConfig<TValues extends Record<string, unknown>> {
428
869
  validateAsync?: AsyncValidator;
429
870
  onSubmit: SubmitHandler<TValues>;
430
871
  }
872
+ /** Pluggable draft persistence for form orchestration: load, save, and clear draft values. */
431
873
  interface GdsDraftAdapter<TValues extends Record<string, unknown>> {
432
874
  load: () => Promise<TValues | null> | TValues | null;
433
875
  save: (values: TValues) => Promise<void> | void;
434
876
  clear: () => Promise<void> | void;
435
877
  }
878
+ /** A server-side validation error, optionally tied to a specific field. */
436
879
  interface GdsFormServerError {
437
880
  field?: string;
438
881
  message: string;
439
882
  }
883
+ /** Metadata-only telemetry event emitted over the orchestrated form lifecycle. */
440
884
  interface GdsFormOrchestrationEvent {
441
885
  type: 'dirty_changed' | 'validation_failed' | 'autosave_succeeded' | 'submit_failed' | 'retry_succeeded' | 'draft_restored';
442
886
  status: SubmitState;
443
887
  timestamp: number;
888
+ /** Always `'metadata-only'` — events never carry field values. */
444
889
  privacy: 'metadata-only';
445
890
  }
891
+ /** Configuration for `useGdsFormOrchestration`, extending the base form config with drafts, autosave, optimistic submit, server-error mapping, and telemetry. */
446
892
  interface UseGdsFormOrchestrationConfig<TValues extends Record<string, unknown>> extends UseGdsFormConfig<TValues> {
893
+ /** Adapter enabling draft load/save/clear (draft restore requires this). */
447
894
  draftAdapter?: GdsDraftAdapter<TValues>;
895
+ /** Autosave the draft before each submit. Defaults to `false`. */
448
896
  autosave?: boolean;
897
+ /** Enter the `optimistic` state instead of `submitting` while the submit is in flight. Defaults to `false`. */
449
898
  optimisticSubmit?: boolean;
899
+ /** Maps a thrown submit error into field-level server errors. */
450
900
  mapServerErrors?: (error: unknown) => GdsFormServerError[];
901
+ /** Receives lifecycle telemetry events. */
451
902
  onEvent?: (event: GdsFormOrchestrationEvent) => void;
452
903
  }
453
904
  interface GdsFormController<TValues extends Record<string, unknown>> {
@@ -460,37 +911,76 @@ interface GdsFormController<TValues extends Record<string, unknown>> {
460
911
  discardDraft?: () => Promise<void>;
461
912
  autosaveDraft?: () => Promise<boolean>;
462
913
  }
914
+ /** Builds a `GdsDraftAdapter` backed by a Web Storage store (defaults to `localStorage`), JSON-serializing values under `storageKey` and treating parse failures as no draft. */
463
915
  declare function createGdsDraftAdapter<TValues extends Record<string, unknown>>(storageKey: string, storage?: Pick<Storage, 'getItem' | 'setItem' | 'removeItem'>): GdsDraftAdapter<TValues>;
916
+ /**
917
+ * Headless controller for a governed form: it holds the field snapshot, runs
918
+ * synchronous then (only if clean) asynchronous validation on submit, and tracks
919
+ * the submit lifecycle (`validating` → `submitting` → `success`/`error`). Use it
920
+ * for a self-contained form where you render the fields yourself and just need
921
+ * value state, ordered validation, and submit/retry wiring. For draft autosave,
922
+ * optimistic submit, server-error mapping, or telemetry, use
923
+ * {@link useGdsFormOrchestration} instead.
924
+ */
464
925
  declare function useGdsForm<TValues extends Record<string, unknown>>({ initialValues, validate, validateAsync, onSubmit, }: UseGdsFormConfig<TValues>): GdsFormController<TValues>;
926
+ /**
927
+ * Extended form controller that layers product-grade orchestration on top of
928
+ * {@link useGdsForm}: optional draft persistence and autosave (via a
929
+ * `draftAdapter`), optimistic submit, server-error mapping, and lifecycle
930
+ * telemetry through `onEvent`. Reach for this when a form must survive reloads,
931
+ * report analytics, or reconcile server-side validation errors; use the lighter
932
+ * {@link useGdsForm} when it does not.
933
+ */
465
934
  declare function useGdsFormOrchestration<TValues extends Record<string, unknown>>({ initialValues, validate, validateAsync, onSubmit, draftAdapter, autosave, optimisticSubmit, mapServerErrors, onEvent, }: UseGdsFormOrchestrationConfig<TValues>): GdsFormController<TValues>;
935
+ /** Context provider that exposes a form `snapshot` to descendant field/summary components (`FormErrorSummary`, `ValidatedFieldMessage`). */
466
936
  declare function GdsFormProvider({ snapshot, children }: {
467
937
  snapshot: FormSnapshot;
468
938
  children: ReactNode;
469
939
  }): react.JSX.Element;
940
+ /** Returns the current `FormSnapshot` from the nearest `GdsFormProvider`; throws if used outside one. */
470
941
  declare function useGdsFormSnapshot(): FormSnapshot;
471
- declare function FormErrorSummary({ title }: {
942
+ /** Renders a red `Alert` listing the snapshot's blocking issues as in-page anchor links to each field; renders nothing when there are none. */
943
+ declare function FormErrorSummary({ title: titleProp }: {
472
944
  title?: ReactNode;
473
945
  }): react.JSX.Element | null;
946
+ /** Alias of {@link FormErrorSummary}. */
474
947
  declare const GdsValidationSummary: typeof FormErrorSummary;
948
+ /** Renders the first blocking issue for `field` as an error message (id `${field}-error`, for `aria-describedby`); renders nothing when the field is valid. */
475
949
  declare function ValidatedFieldMessage({ field }: {
476
950
  field: string;
477
951
  }): react.JSX.Element | null;
478
952
 
479
- type GdsSchemaFieldType = 'text' | 'email' | 'url' | 'password' | 'number' | 'boolean' | 'select' | 'textarea' | 'date' | 'hidden' | 'conditional' | 'file-upload' | 'unsupported';
953
+ /** Every field type the schema-form engine can render, plus the `hidden`/`conditional`/`unsupported` control markers. */
954
+ type GdsSchemaFieldType = 'text' | 'email' | 'url' | 'password' | 'number' | 'boolean' | 'select' | 'checkbox-group' | 'repeatable' | 'textarea' | 'date' | 'hidden' | 'conditional' | 'file-upload' | 'unsupported';
955
+ /** A single choice for a `select` or `checkbox-group` field. */
480
956
  interface GdsFieldOption {
481
957
  label: string;
482
958
  value: string;
483
959
  }
960
+ /** Declarative description of one form field — its type, labels, validation bounds, and any upload/repeatable/conditional metadata. Produced by the schema adapters and consumed by the renderers. */
484
961
  interface GdsFieldDescriptor {
485
962
  name: string;
486
963
  type: GdsSchemaFieldType;
487
964
  label: string;
488
965
  description?: string;
966
+ /** Translation key used to localize this field's label and messages. */
489
967
  i18nKey: string;
490
968
  required?: boolean;
491
969
  hidden?: boolean;
970
+ /** Expression that gates whether the field renders (makes the field `conditional`). */
492
971
  condition?: string;
972
+ /** Choices for `select` and `checkbox-group` fields. */
493
973
  options?: GdsFieldOption[];
974
+ /** Sub-fields of a `repeatable` row group. Each row is an object keyed by these fields' names. */
975
+ fields?: GdsFieldDescriptor[];
976
+ /** Minimum rows for a `repeatable` field (also its initial row count when no `defaultValue`). */
977
+ minRows?: number;
978
+ /** Maximum rows for a `repeatable` field. */
979
+ maxRows?: number;
980
+ /** Accessible/visible label for a `repeatable` field's add-row button (default "Add row"). */
981
+ addRowLabel?: string;
982
+ /** Accessible/visible label for a `repeatable` field's remove-row button (default "Remove"). */
983
+ removeRowLabel?: string;
494
984
  defaultValue?: unknown;
495
985
  minLength?: number;
496
986
  maxLength?: number;
@@ -507,17 +997,20 @@ interface GdsFieldDescriptor {
507
997
  uploadProgress?: number;
508
998
  unsupportedReason?: string;
509
999
  }
1000
+ /** A complete declarative form: an id, optional title/description, and its ordered field descriptors. */
510
1001
  interface GdsFormSchema {
511
1002
  id: string;
512
1003
  title?: string;
513
1004
  description?: string;
514
1005
  fields: GdsFieldDescriptor[];
515
1006
  }
1007
+ /** Output of a schema adapter: the generated form schema (when parseable), plus any validation issues and telemetry events. */
516
1008
  interface GdsSchemaAdapterResult {
517
1009
  schema?: GdsFormSchema;
518
1010
  issues: ValidationIssue[];
519
1011
  events: GdsSchemaFormEvent[];
520
1012
  }
1013
+ /** Metadata an upload adapter returns for a stored file (id, name, url, size, type, plus arbitrary extra fields). */
521
1014
  interface GdsSchemaUploadResult {
522
1015
  [key: string]: unknown;
523
1016
  id?: string;
@@ -527,21 +1020,25 @@ interface GdsSchemaUploadResult {
527
1020
  type?: string;
528
1021
  metadata?: Record<string, unknown>;
529
1022
  }
1023
+ /** Arguments passed to an upload adapter's `upload`: the field, its selected files, an abort `signal`, and a progress callback. */
530
1024
  interface GdsSchemaUploadRequest {
531
1025
  field: GdsFieldDescriptor;
532
1026
  files: File[];
533
1027
  signal: AbortSignal;
534
1028
  onProgress: (progress: number) => void;
535
1029
  }
1030
+ /** Arguments passed to an upload adapter's `remove`: the field, its already-uploaded values, and an abort `signal`. */
536
1031
  interface GdsSchemaUploadRemoveRequest {
537
1032
  field: GdsFieldDescriptor;
538
1033
  value: GdsSchemaUploadResult[];
539
1034
  signal: AbortSignal;
540
1035
  }
1036
+ /** Consumer-owned adapter that performs the file uploads (and optional removals) for `file-upload` fields. */
541
1037
  interface GdsSchemaUploadAdapter {
542
1038
  upload: (request: GdsSchemaUploadRequest) => Promise<GdsSchemaUploadResult | GdsSchemaUploadResult[]>;
543
1039
  remove?: (request: GdsSchemaUploadRemoveRequest) => Promise<void>;
544
1040
  }
1041
+ /** Metadata-only telemetry event emitted during schema parsing, submission, and the upload lifecycle. */
545
1042
  interface GdsSchemaFormEvent {
546
1043
  type: 'schema_parse_failed' | 'unsupported_field' | 'generated_submit_failed' | 'upload_started' | 'upload_progress' | 'upload_succeeded' | 'upload_failed' | 'upload_cancelled' | 'upload_removed' | 'upload_retry_requested';
547
1044
  field?: string;
@@ -549,7 +1046,9 @@ interface GdsSchemaFormEvent {
549
1046
  privacy: 'metadata-only';
550
1047
  message?: string;
551
1048
  }
1049
+ /** Renders a single field's control from its {@link GdsFieldRendererContext}. */
552
1050
  type GdsFieldRenderer = (context: GdsFieldRendererContext) => ReactNode;
1051
+ /** Context handed to a field renderer: the descriptor, its current `value`, a `setValue` setter, the `describedBy` id, and validity. */
553
1052
  interface GdsFieldRendererContext {
554
1053
  field: GdsFieldDescriptor;
555
1054
  value: unknown;
@@ -557,31 +1056,42 @@ interface GdsFieldRendererContext {
557
1056
  describedBy: string;
558
1057
  invalid: boolean;
559
1058
  }
1059
+ /** Map of field renderers keyed by field type or field name; a name key overrides the type key. */
560
1060
  type GdsFieldRendererMap = Partial<Record<GdsSchemaFieldType | string, GdsFieldRenderer>>;
1061
+ /** Options for {@link createGdsFormFromSchema}: which adapter to run and an optional id and (OpenAPI) schema name. */
561
1062
  interface CreateGdsFormFromSchemaOptions {
562
1063
  adapter: 'json-schema' | 'openapi' | 'zod';
563
1064
  id?: string;
564
1065
  schemaName?: string;
565
1066
  }
1067
+ /** Props for {@link GdsSchemaForm}. */
566
1068
  interface GdsSchemaFormProps<TValues extends Record<string, unknown> = Record<string, unknown>> {
567
1069
  schema: GdsFormSchema;
1070
+ /** Called with the collected typed values once validation passes. */
568
1071
  onSubmit: (values: TValues) => Promise<void> | void;
1072
+ /** Per-type or per-name renderer overrides for individual fields. */
569
1073
  renderers?: GdsFieldRendererMap;
1074
+ /** Adapter used to upload the files of any `file-upload` field. */
570
1075
  uploadAdapter?: GdsSchemaUploadAdapter;
571
1076
  onEvent?: (event: GdsSchemaFormEvent | GdsFormOrchestrationEvent) => void;
572
1077
  submitLabel?: string;
573
1078
  }
1079
+ /** Converts a JSON Schema object into a {@link GdsFormSchema}, mapping each property to a field descriptor and flagging unsupported shapes as issues. */
574
1080
  declare function jsonSchemaToGdsFormSchema(schema: Record<string, unknown>, options?: {
575
1081
  id?: string;
576
1082
  }): GdsSchemaAdapterResult;
1083
+ /** Converts an OpenAPI document — a requestBody schema or a named `components.schemas` entry — into a {@link GdsFormSchema}. */
577
1084
  declare function openApiToGdsFormSchema(document: Record<string, any>, options?: {
578
1085
  id?: string;
579
1086
  schemaName?: string;
580
1087
  }): GdsSchemaAdapterResult;
1088
+ /** Converts a Zod object schema into a {@link GdsFormSchema} by reading its shape and required keys. */
581
1089
  declare function zodToGdsFormSchema(zodSchema: unknown, options?: {
582
1090
  id?: string;
583
1091
  }): GdsSchemaAdapterResult;
1092
+ /** Adapter entry point: builds a {@link GdsFormSchema} from a JSON Schema, OpenAPI document, or Zod schema per `options.adapter`. */
584
1093
  declare function createGdsFormFromSchema(source: unknown, options: CreateGdsFormFromSchemaOptions): GdsSchemaAdapterResult;
1094
+ /** Props for {@link FileUploadField}. */
585
1095
  interface FileUploadFieldProps {
586
1096
  id: string;
587
1097
  label: string;
@@ -602,51 +1112,97 @@ interface FileUploadFieldProps {
602
1112
  onUploadEvent?: (event: GdsSchemaFormEvent) => void;
603
1113
  onChange?: (value: File[] | GdsSchemaUploadResult[]) => void;
604
1114
  }
1115
+ /**
1116
+ * File-upload control for schema forms: wraps {@link UploadDropzone} and, when an
1117
+ * `uploadAdapter` is supplied, drives the upload lifecycle — progress, retry,
1118
+ * cancel, and remove — with abort handling and metadata-only event emission.
1119
+ */
605
1120
  declare function FileUploadField({ id, label, field, value, describedBy, invalid, required, accept, multiple, maxFileSizeBytes, maxFileSizeLabel, actionLabel, policyText, state, progressValue, uploadAdapter, onUploadEvent, onChange, }: FileUploadFieldProps): react.JSX.Element;
606
- declare function GdsSchemaForm<TValues extends Record<string, unknown> = Record<string, unknown>>({ schema, onSubmit, renderers, uploadAdapter, onEvent, submitLabel, }: GdsSchemaFormProps<TValues>): react.JSX.Element;
1121
+ /**
1122
+ * Renders a complete, validated form from a declarative `GdsFormSchema` instead
1123
+ * of hand-written inputs: each field's `type` maps to the governed control, with
1124
+ * required/length/pattern validation, submitting/error states, and optional file
1125
+ * upload built in. Use it for create/edit forms; generate the schema from JSON
1126
+ * Schema, OpenAPI, or Zod via `createGdsFormFromSchema` when you already have one.
1127
+ */
1128
+ declare function GdsSchemaForm<TValues extends Record<string, unknown> = Record<string, unknown>>({ schema, onSubmit, renderers, uploadAdapter, onEvent, submitLabel: submitLabelProp, }: GdsSchemaFormProps<TValues>): react.JSX.Element;
607
1129
 
1130
+ /** Row spacing density for the advanced data table. */
608
1131
  type AdvancedTableDensity = 'compact' | 'comfortable';
1132
+ /** Sort direction for a table column. */
609
1133
  type AdvancedSortDirection = 'asc' | 'desc';
1134
+ /** Definition of a single advanced-table column. */
610
1135
  interface AdvancedTableColumn<T extends Record<string, unknown>> {
1136
+ /** Row property key used to read the cell value and as the column identity. */
611
1137
  key: string;
612
1138
  label: string;
1139
+ /** Enables the sortable header button for this column. */
613
1140
  sortable?: boolean;
614
1141
  width?: number | string;
1142
+ /** Custom cell renderer; defaults to the stringified row value. */
615
1143
  render?: (row: T) => ReactNode;
1144
+ /** Extracts the value used for sorting; defaults to the stringified row value. */
616
1145
  sortAccessor?: (row: T) => string | number;
617
1146
  }
1147
+ /** Props for the `AdvancedDataTable` component. Selection and sort are uncontrolled unless the matching value/change props are supplied. */
618
1148
  interface AdvancedDataTableProps<T extends Record<string, unknown>> {
619
1149
  rows: T[];
620
1150
  columns: AdvancedTableColumn<T>[];
1151
+ /** Derives a stable id for each row. */
621
1152
  rowId: (row: T, index: number) => string;
622
1153
  loading?: boolean;
1154
+ /** Error message; when set, an error state block is shown instead of the table. */
623
1155
  error?: string | null;
1156
+ /** Row density. Uncontrolled default is `comfortable`. */
624
1157
  density?: AdvancedTableDensity;
1158
+ /** Keep the header visible while scrolling. Defaults to `true`. */
625
1159
  stickyHeader?: boolean;
1160
+ /** Top offset for the sticky header, in pixels. Defaults to `0`. */
626
1161
  stickyHeaderOffset?: number;
1162
+ /** Controlled selected row ids; provide with `onSelectedRowIdsChange`. */
627
1163
  selectedRowIds?: string[];
628
1164
  onSelectedRowIdsChange?: (ids: string[]) => void;
1165
+ /** Controlled sort column key; provide with `onSortChange`. */
629
1166
  sortBy?: string;
630
1167
  sortDirection?: AdvancedSortDirection;
631
1168
  onSortChange?: (columnKey: string, direction: AdvancedSortDirection) => void;
1169
+ /** Small-screen fallback: render the first rows as stacked cards, or `none`. Defaults to `stacked-cards`. */
632
1170
  responsiveFallback?: 'stacked-cards' | 'none';
633
1171
  }
1172
+ /**
1173
+ * Governed enterprise data grid with sortable columns, row and select-all
1174
+ * selection, adjustable density, and a sticky header. Selection and sort work
1175
+ * uncontrolled, or become controlled when the matching value/change props are
1176
+ * passed. Renders error, loading, and empty state blocks in place of the table.
1177
+ */
634
1178
  declare function AdvancedDataTable<T extends Record<string, unknown>>({ rows, columns, rowId, loading, error, density: densityProp, stickyHeader, stickyHeaderOffset, selectedRowIds, onSelectedRowIdsChange, sortBy: sortByProp, sortDirection: sortDirectionProp, onSortChange, responsiveFallback, }: AdvancedDataTableProps<T>): react.JSX.Element;
635
1179
 
1180
+ /** Sort direction for a data-table column. */
636
1181
  type GdsTableSortDirection = 'asc' | 'desc';
1182
+ /** Lifecycle status of the data table's load and interactions. */
637
1183
  type GdsTableStatus = 'idle' | 'loading' | 'refreshing' | 'ready' | 'empty' | 'filtered-empty' | 'error' | 'partial' | 'exporting';
1184
+ /** Column definition for {@link GdsDataTable}. */
638
1185
  interface GdsTableColumn<T extends Record<string, unknown>> {
1186
+ /** Row property this column reads. */
639
1187
  key: keyof T & string;
640
1188
  label: string;
1189
+ /** Enables the sortable header button for this column. */
641
1190
  sortable?: boolean;
1191
+ /** Whether the column participates in search/filter matching. Defaults to true. */
642
1192
  filterable?: boolean;
1193
+ /** Hides the column from rendering while keeping it in the data set. */
643
1194
  hidden?: boolean;
644
1195
  width?: number | string;
1196
+ /** Marks cells as containing focusable controls, enabling Enter/F2/Escape cell interaction. */
645
1197
  interactive?: boolean;
1198
+ /** Custom cell renderer; falls back to the stringified cell value. */
646
1199
  render?: (row: T) => ReactNode;
1200
+ /** Derives the sort/search value for a row, overriding the raw `key` value. */
647
1201
  accessor?: (row: T) => string | number | boolean | null | undefined;
1202
+ /** Ordering hint (lower first) for which fields surface in the mobile card fallback. */
648
1203
  mobilePriority?: number;
649
1204
  }
1205
+ /** Current query state (paging, search, sort, and filters) driving a data-table load. */
650
1206
  interface GdsTableQuery {
651
1207
  page: number;
652
1208
  pageSize: number;
@@ -655,36 +1211,51 @@ interface GdsTableQuery {
655
1211
  sortDirection: GdsTableSortDirection;
656
1212
  filters: Record<string, string>;
657
1213
  }
1214
+ /** Result returned by a data adapter's load: the page of rows plus the total row count. */
658
1215
  interface GdsTableLoadResult<T extends Record<string, unknown>> {
659
1216
  rows: T[];
660
1217
  total: number;
1218
+ /** Marks the result as incomplete (e.g. capped/partial data), surfacing the `partial` status. */
661
1219
  partial?: boolean;
662
1220
  }
1221
+ /** Data source for a table, resolving a query into rows in local or remote mode. */
663
1222
  interface GdsTableDataAdapter<T extends Record<string, unknown>> {
664
1223
  mode: 'local' | 'remote';
1224
+ /** Resolves the query into a page of rows; receives an abort signal for cancellation/timeout. */
665
1225
  load: (query: GdsTableQuery, signal?: AbortSignal) => Promise<GdsTableLoadResult<T>>;
666
1226
  }
1227
+ /** Payload passed to an export handler: the active query, selected row ids, and current rows. */
667
1228
  interface GdsExportRequest<T extends Record<string, unknown>> {
668
1229
  query: GdsTableQuery;
669
1230
  selectedRowIds: string[];
670
1231
  rows: T[];
671
1232
  }
1233
+ /** Metadata-only telemetry event for table load/filter/sort/selection/export activity. */
672
1234
  interface GdsTableEvent {
673
1235
  type: 'load_started' | 'load_failed' | 'filter_changed' | 'sort_changed' | 'selection_changed' | 'export_requested';
674
1236
  timestamp: number;
675
1237
  privacy: 'metadata-only';
676
1238
  message?: string;
677
1239
  }
1240
+ /** Configuration for {@link useGdsDataTable} and {@link GdsDataTable}. */
678
1241
  interface UseGdsDataTableConfig<T extends Record<string, unknown>> {
679
1242
  columns: GdsTableColumn<T>[];
1243
+ /** Returns a stable unique id for a row, used for selection and keys. */
680
1244
  rowId: (row: T, index: number) => string;
1245
+ /** Data source that resolves queries into rows. */
681
1246
  adapter: GdsTableDataAdapter<T>;
1247
+ /** Seed values merged into the default query on first load. */
682
1248
  initialQuery?: Partial<GdsTableQuery>;
1249
+ /** Receives metadata-only table telemetry events. */
683
1250
  onEvent?: (event: GdsTableEvent) => void;
1251
+ /** Handles an export request; receives the active query, rows, and selection. */
684
1252
  onExport?: (request: GdsExportRequest<T>) => Promise<void> | void;
1253
+ /** Load timeout in milliseconds before the request is aborted. Defaults to 8000. */
685
1254
  timeoutMs?: number;
1255
+ /** Caps how many loaded rows are rendered, virtualizing the visible window. */
686
1256
  virtualizedRowLimit?: number;
687
1257
  }
1258
+ /** Imperative controller returned by {@link useGdsDataTable}: current state plus query, selection, and export actions. */
688
1259
  interface GdsDataTableController<T extends Record<string, unknown>> {
689
1260
  query: GdsTableQuery;
690
1261
  status: GdsTableStatus;
@@ -704,20 +1275,43 @@ interface GdsDataTableController<T extends Record<string, unknown>> {
704
1275
  retry: () => void;
705
1276
  exportRows: () => Promise<void>;
706
1277
  }
1278
+ /** Props for {@link GdsDataTable}, extending {@link UseGdsDataTableConfig}. */
707
1279
  interface GdsDataTableProps<T extends Record<string, unknown>> extends UseGdsDataTableConfig<T> {
1280
+ /** Accessible table caption and heading text. Defaults to "Data table". */
708
1281
  caption?: string;
1282
+ /** Optional summary line rendered under the caption. */
709
1283
  summary?: ReactNode;
1284
+ /** Label for the export button. Defaults to "Export". */
710
1285
  exportLabel?: string;
1286
+ /** Label for the retry button shown in the error state. Defaults to "Retry". */
711
1287
  retryLabel?: string;
1288
+ /** Renders the mobile card fallback beneath the table. Defaults to true. */
712
1289
  mobileCards?: boolean;
713
1290
  }
1291
+ /** Builds a local (in-memory) data adapter that filters, sorts, and paginates the given rows client-side. */
714
1292
  declare function createGdsTableAdapter<T extends Record<string, unknown>>(rows: T[], columns: GdsTableColumn<T>[]): GdsTableDataAdapter<T>;
1293
+ /** Serializes a table query into a stable URL query string, with filter keys sorted for determinism. */
715
1294
  declare function serializeGdsTableQuery(query: GdsTableQuery): string;
1295
+ /**
1296
+ * Hook implementing the data-table controller: loads through the adapter with
1297
+ * timeout/abort handling and manages query, rows, selection, status, retry, and
1298
+ * export. Powers {@link GdsDataTable} and can drive custom table UIs.
1299
+ */
716
1300
  declare function useGdsDataTable<T extends Record<string, unknown>>({ rowId, adapter, initialQuery, onEvent, onExport, timeoutMs, virtualizedRowLimit, }: UseGdsDataTableConfig<T>): GdsDataTableController<T>;
717
- declare function GdsDataTable<T extends Record<string, unknown>>({ columns, rowId, adapter, initialQuery, onEvent, onExport, timeoutMs, virtualizedRowLimit, caption, summary, exportLabel, retryLabel, mobileCards, }: GdsDataTableProps<T>): react.JSX.Element;
1301
+ /**
1302
+ * Full-featured governed data table: search, sort, filter, paginate, select, and
1303
+ * export over a `GdsTableDataAdapter` (local or remote), with an accessible table
1304
+ * structure, a mobile card fallback, and loading/empty/error states. Use it for
1305
+ * rich interactive grids; use {@link SimpleDataTable} for a static read-only
1306
+ * table, or `AdminDataTable` for a lighter sortable admin table.
1307
+ */
1308
+ declare function GdsDataTable<T extends Record<string, unknown>>({ columns, rowId, adapter, initialQuery, onEvent, onExport, timeoutMs, virtualizedRowLimit, caption: captionProp, summary, exportLabel: exportLabelProp, retryLabel: retryLabelProp, mobileCards, }: GdsDataTableProps<T>): react.JSX.Element;
718
1309
 
1310
+ /** The governed set of CRUD/lifecycle actions a resource manager can run. */
719
1311
  type GdsResourceActionId = 'view' | 'create' | 'edit' | 'delete' | 'activate' | 'archive' | 'copy-preview';
1312
+ /** Async state of the resource workflow, covering list/detail loading, editing/saving, per-action progress, and error/permission/stale outcomes. */
720
1313
  type GdsResourceWorkflowState = 'loading-list' | 'empty' | 'ready' | 'detail-loading' | 'editing' | 'saving' | 'deleting' | 'activating' | 'permission-denied' | 'stale-data' | 'error';
1314
+ /** Minimal shape every managed resource must satisfy; extra fields are allowed via the index signature. */
721
1315
  interface GdsResourceRecord {
722
1316
  id: string;
723
1317
  title: string;
@@ -725,90 +1319,151 @@ interface GdsResourceRecord {
725
1319
  updatedAt?: string;
726
1320
  [key: string]: unknown;
727
1321
  }
1322
+ /** Whether a given action is allowed on the current resource, with a reason when denied. */
728
1323
  interface GdsResourcePermission {
729
1324
  action: GdsResourceActionId;
730
1325
  allowed: boolean;
1326
+ /** Explanation shown when `allowed` is false. */
731
1327
  reason?: string;
732
1328
  }
1329
+ /** Outcome of a run action: the affected resource, a staleness flag, and any copied text (for copy-preview). */
733
1330
  interface GdsResourceActionResult<T extends GdsResourceRecord> {
734
1331
  resource?: T;
735
1332
  stale?: boolean;
736
1333
  copiedText?: string;
737
1334
  }
1335
+ /** Host-supplied backend for a resource manager: `list` is required; each optional mutation/permission hook enables the matching action. */
738
1336
  interface GdsResourceAdapter<T extends GdsResourceRecord> {
1337
+ /** Loads all resources. */
739
1338
  list: (signal?: AbortSignal) => Promise<T[]>;
1339
+ /** Loads one resource by id for the detail pane. */
740
1340
  detail?: (id: string, signal?: AbortSignal) => Promise<T | null>;
741
1341
  create?: (values: Partial<T>, idempotencyKey?: string) => Promise<T>;
742
1342
  update?: (id: string, values: Partial<T>, idempotencyKey?: string) => Promise<T>;
743
1343
  delete?: (id: string, idempotencyKey?: string) => Promise<void>;
744
1344
  activate?: (id: string, idempotencyKey?: string) => Promise<T>;
745
1345
  archive?: (id: string, idempotencyKey?: string) => Promise<T>;
1346
+ /** Returns a shareable preview URL/text for a resource. */
746
1347
  copyPreview?: (id: string) => Promise<string>;
1348
+ /** Returns the permission set for a resource (`null` when none is selected). */
747
1349
  getPermissions?: (resource: T | null) => GdsResourcePermission[];
748
1350
  }
1351
+ /** Metadata-only lifecycle event emitted as the workflow runs; never carries resource contents. */
749
1352
  interface GdsResourceManagerEvent {
750
1353
  type: 'resource_loaded' | 'action_started' | 'action_failed' | 'action_completed' | 'permission_denied';
751
1354
  action?: GdsResourceActionId;
752
1355
  timestamp: number;
1356
+ /** Always `'metadata-only'` — a reminder that no payload data is included. */
753
1357
  privacy: 'metadata-only';
754
1358
  message?: string;
755
1359
  }
1360
+ /** Configuration for {@link useGdsResourceManager}. */
756
1361
  interface UseGdsResourceManagerConfig<T extends GdsResourceRecord> {
757
1362
  adapter: GdsResourceAdapter<T>;
758
1363
  onEvent?: (event: GdsResourceManagerEvent) => void;
1364
+ /** Abort budget (ms) for the initial list load; defaults to 8000. */
759
1365
  timeoutMs?: number;
1366
+ /** Confirmation gate required before destructive actions (delete/archive). */
760
1367
  confirmAction?: (action: GdsResourceActionId, resource: T | null) => Promise<boolean> | boolean;
761
1368
  }
1369
+ /** Imperative controller returned by {@link useGdsResourceManager}: current data and state plus the methods that drive the workflow. */
762
1370
  interface GdsResourceManagerController<T extends GdsResourceRecord> {
763
1371
  resources: T[];
764
1372
  selectedResource: T | null;
765
1373
  state: GdsResourceWorkflowState;
766
1374
  error?: string;
767
1375
  permissions: GdsResourcePermission[];
1376
+ /** Reloads the resource list. */
768
1377
  loadList: () => void;
1378
+ /** Loads and selects a resource for the detail pane. */
769
1379
  openDetail: (id: string) => Promise<T | null>;
1380
+ /** Clears the current selection. */
770
1381
  closeDetail: () => void;
1382
+ /** Resolves whether an action is currently allowed. */
771
1383
  canRunAction: (action: GdsResourceActionId, resource?: T | null) => GdsResourcePermission;
1384
+ /** Runs an action through permission, confirmation, and state handling. */
772
1385
  runAction: (action: GdsResourceActionId, resource: T | null, values?: Partial<T>) => Promise<GdsResourceActionResult<T> | null>;
773
1386
  }
1387
+ /** Props for {@link GdsResourceManager}: the manager config plus the list/detail presentation. */
774
1388
  interface GdsResourceManagerProps<T extends GdsResourceRecord> extends UseGdsResourceManagerConfig<T> {
775
1389
  title: string;
776
1390
  description?: ReactNode;
1391
+ /** Table columns; defaults to title/status/updated when omitted. */
777
1392
  columns?: GdsTableColumn<T>[];
1393
+ /** Copy shown when the list is empty. */
778
1394
  emptyLabel?: string;
1395
+ /** Custom renderer for the selected resource's detail pane. */
779
1396
  renderDetail?: (resource: T, controller: GdsResourceManagerController<T>) => ReactNode;
780
1397
  }
1398
+ /**
1399
+ * Builds an in-memory {@link GdsResourceAdapter} over a seed array — supporting
1400
+ * list/detail/create/update/delete/activate/archive/copy-preview against local
1401
+ * state — for demos, tests, and prototyping.
1402
+ */
781
1403
  declare function createGdsResourceAdapter<T extends GdsResourceRecord>(initialResources: T[]): GdsResourceAdapter<T>;
1404
+ /**
1405
+ * Hook implementing the resource workflow: loads the list on mount (with an abort
1406
+ * timeout), tracks the selection and {@link GdsResourceWorkflowState}, resolves
1407
+ * permissions from the adapter, and runs actions through permission and
1408
+ * confirmation gates — exposing everything via a {@link GdsResourceManagerController}.
1409
+ */
782
1410
  declare function useGdsResourceManager<T extends GdsResourceRecord>({ adapter, onEvent, timeoutMs, confirmAction, }: UseGdsResourceManagerConfig<T>): GdsResourceManagerController<T>;
783
- declare function GdsResourceManager<T extends GdsResourceRecord>({ title, description, adapter, columns, emptyLabel, renderDetail, onEvent, timeoutMs, confirmAction, }: GdsResourceManagerProps<T>): react.JSX.Element;
1411
+ /**
1412
+ * Full CRUD list/detail surface driven entirely by a typed `GdsResourceAdapter`.
1413
+ * It renders the resource list, an optional detail pane (`renderDetail`), the
1414
+ * governed action set gated by the adapter's `getPermissions`, and every async
1415
+ * state (loading/empty/error/permission) from the adapter's responses. Use it as
1416
+ * the backbone of an admin resource screen so create/read/update/delete,
1417
+ * permissions, and state handling all flow from one adapter contract. See
1418
+ * `docs/TUTORIAL_CRUD_ADMIN_SCREEN.md` for a worked example.
1419
+ */
1420
+ declare function GdsResourceManager<T extends GdsResourceRecord>({ title, description, adapter, columns, emptyLabel: emptyLabelProp, renderDetail, onEvent, timeoutMs, confirmAction, }: GdsResourceManagerProps<T>): react.JSX.Element;
784
1421
 
1422
+ /** Governed overlay surface kinds. */
785
1423
  type GdsOverlayType = 'modal' | 'dialog' | 'drawer' | 'sheet' | 'popover' | 'command';
1424
+ /** Overlay kind tracked by the manager, including the non-focus-trapping tooltip. */
786
1425
  type OverlayKind = GdsOverlayType | 'tooltip';
1426
+ /** Why an overlay close was requested. */
787
1427
  type OverlayCloseReason = 'escape' | 'backdrop' | 'outside-click' | 'programmatic' | 'action' | 'route-change';
1428
+ /** Lifecycle status of an overlay within the manager's stack. */
788
1429
  type GdsOverlayStatus = 'opening' | 'open' | 'nested' | 'closing' | 'blocked-close' | 'route-recovery' | 'mobile-fullscreen';
1430
+ /** How an overlay reacts to a route change: close, preserve, or recover. */
789
1431
  type GdsOverlayRoutePolicy = 'close' | 'preserve' | 'recover';
1432
+ /** Metadata-only overlay lifecycle event names. */
790
1433
  type GdsOverlayEventType = 'overlay_opened' | 'overlay_closed' | 'escape_close' | 'blocked_close' | 'route_recovered';
1434
+ /** Per-overlay behavior policy: close triggers, nesting, route handling, and focus return. */
791
1435
  interface GdsOverlayPolicy {
1436
+ /** Whether Escape closes the overlay. Defaults to true. */
792
1437
  closeOnEscape?: boolean;
1438
+ /** Whether a backdrop / outside click closes the overlay. Defaults to true. */
793
1439
  closeOnOutsideClick?: boolean;
1440
+ /** Whether this overlay may stack on top of an existing one instead of replacing it. Defaults to false. */
794
1441
  allowNested?: boolean;
1442
+ /** Behavior on route change. Defaults to `close`. */
795
1443
  routeChange?: GdsOverlayRoutePolicy;
1444
+ /** Renders the surface full-screen on mobile. Defaults to false. */
796
1445
  mobileFullscreen?: boolean;
1446
+ /** Whether to return focus to the invoker when the overlay closes. Defaults to true. */
797
1447
  returnFocus?: boolean;
798
1448
  }
1449
+ /** Describes an overlay when it registers with the manager. */
799
1450
  interface OverlayDescriptor {
1451
+ /** Stable unique overlay id. */
800
1452
  id: string;
801
1453
  kind: OverlayKind;
802
1454
  title?: ReactNode;
803
1455
  description?: ReactNode;
1456
+ /** DOM id of the element that opened the overlay, used to restore focus on close. */
804
1457
  invokerId?: string;
805
1458
  policy?: GdsOverlayPolicy;
806
1459
  status?: GdsOverlayStatus;
807
1460
  }
1461
+ /** An overlay descriptor augmented with stack bookkeeping (open timestamp and resolved status). */
808
1462
  interface GdsOverlayStackItem extends OverlayDescriptor {
809
1463
  openedAt: number;
810
1464
  status: GdsOverlayStatus;
811
1465
  }
1466
+ /** Metadata-only event emitted for overlay lifecycle changes; carries no user content. */
812
1467
  interface GdsOverlayEvent {
813
1468
  type: GdsOverlayEventType;
814
1469
  id: string;
@@ -828,14 +1483,25 @@ interface OverlayManagerValue {
828
1483
  getOverlay: (id: string) => GdsOverlayStackItem | undefined;
829
1484
  requestClose: (id: string, reason: OverlayCloseReason) => OverlayCloseReason | null;
830
1485
  }
1486
+ /** Props for {@link OverlayManagerProvider}. */
831
1487
  interface OverlayManagerProviderProps {
832
1488
  children: ReactNode;
1489
+ /** Baseline policy merged under each overlay's own policy. */
833
1490
  defaultPolicy?: GdsOverlayPolicy;
1491
+ /** When true, opening any overlay replaces the current stack (no nesting). Defaults to false. */
834
1492
  singleOverlayMode?: boolean;
1493
+ /** Changing this value signals a route change, triggering each overlay's route policy. */
835
1494
  routeKey?: string | number;
1495
+ /** Receives metadata-only overlay lifecycle events. */
836
1496
  onOverlayEvent?: (event: GdsOverlayEvent) => void;
837
1497
  }
1498
+ /**
1499
+ * Context provider owning the overlay stack: registration, nesting vs. single-overlay
1500
+ * replacement, focus return, route-change handling, and metadata-only event emission.
1501
+ * Wrap the app (or a subtree) so GDS overlay surfaces can coordinate.
1502
+ */
838
1503
  declare function OverlayManagerProvider({ children, defaultPolicy, singleOverlayMode, routeKey, onOverlayEvent, }: OverlayManagerProviderProps): react.JSX.Element;
1504
+ /** Returns the overlay manager context; throws if used outside an {@link OverlayManagerProvider}. */
839
1505
  declare function useOverlayManager(): OverlayManagerValue;
840
1506
  interface GdsOverlaySurfaceBaseProps {
841
1507
  id: string;
@@ -848,58 +1514,94 @@ interface GdsOverlaySurfaceBaseProps {
848
1514
  policy?: GdsOverlayPolicy;
849
1515
  onBlockedClose?: (reason: OverlayCloseReason) => void;
850
1516
  }
1517
+ /** Props for {@link GdsModal}: the governed overlay base props plus Mantine `Modal` props the manager does not control. */
851
1518
  type GdsModalProps = GdsOverlaySurfaceBaseProps & Omit<ModalProps, 'opened' | 'onClose' | 'title' | 'children' | 'trapFocus'>;
1519
+ /** Props for {@link GdsDrawer}: the governed overlay base props plus Mantine `Drawer` props the manager does not control. */
852
1520
  type GdsDrawerProps = GdsOverlaySurfaceBaseProps & Omit<DrawerProps, 'opened' | 'onClose' | 'title' | 'children' | 'trapFocus'>;
1521
+ /** Alias of {@link GdsModalProps} for the dialog surface. */
853
1522
  type GdsDialogProps = GdsModalProps;
1523
+ /** Alias of {@link GdsDrawerProps} for the side-panel surface. */
854
1524
  type GdsSidePanelProps = GdsDrawerProps;
1525
+ /** Alias of {@link GdsDrawerProps} for the bottom-sheet surface. */
855
1526
  type GdsSheetProps = GdsDrawerProps;
1527
+ /** Governed modal surface that registers with the overlay manager, traps focus, and honors its close policy. */
856
1528
  declare function GdsModal({ id, opened, onClose, title, description, children, invokerId, policy, onBlockedClose, ...modalProps }: GdsModalProps): react.JSX.Element;
1529
+ /** Governed drawer surface that registers with the overlay manager, traps focus, and honors its close policy. */
857
1530
  declare function GdsDrawer({ id, opened, onClose, title, description, children, invokerId, policy, onBlockedClose, ...drawerProps }: GdsDrawerProps): react.JSX.Element;
1531
+ /** Bottom-anchored, mobile-fullscreen {@link GdsDrawer} variant. */
858
1532
  declare function GdsSheet(props: GdsSheetProps): react.JSX.Element;
1533
+ /** Semantic alias of {@link GdsModal} for dialog use cases. */
859
1534
  declare function GdsDialog(props: GdsDialogProps): react.JSX.Element;
1535
+ /** Right-anchored (by default) {@link GdsDrawer} variant for side panels. */
860
1536
  declare function GdsSidePanel(props: GdsSidePanelProps): react.JSX.Element;
861
1537
 
1538
+ /** Description of a confirmation prompt shown by `useGdsConfirm().confirm`. */
862
1539
  interface ConfirmRequest {
863
1540
  id?: string;
864
1541
  title: string;
865
1542
  message: ReactNode;
1543
+ /** Name of the target being acted on, shown in bold above the message. */
866
1544
  targetName?: string;
1545
+ /** Consequence text rendered beneath the message. */
867
1546
  consequence?: ReactNode;
1547
+ /** Semantic action id for the confirm button; defaults to `confirm` (or `delete` when `danger`). */
868
1548
  confirmAction?: SemanticAction;
1549
+ /** Semantic action id for the cancel button; defaults to `cancel`. */
869
1550
  cancelAction?: SemanticAction;
1551
+ /** Styles the dialog as destructive (red confirm button). */
870
1552
  danger?: boolean;
871
1553
  }
1554
+ /** Imperative confirmation API provided by `GdsConfirmProvider` and read via `useGdsConfirm`. */
872
1555
  interface GdsConfirmApi {
1556
+ /** Opens a yes/no confirmation and resolves to whether the user confirmed. */
873
1557
  confirm: (request: ConfirmRequest) => Promise<boolean>;
1558
+ /** Opens a pre-marked destructive confirmation that requires a target name. */
874
1559
  confirmDestructive: (request: ConfirmRequest & {
875
1560
  targetName: string;
876
1561
  }) => Promise<boolean>;
1562
+ /** Runs a full destructive-action flow (validate, execute, optional undo) and resolves with the result. */
877
1563
  confirmAction: <TPayload = unknown>(request: GdsConfirmationRequest<TPayload>) => Promise<GdsDestructiveActionResult<TPayload>>;
878
1564
  }
1565
+ /** Relative risk of a confirmed action, used to derive default danger styling and event metadata. */
879
1566
  type GdsRiskLevel = 'low' | 'medium' | 'high' | 'critical';
1567
+ /** Lifecycle status of a destructive-action confirmation. */
880
1568
  type GdsConfirmationStatus = 'idle' | 'open' | 'validating' | 'executing' | 'succeeded' | 'failed' | 'undoable' | 'cancelled';
1569
+ /** Telemetry event types emitted over a confirmation's lifecycle. */
881
1570
  type GdsConfirmationEventType = 'opened' | 'cancelled' | 'confirmed' | 'failed' | 'retry' | 'undo_started' | 'undo_completed';
1571
+ /** Undo policy for a confirmed action, exposing a time-boxed undo affordance. */
882
1572
  interface GdsUndoPolicy<TPayload = unknown> {
1573
+ /** How long, in milliseconds, undo stays available after the action succeeds. */
883
1574
  windowMs: number;
1575
+ /** Label for the undo button; defaults to "Undo". */
884
1576
  label?: string;
1577
+ /** Invoked when the user triggers undo within the window. */
885
1578
  onUndo: (payload: TPayload) => void | Promise<void>;
886
1579
  }
1580
+ /** A destructive-action request carrying a payload plus optional validation, execution, timeout, retry, and undo behavior. */
887
1581
  interface GdsConfirmationRequest<TPayload = unknown> extends ConfirmRequest {
888
1582
  payload: TPayload;
889
1583
  riskLevel?: GdsRiskLevel;
1584
+ /** Preview node rendered inside the dialog body. */
890
1585
  preview?: ReactNode;
1586
+ /** Pre-execution check; return `true` to proceed, or a string/false to abort with a message. */
891
1587
  validateTarget?: (payload: TPayload) => boolean | string | Promise<boolean | string>;
1588
+ /** Performs the action once confirmed and validated. */
892
1589
  execute?: (payload: TPayload) => void | Promise<void>;
1590
+ /** Milliseconds before `execute` is treated as timed out; defaults to the provider's timeout. */
893
1591
  timeoutMs?: number;
1592
+ /** Allows re-running the action from the failed state. */
894
1593
  retryable?: boolean;
895
1594
  undo?: GdsUndoPolicy<TPayload>;
896
1595
  }
1596
+ /** Result returned by `confirmAction`, reporting the final status and any undo window. */
897
1597
  interface GdsDestructiveActionResult<TPayload = unknown> {
898
1598
  status: GdsConfirmationStatus;
899
1599
  payload?: TPayload;
900
1600
  error?: string;
1601
+ /** Epoch-ms deadline until which undo remains available, when the action is undoable. */
901
1602
  undoUntil?: number;
902
1603
  }
1604
+ /** Metadata-only telemetry event describing a confirmation lifecycle transition. */
903
1605
  interface GdsConfirmationEvent {
904
1606
  type: GdsConfirmationEventType;
905
1607
  id: string;
@@ -908,57 +1610,209 @@ interface GdsConfirmationEvent {
908
1610
  timestamp: number;
909
1611
  privacy: 'metadata-only';
910
1612
  }
1613
+ /** Props for `GdsConfirmProvider`. */
911
1614
  interface GdsConfirmProviderProps {
912
1615
  children: ReactNode;
1616
+ /** Default execute timeout in ms applied when a request omits `timeoutMs`. Defaults to 10000. */
913
1617
  defaultTimeoutMs?: number;
914
1618
  onConfirmationEvent?: (event: GdsConfirmationEvent) => void;
915
1619
  }
1620
+ /**
1621
+ * Provides the imperative confirmation API and renders the shared `ConfirmDialog`
1622
+ * plus an undo banner. Handles boolean confirms and full destructive-action flows
1623
+ * (validate, then execute with a timeout, then an optional time-boxed undo),
1624
+ * restoring focus on close and emitting metadata-only lifecycle events.
1625
+ */
916
1626
  declare function GdsConfirmProvider({ children, defaultTimeoutMs, onConfirmationEvent, }: GdsConfirmProviderProps): react.JSX.Element;
1627
+ /** Returns the confirmation API; throws if used outside a `GdsConfirmProvider`. */
917
1628
  declare function useGdsConfirm(): GdsConfirmApi;
1629
+ /** Toast payload accepted by the toast API: a notification message without a preset id or severity. */
918
1630
  interface GdsToastMessage extends Omit<GdsNotificationMessage, 'id' | 'severity'> {
919
1631
  id?: string;
920
1632
  }
1633
+ /** Imperative toast API provided by `GdsToastProvider` and read via `useGdsToasts`. */
921
1634
  interface GdsToastApi {
1635
+ /** Shows a success toast (auto-closes after 4s by default). */
922
1636
  notifySuccess: (message: GdsToastMessage) => void;
1637
+ /** Shows an error toast (persistent by default) with an optional retry action. */
923
1638
  notifyError: (message: GdsToastMessage & {
924
1639
  retry?: () => void | Promise<void>;
925
1640
  }) => void;
1641
+ /** Shows a short action-complete success toast (auto-closes after 3s by default). */
926
1642
  notifyActionComplete: (message: GdsToastMessage) => void;
927
1643
  }
1644
+ /** Wraps children in the notification provider and exposes the governed toast API via `useGdsToasts`. */
928
1645
  declare function GdsToastProvider({ children }: {
929
1646
  children: ReactNode;
930
1647
  }): react.JSX.Element;
1648
+ /** Returns the toast API; throws if used outside a `GdsToastProvider`. */
931
1649
  declare function useGdsToasts(): GdsToastApi;
932
1650
 
1651
+ /** A registrable command shown in the {@link CommandPalette}. */
933
1652
  interface CommandDef {
934
1653
  id: string;
935
1654
  label: string;
936
1655
  group?: string;
1656
+ /** Extra terms matched by search in addition to the label. */
937
1657
  keywords?: string[];
1658
+ /** Display-only shortcut hint (e.g. `'⌘K'`). */
938
1659
  shortcut?: string;
1660
+ /** Action run when the command is chosen. */
939
1661
  run: () => Promise<void> | void;
1662
+ /** When present and returning `false`, the command is hidden from the palette. */
940
1663
  enabledWhen?: () => boolean;
941
1664
  }
1665
+ /** Provides the command registry and open/close state to the subtree, and mounts the {@link CommandPalette} modal. */
942
1666
  declare function CommandRegistryProvider({ children }: {
943
1667
  children: ReactNode;
944
1668
  }): react.JSX.Element;
1669
+ /** Hook to open/close the palette and register commands; throws outside a {@link CommandRegistryProvider}. */
945
1670
  declare function useCommandLauncher(): {
946
1671
  open: () => void;
947
1672
  close: () => void;
948
1673
  registerCommands: (next: CommandDef[]) => void;
949
1674
  };
1675
+ /**
1676
+ * Modal command palette: a searchable, score-ranked list of registered commands
1677
+ * that opens on Cmd/Ctrl+K and closes on Escape. Must be rendered within a
1678
+ * {@link CommandRegistryProvider} (mounted by it automatically).
1679
+ */
950
1680
  declare function CommandPalette({ opened, onClose }: {
951
1681
  opened: boolean;
952
1682
  onClose: () => void;
953
1683
  }): react.JSX.Element;
954
1684
 
1685
+ /** Preferred side to anchor a step card relative to its spotlighted target. */
1686
+ type GdsTourPlacement = 'top' | 'bottom' | 'left' | 'right' | 'auto';
1687
+ /** Whether the spotlighted element can be interacted with through the scrim hole. */
1688
+ type GdsTourInteraction = 'none' | 'allow-target';
1689
+ /** Lifecycle state of a tour. */
1690
+ type GdsTourStatus = 'idle' | 'running' | 'finished' | 'skipped';
1691
+ /** Why a tour stopped, surfaced to `onStop`/telemetry consumers. */
1692
+ type GdsTourStopReason = 'finished' | 'skipped' | 'escape' | 'programmatic';
1693
+ /**
1694
+ * One step of a guided tour: what to spotlight and what to say about it.
1695
+ * `target` is either a `data-gds-tour-target` id string (recommended — stable
1696
+ * across refactors) or a React ref to the element to highlight.
1697
+ */
1698
+ interface GdsTourStep {
1699
+ /** Stable id for the step (used for keys and analytics). */
1700
+ id: string;
1701
+ /** `data-gds-tour-target` value or a ref to the element to spotlight. */
1702
+ target: string | RefObject<HTMLElement | null>;
1703
+ /** Short heading shown in the step card. */
1704
+ title: string;
1705
+ /** Body copy explaining the spotlighted function. */
1706
+ body: ReactNode;
1707
+ /** Preferred card placement relative to the target. Defaults to `'auto'`. */
1708
+ placement?: GdsTourPlacement;
1709
+ /** Whether this step may be skipped with Esc / the Skip control. Defaults to true. */
1710
+ canSkip?: boolean;
1711
+ /** Extra halo (px) around the target inside the spotlight hole. */
1712
+ spotlightPadding?: number;
1713
+ /** Whether the target is clickable through the hole. Defaults to `'none'`. */
1714
+ interaction?: GdsTourInteraction;
1715
+ }
1716
+ /** Options accepted by `start()` and the declarative wrapper. */
1717
+ interface GdsTourStartOptions {
1718
+ /** Start on a specific step index. Defaults to 0. */
1719
+ startAt?: number;
1720
+ /** Persist "seen" state so an auto-start tour only runs once. */
1721
+ persist?: 'localStorage' | 'none';
1722
+ /** Called on every step transition with the new index. */
1723
+ onStepChange?: (index: number, step: GdsTourStep) => void;
1724
+ /** Called when the tour completes via the final "Done" action. */
1725
+ onFinish?: () => void;
1726
+ /** Called when the tour is skipped (Skip control or Esc). */
1727
+ onSkip?: () => void;
1728
+ /** Called whenever the tour stops, with the reason. */
1729
+ onStop?: (reason: GdsTourStopReason) => void;
1730
+ }
1731
+ interface GdsTourContextValue {
1732
+ status: GdsTourStatus;
1733
+ tourId: string | null;
1734
+ index: number;
1735
+ count: number;
1736
+ activeStep: GdsTourStep | null;
1737
+ start: (tourId: string, steps: GdsTourStep[], options?: GdsTourStartOptions) => void;
1738
+ next: () => void;
1739
+ back: () => void;
1740
+ goTo: (index: number) => void;
1741
+ stop: (reason?: GdsTourStopReason) => void;
1742
+ }
1743
+ /**
1744
+ * Returns whether the given tour has already been completed/skipped on this
1745
+ * device (reads the same `localStorage` key the provider writes when a
1746
+ * persisted tour ends). SSR-safe: returns false on the server.
1747
+ */
1748
+ declare function useHasSeenTour(tourId: string): boolean;
1749
+ /** Props for {@link GdsTourProvider}. */
1750
+ interface GdsTourProviderProps {
1751
+ children: ReactNode;
1752
+ }
1753
+ /**
1754
+ * App-root controller for guided onboarding tours. Mount once inside
1755
+ * `GdsProvider`. Exposes {@link useGdsTour} and renders the spotlight scrim +
1756
+ * anchored step card while a tour is running. The dim reads the governed
1757
+ * `--gds-overlay-scrim` token; positioning is dynamic; Esc/keyboard, focus
1758
+ * trap + return, scroll-lock, and reposition-on-scroll/resize are handled here.
1759
+ */
1760
+ declare function GdsTourProvider({ children }: GdsTourProviderProps): react.JSX.Element;
1761
+ /** Access the guided-tour controller. Throws if used outside {@link GdsTourProvider}. */
1762
+ declare function useGdsTour(): GdsTourContextValue;
1763
+ /** Props for the declarative {@link GdsGuidedTour} wrapper. */
1764
+ interface GdsGuidedTourProps extends GdsTourStartOptions {
1765
+ /** Stable id for the tour (used for persistence + analytics). */
1766
+ id: string;
1767
+ /** The ordered steps to run. */
1768
+ steps: GdsTourStep[];
1769
+ /** When true, the tour starts (once, respecting `persist`). */
1770
+ open?: boolean;
1771
+ /** Alias of `startAt`. */
1772
+ defaultStep?: number;
1773
+ }
1774
+ /**
1775
+ * Declarative controller for a guided tour: renders nothing, but starts the
1776
+ * tour when `open` becomes true (skipping it if `persist: 'localStorage'` and
1777
+ * the tour was already seen). For imperative control use {@link useGdsTour}.
1778
+ */
1779
+ declare function GdsGuidedTour({ id, steps, open, defaultStep, ...options }: GdsGuidedTourProps): null;
1780
+ /** Props for {@link GdsTourButton}; extends the native button attributes (minus `onClick`). */
1781
+ interface GdsTourButtonProps extends Omit<ComponentPropsWithoutRef<'button'>, 'onClick' | 'type'>, GdsTourStartOptions {
1782
+ /** The tour id to start when the button is pressed. */
1783
+ tourId: string;
1784
+ /** The ordered steps to run. */
1785
+ steps: GdsTourStep[];
1786
+ /** Visible label. Defaults to the localized `gds.tour.launch` control ("Take the guided tour"). */
1787
+ label?: ReactNode;
1788
+ }
1789
+ /**
1790
+ * Governed launcher button for a guided tour: renders a themeable
1791
+ * `.gds-tour-launch` control whose label reads the localized `gds.tour.launch`
1792
+ * key, and imperatively starts the given tour via {@link useGdsTour} on click.
1793
+ * Use it wherever a product wants a "Take the guided tour" affordance without
1794
+ * hand-rolling a raw control; pair it with {@link GdsGuidedTour} for first-run
1795
+ * auto-start.
1796
+ */
1797
+ declare function GdsTourButton({ tourId, steps, label, className, startAt, persist, onStepChange, onFinish, onSkip, onStop, ...buttonProps }: GdsTourButtonProps): react.JSX.Element;
1798
+
1799
+ /** Props for `GdsLayoutTemplatePreview`. */
955
1800
  interface GdsLayoutTemplatePreviewProps {
1801
+ /** Templates to choose from; defaults to the built-in GDS layout templates. */
956
1802
  templates?: GdsLayoutTemplate[];
1803
+ /** Id of the template selected initially; falls back to the first template. */
957
1804
  initialTemplateId?: string;
1805
+ /** Panel heading; defaults to "Template cookbook". */
958
1806
  title?: string;
1807
+ /** Panel description shown under the title. */
959
1808
  description?: string;
960
1809
  }
961
- declare function GdsLayoutTemplatePreview({ templates, initialTemplateId, title, description, }: GdsLayoutTemplatePreviewProps): react.JSX.Element;
1810
+ /**
1811
+ * Interactive layout-template cookbook: pick a template, edit its schema JSON, and
1812
+ * apply it to render the live layout with validation diagnostics; also supports
1813
+ * resetting to the template and copying the schema to the clipboard.
1814
+ */
1815
+ declare function GdsLayoutTemplatePreview({ templates, initialTemplateId, title: titleProp, description: descriptionProp, }: GdsLayoutTemplatePreviewProps): react.JSX.Element;
962
1816
 
963
1817
  interface GdsNotificationContextValue {
964
1818
  notifications: GdsNotificationMessage[];
@@ -970,91 +1824,144 @@ interface GdsNotificationContextValue {
970
1824
  dismiss: (id: string) => void;
971
1825
  clear: () => void;
972
1826
  }
1827
+ /** Props for {@link GdsNotificationProvider}. */
973
1828
  interface GdsNotificationProviderProps {
974
1829
  children: ReactNode;
1830
+ /** Suppress the visible list; notifications become announcement-only for assistive tech. */
975
1831
  disabled?: boolean;
1832
+ /** Default policy (persistence, live region, auto-close, dedupe) applied to each notification. */
976
1833
  defaultPolicy?: GdsNotificationPolicy;
1834
+ /** Receives every notification lifecycle audit event. */
977
1835
  onAuditEvent?: (event: GdsNotificationAuditEvent) => void;
978
1836
  }
1837
+ /**
1838
+ * Context provider and controller for GDS notifications: exposes {@link useGdsNotifications}
1839
+ * to notify, update, and dismiss, and handles dedupe, auto-close timers, retry with
1840
+ * attempt limits, and audit events, mirroring announcements into an accessible live region.
1841
+ */
979
1842
  declare function GdsNotificationProvider({ children, disabled, defaultPolicy, onAuditEvent, }: GdsNotificationProviderProps): react.JSX.Element;
1843
+ /** Hook to access the notification controller; throws if used outside a {@link GdsNotificationProvider}. */
980
1844
  declare function useGdsNotifications(): GdsNotificationContextValue;
981
- declare function NotificationCenter({ title, emptyMessage, }: {
1845
+ /** Renders the current notifications from context as a dismissible, retryable list with a clear-all control. */
1846
+ declare function NotificationCenter({ title: titleProp, emptyMessage: emptyMessageProp, }: {
982
1847
  title?: ReactNode;
983
1848
  emptyMessage?: ReactNode;
984
1849
  }): react.JSX.Element;
1850
+ /** Alias for {@link NotificationCenter}. */
985
1851
  declare const GdsNotificationCenter: typeof NotificationCenter;
986
1852
 
1853
+ /** Canonical GDS operational (UX) event types emitted by governed components. */
987
1854
  declare const gdsOperationalEventTypes: readonly ["submit", "submit_success", "submit_error", "validation_error", "retry", "timeout", "upload_failure", "destructive_action", "user_cancel", "action_complete", "adapter_error", "payload_rejected"];
1855
+ /** Canonical failure-reason codes attached to failed/rejected telemetry events. */
988
1856
  declare const gdsUxFailureReasons: readonly ["adapter_unavailable", "network_unavailable", "permission_denied", "validation_failed", "request_timeout", "upload_failed", "destructive_action_rejected", "user_cancelled", "payload_rejected", "unknown"];
1857
+ /** An event type: one of {@link gdsOperationalEventTypes} or any custom string. */
989
1858
  type GdsOperationalEventType = (typeof gdsOperationalEventTypes)[number] | (string & {});
1859
+ /** A failure reason: one of {@link gdsUxFailureReasons} or any custom string. */
990
1860
  type GdsUxFailureReason = (typeof gdsUxFailureReasons)[number] | (string & {});
1861
+ /** Outcome recorded alongside a telemetry event. */
991
1862
  type GdsTelemetryOutcome = 'pending' | 'success' | 'error' | 'info' | 'cancelled' | 'timeout' | 'rejected';
1863
+ /** Allowed primitive value types inside a telemetry payload. */
992
1864
  type GdsTelemetryPayloadValue = string | number | boolean | null;
1865
+ /** Flat key/value bag of telemetry payload values. */
993
1866
  type GdsTelemetryPayload = Record<string, GdsTelemetryPayloadValue>;
1867
+ /** A normalized operational telemetry event as delivered to sinks and adapters. */
994
1868
  interface GdsOperationalEvent {
1869
+ /** Name of the emitting component. */
995
1870
  component: string;
996
1871
  eventType: GdsOperationalEventType;
1872
+ /** Emission timestamp (epoch ms). */
997
1873
  ts: number;
1874
+ /** Id used to correlate related events and to drive deterministic sampling. */
998
1875
  correlationId: string;
999
1876
  outcome?: GdsTelemetryOutcome;
1000
1877
  reason?: GdsUxFailureReason;
1001
1878
  actionId?: string;
1002
1879
  workflowId?: string;
1003
1880
  operationId?: string;
1881
+ /** Attempt number for retried operations. */
1004
1882
  attempt?: number;
1005
1883
  timeoutMs?: number;
1884
+ /** Structured context, scrubbed by the payload policy before dispatch. */
1006
1885
  context?: GdsTelemetryPayload;
1886
+ /** Event payload, scrubbed by the payload policy before dispatch. */
1007
1887
  payload?: GdsTelemetryPayload;
1008
1888
  }
1889
+ /** Backward-compatible alias of {@link GdsOperationalEvent}. */
1009
1890
  interface GdsUiEvent extends GdsOperationalEvent {
1010
1891
  }
1892
+ /** Input shape for emitting an event; `ts` is filled in automatically when omitted. */
1011
1893
  type GdsOperationalEventInput = Omit<GdsOperationalEvent, 'ts'> & {
1012
1894
  ts?: number;
1013
1895
  };
1896
+ /** A function that receives normalized telemetry events (sync or async). */
1014
1897
  type GdsTelemetrySink = (event: GdsOperationalEvent) => void | Promise<void>;
1898
+ /** A telemetry transport: emits events, optionally gated by availability and with a flush hook. */
1015
1899
  interface GdsTelemetryAdapter {
1016
1900
  id: string;
1017
1901
  emit: GdsTelemetrySink;
1902
+ /** When present and returning `false`, events are reported as `adapter-unavailable` instead of emitted. */
1018
1903
  isAvailable?: () => boolean;
1019
1904
  flush?: () => void | Promise<void>;
1020
1905
  }
1906
+ /** Governs how event `context`/`payload` are scrubbed before dispatch. */
1021
1907
  interface GdsEventPayloadPolicy {
1908
+ /** Keys whose values are dropped (case-insensitive substring match); merged with the built-in unsafe-key list. */
1022
1909
  redactKeys?: string[];
1910
+ /** Keys that mark the payload as rejected (case-insensitive substring match). */
1023
1911
  rejectKeys?: string[];
1912
+ /** When `true`, an event with any rejected key is dropped entirely rather than scrubbed. */
1024
1913
  rejectUnsafePayload?: boolean;
1914
+ /** Maximum number of keys retained per payload. Defaults to 24. */
1025
1915
  maxKeys?: number;
1916
+ /** Maximum string length before truncation. Defaults to 160. */
1026
1917
  maxStringLength?: number;
1918
+ /** Called with the rejected keys whenever scrubbing removes any. */
1027
1919
  onRejectedPayload?: (details: GdsRejectedPayloadDetails) => void;
1028
1920
  }
1921
+ /** Details reported to `onRejectedPayload` when payload keys are redacted or rejected. */
1029
1922
  interface GdsRejectedPayloadDetails {
1030
1923
  component: string;
1031
1924
  eventType: GdsOperationalEventType;
1032
1925
  correlationId: string;
1926
+ /** The payload keys that were removed. */
1033
1927
  rejectedKeys: string[];
1034
1928
  }
1929
+ /** Result status returned when an event is dispatched via {@link emitGdsEvent}. */
1035
1930
  type GdsTelemetryDispatchStatus = 'emitted' | 'adapter-unavailable' | 'payload-rejected' | 'sampled-out' | 'sampling-disabled' | 'dropped';
1931
+ /** Outcome of a dispatch attempt: the status plus the normalized event and any rejected keys. */
1036
1932
  interface GdsTelemetryDispatchResult {
1037
1933
  status: GdsTelemetryDispatchStatus;
1934
+ /** The normalized (scrubbed, timestamped) event, when one was produced. */
1038
1935
  event?: GdsOperationalEvent;
1039
1936
  rejectedKeys?: string[];
1040
1937
  }
1938
+ /** Options controlling a single {@link emitGdsEvent} dispatch. */
1041
1939
  interface GdsTelemetryDispatchOptions {
1940
+ /** Preferred transport; takes precedence over `sink`. */
1042
1941
  adapter?: GdsTelemetryAdapter;
1942
+ /** Legacy sink used when no `adapter` is provided. */
1043
1943
  sink?: GdsTelemetrySink;
1944
+ /** Fraction of events to keep (0–1), applied deterministically per `correlationId`. Defaults to 1. */
1044
1945
  sampleRate?: number;
1045
1946
  payloadPolicy?: GdsEventPayloadPolicy;
1046
1947
  onAdapterError?: (error: unknown, event: GdsOperationalEvent) => void;
1047
1948
  }
1949
+ /** Configuration for {@link createGdsTelemetryAdapter}, adding timeout/retry behavior around a sink. */
1048
1950
  interface GdsTelemetryAdapterOptions {
1049
1951
  id: string;
1050
1952
  emit: GdsTelemetrySink;
1051
1953
  isAvailable?: () => boolean;
1052
1954
  flush?: () => void | Promise<void>;
1955
+ /** Per-attempt timeout in ms. Defaults to 1000. */
1053
1956
  timeoutMs?: number;
1957
+ /** Number of extra retries after the first attempt. Defaults to 0. */
1054
1958
  retryAttempts?: number;
1959
+ /** Delay between retries in ms. Defaults to 0. */
1055
1960
  retryDelayMs?: number;
1961
+ /** Called with the last error once all attempts are exhausted. */
1056
1962
  onError?: (error: unknown, event: GdsOperationalEvent) => void;
1057
1963
  }
1964
+ /** Props for {@link GdsTelemetryProvider}; mirror {@link GdsTelemetryDispatchOptions} for the whole subtree. */
1058
1965
  interface GdsTelemetryProviderProps {
1059
1966
  children: ReactNode;
1060
1967
  sink?: GdsTelemetrySink;
@@ -1067,59 +1974,108 @@ interface GdsTelemetryContextValue {
1067
1974
  emit: (event: GdsOperationalEventInput) => GdsTelemetryDispatchResult;
1068
1975
  emitGdsEvent: (event: GdsOperationalEventInput) => GdsTelemetryDispatchResult;
1069
1976
  }
1977
+ /** Type guard: `true` when the string is one of the canonical {@link gdsOperationalEventTypes}. */
1070
1978
  declare function isGdsOperationalEventType(eventType: string): eventType is (typeof gdsOperationalEventTypes)[number];
1979
+ /**
1980
+ * Wraps a sink into a {@link GdsTelemetryAdapter} that applies per-attempt
1981
+ * timeout and retry, stamps each attempt number onto the event, and reports the
1982
+ * final error to `onError` when all attempts fail.
1983
+ */
1071
1984
  declare function createGdsTelemetryAdapter({ id, emit, isAvailable, flush, timeoutMs, retryAttempts, retryDelayMs, onError, }: GdsTelemetryAdapterOptions): GdsTelemetryAdapter;
1985
+ /**
1986
+ * Core dispatch: applies sampling, scrubs the payload per policy, and routes the
1987
+ * normalized event to the adapter (or legacy sink), returning a
1988
+ * {@link GdsTelemetryDispatchResult} describing what happened.
1989
+ */
1072
1990
  declare function emitGdsEvent({ adapter, sink, sampleRate, payloadPolicy, onAdapterError, }: GdsTelemetryDispatchOptions, event: GdsOperationalEventInput): GdsTelemetryDispatchResult;
1991
+ /** Provides a memoized telemetry `emit` to the subtree via context, bound to the given adapter/sink and policy. */
1073
1992
  declare function GdsTelemetryProvider({ children, sink, adapter, sampleRate, payloadPolicy, onAdapterError, }: GdsTelemetryProviderProps): react.JSX.Element;
1993
+ /** Reads the telemetry context; throws when used outside a {@link GdsTelemetryProvider}. */
1074
1994
  declare function useGdsTelemetry(): GdsTelemetryContextValue;
1075
1995
 
1996
+ /** Stage of the public capture flow. */
1076
1997
  type PublicCaptureStageId = 'identify' | 'consent' | 'capture' | 'accept' | 'cta' | 'restart' | 'share';
1998
+ /** Runtime state of the capture hardware and flow. */
1077
1999
  type CaptureRuntimeState = 'idle' | 'loading' | 'ready' | 'permission-denied' | 'hardware-unavailable' | 'error' | 'complete';
2000
+ /** Props for {@link PublicCaptureFlow}. */
1078
2001
  interface PublicCaptureFlowProps {
2002
+ /** Current flow stage; selects default title/description copy. */
1079
2003
  stage: PublicCaptureStageId;
2004
+ /** Current runtime state; drives the flow status and permission/hardware recovery bodies. */
1080
2005
  state: CaptureRuntimeState;
2006
+ /** Overrides the stage's default title. */
1081
2007
  title?: ReactNode;
2008
+ /** Overrides the stage's default description. */
1082
2009
  description?: ReactNode;
2010
+ /** Bounded hardware surface (e.g. camera view) rendered only during the `capture` stage. */
1083
2011
  hardwareSurface?: ReactNode;
2012
+ /** Stage body content shown when no runtime recovery block applies. */
1084
2013
  body?: ReactNode;
2014
+ /** Optional inline notice text for the stage. */
1085
2015
  notice?: ReactNode;
1086
2016
  actions?: PublicFlowAction[];
2017
+ /** Share options; on the `share` stage these render as the flow body. */
1087
2018
  share?: ShareButtonGroupProps;
2019
+ /** Optional exit control rendered in the shell header. */
1088
2020
  exitAction?: ReactNode;
1089
2021
  }
2022
+ /**
2023
+ * Governed public capture flow: maps a capture stage and runtime state onto a
2024
+ * {@link PublicFlowShell}, supplying default stage copy, permission/hardware
2025
+ * recovery bodies, and an optional share overlay on the final stage.
2026
+ */
1090
2027
  declare function PublicCaptureFlow({ stage, state, title, description, hardwareSurface, body, notice, actions, share, exitAction, }: PublicCaptureFlowProps): react.JSX.Element;
2028
+ /** Identity stage layout: stacks the supplied identity fields. */
1091
2029
  declare function PublicIdentityStep({ children }: {
1092
2030
  children: ReactNode;
1093
2031
  }): react.JSX.Element;
2032
+ /** Consent stage layout: renders consent copy above its control (e.g. a checkbox). */
1094
2033
  declare function PublicConsentStep({ consentText, control }: {
1095
2034
  consentText: ReactNode;
1096
2035
  control: ReactNode;
1097
2036
  }): react.JSX.Element;
2037
+ /** Accept stage layout: renders the captured result preview above accept/retry actions. */
1098
2038
  declare function PublicAcceptStep({ preview, actions }: {
1099
2039
  preview: ReactNode;
1100
2040
  actions?: ReactNode;
1101
2041
  }): react.JSX.Element;
2042
+ /** Call-to-action stage layout: stacks the supplied CTA content. */
1102
2043
  declare function PublicCtaStep({ children }: {
1103
2044
  children: ReactNode;
1104
2045
  }): react.JSX.Element;
2046
+ /** Restart stage layout: stacks the supplied restart content. */
1105
2047
  declare function PublicRestartStep({ children }: {
1106
2048
  children: ReactNode;
1107
2049
  }): react.JSX.Element;
2050
+ /** Share stage overlay: renders a {@link ShareButtonGroup} for the public result. */
1108
2051
  declare function PublicShareOverlay(props: ShareButtonGroupProps): react.JSX.Element;
1109
2052
 
2053
+ /** Playback state driving control availability and the play/pause icon. */
1110
2054
  type PlaybackControlState = 'loading' | 'ready' | 'playing' | 'paused' | 'empty' | 'error' | 'degraded';
2055
+ /** Props for `PlaybackControls`. Optional handlers whose control should not render are simply omitted (e.g. no `onRestart` hides the restart button). */
1111
2056
  interface PlaybackControlsProps {
1112
2057
  state: PlaybackControlState;
2058
+ /** Whether the Next control is enabled. Defaults to `true`. */
1113
2059
  canGoNext?: boolean;
2060
+ /** Whether the Previous control is enabled. Defaults to `true`. */
1114
2061
  canGoPrevious?: boolean;
2062
+ /** Current fullscreen state, driving the fullscreen toggle label. Defaults to `false`. */
1115
2063
  fullscreen?: boolean;
1116
2064
  onPlayPause?: () => void;
1117
2065
  onNext?: () => void;
1118
2066
  onPrevious?: () => void;
2067
+ /** Toggles fullscreen; when omitted the fullscreen control is not rendered. */
1119
2068
  onFullscreenChange?: (fullscreen: boolean) => void;
2069
+ /** Restarts playback; when omitted the restart control is not rendered. */
1120
2070
  onRestart?: () => void;
1121
2071
  reducedMotion?: boolean;
1122
2072
  }
2073
+ /**
2074
+ * Binds global playback keyboard shortcuts while `enabled`: Space toggles
2075
+ * play/pause, Arrow Right/Left go next/previous, and `F` toggles fullscreen.
2076
+ * Ignores key events originating from inputs, buttons, links, or editable
2077
+ * elements, and cleans up its listener on unmount.
2078
+ */
1123
2079
  declare function usePlaybackKeyboardControls({ enabled, onPlayPause, onNext, onPrevious, onFullscreenToggle, }: {
1124
2080
  enabled?: boolean;
1125
2081
  onPlayPause?: () => void;
@@ -1127,7 +2083,310 @@ declare function usePlaybackKeyboardControls({ enabled, onPlayPause, onNext, onP
1127
2083
  onPrevious?: () => void;
1128
2084
  onFullscreenToggle?: () => void;
1129
2085
  }): void;
2086
+ /** Governed transport control bar (previous, play/pause, next, optional restart/fullscreen) with a live-announced state label; controls disable in loading/empty/error states. */
1130
2087
  declare function PlaybackControls({ state, canGoNext, canGoPrevious, fullscreen, onPlayPause, onNext, onPrevious, onFullscreenChange, onRestart, }: PlaybackControlsProps): react.JSX.Element;
2088
+ /** Overlay-styled wrapper around {@link PlaybackControls}, sharing the same props, for use atop media surfaces. */
1131
2089
  declare function PlaybackOverlayControls(props: PlaybackControlsProps): react.JSX.Element;
1132
2090
 
1133
- export { type AccessRecoveryAction, AccessRecoveryPanel, type AccessRecoveryPanelProps, type AccessRecoveryState, AdvancedDataTable, type AdvancedDataTableProps, type AdvancedSortDirection, type AdvancedTableColumn, type AdvancedTableDensity, type CaptureRuntimeState, type CommandDef, CommandPalette, CommandRegistryProvider, ConfirmDialog, type ConfirmDialogProps, type ConfirmRequest, type CreateGdsFormFromSchemaOptions, DiscoveryShell, type DiscoveryShellProps, type DiscoveryShellState, DocsCodeBlock, type DocsCodeBlockProps, DocsHeaderActionSelect, type DocsHeaderActionSelectOption, type DocsHeaderActionSelectProps, DocsShell, type DocsShellProps, type FieldState, FileUploadField, type FileUploadFieldProps, FormErrorSummary, type FormSnapshot, GameBoardTile, type GameBoardTileProps, GdsAccessGate, GdsAccessGateAction, GdsAccessGateContract, GdsAccessGateEvent, type GdsAccessGateProps, type GdsAltTextPolicy, type GdsAsset, type GdsAssetAdapter, type GdsAssetDisplayMode, type GdsAssetEvent, GdsAssetManager, type GdsAssetManagerProps, GdsAssetPreviewCard, type GdsAssetPreviewCardProps, type GdsAssetQueueItem, type GdsAssetStatus, type GdsAssetUploadQueueController, type GdsAssetUploadRequest, type GdsAssetValidationPolicy, type GdsConfirmApi, GdsConfirmProvider, type GdsConfirmProviderProps, type GdsConfirmationEvent, type GdsConfirmationEventType, type GdsConfirmationRequest, type GdsConfirmationStatus, GdsDataTable, type GdsDataTableController, type GdsDataTableProps, type GdsDestructiveActionResult, GdsDialog, type GdsDialogProps, type GdsDraftAdapter, GdsDrawer, type GdsDrawerProps, type GdsEventPayloadPolicy, type GdsExportRequest, type GdsFieldDescriptor, type GdsFieldOption, type GdsFieldRenderer, type GdsFieldRendererContext, type GdsFieldRendererMap, type GdsFormOrchestrationEvent, GdsFormProvider, type GdsFormSchema, type GdsFormServerError, GdsLayoutTemplate, GdsLayoutTemplatePreview, type GdsLayoutTemplatePreviewProps, GdsModal, type GdsModalProps, GdsNotificationAuditEvent, GdsNotificationCenter, GdsNotificationMessage, GdsNotificationPolicy, GdsNotificationProvider, type GdsNotificationProviderProps, type GdsOperationalEvent, type GdsOperationalEventInput, type GdsOperationalEventType, type GdsOverlayEvent, type GdsOverlayEventType, type GdsOverlayPolicy, type GdsOverlayRoutePolicy, type GdsOverlayStackItem, type GdsOverlayStatus, type GdsOverlayType, type GdsRejectedPayloadDetails, type GdsResourceActionId, type GdsResourceActionResult, type GdsResourceAdapter, GdsResourceManager, type GdsResourceManagerController, type GdsResourceManagerEvent, type GdsResourceManagerProps, type GdsResourcePermission, type GdsResourceRecord, type GdsResourceWorkflowState, type GdsRiskLevel, type GdsSchemaAdapterResult, type GdsSchemaFieldType, GdsSchemaForm, type GdsSchemaFormEvent, type GdsSchemaFormProps, type GdsSchemaUploadAdapter, type GdsSchemaUploadRemoveRequest, type GdsSchemaUploadRequest, type GdsSchemaUploadResult, GdsSheet, type GdsSheetProps, GdsSidePanel, type GdsSidePanelProps, type GdsTableColumn, type GdsTableDataAdapter, type GdsTableEvent, type GdsTableLoadResult, type GdsTableQuery, type GdsTableSortDirection, type GdsTableStatus, type GdsTelemetryAdapter, type GdsTelemetryAdapterOptions, type GdsTelemetryDispatchOptions, type GdsTelemetryDispatchResult, type GdsTelemetryDispatchStatus, type GdsTelemetryOutcome, type GdsTelemetryPayload, type GdsTelemetryPayloadValue, GdsTelemetryProvider, type GdsTelemetryProviderProps, type GdsTelemetrySink, type GdsToastApi, type GdsToastMessage, GdsToastProvider, type GdsUiEvent, type GdsUndoPolicy, type GdsUxFailureReason, GdsValidationSummary, GdsVocabularyPack, type ListingAction, ListingProvider, type ListingQueryState, type ListingStateConfig, type ListingStateValue, MediaFit, MediaPreviewAspectRatio, NotificationCenter, type OverlayCloseReason, type OverlayDescriptor, type OverlayKind, OverlayManagerProvider, type OverlayManagerProviderProps, type PlaybackControlState, PlaybackControls, type PlaybackControlsProps, PlaybackOverlayControls, PublicAcceptStep, PublicCaptureFlow, type PublicCaptureFlowProps, type PublicCaptureStageId, PublicConsentStep, PublicCtaStep, PublicFlowAction, PublicIdentityStep, PublicRestartStep, PublicShareOverlay, ReferenceThemeExplorer, SemanticAction, SemanticActionId, SemanticButton, type SemanticButtonProps, ShareButtonGroup, type ShareButtonGroupProps, type ShareChannel, SidebarNav, SidebarNavItem, type SidebarNavItemProps, type SidebarNavProps, SidebarNavSection, type SidebarNavSectionProps, type SubmitState, type ThemeExplorerSelection, type ThemePresetId, type ThemeSchemeId, ThemeToggle, type ThemeToggleProps, UploadDropzone, type UploadDropzoneProps, type UploadDropzoneState, type UseDiscoveryShellStateOptions, type UseGdsAssetUploadQueueConfig, type UseGdsDataTableConfig, type UseGdsFormOrchestrationConfig, type UseGdsResourceManagerConfig, ValidatedFieldMessage, type ValidationIssue, type ValidationSeverity, createGdsAssetAdapter, createGdsDraftAdapter, createGdsFormFromSchema, createGdsResourceAdapter, createGdsTableAdapter, createGdsTelemetryAdapter, emitGdsEvent, gdsFormReducer, gdsOperationalEventTypes, gdsUxFailureReasons, isGdsOperationalEventType, jsonSchemaToGdsFormSchema, listingQueryReducer, openApiToGdsFormSchema, serializeGdsTableQuery, useCommandLauncher, useDiscoveryShellState, useGdsAssetUploadQueue, useGdsConfirm, useGdsDataTable, useGdsForm, useGdsFormOrchestration, useGdsFormSnapshot, useGdsNotifications, useGdsResourceManager, useGdsTelemetry, useGdsToasts, useListingState, useOverlayManager, usePlaybackKeyboardControls, validateGdsAsset, zodToGdsFormSchema };
2091
+ /** Props for {@link ReportOutdatedLink}. */
2092
+ interface ReportOutdatedLinkProps {
2093
+ /** Consumer-owned side effect; GDS performs no I/O. */
2094
+ onReport?: () => void;
2095
+ /** Overrides the default action label. */
2096
+ label?: string;
2097
+ }
2098
+ /**
2099
+ * Inline report action: idle renders a button, activation replaces it with a persistent
2100
+ * thank-you confirmation (announced via a polite live region) and fires `onReport` exactly
2101
+ * once. One-way — there is no revert, unlike `SemanticButton`'s transient feedback.
2102
+ */
2103
+ declare function ReportOutdatedLink({ onReport, label }: ReportOutdatedLinkProps): react.JSX.Element;
2104
+ /** Row-level data-provenance status for a {@link SourceBlock} price/schedule row. */
2105
+ type SourceRowStatus = 'estimate' | 'confirmed' | 'needs-confirmation';
2106
+ /** Props for {@link SourceBlock}. */
2107
+ interface SourceBlockProps {
2108
+ /** e.g. "Official provider website", "Public event feed". */
2109
+ sourceType?: string;
2110
+ /** When set, the source type renders as a link. */
2111
+ sourceUrl?: string;
2112
+ /** When set, rendered via {@link LastCheckedLabel}; absent renders the unknown-value row. */
2113
+ lastChecked?: Date | string;
2114
+ /** Row status for the price. Absent renders the unknown-value row. */
2115
+ priceStatus?: SourceRowStatus;
2116
+ /** Row status for the schedule. Absent renders the unknown-value row. */
2117
+ scheduleStatus?: SourceRowStatus;
2118
+ /** When set, renders the embedded report-outdated action. */
2119
+ onReport?: () => void;
2120
+ }
2121
+ /**
2122
+ * Detail-page information-source card: a title, four labelled rows that are never omitted
2123
+ * (an absent value states the unknown wording explicitly), a standing confirm-with-provider
2124
+ * line, and — when `onReport` is set — the embedded {@link ReportOutdatedLink}.
2125
+ */
2126
+ declare function SourceBlock({ sourceType, sourceUrl, lastChecked, priceStatus, scheduleStatus, onReport }: SourceBlockProps): react.JSX.Element;
2127
+ /** Props for {@link ConfirmChecklist}. */
2128
+ interface ConfirmChecklistProps {
2129
+ /** Omitted = the six standard items. Explicit [] renders nothing. */
2130
+ items?: string[];
2131
+ /** Overrides the default title. */
2132
+ title?: string;
2133
+ }
2134
+ /**
2135
+ * Amber check-before-booking card: a title and a list of items the reader should verify
2136
+ * directly with the provider before committing. Checking an item applies a line-through and
2137
+ * reduced emphasis while it remains a real, labelled, checked checkbox. Renders `null` for
2138
+ * an explicit empty `items` array.
2139
+ */
2140
+ declare function ConfirmChecklist({ items, title }: ConfirmChecklistProps): react.JSX.Element | null;
2141
+
2142
+ /**
2143
+ * HeroSearchPanel (issue 710).
2144
+ *
2145
+ * Homepage intent-capture surface: a card-shaped `<form role="search">` with a
2146
+ * consumer-defined, flex-wrapping row of labeled text fields, a primary + optional
2147
+ * secondary CTA, and an optional trust-line slot. Field configuration and all
2148
+ * visible copy are consumer-supplied; the component owns only structure, tokens,
2149
+ * and value-collection behaviour.
2150
+ */
2151
+ /** Flex basis of one intent field in the panel's wrapping row. */
2152
+ declare const GDS_HERO_SEARCH_FIELD_FLEX_BASIS_PX = 120;
2153
+ /** Minimum width one intent field may shrink to before the row wraps. */
2154
+ declare const GDS_HERO_SEARCH_FIELD_MIN_WIDTH_PX = 110;
2155
+ /** One text field in a HeroSearchPanel. All copy is consumer-supplied. */
2156
+ interface HeroSearchFieldConfig {
2157
+ /** Stable key; becomes the property name in the submitted values record. Must be unique. */
2158
+ key: string;
2159
+ /** Visible field label. */
2160
+ label: string;
2161
+ /** Optional input placeholder. */
2162
+ placeholder?: string;
2163
+ }
2164
+ /** Props for {@link HeroSearchPanel}. */
2165
+ interface HeroSearchPanelProps {
2166
+ /** Field row definition. Required; the component ships no default field set. */
2167
+ fields: HeroSearchFieldConfig[];
2168
+ /** Controlled values. When set, the component is fully controlled via onChange. */
2169
+ values?: Record<string, string>;
2170
+ /** Initial values for uncontrolled mode. */
2171
+ defaultValues?: Record<string, string>;
2172
+ /** Fires with the full values record on every edit. */
2173
+ onChange?: (values: Record<string, string>) => void;
2174
+ /** Fires with the current values record on primary CTA click or form submit. */
2175
+ onSubmit: (values: Record<string, string>) => void;
2176
+ /** Overrides the primary CTA label; default is the governed `search` vocabulary action. */
2177
+ primaryActionLabel?: string;
2178
+ /** Secondary CTA label; the secondary button renders only when this is provided. */
2179
+ secondaryActionLabel?: string;
2180
+ /** Secondary CTA handler. */
2181
+ onSecondaryAction?: () => void;
2182
+ /** Governed trust-line slot rendered below the CTA row in metadata typography. Omitted = not rendered. */
2183
+ trustLine?: ReactNode;
2184
+ /** Accessible name for the search region; defaults to a governed localized string. */
2185
+ ariaLabel?: string;
2186
+ /** Disables all fields and CTAs. */
2187
+ disabled?: boolean;
2188
+ }
2189
+ /**
2190
+ * Governed homepage intent-capture surface: a card-shaped `<form role="search">` with a
2191
+ * consumer-defined, flex-wrapping row of labeled text fields, a primary + optional
2192
+ * secondary CTA, and an optional trust-line slot. Values are collected in controlled
2193
+ * (`values`/`onChange`) or uncontrolled (`defaultValues`) mode and handed to `onSubmit`
2194
+ * verbatim — no trimming, coercion, validation, or navigation happens inside the
2195
+ * component. It renders no fetched data, so the loading/empty/error/success states
2196
+ * contract does not apply internally; express post-submit lifecycle with
2197
+ * `AsyncSurface`/`StateBlock` in the consuming page instead.
2198
+ */
2199
+ declare function HeroSearchPanel({ fields, values, defaultValues, onChange, onSubmit, primaryActionLabel, secondaryActionLabel, onSecondaryAction, trustLine, ariaLabel: ariaLabelProp, disabled, }: HeroSearchPanelProps): react.JSX.Element;
2200
+
2201
+ /** A single card on the kanban board. */
2202
+ interface KanbanItem {
2203
+ id: string;
2204
+ title: ReactNode;
2205
+ description?: ReactNode;
2206
+ status?: ReactNode;
2207
+ /** Accessible name for the move action when `title` is not plain text. */
2208
+ ariaLabel?: string;
2209
+ }
2210
+ /** A column and the items it holds. */
2211
+ interface KanbanColumnData<TItem extends KanbanItem = KanbanItem> {
2212
+ id: string;
2213
+ /**
2214
+ * Column heading. A plain string renders as a governed `<Title>`; a
2215
+ * `ReactNode` (icon + label, a colored dot, a custom count pill, …) renders
2216
+ * verbatim. When `title` is not a plain string, set `ariaLabel` so move-menu
2217
+ * targets and drag announcements still have a meaningful accessible name.
2218
+ */
2219
+ title: ReactNode;
2220
+ items: TItem[];
2221
+ /**
2222
+ * Real total for server-paginated columns, where `items` holds only the
2223
+ * currently-loaded page. The header count badge prefers this when present and
2224
+ * falls back to `items.length` when omitted — so existing consumers see zero
2225
+ * behavior change on upgrade.
2226
+ */
2227
+ totalCount?: number;
2228
+ /** Accessible name for move-menu targets and drag announcements when `title` is not plain text. */
2229
+ ariaLabel?: string;
2230
+ }
2231
+ /** Board layout: a single `'stacked'` column per row, or side-by-side `'columns'`. */
2232
+ type KanbanOrientation = 'stacked' | 'columns';
2233
+ /** Options for {@link useGdsKanbanOrientation}. */
2234
+ interface UseGdsKanbanOrientationOptions {
2235
+ /**
2236
+ * Width, at or below which a portrait viewport is treated as "mobile" (1-column stacked).
2237
+ * Portrait viewports wider than this (tablets) and any landscape viewport render multi-column.
2238
+ * Defaults to the `xs` alias (36em / ~576px).
2239
+ */
2240
+ stackedBreakpoint?: MantineBreakpoint;
2241
+ }
2242
+ /**
2243
+ * Resolves the governed kanban layout: portrait mobile renders a single stacked
2244
+ * column per row, everything else (landscape phones, tablets, desktop) renders
2245
+ * multi-column. Consumers never need custom CSS or local breakpoint logic.
2246
+ */
2247
+ declare function useGdsKanbanOrientation({ stackedBreakpoint, }?: UseGdsKanbanOrientationOptions): KanbanOrientation;
2248
+ type OnMoveItem = (itemId: string, fromColumnId: string, toColumnId: string, toIndex?: number) => void;
2249
+ /** Column-level footer renderer (pagination / "load more" / per-column actions). */
2250
+ type RenderColumnFooter<TColumn> = (column: TColumn) => ReactNode;
2251
+ /** Props for {@link KanbanCard}. */
2252
+ interface KanbanCardProps<TItem extends KanbanItem = KanbanItem, TColumn extends KanbanColumnData<TItem> = KanbanColumnData<TItem>> {
2253
+ item: TItem;
2254
+ column: TColumn;
2255
+ columns: TColumn[];
2256
+ /** Called on a menu-driven or drag-driven move. `toIndex` is only populated by drag. */
2257
+ onMoveItem?: OnMoveItem;
2258
+ renderItem?: (item: TItem, column: TColumn) => ReactNode;
2259
+ /** Renders an additional pointer/touch/keyboard drag handle alongside the Move menu. */
2260
+ enableDrag?: boolean;
2261
+ /**
2262
+ * Icon for the "move to column" **menu** trigger. Defaults to a `More`
2263
+ * (vertical-dots) glyph — a "tap to open a menu" affordance that deliberately
2264
+ * does NOT imply free drag, since this control is a tap-to-open destination
2265
+ * picker, not a drag handle (the drag handle is separate and gated by
2266
+ * `enableDrag`). Override only if your icon set has a better "pick a
2267
+ * destination" glyph; avoid drag-implying icons here.
2268
+ */
2269
+ moveMenuIcon?: ReactNode;
2270
+ /** Overrides the verb in the move-menu trigger's accessible label (default `"Move"`); the item name is still appended when available. */
2271
+ moveMenuLabel?: string;
2272
+ }
2273
+ /**
2274
+ * A single governed kanban card: renders the item body, an always-available
2275
+ * "move to column" menu (the accessible-equivalent reorder path), and, when
2276
+ * `enableDrag` is set, an accessible drag handle built on `@dnd-kit`.
2277
+ */
2278
+ declare function KanbanCard<TItem extends KanbanItem = KanbanItem, TColumn extends KanbanColumnData<TItem> = KanbanColumnData<TItem>>({ item, column, columns, onMoveItem, renderItem, enableDrag, moveMenuIcon, moveMenuLabel }: KanbanCardProps<TItem, TColumn>): react.JSX.Element;
2279
+ /** Props for {@link KanbanColumn}. */
2280
+ interface KanbanColumnProps<TItem extends KanbanItem = KanbanItem, TColumn extends KanbanColumnData<TItem> = KanbanColumnData<TItem>> {
2281
+ column: TColumn;
2282
+ columns: TColumn[];
2283
+ onMoveItem?: OnMoveItem;
2284
+ renderItem?: (item: TItem, column: TColumn) => ReactNode;
2285
+ emptyLabel?: ReactNode;
2286
+ width?: number | string;
2287
+ enableDrag?: boolean;
2288
+ moveMenuIcon?: ReactNode;
2289
+ moveMenuLabel?: string;
2290
+ /** Static element rendered below the card list, inside the column (pagination / "load more" / per-column actions). */
2291
+ footer?: ReactNode;
2292
+ /** Function form of `footer`, receiving the column; takes precedence over `footer` when both are set. */
2293
+ renderFooter?: RenderColumnFooter<TColumn>;
2294
+ /**
2295
+ * Renders a header disclosure toggle that collapses the column body (cards +
2296
+ * footer) to just its title and count. Off by default — existing consumers
2297
+ * see no toggle. A collapsed column is not a drag drop target.
2298
+ */
2299
+ collapsible?: boolean;
2300
+ /** Controlled collapsed state. Omit for uncontrolled (the column manages its own state). */
2301
+ collapsed?: boolean;
2302
+ /** Notified when the disclosure toggle changes the collapsed state. */
2303
+ onCollapsedChange?: (collapsed: boolean) => void;
2304
+ }
2305
+ /**
2306
+ * A single kanban column: header with title and count badge, the card list (a
2307
+ * droppable region when drag is enabled), an optional footer, and an optional
2308
+ * collapse/expand disclosure toggle.
2309
+ */
2310
+ declare function KanbanColumn<TItem extends KanbanItem = KanbanItem, TColumn extends KanbanColumnData<TItem> = KanbanColumnData<TItem>>({ column, columns, onMoveItem, renderItem, emptyLabel, width, enableDrag, moveMenuIcon, moveMenuLabel, footer, renderFooter, collapsible, collapsed, onCollapsedChange, }: KanbanColumnProps<TItem, TColumn>): react.JSX.Element;
2311
+ /** Props for {@link KanbanBoard}. */
2312
+ interface KanbanBoardProps<TItem extends KanbanItem = KanbanItem, TColumn extends KanbanColumnData<TItem> = KanbanColumnData<TItem>> {
2313
+ title?: ReactNode;
2314
+ columns: TColumn[];
2315
+ /** Called when a card's move menu selects a target column, or (with `enableDrag`) when a
2316
+ * drag gesture completes. `toIndex` is only populated by drag; menu-driven moves append
2317
+ * to the end of the target column, matching existing behavior. Omit to render a read-only board. */
2318
+ onMoveItem?: OnMoveItem;
2319
+ /** Custom card body renderer. The card shell, border, and move action remain governed. */
2320
+ renderItem?: (item: TItem, column: TColumn) => ReactNode;
2321
+ emptyColumnLabel?: ReactNode;
2322
+ /**
2323
+ * `'auto'` (default) resolves the governed responsive rule via `useGdsKanbanOrientation`:
2324
+ * portrait mobile stacks columns vertically; landscape, tablet, and desktop render
2325
+ * multi-column with horizontal scroll. Force `'stacked'`/`'columns'` only for fixed layouts
2326
+ * (e.g. a dedicated mobile-only or desktop-only route).
2327
+ */
2328
+ orientation?: 'auto' | KanbanOrientation;
2329
+ /** Minimum column width in multi-column layout. Defaults to `'17.5rem'` (scales with root font size). */
2330
+ columnWidth?: number | string;
2331
+ /**
2332
+ * Wheel-gesture routing over the multi-column horizontal scroll area (issue 464).
2333
+ * Defaults to `'none'`: no interception — a wheel/trackpad gesture behaves natively
2334
+ * (a vertical gesture chains to the page), fully backward compatible.
2335
+ *
2336
+ * `'header'` opts into Linear-style zone routing on **fine-pointer (desktop)** only:
2337
+ * a wheel gesture whose target is a column **header** (`data-gds-kanban-column-header`)
2338
+ * pans the columns horizontally regardless of gesture shape, while a gesture anywhere
2339
+ * else (a card, empty space) is never captured and scrolls the page as usual. Inert in
2340
+ * `'stacked'` orientation (there is no horizontal scroll area). RTL-aware.
2341
+ */
2342
+ columnPanZone?: 'header' | 'none';
2343
+ /** Accessible name for the board region. Defaults to `title` (if a string) or a governed fallback. */
2344
+ boardLabel?: string;
2345
+ /**
2346
+ * Opt-in pointer/touch/keyboard drag-and-drop, in addition to (never instead of) the
2347
+ * "Move to column" menu, which stays rendered and fully functional either way — it is
2348
+ * the guaranteed accessible-equivalent fallback, not a mode that disappears when drag is
2349
+ * enabled. Defaults to `false`: existing consumers see zero behavior change on upgrade.
2350
+ * No native HTML5 `draggable`/`dragstart` is used (that remains prohibited — it cannot be
2351
+ * operated by keyboard or screen-reader users); this is built on `@dnd-kit`'s pointer and
2352
+ * keyboard sensors, which ship their own accessible keyboard-drag path independent of the
2353
+ * Move menu. Requires `onMoveItem`; has no effect on a read-only board.
2354
+ */
2355
+ enableDrag?: boolean;
2356
+ /**
2357
+ * Icon for each card's "move to column" **menu** trigger. Defaults to a `More`
2358
+ * (vertical-dots) glyph — a "tap to open a menu" affordance that intentionally
2359
+ * does not imply free drag. The move menu is a tap-to-open destination picker
2360
+ * (always available, the accessible-equivalent fallback), distinct from the
2361
+ * `enableDrag` drag **handle**, which is the only control that implies physical
2362
+ * dragging — so this icon stays the same whether `enableDrag` is on or off.
2363
+ * Override only with another non-drag "pick a destination" glyph.
2364
+ */
2365
+ moveMenuIcon?: ReactNode;
2366
+ /** Overrides the verb in each move-menu trigger's accessible label (default `"Move"`); the item name is still appended when available. */
2367
+ moveMenuLabel?: string;
2368
+ /** Per-column footer renderer, applied to every column (pagination / "load more" / per-column actions). */
2369
+ renderColumnFooter?: RenderColumnFooter<TColumn>;
2370
+ /**
2371
+ * Enables the per-column collapse/expand disclosure toggle on every column.
2372
+ * Off by default. Pair with `collapsedColumnIds` + `onCollapsedChange` to control
2373
+ * collapsed state, or leave those unset for uncontrolled per-column state.
2374
+ */
2375
+ collapsible?: boolean;
2376
+ /** Controlled set of collapsed column ids. Omit for uncontrolled (the board manages its own state). */
2377
+ collapsedColumnIds?: string[];
2378
+ /** Notified with the column id and its new collapsed state whenever a column's toggle changes. */
2379
+ onCollapsedChange?: (columnId: string, collapsed: boolean) => void;
2380
+ }
2381
+ /**
2382
+ * Governed responsive kanban board. Portrait mobile viewports render one stacked column
2383
+ * per row; landscape, tablet, and desktop viewports render multi-column with horizontal
2384
+ * scroll — resolved automatically via `useGdsKanbanOrientation`, no consumer CSS required.
2385
+ * Reordering always offers a keyboard-accessible "move to column" menu per card. Native
2386
+ * HTML5 drag-and-drop is never used (it cannot be operated by keyboard or screen-reader
2387
+ * users); an opt-in pointer/touch/keyboard drag affordance (`enableDrag`) is available
2388
+ * alongside it, built on `@dnd-kit`'s accessible sensors rather than native `draggable`.
2389
+ */
2390
+ declare function KanbanBoard<TItem extends KanbanItem = KanbanItem, TColumn extends KanbanColumnData<TItem> = KanbanColumnData<TItem>>({ title, columns, onMoveItem, renderItem, emptyColumnLabel, orientation, columnWidth, columnPanZone, boardLabel, enableDrag, moveMenuIcon, moveMenuLabel, renderColumnFooter, collapsible, collapsedColumnIds, onCollapsedChange, }: KanbanBoardProps<TItem, TColumn>): react.JSX.Element;
2391
+
2392
+ export { type AccessRecoveryAction, AccessRecoveryPanel, type AccessRecoveryPanelProps, type AccessRecoveryState, AdvancedDataTable, type AdvancedDataTableProps, type AdvancedSortDirection, type AdvancedTableColumn, type AdvancedTableDensity, type CaptureRuntimeState, type CommandDef, CommandPalette, CommandRegistryProvider, ConfirmChecklist, type ConfirmChecklistProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmRequest, type CreateGdsFormFromSchemaOptions, DiscoveryShell, type DiscoveryShellProps, type DiscoveryShellState, DocsCodeBlock, type DocsCodeBlockProps, DocsHeaderActionSelect, type DocsHeaderActionSelectOption, type DocsHeaderActionSelectProps, DocsShell, type DocsShellProps, type FieldState, FileUploadField, type FileUploadFieldProps, FormErrorSummary, type FormSnapshot, GDS_BUTTON_FEEDBACK_DURATION_MS, GDS_BUTTON_GRADIENT_TEXT_FLOOR, GDS_BUTTON_OUTLINE_ACCENT_STROKE_PX, GDS_HERO_SEARCH_FIELD_FLEX_BASIS_PX, GDS_HERO_SEARCH_FIELD_MIN_WIDTH_PX, GameBoardTile, type GameBoardTileProps, GdsAccessGate, GdsAccessGateAction, GdsAccessGateContract, GdsAccessGateEvent, type GdsAccessGateProps, type GdsAltTextPolicy, type GdsAsset, type GdsAssetAdapter, type GdsAssetDisplayMode, type GdsAssetEvent, GdsAssetManager, type GdsAssetManagerProps, GdsAssetPreviewCard, type GdsAssetPreviewCardProps, type GdsAssetQueueItem, type GdsAssetStatus, type GdsAssetUploadQueueController, type GdsAssetUploadRequest, type GdsAssetValidationPolicy, type GdsBrowseSelection, type GdsBrowseSelectionOptions, GdsCardContractOptions, GdsCardResolvedContract, type GdsConfirmApi, GdsConfirmProvider, type GdsConfirmProviderProps, type GdsConfirmationEvent, type GdsConfirmationEventType, type GdsConfirmationRequest, type GdsConfirmationStatus, GdsDataTable, type GdsDataTableController, type GdsDataTableProps, GdsDateInput, type GdsDateInputBaseProps, type GdsDateInputProps, GdsDateRangeInput, type GdsDateRangeInputProps, type GdsDateRangeValue, GdsDateTimeInput, type GdsDateTimeInputProps, GdsDensityProvider, type GdsDensityProviderProps, type GdsDestructiveActionResult, GdsDialog, type GdsDialogProps, type GdsDraftAdapter, GdsDrawer, type GdsDrawerProps, type GdsEventPayloadPolicy, type GdsExportRequest, type GdsFieldDescriptor, type GdsFieldOption, type GdsFieldRenderer, type GdsFieldRendererContext, type GdsFieldRendererMap, type GdsFormOrchestrationEvent, GdsFormProvider, type GdsFormSchema, type GdsFormServerError, GdsGuidedTour, type GdsGuidedTourProps, GdsLayoutTemplate, GdsLayoutTemplatePreview, type GdsLayoutTemplatePreviewProps, GdsModal, type GdsModalProps, GdsNotificationAuditEvent, GdsNotificationCenter, GdsNotificationMessage, GdsNotificationPolicy, GdsNotificationProvider, type GdsNotificationProviderProps, type GdsOperationalEvent, type GdsOperationalEventInput, type GdsOperationalEventType, type GdsOverlayEvent, type GdsOverlayEventType, type GdsOverlayPolicy, type GdsOverlayRoutePolicy, type GdsOverlayStackItem, type GdsOverlayStatus, type GdsOverlayType, type GdsRejectedPayloadDetails, type GdsResourceActionId, type GdsResourceActionResult, type GdsResourceAdapter, GdsResourceManager, type GdsResourceManagerController, type GdsResourceManagerEvent, type GdsResourceManagerProps, type GdsResourcePermission, type GdsResourceRecord, type GdsResourceWorkflowState, type GdsRiskLevel, type GdsSchemaAdapterResult, type GdsSchemaFieldType, GdsSchemaForm, type GdsSchemaFormEvent, type GdsSchemaFormProps, type GdsSchemaUploadAdapter, type GdsSchemaUploadRemoveRequest, type GdsSchemaUploadRequest, type GdsSchemaUploadResult, GdsSheet, type GdsSheetProps, GdsSidePanel, type GdsSidePanelProps, type GdsTableColumn, type GdsTableDataAdapter, type GdsTableEvent, type GdsTableLoadResult, type GdsTableQuery, type GdsTableSortDirection, type GdsTableStatus, type GdsTelemetryAdapter, type GdsTelemetryAdapterOptions, type GdsTelemetryDispatchOptions, type GdsTelemetryDispatchResult, type GdsTelemetryDispatchStatus, type GdsTelemetryOutcome, type GdsTelemetryPayload, type GdsTelemetryPayloadValue, GdsTelemetryProvider, type GdsTelemetryProviderProps, type GdsTelemetrySink, type GdsToastApi, type GdsToastMessage, GdsToastProvider, GdsTourButton, type GdsTourButtonProps, type GdsTourInteraction, type GdsTourPlacement, GdsTourProvider, type GdsTourProviderProps, type GdsTourStartOptions, type GdsTourStatus, type GdsTourStep, type GdsTourStopReason, type GdsUiEvent, type GdsUndoPolicy, type GdsUxFailureReason, GdsValidationSummary, GdsVocabularyPack, type HeroSearchFieldConfig, HeroSearchPanel, type HeroSearchPanelProps, KanbanBoard, type KanbanBoardProps, KanbanCard, type KanbanCardProps, KanbanColumn, type KanbanColumnData, type KanbanColumnProps, type KanbanItem, type KanbanOrientation, type ListingAction, ListingProvider, type ListingQueryState, type ListingStateConfig, type ListingStateValue, MediaFit, MediaPreviewAspectRatio, NotificationCenter, type OverlayCloseReason, type OverlayDescriptor, type OverlayKind, OverlayManagerProvider, type OverlayManagerProviderProps, type PlaybackControlState, PlaybackControls, type PlaybackControlsProps, PlaybackOverlayControls, ProviderCTA, type ProviderCTAProps, PublicAcceptStep, PublicCaptureFlow, type PublicCaptureFlowProps, type PublicCaptureStageId, PublicConsentStep, PublicCtaStep, PublicFlowAction, PublicIdentityStep, PublicRestartStep, PublicShareOverlay, ReportOutdatedLink, type ReportOutdatedLinkProps, SemanticAction, SemanticActionId, SemanticButton, type SemanticButtonProps, ShareButtonGroup, type ShareButtonGroupProps, type ShareChannel, SidebarNav, SidebarNavItem, type SidebarNavItemProps, type SidebarNavProps, SidebarNavSection, type SidebarNavSectionProps, SourceBlock, type SourceBlockProps, type SourceRowStatus, type SubmitState, ThemeToggle, type ThemeToggleProps, UploadDropzone, type UploadDropzoneProps, type UploadDropzoneState, type UseDiscoveryShellStateOptions, type UseGdsAssetUploadQueueConfig, type UseGdsDataTableConfig, type UseGdsFormOrchestrationConfig, type UseGdsKanbanOrientationOptions, type UseGdsResourceManagerConfig, ValidatedFieldMessage, type ValidationIssue, type ValidationSeverity, createGdsAssetAdapter, createGdsDraftAdapter, createGdsFormFromSchema, createGdsResourceAdapter, createGdsTableAdapter, createGdsTelemetryAdapter, emitGdsEvent, gdsFormReducer, gdsOperationalEventTypes, gdsUxFailureReasons, isGdsOperationalEventType, jsonSchemaToGdsFormSchema, listingQueryReducer, openApiToGdsFormSchema, serializeGdsTableQuery, useCommandLauncher, useDiscoveryShellState, useGdsAssetUploadQueue, useGdsBrowseSelection, useGdsCardContract, useGdsConfirm, useGdsDataTable, useGdsDensity, useGdsForm, useGdsFormOrchestration, useGdsFormSnapshot, useGdsKanbanOrientation, useGdsNotifications, useGdsResourceManager, useGdsTelemetry, useGdsToasts, useGdsTour, useHasSeenTour, useListingState, useOverlayManager, usePlaybackKeyboardControls, validateGdsAsset, zodToGdsFormSchema };