@astryxdesign/core 0.7.17-canary.gdaeb596 → 0.7.17-canary.gdcdd9fa

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 (535) hide show
  1. package/README.md +21 -7
  2. package/dist/AppShell/AppShell.d.ts +7 -3
  3. package/dist/AppShell/AppShell.d.ts.map +1 -1
  4. package/dist/AppShell/AppShell.js +44 -10
  5. package/dist/AppShell/unreadWidthPoint.d.ts +29 -0
  6. package/dist/AppShell/unreadWidthPoint.d.ts.map +1 -0
  7. package/dist/AppShell/unreadWidthPoint.js +134 -0
  8. package/dist/AvatarGroup/AvatarGroupOverflow.d.ts.map +1 -1
  9. package/dist/AvatarGroup/AvatarGroupOverflow.js +1 -0
  10. package/dist/Badge/Badge.d.ts.map +1 -1
  11. package/dist/Badge/Badge.js +2 -2
  12. package/dist/Banner/Banner.d.ts +6 -4
  13. package/dist/Banner/Banner.d.ts.map +1 -1
  14. package/dist/Banner/Banner.js +32 -29
  15. package/dist/Breadcrumbs/BreadcrumbItem.js +4 -1
  16. package/dist/Button/Button.d.ts.map +1 -1
  17. package/dist/Button/Button.js +4 -0
  18. package/dist/Calendar/styles.d.ts +10 -6
  19. package/dist/Calendar/styles.d.ts.map +1 -1
  20. package/dist/Calendar/styles.js +7 -3
  21. package/dist/Chat/ChatComposer.d.ts +1 -1
  22. package/dist/Chat/ChatComposer.d.ts.map +1 -1
  23. package/dist/Chat/ChatComposer.js +4 -4
  24. package/dist/Chat/ChatComposerDrawer.d.ts.map +1 -1
  25. package/dist/Chat/ChatComposerDrawer.js +8 -4
  26. package/dist/Chat/ChatDictationButton.d.ts.map +1 -1
  27. package/dist/Chat/ChatDictationButton.js +7 -0
  28. package/dist/Chat/ChatPastedTextToken.d.ts.map +1 -1
  29. package/dist/Chat/ChatPastedTextToken.js +1 -1
  30. package/dist/Chat/ChatSendButton.d.ts.map +1 -1
  31. package/dist/Chat/ChatSendButton.js +3 -0
  32. package/dist/Chat/ChatSystemMessage.d.ts.map +1 -1
  33. package/dist/Chat/ChatSystemMessage.js +1 -0
  34. package/dist/Chat/ChatToolCalls.d.ts.map +1 -1
  35. package/dist/Chat/ChatToolCalls.js +7 -0
  36. package/dist/Chat/useTriggerMenu.d.ts.map +1 -1
  37. package/dist/Chat/useTriggerMenu.js +2 -2
  38. package/dist/CheckboxInput/CheckboxInput.d.ts +2 -1
  39. package/dist/CheckboxInput/CheckboxInput.d.ts.map +1 -1
  40. package/dist/CheckboxInput/CheckboxInput.js +69 -18
  41. package/dist/Citation/Citation.d.ts.map +1 -1
  42. package/dist/Citation/Citation.js +1 -1
  43. package/dist/CodeBlock/CodeBlock.d.ts.map +1 -1
  44. package/dist/CodeBlock/CodeBlock.js +13 -1
  45. package/dist/Collapsible/Collapsible.d.ts.map +1 -1
  46. package/dist/Collapsible/Collapsible.js +2 -0
  47. package/dist/CommandPalette/CommandPaletteItem.d.ts.map +1 -1
  48. package/dist/CommandPalette/CommandPaletteItem.js +1 -0
  49. package/dist/ComplexSelector/ComplexSelector.d.ts.map +1 -1
  50. package/dist/ComplexSelector/ComplexSelector.js +1 -1
  51. package/dist/ContextMenu/ContextMenu.d.ts.map +1 -1
  52. package/dist/ContextMenu/ContextMenu.js +3 -2
  53. package/dist/DateInput/MonthScroller.d.ts.map +1 -1
  54. package/dist/DateInput/MonthScroller.js +1 -0
  55. package/dist/DateInput/PickerWheel.d.ts.map +1 -1
  56. package/dist/DateInput/PickerWheel.js +3 -2
  57. package/dist/DateInput/TouchDateField.d.ts.map +1 -1
  58. package/dist/DateInput/TouchDateField.js +2 -1
  59. package/dist/DateInput/Wheel.d.ts.map +1 -1
  60. package/dist/DateInput/Wheel.js +8 -8
  61. package/dist/DateRangeInput/DateRangeInput.d.ts.map +1 -1
  62. package/dist/DateRangeInput/DateRangeInput.js +7 -0
  63. package/dist/DateTimeInput/TouchDateTimeField.d.ts.map +1 -1
  64. package/dist/DateTimeInput/TouchDateTimeField.js +2 -1
  65. package/dist/DateTimeInput/nativePickerSegmentStyles.d.ts +2 -2
  66. package/dist/Dialog/Dialog.d.ts.map +1 -1
  67. package/dist/Dialog/Dialog.js +7 -0
  68. package/dist/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  69. package/dist/DropdownMenu/DropdownMenu.js +3 -1
  70. package/dist/DropdownMenu/DropdownMenuItem.d.ts.map +1 -1
  71. package/dist/DropdownMenu/DropdownMenuItem.js +1 -0
  72. package/dist/DropdownMenu/DropdownMenuSubMenu.d.ts.map +1 -1
  73. package/dist/DropdownMenu/DropdownMenuSubMenu.js +1 -0
  74. package/dist/DropdownMenu/lazyMenuBottomSheet.d.ts +6 -3
  75. package/dist/DropdownMenu/lazyMenuBottomSheet.d.ts.map +1 -1
  76. package/dist/DropdownMenu/lazyMenuBottomSheet.js +31 -7
  77. package/dist/EmptyState/EmptyState.d.ts.map +1 -1
  78. package/dist/EmptyState/EmptyState.js +2 -2
  79. package/dist/Field/FieldLabel.d.ts.map +1 -1
  80. package/dist/Field/FieldLabel.js +2 -2
  81. package/dist/Grid/Grid.d.ts +2 -1
  82. package/dist/Grid/Grid.d.ts.map +1 -1
  83. package/dist/Grid/Grid.js +5 -2
  84. package/dist/Heading/Heading.d.ts +1 -1
  85. package/dist/Heading/Heading.d.ts.map +1 -1
  86. package/dist/Heading/Heading.js +15 -1
  87. package/dist/Icon/Icon.d.ts +1 -1
  88. package/dist/Icon/Icon.d.ts.map +1 -1
  89. package/dist/Icon/Icon.js +32 -2
  90. package/dist/Indicator/CheckboxIndicator.d.ts.map +1 -1
  91. package/dist/Indicator/CheckboxIndicator.js +12 -6
  92. package/dist/Indicator/RadioIndicator.d.ts.map +1 -1
  93. package/dist/Indicator/RadioIndicator.js +18 -4
  94. package/dist/Indicator/indicatorRegistry.d.ts +3 -26
  95. package/dist/Indicator/indicatorRegistry.d.ts.map +1 -1
  96. package/dist/Indicator/indicatorRegistry.js +2 -11
  97. package/dist/Indicator/themeIndicators.d.ts +15 -0
  98. package/dist/Indicator/themeIndicators.d.ts.map +1 -0
  99. package/dist/Indicator/themeIndicators.js +21 -0
  100. package/dist/Indicator/types.d.ts +14 -0
  101. package/dist/Indicator/types.d.ts.map +1 -1
  102. package/dist/Indicator/useThemeIndicator.d.ts +3 -0
  103. package/dist/Indicator/useThemeIndicator.d.ts.map +1 -0
  104. package/dist/Indicator/useThemeIndicator.js +19 -0
  105. package/dist/Item/Item.d.ts +6 -2
  106. package/dist/Item/Item.d.ts.map +1 -1
  107. package/dist/Item/Item.js +30 -2
  108. package/dist/Kbd/Kbd.d.ts.map +1 -1
  109. package/dist/Kbd/Kbd.js +7 -0
  110. package/dist/Layout/LayoutContainerContext.js +3 -3
  111. package/dist/Layout/LayoutContent.d.ts +2 -1
  112. package/dist/Layout/LayoutContent.d.ts.map +1 -1
  113. package/dist/Layout/LayoutContent.js +7 -2
  114. package/dist/Lightbox/Lightbox.d.ts.map +1 -1
  115. package/dist/Lightbox/Lightbox.js +324 -6
  116. package/dist/List/List.d.ts.map +1 -1
  117. package/dist/List/List.js +14 -6
  118. package/dist/List/ListContext.d.ts +38 -1
  119. package/dist/List/ListContext.d.ts.map +1 -1
  120. package/dist/List/ListContext.js +50 -2
  121. package/dist/List/ListItem.js +2 -2
  122. package/dist/Markdown/Markdown.d.ts.map +1 -1
  123. package/dist/Markdown/Markdown.js +72 -74
  124. package/dist/MetadataList/MetadataListItem.d.ts.map +1 -1
  125. package/dist/MetadataList/MetadataListItem.js +11 -3
  126. package/dist/MobileNav/MobileNav.d.ts +1 -1
  127. package/dist/MobileNav/MobileNav.d.ts.map +1 -1
  128. package/dist/MobileNav/MobileNav.js +3 -2
  129. package/dist/MultiSelector/MultiSelector.d.ts.map +1 -1
  130. package/dist/MultiSelector/MultiSelector.js +29 -8
  131. package/dist/NavMenu/NavHeadingMenuItem.d.ts.map +1 -1
  132. package/dist/NavMenu/NavHeadingMenuItem.js +1 -0
  133. package/dist/NumberInput/NumberInput.d.ts.map +1 -1
  134. package/dist/NumberInput/NumberInput.js +6 -2
  135. package/dist/OverflowList/OverflowList.d.ts.map +1 -1
  136. package/dist/OverflowList/OverflowList.js +51 -25
  137. package/dist/Pagination/Pagination.d.ts.map +1 -1
  138. package/dist/Pagination/Pagination.js +33 -13
  139. package/dist/PowerSearch/PowerSearch.d.ts +2 -0
  140. package/dist/PowerSearch/PowerSearch.d.ts.map +1 -1
  141. package/dist/PowerSearch/PowerSearch.js +1 -1
  142. package/dist/PowerSearch/PowerSearchEditPopover.d.ts.map +1 -1
  143. package/dist/PowerSearch/PowerSearchEditPopover.js +1 -1
  144. package/dist/RadioList/RadioList.d.ts.map +1 -1
  145. package/dist/RadioList/RadioList.js +51 -0
  146. package/dist/RadioList/RadioListItem.d.ts.map +1 -1
  147. package/dist/RadioList/RadioListItem.js +1 -1
  148. package/dist/Resizable/ResizeHandle.d.ts +1 -1
  149. package/dist/Resizable/ResizeHandle.d.ts.map +1 -1
  150. package/dist/Resizable/ResizeHandle.js +1 -1
  151. package/dist/Resizable/resizableModel.d.ts +45 -3
  152. package/dist/Resizable/resizableModel.d.ts.map +1 -1
  153. package/dist/Resizable/resizableModel.js +91 -3
  154. package/dist/Resizable/useResizable.d.ts +1 -33
  155. package/dist/Resizable/useResizable.d.ts.map +1 -1
  156. package/dist/Resizable/useResizable.js +8 -72
  157. package/dist/SegmentedControl/SegmentedControlItem.d.ts.map +1 -1
  158. package/dist/SegmentedControl/SegmentedControlItem.js +1 -0
  159. package/dist/Selector/Selector.d.ts.map +1 -1
  160. package/dist/Selector/Selector.js +17 -11
  161. package/dist/Selector/hooks.d.ts.map +1 -1
  162. package/dist/Selector/hooks.js +3 -1
  163. package/dist/Selector/useSelectorPresentation.d.ts.map +1 -1
  164. package/dist/Selector/useSelectorPresentation.js +9 -3
  165. package/dist/SideNav/SideNavHeading.d.ts.map +1 -1
  166. package/dist/SideNav/SideNavHeading.js +5 -1
  167. package/dist/Slider/Slider.d.ts.map +1 -1
  168. package/dist/Slider/Slider.js +1 -1
  169. package/dist/Spinner/Spinner.d.ts.map +1 -1
  170. package/dist/Spinner/Spinner.js +47 -33
  171. package/dist/Stepper/Step.d.ts.map +1 -1
  172. package/dist/Stepper/Step.js +20 -11
  173. package/dist/Switch/Switch.d.ts.map +1 -1
  174. package/dist/Switch/Switch.js +17 -1
  175. package/dist/Switch/useSwitchTouch.d.ts +17 -1
  176. package/dist/Switch/useSwitchTouch.d.ts.map +1 -1
  177. package/dist/Switch/useSwitchTouch.js +43 -3
  178. package/dist/TabList/Tab.d.ts.map +1 -1
  179. package/dist/TabList/Tab.js +3 -3
  180. package/dist/Table/BaseTable.d.ts.map +1 -1
  181. package/dist/Table/BaseTable.js +25 -16
  182. package/dist/Table/Table.d.ts.map +1 -1
  183. package/dist/Table/Table.js +31 -13
  184. package/dist/Table/TableBody.d.ts.map +1 -1
  185. package/dist/Table/TableBody.js +5 -1
  186. package/dist/Table/TableCell.d.ts.map +1 -1
  187. package/dist/Table/TableCell.js +6 -0
  188. package/dist/Table/TableHeaderCell.d.ts.map +1 -1
  189. package/dist/Table/TableHeaderCell.js +3 -0
  190. package/dist/Table/TableRow.d.ts.map +1 -1
  191. package/dist/Table/TableRow.js +9 -1
  192. package/dist/Table/TableRowPlacementContext.d.ts +18 -0
  193. package/dist/Table/TableRowPlacementContext.d.ts.map +1 -0
  194. package/dist/Table/TableRowPlacementContext.js +41 -0
  195. package/dist/Table/TableSelectionToolbar.d.ts.map +1 -1
  196. package/dist/Table/TableSelectionToolbar.js +7 -0
  197. package/dist/Table/plugins/rowIndex/useTableRowIndex.d.ts.map +1 -1
  198. package/dist/Table/plugins/rowIndex/useTableRowIndex.js +2 -2
  199. package/dist/Table/plugins/stickyColumns/useTableStickyColumns.d.ts.map +1 -1
  200. package/dist/Table/plugins/stickyColumns/useTableStickyColumns.js +5 -1
  201. package/dist/Text/text.stylex.d.ts +2 -2
  202. package/dist/TextArea/TextArea.d.ts.map +1 -1
  203. package/dist/TextArea/TextArea.js +13 -1
  204. package/dist/TextInput/TextInput.d.ts.map +1 -1
  205. package/dist/TextInput/TextInput.js +14 -2
  206. package/dist/Timestamp/Timestamp.d.ts.map +1 -1
  207. package/dist/Timestamp/Timestamp.js +55 -4
  208. package/dist/Toast/Toast.d.ts.map +1 -1
  209. package/dist/Toast/Toast.js +74 -39
  210. package/dist/Toast/ToastViewport.d.ts.map +1 -1
  211. package/dist/Toast/ToastViewport.js +47 -17
  212. package/dist/Toast/types.d.ts +8 -0
  213. package/dist/Toast/types.d.ts.map +1 -1
  214. package/dist/Toast/useToast.d.ts.map +1 -1
  215. package/dist/Toast/useToast.js +14 -7
  216. package/dist/Token/Token.d.ts.map +1 -1
  217. package/dist/Token/Token.js +1 -0
  218. package/dist/Tokenizer/Tokenizer.d.ts.map +1 -1
  219. package/dist/Tokenizer/Tokenizer.js +6 -29
  220. package/dist/Toolbar/Toolbar.d.ts.map +1 -1
  221. package/dist/Toolbar/Toolbar.js +33 -5
  222. package/dist/TopNav/TopNav.d.ts.map +1 -1
  223. package/dist/TopNav/TopNav.js +24 -8
  224. package/dist/TopNav/TopNavHeading.d.ts.map +1 -1
  225. package/dist/TopNav/TopNavHeading.js +12 -6
  226. package/dist/TopNav/TopNavMenu.d.ts.map +1 -1
  227. package/dist/TopNav/TopNavMenu.js +1 -1
  228. package/dist/TopNav/TopNavRenderContext.d.ts +13 -0
  229. package/dist/TopNav/TopNavRenderContext.d.ts.map +1 -1
  230. package/dist/TopNav/TopNavRenderContext.js +24 -9
  231. package/dist/TreeList/TreeListItem.d.ts.map +1 -1
  232. package/dist/TreeList/TreeListItem.js +7 -1
  233. package/dist/Typeahead/BaseTypeahead.d.ts.map +1 -1
  234. package/dist/Typeahead/BaseTypeahead.js +1 -1
  235. package/dist/astryx.css +73 -22
  236. package/dist/gestures/GestureHost.d.ts +7 -0
  237. package/dist/gestures/GestureHost.d.ts.map +1 -1
  238. package/dist/gestures/GestureHost.js +37 -0
  239. package/dist/hooks/computeOverflow.d.ts.map +1 -1
  240. package/dist/hooks/computeOverflow.js +7 -0
  241. package/dist/hooks/scrollEdgeFade.d.ts +34 -0
  242. package/dist/hooks/scrollEdgeFade.d.ts.map +1 -0
  243. package/dist/hooks/scrollEdgeFade.js +173 -0
  244. package/dist/hooks/useGroupPressTracking.d.ts +1 -1
  245. package/dist/hooks/useGroupPressTracking.js +1 -1
  246. package/dist/hooks/useOverflow.d.ts +25 -2
  247. package/dist/hooks/useOverflow.d.ts.map +1 -1
  248. package/dist/hooks/useOverflow.js +137 -8
  249. package/dist/hooks/useResolvedRequired.d.ts +27 -0
  250. package/dist/hooks/useResolvedRequired.d.ts.map +1 -1
  251. package/dist/hooks/useResolvedRequired.js +30 -1
  252. package/dist/hooks/useTreeFocus.d.ts.map +1 -1
  253. package/dist/hooks/useTreeFocus.js +4 -2
  254. package/dist/hooks/useTypeahead.d.ts.map +1 -1
  255. package/dist/hooks/useTypeahead.js +8 -8
  256. package/dist/i18n/generated-english/MultiSelector/MultiSelector.generated.d.ts.map +1 -1
  257. package/dist/i18n/generated-english/MultiSelector/MultiSelector.generated.js +1 -0
  258. package/dist/i18n/generated-english/TextArea/TextArea.generated.d.ts.map +1 -1
  259. package/dist/i18n/generated-english/TextArea/TextArea.generated.js +1 -0
  260. package/dist/i18n/generated-english/TextInput/TextInput.generated.d.ts.map +1 -1
  261. package/dist/i18n/generated-english/TextInput/TextInput.generated.js +1 -0
  262. package/dist/i18n/generated-english/Timestamp/Timestamp.generated.d.ts.map +1 -1
  263. package/dist/i18n/generated-english/Timestamp/Timestamp.generated.js +2 -1
  264. package/dist/i18n/generated-locales/en.generated.d.ts.map +1 -1
  265. package/dist/i18n/generated-locales/en.generated.js +4 -0
  266. package/dist/i18n/generated-locales/pseudo.generated.d.ts.map +1 -1
  267. package/dist/i18n/generated-locales/pseudo.generated.js +4 -0
  268. package/dist/internal/touch.d.ts +2 -0
  269. package/dist/internal/touch.d.ts.map +1 -1
  270. package/dist/internal/touch.js +5 -1
  271. package/dist/privateAttributes/mediaDarkPage.d.ts +5 -0
  272. package/dist/privateAttributes/mediaDarkPage.d.ts.map +1 -0
  273. package/dist/privateAttributes/mediaDarkPage.js +27 -0
  274. package/dist/privateAttributes/pressGroupItem.stylex.d.ts +2 -1
  275. package/dist/privateAttributes/pressGroupItem.stylex.d.ts.map +1 -1
  276. package/dist/privateAttributes/pressGroupItem.stylex.js +2 -1
  277. package/dist/privateAttributes/travelling.stylex.d.ts.map +1 -1
  278. package/dist/privateAttributes/travelling.stylex.js +2 -2
  279. package/dist/theme/MediaDarkPage.d.ts +18 -0
  280. package/dist/theme/MediaDarkPage.d.ts.map +1 -0
  281. package/dist/theme/MediaDarkPage.js +35 -0
  282. package/dist/theme/MediaTheme.d.ts.map +1 -1
  283. package/dist/theme/MediaTheme.js +9 -1
  284. package/dist/theme/Theme.d.ts.map +1 -1
  285. package/dist/theme/Theme.js +81 -23
  286. package/dist/theme/defineTheme.d.ts +1 -1
  287. package/dist/theme/defineTheme.d.ts.map +1 -1
  288. package/dist/theme/defineTheme.js +0 -6
  289. package/dist/theme/derivedVarRegistry.d.ts.map +1 -1
  290. package/dist/theme/derivedVarRegistry.js +16 -0
  291. package/dist/theme/expandRadiusScale.d.ts +1 -2
  292. package/dist/theme/expandRadiusScale.d.ts.map +1 -1
  293. package/dist/theme/expandRadiusScale.js +1 -5
  294. package/dist/theme/generateThemeRules.d.ts +0 -3
  295. package/dist/theme/generateThemeRules.d.ts.map +1 -1
  296. package/dist/theme/generateThemeRules.js +203 -205
  297. package/dist/theme/index.d.ts +2 -1
  298. package/dist/theme/index.d.ts.map +1 -1
  299. package/dist/theme/index.js +2 -1
  300. package/dist/theme/invertedSurfaceSide.d.ts +17 -0
  301. package/dist/theme/invertedSurfaceSide.d.ts.map +1 -0
  302. package/dist/theme/invertedSurfaceSide.js +47 -0
  303. package/dist/theme/resolveThemeValues.d.ts +5 -2
  304. package/dist/theme/resolveThemeValues.d.ts.map +1 -1
  305. package/dist/theme/resolveThemeValues.js +7 -1
  306. package/dist/theme/statusRoleDefaults.d.ts +43 -0
  307. package/dist/theme/statusRoleDefaults.d.ts.map +1 -0
  308. package/dist/theme/statusRoleDefaults.js +196 -0
  309. package/dist/theme/statusRoleDerivation.d.ts +4 -0
  310. package/dist/theme/statusRoleDerivation.d.ts.map +1 -1
  311. package/dist/theme/statusRoleDerivation.js +3 -1
  312. package/dist/theme/themeAdaptations.d.ts +24 -1
  313. package/dist/theme/themeAdaptations.d.ts.map +1 -1
  314. package/dist/theme/themeAdaptations.js +48 -5
  315. package/dist/theme/tokens.js +1 -1
  316. package/dist/theme/tokens.stylex.d.ts +4 -4
  317. package/dist/theme/tokens.stylex.d.ts.map +1 -1
  318. package/dist/theme/tokens.stylex.js +6 -5
  319. package/dist/theme/useTheme.d.ts +29 -0
  320. package/dist/theme/useTheme.d.ts.map +1 -1
  321. package/dist/theme/useTheme.js +56 -7
  322. package/dist/utils/hitArea.d.ts +28 -0
  323. package/dist/utils/hitArea.d.ts.map +1 -1
  324. package/dist/utils/hitArea.js +52 -18
  325. package/dist/utils/touchPresentation.d.ts +2 -2
  326. package/dist/utils/touchPresentation.d.ts.map +1 -1
  327. package/dist/utils/touchPresentation.js +10 -7
  328. package/dist/utils/touchPresentation.stylex.d.ts +4 -3
  329. package/dist/utils/touchPresentation.stylex.d.ts.map +1 -1
  330. package/dist/utils/touchPresentation.stylex.js +3 -3
  331. package/dist/utils/typeaheadMatch.d.ts +13 -0
  332. package/dist/utils/typeaheadMatch.d.ts.map +1 -1
  333. package/dist/utils/typeaheadMatch.js +15 -1
  334. package/locales/en.json +16 -0
  335. package/locales/pseudo.json +12 -0
  336. package/package.json +4 -4
  337. package/scripts/agent-doc-state.mjs +70 -3
  338. package/src/AppShell/AppShell.tsx +62 -18
  339. package/src/AppShell/unreadWidthPoint.ts +162 -0
  340. package/src/AvatarGroup/AvatarGroupOverflow.tsx +1 -0
  341. package/src/Badge/Badge.tsx +5 -2
  342. package/src/Banner/Banner.doc.mjs +15 -0
  343. package/src/Banner/Banner.tsx +56 -45
  344. package/src/Breadcrumbs/BreadcrumbItem.tsx +4 -1
  345. package/src/Button/Button.tsx +6 -0
  346. package/src/Calendar/styles.ts +12 -3
  347. package/src/Chat/Chat.doc.mjs +1 -1
  348. package/src/Chat/ChatComposer.doc.mjs +3 -3
  349. package/src/Chat/ChatComposer.tsx +11 -5
  350. package/src/Chat/ChatComposerDrawer.tsx +11 -7
  351. package/src/Chat/ChatDictationButton.tsx +12 -0
  352. package/src/Chat/ChatMessageBubble.tsx +2 -2
  353. package/src/Chat/ChatPastedTextToken.tsx +1 -0
  354. package/src/Chat/ChatSendButton.tsx +5 -0
  355. package/src/Chat/ChatSystemMessage.tsx +1 -0
  356. package/src/Chat/ChatToolCalls.tsx +12 -0
  357. package/src/Chat/useTriggerMenu.tsx +2 -0
  358. package/src/CheckboxInput/CheckboxInput.doc.mjs +20 -0
  359. package/src/CheckboxInput/CheckboxInput.tsx +83 -26
  360. package/src/CheckboxList/CheckboxList.doc.mjs +15 -0
  361. package/src/CheckboxList/CheckboxListItem.doc.mjs +3 -3
  362. package/src/Citation/Citation.tsx +4 -1
  363. package/src/CodeBlock/CodeBlock.tsx +21 -1
  364. package/src/Collapsible/Collapsible.tsx +2 -0
  365. package/src/CommandPalette/CommandPaletteItem.tsx +1 -0
  366. package/src/ComplexSelector/ComplexSelector.doc.mjs +30 -2
  367. package/src/ComplexSelector/ComplexSelector.tsx +7 -1
  368. package/src/ContextMenu/ContextMenu.tsx +6 -2
  369. package/src/ContextMenu/ContextMenuItem.doc.mjs +55 -5
  370. package/src/DateInput/MonthScroller.tsx +1 -0
  371. package/src/DateInput/PickerWheel.tsx +1 -0
  372. package/src/DateInput/TouchDateField.tsx +2 -0
  373. package/src/DateInput/Wheel.tsx +1 -0
  374. package/src/DateRangeInput/DateRangeInput.tsx +16 -0
  375. package/src/DateTimeInput/TouchDateTimeField.tsx +2 -0
  376. package/src/Dialog/Dialog.tsx +7 -0
  377. package/src/DropdownMenu/DropdownMenu.tsx +3 -1
  378. package/src/DropdownMenu/DropdownMenuCheckboxItem.doc.mjs +4 -4
  379. package/src/DropdownMenu/DropdownMenuItem.doc.mjs +5 -5
  380. package/src/DropdownMenu/DropdownMenuItem.tsx +1 -0
  381. package/src/DropdownMenu/DropdownMenuRadioItem.doc.mjs +4 -4
  382. package/src/DropdownMenu/DropdownMenuSubMenu.doc.mjs +3 -3
  383. package/src/DropdownMenu/DropdownMenuSubMenu.tsx +1 -0
  384. package/src/DropdownMenu/lazyMenuBottomSheet.ts +37 -9
  385. package/src/EmptyState/EmptyState.tsx +2 -0
  386. package/src/Field/Field.doc.mjs +1 -1
  387. package/src/Field/FieldLabel.doc.mjs +3 -3
  388. package/src/Field/FieldLabel.tsx +9 -2
  389. package/src/Grid/Grid.doc.mjs +6 -3
  390. package/src/Grid/Grid.tsx +5 -2
  391. package/src/Heading/Heading.tsx +24 -1
  392. package/src/Icon/Icon.doc.mjs +1 -1
  393. package/src/Icon/Icon.tsx +40 -2
  394. package/src/Indicator/CheckboxIndicator.tsx +11 -6
  395. package/src/Indicator/Indicator.doc.mjs +1 -1
  396. package/src/Indicator/RadioIndicator.tsx +31 -4
  397. package/src/Indicator/indicatorRegistry.ts +7 -23
  398. package/src/Indicator/themeIndicators.ts +29 -0
  399. package/src/Indicator/types.ts +14 -0
  400. package/src/Indicator/useThemeIndicator.ts +24 -0
  401. package/src/Item/Item.doc.mjs +3 -3
  402. package/src/Item/Item.tsx +48 -7
  403. package/src/Kbd/Kbd.tsx +12 -0
  404. package/src/Layout/Layout.doc.mjs +1 -1
  405. package/src/Layout/LayoutContainerContext.ts +3 -3
  406. package/src/Layout/LayoutContent.tsx +5 -2
  407. package/src/Lightbox/Lightbox.tsx +460 -8
  408. package/src/List/List.tsx +14 -2
  409. package/src/List/ListContext.tsx +60 -1
  410. package/src/List/ListItem.doc.mjs +11 -9
  411. package/src/List/ListItem.tsx +4 -4
  412. package/src/Markdown/Markdown.tsx +171 -168
  413. package/src/MetadataList/MetadataListItem.tsx +18 -3
  414. package/src/MobileNav/MobileNav.doc.mjs +126 -50
  415. package/src/MobileNav/MobileNav.tsx +3 -2
  416. package/src/MultiSelector/MultiSelector.doc.mjs +2 -2
  417. package/src/MultiSelector/MultiSelector.tsx +43 -7
  418. package/src/NavMenu/NavHeadingMenuItem.tsx +1 -0
  419. package/src/NavMenu/NavMenu.doc.mjs +105 -2
  420. package/src/NumberInput/NumberInput.doc.mjs +12 -10
  421. package/src/NumberInput/NumberInput.tsx +17 -11
  422. package/src/OverflowList/OverflowList.doc.mjs +15 -0
  423. package/src/OverflowList/OverflowList.tsx +62 -26
  424. package/src/Pagination/Pagination.doc.mjs +12 -0
  425. package/src/Pagination/Pagination.tsx +40 -6
  426. package/src/PowerSearch/PowerSearch.doc.mjs +8 -8
  427. package/src/PowerSearch/PowerSearch.tsx +4 -1
  428. package/src/PowerSearch/PowerSearchEditPopover.tsx +1 -0
  429. package/src/RadioList/RadioList.tsx +63 -0
  430. package/src/RadioList/RadioListItem.tsx +4 -1
  431. package/src/Resizable/ResizeHandle.tsx +2 -3
  432. package/src/Resizable/resizableModel.ts +105 -3
  433. package/src/Resizable/useResizable.ts +14 -75
  434. package/src/SegmentedControl/SegmentedControlItem.tsx +1 -0
  435. package/src/Selector/Selector.doc.mjs +34 -7
  436. package/src/Selector/Selector.tsx +23 -16
  437. package/src/Selector/SelectorOption.doc.mjs +5 -5
  438. package/src/Selector/hooks.ts +2 -2
  439. package/src/Selector/useSelectorPresentation.ts +18 -3
  440. package/src/SideNav/SideNavHeading.tsx +5 -1
  441. package/src/SideNav/SideNavItem.doc.mjs +10 -10
  442. package/src/Slider/Slider.tsx +1 -0
  443. package/src/Spinner/Spinner.tsx +56 -41
  444. package/src/Stepper/Step.tsx +14 -3
  445. package/src/Stepper/Stepper.doc.mjs +14 -2
  446. package/src/Switch/Switch.doc.mjs +27 -5
  447. package/src/Switch/Switch.tsx +24 -9
  448. package/src/Switch/useSwitchTouch.ts +52 -3
  449. package/src/TabList/Tab.tsx +6 -0
  450. package/src/Table/BaseTable.tsx +46 -34
  451. package/src/Table/Table.doc.mjs +17 -2
  452. package/src/Table/Table.tsx +38 -14
  453. package/src/Table/TableBody.tsx +10 -1
  454. package/src/Table/TableCell.tsx +6 -0
  455. package/src/Table/TableHeaderCell.tsx +3 -0
  456. package/src/Table/TableRow.tsx +8 -1
  457. package/src/Table/TableRowPlacementContext.ts +58 -0
  458. package/src/Table/TableSelectionToolbar.tsx +12 -0
  459. package/src/Table/plugins/columnSettings/useTableColumnSettingsState.doc.mjs +1 -1
  460. package/src/Table/plugins/rowIndex/useTableRowIndex.tsx +1 -0
  461. package/src/Table/plugins/sortable/useTableSortableState.doc.mjs +1 -1
  462. package/src/Table/plugins/stickyColumns/useTableStickyColumns.tsx +8 -0
  463. package/src/Table/useTableColumnResize.doc.mjs +3 -3
  464. package/src/Table/useTableColumnSettings.doc.mjs +3 -3
  465. package/src/Table/useTableFiltering.doc.mjs +12 -6
  466. package/src/Table/useTableInfiniteScroll.doc.mjs +2 -2
  467. package/src/Table/useTablePagination.doc.mjs +24 -3
  468. package/src/Table/useTableSelectionState.doc.mjs +30 -2
  469. package/src/Table/useTableSortable.doc.mjs +28 -19
  470. package/src/Table/useTableStickyColumns.doc.mjs +3 -3
  471. package/src/Text/Heading.doc.mjs +2 -2
  472. package/src/Text/Text.doc.mjs +1 -1
  473. package/src/TextArea/TextArea.doc.mjs +5 -5
  474. package/src/TextArea/TextArea.tsx +18 -1
  475. package/src/TextInput/TextInput.doc.mjs +5 -5
  476. package/src/TextInput/TextInput.tsx +18 -1
  477. package/src/Timestamp/Timestamp.tsx +67 -4
  478. package/src/Toast/Toast.doc.mjs +15 -5
  479. package/src/Toast/Toast.tsx +80 -52
  480. package/src/Toast/ToastViewport.tsx +63 -19
  481. package/src/Toast/types.ts +8 -0
  482. package/src/Toast/useToast.tsx +18 -7
  483. package/src/Token/Token.tsx +1 -0
  484. package/src/Tokenizer/Tokenizer.doc.mjs +2 -2
  485. package/src/Tokenizer/Tokenizer.tsx +10 -45
  486. package/src/Toolbar/Toolbar.tsx +55 -4
  487. package/src/TopNav/TopNav.doc.mjs +1 -1
  488. package/src/TopNav/TopNav.tsx +13 -3
  489. package/src/TopNav/TopNavHeading.tsx +12 -6
  490. package/src/TopNav/TopNavMenu.tsx +1 -0
  491. package/src/TopNav/TopNavRenderContext.ts +30 -9
  492. package/src/TreeList/TreeListItem.tsx +9 -1
  493. package/src/Typeahead/BaseTypeahead.tsx +1 -0
  494. package/src/Typeahead/Typeahead.doc.mjs +2 -2
  495. package/src/gestures/GestureHost.ts +34 -0
  496. package/src/gestures/README.md +9 -6
  497. package/src/hooks/computeOverflow.ts +10 -0
  498. package/src/hooks/scrollEdgeFade.ts +129 -0
  499. package/src/hooks/useGroupPressTracking.ts +1 -1
  500. package/src/hooks/useOverflow.ts +227 -13
  501. package/src/hooks/useResolvedRequired.ts +50 -1
  502. package/src/hooks/useTreeFocus.ts +8 -4
  503. package/src/hooks/useTypeahead.ts +12 -10
  504. package/src/i18n/generated-english/MultiSelector/MultiSelector.generated.ts +1 -0
  505. package/src/i18n/generated-english/TextArea/TextArea.generated.ts +1 -0
  506. package/src/i18n/generated-english/TextInput/TextInput.generated.ts +1 -0
  507. package/src/i18n/generated-english/Timestamp/Timestamp.generated.ts +2 -1
  508. package/src/i18n/generated-locales/en.generated.ts +5 -0
  509. package/src/i18n/generated-locales/pseudo.generated.ts +5 -0
  510. package/src/internal/touch.ts +7 -0
  511. package/src/privateAttributes/mediaDarkPage.ts +27 -0
  512. package/src/privateAttributes/pressGroupItem.stylex.ts +2 -1
  513. package/src/privateAttributes/travelling.stylex.ts +6 -4
  514. package/src/reset.css +1 -1
  515. package/src/theme/MediaDarkPage.tsx +41 -0
  516. package/src/theme/MediaTheme.tsx +8 -1
  517. package/src/theme/Theme.doc.mjs +2 -2
  518. package/src/theme/Theme.tsx +116 -30
  519. package/src/theme/defineTheme.ts +0 -14
  520. package/src/theme/derivedVarRegistry.ts +9 -0
  521. package/src/theme/expandRadiusScale.ts +1 -5
  522. package/src/theme/generateThemeRules.ts +280 -338
  523. package/src/theme/index.ts +2 -4
  524. package/src/theme/invertedSurfaceSide.ts +65 -0
  525. package/src/theme/resolveThemeValues.ts +8 -2
  526. package/src/theme/statusRoleDefaults.ts +330 -0
  527. package/src/theme/statusRoleDerivation.ts +2 -1
  528. package/src/theme/themeAdaptations.ts +53 -5
  529. package/src/theme/tokens.stylex.ts +6 -5
  530. package/src/theme/tokens.ts +1 -1
  531. package/src/theme/useTheme.ts +76 -7
  532. package/src/utils/hitArea.ts +70 -33
  533. package/src/utils/touchPresentation.stylex.ts +7 -6
  534. package/src/utils/touchPresentation.ts +10 -7
  535. package/src/utils/typeaheadMatch.ts +20 -1
