@astryxdesign/core 0.0.15 → 0.1.0-canary.08d4cf4

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 (384) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/README.md +8 -10
  3. package/dist/AlertDialog/AlertDialog.js +2 -2
  4. package/dist/AppShell/AppShell.js +5 -5
  5. package/dist/AspectRatio/AspectRatio.js +2 -2
  6. package/dist/Avatar/Avatar.js +2 -2
  7. package/dist/Avatar/AvatarStatusDot.js +2 -2
  8. package/dist/AvatarGroup/AvatarGroup.js +2 -2
  9. package/dist/AvatarGroup/AvatarGroupOverflow.js +3 -3
  10. package/dist/Badge/Badge.js +2 -2
  11. package/dist/Banner/Banner.d.ts +2 -2
  12. package/dist/Banner/Banner.js +6 -6
  13. package/dist/Blockquote/Blockquote.js +2 -2
  14. package/dist/Breadcrumbs/BreadcrumbItem.js +3 -3
  15. package/dist/Breadcrumbs/Breadcrumbs.js +2 -2
  16. package/dist/Button/Button.js +2 -2
  17. package/dist/ButtonGroup/ButtonGroup.js +2 -2
  18. package/dist/Calendar/Calendar.js +3 -3
  19. package/dist/Card/Card.js +2 -2
  20. package/dist/Carousel/Carousel.js +2 -2
  21. package/dist/Center/Center.js +2 -2
  22. package/dist/Chat/ChatComposer.js +2 -2
  23. package/dist/Chat/ChatComposerDrawer.js +2 -2
  24. package/dist/Chat/ChatComposerInput.js +2 -2
  25. package/dist/Chat/ChatLayout.js +2 -2
  26. package/dist/Chat/ChatLayoutScrollButton.d.ts.map +1 -1
  27. package/dist/Chat/ChatLayoutScrollButton.js +5 -1
  28. package/dist/Chat/ChatMessage.js +2 -2
  29. package/dist/Chat/ChatMessageBubble.js +2 -2
  30. package/dist/Chat/ChatMessageList.js +2 -2
  31. package/dist/Chat/ChatMessageMetadata.js +2 -2
  32. package/dist/Chat/ChatSendButton.js +2 -2
  33. package/dist/Chat/ChatSystemMessage.js +3 -3
  34. package/dist/Chat/ChatTokenizedText.js +3 -3
  35. package/dist/Chat/ChatToolCalls.js +3 -3
  36. package/dist/Chat/useTriggerMenu.js +2 -2
  37. package/dist/CheckboxInput/CheckboxInput.js +3 -3
  38. package/dist/CheckboxList/CheckboxList.js +2 -2
  39. package/dist/Citation/Citation.js +3 -3
  40. package/dist/ClickableCard/ClickableCard.js +2 -2
  41. package/dist/Code/Code.js +2 -2
  42. package/dist/CodeBlock/CodeBlock.js +2 -2
  43. package/dist/Collapsible/Collapsible.js +2 -2
  44. package/dist/CommandPalette/CommandPaletteFooter.js +2 -2
  45. package/dist/CommandPalette/CommandPaletteGroup.js +2 -2
  46. package/dist/CommandPalette/CommandPaletteInput.js +2 -2
  47. package/dist/CommandPalette/CommandPaletteItem.js +2 -2
  48. package/dist/CommandPalette/CommandPaletteList.js +2 -2
  49. package/dist/ContextMenu/ContextMenu.js +4 -4
  50. package/dist/DateInput/DateInput.js +2 -2
  51. package/dist/DateRangeInput/DateRangeInput.js +2 -2
  52. package/dist/DateTimeInput/DateTimeInput.js +2 -2
  53. package/dist/Dialog/Dialog.js +3 -3
  54. package/dist/Divider/Divider.js +2 -2
  55. package/dist/DropdownMenu/DropdownMenu.js +4 -4
  56. package/dist/DropdownMenu/DropdownMenuItem.js +2 -2
  57. package/dist/DropdownMenu/{renderXDSDropdownItems.d.ts → renderDropdownItems.d.ts} +3 -3
  58. package/dist/DropdownMenu/renderDropdownItems.d.ts.map +1 -0
  59. package/dist/DropdownMenu/{renderXDSDropdownItems.js → renderDropdownItems.js} +2 -2
  60. package/dist/EmptyState/EmptyState.js +2 -2
  61. package/dist/Field/Field.js +3 -3
  62. package/dist/Field/FieldLabel.js +2 -2
  63. package/dist/FieldStatus/FieldStatus.js +2 -2
  64. package/dist/FileInput/FileInput.js +2 -2
  65. package/dist/FormLayout/FormLayout.js +2 -2
  66. package/dist/Grid/Grid.js +3 -3
  67. package/dist/Grid/GridSpan.js +2 -2
  68. package/dist/Heading/Heading.js +2 -2
  69. package/dist/HoverCard/useHoverCard.js +2 -2
  70. package/dist/Icon/Icon.js +3 -3
  71. package/dist/InputGroup/InputGroup.js +2 -2
  72. package/dist/InputGroup/InputGroupText.js +2 -2
  73. package/dist/Item/Item.js +2 -2
  74. package/dist/Kbd/Kbd.js +2 -2
  75. package/dist/Layer/useLayer.d.ts +2 -2
  76. package/dist/Layout/Layout.js +2 -2
  77. package/dist/Layout/LayoutContent.js +2 -2
  78. package/dist/Layout/LayoutFooter.js +2 -2
  79. package/dist/Layout/LayoutHeader.js +2 -2
  80. package/dist/Layout/LayoutPanel.js +2 -2
  81. package/dist/Lightbox/Lightbox.js +2 -2
  82. package/dist/Link/Link.js +3 -3
  83. package/dist/List/List.js +2 -2
  84. package/dist/List/ListItem.js +2 -2
  85. package/dist/Markdown/Markdown.js +3 -3
  86. package/dist/MetadataList/MetadataList.js +2 -2
  87. package/dist/MetadataList/MetadataListItem.js +3 -3
  88. package/dist/MobileNav/MobileNav.js +2 -2
  89. package/dist/MultiSelector/MultiSelector.js +2 -2
  90. package/dist/NavIcon/NavIcon.js +2 -2
  91. package/dist/NavMenu/NavHeadingMenu.js +2 -2
  92. package/dist/NavMenu/NavHeadingMenuItem.js +2 -2
  93. package/dist/NumberInput/NumberInput.js +2 -2
  94. package/dist/Outline/Outline.d.ts +3 -2
  95. package/dist/Outline/Outline.d.ts.map +1 -1
  96. package/dist/Outline/Outline.js +27 -8
  97. package/dist/Outline/useScrollSpy.d.ts +14 -1
  98. package/dist/Outline/useScrollSpy.d.ts.map +1 -1
  99. package/dist/Outline/useScrollSpy.js +161 -50
  100. package/dist/OverflowList/OverflowList.js +2 -2
  101. package/dist/Overlay/Overlay.js +2 -2
  102. package/dist/Overlay/OverlayScrim.js +2 -2
  103. package/dist/Pagination/Pagination.js +3 -3
  104. package/dist/Popover/Popover.js +4 -4
  105. package/dist/PowerSearch/PowerSearch.js +2 -2
  106. package/dist/ProgressBar/ProgressBar.js +5 -5
  107. package/dist/RadioList/RadioList.js +2 -2
  108. package/dist/RadioList/RadioListItem.js +4 -4
  109. package/dist/Resizable/ResizeHandle.js +4 -4
  110. package/dist/Resizable/useResizable.d.ts.map +1 -1
  111. package/dist/Resizable/useResizable.js +1 -5
  112. package/dist/Section/Section.js +2 -2
  113. package/dist/SegmentedControl/SegmentedControl.js +2 -2
  114. package/dist/SegmentedControl/SegmentedControlItem.js +2 -2
  115. package/dist/SelectableCard/SelectableCard.js +2 -2
  116. package/dist/Selector/Selector.d.ts.map +1 -1
  117. package/dist/Selector/Selector.js +3 -3
  118. package/dist/Selector/SelectorOption.js +2 -2
  119. package/dist/SideNav/SideNav.js +3 -3
  120. package/dist/SideNav/SideNavHeading.js +9 -9
  121. package/dist/SideNav/SideNavItem.js +3 -3
  122. package/dist/SideNav/SideNavSection.js +2 -2
  123. package/dist/Skeleton/Skeleton.js +2 -2
  124. package/dist/Slider/Slider.js +4 -4
  125. package/dist/Spinner/Spinner.js +3 -3
  126. package/dist/Stack/Stack.js +2 -2
  127. package/dist/Stack/StackItem.js +2 -2
  128. package/dist/StatusDot/StatusDot.js +2 -2
  129. package/dist/Switch/Switch.js +4 -4
  130. package/dist/TabList/Tab.js +3 -3
  131. package/dist/TabList/TabList.js +2 -2
  132. package/dist/TabList/TabMenu.js +5 -5
  133. package/dist/Table/BaseTable.js +2 -2
  134. package/dist/Table/Table.js +3 -3
  135. package/dist/Table/TableBody.js +2 -2
  136. package/dist/Table/TableCell.js +3 -3
  137. package/dist/Table/TableFooter.js +2 -2
  138. package/dist/Table/TableHeader.js +2 -2
  139. package/dist/Table/TableHeaderCell.js +3 -3
  140. package/dist/Table/TableRow.js +3 -3
  141. package/dist/Text/Text.js +2 -2
  142. package/dist/TextArea/TextArea.js +2 -2
  143. package/dist/TextInput/TextInput.js +2 -2
  144. package/dist/Thumbnail/Thumbnail.js +2 -2
  145. package/dist/TimeInput/TimeInput.js +2 -2
  146. package/dist/Timestamp/Timestamp.js +2 -2
  147. package/dist/Toast/Toast.js +2 -2
  148. package/dist/ToggleButton/ToggleButton.d.ts +10 -3
  149. package/dist/ToggleButton/ToggleButton.d.ts.map +1 -1
  150. package/dist/ToggleButton/ToggleButton.js +66 -20
  151. package/dist/ToggleButton/ToggleButtonGroup.js +2 -2
  152. package/dist/Token/Token.js +4 -4
  153. package/dist/Tokenizer/Tokenizer.js +3 -3
  154. package/dist/Toolbar/Toolbar.js +2 -2
  155. package/dist/Tooltip/useTooltip.js +2 -2
  156. package/dist/TopNav/TopNav.js +3 -3
  157. package/dist/TopNav/TopNavHeading.js +7 -7
  158. package/dist/TopNav/TopNavItem.js +3 -3
  159. package/dist/TopNav/TopNavMegaMenu.js +3 -3
  160. package/dist/TopNav/TopNavMegaMenuFeaturedCard.js +2 -2
  161. package/dist/TopNav/TopNavMegaMenuItem.js +3 -3
  162. package/dist/TopNav/TopNavMenu.js +2 -2
  163. package/dist/TreeList/TreeList.js +2 -2
  164. package/dist/TreeList/TreeListItem.js +2 -2
  165. package/dist/Typeahead/BaseTypeahead.js +2 -2
  166. package/dist/Typeahead/Typeahead.js +2 -2
  167. package/dist/Typeahead/TypeaheadItem.js +2 -2
  168. package/dist/docs-types.d.ts +3 -3
  169. package/dist/docs-types.d.ts.map +1 -1
  170. package/dist/naming.d.ts +1 -1
  171. package/dist/naming.js +1 -1
  172. package/dist/theme/Theme.js +1 -1
  173. package/dist/theme/defineTheme.d.ts +3 -3
  174. package/dist/theme/defineTheme.d.ts.map +1 -1
  175. package/dist/theme/defineTheme.js +1 -1
  176. package/dist/theme/index.d.ts +2 -2
  177. package/dist/theme/index.d.ts.map +1 -1
  178. package/dist/theme/index.js +2 -2
  179. package/dist/theme/syntax/defineSyntaxTheme.js +1 -1
  180. package/dist/theme/tokens.d.ts +1 -1
  181. package/dist/theme/tokens.js +4 -4
  182. package/dist/theme/useTheme.d.ts +2 -2
  183. package/dist/utils/dateParser.d.ts.map +1 -1
  184. package/dist/utils/dateParser.js +15 -2
  185. package/dist/utils/mergeProps.d.ts +3 -3
  186. package/dist/utils/mergeProps.js +4 -4
  187. package/dist/utils/parseStyleKey.d.ts +2 -2
  188. package/dist/utils/parseStyleKey.js +2 -2
  189. package/dist/utils/{xdsThemeProps.d.ts → themeProps.d.ts} +4 -4
  190. package/dist/utils/themeProps.d.ts.map +1 -0
  191. package/dist/utils/{xdsThemeProps.js → themeProps.js} +5 -5
  192. package/package.json +2 -2
  193. package/src/AlertDialog/AlertDialog.tsx +2 -2
  194. package/src/AppShell/AppShell.tsx +5 -5
  195. package/src/AspectRatio/AspectRatio.tsx +2 -2
  196. package/src/Avatar/Avatar.tsx +2 -2
  197. package/src/Avatar/AvatarStatusDot.tsx +2 -2
  198. package/src/AvatarGroup/AvatarGroup.tsx +2 -2
  199. package/src/AvatarGroup/AvatarGroupOverflow.tsx +3 -3
  200. package/src/Badge/Badge.tsx +2 -2
  201. package/src/Banner/Banner.tsx +6 -6
  202. package/src/Blockquote/Blockquote.tsx +2 -2
  203. package/src/Breadcrumbs/BreadcrumbItem.tsx +3 -3
  204. package/src/Breadcrumbs/Breadcrumbs.tsx +2 -2
  205. package/src/Button/Button.tsx +2 -2
  206. package/src/ButtonGroup/ButtonGroup.tsx +2 -2
  207. package/src/Calendar/Calendar.tsx +3 -3
  208. package/src/Card/Card.tsx +2 -2
  209. package/src/Carousel/Carousel.tsx +2 -2
  210. package/src/Center/Center.tsx +2 -2
  211. package/src/Chat/ChatComposer.tsx +2 -2
  212. package/src/Chat/ChatComposerDrawer.tsx +2 -2
  213. package/src/Chat/ChatComposerInput.tsx +2 -2
  214. package/src/Chat/ChatLayout.tsx +2 -2
  215. package/src/Chat/ChatLayoutScrollButton.tsx +7 -1
  216. package/src/Chat/ChatMessage.tsx +2 -2
  217. package/src/Chat/ChatMessageBubble.tsx +2 -2
  218. package/src/Chat/ChatMessageList.tsx +2 -2
  219. package/src/Chat/ChatMessageMetadata.tsx +2 -2
  220. package/src/Chat/ChatSendButton.tsx +2 -2
  221. package/src/Chat/ChatSystemMessage.tsx +3 -3
  222. package/src/Chat/ChatTokenizedText.tsx +3 -3
  223. package/src/Chat/ChatToolCalls.tsx +3 -3
  224. package/src/Chat/useTriggerMenu.tsx +2 -2
  225. package/src/CheckboxInput/CheckboxInput.tsx +3 -3
  226. package/src/CheckboxList/CheckboxList.tsx +2 -2
  227. package/src/Citation/Citation.tsx +3 -3
  228. package/src/ClickableCard/ClickableCard.tsx +2 -2
  229. package/src/Code/Code.tsx +2 -2
  230. package/src/CodeBlock/CodeBlock.tsx +2 -2
  231. package/src/Collapsible/Collapsible.tsx +2 -2
  232. package/src/Collapsible/useCollapsible.doc.mjs +2 -2
  233. package/src/CommandPalette/CommandPaletteFooter.tsx +2 -2
  234. package/src/CommandPalette/CommandPaletteGroup.tsx +2 -2
  235. package/src/CommandPalette/CommandPaletteInput.tsx +2 -2
  236. package/src/CommandPalette/CommandPaletteItem.tsx +2 -2
  237. package/src/CommandPalette/CommandPaletteList.tsx +2 -2
  238. package/src/ContextMenu/ContextMenu.tsx +4 -4
  239. package/src/DateInput/DateInput.test.tsx +68 -20
  240. package/src/DateInput/DateInput.tsx +2 -2
  241. package/src/DateRangeInput/DateRangeInput.tsx +2 -2
  242. package/src/DateTimeInput/DateTimeInput.tsx +2 -2
  243. package/src/Dialog/Dialog.tsx +3 -3
  244. package/src/Divider/Divider.doc.mjs +1 -1
  245. package/src/Divider/Divider.tsx +2 -2
  246. package/src/DropdownMenu/DropdownMenu.tsx +4 -4
  247. package/src/DropdownMenu/DropdownMenuItem.tsx +2 -2
  248. package/src/DropdownMenu/{renderXDSDropdownItems.tsx → renderDropdownItems.tsx} +2 -2
  249. package/src/EmptyState/EmptyState.tsx +2 -2
  250. package/src/Field/Field.tsx +3 -3
  251. package/src/Field/FieldLabel.tsx +2 -2
  252. package/src/FieldStatus/FieldStatus.tsx +2 -2
  253. package/src/FileInput/FileInput.tsx +2 -2
  254. package/src/FormLayout/FormLayout.doc.mjs +3 -3
  255. package/src/FormLayout/FormLayout.tsx +2 -2
  256. package/src/Grid/Grid.tsx +3 -3
  257. package/src/Grid/GridSpan.tsx +2 -2
  258. package/src/Heading/Heading.tsx +2 -2
  259. package/src/HoverCard/useHoverCard.tsx +2 -2
  260. package/src/Icon/Icon.doc.mjs +4 -4
  261. package/src/Icon/Icon.tsx +3 -3
  262. package/src/InputGroup/InputGroup.tsx +2 -2
  263. package/src/InputGroup/InputGroupText.tsx +2 -2
  264. package/src/Item/Item.doc.mjs +2 -2
  265. package/src/Item/Item.tsx +2 -2
  266. package/src/Kbd/Kbd.tsx +2 -2
  267. package/src/Layer/useLayer.tsx +2 -2
  268. package/src/Layout/Layout.tsx +2 -2
  269. package/src/Layout/LayoutContent.tsx +2 -2
  270. package/src/Layout/LayoutFooter.tsx +2 -2
  271. package/src/Layout/LayoutHeader.tsx +2 -2
  272. package/src/Layout/LayoutPanel.tsx +2 -2
  273. package/src/Lightbox/Lightbox.tsx +2 -2
  274. package/src/Link/Link.doc.mjs +3 -3
  275. package/src/Link/Link.tsx +3 -3
  276. package/src/Link/LinkProvider.doc.mjs +3 -3
  277. package/src/List/List.tsx +2 -2
  278. package/src/List/ListItem.tsx +2 -2
  279. package/src/Markdown/Markdown.doc.mjs +4 -4
  280. package/src/Markdown/Markdown.tsx +3 -3
  281. package/src/MetadataList/MetadataList.tsx +2 -2
  282. package/src/MetadataList/MetadataListItem.tsx +3 -3
  283. package/src/MobileNav/MobileNav.tsx +2 -2
  284. package/src/MoreMenu/MoreMenu.doc.mjs +0 -13
  285. package/src/MultiSelector/MultiSelector.tsx +2 -2
  286. package/src/NavIcon/NavIcon.tsx +2 -2
  287. package/src/NavMenu/NavHeadingMenu.tsx +2 -2
  288. package/src/NavMenu/NavHeadingMenuItem.tsx +2 -2
  289. package/src/NumberInput/NumberInput.tsx +2 -2
  290. package/src/Outline/Outline.doc.mjs +1 -1
  291. package/src/Outline/Outline.test.tsx +76 -38
  292. package/src/Outline/Outline.tsx +27 -8
  293. package/src/Outline/useScrollSpy.ts +196 -63
  294. package/src/OverflowList/OverflowList.tsx +2 -2
  295. package/src/Overlay/Overlay.tsx +2 -2
  296. package/src/Overlay/OverlayScrim.tsx +2 -2
  297. package/src/Pagination/Pagination.tsx +3 -3
  298. package/src/Popover/Popover.tsx +4 -4
  299. package/src/PowerSearch/PowerSearch.tsx +2 -2
  300. package/src/ProgressBar/ProgressBar.tsx +5 -5
  301. package/src/RadioList/RadioList.tsx +2 -2
  302. package/src/RadioList/RadioListItem.tsx +4 -4
  303. package/src/Resizable/Resizable.doc.mjs +2 -2
  304. package/src/Resizable/ResizeHandle.tsx +4 -4
  305. package/src/Resizable/useResizable.ts +1 -7
  306. package/src/Section/Section.tsx +2 -2
  307. package/src/SegmentedControl/SegmentedControl.tsx +2 -2
  308. package/src/SegmentedControl/SegmentedControlItem.tsx +2 -2
  309. package/src/SelectableCard/SelectableCard.tsx +2 -2
  310. package/src/Selector/Selector.tsx +7 -8
  311. package/src/Selector/SelectorOption.tsx +2 -2
  312. package/src/SideNav/SideNav.tsx +3 -3
  313. package/src/SideNav/SideNavHeading.tsx +9 -9
  314. package/src/SideNav/SideNavItem.tsx +3 -3
  315. package/src/SideNav/SideNavSection.tsx +2 -2
  316. package/src/Skeleton/Skeleton.tsx +2 -2
  317. package/src/Slider/Slider.tsx +4 -4
  318. package/src/Spinner/Spinner.tsx +3 -3
  319. package/src/Stack/Stack.tsx +2 -2
  320. package/src/Stack/StackItem.tsx +2 -2
  321. package/src/StatusDot/StatusDot.tsx +2 -2
  322. package/src/Switch/Switch.tsx +4 -4
  323. package/src/TabList/Tab.tsx +3 -3
  324. package/src/TabList/TabList.tsx +2 -2
  325. package/src/TabList/TabMenu.tsx +5 -5
  326. package/src/Table/BaseTable.tsx +2 -2
  327. package/src/Table/Table.doc.mjs +3 -3
  328. package/src/Table/Table.tsx +3 -3
  329. package/src/Table/TableBody.tsx +2 -2
  330. package/src/Table/TableCell.tsx +3 -3
  331. package/src/Table/TableFooter.tsx +2 -2
  332. package/src/Table/TableHeader.tsx +2 -2
  333. package/src/Table/TableHeaderCell.tsx +3 -3
  334. package/src/Table/TableRow.tsx +3 -3
  335. package/src/Text/Text.tsx +2 -2
  336. package/src/TextArea/TextArea.tsx +2 -2
  337. package/src/TextInput/TextInput.tsx +2 -2
  338. package/src/Thumbnail/Thumbnail.tsx +2 -2
  339. package/src/TimeInput/TimeInput.tsx +2 -2
  340. package/src/Timestamp/Timestamp.tsx +2 -2
  341. package/src/Toast/Toast.tsx +2 -2
  342. package/src/ToggleButton/ToggleButton.doc.mjs +2 -2
  343. package/src/ToggleButton/ToggleButton.test.tsx +148 -6
  344. package/src/ToggleButton/ToggleButton.tsx +85 -22
  345. package/src/ToggleButton/ToggleButtonGroup.tsx +2 -2
  346. package/src/Token/Token.tsx +4 -4
  347. package/src/Tokenizer/Tokenizer.tsx +3 -3
  348. package/src/Toolbar/Toolbar.doc.mjs +8 -7
  349. package/src/Toolbar/Toolbar.tsx +2 -2
  350. package/src/Tooltip/useTooltip.tsx +2 -2
  351. package/src/TopNav/TopNav.tsx +3 -3
  352. package/src/TopNav/TopNavHeading.tsx +7 -7
  353. package/src/TopNav/TopNavItem.tsx +3 -3
  354. package/src/TopNav/TopNavMegaMenu.tsx +3 -3
  355. package/src/TopNav/TopNavMegaMenuFeaturedCard.tsx +2 -2
  356. package/src/TopNav/TopNavMegaMenuItem.tsx +3 -3
  357. package/src/TopNav/TopNavMenu.tsx +2 -2
  358. package/src/TreeList/TreeList.tsx +2 -2
  359. package/src/TreeList/TreeListItem.tsx +2 -2
  360. package/src/Typeahead/BaseTypeahead.tsx +2 -2
  361. package/src/Typeahead/Typeahead.tsx +2 -2
  362. package/src/Typeahead/TypeaheadItem.tsx +2 -2
  363. package/src/docs-types.ts +3 -3
  364. package/src/hooks/useEntryAnimation.doc.mjs +3 -3
  365. package/src/hooks/useMediaQuery.doc.mjs +2 -2
  366. package/src/hooks/useStreamingText.doc.mjs +3 -3
  367. package/src/naming.ts +1 -1
  368. package/src/reset.css +1 -1
  369. package/src/tailwind-theme.css +1 -1
  370. package/src/theme/Theme.doc.mjs +2 -2
  371. package/src/theme/Theme.tsx +1 -1
  372. package/src/theme/defineTheme.ts +3 -3
  373. package/src/theme/index.ts +2 -2
  374. package/src/theme/syntax/defineSyntaxTheme.ts +1 -1
  375. package/src/theme/tokens.ts +4 -4
  376. package/src/theme/useTheme.ts +2 -2
  377. package/src/utils/dateParser.test.ts +26 -0
  378. package/src/utils/dateParser.ts +16 -2
  379. package/src/utils/mergeProps.ts +4 -4
  380. package/src/utils/parseStyleKey.ts +2 -2
  381. package/src/utils/{xdsThemeProps.test.ts → themeProps.test.ts} +12 -12
  382. package/src/utils/{xdsThemeProps.ts → themeProps.ts} +5 -5
  383. package/dist/DropdownMenu/renderXDSDropdownItems.d.ts.map +0 -1
  384. package/dist/utils/xdsThemeProps.d.ts.map +0 -1
