@womp/kookie-ui 0.6.2 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1047) hide show
  1. package/components.css +741 -1078
  2. package/dist/cjs/components/_internal/base-button.js +1 -1
  3. package/dist/cjs/components/_internal/base-button.js.map +4 -4
  4. package/dist/cjs/components/_internal/base-button.props.d.ts +2 -7
  5. package/dist/cjs/components/_internal/base-button.props.d.ts.map +1 -1
  6. package/dist/cjs/components/_internal/base-button.props.js +1 -1
  7. package/dist/cjs/components/_internal/base-button.props.js.map +4 -4
  8. package/dist/cjs/components/_internal/base-checkbox.props.d.ts +0 -5
  9. package/dist/cjs/components/_internal/base-checkbox.props.d.ts.map +1 -1
  10. package/dist/cjs/components/_internal/base-checkbox.props.js +1 -1
  11. package/dist/cjs/components/_internal/base-checkbox.props.js.map +4 -4
  12. package/dist/cjs/components/_internal/base-menu.props.d.ts +0 -10
  13. package/dist/cjs/components/_internal/base-menu.props.d.ts.map +1 -1
  14. package/dist/cjs/components/_internal/base-menu.props.js +1 -1
  15. package/dist/cjs/components/_internal/base-menu.props.js.map +4 -4
  16. package/dist/cjs/components/_internal/base-menu.utils.js +1 -1
  17. package/dist/cjs/components/_internal/base-menu.utils.js.map +3 -3
  18. package/dist/cjs/components/_internal/base-radio.props.d.ts +0 -5
  19. package/dist/cjs/components/_internal/base-radio.props.d.ts.map +1 -1
  20. package/dist/cjs/components/_internal/base-radio.props.js +1 -1
  21. package/dist/cjs/components/_internal/base-radio.props.js.map +4 -4
  22. package/dist/cjs/components/_internal/base-tab-list.props.d.ts +0 -5
  23. package/dist/cjs/components/_internal/base-tab-list.props.d.ts.map +1 -1
  24. package/dist/cjs/components/_internal/base-tab-list.props.js +1 -1
  25. package/dist/cjs/components/_internal/base-tab-list.props.js.map +4 -4
  26. package/dist/cjs/components/_internal/menu-context.js +1 -1
  27. package/dist/cjs/components/_internal/menu-context.js.map +3 -3
  28. package/dist/cjs/components/_internal/shell-bottom.d.ts +6 -7
  29. package/dist/cjs/components/_internal/shell-bottom.d.ts.map +1 -1
  30. package/dist/cjs/components/_internal/shell-bottom.js +1 -1
  31. package/dist/cjs/components/_internal/shell-bottom.js.map +4 -4
  32. package/dist/cjs/components/_internal/shell-handles.d.ts +9 -0
  33. package/dist/cjs/components/_internal/shell-handles.d.ts.map +1 -1
  34. package/dist/cjs/components/_internal/shell-handles.js +1 -1
  35. package/dist/cjs/components/_internal/shell-handles.js.map +3 -3
  36. package/dist/cjs/components/_internal/shell-inspector.d.ts +4 -6
  37. package/dist/cjs/components/_internal/shell-inspector.d.ts.map +1 -1
  38. package/dist/cjs/components/_internal/shell-inspector.js +1 -1
  39. package/dist/cjs/components/_internal/shell-inspector.js.map +4 -4
  40. package/dist/cjs/components/_internal/shell-pane.d.ts +70 -0
  41. package/dist/cjs/components/_internal/shell-pane.d.ts.map +1 -0
  42. package/dist/cjs/components/_internal/shell-pane.js +2 -0
  43. package/dist/cjs/components/_internal/shell-pane.js.map +7 -0
  44. package/dist/cjs/components/_internal/shell-resizable.d.ts +48 -0
  45. package/dist/cjs/components/_internal/shell-resizable.d.ts.map +1 -0
  46. package/dist/cjs/components/_internal/shell-resizable.js +2 -0
  47. package/dist/cjs/components/_internal/shell-resizable.js.map +7 -0
  48. package/dist/cjs/components/_internal/shell-resize.d.ts +11 -3
  49. package/dist/cjs/components/_internal/shell-resize.d.ts.map +1 -1
  50. package/dist/cjs/components/_internal/shell-resize.js +1 -1
  51. package/dist/cjs/components/_internal/shell-resize.js.map +2 -2
  52. package/dist/cjs/components/_internal/shell-rest.d.ts +27 -0
  53. package/dist/cjs/components/_internal/shell-rest.d.ts.map +1 -0
  54. package/dist/cjs/components/_internal/shell-rest.js +2 -0
  55. package/dist/cjs/components/_internal/shell-rest.js.map +7 -0
  56. package/dist/cjs/components/_internal/shell-sidebar.d.ts +7 -12
  57. package/dist/cjs/components/_internal/shell-sidebar.d.ts.map +1 -1
  58. package/dist/cjs/components/_internal/shell-sidebar.js +1 -1
  59. package/dist/cjs/components/_internal/shell-sidebar.js.map +4 -4
  60. package/dist/cjs/components/_internal/shell-store.d.ts +99 -0
  61. package/dist/cjs/components/_internal/shell-store.d.ts.map +1 -0
  62. package/dist/cjs/components/_internal/shell-store.js +2 -0
  63. package/dist/cjs/components/_internal/shell-store.js.map +7 -0
  64. package/dist/cjs/components/accordion.js +1 -1
  65. package/dist/cjs/components/accordion.js.map +4 -4
  66. package/dist/cjs/components/accordion.props.d.ts +0 -6
  67. package/dist/cjs/components/accordion.props.d.ts.map +1 -1
  68. package/dist/cjs/components/accordion.props.js +1 -1
  69. package/dist/cjs/components/accordion.props.js.map +4 -4
  70. package/dist/cjs/components/alert-dialog.js +1 -1
  71. package/dist/cjs/components/alert-dialog.js.map +4 -4
  72. package/dist/cjs/components/avatar.js +1 -1
  73. package/dist/cjs/components/avatar.js.map +4 -4
  74. package/dist/cjs/components/avatar.props.d.ts +0 -5
  75. package/dist/cjs/components/avatar.props.d.ts.map +1 -1
  76. package/dist/cjs/components/avatar.props.js +1 -1
  77. package/dist/cjs/components/avatar.props.js.map +4 -4
  78. package/dist/cjs/components/badge.js +1 -1
  79. package/dist/cjs/components/badge.js.map +4 -4
  80. package/dist/cjs/components/badge.props.d.ts +0 -5
  81. package/dist/cjs/components/badge.props.d.ts.map +1 -1
  82. package/dist/cjs/components/badge.props.js +1 -1
  83. package/dist/cjs/components/badge.props.js.map +4 -4
  84. package/dist/cjs/components/blockquote.js +1 -1
  85. package/dist/cjs/components/blockquote.js.map +4 -4
  86. package/dist/cjs/components/blockquote.props.d.ts +3 -2
  87. package/dist/cjs/components/blockquote.props.d.ts.map +1 -1
  88. package/dist/cjs/components/blockquote.props.js +1 -1
  89. package/dist/cjs/components/blockquote.props.js.map +4 -4
  90. package/dist/cjs/components/button.js +1 -1
  91. package/dist/cjs/components/button.js.map +4 -4
  92. package/dist/cjs/components/button.props.js +1 -1
  93. package/dist/cjs/components/button.props.js.map +4 -4
  94. package/dist/cjs/components/callout.js +1 -1
  95. package/dist/cjs/components/callout.js.map +4 -4
  96. package/dist/cjs/components/callout.props.d.ts +0 -5
  97. package/dist/cjs/components/callout.props.d.ts.map +1 -1
  98. package/dist/cjs/components/callout.props.js +1 -1
  99. package/dist/cjs/components/callout.props.js.map +4 -4
  100. package/dist/cjs/components/chatbar.d.ts.map +1 -1
  101. package/dist/cjs/components/chatbar.js +2 -2
  102. package/dist/cjs/components/chatbar.js.map +4 -4
  103. package/dist/cjs/components/checkbox-cards.d.ts.map +1 -1
  104. package/dist/cjs/components/checkbox-cards.js +1 -1
  105. package/dist/cjs/components/checkbox-cards.js.map +4 -4
  106. package/dist/cjs/components/checkbox-cards.props.d.ts +0 -5
  107. package/dist/cjs/components/checkbox-cards.props.d.ts.map +1 -1
  108. package/dist/cjs/components/checkbox-cards.props.js +1 -1
  109. package/dist/cjs/components/checkbox-cards.props.js.map +4 -4
  110. package/dist/cjs/components/checkbox-group.d.ts.map +1 -1
  111. package/dist/cjs/components/checkbox-group.js +1 -1
  112. package/dist/cjs/components/checkbox-group.js.map +4 -4
  113. package/dist/cjs/components/checkbox-group.props.d.ts +0 -5
  114. package/dist/cjs/components/checkbox-group.props.d.ts.map +1 -1
  115. package/dist/cjs/components/checkbox-group.props.js +1 -1
  116. package/dist/cjs/components/checkbox-group.props.js.map +4 -4
  117. package/dist/cjs/components/checkbox.js +1 -1
  118. package/dist/cjs/components/checkbox.js.map +4 -4
  119. package/dist/cjs/components/checkbox.props.js +1 -1
  120. package/dist/cjs/components/checkbox.props.js.map +4 -4
  121. package/dist/cjs/components/code.js +1 -1
  122. package/dist/cjs/components/code.js.map +4 -4
  123. package/dist/cjs/components/code.props.d.ts +3 -2
  124. package/dist/cjs/components/code.props.d.ts.map +1 -1
  125. package/dist/cjs/components/code.props.js +1 -1
  126. package/dist/cjs/components/code.props.js.map +4 -4
  127. package/dist/cjs/components/combobox.d.ts.map +1 -1
  128. package/dist/cjs/components/combobox.js +1 -1
  129. package/dist/cjs/components/combobox.js.map +4 -4
  130. package/dist/cjs/components/combobox.props.d.ts +1 -11
  131. package/dist/cjs/components/combobox.props.d.ts.map +1 -1
  132. package/dist/cjs/components/combobox.props.js +1 -1
  133. package/dist/cjs/components/combobox.props.js.map +4 -4
  134. package/dist/cjs/components/context-menu.d.ts.map +1 -1
  135. package/dist/cjs/components/context-menu.js +1 -1
  136. package/dist/cjs/components/context-menu.js.map +4 -4
  137. package/dist/cjs/components/context-menu.props.js +1 -1
  138. package/dist/cjs/components/context-menu.props.js.map +4 -4
  139. package/dist/cjs/components/data-list.js +1 -1
  140. package/dist/cjs/components/data-list.js.map +4 -4
  141. package/dist/cjs/components/data-list.props.d.ts +4 -3
  142. package/dist/cjs/components/data-list.props.d.ts.map +1 -1
  143. package/dist/cjs/components/data-list.props.js +1 -1
  144. package/dist/cjs/components/data-list.props.js.map +4 -4
  145. package/dist/cjs/components/dialog.js +1 -1
  146. package/dist/cjs/components/dialog.js.map +4 -4
  147. package/dist/cjs/components/dropdown-menu.d.ts.map +1 -1
  148. package/dist/cjs/components/dropdown-menu.js +1 -1
  149. package/dist/cjs/components/dropdown-menu.js.map +4 -4
  150. package/dist/cjs/components/dropdown-menu.props.js +1 -1
  151. package/dist/cjs/components/dropdown-menu.props.js.map +4 -4
  152. package/dist/cjs/components/heading.js +1 -1
  153. package/dist/cjs/components/heading.js.map +4 -4
  154. package/dist/cjs/components/heading.props.d.ts +3 -2
  155. package/dist/cjs/components/heading.props.d.ts.map +1 -1
  156. package/dist/cjs/components/heading.props.js +1 -1
  157. package/dist/cjs/components/heading.props.js.map +4 -4
  158. package/dist/cjs/components/hover-card.js.map +1 -1
  159. package/dist/cjs/components/icon-button.js +2 -2
  160. package/dist/cjs/components/icon-button.js.map +4 -4
  161. package/dist/cjs/components/icon-button.props.js +1 -1
  162. package/dist/cjs/components/icon-button.props.js.map +4 -4
  163. package/dist/cjs/components/index.js +5 -5
  164. package/dist/cjs/components/index.js.map +4 -4
  165. package/dist/cjs/components/link.js +1 -1
  166. package/dist/cjs/components/link.js.map +4 -4
  167. package/dist/cjs/components/link.props.d.ts +0 -5
  168. package/dist/cjs/components/link.props.d.ts.map +1 -1
  169. package/dist/cjs/components/link.props.js +1 -1
  170. package/dist/cjs/components/link.props.js.map +4 -4
  171. package/dist/cjs/components/popover.js.map +1 -1
  172. package/dist/cjs/components/progress.js +1 -1
  173. package/dist/cjs/components/progress.js.map +4 -4
  174. package/dist/cjs/components/progress.props.d.ts +0 -5
  175. package/dist/cjs/components/progress.props.d.ts.map +1 -1
  176. package/dist/cjs/components/progress.props.js +1 -1
  177. package/dist/cjs/components/progress.props.js.map +4 -4
  178. package/dist/cjs/components/radio-cards.js +1 -1
  179. package/dist/cjs/components/radio-cards.js.map +4 -4
  180. package/dist/cjs/components/radio-cards.props.d.ts +0 -5
  181. package/dist/cjs/components/radio-cards.props.d.ts.map +1 -1
  182. package/dist/cjs/components/radio-cards.props.js +1 -1
  183. package/dist/cjs/components/radio-cards.props.js.map +4 -4
  184. package/dist/cjs/components/radio-group.d.ts.map +1 -1
  185. package/dist/cjs/components/radio-group.js +1 -1
  186. package/dist/cjs/components/radio-group.js.map +4 -4
  187. package/dist/cjs/components/radio-group.props.d.ts +0 -5
  188. package/dist/cjs/components/radio-group.props.d.ts.map +1 -1
  189. package/dist/cjs/components/radio-group.props.js +1 -1
  190. package/dist/cjs/components/radio-group.props.js.map +4 -4
  191. package/dist/cjs/components/radio.js +1 -1
  192. package/dist/cjs/components/radio.js.map +4 -4
  193. package/dist/cjs/components/radio.props.js +1 -1
  194. package/dist/cjs/components/radio.props.js.map +4 -4
  195. package/dist/cjs/components/schemas/base-button.schema.d.ts +0 -1
  196. package/dist/cjs/components/schemas/base-button.schema.d.ts.map +1 -1
  197. package/dist/cjs/components/schemas/base-button.schema.js +1 -1
  198. package/dist/cjs/components/schemas/base-button.schema.js.map +2 -2
  199. package/dist/cjs/components/schemas/button.schema.d.ts +0 -1
  200. package/dist/cjs/components/schemas/button.schema.d.ts.map +1 -1
  201. package/dist/cjs/components/schemas/button.schema.js +1 -1
  202. package/dist/cjs/components/schemas/button.schema.js.map +2 -2
  203. package/dist/cjs/components/schemas/icon-button.schema.d.ts +0 -1
  204. package/dist/cjs/components/schemas/icon-button.schema.d.ts.map +1 -1
  205. package/dist/cjs/components/schemas/icon-button.schema.js +1 -1
  206. package/dist/cjs/components/schemas/icon-button.schema.js.map +2 -2
  207. package/dist/cjs/components/schemas/index.js +1 -1
  208. package/dist/cjs/components/schemas/index.js.map +3 -3
  209. package/dist/cjs/components/schemas/shell.schema.d.ts +277 -229
  210. package/dist/cjs/components/schemas/shell.schema.d.ts.map +1 -1
  211. package/dist/cjs/components/schemas/shell.schema.js +1 -1
  212. package/dist/cjs/components/schemas/shell.schema.js.map +3 -3
  213. package/dist/cjs/components/schemas/toggle-button.schema.d.ts +0 -1
  214. package/dist/cjs/components/schemas/toggle-button.schema.d.ts.map +1 -1
  215. package/dist/cjs/components/schemas/toggle-button.schema.js +1 -1
  216. package/dist/cjs/components/schemas/toggle-button.schema.js.map +2 -2
  217. package/dist/cjs/components/schemas/toggle-icon-button.schema.d.ts +0 -1
  218. package/dist/cjs/components/schemas/toggle-icon-button.schema.d.ts.map +1 -1
  219. package/dist/cjs/components/schemas/toggle-icon-button.schema.js +1 -1
  220. package/dist/cjs/components/schemas/toggle-icon-button.schema.js.map +2 -2
  221. package/dist/cjs/components/select.js +1 -1
  222. package/dist/cjs/components/select.js.map +4 -4
  223. package/dist/cjs/components/select.props.d.ts +0 -5
  224. package/dist/cjs/components/select.props.d.ts.map +1 -1
  225. package/dist/cjs/components/select.props.js +1 -1
  226. package/dist/cjs/components/select.props.js.map +4 -4
  227. package/dist/cjs/components/separator.js.map +1 -1
  228. package/dist/cjs/components/separator.props.js.map +1 -1
  229. package/dist/cjs/components/sheet.js +1 -1
  230. package/dist/cjs/components/sheet.js.map +4 -4
  231. package/dist/cjs/components/shell.context.d.ts +25 -114
  232. package/dist/cjs/components/shell.context.d.ts.map +1 -1
  233. package/dist/cjs/components/shell.context.js +1 -1
  234. package/dist/cjs/components/shell.context.js.map +4 -4
  235. package/dist/cjs/components/shell.d.ts +42 -21
  236. package/dist/cjs/components/shell.d.ts.map +1 -1
  237. package/dist/cjs/components/shell.hooks.d.ts +7 -23
  238. package/dist/cjs/components/shell.hooks.d.ts.map +1 -1
  239. package/dist/cjs/components/shell.hooks.js +1 -1
  240. package/dist/cjs/components/shell.hooks.js.map +4 -4
  241. package/dist/cjs/components/shell.js +1 -1
  242. package/dist/cjs/components/shell.js.map +4 -4
  243. package/dist/cjs/components/shell.types.d.ts +19 -2
  244. package/dist/cjs/components/shell.types.d.ts.map +1 -1
  245. package/dist/cjs/components/shell.types.js +1 -1
  246. package/dist/cjs/components/shell.types.js.map +3 -3
  247. package/dist/cjs/components/sidebar.d.ts +0 -1
  248. package/dist/cjs/components/sidebar.d.ts.map +1 -1
  249. package/dist/cjs/components/sidebar.js +1 -1
  250. package/dist/cjs/components/sidebar.js.map +4 -4
  251. package/dist/cjs/components/sidebar.props.d.ts +0 -5
  252. package/dist/cjs/components/sidebar.props.d.ts.map +1 -1
  253. package/dist/cjs/components/sidebar.props.js +1 -1
  254. package/dist/cjs/components/sidebar.props.js.map +4 -4
  255. package/dist/cjs/components/slider.js +1 -1
  256. package/dist/cjs/components/slider.js.map +4 -4
  257. package/dist/cjs/components/slider.props.d.ts +0 -5
  258. package/dist/cjs/components/slider.props.d.ts.map +1 -1
  259. package/dist/cjs/components/slider.props.js +1 -1
  260. package/dist/cjs/components/slider.props.js.map +4 -4
  261. package/dist/cjs/components/switch.d.ts.map +1 -1
  262. package/dist/cjs/components/switch.js +1 -1
  263. package/dist/cjs/components/switch.js.map +4 -4
  264. package/dist/cjs/components/switch.props.d.ts +0 -5
  265. package/dist/cjs/components/switch.props.d.ts.map +1 -1
  266. package/dist/cjs/components/switch.props.js +1 -1
  267. package/dist/cjs/components/switch.props.js.map +4 -4
  268. package/dist/cjs/components/tab-nav.js +1 -1
  269. package/dist/cjs/components/tab-nav.js.map +4 -4
  270. package/dist/cjs/components/tab-nav.props.js +1 -1
  271. package/dist/cjs/components/tab-nav.props.js.map +4 -4
  272. package/dist/cjs/components/tabs.js +1 -1
  273. package/dist/cjs/components/tabs.js.map +4 -4
  274. package/dist/cjs/components/tabs.props.js +1 -1
  275. package/dist/cjs/components/tabs.props.js.map +4 -4
  276. package/dist/cjs/components/text-area.js.map +1 -1
  277. package/dist/cjs/components/text-area.props.js.map +1 -1
  278. package/dist/cjs/components/text-field.js.map +1 -1
  279. package/dist/cjs/components/text-field.props.js.map +1 -1
  280. package/dist/cjs/components/text.js +1 -1
  281. package/dist/cjs/components/text.js.map +4 -4
  282. package/dist/cjs/components/text.props.d.ts +3 -2
  283. package/dist/cjs/components/text.props.d.ts.map +1 -1
  284. package/dist/cjs/components/text.props.js +1 -1
  285. package/dist/cjs/components/text.props.js.map +4 -4
  286. package/dist/cjs/components/theme-panel.js +3 -3
  287. package/dist/cjs/components/theme-panel.js.map +4 -4
  288. package/dist/cjs/components/theme.js.map +1 -1
  289. package/dist/cjs/components/theme.props.js.map +1 -1
  290. package/dist/cjs/components/toggle-button.js +2 -2
  291. package/dist/cjs/components/toggle-button.js.map +4 -4
  292. package/dist/cjs/components/toggle-icon-button.js +3 -3
  293. package/dist/cjs/components/toggle-icon-button.js.map +4 -4
  294. package/dist/cjs/components/toolbar.js +1 -1
  295. package/dist/cjs/components/toolbar.js.map +4 -4
  296. package/dist/cjs/components/tooltip.js +1 -1
  297. package/dist/cjs/components/tooltip.js.map +4 -4
  298. package/dist/cjs/components/user-card.d.ts.map +1 -1
  299. package/dist/cjs/components/user-card.js +1 -1
  300. package/dist/cjs/components/user-card.js.map +4 -4
  301. package/dist/cjs/components/user-card.props.d.ts +0 -5
  302. package/dist/cjs/components/user-card.props.d.ts.map +1 -1
  303. package/dist/cjs/components/user-card.props.js +1 -1
  304. package/dist/cjs/components/user-card.props.js.map +4 -4
  305. package/dist/cjs/components/virtual-menu.js.map +1 -1
  306. package/dist/cjs/hooks/use-breakpoint.d.ts +5 -0
  307. package/dist/cjs/hooks/use-breakpoint.d.ts.map +1 -1
  308. package/dist/cjs/hooks/use-breakpoint.js +1 -1
  309. package/dist/cjs/hooks/use-breakpoint.js.map +3 -3
  310. package/dist/cjs/index.js +5 -5
  311. package/dist/cjs/index.js.map +4 -4
  312. package/dist/cjs/props/color.prop.js.map +1 -1
  313. package/dist/cjs/props/emphasis.prop.d.ts +11 -0
  314. package/dist/cjs/props/emphasis.prop.d.ts.map +1 -0
  315. package/dist/cjs/props/emphasis.prop.js +2 -0
  316. package/dist/cjs/props/emphasis.prop.js.map +7 -0
  317. package/dist/cjs/props/index.d.ts +1 -1
  318. package/dist/cjs/props/index.d.ts.map +1 -1
  319. package/dist/cjs/props/index.js +1 -1
  320. package/dist/cjs/props/index.js.map +4 -4
  321. package/dist/esm/{chunk-MBCBP73P.js → chunk-25X75TI7.js} +2 -2
  322. package/dist/esm/chunk-26I257HE.js +2 -0
  323. package/dist/esm/chunk-26I257HE.js.map +7 -0
  324. package/dist/esm/chunk-2CMM7MEL.js +2 -0
  325. package/dist/esm/chunk-2CMM7MEL.js.map +7 -0
  326. package/dist/esm/chunk-2EQWBT2S.js +2 -0
  327. package/dist/esm/chunk-2EQWBT2S.js.map +7 -0
  328. package/dist/esm/{chunk-GLERJXVS.js → chunk-2Q7BJ7YG.js} +2 -2
  329. package/dist/esm/chunk-3AOFY2B4.js +2 -0
  330. package/dist/esm/chunk-3AOFY2B4.js.map +7 -0
  331. package/dist/esm/chunk-3J6AUDID.js +2 -0
  332. package/dist/esm/chunk-3J6AUDID.js.map +7 -0
  333. package/dist/esm/chunk-3KSGRY6I.js +2 -0
  334. package/dist/esm/chunk-3KSGRY6I.js.map +7 -0
  335. package/dist/esm/chunk-3PTSRBVY.js +2 -0
  336. package/dist/esm/{chunk-SZTZ2XLI.js.map → chunk-3PTSRBVY.js.map} +2 -2
  337. package/dist/esm/chunk-3XSB7YIM.js +2 -0
  338. package/dist/esm/{chunk-FMBECDL4.js.map → chunk-3XSB7YIM.js.map} +3 -3
  339. package/dist/esm/{chunk-FIB3XATL.js → chunk-44JZYS7A.js} +3 -3
  340. package/dist/esm/{chunk-FIB3XATL.js.map → chunk-44JZYS7A.js.map} +2 -2
  341. package/dist/esm/{chunk-CTA5ODAO.js → chunk-4WU2WKUJ.js} +2 -2
  342. package/dist/esm/chunk-4WVNMGI5.js +2 -0
  343. package/dist/esm/chunk-4WVNMGI5.js.map +7 -0
  344. package/dist/esm/chunk-5M7STAH3.js +2 -0
  345. package/dist/esm/chunk-5M7STAH3.js.map +7 -0
  346. package/dist/esm/chunk-5SNHUVDA.js +2 -0
  347. package/dist/esm/{chunk-H7ST535H.js → chunk-5TAHT6VC.js} +2 -2
  348. package/dist/esm/chunk-5XV4QEP5.js +2 -0
  349. package/dist/esm/chunk-5XV4QEP5.js.map +7 -0
  350. package/dist/esm/chunk-667BKCUG.js +2 -0
  351. package/dist/esm/chunk-667BKCUG.js.map +7 -0
  352. package/dist/esm/{chunk-MHPPVJDB.js → chunk-67MKPTZJ.js} +2 -2
  353. package/dist/esm/{chunk-UFI53QUC.js → chunk-6J6YX2VX.js} +2 -2
  354. package/dist/esm/chunk-7FKKGUHK.js +2 -0
  355. package/dist/esm/chunk-7FKKGUHK.js.map +7 -0
  356. package/dist/esm/{chunk-UUUZXUIP.js → chunk-7NYODT3Z.js} +2 -2
  357. package/dist/esm/{chunk-NVDXXGVW.js → chunk-7PMMYHZV.js} +2 -2
  358. package/dist/esm/chunk-A2XVR7GL.js +2 -0
  359. package/dist/esm/chunk-A2XVR7GL.js.map +7 -0
  360. package/dist/esm/chunk-ADXZNG4F.js +2 -0
  361. package/dist/esm/chunk-ADXZNG4F.js.map +7 -0
  362. package/dist/esm/chunk-AF6XKU3W.js +2 -0
  363. package/dist/esm/chunk-AF6XKU3W.js.map +7 -0
  364. package/dist/esm/chunk-AGNIFHOE.js +2 -0
  365. package/dist/esm/chunk-AGNIFHOE.js.map +7 -0
  366. package/dist/esm/chunk-AIHQ3MVK.js +2 -0
  367. package/dist/esm/{chunk-SO67YEVQ.js.map → chunk-AIHQ3MVK.js.map} +2 -2
  368. package/dist/esm/{chunk-UBOOUDS4.js → chunk-AO32NT75.js} +2 -2
  369. package/dist/esm/chunk-BZZXXZ3O.js +2 -0
  370. package/dist/esm/chunk-BZZXXZ3O.js.map +7 -0
  371. package/dist/esm/{chunk-JDGJSNWT.js → chunk-C5RVO3C3.js} +2 -2
  372. package/dist/esm/{chunk-IHK3H2OM.js → chunk-CBNTPHYK.js} +2 -2
  373. package/dist/esm/chunk-CFNESRYI.js +2 -0
  374. package/dist/esm/chunk-CFNESRYI.js.map +7 -0
  375. package/dist/esm/{chunk-SESAEJ6W.js → chunk-CLMOWP5T.js} +2 -2
  376. package/dist/esm/{chunk-BBJUB52V.js → chunk-CRBOJ7N7.js} +2 -2
  377. package/dist/esm/{chunk-DUHJVT64.js → chunk-CRSHBENJ.js} +2 -2
  378. package/dist/esm/{chunk-56TS6OKQ.js → chunk-DCIQHXAR.js} +2 -2
  379. package/dist/esm/chunk-EBQZ3Z22.js +2 -0
  380. package/dist/esm/chunk-EBQZ3Z22.js.map +7 -0
  381. package/dist/esm/chunk-EDKQURDU.js +2 -0
  382. package/dist/esm/chunk-EDKQURDU.js.map +7 -0
  383. package/dist/esm/{chunk-43A5GUSI.js → chunk-EHBAK3LQ.js} +2 -2
  384. package/dist/esm/{chunk-2TIADHPD.js → chunk-F3AXE27Q.js} +2 -2
  385. package/dist/esm/chunk-F6V7GBNQ.js +2 -0
  386. package/dist/esm/chunk-F6V7GBNQ.js.map +7 -0
  387. package/dist/esm/{chunk-VA4CTVQL.js → chunk-FB3PD4Z3.js} +2 -2
  388. package/dist/esm/{chunk-OYF6YXH7.js → chunk-FEAOFF77.js} +2 -2
  389. package/dist/esm/chunk-G4YKBAZT.js +2 -0
  390. package/dist/esm/{chunk-666GX7O5.js.map → chunk-G4YKBAZT.js.map} +2 -2
  391. package/dist/esm/{chunk-ADBLURLJ.js → chunk-GDAKJS64.js} +2 -2
  392. package/dist/esm/{chunk-IEWCQU2S.js → chunk-GGSJXOKR.js} +2 -2
  393. package/dist/esm/chunk-GM7KMQDI.js +2 -0
  394. package/dist/esm/chunk-GMHA5CFH.js +2 -0
  395. package/dist/esm/chunk-GMHA5CFH.js.map +7 -0
  396. package/dist/esm/{chunk-HBR42MIX.js → chunk-H4GR4262.js} +2 -2
  397. package/dist/esm/chunk-HBIF43PT.js +2 -0
  398. package/dist/esm/chunk-HBIF43PT.js.map +7 -0
  399. package/dist/esm/chunk-HCNO7PX6.js +2 -0
  400. package/dist/esm/chunk-HCNO7PX6.js.map +7 -0
  401. package/dist/esm/chunk-HMSSFU6I.js +2 -0
  402. package/dist/esm/{chunk-UIRSGVJG.js.map → chunk-HMSSFU6I.js.map} +2 -2
  403. package/dist/esm/chunk-HWQ3NTJP.js +2 -0
  404. package/dist/esm/chunk-HWQ3NTJP.js.map +7 -0
  405. package/dist/esm/{chunk-S5C5YRBS.js → chunk-IDUVJJYG.js} +2 -2
  406. package/dist/esm/{chunk-P7IAHW4V.js → chunk-IK3MQHA5.js} +2 -2
  407. package/dist/esm/{chunk-SPIU5JYC.js → chunk-JDEBKA56.js} +2 -2
  408. package/dist/esm/{chunk-E67CIG6A.js → chunk-JDWCQ2XP.js} +2 -2
  409. package/dist/esm/chunk-JFWMAYEH.js +2 -0
  410. package/dist/esm/chunk-JFWMAYEH.js.map +7 -0
  411. package/dist/esm/chunk-JQSZF3E2.js +2 -0
  412. package/dist/esm/chunk-JQSZF3E2.js.map +7 -0
  413. package/dist/esm/{chunk-JBO5YOUM.js → chunk-JQW4XYBS.js} +2 -2
  414. package/dist/esm/{chunk-P5OSU4NX.js → chunk-JRFZ535T.js} +2 -2
  415. package/dist/esm/{chunk-GYBLXQ4R.js → chunk-KEEPKI2X.js} +2 -2
  416. package/dist/esm/{chunk-WXP6MMUB.js → chunk-KOFEFBB3.js} +2 -2
  417. package/dist/esm/{chunk-YMUGKYGW.js → chunk-KV4SZP3F.js} +2 -2
  418. package/dist/esm/chunk-KZYFTDGO.js +2 -0
  419. package/dist/esm/chunk-KZYFTDGO.js.map +7 -0
  420. package/dist/esm/{chunk-FG7XM7KJ.js → chunk-LJCUPAOI.js} +2 -2
  421. package/dist/esm/{chunk-MBE2YSBU.js → chunk-MBCQA7UZ.js} +2 -2
  422. package/dist/esm/chunk-MM5IHQFM.js +2 -0
  423. package/dist/esm/{chunk-YVBCDTTD.js → chunk-MN3XALXD.js} +2 -2
  424. package/dist/esm/chunk-NIIEIZKQ.js +2 -0
  425. package/dist/esm/chunk-NIIEIZKQ.js.map +7 -0
  426. package/dist/esm/{chunk-3R7XMRV5.js → chunk-NQXRWBQM.js} +2 -2
  427. package/dist/esm/{chunk-CSKZZOI2.js → chunk-NTNMJX5M.js} +2 -2
  428. package/dist/esm/chunk-NV3P2CKH.js +2 -0
  429. package/dist/esm/chunk-NV3P2CKH.js.map +7 -0
  430. package/dist/esm/{chunk-4ME6O27S.js → chunk-O4CSXNST.js} +2 -2
  431. package/dist/esm/chunk-ODCVOXEV.js +2 -0
  432. package/dist/esm/{chunk-DMJJM5IS.js → chunk-OEEF6KJG.js} +2 -2
  433. package/dist/esm/chunk-OGVKSYLL.js +2 -0
  434. package/dist/esm/chunk-OGVKSYLL.js.map +7 -0
  435. package/dist/esm/{chunk-ABSKRHVM.js → chunk-OJSOX3AX.js} +2 -2
  436. package/dist/esm/chunk-OJU5GCDZ.js +2 -0
  437. package/dist/esm/chunk-OJU5GCDZ.js.map +7 -0
  438. package/dist/esm/{chunk-JGLAE5G7.js → chunk-OQU2SKLN.js} +2 -2
  439. package/dist/esm/chunk-OTKQN2KY.js +2 -0
  440. package/dist/esm/chunk-OTKQN2KY.js.map +7 -0
  441. package/dist/esm/{chunk-UWT6TE5D.js → chunk-OTXCKEWT.js} +2 -2
  442. package/dist/esm/chunk-OWMA6GTG.js +2 -0
  443. package/dist/esm/chunk-OWMA6GTG.js.map +7 -0
  444. package/dist/esm/{chunk-LAOMR7SE.js → chunk-P27KV2LS.js} +2 -2
  445. package/dist/esm/{chunk-LAOMR7SE.js.map → chunk-P27KV2LS.js.map} +3 -3
  446. package/dist/esm/{chunk-JUY7CBSL.js → chunk-PBFSBHBS.js} +2 -2
  447. package/dist/esm/{chunk-L6PVH3RM.js → chunk-PDUHBDFC.js} +2 -2
  448. package/dist/esm/{chunk-HW324FK3.js → chunk-POG3YABW.js} +2 -2
  449. package/dist/esm/chunk-PYHEBG5I.js +2 -0
  450. package/dist/esm/chunk-PYHEBG5I.js.map +7 -0
  451. package/dist/esm/{chunk-TOOSHJOA.js → chunk-PYXMGEO7.js} +2 -2
  452. package/dist/esm/{chunk-T4UHUQFJ.js → chunk-QEGEUD4D.js} +2 -2
  453. package/dist/esm/chunk-QEL55MLF.js +2 -0
  454. package/dist/esm/chunk-QFPHEY77.js +2 -0
  455. package/dist/esm/chunk-QFPHEY77.js.map +7 -0
  456. package/dist/esm/{chunk-F7IYL2VW.js → chunk-QJVAS7AK.js} +2 -2
  457. package/dist/esm/chunk-QQ62LO3X.js +2 -0
  458. package/dist/esm/chunk-QQ62LO3X.js.map +7 -0
  459. package/dist/esm/chunk-RDAMYQFF.js +2 -0
  460. package/dist/esm/chunk-RDAMYQFF.js.map +7 -0
  461. package/dist/esm/chunk-ROSWI2CL.js +2 -0
  462. package/dist/esm/chunk-ROSWI2CL.js.map +7 -0
  463. package/dist/esm/chunk-RY67WG3O.js +2 -0
  464. package/dist/esm/chunk-RY67WG3O.js.map +7 -0
  465. package/dist/esm/{chunk-DXL6V2A5.js → chunk-SEY4NA45.js} +2 -2
  466. package/dist/esm/{chunk-TS623UPD.js → chunk-TLGXIWAS.js} +2 -2
  467. package/dist/esm/{chunk-6FLLFCBU.js → chunk-UBSLEGQZ.js} +2 -2
  468. package/dist/esm/{chunk-37OGSEQR.js → chunk-UNWPH3SO.js} +2 -2
  469. package/dist/esm/chunk-V5ZSDDVZ.js +2 -0
  470. package/dist/esm/chunk-V5ZSDDVZ.js.map +7 -0
  471. package/dist/esm/chunk-VLTXI4A7.js +2 -0
  472. package/dist/esm/chunk-VLTXI4A7.js.map +7 -0
  473. package/dist/esm/{chunk-HIKVMKYQ.js → chunk-VTIL55SR.js} +2 -2
  474. package/dist/esm/{chunk-CQNPBTM5.js → chunk-W2LD2YE6.js} +2 -2
  475. package/dist/esm/chunk-WGWUEU4K.js +2 -0
  476. package/dist/esm/chunk-WGWUEU4K.js.map +7 -0
  477. package/dist/esm/{chunk-NMKPFUNP.js → chunk-WIDJYVZF.js} +2 -2
  478. package/dist/esm/{chunk-3OBXZUFJ.js → chunk-WJBOOAIO.js} +2 -2
  479. package/dist/esm/chunk-WMGIFPI2.js +2 -0
  480. package/dist/esm/chunk-WMGIFPI2.js.map +7 -0
  481. package/dist/esm/{chunk-7FC7HF76.js → chunk-WQCB7KSH.js} +2 -2
  482. package/dist/esm/{chunk-OWAUCLRT.js → chunk-WZFVTC7P.js} +2 -2
  483. package/dist/esm/chunk-XDDKT4NF.js +2 -0
  484. package/dist/esm/{chunk-DX5JJYMZ.js → chunk-XYVLQDGR.js} +2 -2
  485. package/dist/esm/{chunk-KFA53SVQ.js → chunk-YA5DF67M.js} +2 -2
  486. package/dist/esm/chunk-YA5DF67M.js.map +7 -0
  487. package/dist/esm/chunk-YAQBIO2B.js +2 -0
  488. package/dist/esm/chunk-YAQBIO2B.js.map +7 -0
  489. package/dist/esm/{chunk-VNPNEJI6.js → chunk-YG66IRW4.js} +2 -2
  490. package/dist/esm/chunk-YVSM2LGS.js +2 -0
  491. package/dist/esm/chunk-YVSM2LGS.js.map +7 -0
  492. package/dist/esm/chunk-Z7AZNMNX.js +2 -0
  493. package/dist/esm/chunk-Z7AZNMNX.js.map +7 -0
  494. package/dist/esm/chunk-ZJ33QP5N.js +2 -0
  495. package/dist/esm/{chunk-66ZLZAAJ.js → chunk-ZNK6AH2G.js} +1 -1
  496. package/dist/esm/{chunk-66ZLZAAJ.js.map → chunk-ZNK6AH2G.js.map} +1 -1
  497. package/dist/esm/{chunk-KPBG7CIL.js → chunk-ZO7TTWJI.js} +2 -2
  498. package/dist/esm/{chunk-OGXZHAQL.js → chunk-ZW26J2SA.js} +2 -2
  499. package/dist/esm/chunk-ZWZGUBL4.js +2 -0
  500. package/dist/esm/chunk-ZWZGUBL4.js.map +7 -0
  501. package/dist/esm/components/_internal/base-button.js +1 -1
  502. package/dist/esm/components/_internal/base-button.props.d.ts +2 -7
  503. package/dist/esm/components/_internal/base-button.props.d.ts.map +1 -1
  504. package/dist/esm/components/_internal/base-button.props.js +1 -1
  505. package/dist/esm/components/_internal/base-checkbox.props.d.ts +0 -5
  506. package/dist/esm/components/_internal/base-checkbox.props.d.ts.map +1 -1
  507. package/dist/esm/components/_internal/base-checkbox.props.js +1 -1
  508. package/dist/esm/components/_internal/base-menu.props.d.ts +0 -10
  509. package/dist/esm/components/_internal/base-menu.props.d.ts.map +1 -1
  510. package/dist/esm/components/_internal/base-menu.props.js +1 -1
  511. package/dist/esm/components/_internal/base-menu.utils.js +1 -1
  512. package/dist/esm/components/_internal/base-radio.props.d.ts +0 -5
  513. package/dist/esm/components/_internal/base-radio.props.d.ts.map +1 -1
  514. package/dist/esm/components/_internal/base-radio.props.js +1 -1
  515. package/dist/esm/components/_internal/base-tab-list.props.d.ts +0 -5
  516. package/dist/esm/components/_internal/base-tab-list.props.d.ts.map +1 -1
  517. package/dist/esm/components/_internal/base-tab-list.props.js +1 -1
  518. package/dist/esm/components/_internal/menu-context.js +1 -1
  519. package/dist/esm/components/_internal/shell-bottom.d.ts +6 -7
  520. package/dist/esm/components/_internal/shell-bottom.d.ts.map +1 -1
  521. package/dist/esm/components/_internal/shell-bottom.js +1 -1
  522. package/dist/esm/components/_internal/shell-handles.d.ts +9 -0
  523. package/dist/esm/components/_internal/shell-handles.d.ts.map +1 -1
  524. package/dist/esm/components/_internal/shell-handles.js +1 -1
  525. package/dist/esm/components/_internal/shell-inspector.d.ts +4 -6
  526. package/dist/esm/components/_internal/shell-inspector.d.ts.map +1 -1
  527. package/dist/esm/components/_internal/shell-inspector.js +1 -1
  528. package/dist/esm/components/_internal/shell-pane.d.ts +70 -0
  529. package/dist/esm/components/_internal/shell-pane.d.ts.map +1 -0
  530. package/dist/esm/components/_internal/shell-pane.js +2 -0
  531. package/dist/esm/components/_internal/shell-resizable.d.ts +48 -0
  532. package/dist/esm/components/_internal/shell-resizable.d.ts.map +1 -0
  533. package/dist/esm/components/_internal/shell-resizable.js +2 -0
  534. package/dist/esm/components/_internal/shell-resize.d.ts +11 -3
  535. package/dist/esm/components/_internal/shell-resize.d.ts.map +1 -1
  536. package/dist/esm/components/_internal/shell-resize.js +1 -1
  537. package/dist/esm/components/_internal/shell-rest.d.ts +27 -0
  538. package/dist/esm/components/_internal/shell-rest.d.ts.map +1 -0
  539. package/dist/esm/components/_internal/shell-rest.js +2 -0
  540. package/dist/esm/components/_internal/shell-rest.js.map +7 -0
  541. package/dist/esm/components/_internal/shell-sidebar.d.ts +7 -12
  542. package/dist/esm/components/_internal/shell-sidebar.d.ts.map +1 -1
  543. package/dist/esm/components/_internal/shell-sidebar.js +1 -1
  544. package/dist/esm/components/_internal/shell-store.d.ts +99 -0
  545. package/dist/esm/components/_internal/shell-store.d.ts.map +1 -0
  546. package/dist/esm/components/_internal/shell-store.js +2 -0
  547. package/dist/esm/components/_internal/shell-store.js.map +7 -0
  548. package/dist/esm/components/accordion.js +1 -1
  549. package/dist/esm/components/accordion.props.d.ts +0 -6
  550. package/dist/esm/components/accordion.props.d.ts.map +1 -1
  551. package/dist/esm/components/accordion.props.js +1 -1
  552. package/dist/esm/components/alert-dialog.js +1 -1
  553. package/dist/esm/components/avatar.js +1 -1
  554. package/dist/esm/components/avatar.props.d.ts +0 -5
  555. package/dist/esm/components/avatar.props.d.ts.map +1 -1
  556. package/dist/esm/components/avatar.props.js +1 -1
  557. package/dist/esm/components/badge.js +1 -1
  558. package/dist/esm/components/badge.props.d.ts +0 -5
  559. package/dist/esm/components/badge.props.d.ts.map +1 -1
  560. package/dist/esm/components/badge.props.js +1 -1
  561. package/dist/esm/components/blockquote.js +1 -1
  562. package/dist/esm/components/blockquote.props.d.ts +3 -2
  563. package/dist/esm/components/blockquote.props.d.ts.map +1 -1
  564. package/dist/esm/components/blockquote.props.js +1 -1
  565. package/dist/esm/components/box.js +1 -1
  566. package/dist/esm/components/button.js +1 -1
  567. package/dist/esm/components/button.props.js +1 -1
  568. package/dist/esm/components/callout.js +1 -1
  569. package/dist/esm/components/callout.props.d.ts +0 -5
  570. package/dist/esm/components/callout.props.d.ts.map +1 -1
  571. package/dist/esm/components/callout.props.js +1 -1
  572. package/dist/esm/components/card.js +1 -1
  573. package/dist/esm/components/chatbar.d.ts.map +1 -1
  574. package/dist/esm/components/chatbar.js +1 -1
  575. package/dist/esm/components/checkbox-cards.d.ts.map +1 -1
  576. package/dist/esm/components/checkbox-cards.js +1 -1
  577. package/dist/esm/components/checkbox-cards.props.d.ts +0 -5
  578. package/dist/esm/components/checkbox-cards.props.d.ts.map +1 -1
  579. package/dist/esm/components/checkbox-cards.props.js +1 -1
  580. package/dist/esm/components/checkbox-group.d.ts.map +1 -1
  581. package/dist/esm/components/checkbox-group.js +1 -1
  582. package/dist/esm/components/checkbox-group.props.d.ts +0 -5
  583. package/dist/esm/components/checkbox-group.props.d.ts.map +1 -1
  584. package/dist/esm/components/checkbox-group.props.js +1 -1
  585. package/dist/esm/components/checkbox.js +1 -1
  586. package/dist/esm/components/checkbox.props.js +1 -1
  587. package/dist/esm/components/code.js +1 -1
  588. package/dist/esm/components/code.props.d.ts +3 -2
  589. package/dist/esm/components/code.props.d.ts.map +1 -1
  590. package/dist/esm/components/code.props.js +1 -1
  591. package/dist/esm/components/combobox.d.ts.map +1 -1
  592. package/dist/esm/components/combobox.js +1 -1
  593. package/dist/esm/components/combobox.props.d.ts +1 -11
  594. package/dist/esm/components/combobox.props.d.ts.map +1 -1
  595. package/dist/esm/components/combobox.props.js +1 -1
  596. package/dist/esm/components/container.js +1 -1
  597. package/dist/esm/components/context-menu.d.ts.map +1 -1
  598. package/dist/esm/components/context-menu.js +1 -1
  599. package/dist/esm/components/context-menu.props.js +1 -1
  600. package/dist/esm/components/data-list.js +1 -1
  601. package/dist/esm/components/data-list.props.d.ts +4 -3
  602. package/dist/esm/components/data-list.props.d.ts.map +1 -1
  603. package/dist/esm/components/data-list.props.js +1 -1
  604. package/dist/esm/components/dialog.js +1 -1
  605. package/dist/esm/components/dropdown-menu.d.ts.map +1 -1
  606. package/dist/esm/components/dropdown-menu.js +1 -1
  607. package/dist/esm/components/dropdown-menu.props.js +1 -1
  608. package/dist/esm/components/em.js +1 -1
  609. package/dist/esm/components/em.props.js +1 -1
  610. package/dist/esm/components/flex.js +1 -1
  611. package/dist/esm/components/grid.js +1 -1
  612. package/dist/esm/components/heading.js +1 -1
  613. package/dist/esm/components/heading.props.d.ts +3 -2
  614. package/dist/esm/components/heading.props.d.ts.map +1 -1
  615. package/dist/esm/components/heading.props.js +1 -1
  616. package/dist/esm/components/hover-card.js +1 -1
  617. package/dist/esm/components/icon-button.js +1 -1
  618. package/dist/esm/components/icon-button.props.js +1 -1
  619. package/dist/esm/components/image.js +1 -1
  620. package/dist/esm/components/index.js +1 -1
  621. package/dist/esm/components/inset.js +1 -1
  622. package/dist/esm/components/kbd.js +1 -1
  623. package/dist/esm/components/link.js +1 -1
  624. package/dist/esm/components/link.props.d.ts +0 -5
  625. package/dist/esm/components/link.props.d.ts.map +1 -1
  626. package/dist/esm/components/link.props.js +1 -1
  627. package/dist/esm/components/navbar.js +1 -1
  628. package/dist/esm/components/popover.js +1 -1
  629. package/dist/esm/components/progress.js +1 -1
  630. package/dist/esm/components/progress.props.d.ts +0 -5
  631. package/dist/esm/components/progress.props.d.ts.map +1 -1
  632. package/dist/esm/components/progress.props.js +1 -1
  633. package/dist/esm/components/quote.js +1 -1
  634. package/dist/esm/components/quote.props.js +1 -1
  635. package/dist/esm/components/radio-cards.js +1 -1
  636. package/dist/esm/components/radio-cards.props.d.ts +0 -5
  637. package/dist/esm/components/radio-cards.props.d.ts.map +1 -1
  638. package/dist/esm/components/radio-cards.props.js +1 -1
  639. package/dist/esm/components/radio-group.d.ts.map +1 -1
  640. package/dist/esm/components/radio-group.js +1 -1
  641. package/dist/esm/components/radio-group.props.d.ts +0 -5
  642. package/dist/esm/components/radio-group.props.d.ts.map +1 -1
  643. package/dist/esm/components/radio-group.props.js +1 -1
  644. package/dist/esm/components/radio.js +1 -1
  645. package/dist/esm/components/radio.props.js +1 -1
  646. package/dist/esm/components/schemas/base-button.schema.d.ts +0 -1
  647. package/dist/esm/components/schemas/base-button.schema.d.ts.map +1 -1
  648. package/dist/esm/components/schemas/base-button.schema.js +1 -1
  649. package/dist/esm/components/schemas/button.schema.d.ts +0 -1
  650. package/dist/esm/components/schemas/button.schema.d.ts.map +1 -1
  651. package/dist/esm/components/schemas/button.schema.js +1 -1
  652. package/dist/esm/components/schemas/icon-button.schema.d.ts +0 -1
  653. package/dist/esm/components/schemas/icon-button.schema.d.ts.map +1 -1
  654. package/dist/esm/components/schemas/icon-button.schema.js +1 -1
  655. package/dist/esm/components/schemas/index.js +1 -1
  656. package/dist/esm/components/schemas/shell.schema.d.ts +277 -229
  657. package/dist/esm/components/schemas/shell.schema.d.ts.map +1 -1
  658. package/dist/esm/components/schemas/shell.schema.js +1 -1
  659. package/dist/esm/components/schemas/toggle-button.schema.d.ts +0 -1
  660. package/dist/esm/components/schemas/toggle-button.schema.d.ts.map +1 -1
  661. package/dist/esm/components/schemas/toggle-button.schema.js +1 -1
  662. package/dist/esm/components/schemas/toggle-icon-button.schema.d.ts +0 -1
  663. package/dist/esm/components/schemas/toggle-icon-button.schema.d.ts.map +1 -1
  664. package/dist/esm/components/schemas/toggle-icon-button.schema.js +1 -1
  665. package/dist/esm/components/scroll-area.js +1 -1
  666. package/dist/esm/components/section.js +1 -1
  667. package/dist/esm/components/segmented-control.js +1 -1
  668. package/dist/esm/components/select.js +1 -1
  669. package/dist/esm/components/select.props.d.ts +0 -5
  670. package/dist/esm/components/select.props.d.ts.map +1 -1
  671. package/dist/esm/components/select.props.js +1 -1
  672. package/dist/esm/components/separator.js +1 -1
  673. package/dist/esm/components/separator.props.js +1 -1
  674. package/dist/esm/components/sheet.js +1 -1
  675. package/dist/esm/components/shell.context.d.ts +25 -114
  676. package/dist/esm/components/shell.context.d.ts.map +1 -1
  677. package/dist/esm/components/shell.context.js +1 -1
  678. package/dist/esm/components/shell.d.ts +42 -21
  679. package/dist/esm/components/shell.d.ts.map +1 -1
  680. package/dist/esm/components/shell.hooks.d.ts +7 -23
  681. package/dist/esm/components/shell.hooks.d.ts.map +1 -1
  682. package/dist/esm/components/shell.hooks.js +1 -1
  683. package/dist/esm/components/shell.js +1 -1
  684. package/dist/esm/components/shell.types.d.ts +19 -2
  685. package/dist/esm/components/shell.types.d.ts.map +1 -1
  686. package/dist/esm/components/shell.types.js +1 -1
  687. package/dist/esm/components/sidebar.d.ts +0 -1
  688. package/dist/esm/components/sidebar.d.ts.map +1 -1
  689. package/dist/esm/components/sidebar.js +1 -1
  690. package/dist/esm/components/sidebar.props.d.ts +0 -5
  691. package/dist/esm/components/sidebar.props.d.ts.map +1 -1
  692. package/dist/esm/components/sidebar.props.js +1 -1
  693. package/dist/esm/components/skeleton.js +1 -1
  694. package/dist/esm/components/slider.js +1 -1
  695. package/dist/esm/components/slider.props.d.ts +0 -5
  696. package/dist/esm/components/slider.props.d.ts.map +1 -1
  697. package/dist/esm/components/slider.props.js +1 -1
  698. package/dist/esm/components/spinner.js +1 -1
  699. package/dist/esm/components/strong.js +1 -1
  700. package/dist/esm/components/strong.props.js +1 -1
  701. package/dist/esm/components/switch.d.ts.map +1 -1
  702. package/dist/esm/components/switch.js +1 -1
  703. package/dist/esm/components/switch.props.d.ts +0 -5
  704. package/dist/esm/components/switch.props.d.ts.map +1 -1
  705. package/dist/esm/components/switch.props.js +1 -1
  706. package/dist/esm/components/tab-nav.js +1 -1
  707. package/dist/esm/components/tab-nav.props.js +1 -1
  708. package/dist/esm/components/table.js +1 -1
  709. package/dist/esm/components/tabs.js +1 -1
  710. package/dist/esm/components/tabs.props.js +1 -1
  711. package/dist/esm/components/text-area.js +1 -1
  712. package/dist/esm/components/text-area.props.js +1 -1
  713. package/dist/esm/components/text-field.js +1 -1
  714. package/dist/esm/components/text-field.props.js +1 -1
  715. package/dist/esm/components/text.js +1 -1
  716. package/dist/esm/components/text.props.d.ts +3 -2
  717. package/dist/esm/components/text.props.d.ts.map +1 -1
  718. package/dist/esm/components/text.props.js +1 -1
  719. package/dist/esm/components/theme-panel.js +1 -1
  720. package/dist/esm/components/theme.js +1 -1
  721. package/dist/esm/components/theme.props.js +1 -1
  722. package/dist/esm/components/toggle-button.js +1 -1
  723. package/dist/esm/components/toggle-icon-button.js +1 -1
  724. package/dist/esm/components/toolbar.js +1 -1
  725. package/dist/esm/components/tooltip.js +1 -1
  726. package/dist/esm/components/user-card.d.ts.map +1 -1
  727. package/dist/esm/components/user-card.js +1 -1
  728. package/dist/esm/components/user-card.props.d.ts +0 -5
  729. package/dist/esm/components/user-card.props.d.ts.map +1 -1
  730. package/dist/esm/components/user-card.props.js +1 -1
  731. package/dist/esm/components/virtual-menu.js +1 -1
  732. package/dist/esm/helpers/extract-props.js +1 -1
  733. package/dist/esm/helpers/get-margin-styles.js +1 -1
  734. package/dist/esm/helpers/get-responsive-styles.js +1 -1
  735. package/dist/esm/helpers/index.js +1 -1
  736. package/dist/esm/hooks/index.js +1 -1
  737. package/dist/esm/hooks/use-breakpoint.d.ts +5 -0
  738. package/dist/esm/hooks/use-breakpoint.d.ts.map +1 -1
  739. package/dist/esm/hooks/use-breakpoint.js +1 -1
  740. package/dist/esm/index.js +1 -1
  741. package/dist/esm/props/color.prop.js +1 -1
  742. package/dist/esm/props/emphasis.prop.d.ts +11 -0
  743. package/dist/esm/props/emphasis.prop.d.ts.map +1 -0
  744. package/dist/esm/props/emphasis.prop.js +2 -0
  745. package/dist/esm/props/emphasis.prop.js.map +7 -0
  746. package/dist/esm/props/index.d.ts +1 -1
  747. package/dist/esm/props/index.d.ts.map +1 -1
  748. package/dist/esm/props/index.js +1 -1
  749. package/package.json +7 -2
  750. package/schemas/base-button.json +0 -5
  751. package/schemas/button.json +0 -5
  752. package/schemas/icon-button.json +0 -5
  753. package/schemas/index.json +1655 -25
  754. package/schemas/shell-bottom.d.ts +2 -0
  755. package/schemas/shell-bottom.json +180 -76
  756. package/schemas/shell-content.d.ts +2 -0
  757. package/schemas/shell-content.json +11 -5
  758. package/schemas/shell-handle.d.ts +2 -0
  759. package/schemas/shell-handle.json +7 -5
  760. package/schemas/shell-header.d.ts +2 -0
  761. package/schemas/shell-header.json +9 -10
  762. package/schemas/shell-inspector.d.ts +2 -0
  763. package/schemas/shell-inspector.json +183 -79
  764. package/schemas/shell-panel.d.ts +2 -0
  765. package/schemas/shell-panel.json +180 -76
  766. package/schemas/shell-rail.d.ts +2 -0
  767. package/schemas/shell-rail.json +137 -64
  768. package/schemas/shell-root.d.ts +2 -0
  769. package/schemas/shell-root.json +11 -9
  770. package/schemas/shell-sidebar.d.ts +2 -0
  771. package/schemas/shell-sidebar.json +274 -85
  772. package/schemas/shell-trigger.d.ts +2 -0
  773. package/schemas/shell-trigger.json +29 -17
  774. package/schemas/toggle-button.json +0 -5
  775. package/schemas/toggle-icon-button.json +0 -5
  776. package/src/components/_internal/base-button.css +14 -69
  777. package/src/components/_internal/base-button.props.ts +2 -4
  778. package/src/components/_internal/base-checkbox.css +9 -63
  779. package/src/components/_internal/base-checkbox.props.ts +0 -2
  780. package/src/components/_internal/base-menu.css +7 -59
  781. package/src/components/_internal/base-menu.props.ts +0 -2
  782. package/src/components/_internal/base-radio.css +9 -46
  783. package/src/components/_internal/base-radio.props.ts +0 -2
  784. package/src/components/_internal/base-sidebar-menu.css +3 -3
  785. package/src/components/_internal/base-tab-list.css +1 -7
  786. package/src/components/_internal/base-tab-list.props.ts +0 -2
  787. package/src/components/_internal/shell-bottom.tsx +92 -361
  788. package/src/components/_internal/shell-handles.tsx +193 -108
  789. package/src/components/_internal/shell-inspector.tsx +93 -360
  790. package/src/components/_internal/shell-pane.tsx +283 -0
  791. package/src/components/_internal/shell-resizable.tsx +263 -0
  792. package/src/components/_internal/shell-resize.tsx +11 -3
  793. package/src/components/_internal/shell-rest.ts +45 -0
  794. package/src/components/_internal/shell-sidebar.tsx +130 -441
  795. package/src/components/_internal/shell-store.tsx +204 -0
  796. package/src/components/accordion.css +4 -62
  797. package/src/components/accordion.props.tsx +0 -3
  798. package/src/components/avatar.css +10 -61
  799. package/src/components/avatar.props.tsx +0 -2
  800. package/src/components/badge.css +7 -32
  801. package/src/components/badge.props.tsx +0 -2
  802. package/src/components/blockquote.props.tsx +2 -2
  803. package/src/components/callout.css +5 -25
  804. package/src/components/callout.props.tsx +0 -2
  805. package/src/components/chatbar.tsx +6 -3
  806. package/src/components/checkbox-cards.props.tsx +0 -2
  807. package/src/components/checkbox-cards.tsx +1 -4
  808. package/src/components/checkbox-group.tsx +0 -2
  809. package/src/components/code.css +36 -36
  810. package/src/components/code.props.tsx +2 -2
  811. package/src/components/combobox.css +4 -10
  812. package/src/components/combobox.props.tsx +1 -5
  813. package/src/components/combobox.tsx +4 -8
  814. package/src/components/context-menu.tsx +5 -8
  815. package/src/components/data-list.css +14 -9
  816. package/src/components/data-list.props.tsx +5 -2
  817. package/src/components/dropdown-menu.tsx +5 -9
  818. package/src/components/heading.css +16 -5
  819. package/src/components/heading.props.tsx +2 -2
  820. package/src/components/link.css +3 -4
  821. package/src/components/link.props.tsx +0 -2
  822. package/src/components/progress.css +3 -10
  823. package/src/components/progress.props.tsx +0 -2
  824. package/src/components/radio-cards.css +1 -4
  825. package/src/components/radio-cards.props.tsx +0 -2
  826. package/src/components/radio-group.props.tsx +0 -2
  827. package/src/components/radio-group.tsx +0 -2
  828. package/src/components/schemas/base-button.schema.ts +0 -10
  829. package/src/components/schemas/shell.schema.ts +162 -153
  830. package/src/components/select.css +13 -96
  831. package/src/components/select.props.tsx +0 -2
  832. package/src/components/sheet.tsx +2 -2
  833. package/src/components/shell.context.tsx +112 -124
  834. package/src/components/shell.css +637 -496
  835. package/src/components/shell.hooks.ts +12 -170
  836. package/src/components/shell.tsx +566 -1497
  837. package/src/components/shell.types.ts +22 -2
  838. package/src/components/sidebar.css +21 -115
  839. package/src/components/sidebar.props.tsx +0 -2
  840. package/src/components/sidebar.tsx +2 -5
  841. package/src/components/slider.css +4 -37
  842. package/src/components/slider.props.tsx +0 -2
  843. package/src/components/slider.tsx +1 -1
  844. package/src/components/switch.css +4 -23
  845. package/src/components/switch.props.tsx +0 -2
  846. package/src/components/switch.tsx +1 -3
  847. package/src/components/text.css +16 -5
  848. package/src/components/text.props.tsx +2 -2
  849. package/src/components/theme-panel.tsx +1 -1
  850. package/src/components/user-card.props.tsx +0 -2
  851. package/src/components/user-card.tsx +1 -2
  852. package/src/hooks/use-breakpoint.ts +9 -0
  853. package/src/props/color.prop.ts +1 -1
  854. package/src/props/emphasis.prop.ts +19 -0
  855. package/src/props/index.ts +1 -1
  856. package/src/styles/tokens/color.css +109 -0
  857. package/src/styles/tokens/constants.css +0 -1
  858. package/styles.css +970 -1254
  859. package/tokens/base.css +204 -150
  860. package/tokens.css +204 -151
  861. package/dist/cjs/components/_internal/shell-prop-helpers.d.ts +0 -7
  862. package/dist/cjs/components/_internal/shell-prop-helpers.d.ts.map +0 -1
  863. package/dist/cjs/components/_internal/shell-prop-helpers.js +0 -2
  864. package/dist/cjs/components/_internal/shell-prop-helpers.js.map +0 -7
  865. package/dist/cjs/props/high-contrast.prop.d.ts +0 -9
  866. package/dist/cjs/props/high-contrast.prop.d.ts.map +0 -1
  867. package/dist/cjs/props/high-contrast.prop.js +0 -2
  868. package/dist/cjs/props/high-contrast.prop.js.map +0 -7
  869. package/dist/esm/chunk-3DC63EZP.js +0 -2
  870. package/dist/esm/chunk-3DC63EZP.js.map +0 -7
  871. package/dist/esm/chunk-4JQZUQY7.js +0 -2
  872. package/dist/esm/chunk-4SMJ7D4S.js +0 -2
  873. package/dist/esm/chunk-4SMJ7D4S.js.map +0 -7
  874. package/dist/esm/chunk-4TCXI3L3.js +0 -2
  875. package/dist/esm/chunk-4TCXI3L3.js.map +0 -7
  876. package/dist/esm/chunk-5BYHEYO6.js +0 -2
  877. package/dist/esm/chunk-5BYHEYO6.js.map +0 -7
  878. package/dist/esm/chunk-5LXFJMFB.js +0 -2
  879. package/dist/esm/chunk-5LXFJMFB.js.map +0 -7
  880. package/dist/esm/chunk-5MNBQROW.js +0 -2
  881. package/dist/esm/chunk-5MNBQROW.js.map +0 -7
  882. package/dist/esm/chunk-666GX7O5.js +0 -2
  883. package/dist/esm/chunk-6HEAF5IT.js +0 -2
  884. package/dist/esm/chunk-6HEAF5IT.js.map +0 -7
  885. package/dist/esm/chunk-7ESHXHHO.js +0 -2
  886. package/dist/esm/chunk-7ESHXHHO.js.map +0 -7
  887. package/dist/esm/chunk-A3NH376A.js +0 -2
  888. package/dist/esm/chunk-A3NH376A.js.map +0 -7
  889. package/dist/esm/chunk-BI7W34WW.js +0 -2
  890. package/dist/esm/chunk-BI7W34WW.js.map +0 -7
  891. package/dist/esm/chunk-CBR3VIRS.js +0 -2
  892. package/dist/esm/chunk-CBR3VIRS.js.map +0 -7
  893. package/dist/esm/chunk-CECQNGUL.js +0 -2
  894. package/dist/esm/chunk-CECQNGUL.js.map +0 -7
  895. package/dist/esm/chunk-D2AZAGGP.js +0 -2
  896. package/dist/esm/chunk-D2AZAGGP.js.map +0 -7
  897. package/dist/esm/chunk-DCAZPMOB.js +0 -2
  898. package/dist/esm/chunk-DCAZPMOB.js.map +0 -7
  899. package/dist/esm/chunk-DQAUX5ZL.js +0 -2
  900. package/dist/esm/chunk-DQAUX5ZL.js.map +0 -7
  901. package/dist/esm/chunk-F7IUK2I2.js +0 -2
  902. package/dist/esm/chunk-FLBLS7M4.js +0 -2
  903. package/dist/esm/chunk-FLBLS7M4.js.map +0 -7
  904. package/dist/esm/chunk-FMBECDL4.js +0 -2
  905. package/dist/esm/chunk-GSIE6SUD.js +0 -2
  906. package/dist/esm/chunk-GSIE6SUD.js.map +0 -7
  907. package/dist/esm/chunk-HOHUDTTL.js +0 -2
  908. package/dist/esm/chunk-HOHUDTTL.js.map +0 -7
  909. package/dist/esm/chunk-HSAG7C53.js +0 -2
  910. package/dist/esm/chunk-HUKPWYG2.js +0 -2
  911. package/dist/esm/chunk-HUKPWYG2.js.map +0 -7
  912. package/dist/esm/chunk-IDYHZIS6.js +0 -2
  913. package/dist/esm/chunk-IDYHZIS6.js.map +0 -7
  914. package/dist/esm/chunk-IGQRZCAI.js +0 -2
  915. package/dist/esm/chunk-IGQRZCAI.js.map +0 -7
  916. package/dist/esm/chunk-ILRJA7FU.js +0 -2
  917. package/dist/esm/chunk-ILRJA7FU.js.map +0 -7
  918. package/dist/esm/chunk-JJKQ7CGI.js +0 -2
  919. package/dist/esm/chunk-KFA53SVQ.js.map +0 -7
  920. package/dist/esm/chunk-KRDP5SQ7.js +0 -2
  921. package/dist/esm/chunk-KRDP5SQ7.js.map +0 -7
  922. package/dist/esm/chunk-KTAFIHJY.js +0 -2
  923. package/dist/esm/chunk-KTAFIHJY.js.map +0 -7
  924. package/dist/esm/chunk-MCQAJV4K.js +0 -2
  925. package/dist/esm/chunk-MCQAJV4K.js.map +0 -7
  926. package/dist/esm/chunk-MCQCG6AS.js +0 -2
  927. package/dist/esm/chunk-MJ47O7KH.js +0 -2
  928. package/dist/esm/chunk-MJ47O7KH.js.map +0 -7
  929. package/dist/esm/chunk-N2B7TWIP.js +0 -2
  930. package/dist/esm/chunk-N2B7TWIP.js.map +0 -7
  931. package/dist/esm/chunk-NIQT45PJ.js +0 -2
  932. package/dist/esm/chunk-NKEJTTIL.js +0 -2
  933. package/dist/esm/chunk-NKEJTTIL.js.map +0 -7
  934. package/dist/esm/chunk-NNO7M466.js +0 -2
  935. package/dist/esm/chunk-NNO7M466.js.map +0 -7
  936. package/dist/esm/chunk-PTS6QYQW.js +0 -2
  937. package/dist/esm/chunk-PTS6QYQW.js.map +0 -7
  938. package/dist/esm/chunk-RLPKKCBL.js +0 -2
  939. package/dist/esm/chunk-RLPKKCBL.js.map +0 -7
  940. package/dist/esm/chunk-SNHEJU2S.js +0 -2
  941. package/dist/esm/chunk-SNHEJU2S.js.map +0 -7
  942. package/dist/esm/chunk-SO67YEVQ.js +0 -2
  943. package/dist/esm/chunk-SZTZ2XLI.js +0 -2
  944. package/dist/esm/chunk-T2FZN7G3.js +0 -2
  945. package/dist/esm/chunk-T2FZN7G3.js.map +0 -7
  946. package/dist/esm/chunk-TBJ6L4NL.js +0 -2
  947. package/dist/esm/chunk-TBJ6L4NL.js.map +0 -7
  948. package/dist/esm/chunk-TGN5ZJU5.js +0 -2
  949. package/dist/esm/chunk-TGN5ZJU5.js.map +0 -7
  950. package/dist/esm/chunk-TLWTUKKL.js +0 -2
  951. package/dist/esm/chunk-TLWTUKKL.js.map +0 -7
  952. package/dist/esm/chunk-UIRSGVJG.js +0 -2
  953. package/dist/esm/chunk-UMX5MGLG.js +0 -2
  954. package/dist/esm/chunk-UMX5MGLG.js.map +0 -7
  955. package/dist/esm/chunk-WR7YLY46.js +0 -2
  956. package/dist/esm/chunk-WR7YLY46.js.map +0 -7
  957. package/dist/esm/chunk-WZETC7WV.js +0 -2
  958. package/dist/esm/chunk-WZETC7WV.js.map +0 -7
  959. package/dist/esm/chunk-XGGLYV5D.js +0 -2
  960. package/dist/esm/chunk-XGGLYV5D.js.map +0 -7
  961. package/dist/esm/chunk-XI5YXUCK.js +0 -2
  962. package/dist/esm/chunk-XKASPWCJ.js +0 -2
  963. package/dist/esm/chunk-XKASPWCJ.js.map +0 -7
  964. package/dist/esm/chunk-ZRKE3NVU.js +0 -2
  965. package/dist/esm/chunk-ZRKE3NVU.js.map +0 -7
  966. package/dist/esm/chunk-ZWYYPFZW.js +0 -2
  967. package/dist/esm/chunk-ZWYYPFZW.js.map +0 -7
  968. package/dist/esm/chunk-ZXZOH63L.js +0 -2
  969. package/dist/esm/chunk-ZXZOH63L.js.map +0 -7
  970. package/dist/esm/components/_internal/shell-prop-helpers.d.ts +0 -7
  971. package/dist/esm/components/_internal/shell-prop-helpers.d.ts.map +0 -1
  972. package/dist/esm/components/_internal/shell-prop-helpers.js +0 -2
  973. package/dist/esm/props/high-contrast.prop.d.ts +0 -9
  974. package/dist/esm/props/high-contrast.prop.d.ts.map +0 -1
  975. package/dist/esm/props/high-contrast.prop.js +0 -2
  976. package/src/components/_internal/shell-prop-helpers.ts +0 -54
  977. package/src/props/high-contrast.prop.ts +0 -13
  978. /package/dist/esm/{chunk-MBCBP73P.js.map → chunk-25X75TI7.js.map} +0 -0
  979. /package/dist/esm/{chunk-GLERJXVS.js.map → chunk-2Q7BJ7YG.js.map} +0 -0
  980. /package/dist/esm/{chunk-CTA5ODAO.js.map → chunk-4WU2WKUJ.js.map} +0 -0
  981. /package/dist/esm/{chunk-F7IUK2I2.js.map → chunk-5SNHUVDA.js.map} +0 -0
  982. /package/dist/esm/{chunk-H7ST535H.js.map → chunk-5TAHT6VC.js.map} +0 -0
  983. /package/dist/esm/{chunk-MHPPVJDB.js.map → chunk-67MKPTZJ.js.map} +0 -0
  984. /package/dist/esm/{chunk-UFI53QUC.js.map → chunk-6J6YX2VX.js.map} +0 -0
  985. /package/dist/esm/{chunk-UUUZXUIP.js.map → chunk-7NYODT3Z.js.map} +0 -0
  986. /package/dist/esm/{chunk-NVDXXGVW.js.map → chunk-7PMMYHZV.js.map} +0 -0
  987. /package/dist/esm/{chunk-UBOOUDS4.js.map → chunk-AO32NT75.js.map} +0 -0
  988. /package/dist/esm/{chunk-JDGJSNWT.js.map → chunk-C5RVO3C3.js.map} +0 -0
  989. /package/dist/esm/{chunk-IHK3H2OM.js.map → chunk-CBNTPHYK.js.map} +0 -0
  990. /package/dist/esm/{chunk-SESAEJ6W.js.map → chunk-CLMOWP5T.js.map} +0 -0
  991. /package/dist/esm/{chunk-BBJUB52V.js.map → chunk-CRBOJ7N7.js.map} +0 -0
  992. /package/dist/esm/{chunk-DUHJVT64.js.map → chunk-CRSHBENJ.js.map} +0 -0
  993. /package/dist/esm/{chunk-56TS6OKQ.js.map → chunk-DCIQHXAR.js.map} +0 -0
  994. /package/dist/esm/{chunk-43A5GUSI.js.map → chunk-EHBAK3LQ.js.map} +0 -0
  995. /package/dist/esm/{chunk-2TIADHPD.js.map → chunk-F3AXE27Q.js.map} +0 -0
  996. /package/dist/esm/{chunk-VA4CTVQL.js.map → chunk-FB3PD4Z3.js.map} +0 -0
  997. /package/dist/esm/{chunk-OYF6YXH7.js.map → chunk-FEAOFF77.js.map} +0 -0
  998. /package/dist/esm/{chunk-ADBLURLJ.js.map → chunk-GDAKJS64.js.map} +0 -0
  999. /package/dist/esm/{chunk-IEWCQU2S.js.map → chunk-GGSJXOKR.js.map} +0 -0
  1000. /package/dist/esm/{chunk-4JQZUQY7.js.map → chunk-GM7KMQDI.js.map} +0 -0
  1001. /package/dist/esm/{chunk-HBR42MIX.js.map → chunk-H4GR4262.js.map} +0 -0
  1002. /package/dist/esm/{chunk-S5C5YRBS.js.map → chunk-IDUVJJYG.js.map} +0 -0
  1003. /package/dist/esm/{chunk-P7IAHW4V.js.map → chunk-IK3MQHA5.js.map} +0 -0
  1004. /package/dist/esm/{chunk-SPIU5JYC.js.map → chunk-JDEBKA56.js.map} +0 -0
  1005. /package/dist/esm/{chunk-E67CIG6A.js.map → chunk-JDWCQ2XP.js.map} +0 -0
  1006. /package/dist/esm/{chunk-JBO5YOUM.js.map → chunk-JQW4XYBS.js.map} +0 -0
  1007. /package/dist/esm/{chunk-P5OSU4NX.js.map → chunk-JRFZ535T.js.map} +0 -0
  1008. /package/dist/esm/{chunk-GYBLXQ4R.js.map → chunk-KEEPKI2X.js.map} +0 -0
  1009. /package/dist/esm/{chunk-WXP6MMUB.js.map → chunk-KOFEFBB3.js.map} +0 -0
  1010. /package/dist/esm/{chunk-YMUGKYGW.js.map → chunk-KV4SZP3F.js.map} +0 -0
  1011. /package/dist/esm/{chunk-FG7XM7KJ.js.map → chunk-LJCUPAOI.js.map} +0 -0
  1012. /package/dist/esm/{chunk-MBE2YSBU.js.map → chunk-MBCQA7UZ.js.map} +0 -0
  1013. /package/dist/esm/{chunk-JJKQ7CGI.js.map → chunk-MM5IHQFM.js.map} +0 -0
  1014. /package/dist/esm/{chunk-YVBCDTTD.js.map → chunk-MN3XALXD.js.map} +0 -0
  1015. /package/dist/esm/{chunk-3R7XMRV5.js.map → chunk-NQXRWBQM.js.map} +0 -0
  1016. /package/dist/esm/{chunk-CSKZZOI2.js.map → chunk-NTNMJX5M.js.map} +0 -0
  1017. /package/dist/esm/{chunk-4ME6O27S.js.map → chunk-O4CSXNST.js.map} +0 -0
  1018. /package/dist/esm/{chunk-HSAG7C53.js.map → chunk-ODCVOXEV.js.map} +0 -0
  1019. /package/dist/esm/{chunk-DMJJM5IS.js.map → chunk-OEEF6KJG.js.map} +0 -0
  1020. /package/dist/esm/{chunk-ABSKRHVM.js.map → chunk-OJSOX3AX.js.map} +0 -0
  1021. /package/dist/esm/{chunk-JGLAE5G7.js.map → chunk-OQU2SKLN.js.map} +0 -0
  1022. /package/dist/esm/{chunk-UWT6TE5D.js.map → chunk-OTXCKEWT.js.map} +0 -0
  1023. /package/dist/esm/{chunk-JUY7CBSL.js.map → chunk-PBFSBHBS.js.map} +0 -0
  1024. /package/dist/esm/{chunk-L6PVH3RM.js.map → chunk-PDUHBDFC.js.map} +0 -0
  1025. /package/dist/esm/{chunk-HW324FK3.js.map → chunk-POG3YABW.js.map} +0 -0
  1026. /package/dist/esm/{chunk-TOOSHJOA.js.map → chunk-PYXMGEO7.js.map} +0 -0
  1027. /package/dist/esm/{chunk-T4UHUQFJ.js.map → chunk-QEGEUD4D.js.map} +0 -0
  1028. /package/dist/esm/{chunk-MCQCG6AS.js.map → chunk-QEL55MLF.js.map} +0 -0
  1029. /package/dist/esm/{chunk-F7IYL2VW.js.map → chunk-QJVAS7AK.js.map} +0 -0
  1030. /package/dist/esm/{chunk-DXL6V2A5.js.map → chunk-SEY4NA45.js.map} +0 -0
  1031. /package/dist/esm/{chunk-TS623UPD.js.map → chunk-TLGXIWAS.js.map} +0 -0
  1032. /package/dist/esm/{chunk-6FLLFCBU.js.map → chunk-UBSLEGQZ.js.map} +0 -0
  1033. /package/dist/esm/{chunk-37OGSEQR.js.map → chunk-UNWPH3SO.js.map} +0 -0
  1034. /package/dist/esm/{chunk-HIKVMKYQ.js.map → chunk-VTIL55SR.js.map} +0 -0
  1035. /package/dist/esm/{chunk-CQNPBTM5.js.map → chunk-W2LD2YE6.js.map} +0 -0
  1036. /package/dist/esm/{chunk-NMKPFUNP.js.map → chunk-WIDJYVZF.js.map} +0 -0
  1037. /package/dist/esm/{chunk-3OBXZUFJ.js.map → chunk-WJBOOAIO.js.map} +0 -0
  1038. /package/dist/esm/{chunk-7FC7HF76.js.map → chunk-WQCB7KSH.js.map} +0 -0
  1039. /package/dist/esm/{chunk-OWAUCLRT.js.map → chunk-WZFVTC7P.js.map} +0 -0
  1040. /package/dist/esm/{chunk-XI5YXUCK.js.map → chunk-XDDKT4NF.js.map} +0 -0
  1041. /package/dist/esm/{chunk-DX5JJYMZ.js.map → chunk-XYVLQDGR.js.map} +0 -0
  1042. /package/dist/esm/{chunk-VNPNEJI6.js.map → chunk-YG66IRW4.js.map} +0 -0
  1043. /package/dist/esm/{chunk-NIQT45PJ.js.map → chunk-ZJ33QP5N.js.map} +0 -0
  1044. /package/dist/esm/{chunk-KPBG7CIL.js.map → chunk-ZO7TTWJI.js.map} +0 -0
  1045. /package/dist/esm/{chunk-OGXZHAQL.js.map → chunk-ZW26J2SA.js.map} +0 -0
  1046. /package/dist/esm/components/_internal/{shell-prop-helpers.js.map → shell-pane.js.map} +0 -0
  1047. /package/dist/esm/{props/high-contrast.prop.js.map → components/_internal/shell-resizable.js.map} +0 -0
