@doneisbetter/gds-core 2.6.7 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { bg as SemanticAction, bi as SemanticActionId, a7 as GdsVocabularyPack } from './server-BSuY9Qx6.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 PROVIDER_IDENTITY_REGISTRY, an as PageHeader, ao as PageHeaderEyebrowVariant, ap as PageHeaderProps, aq as PlaceholderPanel, ar as PlaceholderPanelProps, as as PlaybackSurface, at as PlaybackSurfaceProps, au as PlaybackSurfaceState, av as ProductCard, aw as ProductCardAction, ax as ProductCardMetaItem, ay as ProductCardProps, az as ProgressCard, aA as ProgressCardProps, aB as ProviderIdentity, aC as ProviderIdentityButton, aD as ProviderIdentityButtonGroup, aE as ProviderIdentityButtonGroupProps, aF as ProviderIdentityButtonProps, aG as ProviderIdentityVariant, aH as PublicBrandFooter, aI as PublicBrandFooterClassNames, aJ as PublicBrandFooterLayoutVariant, aK as PublicBrandFooterProps, aL as PublicFlowAction, aM as PublicFlowActionPriority, aN as PublicFlowShell, aO as PublicFlowShellProps, aP as PublicFlowStage, aQ as PublicFlowStageStatus, aR as PublicFoodCard, aS as PublicFoodCardProps, aT as PublicNav, aU as PublicNavItem, aV as PublicNavProps, aW as PublicProductCard, aX as PublicProductCardHelperKind, aY as PublicProductCardMetaItem, aZ as PublicProductCardProps, a_ as PublicProductCardState, a$ as PublicShell, b0 as PublicShellClassNames, b1 as PublicShellHeaderVariant, b2 as PublicShellMobileNavigationMode, b3 as PublicShellProps, b4 as PublicSiteFooter, b5 as PublicSiteFooterProps, b6 as ReferenceLinkGrid, b7 as ReferenceLinkGridItem, b8 as ReferenceLinkGridProps, b9 as ReferenceLocaleNotice, ba as ReferenceLocaleNoticeProps, bb as ReferenceSection, bc as ReferenceSectionProps, bd as SectionPanel, be as SectionPanelProps, bf as SectionPanelTone, bh as SemanticActionDefinition, bj as SimpleDataTable, bk as SimpleDataTableProps, bl as SimpleTableColumn, bm as SocialAuthButtons, bn as SocialAuthButtonsProps, bo as SocialAuthProviderId, bp as SocialAuthProviderOption, bq as StateBlock, br as StateBlockProps, bs as StateBlockVariant, bt as StatsSection, bu as StatsSectionProps, bv as StatusBadge, bw as StatusBadgeProps, bx as StatusVariant, by as SurfaceContentAlign, bz as SurfaceContentJustify, bA as SurfacePresentation, bB as SurfacePresentationProps, bC as VocabularyResolver, bD as ar, bE as createGdsVocabularyPack, bF as de, bG as en, bH as es, bI as fr, bJ as gdsLocales, bK as getGdsMessages, bL as getProviderIdentityLabel, bM as getSemanticActionConfig, bN as getSemanticActionLabel, bO as he, bP as hu, bQ as isPresentationMode, bR as it, bS as mergeGdsVocabularyPacks, bT as resolveAccentPanelStyles, bU as resolveSemanticActionConfig, bV as resolveSurfacePresentationStyles, bW as ru } from './server-BSuY9Qx6.js';
1
+ import { bu as SemanticAction, bw as SemanticActionId, ae as GdsVocabularyPack } from './server-woziKWie.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 ChartLegendItem, r as ChartTokenPanel, s as ChartTokenPanelProps, t as ChartTokenPanelState, u as ChoiceChip, v as ChoiceChipProps, w as ConsumerDashboardGrid, x as ConsumerDashboardGridProps, y as ConsumerSection, z as ConsumerSectionProps, D as CtaButtonGroup, E as CtaButtonGroupProps, F as DataToolbar, G as DataToolbarFilterChip, H as DataToolbarProps, I as DetailProfileShell, J as DetailProfileShellProps, K as DocsPageShell, L as DocsPageShellProps, M as EditorialCard, N as EditorialCardProps, O as EditorialHero, P as EditorialHeroAction, Q as EditorialHeroMetaItem, R as EditorialHeroProps, S as EmptyState, T as EmptyStateProps, U as EvidencePanel, V as EvidencePanelProps, W as EvidencePanelState, X as FeatureBand, Y as FeatureBandItem, Z as FeatureBandProps, _ as FilterDrawer, $ as FilterDrawerMode, a0 as FilterDrawerProps, a1 as FoodCardAvailabilityState, a2 as FoodCardMarker, a3 as FoodCardMediaRatio, a4 as FoodCardMetadata, a5 as FoodMenuCategory, a6 as FoodMenuItem, a7 as FoodMenuSection, a8 as FoodMenuSectionProps, a9 as FormField, aa as FormFieldProps, ab as GdsIcons, ac as GdsLocale, ad as GdsVocabulary, af as ListingCard, ag as ListingCardAffordance, ah as ListingCardMediaRatio, ai as ListingCardProps, aj as ListingMetadataRow, ak as MapPanel, al as MapPanelProps, am as MediaCard, an as MediaCardAction, ao as MediaCardProps, ap as MediaField, aq as MediaFieldProps, ar as MediaFieldState, as as MetricCard, at as MetricCardProps, au as PROVIDER_IDENTITY_REGISTRY, av as PageHeader, aw as PageHeaderEyebrowVariant, ax as PageHeaderProps, ay as PeriodSelector, az as PeriodSelectorOption, aA as PeriodSelectorProps, aB as PlaceholderPanel, aC as PlaceholderPanelProps, aD as PlaybackSurface, aE as PlaybackSurfaceProps, aF as PlaybackSurfaceState, aG as ProductCard, aH as ProductCardAction, aI as ProductCardMetaItem, aJ as ProductCardProps, aK as ProgressCard, aL as ProgressCardProps, aM as ProviderIdentity, aN as ProviderIdentityButton, aO as ProviderIdentityButtonGroup, aP as ProviderIdentityButtonGroupProps, aQ as ProviderIdentityButtonProps, aR as ProviderIdentityVariant, aS as PublicBrandFooter, aT as PublicBrandFooterClassNames, aU as PublicBrandFooterLayoutVariant, aV as PublicBrandFooterProps, aW as PublicFlowAction, aX as PublicFlowActionPriority, aY as PublicFlowShell, aZ as PublicFlowShellProps, a_ as PublicFlowStage, a$ as PublicFlowStageStatus, b0 as PublicFoodCard, b1 as PublicFoodCardProps, b2 as PublicNav, b3 as PublicNavItem, b4 as PublicNavProps, b5 as PublicProductCard, b6 as PublicProductCardHelperKind, b7 as PublicProductCardMetaItem, b8 as PublicProductCardProps, b9 as PublicProductCardState, ba as PublicShell, bb as PublicShellClassNames, bc as PublicShellHeaderVariant, bd as PublicShellMobileNavigationMode, be as PublicShellProps, bf as PublicSiteFooter, bg as PublicSiteFooterProps, bh as ReferenceLinkGrid, bi as ReferenceLinkGridItem, bj as ReferenceLinkGridProps, bk as ReferenceLocaleNotice, bl as ReferenceLocaleNoticeProps, bm as ReferenceSection, bn as ReferenceSectionProps, bo as ReportingSection, bp as ReportingSectionProps, bq as ReportingSectionState, br as SectionPanel, bs as SectionPanelProps, bt as SectionPanelTone, bv as SemanticActionDefinition, bx as SimpleDataTable, by as SimpleDataTableProps, bz as SimpleTableColumn, bA as SocialAuthButtons, bB as SocialAuthButtonsProps, bC as SocialAuthProviderId, bD as SocialAuthProviderOption, bE as StateBlock, bF as StateBlockProps, bG as StateBlockVariant, bH as StatsSection, bI as StatsSectionProps, bJ as StatusBadge, bK as StatusBadgeProps, bL as StatusVariant, bM as SurfaceContentAlign, bN as SurfaceContentJustify, bO as SurfacePresentation, bP as SurfacePresentationProps, bQ as VocabularyResolver, bR as ar, bS as createGdsVocabularyPack, bT as de, bU as en, bV as es, bW as fr, bX as gdsLocales, bY as getGdsMessages, bZ as getProviderIdentityLabel, b_ as getProviderIdentityPolicy, b$ as getSemanticActionConfig, c0 as getSemanticActionLabel, c1 as getSupportedProviderIdentityIds, c2 as he, c3 as hu, c4 as isPresentationMode, c5 as it, c6 as mergeGdsVocabularyPacks, c7 as resolveAccentPanelStyles, c8 as resolveSemanticActionConfig, c9 as resolveSurfacePresentationStyles, ca as ru } from './server-woziKWie.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import react__default, { ReactNode } from 'react';
@@ -146,18 +146,28 @@ interface ShareButtonGroupProps {
146
146
  }