package/README.md CHANGED
@@ -2,14 +2,26 @@
2
2
 
3
3
  Core UI components, theme system, and utilities for the Astryx design system. For project setup, see [Quick Start](#quick-start) below.
4
4
 
5
- > **Building with an AI agent?** Add the CLI, then run `init`:
5
+ > **Setup is install, then `init`.** Add the CLI at Core's version and run `init` once, before you write UI:
6
6
  >
7
7
  > ```bash
8
- > npm install -D @astryxdesign/cli # or: pnpm add -D / yarn add -D / bun add -d
9
- > npx @astryxdesign/cli init # the CLI you just installed
8
+ > npm install -D -E @astryxdesign/cli@<core version> # or: pnpm add -D -E / yarn add -D -E / bun add -d --exact
9
+ > npx @astryxdesign/cli init # asks no questions
10
10
  > ```
11
11
  >
12
- > `init` writes the Astryx component index into your `AGENTS.md`/`CLAUDE.md` so your agent discovers components, templates, and design tokens instead of guessing. Need a single command without installing? The same scoped command works: `npx @astryxdesign/cli <cmd>`. Always use the scoped name: the unscoped `astryx` resolves to an unrelated npm package until `@astryxdesign/cli` is a dependency. See [XDS CLI](#xds-cli).
12
+ > Use the version of `@astryxdesign/core` you have. Keep `-E` when `package.json` pins Core exactly, as the starters do; leave it out when Core has a `^` or `~` range.
13
+ >
14
+ > `init` prints the getting-started steps (styles, theme) and saves the Astryx guide to your `AGENTS.md`/`CLAUDE.md`: components, templates, and design tokens, so any agent working in the project builds with Astryx instead of guessing. Read it before you write UI. Always use the scoped name: the unscoped `astryx` resolves to an unrelated npm package until `@astryxdesign/cli` is a dependency. See [Astryx CLI](#astryx-cli).
15
+
16
+ > **Building with an AI agent?** Ask the Astryx CLI before you write code. These commands work with or without the install above:
17
+ >
18
+ > ```bash
19
+ > npx @astryxdesign/cli build "<what you are building>" # the template, blocks and components to start from
20
+ > npx @astryxdesign/cli component <Name> # one component's props, variants and examples
21
+ > npx @astryxdesign/cli doctor --built . # checks the setup and the code you wrote
22
+ > ```
23
+ >
24
+ > The `.doc.mjs` files in this package are only part of what the CLI knows: it also has page templates, blocks and checks that no source file shows.
13
25
 
14
26
  ## Component Docs
15
27
 
@@ -31,7 +43,7 @@ panel slots into common page patterns (dashboards, settings, forms, detail pages
31
43
  Wrap them in your own app chrome (`AppShell`, `TopNav`, `SideNav`) to add
32
44
  global navigation.
33
45
 
34
- Requires `@astryxdesign/cli` (`npm install -D @astryxdesign/cli`):
46
+ Requires `@astryxdesign/cli` at Core's version: `npm install -D -E @astryxdesign/cli@<core version>` (leave out `-E` when Core has a `^` or `~` range).
35
47
 
36
48
  ```bash
37
49
  astryx template --list # browse all page and block templates
@@ -77,13 +89,15 @@ astryx gap-report # report a missing capability
77
89
 
78
90
  Astryx requires **React 19** or later (`react` and `react-dom` >= 19.0.0 are peer dependencies).
79
91
 
80
- Install Astryx and a theme:
92
+ Install Astryx, a theme, and the CLI, then run `init` once:
81
93
 
82
94
  ```bash
83
95
  npm install @astryxdesign/core @astryxdesign/theme-neutral @stylexjs/stylex
96
+ npm install -D @astryxdesign/cli
97
+ npx @astryxdesign/cli init # prints the getting-started steps; saves the Astryx guide to AGENTS.md
84
98
  ```
85
99
 
86
- Then pick your setup below based on your framework and styling approach.
100
+ Then pick your setup below based on your framework and styling approach. The setup you pick wires the theme, so it replaces the theme step `init` prints.
87
101
 
88
102
  ### Next.js (simplest)
89
103
 
@@ -72,9 +72,13 @@ export interface MobileNavConfig {
72
72
  breakpoint?: AppShellBreakpoint;
73
73
  /**
74
74
  * SSR hint: whether the initial render should assume mobile layout.
75
- * Seeds the breakpoint state so the server-rendered HTML matches
76
- * the client on mobile devices, avoiding a layout flash. Ignored when
77
- * `breakpoint` is `none`, which is always non-mobile.
75
+ * Seeds the breakpoint state so the server-rendered HTML is the phone
76
+ * layout, menu toggle included. Without it, when the theme keeps the
77
+ * standard width points, the server-rendered wide layout still paints
78
+ * without its inline side nav, and with only the top nav's heading and end
79
+ * content, below the breakpoint, and the toggle arrives when the page's
80
+ * script runs. Ignored when `breakpoint` is
81
+ * `none`, which is always non-mobile.
78
82
  *
79
83
  * Derive from the User-Agent header or a device-detection cookie
80
84
  * in a server component, then pass down.
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../src/AppShell/AppShell.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EASL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AA2Cf,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAW5C,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AA6ChD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAAG,MAAM,CAAC;AAE9D;;;;;;;GAOG;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,kBAAkB,CAAC;AAEvD;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,YAAY,CAAC,EAAE,CA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AAE,MAAM,GAAG,MAAM,CAAC;IAEzB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,eAAe,GAAG,SAAS,CAAC;IAEhD;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAwQD,wBAAgB,QAAQ,CAAC,EACvB,OAAoB,EACpB,MAAM,EACN,QAAQ,EACR,cAAc,EACd,aAAa,EAAE,UAAU,EACzB,MAAe,EACf,SAAS,EACT,OAAO,EACP,MAAM,EACN,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,IAAI,EACR,EAAE,aAAa,qBAo1Bf;yBAn2Be,QAAQ"}
@@ -39,18 +39,20 @@ import { SideNavRenderContext } from "../SideNav/SideNavRenderContext.js";
39
39
  import { SideNavShellContext } from "../SideNav/railMotion.js";
40
40
  import { useAnimatedLayout } from "../hooks/useAnimatedLayout.js";
41
41
  import { holdLayoutSwap, landLayoutGlide, layoutMotionFor, layoutStartFor, playLayoutFrames, playLayoutSwap, reportLayoutChange } from "../motion/animatedLayout.js";
42
- import { TopNavRenderContext } from "../TopNav/TopNavRenderContext.js";
42
+ import { TopNavRenderContext, TopNavUnreadRegionContext } from "../TopNav/TopNavRenderContext.js";
43
43
  import { TopNavMobileContentContext } from "../TopNav/TopNavMobileContentContext.js";
44
44
  import { AppShellMobileContext } from "./AppShellMobileContext.js";
45
+ import { UNREAD_STYLES, unreadWidthPoint } from "./unreadWidthPoint.js";
45
46
  import { AppShellNestingContext, useAppShellMainId } from "./useAppShellMainId.js";
46
47
  import { mergeProps, isRenderable } from "../utils/index.js";
47
48
  import { focusOutlineProps, focusOutlineStyles } from "../utils/focusOutline.stylex.js";
49
+ import { useIsHydrating } from "../hooks/useIsHydrating.js";
48
50
  import { useMediaQuery } from "../hooks/useMediaQuery.js";
49
51
  import { matchesMediaQuery } from "../utils/coarsePointer.js";
50
52
  import { observeResize } from "../utils/sharedResizeObserver.js";
51
53
  import { themeProps } from "../utils/themeProps.js";
52
54
  import { useThemeDefinition } from "../theme/useTheme.js";
53
- import { DEFAULT_WIDTH_BREAKPOINTS } from "../theme/themeAdaptations.js";
55
+ import { DEFAULT_WIDTH_BREAKPOINTS, widthBelowFeature } from "../theme/themeAdaptations.js";
54
56
  import { useMergedRefs } from "../hooks/useMergedRefs.js";
55
57
  import { attachScrollKeyboardDelegation } from "../hooks/scrollKeyboardDelegation.js";
56
58
  import { observeMainOverflow } from "./observeMainOverflow.js";
@@ -171,6 +173,7 @@ const styles = {
171
173
  kybGjl: "x1hl2dhg",
172
174
  k63SB2: "x2mo6ok",
173
175
  kGuDYH: "xjm74w1",
176
+ kLWn49: "xw6l6zx",
174
177
  $$css: true
175
178
  },
176
179
  mainFocusTarget: {
@@ -185,6 +188,14 @@ const styles = {
185
188
  kInvED: "x1wfwxd8 x1nw7mhf",
186
189
  $$css: true
187
190
  },
191
+ elevatedBackdrop: {
192
+ kVAEAm: "x10l6tqk",
193
+ kpwlN0: "x10a8y8t",
194
+ kWkggS: "x10xzikg",
195
+ krdFHd: "x183tx6i",
196
+ kfzvcC: "x47corl",
197
+ $$css: true
198
+ },
188
199
  contentBgSurface: {
189
200
  kWkggS: "x10xzikg",
190
201
  $$css: true
@@ -319,14 +330,19 @@ export function AppShell({
319
330
  // Mobile nav open state (controlled + uncontrolled)
320
331
  // =========================================================================
321
332
  const activeWidthBreakpoints = activeTheme?.__adaptations?.widthBreakpoints;
322
- const breakpointQuery = sideNavBreakpoint === 'none' ? '(width < 0px)' : `(width < ${activeWidthBreakpoints?.[sideNavBreakpoint] ?? DEFAULT_WIDTH_BREAKPOINTS[sideNavBreakpoint]}px)`;
333
+ const breakpointWidth = sideNavBreakpoint === 'none' ? null : activeWidthBreakpoints?.[sideNavBreakpoint] ?? DEFAULT_WIDTH_BREAKPOINTS[sideNavBreakpoint];
334
+ const breakpointQuery = widthBelowFeature(breakpointWidth ?? 0);
335
+ const isMobileOnServer = breakpointWidth != null && mobileNavConfig?.defaultIsMobile === true;
336
+ const isBelowBreakpointNow = useMediaQuery(breakpointQuery, isMobileOnServer);
337
+ const hasReadWindow = !useIsHydrating();
323
338
  // The client's first answer can differ from the server's. That correction
324
339
  // is an urgent update, and it changes the mobile context above the page.
325
340
  // React answers an urgent update above content it has not hydrated by
326
341
  // rendering that content again in place of its server HTML. A deferred
327
342
  // value takes the client's answer in a transition, which waits for that
328
343
  // content to hydrate.
329
- const isBelowBreakpoint = useDeferredValue(useMediaQuery(breakpointQuery, sideNavBreakpoint === 'none' ? false : mobileNavConfig?.defaultIsMobile));
344
+ const layoutWidth = useDeferredValue(!hasReadWindow ? 'unread' : isBelowBreakpointNow ? 'mobile' : 'wide');
345
+ const isBelowBreakpoint = layoutWidth === 'unread' ? isMobileOnServer : layoutWidth === 'mobile';
330
346
  const [uncontrolledMobileOpen, setUncontrolledMobileOpen] = useState(false);
331
347
  const isMobileNavOpen = mobileNavConfig?.isOpen ?? uncontrolledMobileOpen;
332
348
 
@@ -493,6 +509,12 @@ export function AppShell({
493
509
  // Determine if sideNav should show as overlay (mobile) or inline
494
510
  // =========================================================================
495
511
  const showSideNavInline = hasSideNav && !isBelowBreakpoint;
512
+ // Until the shell reads the window, a phone can be showing the server's wide
513
+ // layout. CSS then hides the inline side nav and flattens the elevated
514
+ // corner below the breakpoint. A theme that moves the point has no compiled
515
+ // rule, so its shell keeps the server's layout until it reads the window.
516
+ const unreadPoint = unreadWidthPoint(layoutWidth === 'unread', sideNavBreakpoint, breakpointWidth);
517
+ const unreadStyles = showSideNavInline && unreadPoint != null ? UNREAD_STYLES[unreadPoint] : undefined;
496
518
 
497
519
  // Mobile nav rendering modes:
498
520
  // 1. ReactNode shorthand — user provided <MobileNav> directly
@@ -541,13 +563,27 @@ export function AppShell({
541
563
  value: "drawer-content",
542
564
  children: sideNav
543
565
  }) : null;
544
- const topNavContent = hasTopNav ? isBelowBreakpoint && !mobileNavDisabled && mobileNavReactNode == null ? /*#__PURE__*/_jsx(TopNavMobileContentContext, {
566
+ const topNavTakesMobileBar = !mobileNavDisabled && mobileNavReactNode == null;
567
+ // Until the shell reads the window, the server's full bar can be showing on
568
+ // a phone. The full bar then hides its start and center content below the
569
+ // breakpoint, as the mobile bar does. The toggle arrives when the shell
570
+ // reads the window. A theme that moves the point has no compiled rule, so
571
+ // its bar keeps the server's layout until then.
572
+ const unreadTopNavRegion = !isBelowBreakpoint && topNavTakesMobileBar && unreadPoint != null ? UNREAD_STYLES[unreadPoint].topNavRegion : null;
573
+ const topNavContent = hasTopNav ? isBelowBreakpoint && topNavTakesMobileBar ? /*#__PURE__*/_jsx(TopNavMobileContentContext, {
545
574
  value: mobileContentValue,
546
575
  children: /*#__PURE__*/_jsx(TopNavRenderContext, {
547
576
  value: "mobile-bar",
548
577
  children: topNav
549
578
  })
550
- }) : topNav : null;
579
+ }) :
580
+ /*#__PURE__*/
581
+ // Always present on this branch, so reading the window keeps the bar
582
+ // mounted.
583
+ _jsx(TopNavUnreadRegionContext, {
584
+ value: unreadTopNavRegion,
585
+ children: topNav
586
+ }) : null;
551
587
  const headerInner = hasTopNav || hasBanner ? /*#__PURE__*/_jsxs(LayoutHeader, {
552
588
  padding: 0,
553
589
  hasDivider: navHasDividers && hasTopNav,
@@ -723,7 +759,7 @@ export function AppShell({
723
759
  ...themeProps('app-shell-sidenav', {
724
760
  variant
725
761
  }),
726
- xstyle: [navAreaStyle, isAuto && stickyBgStyle, isAuto && styles.panelAutoFill],
762
+ xstyle: [navAreaStyle, isAuto && stickyBgStyle, isAuto && styles.panelAutoFill, unreadStyles?.sideNav],
727
763
  children: /*#__PURE__*/_jsx(SideNavShellContext, {
728
764
  value: sideNavShell,
729
765
  children: sideNav
@@ -857,9 +893,7 @@ export function AppShell({
857
893
  }[!!shouldElevateWithCorner << 0],
858
894
  children: [shouldElevateWithCorner && /*#__PURE__*/_jsx("div", {
859
895
  ref: backdropRef,
860
- ...{
861
- className: "x10l6tqk x10a8y8t x10xzikg x183tx6i x47corl"
862
- }
896
+ ...stylex.props(styles.elevatedBackdrop, unreadStyles?.corner)
863
897
  }), mainInner]
864
898
  });
865
899
 
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @file unreadWidthPoint.ts
3
+ * @input The shell's layout state, its side nav breakpoint and the width the
4
+ * theme gives that breakpoint
5
+ * @output unreadWidthPoint (the standard width point below which a shell that
6
+ * has not read the window hides its phone-only regions) and UNREAD_STYLES
7
+ * (the compiled rule for each standard point: the inline side nav, the
8
+ * elevated corner and the top nav's start and center regions)
9
+ * @position Private to AppShell: its layout before it reads the window, and
10
+ * the only module that writes the standard width points as media keys.
11
+ * AppShell computes the point once and hands TopNav its region rule through
12
+ * TopNavUnreadRegionContext.
13
+ */
14
+ import * as stylex from '@stylexjs/stylex';
15
+ import { type WidthBreakpointName } from '../theme/themeAdaptations.js';
16
+ /**
17
+ * The standard width point below which a shell that has not read the window
18
+ * shows its phone layout through CSS, or null. StyleX compiles media queries
19
+ * ahead of time, so only the standard points have a rule: a theme that moves
20
+ * the point keeps the server's layout until the shell reads the window.
21
+ */
22
+ export declare function unreadWidthPoint(isUnread: boolean, breakpoint: WidthBreakpointName | 'none', breakpointWidth: number | null): WidthBreakpointName | null;
23
+ /** The rules for each standard width point. */
24
+ export declare const UNREAD_STYLES: Readonly<Record<WidthBreakpointName, {
25
+ sideNav: stylex.StyleXStyles;
26
+ corner: stylex.StyleXStyles;
27
+ topNavRegion: stylex.StyleXStyles;
28
+ }>>;
29
+ //# sourceMappingURL=unreadWidthPoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unreadWidthPoint.d.ts","sourceRoot":"","sources":["../../src/AppShell/unreadWidthPoint.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,2BAA2B,CAAC;AAEnC;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,mBAAmB,GAAG,MAAM,EACxC,eAAe,EAAE,MAAM,GAAG,IAAI,GAC7B,mBAAmB,GAAG,IAAI,CAM5B;AAsFD,+CAA+C;AAC/C,eAAO,MAAM,aAAa,EAAE,QAAQ,CAClC,MAAM,CACJ,mBAAmB,EACnB;IACE,OAAO,EAAE,MAAM,CAAC,YAAY,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC,YAAY,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;CACnC,CACF,CA2BF,CAAC"}
@@ -0,0 +1,134 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /**
4
+ * @file unreadWidthPoint.ts
5
+ * @input The shell's layout state, its side nav breakpoint and the width the
6
+ * theme gives that breakpoint
7
+ * @output unreadWidthPoint (the standard width point below which a shell that
8
+ * has not read the window hides its phone-only regions) and UNREAD_STYLES
9
+ * (the compiled rule for each standard point: the inline side nav, the
10
+ * elevated corner and the top nav's start and center regions)
11
+ * @position Private to AppShell: its layout before it reads the window, and
12
+ * the only module that writes the standard width points as media keys.
13
+ * AppShell computes the point once and hands TopNav its region rule through
14
+ * TopNavUnreadRegionContext.
15
+ */
16
+
17
+ import * as stylex from '@stylexjs/stylex';
18
+ import "../theme/tokens.stylex.js";
19
+ import { radiusVars } from "../theme/tokens.stylex.js";
20
+ import { DEFAULT_WIDTH_BREAKPOINTS } from "../theme/themeAdaptations.js";
21
+
22
+ /**
23
+ * The standard width point below which a shell that has not read the window
24
+ * shows its phone layout through CSS, or null. StyleX compiles media queries
25
+ * ahead of time, so only the standard points have a rule: a theme that moves
26
+ * the point keeps the server's layout until the shell reads the window.
27
+ */
28
+ export function unreadWidthPoint(isUnread, breakpoint, breakpointWidth) {
29
+ return isUnread && breakpoint !== 'none' && breakpointWidth === DEFAULT_WIDTH_BREAKPOINTS[breakpoint] ? breakpoint : null;
30
+ }
31
+
32
+ // One rule per standard width point (`DEFAULT_WIDTH_BREAKPOINTS`). The
33
+ // queries use `not all and (min-width)`: StyleX lowers `(width < N)` to
34
+ // `(max-width: N - 0.01)`, which Chromium rounds up to N, so the rule would
35
+ // also apply at the point itself. Below the point, the inline side nav does
36
+ // not paint, the elevated backdrop loses its corner, and the top nav's start
37
+ // and center regions do not paint, as in the phone layout.
38
+ const sideNavStyles = {
39
+ sm: {
40
+ k1xSpc: "x1d592f6",
41
+ $$css: true
42
+ },
43
+ md: {
44
+ k1xSpc: "xgs58o8",
45
+ $$css: true
46
+ },
47
+ lg: {
48
+ k1xSpc: "xjzer9l",
49
+ $$css: true
50
+ },
51
+ xl: {
52
+ k1xSpc: "x1bwilkz",
53
+ $$css: true
54
+ },
55
+ "2xl": {
56
+ k1xSpc: "x1q9a9pi",
57
+ $$css: true
58
+ }
59
+ };
60
+ const cornerStyles = {
61
+ sm: {
62
+ krdFHd: "x183tx6i xctd0pb",
63
+ $$css: true
64
+ },
65
+ md: {
66
+ krdFHd: "x183tx6i xc4oep8",
67
+ $$css: true
68
+ },
69
+ lg: {
70
+ krdFHd: "x183tx6i x16174yq",
71
+ $$css: true
72
+ },
73
+ xl: {
74
+ krdFHd: "x183tx6i x5asj52",
75
+ $$css: true
76
+ },
77
+ "2xl": {
78
+ krdFHd: "x183tx6i xnnrhfx",
79
+ $$css: true
80
+ }
81
+ };
82
+ // The regions are flex rows: a StyleX value replaces the whole property, so
83
+ // the rule keeps `flex` above the point.
84
+ const topNavRegionStyles = {
85
+ sm: {
86
+ k1xSpc: "x78zum5 x1d592f6",
87
+ $$css: true
88
+ },
89
+ md: {
90
+ k1xSpc: "x78zum5 xgs58o8",
91
+ $$css: true
92
+ },
93
+ lg: {
94
+ k1xSpc: "x78zum5 xjzer9l",
95
+ $$css: true
96
+ },
97
+ xl: {
98
+ k1xSpc: "x78zum5 x1bwilkz",
99
+ $$css: true
100
+ },
101
+ "2xl": {
102
+ k1xSpc: "x78zum5 x1q9a9pi",
103
+ $$css: true
104
+ }
105
+ };
106
+
107
+ /** The rules for each standard width point. */
108
+ export const UNREAD_STYLES = {
109
+ sm: {
110
+ sideNav: sideNavStyles.sm,
111
+ corner: cornerStyles.sm,
112
+ topNavRegion: topNavRegionStyles.sm
113
+ },
114
+ md: {
115
+ sideNav: sideNavStyles.md,
116
+ corner: cornerStyles.md,
117
+ topNavRegion: topNavRegionStyles.md
118
+ },
119
+ lg: {
120
+ sideNav: sideNavStyles.lg,
121
+ corner: cornerStyles.lg,
122
+ topNavRegion: topNavRegionStyles.lg
123
+ },
124
+ xl: {
125
+ sideNav: sideNavStyles.xl,
126
+ corner: cornerStyles.xl,
127
+ topNavRegion: topNavRegionStyles.xl
128
+ },
129
+ '2xl': {
130
+ sideNav: sideNavStyles['2xl'],
131
+ corner: cornerStyles['2xl'],
132
+ topNavRegion: topNavRegionStyles['2xl']
133
+ }
134
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarGroupOverflow.d.ts","sourceRoot":"","sources":["../../src/AvatarGroup/AvatarGroupOverflow.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,EAAC,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAa5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAgB5C,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CACpD,SAAS,CAAC,WAAW,CAAC,EACtB,SAAS,CACV;IACC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AA8ED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,GAAG,EACH,KAAK,EACL,OAAO,EACP,QAAQ,EACR,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,wBAAwB,GAAG,SAAS,CAuEtC;yBAhFe,mBAAmB"}
1
+ {"version":3,"file":"AvatarGroupOverflow.d.ts","sourceRoot":"","sources":["../../src/AvatarGroup/AvatarGroupOverflow.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,EAAC,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAa5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAgB5C,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CACpD,SAAS,CAAC,WAAW,CAAC,EACtB,SAAS,CACV;IACC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AA+ED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,GAAG,EACH,KAAK,EACL,OAAO,EACP,QAAQ,EACR,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,wBAAwB,GAAG,SAAS,CAuEtC;yBAhFe,mBAAmB"}
@@ -68,6 +68,7 @@ const _temp = {
68
68
  };
69
69
  const _temp2 = {
70
70
  kGuDYH: "xdmh292",
71
+ kLWn49: "x1ltkj2j",
71
72
  "$$css": true
72
73
  };
73
74
  const _temp3 = {
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../src/Badge/Badge.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AACrC,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C,EAAE,SAAS,CAAC;CAClB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,EACpB,OAAmB,EACnB,KAAK,EACL,IAAI,EACJ,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,KAAK,EACT,EAAE,UAAU,+BA+CZ;yBAxDe,KAAK"}
@@ -57,8 +57,8 @@ const styles = {
57
57
  */
58
58
  const variants = {
59
59
  neutral: {
60
- kWkggS: "x17x4s8c",
61
- kMwMTN: "x1tgivj0",
60
+ kWkggS: "xxqga8b",
61
+ kMwMTN: "xzfxgs9",
62
62
  $$css: true
63
63
  },
64
64
  info: {
@@ -11,10 +11,12 @@
11
11
  * - End area restores the ordinary text context for consumer `endContent`; built-in controls opt back into the status foreground
12
12
  * - Content area (themeProps 'banner-content'): card background for additional content (children)
13
13
  * - Status icon (themeProps 'banner-icon'): the target rides on the default
14
- * <Icon> itself — the element that paints — so 'status:X' overrides reach
15
- * the glyph (#4166); for a custom `icon` node it stays on the layout wrapper
16
- * - Description (themeProps 'banner-description'): the supporting line owns its
17
- * own colour and type, and the space between it and the title
14
+ * <Icon> itself, a direct header item, so 'status:X' overrides reach the
15
+ * glyph and hiding it leaves no gap; a custom `icon` node gets a wrapper
16
+ * that carries the target
17
+ * - Message (themeProps 'banner-message'): the title and description column
18
+ * - Title (themeProps 'banner-title') and description (themeProps
19
+ * 'banner-description'): each line owns its own colour and type
18
20
  * - The end area carries no target: it is a layout row (flex, wrap, edge
19
21
  * compensation) rather than a painted surface, and a theme that wants the
20
22
  * header to grow around its buttons sets `padding-block` on 'banner'
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../src/Banner/Banner.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,OAAO,EAA0B,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAC,S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;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;;;;;;;;;;;;;;;OAkBG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,iBAAiB,CAAC;IAC1C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAmRD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,wBAAgB,MAAM,CAAC,EACrB,MAAM,EACN,KAAK,EACL,WAAW,EACX,IAAI,EACJ,aAAqB,EACrB,SAAS,EACT,YAAY,EACZ,UAAU,EACV,SAAkB,EAClB,SAAkB,EAClB,WAAkB,EAClB,QAAQ,EACR,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,cAAc,EACd,oBAAoB,EACpB,IAAI,EACJ,GAAG,IAAI,EACR,EAAE,WAAW,sCA+Rb;yBApTe,MAAM"}
@@ -15,10 +15,12 @@
15
15
  * - End area restores the ordinary text context for consumer `endContent`; built-in controls opt back into the status foreground
16
16
  * - Content area (themeProps 'banner-content'): card background for additional content (children)
17
17
  * - Status icon (themeProps 'banner-icon'): the target rides on the default
18
- * <Icon> itself — the element that paints — so 'status:X' overrides reach
19
- * the glyph (#4166); for a custom `icon` node it stays on the layout wrapper
20
- * - Description (themeProps 'banner-description'): the supporting line owns its
21
- * own colour and type, and the space between it and the title
18
+ * <Icon> itself, a direct header item, so 'status:X' overrides reach the
19
+ * glyph and hiding it leaves no gap; a custom `icon` node gets a wrapper
20
+ * that carries the target
21
+ * - Message (themeProps 'banner-message'): the title and description column
22
+ * - Title (themeProps 'banner-title') and description (themeProps
23
+ * 'banner-description'): each line owns its own colour and type
22
24
  * - The end area carries no target: it is a layout row (flex, wrap, edge
23
25
  * compensation) rather than a painted surface, and a theme that wants the
24
26
  * header to grow around its buttons sets `padding-block` on 'banner'
@@ -144,6 +146,10 @@ const styles = {
144
146
  kGNEyG: "x6s0dn4",
145
147
  $$css: true
146
148
  },
149
+ icon: {
150
+ kmuXW: "x2lah0s",
151
+ $$css: true
152
+ },
147
153
  endArea: {
148
154
  k1xSpc: "x78zum5",
149
155
  kGNEyG: "x6s0dn4",
@@ -455,51 +461,48 @@ export function Banner({
455
461
  container,
456
462
  status
457
463
  }), stylex.props(styles.header, isSingleLine && styles.headerCentered, hasStatusStyle(status) && statusStyles[status], isCard && (showContent ? styles.headerCardWithContent : styles.headerCardStandalone))),
458
- children: [/*#__PURE__*/_jsx("div", {
459
- ...(isRenderable(icon) ? mergeProps(themeProps('banner-icon', {
464
+ children: [isRenderable(icon) ? /*#__PURE__*/_jsx("div", {
465
+ ...mergeProps(themeProps('banner-icon', {
460
466
  status
461
467
  }), {
462
468
  className: "x78zum5 x6s0dn4 x2lah0s"
463
- }) : {
464
- className: "x78zum5 x6s0dn4 x2lah0s"
465
469
  }),
466
470
  "aria-hidden": "true",
467
- children: isRenderable(icon) ? icon : defaultIconName != null ?
468
- /*#__PURE__*/
469
- // Applied to the status <Icon> itself rather than the wrapper, so
470
- // the element that paints the glyph is the element a theme
471
- // targets — a 'banner-icon' 'status:X' color override beats the
472
- // Icon's own variant from @layer astryx-theme (#4166).
473
- _jsx(Icon, {
474
- icon: defaultIconName,
475
- size: "md",
476
- color: iconColor,
477
- ...themeProps('banner-icon', {
478
- status
479
- })
480
- }) : null
481
- }), /*#__PURE__*/_jsxs("div", {
471
+ children: icon
472
+ }) : defaultIconName != null ?
473
+ /*#__PURE__*/
474
+ // The target is on the glyph itself, so a 'banner-icon' 'status:X'
475
+ // color override beats the Icon's own variant.
476
+ _jsx(Icon, {
477
+ icon: defaultIconName,
478
+ size: "md",
479
+ color: iconColor,
480
+ xstyle: styles.icon,
481
+ ...themeProps('banner-icon', {
482
+ status
483
+ })
484
+ }) : null, /*#__PURE__*/_jsxs("div", {
482
485
  role: isUrgentAlert ? 'alert' : undefined,
483
486
  ...alertAriaProps,
484
- ...{
487
+ ...mergeProps(themeProps('banner-message'), {
485
488
  0: {
486
489
  className: "x78zum5 xdt5ytf xxhr3t x98rzlu xeuugli"
487
490
  },
488
491
  1: {
489
492
  className: "x78zum5 xdt5ytf xxhr3t x98rzlu xeuugli xgualba"
490
493
  }
491
- }[!!isRenderable(endContent) << 0],
494
+ }[!!isRenderable(endContent) << 0]),
492
495
  children: [/*#__PURE__*/_jsx("div", {
493
- ...{
496
+ ...mergeProps(themeProps('banner-title'), {
494
497
  0: {
495
498
  className: "x1ghz6dp xjb2p0i xcr08ib x2mo6ok x1kq96og x1tgivj0 xj0a0fe x5ujdhh"
496
499
  },
497
500
  1: {
498
501
  className: "x1ghz6dp xjb2p0i xcr08ib x2mo6ok x1kq96og xj0a0fe x5ujdhh x1heor9g"
499
502
  }
500
- }[!!hasStatusStyle(status) << 0],
503
+ }[!!hasStatusStyle(status) << 0]),
501
504
  children: title
502
- }), isUrgentAlert && isRenderable(description) && ' ', isRenderable(description) && /*#__PURE__*/_jsx("div", {
505
+ }), isRenderable(description) && ' ', isRenderable(description) && /*#__PURE__*/_jsx("div", {
503
506
  ...mergeProps(themeProps('banner-description'), {
504
507
  0: {
505
508
  className: "x1ghz6dp xjb2p0i x141an7d x1sodnla x1ltkj2j xv1l7n4 xj0a0fe x5ujdhh"
@@ -539,7 +542,7 @@ export function Banner({
539
542
  color: "inherit"
540
543
  }),
541
544
  onClick: handleDismiss,
542
- className: hasStatusStyle(status) ? stylex.props(statusControlStyles[status]).className : undefined,
545
+ className: mergeProps(themeProps('banner-close'), hasStatusStyle(status) ? stylex.props(statusControlStyles[status]) : {}).className,
543
546
  isIconOnly: true
544
547
  })]
545
548
  })]
@@ -114,6 +114,7 @@ const itemStyles = {
114
114
  kzqmXN: "x5livx5",
115
115
  kZKoxP: "x15rwvks",
116
116
  kGuDYH: "x141an7d",
117
+ kLWn49: "x1ltkj2j",
117
118
  $$css: true
118
119
  }
119
120
  };
@@ -148,7 +149,6 @@ const menuStyles = {
148
149
  },
149
150
  popover: {
150
151
  k7Eaqz: "x5w4yej",
151
- kqGvvJ: "xsq74q5",
152
152
  $$css: true
153
153
  }
154
154
  };
@@ -518,6 +518,9 @@ function BreadcrumbMenuTrigger({
518
518
  }), {
519
519
  placement: 'below',
520
520
  alignment: 'start',
521
+ // The layer's own clearance: the layer runtime measures it as the
522
+ // entrance's room to the trigger and keeps it through a flip.
523
+ offset: spacingVars['--spacing-1'],
521
524
  xstyle: menuStyles.popover
522
525
  })]
523
526
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/Button/Button.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,SAAS,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AA4C3C,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAC;AASrD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAC;AA6M9C,QAAA,MAAM,UAAU;;;;;;;;;;EAId,CAAC;AA8DH;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,gBAAgB,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,UAAU,CAAC;AAQjD,MAAM,WAAW,WAAY,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IAC/D,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,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MAAM,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,EAAE,CAAC,EAAE,iBAAiB,CAAC;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAwSD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,OAAqB,EACrB,IAAI,EAAE,QAAQ,EACd,IAAe,EACf,UAAkB,EAClB,SAAiB,EACjB,eAAuB,EACvB,WAAW,EACX,IAAI,EACJ,UAAkB,EAClB,KAAK,EACL,SAAkB,EAClB,QAAQ,EACR,UAAU,EACV,OAAO,EACP,IAAI,EACJ,EAAE,EACF,MAAM,EACN,GAAG,EACH,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,KAAK,EACT,EAAE,WAAW,GAAG,SAAS,CAiZzB;yBA1ae,MAAM"}
@@ -244,6 +244,8 @@ const variants = {
244
244
  primary: {
245
245
  kWkggS: "x1ewilqj",
246
246
  kMwMTN: "x17wrial",
247
+ "--_button-fill": "x1kbggj7",
248
+ "--_button-on-fill": "xysjls1",
247
249
  $$css: true
248
250
  },
249
251
  secondary: {
@@ -259,6 +261,8 @@ const variants = {
259
261
  destructive: {
260
262
  kWkggS: "x1pjz0fi",
261
263
  kMwMTN: "x1m024r3",
264
+ "--_button-fill": "x1wai0k",
265
+ "--_button-on-fill": "x9lj7b4",
262
266
  kVAM5u: "x1w1tqly",
263
267
  kjBf7l: "x1e0x2sz",
264
268
  $$css: true