@doneisbetter/gds-core 2.6.3 → 2.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.mts CHANGED
@@ -1,8 +1,10 @@
1
- import { SemanticAction } from './server.mjs';
2
- export { AccentPanel, AccentPanelProps, AccentPanelVariant, AccentTone, AccessSummary, AccessSummaryProps, ArticleShell, ArticleShellProps, AuthShell, AuthShellProps, BreadcrumbItem, BrowseSurface, BrowseSurfaceFilterChip, BrowseSurfaceProps, BrowseSurfaceScopeOption, ChoiceChip, ChoiceChipProps, ConsumerDashboardGrid, ConsumerDashboardGridProps, ConsumerSection, ConsumerSectionProps, CtaButtonGroup, CtaButtonGroupProps, DataToolbar, DataToolbarFilterChip, DataToolbarProps, DocsPageShell, DocsPageShellProps, EditorialCard, EditorialCardProps, EditorialHero, EditorialHeroAction, EditorialHeroMetaItem, EditorialHeroProps, EmptyState, EmptyStateProps, FeatureBand, FeatureBandItem, FeatureBandProps, FilterDrawer, FilterDrawerMode, FilterDrawerProps, FormField, FormFieldProps, GdsIcons, GdsLocale, GdsVocabulary, MediaCard, MediaCardAction, MediaCardProps, MediaField, MediaFieldProps, MetricCard, MetricCardProps, PageHeader, PageHeaderEyebrowVariant, PageHeaderProps, PlaceholderPanel, PlaceholderPanelProps, ProductCard, ProductCardAction, ProductCardMetaItem, ProductCardProps, ProgressCard, ProgressCardProps, PublicBrandFooter, PublicBrandFooterClassNames, PublicBrandFooterLayoutVariant, PublicBrandFooterProps, PublicNav, PublicNavItem, PublicNavProps, PublicProductCard, PublicProductCardHelperKind, PublicProductCardMetaItem, PublicProductCardProps, PublicProductCardState, PublicShell, PublicShellClassNames, PublicShellHeaderVariant, PublicShellMobileNavigationMode, PublicShellProps, PublicSiteFooter, PublicSiteFooterProps, SectionPanel, SectionPanelProps, SectionPanelTone, SimpleDataTable, SimpleDataTableProps, SimpleTableColumn, StateBlock, StateBlockProps, StateBlockVariant, StatsSection, StatsSectionProps, StatusBadge, StatusBadgeProps, StatusVariant, ar, de, en, es, fr, gdsLocales, getGdsMessages, getSemanticActionConfig, getSemanticActionLabel, he, hu, it, resolveAccentPanelStyles, ru } from './server.mjs';
1
+ import { b9 as SemanticAction, bb as SemanticActionId, a7 as GdsVocabularyPack } from './server-CF4gCYQ-.mjs';
2
+ export { A as AccentPanel, a as AccentPanelProps, b as AccentPanelVariant, c as AccentTone, d as AccessSummary, e as AccessSummaryProps, f as ActionBar, g as ActionBarAction, h as ActionBarIconAction, i as ActionBarProps, j as ArticleShell, k as ArticleShellProps, l as AuthShell, m as AuthShellProps, B as BreadcrumbItem, n as BrowseSurface, o as BrowseSurfaceFilterChip, p as BrowseSurfaceProps, q as BrowseSurfaceScopeOption, C as ChoiceChip, r as ChoiceChipProps, s as ConsumerDashboardGrid, t as ConsumerDashboardGridProps, u as ConsumerSection, v as ConsumerSectionProps, w as CtaButtonGroup, x as CtaButtonGroupProps, D as DataToolbar, y as DataToolbarFilterChip, z as DataToolbarProps, E as DetailProfileShell, F as DetailProfileShellProps, G as DocsPageShell, H as DocsPageShellProps, I as EditorialCard, J as EditorialCardProps, K as EditorialHero, L as EditorialHeroAction, M as EditorialHeroMetaItem, N as EditorialHeroProps, O as EmptyState, P as EmptyStateProps, Q as FeatureBand, R as FeatureBandItem, S as FeatureBandProps, T as FilterDrawer, U as FilterDrawerMode, V as FilterDrawerProps, W as FoodCardAvailabilityState, X as FoodCardMarker, Y as FoodCardMediaRatio, Z as FoodCardMetadata, _ as FoodMenuCategory, $ as FoodMenuItem, a0 as FoodMenuSection, a1 as FoodMenuSectionProps, a2 as FormField, a3 as FormFieldProps, a4 as GdsIcons, a5 as GdsLocale, a6 as GdsVocabulary, a8 as ListingCard, a9 as ListingCardAffordance, aa as ListingCardMediaRatio, ab as ListingCardProps, ac as ListingMetadataRow, ad as MapPanel, ae as MapPanelProps, af as MediaCard, ag as MediaCardAction, ah as MediaCardProps, ai as MediaField, aj as MediaFieldProps, ak as MetricCard, al as MetricCardProps, am as PageHeader, an as PageHeaderEyebrowVariant, ao as PageHeaderProps, ap as PlaceholderPanel, aq as PlaceholderPanelProps, ar as PlaybackSurface, as as PlaybackSurfaceProps, at as PlaybackSurfaceState, au as ProductCard, av as ProductCardAction, aw as ProductCardMetaItem, ax as ProductCardProps, ay as ProgressCard, az as ProgressCardProps, aA as PublicBrandFooter, aB as PublicBrandFooterClassNames, aC as PublicBrandFooterLayoutVariant, aD as PublicBrandFooterProps, aE as PublicFlowAction, aF as PublicFlowActionPriority, aG as PublicFlowShell, aH as PublicFlowShellProps, aI as PublicFlowStage, aJ as PublicFlowStageStatus, aK as PublicFoodCard, aL as PublicFoodCardProps, aM as PublicNav, aN as PublicNavItem, aO as PublicNavProps, aP as PublicProductCard, aQ as PublicProductCardHelperKind, aR as PublicProductCardMetaItem, aS as PublicProductCardProps, aT as PublicProductCardState, aU as PublicShell, aV as PublicShellClassNames, aW as PublicShellHeaderVariant, aX as PublicShellMobileNavigationMode, aY as PublicShellProps, aZ as PublicSiteFooter, a_ as PublicSiteFooterProps, a$ as ReferenceLinkGrid, b0 as ReferenceLinkGridItem, b1 as ReferenceLinkGridProps, b2 as ReferenceLocaleNotice, b3 as ReferenceLocaleNoticeProps, b4 as ReferenceSection, b5 as ReferenceSectionProps, b6 as SectionPanel, b7 as SectionPanelProps, b8 as SectionPanelTone, ba as SemanticActionDefinition, bc as SimpleDataTable, bd as SimpleDataTableProps, be as SimpleTableColumn, bf as SocialAuthButtons, bg as SocialAuthButtonsProps, bh as SocialAuthProviderId, bi as SocialAuthProviderOption, bj as StateBlock, bk as StateBlockProps, bl as StateBlockVariant, bm as StatsSection, bn as StatsSectionProps, bo as StatusBadge, bp as StatusBadgeProps, bq as StatusVariant, br as VocabularyResolver, bs as ar, bt as createGdsVocabularyPack, bu as de, bv as en, bw as es, bx as fr, by as gdsLocales, bz as getGdsMessages, bA as getSemanticActionConfig, bB as getSemanticActionLabel, bC as he, bD as hu, bE as it, bF as mergeGdsVocabularyPacks, bG as resolveAccentPanelStyles, bH as resolveSemanticActionConfig, bI as ru } from './server-CF4gCYQ-.mjs';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
+ import * as react from 'react';
4
5
  import react__default, { ReactNode } from 'react';
