@sovereignsquad/gds-core 6.8.0 → 6.10.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 (90) hide show
  1. package/README.md +33 -0
  2. package/dist/{GdsBadge-DqTdnomt.d.mts → GdsBadge-j_kQnIL0.d.mts} +1 -1
  3. package/dist/{GdsBadge-DqTdnomt.d.ts → GdsBadge-j_kQnIL0.d.ts} +1 -1
  4. package/dist/{PartnerDiscovery-Bwxixtka.d.mts → PartnerDiscovery-Dy3YnO02.d.mts} +15 -8
  5. package/dist/{PartnerDiscovery-As_-JKtb.d.ts → PartnerDiscovery-pdJmaKwq.d.ts} +15 -8
  6. package/dist/{QuickStartCard-CB7r-85z.d.ts → QuickStartCard-BqbYrKRY.d.ts} +4373 -131
  7. package/dist/{QuickStartCard-xIP1gbCL.d.mts → QuickStartCard-lE9kMqH8.d.mts} +4373 -131
  8. package/dist/{chunk-QO653DAE.mjs → chunk-7NNKXZFF.mjs} +120 -3
  9. package/dist/{chunk-GMK5GXWR.mjs → chunk-CWMDWMYL.mjs} +120 -3
  10. package/dist/{chunk-GGDCO5HR.mjs → chunk-D65VHUXK.mjs} +120 -3
  11. package/dist/{chunk-JTMPFTCK.mjs → chunk-J4TSXITU.mjs} +120 -3
  12. package/dist/{chunk-TJ3WMH25.mjs → chunk-LTNPECWV.mjs} +1696 -757
  13. package/dist/{chunk-BH2SMTND.mjs → chunk-MO5TLIIB.mjs} +1716 -2010
  14. package/dist/{chunk-VU2JLVD3.mjs → chunk-NTNVQZJU.mjs} +1 -1
  15. package/dist/{chunk-KFEPREUF.mjs → chunk-PCG34VRY.mjs} +13 -2
  16. package/dist/{chunk-H2QNW4D5.mjs → chunk-PJR3OJJD.mjs} +912 -212
  17. package/dist/{chunk-IHPZ7BNV.mjs → chunk-PLJT4I7B.mjs} +164 -47
  18. package/dist/{chunk-BHR4A3C6.mjs → chunk-RBXAJJB2.mjs} +120 -3
  19. package/dist/{chunk-MPZFCWWS.mjs → chunk-SPPTDVJC.mjs} +2 -1
  20. package/dist/{chunk-NWS7KJ2G.mjs → chunk-SV3VL3GG.mjs} +3 -2
  21. package/dist/{chunk-ZCQXBKDM.mjs → chunk-TD3JPMMO.mjs} +5 -2
  22. package/dist/{chunk-GKNSUUUE.mjs → chunk-TVGDH5O5.mjs} +120 -3
  23. package/dist/{chunk-SHQDVHGR.mjs → chunk-V5WUGRFL.mjs} +120 -3
  24. package/dist/{chunk-4LG6EED4.mjs → chunk-V6SP5O4D.mjs} +147 -30
  25. package/dist/{chunk-2XZMNT7I.mjs → chunk-XL7MGQJ4.mjs} +120 -3
  26. package/dist/{chunk-CNTTKK3H.mjs → chunk-YASVRGKJ.mjs} +121 -4
  27. package/dist/{chunk-6PBDLFSF.mjs → chunk-Z6XXK57E.mjs} +120 -3
  28. package/dist/client.d.mts +459 -51
  29. package/dist/client.d.ts +459 -51
  30. package/dist/client.js +13279 -10520
  31. package/dist/client.mjs +73 -33
  32. package/dist/{en-Dd7uvXnv.d.ts → en-CzuiMnTG.d.mts} +119 -2
  33. package/dist/{en-Dd7uvXnv.d.mts → en-CzuiMnTG.d.ts} +119 -2
  34. package/dist/index.d.mts +24 -22
  35. package/dist/index.d.ts +24 -22
  36. package/dist/index.js +10850 -7951
  37. package/dist/index.mjs +250 -71
  38. package/dist/locales/lazy/all.js +5449 -0
  39. package/dist/locales/lazy/all.mjs +50 -24
  40. package/dist/locales/lazy/ar.js +244 -7
  41. package/dist/locales/lazy/ar.mjs +10 -4
  42. package/dist/locales/lazy/de.js +244 -7
  43. package/dist/locales/lazy/de.mjs +10 -4
  44. package/dist/locales/lazy/es.js +244 -7
  45. package/dist/locales/lazy/es.mjs +10 -4
  46. package/dist/locales/lazy/fr.js +244 -7
  47. package/dist/locales/lazy/fr.mjs +10 -4
  48. package/dist/locales/lazy/he.js +245 -8
  49. package/dist/locales/lazy/he.mjs +10 -4
  50. package/dist/locales/lazy/hu.js +244 -7
  51. package/dist/locales/lazy/hu.mjs +10 -4
  52. package/dist/locales/lazy/index.d.mts +1 -1
  53. package/dist/locales/lazy/index.d.ts +1 -1
  54. package/dist/locales/lazy/index.js +124 -4
  55. package/dist/locales/lazy/index.mjs +2 -2
  56. package/dist/locales/lazy/it.js +244 -7
  57. package/dist/locales/lazy/it.mjs +10 -4
  58. package/dist/locales/lazy/ja.js +244 -7
  59. package/dist/locales/lazy/ja.mjs +10 -4
  60. package/dist/locales/lazy/ko.js +288 -51
  61. package/dist/locales/lazy/ko.mjs +10 -4
  62. package/dist/locales/lazy/ru.js +244 -7
  63. package/dist/locales/lazy/ru.mjs +10 -4
  64. package/dist/locales/lazy/zh.js +271 -34
  65. package/dist/locales/lazy/zh.mjs +10 -4
  66. package/dist/map.css +3 -9
  67. package/dist/map.d.mts +1 -1
  68. package/dist/map.d.ts +1 -1
  69. package/dist/map.js +2 -1
  70. package/dist/map.mjs +2 -2
  71. package/dist/reference-theme-explorer.d.mts +3 -1
  72. package/dist/reference-theme-explorer.d.ts +3 -1
  73. package/dist/reference-theme-explorer.js +2607 -509
  74. package/dist/reference-theme-explorer.mjs +58 -38
  75. package/dist/server.d.mts +6 -6
  76. package/dist/server.d.ts +6 -6
  77. package/dist/server.js +3336 -1513
  78. package/dist/server.mjs +43 -33
  79. package/package.json +10 -5
  80. package/dist/chunk-2AX4NCID.mjs +0 -9
  81. package/dist/chunk-2IUOZG4C.mjs +0 -9
  82. package/dist/chunk-3D7BVS7D.mjs +0 -9
  83. package/dist/chunk-6LULEPIE.mjs +0 -9
  84. package/dist/chunk-J6MXKFIM.mjs +0 -9
  85. package/dist/chunk-LNVLXOLI.mjs +0 -9
  86. package/dist/chunk-MAIU557K.mjs +0 -9
  87. package/dist/chunk-OC3M4CZY.mjs +0 -9
  88. package/dist/chunk-RCLWUNMR.mjs +0 -9
  89. package/dist/chunk-WNOWHB26.mjs +0 -9
  90. package/dist/chunk-XLPTCIXT.mjs +0 -9