147
147
  declare function ShareButtonGroup({ url, title, text, channels, compact, label, description, }: ShareButtonGroupProps): react_jsx_runtime.JSX.Element;
148
148
 
149
+ type UploadDropzoneState = 'idle' | 'drag-active' | 'selected' | 'upload-pending' | 'upload-failed' | 'unsupported-type' | 'too-large' | 'removed' | 'readonly';
149
150
  interface UploadDropzoneProps {
150
151
  title: string;
151
152
  description?: string;
152
153
  onFilesSelected?: (files: File[]) => void;
153
154
  accept?: string;
155
+ acceptedTypesLabel?: string;
156
+ maxSizeLabel?: string;
154
157
  multiple?: boolean;
155
158
  actionLabel?: string;
156
159
  mode?: 'panel' | 'inline';
160
+ state?: UploadDropzoneState;
161
+ selectedFiles?: string[];
162
+ error?: string;
163
+ policyText?: string;
164
+ retryAction?: ReactNode;
165
+ removeAction?: ReactNode;
166
+ readonly?: boolean;
157
167
  }
158
- declare function UploadDropzone({ title, description, onFilesSelected, accept, multiple, actionLabel, mode, }: UploadDropzoneProps): react_jsx_runtime.JSX.Element;
168
+ declare function UploadDropzone({ title, description, onFilesSelected, accept, acceptedTypesLabel, maxSizeLabel, multiple, actionLabel, mode, state, selectedFiles, error, policyText, retryAction, removeAction, readonly, }: UploadDropzoneProps): react_jsx_runtime.JSX.Element;
159
169
 