@@ -72,7 +72,7 @@ import {
72
72
 
73
73
  export type {ISODateString, DayOfWeek, DateRange} from '../utils/dateTypes';
74
74
  import type {ISODateString, DayOfWeek, DateRange} from '../utils/dateTypes';
75
- import {xdsThemeProps} from '../utils/xdsThemeProps';
75
+ import {themeProps} from '../utils/themeProps';
76
76
 
77
77
  /** Imperative handle for Calendar handleRef */
78
78
 
@@ -398,7 +398,7 @@ export function Calendar({ref, ...props}: CalendarProps) {
398
398
  <div
399
399
  ref={ref}
400
400
  {...mergeProps(
401
- xdsThemeProps('calendar', {mode}),
401
+ themeProps('calendar', {mode}),
402
402
  stylex.props(calendarStyles.calendar, xstyle),
403
403
  className,
404
404
  style,
@@ -874,7 +874,7 @@ function DayCell({
874
874
  onMouseEnter={() => !state.effectivelyDisabled && onDayHover(date)}
875
875
  onMouseLeave={() => onDayHover(null)}
876
876
  {...mergeProps(
877
- xdsThemeProps('calendar-day', {
877
+ themeProps('calendar-day', {
878
878
  selected: endpoint ? 'selected' : null,
879
879
  today: state.isToday ? 'today' : null,
880
880
  disabled: state.effectivelyDisabled ? 'disabled' : null,
package/src/Card/Card.tsx CHANGED
@@ -30,7 +30,7 @@ import {
30
30
  import type {SizeValue, SpacingStep} from '../utils/types';
31
31
  import {mergeProps} from '../utils';
32
32
  import type {BaseProps} from '../BaseProps';
33
- import {xdsThemeProps} from '../utils/xdsThemeProps';
33
+ import {themeProps} from '../utils/themeProps';
34
34
 
35
35
  // =============================================================================
36
36
  // Variant type
@@ -262,7 +262,7 @@ export function Card({
262
262
  <div
263
263
  ref={ref}
264
264
  {...mergeProps(
265
- xdsThemeProps('card', {variant}),
265
+ themeProps('card', {variant}),
266
266
  stylex.props(
267
267
  styles.card,
268
268
  variantStyles[variant],
@@ -33,7 +33,7 @@ import {useScrollOverflow} from '../hooks/useScrollOverflow';
33
33
  import type {BaseProps} from '../BaseProps';
34
34
  import {mergeProps, mergeRefs} from '../utils';
35
35
  import type {SpacingStep} from '../utils/types';
36
- import {xdsThemeProps} from '../utils/xdsThemeProps';
36
+ import {themeProps} from '../utils/themeProps';
37
37
 
38
38
  export interface CarouselProps extends BaseProps<HTMLDivElement> {
39
39
  ref?: React.Ref<HTMLDivElement>;
@@ -325,7 +325,7 @@ export function Carousel({
325
325
  aria-label={ariaLabel}
326
326
  aria-roledescription="carousel"
327
327
  {...mergeProps(
328
- xdsThemeProps('carousel'),
328
+ themeProps('carousel'),
329
329
  stylex.props(styles.root, xstyle),
330
330
  className,
331
331
  style,
@@ -20,7 +20,7 @@ import type {BaseProps} from '../BaseProps';
20
20
  import * as stylex from '@stylexjs/stylex';
21
21
  import type {SizeValue} from '../utils/types';
22
22
  import {mergeProps} from '../utils';
23
- import {xdsThemeProps} from '../utils/xdsThemeProps';
23
+ import {themeProps} from '../utils/themeProps';
24
24
 
25
25
  const styles = stylex.create({
26
26
  base: {
@@ -110,7 +110,7 @@ export function Center({
110
110
  ...props
111
111
  }: CenterProps) {
112
112
  const stylexProps = mergeProps(
113
- xdsThemeProps('center', {axis}),
113
+ themeProps('center', {axis}),
114
114
  stylex.props(
115
115
  isInline ? styles.inline : styles.base,
116
116
  (axis === 'both' || axis === 'vertical') && styles.alignItemsCenter,
@@ -48,7 +48,7 @@ import {Icon} from '../Icon';
48
48
  import {ChatComposerInput} from './ChatComposerInput';
49
49
  import {ChatComposerContext} from './ChatContext';
50
50
  import {ChatSendButton} from './ChatSendButton';
51
- import {xdsThemeProps} from '../utils/xdsThemeProps';
51
+ import {themeProps} from '../utils/themeProps';
52
52
 
53
53
  // =============================================================================
54
54
  // Types
@@ -384,7 +384,7 @@ export function ChatComposer(props: ChatComposerProps) {
384
384
  <div
385
385
  ref={ref}
386
386
  {...mergeProps(
387
- xdsThemeProps('chat-composer', {density}),
387
+ themeProps('chat-composer', {density}),
388
388
  stylex.props(styles.root, isDisabled && styles.rootDisabled),
389
389
  className,
390
390
  style,
@@ -29,7 +29,7 @@ import {
29
29
  import {Badge} from '../Badge';
30
30
  import {mergeProps} from '../utils';
31
31
  import type {BaseProps} from '../BaseProps';
32
- import {xdsThemeProps} from '../utils/xdsThemeProps';
32
+ import {themeProps} from '../utils/themeProps';
33
33
 
34
34
  export interface ChatComposerDrawerProps extends BaseProps<HTMLDivElement> {
35
35
  ref?: React.Ref<HTMLDivElement>;
@@ -250,7 +250,7 @@ export function ChatComposerDrawer({
250
250
  ref={ref}
251
251
  data-testid={testId}
252
252
  {...mergeProps(
253
- xdsThemeProps('chat-composer-drawer', {
253
+ themeProps('chat-composer-drawer', {
254
254
  collapsed: isCollapsed ? 'collapsed' : null,
255
255
  }),
256
256
  stylex.props(styles.root, xstyle),
@@ -55,7 +55,7 @@ import {
55
55
  } from './useChatPasteAsToken';
56
56
  import {Badge, type BadgeProps} from '../Badge';
57
57
  import {useChatComposerContext} from './ChatContext';
58
- import {xdsThemeProps} from '../utils/xdsThemeProps';
58
+ import {themeProps} from '../utils/themeProps';
59
59
 
60
60
  // =============================================================================
61
61
  // Types
@@ -619,7 +619,7 @@ export function ChatComposerInput(props: ChatComposerInputProps) {
619
619
  <div
620
620
  ref={ref}
621
621
  {...mergeProps(
622
- xdsThemeProps('chat-composer-input'),
622
+ themeProps('chat-composer-input'),
623
623
  stylex.props(styles.root, isDisabled && styles.disabled, xstyle),
624
624
  className,
625
625
  style,
@@ -31,7 +31,7 @@ import {useChatStreamScroll} from './useChatStreamScroll';
31
31
  import {useChatNewMessages} from './useChatNewMessages';
32
32
  import {ChatLayoutScrollButton} from './ChatLayoutScrollButton';
33
33
  import {ChatLayoutContext} from './ChatContext';
34
- import {xdsThemeProps} from '../utils/xdsThemeProps';
34
+ import {themeProps} from '../utils/themeProps';
35
35
 
36
36
  // =============================================================================
37
37
  // Types
@@ -330,7 +330,7 @@ export function ChatLayout({
330
330
  ref={mergeRefs(ref, rootRef)}
331
331
  data-testid={testId}
332
332
  {...mergeProps(
333
- xdsThemeProps('chat-layout', {density}),
333
+ themeProps('chat-layout', {density}),
334
334
  stylex.props(
335
335
  styles.root,
336
336
  isSelfScrolling && styles.rootScrollable,
@@ -90,6 +90,12 @@ const styles = stylex.create({
90
90
  whiteSpace: 'nowrap',
91
91
  paddingInline: spacingVars['--spacing-2'],
92
92
  },
93
+ // When a label is shown, the icon sits on the leading edge and the text on
94
+ // the trailing edge. Symmetric padding leaves the text cramped against the
95
+ // pill's rounded edge, so give the trailing side extra breathing room.
96
+ buttonWithLabel: {
97
+ paddingInlineEnd: spacingVars['--spacing-3'],
98
+ },
93
99
  });
94
100
 
95
101
  // =============================================================================
@@ -130,7 +136,7 @@ export function ChatLayoutScrollButton({
130
136
  variant="ghost"
131
137
  size="md"
132
138
  onClick={onClick}
133
- xstyle={styles.button}>
139
+ xstyle={[styles.button, label ? styles.buttonWithLabel : null]}>
134
140
  {label ?? undefined}
135
141
  </Button>
136
142
  </div>
@@ -35,7 +35,7 @@ import {
35
35
  } from './ChatContext';
36
36
  import {mergeProps} from '../utils';
37
37
  import type {BaseProps} from '../BaseProps';
38
- import {xdsThemeProps} from '../utils/xdsThemeProps';
38
+ import {themeProps} from '../utils/themeProps';
39
39
 
40
40
  export interface ChatMessageProps extends BaseProps<HTMLElement> {
41
41
  ref?: React.Ref<HTMLElement>;
@@ -221,7 +221,7 @@ export function ChatMessage({
221
221
  aria-label={!hasName ? `Message from ${sender}` : undefined}
222
222
  aria-labelledby={hasName ? nameId : undefined}
223
223
  {...mergeProps(
224
- xdsThemeProps('chat-message', {sender, density}),
224
+ themeProps('chat-message', {sender, density}),
225
225
  stylex.props(
226
226
  styles.root,
227
227
  rootAlignment,
@@ -37,7 +37,7 @@ import {
37
37
  import {useChatMessageContext} from './ChatContext';
38
38
  import {mergeProps} from '../utils';
39
39
  import type {BaseProps} from '../BaseProps';
40
- import {xdsThemeProps} from '../utils/xdsThemeProps';
40
+ import {themeProps} from '../utils/themeProps';
41
41
 
42
42
  export type ChatMessageBubbleVariant = 'filled' | 'ghost';
43
43
 
@@ -277,7 +277,7 @@ export function ChatMessageBubble({
277
277
  ref={ref}
278
278
  data-testid={testId}
279
279
  {...mergeProps(
280
- xdsThemeProps('chat-message-bubble', {sender, variant, density}),
280
+ themeProps('chat-message-bubble', {sender, variant, density}),
281
281
  stylex.props(
282
282
  styles.content,
283
283
  density === 'compact' && styles.radiusCompact,
@@ -34,7 +34,7 @@ import {mergeProps} from '../utils';
34
34
  import {Spinner} from '../Spinner';
35
35
  import type {BaseProps} from '../BaseProps';
36
36
  import type {SpacingStep} from '../utils/types';
37
- import {xdsThemeProps} from '../utils/xdsThemeProps';
37
+ import {themeProps} from '../utils/themeProps';
38
38
 
39
39
  export interface ChatMessageListProps extends BaseProps<HTMLDivElement> {
40
40
  /** Ref forwarded to the root element */
@@ -255,7 +255,7 @@ export function ChatMessageList({
255
255
  tabIndex={0}
256
256
  data-testid={testId}
257
257
  {...mergeProps(
258
- xdsThemeProps('chat-message-list', {density}),
258
+ themeProps('chat-message-list', {density}),
259
259
  stylex.props(styles.root, xstyle),
260
260
  className,
261
261
  style,
@@ -25,7 +25,7 @@ import {Icon} from '../Icon';
25
25
  import type {IconName} from '../Icon/globalIconRegistry';
26
26
  import {mergeProps} from '../utils';
27
27
  import type {BaseProps} from '../BaseProps';
28
- import {xdsThemeProps} from '../utils/xdsThemeProps';
28
+ import {themeProps} from '../utils/themeProps';
29
29
 
30
30
  export type ChatMessageStatus =
31
31
  | 'sending'
@@ -134,7 +134,7 @@ export function ChatMessageMetadata({
134
134
  <div
135
135
  ref={ref}
136
136
  {...mergeProps(
137
- xdsThemeProps('chat-message-metadata'),
137
+ themeProps('chat-message-metadata'),
138
138
  stylex.props(
139
139
  styles.meta,
140
140
  sender === 'user' ? styles.metaUser : styles.metaAssistant,
@@ -24,7 +24,7 @@ import {getIcon} from '../Icon/globalIconRegistry';
24
24
  import {useChatComposerContext} from './ChatContext';
25
25
 
26
26
  import type {BaseProps} from '../BaseProps';
27
- import {xdsThemeProps} from '../utils/xdsThemeProps';
27
+ import {themeProps} from '../utils/themeProps';
28
28
 
29
29
  // =============================================================================
30
30
  // Types
@@ -105,7 +105,7 @@ export function ChatSendButton(props: ChatSendButtonProps): ReactNode {
105
105
  isIconOnly
106
106
  isDisabled={!isStopShown && isDisabled}
107
107
  onClick={isStopShown ? onStop : handleSend}
108
- {...xdsThemeProps('chat-send-button')}
108
+ {...themeProps('chat-send-button')}
109
109
  xstyle={[styles.root, xstyle]}
110
110
  />
111
111
  );
@@ -31,7 +31,7 @@ import {
31
31
  import {mergeProps} from '../utils';
32
32
  import {Divider} from '../Divider';
33
33
  import type {BaseProps} from '../BaseProps';
34
- import {xdsThemeProps} from '../utils/xdsThemeProps';
34
+ import {themeProps} from '../utils/themeProps';
35
35
 
36
36
  export type ChatSystemMessageVariant = 'default' | 'divider';
37
37
 
@@ -130,7 +130,7 @@ export function ChatSystemMessage({
130
130
  role="status"
131
131
  data-testid={testId}
132
132
  {...mergeProps(
133
- xdsThemeProps('chat-system-message', {variant}),
133
+ themeProps('chat-system-message', {variant}),
134
134
  stylex.props(styles.dividerWrap, xstyle),
135
135
  className,
136
136
  styleProp,
@@ -146,7 +146,7 @@ export function ChatSystemMessage({
146
146
  role="status"
147
147
  data-testid={testId}
148
148
  {...mergeProps(
149
- xdsThemeProps('chat-system-message', {variant}),
149
+ themeProps('chat-system-message', {variant}),
150
150
  stylex.props(styles.root, xstyle),
151
151
  className,
152
152
  styleProp,
@@ -23,7 +23,7 @@ import {Badge} from '../Badge';
23
23
  import type {ChatComposerToken} from './ChatComposerInput';
24
24
  import {mergeProps} from '../utils';
25
25
  import type {BaseProps} from '../BaseProps';
26
- import {xdsThemeProps} from '../utils/xdsThemeProps';
26
+ import {themeProps} from '../utils/themeProps';
27
27
 
28
28
  // =============================================================================
29
29
  // Styles
@@ -97,7 +97,7 @@ export function ChatTokenizedText({
97
97
  <span
98
98
  ref={ref}
99
99
  {...mergeProps(
100
- xdsThemeProps('chat-tokenized-text'),
100
+ themeProps('chat-tokenized-text'),
101
101
  stylex.props(styles.root),
102
102
  )}>
103
103
  {children ?? ''}
@@ -110,7 +110,7 @@ export function ChatTokenizedText({
110
110
  <span
111
111
  ref={ref}
112
112
  {...mergeProps(
113
- xdsThemeProps('chat-tokenized-text'),
113
+ themeProps('chat-tokenized-text'),
114
114
  stylex.props(styles.root),
115
115
  )}>
116
116
  {parts}
@@ -35,7 +35,7 @@ import {getKey, mergeProps} from '../utils';
35
35
  import {Badge} from '../Badge';
36
36
  import {Icon, type IconName} from '../Icon';
37
37
  import {Spinner} from '../Spinner';
38
- import {xdsThemeProps} from '../utils/xdsThemeProps';
38
+ import {themeProps} from '../utils/themeProps';
39
39
 
40
40
  // =============================================================================
41
41
  // Types
@@ -518,7 +518,7 @@ export function ChatToolCalls(props: ChatToolCallsProps) {
518
518
  <div
519
519
  ref={ref}
520
520
  {...mergeProps(
521
- xdsThemeProps('chat-tool-calls'),
521
+ themeProps('chat-tool-calls'),
522
522
  stylex.props(styles.root, xstyle),
523
523
  className,
524
524
  style,
@@ -537,7 +537,7 @@ export function ChatToolCalls(props: ChatToolCallsProps) {
537
537
  <div
538
538
  ref={ref}
539
539
  {...mergeProps(
540
- xdsThemeProps('chat-tool-calls'),
540
+ themeProps('chat-tool-calls'),
541
541
  stylex.props(styles.root, xstyle),
542
542
  className,
543
543
  style,
@@ -39,7 +39,7 @@ import {
39
39
  } from '../theme/tokens.stylex';
40
40
  import {mergeProps, groupItems} from '../utils';
41
41
  import type {SearchableItem} from '../Typeahead/types';
42
- import {xdsThemeProps} from '../utils/xdsThemeProps';
42
+ import {themeProps} from '../utils/themeProps';
43
43
  import type {
44
44
  ChatComposerTrigger,
45
45
  ChatComposerToken,
@@ -684,7 +684,7 @@ export function useTriggerMenu(
684
684
  role="listbox"
685
685
  aria-label={trigger?.menuLabel ?? 'Suggestions'}
686
686
  {...mergeProps(
687
- xdsThemeProps('trigger-menu'),
687
+ themeProps('trigger-menu'),
688
688
  stylex.props(styles.dropdown),
689
689
  )}>
690
690
  {listContent}
@@ -46,7 +46,7 @@ import type {InputStatus} from '../Field/types';
46
46
  import {Spinner} from '../Spinner';
47
47
  import {mergeProps, mergeRefs} from '../utils';
48
48
  import {checkboxScope} from './checkbox.markers.stylex';
49
- import {xdsThemeProps} from '../utils/xdsThemeProps';
49
+ import {themeProps} from '../utils/themeProps';
50
50
 
51
51
  const styles = stylex.create({
52
52
  container: {
@@ -401,7 +401,7 @@ export function CheckboxInput({
401
401
  return (
402
402
  <div
403
403
  {...mergeProps(
404
- xdsThemeProps('checkbox-input', {size}),
404
+ themeProps('checkbox-input', {size}),
405
405
  stylex.props(width != null && dynamicWidthStyles.width(width), xstyle),
406
406
  className,
407
407
  style,
@@ -450,7 +450,7 @@ export function CheckboxInput({
450
450
  <div
451
451
  aria-hidden="true"
452
452
  {...mergeProps(
453
- xdsThemeProps('checkbox', {
453
+ themeProps('checkbox', {
454
454
  size,
455
455
  checked: isChecked
456
456
  ? 'checked'
@@ -31,7 +31,7 @@ import type {InputStatus} from '../Field/types';
31
31
  import {List} from '../List/List';
32
32
  import type {ListDensity} from '../List/ListContext';
33
33
  import {mergeProps} from '../utils';
34
- import {xdsThemeProps} from '../utils/xdsThemeProps';
34
+ import {themeProps} from '../utils/themeProps';
35
35
  import {
36
36
  CheckboxListContext,
37
37
  type CheckboxListContextValue,
@@ -224,7 +224,7 @@ export function CheckboxList({
224
224
  statusVariant="detached"
225
225
  width={width}
226
226
  xstyle={xstyle}
227
- {...mergeProps(xdsThemeProps('checkbox-list'), {className, style})}>
227
+ {...mergeProps(themeProps('checkbox-list'), {className, style})}>
228
228
  <CheckboxListContext value={contextValue}>
229
229
  <List density={density} hasDividers={hasDividers}>
230
230
  {children}
@@ -27,7 +27,7 @@ import {
27
27
  } from '../theme/tokens.stylex';
28
28
  import {mergeProps} from '../utils';
29
29
  import type {BaseProps} from '../BaseProps';
30
- import {xdsThemeProps} from '../utils/xdsThemeProps';
30
+ import {themeProps} from '../utils/themeProps';
31
31
 
32
32
  export interface CitationSource {
33
33
  title?: string;
@@ -173,7 +173,7 @@ export function Citation({
173
173
  data-testid={testId}
174
174
  {...linkProps}
175
175
  {...mergeProps(
176
- xdsThemeProps('citation', {variant}),
176
+ themeProps('citation', {variant}),
177
177
  stylex.props(
178
178
  styles.number,
179
179
  href != null && styles.numberHover,
@@ -196,7 +196,7 @@ export function Citation({
196
196
  data-testid={testId}
197
197
  {...linkProps}
198
198
  {...mergeProps(
199
- xdsThemeProps('citation', {variant}),
199
+ themeProps('citation', {variant}),
200
200
  stylex.props(
201
201
  styles.label,
202
202
  icon != null && styles.labelWithIcon,
@@ -39,7 +39,7 @@ import type {CardVariant} from '../Card/Card';
39
39
  import {useClickableContainer} from '../hooks/useClickableContainer';
40
40
  import type {BaseProps} from '../BaseProps';
41
41
  import {useLinkComponent} from '../Link/useLinkComponent';
42
- import {xdsThemeProps} from '../utils/xdsThemeProps';
42
+ import {themeProps} from '../utils/themeProps';
43
43
 
44
44
  // =============================================================================
45
45
  // Styles — only the interactive layer, Card handles everything else
@@ -256,7 +256,7 @@ export function ClickableCard({
256
256
  maxWidth={maxWidth}
257
257
  padding={padding}
258
258
  variant={variant}
259
- {...mergeProps(xdsThemeProps('clickable-card', {variant}), {
259
+ {...mergeProps(themeProps('clickable-card', {variant}), {
260
260
  className: classNameProp,
261
261
  style,
262
262
  })}
package/src/Code/Code.tsx CHANGED
@@ -25,7 +25,7 @@ import {
25
25
  } from '../theme/tokens.stylex';
26
26
  import {mergeProps} from '../utils';
27
27
  import type {BaseProps} from '../BaseProps';
28
- import {xdsThemeProps} from '../utils/xdsThemeProps';
28
+ import {themeProps} from '../utils/themeProps';
29
29
 
30
30
  const styles = stylex.create({
31
31
  base: {
@@ -74,7 +74,7 @@ export function Code({
74
74
  <code
75
75
  ref={ref}
76
76
  {...mergeProps(
77
- xdsThemeProps('code'),
77
+ themeProps('code'),
78
78
  stylex.props(styles.base, xstyle),
79
79
  className,
80
80
  style,
@@ -42,7 +42,7 @@ import {
42
42
  import type {SyntaxToken, TokenLine} from './tokenizer';
43
43
  import {ensureHighlightStyles} from './highlightStyles';
44
44
  import {applyHighlightRangesChunked} from './highlightRanges';
45
- import {xdsThemeProps} from '../utils/xdsThemeProps';
45
+ import {themeProps} from '../utils/themeProps';
46
46
 
47
47
  // ---------------------------------------------------------------------------
48
48
  // Styles
@@ -776,7 +776,7 @@ export function CodeBlock({
776
776
  <pre
777
777
  ref={ref}
778
778
  {...mergeProps(
779
- xdsThemeProps('codeblock', {size, language, container}),
779
+ themeProps('codeblock', {size, language, container}),
780
780
  stylex.props(
781
781
  styles.root,
782
782
  dynamicStyles.width(widthProp),
@@ -36,7 +36,7 @@ import {useCollapsible} from './useCollapsible';
36
36
  import {getIcon} from '../Icon/globalIconRegistry';
37
37
  import {mergeProps} from '../utils';
38
38
  import type {BaseProps} from '../BaseProps';
39
- import {xdsThemeProps} from '../utils/xdsThemeProps';
39
+ import {themeProps} from '../utils/themeProps';
40
40
 
41
41
  const styles = stylex.create({
42
42
  root: {
@@ -198,7 +198,7 @@ export function Collapsible({
198
198
  <div
199
199
  ref={ref}
200
200
  {...mergeProps(
201
- xdsThemeProps('collapsible'),
201
+ themeProps('collapsible'),
202
202
  stylex.props(styles.root, xstyle),
203
203
  className,
204
204
  style,
@@ -38,7 +38,7 @@ export const docs = {
38
38
  usage: {
39
39
  description: 'Reusable hook that encapsulates the collapsible state machine. Supports three modes: group-controlled (inside CollapsibleGroup), controlled (isOpen + onOpenChange), and uncontrolled (self-managed with defaultIsOpen). Used internally by Card and Section.',
40
40
  bestPractices: [
41
- {guidance: true, description: 'Use the hook directly when building custom collapsible components that need XDS collapsible behavior without Collapsible wrapper.'},
41
+ {guidance: true, description: 'Use the hook directly when building custom collapsible components that need Astryx collapsible behavior without Collapsible wrapper.'},
42
42
  {guidance: true, description: 'For accordion behavior, wrap items in CollapsibleGroup and pass unique value props.'},
43
43
  {guidance: false, description: 'Implement your own open/close state when useCollapsible already provides it; the hook handles group coordination automatically.'},
44
44
  ],
@@ -64,7 +64,7 @@ export const docsDense = {
64
64
  usage: {
65
65
  description: 'Encapsulates collapsible state machine. 3 modes: group-controlled (inside CollapsibleGroup), controlled (isOpen + onOpenChange), uncontrolled (self-managed w/ defaultIsOpen). Used internally by Card + Section.',
66
66
  bestPractices: [
67
- {guidance: true, description: 'Use directly when building custom collapsible components needing XDS collapsible behavior w/o Collapsible wrapper.'},
67
+ {guidance: true, description: 'Use directly when building custom collapsible components needing Astryx collapsible behavior w/o Collapsible wrapper.'},
68
68
  {guidance: true, description: 'For accordion behavior, wrap items in CollapsibleGroup + pass unique value props.'},
69
69
  {guidance: false, description: 'Implement your own open/close state when useCollapsible already provides it; hook handles group coordination automatically.'},
70
70
  ],
@@ -23,7 +23,7 @@ import {
23
23
  typographyVars,
24
24
  } from '../theme/tokens.stylex';
25
25
  import {Kbd} from '../Kbd';
26
- import {xdsThemeProps} from '../utils/xdsThemeProps';
26
+ import {themeProps} from '../utils/themeProps';
27
27
 
28
28
  const styles = stylex.create({
29
29
  footer: {
@@ -89,7 +89,7 @@ export function CommandPaletteFooter({
89
89
  <div
90
90
  ref={ref}
91
91
  {...mergeProps(
92
- xdsThemeProps('command-palette-footer'),
92
+ themeProps('command-palette-footer'),
93
93
  stylex.props(styles.footer, xstyle),
94
94
  className,
95
95
  style,
@@ -16,7 +16,7 @@ import type {ReactNode} from 'react';
16
16
  import * as stylex from '@stylexjs/stylex';
17
17
  import type {BaseProps} from '../BaseProps';
18
18
  import {mergeProps} from '../utils';
19
- import {xdsThemeProps} from '../utils/xdsThemeProps';
19
+ import {themeProps} from '../utils/themeProps';
20
20
  import {
21
21
  colorVars,
22
22
  spacingVars,
@@ -84,7 +84,7 @@ export function CommandPaletteGroup({
84
84
  role="group"
85
85
  aria-label={heading}
86
86
  {...mergeProps(
87
- xdsThemeProps('command-palette-group'),
87
+ themeProps('command-palette-group'),
88
88
  stylex.props(styles.group, xstyle),
89
89
  className,
90
90
  style,
@@ -26,7 +26,7 @@ import {
26
26
  import {useCommandPaletteContext} from './CommandPaletteContext';
27
27
  import {useDialogContext} from '../Dialog/DialogContext';
28
28
  import type {BaseProps} from '../BaseProps';
29
- import {xdsThemeProps} from '../utils/xdsThemeProps';
29
+ import {themeProps} from '../utils/themeProps';
30
30
 
31
31
  const styles = stylex.create({
32
32
  wrapper: {
@@ -193,7 +193,7 @@ export function CommandPaletteInput({
193
193
  return (
194
194
  <div
195
195
  {...mergeProps(
196
- xdsThemeProps('command-palette-input'),
196
+ themeProps('command-palette-input'),
197
197
  stylex.props(styles.wrapper, xstyle),
198
198
  )}>
199
199
  <span {...stylex.props(styles.icon)}>
@@ -24,7 +24,7 @@ import {
24
24
  } from '../theme/tokens.stylex';
25
25
  import {useCommandPaletteContext} from './CommandPaletteContext';
26
26
  import {useDialogContext} from '../Dialog/DialogContext';
27
- import {xdsThemeProps} from '../utils/xdsThemeProps';
27
+ import {themeProps} from '../utils/themeProps';
28
28
 
29
29
  const HOVER_HOVER = '@media (hover: hover)';
30
30
 
@@ -194,7 +194,7 @@ export function CommandPaletteItem({
194
194
  onClick={handleClick}
195
195
  onMouseEnter={handleMouseEnter}
196
196
  {...mergeProps(
197
- xdsThemeProps('command-palette-item'),
197
+ themeProps('command-palette-item'),
198
198
  stylex.props(
199
199
  styles.item,
200
200
  !isDisabled && styles.itemHover,
@@ -19,7 +19,7 @@ import type {BaseProps} from '../BaseProps';
19
19
  import {mergeProps} from '../utils';
20
20
  import {spacingVars} from '../theme/tokens.stylex';
21
21
  import {useCommandPaletteContext} from './CommandPaletteContext';
22
- import {xdsThemeProps} from '../utils/xdsThemeProps';
22
+ import {themeProps} from '../utils/themeProps';
23
23
 
24
24
  const styles = stylex.create({
25
25
  list: {
@@ -88,7 +88,7 @@ export function CommandPaletteList({
88
88
  role="listbox"
89
89
  aria-label={label}
90
90
  {...mergeProps(
91
- xdsThemeProps('command-palette-list'),
91
+ themeProps('command-palette-list'),
92
92
  stylex.props(styles.list, xstyle),
93
93
  className,
94
94
  style,