@sovereignsquad/gds-core 3.9.0 → 6.8.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/GdsBadge-DqTdnomt.d.mts +417 -0
- package/dist/GdsBadge-DqTdnomt.d.ts +417 -0
- package/dist/PartnerDiscovery-As_-JKtb.d.ts +732 -0
- package/dist/PartnerDiscovery-Bwxixtka.d.mts +732 -0
- package/dist/QuickStartCard-CB7r-85z.d.ts +17500 -0
- package/dist/QuickStartCard-xIP1gbCL.d.mts +17500 -0
- package/dist/chunk-2AX4NCID.mjs +9 -0
- package/dist/chunk-2IUOZG4C.mjs +9 -0
- package/dist/chunk-2XZMNT7I.mjs +338 -0
- package/dist/chunk-3D7BVS7D.mjs +9 -0
- package/dist/chunk-4LG6EED4.mjs +338 -0
- package/dist/chunk-6LULEPIE.mjs +9 -0
- package/dist/chunk-6PBDLFSF.mjs +338 -0
- package/dist/{chunk-TQ7ZYMEA.mjs → chunk-BH2SMTND.mjs} +2258 -4014
- package/dist/chunk-BHR4A3C6.mjs +338 -0
- package/dist/chunk-CNTTKK3H.mjs +338 -0
- package/dist/chunk-GGDCO5HR.mjs +338 -0
- package/dist/chunk-GKNSUUUE.mjs +338 -0
- package/dist/chunk-GMK5GXWR.mjs +338 -0
- package/dist/chunk-H2QNW4D5.mjs +1768 -0
- package/dist/chunk-IHPZ7BNV.mjs +338 -0
- package/dist/chunk-J66ITCXC.mjs +473 -0
- package/dist/chunk-J6MXKFIM.mjs +9 -0
- package/dist/chunk-JTMPFTCK.mjs +338 -0
- package/dist/{chunk-BUC7QXRO.mjs → chunk-KFEPREUF.mjs} +13 -5
- package/dist/chunk-LNVLXOLI.mjs +9 -0
- package/dist/chunk-MAIU557K.mjs +9 -0
- package/dist/chunk-MPZFCWWS.mjs +210 -0
- package/dist/chunk-NWS7KJ2G.mjs +245 -0
- package/dist/chunk-OC3M4CZY.mjs +9 -0
- package/dist/chunk-QO653DAE.mjs +338 -0
- package/dist/chunk-RCLWUNMR.mjs +9 -0
- package/dist/chunk-SHQDVHGR.mjs +338 -0
- package/dist/{chunk-5AJJNRZF.mjs → chunk-TJ3WMH25.mjs} +1916 -2026
- package/dist/chunk-VU2JLVD3.mjs +89 -0
- package/dist/chunk-W5O2JSVK.mjs +20 -0
- package/dist/chunk-WNOWHB26.mjs +9 -0
- package/dist/chunk-XLPTCIXT.mjs +9 -0
- package/dist/chunk-ZCQXBKDM.mjs +24 -0
- package/dist/chunk-ZFGYQSNR.mjs +33 -0
- package/dist/client.d.mts +1296 -37
- package/dist/client.d.ts +1296 -37
- package/dist/client.js +11039 -6379
- package/dist/client.mjs +273 -58
- package/dist/en-Dd7uvXnv.d.mts +336 -0
- package/dist/en-Dd7uvXnv.d.ts +336 -0
- package/dist/index.d.mts +632 -5
- package/dist/index.d.ts +632 -5
- package/dist/index.js +21618 -14851
- package/dist/index.mjs +2138 -59
- package/dist/locales/lazy/all.d.mts +2 -0
- package/dist/locales/lazy/all.d.ts +2 -0
- package/dist/locales/lazy/all.js +1 -0
- package/dist/locales/lazy/all.mjs +24 -0
- package/dist/locales/lazy/ar.d.mts +2 -0
- package/dist/locales/lazy/ar.d.ts +2 -0
- package/dist/locales/lazy/ar.js +683 -0
- package/dist/locales/lazy/ar.mjs +4 -0
- package/dist/locales/lazy/de.d.mts +2 -0
- package/dist/locales/lazy/de.d.ts +2 -0
- package/dist/locales/lazy/de.js +683 -0
- package/dist/locales/lazy/de.mjs +4 -0
- package/dist/locales/lazy/es.d.mts +2 -0
- package/dist/locales/lazy/es.d.ts +2 -0
- package/dist/locales/lazy/es.js +683 -0
- package/dist/locales/lazy/es.mjs +4 -0
- package/dist/locales/lazy/fr.d.mts +2 -0
- package/dist/locales/lazy/fr.d.ts +2 -0
- package/dist/locales/lazy/fr.js +683 -0
- package/dist/locales/lazy/fr.mjs +4 -0
- package/dist/locales/lazy/he.d.mts +2 -0
- package/dist/locales/lazy/he.d.ts +2 -0
- package/dist/locales/lazy/he.js +683 -0
- package/dist/locales/lazy/he.mjs +4 -0
- package/dist/locales/lazy/hu.d.mts +2 -0
- package/dist/locales/lazy/hu.d.ts +2 -0
- package/dist/locales/lazy/hu.js +683 -0
- package/dist/locales/lazy/hu.mjs +4 -0
- package/dist/locales/lazy/index.d.mts +25 -0
- package/dist/locales/lazy/index.d.ts +25 -0
- package/dist/locales/lazy/index.js +384 -0
- package/dist/locales/lazy/index.mjs +9 -0
- package/dist/locales/lazy/it.d.mts +2 -0
- package/dist/locales/lazy/it.d.ts +2 -0
- package/dist/locales/lazy/it.js +683 -0
- package/dist/locales/lazy/it.mjs +4 -0
- package/dist/locales/lazy/ja.d.mts +2 -0
- package/dist/locales/lazy/ja.d.ts +2 -0
- package/dist/locales/lazy/ja.js +683 -0
- package/dist/locales/lazy/ja.mjs +4 -0
- package/dist/locales/lazy/ko.d.mts +2 -0
- package/dist/locales/lazy/ko.d.ts +2 -0
- package/dist/locales/lazy/ko.js +683 -0
- package/dist/locales/lazy/ko.mjs +4 -0
- package/dist/locales/lazy/ru.d.mts +2 -0
- package/dist/locales/lazy/ru.d.ts +2 -0
- package/dist/locales/lazy/ru.js +683 -0
- package/dist/locales/lazy/ru.mjs +4 -0
- package/dist/locales/lazy/zh.d.mts +2 -0
- package/dist/locales/lazy/zh.d.ts +2 -0
- package/dist/locales/lazy/zh.js +683 -0
- package/dist/locales/lazy/zh.mjs +4 -0
- package/dist/map.css +664 -0
- package/dist/map.d.mts +118 -0
- package/dist/map.d.ts +118 -0
- package/dist/map.js +777 -0
- package/dist/map.mjs +395 -0
- package/dist/reference-theme-explorer.d.mts +34 -0
- package/dist/reference-theme-explorer.d.ts +34 -0
- package/dist/reference-theme-explorer.js +8322 -0
- package/dist/reference-theme-explorer.mjs +1988 -0
- package/dist/rich-text-editor.d.mts +32 -0
- package/dist/rich-text-editor.d.ts +32 -0
- package/dist/rich-text-editor.js +469 -0
- package/dist/rich-text-editor.mjs +115 -0
- package/dist/server.d.mts +112 -248
- package/dist/server.d.ts +112 -248
- package/dist/server.js +6797 -1679
- package/dist/server.mjs +588 -55
- package/package.json +104 -9
- package/dist/AISearchCard-Bbnsd-yl.d.mts +0 -7786
- package/dist/AISearchCard-Bbnsd-yl.d.ts +0 -7786
package/dist/index.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
AdvancedDataTable,
|
|
4
4
|
CommandPalette,
|
|
5
5
|
CommandRegistryProvider,
|
|
6
|
+
ConfirmChecklist,
|
|
6
7
|
ConfirmDialog,
|
|
7
8
|
DiscoveryShell,
|
|
8
9
|
DocsCodeBlock,
|
|
@@ -10,15 +11,25 @@ import {
|
|
|
10
11
|
DocsShell,
|
|
11
12
|
FileUploadField,
|
|
12
13
|
FormErrorSummary,
|
|
14
|
+
GDS_BUTTON_FEEDBACK_DURATION_MS,
|
|
15
|
+
GDS_BUTTON_GRADIENT_TEXT_FLOOR,
|
|
16
|
+
GDS_BUTTON_OUTLINE_ACCENT_STROKE_PX,
|
|
17
|
+
GDS_HERO_SEARCH_FIELD_FLEX_BASIS_PX,
|
|
18
|
+
GDS_HERO_SEARCH_FIELD_MIN_WIDTH_PX,
|
|
13
19
|
GameBoardTile,
|
|
14
20
|
GdsAccessGate,
|
|
15
21
|
GdsAssetManager,
|
|
16
22
|
GdsAssetPreviewCard,
|
|
17
23
|
GdsConfirmProvider,
|
|
18
24
|
GdsDataTable,
|
|
25
|
+
GdsDateInput,
|
|
26
|
+
GdsDateRangeInput,
|
|
27
|
+
GdsDateTimeInput,
|
|
28
|
+
GdsDensityProvider,
|
|
19
29
|
GdsDialog,
|
|
20
30
|
GdsDrawer,
|
|
21
31
|
GdsFormProvider,
|
|
32
|
+
GdsGuidedTour,
|
|
22
33
|
GdsLayoutTemplatePreview,
|
|
23
34
|
GdsModal,
|
|
24
35
|
GdsNotificationCenter,
|
|
@@ -29,12 +40,19 @@ import {
|
|
|
29
40
|
GdsSidePanel,
|
|
30
41
|
GdsTelemetryProvider,
|
|
31
42
|
GdsToastProvider,
|
|
43
|
+
GdsTourButton,
|
|
44
|
+
GdsTourProvider,
|
|
32
45
|
GdsValidationSummary,
|
|
46
|
+
HeroSearchPanel,
|
|
47
|
+
KanbanBoard,
|
|
48
|
+
KanbanCard,
|
|
49
|
+
KanbanColumn,
|
|
33
50
|
ListingProvider,
|
|
34
51
|
NotificationCenter,
|
|
35
52
|
OverlayManagerProvider,
|
|
36
53
|
PlaybackControls,
|
|
37
54
|
PlaybackOverlayControls,
|
|
55
|
+
ProviderCTA,
|
|
38
56
|
PublicAcceptStep,
|
|
39
57
|
PublicCaptureFlow,
|
|
40
58
|
PublicConsentStep,
|
|
@@ -42,13 +60,13 @@ import {
|
|
|
42
60
|
PublicIdentityStep,
|
|
43
61
|
PublicRestartStep,
|
|
44
62
|
PublicShareOverlay,
|
|
45
|
-
|
|
63
|
+
ReportOutdatedLink,
|
|
46
64
|
SemanticButton,
|
|
47
65
|
ShareButtonGroup,
|
|
48
66
|
SidebarNav,
|
|
49
67
|
SidebarNavItem,
|
|
50
68
|
SidebarNavSection,
|
|
51
|
-
|
|
69
|
+
SourceBlock,
|
|
52
70
|
UploadDropzone,
|
|
53
71
|
ValidatedFieldMessage,
|
|
54
72
|
createGdsAssetAdapter,
|
|
@@ -58,6 +76,7 @@ import {
|
|
|
58
76
|
createGdsTableAdapter,
|
|
59
77
|
createGdsTelemetryAdapter,
|
|
60
78
|
emitGdsEvent,
|
|
79
|
+
gdsBreakpointByAlias,
|
|
61
80
|
gdsFormReducer,
|
|
62
81
|
gdsOperationalEventTypes,
|
|
63
82
|
gdsUxFailureReasons,
|
|
@@ -69,21 +88,38 @@ import {
|
|
|
69
88
|
useCommandLauncher,
|
|
70
89
|
useDiscoveryShellState,
|
|
71
90
|
useGdsAssetUploadQueue,
|
|
91
|
+
useGdsBrowseSelection,
|
|
92
|
+
useGdsCardContract,
|
|
72
93
|
useGdsConfirm,
|
|
73
94
|
useGdsDataTable,
|
|
95
|
+
useGdsDensity,
|
|
74
96
|
useGdsForm,
|
|
75
97
|
useGdsFormOrchestration,
|
|
76
98
|
useGdsFormSnapshot,
|
|
99
|
+
useGdsKanbanOrientation,
|
|
77
100
|
useGdsNotifications,
|
|
78
101
|
useGdsResourceManager,
|
|
79
102
|
useGdsTelemetry,
|
|
80
103
|
useGdsToasts,
|
|
104
|
+
useGdsTour,
|
|
105
|
+
useHasSeenTour,
|
|
81
106
|
useListingState,
|
|
82
107
|
useOverlayManager,
|
|
83
108
|
usePlaybackKeyboardControls,
|
|
84
109
|
validateGdsAsset,
|
|
85
110
|
zodToGdsFormSchema
|
|
86
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-TJ3WMH25.mjs";
|
|
112
|
+
import {
|
|
113
|
+
GdsInlineLink
|
|
114
|
+
} from "./chunk-W5O2JSVK.mjs";
|
|
115
|
+
import {
|
|
116
|
+
GdsAccentContrastMatrix,
|
|
117
|
+
GdsDesignRuleProfilePanel,
|
|
118
|
+
GdsGeneratedMark
|
|
119
|
+
} from "./chunk-NWS7KJ2G.mjs";
|
|
120
|
+
import {
|
|
121
|
+
ThemeToggle
|
|
122
|
+
} from "./chunk-ZFGYQSNR.mjs";
|
|
87
123
|
import {
|
|
88
124
|
AmenityChipGrid,
|
|
89
125
|
PartnerAboutPageSections,
|
|
@@ -112,13 +148,12 @@ import {
|
|
|
112
148
|
resetPartnerDiscoveryFilters,
|
|
113
149
|
togglePartnerAmenity,
|
|
114
150
|
togglePartnerPrice
|
|
115
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-KFEPREUF.mjs";
|
|
116
152
|
import {
|
|
117
153
|
AISearchCard,
|
|
118
154
|
AccentPanel,
|
|
119
155
|
AccessSummary,
|
|
120
156
|
Accordion,
|
|
121
|
-
ActionBar,
|
|
122
157
|
ActionIcon,
|
|
123
158
|
ActiveFilterChips,
|
|
124
159
|
Anchor,
|
|
@@ -138,7 +173,6 @@ import {
|
|
|
138
173
|
Button,
|
|
139
174
|
CardTitle,
|
|
140
175
|
Center,
|
|
141
|
-
ChartTokenPanel,
|
|
142
176
|
ChatInput,
|
|
143
177
|
ChatMessage,
|
|
144
178
|
ChatThread,
|
|
@@ -153,6 +187,7 @@ import {
|
|
|
153
187
|
CreatorThemeDiagnostics,
|
|
154
188
|
CtaButtonGroup,
|
|
155
189
|
DataToolbar,
|
|
190
|
+
DetailFactsTable,
|
|
156
191
|
DetailProfileShell,
|
|
157
192
|
DocsPageShell,
|
|
158
193
|
EditorialCard,
|
|
@@ -165,7 +200,16 @@ import {
|
|
|
165
200
|
FitScoreChip,
|
|
166
201
|
FloatingActionPlacement,
|
|
167
202
|
FoodMenuSection,
|
|
168
|
-
|
|
203
|
+
GDS_DETAIL_FACTS_LABEL_COLUMN_PX,
|
|
204
|
+
GDS_DETAIL_FACT_IDS,
|
|
205
|
+
GDS_PICTOGRAM_BASE_STROKE,
|
|
206
|
+
GDS_PICTOGRAM_DISABLED_OPACITY,
|
|
207
|
+
GDS_PICTOGRAM_GRID,
|
|
208
|
+
GDS_PICTOGRAM_HERO_LAYERS,
|
|
209
|
+
GDS_PICTOGRAM_SCALE_PX,
|
|
210
|
+
GDS_PICTOGRAM_STROKE_BY_SCALE,
|
|
211
|
+
GDS_PICTOGRAM_TREATMENT_SCALE,
|
|
212
|
+
GDS_QUICK_START_ICON_BOX_PX,
|
|
169
213
|
GdsAdminDashboardTemplate,
|
|
170
214
|
GdsAnalyticsTemplate,
|
|
171
215
|
GdsAreaChart,
|
|
@@ -173,14 +217,18 @@ import {
|
|
|
173
217
|
GdsBenchmarkBarChart,
|
|
174
218
|
GdsBleed,
|
|
175
219
|
GdsBox,
|
|
220
|
+
GdsBreadcrumbs,
|
|
176
221
|
GdsCalendarHeatmapChart,
|
|
177
|
-
GdsChart,
|
|
178
222
|
GdsChartAxis,
|
|
179
223
|
GdsChartLegend,
|
|
180
224
|
GdsChartTooltip,
|
|
181
225
|
GdsCluster,
|
|
226
|
+
GdsColumnGrid,
|
|
227
|
+
GdsColumnGridItem,
|
|
228
|
+
GdsCompareButton,
|
|
182
229
|
GdsContainer,
|
|
183
230
|
GdsContentPatternCatalog,
|
|
231
|
+
GdsCountBadge,
|
|
184
232
|
GdsCrudEditorTemplate,
|
|
185
233
|
GdsDesignHandoffCatalog,
|
|
186
234
|
GdsDirectionBoundary,
|
|
@@ -193,21 +241,25 @@ import {
|
|
|
193
241
|
GdsGaugeChart,
|
|
194
242
|
GdsGrid,
|
|
195
243
|
GdsHistogramChart,
|
|
196
|
-
GdsIcon,
|
|
197
|
-
GdsIcons,
|
|
198
244
|
GdsInline,
|
|
199
245
|
GdsLineChart,
|
|
200
246
|
GdsLocaleText,
|
|
247
|
+
GdsLogoLockup,
|
|
201
248
|
GdsLongitudinalChart,
|
|
202
249
|
GdsMaturityRadarChart,
|
|
203
250
|
GdsMediaFrame,
|
|
251
|
+
GdsMeter,
|
|
252
|
+
GdsNotificationBell,
|
|
204
253
|
GdsOverflowFrame,
|
|
205
254
|
GdsPageTemplateCatalog,
|
|
255
|
+
GdsPictogram,
|
|
206
256
|
GdsPlural,
|
|
207
257
|
GdsPublicEventTemplate,
|
|
208
258
|
GdsRadarChart,
|
|
259
|
+
GdsRatingDisplay,
|
|
209
260
|
GdsRatingScale,
|
|
210
261
|
GdsRelativeTime,
|
|
262
|
+
GdsRemovableTag,
|
|
211
263
|
GdsResourceManagerTemplate,
|
|
212
264
|
GdsResponsiveChartFrame,
|
|
213
265
|
GdsResponsiveVisibility,
|
|
@@ -222,7 +274,6 @@ import {
|
|
|
222
274
|
GdsStack,
|
|
223
275
|
GdsStackedBarChart,
|
|
224
276
|
GdsSymmetryChart,
|
|
225
|
-
GdsVocabulary,
|
|
226
277
|
GdsWizardStepper,
|
|
227
278
|
Group,
|
|
228
279
|
InlineAlert,
|
|
@@ -230,11 +281,10 @@ import {
|
|
|
230
281
|
InlineText,
|
|
231
282
|
LabelTag,
|
|
232
283
|
LabelText,
|
|
284
|
+
LastCheckedLabel,
|
|
233
285
|
LayeredSurfaceSlot,
|
|
234
286
|
ListItemSection,
|
|
235
|
-
ListingCard,
|
|
236
287
|
Loader,
|
|
237
|
-
MAX_LISTING_CARD_ACTIONS,
|
|
238
288
|
MapPanel,
|
|
239
289
|
MeaningBadge,
|
|
240
290
|
MediaCard,
|
|
@@ -243,7 +293,6 @@ import {
|
|
|
243
293
|
MediaWithFallback,
|
|
244
294
|
MetadataText,
|
|
245
295
|
MetricCard,
|
|
246
|
-
MissingDataPrompt,
|
|
247
296
|
Modal,
|
|
248
297
|
MonospaceInputFrame,
|
|
249
298
|
MultiSelect,
|
|
@@ -260,6 +309,7 @@ import {
|
|
|
260
309
|
PillBar,
|
|
261
310
|
PlaceholderPanel,
|
|
262
311
|
PlaybackSurface,
|
|
312
|
+
PriceEstimateLabel,
|
|
263
313
|
ProductCard,
|
|
264
314
|
Progress,
|
|
265
315
|
ProgressCard,
|
|
@@ -272,39 +322,37 @@ import {
|
|
|
272
322
|
PublicProductCard,
|
|
273
323
|
PublicShell,
|
|
274
324
|
PublicSiteFooter,
|
|
325
|
+
QuickStartCard,
|
|
275
326
|
Radio,
|
|
276
327
|
ReferenceLinkGrid,
|
|
277
328
|
ReferenceLocaleNotice,
|
|
278
|
-
ReferenceSection,
|
|
279
329
|
ReportingSection,
|
|
280
330
|
ResultSummary,
|
|
281
331
|
ScrollArea,
|
|
282
332
|
SearchableSelect,
|
|
283
|
-
SectionPanel,
|
|
284
333
|
SectionTitle,
|
|
285
334
|
Select,
|
|
286
335
|
SemanticChartFrame,
|
|
287
336
|
SemanticInset,
|
|
288
|
-
SimpleDataTable,
|
|
289
337
|
SimpleGrid,
|
|
290
338
|
Slider,
|
|
291
339
|
SocialAuthButtons,
|
|
292
340
|
SoftChipGroup,
|
|
293
341
|
SortMenu,
|
|
294
342
|
Stack,
|
|
295
|
-
StateBlock,
|
|
296
343
|
StatsSection,
|
|
297
344
|
StatusBadge,
|
|
298
345
|
StreamingIndicator,
|
|
299
346
|
Switch,
|
|
347
|
+
TRUST_BADGE_DEFINITIONS,
|
|
300
348
|
Table,
|
|
301
349
|
Tabs,
|
|
302
350
|
TextInput,
|
|
303
351
|
Textarea,
|
|
304
352
|
ThemeIcon,
|
|
305
353
|
Tooltip,
|
|
354
|
+
TrustBadge,
|
|
306
355
|
VisuallyHidden,
|
|
307
|
-
ar,
|
|
308
356
|
compareGdsLocaleString,
|
|
309
357
|
createGdsAccessAdapter,
|
|
310
358
|
createGdsAccessGateEvent,
|
|
@@ -313,32 +361,17 @@ import {
|
|
|
313
361
|
createGdsMissingKeyTracker,
|
|
314
362
|
createGdsNotificationAuditEvent,
|
|
315
363
|
createGdsNotificationId,
|
|
316
|
-
createGdsOwnedContrastTokens,
|
|
317
364
|
createGdsPageTemplateEvent,
|
|
365
|
+
createGdsPictogramFamily,
|
|
318
366
|
createGdsStyleContract,
|
|
319
367
|
createGdsTextExpansionFixture,
|
|
320
|
-
createGdsVocabularyPack,
|
|
321
|
-
de,
|
|
322
|
-
en,
|
|
323
|
-
es,
|
|
324
368
|
formatGdsCurrency,
|
|
325
369
|
formatGdsDate,
|
|
326
370
|
formatGdsNumber,
|
|
327
371
|
formatGdsPlural,
|
|
328
372
|
formatGdsRelativeTime,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
gdsCardGapMap,
|
|
332
|
-
gdsCardMediaRatioMap,
|
|
333
|
-
gdsCardSizePaddingMap,
|
|
334
|
-
gdsCardTitleOrderMap,
|
|
335
|
-
gdsChartSetATypeRegistry,
|
|
336
|
-
gdsChartSetBTypeRegistry,
|
|
337
|
-
gdsChartTypeRegistry,
|
|
338
|
-
gdsDefaultChartLegend,
|
|
339
|
-
gdsIconRegistry,
|
|
340
|
-
gdsIconToneColor,
|
|
341
|
-
gdsLocales,
|
|
373
|
+
gdsActivityPictograms,
|
|
374
|
+
gdsPictogramUsageRules,
|
|
342
375
|
gdsSeriesPalette,
|
|
343
376
|
gdsStyle,
|
|
344
377
|
generateGdsDesignHandoffReport,
|
|
@@ -347,6 +380,7 @@ import {
|
|
|
347
380
|
getGdsAccessGateStates,
|
|
348
381
|
getGdsAccessibilityEvidence,
|
|
349
382
|
getGdsAccessibilityEvidenceSummary,
|
|
383
|
+
getGdsActivityPictogramKeys,
|
|
350
384
|
getGdsBlockTypes,
|
|
351
385
|
getGdsContentPattern,
|
|
352
386
|
getGdsContentPatterns,
|
|
@@ -354,17 +388,12 @@ import {
|
|
|
354
388
|
getGdsCopyTemplates,
|
|
355
389
|
getGdsDesignComponentMappings,
|
|
356
390
|
getGdsDesignTokenMappings,
|
|
357
|
-
getGdsIconKeys,
|
|
358
|
-
getGdsIconMetadata,
|
|
359
|
-
getGdsIconToneColor,
|
|
360
391
|
getGdsLayoutTemplate,
|
|
361
392
|
getGdsLayoutTemplates,
|
|
362
393
|
getGdsMaturityCapabilities,
|
|
363
394
|
getGdsMaturityCapability,
|
|
364
395
|
getGdsMaturitySummary,
|
|
365
|
-
getGdsMessages,
|
|
366
396
|
getGdsNotificationLivePolicy,
|
|
367
|
-
getGdsOwnedContrastProps,
|
|
368
397
|
getGdsPageTemplate,
|
|
369
398
|
getGdsPageTemplates,
|
|
370
399
|
getGdsRecommendedMaturityCapabilities,
|
|
@@ -373,17 +402,8 @@ import {
|
|
|
373
402
|
getGdsTaskPatterns,
|
|
374
403
|
getProviderIdentityLabel,
|
|
375
404
|
getProviderIdentityPolicy,
|
|
376
|
-
getSemanticActionConfig,
|
|
377
|
-
getSemanticActionLabel,
|
|
378
405
|
getSupportedProviderIdentityIds,
|
|
379
|
-
|
|
380
|
-
hu,
|
|
381
|
-
isGdsChartSetAType,
|
|
382
|
-
isGdsChartSetBType,
|
|
383
|
-
isGdsIconKey,
|
|
384
|
-
isPresentationMode,
|
|
385
|
-
it,
|
|
386
|
-
mergeGdsVocabularyPacks,
|
|
406
|
+
isGdsActivityPictogramKey,
|
|
387
407
|
normalizeGdsResponsiveValue,
|
|
388
408
|
redactGdsAccessGateMetadata,
|
|
389
409
|
registerGdsBlock,
|
|
@@ -393,27 +413,1961 @@ import {
|
|
|
393
413
|
resolveAccentPanelStyles,
|
|
394
414
|
resolveGdsAccessAdapterState,
|
|
395
415
|
resolveGdsAccessState,
|
|
396
|
-
|
|
416
|
+
resolveGdsActivityPictogramLabel,
|
|
397
417
|
resolveGdsLayoutStyle,
|
|
398
418
|
resolveGdsLocale,
|
|
399
419
|
resolveGdsMessage,
|
|
400
|
-
resolveSemanticActionConfig,
|
|
401
|
-
resolveSurfacePresentationStyles,
|
|
402
|
-
ru,
|
|
403
420
|
sortGdsAccessGateActions,
|
|
404
421
|
sortGdsLocaleStrings,
|
|
405
422
|
useGdsDirection,
|
|
406
423
|
validateCreatorCss,
|
|
407
424
|
validateGdsAccessGateContract,
|
|
408
425
|
validateGdsAccessibilityEvidence,
|
|
409
|
-
validateGdsChartData,
|
|
410
426
|
validateGdsContentPatterns,
|
|
411
427
|
validateGdsCopyTemplate,
|
|
412
428
|
validateGdsDesignHandoffMappings,
|
|
413
429
|
validateGdsLayout,
|
|
414
430
|
validateGdsPageTemplates,
|
|
415
431
|
validateGdsTaskPatterns
|
|
416
|
-
} from "./chunk-
|
|
432
|
+
} from "./chunk-BH2SMTND.mjs";
|
|
433
|
+
import {
|
|
434
|
+
GDS_PIN_APPROXIMATE_DASH,
|
|
435
|
+
GDS_PIN_EMOJI_SCALE,
|
|
436
|
+
GDS_PIN_EMPHASIS_STROKE,
|
|
437
|
+
GDS_PIN_HEAD_CENTER_OFFSET,
|
|
438
|
+
GDS_PIN_ICON_SCALE,
|
|
439
|
+
GDS_PIN_SELECTED_SCALE,
|
|
440
|
+
GdsMapPinBadge
|
|
441
|
+
} from "./chunk-VU2JLVD3.mjs";
|
|
442
|
+
import {
|
|
443
|
+
ActionBar,
|
|
444
|
+
ChartTokenPanel,
|
|
445
|
+
FormField,
|
|
446
|
+
GDS_LISTING_PICK_BADGE_FONT_SIZE_PX,
|
|
447
|
+
GDS_LISTING_PICK_BADGE_ICON_PX,
|
|
448
|
+
GDS_LISTING_PICK_BADGE_INSET_PX,
|
|
449
|
+
GDS_LISTING_PICK_BADGE_LINE_HEIGHT_PX,
|
|
450
|
+
GDS_LISTING_PICK_BADGE_PADDING_BLOCK_PX,
|
|
451
|
+
GDS_LISTING_PICK_BADGE_PADDING_INLINE_PX,
|
|
452
|
+
GDS_LISTING_TILE_SIZE_PX,
|
|
453
|
+
GdsBadge,
|
|
454
|
+
GdsChart,
|
|
455
|
+
GdsGeneratedThumbnail,
|
|
456
|
+
GdsVocabulary,
|
|
457
|
+
ListingCard,
|
|
458
|
+
MAX_LISTING_CARD_ACTIONS,
|
|
459
|
+
ReferenceSection,
|
|
460
|
+
SectionPanel,
|
|
461
|
+
SimpleDataTable,
|
|
462
|
+
createGdsOwnedContrastTokens,
|
|
463
|
+
createGdsVocabularyPack,
|
|
464
|
+
gdsBadgeAccentColors,
|
|
465
|
+
gdsBadgeAccentShades,
|
|
466
|
+
gdsCardDensityPaddingMap,
|
|
467
|
+
gdsCardGapMap,
|
|
468
|
+
gdsCardMediaRatioMap,
|
|
469
|
+
gdsCardSizePaddingMap,
|
|
470
|
+
gdsCardTitleOrderMap,
|
|
471
|
+
gdsChartSetATypeRegistry,
|
|
472
|
+
gdsChartSetBTypeRegistry,
|
|
473
|
+
gdsChartSetCTypeRegistry,
|
|
474
|
+
gdsChartTypeRegistry,
|
|
475
|
+
gdsDefaultChartLegend,
|
|
476
|
+
gdsGeneratedPaletteCssRefs,
|
|
477
|
+
gdsLocales,
|
|
478
|
+
gdsSeededRandom,
|
|
479
|
+
getGdsMessages,
|
|
480
|
+
getGdsOwnedContrastProps,
|
|
481
|
+
getSemanticActionConfig,
|
|
482
|
+
getSemanticActionLabel,
|
|
483
|
+
isGdsChartSetAType,
|
|
484
|
+
isGdsChartSetBType,
|
|
485
|
+
isGdsChartSetCType,
|
|
486
|
+
mergeGdsVocabularyPacks,
|
|
487
|
+
resolveGdsCardContract,
|
|
488
|
+
resolveGdsGeneratedPaletteHex,
|
|
489
|
+
resolveSemanticActionConfig,
|
|
490
|
+
validateGdsChartData
|
|
491
|
+
} from "./chunk-H2QNW4D5.mjs";
|
|
492
|
+
import {
|
|
493
|
+
GDS_PIN_SILHOUETTE_PATH,
|
|
494
|
+
GdsBadgeShapeCircle,
|
|
495
|
+
GdsBadgeShapeHexagon,
|
|
496
|
+
GdsBadgeShapePin,
|
|
497
|
+
GdsBadgeShapeRosette,
|
|
498
|
+
GdsBadgeShapeShield,
|
|
499
|
+
GdsBadgeShapeSquircle,
|
|
500
|
+
GdsBadgeShapes,
|
|
501
|
+
GdsBadgeStack,
|
|
502
|
+
GdsBadgeStackLayer,
|
|
503
|
+
MissingDataPrompt,
|
|
504
|
+
StateBlock,
|
|
505
|
+
isPresentationMode,
|
|
506
|
+
resolveSurfacePresentationStyles
|
|
507
|
+
} from "./chunk-MPZFCWWS.mjs";
|
|
508
|
+
import {
|
|
509
|
+
GdsIcon,
|
|
510
|
+
GdsIcons,
|
|
511
|
+
gdsIconRegistry,
|
|
512
|
+
gdsIconToneColor,
|
|
513
|
+
getGdsIconKeys,
|
|
514
|
+
getGdsIconMetadata,
|
|
515
|
+
getGdsIconToneColor,
|
|
516
|
+
isGdsIconKey
|
|
517
|
+
} from "./chunk-J66ITCXC.mjs";
|
|
518
|
+
import {
|
|
519
|
+
ko
|
|
520
|
+
} from "./chunk-IHPZ7BNV.mjs";
|
|
521
|
+
import {
|
|
522
|
+
ru
|
|
523
|
+
} from "./chunk-BHR4A3C6.mjs";
|
|
524
|
+
import {
|
|
525
|
+
zh
|
|
526
|
+
} from "./chunk-4LG6EED4.mjs";
|
|
527
|
+
import {
|
|
528
|
+
de
|
|
529
|
+
} from "./chunk-GKNSUUUE.mjs";
|
|
530
|
+
import {
|
|
531
|
+
es
|
|
532
|
+
} from "./chunk-JTMPFTCK.mjs";
|
|
533
|
+
import {
|
|
534
|
+
fr
|
|
535
|
+
} from "./chunk-6PBDLFSF.mjs";
|
|
536
|
+
import {
|
|
537
|
+
he
|
|
538
|
+
} from "./chunk-CNTTKK3H.mjs";
|
|
539
|
+
import {
|
|
540
|
+
hu
|
|
541
|
+
} from "./chunk-GMK5GXWR.mjs";
|
|
542
|
+
import {
|
|
543
|
+
it
|
|
544
|
+
} from "./chunk-SHQDVHGR.mjs";
|
|
545
|
+
import {
|
|
546
|
+
ja
|
|
547
|
+
} from "./chunk-2XZMNT7I.mjs";
|
|
548
|
+
import {
|
|
549
|
+
ar
|
|
550
|
+
} from "./chunk-QO653DAE.mjs";
|
|
551
|
+
import {
|
|
552
|
+
en
|
|
553
|
+
} from "./chunk-GGDCO5HR.mjs";
|
|
554
|
+
|
|
555
|
+
// src/GdsPinSystemReference.tsx
|
|
556
|
+
import { useMemo } from "react";
|
|
557
|
+
import { Code, Group as Group2, Stack as Stack2, Table as Table2, Text } from "@mantine/core";
|
|
558
|
+
import {
|
|
559
|
+
GDS_ACCENT_SHADES,
|
|
560
|
+
getGdsContrastRatio,
|
|
561
|
+
getGdsVibeThemeCssVariables,
|
|
562
|
+
resolveGdsAccentTokens,
|
|
563
|
+
useGdsAmbientTheme
|
|
564
|
+
} from "@sovereignsquad/gds-theme";
|
|
565
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
566
|
+
var DEFAULT_ACCENTS = ["ocean", "teal", "grape", "forest"];
|
|
567
|
+
function GdsPinSystemReference({
|
|
568
|
+
preset,
|
|
569
|
+
colorScheme,
|
|
570
|
+
accents = DEFAULT_ACCENTS
|
|
571
|
+
}) {
|
|
572
|
+
const ambient = useGdsAmbientTheme();
|
|
573
|
+
const activePreset = preset ?? ambient.preset;
|
|
574
|
+
const activeScheme = colorScheme ?? ambient.colorScheme;
|
|
575
|
+
const rows = useMemo(() => {
|
|
576
|
+
const tokens = resolveGdsAccentTokens(void 0, activeScheme, activePreset);
|
|
577
|
+
const surface = getGdsVibeThemeCssVariables(activePreset, activeScheme)["--gds-bg-card"];
|
|
578
|
+
return accents.flatMap((accent) => GDS_ACCENT_SHADES.map((shade) => {
|
|
579
|
+
const value = tokens[`--gds-accent-${accent}-${shade}`];
|
|
580
|
+
const filled = getGdsContrastRatio("#ffffff", value);
|
|
581
|
+
const outline = getGdsContrastRatio(value, surface);
|
|
582
|
+
return { accent, shade, value, filled, outline };
|
|
583
|
+
}));
|
|
584
|
+
}, [accents, activeScheme, activePreset]);
|
|
585
|
+
return /* @__PURE__ */ jsxs(Stack2, { gap: "md", children: [
|
|
586
|
+
/* @__PURE__ */ jsxs(Stack2, { gap: "2xs", children: [
|
|
587
|
+
/* @__PURE__ */ jsx(Text, { fw: 700, children: "Anatomy \u2014 exactly two layers" }),
|
|
588
|
+
/* @__PURE__ */ jsx(Text, { size: "sm", children: "A pin is the shape and the icon. Nothing else. An earlier revision added a ring capsule and it was removed; the component keeps two layers so a consumer cannot end up compositing a third." }),
|
|
589
|
+
/* @__PURE__ */ jsxs(Group2, { gap: "lg", align: "center", children: [
|
|
590
|
+
/* @__PURE__ */ jsx(GdsMapPinBadge, { accent: "ocean", icon: "Location", label: "Outline mode", size: 56 }),
|
|
591
|
+
/* @__PURE__ */ jsx(GdsMapPinBadge, { accent: "ocean", icon: "Location", label: "Filled mode", size: 56, filled: true }),
|
|
592
|
+
/* @__PURE__ */ jsx(GdsMapPinBadge, { accent: "ocean", icon: "Location", label: "Emoji mode", size: 56, emoji: "\u{1F3CA}" })
|
|
593
|
+
] }),
|
|
594
|
+
/* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", children: "Outline: pin and icon share the accent. Filled: solid accent with an inverse icon that never reuses the accent. Emoji: a fixed dark-neutral disc with an accent ring \u2014 OS-rendered glyphs have colours GDS cannot control, so their legibility must not depend on the active accent." })
|
|
595
|
+
] }),
|
|
596
|
+
/* @__PURE__ */ jsxs(Stack2, { gap: "2xs", children: [
|
|
597
|
+
/* @__PURE__ */ jsx(Text, { fw: 700, children: "States \u2014 silhouette and scale, never the hue" }),
|
|
598
|
+
/* @__PURE__ */ jsxs(Text, { size: "sm", children: [
|
|
599
|
+
"The governing rule (issue 545): the fill belongs to the activity, so state is carried by silhouette and scale. Hover darkens the ",
|
|
600
|
+
/* @__PURE__ */ jsx("em", { children: "stroke" }),
|
|
601
|
+
" one step down the same accent\u2019s own ladder at weight 2.25; selection scales the whole marker by ",
|
|
602
|
+
GDS_PIN_SELECTED_SCALE,
|
|
603
|
+
" ",
|
|
604
|
+
"around the tail tip, so the anchored map point does not move; approximate location swaps the solid accent stroke for a dashed neutral one while the icon keeps the accent. No state ever repaints the category\u2019s own colour \u2014 a test enforces it."
|
|
605
|
+
] }),
|
|
606
|
+
/* @__PURE__ */ jsxs(Group2, { gap: "lg", align: "flex-end", children: [
|
|
607
|
+
/* @__PURE__ */ jsx(GdsMapPinBadge, { accent: "forest", icon: "Location", label: "Idle", size: 56, filled: true }),
|
|
608
|
+
/* @__PURE__ */ jsx(GdsMapPinBadge, { accent: "forest", icon: "Location", label: "Hovered", size: 56, filled: true, state: "hovered" }),
|
|
609
|
+
/* @__PURE__ */ jsx(GdsMapPinBadge, { accent: "forest", icon: "Location", label: "Selected", size: 56, filled: true, state: "selected" }),
|
|
610
|
+
/* @__PURE__ */ jsx(GdsMapPinBadge, { accent: "forest", icon: "Location", label: "Approximate location", size: 56, state: "approximate" })
|
|
611
|
+
] }),
|
|
612
|
+
/* @__PURE__ */ jsxs(Text, { size: "sm", c: "dimmed", children: [
|
|
613
|
+
"Saved is not a state: it is a user action with its own governed control, composed as",
|
|
614
|
+
" ",
|
|
615
|
+
/* @__PURE__ */ jsx(Code, { children: '<GdsSavedIndicator mode="corner" anchor={<GdsMapPinBadge \u2026/>} />' }),
|
|
616
|
+
" \u2014 a pin can be saved while hovered or selected."
|
|
617
|
+
] })
|
|
618
|
+
] }),
|
|
619
|
+
/* @__PURE__ */ jsxs(Stack2, { gap: "2xs", children: [
|
|
620
|
+
/* @__PURE__ */ jsx(Text, { fw: 700, children: "The centre is solved, not eyeballed" }),
|
|
621
|
+
/* @__PURE__ */ jsxs(Text, { size: "sm", children: [
|
|
622
|
+
"The icon is centred on the pin\u2019s own circle, whose centre sits one unit above the box centre in the 24-unit path space \u2014 so the offset is exactly ",
|
|
623
|
+
/* @__PURE__ */ jsx(Code, { children: "-1/24" }),
|
|
624
|
+
":"
|
|
625
|
+
] }),
|
|
626
|
+
/* @__PURE__ */ jsx(Code, { block: true, children: `transform: ${GDS_PIN_HEAD_CENTER_OFFSET} scale(${GDS_PIN_ICON_SCALE})` }),
|
|
627
|
+
/* @__PURE__ */ jsxs(Text, { size: "sm", c: "dimmed", children: [
|
|
628
|
+
"The rule is \u201Ccentre on the pin\u2019s circle\u201D, not a number tuned until it looked right. The visible dome\u2019s midpoint is a ",
|
|
629
|
+
/* @__PURE__ */ jsx("em", { children: "different" }),
|
|
630
|
+
" point \u2014 centring on the dome would be a distinct deliberate choice, not a correction to this one. The icon scale is bounded at ",
|
|
631
|
+
GDS_PIN_ICON_SCALE,
|
|
632
|
+
": the widest shipped glyphs render past the circle above roughly 0.48."
|
|
633
|
+
] })
|
|
634
|
+
] }),
|
|
635
|
+
/* @__PURE__ */ jsxs(Stack2, { gap: "2xs", children: [
|
|
636
|
+
/* @__PURE__ */ jsx(Text, { fw: 700, children: "Accent \xD7 shade, measured live" }),
|
|
637
|
+
/* @__PURE__ */ jsxs(Text, { size: "sm", children: [
|
|
638
|
+
"Shades darken only. Lightening breaks the filled-mode white-on-accent guarantee \u2014 ",
|
|
639
|
+
/* @__PURE__ */ jsx(Code, { children: "teal" }),
|
|
640
|
+
" ",
|
|
641
|
+
"fails at only +4 lightness \u2014 so a theme wanting lighter categories declares a lighter",
|
|
642
|
+
" ",
|
|
643
|
+
/* @__PURE__ */ jsx("em", { children: "base" }),
|
|
644
|
+
", which the contrast gate then verifies."
|
|
645
|
+
] }),
|
|
646
|
+
/* @__PURE__ */ jsx(Table2.ScrollContainer, { minWidth: 520, children: /* @__PURE__ */ jsxs(Table2, { striped: true, withTableBorder: true, children: [
|
|
647
|
+
/* @__PURE__ */ jsxs(Table2.Caption, { children: [
|
|
648
|
+
"Contrast for ",
|
|
649
|
+
activePreset,
|
|
650
|
+
" in ",
|
|
651
|
+
activeScheme,
|
|
652
|
+
" mode, computed from resolved tokens \u2014 not written down."
|
|
653
|
+
] }),
|
|
654
|
+
/* @__PURE__ */ jsx(Table2.Thead, { children: /* @__PURE__ */ jsxs(Table2.Tr, { children: [
|
|
655
|
+
/* @__PURE__ */ jsx(Table2.Th, { scope: "col", children: "Accent" }),
|
|
656
|
+
/* @__PURE__ */ jsx(Table2.Th, { scope: "col", children: "Shade" }),
|
|
657
|
+
/* @__PURE__ */ jsx(Table2.Th, { scope: "col", children: "Pin" }),
|
|
658
|
+
/* @__PURE__ */ jsx(Table2.Th, { scope: "col", children: "Filled (icon on accent)" }),
|
|
659
|
+
/* @__PURE__ */ jsx(Table2.Th, { scope: "col", children: "Outline (accent on card)" })
|
|
660
|
+
] }) }),
|
|
661
|
+
/* @__PURE__ */ jsx(Table2.Tbody, { children: rows.map((row) => /* @__PURE__ */ jsxs(Table2.Tr, { children: [
|
|
662
|
+
/* @__PURE__ */ jsx(Table2.Th, { scope: "row", children: row.accent }),
|
|
663
|
+
/* @__PURE__ */ jsx(Table2.Td, { children: row.shade }),
|
|
664
|
+
/* @__PURE__ */ jsx(Table2.Td, { children: /* @__PURE__ */ jsx(GdsMapPinBadge, { accent: row.accent, shade: row.shade, icon: "Location", label: `${row.accent} ${row.shade}`, filled: true }) }),
|
|
665
|
+
/* @__PURE__ */ jsx(Table2.Td, { children: /* @__PURE__ */ jsx(
|
|
666
|
+
GdsBadge,
|
|
667
|
+
{
|
|
668
|
+
tone: (row.filled ?? 0) >= 4.5 ? "success" : "danger",
|
|
669
|
+
icon: (row.filled ?? 0) >= 4.5 ? "Success" : "Danger",
|
|
670
|
+
label: `${row.filled?.toFixed(2) ?? "\u2014"}:1 / 4.5`
|
|
671
|
+
}
|
|
672
|
+
) }),
|
|
673
|
+
/* @__PURE__ */ jsx(Table2.Td, { children: /* @__PURE__ */ jsxs(Text, { size: "sm", children: [
|
|
674
|
+
row.outline?.toFixed(2) ?? "\u2014",
|
|
675
|
+
":1"
|
|
676
|
+
] }) })
|
|
677
|
+
] }, `${row.accent}-${row.shade}`)) })
|
|
678
|
+
] }) }),
|
|
679
|
+
/* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", children: "Outline figures are reported, not enforced: no component renders an accent as text on a page, so gating that mode would fail the build for a combination nothing draws." })
|
|
680
|
+
] }),
|
|
681
|
+
/* @__PURE__ */ jsxs(Stack2, { gap: "2xs", children: [
|
|
682
|
+
/* @__PURE__ */ jsx(Text, { fw: 700, children: "Do not hand-compose a pin" }),
|
|
683
|
+
/* @__PURE__ */ jsxs(Text, { size: "sm", children: [
|
|
684
|
+
"The centring offset, icon scale and contrast guarantee are all solved together. A hand-built pin gets one of them wrong silently \u2014 the icon drifts off the circle, or the glyph clips, or the accent stops carrying its white icon. ",
|
|
685
|
+
/* @__PURE__ */ jsx(Code, { children: "label" }),
|
|
686
|
+
" is always consumer-supplied and never derived from an icon library\u2019s display name: Tabler\u2019s",
|
|
687
|
+
" ",
|
|
688
|
+
/* @__PURE__ */ jsx(Code, { children: "IconBallFootball" }),
|
|
689
|
+
" reads as \u201CBallFootball\u201D, which is not a category."
|
|
690
|
+
] })
|
|
691
|
+
] })
|
|
692
|
+
] });
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
// src/category-registry.ts
|
|
696
|
+
function resolveGdsCategoryBadgeIcon(category, iconStyle) {
|
|
697
|
+
if (iconStyle === "emoji" && category.emoji) {
|
|
698
|
+
return { mode: "emoji", emoji: category.emoji };
|
|
699
|
+
}
|
|
700
|
+
return { mode: "tabler", icon: category.icon };
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
// src/GdsGeneratedHero.tsx
|
|
704
|
+
import { cloneElement, isValidElement, useId, useMemo as useMemo2 } from "react";
|
|
705
|
+
import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
706
|
+
var ASPECT_RATIO_VIEWBOX = {
|
|
707
|
+
"21:9": { width: 630, height: 270 },
|
|
708
|
+
"16:9": { width: 640, height: 360 },
|
|
709
|
+
"3:1": { width: 600, height: 200 }
|
|
710
|
+
};
|
|
711
|
+
var isIconKey = (icon) => typeof icon === "string";
|
|
712
|
+
function renderIcon(icon) {
|
|
713
|
+
if (isIconKey(icon)) {
|
|
714
|
+
return /* @__PURE__ */ jsx2(GdsIcon, { icon, size: "100%", tone: "default" });
|
|
715
|
+
}
|
|
716
|
+
if (isValidElement(icon)) {
|
|
717
|
+
return cloneElement(icon, { stroke: 1.75 });
|
|
718
|
+
}
|
|
719
|
+
return icon;
|
|
720
|
+
}
|
|
721
|
+
function darkSurface(colorRef) {
|
|
722
|
+
return `color-mix(in srgb, ${colorRef} 30%, black)`;
|
|
723
|
+
}
|
|
724
|
+
var BADGE_SLOTS = {
|
|
725
|
+
large: [{ x: 0.85, y: 0.32 }],
|
|
726
|
+
medium: [
|
|
727
|
+
{ x: 0.14, y: 0.72 },
|
|
728
|
+
{ x: 0.52, y: 0.82 }
|
|
729
|
+
],
|
|
730
|
+
small: [
|
|
731
|
+
{ x: 0.34, y: 0.18 },
|
|
732
|
+
{ x: 0.7, y: 0.6 },
|
|
733
|
+
{ x: 0.94, y: 0.84 }
|
|
734
|
+
]
|
|
735
|
+
};
|
|
736
|
+
var SLOT_SIZE_FACTOR = { large: 0.32, medium: 0.2, small: 0.13 };
|
|
737
|
+
var SLOT_OPACITY = { large: 1, medium: 0.85, small: 0.6 };
|
|
738
|
+
function seededShuffle(items, next) {
|
|
739
|
+
const result = [...items];
|
|
740
|
+
for (let i = result.length - 1; i > 0; i -= 1) {
|
|
741
|
+
const j = Math.floor(next() * (i + 1));
|
|
742
|
+
[result[i], result[j]] = [result[j], result[i]];
|
|
743
|
+
}
|
|
744
|
+
return result;
|
|
745
|
+
}
|
|
746
|
+
function placeBadges(badges, seed) {
|
|
747
|
+
const next = gdsSeededRandom(`${seed}:badges`);
|
|
748
|
+
const capped = badges.slice(0, 6);
|
|
749
|
+
const bySize = {
|
|
750
|
+
large: capped.slice(0, 1),
|
|
751
|
+
medium: capped.slice(1, 3),
|
|
752
|
+
small: capped.slice(3, 6)
|
|
753
|
+
};
|
|
754
|
+
const placed = [];
|
|
755
|
+
Object.keys(BADGE_SLOTS).forEach((size) => {
|
|
756
|
+
const slots = seededShuffle(BADGE_SLOTS[size], next);
|
|
757
|
+
bySize[size].forEach((badge, index) => {
|
|
758
|
+
const slot = slots[index];
|
|
759
|
+
placed.push({ badge, size, x: slot.x, y: slot.y, jitterDeg: (next() - 0.5) * 10 });
|
|
760
|
+
});
|
|
761
|
+
});
|
|
762
|
+
return placed;
|
|
763
|
+
}
|
|
764
|
+
function computeMosaicTiles(seed, viewBoxWidth, viewBoxHeight) {
|
|
765
|
+
const next = gdsSeededRandom(`${seed}:mosaic`);
|
|
766
|
+
const columns = 9;
|
|
767
|
+
const rows = 4;
|
|
768
|
+
const cellWidth = viewBoxWidth / columns;
|
|
769
|
+
const cellHeight = viewBoxHeight / rows;
|
|
770
|
+
const tiles = [];
|
|
771
|
+
for (let row = 0; row < rows; row += 1) {
|
|
772
|
+
for (let col = 0; col < columns; col += 1) {
|
|
773
|
+
if (next() < 0.32) {
|
|
774
|
+
continue;
|
|
775
|
+
}
|
|
776
|
+
const inset = 0.08 + next() * 0.1;
|
|
777
|
+
tiles.push({
|
|
778
|
+
x: col * cellWidth + cellWidth * inset,
|
|
779
|
+
y: row * cellHeight + cellHeight * inset,
|
|
780
|
+
width: cellWidth * (1 - inset * 2),
|
|
781
|
+
height: cellHeight * (1 - inset * 2),
|
|
782
|
+
opacity: 0.05 + next() * 0.11,
|
|
783
|
+
usePrimary: next() < 0.5
|
|
784
|
+
});
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
return tiles;
|
|
788
|
+
}
|
|
789
|
+
function computeIconFieldPlacements(seed, count, viewBoxWidth, viewBoxHeight) {
|
|
790
|
+
const next = gdsSeededRandom(`${seed}:icon-field`);
|
|
791
|
+
return Array.from({ length: count }, () => ({
|
|
792
|
+
x: viewBoxWidth * (0.08 + next() * 0.84),
|
|
793
|
+
y: viewBoxHeight * (0.1 + next() * 0.8),
|
|
794
|
+
size: viewBoxHeight * (0.22 + next() * 0.16),
|
|
795
|
+
rotationDeg: (next() - 0.5) * 40
|
|
796
|
+
}));
|
|
797
|
+
}
|
|
798
|
+
function renderBackground(background, badges, seed, palette, viewBoxWidth, viewBoxHeight) {
|
|
799
|
+
if (background === "mosaic-abstract") {
|
|
800
|
+
const tiles = computeMosaicTiles(seed, viewBoxWidth, viewBoxHeight);
|
|
801
|
+
return /* @__PURE__ */ jsx2(Fragment, { children: tiles.map((tile, index) => /* @__PURE__ */ jsx2(
|
|
802
|
+
"rect",
|
|
803
|
+
{
|
|
804
|
+
x: tile.x,
|
|
805
|
+
y: tile.y,
|
|
806
|
+
width: tile.width,
|
|
807
|
+
height: tile.height,
|
|
808
|
+
rx: Math.min(tile.width, tile.height) * 0.12,
|
|
809
|
+
fill: tile.usePrimary ? palette.primary : palette.accent,
|
|
810
|
+
opacity: tile.opacity
|
|
811
|
+
},
|
|
812
|
+
index
|
|
813
|
+
)) });
|
|
814
|
+
}
|
|
815
|
+
if (background === "icon-field") {
|
|
816
|
+
const icons = badges.length > 0 ? badges : null;
|
|
817
|
+
if (!icons) {
|
|
818
|
+
return null;
|
|
819
|
+
}
|
|
820
|
+
const next = gdsSeededRandom(`${seed}:icon-field-pick`);
|
|
821
|
+
const placements = computeIconFieldPlacements(seed, Math.min(icons.length, 8), viewBoxWidth, viewBoxHeight);
|
|
822
|
+
return /* @__PURE__ */ jsx2(Fragment, { children: placements.map((placement, index) => {
|
|
823
|
+
const icon = icons[Math.floor(next() * icons.length)];
|
|
824
|
+
return /* @__PURE__ */ jsx2(
|
|
825
|
+
"g",
|
|
826
|
+
{
|
|
827
|
+
transform: `translate(${placement.x} ${placement.y}) rotate(${placement.rotationDeg}) scale(${placement.size / 24})`,
|
|
828
|
+
opacity: 0.1,
|
|
829
|
+
style: { color: "var(--gds-text-on-inverse, var(--mantine-color-white))" },
|
|
830
|
+
children: /* @__PURE__ */ jsx2("svg", { x: -12, y: -12, width: 24, height: 24, viewBox: "0 0 24 24", children: renderIcon(icon.icon) })
|
|
831
|
+
},
|
|
832
|
+
index
|
|
833
|
+
);
|
|
834
|
+
}) });
|
|
835
|
+
}
|
|
836
|
+
if (typeof background === "object" && background.type === "region-mosaic") {
|
|
837
|
+
return /* @__PURE__ */ jsx2(Fragment, { children: background.regions.map((region, index) => {
|
|
838
|
+
const weight = region.weight ?? 1;
|
|
839
|
+
return /* @__PURE__ */ jsx2(
|
|
840
|
+
"rect",
|
|
841
|
+
{
|
|
842
|
+
x: region.x0 * viewBoxWidth,
|
|
843
|
+
y: region.y0 * viewBoxHeight,
|
|
844
|
+
width: (region.x1 - region.x0) * viewBoxWidth,
|
|
845
|
+
height: (region.y1 - region.y0) * viewBoxHeight,
|
|
846
|
+
fill: palette.accent,
|
|
847
|
+
opacity: Math.min(0.85, 0.06 + weight * 0.05)
|
|
848
|
+
},
|
|
849
|
+
index
|
|
850
|
+
);
|
|
851
|
+
}) });
|
|
852
|
+
}
|
|
853
|
+
return null;
|
|
854
|
+
}
|
|
855
|
+
function GdsGeneratedHero({
|
|
856
|
+
seed,
|
|
857
|
+
paletteSource,
|
|
858
|
+
category,
|
|
859
|
+
shade,
|
|
860
|
+
colors,
|
|
861
|
+
tintWithBackground,
|
|
862
|
+
mixRatio,
|
|
863
|
+
background = "wash",
|
|
864
|
+
badges = [],
|
|
865
|
+
aspectRatio = "21:9",
|
|
866
|
+
label,
|
|
867
|
+
className,
|
|
868
|
+
style
|
|
869
|
+
}) {
|
|
870
|
+
const gradientId = useId();
|
|
871
|
+
const palette = useMemo2(
|
|
872
|
+
() => gdsGeneratedPaletteCssRefs({ paletteSource, category, shade, colors, tintWithBackground, mixRatio }),
|
|
873
|
+
[paletteSource, category, shade, colors, tintWithBackground, mixRatio]
|
|
874
|
+
);
|
|
875
|
+
const { width: viewBoxWidth, height: viewBoxHeight } = ASPECT_RATIO_VIEWBOX[aspectRatio];
|
|
876
|
+
const placedBadges = useMemo2(() => placeBadges(badges, seed), [badges, seed]);
|
|
877
|
+
const inverseColor = "var(--gds-text-on-inverse, var(--mantine-color-white))";
|
|
878
|
+
return /* @__PURE__ */ jsxs2(
|
|
879
|
+
"div",
|
|
880
|
+
{
|
|
881
|
+
"data-gds-generated-hero": "",
|
|
882
|
+
role: "group",
|
|
883
|
+
"aria-label": label,
|
|
884
|
+
className,
|
|
885
|
+
style: {
|
|
886
|
+
position: "relative",
|
|
887
|
+
aspectRatio: aspectRatio.replace(":", " / "),
|
|
888
|
+
overflow: "hidden",
|
|
889
|
+
borderRadius: "var(--mantine-radius-md, 12px)",
|
|
890
|
+
...style
|
|
891
|
+
},
|
|
892
|
+
children: [
|
|
893
|
+
/* @__PURE__ */ jsxs2(
|
|
894
|
+
"svg",
|
|
895
|
+
{
|
|
896
|
+
viewBox: `0 0 ${viewBoxWidth} ${viewBoxHeight}`,
|
|
897
|
+
preserveAspectRatio: "xMidYMid slice",
|
|
898
|
+
"aria-hidden": "true",
|
|
899
|
+
style: { position: "absolute", inset: 0, width: "100%", height: "100%", display: "block" },
|
|
900
|
+
children: [
|
|
901
|
+
/* @__PURE__ */ jsx2("defs", { children: /* @__PURE__ */ jsxs2("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "1", y2: "1", children: [
|
|
902
|
+
/* @__PURE__ */ jsx2("stop", { offset: "0%", stopColor: palette.primary }),
|
|
903
|
+
/* @__PURE__ */ jsx2("stop", { offset: "100%", stopColor: darkSurface(palette.primary) })
|
|
904
|
+
] }) }),
|
|
905
|
+
/* @__PURE__ */ jsx2("rect", { width: viewBoxWidth, height: viewBoxHeight, fill: `url(#${gradientId})` }),
|
|
906
|
+
renderBackground(background, badges, seed, palette, viewBoxWidth, viewBoxHeight)
|
|
907
|
+
]
|
|
908
|
+
}
|
|
909
|
+
),
|
|
910
|
+
placedBadges.map(({ badge, size, x, y, jitterDeg }) => {
|
|
911
|
+
const boxSize = viewBoxHeight * SLOT_SIZE_FACTOR[size];
|
|
912
|
+
const BadgeTag = badge.onSelect ? "button" : "span";
|
|
913
|
+
return /* @__PURE__ */ jsx2(
|
|
914
|
+
BadgeTag,
|
|
915
|
+
{
|
|
916
|
+
"data-gds-generated-hero-badge": size,
|
|
917
|
+
type: badge.onSelect ? "button" : void 0,
|
|
918
|
+
onClick: badge.onSelect ? () => badge.onSelect?.(badge.key) : void 0,
|
|
919
|
+
role: badge.onSelect ? void 0 : "img",
|
|
920
|
+
"aria-label": badge.label,
|
|
921
|
+
title: badge.onSelect ? void 0 : badge.label,
|
|
922
|
+
style: {
|
|
923
|
+
position: "absolute",
|
|
924
|
+
insetInlineStart: `${x * 100}%`,
|
|
925
|
+
insetBlockStart: `${y * 100}%`,
|
|
926
|
+
transform: `translate(-50%, -50%) rotate(${jitterDeg}deg)`,
|
|
927
|
+
width: boxSize,
|
|
928
|
+
height: boxSize,
|
|
929
|
+
display: "inline-flex",
|
|
930
|
+
alignItems: "center",
|
|
931
|
+
justifyContent: "center",
|
|
932
|
+
borderRadius: "50%",
|
|
933
|
+
background: darkSurface(palette.accent),
|
|
934
|
+
color: inverseColor,
|
|
935
|
+
opacity: SLOT_OPACITY[size],
|
|
936
|
+
boxShadow: `0 2px 10px ${darkSurface(palette.primary)}`,
|
|
937
|
+
border: "none",
|
|
938
|
+
padding: 0,
|
|
939
|
+
font: badge.onSelect ? "inherit" : void 0,
|
|
940
|
+
cursor: badge.onSelect ? "pointer" : void 0
|
|
941
|
+
},
|
|
942
|
+
children: /* @__PURE__ */ jsx2("span", { "aria-hidden": "true", style: { width: "55%", height: "55%", display: "inline-flex" }, children: renderIcon(badge.icon) })
|
|
943
|
+
},
|
|
944
|
+
badge.key
|
|
945
|
+
);
|
|
946
|
+
})
|
|
947
|
+
]
|
|
948
|
+
}
|
|
949
|
+
);
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
// src/GdsSavedIndicator.tsx
|
|
953
|
+
import { ActionIcon as ActionIcon2 } from "@mantine/core";
|
|
954
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
955
|
+
function GdsSavedIndicator({
|
|
956
|
+
saved,
|
|
957
|
+
saveLabel,
|
|
958
|
+
unsaveLabel,
|
|
959
|
+
onSaveChange,
|
|
960
|
+
mode = "button",
|
|
961
|
+
disabled,
|
|
962
|
+
anchor,
|
|
963
|
+
anchorSize = "2.5em"
|
|
964
|
+
}) {
|
|
965
|
+
const size = `var(--gds-control-height-${mode === "corner" ? "sm" : "md"})`;
|
|
966
|
+
const control = /* @__PURE__ */ jsx3(
|
|
967
|
+
ActionIcon2,
|
|
968
|
+
{
|
|
969
|
+
variant: saved ? "filled" : "default",
|
|
970
|
+
"aria-pressed": saved,
|
|
971
|
+
"aria-label": saved ? unsaveLabel : saveLabel,
|
|
972
|
+
disabled,
|
|
973
|
+
onClick: () => onSaveChange?.(!saved),
|
|
974
|
+
radius: "xl",
|
|
975
|
+
"data-gds-saved-indicator": mode,
|
|
976
|
+
style: { width: size, height: size, minWidth: size },
|
|
977
|
+
children: /* @__PURE__ */ jsx3(GdsIcon, { icon: "Favorite", size: mode === "corner" ? "xs" : "sm" })
|
|
978
|
+
}
|
|
979
|
+
);
|
|
980
|
+
if (mode !== "corner" || !anchor) return control;
|
|
981
|
+
return /* @__PURE__ */ jsxs3(GdsBadgeStack, { size: anchorSize, label: saved ? unsaveLabel : saveLabel, children: [
|
|
982
|
+
/* @__PURE__ */ jsx3(GdsBadgeStackLayer, { cutout: "top-end", children: anchor }),
|
|
983
|
+
/* @__PURE__ */ jsx3(GdsBadgeStackLayer, { corner: "top-end", scale: 0.45, children: control })
|
|
984
|
+
] });
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
// src/GdsViewportFrame.tsx
|
|
988
|
+
import { Paper, Stack as Stack3, Text as Text2 } from "@mantine/core";
|
|
989
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
990
|
+
var FRAME_WIDTHS = {
|
|
991
|
+
compact: "22.5rem",
|
|
992
|
+
medium: "48rem",
|
|
993
|
+
expanded: "64rem"
|
|
994
|
+
};
|
|
995
|
+
function GdsViewportFrame({
|
|
996
|
+
width = "compact",
|
|
997
|
+
height = "26rem",
|
|
998
|
+
label,
|
|
999
|
+
children
|
|
1000
|
+
}) {
|
|
1001
|
+
return /* @__PURE__ */ jsxs4(Stack3, { gap: "xs", align: "flex-start", children: [
|
|
1002
|
+
/* @__PURE__ */ jsx4(
|
|
1003
|
+
Paper,
|
|
1004
|
+
{
|
|
1005
|
+
withBorder: true,
|
|
1006
|
+
radius: "md",
|
|
1007
|
+
"data-gds-viewport-frame": width,
|
|
1008
|
+
style: {
|
|
1009
|
+
contain: "layout paint",
|
|
1010
|
+
position: "relative",
|
|
1011
|
+
overflow: "hidden",
|
|
1012
|
+
width: FRAME_WIDTHS[width],
|
|
1013
|
+
maxWidth: "100%",
|
|
1014
|
+
height
|
|
1015
|
+
},
|
|
1016
|
+
children: /* @__PURE__ */ jsx4("div", { style: { position: "absolute", inset: 0, overflowY: "auto" }, children })
|
|
1017
|
+
}
|
|
1018
|
+
),
|
|
1019
|
+
label ? /* @__PURE__ */ jsx4(Text2, { size: "xs", c: "dimmed", children: label }) : null
|
|
1020
|
+
] });
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
// src/GdsMapBasemapWash.tsx
|
|
1024
|
+
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1025
|
+
var GDS_MAP_WASH_TINT = 0.28;
|
|
1026
|
+
var GDS_MAP_WASH_SATURATION = 0.35;
|
|
1027
|
+
var washStyle = (tint) => ({
|
|
1028
|
+
position: "absolute",
|
|
1029
|
+
inset: 0,
|
|
1030
|
+
pointerEvents: "none",
|
|
1031
|
+
// Uses the live var(), not a pre-resolved colour, so a theme switch re-resolves it.
|
|
1032
|
+
background: `color-mix(in srgb, var(--gds-vibe-canvas, var(--gds-bg-canvas)) ${Math.round(tint * 100)}%, transparent)`,
|
|
1033
|
+
backdropFilter: `saturate(${GDS_MAP_WASH_SATURATION})`,
|
|
1034
|
+
// Below Leaflet's overlay panes (zIndex 700) so popups/markers stay un-washed.
|
|
1035
|
+
zIndex: 450
|
|
1036
|
+
});
|
|
1037
|
+
function GdsMapBasemapWash({ children, tint = GDS_MAP_WASH_TINT }) {
|
|
1038
|
+
if (children === void 0 || children === null || children === false) return null;
|
|
1039
|
+
return /* @__PURE__ */ jsxs5("div", { "data-gds-map-basemap-wash-host": true, style: { position: "relative" }, children: [
|
|
1040
|
+
children,
|
|
1041
|
+
/* @__PURE__ */ jsx5("div", { "data-gds-map-basemap-wash": true, "aria-hidden": true, style: washStyle(tint) })
|
|
1042
|
+
] });
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
// src/GdsMapFilterRail.tsx
|
|
1046
|
+
import { useEffect, useRef } from "react";
|
|
1047
|
+
import { Box as Box2, Group as Group3 } from "@mantine/core";
|
|
1048
|
+
import { useGdsTranslation } from "@sovereignsquad/gds-theme";
|
|
1049
|
+
import { Fragment as Fragment2, jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1050
|
+
var ALL_VALUE = "__gds-map-filter-all__";
|
|
1051
|
+
var withCount = (label, count) => count === void 0 ? label : /* @__PURE__ */ jsxs6(Fragment2, { children: [
|
|
1052
|
+
label,
|
|
1053
|
+
" \xB7 ",
|
|
1054
|
+
count
|
|
1055
|
+
] });
|
|
1056
|
+
function GdsMapFilterRail({
|
|
1057
|
+
options,
|
|
1058
|
+
value,
|
|
1059
|
+
onChange,
|
|
1060
|
+
ariaLabel,
|
|
1061
|
+
allLabel: allLabelProp,
|
|
1062
|
+
onHeightChange
|
|
1063
|
+
}) {
|
|
1064
|
+
const { t } = useGdsTranslation();
|
|
1065
|
+
const allLabel = allLabelProp ?? t("gds.gdsMapFilterRail.allLabel", "All");
|
|
1066
|
+
const hostRef = useRef(null);
|
|
1067
|
+
useEffect(() => {
|
|
1068
|
+
if (!onHeightChange || !hostRef.current) return void 0;
|
|
1069
|
+
const host = hostRef.current;
|
|
1070
|
+
onHeightChange(host.getBoundingClientRect().height);
|
|
1071
|
+
const observer = new ResizeObserver(() => onHeightChange(host.getBoundingClientRect().height));
|
|
1072
|
+
observer.observe(host);
|
|
1073
|
+
return () => observer.disconnect();
|
|
1074
|
+
}, [onHeightChange]);
|
|
1075
|
+
const selectedValue = value ?? ALL_VALUE;
|
|
1076
|
+
const total = options.length > 0 && options.every((o) => o.count !== void 0) ? options.reduce((sum, o) => sum + (o.count ?? 0), 0) : void 0;
|
|
1077
|
+
const check = /* @__PURE__ */ jsx6(GdsIcon, { icon: "Success", size: "xs", tone: "default" });
|
|
1078
|
+
const decorated = (id, label) => selectedValue === id ? /* @__PURE__ */ jsxs6(Group3, { gap: 4, wrap: "nowrap", component: "span", children: [
|
|
1079
|
+
check,
|
|
1080
|
+
label
|
|
1081
|
+
] }) : label;
|
|
1082
|
+
const railOptions = [
|
|
1083
|
+
// "All" always renders first, even with zero options.
|
|
1084
|
+
{ value: ALL_VALUE, label: decorated(ALL_VALUE, withCount(allLabel, total)) },
|
|
1085
|
+
...options.map((option) => ({
|
|
1086
|
+
value: option.id,
|
|
1087
|
+
label: decorated(option.id, withCount(option.label, option.count))
|
|
1088
|
+
}))
|
|
1089
|
+
];
|
|
1090
|
+
return /* @__PURE__ */ jsx6(Box2, { ref: hostRef, "data-gds-map-filter-rail": true, children: /* @__PURE__ */ jsx6(
|
|
1091
|
+
PillBar,
|
|
1092
|
+
{
|
|
1093
|
+
ariaLabel,
|
|
1094
|
+
options: railOptions,
|
|
1095
|
+
value: selectedValue,
|
|
1096
|
+
onChange: (next) => onChange(next === ALL_VALUE ? null : next)
|
|
1097
|
+
}
|
|
1098
|
+
) });
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
// src/GdsMapPinPreviewCard.tsx
|
|
1102
|
+
import { Box as Box3, CloseButton, Group as Group4, Paper as Paper2, Skeleton, Stack as Stack4, Text as Text3, Title } from "@mantine/core";
|
|
1103
|
+
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1104
|
+
var SURFACE_SHADOW = "var(--gds-elevation-sheet, var(--mantine-shadow-lg))";
|
|
1105
|
+
function PreviewSkeleton() {
|
|
1106
|
+
return /* @__PURE__ */ jsxs7(Stack4, { gap: "sm", children: [
|
|
1107
|
+
/* @__PURE__ */ jsx7(Skeleton, { height: 140, radius: "md" }),
|
|
1108
|
+
/* @__PURE__ */ jsx7(Skeleton, { height: 24, width: "70%", radius: "md" }),
|
|
1109
|
+
/* @__PURE__ */ jsx7(Skeleton, { height: 14, width: "45%", radius: "md" }),
|
|
1110
|
+
/* @__PURE__ */ jsx7(Skeleton, { height: 14, width: "100%", radius: "md" }),
|
|
1111
|
+
/* @__PURE__ */ jsx7(Skeleton, { height: 44, radius: "md" })
|
|
1112
|
+
] });
|
|
1113
|
+
}
|
|
1114
|
+
function GdsMapPinPreviewCard({
|
|
1115
|
+
title,
|
|
1116
|
+
activity,
|
|
1117
|
+
neighbourhood,
|
|
1118
|
+
summary,
|
|
1119
|
+
ageRange,
|
|
1120
|
+
trust,
|
|
1121
|
+
priceEstimate,
|
|
1122
|
+
lastChecked,
|
|
1123
|
+
thumbnailSeed,
|
|
1124
|
+
categories,
|
|
1125
|
+
primaryAction,
|
|
1126
|
+
saved,
|
|
1127
|
+
saveLabel,
|
|
1128
|
+
unsaveLabel,
|
|
1129
|
+
onSaveChange,
|
|
1130
|
+
onClose,
|
|
1131
|
+
closeLabel,
|
|
1132
|
+
loading = false
|
|
1133
|
+
}) {
|
|
1134
|
+
const hasMedia = Boolean(thumbnailSeed && categories && categories.length > 0);
|
|
1135
|
+
const hasEstimate = Boolean(priceEstimate || lastChecked);
|
|
1136
|
+
const hasSave = Boolean(saveLabel && unsaveLabel);
|
|
1137
|
+
const meta = [activity, neighbourhood].filter((part) => part !== void 0 && part !== null);
|
|
1138
|
+
return /* @__PURE__ */ jsx7(
|
|
1139
|
+
Paper2,
|
|
1140
|
+
{
|
|
1141
|
+
withBorder: true,
|
|
1142
|
+
radius: "lg",
|
|
1143
|
+
p: "md",
|
|
1144
|
+
"data-gds-map-pin-preview-card": true,
|
|
1145
|
+
style: { boxShadow: SURFACE_SHADOW, maxWidth: 360 },
|
|
1146
|
+
children: loading ? /* @__PURE__ */ jsx7(PreviewSkeleton, {}) : /* @__PURE__ */ jsxs7(Stack4, { gap: "sm", children: [
|
|
1147
|
+
hasMedia ? /* @__PURE__ */ jsxs7(Box3, { style: { position: "relative" }, children: [
|
|
1148
|
+
/* @__PURE__ */ jsx7(
|
|
1149
|
+
GdsGeneratedThumbnail,
|
|
1150
|
+
{
|
|
1151
|
+
seed: thumbnailSeed,
|
|
1152
|
+
categories,
|
|
1153
|
+
aspectRatio: "16:9",
|
|
1154
|
+
badges: "none"
|
|
1155
|
+
}
|
|
1156
|
+
),
|
|
1157
|
+
onClose && closeLabel ? /* @__PURE__ */ jsx7(
|
|
1158
|
+
CloseButton,
|
|
1159
|
+
{
|
|
1160
|
+
"aria-label": closeLabel,
|
|
1161
|
+
onClick: onClose,
|
|
1162
|
+
radius: "xl",
|
|
1163
|
+
size: "lg",
|
|
1164
|
+
variant: "filled",
|
|
1165
|
+
style: { position: "absolute", top: "var(--mantine-spacing-xs)", right: "var(--mantine-spacing-xs)" }
|
|
1166
|
+
}
|
|
1167
|
+
) : null
|
|
1168
|
+
] }) : onClose && closeLabel ? /* @__PURE__ */ jsx7(Group4, { justify: "flex-end", children: /* @__PURE__ */ jsx7(CloseButton, { "aria-label": closeLabel, onClick: onClose, radius: "xl", size: "lg" }) }) : null,
|
|
1169
|
+
/* @__PURE__ */ jsxs7(Stack4, { gap: 4, children: [
|
|
1170
|
+
/* @__PURE__ */ jsx7(Title, { order: 3, size: "h4", children: title }),
|
|
1171
|
+
meta.length > 0 ? /* @__PURE__ */ jsx7(Text3, { size: "sm", c: "dimmed", "data-gds-map-pin-preview-meta": true, children: meta.map((part, index) => /* @__PURE__ */ jsxs7("span", { children: [
|
|
1172
|
+
index > 0 ? " \xB7 " : "",
|
|
1173
|
+
part
|
|
1174
|
+
] }, index)) }) : null
|
|
1175
|
+
] }),
|
|
1176
|
+
summary ? /* @__PURE__ */ jsx7(Text3, { size: "sm", children: summary }) : null,
|
|
1177
|
+
ageRange || trust ? /* @__PURE__ */ jsxs7(Group4, { gap: "xs", children: [
|
|
1178
|
+
ageRange ? /* @__PURE__ */ jsx7(GdsBadge, { tone: "neutral", label: ageRange }) : null,
|
|
1179
|
+
trust ? /* @__PURE__ */ jsx7(MeaningBadge, { variant: trust.variant, label: trust.label }) : null
|
|
1180
|
+
] }) : null,
|
|
1181
|
+
hasEstimate ? /* @__PURE__ */ jsx7(Paper2, { withBorder: true, radius: "md", p: "sm", "data-gds-map-pin-preview-estimate": true, children: /* @__PURE__ */ jsxs7(Stack4, { gap: 2, children: [
|
|
1182
|
+
priceEstimate ? /* @__PURE__ */ jsx7(Text3, { size: "sm", fw: 600, children: priceEstimate }) : null,
|
|
1183
|
+
lastChecked ? /* @__PURE__ */ jsx7(Text3, { size: "xs", c: "dimmed", children: lastChecked }) : null
|
|
1184
|
+
] }) }) : null,
|
|
1185
|
+
primaryAction || hasSave ? /* @__PURE__ */ jsxs7(Group4, { gap: "xs", wrap: "nowrap", align: "stretch", children: [
|
|
1186
|
+
primaryAction ? /* @__PURE__ */ jsx7(Box3, { style: { flex: 1 }, children: primaryAction }) : null,
|
|
1187
|
+
hasSave ? /* @__PURE__ */ jsx7(
|
|
1188
|
+
GdsSavedIndicator,
|
|
1189
|
+
{
|
|
1190
|
+
saved: Boolean(saved),
|
|
1191
|
+
saveLabel,
|
|
1192
|
+
unsaveLabel,
|
|
1193
|
+
onSaveChange
|
|
1194
|
+
}
|
|
1195
|
+
) : null
|
|
1196
|
+
] }) : null
|
|
1197
|
+
] })
|
|
1198
|
+
}
|
|
1199
|
+
);
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
// src/GdsGeneratedAvatar.tsx
|
|
1203
|
+
import { useId as useId2, useMemo as useMemo3 } from "react";
|
|
1204
|
+
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1205
|
+
function gdsAvatarInitials(name) {
|
|
1206
|
+
const words = name.trim().split(/\s+/).filter(Boolean);
|
|
1207
|
+
if (words.length === 0) return "";
|
|
1208
|
+
const first = [...words[0]][0] ?? "";
|
|
1209
|
+
const last = words.length > 1 ? [...words[words.length - 1]][0] ?? "" : "";
|
|
1210
|
+
return (first + last).toLocaleUpperCase();
|
|
1211
|
+
}
|
|
1212
|
+
function GdsGeneratedAvatar({
|
|
1213
|
+
name,
|
|
1214
|
+
seed,
|
|
1215
|
+
size = "2.5em",
|
|
1216
|
+
paletteSource,
|
|
1217
|
+
category,
|
|
1218
|
+
shade,
|
|
1219
|
+
colors,
|
|
1220
|
+
className,
|
|
1221
|
+
style
|
|
1222
|
+
}) {
|
|
1223
|
+
const gradientId = useId2();
|
|
1224
|
+
const palette = useMemo3(
|
|
1225
|
+
() => gdsGeneratedPaletteCssRefs({ paletteSource, category, shade, colors }),
|
|
1226
|
+
[paletteSource, category, shade, colors]
|
|
1227
|
+
);
|
|
1228
|
+
const identity = seed ?? name;
|
|
1229
|
+
const angle = useMemo3(() => Math.round(gdsSeededRandom(identity)() * 360), [identity]);
|
|
1230
|
+
const initials = gdsAvatarInitials(name);
|
|
1231
|
+
const rad = angle * Math.PI / 180;
|
|
1232
|
+
const [x2, y2] = [Math.round(50 + Math.cos(rad) * 50), Math.round(50 + Math.sin(rad) * 50)];
|
|
1233
|
+
const [x1, y1] = [100 - x2, 100 - y2];
|
|
1234
|
+
return /* @__PURE__ */ jsx8(
|
|
1235
|
+
"span",
|
|
1236
|
+
{
|
|
1237
|
+
"data-gds-generated-avatar": "",
|
|
1238
|
+
role: "img",
|
|
1239
|
+
"aria-label": name,
|
|
1240
|
+
className,
|
|
1241
|
+
style: { display: "inline-block", width: size, height: size, borderRadius: "50%", overflow: "hidden", ...style },
|
|
1242
|
+
children: /* @__PURE__ */ jsxs8("svg", { viewBox: "0 0 48 48", "aria-hidden": "true", style: { display: "block", width: "100%", height: "100%" }, children: [
|
|
1243
|
+
/* @__PURE__ */ jsx8("defs", { children: /* @__PURE__ */ jsxs8("linearGradient", { id: gradientId, x1: `${x1}%`, y1: `${y1}%`, x2: `${x2}%`, y2: `${y2}%`, children: [
|
|
1244
|
+
/* @__PURE__ */ jsx8("stop", { offset: "0%", stopColor: palette.primary }),
|
|
1245
|
+
/* @__PURE__ */ jsx8("stop", { offset: "100%", stopColor: palette.accent })
|
|
1246
|
+
] }) }),
|
|
1247
|
+
/* @__PURE__ */ jsx8("rect", { width: "48", height: "48", fill: `url(#${gradientId})` }),
|
|
1248
|
+
initials ? /* @__PURE__ */ jsx8(
|
|
1249
|
+
"text",
|
|
1250
|
+
{
|
|
1251
|
+
x: "24",
|
|
1252
|
+
y: "25",
|
|
1253
|
+
textAnchor: "middle",
|
|
1254
|
+
dominantBaseline: "central",
|
|
1255
|
+
fontFamily: "var(--mantine-font-family, sans-serif)",
|
|
1256
|
+
fontWeight: 600,
|
|
1257
|
+
fontSize: initials.length > 1 ? 17 : 20,
|
|
1258
|
+
fill: "var(--gds-text-on-inverse, var(--mantine-color-white, #ffffff))",
|
|
1259
|
+
children: initials
|
|
1260
|
+
}
|
|
1261
|
+
) : null
|
|
1262
|
+
] })
|
|
1263
|
+
}
|
|
1264
|
+
);
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
// src/GdsIconBadge.tsx
|
|
1268
|
+
import { resolveGdsAccentTokens as resolveGdsAccentTokens2 } from "@sovereignsquad/gds-theme";
|
|
1269
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
1270
|
+
var resolvedAccentTokens = resolveGdsAccentTokens2(void 0, "light");
|
|
1271
|
+
var accentBackground = (accent, shade) => `var(--gds-accent-${accent}-${shade}, ${resolvedAccentTokens[`--gds-accent-${accent}-${shade}`]})`;
|
|
1272
|
+
var accentForeground = (accent) => `var(--gds-accent-${accent}-on, #ffffff)`;
|
|
1273
|
+
var isIconKey2 = (icon) => typeof icon === "string";
|
|
1274
|
+
function GdsIconBadge({ accent, shade = "base", icon, label, size = "1.5em", className, style }) {
|
|
1275
|
+
const fg = accentForeground(accent);
|
|
1276
|
+
return /* @__PURE__ */ jsx9(
|
|
1277
|
+
"span",
|
|
1278
|
+
{
|
|
1279
|
+
"data-gds-icon-badge": "",
|
|
1280
|
+
role: label ? "img" : void 0,
|
|
1281
|
+
"aria-label": label || void 0,
|
|
1282
|
+
"aria-hidden": label ? void 0 : true,
|
|
1283
|
+
className,
|
|
1284
|
+
style: {
|
|
1285
|
+
display: "inline-flex",
|
|
1286
|
+
alignItems: "center",
|
|
1287
|
+
justifyContent: "center",
|
|
1288
|
+
width: size,
|
|
1289
|
+
height: size,
|
|
1290
|
+
flexShrink: 0,
|
|
1291
|
+
borderRadius: "50%",
|
|
1292
|
+
background: accentBackground(accent, shade),
|
|
1293
|
+
color: fg,
|
|
1294
|
+
...style
|
|
1295
|
+
},
|
|
1296
|
+
children: isIconKey2(icon) ? /* @__PURE__ */ jsx9(GdsIcon, { icon, size: "65%", tone: "default", decorative: true }) : icon
|
|
1297
|
+
}
|
|
1298
|
+
);
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
// src/dom-phrase-translation.ts
|
|
1302
|
+
var translatableAttributes = [
|
|
1303
|
+
"aria-label",
|
|
1304
|
+
"alt",
|
|
1305
|
+
"placeholder",
|
|
1306
|
+
"title"
|
|
1307
|
+
];
|
|
1308
|
+
function normalizeGdsPhrase(value) {
|
|
1309
|
+
return value.replace(/\s+/g, " ").trim();
|
|
1310
|
+
}
|
|
1311
|
+
function translateWithIndex(value, index) {
|
|
1312
|
+
if (!value) {
|
|
1313
|
+
return value;
|
|
1314
|
+
}
|
|
1315
|
+
return index.get(normalizeGdsPhrase(value)) ?? value;
|
|
1316
|
+
}
|
|
1317
|
+
async function translateGdsPhrase(value, locale, loadIndex) {
|
|
1318
|
+
if (!value || locale === "en") {
|
|
1319
|
+
return value;
|
|
1320
|
+
}
|
|
1321
|
+
const index = await loadIndex(locale);
|
|
1322
|
+
return translateWithIndex(value, index);
|
|
1323
|
+
}
|
|
1324
|
+
var VERBATIM_ELEMENTS = "code, pre, kbd, samp, script, style, input, textarea, select, option";
|
|
1325
|
+
function shouldSkipNode(node) {
|
|
1326
|
+
const parent = node.parentElement;
|
|
1327
|
+
return Boolean(parent?.closest(VERBATIM_ELEMENTS));
|
|
1328
|
+
}
|
|
1329
|
+
var originalText = /* @__PURE__ */ new WeakMap();
|
|
1330
|
+
var originalAttributes = /* @__PURE__ */ new WeakMap();
|
|
1331
|
+
var lastWrittenText = /* @__PURE__ */ new WeakMap();
|
|
1332
|
+
var lastWrittenAttributes = /* @__PURE__ */ new WeakMap();
|
|
1333
|
+
function translateTextNode(node, index, restore) {
|
|
1334
|
+
if (shouldSkipNode(node)) {
|
|
1335
|
+
return;
|
|
1336
|
+
}
|
|
1337
|
+
const current = node.nodeValue ?? "";
|
|
1338
|
+
let original = originalText.get(node);
|
|
1339
|
+
if (original === void 0) {
|
|
1340
|
+
original = current;
|
|
1341
|
+
originalText.set(node, original);
|
|
1342
|
+
} else if (current !== (lastWrittenText.get(node) ?? original)) {
|
|
1343
|
+
original = current;
|
|
1344
|
+
originalText.set(node, original);
|
|
1345
|
+
}
|
|
1346
|
+
const normalized = normalizeGdsPhrase(original);
|
|
1347
|
+
if (!normalized) {
|
|
1348
|
+
return;
|
|
1349
|
+
}
|
|
1350
|
+
const translated = restore ? normalized : translateWithIndex(normalized, index);
|
|
1351
|
+
const next = translated === normalized ? original : original.replace(normalized, translated);
|
|
1352
|
+
if (node.nodeValue !== next) {
|
|
1353
|
+
node.nodeValue = next;
|
|
1354
|
+
}
|
|
1355
|
+
lastWrittenText.set(node, next);
|
|
1356
|
+
}
|
|
1357
|
+
function translateElementAttributes(element, index, restore) {
|
|
1358
|
+
if (element.closest(VERBATIM_ELEMENTS)) {
|
|
1359
|
+
return;
|
|
1360
|
+
}
|
|
1361
|
+
let originals = originalAttributes.get(element);
|
|
1362
|
+
if (!originals) {
|
|
1363
|
+
originals = /* @__PURE__ */ new Map();
|
|
1364
|
+
originalAttributes.set(element, originals);
|
|
1365
|
+
}
|
|
1366
|
+
let written = lastWrittenAttributes.get(element);
|
|
1367
|
+
if (!written) {
|
|
1368
|
+
written = /* @__PURE__ */ new Map();
|
|
1369
|
+
lastWrittenAttributes.set(element, written);
|
|
1370
|
+
}
|
|
1371
|
+
for (const attribute of translatableAttributes) {
|
|
1372
|
+
const current = element.getAttribute(attribute);
|
|
1373
|
+
if (current === null) continue;
|
|
1374
|
+
if (!originals.has(attribute)) {
|
|
1375
|
+
originals.set(attribute, current);
|
|
1376
|
+
} else if (current !== (written.get(attribute) ?? originals.get(attribute))) {
|
|
1377
|
+
originals.set(attribute, current);
|
|
1378
|
+
}
|
|
1379
|
+
const original = originals.get(attribute);
|
|
1380
|
+
const next = restore ? original : translateWithIndex(original, index);
|
|
1381
|
+
if (element.getAttribute(attribute) !== next) {
|
|
1382
|
+
element.setAttribute(attribute, next);
|
|
1383
|
+
}
|
|
1384
|
+
written.set(attribute, next);
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
async function translateGdsDom(root, locale, loadIndex) {
|
|
1388
|
+
const restore = locale === "en";
|
|
1389
|
+
const index = restore ? /* @__PURE__ */ new Map() : await loadIndex(locale);
|
|
1390
|
+
const walker = document.createTreeWalker(root, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_ELEMENT);
|
|
1391
|
+
let current = walker.currentNode;
|
|
1392
|
+
while (current) {
|
|
1393
|
+
if (current.nodeType === Node.TEXT_NODE) {
|
|
1394
|
+
translateTextNode(current, index, restore);
|
|
1395
|
+
} else if (current.nodeType === Node.ELEMENT_NODE) {
|
|
1396
|
+
translateElementAttributes(current, index, restore);
|
|
1397
|
+
}
|
|
1398
|
+
current = walker.nextNode();
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
// src/useGdsDomPhraseTranslation.client.ts
|
|
1403
|
+
import { useEffect as useEffect2 } from "react";
|
|
1404
|
+
function useGdsDomPhraseTranslation({ root, locale, loadIndex, routeKey }) {
|
|
1405
|
+
useEffect2(() => {
|
|
1406
|
+
if (!root) return void 0;
|
|
1407
|
+
let cancelled = false;
|
|
1408
|
+
const run = () => {
|
|
1409
|
+
translateGdsDom(root, locale, loadIndex).catch(() => {
|
|
1410
|
+
});
|
|
1411
|
+
};
|
|
1412
|
+
run();
|
|
1413
|
+
const observer = new MutationObserver(() => {
|
|
1414
|
+
if (!cancelled) run();
|
|
1415
|
+
});
|
|
1416
|
+
observer.observe(root, { childList: true, subtree: true, characterData: true });
|
|
1417
|
+
return () => {
|
|
1418
|
+
cancelled = true;
|
|
1419
|
+
observer.disconnect();
|
|
1420
|
+
};
|
|
1421
|
+
}, [root, locale, loadIndex, routeKey]);
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
// src/GdsMotionSystemReference.tsx
|
|
1425
|
+
import { Badge as Badge2, Code as Code2, Group as Group5, Stack as Stack5, Table as Table3, Text as Text4, UnstyledButton } from "@mantine/core";
|
|
1426
|
+
import {
|
|
1427
|
+
gdsMotionDurations,
|
|
1428
|
+
gdsMotionEasings,
|
|
1429
|
+
gdsMotionPresets,
|
|
1430
|
+
GDS_DEFAULT_REACTION_AXIS,
|
|
1431
|
+
useGdsReducedMotion
|
|
1432
|
+
} from "@sovereignsquad/gds-theme";
|
|
1433
|
+
import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1434
|
+
function GdsMotionSystemReference() {
|
|
1435
|
+
const reducedMotion = useGdsReducedMotion();
|
|
1436
|
+
const axis = GDS_DEFAULT_REACTION_AXIS;
|
|
1437
|
+
return /* @__PURE__ */ jsxs9(Stack5, { gap: "md", "data-gds-motion-system-reference": "", children: [
|
|
1438
|
+
/* @__PURE__ */ jsxs9(Stack5, { gap: "2xs", children: [
|
|
1439
|
+
/* @__PURE__ */ jsx10(Text4, { fw: 700, children: "Durations and easings \u2014 the whole vocabulary" }),
|
|
1440
|
+
/* @__PURE__ */ jsx10(Text4, { size: "sm", children: "Six durations and five easings; every transition in the system is composed from these. Nothing animates outside this table." }),
|
|
1441
|
+
/* @__PURE__ */ jsx10(Group5, { gap: "xs", children: Object.entries(gdsMotionDurations).map(([name, ms]) => /* @__PURE__ */ jsxs9(Badge2, { variant: "light", children: [
|
|
1442
|
+
name,
|
|
1443
|
+
" \xB7 ",
|
|
1444
|
+
ms,
|
|
1445
|
+
"ms"
|
|
1446
|
+
] }, name)) }),
|
|
1447
|
+
/* @__PURE__ */ jsx10(Group5, { gap: "xs", children: Object.entries(gdsMotionEasings).map(([name, curve]) => /* @__PURE__ */ jsxs9(Badge2, { variant: "outline", children: [
|
|
1448
|
+
name,
|
|
1449
|
+
" \xB7 ",
|
|
1450
|
+
curve
|
|
1451
|
+
] }, name)) })
|
|
1452
|
+
] }),
|
|
1453
|
+
/* @__PURE__ */ jsxs9(Stack5, { gap: "2xs", children: [
|
|
1454
|
+
/* @__PURE__ */ jsx10(Text4, { fw: 700, children: "The seven presets, live" }),
|
|
1455
|
+
/* @__PURE__ */ jsxs9(Text4, { size: "sm", children: [
|
|
1456
|
+
"A preset names an intent \u2014 overlay, drawer, command, list, feedback, skeleton, state \u2014 and carries its transition, transforms, and its own reduced-motion form. Hover each specimen: the movement you see IS the preset\u2019s transition, read from the export, not re-authored for this page.",
|
|
1457
|
+
reducedMotion ? " This visit has prefers-reduced-motion, so every specimen is showing its reduced form \u2014 that fallback being automatic is the feature." : ""
|
|
1458
|
+
] }),
|
|
1459
|
+
/* @__PURE__ */ jsx10(Group5, { gap: "sm", align: "stretch", children: Object.values(gdsMotionPresets).map((preset) => /* @__PURE__ */ jsx10(
|
|
1460
|
+
UnstyledButton,
|
|
1461
|
+
{
|
|
1462
|
+
"data-gds-motion": true,
|
|
1463
|
+
"data-gds-motion-specimen": preset.id,
|
|
1464
|
+
style: {
|
|
1465
|
+
padding: "var(--gds-space-sm)",
|
|
1466
|
+
borderRadius: "var(--gds-radius-panel)",
|
|
1467
|
+
border: "1px solid var(--gds-border-card)",
|
|
1468
|
+
background: "var(--gds-bg-card)",
|
|
1469
|
+
transition: reducedMotion ? preset.reducedTransition : preset.transition,
|
|
1470
|
+
transform: reducedMotion ? preset.reducedTransform : preset.exitTransform
|
|
1471
|
+
},
|
|
1472
|
+
onMouseEnter: (event) => {
|
|
1473
|
+
event.currentTarget.style.transform = reducedMotion ? preset.reducedTransform ?? "none" : preset.enterTransform;
|
|
1474
|
+
event.currentTarget.style.opacity = "1";
|
|
1475
|
+
},
|
|
1476
|
+
onMouseLeave: (event) => {
|
|
1477
|
+
event.currentTarget.style.transform = reducedMotion ? preset.reducedTransform ?? "none" : preset.exitTransform;
|
|
1478
|
+
event.currentTarget.style.opacity = "0.85";
|
|
1479
|
+
},
|
|
1480
|
+
children: /* @__PURE__ */ jsxs9(Stack5, { gap: 2, children: [
|
|
1481
|
+
/* @__PURE__ */ jsx10(Text4, { size: "sm", fw: 600, children: preset.id }),
|
|
1482
|
+
/* @__PURE__ */ jsxs9(Text4, { size: "xs", c: "dimmed", children: [
|
|
1483
|
+
preset.duration,
|
|
1484
|
+
" \xB7 ",
|
|
1485
|
+
preset.easing
|
|
1486
|
+
] }),
|
|
1487
|
+
/* @__PURE__ */ jsx10(Text4, { size: "xs", c: "dimmed", children: preset.usage })
|
|
1488
|
+
] })
|
|
1489
|
+
},
|
|
1490
|
+
preset.id
|
|
1491
|
+
)) })
|
|
1492
|
+
] }),
|
|
1493
|
+
/* @__PURE__ */ jsxs9(Stack5, { gap: "2xs", children: [
|
|
1494
|
+
/* @__PURE__ */ jsx10(Text4, { fw: 700, children: "The reaction axis \u2014 micro-feedback on every control" }),
|
|
1495
|
+
/* @__PURE__ */ jsx10(Text4, { size: "sm", children: "Hover, active, and pressed treatments plus the focus ring are an AXIS a theme declares once, not per-component CSS: every governed control reacts consistently, and a theme can retune all of it in one place. The values below are the default axis\u2019s own." }),
|
|
1496
|
+
/* @__PURE__ */ jsx10(Table3, { withTableBorder: true, children: /* @__PURE__ */ jsxs9(Table3.Tbody, { children: [
|
|
1497
|
+
/* @__PURE__ */ jsxs9(Table3.Tr, { children: [
|
|
1498
|
+
/* @__PURE__ */ jsx10(Table3.Td, { children: "hover" }),
|
|
1499
|
+
/* @__PURE__ */ jsx10(Table3.Td, { children: /* @__PURE__ */ jsx10(Code2, { children: String(axis.hover) }) })
|
|
1500
|
+
] }),
|
|
1501
|
+
/* @__PURE__ */ jsxs9(Table3.Tr, { children: [
|
|
1502
|
+
/* @__PURE__ */ jsx10(Table3.Td, { children: "active" }),
|
|
1503
|
+
/* @__PURE__ */ jsx10(Table3.Td, { children: /* @__PURE__ */ jsx10(Code2, { children: String(axis.active) }) })
|
|
1504
|
+
] }),
|
|
1505
|
+
/* @__PURE__ */ jsxs9(Table3.Tr, { children: [
|
|
1506
|
+
/* @__PURE__ */ jsx10(Table3.Td, { children: "pressed" }),
|
|
1507
|
+
/* @__PURE__ */ jsx10(Table3.Td, { children: /* @__PURE__ */ jsx10(Code2, { children: String(axis.pressed) }) })
|
|
1508
|
+
] }),
|
|
1509
|
+
axis.focusRing ? /* @__PURE__ */ jsxs9(Table3.Tr, { children: [
|
|
1510
|
+
/* @__PURE__ */ jsx10(Table3.Td, { children: "focus ring" }),
|
|
1511
|
+
/* @__PURE__ */ jsx10(Table3.Td, { children: /* @__PURE__ */ jsx10(Code2, { children: `${axis.focusRing.width} ${axis.focusRing.style}, offset ${axis.focusRing.offset}, role ${axis.focusRing.colorRole}` }) })
|
|
1512
|
+
] }) : null,
|
|
1513
|
+
/* @__PURE__ */ jsxs9(Table3.Tr, { children: [
|
|
1514
|
+
/* @__PURE__ */ jsx10(Table3.Td, { children: "transition scope" }),
|
|
1515
|
+
/* @__PURE__ */ jsx10(Table3.Td, { children: /* @__PURE__ */ jsx10(Code2, { children: (axis.transitionScope ?? []).join(", ") }) })
|
|
1516
|
+
] })
|
|
1517
|
+
] }) }),
|
|
1518
|
+
/* @__PURE__ */ jsxs9(Text4, { size: "sm", c: "dimmed", children: [
|
|
1519
|
+
"Wire-up is one call: ",
|
|
1520
|
+
/* @__PURE__ */ jsx10(Code2, { children: "withGdsMotion(theme)" }),
|
|
1521
|
+
" \u2014 see docs/MOTION_SYSTEM.md. Reduced motion collapses every treatment to its documented safe form via the same tokens; nothing opts out element by element."
|
|
1522
|
+
] })
|
|
1523
|
+
] })
|
|
1524
|
+
] });
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
// src/GdsShapeElevationSystemReference.tsx
|
|
1528
|
+
import { Code as Code3, Group as Group6, Paper as Paper3, Stack as Stack6, Table as Table4, Text as Text5 } from "@mantine/core";
|
|
1529
|
+
import {
|
|
1530
|
+
GDS_RADIUS_STEPS,
|
|
1531
|
+
GDS_RADIUS_ROLES,
|
|
1532
|
+
resolveGdsShapeTokens,
|
|
1533
|
+
GDS_ELEVATION_STEPS,
|
|
1534
|
+
GDS_ELEVATION_ROLES,
|
|
1535
|
+
resolveGdsElevationTokens
|
|
1536
|
+
} from "@sovereignsquad/gds-theme";
|
|
1537
|
+
import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1538
|
+
function GdsShapeElevationSystemReference() {
|
|
1539
|
+
const shapeTokens = resolveGdsShapeTokens();
|
|
1540
|
+
const elevationTokens = resolveGdsElevationTokens();
|
|
1541
|
+
return /* @__PURE__ */ jsxs10(Stack6, { gap: "md", "data-gds-shape-elevation-system-reference": "", children: [
|
|
1542
|
+
/* @__PURE__ */ jsxs10(Stack6, { gap: "2xs", children: [
|
|
1543
|
+
/* @__PURE__ */ jsx11(Text5, { fw: 700, children: "Radius steps \u2014 the whole scale" }),
|
|
1544
|
+
/* @__PURE__ */ jsx11(Text5, { size: "sm", children: "Seven steps, none to pill; every rounded corner in the system is one of these." }),
|
|
1545
|
+
/* @__PURE__ */ jsx11(Group6, { gap: "sm", align: "flex-end", children: GDS_RADIUS_STEPS.map((step) => /* @__PURE__ */ jsxs10(Stack6, { gap: 4, align: "center", children: [
|
|
1546
|
+
/* @__PURE__ */ jsx11(
|
|
1547
|
+
Paper3,
|
|
1548
|
+
{
|
|
1549
|
+
withBorder: true,
|
|
1550
|
+
p: "md",
|
|
1551
|
+
style: { borderRadius: shapeTokens[`--gds-radius-${step}`], background: "var(--gds-bg-card)" },
|
|
1552
|
+
children: /* @__PURE__ */ jsx11(Text5, { size: "xs", fw: 600, children: step })
|
|
1553
|
+
}
|
|
1554
|
+
),
|
|
1555
|
+
/* @__PURE__ */ jsx11(Text5, { size: "xs", c: "dimmed", children: /* @__PURE__ */ jsx11(Code3, { children: shapeTokens[`--gds-radius-${step}`] }) })
|
|
1556
|
+
] }, step)) })
|
|
1557
|
+
] }),
|
|
1558
|
+
/* @__PURE__ */ jsxs10(Stack6, { gap: "2xs", children: [
|
|
1559
|
+
/* @__PURE__ */ jsx11(Text5, { fw: 700, children: "Radius roles \u2014 named surfaces, not raw steps" }),
|
|
1560
|
+
/* @__PURE__ */ jsxs10(Text5, { size: "sm", children: [
|
|
1561
|
+
"Component source asks for a role, never a step directly \u2014 every role below resolves through the same axis ",
|
|
1562
|
+
/* @__PURE__ */ jsx11(Code3, { children: "resolveGdsShapeTokens()" }),
|
|
1563
|
+
" emits, falling back to the axis\u2019s default step when a theme leaves a role undeclared."
|
|
1564
|
+
] }),
|
|
1565
|
+
/* @__PURE__ */ jsx11(Table4, { withTableBorder: true, children: /* @__PURE__ */ jsx11(Table4.Tbody, { children: GDS_RADIUS_ROLES.map((role) => /* @__PURE__ */ jsxs10(Table4.Tr, { children: [
|
|
1566
|
+
/* @__PURE__ */ jsx11(Table4.Td, { children: role }),
|
|
1567
|
+
/* @__PURE__ */ jsx11(Table4.Td, { children: /* @__PURE__ */ jsx11(Code3, { children: shapeTokens[`--gds-radius-${role}`] }) })
|
|
1568
|
+
] }, role)) }) }),
|
|
1569
|
+
(() => {
|
|
1570
|
+
const values = GDS_RADIUS_ROLES.map((role) => shapeTokens[`--gds-radius-${role}`]);
|
|
1571
|
+
const distinctCount = new Set(values).size;
|
|
1572
|
+
return /* @__PURE__ */ jsxs10(Text5, { size: "sm", c: "dimmed", children: [
|
|
1573
|
+
distinctCount === 1 ? `All ${GDS_RADIUS_ROLES.length} roles above resolve to the same value here: this axis declares no per-role overrides, so every role falls back to the default step.` : `${distinctCount} distinct value(s) across ${GDS_RADIUS_ROLES.length} roles.`,
|
|
1574
|
+
" ",
|
|
1575
|
+
"A theme's Mantine ",
|
|
1576
|
+
/* @__PURE__ */ jsx11(Code3, { children: "theme.radius" }),
|
|
1577
|
+
" scale (used by Mantine components directly, e.g. ",
|
|
1578
|
+
/* @__PURE__ */ jsx11(Code3, { children: 'radius="md"' }),
|
|
1579
|
+
") is a separate mechanism from this axis and is not required to share its values \u2014 a brand handoff can specify its own",
|
|
1580
|
+
/* @__PURE__ */ jsx11(Code3, { children: "theme.radius" }),
|
|
1581
|
+
" steps independent of how many of these roles it differentiates."
|
|
1582
|
+
] });
|
|
1583
|
+
})()
|
|
1584
|
+
] }),
|
|
1585
|
+
/* @__PURE__ */ jsxs10(Stack6, { gap: "2xs", children: [
|
|
1586
|
+
/* @__PURE__ */ jsx11(Text5, { fw: 700, children: "Elevation steps \u2014 flat to raised" }),
|
|
1587
|
+
/* @__PURE__ */ jsx11(Text5, { size: "sm", children: "Five steps, none to a deep shadow. The axis itself refuses a step that comes back down after a raised one \u2014 a modal flatter than the card behind it is treated as a rendering bug, not a theme choice." }),
|
|
1588
|
+
/* @__PURE__ */ jsx11(Group6, { gap: "sm", align: "flex-end", children: GDS_ELEVATION_STEPS.map((step) => /* @__PURE__ */ jsx11(Stack6, { gap: 4, align: "center", children: /* @__PURE__ */ jsx11(
|
|
1589
|
+
Paper3,
|
|
1590
|
+
{
|
|
1591
|
+
p: "md",
|
|
1592
|
+
style: { boxShadow: elevationTokens[`--gds-elevation-${step}`], background: "var(--gds-bg-card)" },
|
|
1593
|
+
children: /* @__PURE__ */ jsx11(Text5, { size: "xs", fw: 600, children: step })
|
|
1594
|
+
}
|
|
1595
|
+
) }, step)) })
|
|
1596
|
+
] }),
|
|
1597
|
+
/* @__PURE__ */ jsxs10(Stack6, { gap: "2xs", children: [
|
|
1598
|
+
/* @__PURE__ */ jsx11(Text5, { fw: 700, children: "Elevation roles \u2014 named surfaces, not raw steps" }),
|
|
1599
|
+
/* @__PURE__ */ jsxs10(Text5, { size: "sm", children: [
|
|
1600
|
+
"Same role-over-step discipline as shape: a card and a tooltip never share a hand-tuned shadow, they share a role that resolves through ",
|
|
1601
|
+
/* @__PURE__ */ jsx11(Code3, { children: "resolveGdsElevationTokens()" }),
|
|
1602
|
+
"."
|
|
1603
|
+
] }),
|
|
1604
|
+
/* @__PURE__ */ jsx11(Table4, { withTableBorder: true, children: /* @__PURE__ */ jsx11(Table4.Tbody, { children: GDS_ELEVATION_ROLES.map((role) => /* @__PURE__ */ jsxs10(Table4.Tr, { children: [
|
|
1605
|
+
/* @__PURE__ */ jsx11(Table4.Td, { children: role }),
|
|
1606
|
+
/* @__PURE__ */ jsx11(Table4.Td, { children: /* @__PURE__ */ jsx11(
|
|
1607
|
+
Paper3,
|
|
1608
|
+
{
|
|
1609
|
+
p: "xs",
|
|
1610
|
+
style: { boxShadow: elevationTokens[`--gds-elevation-${role}`], background: "var(--gds-bg-card)", display: "inline-block" },
|
|
1611
|
+
children: /* @__PURE__ */ jsx11(Text5, { size: "xs", c: "dimmed", children: role })
|
|
1612
|
+
}
|
|
1613
|
+
) })
|
|
1614
|
+
] }, role)) }) })
|
|
1615
|
+
] })
|
|
1616
|
+
] });
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
// src/GdsDensitySpacingSystemReference.tsx
|
|
1620
|
+
import { Box as Box4, Code as Code4, Group as Group7, Stack as Stack7, Table as Table5, Text as Text6 } from "@mantine/core";
|
|
1621
|
+
import {
|
|
1622
|
+
GDS_SPACE_STEPS,
|
|
1623
|
+
GDS_CONTROL_SIZES,
|
|
1624
|
+
GDS_MIN_TARGET_PX,
|
|
1625
|
+
GDS_CONTROL_HEIGHT_EXCEPTIONS,
|
|
1626
|
+
resolveGdsDensityTokens
|
|
1627
|
+
} from "@sovereignsquad/gds-theme";
|
|
1628
|
+
import { jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1629
|
+
function GdsDensitySpacingSystemReference() {
|
|
1630
|
+
const tokens = resolveGdsDensityTokens();
|
|
1631
|
+
return /* @__PURE__ */ jsxs11(Stack7, { gap: "md", "data-gds-density-spacing-system-reference": "", children: [
|
|
1632
|
+
/* @__PURE__ */ jsxs11(Stack7, { gap: "2xs", children: [
|
|
1633
|
+
/* @__PURE__ */ jsx12(Text6, { fw: 700, children: "Spacing steps \u2014 the whole scale" }),
|
|
1634
|
+
/* @__PURE__ */ jsx12(Text6, { size: "sm", children: "Ten steps, none to 3xl; every margin, gap, and padding in the system is one of these. Shown at the default comfortable density (factor 1)." }),
|
|
1635
|
+
/* @__PURE__ */ jsx12(Group7, { gap: "sm", align: "flex-end", children: GDS_SPACE_STEPS.map((step) => /* @__PURE__ */ jsxs11(Stack7, { gap: 4, align: "center", children: [
|
|
1636
|
+
/* @__PURE__ */ jsx12(
|
|
1637
|
+
Box4,
|
|
1638
|
+
{
|
|
1639
|
+
style: {
|
|
1640
|
+
width: tokens[`--gds-space-${step}`],
|
|
1641
|
+
height: tokens[`--gds-space-${step}`],
|
|
1642
|
+
minWidth: 2,
|
|
1643
|
+
minHeight: 2,
|
|
1644
|
+
background: "var(--gds-brand-primary, var(--gds-vibe-primary, var(--mantine-primary-color-filled)))",
|
|
1645
|
+
borderRadius: "var(--gds-radius-xs)"
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
),
|
|
1649
|
+
/* @__PURE__ */ jsx12(Text6, { size: "xs", fw: 600, children: step }),
|
|
1650
|
+
/* @__PURE__ */ jsx12(Text6, { size: "xs", c: "dimmed", children: /* @__PURE__ */ jsx12(Code4, { children: tokens[`--gds-space-${step}`] }) })
|
|
1651
|
+
] }, step)) })
|
|
1652
|
+
] }),
|
|
1653
|
+
/* @__PURE__ */ jsxs11(Stack7, { gap: "2xs", children: [
|
|
1654
|
+
/* @__PURE__ */ jsx12(Text6, { fw: 700, children: "Control heights \u2014 the accessibility floor holds" }),
|
|
1655
|
+
/* @__PURE__ */ jsxs11(Text6, { size: "sm", children: [
|
|
1656
|
+
"Five control sizes. GDS holds a ",
|
|
1657
|
+
GDS_MIN_TARGET_PX,
|
|
1658
|
+
"px floor (stricter than WCAG 2.5.8\u2019s 24px \u2014 the AAA figure Apple and Google both publish). A compact or spacious density mode scales spacing freely, but a control height only shrinks below the floor when the size carries a recorded exception below."
|
|
1659
|
+
] }),
|
|
1660
|
+
/* @__PURE__ */ jsx12(Table5, { withTableBorder: true, children: /* @__PURE__ */ jsx12(Table5.Tbody, { children: GDS_CONTROL_SIZES.map((size) => /* @__PURE__ */ jsxs11(Table5.Tr, { children: [
|
|
1661
|
+
/* @__PURE__ */ jsx12(Table5.Td, { children: size }),
|
|
1662
|
+
/* @__PURE__ */ jsx12(Table5.Td, { children: /* @__PURE__ */ jsx12(Code4, { children: tokens[`--gds-control-height-${size}`] }) }),
|
|
1663
|
+
/* @__PURE__ */ jsx12(Table5.Td, { children: /* @__PURE__ */ jsx12(Text6, { size: "xs", c: "dimmed", children: GDS_CONTROL_HEIGHT_EXCEPTIONS[size] ?? "holds the floor" }) })
|
|
1664
|
+
] }, size)) }) })
|
|
1665
|
+
] })
|
|
1666
|
+
] });
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
// src/GdsIconSystemReference.tsx
|
|
1670
|
+
import { Badge as Badge3, Code as Code5, Group as Group8, Stack as Stack8, Text as Text7 } from "@mantine/core";
|
|
1671
|
+
import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1672
|
+
var CATEGORIES = [
|
|
1673
|
+
"action",
|
|
1674
|
+
"status",
|
|
1675
|
+
"resource",
|
|
1676
|
+
"navigation",
|
|
1677
|
+
"media",
|
|
1678
|
+
"feedback",
|
|
1679
|
+
"system",
|
|
1680
|
+
"content",
|
|
1681
|
+
"commerce",
|
|
1682
|
+
"security"
|
|
1683
|
+
];
|
|
1684
|
+
var TONES = ["default", "primary", "success", "warning", "danger", "info", "muted"];
|
|
1685
|
+
function GdsIconSystemReference() {
|
|
1686
|
+
const keys = getGdsIconKeys();
|
|
1687
|
+
const byCategory = CATEGORIES.map((category) => ({
|
|
1688
|
+
category,
|
|
1689
|
+
icons: keys.filter((key) => getGdsIconMetadata(key).category === category)
|
|
1690
|
+
}));
|
|
1691
|
+
return /* @__PURE__ */ jsxs12(Stack8, { gap: "md", "data-gds-icon-system-reference": "", children: [
|
|
1692
|
+
/* @__PURE__ */ jsxs12(Stack8, { gap: "2xs", children: [
|
|
1693
|
+
/* @__PURE__ */ jsxs12(Text7, { fw: 700, children: [
|
|
1694
|
+
"The icon dictionary \u2014 ",
|
|
1695
|
+
keys.length,
|
|
1696
|
+
" icons across ",
|
|
1697
|
+
CATEGORIES.length,
|
|
1698
|
+
" categories"
|
|
1699
|
+
] }),
|
|
1700
|
+
/* @__PURE__ */ jsxs12(Text7, { size: "sm", children: [
|
|
1701
|
+
"Every icon a consumer may use, governed through ",
|
|
1702
|
+
/* @__PURE__ */ jsx13(Code5, { children: "GdsIcon" }),
|
|
1703
|
+
" rather than a direct Tabler import \u2014 grouped by the same semantic category",
|
|
1704
|
+
/* @__PURE__ */ jsx13(Code5, { children: "getGdsIconMetadata()" }),
|
|
1705
|
+
" assigns each key."
|
|
1706
|
+
] }),
|
|
1707
|
+
byCategory.map(({ category, icons }) => /* @__PURE__ */ jsxs12(Stack8, { gap: 4, children: [
|
|
1708
|
+
/* @__PURE__ */ jsxs12(Group8, { gap: "xs", align: "center", children: [
|
|
1709
|
+
/* @__PURE__ */ jsx13(Text7, { size: "sm", fw: 600, children: category }),
|
|
1710
|
+
/* @__PURE__ */ jsx13(Badge3, { size: "xs", variant: "light", children: icons.length })
|
|
1711
|
+
] }),
|
|
1712
|
+
/* @__PURE__ */ jsx13(Group8, { gap: "md", children: icons.map((key) => {
|
|
1713
|
+
const meta = getGdsIconMetadata(key);
|
|
1714
|
+
return /* @__PURE__ */ jsxs12(Stack8, { gap: 2, align: "center", w: 64, children: [
|
|
1715
|
+
/* @__PURE__ */ jsx13(GdsIcon, { icon: key, size: "lg", label: meta.defaultLabel }),
|
|
1716
|
+
/* @__PURE__ */ jsx13(Text7, { size: "xs", c: "dimmed", ta: "center", children: meta.defaultLabel })
|
|
1717
|
+
] }, key);
|
|
1718
|
+
}) })
|
|
1719
|
+
] }, category))
|
|
1720
|
+
] }),
|
|
1721
|
+
/* @__PURE__ */ jsxs12(Stack8, { gap: "2xs", children: [
|
|
1722
|
+
/* @__PURE__ */ jsx13(Text7, { fw: 700, children: "Tones \u2014 semantic colour, never a raw hex" }),
|
|
1723
|
+
/* @__PURE__ */ jsxs12(Text7, { size: "sm", children: [
|
|
1724
|
+
"Seven tones; ",
|
|
1725
|
+
/* @__PURE__ */ jsx13(Code5, { children: "default" }),
|
|
1726
|
+
" inherits the surrounding text colour, the rest read from ",
|
|
1727
|
+
/* @__PURE__ */ jsx13(Code5, { children: "gdsIconToneColor" }),
|
|
1728
|
+
"."
|
|
1729
|
+
] }),
|
|
1730
|
+
/* @__PURE__ */ jsx13(Group8, { gap: "lg", children: TONES.map((tone) => /* @__PURE__ */ jsxs12(Stack8, { gap: 2, align: "center", children: [
|
|
1731
|
+
/* @__PURE__ */ jsx13(GdsIcon, { icon: "Star", size: "lg", tone, label: `${tone} tone` }),
|
|
1732
|
+
/* @__PURE__ */ jsx13(Text7, { size: "xs", c: "dimmed", children: tone }),
|
|
1733
|
+
/* @__PURE__ */ jsx13(Text7, { size: "xs", c: "dimmed", children: gdsIconToneColor[tone] ?? "inherited" })
|
|
1734
|
+
] }, tone)) })
|
|
1735
|
+
] }),
|
|
1736
|
+
/* @__PURE__ */ jsxs12(Stack8, { gap: "2xs", children: [
|
|
1737
|
+
/* @__PURE__ */ jsx13(Text7, { fw: 700, children: "Decorative vs informative \u2014 the accessibility contract" }),
|
|
1738
|
+
/* @__PURE__ */ jsxs12(Text7, { size: "sm", children: [
|
|
1739
|
+
"An icon with no ",
|
|
1740
|
+
/* @__PURE__ */ jsx13(Code5, { children: "label" }),
|
|
1741
|
+
" renders ",
|
|
1742
|
+
/* @__PURE__ */ jsx13(Code5, { children: "aria-hidden" }),
|
|
1743
|
+
" \u2014 decorative, because the text beside it already carries the meaning. Supplying ",
|
|
1744
|
+
/* @__PURE__ */ jsx13(Code5, { children: "label" }),
|
|
1745
|
+
"makes it informative: the icon itself gets the accessible name, for the rare case where nothing else on the page does."
|
|
1746
|
+
] }),
|
|
1747
|
+
/* @__PURE__ */ jsxs12(Group8, { gap: "xl", children: [
|
|
1748
|
+
/* @__PURE__ */ jsxs12(Group8, { gap: "xs", children: [
|
|
1749
|
+
/* @__PURE__ */ jsx13(GdsIcon, { icon: "Info", size: "md" }),
|
|
1750
|
+
/* @__PURE__ */ jsx13(Text7, { size: "sm", children: "Decorative \u2014 no label, aria-hidden, text does the work" })
|
|
1751
|
+
] }),
|
|
1752
|
+
/* @__PURE__ */ jsxs12(Group8, { gap: "xs", children: [
|
|
1753
|
+
/* @__PURE__ */ jsx13(GdsIcon, { icon: "Info", size: "md", label: "More information" }),
|
|
1754
|
+
/* @__PURE__ */ jsx13(Text7, { size: "sm", children: "Informative \u2014 labelled, the icon alone carries the name" })
|
|
1755
|
+
] })
|
|
1756
|
+
] })
|
|
1757
|
+
] }),
|
|
1758
|
+
/* @__PURE__ */ jsxs12(Stack8, { gap: "2xs", children: [
|
|
1759
|
+
/* @__PURE__ */ jsx13(Text7, { fw: 700, children: "Badge glyph mode is a separate axis" }),
|
|
1760
|
+
/* @__PURE__ */ jsxs12(Text7, { size: "sm", children: [
|
|
1761
|
+
"Badges can additionally switch every glyph to emoji instead of a Tabler stroke icon (",
|
|
1762
|
+
/* @__PURE__ */ jsx13(Code5, { children: "useGdsBadgeIconStyle" }),
|
|
1763
|
+
"/",
|
|
1764
|
+
/* @__PURE__ */ jsx13(Code5, { children: "GdsIconStyleContext" }),
|
|
1765
|
+
", issue 525) \u2014 a badge-specific mode, not part of this dictionary. See Badges under Systems for the live toggle."
|
|
1766
|
+
] })
|
|
1767
|
+
] })
|
|
1768
|
+
] });
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
// src/GdsPictogramSystemReference.tsx
|
|
1772
|
+
import { Badge as Badge4, Code as Code6, Group as Group9, Stack as Stack9, Table as Table6, Text as Text8 } from "@mantine/core";
|
|
1773
|
+
import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1774
|
+
var STATES = ["default", "hover", "selected", "disabled"];
|
|
1775
|
+
function GdsPictogramSystemReference() {
|
|
1776
|
+
const keys = getGdsActivityPictogramKeys();
|
|
1777
|
+
const treatments = Object.keys(GDS_PICTOGRAM_TREATMENT_SCALE);
|
|
1778
|
+
const scales = Object.keys(GDS_PICTOGRAM_SCALE_PX);
|
|
1779
|
+
return /* @__PURE__ */ jsxs13(Stack9, { gap: "md", "data-gds-pictogram-system-reference": "", children: [
|
|
1780
|
+
/* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
|
|
1781
|
+
/* @__PURE__ */ jsxs13(Text8, { fw: 700, children: [
|
|
1782
|
+
"The activity family \u2014 ",
|
|
1783
|
+
keys.length,
|
|
1784
|
+
" pictograms"
|
|
1785
|
+
] }),
|
|
1786
|
+
/* @__PURE__ */ jsxs13(Text8, { size: "sm", children: [
|
|
1787
|
+
"One governed family (",
|
|
1788
|
+
/* @__PURE__ */ jsx14(Code6, { children: gdsActivityPictograms.id }),
|
|
1789
|
+
") on a",
|
|
1790
|
+
" ",
|
|
1791
|
+
GDS_PICTOGRAM_GRID,
|
|
1792
|
+
"\xD7",
|
|
1793
|
+
GDS_PICTOGRAM_GRID,
|
|
1794
|
+
" optical grid \u2014 they signal the activity, never a scene. Every path is the real, unmodified data of a published icon-library glyph, never hand-drawn or redrawn:",
|
|
1795
|
+
" ",
|
|
1796
|
+
keys.length - Object.values(gdsActivityPictograms.pictograms).filter((p) => p.fillMode === "fill").length,
|
|
1797
|
+
" ",
|
|
1798
|
+
"render as a line drawing at a base stroke of ",
|
|
1799
|
+
/* @__PURE__ */ jsx14(Code6, { children: GDS_PICTOGRAM_BASE_STROKE }),
|
|
1800
|
+
", matching the source icon set's own line grammar; the remaining",
|
|
1801
|
+
" ",
|
|
1802
|
+
Object.values(gdsActivityPictograms.pictograms).filter((p) => p.fillMode === "fill").length,
|
|
1803
|
+
" ",
|
|
1804
|
+
"ship as a solid ",
|
|
1805
|
+
/* @__PURE__ */ jsx14(Code6, { children: "currentColor" }),
|
|
1806
|
+
" shape because that is the only real form the source glyph exists in."
|
|
1807
|
+
] }),
|
|
1808
|
+
/* @__PURE__ */ jsx14(Group9, { gap: "lg", children: keys.map((key) => /* @__PURE__ */ jsxs13(Stack9, { gap: 4, align: "center", w: 72, children: [
|
|
1809
|
+
/* @__PURE__ */ jsx14(GdsPictogram, { pictogram: key, treatment: "detail", label: gdsActivityPictograms.pictograms[key].label }),
|
|
1810
|
+
/* @__PURE__ */ jsx14(Text8, { size: "xs", c: "dimmed", ta: "center", children: gdsActivityPictograms.pictograms[key].label })
|
|
1811
|
+
] }, key)) })
|
|
1812
|
+
] }),
|
|
1813
|
+
/* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
|
|
1814
|
+
/* @__PURE__ */ jsxs13(Text8, { fw: 700, children: [
|
|
1815
|
+
"Contextual treatments \u2014 ",
|
|
1816
|
+
treatments.length,
|
|
1817
|
+
" contexts, one drawing each"
|
|
1818
|
+
] }),
|
|
1819
|
+
/* @__PURE__ */ jsxs13(Text8, { size: "sm", children: [
|
|
1820
|
+
/* @__PURE__ */ jsx14(Code6, { children: "list" }),
|
|
1821
|
+
", ",
|
|
1822
|
+
/* @__PURE__ */ jsx14(Code6, { children: "detail" }),
|
|
1823
|
+
", ",
|
|
1824
|
+
/* @__PURE__ */ jsx14(Code6, { children: "hero" }),
|
|
1825
|
+
", and ",
|
|
1826
|
+
/* @__PURE__ */ jsx14(Code6, { children: "pin" }),
|
|
1827
|
+
" each resolve to their own default scale (",
|
|
1828
|
+
/* @__PURE__ */ jsx14(Code6, { children: "GDS_PICTOGRAM_TREATMENT_SCALE" }),
|
|
1829
|
+
") and stroke weight \u2014 the path data itself never changes across a row."
|
|
1830
|
+
] }),
|
|
1831
|
+
/* @__PURE__ */ jsxs13(Table6, { withTableBorder: true, children: [
|
|
1832
|
+
/* @__PURE__ */ jsx14(Table6.Thead, { children: /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
1833
|
+
/* @__PURE__ */ jsx14(Table6.Th, { children: "Pictogram" }),
|
|
1834
|
+
treatments.map((treatment) => /* @__PURE__ */ jsxs13(Table6.Th, { children: [
|
|
1835
|
+
treatment,
|
|
1836
|
+
" \xB7 ",
|
|
1837
|
+
GDS_PICTOGRAM_TREATMENT_SCALE[treatment],
|
|
1838
|
+
" \xB7 ",
|
|
1839
|
+
GDS_PICTOGRAM_SCALE_PX[GDS_PICTOGRAM_TREATMENT_SCALE[treatment]],
|
|
1840
|
+
"px"
|
|
1841
|
+
] }, treatment))
|
|
1842
|
+
] }) }),
|
|
1843
|
+
/* @__PURE__ */ jsx14(Table6.Tbody, { children: keys.map((key) => /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
1844
|
+
/* @__PURE__ */ jsx14(Table6.Td, { children: gdsActivityPictograms.pictograms[key].label }),
|
|
1845
|
+
treatments.map((treatment) => /* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(GdsPictogram, { pictogram: key, treatment, label: gdsActivityPictograms.pictograms[key].label }) }, treatment))
|
|
1846
|
+
] }, key)) })
|
|
1847
|
+
] })
|
|
1848
|
+
] }),
|
|
1849
|
+
/* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
|
|
1850
|
+
/* @__PURE__ */ jsxs13(Text8, { fw: 700, children: [
|
|
1851
|
+
"Scales \u2014 ",
|
|
1852
|
+
scales.length,
|
|
1853
|
+
" sizes, stroke tuned per size"
|
|
1854
|
+
] }),
|
|
1855
|
+
/* @__PURE__ */ jsxs13(Text8, { size: "sm", children: [
|
|
1856
|
+
"The same ",
|
|
1857
|
+
/* @__PURE__ */ jsx14(Code6, { children: "soccer" }),
|
|
1858
|
+
" drawing at each scale, with the grid-space stroke width (",
|
|
1859
|
+
/* @__PURE__ */ jsx14(Code6, { children: "GDS_PICTOGRAM_STROKE_BY_SCALE" }),
|
|
1860
|
+
") that keeps it legible at that rendered size \u2014 ",
|
|
1861
|
+
/* @__PURE__ */ jsx14(Code6, { children: "scale" }),
|
|
1862
|
+
" overrides a treatment\u2019s default here to isolate the axis."
|
|
1863
|
+
] }),
|
|
1864
|
+
/* @__PURE__ */ jsx14(Group9, { gap: "xl", align: "flex-end", children: scales.map((scale) => /* @__PURE__ */ jsxs13(Stack9, { gap: 4, align: "center", children: [
|
|
1865
|
+
/* @__PURE__ */ jsx14(GdsPictogram, { pictogram: "soccer", scale, label: `Soccer at ${scale}` }),
|
|
1866
|
+
/* @__PURE__ */ jsxs13(Text8, { size: "xs", c: "dimmed", children: [
|
|
1867
|
+
scale,
|
|
1868
|
+
" \xB7 ",
|
|
1869
|
+
GDS_PICTOGRAM_SCALE_PX[scale],
|
|
1870
|
+
"px \xB7 stroke ",
|
|
1871
|
+
GDS_PICTOGRAM_STROKE_BY_SCALE[scale]
|
|
1872
|
+
] })
|
|
1873
|
+
] }, scale)) })
|
|
1874
|
+
] }),
|
|
1875
|
+
/* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
|
|
1876
|
+
/* @__PURE__ */ jsxs13(Text8, { fw: 700, children: [
|
|
1877
|
+
"Interaction states \u2014 ",
|
|
1878
|
+
STATES.length,
|
|
1879
|
+
" states, token colour only"
|
|
1880
|
+
] }),
|
|
1881
|
+
/* @__PURE__ */ jsxs13(Text8, { size: "sm", children: [
|
|
1882
|
+
"Rendered at the ",
|
|
1883
|
+
/* @__PURE__ */ jsx14(Code6, { children: "detail" }),
|
|
1884
|
+
" treatment so ",
|
|
1885
|
+
/* @__PURE__ */ jsx14(Code6, { children: "selected" }),
|
|
1886
|
+
"\u2019s accent fill and ",
|
|
1887
|
+
/* @__PURE__ */ jsx14(Code6, { children: "disabled" }),
|
|
1888
|
+
"\u2019s reduced opacity read clearly. No state introduces a new hue: ",
|
|
1889
|
+
/* @__PURE__ */ jsx14(Code6, { children: "hover" }),
|
|
1890
|
+
" is a surface-level cue owned by the host, so the drawing itself is identical to ",
|
|
1891
|
+
/* @__PURE__ */ jsx14(Code6, { children: "default" }),
|
|
1892
|
+
"."
|
|
1893
|
+
] }),
|
|
1894
|
+
/* @__PURE__ */ jsxs13(Table6, { withTableBorder: true, children: [
|
|
1895
|
+
/* @__PURE__ */ jsx14(Table6.Thead, { children: /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
1896
|
+
/* @__PURE__ */ jsx14(Table6.Th, { children: "Pictogram" }),
|
|
1897
|
+
STATES.map((state) => /* @__PURE__ */ jsx14(Table6.Th, { children: state }, state))
|
|
1898
|
+
] }) }),
|
|
1899
|
+
/* @__PURE__ */ jsx14(Table6.Tbody, { children: keys.map((key) => /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
1900
|
+
/* @__PURE__ */ jsx14(Table6.Td, { children: gdsActivityPictograms.pictograms[key].label }),
|
|
1901
|
+
STATES.map((state) => /* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(GdsPictogram, { pictogram: key, treatment: "detail", state, label: `${gdsActivityPictograms.pictograms[key].label} \u2014 ${state}` }) }, state))
|
|
1902
|
+
] }, key)) })
|
|
1903
|
+
] })
|
|
1904
|
+
] }),
|
|
1905
|
+
/* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
|
|
1906
|
+
/* @__PURE__ */ jsxs13(Text8, { fw: 700, children: [
|
|
1907
|
+
"Hero layering \u2014 ",
|
|
1908
|
+
GDS_PICTOGRAM_HERO_LAYERS.length,
|
|
1909
|
+
" layers, scale/opacity only"
|
|
1910
|
+
] }),
|
|
1911
|
+
/* @__PURE__ */ jsxs13(Text8, { size: "sm", children: [
|
|
1912
|
+
"The bounded recipe behind the ",
|
|
1913
|
+
/* @__PURE__ */ jsx14(Code6, { children: "hero" }),
|
|
1914
|
+
" treatment: the real mark plus",
|
|
1915
|
+
" ",
|
|
1916
|
+
GDS_PICTOGRAM_HERO_LAYERS.length - 1,
|
|
1917
|
+
" larger, fainter, offset echoes of the identical path \u2014 depth from transform and opacity alone, never a second colour."
|
|
1918
|
+
] }),
|
|
1919
|
+
/* @__PURE__ */ jsxs13(Table6, { withTableBorder: true, children: [
|
|
1920
|
+
/* @__PURE__ */ jsx14(Table6.Thead, { children: /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
1921
|
+
/* @__PURE__ */ jsx14(Table6.Th, { children: "Layer" }),
|
|
1922
|
+
/* @__PURE__ */ jsx14(Table6.Th, { children: "scale" }),
|
|
1923
|
+
/* @__PURE__ */ jsx14(Table6.Th, { children: "opacity" }),
|
|
1924
|
+
/* @__PURE__ */ jsx14(Table6.Th, { children: "offsetX" }),
|
|
1925
|
+
/* @__PURE__ */ jsx14(Table6.Th, { children: "offsetY" })
|
|
1926
|
+
] }) }),
|
|
1927
|
+
/* @__PURE__ */ jsx14(Table6.Tbody, { children: GDS_PICTOGRAM_HERO_LAYERS.map((layer, index) => /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
1928
|
+
/* @__PURE__ */ jsx14(Table6.Td, { children: index }),
|
|
1929
|
+
/* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(Code6, { children: layer.scale }) }),
|
|
1930
|
+
/* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(Code6, { children: layer.opacity }) }),
|
|
1931
|
+
/* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(Code6, { children: layer.offsetX }) }),
|
|
1932
|
+
/* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(Code6, { children: layer.offsetY }) })
|
|
1933
|
+
] }, `${layer.scale}-${layer.offsetX}-${layer.offsetY}`)) })
|
|
1934
|
+
] }),
|
|
1935
|
+
/* @__PURE__ */ jsxs13(Group9, { gap: "xl", align: "center", children: [
|
|
1936
|
+
/* @__PURE__ */ jsx14(GdsPictogram, { pictogram: "basketball", treatment: "hero", label: "Basketball, hero treatment" }),
|
|
1937
|
+
/* @__PURE__ */ jsx14(GdsPictogram, { pictogram: "camps", treatment: "hero", label: "Camps, hero treatment" })
|
|
1938
|
+
] })
|
|
1939
|
+
] }),
|
|
1940
|
+
/* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
|
|
1941
|
+
/* @__PURE__ */ jsx14(Text8, { fw: 700, children: "Numeric contract \u2014 read from the exports, never retyped" }),
|
|
1942
|
+
/* @__PURE__ */ jsx14(Table6, { withTableBorder: true, children: /* @__PURE__ */ jsxs13(Table6.Tbody, { children: [
|
|
1943
|
+
/* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
1944
|
+
/* @__PURE__ */ jsx14(Table6.Td, { children: "Optical grid" }),
|
|
1945
|
+
/* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsxs13(Code6, { children: [
|
|
1946
|
+
GDS_PICTOGRAM_GRID,
|
|
1947
|
+
"\xD7",
|
|
1948
|
+
GDS_PICTOGRAM_GRID
|
|
1949
|
+
] }) })
|
|
1950
|
+
] }),
|
|
1951
|
+
/* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
1952
|
+
/* @__PURE__ */ jsx14(Table6.Td, { children: "Base stroke" }),
|
|
1953
|
+
/* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(Code6, { children: GDS_PICTOGRAM_BASE_STROKE }) })
|
|
1954
|
+
] }),
|
|
1955
|
+
/* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
1956
|
+
/* @__PURE__ */ jsx14(Table6.Td, { children: "Disabled opacity" }),
|
|
1957
|
+
/* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(Code6, { children: GDS_PICTOGRAM_DISABLED_OPACITY }) })
|
|
1958
|
+
] }),
|
|
1959
|
+
scales.map((scale) => /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
1960
|
+
/* @__PURE__ */ jsxs13(Table6.Td, { children: [
|
|
1961
|
+
"Scale ",
|
|
1962
|
+
/* @__PURE__ */ jsx14(Code6, { children: scale })
|
|
1963
|
+
] }),
|
|
1964
|
+
/* @__PURE__ */ jsxs13(Table6.Td, { children: [
|
|
1965
|
+
GDS_PICTOGRAM_SCALE_PX[scale],
|
|
1966
|
+
"px, stroke ",
|
|
1967
|
+
/* @__PURE__ */ jsx14(Code6, { children: GDS_PICTOGRAM_STROKE_BY_SCALE[scale] })
|
|
1968
|
+
] })
|
|
1969
|
+
] }, scale)),
|
|
1970
|
+
treatments.map((treatment) => /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
|
|
1971
|
+
/* @__PURE__ */ jsxs13(Table6.Td, { children: [
|
|
1972
|
+
"Treatment ",
|
|
1973
|
+
/* @__PURE__ */ jsx14(Code6, { children: treatment })
|
|
1974
|
+
] }),
|
|
1975
|
+
/* @__PURE__ */ jsxs13(Table6.Td, { children: [
|
|
1976
|
+
"defaults to scale ",
|
|
1977
|
+
/* @__PURE__ */ jsx14(Code6, { children: GDS_PICTOGRAM_TREATMENT_SCALE[treatment] })
|
|
1978
|
+
] })
|
|
1979
|
+
] }, treatment))
|
|
1980
|
+
] }) })
|
|
1981
|
+
] }),
|
|
1982
|
+
/* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
|
|
1983
|
+
/* @__PURE__ */ jsxs13(Text8, { fw: 700, children: [
|
|
1984
|
+
"Usage rules \u2014 ",
|
|
1985
|
+
gdsPictogramUsageRules.length,
|
|
1986
|
+
" rules from the source guidelines"
|
|
1987
|
+
] }),
|
|
1988
|
+
/* @__PURE__ */ jsxs13(Text8, { size: "sm", children: [
|
|
1989
|
+
"Shipped as data (",
|
|
1990
|
+
/* @__PURE__ */ jsx14(Code6, { children: "gdsPictogramUsageRules" }),
|
|
1991
|
+
") rather than retyped prose, so this list can never drift from what the mechanism actually enforces or documents."
|
|
1992
|
+
] }),
|
|
1993
|
+
/* @__PURE__ */ jsx14(Stack9, { gap: 4, children: gdsPictogramUsageRules.map((rule) => /* @__PURE__ */ jsxs13(Group9, { gap: "xs", align: "flex-start", wrap: "nowrap", children: [
|
|
1994
|
+
/* @__PURE__ */ jsx14(Badge4, { size: "xs", variant: "light", style: { flexShrink: 0 }, children: rule.treatment }),
|
|
1995
|
+
/* @__PURE__ */ jsx14(Text8, { size: "sm", children: rule.rule })
|
|
1996
|
+
] }, rule.id)) })
|
|
1997
|
+
] }),
|
|
1998
|
+
/* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
|
|
1999
|
+
/* @__PURE__ */ jsx14(Text8, { fw: 700, children: "Decorative vs informative \u2014 the accessibility contract" }),
|
|
2000
|
+
/* @__PURE__ */ jsxs13(Text8, { size: "sm", children: [
|
|
2001
|
+
"Exact parity with ",
|
|
2002
|
+
/* @__PURE__ */ jsx14(Code6, { children: "GdsIcon" }),
|
|
2003
|
+
": no ",
|
|
2004
|
+
/* @__PURE__ */ jsx14(Code6, { children: "label" }),
|
|
2005
|
+
" renders",
|
|
2006
|
+
" ",
|
|
2007
|
+
/* @__PURE__ */ jsx14(Code6, { children: "aria-hidden" }),
|
|
2008
|
+
"; supplying ",
|
|
2009
|
+
/* @__PURE__ */ jsx14(Code6, { children: "label" }),
|
|
2010
|
+
" renders ",
|
|
2011
|
+
/* @__PURE__ */ jsx14(Code6, { children: 'role="img"' }),
|
|
2012
|
+
" ",
|
|
2013
|
+
"with an ",
|
|
2014
|
+
/* @__PURE__ */ jsx14(Code6, { children: "aria-label" }),
|
|
2015
|
+
". Pictograms are never mirrored for RTL locales \u2014 they are direction-neutral drawings, not directional glyphs."
|
|
2016
|
+
] }),
|
|
2017
|
+
/* @__PURE__ */ jsxs13(Group9, { gap: "xl", children: [
|
|
2018
|
+
/* @__PURE__ */ jsxs13(Group9, { gap: "xs", children: [
|
|
2019
|
+
/* @__PURE__ */ jsx14(GdsPictogram, { pictogram: "tennis" }),
|
|
2020
|
+
/* @__PURE__ */ jsx14(Text8, { size: "sm", children: "Decorative \u2014 no label, aria-hidden, the card\u2019s own title carries the name" })
|
|
2021
|
+
] }),
|
|
2022
|
+
/* @__PURE__ */ jsxs13(Group9, { gap: "xs", children: [
|
|
2023
|
+
/* @__PURE__ */ jsx14(GdsPictogram, { pictogram: "tennis", label: "Tennis" }),
|
|
2024
|
+
/* @__PURE__ */ jsx14(Text8, { size: "sm", children: "Informative \u2014 labelled, the pictogram alone carries the name" })
|
|
2025
|
+
] })
|
|
2026
|
+
] })
|
|
2027
|
+
] })
|
|
2028
|
+
] });
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
// src/GdsTypographySystemReference.tsx
|
|
2032
|
+
import { Code as Code7, Group as Group10, Stack as Stack10, Table as Table7, Text as Text9 } from "@mantine/core";
|
|
2033
|
+
import {
|
|
2034
|
+
GDS_TEXT_STEPS,
|
|
2035
|
+
GDS_WEIGHT_NAMES,
|
|
2036
|
+
resolveGdsTypographyTokens
|
|
2037
|
+
} from "@sovereignsquad/gds-theme";
|
|
2038
|
+
import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2039
|
+
function GdsTypographySystemReference() {
|
|
2040
|
+
const tokens = resolveGdsTypographyTokens();
|
|
2041
|
+
return /* @__PURE__ */ jsxs14(Stack10, { gap: "md", "data-gds-typography-system-reference": "", children: [
|
|
2042
|
+
/* @__PURE__ */ jsxs14(Stack10, { gap: "2xs", children: [
|
|
2043
|
+
/* @__PURE__ */ jsx15(Text9, { fw: 700, children: "Text-size steps \u2014 the whole scale" }),
|
|
2044
|
+
/* @__PURE__ */ jsxs14(Text9, { size: "sm", children: [
|
|
2045
|
+
"Nine steps on a modular scale (base \xD7 ratio); ",
|
|
2046
|
+
/* @__PURE__ */ jsx15(Code7, { children: "xs" }),
|
|
2047
|
+
"\u2013",
|
|
2048
|
+
/* @__PURE__ */ jsx15(Code7, { children: "xl" }),
|
|
2049
|
+
" are overridden to match Mantine\u2019s own non-uniform ramp exactly, the rest are computed from the ratio. Each line below renders at its own resolved size."
|
|
2050
|
+
] }),
|
|
2051
|
+
/* @__PURE__ */ jsx15(Stack10, { gap: "xs", children: GDS_TEXT_STEPS.map((step) => /* @__PURE__ */ jsxs14(Group10, { gap: "sm", align: "baseline", children: [
|
|
2052
|
+
/* @__PURE__ */ jsx15(
|
|
2053
|
+
Text9,
|
|
2054
|
+
{
|
|
2055
|
+
span: true,
|
|
2056
|
+
style: {
|
|
2057
|
+
fontSize: tokens[`--gds-font-size-${step}`],
|
|
2058
|
+
lineHeight: tokens[`--gds-line-height-${step}`] ?? void 0
|
|
2059
|
+
},
|
|
2060
|
+
children: step
|
|
2061
|
+
}
|
|
2062
|
+
),
|
|
2063
|
+
/* @__PURE__ */ jsx15(Text9, { size: "xs", c: "dimmed", children: /* @__PURE__ */ jsx15(Code7, { children: tokens[`--gds-font-size-${step}`] }) })
|
|
2064
|
+
] }, step)) })
|
|
2065
|
+
] }),
|
|
2066
|
+
/* @__PURE__ */ jsxs14(Stack10, { gap: "2xs", children: [
|
|
2067
|
+
/* @__PURE__ */ jsx15(Text9, { fw: 700, children: "Weights \u2014 four steps, always ascending" }),
|
|
2068
|
+
/* @__PURE__ */ jsx15(Text9, { size: "sm", children: "The axis rejects a weight scale that does not ascend at construction time, before it can render as broken text." }),
|
|
2069
|
+
/* @__PURE__ */ jsx15(Group10, { gap: "lg", children: GDS_WEIGHT_NAMES.map((name) => /* @__PURE__ */ jsxs14(Text9, { fw: Number(tokens[`--gds-weight-${name}`]), size: "lg", children: [
|
|
2070
|
+
name,
|
|
2071
|
+
" \xB7 ",
|
|
2072
|
+
tokens[`--gds-weight-${name}`]
|
|
2073
|
+
] }, name)) })
|
|
2074
|
+
] }),
|
|
2075
|
+
/* @__PURE__ */ jsxs14(Stack10, { gap: "2xs", children: [
|
|
2076
|
+
/* @__PURE__ */ jsx15(Text9, { fw: 700, children: "Font lanes \u2014 display, body, mono" }),
|
|
2077
|
+
/* @__PURE__ */ jsx15(Text9, { size: "sm", children: "Three roles a theme assigns a registered lane id to; component source asks for a role, never a font family directly." }),
|
|
2078
|
+
/* @__PURE__ */ jsx15(Table7, { withTableBorder: true, children: /* @__PURE__ */ jsx15(Table7.Tbody, { children: ["display", "body", "mono"].map((role) => /* @__PURE__ */ jsxs14(Table7.Tr, { children: [
|
|
2079
|
+
/* @__PURE__ */ jsx15(Table7.Td, { children: role }),
|
|
2080
|
+
/* @__PURE__ */ jsx15(Table7.Td, { children: /* @__PURE__ */ jsx15(Code7, { children: tokens[`--gds-font-lane-${role}`] }) })
|
|
2081
|
+
] }, role)) }) })
|
|
2082
|
+
] })
|
|
2083
|
+
] });
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
// src/GdsColorSystemReference.tsx
|
|
2087
|
+
import { Box as Box5, Group as Group11, Stack as Stack11, Text as Text10 } from "@mantine/core";
|
|
2088
|
+
import {
|
|
2089
|
+
ACCENT_ROLES,
|
|
2090
|
+
DOMINANT_ROLES,
|
|
2091
|
+
SECONDARY_ROLES,
|
|
2092
|
+
GDS_ACCENT_MODES,
|
|
2093
|
+
GDS_ACCENT_MODE_ENFORCEMENT,
|
|
2094
|
+
GDS_ACCENT_NAMES,
|
|
2095
|
+
getGdsVibeThemeCssVariables as getGdsVibeThemeCssVariables2
|
|
2096
|
+
} from "@sovereignsquad/gds-theme";
|
|
2097
|
+
import { jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2098
|
+
var roleVarName = (role) => `--gds-${role.replace(".", "-")}`;
|
|
2099
|
+
function RoleGroup({ title, description, roles, vars }) {
|
|
2100
|
+
return /* @__PURE__ */ jsxs15(Stack11, { gap: "2xs", children: [
|
|
2101
|
+
/* @__PURE__ */ jsx16(Text10, { fw: 700, children: title }),
|
|
2102
|
+
/* @__PURE__ */ jsx16(Text10, { size: "sm", children: description }),
|
|
2103
|
+
/* @__PURE__ */ jsx16(Group11, { gap: "sm", wrap: "wrap", children: roles.map((role) => {
|
|
2104
|
+
const value = vars[roleVarName(role)];
|
|
2105
|
+
return /* @__PURE__ */ jsxs15(Stack11, { gap: 4, align: "center", miw: 96, children: [
|
|
2106
|
+
/* @__PURE__ */ jsx16(
|
|
2107
|
+
Box5,
|
|
2108
|
+
{
|
|
2109
|
+
style: {
|
|
2110
|
+
width: 40,
|
|
2111
|
+
height: 40,
|
|
2112
|
+
background: value,
|
|
2113
|
+
border: "1px solid var(--gds-border-card, var(--mantine-color-gray-3))",
|
|
2114
|
+
borderRadius: "var(--gds-radius-sm)"
|
|
2115
|
+
}
|
|
2116
|
+
}
|
|
2117
|
+
),
|
|
2118
|
+
/* @__PURE__ */ jsx16(Text10, { size: "xs", fw: 600, children: role }),
|
|
2119
|
+
/* @__PURE__ */ jsx16(Text10, { size: "xs", c: "dimmed", ff: "monospace", children: value ?? "unset" })
|
|
2120
|
+
] }, role);
|
|
2121
|
+
}) })
|
|
2122
|
+
] });
|
|
2123
|
+
}
|
|
2124
|
+
function GdsColorSystemReference() {
|
|
2125
|
+
const light = getGdsVibeThemeCssVariables2("default", "light");
|
|
2126
|
+
return /* @__PURE__ */ jsxs15(Stack11, { gap: "md", "data-gds-color-system-reference": "", children: [
|
|
2127
|
+
/* @__PURE__ */ jsxs15(Stack11, { gap: "2xs", children: [
|
|
2128
|
+
/* @__PURE__ */ jsx16(Text10, { fw: 700, children: "Semantic roles \u2014 the 60-30-10 classification" }),
|
|
2129
|
+
/* @__PURE__ */ jsx16(Text10, { size: "sm", children: "Every BrandSemanticRole belongs to exactly one class, enforced at module load so a role added without a classification fails loudly rather than under-counting silently. Swatches shown for the default preset, light scheme." })
|
|
2130
|
+
] }),
|
|
2131
|
+
/* @__PURE__ */ jsx16(
|
|
2132
|
+
RoleGroup,
|
|
2133
|
+
{
|
|
2134
|
+
title: "Dominant (~60%)",
|
|
2135
|
+
description: "Large-surface roles: backgrounds, body text, disabled states. Low-saturation by design so a 60% share reads calm, not loud.",
|
|
2136
|
+
roles: DOMINANT_ROLES,
|
|
2137
|
+
vars: light
|
|
2138
|
+
}
|
|
2139
|
+
),
|
|
2140
|
+
/* @__PURE__ */ jsx16(
|
|
2141
|
+
RoleGroup,
|
|
2142
|
+
{
|
|
2143
|
+
title: "Secondary (~30%)",
|
|
2144
|
+
description: "Brand-chrome roles: moderate-frequency, identity-carrying. Appears often but never as the majority page fill.",
|
|
2145
|
+
roles: SECONDARY_ROLES,
|
|
2146
|
+
vars: light
|
|
2147
|
+
}
|
|
2148
|
+
),
|
|
2149
|
+
/* @__PURE__ */ jsx16(
|
|
2150
|
+
RoleGroup,
|
|
2151
|
+
{
|
|
2152
|
+
title: "Accent (~10%)",
|
|
2153
|
+
description: "Scarce-signal roles: CTAs, status, badges, focus rings. Rare and attention-carrying, never a background fill for a large surface.",
|
|
2154
|
+
roles: ACCENT_ROLES,
|
|
2155
|
+
vars: light
|
|
2156
|
+
}
|
|
2157
|
+
),
|
|
2158
|
+
/* @__PURE__ */ jsxs15(Stack11, { gap: "2xs", children: [
|
|
2159
|
+
/* @__PURE__ */ jsx16(Text10, { fw: 700, children: "The accent axis \u2014 governed names, shades, and modes" }),
|
|
2160
|
+
/* @__PURE__ */ jsx16(Text10, { size: "sm", children: "A theme supplies one ramp per accent name; every shade and mode below is derived from it, never hand-picked per combination." }),
|
|
2161
|
+
/* @__PURE__ */ jsxs15(Stack11, { gap: "xs", children: [
|
|
2162
|
+
/* @__PURE__ */ jsxs15(Text10, { size: "sm", children: [
|
|
2163
|
+
/* @__PURE__ */ jsx16(Text10, { component: "span", fw: 600, children: "Accent names" }),
|
|
2164
|
+
": ",
|
|
2165
|
+
GDS_ACCENT_NAMES.join(", ")
|
|
2166
|
+
] }),
|
|
2167
|
+
/* @__PURE__ */ jsx16(Stack11, { gap: 4, children: GDS_ACCENT_MODES.map((mode) => /* @__PURE__ */ jsxs15(Text10, { size: "sm", children: [
|
|
2168
|
+
/* @__PURE__ */ jsx16(Text10, { component: "span", fw: 600, children: mode }),
|
|
2169
|
+
" \u2014 ",
|
|
2170
|
+
GDS_ACCENT_MODE_ENFORCEMENT[mode].enforced ? "enforced" : "measured only",
|
|
2171
|
+
": ",
|
|
2172
|
+
GDS_ACCENT_MODE_ENFORCEMENT[mode].reason
|
|
2173
|
+
] }, mode)) })
|
|
2174
|
+
] })
|
|
2175
|
+
] }),
|
|
2176
|
+
/* @__PURE__ */ jsxs15(Stack11, { gap: "2xs", children: [
|
|
2177
|
+
/* @__PURE__ */ jsx16(Text10, { fw: 700, children: "Live contrast matrix \u2014 default preset, light scheme" }),
|
|
2178
|
+
/* @__PURE__ */ jsx16(Text10, { size: "sm", children: "Every accent x shade x mode combination, with its measured ratio and required threshold. Computed by evaluateGdsAccentContrast() \u2014 the same function verify:accent-contrast runs." }),
|
|
2179
|
+
/* @__PURE__ */ jsx16(GdsAccentContrastMatrix, { preset: "default", colorScheme: "light" })
|
|
2180
|
+
] })
|
|
2181
|
+
] });
|
|
2182
|
+
}
|
|
2183
|
+
|
|
2184
|
+
// src/GdsAccessibilitySystemReference.tsx
|
|
2185
|
+
import { Badge as Badge5, Box as Box6, Group as Group12, Stack as Stack12, Text as Text11 } from "@mantine/core";
|
|
2186
|
+
import { auditGdsAccessibilityFloor, gdsAccessibilityFloorRules } from "@sovereignsquad/gds-theme";
|
|
2187
|
+
import { jsx as jsx17, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2188
|
+
function GdsAccessibilitySystemReference() {
|
|
2189
|
+
const audit = auditGdsAccessibilityFloor();
|
|
2190
|
+
const holds = audit.violations.length === 0;
|
|
2191
|
+
return /* @__PURE__ */ jsxs16(Stack12, { gap: "md", "data-gds-accessibility-system-reference": "", children: [
|
|
2192
|
+
/* @__PURE__ */ jsxs16(Stack12, { gap: "2xs", children: [
|
|
2193
|
+
/* @__PURE__ */ jsxs16(Group12, { gap: "xs", align: "center", children: [
|
|
2194
|
+
/* @__PURE__ */ jsx17(Text11, { fw: 700, children: "Live audit \u2014 every preset, every scheme" }),
|
|
2195
|
+
/* @__PURE__ */ jsx17(Badge5, { color: holds ? "green" : "red", variant: "light", children: holds ? "Holds" : `${audit.violations.length} violation(s)` })
|
|
2196
|
+
] }),
|
|
2197
|
+
/* @__PURE__ */ jsxs16(Text11, { size: "sm", children: [
|
|
2198
|
+
audit.rulesEvaluated,
|
|
2199
|
+
" rule",
|
|
2200
|
+
audit.rulesEvaluated === 1 ? "" : "s",
|
|
2201
|
+
" checked across",
|
|
2202
|
+
" ",
|
|
2203
|
+
audit.presetsChecked,
|
|
2204
|
+
" preset/scheme combinations \u2014 the same function `npm run verify:a11y-floor` runs, called directly here rather than restated."
|
|
2205
|
+
] })
|
|
2206
|
+
] }),
|
|
2207
|
+
/* @__PURE__ */ jsxs16(Stack12, { gap: "2xs", children: [
|
|
2208
|
+
/* @__PURE__ */ jsx17(Text11, { fw: 700, children: "The rules \u2014 minimums no theme may cross" }),
|
|
2209
|
+
/* @__PURE__ */ jsx17(Text11, { size: "sm", children: "Every rule is checkable from resolved tokens alone, so it runs over all 25 presets in both schemes without a browser. Rules needing real rendered geometry belong to the runtime harness instead (forced-colors, focus-ring, touch-target-floor)." }),
|
|
2210
|
+
/* @__PURE__ */ jsx17(
|
|
2211
|
+
SimpleDataTable,
|
|
2212
|
+
{
|
|
2213
|
+
columns: [
|
|
2214
|
+
{ key: "id", header: "Rule" },
|
|
2215
|
+
{ key: "axis", header: "Axis" },
|
|
2216
|
+
{ key: "wcag", header: "WCAG" },
|
|
2217
|
+
{
|
|
2218
|
+
key: "rationale",
|
|
2219
|
+
header: "Why",
|
|
2220
|
+
// A bare `Text` in a table cell gets squeezed to whatever width the other
|
|
2221
|
+
// columns leave it -- measured live at 52px, wrapping this sentence-length
|
|
2222
|
+
// rationale into a near-vertical string and ballooning the row to 452px tall.
|
|
2223
|
+
// A minimum width gives it a readable wrap instead.
|
|
2224
|
+
render: (row) => /* @__PURE__ */ jsx17(Box6, { miw: 260, maw: 360, children: /* @__PURE__ */ jsx17(Text11, { size: "xs", c: "dimmed", children: row.rationale }) })
|
|
2225
|
+
}
|
|
2226
|
+
],
|
|
2227
|
+
rows: gdsAccessibilityFloorRules,
|
|
2228
|
+
getRowKey: (row) => row.id
|
|
2229
|
+
}
|
|
2230
|
+
)
|
|
2231
|
+
] })
|
|
2232
|
+
] });
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
// src/GdsButtonFeedbackReference.tsx
|
|
2236
|
+
import { useCallback, useEffect as useEffect3, useRef as useRef2, useState } from "react";
|
|
2237
|
+
import { Badge as Badge6, Box as Box7, Group as Group13, Stack as Stack13, Text as Text12 } from "@mantine/core";
|
|
2238
|
+
import { jsx as jsx18, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2239
|
+
var feedbackRows = Object.entries(GdsVocabulary).filter(([, config]) => Boolean(config.feedback)).map(([action, config]) => ({
|
|
2240
|
+
action,
|
|
2241
|
+
color: config.feedback.color,
|
|
2242
|
+
messageId: config.feedback.messageId,
|
|
2243
|
+
Icon: config.feedback.icon
|
|
2244
|
+
}));
|
|
2245
|
+
var totalActions = Object.keys(GdsVocabulary).length;
|
|
2246
|
+
var representativeByColor = Array.from(
|
|
2247
|
+
feedbackRows.reduce((acc, row) => acc.has(row.color) ? acc : acc.set(row.color, row), /* @__PURE__ */ new Map()).values()
|
|
2248
|
+
);
|
|
2249
|
+
function LiveFeedbackButton({ action }) {
|
|
2250
|
+
const [state, setState] = useState(null);
|
|
2251
|
+
const timer = useRef2(null);
|
|
2252
|
+
const fire = useCallback((next) => {
|
|
2253
|
+
setState(next);
|
|
2254
|
+
if (timer.current) clearTimeout(timer.current);
|
|
2255
|
+
timer.current = setTimeout(() => setState(null), GDS_BUTTON_FEEDBACK_DURATION_MS);
|
|
2256
|
+
}, []);
|
|
2257
|
+
useEffect3(() => () => {
|
|
2258
|
+
if (timer.current) clearTimeout(timer.current);
|
|
2259
|
+
}, []);
|
|
2260
|
+
return /* @__PURE__ */ jsxs17(Group13, { gap: "xs", wrap: "nowrap", children: [
|
|
2261
|
+
/* @__PURE__ */ jsx18(SemanticButton, { action, feedbackState: state, onClick: () => fire("success") }),
|
|
2262
|
+
/* @__PURE__ */ jsx18(SemanticButton, { action, variant: "light", feedbackState: state, onClick: () => fire("error") })
|
|
2263
|
+
] });
|
|
2264
|
+
}
|
|
2265
|
+
var brandIntentDemos = [
|
|
2266
|
+
{ variant: "outline-accent", label: "outline-accent" },
|
|
2267
|
+
{ variant: "gradient", label: "gradient" }
|
|
2268
|
+
];
|
|
2269
|
+
function BrandIntentDemo({ variant }) {
|
|
2270
|
+
const [state, setState] = useState(null);
|
|
2271
|
+
const timer = useRef2(null);
|
|
2272
|
+
const fire = useCallback((next) => {
|
|
2273
|
+
setState(next);
|
|
2274
|
+
if (timer.current) clearTimeout(timer.current);
|
|
2275
|
+
timer.current = setTimeout(() => setState(null), GDS_BUTTON_FEEDBACK_DURATION_MS);
|
|
2276
|
+
}, []);
|
|
2277
|
+
useEffect3(() => () => {
|
|
2278
|
+
if (timer.current) clearTimeout(timer.current);
|
|
2279
|
+
}, []);
|
|
2280
|
+
return /* @__PURE__ */ jsxs17(Group13, { gap: "xs", wrap: "wrap", "data-gds-brand-intent-demo": variant, align: "center", children: [
|
|
2281
|
+
/* @__PURE__ */ jsx18(SemanticButton, { action: "save", brandVariant: variant, feedbackState: state, onClick: () => fire("success") }),
|
|
2282
|
+
/* @__PURE__ */ jsx18(SemanticButton, { action: "delete", brandVariant: variant, feedbackState: state, onClick: () => fire("error") }),
|
|
2283
|
+
/* @__PURE__ */ jsx18(SemanticButton, { action: "preview", brandVariant: variant, loading: true }),
|
|
2284
|
+
/* @__PURE__ */ jsx18(SemanticButton, { action: "preview", brandVariant: variant, disabled: true })
|
|
2285
|
+
] });
|
|
2286
|
+
}
|
|
2287
|
+
function GdsButtonFeedbackReference() {
|
|
2288
|
+
return /* @__PURE__ */ jsxs17(Stack13, { gap: "md", "data-gds-button-feedback-reference": "", children: [
|
|
2289
|
+
/* @__PURE__ */ jsxs17(Stack13, { gap: "2xs", children: [
|
|
2290
|
+
/* @__PURE__ */ jsxs17(Group13, { gap: "xs", align: "center", children: [
|
|
2291
|
+
/* @__PURE__ */ jsx18(Text12, { fw: 700, children: "Live \u2014 click either button" }),
|
|
2292
|
+
/* @__PURE__ */ jsxs17(Badge6, { variant: "light", children: [
|
|
2293
|
+
GDS_BUTTON_FEEDBACK_DURATION_MS,
|
|
2294
|
+
"ms"
|
|
2295
|
+
] })
|
|
2296
|
+
] }),
|
|
2297
|
+
/* @__PURE__ */ jsxs17(Text12, { size: "sm", children: [
|
|
2298
|
+
"The left button fires the success treatment, the right one fires the error treatment. Watch the label and the icon change, then revert on their own after",
|
|
2299
|
+
" ",
|
|
2300
|
+
GDS_BUTTON_FEEDBACK_DURATION_MS,
|
|
2301
|
+
"ms \u2014 the duration is owned by the component (`GDS_BUTTON_FEEDBACK_DURATION_MS`), not by the caller. One row per distinct feedback colour declared in the vocabulary."
|
|
2302
|
+
] }),
|
|
2303
|
+
/* @__PURE__ */ jsx18(Stack13, { gap: "xs", children: representativeByColor.map((row) => /* @__PURE__ */ jsxs17(Group13, { gap: "sm", align: "center", wrap: "wrap", children: [
|
|
2304
|
+
/* @__PURE__ */ jsx18(Box7, { miw: 110, children: /* @__PURE__ */ jsx18(Text12, { size: "xs", c: "dimmed", ff: "monospace", children: row.color }) }),
|
|
2305
|
+
/* @__PURE__ */ jsx18(LiveFeedbackButton, { action: row.action })
|
|
2306
|
+
] }, row.action)) })
|
|
2307
|
+
] }),
|
|
2308
|
+
/* @__PURE__ */ jsxs17(Stack13, { gap: "2xs", children: [
|
|
2309
|
+
/* @__PURE__ */ jsx18(Text12, { fw: 700, children: "Success feedback is per action" }),
|
|
2310
|
+
/* @__PURE__ */ jsxs17(Text12, { size: "sm", children: [
|
|
2311
|
+
feedbackRows.length,
|
|
2312
|
+
" of ",
|
|
2313
|
+
totalActions,
|
|
2314
|
+
" governed actions declare their own success feedback \u2014 icon, colour, and message key. The icon and message are the action's own, not a generic tick: a `delete` confirms with \u201CDeleted\u201D and its own glyph."
|
|
2315
|
+
] }),
|
|
2316
|
+
/* @__PURE__ */ jsx18(Text12, { size: "sm", c: "dimmed", children: "The colour column is what each action declares in the vocabulary. What reaches the screen also depends on the active preset's governed Button rules, which repaint some button surfaces by design \u2014 click the buttons above in the preset you care about rather than reading a colour off this table." }),
|
|
2317
|
+
/* @__PURE__ */ jsx18(
|
|
2318
|
+
SimpleDataTable,
|
|
2319
|
+
{
|
|
2320
|
+
columns: [
|
|
2321
|
+
{ key: "action", header: "Action" },
|
|
2322
|
+
{
|
|
2323
|
+
key: "Icon",
|
|
2324
|
+
header: "Icon",
|
|
2325
|
+
render: (row) => /* @__PURE__ */ jsx18(row.Icon, { size: "1rem" })
|
|
2326
|
+
},
|
|
2327
|
+
{ key: "color", header: "Colour (declared)" },
|
|
2328
|
+
{
|
|
2329
|
+
key: "messageId",
|
|
2330
|
+
header: "Message key",
|
|
2331
|
+
// A bare key in a table cell gets squeezed by the other columns; a minimum width
|
|
2332
|
+
// keeps the dotted id on one line instead of wrapping per segment.
|
|
2333
|
+
render: (row) => /* @__PURE__ */ jsx18(Box7, { miw: 200, children: /* @__PURE__ */ jsx18(Text12, { size: "xs", c: "dimmed", ff: "monospace", children: row.messageId }) })
|
|
2334
|
+
}
|
|
2335
|
+
],
|
|
2336
|
+
rows: feedbackRows,
|
|
2337
|
+
getRowKey: (row) => row.action
|
|
2338
|
+
}
|
|
2339
|
+
)
|
|
2340
|
+
] }),
|
|
2341
|
+
/* @__PURE__ */ jsxs17(Stack13, { gap: "2xs", children: [
|
|
2342
|
+
/* @__PURE__ */ jsx18(Text12, { fw: 700, children: "Error feedback is uniform" }),
|
|
2343
|
+
/* @__PURE__ */ jsx18(Text12, { size: "sm", children: "Where success is per action, the error treatment is fixed: the same cross icon and the `gds.feedback.error` message key for every action, so a failure reads the same way wherever it appears. Pass `feedbackText` to replace the label in either state \u2014 the icon stays governed." })
|
|
2344
|
+
] }),
|
|
2345
|
+
/* @__PURE__ */ jsxs17(Stack13, { gap: "2xs", "data-gds-brand-intent-reference": "", children: [
|
|
2346
|
+
/* @__PURE__ */ jsxs17(Group13, { gap: "xs", align: "center", children: [
|
|
2347
|
+
/* @__PURE__ */ jsx18(Text12, { fw: 700, children: "Brand intents \u2014 outline-accent & gradient" }),
|
|
2348
|
+
/* @__PURE__ */ jsxs17(Badge6, { variant: "light", children: [
|
|
2349
|
+
GDS_BUTTON_OUTLINE_ACCENT_STROKE_PX,
|
|
2350
|
+
"px stroke"
|
|
2351
|
+
] }),
|
|
2352
|
+
/* @__PURE__ */ jsxs17(Badge6, { variant: "light", children: [
|
|
2353
|
+
GDS_BUTTON_GRADIENT_TEXT_FLOOR.fontSizePx,
|
|
2354
|
+
"px / ",
|
|
2355
|
+
GDS_BUTTON_GRADIENT_TEXT_FLOOR.fontWeight,
|
|
2356
|
+
" label floor"
|
|
2357
|
+
] })
|
|
2358
|
+
] }),
|
|
2359
|
+
/* @__PURE__ */ jsxs17(Text12, { size: "sm", children: [
|
|
2360
|
+
"Two brand treatments the inline brand-variant map cannot express \u2014 an accent-as-outline action (transparent fill, accent stroke and label) and the reserved Scout AI gradient action (a solid fill where the active preset declares no ",
|
|
2361
|
+
/* @__PURE__ */ jsx18("code", { children: "ai" }),
|
|
2362
|
+
` lane). Hover and press either "Save" button to see the stylesheet-driven wash/deepen and brightness states; the "Delete" button fires the same transient error treatment as above, which fully replaces the intent's own paint for its duration. The third and fourth buttons in each row are the loading and disabled states.`
|
|
2363
|
+
] }),
|
|
2364
|
+
/* @__PURE__ */ jsx18(Stack13, { gap: "xs", children: brandIntentDemos.map((demo) => /* @__PURE__ */ jsxs17(Group13, { gap: "sm", align: "center", wrap: "wrap", children: [
|
|
2365
|
+
/* @__PURE__ */ jsx18(Box7, { miw: 110, children: /* @__PURE__ */ jsx18(Text12, { size: "xs", c: "dimmed", ff: "monospace", children: demo.label }) }),
|
|
2366
|
+
/* @__PURE__ */ jsx18(BrandIntentDemo, { variant: demo.variant })
|
|
2367
|
+
] }, demo.variant)) })
|
|
2368
|
+
] })
|
|
2369
|
+
] });
|
|
2370
|
+
}
|
|
417
2371
|
export {
|
|
418
2372
|
AISearchCard,
|
|
419
2373
|
AccentPanel,
|
|
@@ -451,6 +2405,7 @@ export {
|
|
|
451
2405
|
ClippedFlexChild,
|
|
452
2406
|
CommandPalette,
|
|
453
2407
|
CommandRegistryProvider,
|
|
2408
|
+
ConfirmChecklist,
|
|
454
2409
|
ConfirmDialog,
|
|
455
2410
|
ConsumerDashboardGrid,
|
|
456
2411
|
ConsumerSection,
|
|
@@ -460,6 +2415,7 @@ export {
|
|
|
460
2415
|
CreatorThemeDiagnostics,
|
|
461
2416
|
CtaButtonGroup,
|
|
462
2417
|
DataToolbar,
|
|
2418
|
+
DetailFactsTable,
|
|
463
2419
|
DetailProfileShell,
|
|
464
2420
|
DiscoveryShell,
|
|
465
2421
|
DocsCodeBlock,
|
|
@@ -479,29 +2435,85 @@ export {
|
|
|
479
2435
|
FoodMenuSection,
|
|
480
2436
|
FormErrorSummary,
|
|
481
2437
|
FormField,
|
|
2438
|
+
GDS_BUTTON_FEEDBACK_DURATION_MS,
|
|
2439
|
+
GDS_BUTTON_GRADIENT_TEXT_FLOOR,
|
|
2440
|
+
GDS_BUTTON_OUTLINE_ACCENT_STROKE_PX,
|
|
2441
|
+
GDS_DETAIL_FACTS_LABEL_COLUMN_PX,
|
|
2442
|
+
GDS_DETAIL_FACT_IDS,
|
|
2443
|
+
GDS_HERO_SEARCH_FIELD_FLEX_BASIS_PX,
|
|
2444
|
+
GDS_HERO_SEARCH_FIELD_MIN_WIDTH_PX,
|
|
2445
|
+
GDS_LISTING_PICK_BADGE_FONT_SIZE_PX,
|
|
2446
|
+
GDS_LISTING_PICK_BADGE_ICON_PX,
|
|
2447
|
+
GDS_LISTING_PICK_BADGE_INSET_PX,
|
|
2448
|
+
GDS_LISTING_PICK_BADGE_LINE_HEIGHT_PX,
|
|
2449
|
+
GDS_LISTING_PICK_BADGE_PADDING_BLOCK_PX,
|
|
2450
|
+
GDS_LISTING_PICK_BADGE_PADDING_INLINE_PX,
|
|
2451
|
+
GDS_LISTING_TILE_SIZE_PX,
|
|
2452
|
+
GDS_MAP_WASH_SATURATION,
|
|
2453
|
+
GDS_MAP_WASH_TINT,
|
|
2454
|
+
GDS_PICTOGRAM_BASE_STROKE,
|
|
2455
|
+
GDS_PICTOGRAM_DISABLED_OPACITY,
|
|
2456
|
+
GDS_PICTOGRAM_GRID,
|
|
2457
|
+
GDS_PICTOGRAM_HERO_LAYERS,
|
|
2458
|
+
GDS_PICTOGRAM_SCALE_PX,
|
|
2459
|
+
GDS_PICTOGRAM_STROKE_BY_SCALE,
|
|
2460
|
+
GDS_PICTOGRAM_TREATMENT_SCALE,
|
|
2461
|
+
GDS_PIN_APPROXIMATE_DASH,
|
|
2462
|
+
GDS_PIN_EMOJI_SCALE,
|
|
2463
|
+
GDS_PIN_EMPHASIS_STROKE,
|
|
2464
|
+
GDS_PIN_HEAD_CENTER_OFFSET,
|
|
2465
|
+
GDS_PIN_ICON_SCALE,
|
|
2466
|
+
GDS_PIN_SELECTED_SCALE,
|
|
2467
|
+
GDS_PIN_SILHOUETTE_PATH,
|
|
2468
|
+
GDS_QUICK_START_ICON_BOX_PX,
|
|
482
2469
|
GameBoardTile,
|
|
2470
|
+
GdsAccentContrastMatrix,
|
|
483
2471
|
GdsAccessGate,
|
|
2472
|
+
GdsAccessibilitySystemReference,
|
|
484
2473
|
GdsAdminDashboardTemplate,
|
|
485
2474
|
GdsAnalyticsTemplate,
|
|
486
2475
|
GdsAreaChart,
|
|
487
2476
|
GdsAssetManager,
|
|
488
2477
|
GdsAssetPreviewCard,
|
|
2478
|
+
GdsBadge,
|
|
2479
|
+
GdsBadgeShapeCircle,
|
|
2480
|
+
GdsBadgeShapeHexagon,
|
|
2481
|
+
GdsBadgeShapePin,
|
|
2482
|
+
GdsBadgeShapeRosette,
|
|
2483
|
+
GdsBadgeShapeShield,
|
|
2484
|
+
GdsBadgeShapeSquircle,
|
|
2485
|
+
GdsBadgeShapes,
|
|
2486
|
+
GdsBadgeStack,
|
|
2487
|
+
GdsBadgeStackLayer,
|
|
489
2488
|
GdsBarChart,
|
|
490
2489
|
GdsBenchmarkBarChart,
|
|
491
2490
|
GdsBleed,
|
|
492
2491
|
GdsBox,
|
|
2492
|
+
GdsBreadcrumbs,
|
|
2493
|
+
GdsButtonFeedbackReference,
|
|
493
2494
|
GdsCalendarHeatmapChart,
|
|
494
2495
|
GdsChart,
|
|
495
2496
|
GdsChartAxis,
|
|
496
2497
|
GdsChartLegend,
|
|
497
2498
|
GdsChartTooltip,
|
|
498
2499
|
GdsCluster,
|
|
2500
|
+
GdsColorSystemReference,
|
|
2501
|
+
GdsColumnGrid,
|
|
2502
|
+
GdsColumnGridItem,
|
|
2503
|
+
GdsCompareButton,
|
|
499
2504
|
GdsConfirmProvider,
|
|
500
2505
|
GdsContainer,
|
|
501
2506
|
GdsContentPatternCatalog,
|
|
2507
|
+
GdsCountBadge,
|
|
502
2508
|
GdsCrudEditorTemplate,
|
|
503
2509
|
GdsDataTable,
|
|
2510
|
+
GdsDateInput,
|
|
2511
|
+
GdsDateRangeInput,
|
|
2512
|
+
GdsDateTimeInput,
|
|
2513
|
+
GdsDensityProvider,
|
|
2514
|
+
GdsDensitySpacingSystemReference,
|
|
504
2515
|
GdsDesignHandoffCatalog,
|
|
2516
|
+
GdsDesignRuleProfilePanel,
|
|
505
2517
|
GdsDialog,
|
|
506
2518
|
GdsDirectionBoundary,
|
|
507
2519
|
GdsDivergingBarChart,
|
|
@@ -513,35 +2525,58 @@ export {
|
|
|
513
2525
|
GdsFormattedDate,
|
|
514
2526
|
GdsFormattedNumber,
|
|
515
2527
|
GdsGaugeChart,
|
|
2528
|
+
GdsGeneratedAvatar,
|
|
2529
|
+
GdsGeneratedHero,
|
|
2530
|
+
GdsGeneratedMark,
|
|
2531
|
+
GdsGeneratedThumbnail,
|
|
516
2532
|
GdsGrid,
|
|
2533
|
+
GdsGuidedTour,
|
|
517
2534
|
GdsHistogramChart,
|
|
518
2535
|
GdsIcon,
|
|
2536
|
+
GdsIconBadge,
|
|
2537
|
+
GdsIconSystemReference,
|
|
519
2538
|
GdsIcons,
|
|
520
2539
|
GdsInline,
|
|
2540
|
+
GdsInlineLink,
|
|
521
2541
|
GdsLayoutTemplatePreview,
|
|
522
2542
|
GdsLineChart,
|
|
523
2543
|
GdsLocaleText,
|
|
2544
|
+
GdsLogoLockup,
|
|
524
2545
|
GdsLongitudinalChart,
|
|
2546
|
+
GdsMapBasemapWash,
|
|
2547
|
+
GdsMapFilterRail,
|
|
2548
|
+
GdsMapPinBadge,
|
|
2549
|
+
GdsMapPinPreviewCard,
|
|
525
2550
|
GdsMaturityRadarChart,
|
|
526
2551
|
GdsMediaFrame,
|
|
2552
|
+
GdsMeter,
|
|
527
2553
|
GdsModal,
|
|
2554
|
+
GdsMotionSystemReference,
|
|
2555
|
+
GdsNotificationBell,
|
|
528
2556
|
GdsNotificationCenter,
|
|
529
2557
|
GdsNotificationProvider,
|
|
530
2558
|
GdsOverflowFrame,
|
|
531
2559
|
GdsPageTemplateCatalog,
|
|
2560
|
+
GdsPictogram,
|
|
2561
|
+
GdsPictogramSystemReference,
|
|
2562
|
+
GdsPinSystemReference,
|
|
532
2563
|
GdsPlural,
|
|
533
2564
|
GdsPublicEventTemplate,
|
|
534
2565
|
GdsRadarChart,
|
|
2566
|
+
GdsRatingDisplay,
|
|
535
2567
|
GdsRatingScale,
|
|
536
2568
|
GdsRelativeTime,
|
|
2569
|
+
GdsRemovableTag,
|
|
537
2570
|
GdsResourceManager,
|
|
538
2571
|
GdsResourceManagerTemplate,
|
|
539
2572
|
GdsResponsiveChartFrame,
|
|
540
2573
|
GdsResponsiveVisibility,
|
|
541
2574
|
GdsSafeBox,
|
|
2575
|
+
GdsSavedIndicator,
|
|
542
2576
|
GdsSchemaForm,
|
|
543
2577
|
GdsSegmentedControl,
|
|
544
2578
|
GdsSettingsTemplate,
|
|
2579
|
+
GdsShapeElevationSystemReference,
|
|
545
2580
|
GdsSheet,
|
|
546
2581
|
GdsSidePanel,
|
|
547
2582
|
GdsSidebar,
|
|
@@ -554,15 +2589,24 @@ export {
|
|
|
554
2589
|
GdsSymmetryChart,
|
|
555
2590
|
GdsTelemetryProvider,
|
|
556
2591
|
GdsToastProvider,
|
|
2592
|
+
GdsTourButton,
|
|
2593
|
+
GdsTourProvider,
|
|
2594
|
+
GdsTypographySystemReference,
|
|
557
2595
|
GdsValidationSummary,
|
|
2596
|
+
GdsViewportFrame,
|
|
558
2597
|
GdsVocabulary,
|
|
559
2598
|
GdsWizardStepper,
|
|
560
2599
|
Group,
|
|
2600
|
+
HeroSearchPanel,
|
|
561
2601
|
InlineAlert,
|
|
562
2602
|
InlineEmphasis,
|
|
563
2603
|
InlineText,
|
|
2604
|
+
KanbanBoard,
|
|
2605
|
+
KanbanCard,
|
|
2606
|
+
KanbanColumn,
|
|
564
2607
|
LabelTag,
|
|
565
2608
|
LabelText,
|
|
2609
|
+
LastCheckedLabel,
|
|
566
2610
|
LayeredSurfaceSlot,
|
|
567
2611
|
ListItemSection,
|
|
568
2612
|
ListingCard,
|
|
@@ -616,9 +2660,11 @@ export {
|
|
|
616
2660
|
PlaybackControls,
|
|
617
2661
|
PlaybackOverlayControls,
|
|
618
2662
|
PlaybackSurface,
|
|
2663
|
+
PriceEstimateLabel,
|
|
619
2664
|
ProductCard,
|
|
620
2665
|
Progress,
|
|
621
2666
|
ProgressCard,
|
|
2667
|
+
ProviderCTA,
|
|
622
2668
|
ProviderIdentityButton,
|
|
623
2669
|
ProviderIdentityButtonGroup,
|
|
624
2670
|
PublicAcceptStep,
|
|
@@ -635,11 +2681,12 @@ export {
|
|
|
635
2681
|
PublicShareOverlay,
|
|
636
2682
|
PublicShell,
|
|
637
2683
|
PublicSiteFooter,
|
|
2684
|
+
QuickStartCard,
|
|
638
2685
|
Radio,
|
|
639
2686
|
ReferenceLinkGrid,
|
|
640
2687
|
ReferenceLocaleNotice,
|
|
641
2688
|
ReferenceSection,
|
|
642
|
-
|
|
2689
|
+
ReportOutdatedLink,
|
|
643
2690
|
ReportingSection,
|
|
644
2691
|
ResultSummary,
|
|
645
2692
|
ScrollArea,
|
|
@@ -660,12 +2707,14 @@ export {
|
|
|
660
2707
|
SocialAuthButtons,
|
|
661
2708
|
SoftChipGroup,
|
|
662
2709
|
SortMenu,
|
|
2710
|
+
SourceBlock,
|
|
663
2711
|
Stack,
|
|
664
2712
|
StateBlock,
|
|
665
2713
|
StatsSection,
|
|
666
2714
|
StatusBadge,
|
|
667
2715
|
StreamingIndicator,
|
|
668
2716
|
Switch,
|
|
2717
|
+
TRUST_BADGE_DEFINITIONS,
|
|
669
2718
|
Table,
|
|
670
2719
|
Tabs,
|
|
671
2720
|
TextInput,
|
|
@@ -673,6 +2722,7 @@ export {
|
|
|
673
2722
|
ThemeIcon,
|
|
674
2723
|
ThemeToggle,
|
|
675
2724
|
Tooltip,
|
|
2725
|
+
TrustBadge,
|
|
676
2726
|
UploadDropzone,
|
|
677
2727
|
ValidatedFieldMessage,
|
|
678
2728
|
VisuallyHidden,
|
|
@@ -690,6 +2740,7 @@ export {
|
|
|
690
2740
|
createGdsNotificationId,
|
|
691
2741
|
createGdsOwnedContrastTokens,
|
|
692
2742
|
createGdsPageTemplateEvent,
|
|
2743
|
+
createGdsPictogramFamily,
|
|
693
2744
|
createGdsResourceAdapter,
|
|
694
2745
|
createGdsStyleContract,
|
|
695
2746
|
createGdsTableAdapter,
|
|
@@ -708,6 +2759,11 @@ export {
|
|
|
708
2759
|
formatGdsPlural,
|
|
709
2760
|
formatGdsRelativeTime,
|
|
710
2761
|
fr,
|
|
2762
|
+
gdsActivityPictograms,
|
|
2763
|
+
gdsAvatarInitials,
|
|
2764
|
+
gdsBadgeAccentColors,
|
|
2765
|
+
gdsBadgeAccentShades,
|
|
2766
|
+
gdsBreakpointByAlias,
|
|
711
2767
|
gdsCardDensityPaddingMap,
|
|
712
2768
|
gdsCardGapMap,
|
|
713
2769
|
gdsCardMediaRatioMap,
|
|
@@ -715,13 +2771,17 @@ export {
|
|
|
715
2771
|
gdsCardTitleOrderMap,
|
|
716
2772
|
gdsChartSetATypeRegistry,
|
|
717
2773
|
gdsChartSetBTypeRegistry,
|
|
2774
|
+
gdsChartSetCTypeRegistry,
|
|
718
2775
|
gdsChartTypeRegistry,
|
|
719
2776
|
gdsDefaultChartLegend,
|
|
720
2777
|
gdsFormReducer,
|
|
2778
|
+
gdsGeneratedPaletteCssRefs,
|
|
721
2779
|
gdsIconRegistry,
|
|
722
2780
|
gdsIconToneColor,
|
|
723
2781
|
gdsLocales,
|
|
724
2782
|
gdsOperationalEventTypes,
|
|
2783
|
+
gdsPictogramUsageRules,
|
|
2784
|
+
gdsSeededRandom,
|
|
725
2785
|
gdsSeriesPalette,
|
|
726
2786
|
gdsStyle,
|
|
727
2787
|
gdsUxFailureReasons,
|
|
@@ -731,6 +2791,7 @@ export {
|
|
|
731
2791
|
getGdsAccessGateStates,
|
|
732
2792
|
getGdsAccessibilityEvidence,
|
|
733
2793
|
getGdsAccessibilityEvidenceSummary,
|
|
2794
|
+
getGdsActivityPictogramKeys,
|
|
734
2795
|
getGdsBlockTypes,
|
|
735
2796
|
getGdsContentPattern,
|
|
736
2797
|
getGdsContentPatterns,
|
|
@@ -762,15 +2823,20 @@ export {
|
|
|
762
2823
|
getSupportedProviderIdentityIds,
|
|
763
2824
|
he,
|
|
764
2825
|
hu,
|
|
2826
|
+
isGdsActivityPictogramKey,
|
|
765
2827
|
isGdsChartSetAType,
|
|
766
2828
|
isGdsChartSetBType,
|
|
2829
|
+
isGdsChartSetCType,
|
|
767
2830
|
isGdsIconKey,
|
|
768
2831
|
isGdsOperationalEventType,
|
|
769
2832
|
isPresentationMode,
|
|
770
2833
|
it,
|
|
2834
|
+
ja,
|
|
771
2835
|
jsonSchemaToGdsFormSchema,
|
|
2836
|
+
ko,
|
|
772
2837
|
listingQueryReducer,
|
|
773
2838
|
mergeGdsVocabularyPacks,
|
|
2839
|
+
normalizeGdsPhrase,
|
|
774
2840
|
normalizeGdsResponsiveValue,
|
|
775
2841
|
openApiToGdsFormSchema,
|
|
776
2842
|
partnerDiscoveryDefaultAmenities,
|
|
@@ -785,7 +2851,10 @@ export {
|
|
|
785
2851
|
resolveAccentPanelStyles,
|
|
786
2852
|
resolveGdsAccessAdapterState,
|
|
787
2853
|
resolveGdsAccessState,
|
|
2854
|
+
resolveGdsActivityPictogramLabel,
|
|
788
2855
|
resolveGdsCardContract,
|
|
2856
|
+
resolveGdsCategoryBadgeIcon,
|
|
2857
|
+
resolveGdsGeneratedPaletteHex,
|
|
789
2858
|
resolveGdsLayoutStyle,
|
|
790
2859
|
resolveGdsLocale,
|
|
791
2860
|
resolveGdsMessage,
|
|
@@ -797,19 +2866,28 @@ export {
|
|
|
797
2866
|
sortGdsLocaleStrings,
|
|
798
2867
|
togglePartnerAmenity,
|
|
799
2868
|
togglePartnerPrice,
|
|
2869
|
+
translateGdsDom,
|
|
2870
|
+
translateGdsPhrase,
|
|
800
2871
|
useCommandLauncher,
|
|
801
2872
|
useDiscoveryShellState,
|
|
802
2873
|
useGdsAssetUploadQueue,
|
|
2874
|
+
useGdsBrowseSelection,
|
|
2875
|
+
useGdsCardContract,
|
|
803
2876
|
useGdsConfirm,
|
|
804
2877
|
useGdsDataTable,
|
|
2878
|
+
useGdsDensity,
|
|
805
2879
|
useGdsDirection,
|
|
2880
|
+
useGdsDomPhraseTranslation,
|
|
806
2881
|
useGdsForm,
|
|
807
2882
|
useGdsFormOrchestration,
|
|
808
2883
|
useGdsFormSnapshot,
|
|
2884
|
+
useGdsKanbanOrientation,
|
|
809
2885
|
useGdsNotifications,
|
|
810
2886
|
useGdsResourceManager,
|
|
811
2887
|
useGdsTelemetry,
|
|
812
2888
|
useGdsToasts,
|
|
2889
|
+
useGdsTour,
|
|
2890
|
+
useHasSeenTour,
|
|
813
2891
|
useListingState,
|
|
814
2892
|
useOverlayManager,
|
|
815
2893
|
usePlaybackKeyboardControls,
|
|
@@ -824,5 +2902,6 @@ export {
|
|
|
824
2902
|
validateGdsLayout,
|
|
825
2903
|
validateGdsPageTemplates,
|
|
826
2904
|
validateGdsTaskPatterns,
|
|
2905
|
+
zh,
|
|
827
2906
|
zodToGdsFormSchema
|
|
828
2907
|
};
|