@@ -8,11 +8,6 @@ declare const userCardPropDefs: {
8
8
  type: "boolean";
9
9
  default: false;
10
10
  };
11
- highContrast: {
12
- type: "boolean";
13
- className: string;
14
- default: undefined;
15
- };
16
11
  color: {
17
12
  type: "enum";
18
13
  values: readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky"];
@@ -1 +1 @@
1
- {"version":3,"file":"user-card.props.d.ts","sourceRoot":"","sources":["../../../src/components/user-card.props.tsx"],"names":[],"mappings":"AAYA,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BrB,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"user-card.props.d.ts","sourceRoot":"","sources":["../../../src/components/user-card.props.tsx"],"names":[],"mappings":"AAWA,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BrB,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";var a=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var d=(o,e)=>{for(var t in e)a(o,t,{get:e[t],enumerable:!0})},m=(o,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of u(e))!c.call(o,r)&&r!==t&&a(o,r,{get:()=>e[r],enumerable:!(s=l(e,r))||s.enumerable});return o};var y=o=>m(a({},"__esModule",{value:!0}),o);var k={};d(k,{userCardPropDefs:()=>C});module.exports=y(k);var n={asChild:{type:"boolean"}};var D=["gray","gold","bronze","brown","yellow","amber","orange","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","lime","mint","sky"];var p={color:{type:"enum",values:D,default:""}};var i={highContrast:{type:"boolean",className:"rt-high-contrast",default:void 0}};var P=["none","small","medium","large","full"],f={radius:{type:"enum",values:P,default:void 0}};var g=["1","2","3","4"],b=["ghost","surface","classic"],v=["solid","soft","surface","outline"],h=["solid","translucent"],C={...n,size:{type:"enum",className:"rt-r-size",values:g,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:b,default:"surface"},src:{type:"string"},fallback:{type:"ReactNode",required:!0},name:{type:"string",required:!0},description:{type:"string"},avatarVariant:{type:"enum",values:v,default:"soft"},...f,...p,...i,panelBackground:{type:"enum",values:h,default:void 0},flush:{type:"boolean",default:!1}};
1
+ "use strict";var s=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var c=(o,e)=>{for(var a in e)s(o,a,{get:e[a],enumerable:!0})},d=(o,e,a,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of l(e))!u.call(o,r)&&r!==a&&s(o,r,{get:()=>e[r],enumerable:!(t=f(e,r))||t.enumerable});return o};var m=o=>d(s({},"__esModule",{value:!0}),o);var k={};c(k,{userCardPropDefs:()=>C});module.exports=m(k);var n={asChild:{type:"boolean"}};var y=["gray","gold","bronze","brown","yellow","amber","orange","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","lime","mint","sky"];var p={color:{type:"enum",values:y,default:""}};var D=["none","small","medium","large","full"],i={radius:{type:"enum",values:D,default:void 0}};var P=["1","2","3","4"],g=["ghost","surface","classic"],b=["solid","soft","surface","outline"],v=["solid","translucent"],C={...n,size:{type:"enum",className:"rt-r-size",values:P,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:g,default:"surface"},src:{type:"string"},fallback:{type:"ReactNode",required:!0},name:{type:"string",required:!0},description:{type:"string"},avatarVariant:{type:"enum",values:b,default:"soft"},...i,...p,panelBackground:{type:"enum",values:v,default:void 0},flush:{type:"boolean",default:!1}};
2
2
  //# sourceMappingURL=user-card.props.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/user-card.props.tsx", "../../../src/props/as-child.prop.ts", "../../../src/props/color.prop.ts", "../../../src/props/high-contrast.prop.ts", "../../../src/props/radius.prop.ts"],
4
- "sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColorPropDef } from '../props/color.prop.js';\nimport { highContrastPropDef } from '../props/high-contrast.prop.js';\nimport { radiusPropDef } from '../props/radius.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst variants = ['ghost', 'surface', 'classic'] as const;\nconst avatarVariants = ['solid', 'soft', 'surface', 'outline'] as const;\nconst panelBackgrounds = ['solid', 'translucent'] as const;\n\nconst userCardPropDefs = {\n ...asChildPropDef,\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'surface' },\n\n // Content props\n src: { type: 'string' },\n fallback: { type: 'ReactNode', required: true },\n name: { type: 'string', required: true },\n description: { type: 'string' },\n\n // Avatar styling\n avatarVariant: { type: 'enum', values: avatarVariants, default: 'soft' },\n ...radiusPropDef,\n\n // Card styling\n ...accentColorPropDef,\n ...highContrastPropDef,\n panelBackground: { type: 'enum', values: panelBackgrounds, default: undefined },\n flush: { type: 'boolean', default: false },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n src: PropDef<string>;\n fallback: PropDef<React.ReactNode>;\n name: PropDef<string>;\n description: PropDef<string>;\n avatarVariant: PropDef<(typeof avatarVariants)[number]>;\n panelBackground: PropDef<(typeof panelBackgrounds)[number] | undefined>;\n flush: PropDef<boolean>;\n};\n\nexport { userCardPropDefs };\n", "import type { PropDef } from './prop-def.js';\n\nconst asChildPropDef = {\n /**\n * Composes the component into its immediate child instead of rendering its own HTML element.\n * You\u2019ll have to provide a single React Element child.\n */\n asChild: {\n type: 'boolean',\n },\n} satisfies {\n asChild: PropDef<boolean>;\n};\n\nexport { asChildPropDef };\n", "import type { PropDef } from './prop-def.js';\n\n// prettier-ignore\nconst accentColors = ['gray', 'gold', 'bronze', 'brown', 'yellow', 'amber', 'orange', 'tomato', 'red', 'ruby', 'crimson', 'pink', 'plum', 'purple', 'violet', 'iris', 'indigo', 'blue', 'cyan', 'teal', 'jade', 'green', 'grass', 'lime', 'mint', 'sky'] as const;\n\nconst grayColors = ['auto', 'gray', 'mauve', 'slate', 'sage', 'olive', 'sand'] as const;\n\nconst colorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: undefined as (typeof accentColors)[number] | undefined,\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// 1. When used on components that compose Text, sets the color of the text to the current accent.\n// 2. Defines accent color for descendant text components\u00A0with `highContrast={true}`.\nconst accentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: '' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\nexport {\n accentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import type { PropDef } from './prop-def.js';\n\nconst highContrastPropDef = {\n highContrast: {\n type: 'boolean',\n className: 'rt-high-contrast',\n default: undefined,\n },\n} satisfies {\n highContrast: PropDef<boolean>;\n};\n\nexport { highContrastPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst radii = ['none', 'small', 'medium', 'large', 'full'] as const;\n\nconst radiusPropDef = {\n radius: {\n type: 'enum',\n values: radii,\n default: undefined,\n },\n} satisfies {\n radius: PropDef<(typeof radii)[number]>;\n};\n\nexport { radiusPropDef, radii };\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,sBAAAE,IAAA,eAAAC,EAAAH,GCEA,IAAMI,EAAiB,CAKrB,QAAS,CACP,KAAM,SACR,CACF,ECPA,IAAMC,EAAe,CAAC,OA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", "accentColors", "highContrastPropDef", "radii", "radiusPropDef", "sizes", "variants", "avatarVariants", "panelBackgrounds", "userCardPropDefs", "asChildPropDef", "radiusPropDef", "accentColorPropDef", "highContrastPropDef"]
3
+ "sources": ["../../../src/components/user-card.props.tsx", "../../../src/props/as-child.prop.ts", "../../../src/props/color.prop.ts", "../../../src/props/radius.prop.ts"],
4
+ "sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColorPropDef } from '../props/color.prop.js';\nimport { radiusPropDef } from '../props/radius.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst variants = ['ghost', 'surface', 'classic'] as const;\nconst avatarVariants = ['solid', 'soft', 'surface', 'outline'] as const;\nconst panelBackgrounds = ['solid', 'translucent'] as const;\n\nconst userCardPropDefs = {\n ...asChildPropDef,\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'surface' },\n\n // Content props\n src: { type: 'string' },\n fallback: { type: 'ReactNode', required: true },\n name: { type: 'string', required: true },\n description: { type: 'string' },\n\n // Avatar styling\n avatarVariant: { type: 'enum', values: avatarVariants, default: 'soft' },\n ...radiusPropDef,\n\n // Card styling\n ...accentColorPropDef,\n panelBackground: { type: 'enum', values: panelBackgrounds, default: undefined },\n flush: { type: 'boolean', default: false },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n src: PropDef<string>;\n fallback: PropDef<React.ReactNode>;\n name: PropDef<string>;\n description: PropDef<string>;\n avatarVariant: PropDef<(typeof avatarVariants)[number]>;\n panelBackground: PropDef<(typeof panelBackgrounds)[number] | undefined>;\n flush: PropDef<boolean>;\n};\n\nexport { userCardPropDefs };\n", "import type { PropDef } from './prop-def.js';\n\nconst asChildPropDef = {\n /**\n * Composes the component into its immediate child instead of rendering its own HTML element.\n * You\u2019ll have to provide a single React Element child.\n */\n asChild: {\n type: 'boolean',\n },\n} satisfies {\n asChild: PropDef<boolean>;\n};\n\nexport { asChildPropDef };\n", "import type { PropDef } from './prop-def.js';\n\n// prettier-ignore\nconst accentColors = ['gray', 'gold', 'bronze', 'brown', 'yellow', 'amber', 'orange', 'tomato', 'red', 'ruby', 'crimson', 'pink', 'plum', 'purple', 'violet', 'iris', 'indigo', 'blue', 'cyan', 'teal', 'jade', 'green', 'grass', 'lime', 'mint', 'sky'] as const;\n\nconst grayColors = ['auto', 'gray', 'mauve', 'slate', 'sage', 'olive', 'sand'] as const;\n\nconst colorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: undefined as (typeof accentColors)[number] | undefined,\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// 1. When used on components that compose Text, sets the color of the text to the current accent.\n// 2. Re-declares the accent role tokens (`--accent-ink`, `--accent-solid`, ...) that descendants read.\nconst accentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: '' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\nexport {\n accentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import type { PropDef } from './prop-def.js';\n\nconst radii = ['none', 'small', 'medium', 'large', 'full'] as const;\n\nconst radiusPropDef = {\n radius: {\n type: 'enum',\n values: radii,\n default: undefined,\n },\n} satisfies {\n radius: PropDef<(typeof radii)[number]>;\n};\n\nexport { radiusPropDef, radii };\n"],
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,sBAAAE,IAAA,eAAAC,EAAAH,GCEA,IAAMI,EAAiB,CAKrB,QAAS,CACP,KAAM,SACR,CACF,ECPA,IAAMC,EAAe,CAAC,OAAQ,OAAQ,SAAU,QAAS,SAAU,QAAS,SAAU,SAAU,MAAO,OAAQ,UAAW,OAAQ,OAAQ,SAAU,SAAU,OAAQ,SAAU,OAAQ,OAAQ,OAAQ,OAAQ,QAAS,QAAS,OAAQ,OAAQ,KAAK,EAgBvP,IAAMC,EAAqB,CACzB,MAAO,CACL,KAAM,OACN,OAAQC,EACR,QAAS,EACX,CACF,ECvBA,IAAMC,EAAQ,CAAC,OAAQ,QAAS,SAAU,QAAS,MAAM,EAEnDC,EAAgB,CACpB,OAAQ,CACN,KAAM,OACN,OAAQD,EACR,QAAS,MACX,CACF,EHJA,IAAME,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,EAAW,CAAC,QAAS,UAAW,SAAS,EACzCC,EAAiB,CAAC,QAAS,OAAQ,UAAW,SAAS,EACvDC,EAAmB,CAAC,QAAS,aAAa,EAE1CC,EAAmB,CACvB,GAAGC,EACH,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQL,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,SAAU,EAGvF,IAAK,CAAE,KAAM,QAAS,EACtB,SAAU,CAAE,KAAM,YAAa,SAAU,EAAK,EAC9C,KAAM,CAAE,KAAM,SAAU,SAAU,EAAK,EACvC,YAAa,CAAE,KAAM,QAAS,EAG9B,cAAe,CAAE,KAAM,OAAQ,OAAQC,EAAgB,QAAS,MAAO,EACvE,GAAGI,EAGH,GAAGC,EACH,gBAAiB,CAAE,KAAM,OAAQ,OAAQJ,EAAkB,QAAS,MAAU,EAC9E,MAAO,CAAE,KAAM,UAAW,QAAS,EAAM,CAC3C",
6
+ "names": ["user_card_props_exports", "__export", "userCardPropDefs", "__toCommonJS", "asChildPropDef", "accentColors", "accentColorPropDef", "accentColors", "radii", "radiusPropDef", "sizes", "variants", "avatarVariants", "panelBackgrounds", "userCardPropDefs", "asChildPropDef", "radiusPropDef", "accentColorPropDef"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/virtual-menu.tsx", "../../../src/components/_internal/menu-context.tsx", "../../../src/components/theme.tsx", "../../../src/helpers/get-matching-gray-color.ts", "../../../src/hooks/use-prop-synced-state.ts", "../../../src/helpers/use-deprecation-warning.ts", "../../../src/props/as-child.prop.ts", "../../../src/props/color.prop.ts", "../../../src/props/radius.prop.ts", "../../../src/components/theme.props.tsx"],
4
- "sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useVirtualizer } from '@tanstack/react-virtual';\nimport { useMenuContext, getMenuItemHeight } from './_internal/menu-context.js';\nimport { useThemeContext } from './theme.js';\n\n/**\n * VirtualMenu - A virtualized menu component for rendering large lists efficiently.\n *\n * Uses TanStack Virtual to render only visible items.\n * Works inside any container (DropdownMenu.Content, Popover.Content, etc.)\n *\n * @example\n * // Simple usage with itemLabel\n * <VirtualMenu\n * items={items}\n * itemLabel={(item) => item.name}\n * onSelect={handleSelect}\n * />\n *\n * @example\n * // Custom rendering with renderItem\n * const UserItem = React.memo(({ item, ...props }) => (\n * <VirtualMenu.Item {...props}>\n * <Avatar src={item.avatar} />\n * {item.name}\n * </VirtualMenu.Item>\n * ));\n *\n * <VirtualMenu items={users} renderItem={UserItem} onSelect={handleSelect} />\n */\n\n// ============================================================================\n// Types\n// ============================================================================\n\n/** Props passed to custom renderItem components */\ninterface VirtualMenuRenderItemProps<T> {\n /** The item data */\n item: T;\n /** Index in the items array */\n index: number;\n /** Whether this item is currently highlighted */\n isHighlighted: boolean;\n /** Unique ID for accessibility */\n id: string;\n /** Positioning styles - must be applied */\n style: React.CSSProperties;\n /** Tab index for focus management */\n tabIndex: number;\n /** Data attribute for CSS styling */\n 'data-highlighted': true | undefined;\n /** Data attribute for event delegation */\n 'data-index': number;\n /** Mouse enter handler */\n onMouseEnter: (e: React.MouseEvent<HTMLElement>) => void;\n /** Mouse leave handler */\n onMouseLeave: () => void;\n /** Click handler */\n onClick: (e: React.MouseEvent<HTMLElement>) => void;\n /** Keyboard handler for Enter/Space activation */\n onKeyDown: (e: React.KeyboardEvent<HTMLElement>) => void;\n}\n\ninterface VirtualMenuProps<T> {\n /** Array of items to render */\n items: T[];\n /**\n * Simple label accessor for basic text items.\n * Can be a property key or a function.\n * @example\n * itemLabel=\"name\"\n * itemLabel={(item) => item.name}\n */\n itemLabel?: keyof T | ((item: T) => React.ReactNode);\n /**\n * Custom component for rendering items.\n * Must be memoized (React.memo) for optimal performance.\n * @example\n * const MyItem = React.memo(({ item, ...props }) => (\n * <VirtualMenu.Item {...props}>{item.name}</VirtualMenu.Item>\n * ));\n * <VirtualMenu items={items} renderItem={MyItem} />\n */\n renderItem?: React.ComponentType<VirtualMenuRenderItemProps<T>>;\n /**\n * Menu size - controls item height.\n * Automatically inherited from parent DropdownMenu.Content/ContextMenu.Content.\n * Only set manually when using VirtualMenu outside of a menu context.\n * @default '2' (or inherited from context)\n */\n size?: '1' | '2';\n /**\n * Estimated height of each item in pixels.\n * Can be a number (same for all) or a function (per-item).\n * Usually not needed - height is automatically derived from size prop/context.\n * Use this only for custom item heights (e.g., variable height items).\n */\n estimatedItemSize?: number | ((index: number) => number);\n /** Number of items to render outside visible area */\n overscan?: number;\n /** Callback when an item is selected */\n onSelect?: (item: T, index: number) => void;\n /** Additional class name */\n className?: string;\n /** Additional styles */\n style?: React.CSSProperties;\n /** Accessible label for the menu */\n 'aria-label'?: string;\n}\n\n// ============================================================================\n// Internal Memoized Item Component\n// ============================================================================\n\ninterface SimpleItemProps {\n label: React.ReactNode;\n isHighlighted: boolean;\n id: string;\n style: React.CSSProperties;\n tabIndex: number;\n 'data-highlighted': true | undefined;\n 'data-index': number;\n onMouseEnter: (e: React.MouseEvent<HTMLElement>) => void;\n onMouseLeave: () => void;\n onClick: (e: React.MouseEvent<HTMLElement>) => void;\n onKeyDown: (e: React.KeyboardEvent<HTMLElement>) => void;\n}\n\nconst SimpleItem = React.memo(\n function SimpleItem({\n label,\n isHighlighted: _isHighlighted,\n id,\n style,\n tabIndex,\n 'data-highlighted': dataHighlighted,\n 'data-index': dataIndex,\n onMouseEnter,\n onMouseLeave,\n onClick,\n onKeyDown,\n }: SimpleItemProps) {\n return (\n <div\n id={id}\n role=\"menuitem\"\n className={classNames('rt-reset', 'rt-BaseMenuItem', 'rt-VirtualMenuItem')}\n style={style}\n tabIndex={tabIndex}\n data-highlighted={dataHighlighted}\n data-index={dataIndex}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n onClick={onClick}\n onKeyDown={onKeyDown}\n >\n {label}\n </div>\n );\n },\n (prev, next) => {\n // Custom comparison - only re-render if these change\n if (prev.label !== next.label) return false;\n if (prev['data-highlighted'] !== next['data-highlighted']) return false;\n if (prev.style.height !== next.style.height) return false;\n if (prev.style.transform !== next.style.transform) return false;\n if (prev.tabIndex !== next.tabIndex) return false;\n if (prev.id !== next.id) return false;\n // Event handlers are stable, skip comparison\n return true;\n },\n);\n\n// ============================================================================\n// VirtualMenu Component\n// ============================================================================\n\nfunction VirtualMenuRoot<T>({\n items,\n itemLabel,\n renderItem: RenderItem,\n size: sizeProp,\n estimatedItemSize: estimatedItemSizeProp,\n overscan = 5,\n onSelect,\n className,\n style,\n 'aria-label': ariaLabel,\n}: VirtualMenuProps<T>) {\n const menuId = React.useId();\n const parentRef = React.useRef<HTMLDivElement>(null);\n const [highlightedIndex, setHighlightedIndex] = React.useState<number>(-1);\n const { isInsideMenu, size: contextSize, itemHeight: contextItemHeight } = useMenuContext();\n const { scaling } = useThemeContext();\n\n // Resolve item height: explicit prop > own size > parent menu > default size '2'.\n // Heights follow the theme scaling, like the --base-menu-item-height token.\n const estimatedItemSize =\n estimatedItemSizeProp ??\n (sizeProp\n ? getMenuItemHeight(sizeProp, scaling)\n : (contextItemHeight ?? getMenuItemHeight(contextSize ?? '2', scaling)));\n\n // Validate props\n if (!itemLabel && !RenderItem) {\n throw new Error('VirtualMenu requires either itemLabel or renderItem prop');\n }\n\n // Normalize itemLabel to a function\n const getLabel = React.useMemo(() => {\n if (!itemLabel) return null;\n if (typeof itemLabel === 'function') return itemLabel;\n return (item: T) => item[itemLabel] as React.ReactNode;\n }, [itemLabel]);\n\n // Derive safe highlighted index\n const safeHighlightedIndex = React.useMemo(() => {\n if (items.length === 0) return -1;\n if (highlightedIndex < 0) return -1;\n return Math.min(highlightedIndex, items.length - 1);\n }, [highlightedIndex, items.length]);\n\n // Normalize estimatedItemSize to a function\n const getItemSize = React.useMemo(\n () =>\n typeof estimatedItemSize === 'function'\n ? estimatedItemSize\n : () => estimatedItemSize,\n [estimatedItemSize],\n );\n\n const virtualizer = useVirtualizer({\n count: items.length,\n getScrollElement: () => parentRef.current,\n estimateSize: getItemSize,\n overscan,\n });\n\n const virtualItems = virtualizer.getVirtualItems();\n\n // Refs for stable handler references\n const itemsRef = React.useRef(items);\n const onSelectRef = React.useRef(onSelect);\n itemsRef.current = items;\n onSelectRef.current = onSelect;\n\n const scrollToIndexRef = React.useRef(virtualizer.scrollToIndex);\n scrollToIndexRef.current = virtualizer.scrollToIndex;\n\n const highlightedIndexRef = React.useRef(safeHighlightedIndex);\n highlightedIndexRef.current = safeHighlightedIndex;\n\n // Stable event handlers\n const handleItemMouseEnter = React.useCallback((e: React.MouseEvent<HTMLElement>) => {\n const index = e.currentTarget.dataset.index;\n if (index != null) {\n setHighlightedIndex(Number(index));\n }\n }, []);\n\n const handleItemClick = React.useCallback((e: React.MouseEvent<HTMLElement>) => {\n const index = e.currentTarget.dataset.index;\n if (index != null) {\n const idx = Number(index);\n const currentItems = itemsRef.current;\n if (idx >= 0 && idx < currentItems.length) {\n onSelectRef.current?.(currentItems[idx], idx);\n }\n }\n }, []);\n\n const noop = React.useCallback(() => {}, []);\n\n // Item-level keyboard handler for Enter/Space activation (satisfies a11y lint rule)\n const handleItemKeyDown = React.useCallback((e: React.KeyboardEvent<HTMLElement>) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n const index = e.currentTarget.dataset.index;\n if (index != null) {\n const idx = Number(index);\n const currentItems = itemsRef.current;\n if (idx >= 0 && idx < currentItems.length) {\n onSelectRef.current?.(currentItems[idx], idx);\n }\n }\n }\n }, []);\n\n // Keyboard navigation\n const handleKeyDown = React.useCallback((e: React.KeyboardEvent) => {\n const currentItems = itemsRef.current;\n const currentHighlightedIndex = highlightedIndexRef.current;\n\n switch (e.key) {\n case 'ArrowDown': {\n e.preventDefault();\n const nextIndex =\n currentHighlightedIndex < currentItems.length - 1 ? currentHighlightedIndex + 1 : 0;\n setHighlightedIndex(nextIndex);\n scrollToIndexRef.current(nextIndex, { align: 'auto' });\n break;\n }\n case 'ArrowUp': {\n e.preventDefault();\n const prevIndex =\n currentHighlightedIndex > 0 ? currentHighlightedIndex - 1 : currentItems.length - 1;\n setHighlightedIndex(prevIndex);\n scrollToIndexRef.current(prevIndex, { align: 'auto' });\n break;\n }\n case 'Home': {\n e.preventDefault();\n setHighlightedIndex(0);\n scrollToIndexRef.current(0, { align: 'start' });\n break;\n }\n case 'End': {\n e.preventDefault();\n const lastIndex = currentItems.length - 1;\n setHighlightedIndex(lastIndex);\n scrollToIndexRef.current(lastIndex, { align: 'end' });\n break;\n }\n case 'Enter':\n case ' ': {\n e.preventDefault();\n if (currentHighlightedIndex >= 0 && currentHighlightedIndex < currentItems.length) {\n onSelectRef.current?.(currentItems[currentHighlightedIndex], currentHighlightedIndex);\n }\n break;\n }\n case 'Tab': {\n e.preventDefault();\n break;\n }\n case 'Escape': {\n (e.currentTarget as HTMLElement).blur();\n break;\n }\n }\n }, []);\n\n // Item ID generator\n const getItemId = React.useCallback(\n (index: number) => `${menuId}-item-${index}`,\n [menuId],\n );\n\n // Memoize styles\n const rootStyle = React.useMemo(\n () => ({\n overflow: 'auto' as const,\n position: 'relative' as const,\n ...style,\n }),\n [style],\n );\n\n const totalSize = virtualizer.getTotalSize();\n const viewportStyle = React.useMemo(\n () => ({\n height: `${totalSize}px`,\n width: '100%' as const,\n position: 'relative' as const,\n }),\n [totalSize],\n );\n\n return (\n <div\n ref={parentRef}\n role={isInsideMenu ? 'group' : 'menu'}\n aria-label={ariaLabel}\n aria-activedescendant={safeHighlightedIndex >= 0 ? getItemId(safeHighlightedIndex) : undefined}\n tabIndex={0}\n onKeyDown={handleKeyDown}\n className={classNames('rt-VirtualMenuRoot', className)}\n style={rootStyle}\n >\n <div className=\"rt-VirtualMenuViewport\" style={viewportStyle}>\n {virtualItems.map((virtualRow) => {\n const item = items[virtualRow.index];\n const index = virtualRow.index;\n const isHighlighted = safeHighlightedIndex === index;\n\n const itemStyle: React.CSSProperties = {\n height: virtualRow.size,\n transform: `translateY(${virtualRow.start}px)`,\n };\n\n const commonProps = {\n id: getItemId(index),\n isHighlighted,\n style: itemStyle,\n tabIndex: isHighlighted ? 0 : -1,\n 'data-highlighted': isHighlighted ? true as const : undefined,\n 'data-index': index,\n onMouseEnter: handleItemMouseEnter,\n onMouseLeave: noop,\n onClick: handleItemClick,\n onKeyDown: handleItemKeyDown,\n };\n\n // Use renderItem if provided, otherwise use SimpleItem with itemLabel\n if (RenderItem) {\n return (\n <RenderItem\n key={virtualRow.key}\n item={item}\n index={index}\n {...commonProps}\n />\n );\n }\n\n return (\n <SimpleItem\n key={virtualRow.key}\n label={getLabel!(item)}\n {...commonProps}\n />\n );\n })}\n </div>\n </div>\n );\n}\n\nVirtualMenuRoot.displayName = 'VirtualMenu';\n\n// ============================================================================\n// VirtualMenu.Item Component (for custom renderItem usage)\n// ============================================================================\n\ninterface VirtualMenuItemProps extends React.ComponentPropsWithoutRef<'div'> {\n children: React.ReactNode;\n /** Data attribute for highlight styling */\n 'data-highlighted'?: true | undefined;\n /** Data attribute for event delegation */\n 'data-index'?: number;\n}\n\nconst VirtualMenuItemInner = React.forwardRef<HTMLDivElement, VirtualMenuItemProps>(\n ({ className, children, ...props }, forwardedRef) => {\n return (\n <div\n ref={forwardedRef}\n role=\"menuitem\"\n className={classNames('rt-reset', 'rt-BaseMenuItem', 'rt-VirtualMenuItem', className)}\n {...props}\n >\n {children}\n </div>\n );\n },\n);\n\nVirtualMenuItemInner.displayName = 'VirtualMenu.Item';\n\n// Memoized with custom comparison\nconst VirtualMenuItem = React.memo(VirtualMenuItemInner, (prevProps, nextProps) => {\n const prevStyle = prevProps.style as React.CSSProperties | undefined;\n const nextStyle = nextProps.style as React.CSSProperties | undefined;\n if (prevStyle?.height !== nextStyle?.height) return false;\n if (prevStyle?.transform !== nextStyle?.transform) return false;\n if (prevProps['data-highlighted'] !== nextProps['data-highlighted']) return false;\n if (prevProps.tabIndex !== nextProps.tabIndex) return false;\n if (prevProps.id !== nextProps.id) return false;\n if (prevProps.className !== nextProps.className) return false;\n if (prevProps.children !== nextProps.children) return false;\n return true;\n});\n\n// ============================================================================\n// Exports\n// ============================================================================\n\nconst VirtualMenu = Object.assign(VirtualMenuRoot, {\n Item: VirtualMenuItem,\n});\n\nexport { VirtualMenu };\nexport type { VirtualMenuProps, VirtualMenuItemProps, VirtualMenuRenderItemProps };\n", "'use client';\n\nimport * as React from 'react';\n\nimport { useThemeContext } from '../theme.js';\nimport { useResolvedResponsiveValue } from './base-menu.utils.js';\n\nimport type { Responsive } from '../../props/prop-def.js';\n\n/**\n * Context to detect if a component is rendered inside a menu (DropdownMenu, ContextMenu, etc.)\n * Used by VirtualMenu to adjust its behavior:\n * - Skip role=\"menu\" when inside a parent menu (parent owns the role)\n * - Delegate certain keyboard handling to parent\n * - Use the correct item height based on menu size\n */\n\nexport type MenuSize = '1' | '2';\n\ninterface MenuContextValue {\n /** Whether we're inside a menu that owns the menu role */\n isInsideMenu: boolean;\n /** Menu size for the current breakpoint */\n size?: MenuSize;\n /** Item height in px for the current size and theme scaling */\n itemHeight?: number;\n}\n\nconst MenuContext = React.createContext<MenuContextValue>({ isInsideMenu: false });\n\ninterface MenuProviderProps {\n children: React.ReactNode;\n /** Menu size passed from parent (DropdownMenu.Content, ContextMenu.Content, etc.) */\n size?: Responsive<MenuSize>;\n}\n\n/** Map menu size to item height in pixels at 100% scaling */\nexport const menuSizeToItemHeight: Record<MenuSize, number> = {\n '1': 24, // --space-5\n '2': 32, // --space-6\n};\n\n/** Item height in px for a size at the given theme scaling (\"100%\", \"110%\"\u2026). */\nexport function getMenuItemHeight(size: MenuSize, scaling: string | undefined): number {\n const scale = scaling ? parseFloat(scaling) / 100 : 1;\n return menuSizeToItemHeight[size] * (Number.isFinite(scale) ? scale : 1);\n}\n\nexport function MenuProvider({ children, size }: MenuProviderProps) {\n const resolvedSize = useResolvedResponsiveValue<MenuSize | undefined>(size, undefined);\n const { scaling } = useThemeContext();\n const itemHeight = resolvedSize ? getMenuItemHeight(resolvedSize, scaling) : undefined;\n const value = React.useMemo(\n () => ({ isInsideMenu: true, size: resolvedSize, itemHeight }),\n [resolvedSize, itemHeight],\n );\n return <MenuContext.Provider value={value}>{children}</MenuContext.Provider>;\n}\n\nexport function useMenuContext() {\n return React.useContext(MenuContext);\n}\n", "'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { Direction, Slot, Tooltip as TooltipPrimitive } from 'radix-ui';\nimport { useComposedRefs, useLayoutEffect } from 'radix-ui/internal';\n\nimport { getMatchingGrayColor } from '../helpers/get-matching-gray-color.js';\nimport { usePropSyncedState } from '../hooks/use-prop-synced-state.js';\nimport { useDeprecatedPanelBackgroundWarning } from '../helpers/use-deprecation-warning.js';\nimport { themePropDefs } from './theme.props.js';\n\nimport type { ThemeOwnProps } from './theme.props.js';\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\n\nconst noop = () => {};\n\ntype ThemeAppearance = (typeof themePropDefs.appearance.values)[number];\ntype ThemeAccentColor = (typeof themePropDefs.accentColor.values)[number];\ntype ThemeGrayColor = (typeof themePropDefs.grayColor.values)[number];\ntype ThemeMaterial = (typeof themePropDefs.material.values)[number];\ntype ThemePanelBackground = (typeof themePropDefs.panelBackground.values)[number];\ntype ThemeRadius = (typeof themePropDefs.radius.values)[number];\ntype ThemeScaling = (typeof themePropDefs.scaling.values)[number];\ntype ThemeFontFamily = (typeof themePropDefs.fontFamily.values)[number];\n// Headings follow the body font until something sets this, so `undefined` is a\n// meaningful value here rather than a missing one.\ntype ThemeHeadingFontFamily = ThemeFontFamily | undefined;\n\ninterface ThemeChangeHandlers {\n onAppearanceChange: (appearance: ThemeAppearance) => void;\n onAccentColorChange: (accentColor: ThemeAccentColor) => void;\n onGrayColorChange: (grayColor: ThemeGrayColor) => void;\n onMaterialChange: (material: ThemeMaterial) => void;\n onPanelBackgroundChange: (panelBackground: ThemePanelBackground) => void;\n onRadiusChange: (radius: ThemeRadius) => void;\n onScalingChange: (scaling: ThemeScaling) => void;\n onFontFamilyChange: (fontFamily: ThemeFontFamily) => void;\n onHeadingFontFamilyChange: (headingFontFamily: ThemeHeadingFontFamily) => void;\n}\n\ninterface ThemeContextValue extends ThemeChangeHandlers {\n appearance: ThemeAppearance;\n accentColor: ThemeAccentColor;\n grayColor: ThemeGrayColor;\n resolvedGrayColor: ThemeGrayColor;\n material: ThemeMaterial;\n panelBackground: ThemePanelBackground;\n radius: ThemeRadius;\n scaling: ThemeScaling;\n fontFamily: ThemeFontFamily;\n headingFontFamily: ThemeHeadingFontFamily;\n}\n// Default theme values used when components render outside a Theme provider\nconst defaultThemeContext: ThemeContextValue = {\n appearance: themePropDefs.appearance.default,\n accentColor: themePropDefs.accentColor.default,\n grayColor: themePropDefs.grayColor.default,\n resolvedGrayColor: themePropDefs.grayColor.default,\n material: themePropDefs.material.default,\n panelBackground: themePropDefs.panelBackground.default,\n radius: themePropDefs.radius.default,\n scaling: themePropDefs.scaling.default,\n fontFamily: themePropDefs.fontFamily.default,\n headingFontFamily: undefined,\n onAppearanceChange: noop,\n onAccentColorChange: noop,\n onGrayColorChange: noop,\n onMaterialChange: noop,\n onPanelBackgroundChange: noop,\n onRadiusChange: noop,\n onScalingChange: noop,\n onFontFamilyChange: noop,\n onHeadingFontFamilyChange: noop,\n};\n\nconst ThemeContext = React.createContext<ThemeContextValue | undefined>(undefined);\n\nfunction useThemeContext() {\n const context = React.useContext(ThemeContext);\n // Return default context if used outside Theme provider (e.g., during SSR)\n return context ?? defaultThemeContext;\n}\n\ninterface ThemeProps extends ThemeImplPublicProps {}\nconst Theme = React.forwardRef<ThemeImplElement, ThemeProps>((props, forwardedRef) => {\n const context = React.useContext(ThemeContext);\n const isRoot = context === undefined;\n if (isRoot) {\n return (\n <TooltipPrimitive.Provider delayDuration={200}>\n <Direction.Provider dir=\"ltr\">\n <ThemeRoot {...props} ref={forwardedRef} />\n </Direction.Provider>\n </TooltipPrimitive.Provider>\n );\n }\n return <ThemeImpl {...props} ref={forwardedRef} />;\n});\nTheme.displayName = 'Theme';\n\nconst ThemeRoot = React.forwardRef<ThemeImplElement, ThemeImplPublicProps>(\n (props, forwardedRef) => {\n const {\n appearance: appearanceProp = themePropDefs.appearance.default,\n accentColor: accentColorProp = themePropDefs.accentColor.default,\n grayColor: grayColorProp = themePropDefs.grayColor.default,\n material: materialProp = themePropDefs.material.default,\n panelBackground: panelBackgroundProp = themePropDefs.panelBackground.default,\n radius: radiusProp = themePropDefs.radius.default,\n scaling: scalingProp = themePropDefs.scaling.default,\n fontFamily: fontFamilyProp = themePropDefs.fontFamily.default,\n headingFontFamily: headingFontFamilyProp,\n hasBackground = themePropDefs.hasBackground.default,\n ...rootProps\n } = props;\n\n useDeprecatedPanelBackgroundWarning(props.panelBackground);\n\n // Each of these follows its prop but stays independently settable, so\n // `ThemePanel` can change the theme at runtime. Syncing during render\n // rather than in an effect matters here: an effect would commit the old\n // theme first and re-render every consumer of the context a second time.\n const [appearance, setAppearance] = usePropSyncedState(appearanceProp);\n const [accentColor, setAccentColor] = usePropSyncedState(accentColorProp);\n const [grayColor, setGrayColor] = usePropSyncedState(grayColorProp);\n\n // Material takes precedence over panelBackground\n const effectiveMaterial =\n materialProp !== themePropDefs.material.default ? materialProp : panelBackgroundProp;\n const [material, setMaterial] = usePropSyncedState(effectiveMaterial);\n\n // Keep panelBackground in sync with material for backward compatibility\n const [panelBackground, setPanelBackground] = usePropSyncedState(material);\n\n const [radius, setRadius] = usePropSyncedState(radiusProp);\n const [scaling, setScaling] = usePropSyncedState(scalingProp);\n const [fontFamily, setFontFamily] = usePropSyncedState(fontFamilyProp);\n const [headingFontFamily, setHeadingFontFamily] = usePropSyncedState(headingFontFamilyProp);\n\n return (\n <ThemeImpl\n {...rootProps}\n ref={forwardedRef}\n isRoot\n hasBackground={hasBackground}\n //\n appearance={appearance}\n accentColor={accentColor}\n grayColor={grayColor}\n material={material}\n panelBackground={panelBackground}\n radius={radius}\n scaling={scaling}\n fontFamily={fontFamily}\n headingFontFamily={headingFontFamily}\n //\n onAppearanceChange={setAppearance}\n onAccentColorChange={setAccentColor}\n onGrayColorChange={setGrayColor}\n onMaterialChange={setMaterial}\n onPanelBackgroundChange={setPanelBackground}\n onRadiusChange={setRadius}\n onScalingChange={setScaling}\n onFontFamilyChange={setFontFamily}\n onHeadingFontFamilyChange={setHeadingFontFamily}\n />\n );\n },\n);\nThemeRoot.displayName = 'ThemeRoot';\n\ntype ThemeImplElement = React.ElementRef<'div'>;\ninterface ThemeImplProps extends ThemeImplPublicProps, ThemeImplPrivateProps {}\ninterface ThemeImplPublicProps\n extends ComponentPropsWithout<'div', RemovedProps | 'dir'>,\n ThemeOwnProps {}\ninterface ThemeImplPrivateProps extends Partial<ThemeChangeHandlers> {\n isRoot?: boolean;\n}\nfunction getClientOS(): 'windows' | 'macos' | 'linux' | undefined {\n if (typeof navigator === 'undefined') return undefined;\n const ua = navigator.userAgent;\n if (ua.includes('Win')) return 'windows';\n if (ua.includes('Mac')) return 'macos';\n if (ua.includes('Linux')) return 'linux';\n return undefined;\n}\n\nconst ThemeImpl = React.forwardRef<ThemeImplElement, ThemeImplProps>((props, forwardedRef) => {\n const context = React.useContext(ThemeContext);\n const {\n asChild,\n isRoot,\n hasBackground: hasBackgroundProp,\n //\n appearance = props.appearance ?? context?.appearance ?? themePropDefs.appearance.default,\n accentColor = props.accentColor ?? context?.accentColor ?? themePropDefs.accentColor.default,\n grayColor = props.grayColor ?? context?.resolvedGrayColor ?? themePropDefs.grayColor.default,\n material = props.material ?? context?.material ?? themePropDefs.material.default,\n panelBackground = props.panelBackground ??\n context?.panelBackground ??\n themePropDefs.panelBackground.default,\n radius = props.radius ?? context?.radius ?? themePropDefs.radius.default,\n scaling = props.scaling ?? context?.scaling ?? themePropDefs.scaling.default,\n fontFamily = props.fontFamily ?? context?.fontFamily ?? themePropDefs.fontFamily.default,\n headingFontFamily = props.headingFontFamily ?? context?.headingFontFamily,\n //\n onAppearanceChange = noop,\n onAccentColorChange = noop,\n onGrayColorChange = noop,\n onMaterialChange = noop,\n onPanelBackgroundChange = noop,\n onRadiusChange = noop,\n onScalingChange = noop,\n onFontFamilyChange = noop,\n onHeadingFontFamilyChange = noop,\n //\n ...themeProps\n } = props;\n const Comp = asChild ? Slot.Root : 'div';\n const resolvedGrayColor = grayColor === 'auto' ? getMatchingGrayColor(accentColor) : grayColor;\n const isExplicitAppearance = props.appearance === 'light' || props.appearance === 'dark';\n const hasBackground =\n hasBackgroundProp === undefined ? isRoot || isExplicitAppearance : hasBackgroundProp;\n\n // `data-os` can only be resolved on the client. Writing it straight to the\n // DOM keeps it out of the server markup \u2014 so hydration still matches \u2014 without\n // spending a render pass, and a state update here would re-render the whole\n // application on mount.\n const rootRef = React.useRef<ThemeImplElement>(null);\n const composedRef = useComposedRefs(forwardedRef, rootRef);\n const hasExplicitOS = 'data-os' in themeProps;\n\n useLayoutEffect(() => {\n if (!isRoot || hasExplicitOS) return;\n const node = rootRef.current;\n if (!node) return;\n\n const os = getClientOS();\n if (!os) return;\n node.setAttribute('data-os', os);\n return () => node.removeAttribute('data-os');\n }, [isRoot, hasExplicitOS]);\n\n return (\n <ThemeContext.Provider\n value={React.useMemo(\n () => ({\n appearance,\n accentColor,\n grayColor,\n resolvedGrayColor,\n material,\n panelBackground,\n radius,\n scaling,\n fontFamily,\n headingFontFamily,\n //\n onAppearanceChange,\n onAccentColorChange,\n onGrayColorChange,\n onMaterialChange,\n onPanelBackgroundChange,\n onRadiusChange,\n onScalingChange,\n onFontFamilyChange,\n onHeadingFontFamilyChange,\n }),\n [\n appearance,\n accentColor,\n grayColor,\n resolvedGrayColor,\n material,\n panelBackground,\n radius,\n scaling,\n fontFamily,\n headingFontFamily,\n //\n onAppearanceChange,\n onAccentColorChange,\n onGrayColorChange,\n onMaterialChange,\n onPanelBackgroundChange,\n onRadiusChange,\n onScalingChange,\n onFontFamilyChange,\n onHeadingFontFamilyChange,\n ],\n )}\n >\n <Comp\n data-is-root-theme={isRoot ? 'true' : 'false'}\n data-accent-color={accentColor}\n data-gray-color={resolvedGrayColor}\n // for nested `Theme` background\n data-has-background={hasBackground ? 'true' : 'false'}\n data-material={material}\n data-panel-background={panelBackground}\n data-radius={radius}\n data-scaling={scaling}\n data-font-family={fontFamily}\n data-heading-font-family={headingFontFamily}\n ref={composedRef}\n {...themeProps}\n className={classNames(\n 'radix-themes',\n {\n light: appearance === 'light',\n dark: appearance === 'dark',\n },\n themeProps.className,\n )}\n />\n </ThemeContext.Provider>\n );\n});\nThemeImpl.displayName = 'ThemeImpl';\n\nexport { Theme, ThemeContext, useThemeContext };\nexport type { ThemeProps, ThemeContextValue };\n", "import type { accentColors } from '../props/color.prop.js';\n\ntype ThemeAccentColor = (typeof accentColors)[number];\n\nexport function getMatchingGrayColor(accentColor: ThemeAccentColor) {\n switch (accentColor) {\n case 'tomato':\n case 'red':\n case 'ruby':\n case 'crimson':\n case 'pink':\n case 'plum':\n case 'purple':\n case 'violet':\n return 'mauve';\n case 'iris':\n case 'indigo':\n case 'blue':\n case 'sky':\n case 'cyan':\n return 'slate';\n case 'teal':\n case 'jade':\n case 'mint':\n case 'green':\n return 'sage';\n case 'grass':\n case 'lime':\n return 'olive';\n case 'yellow':\n case 'amber':\n case 'orange':\n case 'brown':\n case 'gold':\n case 'bronze':\n return 'sand';\n case 'gray':\n return 'gray';\n }\n}\n", "import * as React from 'react';\n\n/**\n * State that tracks a prop but can also be set imperatively \u2014 the shape `Theme`\n * needs, where a prop sets the value and `ThemePanel` can change it at runtime.\n *\n * Adjusts state during render rather than syncing in a `useEffect`. An effect\n * would commit one render carrying the *old* value and schedule a second one,\n * which for a provider means every consumer renders twice and the browser can\n * paint the stale value in between.\n *\n * @see https://react.dev/reference/react/useState#storing-information-from-previous-renders\n */\nexport function usePropSyncedState<T>(propValue: T) {\n const [value, setValue] = React.useState(propValue);\n const [previousPropValue, setPreviousPropValue] = React.useState(propValue);\n\n if (!Object.is(propValue, previousPropValue)) {\n setPreviousPropValue(propValue);\n setValue(propValue);\n }\n\n return [value, setValue] as const;\n}\n", "import * as React from 'react';\n\nconst PANEL_BACKGROUND_MESSAGE = 'Warning: The `panelBackground` prop is deprecated and will be removed in a future version. Use `material` prop instead.';\n\nconst warned = new Set<string>();\n\nfunction warnOnce(message: string) {\n if (warned.has(message)) return;\n warned.add(message);\n console.warn(message);\n}\n\n/**\n * Warns, in development only, that `panelBackground` is deprecated.\n *\n * The `process.env.NODE_ENV` check is a compile-time constant, so a production\n * bundle minifies the effect body away to an empty function instead of reading\n * props and formatting a message per mounted component. The message is also\n * logged once per session rather than once per component instance.\n */\nexport function useDeprecatedPanelBackgroundWarning(panelBackground: unknown) {\n React.useEffect(() => {\n if (process.env.NODE_ENV === 'production') return;\n if (panelBackground !== undefined) warnOnce(PANEL_BACKGROUND_MESSAGE);\n }, [panelBackground]);\n}\n", "import type { PropDef } from './prop-def.js';\n\nconst asChildPropDef = {\n /**\n * Composes the component into its immediate child instead of rendering its own HTML element.\n * You\u2019ll have to provide a single React Element child.\n */\n asChild: {\n type: 'boolean',\n },\n} satisfies {\n asChild: PropDef<boolean>;\n};\n\nexport { asChildPropDef };\n", "import type { PropDef } from './prop-def.js';\n\n// prettier-ignore\nconst accentColors = ['gray', 'gold', 'bronze', 'brown', 'yellow', 'amber', 'orange', 'tomato', 'red', 'ruby', 'crimson', 'pink', 'plum', 'purple', 'violet', 'iris', 'indigo', 'blue', 'cyan', 'teal', 'jade', 'green', 'grass', 'lime', 'mint', 'sky'] as const;\n\nconst grayColors = ['auto', 'gray', 'mauve', 'slate', 'sage', 'olive', 'sand'] as const;\n\nconst colorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: undefined as (typeof accentColors)[number] | undefined,\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// 1. When used on components that compose Text, sets the color of the text to the current accent.\n// 2. Defines accent color for descendant text components\u00A0with `highContrast={true}`.\nconst accentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: '' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\nexport {\n accentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import type { PropDef } from './prop-def.js';\n\nconst radii = ['none', 'small', 'medium', 'large', 'full'] as const;\n\nconst radiusPropDef = {\n radius: {\n type: 'enum',\n values: radii,\n default: undefined,\n },\n} satisfies {\n radius: PropDef<(typeof radii)[number]>;\n};\n\nexport { radiusPropDef, radii };\n", "import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColors, grayColors } from '../props/color.prop.js';\nimport { radii } from '../props/radius.prop.js';\n\nimport type { GetPropDefTypes, PropDef } from '../props/prop-def.js';\n\nconst appearances = ['inherit', 'light', 'dark'] as const;\nconst panelBackgrounds = ['solid', 'translucent'] as const;\nconst materials = ['solid', 'translucent'] as const;\nconst scalings = ['90%', '95%', '100%', '105%', '110%'] as const;\nconst fontFamilies = ['sans', 'mono', 'serif'] as const;\n\nconst themePropDefs = {\n ...asChildPropDef,\n /**\n * Whether to apply background color to the Theme element.\n *\n * Defaults to true for the root Theme and for Theme elements that\n * have an explicit light or dark appearance prop.\n */\n hasBackground: { type: 'boolean', default: true },\n /**\n * Sets the color scheme of the theme, typcially referred to as light and dark mode.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/dark-mode\n */\n appearance: { type: 'enum', values: appearances, default: 'inherit' },\n /**\n * Selects one of the accent color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n accentColor: { type: 'enum', values: accentColors, default: 'blue' },\n /**\n * Selects one of the gray color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n grayColor: { type: 'enum', values: grayColors, default: 'slate' },\n /**\n * Controls whether to use a solid or translucent background color on panelled\n * elements such as Card or Table is solid or translucent.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n material: { type: 'enum', values: materials, default: 'translucent' },\n /**\n * Controls whether to use a solid or translucent background color on panelled\n * elements such as Card or Table is solid or translucent.\n *\n * @deprecated Use `material` prop instead. This prop will be removed in a future version.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n panelBackground: { type: 'enum', values: panelBackgrounds, default: 'translucent' },\n /**\n * Sets the default radius of the components.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n radius: { type: 'enum', values: radii, default: 'full' },\n /**\n * Sets a scaling multiplier for values like spacing, font sizes, line heights, etc. are scaled.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/layout\n */\n scaling: { type: 'enum', values: scalings, default: '100%' },\n /**\n * Sets the font family used for body text in the theme.\n *\n * Headings follow this unless `headingFontFamily` (or the `--font-heading`\n * token) says otherwise.\n *\n * @default 'sans'\n */\n fontFamily: { type: 'enum', values: fontFamilies, default: 'sans' },\n /**\n * Sets the font family used for `Heading`, independently of body text.\n *\n * Deliberately has no default: when it is left unset no attribute is\n * emitted and `--font-heading` keeps following `--font-body`, so a\n * `--font-heading` override in your own CSS survives a `fontFamily` switch.\n */\n headingFontFamily: { type: 'enum', values: fontFamilies },\n} satisfies {\n hasBackground: PropDef<boolean>;\n appearance: PropDef<(typeof appearances)[number]>;\n accentColor: PropDef<(typeof accentColors)[number]>;\n grayColor: PropDef<(typeof grayColors)[number]>;\n material: PropDef<(typeof materials)[number]>;\n panelBackground: PropDef<(typeof panelBackgrounds)[number]>;\n radius: PropDef<(typeof radii)[number]>;\n scaling: PropDef<(typeof scalings)[number]>;\n fontFamily: PropDef<(typeof fontFamilies)[number]>;\n headingFontFamily: PropDef<(typeof fontFamilies)[number]>;\n};\n\ntype ThemeOwnProps = GetPropDefTypes<typeof themePropDefs & typeof asChildPropDef>;\n\nexport { themePropDefs };\nexport type { ThemeOwnProps };\n"],
4
+ "sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useVirtualizer } from '@tanstack/react-virtual';\nimport { useMenuContext, getMenuItemHeight } from './_internal/menu-context.js';\nimport { useThemeContext } from './theme.js';\n\n/**\n * VirtualMenu - A virtualized menu component for rendering large lists efficiently.\n *\n * Uses TanStack Virtual to render only visible items.\n * Works inside any container (DropdownMenu.Content, Popover.Content, etc.)\n *\n * @example\n * // Simple usage with itemLabel\n * <VirtualMenu\n * items={items}\n * itemLabel={(item) => item.name}\n * onSelect={handleSelect}\n * />\n *\n * @example\n * // Custom rendering with renderItem\n * const UserItem = React.memo(({ item, ...props }) => (\n * <VirtualMenu.Item {...props}>\n * <Avatar src={item.avatar} />\n * {item.name}\n * </VirtualMenu.Item>\n * ));\n *\n * <VirtualMenu items={users} renderItem={UserItem} onSelect={handleSelect} />\n */\n\n// ============================================================================\n// Types\n// ============================================================================\n\n/** Props passed to custom renderItem components */\ninterface VirtualMenuRenderItemProps<T> {\n /** The item data */\n item: T;\n /** Index in the items array */\n index: number;\n /** Whether this item is currently highlighted */\n isHighlighted: boolean;\n /** Unique ID for accessibility */\n id: string;\n /** Positioning styles - must be applied */\n style: React.CSSProperties;\n /** Tab index for focus management */\n tabIndex: number;\n /** Data attribute for CSS styling */\n 'data-highlighted': true | undefined;\n /** Data attribute for event delegation */\n 'data-index': number;\n /** Mouse enter handler */\n onMouseEnter: (e: React.MouseEvent<HTMLElement>) => void;\n /** Mouse leave handler */\n onMouseLeave: () => void;\n /** Click handler */\n onClick: (e: React.MouseEvent<HTMLElement>) => void;\n /** Keyboard handler for Enter/Space activation */\n onKeyDown: (e: React.KeyboardEvent<HTMLElement>) => void;\n}\n\ninterface VirtualMenuProps<T> {\n /** Array of items to render */\n items: T[];\n /**\n * Simple label accessor for basic text items.\n * Can be a property key or a function.\n * @example\n * itemLabel=\"name\"\n * itemLabel={(item) => item.name}\n */\n itemLabel?: keyof T | ((item: T) => React.ReactNode);\n /**\n * Custom component for rendering items.\n * Must be memoized (React.memo) for optimal performance.\n * @example\n * const MyItem = React.memo(({ item, ...props }) => (\n * <VirtualMenu.Item {...props}>{item.name}</VirtualMenu.Item>\n * ));\n * <VirtualMenu items={items} renderItem={MyItem} />\n */\n renderItem?: React.ComponentType<VirtualMenuRenderItemProps<T>>;\n /**\n * Menu size - controls item height.\n * Automatically inherited from parent DropdownMenu.Content/ContextMenu.Content.\n * Only set manually when using VirtualMenu outside of a menu context.\n * @default '2' (or inherited from context)\n */\n size?: '1' | '2';\n /**\n * Estimated height of each item in pixels.\n * Can be a number (same for all) or a function (per-item).\n * Usually not needed - height is automatically derived from size prop/context.\n * Use this only for custom item heights (e.g., variable height items).\n */\n estimatedItemSize?: number | ((index: number) => number);\n /** Number of items to render outside visible area */\n overscan?: number;\n /** Callback when an item is selected */\n onSelect?: (item: T, index: number) => void;\n /** Additional class name */\n className?: string;\n /** Additional styles */\n style?: React.CSSProperties;\n /** Accessible label for the menu */\n 'aria-label'?: string;\n}\n\n// ============================================================================\n// Internal Memoized Item Component\n// ============================================================================\n\ninterface SimpleItemProps {\n label: React.ReactNode;\n isHighlighted: boolean;\n id: string;\n style: React.CSSProperties;\n tabIndex: number;\n 'data-highlighted': true | undefined;\n 'data-index': number;\n onMouseEnter: (e: React.MouseEvent<HTMLElement>) => void;\n onMouseLeave: () => void;\n onClick: (e: React.MouseEvent<HTMLElement>) => void;\n onKeyDown: (e: React.KeyboardEvent<HTMLElement>) => void;\n}\n\nconst SimpleItem = React.memo(\n function SimpleItem({\n label,\n isHighlighted: _isHighlighted,\n id,\n style,\n tabIndex,\n 'data-highlighted': dataHighlighted,\n 'data-index': dataIndex,\n onMouseEnter,\n onMouseLeave,\n onClick,\n onKeyDown,\n }: SimpleItemProps) {\n return (\n <div\n id={id}\n role=\"menuitem\"\n className={classNames('rt-reset', 'rt-BaseMenuItem', 'rt-VirtualMenuItem')}\n style={style}\n tabIndex={tabIndex}\n data-highlighted={dataHighlighted}\n data-index={dataIndex}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n onClick={onClick}\n onKeyDown={onKeyDown}\n >\n {label}\n </div>\n );\n },\n (prev, next) => {\n // Custom comparison - only re-render if these change\n if (prev.label !== next.label) return false;\n if (prev['data-highlighted'] !== next['data-highlighted']) return false;\n if (prev.style.height !== next.style.height) return false;\n if (prev.style.transform !== next.style.transform) return false;\n if (prev.tabIndex !== next.tabIndex) return false;\n if (prev.id !== next.id) return false;\n // Event handlers are stable, skip comparison\n return true;\n },\n);\n\n// ============================================================================\n// VirtualMenu Component\n// ============================================================================\n\nfunction VirtualMenuRoot<T>({\n items,\n itemLabel,\n renderItem: RenderItem,\n size: sizeProp,\n estimatedItemSize: estimatedItemSizeProp,\n overscan = 5,\n onSelect,\n className,\n style,\n 'aria-label': ariaLabel,\n}: VirtualMenuProps<T>) {\n const menuId = React.useId();\n const parentRef = React.useRef<HTMLDivElement>(null);\n const [highlightedIndex, setHighlightedIndex] = React.useState<number>(-1);\n const { isInsideMenu, size: contextSize, itemHeight: contextItemHeight } = useMenuContext();\n const { scaling } = useThemeContext();\n\n // Resolve item height: explicit prop > own size > parent menu > default size '2'.\n // Heights follow the theme scaling, like the --base-menu-item-height token.\n const estimatedItemSize =\n estimatedItemSizeProp ??\n (sizeProp\n ? getMenuItemHeight(sizeProp, scaling)\n : (contextItemHeight ?? getMenuItemHeight(contextSize ?? '2', scaling)));\n\n // Validate props\n if (!itemLabel && !RenderItem) {\n throw new Error('VirtualMenu requires either itemLabel or renderItem prop');\n }\n\n // Normalize itemLabel to a function\n const getLabel = React.useMemo(() => {\n if (!itemLabel) return null;\n if (typeof itemLabel === 'function') return itemLabel;\n return (item: T) => item[itemLabel] as React.ReactNode;\n }, [itemLabel]);\n\n // Derive safe highlighted index\n const safeHighlightedIndex = React.useMemo(() => {\n if (items.length === 0) return -1;\n if (highlightedIndex < 0) return -1;\n return Math.min(highlightedIndex, items.length - 1);\n }, [highlightedIndex, items.length]);\n\n // Normalize estimatedItemSize to a function\n const getItemSize = React.useMemo(\n () =>\n typeof estimatedItemSize === 'function'\n ? estimatedItemSize\n : () => estimatedItemSize,\n [estimatedItemSize],\n );\n\n const virtualizer = useVirtualizer({\n count: items.length,\n getScrollElement: () => parentRef.current,\n estimateSize: getItemSize,\n overscan,\n });\n\n const virtualItems = virtualizer.getVirtualItems();\n\n // Refs for stable handler references\n const itemsRef = React.useRef(items);\n const onSelectRef = React.useRef(onSelect);\n itemsRef.current = items;\n onSelectRef.current = onSelect;\n\n const scrollToIndexRef = React.useRef(virtualizer.scrollToIndex);\n scrollToIndexRef.current = virtualizer.scrollToIndex;\n\n const highlightedIndexRef = React.useRef(safeHighlightedIndex);\n highlightedIndexRef.current = safeHighlightedIndex;\n\n // Stable event handlers\n const handleItemMouseEnter = React.useCallback((e: React.MouseEvent<HTMLElement>) => {\n const index = e.currentTarget.dataset.index;\n if (index != null) {\n setHighlightedIndex(Number(index));\n }\n }, []);\n\n const handleItemClick = React.useCallback((e: React.MouseEvent<HTMLElement>) => {\n const index = e.currentTarget.dataset.index;\n if (index != null) {\n const idx = Number(index);\n const currentItems = itemsRef.current;\n if (idx >= 0 && idx < currentItems.length) {\n onSelectRef.current?.(currentItems[idx], idx);\n }\n }\n }, []);\n\n const noop = React.useCallback(() => {}, []);\n\n // Item-level keyboard handler for Enter/Space activation (satisfies a11y lint rule)\n const handleItemKeyDown = React.useCallback((e: React.KeyboardEvent<HTMLElement>) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n const index = e.currentTarget.dataset.index;\n if (index != null) {\n const idx = Number(index);\n const currentItems = itemsRef.current;\n if (idx >= 0 && idx < currentItems.length) {\n onSelectRef.current?.(currentItems[idx], idx);\n }\n }\n }\n }, []);\n\n // Keyboard navigation\n const handleKeyDown = React.useCallback((e: React.KeyboardEvent) => {\n const currentItems = itemsRef.current;\n const currentHighlightedIndex = highlightedIndexRef.current;\n\n switch (e.key) {\n case 'ArrowDown': {\n e.preventDefault();\n const nextIndex =\n currentHighlightedIndex < currentItems.length - 1 ? currentHighlightedIndex + 1 : 0;\n setHighlightedIndex(nextIndex);\n scrollToIndexRef.current(nextIndex, { align: 'auto' });\n break;\n }\n case 'ArrowUp': {\n e.preventDefault();\n const prevIndex =\n currentHighlightedIndex > 0 ? currentHighlightedIndex - 1 : currentItems.length - 1;\n setHighlightedIndex(prevIndex);\n scrollToIndexRef.current(prevIndex, { align: 'auto' });\n break;\n }\n case 'Home': {\n e.preventDefault();\n setHighlightedIndex(0);\n scrollToIndexRef.current(0, { align: 'start' });\n break;\n }\n case 'End': {\n e.preventDefault();\n const lastIndex = currentItems.length - 1;\n setHighlightedIndex(lastIndex);\n scrollToIndexRef.current(lastIndex, { align: 'end' });\n break;\n }\n case 'Enter':\n case ' ': {\n e.preventDefault();\n if (currentHighlightedIndex >= 0 && currentHighlightedIndex < currentItems.length) {\n onSelectRef.current?.(currentItems[currentHighlightedIndex], currentHighlightedIndex);\n }\n break;\n }\n case 'Tab': {\n e.preventDefault();\n break;\n }\n case 'Escape': {\n (e.currentTarget as HTMLElement).blur();\n break;\n }\n }\n }, []);\n\n // Item ID generator\n const getItemId = React.useCallback(\n (index: number) => `${menuId}-item-${index}`,\n [menuId],\n );\n\n // Memoize styles\n const rootStyle = React.useMemo(\n () => ({\n overflow: 'auto' as const,\n position: 'relative' as const,\n ...style,\n }),\n [style],\n );\n\n const totalSize = virtualizer.getTotalSize();\n const viewportStyle = React.useMemo(\n () => ({\n height: `${totalSize}px`,\n width: '100%' as const,\n position: 'relative' as const,\n }),\n [totalSize],\n );\n\n return (\n <div\n ref={parentRef}\n role={isInsideMenu ? 'group' : 'menu'}\n aria-label={ariaLabel}\n aria-activedescendant={safeHighlightedIndex >= 0 ? getItemId(safeHighlightedIndex) : undefined}\n tabIndex={0}\n onKeyDown={handleKeyDown}\n className={classNames('rt-VirtualMenuRoot', className)}\n style={rootStyle}\n >\n <div className=\"rt-VirtualMenuViewport\" style={viewportStyle}>\n {virtualItems.map((virtualRow) => {\n const item = items[virtualRow.index];\n const index = virtualRow.index;\n const isHighlighted = safeHighlightedIndex === index;\n\n const itemStyle: React.CSSProperties = {\n height: virtualRow.size,\n transform: `translateY(${virtualRow.start}px)`,\n };\n\n const commonProps = {\n id: getItemId(index),\n isHighlighted,\n style: itemStyle,\n tabIndex: isHighlighted ? 0 : -1,\n 'data-highlighted': isHighlighted ? true as const : undefined,\n 'data-index': index,\n onMouseEnter: handleItemMouseEnter,\n onMouseLeave: noop,\n onClick: handleItemClick,\n onKeyDown: handleItemKeyDown,\n };\n\n // Use renderItem if provided, otherwise use SimpleItem with itemLabel\n if (RenderItem) {\n return (\n <RenderItem\n key={virtualRow.key}\n item={item}\n index={index}\n {...commonProps}\n />\n );\n }\n\n return (\n <SimpleItem\n key={virtualRow.key}\n label={getLabel!(item)}\n {...commonProps}\n />\n );\n })}\n </div>\n </div>\n );\n}\n\nVirtualMenuRoot.displayName = 'VirtualMenu';\n\n// ============================================================================\n// VirtualMenu.Item Component (for custom renderItem usage)\n// ============================================================================\n\ninterface VirtualMenuItemProps extends React.ComponentPropsWithoutRef<'div'> {\n children: React.ReactNode;\n /** Data attribute for highlight styling */\n 'data-highlighted'?: true | undefined;\n /** Data attribute for event delegation */\n 'data-index'?: number;\n}\n\nconst VirtualMenuItemInner = React.forwardRef<HTMLDivElement, VirtualMenuItemProps>(\n ({ className, children, ...props }, forwardedRef) => {\n return (\n <div\n ref={forwardedRef}\n role=\"menuitem\"\n className={classNames('rt-reset', 'rt-BaseMenuItem', 'rt-VirtualMenuItem', className)}\n {...props}\n >\n {children}\n </div>\n );\n },\n);\n\nVirtualMenuItemInner.displayName = 'VirtualMenu.Item';\n\n// Memoized with custom comparison\nconst VirtualMenuItem = React.memo(VirtualMenuItemInner, (prevProps, nextProps) => {\n const prevStyle = prevProps.style as React.CSSProperties | undefined;\n const nextStyle = nextProps.style as React.CSSProperties | undefined;\n if (prevStyle?.height !== nextStyle?.height) return false;\n if (prevStyle?.transform !== nextStyle?.transform) return false;\n if (prevProps['data-highlighted'] !== nextProps['data-highlighted']) return false;\n if (prevProps.tabIndex !== nextProps.tabIndex) return false;\n if (prevProps.id !== nextProps.id) return false;\n if (prevProps.className !== nextProps.className) return false;\n if (prevProps.children !== nextProps.children) return false;\n return true;\n});\n\n// ============================================================================\n// Exports\n// ============================================================================\n\nconst VirtualMenu = Object.assign(VirtualMenuRoot, {\n Item: VirtualMenuItem,\n});\n\nexport { VirtualMenu };\nexport type { VirtualMenuProps, VirtualMenuItemProps, VirtualMenuRenderItemProps };\n", "'use client';\n\nimport * as React from 'react';\n\nimport { useThemeContext } from '../theme.js';\nimport { useResolvedResponsiveValue } from './base-menu.utils.js';\n\nimport type { Responsive } from '../../props/prop-def.js';\n\n/**\n * Context to detect if a component is rendered inside a menu (DropdownMenu, ContextMenu, etc.)\n * Used by VirtualMenu to adjust its behavior:\n * - Skip role=\"menu\" when inside a parent menu (parent owns the role)\n * - Delegate certain keyboard handling to parent\n * - Use the correct item height based on menu size\n */\n\nexport type MenuSize = '1' | '2';\n\ninterface MenuContextValue {\n /** Whether we're inside a menu that owns the menu role */\n isInsideMenu: boolean;\n /** Menu size for the current breakpoint */\n size?: MenuSize;\n /** Item height in px for the current size and theme scaling */\n itemHeight?: number;\n}\n\nconst MenuContext = React.createContext<MenuContextValue>({ isInsideMenu: false });\n\ninterface MenuProviderProps {\n children: React.ReactNode;\n /** Menu size passed from parent (DropdownMenu.Content, ContextMenu.Content, etc.) */\n size?: Responsive<MenuSize>;\n}\n\n/** Map menu size to item height in pixels at 100% scaling */\nexport const menuSizeToItemHeight: Record<MenuSize, number> = {\n '1': 24, // --space-5\n '2': 32, // --space-6\n};\n\n/** Item height in px for a size at the given theme scaling (\"100%\", \"110%\"\u2026). */\nexport function getMenuItemHeight(size: MenuSize, scaling: string | undefined): number {\n const scale = scaling ? parseFloat(scaling) / 100 : 1;\n return menuSizeToItemHeight[size] * (Number.isFinite(scale) ? scale : 1);\n}\n\nexport function MenuProvider({ children, size }: MenuProviderProps) {\n const resolvedSize = useResolvedResponsiveValue<MenuSize | undefined>(size, undefined);\n const { scaling } = useThemeContext();\n const itemHeight = resolvedSize ? getMenuItemHeight(resolvedSize, scaling) : undefined;\n const value = React.useMemo(\n () => ({ isInsideMenu: true, size: resolvedSize, itemHeight }),\n [resolvedSize, itemHeight],\n );\n return <MenuContext.Provider value={value}>{children}</MenuContext.Provider>;\n}\n\nexport function useMenuContext() {\n return React.useContext(MenuContext);\n}\n", "'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { Direction, Slot, Tooltip as TooltipPrimitive } from 'radix-ui';\nimport { useComposedRefs, useLayoutEffect } from 'radix-ui/internal';\n\nimport { getMatchingGrayColor } from '../helpers/get-matching-gray-color.js';\nimport { usePropSyncedState } from '../hooks/use-prop-synced-state.js';\nimport { useDeprecatedPanelBackgroundWarning } from '../helpers/use-deprecation-warning.js';\nimport { themePropDefs } from './theme.props.js';\n\nimport type { ThemeOwnProps } from './theme.props.js';\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\n\nconst noop = () => {};\n\ntype ThemeAppearance = (typeof themePropDefs.appearance.values)[number];\ntype ThemeAccentColor = (typeof themePropDefs.accentColor.values)[number];\ntype ThemeGrayColor = (typeof themePropDefs.grayColor.values)[number];\ntype ThemeMaterial = (typeof themePropDefs.material.values)[number];\ntype ThemePanelBackground = (typeof themePropDefs.panelBackground.values)[number];\ntype ThemeRadius = (typeof themePropDefs.radius.values)[number];\ntype ThemeScaling = (typeof themePropDefs.scaling.values)[number];\ntype ThemeFontFamily = (typeof themePropDefs.fontFamily.values)[number];\n// Headings follow the body font until something sets this, so `undefined` is a\n// meaningful value here rather than a missing one.\ntype ThemeHeadingFontFamily = ThemeFontFamily | undefined;\n\ninterface ThemeChangeHandlers {\n onAppearanceChange: (appearance: ThemeAppearance) => void;\n onAccentColorChange: (accentColor: ThemeAccentColor) => void;\n onGrayColorChange: (grayColor: ThemeGrayColor) => void;\n onMaterialChange: (material: ThemeMaterial) => void;\n onPanelBackgroundChange: (panelBackground: ThemePanelBackground) => void;\n onRadiusChange: (radius: ThemeRadius) => void;\n onScalingChange: (scaling: ThemeScaling) => void;\n onFontFamilyChange: (fontFamily: ThemeFontFamily) => void;\n onHeadingFontFamilyChange: (headingFontFamily: ThemeHeadingFontFamily) => void;\n}\n\ninterface ThemeContextValue extends ThemeChangeHandlers {\n appearance: ThemeAppearance;\n accentColor: ThemeAccentColor;\n grayColor: ThemeGrayColor;\n resolvedGrayColor: ThemeGrayColor;\n material: ThemeMaterial;\n panelBackground: ThemePanelBackground;\n radius: ThemeRadius;\n scaling: ThemeScaling;\n fontFamily: ThemeFontFamily;\n headingFontFamily: ThemeHeadingFontFamily;\n}\n// Default theme values used when components render outside a Theme provider\nconst defaultThemeContext: ThemeContextValue = {\n appearance: themePropDefs.appearance.default,\n accentColor: themePropDefs.accentColor.default,\n grayColor: themePropDefs.grayColor.default,\n resolvedGrayColor: themePropDefs.grayColor.default,\n material: themePropDefs.material.default,\n panelBackground: themePropDefs.panelBackground.default,\n radius: themePropDefs.radius.default,\n scaling: themePropDefs.scaling.default,\n fontFamily: themePropDefs.fontFamily.default,\n headingFontFamily: undefined,\n onAppearanceChange: noop,\n onAccentColorChange: noop,\n onGrayColorChange: noop,\n onMaterialChange: noop,\n onPanelBackgroundChange: noop,\n onRadiusChange: noop,\n onScalingChange: noop,\n onFontFamilyChange: noop,\n onHeadingFontFamilyChange: noop,\n};\n\nconst ThemeContext = React.createContext<ThemeContextValue | undefined>(undefined);\n\nfunction useThemeContext() {\n const context = React.useContext(ThemeContext);\n // Return default context if used outside Theme provider (e.g., during SSR)\n return context ?? defaultThemeContext;\n}\n\ninterface ThemeProps extends ThemeImplPublicProps {}\nconst Theme = React.forwardRef<ThemeImplElement, ThemeProps>((props, forwardedRef) => {\n const context = React.useContext(ThemeContext);\n const isRoot = context === undefined;\n if (isRoot) {\n return (\n <TooltipPrimitive.Provider delayDuration={200}>\n <Direction.Provider dir=\"ltr\">\n <ThemeRoot {...props} ref={forwardedRef} />\n </Direction.Provider>\n </TooltipPrimitive.Provider>\n );\n }\n return <ThemeImpl {...props} ref={forwardedRef} />;\n});\nTheme.displayName = 'Theme';\n\nconst ThemeRoot = React.forwardRef<ThemeImplElement, ThemeImplPublicProps>(\n (props, forwardedRef) => {\n const {\n appearance: appearanceProp = themePropDefs.appearance.default,\n accentColor: accentColorProp = themePropDefs.accentColor.default,\n grayColor: grayColorProp = themePropDefs.grayColor.default,\n material: materialProp = themePropDefs.material.default,\n panelBackground: panelBackgroundProp = themePropDefs.panelBackground.default,\n radius: radiusProp = themePropDefs.radius.default,\n scaling: scalingProp = themePropDefs.scaling.default,\n fontFamily: fontFamilyProp = themePropDefs.fontFamily.default,\n headingFontFamily: headingFontFamilyProp,\n hasBackground = themePropDefs.hasBackground.default,\n ...rootProps\n } = props;\n\n useDeprecatedPanelBackgroundWarning(props.panelBackground);\n\n // Each of these follows its prop but stays independently settable, so\n // `ThemePanel` can change the theme at runtime. Syncing during render\n // rather than in an effect matters here: an effect would commit the old\n // theme first and re-render every consumer of the context a second time.\n const [appearance, setAppearance] = usePropSyncedState(appearanceProp);\n const [accentColor, setAccentColor] = usePropSyncedState(accentColorProp);\n const [grayColor, setGrayColor] = usePropSyncedState(grayColorProp);\n\n // Material takes precedence over panelBackground\n const effectiveMaterial =\n materialProp !== themePropDefs.material.default ? materialProp : panelBackgroundProp;\n const [material, setMaterial] = usePropSyncedState(effectiveMaterial);\n\n // Keep panelBackground in sync with material for backward compatibility\n const [panelBackground, setPanelBackground] = usePropSyncedState(material);\n\n const [radius, setRadius] = usePropSyncedState(radiusProp);\n const [scaling, setScaling] = usePropSyncedState(scalingProp);\n const [fontFamily, setFontFamily] = usePropSyncedState(fontFamilyProp);\n const [headingFontFamily, setHeadingFontFamily] = usePropSyncedState(headingFontFamilyProp);\n\n return (\n <ThemeImpl\n {...rootProps}\n ref={forwardedRef}\n isRoot\n hasBackground={hasBackground}\n //\n appearance={appearance}\n accentColor={accentColor}\n grayColor={grayColor}\n material={material}\n panelBackground={panelBackground}\n radius={radius}\n scaling={scaling}\n fontFamily={fontFamily}\n headingFontFamily={headingFontFamily}\n //\n onAppearanceChange={setAppearance}\n onAccentColorChange={setAccentColor}\n onGrayColorChange={setGrayColor}\n onMaterialChange={setMaterial}\n onPanelBackgroundChange={setPanelBackground}\n onRadiusChange={setRadius}\n onScalingChange={setScaling}\n onFontFamilyChange={setFontFamily}\n onHeadingFontFamilyChange={setHeadingFontFamily}\n />\n );\n },\n);\nThemeRoot.displayName = 'ThemeRoot';\n\ntype ThemeImplElement = React.ElementRef<'div'>;\ninterface ThemeImplProps extends ThemeImplPublicProps, ThemeImplPrivateProps {}\ninterface ThemeImplPublicProps\n extends ComponentPropsWithout<'div', RemovedProps | 'dir'>,\n ThemeOwnProps {}\ninterface ThemeImplPrivateProps extends Partial<ThemeChangeHandlers> {\n isRoot?: boolean;\n}\nfunction getClientOS(): 'windows' | 'macos' | 'linux' | undefined {\n if (typeof navigator === 'undefined') return undefined;\n const ua = navigator.userAgent;\n if (ua.includes('Win')) return 'windows';\n if (ua.includes('Mac')) return 'macos';\n if (ua.includes('Linux')) return 'linux';\n return undefined;\n}\n\nconst ThemeImpl = React.forwardRef<ThemeImplElement, ThemeImplProps>((props, forwardedRef) => {\n const context = React.useContext(ThemeContext);\n const {\n asChild,\n isRoot,\n hasBackground: hasBackgroundProp,\n //\n appearance = props.appearance ?? context?.appearance ?? themePropDefs.appearance.default,\n accentColor = props.accentColor ?? context?.accentColor ?? themePropDefs.accentColor.default,\n grayColor = props.grayColor ?? context?.resolvedGrayColor ?? themePropDefs.grayColor.default,\n material = props.material ?? context?.material ?? themePropDefs.material.default,\n panelBackground = props.panelBackground ??\n context?.panelBackground ??\n themePropDefs.panelBackground.default,\n radius = props.radius ?? context?.radius ?? themePropDefs.radius.default,\n scaling = props.scaling ?? context?.scaling ?? themePropDefs.scaling.default,\n fontFamily = props.fontFamily ?? context?.fontFamily ?? themePropDefs.fontFamily.default,\n headingFontFamily = props.headingFontFamily ?? context?.headingFontFamily,\n //\n onAppearanceChange = noop,\n onAccentColorChange = noop,\n onGrayColorChange = noop,\n onMaterialChange = noop,\n onPanelBackgroundChange = noop,\n onRadiusChange = noop,\n onScalingChange = noop,\n onFontFamilyChange = noop,\n onHeadingFontFamilyChange = noop,\n //\n ...themeProps\n } = props;\n const Comp = asChild ? Slot.Root : 'div';\n const resolvedGrayColor = grayColor === 'auto' ? getMatchingGrayColor(accentColor) : grayColor;\n const isExplicitAppearance = props.appearance === 'light' || props.appearance === 'dark';\n const hasBackground =\n hasBackgroundProp === undefined ? isRoot || isExplicitAppearance : hasBackgroundProp;\n\n // `data-os` can only be resolved on the client. Writing it straight to the\n // DOM keeps it out of the server markup \u2014 so hydration still matches \u2014 without\n // spending a render pass, and a state update here would re-render the whole\n // application on mount.\n const rootRef = React.useRef<ThemeImplElement>(null);\n const composedRef = useComposedRefs(forwardedRef, rootRef);\n const hasExplicitOS = 'data-os' in themeProps;\n\n useLayoutEffect(() => {\n if (!isRoot || hasExplicitOS) return;\n const node = rootRef.current;\n if (!node) return;\n\n const os = getClientOS();\n if (!os) return;\n node.setAttribute('data-os', os);\n return () => node.removeAttribute('data-os');\n }, [isRoot, hasExplicitOS]);\n\n return (\n <ThemeContext.Provider\n value={React.useMemo(\n () => ({\n appearance,\n accentColor,\n grayColor,\n resolvedGrayColor,\n material,\n panelBackground,\n radius,\n scaling,\n fontFamily,\n headingFontFamily,\n //\n onAppearanceChange,\n onAccentColorChange,\n onGrayColorChange,\n onMaterialChange,\n onPanelBackgroundChange,\n onRadiusChange,\n onScalingChange,\n onFontFamilyChange,\n onHeadingFontFamilyChange,\n }),\n [\n appearance,\n accentColor,\n grayColor,\n resolvedGrayColor,\n material,\n panelBackground,\n radius,\n scaling,\n fontFamily,\n headingFontFamily,\n //\n onAppearanceChange,\n onAccentColorChange,\n onGrayColorChange,\n onMaterialChange,\n onPanelBackgroundChange,\n onRadiusChange,\n onScalingChange,\n onFontFamilyChange,\n onHeadingFontFamilyChange,\n ],\n )}\n >\n <Comp\n data-is-root-theme={isRoot ? 'true' : 'false'}\n data-accent-color={accentColor}\n data-gray-color={resolvedGrayColor}\n // for nested `Theme` background\n data-has-background={hasBackground ? 'true' : 'false'}\n data-material={material}\n data-panel-background={panelBackground}\n data-radius={radius}\n data-scaling={scaling}\n data-font-family={fontFamily}\n data-heading-font-family={headingFontFamily}\n ref={composedRef}\n {...themeProps}\n className={classNames(\n 'radix-themes',\n {\n light: appearance === 'light',\n dark: appearance === 'dark',\n },\n themeProps.className,\n )}\n />\n </ThemeContext.Provider>\n );\n});\nThemeImpl.displayName = 'ThemeImpl';\n\nexport { Theme, ThemeContext, useThemeContext };\nexport type { ThemeProps, ThemeContextValue };\n", "import type { accentColors } from '../props/color.prop.js';\n\ntype ThemeAccentColor = (typeof accentColors)[number];\n\nexport function getMatchingGrayColor(accentColor: ThemeAccentColor) {\n switch (accentColor) {\n case 'tomato':\n case 'red':\n case 'ruby':\n case 'crimson':\n case 'pink':\n case 'plum':\n case 'purple':\n case 'violet':\n return 'mauve';\n case 'iris':\n case 'indigo':\n case 'blue':\n case 'sky':\n case 'cyan':\n return 'slate';\n case 'teal':\n case 'jade':\n case 'mint':\n case 'green':\n return 'sage';\n case 'grass':\n case 'lime':\n return 'olive';\n case 'yellow':\n case 'amber':\n case 'orange':\n case 'brown':\n case 'gold':\n case 'bronze':\n return 'sand';\n case 'gray':\n return 'gray';\n }\n}\n", "import * as React from 'react';\n\n/**\n * State that tracks a prop but can also be set imperatively \u2014 the shape `Theme`\n * needs, where a prop sets the value and `ThemePanel` can change it at runtime.\n *\n * Adjusts state during render rather than syncing in a `useEffect`. An effect\n * would commit one render carrying the *old* value and schedule a second one,\n * which for a provider means every consumer renders twice and the browser can\n * paint the stale value in between.\n *\n * @see https://react.dev/reference/react/useState#storing-information-from-previous-renders\n */\nexport function usePropSyncedState<T>(propValue: T) {\n const [value, setValue] = React.useState(propValue);\n const [previousPropValue, setPreviousPropValue] = React.useState(propValue);\n\n if (!Object.is(propValue, previousPropValue)) {\n setPreviousPropValue(propValue);\n setValue(propValue);\n }\n\n return [value, setValue] as const;\n}\n", "import * as React from 'react';\n\nconst PANEL_BACKGROUND_MESSAGE = 'Warning: The `panelBackground` prop is deprecated and will be removed in a future version. Use `material` prop instead.';\n\nconst warned = new Set<string>();\n\nfunction warnOnce(message: string) {\n if (warned.has(message)) return;\n warned.add(message);\n console.warn(message);\n}\n\n/**\n * Warns, in development only, that `panelBackground` is deprecated.\n *\n * The `process.env.NODE_ENV` check is a compile-time constant, so a production\n * bundle minifies the effect body away to an empty function instead of reading\n * props and formatting a message per mounted component. The message is also\n * logged once per session rather than once per component instance.\n */\nexport function useDeprecatedPanelBackgroundWarning(panelBackground: unknown) {\n React.useEffect(() => {\n if (process.env.NODE_ENV === 'production') return;\n if (panelBackground !== undefined) warnOnce(PANEL_BACKGROUND_MESSAGE);\n }, [panelBackground]);\n}\n", "import type { PropDef } from './prop-def.js';\n\nconst asChildPropDef = {\n /**\n * Composes the component into its immediate child instead of rendering its own HTML element.\n * You\u2019ll have to provide a single React Element child.\n */\n asChild: {\n type: 'boolean',\n },\n} satisfies {\n asChild: PropDef<boolean>;\n};\n\nexport { asChildPropDef };\n", "import type { PropDef } from './prop-def.js';\n\n// prettier-ignore\nconst accentColors = ['gray', 'gold', 'bronze', 'brown', 'yellow', 'amber', 'orange', 'tomato', 'red', 'ruby', 'crimson', 'pink', 'plum', 'purple', 'violet', 'iris', 'indigo', 'blue', 'cyan', 'teal', 'jade', 'green', 'grass', 'lime', 'mint', 'sky'] as const;\n\nconst grayColors = ['auto', 'gray', 'mauve', 'slate', 'sage', 'olive', 'sand'] as const;\n\nconst colorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: undefined as (typeof accentColors)[number] | undefined,\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// 1. When used on components that compose Text, sets the color of the text to the current accent.\n// 2. Re-declares the accent role tokens (`--accent-ink`, `--accent-solid`, ...) that descendants read.\nconst accentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: '' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\nexport {\n accentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import type { PropDef } from './prop-def.js';\n\nconst radii = ['none', 'small', 'medium', 'large', 'full'] as const;\n\nconst radiusPropDef = {\n radius: {\n type: 'enum',\n values: radii,\n default: undefined,\n },\n} satisfies {\n radius: PropDef<(typeof radii)[number]>;\n};\n\nexport { radiusPropDef, radii };\n", "import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColors, grayColors } from '../props/color.prop.js';\nimport { radii } from '../props/radius.prop.js';\n\nimport type { GetPropDefTypes, PropDef } from '../props/prop-def.js';\n\nconst appearances = ['inherit', 'light', 'dark'] as const;\nconst panelBackgrounds = ['solid', 'translucent'] as const;\nconst materials = ['solid', 'translucent'] as const;\nconst scalings = ['90%', '95%', '100%', '105%', '110%'] as const;\nconst fontFamilies = ['sans', 'mono', 'serif'] as const;\n\nconst themePropDefs = {\n ...asChildPropDef,\n /**\n * Whether to apply background color to the Theme element.\n *\n * Defaults to true for the root Theme and for Theme elements that\n * have an explicit light or dark appearance prop.\n */\n hasBackground: { type: 'boolean', default: true },\n /**\n * Sets the color scheme of the theme, typcially referred to as light and dark mode.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/dark-mode\n */\n appearance: { type: 'enum', values: appearances, default: 'inherit' },\n /**\n * Selects one of the accent color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n accentColor: { type: 'enum', values: accentColors, default: 'blue' },\n /**\n * Selects one of the gray color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n grayColor: { type: 'enum', values: grayColors, default: 'slate' },\n /**\n * Controls whether to use a solid or translucent background color on panelled\n * elements such as Card or Table is solid or translucent.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n material: { type: 'enum', values: materials, default: 'translucent' },\n /**\n * Controls whether to use a solid or translucent background color on panelled\n * elements such as Card or Table is solid or translucent.\n *\n * @deprecated Use `material` prop instead. This prop will be removed in a future version.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n panelBackground: { type: 'enum', values: panelBackgrounds, default: 'translucent' },\n /**\n * Sets the default radius of the components.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n radius: { type: 'enum', values: radii, default: 'full' },\n /**\n * Sets a scaling multiplier for values like spacing, font sizes, line heights, etc. are scaled.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/layout\n */\n scaling: { type: 'enum', values: scalings, default: '100%' },\n /**\n * Sets the font family used for body text in the theme.\n *\n * Headings follow this unless `headingFontFamily` (or the `--font-heading`\n * token) says otherwise.\n *\n * @default 'sans'\n */\n fontFamily: { type: 'enum', values: fontFamilies, default: 'sans' },\n /**\n * Sets the font family used for `Heading`, independently of body text.\n *\n * Deliberately has no default: when it is left unset no attribute is\n * emitted and `--font-heading` keeps following `--font-body`, so a\n * `--font-heading` override in your own CSS survives a `fontFamily` switch.\n */\n headingFontFamily: { type: 'enum', values: fontFamilies },\n} satisfies {\n hasBackground: PropDef<boolean>;\n appearance: PropDef<(typeof appearances)[number]>;\n accentColor: PropDef<(typeof accentColors)[number]>;\n grayColor: PropDef<(typeof grayColors)[number]>;\n material: PropDef<(typeof materials)[number]>;\n panelBackground: PropDef<(typeof panelBackgrounds)[number]>;\n radius: PropDef<(typeof radii)[number]>;\n scaling: PropDef<(typeof scalings)[number]>;\n fontFamily: PropDef<(typeof fontFamilies)[number]>;\n headingFontFamily: PropDef<(typeof fontFamilies)[number]>;\n};\n\ntype ThemeOwnProps = GetPropDefTypes<typeof themePropDefs & typeof asChildPropDef>;\n\nexport { themePropDefs };\nexport type { ThemeOwnProps };\n"],
5
5
  "mappings": "slBAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,iBAAAE,KAAA,eAAAC,GAAAH,IAEA,IAAAI,EAAuB,oBACvBC,EAAuB,yBACvBC,GAA+B,mCCF/B,IAAAC,EAAuB,oBCAvB,IAAAC,EAAuB,oBACvBC,GAAuB,yBACvBC,EAA6D,oBAC7DC,EAAiD,6BCD1C,SAASC,GAAqBC,EAA+B,CAClE,OAAQA,EAAa,CACnB,IAAK,SACL,IAAK,MACL,IAAK,OACL,IAAK,UACL,IAAK,OACL,IAAK,OACL,IAAK,SACL,IAAK,SACH,MAAO,QACT,IAAK,OACL,IAAK,SACL,IAAK,OACL,IAAK,MACL,IAAK,OACH,MAAO,QACT,IAAK,OACL,IAAK,OACL,IAAK,OACL,IAAK,QACH,MAAO,OACT,IAAK,QACL,IAAK,OACH,MAAO,QACT,IAAK,SACL,IAAK,QACL,IAAK,SACL,IAAK,QACL,IAAK,OACL,IAAK,SACH,MAAO,OACT,IAAK,OACH,MAAO,MACX,CACF,CCvCA,IAAAC,EAAuB,oBAahB,SAASC,EAAsBC,EAAc,CAClD,GAAM,CAACC,EAAOC,CAAQ,EAAU,WAASF,CAAS,EAC5C,CAACG,EAAmBC,CAAoB,EAAU,WAASJ,CAAS,EAE1E,OAAK,OAAO,GAAGA,EAAWG,CAAiB,IACzCC,EAAqBJ,CAAS,EAC9BE,EAASF,CAAS,GAGb,CAACC,EAAOC,CAAQ,CACzB,CCvBA,IAAAG,GAAuB,oBAEjBC,GAA2B,0HAE3BC,GAAS,IAAI,IAEnB,SAASC,GAASC,EAAiB,CAC7BF,GAAO,IAAIE,CAAO,IACtBF,GAAO,IAAIE,CAAO,EAClB,QAAQ,K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CAAC,CACH,CACF,CAEJ,CAEApD,GAAgB,YAAc,cAc9B,IAAMqD,GAA6B,aACjC,CAAC,CAAE,UAAA7C,EAAW,SAAA8C,EAAU,GAAGC,CAAM,EAAGC,IAEhC,gBAAC,OACC,IAAKA,EACL,KAAK,WACL,aAAW,EAAA3D,SAAW,WAAY,kBAAmB,qBAAsBW,CAAS,EACnF,GAAG+C,GAEHD,CACH,CAGN,EAEAD,GAAqB,YAAc,mBAGnC,IAAMI,GAAwB,OAAKJ,GAAsB,CAACK,EAAWC,IAAc,CACjF,IAAMC,EAAYF,EAAU,MACtBG,EAAYF,EAAU,MAO5B,MANI,EAAAC,GAAW,SAAWC,GAAW,QACjCD,GAAW,YAAcC,GAAW,WACpCH,EAAU,kBAAkB,IAAMC,EAAU,kBAAkB,GAC9DD,EAAU,WAAaC,EAAU,UACjCD,EAAU,KAAOC,EAAU,IAC3BD,EAAU,YAAcC,EAAU,WAClCD,EAAU,WAAaC,EAAU,SAEvC,CAAC,EAMKG,GAAc,OAAO,OAAO9D,GAAiB,CACjD,KAAMyD,EACR,CAAC",