160
- type AccessRecoveryState = 'unauthenticated' | 'expired-session' | 'forbidden' | 'missing' | 'unavailable';
170
+ type AccessRecoveryState = 'unauthenticated' | 'expired-session' | 'timeout' | 'forbidden' | 'missing' | 'unavailable';
161
171
  interface AccessRecoveryAction {
162
172
  action: SemanticAction;
163
173
  onClick?: () => void;
@@ -181,4 +191,4 @@ interface AccessRecoveryPanelProps {
181
191
  }
182
192
  declare function AccessRecoveryPanel({ state, title, description, primaryAction, secondaryAction, tertiaryAction, onRetry, onSignIn, onBack, supportAction, compact, }: AccessRecoveryPanelProps): react_jsx_runtime.JSX.Element;
183
193
 
184
- export { type AccessRecoveryAction, AccessRecoveryPanel, type AccessRecoveryPanelProps, type AccessRecoveryState, ConfirmDialog, type ConfirmDialogProps, DiscoveryShell, type DiscoveryShellProps, DocsCodeBlock, type DocsCodeBlockProps, DocsShell, type DocsShellProps, 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 };
194
+ export { type AccessRecoveryAction, AccessRecoveryPanel, type AccessRecoveryPanelProps, type AccessRecoveryState, ConfirmDialog, type ConfirmDialogProps, DiscoveryShell, type DiscoveryShellProps, DocsCodeBlock, type DocsCodeBlockProps, DocsShell, type DocsShellProps, 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, type UploadDropzoneState };