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