@doneisbetter/gds-core 2.6.3 → 2.6.4
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-QEPN7PSA.mjs → chunk-BAS4ZGKL.mjs} +1124 -415
- package/dist/{chunk-E3QXLNZO.mjs → chunk-EN3TN22M.mjs} +246 -38
- package/dist/client.d.mts +72 -10
- package/dist/client.d.ts +72 -10
- package/dist/client.js +1402 -468
- package/dist/client.mjs +36 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1402 -468
- package/dist/index.mjs +36 -2
- package/dist/server-BqFksoV3.d.mts +5540 -0
- package/dist/server-BqFksoV3.d.ts +5540 -0
- package/dist/server.d.mts +5 -6074
- package/dist/server.d.ts +5 -6074
- package/dist/server.js +1031 -310
- package/dist/server.mjs +23 -1
- package/package.json +2 -2
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 { b2 as SemanticAction, b4 as SemanticActionId, a7 as GdsVocabularyPack } from './server-BqFksoV3.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 SectionPanel, b0 as SectionPanelProps, b1 as SectionPanelTone, b3 as SemanticActionDefinition, b5 as SimpleDataTable, b6 as SimpleDataTableProps, b7 as SimpleTableColumn, b8 as SocialAuthButtons, b9 as SocialAuthButtonsProps, ba as SocialAuthProviderId, bb as SocialAuthProviderOption, bc as StateBlock, bd as StateBlockProps, be as StateBlockVariant, bf as StatsSection, bg as StatsSectionProps, bh as StatusBadge, bi as StatusBadgeProps, bj as StatusVariant, bk as VocabularyResolver, bl as ar, bm as createGdsVocabularyPack, bn as de, bo as en, bp as es, bq as fr, br as gdsLocales, bs as getGdsMessages, bt as getSemanticActionConfig, bu as getSemanticActionLabel, bv as he, bw as hu, bx as it, by as mergeGdsVocabularyPacks, bz as resolveAccentPanelStyles, bA as resolveSemanticActionConfig, bB as ru } from './server-BqFksoV3.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
|
|
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 {
|
|
@@ -31,17 +33,14 @@ interface ThemeToggleProps {
|
|
|
31
33
|
declare function ThemeToggle({ size }: ThemeToggleProps): react_jsx_runtime.JSX.Element;
|
|
32
34
|
|
|
33
35
|
interface SemanticButtonProps extends ButtonProps, Omit<react__default.ComponentPropsWithoutRef<'button'>, keyof ButtonProps | 'leftSection' | 'children'> {
|
|
34
|
-
action:
|
|
36
|
+
action: SemanticActionId;
|
|
35
37
|
loading?: boolean;
|
|
36
38
|
feedbackState?: 'success' | 'error' | null;
|
|
37
39
|
feedbackText?: string;
|
|
38
40
|
prerenderLabelOnly?: boolean;
|
|
41
|
+
vocabularyPacks?: GdsVocabularyPack[];
|
|
39
42
|
}
|
|
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;
|
|
43
|
+
declare function SemanticButton({ action, loading, feedbackState, feedbackText, prerenderLabelOnly, vocabularyPacks, ...props }: SemanticButtonProps): react_jsx_runtime.JSX.Element;
|
|
45
44
|
|
|
46
45
|
interface GameBoardTileProps {
|
|
47
46
|
face: ReactNode;
|
|
@@ -58,6 +57,57 @@ interface GameBoardTileProps {
|
|
|
58
57
|
*/
|
|
59
58
|
declare function GameBoardTile({ face, revealed, matched, disabled, onPress, highlightColor, }: GameBoardTileProps): react_jsx_runtime.JSX.Element;
|
|
60
59
|
|
|
60
|
+
interface DiscoveryShellProps {
|
|
61
|
+
header?: ReactNode;
|
|
62
|
+
sidebar: ReactNode;
|
|
63
|
+
footer?: ReactNode;
|
|
64
|
+
children: ReactNode;
|
|
65
|
+
mobileNavigationLabel?: string;
|
|
66
|
+
defaultSidebarOpen?: boolean;
|
|
67
|
+
stickySidebar?: boolean;
|
|
68
|
+
sidebarWidth?: number | string;
|
|
69
|
+
headerHeight?: number | string;
|
|
70
|
+
shellPadding?: MantineSpacing | number;
|
|
71
|
+
collapseBreakpoint?: MantineBreakpoint;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* DiscoveryShell is the canonical sidebar-first application shell for GDS.
|
|
75
|
+
* It owns the responsive header, sidebar, and main-content layout contract.
|
|
76
|
+
*/
|
|
77
|
+
declare function DiscoveryShell({ header, sidebar, footer, children, mobileNavigationLabel, defaultSidebarOpen, stickySidebar, sidebarWidth, headerHeight, shellPadding, collapseBreakpoint, }: DiscoveryShellProps): react_jsx_runtime.JSX.Element;
|
|
78
|
+
|
|
79
|
+
interface SidebarNavProps {
|
|
80
|
+
children: ReactNode;
|
|
81
|
+
ariaLabel?: string;
|
|
82
|
+
gap?: string | number;
|
|
83
|
+
}
|
|
84
|
+
interface SidebarNavSectionProps {
|
|
85
|
+
label?: ReactNode;
|
|
86
|
+
children: ReactNode;
|
|
87
|
+
pushToBottom?: boolean;
|
|
88
|
+
}
|
|
89
|
+
interface SidebarNavItemProps extends Omit<NavLinkProps, 'label' | 'leftSection' | 'description'> {
|
|
90
|
+
action?: SemanticActionId;
|
|
91
|
+
label?: ReactNode;
|
|
92
|
+
description?: ReactNode;
|
|
93
|
+
badge?: ReactNode;
|
|
94
|
+
icon?: ReactNode;
|
|
95
|
+
'aria-label'?: string;
|
|
96
|
+
'aria-current'?: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false';
|
|
97
|
+
vocabularyPacks?: GdsVocabularyPack[];
|
|
98
|
+
}
|
|
99
|
+
declare function SidebarNav({ children, ariaLabel, gap }: SidebarNavProps): react_jsx_runtime.JSX.Element;
|
|
100
|
+
declare function SidebarNavSection({ label, children, pushToBottom }: SidebarNavSectionProps): react_jsx_runtime.JSX.Element;
|
|
101
|
+
declare const SidebarNavItem: (<C = "a">(props: _mantine_core.PolymorphicComponentProps<C, SidebarNavItemProps>) => React.ReactElement) & Omit<react.FunctionComponent<(SidebarNavItemProps & {
|
|
102
|
+
component?: any;
|
|
103
|
+
} & Omit<Omit<any, "ref">, "component" | keyof SidebarNavItemProps> & {
|
|
104
|
+
ref?: any;
|
|
105
|
+
renderRoot?: (props: any) => any;
|
|
106
|
+
}) | (SidebarNavItemProps & {
|
|
107
|
+
component: React.ElementType;
|
|
108
|
+
renderRoot?: (props: Record<string, any>) => any;
|
|
109
|
+
})>, never> & Record<string, never>;
|
|
110
|
+
|
|
61
111
|
interface DocsCodeBlockProps {
|
|
62
112
|
code: string;
|
|
63
113
|
language?: string;
|
|
@@ -66,6 +116,18 @@ interface DocsCodeBlockProps {
|
|
|
66
116
|
}
|
|
67
117
|
declare function DocsCodeBlock({ code, language, title, withCopy }: DocsCodeBlockProps): react_jsx_runtime.JSX.Element;
|
|
68
118
|
|
|
119
|
+
type ShareChannel = 'native' | 'copy' | 'mail' | 'message' | 'x' | 'facebook' | 'linkedin' | 'whatsapp' | 'telegram';
|
|
120
|
+
interface ShareButtonGroupProps {
|
|
121
|
+
url: string;
|
|
122
|
+
title?: string;
|
|
123
|
+
text?: string;
|
|
124
|
+
channels?: ShareChannel[];
|
|
125
|
+
compact?: boolean;
|
|
126
|
+
label?: ReactNode;
|
|
127
|
+
description?: ReactNode;
|
|
128
|
+
}
|
|
129
|
+
declare function ShareButtonGroup({ url, title, text, channels, compact, label, description, }: ShareButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
130
|
+
|
|
69
131
|
interface UploadDropzoneProps {
|
|
70
132
|
title: string;
|
|
71
133
|
description?: string;
|
|
@@ -101,4 +163,4 @@ interface AccessRecoveryPanelProps {
|
|
|
101
163
|
}
|
|
102
164
|
declare function AccessRecoveryPanel({ state, title, description, primaryAction, secondaryAction, tertiaryAction, onRetry, onSignIn, onBack, supportAction, compact, }: AccessRecoveryPanelProps): react_jsx_runtime.JSX.Element;
|
|
103
165
|
|
|
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 };
|
|
166
|
+
export { type AccessRecoveryAction, AccessRecoveryPanel, type AccessRecoveryPanelProps, type AccessRecoveryState, ConfirmDialog, type ConfirmDialogProps, DiscoveryShell, type DiscoveryShellProps, DocsCodeBlock, type DocsCodeBlockProps, GameBoardTile, type GameBoardTileProps, GdsVocabularyPack, SemanticAction, SemanticActionId, SemanticButton, type SemanticButtonProps, ShareButtonGroup, type ShareButtonGroupProps, type ShareChannel, SidebarNav, SidebarNavItem, type SidebarNavItemProps, type SidebarNavProps, SidebarNavSection, type SidebarNavSectionProps, ThemeToggle, type ThemeToggleProps, UploadDropzone, type UploadDropzoneProps };
|