package/dist/index.mjs CHANGED
@@ -7,19 +7,25 @@ import {
7
7
  ConfirmDialog,
8
8
  DiscoveryShell,
9
9
  DocsCodeBlock,
10
+ DocsCodeDisclosure,
10
11
  DocsHeaderActionSelect,
11
12
  DocsShell,
12
13
  FileUploadField,
13
14
  FormErrorSummary,
15
+ GDS_BUTTON_CONFIRM_WINDOW_MS,
14
16
  GDS_BUTTON_FEEDBACK_DURATION_MS,
15
17
  GDS_BUTTON_GRADIENT_TEXT_FLOOR,
16
18
  GDS_BUTTON_OUTLINE_ACCENT_STROKE_PX,
19
+ GDS_BUTTON_PENDING_DELAY_MS,
20
+ GDS_BUTTON_PENDING_MIN_MS,
17
21
  GDS_HERO_SEARCH_FIELD_FLEX_BASIS_PX,
18
22
  GDS_HERO_SEARCH_FIELD_MIN_WIDTH_PX,
19
23
  GameBoardTile,
20
24
  GdsAccessGate,
21
25
  GdsAssetManager,
26
+ GdsAssetManagerTemplate,
22
27
  GdsAssetPreviewCard,
28
+ GdsBulkActionBar,
23
29
  GdsConfirmProvider,
24
30
  GdsDataTable,
25
31
  GdsDateInput,
@@ -31,18 +37,27 @@ import {
31
37
  GdsFormProvider,
32
38
  GdsGuidedTour,
33
39
  GdsLayoutTemplatePreview,
40
+ GdsMessageThread,
34
41
  GdsModal,
35
42
  GdsNotificationCenter,
36
43
  GdsNotificationProvider,
44
+ GdsReleaseNotes,
37
45
  GdsResourceManager,
38
46
  GdsSchemaForm,
47
+ GdsShapeScope,
39
48
  GdsSheet,
40
49
  GdsSidePanel,
50
+ GdsTableScrollContainer,
41
51
  GdsTelemetryProvider,
52
+ GdsThreadList,
42
53
  GdsToastProvider,
54
+ GdsToastViewport,
43
55
  GdsTourButton,
44
56
  GdsTourProvider,
57
+ GdsTreeView,
45
58
  GdsValidationSummary,
59
+ GdsViewToggle,
60
+ GdsWorkspaceInboxTemplate,
46
61
  HeroSearchPanel,
47
62
  KanbanBoard,
48
63
  KanbanCard,
@@ -80,6 +95,7 @@ import {
80
95
  gdsFormReducer,
81
96
  gdsOperationalEventTypes,
82
97
  gdsUxFailureReasons,
98
+ getGdsShapeScopeStyle,
83
99
  isGdsOperationalEventType,
84
100
  jsonSchemaToGdsFormSchema,
85
101
  listingQueryReducer,
@@ -108,7 +124,7 @@ import {
108
124
  usePlaybackKeyboardControls,
109
125
  validateGdsAsset,
110
126
  zodToGdsFormSchema
111
- } from "./chunk-TJ3WMH25.mjs";
127
+ } from "./chunk-LTNPECWV.mjs";
112
128
  import {
113
129
  GdsInlineLink
114
130
  } from "./chunk-W5O2JSVK.mjs";
@@ -116,7 +132,7 @@ import {
116
132
  GdsAccentContrastMatrix,
117
133
  GdsDesignRuleProfilePanel,
118
134
  GdsGeneratedMark
119
- } from "./chunk-NWS7KJ2G.mjs";
135
+ } from "./chunk-SV3VL3GG.mjs";
120
136
  import {
121
137
  ThemeToggle
122
138
  } from "./chunk-ZFGYQSNR.mjs";
@@ -144,11 +160,12 @@ import {
144
160
  filterPartnerPlaces,
145
161
  partnerDiscoveryDefaultAmenities,
146
162
  partnerDiscoveryDefaultFilterState,
163
+ partnerDiscoveryFamilyAmenities,
147
164
  redactPartnerDiscoveryEventMetadata,
148
165
  resetPartnerDiscoveryFilters,
149
166
  togglePartnerAmenity,
150
167
  togglePartnerPrice
151
- } from "./chunk-KFEPREUF.mjs";
168
+ } from "./chunk-PCG34VRY.mjs";
152
169
  import {
153
170
  AISearchCard,
154
171
  AccentPanel,
@@ -215,18 +232,12 @@ import {
215
232
  GdsAreaChart,
216
233
  GdsBarChart,
217
234
  GdsBenchmarkBarChart,
218
- GdsBleed,
219
- GdsBox,
220
235
  GdsBreadcrumbs,
221
236
  GdsCalendarHeatmapChart,
222
237
  GdsChartAxis,
223
238
  GdsChartLegend,
224
239
  GdsChartTooltip,
225
- GdsCluster,
226
- GdsColumnGrid,
227
- GdsColumnGridItem,
228
240
  GdsCompareButton,
229
- GdsContainer,
230
241
  GdsContentPatternCatalog,
231
242
  GdsCountBadge,
232
243
  GdsCrudEditorTemplate,
@@ -239,9 +250,7 @@ import {
239
250
  GdsFormattedDate,
240
251
  GdsFormattedNumber,
241
252
  GdsGaugeChart,
242
- GdsGrid,
243
253
  GdsHistogramChart,
244
- GdsInline,
245
254
  GdsLineChart,
246
255
  GdsLocaleText,
247
256
  GdsLogoLockup,
@@ -266,12 +275,9 @@ import {
266
275
  GdsSafeBox,
267
276
  GdsSegmentedControl,
268
277
  GdsSettingsTemplate,
269
- GdsSidebar,
270
278
  GdsSlider,
271
279
  GdsSlopeChart,
272
280
  GdsSparkline,
273
- GdsSplit,
274
- GdsStack,
275
281
  GdsStackedBarChart,
276
282
  GdsSymmetryChart,
277
283
  GdsWizardStepper,
@@ -332,7 +338,6 @@ import {
332
338
  SearchableSelect,
333
339
  SectionTitle,
334
340
  Select,
335
- SemanticChartFrame,
336
341
  SemanticInset,
337
342
  SimpleGrid,
338
343
  Slider,
@@ -372,7 +377,6 @@ import {
372
377
  formatGdsRelativeTime,
373
378
  gdsActivityPictograms,
374
379
  gdsPictogramUsageRules,
375
- gdsSeriesPalette,
376
380
  gdsStyle,
377
381
  generateGdsDesignHandoffReport,
378
382
  getGdsAccessGateActionPriority,
@@ -397,14 +401,12 @@ import {
397
401
  getGdsPageTemplate,
398
402
  getGdsPageTemplates,
399
403
  getGdsRecommendedMaturityCapabilities,
400
- getGdsSeriesColor,
401
404
  getGdsTaskPattern,
402
405
  getGdsTaskPatterns,
403
406
  getProviderIdentityLabel,
404
407
  getProviderIdentityPolicy,
405
408
  getSupportedProviderIdentityIds,
406
409
  isGdsActivityPictogramKey,
407
- normalizeGdsResponsiveValue,
408
410
  redactGdsAccessGateMetadata,
409
411
  registerGdsBlock,
410
412
  renderGdsCopyTemplate,
@@ -414,7 +416,6 @@ import {
414
416
  resolveGdsAccessAdapterState,
415
417
  resolveGdsAccessState,
416
418
  resolveGdsActivityPictogramLabel,
417
- resolveGdsLayoutStyle,
418
419
  resolveGdsLocale,
419
420
  resolveGdsMessage,
420
421
  sortGdsAccessGateActions,
@@ -429,7 +430,7 @@ import {
429
430
  validateGdsLayout,
430
431
  validateGdsPageTemplates,
431
432
  validateGdsTaskPatterns
432
- } from "./chunk-BH2SMTND.mjs";
433
+ } from "./chunk-MO5TLIIB.mjs";
433
434
  import {
434
435
  GDS_PIN_APPROXIMATE_DASH,
435
436
  GDS_PIN_EMOJI_SCALE,
@@ -438,11 +439,13 @@ import {
438
439
  GDS_PIN_ICON_SCALE,
439
440
  GDS_PIN_SELECTED_SCALE,
440
441
  GdsMapPinBadge
441
- } from "./chunk-VU2JLVD3.mjs";
442
+ } from "./chunk-NTNVQZJU.mjs";
442
443
  import {
443
444
  ActionBar,
444
445
  ChartTokenPanel,
445
446
  FormField,
447
+ GDS_CHART_SERIES_COLORS,
448
+ GDS_CHART_SERIES_SLOTS,
446
449
  GDS_LISTING_PICK_BADGE_FONT_SIZE_PX,
447
450
  GDS_LISTING_PICK_BADGE_ICON_PX,
448
451
  GDS_LISTING_PICK_BADGE_INSET_PX,
@@ -451,13 +454,25 @@ import {
451
454
  GDS_LISTING_PICK_BADGE_PADDING_INLINE_PX,
452
455
  GDS_LISTING_TILE_SIZE_PX,
453
456
  GdsBadge,
457
+ GdsBleed,
458
+ GdsBox,
454
459
  GdsChart,
460
+ GdsCluster,
461
+ GdsColumnGrid,
462
+ GdsColumnGridItem,
463
+ GdsContainer,
455
464
  GdsGeneratedThumbnail,
465
+ GdsGrid,
466
+ GdsInline,
467
+ GdsSidebar,
468
+ GdsSplit,
469
+ GdsStack,
456
470
  GdsVocabulary,
457
471
  ListingCard,
458
472
  MAX_LISTING_CARD_ACTIONS,
459
473
  ReferenceSection,
460
474
  SectionPanel,
475
+ SemanticChartFrame,
461
476
  SimpleDataTable,
462
477
  createGdsOwnedContrastTokens,
463
478
  createGdsVocabularyPack,
@@ -476,19 +491,25 @@ import {
476
491
  gdsGeneratedPaletteCssRefs,
477
492
  gdsLocales,
478
493
  gdsSeededRandom,
494
+ gdsSeriesPalette,
495
+ getGdsChartSeriesColor,
479
496
  getGdsMessages,
480
497
  getGdsOwnedContrastProps,
498
+ getGdsSeriesColor,
481
499
  getSemanticActionConfig,
482
500
  getSemanticActionLabel,
483
501
  isGdsChartSetAType,
484
502
  isGdsChartSetBType,
485
503
  isGdsChartSetCType,
486
504
  mergeGdsVocabularyPacks,
505
+ normalizeGdsResponsiveValue,
487
506
  resolveGdsCardContract,
507
+ resolveGdsChartTokenColor,
488
508
  resolveGdsGeneratedPaletteHex,
509
+ resolveGdsLayoutStyle,
489
510
  resolveSemanticActionConfig,
490
511
  validateGdsChartData
491
- } from "./chunk-H2QNW4D5.mjs";
512
+ } from "./chunk-PJR3OJJD.mjs";
492
513
  import {
493
514
  GDS_PIN_SILHOUETTE_PATH,
494
515
  GdsBadgeShapeCircle,
@@ -504,7 +525,7 @@ import {
504
525
  StateBlock,
505
526
  isPresentationMode,
506
527
  resolveSurfacePresentationStyles
507
- } from "./chunk-MPZFCWWS.mjs";
528
+ } from "./chunk-SPPTDVJC.mjs";
508
529
  import {
509
530
  GdsIcon,
510
531
  GdsIcons,
@@ -517,40 +538,40 @@ import {
517
538
  } from "./chunk-J66ITCXC.mjs";
518
539
  import {
519
540
  ko
520
- } from "./chunk-IHPZ7BNV.mjs";
541
+ } from "./chunk-PLJT4I7B.mjs";
521
542
  import {
522
543
  ru
523
- } from "./chunk-BHR4A3C6.mjs";
544
+ } from "./chunk-RBXAJJB2.mjs";
524
545
  import {
525
546
  zh
526
- } from "./chunk-4LG6EED4.mjs";
547
+ } from "./chunk-V6SP5O4D.mjs";
527
548
  import {
528
549
  de
529
- } from "./chunk-GKNSUUUE.mjs";
550
+ } from "./chunk-TVGDH5O5.mjs";
530
551
  import {
531
552
  es
532
- } from "./chunk-JTMPFTCK.mjs";
553
+ } from "./chunk-J4TSXITU.mjs";
533
554
  import {
534
555
  fr
535
- } from "./chunk-6PBDLFSF.mjs";
556
+ } from "./chunk-Z6XXK57E.mjs";
536
557
  import {
537
558
  he
538
- } from "./chunk-CNTTKK3H.mjs";
559
+ } from "./chunk-YASVRGKJ.mjs";
539
560
  import {
540
561
  hu
541
- } from "./chunk-GMK5GXWR.mjs";
562
+ } from "./chunk-CWMDWMYL.mjs";
542
563
  import {
543
564
  it
544
- } from "./chunk-SHQDVHGR.mjs";
565
+ } from "./chunk-V5WUGRFL.mjs";
545
566
  import {
546
567
  ja
547
- } from "./chunk-2XZMNT7I.mjs";
568
+ } from "./chunk-XL7MGQJ4.mjs";
548
569
  import {
549
570
  ar
550
- } from "./chunk-QO653DAE.mjs";
571
+ } from "./chunk-7NNKXZFF.mjs";
551
572
  import {
552
573
  en
553
- } from "./chunk-GGDCO5HR.mjs";
574
+ } from "./chunk-D65VHUXK.mjs";
554
575
 
