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