6
6
  "names": ["virtual_menu_exports", "__export", "VirtualMenu", "__toCommonJS", "React", "import_classnames", "import_react_virtual", "React", "React", "import_classnames", "import_radix_ui", "import_internal", "getMatchingGrayColor", "accentColor", "React", "usePropSyncedState", "propValue", "value", "setValue", "previousPropValue", "setPreviousPropValue", "React", "PANEL_BACKGROUND_MESSAGE", "warned", "warnOnce", "message", "useDeprecatedPanelBackgroundWarning", "panelBackground", "asChildPropDef", "accentColors", "grayColors", "radii", "appearances", "panelBackgrounds", "materials", "scalings", "fontFamilies", "themePropDefs", "asChildPropDef", "accentColors", "grayColors", "radii", "noop", "defaultThemeContext", "themePropDefs", "ThemeContext", "useThemeContext", "Theme", "props", "forwardedRef", "TooltipPrimitive", "ThemeRoot", "ThemeImpl", "appearanceProp", "accentColorProp", "grayColorProp", "materialProp", "panelBackgroundProp", "radiusProp", "scalingProp", "fontFamilyProp", "headingFontFamilyProp", "hasBackground", "rootProps", "useDeprecatedPanelBackgroundWarning", "appearance", "setAppearance", "usePropSyncedState", "accentColor", "setAccentColor", "grayColor", "setGrayColor", "effectiveMaterial", "material", "setMaterial", "panelBackground", "setPanelBackground", "radius", "setRadius", "scaling", "setScaling", "fontFamily", "setFontFamily", "headingFontFamily", "setHeadingFontFamily", "getClientOS", "ua", "context", "asChild", "isRoot", "hasBackgroundProp", "onAppearanceChange", "onAccentColorChange", "onGrayColorChange", "onMaterialChange", "onPanelBackgroundChange", "onRadiusChange", "onScalingChange", "onFontFamilyChange", "onHeadingFontFamilyChange", "themeProps", "Comp", "resolvedGrayColor", "getMatchingGrayColor", "isExplicitAppearance", "rootRef", "composedRef", "hasExplicitOS", "node", "os", "classNames", "MenuContext", "menuSizeToItemHeight", "getMenuItemHeight", "size", "scaling", "scale", "useMenuContext", "MenuContext", "SimpleItem", "label", "_isHighlighted", "id", "style", "tabIndex", "dataHighlighted", "dataIndex", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "classNames", "prev", "next", "VirtualMenuRoot", "items", "itemLabel", "RenderItem", "sizeProp", "estimatedItemSizeProp", "overscan", "onSelect", "className", "ariaLabel", "menuId", "parentRef", "highlightedIndex", "setHighlightedIndex", "isInsideMenu", "contextSize", "contextItemHeight", "useMenuContext", "scaling", "useThemeContext", "estimatedItemSize", "getMenuItemHeight", "getLabel", "item", "safeHighlightedIndex", "getItemSize", "virtualizer", "virtualItems", "itemsRef", "onSelectRef", "scrollToIndexRef", "highlightedIndexRef", "handleItemMouseEnter", "e", "index", "handleItemClick", "idx", "currentItems", "noop", "handleItemKeyDown", "handleKeyDown", "currentHighlightedIndex", "nextIndex", "prevIndex", "lastIndex", "getItemId", "rootStyle", "totalSize", "viewportStyle", "virtualRow", "isHighlighted", "itemStyle", "commonProps", "VirtualMenuItemInner", "children", "props", "forwardedRef", "VirtualMenuItem", "prevProps", "nextProps", "prevStyle", "nextStyle", "VirtualMenu"]