5
- import { ButtonProps, MantineColor } from '@mantine/core';
6
+ import * as _mantine_core from '@mantine/core';
7
+ import { ButtonProps, MantineColor, MantineSpacing, MantineBreakpoint, NavLinkProps } from '@mantine/core';
6
8
  import '@tabler/icons-react';
7
9
 
8
10
  interface ConfirmDialogProps {
@@ -30,18 +32,19 @@ interface ThemeToggleProps {
30
32
  */
31
33
  declare function ThemeToggle({ size }: ThemeToggleProps): react_jsx_runtime.JSX.Element;
32
34
 
35
+ type ThemePresetId = 'default' | 'dark-public' | 'flat-surface' | 'editorial' | 'brand';
36
+ type ThemeSchemeId = 'light' | 'dark' | 'auto';
37
+ declare function ReferenceThemeExplorer(): react_jsx_runtime.JSX.Element;
38
+
33
39
  interface SemanticButtonProps extends ButtonProps, Omit<react__default.ComponentPropsWithoutRef<'button'>, keyof ButtonProps | 'leftSection' | 'children'> {
34
- action: SemanticAction;
40
+ action: SemanticActionId;
35
41
  loading?: boolean;
36
42
  feedbackState?: 'success' | 'error' | null;
37
43
  feedbackText?: string;
38
44
  prerenderLabelOnly?: boolean;
45
+ vocabularyPacks?: GdsVocabularyPack[];
39
46
  }
40
- /**
41
- * SemanticButton strictly enforces ubiquitous language and standardized iconography.
42
- * Developers cannot pass arbitrary text or icons; they must use a semantic action key.
43
- */
44
- declare function SemanticButton({ action, loading, feedbackState, feedbackText, prerenderLabelOnly, ...props }: SemanticButtonProps): react_jsx_runtime.JSX.Element;
47
+ declare function SemanticButton({ action, loading, feedbackState, feedbackText, prerenderLabelOnly, vocabularyPacks, ...props }: SemanticButtonProps): react_jsx_runtime.JSX.Element;
45
48
 
46
49
  interface GameBoardTileProps {
47
50
  face: ReactNode;
@@ -58,6 +61,57 @@ interface GameBoardTileProps {
58
61
  */
59
62
  declare function GameBoardTile({ face, revealed, matched, disabled, onPress, highlightColor, }: GameBoardTileProps): react_jsx_runtime.JSX.Element;
60
63
 
64
+ interface DiscoveryShellProps {
65
+ header?: ReactNode;
66
+ sidebar: ReactNode;
67
+ footer?: ReactNode;
68
+ children: ReactNode;
69
+ mobileNavigationLabel?: string;
70
+ defaultSidebarOpen?: boolean;
71
+ stickySidebar?: boolean;
72
+ sidebarWidth?: number | string;
73
+ headerHeight?: number | string;
74
+ shellPadding?: MantineSpacing | number;
75
+ collapseBreakpoint?: MantineBreakpoint;
76
+ }
77
+ /**
78
+ * DiscoveryShell is the canonical sidebar-first application shell for GDS.
79
+ * It owns the responsive header, sidebar, and main-content layout contract.
80
+ */
81
+ declare function DiscoveryShell({ header, sidebar, footer, children, mobileNavigationLabel, defaultSidebarOpen, stickySidebar, sidebarWidth, headerHeight, shellPadding, collapseBreakpoint, }: DiscoveryShellProps): react_jsx_runtime.JSX.Element;
82
+
83
+ interface SidebarNavProps {
84
+ children: ReactNode;
85
+ ariaLabel?: string;
86
+ gap?: string | number;
87
+ }
88
+ interface SidebarNavSectionProps {
89
+ label?: ReactNode;
90
+ children: ReactNode;
91
+ pushToBottom?: boolean;
92
+ }
93
+ interface SidebarNavItemProps extends Omit<NavLinkProps, 'label' | 'leftSection' | 'description'> {
94
+ action?: SemanticActionId;
95
+ label?: ReactNode;
96
+ description?: ReactNode;
97
+ badge?: ReactNode;
98
+ icon?: ReactNode;
99
+ 'aria-label'?: string;
100
+ 'aria-current'?: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false';
101
+ vocabularyPacks?: GdsVocabularyPack[];
102
+ }
103
+ declare function SidebarNav({ children, ariaLabel, gap }: SidebarNavProps): react_jsx_runtime.JSX.Element;
104
+ declare function SidebarNavSection({ label, children, pushToBottom }: SidebarNavSectionProps): react_jsx_runtime.JSX.Element;
105
+ declare const SidebarNavItem: (<C = "a">(props: _mantine_core.PolymorphicComponentProps<C, SidebarNavItemProps>) => React.ReactElement) & Omit<react.FunctionComponent<(SidebarNavItemProps & {
106
+ component?: any;
107
+ } & Omit<Omit<any, "ref">, "component" | keyof SidebarNavItemProps> & {
108
+ ref?: any;
109
+ renderRoot?: (props: any) => any;
110
+ }) | (SidebarNavItemProps & {
111
+ component: React.ElementType;
112
+ renderRoot?: (props: Record<string, any>) => any;
113
+ })>, never> & Record<string, never>;
114
+
61
115
  interface DocsCodeBlockProps {
62
116
  code: string;
63
117
  language?: string;
@@ -66,6 +120,18 @@ interface DocsCodeBlockProps {
66
120
  }
67
121
  declare function DocsCodeBlock({ code, language, title, withCopy }: DocsCodeBlockProps): react_jsx_runtime.JSX.Element;
68
122
 
123
+ type ShareChannel = 'native' | 'copy' | 'mail' | 'message' | 'x' | 'facebook' | 'linkedin' | 'whatsapp' | 'telegram';
124
+ interface ShareButtonGroupProps {
125
+ url: string;
126
+ title?: string;
127
+ text?: string;
128
+ channels?: ShareChannel[];
129
+ compact?: boolean;
130
+ label?: ReactNode;
131
+ description?: ReactNode;
132
+ }
133
+ declare function ShareButtonGroup({ url, title, text, channels, compact, label, description, }: ShareButtonGroupProps): react_jsx_runtime.JSX.Element;
134
+
69
135
  interface UploadDropzoneProps {
70
136
  title: string;
71
137
  description?: string;
@@ -101,4 +167,4 @@ interface AccessRecoveryPanelProps {
101
167
  }
102
168
  declare function AccessRecoveryPanel({ state, title, description, primaryAction, secondaryAction, tertiaryAction, onRetry, onSignIn, onBack, supportAction, compact, }: AccessRecoveryPanelProps): react_jsx_runtime.JSX.Element;
103
169
 
104
- export { type AccessRecoveryAction, AccessRecoveryPanel, type AccessRecoveryPanelProps, type AccessRecoveryState, ConfirmDialog, type ConfirmDialogProps, DocsCodeBlock, type DocsCodeBlockProps, GameBoardTile, type GameBoardTileProps, SemanticAction, SemanticButton, type SemanticButtonProps, ThemeToggle, type ThemeToggleProps, UploadDropzone, type UploadDropzoneProps };
170
+ export { type AccessRecoveryAction, AccessRecoveryPanel, type AccessRecoveryPanelProps, type AccessRecoveryState, ConfirmDialog, type ConfirmDialogProps, DiscoveryShell, type DiscoveryShellProps, DocsCodeBlock, type DocsCodeBlockProps, GameBoardTile, type GameBoardTileProps, GdsVocabularyPack, ReferenceThemeExplorer, SemanticAction, SemanticActionId, SemanticButton, type SemanticButtonProps, ShareButtonGroup, type ShareButtonGroupProps, type ShareChannel, SidebarNav, SidebarNavItem, type SidebarNavItemProps, type SidebarNavProps, SidebarNavSection, type SidebarNavSectionProps, type ThemePresetId, type ThemeSchemeId, ThemeToggle, type ThemeToggleProps, UploadDropzone, type UploadDropzoneProps };
package/dist/client.d.ts CHANGED
@@ -1,8 +1,10 @@
1
- import { SemanticAction } from './server.js';
2
- export { AccentPanel, AccentPanelProps, AccentPanelVariant, AccentTone, AccessSummary, AccessSummaryProps, ArticleShell, ArticleShellProps, AuthShell, AuthShellProps, BreadcrumbItem, BrowseSurface, BrowseSurfaceFilterChip, BrowseSurfaceProps, BrowseSurfaceScopeOption, ChoiceChip, ChoiceChipProps, ConsumerDashboardGrid, ConsumerDashboardGridProps, ConsumerSection, ConsumerSectionProps, CtaButtonGroup, CtaButtonGroupProps, DataToolbar, DataToolbarFilterChip, DataToolbarProps, DocsPageShell, DocsPageShellProps, EditorialCard, EditorialCardProps, EditorialHero, EditorialHeroAction, EditorialHeroMetaItem, EditorialHeroProps, EmptyState, EmptyStateProps, FeatureBand, FeatureBandItem, FeatureBandProps, FilterDrawer, FilterDrawerMode, FilterDrawerProps, FormField, FormFieldProps, GdsIcons, GdsLocale, GdsVocabulary, MediaCard, MediaCardAction, MediaCardProps, MediaField, MediaFieldProps, MetricCard, MetricCardProps, PageHeader, PageHeaderEyebrowVariant, PageHeaderProps, PlaceholderPanel, PlaceholderPanelProps, ProductCard, ProductCardAction, ProductCardMetaItem, ProductCardProps, ProgressCard, ProgressCardProps, PublicBrandFooter, PublicBrandFooterClassNames, PublicBrandFooterLayoutVariant, PublicBrandFooterProps, PublicNav, PublicNavItem, PublicNavProps, PublicProductCard, PublicProductCardHelperKind, PublicProductCardMetaItem, PublicProductCardProps, PublicProductCardState, PublicShell, PublicShellClassNames, PublicShellHeaderVariant, PublicShellMobileNavigationMode, PublicShellProps, PublicSiteFooter, PublicSiteFooterProps, SectionPanel, SectionPanelProps, SectionPanelTone, SimpleDataTable, SimpleDataTableProps, SimpleTableColumn, StateBlock, StateBlockProps, StateBlockVariant, StatsSection, StatsSectionProps, StatusBadge, StatusBadgeProps, StatusVariant, ar, de, en, es, fr, gdsLocales, getGdsMessages, getSemanticActionConfig, getSemanticActionLabel, he, hu, it, resolveAccentPanelStyles, ru } from './server.js';
1
+ import { b9 as SemanticAction, bb as SemanticActionId, a7 as GdsVocabularyPack } from './server-CF4gCYQ-.js';
2
+ export { A as AccentPanel, a as AccentPanelProps, b as AccentPanelVariant, c as AccentTone, d as AccessSummary, e as AccessSummaryProps, f as ActionBar, g as ActionBarAction, h as ActionBarIconAction, i as ActionBarProps, j as ArticleShell, k as ArticleShellProps, l as AuthShell, m as AuthShellProps, B as BreadcrumbItem, n as BrowseSurface, o as BrowseSurfaceFilterChip, p as BrowseSurfaceProps, q as BrowseSurfaceScopeOption, C as ChoiceChip, r as ChoiceChipProps, s as ConsumerDashboardGrid, t as ConsumerDashboardGridProps, u as ConsumerSection, v as ConsumerSectionProps, w as CtaButtonGroup, x as CtaButtonGroupProps, D as DataToolbar, y as DataToolbarFilterChip, z as DataToolbarProps, E as DetailProfileShell, F as DetailProfileShellProps, G as DocsPageShell, H as DocsPageShellProps, I as EditorialCard, J as EditorialCardProps, K as EditorialHero, L as EditorialHeroAction, M as EditorialHeroMetaItem, N as EditorialHeroProps, O as EmptyState, P as EmptyStateProps, Q as FeatureBand, R as FeatureBandItem, S as FeatureBandProps, T as FilterDrawer, U as FilterDrawerMode, V as FilterDrawerProps, W as FoodCardAvailabilityState, X as FoodCardMarker, Y as FoodCardMediaRatio, Z as FoodCardMetadata, _ as FoodMenuCategory, $ as FoodMenuItem, a0 as FoodMenuSection, a1 as FoodMenuSectionProps, a2 as FormField, a3 as FormFieldProps, a4 as GdsIcons, a5 as GdsLocale, a6 as GdsVocabulary, a8 as ListingCard, a9 as ListingCardAffordance, aa as ListingCardMediaRatio, ab as ListingCardProps, ac as ListingMetadataRow, ad as MapPanel, ae as MapPanelProps, af as MediaCard, ag as MediaCardAction, ah as MediaCardProps, ai as MediaField, aj as MediaFieldProps, ak as MetricCard, al as MetricCardProps, am as PageHeader, an as PageHeaderEyebrowVariant, ao as PageHeaderProps, ap as PlaceholderPanel, aq as PlaceholderPanelProps, ar as PlaybackSurface, as as PlaybackSurfaceProps, at as PlaybackSurfaceState, au as ProductCard, av as ProductCardAction, aw as ProductCardMetaItem, ax as ProductCardProps, ay as ProgressCard, az as ProgressCardProps, aA as PublicBrandFooter, aB as PublicBrandFooterClassNames, aC as PublicBrandFooterLayoutVariant, aD as PublicBrandFooterProps, aE as PublicFlowAction, aF as PublicFlowActionPriority, aG as PublicFlowShell, aH as PublicFlowShellProps, aI as PublicFlowStage, aJ as PublicFlowStageStatus, aK as PublicFoodCard, aL as PublicFoodCardProps, aM as PublicNav, aN as PublicNavItem, aO as PublicNavProps, aP as PublicProductCard, aQ as PublicProductCardHelperKind, aR as PublicProductCardMetaItem, aS as PublicProductCardProps, aT as PublicProductCardState, aU as PublicShell, aV as PublicShellClassNames, aW as PublicShellHeaderVariant, aX as PublicShellMobileNavigationMode, aY as PublicShellProps, aZ as PublicSiteFooter, a_ as PublicSiteFooterProps, a$ as ReferenceLinkGrid, b0 as ReferenceLinkGridItem, b1 as ReferenceLinkGridProps, b2 as ReferenceLocaleNotice, b3 as ReferenceLocaleNoticeProps, b4 as ReferenceSection, b5 as ReferenceSectionProps, b6 as SectionPanel, b7 as SectionPanelProps, b8 as SectionPanelTone, ba as SemanticActionDefinition, bc as SimpleDataTable, bd as SimpleDataTableProps, be as SimpleTableColumn, bf as SocialAuthButtons, bg as SocialAuthButtonsProps, bh as SocialAuthProviderId, bi as SocialAuthProviderOption, bj as StateBlock, bk as StateBlockProps, bl as StateBlockVariant, bm as StatsSection, bn as StatsSectionProps, bo as StatusBadge, bp as StatusBadgeProps, bq as StatusVariant, br as VocabularyResolver, bs as ar, bt as createGdsVocabularyPack, bu as de, bv as en, bw as es, bx as fr, by as gdsLocales, bz as getGdsMessages, bA as getSemanticActionConfig, bB as getSemanticActionLabel, bC as he, bD as hu, bE as it, bF as mergeGdsVocabularyPacks, bG as resolveAccentPanelStyles, bH as resolveSemanticActionConfig, bI as ru } from './server-CF4gCYQ-.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
+ import * as react from 'react';
4
5
  import react__default, { ReactNode } from 'react';
5
- import { ButtonProps, MantineColor } from '@mantine/core';
6
+ import * as _mantine_core from '@mantine/core';
7
+ import { ButtonProps, MantineColor, MantineSpacing, MantineBreakpoint, NavLinkProps } from '@mantine/core';
6
8
  import '@tabler/icons-react';
7
9
 
8
10
  interface ConfirmDialogProps {
@@ -30,18 +32,19 @@ interface ThemeToggleProps {
30
32
  */
31
33
  declare function ThemeToggle({ size }: ThemeToggleProps): react_jsx_runtime.JSX.Element;
32
34
 
35
+ type ThemePresetId = 'default' | 'dark-public' | 'flat-surface' | 'editorial' | 'brand';
36
+ type ThemeSchemeId = 'light' | 'dark' | 'auto';
37
+ declare function ReferenceThemeExplorer(): react_jsx_runtime.JSX.Element;
38
+
33
39
  interface SemanticButtonProps extends ButtonProps, Omit<react__default.ComponentPropsWithoutRef<'button'>, keyof ButtonProps | 'leftSection' | 'children'> {
34
- action: SemanticAction;
40
+ action: SemanticActionId;
35
41
  loading?: boolean;
36
42
  feedbackState?: 'success' | 'error' | null;
37
43
  feedbackText?: string;
38
44
  prerenderLabelOnly?: boolean;
45
+ vocabularyPacks?: GdsVocabularyPack[];
39
46
  }
40
- /**
41
- * SemanticButton strictly enforces ubiquitous language and standardized iconography.
42
- * Developers cannot pass arbitrary text or icons; they must use a semantic action key.
43
- */
44
- declare function SemanticButton({ action, loading, feedbackState, feedbackText, prerenderLabelOnly, ...props }: SemanticButtonProps): react_jsx_runtime.JSX.Element;
47
+ declare function SemanticButton({ action, loading, feedbackState, feedbackText, prerenderLabelOnly, vocabularyPacks, ...props }: SemanticButtonProps): react_jsx_runtime.JSX.Element;
45
48
 
46
49
  interface GameBoardTileProps {
47
50
  face: ReactNode;
@@ -58,6 +61,57 @@ interface GameBoardTileProps {
58
61
  */
59
62
  declare function GameBoardTile({ face, revealed, matched, disabled, onPress, highlightColor, }: GameBoardTileProps): react_jsx_runtime.JSX.Element;
60
63
 
64
+ interface DiscoveryShellProps {
65
+ header?: ReactNode;
66
+ sidebar: ReactNode;
67
+ footer?: ReactNode;
68
+ children: ReactNode;
69
+ mobileNavigationLabel?: string;
70
+ defaultSidebarOpen?: boolean;
71
+ stickySidebar?: boolean;
72
+ sidebarWidth?: number | string;
73
+ headerHeight?: number | string;
74
+ shellPadding?: MantineSpacing | number;
75
+ collapseBreakpoint?: MantineBreakpoint;
76
+ }
77
+ /**
78
+ * DiscoveryShell is the canonical sidebar-first application shell for GDS.
79
+ * It owns the responsive header, sidebar, and main-content layout contract.
80
+ */
81
+ declare function DiscoveryShell({ header, sidebar, footer, children, mobileNavigationLabel, defaultSidebarOpen, stickySidebar, sidebarWidth, headerHeight, shellPadding, collapseBreakpoint, }: DiscoveryShellProps): react_jsx_runtime.JSX.Element;
82
+
83
+ interface SidebarNavProps {
84
+ children: ReactNode;
85
+ ariaLabel?: string;
86
+ gap?: string | number;
87
+ }
88
+ interface SidebarNavSectionProps {
89
+ label?: ReactNode;
90
+ children: ReactNode;
91
+ pushToBottom?: boolean;
92
+ }
93
+ interface SidebarNavItemProps extends Omit<NavLinkProps, 'label' | 'leftSection' | 'description'> {
94
+ action?: SemanticActionId;
95
+ label?: ReactNode;
96
+ description?: ReactNode;
97
+ badge?: ReactNode;
98
+ icon?: ReactNode;
99
+ 'aria-label'?: string;
100
+ 'aria-current'?: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false';
101
+ vocabularyPacks?: GdsVocabularyPack[];
102
+ }
103
+ declare function SidebarNav({ children, ariaLabel, gap }: SidebarNavProps): react_jsx_runtime.JSX.Element;
104
+ declare function SidebarNavSection({ label, children, pushToBottom }: SidebarNavSectionProps): react_jsx_runtime.JSX.Element;
105
+ declare const SidebarNavItem: (<C = "a">(props: _mantine_core.PolymorphicComponentProps<C, SidebarNavItemProps>) => React.ReactElement) & Omit<react.FunctionComponent<(SidebarNavItemProps & {
106
+ component?: any;
107
+ } & Omit<Omit<any, "ref">, "component" | keyof SidebarNavItemProps> & {
108
+ ref?: any;
109
+ renderRoot?: (props: any) => any;
110
+ }) | (SidebarNavItemProps & {
111
+ component: React.ElementType;
112
+ renderRoot?: (props: Record<string, any>) => any;
113
+ })>, never> & Record<string, never>;
114
+
61
115
  interface DocsCodeBlockProps {
62
116
  code: string;
63
117
  language?: string;
@@ -66,6 +120,18 @@ interface DocsCodeBlockProps {
66
120
  }
67
121
  declare function DocsCodeBlock({ code, language, title, withCopy }: DocsCodeBlockProps): react_jsx_runtime.JSX.Element;
68
122
 
123
+ type ShareChannel = 'native' | 'copy' | 'mail' | 'message' | 'x' | 'facebook' | 'linkedin' | 'whatsapp' | 'telegram';
124
+ interface ShareButtonGroupProps {
125
+ url: string;
126
+ title?: string;
127
+ text?: string;
128
+ channels?: ShareChannel[];
129
+ compact?: boolean;
130
+ label?: ReactNode;
131
+ description?: ReactNode;
132
+ }
133
+ declare function ShareButtonGroup({ url, title, text, channels, compact, label, description, }: ShareButtonGroupProps): react_jsx_runtime.JSX.Element;
134
+
69
135
  interface UploadDropzoneProps {
70
136
  title: string;
71
137
  description?: string;
@@ -101,4 +167,4 @@ interface AccessRecoveryPanelProps {
101
167
  }
102
168
  declare function AccessRecoveryPanel({ state, title, description, primaryAction, secondaryAction, tertiaryAction, onRetry, onSignIn, onBack, supportAction, compact, }: AccessRecoveryPanelProps): react_jsx_runtime.JSX.Element;
103
169
 
104
- export { type AccessRecoveryAction, AccessRecoveryPanel, type AccessRecoveryPanelProps, type AccessRecoveryState, ConfirmDialog, type ConfirmDialogProps, DocsCodeBlock, type DocsCodeBlockProps, GameBoardTile, type GameBoardTileProps, SemanticAction, SemanticButton, type SemanticButtonProps, ThemeToggle, type ThemeToggleProps, UploadDropzone, type UploadDropzoneProps };
170
+ export { type AccessRecoveryAction, AccessRecoveryPanel, type AccessRecoveryPanelProps, type AccessRecoveryState, ConfirmDialog, type ConfirmDialogProps, DiscoveryShell, type DiscoveryShellProps, DocsCodeBlock, type DocsCodeBlockProps, GameBoardTile, type GameBoardTileProps, GdsVocabularyPack, ReferenceThemeExplorer, SemanticAction, SemanticActionId, SemanticButton, type SemanticButtonProps, ShareButtonGroup, type ShareButtonGroupProps, type ShareChannel, SidebarNav, SidebarNavItem, type SidebarNavItemProps, type SidebarNavProps, SidebarNavSection, type SidebarNavSectionProps, type ThemePresetId, type ThemeSchemeId, ThemeToggle, type ThemeToggleProps, UploadDropzone, type UploadDropzoneProps };