@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/{chunk-IUYPELGQ.mjs → chunk-NBCULITN.mjs} +113 -20
- package/dist/{chunk-LH2KMMXT.mjs → chunk-P7ICTEEB.mjs} +299 -23
- package/dist/client.d.mts +15 -5
- package/dist/client.d.ts +15 -5
- package/dist/client.js +403 -28
- package/dist/client.mjs +14 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +403 -28
- package/dist/index.mjs +14 -2
- package/dist/{server-BSuY9Qx6.d.mts → server-woziKWie.d.mts} +105 -6
- package/dist/{server-BSuY9Qx6.d.ts → server-woziKWie.d.ts} +105 -6
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +292 -10
- package/dist/server.mjs +13 -1
- package/package.json +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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 };
|