7
7
  }
@@ -1,4 +1,9 @@
1
1
  import { type Breakpoint } from '../components/shell.types.js';
2
+ /**
3
+ * The breakpoint right now, outside React's render. For an effect that needs
4
+ * the answer at the moment it runs rather than the one its render saw.
5
+ */
6
+ export declare function readBreakpoint(): Breakpoint;
2
7
  /**
3
8
  * The current breakpoint, and whether it has been resolved against a real
4
9
  * viewport yet (`false` on the server and during hydration).
@@ -1 +1 @@
1
- {"version":3,"file":"use-breakpoint.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-breakpoint.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAyF7E;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,OAAO,UAAO,GAAG;IAAE,UAAU,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAexF"}
1
+ {"version":3,"file":"use-breakpoint.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-breakpoint.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAmF7E;;;GAGG;AACH,wBAAgB,cAAc,IAAI,UAAU,CAG3C;AAQD;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,OAAO,UAAO,GAAG;IAAE,UAAU,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAexF"}
@@ -1,2 +1,2 @@
1
- "use strict";"use client";var S=Object.create;var s=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var R=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var v=(e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})},m=(e,t,n,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of P(t))!h.call(e,r)&&r!==n&&s(e,r,{get:()=>t[r],enumerable:!(u=b(t,r))||u.enumerable});return e};var g=(e,t,n)=>(n=e!=null?S(R(e)):{},m(t||!e||!e.__esModule?s(n,"default",{value:e,enumerable:!0}):n,e)),k=e=>m(s({},"__esModule",{value:!0}),e);var T={};v(T,{useBreakpoint:()=>C});module.exports=k(T);var a=g(require("react"));var f={xs:"(min-width: 520px)",sm:"(min-width: 768px)",md:"(min-width: 1024px)",lg:"(min-width: 1280px)",xl:"(min-width: 1640px)"};var B=Object.entries(f),d=null,o=new Set,i=null;function l(){return d??(d=B.map(([e,t])=>[e,window.matchMedia(t)])),d}function c(){let e="initial";for(let[t,n]of l())n.matches&&(e=t);return e}function p(){let e=c();e!==i&&(i=e,o.forEach(t=>t()))}function x(e){if(typeof window>"u")return()=>{};if(o.size===0){i=c();for(let[,t]of l())typeof t.addEventListener=="function"?t.addEventListener("change",p):t.addListener?.(p)}return o.add(e),()=>{if(o.delete(e),!(o.size>0)){for(let[,t]of l())try{typeof t.removeEventListener=="function"?t.removeEventListener("change",p):t.removeListener?.(p)}catch{}i=null}}}function z(){return typeof window>"u"?"initial":(i??(i=c()),i)}function E(){return"initial"}var w=()=>!0,M=()=>!1,y=()=>()=>{},L=()=>"initial";function C(e=!0){let t=a.useSyncExternalStore(e?x:y,e?z:L,E),n=a.useSyncExternalStore(e?x:y,w,M);return a.useMemo(()=>({breakpoint:t,ready:n}),[t,n])}
1
+ "use strict";"use client";var S=Object.create;var s=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var R=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var g=(e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})},m=(e,t,n,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of b(t))!v.call(e,r)&&r!==n&&s(e,r,{get:()=>t[r],enumerable:!(c=P(t,r))||c.enumerable});return e};var h=(e,t,n)=>(n=e!=null?S(R(e)):{},m(t||!e||!e.__esModule?s(n,"default",{value:e,enumerable:!0}):n,e)),k=e=>m(s({},"__esModule",{value:!0}),e);var I={};g(I,{readBreakpoint:()=>z,useBreakpoint:()=>C});module.exports=k(I);var a=h(require("react"));var f={xs:"(min-width: 520px)",sm:"(min-width: 768px)",md:"(min-width: 1024px)",lg:"(min-width: 1280px)",xl:"(min-width: 1640px)"};var B=Object.entries(f),l=null,o=new Set,i=null;function u(){return l??(l=B.map(([e,t])=>[e,window.matchMedia(t)])),l}function d(){let e="initial";for(let[t,n]of u())n.matches&&(e=t);return e}function p(){let e=d();e!==i&&(i=e,o.forEach(t=>t()))}function x(e){if(typeof window>"u")return()=>{};if(o.size===0){i=d();for(let[,t]of u())typeof t.addEventListener=="function"?t.addEventListener("change",p):t.addListener?.(p)}return o.add(e),()=>{if(o.delete(e),!(o.size>0)){for(let[,t]of u())try{typeof t.removeEventListener=="function"?t.removeEventListener("change",p):t.removeListener?.(p)}catch{}i=null}}}function E(){return typeof window>"u"?"initial":(i??(i=d()),i)}function w(){return"initial"}function z(){return typeof window>"u"?"initial":d()}var L=()=>!0,M=()=>!1,y=()=>()=>{},T=()=>"initial";function C(e=!0){let t=a.useSyncExternalStore(e?x:y,e?E:T,w),n=a.useSyncExternalStore(e?x:y,L,M);return a.useMemo(()=>({breakpoint:t,ready:n}),[t,n])}
2
2
  //# sourceMappingURL=use-breakpoint.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/hooks/use-breakpoint.ts", "../../../src/components/shell.types.ts"],
4
- "sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport { _BREAKPOINTS, type Breakpoint } from '../components/shell.types.js';\n\nconst QUERIES = Object.entries(_BREAKPOINTS) as Array<[Breakpoint, string]>;\n\ntype Listener = () => void;\n\n/**\n * One set of `MediaQueryList`s and one set of listeners for the whole\n * application. Every component that asks for the breakpoint used to create and\n * subscribe to its own copy of all five queries.\n */\nlet mediaQueryLists: Array<[Breakpoint, MediaQueryList]> | null = null;\nconst listeners = new Set<Listener>();\nlet cachedBreakpoint: Breakpoint | null = null;\n\nfunction getMediaQueryLists() {\n mediaQueryLists ??= QUERIES.map(([name, query]) => [name, window.matchMedia(query)] as [Breakpoint, MediaQueryList]);\n return mediaQueryLists;\n}\n\nfunction computeBreakpoint(): Breakpoint {\n // The largest matching query wins; `_BREAKPOINTS` is ordered smallest first.\n let matched: Breakpoint = 'initial';\n for (const [name, mql] of getMediaQueryLists()) {\n if (mql.matches) matched = name;\n }\n return matched;\n}\n\nfunction handleChange() {\n const next = computeBreakpoint();\n if (next === cachedBreakpoint) return;\n cachedBreakpoint = next;\n listeners.forEach((listener) => listener());\n}\n\nfunction subscribe(listener: Listener) {\n if (typeof window === 'undefined') return () => {};\n\n if (listeners.size === 0) {\n cachedBreakpoint = computeBreakpoint();\n for (const [, mql] of getMediaQueryLists()) {\n // Safari below 14 only has the deprecated listener API.\n if (typeof mql.addEventListener === 'function') mql.addEventListener('change', handleChange);\n else mql.addListener?.(handleChange);\n }\n }\n\n listeners.add(listener);\n\n return () => {\n listeners.delete(listener);\n if (listeners.size > 0) return;\n\n for (const [, mql] of getMediaQueryLists()) {\n try {\n if (typeof mql.removeEventListener === 'function') mql.removeEventListener('change', handleChange);\n else mql.removeListener?.(handleChange);\n } catch (error) {\n // Removal can throw in edge cases, e.g. the list was already torn down.\n if (process.env.NODE_ENV !== 'production') {\n console.warn('[useBreakpoint] MediaQueryList cleanup warning:', error);\n }\n }\n }\n cachedBreakpoint = null;\n };\n}\n\n/**\n * `getSnapshot` must return a referentially stable value between changes, so it\n * reads the cache that `handleChange` maintains rather than recomputing.\n */\nfunction getSnapshot(): Breakpoint {\n if (typeof window === 'undefined') return 'initial';\n cachedBreakpoint ??= computeBreakpoint();\n return cachedBreakpoint;\n}\n\nfunction getServerSnapshot(): Breakpoint {\n return 'initial';\n}\n\nconst getReadySnapshot = () => true;\nconst getReadyServerSnapshot = () => false;\n\nconst noopSubscribe = () => () => {};\nconst getInitialSnapshot = (): Breakpoint => 'initial';\n\n/**\n * The current breakpoint, and whether it has been resolved against a real\n * viewport yet (`false` on the server and during hydration).\n *\n * Reads through `useSyncExternalStore` rather than settling into state from an\n * effect. On a client render the very first pass already has the real\n * breakpoint, instead of rendering the whole shell at `initial` and correcting\n * it after the browser has painted.\n *\n * Pass `enabled = false` to skip the subscription (the breakpoint then reads as\n * `initial`).\n */\nexport function useBreakpoint(enabled = true): { breakpoint: Breakpoint; ready: boolean } {\n // Callers with a non-responsive value pass `enabled = false` so they neither\n // subscribe to the media queries nor re-render when the viewport crosses one.\n const breakpoint = React.useSyncExternalStore(\n enabled ? subscribe : noopSubscribe,\n enabled ? getSnapshot : getInitialSnapshot,\n getServerSnapshot,\n );\n const ready = React.useSyncExternalStore(\n enabled ? subscribe : noopSubscribe,\n getReadySnapshot,\n getReadyServerSnapshot,\n );\n\n return React.useMemo(() => ({ breakpoint, ready }), [breakpoint, ready]);\n}\n", "import type * as React from 'react';\n\nexport type PresentationValue = 'fixed' | 'overlay' | 'stacked';\n\nexport type ResponsivePresentation = PresentationValue | Partial<Record<'initial' | 'xs' | 'sm' | 'md' | 'lg' | 'xl', PresentationValue>>;\n\nexport type PaneMode = 'expanded' | 'collapsed';\nexport type SidebarMode = 'collapsed' | 'thin' | 'expanded';\n\nexport type ResponsiveMode = PaneMode | Partial<Record<'initial' | 'xs' | 'sm' | 'md' | 'lg' | 'xl', PaneMode>>;\n\nexport type ResponsiveSidebarMode = SidebarMode | Partial<Record<'initial' | 'xs' | 'sm' | 'md' | 'lg' | 'xl', SidebarMode>>;\n\nexport type Responsive<T> = T | Partial<Record<'initial' | 'xs' | 'sm' | 'md' | 'lg' | 'xl', T>>;\n\nexport type PaneSizePersistence = {\n load?: () => number | Promise<number | undefined> | undefined;\n save?: (size: number) => void | Promise<void>;\n};\n\nexport interface PaneBaseProps extends React.ComponentPropsWithoutRef<'div'> {\n presentation?: ResponsivePresentation;\n expandedSize?: number;\n minSize?: number;\n maxSize?: number;\n height?: string | number;\n resizable?: boolean;\n collapsible?: boolean;\n onExpand?: () => void;\n onCollapse?: () => void;\n onResize?: (size: number) => void;\n resizer?: React.ReactNode;\n onResizeStart?: (size: number) => void;\n onResizeEnd?: (size: number) => void;\n snapPoints?: number[];\n snapTolerance?: number;\n collapseThreshold?: number;\n paneId?: string;\n persistence?: PaneSizePersistence;\n}\n\nexport const _BREAKPOINTS = {\n xs: '(min-width: 520px)',\n sm: '(min-width: 768px)',\n md: '(min-width: 1024px)',\n lg: '(min-width: 1280px)',\n xl: '(min-width: 1640px)',\n} as const;\n\nexport type Breakpoint = 'initial' | keyof typeof _BREAKPOINTS;\n\nexport type PaneTarget = 'left' | 'rail' | 'panel' | 'sidebar' | 'inspector' | 'bottom';\n\n/**\n * CSS custom property key type for type-safe style objects.\n * Allows any string prefixed with '--'.\n */\nexport type CSSCustomProperty = `--${string}`;\n\n/**\n * Style object that supports CSS custom properties.\n */\nexport type CSSPropertiesWithVars = React.CSSProperties & {\n [key: CSSCustomProperty]: string | number | undefined;\n};\n"],
5
- "mappings": "ukBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,mBAAAE,IAAA,eAAAC,EAAAH,GAEA,IAAAI,EAAuB,oBCuChB,IAAMC,EAAe,CAC1B,GAAI,qBACJ,GAAI,qBACJ,GAAI,sBACJ,GAAI,sBACJ,GAAI,qBACN,ED1CA,IAAMC,EAAU,OAAO,QAAQC,CAAY,EASvCC,EAA8D,KAC5DC,EAAY,IAAI,IAClBC,EAAsC,KAE1C,SAASC,GAAqB,CAC5B,OAAAH,MAAoBF,EAAQ,IAAI,CAAC,CAACM,EAAMC,CAAK,IAAM,CAACD,EAAM,OAAO,WAAWC,CAAK,CAAC,CAAiC,GAC5GL,CACT,CAEA,SAASM,GAAgC,CAEvC,IAAIC,EAAsB,UAC1B,OAAW,CAACH,EAAMI,CAAG,IAAKL,EAAmB,EACvCK,EAAI,UAASD,EAAUH,GAE7B,OAAOG,CACT,CAEA,SAASE,GAAe,CACtB,IAAMC,EAAOJ,EAAkB,EAC3BI,IAASR,IACbA,EAAmBQ,EACnBT,EAAU,QAASU,GAAaA,EAAS,CAAC,EAC5C,CAEA,SAASC,EAAUD,EAAoB,CACrC,GAAI,OAAO,OAAW,IAAa,MAAO,IAAM,CAAC,EAEjD,GAAIV,EAAU,OAAS,EAAG,CACxBC,EAAmBI,EAAkB,EACrC,OAAW,CAAC,CAAEE,CAAG,IAAKL,EAAmB,EAEnC,OAAOK,EAAI,kBAAqB,WAAYA,EAAI,iBAAiB,SAAUC,CAAY,EACtFD,EAAI,cAAcC,CAAY,CAEvC,CAEA,OAAAR,EAAU,IAAIU,CAAQ,EAEf,IAAM,CAEX,GADAV,EAAU,OAAOU,CAAQ,EACrB,EAAAV,EAAU,KAAO,GAErB,QAAW,CAAC,CAAEO,CAAG,IAAKL,EAAmB,EACvC,GAAI,CACE,OAAOK,EAAI,qBAAwB,WAAYA,EAAI,oBAAoB,SAAUC,CAAY,EAC5FD,EAAI,iBAAiBC,CAAY,CACxC,MAAgB,CAKhB,CAEFP,EAAmB,KACrB,CACF,CAMA,SAASW,GAA0B,CACjC,OAAI,OAAO,OAAW,IAAoB,WAC1CX,MAAqBI,EAAkB,GAChCJ,EACT,CAEA,SAASY,GAAgC,CACvC,MAAO,SACT,CAEA,IAAMC,EAAmB,IAAM,GACzBC,EAAyB,IAAM,GAE/BC,EAAgB,IAAM,IAAM,CAAC,EAC7BC,EAAqB,IAAkB,UActC,SAASC,EAAcC,EAAU,GAAkD,CAGxF,IAAMC,EAAmB,uBACvBD,EAAUR,EAAYK,EACtBG,EAAUP,EAAcK,EACxBJ,CACF,EACMQ,EAAc,uBAClBF,EAAUR,EAAYK,EACtBF,EACAC,CACF,EAEA,OAAa,UAAQ,KAAO,CAAE,WAAAK,EAAY,MAAAC,CAAM,GAAI,CAACD,EAAYC,CAAK,CAAC,CACzE",
6
- "names": ["use_breakpoint_exports", "__export", "useBreakpoint", "__toCommonJS", "React", "_BREAKPOINTS", "QUERIES", "_BREAKPOINTS", "mediaQueryLists", "listeners", "cachedBreakpoint", "getMediaQueryLists", "name", "query", "computeBreakpoint", "matched", "mql", "handleChange", "next", "listener", "subscribe", "getSnapshot", "getServerSnapshot", "getReadySnapshot", "getReadyServerSnapshot", "noopSubscribe", "getInitialSnapshot", "useBreakpoint", "enabled", "breakpoint", "ready"]
4
+ "sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport { _BREAKPOINTS, type Breakpoint } from '../components/shell.types.js';\n\nconst QUERIES = Object.entries(_BREAKPOINTS) as Array<[Breakpoint, string]>;\n\ntype Listener = () => void;\n\n/**\n * One set of `MediaQueryList`s and one set of listeners for the whole\n * application. Every component that asks for the breakpoint used to create and\n * subscribe to its own copy of all five queries.\n */\nlet mediaQueryLists: Array<[Breakpoint, MediaQueryList]> | null = null;\nconst listeners = new Set<Listener>();\nlet cachedBreakpoint: Breakpoint | null = null;\n\nfunction getMediaQueryLists() {\n mediaQueryLists ??= QUERIES.map(([name, query]) => [name, window.matchMedia(query)] as [Breakpoint, MediaQueryList]);\n return mediaQueryLists;\n}\n\nfunction computeBreakpoint(): Breakpoint {\n // The largest matching query wins; `_BREAKPOINTS` is ordered smallest first.\n let matched: Breakpoint = 'initial';\n for (const [name, mql] of getMediaQueryLists()) {\n if (mql.matches) matched = name;\n }\n return matched;\n}\n\nfunction handleChange() {\n const next = computeBreakpoint();\n if (next === cachedBreakpoint) return;\n cachedBreakpoint = next;\n listeners.forEach((listener) => listener());\n}\n\nfunction subscribe(listener: Listener) {\n if (typeof window === 'undefined') return () => {};\n\n if (listeners.size === 0) {\n cachedBreakpoint = computeBreakpoint();\n for (const [, mql] of getMediaQueryLists()) {\n // Safari below 14 only has the deprecated listener API.\n if (typeof mql.addEventListener === 'function') mql.addEventListener('change', handleChange);\n else mql.addListener?.(handleChange);\n }\n }\n\n listeners.add(listener);\n\n return () => {\n listeners.delete(listener);\n if (listeners.size > 0) return;\n\n for (const [, mql] of getMediaQueryLists()) {\n try {\n if (typeof mql.removeEventListener === 'function') mql.removeEventListener('change', handleChange);\n else mql.removeListener?.(handleChange);\n } catch (error) {\n // Removal can throw in edge cases, e.g. the list was already torn down.\n if (process.env.NODE_ENV !== 'production') {\n console.warn('[useBreakpoint] MediaQueryList cleanup warning:', error);\n }\n }\n }\n cachedBreakpoint = null;\n };\n}\n\n/**\n * `getSnapshot` must return a referentially stable value between changes, so it\n * reads the cache that `handleChange` maintains rather than recomputing.\n */\nfunction getSnapshot(): Breakpoint {\n if (typeof window === 'undefined') return 'initial';\n cachedBreakpoint ??= computeBreakpoint();\n return cachedBreakpoint;\n}\n\nfunction getServerSnapshot(): Breakpoint {\n return 'initial';\n}\n\n/**\n * The breakpoint right now, outside React's render. For an effect that needs\n * the answer at the moment it runs rather than the one its render saw.\n */\nexport function readBreakpoint(): Breakpoint {\n if (typeof window === 'undefined') return 'initial';\n return computeBreakpoint();\n}\n\nconst getReadySnapshot = () => true;\nconst getReadyServerSnapshot = () => false;\n\nconst noopSubscribe = () => () => {};\nconst getInitialSnapshot = (): Breakpoint => 'initial';\n\n/**\n * The current breakpoint, and whether it has been resolved against a real\n * viewport yet (`false` on the server and during hydration).\n *\n * Reads through `useSyncExternalStore` rather than settling into state from an\n * effect. On a client render the very first pass already has the real\n * breakpoint, instead of rendering the whole shell at `initial` and correcting\n * it after the browser has painted.\n *\n * Pass `enabled = false` to skip the subscription (the breakpoint then reads as\n * `initial`).\n */\nexport function useBreakpoint(enabled = true): { breakpoint: Breakpoint; ready: boolean } {\n // Callers with a non-responsive value pass `enabled = false` so they neither\n // subscribe to the media queries nor re-render when the viewport crosses one.\n const breakpoint = React.useSyncExternalStore(\n enabled ? subscribe : noopSubscribe,\n enabled ? getSnapshot : getInitialSnapshot,\n getServerSnapshot,\n );\n const ready = React.useSyncExternalStore(\n enabled ? subscribe : noopSubscribe,\n getReadySnapshot,\n getReadyServerSnapshot,\n );\n\n return React.useMemo(() => ({ breakpoint, ready }), [breakpoint, ready]);\n}\n", "import type * as React from 'react';\n\nexport type PresentationValue = 'fixed' | 'overlay' | 'stacked';\n\nexport type ResponsivePresentation = PresentationValue | Partial<Record<'initial' | 'xs' | 'sm' | 'md' | 'lg' | 'xl', PresentationValue>>;\n\nexport type PaneMode = 'expanded' | 'collapsed';\nexport type SidebarMode = 'collapsed' | 'thin' | 'expanded';\n\nexport type ResponsiveMode = PaneMode | Partial<Record<'initial' | 'xs' | 'sm' | 'md' | 'lg' | 'xl', PaneMode>>;\n\nexport type ResponsiveSidebarMode = SidebarMode | Partial<Record<'initial' | 'xs' | 'sm' | 'md' | 'lg' | 'xl', SidebarMode>>;\n\nexport type Responsive<T> = T | Partial<Record<'initial' | 'xs' | 'sm' | 'md' | 'lg' | 'xl', T>>;\n\nexport type PaneSizePersistence = {\n load?: () => number | Promise<number | undefined> | undefined;\n save?: (size: number) => void | Promise<void>;\n};\n\n/**\n * Why a pane's open state changed. Since 0.8.0 only a user action is reported:\n * `toggle` for a Trigger, a handle double-click or a drag past\n * `collapseThreshold`, and `dismiss` for Escape or a press on the scrim.\n * `init`, `responsive`, `panel` and `left` are kept in the types for\n * compatibility and are never sent.\n */\nexport type PaneOpenChangeReason = 'toggle' | 'dismiss' | 'init' | 'responsive';\n\nexport interface PaneBaseProps extends React.ComponentPropsWithoutRef<'div'> {\n presentation?: ResponsivePresentation;\n expandedSize?: number;\n minSize?: number;\n maxSize?: number;\n resizable?: boolean;\n collapsible?: boolean;\n /** @deprecated Use `onOpenChange`. Still called when a user's toggle or a controlled prop changes whether the pane is shown; never on mount or when the window crosses a breakpoint. */\n onExpand?: () => void;\n /** @deprecated Use `onOpenChange`. Still called when a user's toggle or a controlled prop changes whether the pane is shown; never on mount or when the window crosses a breakpoint. */\n onCollapse?: () => void;\n onResize?: (size: number) => void;\n onResizeStart?: (size: number) => void;\n onResizeEnd?: (size: number) => void;\n /** @deprecated Removed in 1.0. Snap in your own `onSizeChange` and pass `size`. */\n snapPoints?: number[];\n /** @deprecated Removed in 1.0, with `snapPoints`. */\n snapTolerance?: number;\n /** @deprecated Removed in 1.0. Close the pane from your own `onResizeEnd`. */\n collapseThreshold?: number;\n /** @deprecated Removed in 1.0. Keep the size in your own state with `size`/`onSizeChange`. */\n paneId?: string;\n /** @deprecated Removed in 1.0. Keep the size in your own state with `size`/`onSizeChange`. */\n persistence?: PaneSizePersistence;\n}\n\nexport const _BREAKPOINTS = {\n xs: '(min-width: 520px)',\n sm: '(min-width: 768px)',\n md: '(min-width: 1024px)',\n lg: '(min-width: 1280px)',\n xl: '(min-width: 1640px)',\n} as const;\n\nexport type Breakpoint = 'initial' | keyof typeof _BREAKPOINTS;\n\n/** Every breakpoint, smallest first. The stylesheet's @media blocks follow this order. */\nexport const SHELL_BREAKPOINTS: readonly Breakpoint[] = ['initial', 'xs', 'sm', 'md', 'lg', 'xl'];\n\nexport type PaneTarget = 'left' | 'rail' | 'panel' | 'sidebar' | 'inspector' | 'bottom';\n\n/** The panes a Trigger can drive. `left` is the deprecated name for `rail`. */\nexport type PaneName = Exclude<PaneTarget, 'left'>;\n\n/**\n * CSS custom property key type for type-safe style objects.\n * Allows any string prefixed with '--'.\n */\nexport type CSSCustomProperty = `--${string}`;\n\n/**\n * Style object that supports CSS custom properties.\n */\nexport type CSSPropertiesWithVars = React.CSSProperties & {\n [key: CSSCustomProperty]: string | number | undefined;\n};\n"],
5
+ "mappings": "ukBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,oBAAAE,EAAA,kBAAAC,IAAA,eAAAC,EAAAJ,GAEA,IAAAK,EAAuB,oBCqDhB,IAAMC,EAAe,CAC1B,GAAI,qBACJ,GAAI,qBACJ,GAAI,sBACJ,GAAI,sBACJ,GAAI,qBACN,EDxDA,IAAMC,EAAU,OAAO,QAAQC,CAAY,EASvCC,EAA8D,KAC5DC,EAAY,IAAI,IAClBC,EAAsC,KAE1C,SAASC,GAAqB,CAC5B,OAAAH,MAAoBF,EAAQ,IAAI,CAAC,CAACM,EAAMC,CAAK,IAAM,CAACD,EAAM,OAAO,WAAWC,CAAK,CAAC,CAAiC,GAC5GL,CACT,CAEA,SAASM,GAAgC,CAEvC,IAAIC,EAAsB,UAC1B,OAAW,CA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F,EAEA,OAAa,UAAQ,KAAO,CAAE,WAAAK,EAAY,MAAAC,CAAM,GAAI,CAACD,EAAYC,CAAK,CAAC,CACzE",
6
+ "names": ["use_breakpoint_exports", "__export", "readBreakpoint", "useBreakpoint", "__toCommonJS", "React", "_BREAKPOINTS", "QUERIES", "_BREAKPOINTS", "mediaQueryLists", "listeners", "cachedBreakpoint", "getMediaQueryLists", "name", "query", "computeBreakpoint", "matched", "mql", "handleChange", "next", "listener", "subscribe", "getSnapshot", "getServerSnapshot", "readBreakpoint", "getReadySnapshot", "getReadyServerSnapshot", "noopSubscribe", "getInitialSnapshot", "useBreakpoint", "enabled", "breakpoint", "ready"]
7
7
  }