@doneisbetter/gds-core 2.6.7 → 3.0.1

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/index.mjs CHANGED
@@ -1,10 +1,20 @@
1
1
  import {
2
2
  AccessRecoveryPanel,
3
+ AdvancedDataTable,
4
+ CommandPalette,
5
+ CommandRegistryProvider,
3
6
  ConfirmDialog,
4
7
  DiscoveryShell,
5
8
  DocsCodeBlock,
6
9
  DocsShell,
10
+ FormErrorSummary,
7
11
  GameBoardTile,
12
+ GdsFormProvider,
13
+ GdsNotificationProvider,
14
+ GdsTelemetryProvider,
15
+ ListingProvider,
16
+ NotificationCenter,
17
+ OverlayManagerProvider,
8
18
  ReferenceThemeExplorer,
9
19
  SemanticButton,
10
20
  ShareButtonGroup,
@@ -12,18 +22,35 @@ import {
12
22
  SidebarNavItem,
13
23
  SidebarNavSection,
14
24
  ThemeToggle,
15
- UploadDropzone
16
- } from "./chunk-IUYPELGQ.mjs";
25
+ UploadDropzone,
26
+ ValidatedFieldMessage,
27
+ gdsFormReducer,
28
+ listingQueryReducer,
29
+ useCommandLauncher,
30
+ useDiscoveryShellState,
31
+ useGdsForm,
32
+ useGdsFormSnapshot,
33
+ useGdsNotifications,
34
+ useGdsTelemetry,
35
+ useListingState,
36
+ useOverlayManager
37
+ } from "./chunk-6FX7WZZO.mjs";
17
38
  import {
18
39
  AccentPanel,
19
40
  AccessSummary,
20
41
  ActionBar,
42
+ ActiveFilterChips,
21
43
  ArticleShell,
44
+ AsyncSurface,
22
45
  AuthShell,
46
+ BannerNotice,
23
47
  BrowseSurface,
48
+ BulkActionsBar,
49
+ ChartTokenPanel,
24
50
  ChoiceChip,
25
51
  ConsumerDashboardGrid,
26
52
  ConsumerSection,
53
+ CountBadge,
27
54
  CtaButtonGroup,
28
55
  DataToolbar,
29
56
  DetailProfileShell,
@@ -31,19 +58,25 @@ import {
31
58
  EditorialCard,
32
59
  EditorialHero,
33
60
  EmptyState,
61
+ EvidencePanel,
34
62
  FeatureBand,
35
63
  FilterDrawer,
36
64
  FoodMenuSection,
37
65
  FormField,
66
+ GdsChart,
38
67
  GdsIcons,
39
68
  GdsVocabulary,
69
+ InlineAlert,
70
+ LabelTag,
40
71
  ListingCard,
41
72
  MapPanel,
42
73
  MediaCard,
43
74
  MediaField,
44
75
  MetricCard,
76
+ NotificationCenterView,
45
77
  PROVIDER_IDENTITY_REGISTRY,
46
78
  PageHeader,
79
+ PeriodSelector,
47
80
  PlaceholderPanel,
48
81
  PlaybackSurface,
49
82
  ProductCard,
@@ -60,9 +93,12 @@ import {
60
93
  ReferenceLinkGrid,
61
94
  ReferenceLocaleNotice,
62
95
  ReferenceSection,
96
+ ReportingSection,
97
+ ResultSummary,
63
98
  SectionPanel,
64
99
  SimpleDataTable,
65
100
  SocialAuthButtons,
101
+ SortMenu,
66
102
  StateBlock,
67
103
  StatsSection,
68
104
  StatusBadge,
@@ -72,33 +108,47 @@ import {
72
108
  en,
73
109
  es,
74
110
  fr,
111
+ gdsCardSizePaddingMap,
112
+ gdsCardTitleOrderMap,
75
113
  gdsLocales,
76
114
  getGdsMessages,
77
115
  getProviderIdentityLabel,
116
+ getProviderIdentityPolicy,
78
117
  getSemanticActionConfig,
79
118
  getSemanticActionLabel,
119
+ getSupportedProviderIdentityIds,
80
120
  he,
81
121
  hu,
82
122
  isPresentationMode,
83
123
  it,
84
124
  mergeGdsVocabularyPacks,
125
+ renderGdsLayout,
85
126
  resolveAccentPanelStyles,
86
127
  resolveSemanticActionConfig,
87
128
  resolveSurfacePresentationStyles,
88
129
  ru
89
- } from "./chunk-LH2KMMXT.mjs";
130
+ } from "./chunk-YP7RL2MC.mjs";
90
131
  export {
91
132
  AccentPanel,
92
133
  AccessRecoveryPanel,
93
134
  AccessSummary,
94
135
  ActionBar,
136
+ ActiveFilterChips,
137
+ AdvancedDataTable,
95
138
  ArticleShell,
139
+ AsyncSurface,
96
140
  AuthShell,
141
+ BannerNotice,
97
142
  BrowseSurface,
143
+ BulkActionsBar,
144
+ ChartTokenPanel,
98
145
  ChoiceChip,
146
+ CommandPalette,
147
+ CommandRegistryProvider,
99
148
  ConfirmDialog,
100
149
  ConsumerDashboardGrid,
101
150
  ConsumerSection,
151
+ CountBadge,
102
152
  CtaButtonGroup,
103
153
  DataToolbar,
104
154
  DetailProfileShell,
@@ -109,20 +159,33 @@ export {
109
159
  EditorialCard,
110
160
  EditorialHero,
111
161
  EmptyState,
162
+ EvidencePanel,
112
163
  FeatureBand,
113
164
  FilterDrawer,
114
165
  FoodMenuSection,
166
+ FormErrorSummary,
115
167
  FormField,
116
168
  GameBoardTile,
169
+ GdsChart,
170
+ GdsFormProvider,
117
171
  GdsIcons,
172
+ GdsNotificationProvider,
173
+ GdsTelemetryProvider,
118
174
  GdsVocabulary,
175
+ InlineAlert,
176
+ LabelTag,
119
177
  ListingCard,
178
+ ListingProvider,
120
179
  MapPanel,
121
180
  MediaCard,
122
181
  MediaField,
123
182
  MetricCard,
183
+ NotificationCenter,
184
+ NotificationCenterView,
185
+ OverlayManagerProvider,
124
186
  PROVIDER_IDENTITY_REGISTRY,
125
187
  PageHeader,
188
+ PeriodSelector,
126
189
  PlaceholderPanel,
127
190
  PlaybackSurface,
128
191
  ProductCard,
@@ -140,6 +203,8 @@ export {
140
203
  ReferenceLocaleNotice,
141
204
  ReferenceSection,
142
205
  ReferenceThemeExplorer,
206
+ ReportingSection,
207
+ ResultSummary,
143
208
  SectionPanel,
144
209
  SemanticButton,
145
210
  ShareButtonGroup,
@@ -148,29 +213,46 @@ export {
148
213
  SidebarNavSection,
149
214
  SimpleDataTable,
150
215
  SocialAuthButtons,
216
+ SortMenu,
151
217
  StateBlock,
152
218
  StatsSection,
153
219
  StatusBadge,
154
220
  ThemeToggle,
155
221
  UploadDropzone,
222
+ ValidatedFieldMessage,
156
223
  ar,
157
224
  createGdsVocabularyPack,
158
225
  de,
159
226
  en,
160
227
  es,
161
228
  fr,
229
+ gdsCardSizePaddingMap,
230
+ gdsCardTitleOrderMap,
231
+ gdsFormReducer,
162
232
  gdsLocales,
163
233
  getGdsMessages,
164
234
  getProviderIdentityLabel,
235
+ getProviderIdentityPolicy,
165
236
  getSemanticActionConfig,
166
237
  getSemanticActionLabel,
238
+ getSupportedProviderIdentityIds,
167
239
  he,
168
240
  hu,
169
241
  isPresentationMode,
170
242
  it,
243
+ listingQueryReducer,
171
244
  mergeGdsVocabularyPacks,
245
+ renderGdsLayout,
172
246
  resolveAccentPanelStyles,
173
247
  resolveSemanticActionConfig,
174
248
  resolveSurfacePresentationStyles,
175
- ru
249
+ ru,
250
+ useCommandLauncher,
251
+ useDiscoveryShellState,
252
+ useGdsForm,
253
+ useGdsFormSnapshot,
254
+ useGdsNotifications,
255
+ useGdsTelemetry,
256
+ useListingState,
257
+ useOverlayManager
176
258
  };
@@ -9,11 +9,23 @@ interface StatusBadgeProps extends Omit<BadgeProps, 'color'> {
9
9
  status: StatusVariant;
10
10
  children: ReactNode;
11
11
  }
12
+ type LabelTagTone = 'neutral' | 'info' | 'warning' | 'success';
13
+ interface LabelTagProps extends Omit<BadgeProps, 'color' | 'children'> {
14
+ tone?: LabelTagTone;
15
+ label: ReactNode;
16
+ }
17
+ interface CountBadgeProps extends Omit<BadgeProps, 'color' | 'children'> {
18
+ value: number;
19
+ cap?: number;
20
+ srLabel?: string;
21
+ }
12
22
  /**
13
23
  * StatusBadge enforces strict semantic coloring.
14
24
  * Arbitrary hex colors are prohibited.
15
25
  */
16
26
  declare function StatusBadge({ status, children, ...props }: StatusBadgeProps): react_jsx_runtime.JSX.Element;
27
+ declare function LabelTag({ tone, label, ...props }: LabelTagProps): react_jsx_runtime.JSX.Element;
28
+ declare function CountBadge({ value, cap, srLabel, ...props }: CountBadgeProps): react_jsx_runtime.JSX.Element;
17
29
 
18
30
  interface EmptyStateProps {
19
31
  icon?: ReactNode;
@@ -1167,6 +1179,11 @@ interface EditorialCardProps {
1167
1179
  }
1168
1180
  declare function EditorialCard({ media, mediaAlt, eyebrow, badge, title, description, meta, ctaLabel, href, onClick, tone, variant, classNames, }: EditorialCardProps): react_jsx_runtime.JSX.Element;
1169
1181
 
1182
+ type GdsCardSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
1183
+ type GdsCardInteractiveMode = 'none' | 'surface-link' | 'surface-button' | 'flip';
1184
+ declare const gdsCardSizePaddingMap: Record<GdsCardSize, 'xs' | 'sm' | 'md' | 'lg' | 'xl'>;
1185
+ declare const gdsCardTitleOrderMap: Record<GdsCardSize, 3 | 4 | 5 | 6>;
1186
+
1170
1187
  interface ProductCardMetaItem {
1171
1188
  label: string;
1172
1189
  value: ReactNode;
@@ -1187,8 +1204,9 @@ interface ProductCardProps {
1187
1204
  primaryAction?: ReactNode;
1188
1205
  secondaryActions?: ProductCardAction[];
1189
1206
  footer?: ReactNode;
1207
+ size?: GdsCardSize;
1190
1208
  }
1191
- declare function ProductCard({ title, description, media, icon, status, metadata, primaryAction, secondaryActions, footer, }: ProductCardProps): react_jsx_runtime.JSX.Element;
1209
+ declare function ProductCard({ title, description, media, icon, status, metadata, primaryAction, secondaryActions, footer, size, }: ProductCardProps): react_jsx_runtime.JSX.Element;
1192
1210
 
1193
1211
  type PublicProductCardState = 'available' | 'limited' | 'sold-out' | 'preorder';
1194
1212
  type PublicProductCardHelperKind = 'supporting' | 'pickup' | 'inventory';
@@ -1212,10 +1230,13 @@ interface PublicProductCardProps {
1212
1230
  secondaryAction?: ReactNode;
1213
1231
  metadata?: PublicProductCardMetaItem[];
1214
1232
  compact?: boolean;
1233
+ size?: GdsCardSize;
1215
1234
  loading?: boolean;
1216
1235
  disabled?: boolean;
1236
+ interactiveMode?: GdsCardInteractiveMode;
1237
+ onSurfaceActivate?: () => void;
1217
1238
  }
1218
- declare function PublicProductCard({ title, description, image, price, helperText, helperKind, pickupNote, inventoryNote, state, stateLabels, primaryAction, secondaryAction, metadata, compact, loading, disabled, }: PublicProductCardProps): react_jsx_runtime.JSX.Element;
1239
+ declare function PublicProductCard({ title, description, image, price, helperText, helperKind, pickupNote, inventoryNote, state, stateLabels, primaryAction, secondaryAction, metadata, compact, size, loading, disabled, interactiveMode, onSurfaceActivate, }: PublicProductCardProps): react_jsx_runtime.JSX.Element;
1219
1240
 
1220
1241
  type FoodCardAvailabilityState = 'available' | 'preorder' | 'limited' | 'sold-out' | 'coming-soon';
1221
1242
  type FoodCardMediaRatio = 'square' | 'dish' | 'landscape';
@@ -1304,8 +1325,13 @@ interface ListingCardProps {
1304
1325
  saveAction?: ListingCardAffordance;
1305
1326
  shareAction?: ListingCardAffordance;
1306
1327
  compact?: boolean;
1328
+ size?: GdsCardSize;
1329
+ interactiveMode?: GdsCardInteractiveMode;
1330
+ revealContent?: ReactNode;
1331
+ onSurfaceActivate?: () => void;
1332
+ defaultFlipped?: boolean;
1307
1333
  }
1308
- declare function ListingCard({ title, href, description, image, mediaRatio, metadata, featured, sponsoredDisclosure, price, primaryAction, saveAction, shareAction, compact, }: ListingCardProps): react_jsx_runtime.JSX.Element;
1334
+ declare function ListingCard({ title, href, description, image, mediaRatio, metadata, featured, sponsoredDisclosure, price, primaryAction, saveAction, shareAction, compact, size, interactiveMode, revealContent, onSurfaceActivate, defaultFlipped, }: ListingCardProps): react_jsx_runtime.JSX.Element;
1309
1335
 
1310
1336
  interface DataToolbarFilterChip {
1311
1337
  label: string;
@@ -1401,6 +1427,59 @@ interface StateBlockProps extends SurfacePresentationProps {
1401
1427
  }
1402
1428
  declare function StateBlock({ variant, title, description, action, icon, compact, presentation, minHeight, contentAlign, contentJustify, }: StateBlockProps): react_jsx_runtime.JSX.Element;
1403
1429
 
1430
+ type AsyncSurfaceState = 'idle' | 'loading' | 'success' | 'empty' | 'error' | 'refreshing';
1431
+ interface AsyncSurfaceProps extends SurfacePresentationProps {
1432
+ state: AsyncSurfaceState;
1433
+ successContent?: ReactNode;
1434
+ idleContent?: ReactNode;
1435
+ loadingTitle?: string;
1436
+ loadingDescription?: ReactNode;
1437
+ emptyTitle?: string;
1438
+ emptyDescription?: ReactNode;
1439
+ errorTitle?: string;
1440
+ errorDescription?: ReactNode;
1441
+ refreshingTitle?: string;
1442
+ refreshingDescription?: ReactNode;
1443
+ onRetry?: () => void;
1444
+ retryAction?: ReactNode;
1445
+ compact?: boolean;
1446
+ }
1447
+ declare function AsyncSurface({ state, successContent, idleContent, loadingTitle, loadingDescription, emptyTitle, emptyDescription, errorTitle, errorDescription, refreshingTitle, refreshingDescription, onRetry, retryAction, compact, presentation, minHeight, contentAlign, contentJustify, }: AsyncSurfaceProps): react_jsx_runtime.JSX.Element;
1448
+
1449
+ interface ListingFilterChip {
1450
+ id: string;
1451
+ label: string;
1452
+ onRemove?: () => void;
1453
+ }
1454
+ interface ActiveFilterChipsProps {
1455
+ filters: ListingFilterChip[];
1456
+ emptyLabel?: ReactNode;
1457
+ }
1458
+ interface ResultSummaryProps {
1459
+ resultCount: number;
1460
+ noun?: string;
1461
+ description?: ReactNode;
1462
+ }
1463
+ interface SortOption {
1464
+ value: string;
1465
+ label: string;
1466
+ }
1467
+ interface SortMenuProps {
1468
+ value: string;
1469
+ options: SortOption[];
1470
+ onChange?: (value: string) => void;
1471
+ label?: string;
1472
+ }
1473
+ interface BulkActionsBarProps {
1474
+ selectedCount: number;
1475
+ actions?: ReactNode;
1476
+ clearAction?: ReactNode;
1477
+ }
1478
+ declare function ActiveFilterChips({ filters, emptyLabel, }: ActiveFilterChipsProps): react_jsx_runtime.JSX.Element;
1479
+ declare function ResultSummary({ resultCount, noun, description, }: ResultSummaryProps): react_jsx_runtime.JSX.Element;
1480
+ declare function SortMenu({ value, options, onChange, label, }: SortMenuProps): react_jsx_runtime.JSX.Element;
1481
+ declare function BulkActionsBar({ selectedCount, actions, clearAction, }: BulkActionsBarProps): react_jsx_runtime.JSX.Element | null;
1482
+
1404
1483
  interface PublicNavItem {
1405
1484
  id: string;
1406
1485
  label: string;
@@ -1473,15 +1552,19 @@ declare function PublicBrandFooter({ media, brandTitle, description, actions, se
1473
1552
  interface AuthShellProps {
1474
1553
  title: string;
1475
1554
  description?: ReactNode;
1555
+ intent?: 'sign-in' | 'sign-up' | 'account-linking' | 'guest-entry';
1476
1556
  brand?: ReactNode;
1477
1557
  headerActions?: ReactNode;
1478
1558
  footer?: ReactNode;
1479
1559
  helper?: ReactNode;
1560
+ error?: ReactNode;
1561
+ guestAction?: ReactNode;
1562
+ supportAction?: ReactNode;
1480
1563
  socialAuth?: ReactNode;
1481
1564
  dividerLabel?: ReactNode;
1482
1565
  children: ReactNode;
1483
1566
  }
1484
- declare function AuthShell({ title, description, brand, headerActions, footer, helper, socialAuth, dividerLabel, children, }: AuthShellProps): react_jsx_runtime.JSX.Element;
1567
+ declare function AuthShell({ title, description, intent, brand, headerActions, footer, helper, error, guestAction, supportAction, socialAuth, dividerLabel, children, }: AuthShellProps): react_jsx_runtime.JSX.Element;
1485
1568
 
1486
1569
  declare const PROVIDER_IDENTITY_REGISTRY: {
1487
1570
  readonly google: {
@@ -1536,10 +1619,13 @@ interface ProviderIdentityButtonProps {
1536
1619
  provider: ProviderIdentity;
1537
1620
  label?: ReactNode;
1538
1621
  description?: ReactNode;
1622
+ policyNote?: ReactNode;
1623
+ error?: ReactNode;
1539
1624
  href?: string;
1540
1625
  onClick?: () => void;
1541
1626
  disabled?: boolean;
1542
1627
  loading?: boolean;
1628
+ tenantDisabledReason?: ReactNode;
1543
1629
  fullWidth?: boolean;
1544
1630
  size?: 'sm' | 'md' | 'lg';
1545
1631
  variant?: ProviderIdentityVariant;
@@ -1552,7 +1638,16 @@ interface ProviderIdentityButtonGroupProps {
1552
1638
  layout?: 'stack' | 'grid';
1553
1639
  }
1554
1640
  declare function getProviderIdentityLabel(provider: string, fallbackOverride?: ReactNode): string | number | bigint | boolean | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined>;
1555
- declare function ProviderIdentityButton({ provider, label, description, href, onClick, disabled, loading, fullWidth, size, variant, ariaLabel, describedBy, minTouchTargetPx, }: ProviderIdentityButtonProps): react_jsx_runtime.JSX.Element;
1641
+ declare function getSupportedProviderIdentityIds(): string[];
1642
+ declare function getProviderIdentityPolicy(provider: string): {
1643
+ id: string;
1644
+ supported: boolean;
1645
+ providerLabel: string;
1646
+ colorAuthority: string;
1647
+ minTouchTargetPx: number;
1648
+ allowedVariants: ProviderIdentityVariant[];
1649
+ };
1650
+ declare function ProviderIdentityButton({ provider, label, description, policyNote, error, href, onClick, disabled, loading, tenantDisabledReason, fullWidth, size, variant, ariaLabel, describedBy, minTouchTargetPx, }: ProviderIdentityButtonProps): react_jsx_runtime.JSX.Element;
1556
1651
  declare function ProviderIdentityButtonGroup({ providers, layout }: ProviderIdentityButtonGroupProps): react_jsx_runtime.JSX.Element | null;
1557
1652
 
1558
1653
  type SocialAuthProviderId = 'google' | 'apple' | 'github' | 'facebook' | 'microsoft' | 'linkedin' | 'discord' | 'x' | 'email';
@@ -1561,8 +1656,11 @@ interface SocialAuthProviderOption {
1561
1656
  href?: string;
1562
1657
  onClick?: () => void;
1563
1658
  label?: ReactNode;
1659
+ policyNote?: ReactNode;
1660
+ error?: ReactNode;
1564
1661
  disabled?: boolean;
1565
1662
  loading?: boolean;
1663
+ tenantDisabledReason?: ReactNode;
1566
1664
  description?: ReactNode;
1567
1665
  variant?: ProviderIdentityVariant;
1568
1666
  size?: ProviderIdentityButtonProps['size'];
@@ -1727,6 +1825,7 @@ interface PlaybackSurfaceProps {
1727
1825
  }
1728
1826
  declare function PlaybackSurface({ title, state, media, statusMessage, controls, emptyState, errorState, overlays, mode, }: PlaybackSurfaceProps): react_jsx_runtime.JSX.Element;
1729
1827
 
1828
+ type MediaFieldState = 'empty' | 'drag-active' | 'selected' | 'preview-loading' | 'uploading' | 'upload-failed' | 'unsupported-type' | 'too-large' | 'removed' | 'saved' | 'invalid' | 'readonly';
1730
1829
  interface MediaFieldProps {
1731
1830
  label: ReactNode;
1732
1831
  description?: ReactNode;
@@ -1738,15 +1837,20 @@ interface MediaFieldProps {
1738
1837
  policyText?: ReactNode;
1739
1838
  error?: ReactNode;
1740
1839
  retryAction?: ReactNode;
1840
+ replaceAction?: ReactNode;
1741
1841
  onRemove?: () => void;
1742
1842
  onReset?: () => void;
1743
1843
  removeAction?: ReactNode;
1744
1844
  resetAction?: ReactNode;
1745
1845
  statusAction?: ReactNode;
1746
- state?: 'empty' | 'selected' | 'saved' | 'invalid' | 'uploading';
1846
+ state?: MediaFieldState;
1847
+ acceptedTypes?: ReactNode;
1848
+ maxSize?: ReactNode;
1849
+ progress?: number;
1850
+ readonly?: boolean;
1747
1851
  mode?: 'stacked' | 'split';
1748
1852
  }
1749
- declare function MediaField({ label, description, value, preview, uploadControl, urlInput, helpText, policyText, error, retryAction, onRemove, onReset, removeAction, resetAction, statusAction, state, mode, }: MediaFieldProps): react_jsx_runtime.JSX.Element;
1853
+ declare function MediaField({ label, description, value, preview, uploadControl, urlInput, helpText, policyText, error, retryAction, replaceAction, onRemove, onReset, removeAction, resetAction, statusAction, acceptedTypes, maxSize, progress, readonly, state, mode, }: MediaFieldProps): react_jsx_runtime.JSX.Element;
1750
1854
 
1751
1855
  interface MediaCardAction {
1752
1856
  label: string;
@@ -1767,9 +1871,12 @@ interface AccessSummaryProps {
1767
1871
  roles: string[];
1768
1872
  scope?: string;
1769
1873
  blocked?: boolean;
1874
+ state?: 'allowed' | 'blocked' | 'forbidden' | 'expired' | 'permission-limited';
1875
+ owner?: ReactNode;
1876
+ recoveryHint?: ReactNode;
1770
1877
  description?: ReactNode;
1771
1878
  }
1772
- declare function AccessSummary({ title, roles, scope, blocked, description }: AccessSummaryProps): react_jsx_runtime.JSX.Element;
1879
+ declare function AccessSummary({ title, roles, scope, blocked, state, owner, recoveryHint, description }: AccessSummaryProps): react_jsx_runtime.JSX.Element;
1773
1880
 
1774
1881
  interface FormFieldProps {
1775
1882
  label: ReactNode;
@@ -1843,6 +1950,138 @@ interface StatsSectionProps {
1843
1950
  }
1844
1951
  declare function StatsSection({ title, loading, error, belowThreshold, thresholdMessage, children, placeholder, }: StatsSectionProps): react_jsx_runtime.JSX.Element;
1845
1952
 
1953
+ interface PeriodSelectorOption {
1954
+ value: string;
1955
+ label: string;
1956
+ description?: string;
1957
+ }
1958
+ interface PeriodSelectorProps {
1959
+ label: ReactNode;
1960
+ description?: ReactNode;
1961
+ value: string;
1962
+ options: PeriodSelectorOption[];
1963
+ onChange?: (value: string) => void;
1964
+ timezone?: string;
1965
+ scope?: ReactNode;
1966
+ helperText?: ReactNode;
1967
+ error?: ReactNode;
1968
+ stale?: boolean;
1969
+ filtered?: boolean;
1970
+ disabled?: boolean;
1971
+ }
1972
+ declare function PeriodSelector({ label, description, value, options, onChange, timezone, scope, helperText, error, stale, filtered, disabled, }: PeriodSelectorProps): react_jsx_runtime.JSX.Element;
1973
+
1974
+ type EvidencePanelState = 'current' | 'stale' | 'partial' | 'permission-limited' | 'loading' | 'empty' | 'error';
1975
+ interface EvidencePanelProps {
1976
+ title: ReactNode;
1977
+ description?: ReactNode;
1978
+ source?: ReactNode;
1979
+ freshness?: ReactNode;
1980
+ confidence?: ReactNode;
1981
+ state?: EvidencePanelState;
1982
+ evidenceCount?: number;
1983
+ permissionNote?: ReactNode;
1984
+ retryAction?: ReactNode;
1985
+ details?: ReactNode;
1986
+ children?: ReactNode;
1987
+ }
1988
+ declare function EvidencePanel({ title, description, source, freshness, confidence, state, evidenceCount, permissionNote, retryAction, details, children, }: EvidencePanelProps): react_jsx_runtime.JSX.Element;
1989
+
1990
+ type ChartTokenPanelState = 'ready' | 'loading' | 'empty' | 'below-threshold' | 'partial' | 'error' | 'permission-limited';
1991
+ interface ChartLegendItem {
1992
+ label: ReactNode;
1993
+ token: string;
1994
+ description?: ReactNode;
1995
+ }
1996
+ interface ChartTokenPanelProps {
1997
+ title: ReactNode;
1998
+ description?: ReactNode;
1999
+ summary: ReactNode;
2000
+ state?: ChartTokenPanelState;
2001
+ legend?: ChartLegendItem[];
2002
+ children?: ReactNode;
2003
+ tableFallback?: ReactNode;
2004
+ retryAction?: ReactNode;
2005
+ }
2006
+ declare function ChartTokenPanel({ title, description, summary, state, legend, children, tableFallback, retryAction, }: ChartTokenPanelProps): react_jsx_runtime.JSX.Element;
2007
+
2008
+ type GdsChartType = 'line' | 'area' | 'bar' | 'stacked-bar' | 'pie' | 'donut' | 'radar' | 'scatter' | 'bubble' | 'heatmap' | 'funnel' | 'treemap';
2009
+ interface GdsChartDatum {
2010
+ label: string;
2011
+ value: number;
2012
+ group?: string;
2013
+ }
2014
+ interface GdsChartProps {
2015
+ type: GdsChartType;
2016
+ title: string;
2017
+ summary: string;
2018
+ data: GdsChartDatum[];
2019
+ state?: ChartTokenPanelState;
2020
+ retryAction?: ReactNode;
2021
+ }
2022
+ declare function GdsChart({ type, title, summary, data, state, retryAction }: GdsChartProps): react_jsx_runtime.JSX.Element;
2023
+
2024
+ type LayoutBlockType = 'hero' | 'stats' | 'cards-grid' | 'chart' | 'cta' | 'footer';
2025
+ interface LayoutBlock {
2026
+ id: string;
2027
+ type: LayoutBlockType;
2028
+ props: Record<string, unknown>;
2029
+ }
2030
+ interface LayoutSchema {
2031
+ version: '1';
2032
+ blocks: LayoutBlock[];
2033
+ }
2034
+ declare function renderGdsLayout(schema: LayoutSchema): react_jsx_runtime.JSX.Element;
2035
+
2036
+ type ReportingSectionState = 'ready' | 'loading' | 'empty' | 'error' | 'below-threshold' | 'partial' | 'stale' | 'filtered' | 'permission-limited';
2037
+ interface ReportingSectionProps {
2038
+ title: ReactNode;
2039
+ description?: ReactNode;
2040
+ state?: ReportingSectionState;
2041
+ periodControl?: ReactNode;
2042
+ evidence?: ReactNode;
2043
+ metrics?: ReactNode;
2044
+ chart?: ReactNode;
2045
+ table?: ReactNode;
2046
+ action?: ReactNode;
2047
+ stateMessage?: ReactNode;
2048
+ retryAction?: ReactNode;
2049
+ }
2050
+ declare function ReportingSection({ title, description, state, periodControl, evidence, metrics, chart, table, action, stateMessage, retryAction, }: ReportingSectionProps): react_jsx_runtime.JSX.Element;
2051
+
2052
+ type GdsNotificationSeverity = 'success' | 'error' | 'warning' | 'info' | 'neutral';
2053
+ interface GdsNotificationAction {
2054
+ id: string;
2055
+ label: string;
2056
+ onClick: () => void;
2057
+ }
2058
+ interface GdsNotificationMessage {
2059
+ id: string;
2060
+ title: string;
2061
+ message?: ReactNode;
2062
+ severity?: GdsNotificationSeverity;
2063
+ autoCloseMs?: number | false;
2064
+ actions?: GdsNotificationAction[];
2065
+ }
2066
+ interface InlineAlertProps {
2067
+ title: string;
2068
+ message?: ReactNode;
2069
+ severity?: GdsNotificationSeverity;
2070
+ action?: ReactNode;
2071
+ }
2072
+ interface BannerNoticeProps extends InlineAlertProps {
2073
+ eyebrow?: ReactNode;
2074
+ }
2075
+ declare function InlineAlert({ title, message, severity, action, }: InlineAlertProps): react_jsx_runtime.JSX.Element;
2076
+ declare function BannerNotice({ eyebrow, title, message, severity, action, }: BannerNoticeProps): react_jsx_runtime.JSX.Element;
2077
+ declare function NotificationCenterView({ notifications, onDismiss, onClear, title, emptyMessage, }: {
2078
+ notifications: GdsNotificationMessage[];
2079
+ onDismiss?: (id: string) => void;
2080
+ onClear?: () => void;
2081
+ title?: ReactNode;
2082
+ emptyMessage?: ReactNode;
2083
+ }): react_jsx_runtime.JSX.Element;
2084
+
1846
2085
  declare const en: {
1847
2086
  'gds.action.settings': string;
1848
2087
  'gds.action.analytics': string;
@@ -5655,4 +5894,4 @@ declare function getGdsMessages(locale: GdsLocale | string): {
5655
5894
  'gds.state.emptyData': string;
5656
5895
  };
5657
5896
 
5658
- export { type FoodMenuItem as $, AccentPanel as A, type BreadcrumbItem as B, ChoiceChip as C, DataToolbar as D, DetailProfileShell as E, type DetailProfileShellProps as F, DocsPageShell as G, type DocsPageShellProps as H, EditorialCard as I, type EditorialCardProps as J, EditorialHero as K, type EditorialHeroAction as L, type EditorialHeroMetaItem as M, type EditorialHeroProps as N, EmptyState as O, type EmptyStateProps as P, FeatureBand as Q, type FeatureBandItem as R, type FeatureBandProps as S, FilterDrawer as T, type FilterDrawerMode as U, type FilterDrawerProps as V, type FoodCardAvailabilityState as W, type FoodCardMarker as X, type FoodCardMediaRatio as Y, type FoodCardMetadata as Z, type FoodMenuCategory as _, type AccentPanelProps as a, PublicShell as a$, FoodMenuSection as a0, type FoodMenuSectionProps as a1, FormField as a2, type FormFieldProps as a3, GdsIcons as a4, type GdsLocale as a5, GdsVocabulary as a6, type GdsVocabularyPack as a7, ListingCard as a8, type ListingCardAffordance as a9, type ProgressCardProps as aA, type ProviderIdentity as aB, ProviderIdentityButton as aC, ProviderIdentityButtonGroup as aD, type ProviderIdentityButtonGroupProps as aE, type ProviderIdentityButtonProps as aF, type ProviderIdentityVariant as aG, PublicBrandFooter as aH, type PublicBrandFooterClassNames as aI, type PublicBrandFooterLayoutVariant as aJ, type PublicBrandFooterProps as aK, type PublicFlowAction as aL, type PublicFlowActionPriority as aM, PublicFlowShell as aN, type PublicFlowShellProps as aO, type PublicFlowStage as aP, type PublicFlowStageStatus as aQ, PublicFoodCard as aR, type PublicFoodCardProps as aS, PublicNav as aT, type PublicNavItem as aU, type PublicNavProps as aV, PublicProductCard as aW, type PublicProductCardHelperKind as aX, type PublicProductCardMetaItem as aY, type PublicProductCardProps as aZ, type PublicProductCardState as a_, type ListingCardMediaRatio as aa, type ListingCardProps as ab, type ListingMetadataRow as ac, MapPanel as ad, type MapPanelProps as ae, MediaCard as af, type MediaCardAction as ag, type MediaCardProps as ah, MediaField as ai, type MediaFieldProps as aj, MetricCard as ak, type MetricCardProps as al, PROVIDER_IDENTITY_REGISTRY as am, PageHeader as an, type PageHeaderEyebrowVariant as ao, type PageHeaderProps as ap, PlaceholderPanel as aq, type PlaceholderPanelProps as ar, PlaybackSurface as as, type PlaybackSurfaceProps as at, type PlaybackSurfaceState as au, ProductCard as av, type ProductCardAction as aw, type ProductCardMetaItem as ax, type ProductCardProps as ay, ProgressCard as az, type AccentPanelVariant as b, type PublicShellClassNames as b0, type PublicShellHeaderVariant as b1, type PublicShellMobileNavigationMode as b2, type PublicShellProps as b3, PublicSiteFooter as b4, type PublicSiteFooterProps as b5, ReferenceLinkGrid as b6, type ReferenceLinkGridItem as b7, type ReferenceLinkGridProps as b8, ReferenceLocaleNotice as b9, type SurfacePresentation as bA, type SurfacePresentationProps as bB, type VocabularyResolver as bC, ar as bD, createGdsVocabularyPack as bE, de as bF, en as bG, es as bH, fr as bI, gdsLocales as bJ, getGdsMessages as bK, getProviderIdentityLabel as bL, getSemanticActionConfig as bM, getSemanticActionLabel as bN, he as bO, hu as bP, isPresentationMode as bQ, it as bR, mergeGdsVocabularyPacks as bS, resolveAccentPanelStyles as bT, resolveSemanticActionConfig as bU, resolveSurfacePresentationStyles as bV, ru as bW, type ReferenceLocaleNoticeProps as ba, ReferenceSection as bb, type ReferenceSectionProps as bc, SectionPanel as bd, type SectionPanelProps as be, type SectionPanelTone as bf, type SemanticAction as bg, type SemanticActionDefinition as bh, type SemanticActionId as bi, SimpleDataTable as bj, type SimpleDataTableProps as bk, type SimpleTableColumn as bl, SocialAuthButtons as bm, type SocialAuthButtonsProps as bn, type SocialAuthProviderId as bo, type SocialAuthProviderOption as bp, StateBlock as bq, type StateBlockProps as br, type StateBlockVariant as bs, StatsSection as bt, type StatsSectionProps as bu, StatusBadge as bv, type StatusBadgeProps as bw, type StatusVariant as bx, type SurfaceContentAlign as by, type SurfaceContentJustify as bz, type AccentTone as c, AccessSummary as d, type AccessSummaryProps as e, ActionBar as f, type ActionBarAction as g, type ActionBarIconAction as h, type ActionBarProps as i, ArticleShell as j, type ArticleShellProps as k, AuthShell as l, type AuthShellProps as m, BrowseSurface as n, type BrowseSurfaceFilterChip as o, type BrowseSurfaceProps as p, type BrowseSurfaceScopeOption as q, type ChoiceChipProps as r, ConsumerDashboardGrid as s, type ConsumerDashboardGridProps as t, ConsumerSection as u, type ConsumerSectionProps as v, CtaButtonGroup as w, type CtaButtonGroupProps as x, type DataToolbarFilterChip as y, type DataToolbarProps as z };
5897
+ export { type EditorialHeroMetaItem as $, AccentPanel as A, BannerNotice as B, type ChartLegendItem as C, ChartTokenPanel as D, type ChartTokenPanelProps as E, type ChartTokenPanelState as F, ChoiceChip as G, type ChoiceChipProps as H, ConsumerDashboardGrid as I, type ConsumerDashboardGridProps as J, ConsumerSection as K, type ConsumerSectionProps as L, CountBadge as M, type CountBadgeProps as N, CtaButtonGroup as O, type CtaButtonGroupProps as P, DataToolbar as Q, type DataToolbarFilterChip as R, type DataToolbarProps as S, DetailProfileShell as T, type DetailProfileShellProps as U, DocsPageShell as V, type DocsPageShellProps as W, EditorialCard as X, type EditorialCardProps as Y, EditorialHero as Z, type EditorialHeroAction as _, type AccentPanelProps as a, type PageHeaderProps as a$, type EditorialHeroProps as a0, EmptyState as a1, type EmptyStateProps as a2, EvidencePanel as a3, type EvidencePanelProps as a4, type EvidencePanelState as a5, FeatureBand as a6, type FeatureBandItem as a7, type FeatureBandProps as a8, FilterDrawer as a9, type InlineAlertProps as aA, LabelTag as aB, type LabelTagProps as aC, type LabelTagTone as aD, type LayoutBlock as aE, type LayoutBlockType as aF, type LayoutSchema as aG, ListingCard as aH, type ListingCardAffordance as aI, type ListingCardMediaRatio as aJ, type ListingCardProps as aK, type ListingFilterChip as aL, type ListingMetadataRow as aM, MapPanel as aN, type MapPanelProps as aO, MediaCard as aP, type MediaCardAction as aQ, type MediaCardProps as aR, MediaField as aS, type MediaFieldProps as aT, type MediaFieldState as aU, MetricCard as aV, type MetricCardProps as aW, NotificationCenterView as aX, PROVIDER_IDENTITY_REGISTRY as aY, PageHeader as aZ, type PageHeaderEyebrowVariant as a_, type FilterDrawerMode as aa, type FilterDrawerProps as ab, type FoodCardAvailabilityState as ac, type FoodCardMarker as ad, type FoodCardMediaRatio as ae, type FoodCardMetadata as af, type FoodMenuCategory as ag, type FoodMenuItem as ah, FoodMenuSection as ai, type FoodMenuSectionProps as aj, FormField as ak, type FormFieldProps as al, type GdsCardInteractiveMode as am, type GdsCardSize as an, GdsChart as ao, type GdsChartDatum as ap, type GdsChartProps as aq, type GdsChartType as ar, GdsIcons as as, type GdsLocale as at, type GdsNotificationAction as au, type GdsNotificationMessage as av, type GdsNotificationSeverity as aw, GdsVocabulary as ax, type GdsVocabularyPack as ay, InlineAlert as az, type AccentPanelVariant as b, type SemanticActionDefinition as b$, PeriodSelector as b0, type PeriodSelectorOption as b1, type PeriodSelectorProps as b2, PlaceholderPanel as b3, type PlaceholderPanelProps as b4, PlaybackSurface as b5, type PlaybackSurfaceProps as b6, type PlaybackSurfaceState as b7, ProductCard as b8, type ProductCardAction as b9, type PublicProductCardHelperKind as bA, type PublicProductCardMetaItem as bB, type PublicProductCardProps as bC, type PublicProductCardState as bD, PublicShell as bE, type PublicShellClassNames as bF, type PublicShellHeaderVariant as bG, type PublicShellMobileNavigationMode as bH, type PublicShellProps as bI, PublicSiteFooter as bJ, type PublicSiteFooterProps as bK, ReferenceLinkGrid as bL, type ReferenceLinkGridItem as bM, type ReferenceLinkGridProps as bN, ReferenceLocaleNotice as bO, type ReferenceLocaleNoticeProps as bP, ReferenceSection as bQ, type ReferenceSectionProps as bR, ReportingSection as bS, type ReportingSectionProps as bT, type ReportingSectionState as bU, ResultSummary as bV, type ResultSummaryProps as bW, SectionPanel as bX, type SectionPanelProps as bY, type SectionPanelTone as bZ, type SemanticAction as b_, type ProductCardMetaItem as ba, type ProductCardProps as bb, ProgressCard as bc, type ProgressCardProps as bd, type ProviderIdentity as be, ProviderIdentityButton as bf, ProviderIdentityButtonGroup as bg, type ProviderIdentityButtonGroupProps as bh, type ProviderIdentityButtonProps as bi, type ProviderIdentityVariant as bj, PublicBrandFooter as bk, type PublicBrandFooterClassNames as bl, type PublicBrandFooterLayoutVariant as bm, type PublicBrandFooterProps as bn, type PublicFlowAction as bo, type PublicFlowActionPriority as bp, PublicFlowShell as bq, type PublicFlowShellProps as br, type PublicFlowStage as bs, type PublicFlowStageStatus as bt, PublicFoodCard as bu, type PublicFoodCardProps as bv, PublicNav as bw, type PublicNavItem as bx, type PublicNavProps as by, PublicProductCard as bz, type AccentTone as c, type SemanticActionId as c0, SimpleDataTable as c1, type SimpleDataTableProps as c2, type SimpleTableColumn as c3, SocialAuthButtons as c4, type SocialAuthButtonsProps as c5, type SocialAuthProviderId as c6, type SocialAuthProviderOption as c7, SortMenu as c8, type SortMenuProps as c9, getSemanticActionConfig as cA, getSemanticActionLabel as cB, getSupportedProviderIdentityIds as cC, he as cD, hu as cE, isPresentationMode as cF, it as cG, mergeGdsVocabularyPacks as cH, renderGdsLayout as cI, resolveAccentPanelStyles as cJ, resolveSemanticActionConfig as cK, resolveSurfacePresentationStyles as cL, ru as cM, type SortOption as ca, StateBlock as cb, type StateBlockProps as cc, type StateBlockVariant as cd, StatsSection as ce, type StatsSectionProps as cf, StatusBadge as cg, type StatusBadgeProps as ch, type StatusVariant as ci, type SurfaceContentAlign as cj, type SurfaceContentJustify as ck, type SurfacePresentation as cl, type SurfacePresentationProps as cm, type VocabularyResolver as cn, ar as co, createGdsVocabularyPack as cp, de as cq, en as cr, es as cs, fr as ct, gdsCardSizePaddingMap as cu, gdsCardTitleOrderMap as cv, gdsLocales as cw, getGdsMessages as cx, getProviderIdentityLabel as cy, getProviderIdentityPolicy as cz, AccessSummary as d, type AccessSummaryProps as e, ActionBar as f, type ActionBarAction as g, type ActionBarIconAction as h, type ActionBarProps as i, ActiveFilterChips as j, type ActiveFilterChipsProps as k, ArticleShell as l, type ArticleShellProps as m, AsyncSurface as n, type AsyncSurfaceProps as o, type AsyncSurfaceState as p, AuthShell as q, type AuthShellProps as r, type BannerNoticeProps as s, type BreadcrumbItem as t, BrowseSurface as u, type BrowseSurfaceFilterChip as v, type BrowseSurfaceProps as w, type BrowseSurfaceScopeOption as x, BulkActionsBar as y, type BulkActionsBarProps as z };