555
576
  // src/GdsPinSystemReference.tsx
556
577
  import { useMemo } from "react";
@@ -560,7 +581,8 @@ import {
560
581
  getGdsContrastRatio,
561
582
  getGdsVibeThemeCssVariables,
562
583
  resolveGdsAccentTokens,
563
- useGdsAmbientTheme
584
+ useGdsAmbientTheme,
585
+ useGdsTranslation
564
586
  } from "@sovereignsquad/gds-theme";
565
587
  import { jsx, jsxs } from "react/jsx-runtime";
566
588
  var DEFAULT_ACCENTS = ["ocean", "teal", "grape", "forest"];
@@ -569,6 +591,7 @@ function GdsPinSystemReference({
569
591
  colorScheme,
570
592
  accents = DEFAULT_ACCENTS
571
593
  }) {
594
+ const { t } = useGdsTranslation();
572
595
  const ambient = useGdsAmbientTheme();
573
596
  const activePreset = preset ?? ambient.preset;
574
597
  const activeScheme = colorScheme ?? ambient.colorScheme;
@@ -623,7 +646,7 @@ function GdsPinSystemReference({
623
646
  /* @__PURE__ */ jsx(Code, { children: "-1/24" }),
624
647
  ":"
625
648
  ] }),
626
- /* @__PURE__ */ jsx(Code, { block: true, children: `transform: ${GDS_PIN_HEAD_CENTER_OFFSET} scale(${GDS_PIN_ICON_SCALE})` }),
649
+ /* @__PURE__ */ jsx(Code, { block: true, tabIndex: 0, role: "group", "aria-label": t("gds.docsCodeBlock.region", "Code"), children: `transform: ${GDS_PIN_HEAD_CENTER_OFFSET} scale(${GDS_PIN_ICON_SCALE})` }),
627
650
  /* @__PURE__ */ jsxs(Text, { size: "sm", c: "dimmed", children: [
628
651
  "The rule is \u201Ccentre on the pin\u2019s circle\u201D, not a number tuned until it looked right. The visible dome\u2019s midpoint is a ",
629
652
  /* @__PURE__ */ jsx("em", { children: "different" }),
@@ -1045,7 +1068,7 @@ function GdsMapBasemapWash({ children, tint = GDS_MAP_WASH_TINT }) {
1045
1068
  // src/GdsMapFilterRail.tsx
1046
1069
  import { useEffect, useRef } from "react";
1047
1070
  import { Box as Box2, Group as Group3 } from "@mantine/core";
1048
- import { useGdsTranslation } from "@sovereignsquad/gds-theme";
1071
+ import { useGdsTranslation as useGdsTranslation2 } from "@sovereignsquad/gds-theme";
1049
1072
  import { Fragment as Fragment2, jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
1050
1073
  var ALL_VALUE = "__gds-map-filter-all__";
1051
1074
  var withCount = (label, count) => count === void 0 ? label : /* @__PURE__ */ jsxs6(Fragment2, { children: [
@@ -1061,7 +1084,7 @@ function GdsMapFilterRail({
1061
1084
  allLabel: allLabelProp,
1062
1085
  onHeightChange
1063
1086
  }) {
1064
- const { t } = useGdsTranslation();
1087
+ const { t } = useGdsTranslation2();
1065
1088
  const allLabel = allLabelProp ?? t("gds.gdsMapFilterRail.allLabel", "All");
1066
1089
  const hostRef = useRef(null);
1067
1090
  useEffect(() => {
@@ -1113,9 +1136,11 @@ function PreviewSkeleton() {
1113
1136
  }
1114
1137
  function GdsMapPinPreviewCard({
1115
1138
  title,
1139
+ category: categoryProp,
1116
1140
  activity,
1117
1141
  neighbourhood,
1118
1142
  summary,
1143
+ audience: audienceProp,
1119
1144
  ageRange,
1120
1145
  trust,
1121
1146
  priceEstimate,
@@ -1134,7 +1159,9 @@ function GdsMapPinPreviewCard({
1134
1159
  const hasMedia = Boolean(thumbnailSeed && categories && categories.length > 0);
1135
1160
  const hasEstimate = Boolean(priceEstimate || lastChecked);
1136
1161
  const hasSave = Boolean(saveLabel && unsaveLabel);
1137
- const meta = [activity, neighbourhood].filter((part) => part !== void 0 && part !== null);
1162
+ const category = categoryProp ?? activity;
1163
+ const audience = audienceProp ?? ageRange;
1164
+ const meta = [category, neighbourhood].filter((part) => part !== void 0 && part !== null);
1138
1165
  return /* @__PURE__ */ jsx7(
1139
1166
  Paper2,
1140
1167
  {
@@ -1174,8 +1201,8 @@ function GdsMapPinPreviewCard({
1174
1201
  ] }, index)) }) : null
1175
1202
  ] }),
1176
1203
  summary ? /* @__PURE__ */ jsx7(Text3, { size: "sm", children: summary }) : null,
1177
- ageRange || trust ? /* @__PURE__ */ jsxs7(Group4, { gap: "xs", children: [
1178
- ageRange ? /* @__PURE__ */ jsx7(GdsBadge, { tone: "neutral", label: ageRange }) : null,
1204
+ audience || trust ? /* @__PURE__ */ jsxs7(Group4, { gap: "xs", children: [
1205
+ audience ? /* @__PURE__ */ jsx7(GdsBadge, { tone: "neutral", label: audience }) : null,
1179
1206
  trust ? /* @__PURE__ */ jsx7(MeaningBadge, { variant: trust.variant, label: trust.label }) : null
1180
1207
  ] }) : null,
1181
1208
  hasEstimate ? /* @__PURE__ */ jsx7(Paper2, { withBorder: true, radius: "md", p: "sm", "data-gds-map-pin-preview-estimate": true, children: /* @__PURE__ */ jsxs7(Stack4, { gap: 2, children: [
@@ -1493,7 +1520,7 @@ function GdsMotionSystemReference() {
1493
1520
  /* @__PURE__ */ jsxs9(Stack5, { gap: "2xs", children: [
1494
1521
  /* @__PURE__ */ jsx10(Text4, { fw: 700, children: "The reaction axis \u2014 micro-feedback on every control" }),
1495
1522
  /* @__PURE__ */ jsx10(Text4, { size: "sm", children: "Hover, active, and pressed treatments plus the focus ring are an AXIS a theme declares once, not per-component CSS: every governed control reacts consistently, and a theme can retune all of it in one place. The values below are the default axis\u2019s own." }),
1496
- /* @__PURE__ */ jsx10(Table3, { withTableBorder: true, children: /* @__PURE__ */ jsxs9(Table3.Tbody, { children: [
1523
+ /* @__PURE__ */ jsx10(GdsTableScrollContainer, { children: /* @__PURE__ */ jsx10(Table3, { withTableBorder: true, children: /* @__PURE__ */ jsxs9(Table3.Tbody, { children: [
1497
1524
  /* @__PURE__ */ jsxs9(Table3.Tr, { children: [
1498
1525
  /* @__PURE__ */ jsx10(Table3.Td, { children: "hover" }),
1499
1526
  /* @__PURE__ */ jsx10(Table3.Td, { children: /* @__PURE__ */ jsx10(Code2, { children: String(axis.hover) }) })
@@ -1514,7 +1541,7 @@ function GdsMotionSystemReference() {
1514
1541
  /* @__PURE__ */ jsx10(Table3.Td, { children: "transition scope" }),
1515
1542
  /* @__PURE__ */ jsx10(Table3.Td, { children: /* @__PURE__ */ jsx10(Code2, { children: (axis.transitionScope ?? []).join(", ") }) })
1516
1543
  ] })
1517
- ] }) }),
1544
+ ] }) }) }),
1518
1545
  /* @__PURE__ */ jsxs9(Text4, { size: "sm", c: "dimmed", children: [
1519
1546
  "Wire-up is one call: ",
1520
1547
  /* @__PURE__ */ jsx10(Code2, { children: "withGdsMotion(theme)" }),
@@ -1525,11 +1552,13 @@ function GdsMotionSystemReference() {
1525
1552
  }
1526
1553
 
1527
1554
  // src/GdsShapeElevationSystemReference.tsx
1528
- import { Code as Code3, Group as Group6, Paper as Paper3, Stack as Stack6, Table as Table4, Text as Text5 } from "@mantine/core";
1555
+ 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";
1529
1556
  import {
1530
1557
  GDS_RADIUS_STEPS,
1531
1558
  GDS_RADIUS_ROLES,
1532
1559
  resolveGdsShapeTokens,
1560
+ GDS_SHAPE_PROFILE_NAMES,
1561
+ GDS_SHAPE_PROFILES,
1533
1562
  GDS_ELEVATION_STEPS,
1534
1563
  GDS_ELEVATION_ROLES,
1535
1564
  resolveGdsElevationTokens
@@ -1562,26 +1591,54 @@ function GdsShapeElevationSystemReference() {
1562
1591
  /* @__PURE__ */ jsx11(Code3, { children: "resolveGdsShapeTokens()" }),
1563
1592
  " emits, falling back to the axis\u2019s default step when a theme leaves a role undeclared."
1564
1593
  ] }),
1565
- /* @__PURE__ */ jsx11(Table4, { withTableBorder: true, children: /* @__PURE__ */ jsx11(Table4.Tbody, { children: GDS_RADIUS_ROLES.map((role) => /* @__PURE__ */ jsxs10(Table4.Tr, { children: [
1594
+ /* @__PURE__ */ jsx11(GdsTableScrollContainer, { children: /* @__PURE__ */ jsx11(Table4, { withTableBorder: true, children: /* @__PURE__ */ jsx11(Table4.Tbody, { children: GDS_RADIUS_ROLES.map((role) => /* @__PURE__ */ jsxs10(Table4.Tr, { children: [
1566
1595
  /* @__PURE__ */ jsx11(Table4.Td, { children: role }),
1567
1596
  /* @__PURE__ */ jsx11(Table4.Td, { children: /* @__PURE__ */ jsx11(Code3, { children: shapeTokens[`--gds-radius-${role}`] }) })
1568
- ] }, role)) }) }),
1597
+ ] }, role)) }) }) }),
1569
1598
  (() => {
1570
1599
  const values = GDS_RADIUS_ROLES.map((role) => shapeTokens[`--gds-radius-${role}`]);
1571
1600
  const distinctCount = new Set(values).size;
1572
1601
  return /* @__PURE__ */ jsxs10(Text5, { size: "sm", c: "dimmed", children: [
1573
1602
  distinctCount === 1 ? `All ${GDS_RADIUS_ROLES.length} roles above resolve to the same value here: this axis declares no per-role overrides, so every role falls back to the default step.` : `${distinctCount} distinct value(s) across ${GDS_RADIUS_ROLES.length} roles.`,
1574
1603
  " ",
1575
- "A theme's Mantine ",
1576
- /* @__PURE__ */ jsx11(Code3, { children: "theme.radius" }),
1577
- " scale (used by Mantine components directly, e.g. ",
1578
- /* @__PURE__ */ jsx11(Code3, { children: 'radius="md"' }),
1579
- ") is a separate mechanism from this axis and is not required to share its values \u2014 a brand handoff can specify its own",
1580
- /* @__PURE__ */ jsx11(Code3, { children: "theme.radius" }),
1581
- " steps independent of how many of these roles it differentiates."
1604
+ "Card, Paper, Button, TextInput, Badge, Chip, Modal and Drawer take their radius from these roles, so a theme or a ",
1605
+ /* @__PURE__ */ jsx11(Code3, { children: "GdsShapeScope" }),
1606
+ " that changes a role changes those components."
1582
1607
  ] });
1583
1608
  })()
1584
1609
  ] }),
1610
+ /* @__PURE__ */ jsxs10(Stack6, { gap: "2xs", "data-gds-shape-profiles": "", children: [
1611
+ /* @__PURE__ */ jsx11(Text5, { fw: 700, children: "Shape profiles \u2014 the same components, three role maps" }),
1612
+ /* @__PURE__ */ jsxs10(Text5, { size: "sm", children: [
1613
+ "Each column wraps the same Card, Paper, TextInput, Button and Chip in a",
1614
+ " ",
1615
+ /* @__PURE__ */ jsx11(Code3, { children: "GdsShapeScope" }),
1616
+ ". A scope sets only its profile\u2019s own roles, from",
1617
+ " ",
1618
+ /* @__PURE__ */ jsx11(Code3, { children: "GDS_SHAPE_PROFILES" }),
1619
+ ", pointing at the active theme\u2019s own steps; every other role, and every role under ",
1620
+ /* @__PURE__ */ jsx11(Code3, { children: "default" }),
1621
+ ", stays the theme\u2019s."
1622
+ ] }),
1623
+ /* @__PURE__ */ jsx11(SimpleGrid2, { cols: { base: 1, md: GDS_SHAPE_PROFILE_NAMES.length }, spacing: "md", children: GDS_SHAPE_PROFILE_NAMES.map((profile) => {
1624
+ const roles = profile === "default" ? {} : GDS_SHAPE_PROFILES[profile];
1625
+ return /* @__PURE__ */ jsx11(GdsShapeScope, { profile, children: /* @__PURE__ */ jsxs10(Stack6, { gap: "sm", children: [
1626
+ /* @__PURE__ */ jsx11(Text5, { fw: 600, children: profile }),
1627
+ /* @__PURE__ */ jsx11(Card, { children: /* @__PURE__ */ jsxs10(Stack6, { gap: "xs", children: [
1628
+ /* @__PURE__ */ jsx11(Text5, { size: "sm", fw: 600, children: "Card" }),
1629
+ /* @__PURE__ */ jsx11(TextInput2, { label: "Input", placeholder: "Search" }),
1630
+ /* @__PURE__ */ jsxs10(Group6, { gap: "xs", children: [
1631
+ /* @__PURE__ */ jsx11(Button2, { size: "xs", children: "Button" }),
1632
+ /* @__PURE__ */ jsx11(Chip, { size: "xs", checked: true, readOnly: true, children: "Chip" })
1633
+ ] })
1634
+ ] }) }),
1635
+ /* @__PURE__ */ jsx11(Paper3, { p: "xs", children: /* @__PURE__ */ jsx11(GdsTableScrollContainer, { children: /* @__PURE__ */ jsx11(Table4, { children: /* @__PURE__ */ jsx11(Table4.Tbody, { children: ["card", "panel", "input", "button", "chip", "modal", "sheet"].map((role) => /* @__PURE__ */ jsxs10(Table4.Tr, { children: [
1636
+ /* @__PURE__ */ jsx11(Table4.Td, { children: role }),
1637
+ /* @__PURE__ */ jsx11(Table4.Td, { children: /* @__PURE__ */ jsx11(Code3, { children: roles[role] ?? "theme" }) })
1638
+ ] }, role)) }) }) }) })
1639
+ ] }) }, profile);
1640
+ }) })
1641
+ ] }),
1585
1642
  /* @__PURE__ */ jsxs10(Stack6, { gap: "2xs", children: [
1586
1643
  /* @__PURE__ */ jsx11(Text5, { fw: 700, children: "Elevation steps \u2014 flat to raised" }),
1587
1644
  /* @__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." }),
@@ -1601,7 +1658,7 @@ function GdsShapeElevationSystemReference() {
1601
1658
  /* @__PURE__ */ jsx11(Code3, { children: "resolveGdsElevationTokens()" }),
1602
1659
  "."
1603
1660
  ] }),
1604
- /* @__PURE__ */ jsx11(Table4, { withTableBorder: true, children: /* @__PURE__ */ jsx11(Table4.Tbody, { children: GDS_ELEVATION_ROLES.map((role) => /* @__PURE__ */ jsxs10(Table4.Tr, { children: [
1661
+ /* @__PURE__ */ jsx11(GdsTableScrollContainer, { children: /* @__PURE__ */ jsx11(Table4, { withTableBorder: true, children: /* @__PURE__ */ jsx11(Table4.Tbody, { children: GDS_ELEVATION_ROLES.map((role) => /* @__PURE__ */ jsxs10(Table4.Tr, { children: [
1605
1662
  /* @__PURE__ */ jsx11(Table4.Td, { children: role }),
1606
1663
  /* @__PURE__ */ jsx11(Table4.Td, { children: /* @__PURE__ */ jsx11(
1607
1664
  Paper3,
@@ -1611,7 +1668,7 @@ function GdsShapeElevationSystemReference() {
1611
1668
  children: /* @__PURE__ */ jsx11(Text5, { size: "xs", c: "dimmed", children: role })
1612
1669
  }
1613
1670
  ) })
1614
- ] }, role)) }) })
1671
+ ] }, role)) }) }) })
1615
1672
  ] })
1616
1673
  ] });
1617
1674
  }
@@ -1657,11 +1714,11 @@ function GdsDensitySpacingSystemReference() {
1657
1714
  GDS_MIN_TARGET_PX,
1658
1715
  "px floor (stricter than WCAG 2.5.8\u2019s 24px \u2014 the AAA figure Apple and Google both publish). A compact or spacious density mode scales spacing freely, but a control height only shrinks below the floor when the size carries a recorded exception below."
1659
1716
  ] }),
1660
- /* @__PURE__ */ jsx12(Table5, { withTableBorder: true, children: /* @__PURE__ */ jsx12(Table5.Tbody, { children: GDS_CONTROL_SIZES.map((size) => /* @__PURE__ */ jsxs11(Table5.Tr, { children: [
1717
+ /* @__PURE__ */ jsx12(GdsTableScrollContainer, { children: /* @__PURE__ */ jsx12(Table5, { withTableBorder: true, children: /* @__PURE__ */ jsx12(Table5.Tbody, { children: GDS_CONTROL_SIZES.map((size) => /* @__PURE__ */ jsxs11(Table5.Tr, { children: [
1661
1718
  /* @__PURE__ */ jsx12(Table5.Td, { children: size }),
1662
1719
  /* @__PURE__ */ jsx12(Table5.Td, { children: /* @__PURE__ */ jsx12(Code4, { children: tokens[`--gds-control-height-${size}`] }) }),
1663
1720
  /* @__PURE__ */ jsx12(Table5.Td, { children: /* @__PURE__ */ jsx12(Text6, { size: "xs", c: "dimmed", children: GDS_CONTROL_HEIGHT_EXCEPTIONS[size] ?? "holds the floor" }) })
1664
- ] }, size)) }) })
1721
+ ] }, size)) }) }) })
1665
1722
  ] })
1666
1723
  ] });
1667
1724
  }
@@ -1828,7 +1885,7 @@ function GdsPictogramSystemReference() {
1828
1885
  /* @__PURE__ */ jsx14(Code6, { children: "GDS_PICTOGRAM_TREATMENT_SCALE" }),
1829
1886
  ") and stroke weight \u2014 the path data itself never changes across a row."
1830
1887
  ] }),
1831
- /* @__PURE__ */ jsxs13(Table6, { withTableBorder: true, children: [
1888
+ /* @__PURE__ */ jsx14(GdsTableScrollContainer, { children: /* @__PURE__ */ jsxs13(Table6, { withTableBorder: true, children: [
1832
1889
  /* @__PURE__ */ jsx14(Table6.Thead, { children: /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
1833
1890
  /* @__PURE__ */ jsx14(Table6.Th, { children: "Pictogram" }),
1834
1891
  treatments.map((treatment) => /* @__PURE__ */ jsxs13(Table6.Th, { children: [
@@ -1844,7 +1901,7 @@ function GdsPictogramSystemReference() {
1844
1901
  /* @__PURE__ */ jsx14(Table6.Td, { children: gdsActivityPictograms.pictograms[key].label }),
1845
1902
  treatments.map((treatment) => /* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(GdsPictogram, { pictogram: key, treatment, label: gdsActivityPictograms.pictograms[key].label }) }, treatment))
1846
1903
  ] }, key)) })
1847
- ] })
1904
+ ] }) })
1848
1905
  ] }),
1849
1906
  /* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
1850
1907
  /* @__PURE__ */ jsxs13(Text8, { fw: 700, children: [
@@ -1891,7 +1948,7 @@ function GdsPictogramSystemReference() {
1891
1948
  /* @__PURE__ */ jsx14(Code6, { children: "default" }),
1892
1949
  "."
1893
1950
  ] }),
1894
- /* @__PURE__ */ jsxs13(Table6, { withTableBorder: true, children: [
1951
+ /* @__PURE__ */ jsx14(GdsTableScrollContainer, { children: /* @__PURE__ */ jsxs13(Table6, { withTableBorder: true, children: [
1895
1952
  /* @__PURE__ */ jsx14(Table6.Thead, { children: /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
1896
1953
  /* @__PURE__ */ jsx14(Table6.Th, { children: "Pictogram" }),
1897
1954
  STATES.map((state) => /* @__PURE__ */ jsx14(Table6.Th, { children: state }, state))
@@ -1900,7 +1957,7 @@ function GdsPictogramSystemReference() {
1900
1957
  /* @__PURE__ */ jsx14(Table6.Td, { children: gdsActivityPictograms.pictograms[key].label }),
1901
1958
  STATES.map((state) => /* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(GdsPictogram, { pictogram: key, treatment: "detail", state, label: `${gdsActivityPictograms.pictograms[key].label} \u2014 ${state}` }) }, state))
1902
1959
  ] }, key)) })
1903
- ] })
1960
+ ] }) })
1904
1961
  ] }),
1905
1962
  /* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
1906
1963
  /* @__PURE__ */ jsxs13(Text8, { fw: 700, children: [
@@ -1916,7 +1973,7 @@ function GdsPictogramSystemReference() {
1916
1973
  GDS_PICTOGRAM_HERO_LAYERS.length - 1,
1917
1974
  " larger, fainter, offset echoes of the identical path \u2014 depth from transform and opacity alone, never a second colour."
1918
1975
  ] }),
1919
- /* @__PURE__ */ jsxs13(Table6, { withTableBorder: true, children: [
1976
+ /* @__PURE__ */ jsx14(GdsTableScrollContainer, { children: /* @__PURE__ */ jsxs13(Table6, { withTableBorder: true, children: [
1920
1977
  /* @__PURE__ */ jsx14(Table6.Thead, { children: /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
1921
1978
  /* @__PURE__ */ jsx14(Table6.Th, { children: "Layer" }),
1922
1979
  /* @__PURE__ */ jsx14(Table6.Th, { children: "scale" }),
@@ -1931,7 +1988,7 @@ function GdsPictogramSystemReference() {
1931
1988
  /* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(Code6, { children: layer.offsetX }) }),
1932
1989
  /* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsx14(Code6, { children: layer.offsetY }) })
1933
1990
  ] }, `${layer.scale}-${layer.offsetX}-${layer.offsetY}`)) })
1934
- ] }),
1991
+ ] }) }),
1935
1992
  /* @__PURE__ */ jsxs13(Group9, { gap: "xl", align: "center", children: [
1936
1993
  /* @__PURE__ */ jsx14(GdsPictogram, { pictogram: "basketball", treatment: "hero", label: "Basketball, hero treatment" }),
1937
1994
  /* @__PURE__ */ jsx14(GdsPictogram, { pictogram: "camps", treatment: "hero", label: "Camps, hero treatment" })
@@ -1939,7 +1996,7 @@ function GdsPictogramSystemReference() {
1939
1996
  ] }),
1940
1997
  /* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
1941
1998
  /* @__PURE__ */ jsx14(Text8, { fw: 700, children: "Numeric contract \u2014 read from the exports, never retyped" }),
1942
- /* @__PURE__ */ jsx14(Table6, { withTableBorder: true, children: /* @__PURE__ */ jsxs13(Table6.Tbody, { children: [
1999
+ /* @__PURE__ */ jsx14(GdsTableScrollContainer, { children: /* @__PURE__ */ jsx14(Table6, { withTableBorder: true, children: /* @__PURE__ */ jsxs13(Table6.Tbody, { children: [
1943
2000
  /* @__PURE__ */ jsxs13(Table6.Tr, { children: [
1944
2001
  /* @__PURE__ */ jsx14(Table6.Td, { children: "Optical grid" }),
1945
2002
  /* @__PURE__ */ jsx14(Table6.Td, { children: /* @__PURE__ */ jsxs13(Code6, { children: [
@@ -1977,7 +2034,7 @@ function GdsPictogramSystemReference() {
1977
2034
  /* @__PURE__ */ jsx14(Code6, { children: GDS_PICTOGRAM_TREATMENT_SCALE[treatment] })
1978
2035
  ] })
1979
2036
  ] }, treatment))
1980
- ] }) })
2037
+ ] }) }) })
1981
2038
  ] }),
1982
2039
  /* @__PURE__ */ jsxs13(Stack9, { gap: "2xs", children: [
1983
2040
  /* @__PURE__ */ jsxs13(Text8, { fw: 700, children: [
@@ -2075,10 +2132,10 @@ function GdsTypographySystemReference() {
2075
2132
  /* @__PURE__ */ jsxs14(Stack10, { gap: "2xs", children: [
2076
2133
  /* @__PURE__ */ jsx15(Text9, { fw: 700, children: "Font lanes \u2014 display, body, mono" }),
2077
2134
  /* @__PURE__ */ jsx15(Text9, { size: "sm", children: "Three roles a theme assigns a registered lane id to; component source asks for a role, never a font family directly." }),
2078
- /* @__PURE__ */ jsx15(Table7, { withTableBorder: true, children: /* @__PURE__ */ jsx15(Table7.Tbody, { children: ["display", "body", "mono"].map((role) => /* @__PURE__ */ jsxs14(Table7.Tr, { children: [
2135
+ /* @__PURE__ */ jsx15(GdsTableScrollContainer, { children: /* @__PURE__ */ jsx15(Table7, { withTableBorder: true, children: /* @__PURE__ */ jsx15(Table7.Tbody, { children: ["display", "body", "mono"].map((role) => /* @__PURE__ */ jsxs14(Table7.Tr, { children: [
2079
2136
  /* @__PURE__ */ jsx15(Table7.Td, { children: role }),
2080
2137
  /* @__PURE__ */ jsx15(Table7.Td, { children: /* @__PURE__ */ jsx15(Code7, { children: tokens[`--gds-font-lane-${role}`] }) })
2081
- ] }, role)) }) })
2138
+ ] }, role)) }) }) })
2082
2139
  ] })
2083
2140
  ] });
2084
2141
  }
@@ -2206,7 +2263,7 @@ function GdsAccessibilitySystemReference() {
2206
2263
  ] }),
2207
2264
  /* @__PURE__ */ jsxs16(Stack12, { gap: "2xs", children: [
2208
2265
  /* @__PURE__ */ jsx17(Text11, { fw: 700, children: "The rules \u2014 minimums no theme may cross" }),
2209
- /* @__PURE__ */ jsx17(Text11, { size: "sm", children: "Every rule is checkable from resolved tokens alone, so it runs over all 25 presets in both schemes without a browser. Rules needing real rendered geometry belong to the runtime harness instead (forced-colors, focus-ring, touch-target-floor)." }),
2266
+ /* @__PURE__ */ jsx17(Text11, { size: "sm", children: "Every rule is checkable from resolved tokens alone, so it runs over every preset in both schemes without a browser. Rules needing real rendered geometry belong to the runtime harness instead (forced-colors, focus-ring, touch-target-floor)." }),
2210
2267
  /* @__PURE__ */ jsx17(
2211
2268
  SimpleDataTable,
2212
2269
  {
@@ -2234,7 +2291,7 @@ function GdsAccessibilitySystemReference() {
2234
2291
 
2235
2292
  // src/GdsButtonFeedbackReference.tsx
2236
2293
  import { useCallback, useEffect as useEffect3, useRef as useRef2, useState } from "react";
2237
- import { Badge as Badge6, Box as Box7, Group as Group13, Stack as Stack13, Text as Text12 } from "@mantine/core";
2294
+ import { Badge as Badge6, Box as Box7, Button as Button3, Group as Group13, SegmentedControl, SimpleGrid as SimpleGrid3, Stack as Stack13, Text as Text12 } from "@mantine/core";
2238
2295
  import { jsx as jsx18, jsxs as jsxs17 } from "react/jsx-runtime";
2239
2296
  var feedbackRows = Object.entries(GdsVocabulary).filter(([, config]) => Boolean(config.feedback)).map(([action, config]) => ({
2240
2297
  action,
@@ -2243,6 +2300,52 @@ var feedbackRows = Object.entries(GdsVocabulary).filter(([, config]) => Boolean(
2243
2300
  Icon: config.feedback.icon
2244
2301
  }));
2245
2302
  var totalActions = Object.keys(GdsVocabulary).length;
2303
+ var motionRows = Object.entries(GdsVocabulary).filter(([, config]) => Boolean(config.motion)).map(([action, config]) => ({
2304
+ action,
2305
+ pending: config.motion.pending ?? "spinner",
2306
+ success: config.motion.success ?? "pop",
2307
+ confirm: config.motion.confirm ? "yes" : "no"
2308
+ }));
2309
+ var DEMO_LATENCIES = {
2310
+ fast: Math.round(GDS_BUTTON_PENDING_DELAY_MS / 2),
2311
+ slow: GDS_BUTTON_PENDING_DELAY_MS * 3
2312
+ };
2313
+ function simulatedAction(latencyMs, succeed) {
2314
+ return () => new Promise((resolve, reject) => {
2315
+ setTimeout(() => succeed ? resolve() : reject(new Error("Simulated failure")), latencyMs);
2316
+ });
2317
+ }
2318
+ function ActionMotionDemo() {
2319
+ const [outcome, setOutcome] = useState("success");
2320
+ const [speed, setSpeed] = useState("slow");
2321
+ const run = simulatedAction(DEMO_LATENCIES[speed], outcome === "success");
2322
+ return /* @__PURE__ */ jsxs17(Stack13, { gap: "xs", "data-gds-button-motion-reference": "", children: [
2323
+ /* @__PURE__ */ jsxs17(Group13, { gap: "sm", wrap: "wrap", children: [
2324
+ /* @__PURE__ */ jsx18(
2325
+ SegmentedControl,
2326
+ {
2327
+ "aria-label": "Simulated outcome",
2328
+ value: outcome,
2329
+ onChange: (value) => setOutcome(value),
2330
+ data: [{ value: "success", label: "Succeeds" }, { value: "error", label: "Fails" }]
2331
+ }
2332
+ ),
2333
+ /* @__PURE__ */ jsx18(
2334
+ SegmentedControl,
2335
+ {
2336
+ "aria-label": "Simulated duration",
2337
+ value: speed,
2338
+ onChange: (value) => setSpeed(value),
2339
+ data: [
2340
+ { value: "fast", label: `${DEMO_LATENCIES.fast}ms` },
2341
+ { value: "slow", label: `${DEMO_LATENCIES.slow}ms` }
2342
+ ]
2343
+ }
2344
+ )
2345
+ ] }),
2346
+ /* @__PURE__ */ jsx18(SimpleGrid3, { cols: { base: 1, xs: 2, md: 3 }, spacing: "xs", children: motionRows.map((row) => /* @__PURE__ */ jsx18(Group13, { gap: "xs", wrap: "nowrap", "data-gds-button-motion-demo": row.action, children: /* @__PURE__ */ jsx18(SemanticButton, { action: row.action, onAction: run }) }, row.action)) })
2347
+ ] });
2348
+ }
2246
2349
  var representativeByColor = Array.from(
2247
2350
  feedbackRows.reduce((acc, row) => acc.has(row.color) ? acc : acc.set(row.color, row), /* @__PURE__ */ new Map()).values()
2248
2351
  );
@@ -2262,6 +2365,7 @@ function LiveFeedbackButton({ action }) {
2262
2365
  /* @__PURE__ */ jsx18(SemanticButton, { action, variant: "light", feedbackState: state, onClick: () => fire("error") })
2263
2366
  ] });
2264
2367
  }
2368
+ var GDS_BUTTON_VARIANT_HIERARCHY = ["filled", "light", "outline", "subtle", "default"];
2265
2369
  var brandIntentDemos = [
2266
2370
  { variant: "outline-accent", label: "outline-accent" },
2267
2371
  { variant: "gradient", label: "gradient" }
@@ -2286,6 +2390,12 @@ function BrandIntentDemo({ variant }) {
2286
2390
  }
2287
2391
  function GdsButtonFeedbackReference() {
2288
2392
  return /* @__PURE__ */ jsxs17(Stack13, { gap: "md", "data-gds-button-feedback-reference": "", children: [
2393
+ /* @__PURE__ */ jsxs17(Stack13, { gap: "2xs", "data-gds-button-variant-reference": "", children: [
2394
+ /* @__PURE__ */ jsx18(Text12, { fw: 700, children: "Variants" }),
2395
+ /* @__PURE__ */ jsx18(Text12, { size: "sm", children: "Emphasis from strongest to weakest. Under every preset the filled button takes the preset's primary colour and the others keep their own treatment, so a page has one primary action and the rest read as secondary. Red marks a destructive action at the same two emphasis levels." }),
2396
+ /* @__PURE__ */ jsx18(Group13, { gap: "xs", wrap: "wrap", children: GDS_BUTTON_VARIANT_HIERARCHY.map((variant) => /* @__PURE__ */ jsx18(Button3, { variant, "data-gds-button-variant-probe": variant, children: variant }, variant)) }),
2397
+ /* @__PURE__ */ jsx18(Group13, { gap: "xs", wrap: "wrap", children: ["filled", "light"].map((variant) => /* @__PURE__ */ jsx18(Button3, { color: "red", variant, "data-gds-button-variant-probe": `red-${variant}`, children: `red ${variant}` }, variant)) })
2398
+ ] }),
2289
2399
  /* @__PURE__ */ jsxs17(Stack13, { gap: "2xs", children: [
2290
2400
  /* @__PURE__ */ jsxs17(Group13, { gap: "xs", align: "center", children: [
2291
2401
  /* @__PURE__ */ jsx18(Text12, { fw: 700, children: "Live \u2014 click either button" }),
@@ -2305,6 +2415,54 @@ function GdsButtonFeedbackReference() {
2305
2415
  /* @__PURE__ */ jsx18(LiveFeedbackButton, { action: row.action })
2306
2416
  ] }, row.action)) })
2307
2417
  ] }),
2418
+ /* @__PURE__ */ jsxs17(Stack13, { gap: "2xs", children: [
2419
+ /* @__PURE__ */ jsxs17(Group13, { gap: "xs", align: "center", children: [
2420
+ /* @__PURE__ */ jsx18(Text12, { fw: 700, children: "Action micro-interactions \u2014 onAction" }),
2421
+ /* @__PURE__ */ jsxs17(Badge6, { variant: "light", children: [
2422
+ "pending after ",
2423
+ GDS_BUTTON_PENDING_DELAY_MS,
2424
+ "ms"
2425
+ ] }),
2426
+ /* @__PURE__ */ jsxs17(Badge6, { variant: "light", children: [
2427
+ "pending at least ",
2428
+ GDS_BUTTON_PENDING_MIN_MS,
2429
+ "ms"
2430
+ ] })
2431
+ ] }),
2432
+ /* @__PURE__ */ jsxs17(Text12, { size: "sm", children: [
2433
+ "Pass the action as ",
2434
+ /* @__PURE__ */ jsx18("code", { children: "onAction" }),
2435
+ " and the button runs the whole cycle from its promise. An action that settles within ",
2436
+ GDS_BUTTON_PENDING_DELAY_MS,
2437
+ "ms goes straight to its result; a slower one shows its pending motion and label, held at least",
2438
+ " ",
2439
+ GDS_BUTTON_PENDING_MIN_MS,
2440
+ "ms so it never flickers. Clicks are ignored while it runs and the button stays focusable (",
2441
+ /* @__PURE__ */ jsx18("code", { children: "aria-disabled" }),
2442
+ "). The result shows for",
2443
+ " ",
2444
+ GDS_BUTTON_FEEDBACK_DURATION_MS,
2445
+ "ms. Delete asks for a second click within",
2446
+ " ",
2447
+ GDS_BUTTON_CONFIRM_WINDOW_MS,
2448
+ "ms. Each button reserves the width of its widest state, so the layout does not move, and a live region announces pending, success and error."
2449
+ ] }),
2450
+ /* @__PURE__ */ jsx18(Text12, { size: "sm", c: "dimmed", children: "The actions below are simulated: each waits the selected time, then succeeds or fails. With reduced motion turned on in the operating system, nothing moves: icons and labels swap without animation." }),
2451
+ /* @__PURE__ */ jsx18(ActionMotionDemo, {}),
2452
+ /* @__PURE__ */ jsx18(
2453
+ SimpleDataTable,
2454
+ {
2455
+ columns: [
2456
+ { key: "action", header: "Action" },
2457
+ { key: "pending", header: "Pending motion" },
2458
+ { key: "success", header: "Success motion" },
2459
+ { key: "confirm", header: "Confirm first" }
2460
+ ],
2461
+ rows: motionRows,
2462
+ getRowKey: (row) => row.action
2463
+ }
2464
+ )
2465
+ ] }),
2308
2466
  /* @__PURE__ */ jsxs17(Stack13, { gap: "2xs", children: [
2309
2467
  /* @__PURE__ */ jsx18(Text12, { fw: 700, children: "Success feedback is per action" }),
2310
2468
  /* @__PURE__ */ jsxs17(Text12, { size: "sm", children: [
@@ -2340,7 +2498,7 @@ function GdsButtonFeedbackReference() {
2340
2498
  ] }),
2341
2499
  /* @__PURE__ */ jsxs17(Stack13, { gap: "2xs", children: [
2342
2500
  /* @__PURE__ */ jsx18(Text12, { fw: 700, children: "Error feedback is uniform" }),
2343
- /* @__PURE__ */ jsx18(Text12, { size: "sm", children: "Where success is per action, the error treatment is fixed: the same cross icon and the `gds.feedback.error` message key for every action, so a failure reads the same way wherever it appears. Pass `feedbackText` to replace the label in either state \u2014 the icon stays governed." })
2501
+ /* @__PURE__ */ jsx18(Text12, { size: "sm", children: "Where success is per action, the error treatment is fixed for every action: the same cross icon, a short shake, the short `gds.feedback.failed` label on the button (so it keeps its width), and the full `gds.feedback.error` message in the live region, so a failure reads the same way wherever it appears. Pass `feedbackText` to replace the label in either state \u2014 the icon stays governed." })
2344
2502
  ] }),
2345
2503
  /* @__PURE__ */ jsxs17(Stack13, { gap: "2xs", "data-gds-brand-intent-reference": "", children: [
2346
2504
  /* @__PURE__ */ jsxs17(Group13, { gap: "xs", align: "center", children: [
@@ -2419,6 +2577,7 @@ export {
2419
2577
  DetailProfileShell,
2420
2578
  DiscoveryShell,
2421
2579
  DocsCodeBlock,
2580
+ DocsCodeDisclosure,
2422
2581
  DocsHeaderActionSelect,
2423
2582
  DocsPageShell,
2424
2583
  DocsShell,
@@ -2435,9 +2594,14 @@ export {
2435
2594
  FoodMenuSection,
2436
2595
  FormErrorSummary,
2437
2596
  FormField,
2597
+ GDS_BUTTON_CONFIRM_WINDOW_MS,
2438
2598
  GDS_BUTTON_FEEDBACK_DURATION_MS,
2439
2599
  GDS_BUTTON_GRADIENT_TEXT_FLOOR,
2440
2600
  GDS_BUTTON_OUTLINE_ACCENT_STROKE_PX,
2601
+ GDS_BUTTON_PENDING_DELAY_MS,
2602
+ GDS_BUTTON_PENDING_MIN_MS,
2603
+ GDS_CHART_SERIES_COLORS,
2604
+ GDS_CHART_SERIES_SLOTS,
2441
2605
  GDS_DETAIL_FACTS_LABEL_COLUMN_PX,
2442
2606
  GDS_DETAIL_FACT_IDS,
2443
2607
  GDS_HERO_SEARCH_FIELD_FLEX_BASIS_PX,
@@ -2474,6 +2638,7 @@ export {
2474
2638
  GdsAnalyticsTemplate,
2475
2639
  GdsAreaChart,
2476
2640
  GdsAssetManager,
2641
+ GdsAssetManagerTemplate,
2477
2642
  GdsAssetPreviewCard,
2478
2643
  GdsBadge,
2479
2644
  GdsBadgeShapeCircle,
@@ -2490,6 +2655,7 @@ export {
2490
2655
  GdsBleed,
2491
2656
  GdsBox,
2492
2657
  GdsBreadcrumbs,
2658
+ GdsBulkActionBar,
2493
2659
  GdsButtonFeedbackReference,
2494
2660
  GdsCalendarHeatmapChart,
2495
2661
  GdsChart,
@@ -2549,6 +2715,7 @@ export {
2549
2715
  GdsMapPinPreviewCard,
2550
2716
  GdsMaturityRadarChart,
2551
2717
  GdsMediaFrame,
2718
+ GdsMessageThread,
2552
2719
  GdsMeter,
2553
2720
  GdsModal,
2554
2721
  GdsMotionSystemReference,
@@ -2566,6 +2733,7 @@ export {
2566
2733
  GdsRatingDisplay,
2567
2734
  GdsRatingScale,
2568
2735
  GdsRelativeTime,
2736
+ GdsReleaseNotes,
2569
2737
  GdsRemovableTag,
2570
2738
  GdsResourceManager,
2571
2739
  GdsResourceManagerTemplate,
@@ -2577,6 +2745,7 @@ export {
2577
2745
  GdsSegmentedControl,
2578
2746
  GdsSettingsTemplate,
2579
2747
  GdsShapeElevationSystemReference,
2748
+ GdsShapeScope,
2580
2749
  GdsSheet,
2581
2750
  GdsSidePanel,
2582
2751
  GdsSidebar,
@@ -2587,15 +2756,21 @@ export {
2587
2756
  GdsStack,
2588
2757
  GdsStackedBarChart,
2589
2758
  GdsSymmetryChart,
2759
+ GdsTableScrollContainer,
2590
2760
  GdsTelemetryProvider,
2761
+ GdsThreadList,
2591
2762
  GdsToastProvider,
2763
+ GdsToastViewport,
2592
2764
  GdsTourButton,
2593
2765
  GdsTourProvider,
2766
+ GdsTreeView,
2594
2767
  GdsTypographySystemReference,
2595
2768
  GdsValidationSummary,
2769
+ GdsViewToggle,
2596
2770
  GdsViewportFrame,
2597
2771
  GdsVocabulary,
2598
2772
  GdsWizardStepper,
2773
+ GdsWorkspaceInboxTemplate,
2599
2774
  Group,
2600
2775
  HeroSearchPanel,
2601
2776
  InlineAlert,
@@ -2793,6 +2968,7 @@ export {
2793
2968
  getGdsAccessibilityEvidenceSummary,
2794
2969
  getGdsActivityPictogramKeys,
2795
2970
  getGdsBlockTypes,
2971
+ getGdsChartSeriesColor,
2796
2972
  getGdsContentPattern,
2797
2973
  getGdsContentPatterns,
2798
2974
  getGdsCopyTemplate,
@@ -2814,6 +2990,7 @@ export {
2814
2990
  getGdsPageTemplates,
2815
2991
  getGdsRecommendedMaturityCapabilities,
2816
2992
  getGdsSeriesColor,
2993
+ getGdsShapeScopeStyle,
2817
2994
  getGdsTaskPattern,
2818
2995
  getGdsTaskPatterns,
2819
2996
  getProviderIdentityLabel,
@@ -2841,6 +3018,7 @@ export {
2841
3018
  openApiToGdsFormSchema,
2842
3019
  partnerDiscoveryDefaultAmenities,
2843
3020
  partnerDiscoveryDefaultFilterState,
3021
+ partnerDiscoveryFamilyAmenities,
2844
3022
  redactGdsAccessGateMetadata,
2845
3023
  redactPartnerDiscoveryEventMetadata,
2846
3024
  registerGdsBlock,
@@ -2854,6 +3032,7 @@ export {
2854
3032
  resolveGdsActivityPictogramLabel,
2855
3033
  resolveGdsCardContract,
2856
3034
  resolveGdsCategoryBadgeIcon,
3035
+ resolveGdsChartTokenColor,
2857
3036
  resolveGdsGeneratedPaletteHex,
2858
3037
  resolveGdsLayoutStyle,
2859
3038
  resolveGdsLocale,