@womp/kookie-ui 0.13.3 → 0.14.1

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 (968) hide show
  1. package/components.css +1052 -302
  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 +4 -2
  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 +4 -2
  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 +2 -2
  13. package/dist/cjs/components/_internal/base-menu.props.js +1 -1
  14. package/dist/cjs/components/_internal/base-menu.props.js.map +2 -2
  15. package/dist/cjs/components/_internal/base-menu.utils.js +1 -1
  16. package/dist/cjs/components/_internal/base-menu.utils.js.map +4 -4
  17. package/dist/cjs/components/_internal/base-radio.props.d.ts +4 -2
  18. package/dist/cjs/components/_internal/base-radio.props.d.ts.map +1 -1
  19. package/dist/cjs/components/_internal/base-radio.props.js +1 -1
  20. package/dist/cjs/components/_internal/base-radio.props.js.map +4 -4
  21. package/dist/cjs/components/_internal/base-tab-list.props.d.ts +7 -1
  22. package/dist/cjs/components/_internal/base-tab-list.props.d.ts.map +1 -1
  23. package/dist/cjs/components/_internal/base-tab-list.props.js +1 -1
  24. package/dist/cjs/components/_internal/base-tab-list.props.js.map +2 -2
  25. package/dist/cjs/components/_internal/menu-context.js +1 -1
  26. package/dist/cjs/components/_internal/menu-context.js.map +2 -2
  27. package/dist/cjs/components/_internal/pane-chrome.d.ts +47 -0
  28. package/dist/cjs/components/_internal/pane-chrome.d.ts.map +1 -0
  29. package/dist/cjs/components/_internal/pane-chrome.js +2 -0
  30. package/dist/cjs/components/_internal/pane-chrome.js.map +7 -0
  31. package/dist/cjs/components/_internal/shell-sidebar.d.ts +2 -1
  32. package/dist/cjs/components/_internal/shell-sidebar.d.ts.map +1 -1
  33. package/dist/cjs/components/_internal/shell-sidebar.js +1 -1
  34. package/dist/cjs/components/_internal/shell-sidebar.js.map +4 -4
  35. package/dist/cjs/components/accordion.js +1 -1
  36. package/dist/cjs/components/accordion.js.map +4 -4
  37. package/dist/cjs/components/accordion.props.d.ts +5 -3
  38. package/dist/cjs/components/accordion.props.d.ts.map +1 -1
  39. package/dist/cjs/components/accordion.props.js +1 -1
  40. package/dist/cjs/components/accordion.props.js.map +4 -4
  41. package/dist/cjs/components/alert-dialog.js +1 -1
  42. package/dist/cjs/components/alert-dialog.js.map +2 -2
  43. package/dist/cjs/components/app-bar.d.ts +1 -0
  44. package/dist/cjs/components/app-bar.d.ts.map +1 -1
  45. package/dist/cjs/components/app-bar.js +1 -1
  46. package/dist/cjs/components/app-bar.js.map +4 -4
  47. package/dist/cjs/components/avatar.js +1 -1
  48. package/dist/cjs/components/avatar.js.map +4 -4
  49. package/dist/cjs/components/avatar.props.d.ts +4 -2
  50. package/dist/cjs/components/avatar.props.d.ts.map +1 -1
  51. package/dist/cjs/components/avatar.props.js +1 -1
  52. package/dist/cjs/components/avatar.props.js.map +4 -4
  53. package/dist/cjs/components/badge.js +1 -1
  54. package/dist/cjs/components/badge.js.map +4 -4
  55. package/dist/cjs/components/badge.props.d.ts +4 -2
  56. package/dist/cjs/components/badge.props.d.ts.map +1 -1
  57. package/dist/cjs/components/badge.props.js +1 -1
  58. package/dist/cjs/components/badge.props.js.map +4 -4
  59. package/dist/cjs/components/blockquote.js +1 -1
  60. package/dist/cjs/components/blockquote.js.map +1 -1
  61. package/dist/cjs/components/blockquote.props.js +1 -1
  62. package/dist/cjs/components/blockquote.props.js.map +1 -1
  63. package/dist/cjs/components/button.d.ts +5 -0
  64. package/dist/cjs/components/button.d.ts.map +1 -1
  65. package/dist/cjs/components/button.js +4 -1
  66. package/dist/cjs/components/button.js.map +4 -4
  67. package/dist/cjs/components/button.props.js +1 -1
  68. package/dist/cjs/components/button.props.js.map +4 -4
  69. package/dist/cjs/components/callout.d.ts +1 -0
  70. package/dist/cjs/components/callout.d.ts.map +1 -1
  71. package/dist/cjs/components/callout.js +1 -1
  72. package/dist/cjs/components/callout.js.map +4 -4
  73. package/dist/cjs/components/callout.props.d.ts +4 -2
  74. package/dist/cjs/components/callout.props.d.ts.map +1 -1
  75. package/dist/cjs/components/callout.props.js +1 -1
  76. package/dist/cjs/components/callout.props.js.map +4 -4
  77. package/dist/cjs/components/card.js +1 -1
  78. package/dist/cjs/components/card.js.map +4 -4
  79. package/dist/cjs/components/card.props.d.ts +4 -2
  80. package/dist/cjs/components/card.props.d.ts.map +1 -1
  81. package/dist/cjs/components/card.props.js +1 -1
  82. package/dist/cjs/components/card.props.js.map +4 -4
  83. package/dist/cjs/components/chatbar.d.ts +2 -1
  84. package/dist/cjs/components/chatbar.d.ts.map +1 -1
  85. package/dist/cjs/components/chatbar.js +2 -2
  86. package/dist/cjs/components/chatbar.js.map +4 -4
  87. package/dist/cjs/components/checkbox-cards.d.ts.map +1 -1
  88. package/dist/cjs/components/checkbox-cards.js +1 -1
  89. package/dist/cjs/components/checkbox-cards.js.map +4 -4
  90. package/dist/cjs/components/checkbox-cards.props.d.ts +10 -2
  91. package/dist/cjs/components/checkbox-cards.props.d.ts.map +1 -1
  92. package/dist/cjs/components/checkbox-cards.props.js +1 -1
  93. package/dist/cjs/components/checkbox-cards.props.js.map +4 -4
  94. package/dist/cjs/components/checkbox-group.js +1 -1
  95. package/dist/cjs/components/checkbox-group.js.map +4 -4
  96. package/dist/cjs/components/checkbox-group.props.d.ts +3 -2
  97. package/dist/cjs/components/checkbox-group.props.d.ts.map +1 -1
  98. package/dist/cjs/components/checkbox-group.props.js +1 -1
  99. package/dist/cjs/components/checkbox-group.props.js.map +4 -4
  100. package/dist/cjs/components/checkbox.js +1 -1
  101. package/dist/cjs/components/checkbox.js.map +4 -4
  102. package/dist/cjs/components/checkbox.props.js +1 -1
  103. package/dist/cjs/components/checkbox.props.js.map +4 -4
  104. package/dist/cjs/components/code.js +1 -1
  105. package/dist/cjs/components/code.js.map +3 -3
  106. package/dist/cjs/components/code.props.js +1 -1
  107. package/dist/cjs/components/code.props.js.map +3 -3
  108. package/dist/cjs/components/combobox.d.ts +0 -16
  109. package/dist/cjs/components/combobox.d.ts.map +1 -1
  110. package/dist/cjs/components/combobox.js +1 -1
  111. package/dist/cjs/components/combobox.js.map +4 -4
  112. package/dist/cjs/components/combobox.props.d.ts +6 -4
  113. package/dist/cjs/components/combobox.props.d.ts.map +1 -1
  114. package/dist/cjs/components/combobox.props.js +1 -1
  115. package/dist/cjs/components/combobox.props.js.map +4 -4
  116. package/dist/cjs/components/context-menu.d.ts +2 -1
  117. package/dist/cjs/components/context-menu.d.ts.map +1 -1
  118. package/dist/cjs/components/context-menu.js +1 -1
  119. package/dist/cjs/components/context-menu.js.map +4 -4
  120. package/dist/cjs/components/context-menu.props.js +1 -1
  121. package/dist/cjs/components/context-menu.props.js.map +2 -2
  122. package/dist/cjs/components/data-list.js +1 -1
  123. package/dist/cjs/components/data-list.js.map +1 -1
  124. package/dist/cjs/components/data-list.props.js +1 -1
  125. package/dist/cjs/components/data-list.props.js.map +1 -1
  126. package/dist/cjs/components/dialog.js +1 -1
  127. package/dist/cjs/components/dialog.js.map +2 -2
  128. package/dist/cjs/components/dropdown-menu.d.ts +2 -1
  129. package/dist/cjs/components/dropdown-menu.d.ts.map +1 -1
  130. package/dist/cjs/components/dropdown-menu.js +1 -1
  131. package/dist/cjs/components/dropdown-menu.js.map +4 -4
  132. package/dist/cjs/components/dropdown-menu.props.js +1 -1
  133. package/dist/cjs/components/dropdown-menu.props.js.map +2 -2
  134. package/dist/cjs/components/heading.js +1 -1
  135. package/dist/cjs/components/heading.js.map +1 -1
  136. package/dist/cjs/components/heading.props.js +1 -1
  137. package/dist/cjs/components/heading.props.js.map +1 -1
  138. package/dist/cjs/components/hover-card.js +1 -1
  139. package/dist/cjs/components/hover-card.js.map +2 -2
  140. package/dist/cjs/components/icon-button.d.ts +2 -1
  141. package/dist/cjs/components/icon-button.d.ts.map +1 -1
  142. package/dist/cjs/components/icon-button.js +2 -2
  143. package/dist/cjs/components/icon-button.js.map +4 -4
  144. package/dist/cjs/components/icon-button.props.js +1 -1
  145. package/dist/cjs/components/icon-button.props.js.map +4 -4
  146. package/dist/cjs/components/index.js +5 -5
  147. package/dist/cjs/components/index.js.map +4 -4
  148. package/dist/cjs/components/kbd.js +1 -1
  149. package/dist/cjs/components/kbd.js.map +4 -4
  150. package/dist/cjs/components/kbd.props.d.ts +4 -2
  151. package/dist/cjs/components/kbd.props.d.ts.map +1 -1
  152. package/dist/cjs/components/kbd.props.js +1 -1
  153. package/dist/cjs/components/kbd.props.js.map +4 -4
  154. package/dist/cjs/components/link.js +1 -1
  155. package/dist/cjs/components/link.js.map +1 -1
  156. package/dist/cjs/components/link.props.js +1 -1
  157. package/dist/cjs/components/link.props.js.map +1 -1
  158. package/dist/cjs/components/message-scroller.js +2 -2
  159. package/dist/cjs/components/message-scroller.js.map +4 -4
  160. package/dist/cjs/components/navbar.js +1 -1
  161. package/dist/cjs/components/navbar.js.map +2 -2
  162. package/dist/cjs/components/navbar.props.d.ts +1 -1
  163. package/dist/cjs/components/navbar.props.js +1 -1
  164. package/dist/cjs/components/navbar.props.js.map +2 -2
  165. package/dist/cjs/components/notice.js +2 -2
  166. package/dist/cjs/components/notice.js.map +4 -4
  167. package/dist/cjs/components/popover.d.ts.map +1 -1
  168. package/dist/cjs/components/popover.js +1 -1
  169. package/dist/cjs/components/popover.js.map +4 -4
  170. package/dist/cjs/components/popover.props.d.ts +6 -0
  171. package/dist/cjs/components/popover.props.d.ts.map +1 -1
  172. package/dist/cjs/components/popover.props.js +1 -1
  173. package/dist/cjs/components/popover.props.js.map +2 -2
  174. package/dist/cjs/components/progress.js +1 -1
  175. package/dist/cjs/components/progress.js.map +1 -1
  176. package/dist/cjs/components/progress.props.js +1 -1
  177. package/dist/cjs/components/progress.props.js.map +1 -1
  178. package/dist/cjs/components/radio-cards.d.ts.map +1 -1
  179. package/dist/cjs/components/radio-cards.js +1 -1
  180. package/dist/cjs/components/radio-cards.js.map +4 -4
  181. package/dist/cjs/components/radio-cards.props.d.ts +10 -2
  182. package/dist/cjs/components/radio-cards.props.d.ts.map +1 -1
  183. package/dist/cjs/components/radio-cards.props.js +1 -1
  184. package/dist/cjs/components/radio-cards.props.js.map +4 -4
  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 +4 -2
  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 +2 -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 +2 -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 +2 -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 +2 -2
  209. package/dist/cjs/components/schemas/toggle-button.schema.d.ts +2 -1
  210. package/dist/cjs/components/schemas/toggle-button.schema.d.ts.map +1 -1
  211. package/dist/cjs/components/schemas/toggle-button.schema.js +1 -1
  212. package/dist/cjs/components/schemas/toggle-button.schema.js.map +2 -2
  213. package/dist/cjs/components/schemas/toggle-icon-button.schema.d.ts +2 -1
  214. package/dist/cjs/components/schemas/toggle-icon-button.schema.d.ts.map +1 -1
  215. package/dist/cjs/components/schemas/toggle-icon-button.schema.js +1 -1
  216. package/dist/cjs/components/schemas/toggle-icon-button.schema.js.map +2 -2
  217. package/dist/cjs/components/segmented-control.d.ts.map +1 -1
  218. package/dist/cjs/components/segmented-control.js +1 -1
  219. package/dist/cjs/components/segmented-control.js.map +4 -4
  220. package/dist/cjs/components/segmented-control.props.d.ts +5 -1
  221. package/dist/cjs/components/segmented-control.props.d.ts.map +1 -1
  222. package/dist/cjs/components/segmented-control.props.js +1 -1
  223. package/dist/cjs/components/segmented-control.props.js.map +2 -2
  224. package/dist/cjs/components/select.d.ts.map +1 -1
  225. package/dist/cjs/components/select.js +1 -1
  226. package/dist/cjs/components/select.js.map +4 -4
  227. package/dist/cjs/components/select.props.d.ts +11 -5
  228. package/dist/cjs/components/select.props.d.ts.map +1 -1
  229. package/dist/cjs/components/select.props.js +1 -1
  230. package/dist/cjs/components/select.props.js.map +4 -4
  231. package/dist/cjs/components/separator.js +1 -1
  232. package/dist/cjs/components/separator.js.map +1 -1
  233. package/dist/cjs/components/separator.props.js +1 -1
  234. package/dist/cjs/components/separator.props.js.map +1 -1
  235. package/dist/cjs/components/sheet.js +1 -1
  236. package/dist/cjs/components/sheet.js.map +2 -2
  237. package/dist/cjs/components/shell.d.ts +5 -1
  238. package/dist/cjs/components/shell.d.ts.map +1 -1
  239. package/dist/cjs/components/shell.js +1 -1
  240. package/dist/cjs/components/shell.js.map +4 -4
  241. package/dist/cjs/components/sidebar.d.ts +4 -0
  242. package/dist/cjs/components/sidebar.d.ts.map +1 -1
  243. package/dist/cjs/components/sidebar.js +1 -1
  244. package/dist/cjs/components/sidebar.js.map +4 -4
  245. package/dist/cjs/components/sidebar.props.d.ts +1 -0
  246. package/dist/cjs/components/sidebar.props.d.ts.map +1 -1
  247. package/dist/cjs/components/sidebar.props.js +1 -1
  248. package/dist/cjs/components/sidebar.props.js.map +2 -2
  249. package/dist/cjs/components/slider.js +1 -1
  250. package/dist/cjs/components/slider.js.map +1 -1
  251. package/dist/cjs/components/slider.props.js +1 -1
  252. package/dist/cjs/components/slider.props.js.map +1 -1
  253. package/dist/cjs/components/switch.js +1 -1
  254. package/dist/cjs/components/switch.js.map +1 -1
  255. package/dist/cjs/components/switch.props.js +1 -1
  256. package/dist/cjs/components/switch.props.js.map +1 -1
  257. package/dist/cjs/components/tab-nav.d.ts.map +1 -1
  258. package/dist/cjs/components/tab-nav.js +1 -1
  259. package/dist/cjs/components/tab-nav.js.map +4 -4
  260. package/dist/cjs/components/tab-nav.props.js +1 -1
  261. package/dist/cjs/components/tab-nav.props.js.map +2 -2
  262. package/dist/cjs/components/tabs.d.ts.map +1 -1
  263. package/dist/cjs/components/tabs.js +1 -1
  264. package/dist/cjs/components/tabs.js.map +4 -4
  265. package/dist/cjs/components/tabs.props.js +1 -1
  266. package/dist/cjs/components/tabs.props.js.map +2 -2
  267. package/dist/cjs/components/text-area.d.ts.map +1 -1
  268. package/dist/cjs/components/text-area.js +1 -1
  269. package/dist/cjs/components/text-area.js.map +4 -4
  270. package/dist/cjs/components/text-area.props.d.ts +6 -4
  271. package/dist/cjs/components/text-area.props.d.ts.map +1 -1
  272. package/dist/cjs/components/text-area.props.js +1 -1
  273. package/dist/cjs/components/text-area.props.js.map +4 -4
  274. package/dist/cjs/components/text-field.d.ts.map +1 -1
  275. package/dist/cjs/components/text-field.js +2 -2
  276. package/dist/cjs/components/text-field.js.map +4 -4
  277. package/dist/cjs/components/text-field.props.d.ts +6 -4
  278. package/dist/cjs/components/text-field.props.d.ts.map +1 -1
  279. package/dist/cjs/components/text-field.props.js +1 -1
  280. package/dist/cjs/components/text-field.props.js.map +4 -4
  281. package/dist/cjs/components/text.js +1 -1
  282. package/dist/cjs/components/text.js.map +1 -1
  283. package/dist/cjs/components/text.props.js +1 -1
  284. package/dist/cjs/components/text.props.js.map +1 -1
  285. package/dist/cjs/components/theme-panel.js +3 -3
  286. package/dist/cjs/components/theme-panel.js.map +4 -4
  287. package/dist/cjs/components/theme.js +1 -1
  288. package/dist/cjs/components/theme.js.map +2 -2
  289. package/dist/cjs/components/theme.props.d.ts +4 -4
  290. package/dist/cjs/components/theme.props.js +1 -1
  291. package/dist/cjs/components/theme.props.js.map +2 -2
  292. package/dist/cjs/components/toggle-button.d.ts.map +1 -1
  293. package/dist/cjs/components/toggle-button.js +5 -2
  294. package/dist/cjs/components/toggle-button.js.map +4 -4
  295. package/dist/cjs/components/toggle-icon-button.d.ts +2 -1
  296. package/dist/cjs/components/toggle-icon-button.d.ts.map +1 -1
  297. package/dist/cjs/components/toggle-icon-button.js +3 -3
  298. package/dist/cjs/components/toggle-icon-button.js.map +4 -4
  299. package/dist/cjs/components/toolbar.js +2 -2
  300. package/dist/cjs/components/toolbar.js.map +4 -4
  301. package/dist/cjs/components/tooltip.js +1 -1
  302. package/dist/cjs/components/tooltip.js.map +2 -2
  303. package/dist/cjs/components/user-card.d.ts +1 -0
  304. package/dist/cjs/components/user-card.d.ts.map +1 -1
  305. package/dist/cjs/components/user-card.js +1 -1
  306. package/dist/cjs/components/user-card.js.map +4 -4
  307. package/dist/cjs/components/user-card.props.d.ts +5 -3
  308. package/dist/cjs/components/user-card.props.d.ts.map +1 -1
  309. package/dist/cjs/components/user-card.props.js +1 -1
  310. package/dist/cjs/components/user-card.props.js.map +4 -4
  311. package/dist/cjs/components/virtual-menu.js +1 -1
  312. package/dist/cjs/components/virtual-menu.js.map +2 -2
  313. package/dist/cjs/helpers/parse-variant.d.ts +8 -0
  314. package/dist/cjs/helpers/parse-variant.d.ts.map +1 -0
  315. package/dist/cjs/helpers/parse-variant.js +2 -0
  316. package/dist/cjs/helpers/parse-variant.js.map +7 -0
  317. package/dist/cjs/helpers/warn-deprecated.d.ts +7 -0
  318. package/dist/cjs/helpers/warn-deprecated.d.ts.map +1 -0
  319. package/dist/cjs/helpers/warn-deprecated.js +2 -0
  320. package/dist/cjs/helpers/warn-deprecated.js.map +7 -0
  321. package/dist/cjs/index.js +7 -7
  322. package/dist/cjs/index.js.map +4 -4
  323. package/dist/cjs/props/color.prop.d.ts +8 -1
  324. package/dist/cjs/props/color.prop.d.ts.map +1 -1
  325. package/dist/cjs/props/color.prop.js +1 -1
  326. package/dist/cjs/props/color.prop.js.map +3 -3
  327. package/dist/cjs/props/index.js +1 -1
  328. package/dist/cjs/props/index.js.map +4 -4
  329. package/dist/esm/chunk-27SCVCQY.js +2 -0
  330. package/dist/esm/chunk-27SCVCQY.js.map +7 -0
  331. package/dist/esm/chunk-2C5WLKEZ.js +2 -0
  332. package/dist/esm/chunk-2C5WLKEZ.js.map +7 -0
  333. package/dist/esm/chunk-2D5QJ6MX.js +2 -0
  334. package/dist/esm/chunk-2D5QJ6MX.js.map +7 -0
  335. package/dist/esm/chunk-2DKLJMUU.js +2 -0
  336. package/dist/esm/chunk-2DKLJMUU.js.map +7 -0
  337. package/dist/esm/chunk-2T74JEVN.js +2 -0
  338. package/dist/esm/chunk-2T74JEVN.js.map +7 -0
  339. package/dist/esm/{chunk-XVYTOZES.js → chunk-34UMKY2L.js} +2 -2
  340. package/dist/esm/chunk-3DEZMXFF.js +5 -0
  341. package/dist/esm/chunk-3DEZMXFF.js.map +7 -0
  342. package/dist/esm/{chunk-4XKK32M4.js → chunk-3HGHPAH4.js} +2 -2
  343. package/dist/esm/chunk-3M73GWN5.js +2 -0
  344. package/dist/esm/chunk-3M73GWN5.js.map +7 -0
  345. package/dist/esm/{chunk-C34HCTGS.js → chunk-3Q3EOUGJ.js} +2 -2
  346. package/dist/esm/chunk-3TIO3EMN.js +2 -0
  347. package/dist/esm/chunk-3TIO3EMN.js.map +7 -0
  348. package/dist/esm/{chunk-4ME6O27S.js → chunk-3UZHKW6I.js} +2 -2
  349. package/dist/esm/{chunk-AF6XKU3W.js → chunk-3WCSLQNH.js} +2 -2
  350. package/dist/esm/{chunk-DD6SJPOU.js → chunk-45AMHIBO.js} +2 -2
  351. package/dist/esm/chunk-47CEZJM2.js +2 -0
  352. package/dist/esm/chunk-47CEZJM2.js.map +7 -0
  353. package/dist/esm/chunk-4BPRLR6C.js +2 -0
  354. package/dist/esm/chunk-4BPRLR6C.js.map +7 -0
  355. package/dist/esm/{chunk-54JFIP5S.js → chunk-4D5LR4H6.js} +2 -2
  356. package/dist/esm/chunk-4D5LR4H6.js.map +7 -0
  357. package/dist/esm/{chunk-CIYF56YS.js → chunk-4JNHUPIM.js} +2 -2
  358. package/dist/esm/chunk-4WLDX7WZ.js +2 -0
  359. package/dist/esm/chunk-4WLDX7WZ.js.map +7 -0
  360. package/dist/esm/{chunk-OJU5GCDZ.js → chunk-5G4WWJ4Z.js} +2 -2
  361. package/dist/esm/chunk-5JS7ADWX.js +2 -0
  362. package/dist/esm/chunk-5JS7ADWX.js.map +7 -0
  363. package/dist/esm/{chunk-AGNIFHOE.js → chunk-62CJL5G7.js} +2 -2
  364. package/dist/esm/{chunk-Y5RCH23Z.js → chunk-6JP5PIOO.js} +2 -2
  365. package/dist/esm/{chunk-ZO7TTWJI.js → chunk-77TGP2LO.js} +2 -2
  366. package/dist/esm/chunk-7B6CIVAF.js +2 -0
  367. package/dist/esm/chunk-7B6CIVAF.js.map +7 -0
  368. package/dist/esm/chunk-7YIQV7VO.js +2 -0
  369. package/dist/esm/chunk-7YIQV7VO.js.map +7 -0
  370. package/dist/esm/chunk-7ZOGH5NT.js +2 -0
  371. package/dist/esm/chunk-7ZOGH5NT.js.map +7 -0
  372. package/dist/esm/chunk-AVFGMLL4.js +2 -0
  373. package/dist/esm/chunk-AVFGMLL4.js.map +7 -0
  374. package/dist/esm/{chunk-4LDVSTXI.js → chunk-BKES3M4Y.js} +2 -2
  375. package/dist/esm/chunk-BOFVKXUV.js +2 -0
  376. package/dist/esm/chunk-BOFVKXUV.js.map +7 -0
  377. package/dist/esm/{chunk-VX6ARMWP.js → chunk-C7UXUTUF.js} +2 -2
  378. package/dist/esm/{chunk-2I7QRVJ5.js → chunk-CIKDGYX3.js} +2 -2
  379. package/dist/esm/chunk-CL6P54QT.js +5 -0
  380. package/dist/esm/chunk-CL6P54QT.js.map +7 -0
  381. package/dist/esm/{chunk-5XV4QEP5.js → chunk-CMEKH4I5.js} +2 -2
  382. package/dist/esm/chunk-CSUEZWN5.js +2 -0
  383. package/dist/esm/chunk-CSUEZWN5.js.map +7 -0
  384. package/dist/esm/{chunk-JUJYMZ2F.js → chunk-DJA5MCJA.js} +2 -2
  385. package/dist/esm/chunk-DVSXWSAT.js +2 -0
  386. package/dist/esm/chunk-DVSXWSAT.js.map +7 -0
  387. package/dist/esm/chunk-E7LJHM3S.js +2 -0
  388. package/dist/esm/chunk-E7LJHM3S.js.map +7 -0
  389. package/dist/esm/{chunk-4YFJWXL2.js → chunk-EUSMN3K7.js} +2 -2
  390. package/dist/esm/{chunk-VICP2RNA.js → chunk-FISGGGPC.js} +2 -2
  391. package/dist/esm/chunk-FNB47XDO.js +2 -0
  392. package/dist/esm/chunk-FNB47XDO.js.map +7 -0
  393. package/dist/esm/{chunk-KFR3CK24.js → chunk-GLKN32J3.js} +2 -2
  394. package/dist/esm/{chunk-COWZAUZR.js → chunk-GONBMSRL.js} +2 -2
  395. package/dist/esm/chunk-GRRV4I2I.js +2 -0
  396. package/dist/esm/chunk-GRRV4I2I.js.map +7 -0
  397. package/dist/esm/chunk-H7LHGT44.js +2 -0
  398. package/dist/esm/chunk-H7LHGT44.js.map +7 -0
  399. package/dist/esm/{chunk-GO7OHBHW.js → chunk-HFVD7W6R.js} +2 -2
  400. package/dist/esm/{chunk-SAJY4H6J.js → chunk-HIBX2EXV.js} +2 -2
  401. package/dist/esm/{chunk-VZSQATP6.js → chunk-HJLBVNQE.js} +2 -2
  402. package/dist/esm/{chunk-JDGJSNWT.js → chunk-HNO4X33C.js} +2 -2
  403. package/dist/esm/chunk-IHRLGR6J.js +2 -0
  404. package/dist/esm/chunk-IHRLGR6J.js.map +7 -0
  405. package/dist/esm/{chunk-E67CIG6A.js → chunk-IPHKKZYE.js} +2 -2
  406. package/dist/esm/{chunk-7R73ISNJ.js → chunk-IQU6EELI.js} +3 -3
  407. package/dist/esm/{chunk-PZ7OYATT.js → chunk-IV4YJRVR.js} +2 -2
  408. package/dist/esm/{chunk-S5C5YRBS.js → chunk-IVBKTHDM.js} +2 -2
  409. package/dist/esm/chunk-IY3GKGDZ.js +2 -0
  410. package/dist/esm/chunk-IY3GKGDZ.js.map +7 -0
  411. package/dist/esm/chunk-JTN3KTAS.js +2 -0
  412. package/dist/esm/chunk-JTN3KTAS.js.map +7 -0
  413. package/dist/esm/{chunk-RNTCHVFI.js → chunk-JXVUTFQN.js} +2 -2
  414. package/dist/esm/{chunk-VR7ZAFYN.js → chunk-K7BWSYVP.js} +2 -2
  415. package/dist/esm/{chunk-2CMM7MEL.js → chunk-KJC32RWT.js} +2 -2
  416. package/dist/esm/{chunk-2CMM7MEL.js.map → chunk-KJC32RWT.js.map} +2 -2
  417. package/dist/esm/{chunk-5WRCK4R7.js → chunk-KJTEZVOF.js} +2 -2
  418. package/dist/esm/{chunk-OGXZHAQL.js → chunk-KXSMY4ZF.js} +2 -2
  419. package/dist/esm/{chunk-MS5J4MF6.js → chunk-LJXP6K5Y.js} +2 -2
  420. package/dist/esm/{chunk-CSKZZOI2.js → chunk-N6Q3L64W.js} +2 -2
  421. package/dist/esm/chunk-O2RISF37.js +2 -0
  422. package/dist/esm/chunk-O2RISF37.js.map +7 -0
  423. package/dist/esm/{chunk-YBSRX63K.js → chunk-O2WPAUQN.js} +2 -2
  424. package/dist/esm/{chunk-HJU4I34X.js → chunk-OB3MHLQL.js} +2 -2
  425. package/dist/esm/chunk-OJSDBLP7.js +2 -0
  426. package/dist/esm/chunk-OJSDBLP7.js.map +7 -0
  427. package/dist/esm/chunk-OUSDYZDE.js +2 -0
  428. package/dist/esm/chunk-OUSDYZDE.js.map +7 -0
  429. package/dist/esm/chunk-OVGPUFRI.js +2 -0
  430. package/dist/esm/chunk-OVGPUFRI.js.map +7 -0
  431. package/dist/esm/{chunk-NIIEIZKQ.js → chunk-OW4KAIWF.js} +2 -2
  432. package/dist/esm/{chunk-HF5WY5YE.js → chunk-PAEHH3WS.js} +2 -2
  433. package/dist/esm/chunk-PLTTQFRQ.js +2 -0
  434. package/dist/esm/chunk-PLTTQFRQ.js.map +7 -0
  435. package/dist/esm/{chunk-FHOCUZDR.js → chunk-PXUQEA77.js} +2 -2
  436. package/dist/esm/{chunk-7UHKEJ7Q.js → chunk-R2MQMCND.js} +2 -2
  437. package/dist/esm/{chunk-64PFYID5.js → chunk-RAVFUI7W.js} +2 -2
  438. package/dist/esm/chunk-ROGC7K5N.js +2 -0
  439. package/dist/esm/chunk-ROGC7K5N.js.map +7 -0
  440. package/dist/esm/chunk-RON6FXLO.js +2 -0
  441. package/dist/esm/chunk-RON6FXLO.js.map +7 -0
  442. package/dist/esm/{chunk-CDG5WH4U.js → chunk-RUOOCYK4.js} +2 -2
  443. package/dist/esm/{chunk-36A5BYCN.js → chunk-RUPET4E7.js} +2 -2
  444. package/dist/esm/chunk-RWN22S44.js +2 -0
  445. package/dist/esm/{chunk-7NVLCYCL.js → chunk-S3GZZXQ7.js} +2 -2
  446. package/dist/esm/{chunk-N4GTDLRD.js → chunk-SGUTNJUO.js} +2 -2
  447. package/dist/esm/chunk-SIBSXKFF.js +2 -0
  448. package/dist/esm/chunk-SIBSXKFF.js.map +7 -0
  449. package/dist/esm/{chunk-GL5QTWYI.js → chunk-SQ4BU4GH.js} +2 -2
  450. package/dist/esm/chunk-SQZ5O7QS.js +2 -0
  451. package/dist/esm/chunk-SQZ5O7QS.js.map +7 -0
  452. package/dist/esm/chunk-SURYYF7I.js +2 -0
  453. package/dist/esm/chunk-SURYYF7I.js.map +7 -0
  454. package/dist/esm/{chunk-KOFEFBB3.js → chunk-T6Z4JUH6.js} +2 -2
  455. package/dist/esm/{chunk-67MKPTZJ.js → chunk-TCEQ5VVE.js} +2 -2
  456. package/dist/esm/{chunk-ESPWYN5C.js → chunk-TZ5MZQUB.js} +2 -2
  457. package/dist/esm/{chunk-CRSHBENJ.js → chunk-UBWRIE4C.js} +2 -2
  458. package/dist/esm/chunk-UE2OBZIS.js +2 -0
  459. package/dist/esm/chunk-UE2OBZIS.js.map +7 -0
  460. package/dist/esm/{chunk-ZOY43B55.js → chunk-UK3BFTI2.js} +2 -2
  461. package/dist/esm/chunk-UTHTSYSL.js +2 -0
  462. package/dist/esm/chunk-UTHTSYSL.js.map +7 -0
  463. package/dist/esm/chunk-V3QVAXH3.js +2 -0
  464. package/dist/esm/chunk-V3QVAXH3.js.map +7 -0
  465. package/dist/esm/{chunk-KJUDZCYK.js → chunk-VBAXORVV.js} +2 -2
  466. package/dist/esm/chunk-VJUFYYKP.js +2 -0
  467. package/dist/esm/{chunk-FC2DBBJ3.js.map → chunk-VJUFYYKP.js.map} +2 -2
  468. package/dist/esm/{chunk-OTXCKEWT.js → chunk-VJXHEDCE.js} +2 -2
  469. package/dist/esm/{chunk-IHK3H2OM.js → chunk-VUKTURU4.js} +2 -2
  470. package/dist/esm/{chunk-NQ3D3UXZ.js → chunk-VV67KTKA.js} +2 -2
  471. package/dist/esm/chunk-WDNTAQ6G.js +2 -0
  472. package/dist/esm/chunk-WDNTAQ6G.js.map +7 -0
  473. package/dist/esm/chunk-WHAKQCNV.js +2 -0
  474. package/dist/esm/chunk-WHAKQCNV.js.map +7 -0
  475. package/dist/esm/chunk-WTXQB2EV.js +2 -0
  476. package/dist/esm/chunk-WTXQB2EV.js.map +7 -0
  477. package/dist/esm/chunk-WXBTPEFO.js +2 -0
  478. package/dist/esm/chunk-WXBTPEFO.js.map +7 -0
  479. package/dist/esm/chunk-XILM2OMC.js +2 -0
  480. package/dist/esm/chunk-XILM2OMC.js.map +7 -0
  481. package/dist/esm/chunk-YBS2IB7Z.js +2 -0
  482. package/dist/esm/chunk-YBS2IB7Z.js.map +7 -0
  483. package/dist/esm/chunk-YDPCJO5G.js +2 -0
  484. package/dist/esm/chunk-YDPCJO5G.js.map +7 -0
  485. package/dist/esm/chunk-YIK4ACXS.js +2 -0
  486. package/dist/esm/chunk-YIK4ACXS.js.map +7 -0
  487. package/dist/esm/chunk-YL62I5SI.js +2 -0
  488. package/dist/esm/{chunk-2OSGPH7E.js → chunk-YLLCCUC7.js} +2 -2
  489. package/dist/esm/{chunk-ZNK6AH2G.js → chunk-Z4DTHR2S.js} +2 -2
  490. package/dist/esm/{chunk-ZNK6AH2G.js.map → chunk-Z4DTHR2S.js.map} +3 -3
  491. package/dist/esm/{chunk-OMGZG52I.js → chunk-ZE2GWHPY.js} +2 -2
  492. package/dist/esm/{chunk-AGSSWWFI.js → chunk-ZK55O7TN.js} +2 -2
  493. package/dist/esm/{chunk-YAQBIO2B.js → chunk-ZQVYY7UT.js} +2 -2
  494. package/dist/esm/chunk-ZVIWTYHE.js +2 -0
  495. package/dist/esm/chunk-ZVIWTYHE.js.map +7 -0
  496. package/dist/esm/components/_internal/base-button.js +1 -1
  497. package/dist/esm/components/_internal/base-button.props.d.ts +4 -2
  498. package/dist/esm/components/_internal/base-button.props.d.ts.map +1 -1
  499. package/dist/esm/components/_internal/base-button.props.js +1 -1
  500. package/dist/esm/components/_internal/base-checkbox.props.d.ts +4 -2
  501. package/dist/esm/components/_internal/base-checkbox.props.d.ts.map +1 -1
  502. package/dist/esm/components/_internal/base-checkbox.props.js +1 -1
  503. package/dist/esm/components/_internal/base-menu.props.d.ts +2 -2
  504. package/dist/esm/components/_internal/base-menu.props.js +1 -1
  505. package/dist/esm/components/_internal/base-menu.utils.js +1 -1
  506. package/dist/esm/components/_internal/base-radio.props.d.ts +4 -2
  507. package/dist/esm/components/_internal/base-radio.props.d.ts.map +1 -1
  508. package/dist/esm/components/_internal/base-radio.props.js +1 -1
  509. package/dist/esm/components/_internal/base-tab-list.props.d.ts +7 -1
  510. package/dist/esm/components/_internal/base-tab-list.props.d.ts.map +1 -1
  511. package/dist/esm/components/_internal/base-tab-list.props.js +1 -1
  512. package/dist/esm/components/_internal/menu-context.js +1 -1
  513. package/dist/esm/components/_internal/pane-chrome.d.ts +47 -0
  514. package/dist/esm/components/_internal/pane-chrome.d.ts.map +1 -0
  515. package/dist/esm/components/_internal/pane-chrome.js +2 -0
  516. package/dist/esm/components/_internal/pane-chrome.js.map +7 -0
  517. package/dist/esm/components/_internal/shell-bottom.js +1 -1
  518. package/dist/esm/components/_internal/shell-inspector.js +1 -1
  519. package/dist/esm/components/_internal/shell-sidebar.d.ts +2 -1
  520. package/dist/esm/components/_internal/shell-sidebar.d.ts.map +1 -1
  521. package/dist/esm/components/_internal/shell-sidebar.js +1 -1
  522. package/dist/esm/components/accordion.js +1 -1
  523. package/dist/esm/components/accordion.props.d.ts +5 -3
  524. package/dist/esm/components/accordion.props.d.ts.map +1 -1
  525. package/dist/esm/components/accordion.props.js +1 -1
  526. package/dist/esm/components/alert-dialog.js +1 -1
  527. package/dist/esm/components/app-bar.d.ts +1 -0
  528. package/dist/esm/components/app-bar.d.ts.map +1 -1
  529. package/dist/esm/components/app-bar.js +1 -1
  530. package/dist/esm/components/avatar.js +1 -1
  531. package/dist/esm/components/avatar.props.d.ts +4 -2
  532. package/dist/esm/components/avatar.props.d.ts.map +1 -1
  533. package/dist/esm/components/avatar.props.js +1 -1
  534. package/dist/esm/components/badge.js +1 -1
  535. package/dist/esm/components/badge.props.d.ts +4 -2
  536. package/dist/esm/components/badge.props.d.ts.map +1 -1
  537. package/dist/esm/components/badge.props.js +1 -1
  538. package/dist/esm/components/blockquote.js +1 -1
  539. package/dist/esm/components/blockquote.props.js +1 -1
  540. package/dist/esm/components/box.js +1 -1
  541. package/dist/esm/components/button.d.ts +5 -0
  542. package/dist/esm/components/button.d.ts.map +1 -1
  543. package/dist/esm/components/button.js +1 -1
  544. package/dist/esm/components/button.props.js +1 -1
  545. package/dist/esm/components/callout.d.ts +1 -0
  546. package/dist/esm/components/callout.d.ts.map +1 -1
  547. package/dist/esm/components/callout.js +1 -1
  548. package/dist/esm/components/callout.props.d.ts +4 -2
  549. package/dist/esm/components/callout.props.d.ts.map +1 -1
  550. package/dist/esm/components/callout.props.js +1 -1
  551. package/dist/esm/components/card.js +1 -1
  552. package/dist/esm/components/card.props.d.ts +4 -2
  553. package/dist/esm/components/card.props.d.ts.map +1 -1
  554. package/dist/esm/components/card.props.js +1 -1
  555. package/dist/esm/components/chatbar.d.ts +2 -1
  556. package/dist/esm/components/chatbar.d.ts.map +1 -1
  557. package/dist/esm/components/chatbar.js +1 -1
  558. package/dist/esm/components/checkbox-cards.d.ts.map +1 -1
  559. package/dist/esm/components/checkbox-cards.js +1 -1
  560. package/dist/esm/components/checkbox-cards.props.d.ts +10 -2
  561. package/dist/esm/components/checkbox-cards.props.d.ts.map +1 -1
  562. package/dist/esm/components/checkbox-cards.props.js +1 -1
  563. package/dist/esm/components/checkbox-group.js +1 -1
  564. package/dist/esm/components/checkbox-group.props.d.ts +3 -2
  565. package/dist/esm/components/checkbox-group.props.d.ts.map +1 -1
  566. package/dist/esm/components/checkbox-group.props.js +1 -1
  567. package/dist/esm/components/checkbox.js +1 -1
  568. package/dist/esm/components/checkbox.props.js +1 -1
  569. package/dist/esm/components/code.js +1 -1
  570. package/dist/esm/components/code.props.js +1 -1
  571. package/dist/esm/components/combobox.d.ts +0 -16
  572. package/dist/esm/components/combobox.d.ts.map +1 -1
  573. package/dist/esm/components/combobox.js +1 -1
  574. package/dist/esm/components/combobox.props.d.ts +6 -4
  575. package/dist/esm/components/combobox.props.d.ts.map +1 -1
  576. package/dist/esm/components/combobox.props.js +1 -1
  577. package/dist/esm/components/container.js +1 -1
  578. package/dist/esm/components/context-menu.d.ts +2 -1
  579. package/dist/esm/components/context-menu.d.ts.map +1 -1
  580. package/dist/esm/components/context-menu.js +1 -1
  581. package/dist/esm/components/context-menu.props.js +1 -1
  582. package/dist/esm/components/data-list.js +1 -1
  583. package/dist/esm/components/data-list.props.js +1 -1
  584. package/dist/esm/components/dialog.js +1 -1
  585. package/dist/esm/components/dropdown-menu.d.ts +2 -1
  586. package/dist/esm/components/dropdown-menu.d.ts.map +1 -1
  587. package/dist/esm/components/dropdown-menu.js +1 -1
  588. package/dist/esm/components/dropdown-menu.props.js +1 -1
  589. package/dist/esm/components/flex.js +1 -1
  590. package/dist/esm/components/grid.js +1 -1
  591. package/dist/esm/components/heading.js +1 -1
  592. package/dist/esm/components/heading.props.js +1 -1
  593. package/dist/esm/components/hover-card.js +1 -1
  594. package/dist/esm/components/icon-button.d.ts +2 -1
  595. package/dist/esm/components/icon-button.d.ts.map +1 -1
  596. package/dist/esm/components/icon-button.js +1 -1
  597. package/dist/esm/components/icon-button.props.js +1 -1
  598. package/dist/esm/components/image.js +1 -1
  599. package/dist/esm/components/index.js +1 -1
  600. package/dist/esm/components/inset.js +1 -1
  601. package/dist/esm/components/kbd.js +1 -1
  602. package/dist/esm/components/kbd.props.d.ts +4 -2
  603. package/dist/esm/components/kbd.props.d.ts.map +1 -1
  604. package/dist/esm/components/kbd.props.js +1 -1
  605. package/dist/esm/components/link.js +1 -1
  606. package/dist/esm/components/link.props.js +1 -1
  607. package/dist/esm/components/message-scroller.js +1 -1
  608. package/dist/esm/components/navbar.js +1 -1
  609. package/dist/esm/components/navbar.props.d.ts +1 -1
  610. package/dist/esm/components/navbar.props.js +1 -1
  611. package/dist/esm/components/notice.js +1 -1
  612. package/dist/esm/components/popover.d.ts.map +1 -1
  613. package/dist/esm/components/popover.js +1 -1
  614. package/dist/esm/components/popover.props.d.ts +6 -0
  615. package/dist/esm/components/popover.props.d.ts.map +1 -1
  616. package/dist/esm/components/popover.props.js +1 -1
  617. package/dist/esm/components/progress.js +1 -1
  618. package/dist/esm/components/progress.props.js +1 -1
  619. package/dist/esm/components/radio-cards.d.ts.map +1 -1
  620. package/dist/esm/components/radio-cards.js +1 -1
  621. package/dist/esm/components/radio-cards.props.d.ts +10 -2
  622. package/dist/esm/components/radio-cards.props.d.ts.map +1 -1
  623. package/dist/esm/components/radio-cards.props.js +1 -1
  624. package/dist/esm/components/radio-group.js +1 -1
  625. package/dist/esm/components/radio-group.props.d.ts +4 -2
  626. package/dist/esm/components/radio-group.props.d.ts.map +1 -1
  627. package/dist/esm/components/radio-group.props.js +1 -1
  628. package/dist/esm/components/radio.js +1 -1
  629. package/dist/esm/components/radio.props.js +1 -1
  630. package/dist/esm/components/schemas/base-button.schema.d.ts +2 -1
  631. package/dist/esm/components/schemas/base-button.schema.d.ts.map +1 -1
  632. package/dist/esm/components/schemas/base-button.schema.js +1 -1
  633. package/dist/esm/components/schemas/button.schema.d.ts +2 -1
  634. package/dist/esm/components/schemas/button.schema.d.ts.map +1 -1
  635. package/dist/esm/components/schemas/button.schema.js +1 -1
  636. package/dist/esm/components/schemas/icon-button.schema.d.ts +2 -1
  637. package/dist/esm/components/schemas/icon-button.schema.d.ts.map +1 -1
  638. package/dist/esm/components/schemas/icon-button.schema.js +1 -1
  639. package/dist/esm/components/schemas/index.js +1 -1
  640. package/dist/esm/components/schemas/toggle-button.schema.d.ts +2 -1
  641. package/dist/esm/components/schemas/toggle-button.schema.d.ts.map +1 -1
  642. package/dist/esm/components/schemas/toggle-button.schema.js +1 -1
  643. package/dist/esm/components/schemas/toggle-icon-button.schema.d.ts +2 -1
  644. package/dist/esm/components/schemas/toggle-icon-button.schema.d.ts.map +1 -1
  645. package/dist/esm/components/schemas/toggle-icon-button.schema.js +1 -1
  646. package/dist/esm/components/scroll-area.js +1 -1
  647. package/dist/esm/components/section.js +1 -1
  648. package/dist/esm/components/segmented-control.d.ts.map +1 -1
  649. package/dist/esm/components/segmented-control.js +1 -1
  650. package/dist/esm/components/segmented-control.props.d.ts +5 -1
  651. package/dist/esm/components/segmented-control.props.d.ts.map +1 -1
  652. package/dist/esm/components/segmented-control.props.js +1 -1
  653. package/dist/esm/components/select.d.ts.map +1 -1
  654. package/dist/esm/components/select.js +1 -1
  655. package/dist/esm/components/select.props.d.ts +11 -5
  656. package/dist/esm/components/select.props.d.ts.map +1 -1
  657. package/dist/esm/components/select.props.js +1 -1
  658. package/dist/esm/components/separator.js +1 -1
  659. package/dist/esm/components/separator.props.js +1 -1
  660. package/dist/esm/components/sheet.js +1 -1
  661. package/dist/esm/components/shell.d.ts +5 -1
  662. package/dist/esm/components/shell.d.ts.map +1 -1
  663. package/dist/esm/components/shell.js +1 -1
  664. package/dist/esm/components/sidebar.d.ts +4 -0
  665. package/dist/esm/components/sidebar.d.ts.map +1 -1
  666. package/dist/esm/components/sidebar.js +1 -1
  667. package/dist/esm/components/sidebar.props.d.ts +1 -0
  668. package/dist/esm/components/sidebar.props.d.ts.map +1 -1
  669. package/dist/esm/components/sidebar.props.js +1 -1
  670. package/dist/esm/components/skeleton.js +1 -1
  671. package/dist/esm/components/slider.js +1 -1
  672. package/dist/esm/components/slider.props.js +1 -1
  673. package/dist/esm/components/spinner.js +1 -1
  674. package/dist/esm/components/switch.js +1 -1
  675. package/dist/esm/components/switch.props.js +1 -1
  676. package/dist/esm/components/tab-nav.d.ts.map +1 -1
  677. package/dist/esm/components/tab-nav.js +1 -1
  678. package/dist/esm/components/tab-nav.props.js +1 -1
  679. package/dist/esm/components/table.js +1 -1
  680. package/dist/esm/components/tabs.d.ts.map +1 -1
  681. package/dist/esm/components/tabs.js +1 -1
  682. package/dist/esm/components/tabs.props.js +1 -1
  683. package/dist/esm/components/text-area.d.ts.map +1 -1
  684. package/dist/esm/components/text-area.js +1 -1
  685. package/dist/esm/components/text-area.props.d.ts +6 -4
  686. package/dist/esm/components/text-area.props.d.ts.map +1 -1
  687. package/dist/esm/components/text-area.props.js +1 -1
  688. package/dist/esm/components/text-field.d.ts.map +1 -1
  689. package/dist/esm/components/text-field.js +1 -1
  690. package/dist/esm/components/text-field.props.d.ts +6 -4
  691. package/dist/esm/components/text-field.props.d.ts.map +1 -1
  692. package/dist/esm/components/text-field.props.js +1 -1
  693. package/dist/esm/components/text.js +1 -1
  694. package/dist/esm/components/text.props.js +1 -1
  695. package/dist/esm/components/theme-panel.js +1 -1
  696. package/dist/esm/components/theme.js +1 -1
  697. package/dist/esm/components/theme.props.d.ts +4 -4
  698. package/dist/esm/components/theme.props.js +1 -1
  699. package/dist/esm/components/toggle-button.d.ts.map +1 -1
  700. package/dist/esm/components/toggle-button.js +1 -1
  701. package/dist/esm/components/toggle-icon-button.d.ts +2 -1
  702. package/dist/esm/components/toggle-icon-button.d.ts.map +1 -1
  703. package/dist/esm/components/toggle-icon-button.js +1 -1
  704. package/dist/esm/components/toolbar.js +1 -1
  705. package/dist/esm/components/tooltip.js +1 -1
  706. package/dist/esm/components/user-card.d.ts +1 -0
  707. package/dist/esm/components/user-card.d.ts.map +1 -1
  708. package/dist/esm/components/user-card.js +1 -1
  709. package/dist/esm/components/user-card.props.d.ts +5 -3
  710. package/dist/esm/components/user-card.props.d.ts.map +1 -1
  711. package/dist/esm/components/user-card.props.js +1 -1
  712. package/dist/esm/components/virtual-menu.js +1 -1
  713. package/dist/esm/helpers/index.js +1 -1
  714. package/dist/esm/helpers/parse-variant.d.ts +8 -0
  715. package/dist/esm/helpers/parse-variant.d.ts.map +1 -0
  716. package/dist/esm/helpers/parse-variant.js +2 -0
  717. package/dist/esm/helpers/parse-variant.js.map +7 -0
  718. package/dist/esm/helpers/warn-deprecated.d.ts +7 -0
  719. package/dist/esm/helpers/warn-deprecated.d.ts.map +1 -0
  720. package/dist/esm/helpers/warn-deprecated.js +2 -0
  721. package/dist/esm/helpers/warn-deprecated.js.map +7 -0
  722. package/dist/esm/index.js +1 -1
  723. package/dist/esm/props/color.prop.d.ts +8 -1
  724. package/dist/esm/props/color.prop.d.ts.map +1 -1
  725. package/dist/esm/props/color.prop.js +1 -1
  726. package/dist/esm/props/index.js +1 -1
  727. package/package.json +1 -1
  728. package/schemas/base-button.json +4 -3
  729. package/schemas/button.json +4 -3
  730. package/schemas/icon-button.json +4 -3
  731. package/schemas/index.json +20 -15
  732. package/schemas/toggle-button.json +4 -3
  733. package/schemas/toggle-icon-button.json +4 -3
  734. package/src/components/_internal/base-button.css +7 -7
  735. package/src/components/_internal/base-button.props.ts +4 -3
  736. package/src/components/_internal/base-card.css +2 -2
  737. package/src/components/_internal/base-checkbox.css +4 -4
  738. package/src/components/_internal/base-checkbox.props.ts +3 -2
  739. package/src/components/_internal/base-menu.css +33 -0
  740. package/src/components/_internal/base-menu.props.ts +1 -1
  741. package/src/components/_internal/base-radio.css +4 -4
  742. package/src/components/_internal/base-radio.props.ts +3 -2
  743. package/src/components/_internal/base-tab-list.css +42 -0
  744. package/src/components/_internal/base-tab-list.props.ts +4 -1
  745. package/src/components/_internal/pane-chrome.tsx +90 -0
  746. package/src/components/_internal/shell-sidebar.tsx +13 -2
  747. package/src/components/accordion.css +5 -5
  748. package/src/components/accordion.props.tsx +3 -2
  749. package/src/components/app-bar.tsx +5 -0
  750. package/src/components/avatar.css +7 -7
  751. package/src/components/avatar.props.tsx +5 -4
  752. package/src/components/badge.css +8 -8
  753. package/src/components/badge.props.tsx +5 -4
  754. package/src/components/button.css +1 -1
  755. package/src/components/button.tsx +37 -2
  756. package/src/components/callout.css +7 -7
  757. package/src/components/callout.props.tsx +5 -4
  758. package/src/components/callout.tsx +5 -0
  759. package/src/components/card.props.tsx +3 -2
  760. package/src/components/chatbar.css +4 -4
  761. package/src/components/chatbar.tsx +4 -2
  762. package/src/components/checkbox-cards.props.tsx +8 -2
  763. package/src/components/checkbox-cards.tsx +5 -1
  764. package/src/components/code.props.tsx +2 -2
  765. package/src/components/combobox.props.tsx +9 -6
  766. package/src/components/combobox.tsx +10 -2
  767. package/src/components/context-menu.tsx +4 -0
  768. package/src/components/dropdown-menu.tsx +4 -0
  769. package/src/components/heading.css +1 -1
  770. package/src/components/icon-button.tsx +4 -48
  771. package/src/components/kbd.css +24 -24
  772. package/src/components/kbd.props.tsx +4 -2
  773. package/src/components/navbar.css +4 -0
  774. package/src/components/navbar.props.tsx +1 -1
  775. package/src/components/popover.props.tsx +3 -0
  776. package/src/components/popover.tsx +5 -1
  777. package/src/components/radio-cards.props.tsx +8 -2
  778. package/src/components/radio-cards.tsx +5 -1
  779. package/src/components/radio-group.props.tsx +5 -2
  780. package/src/components/schemas/base-button.schema.ts +3 -3
  781. package/src/components/segmented-control.props.tsx +4 -5
  782. package/src/components/segmented-control.tsx +12 -0
  783. package/src/components/select.css +37 -4
  784. package/src/components/select.props.tsx +9 -9
  785. package/src/components/select.tsx +8 -2
  786. package/src/components/shell.css +6 -0
  787. package/src/components/shell.tsx +24 -3
  788. package/src/components/sidebar.css +185 -62
  789. package/src/components/sidebar.props.tsx +1 -0
  790. package/src/components/sidebar.tsx +19 -13
  791. package/src/components/tab-nav.tsx +6 -2
  792. package/src/components/tabs.tsx +6 -2
  793. package/src/components/text-area.css +18 -5
  794. package/src/components/text-area.props.tsx +6 -4
  795. package/src/components/text-area.tsx +5 -1
  796. package/src/components/text-field.css +36 -3
  797. package/src/components/text-field.props.tsx +6 -4
  798. package/src/components/text-field.tsx +5 -1
  799. package/src/components/theme.props.tsx +4 -4
  800. package/src/components/toggle-button.tsx +19 -4
  801. package/src/components/toggle-icon-button.tsx +6 -60
  802. package/src/components/user-card.props.tsx +8 -5
  803. package/src/components/user-card.tsx +5 -0
  804. package/src/helpers/parse-variant.ts +21 -0
  805. package/src/helpers/warn-deprecated.ts +13 -0
  806. package/src/props/color.prop.ts +13 -0
  807. package/src/styles/tokens/constants.css +46 -27
  808. package/src/styles/tokens/typography.css +2 -0
  809. package/styles.css +1086 -318
  810. package/tokens/base.css +1 -0
  811. package/tokens.css +34 -16
  812. package/dist/esm/chunk-3KSGRY6I.js +0 -2
  813. package/dist/esm/chunk-3KSGRY6I.js.map +0 -7
  814. package/dist/esm/chunk-3OELU3EO.js +0 -2
  815. package/dist/esm/chunk-3OELU3EO.js.map +0 -7
  816. package/dist/esm/chunk-4WVNMGI5.js +0 -2
  817. package/dist/esm/chunk-4WVNMGI5.js.map +0 -7
  818. package/dist/esm/chunk-54JFIP5S.js.map +0 -7
  819. package/dist/esm/chunk-5SNHUVDA.js +0 -2
  820. package/dist/esm/chunk-667BKCUG.js +0 -2
  821. package/dist/esm/chunk-667BKCUG.js.map +0 -7
  822. package/dist/esm/chunk-72AHPGPN.js +0 -2
  823. package/dist/esm/chunk-72AHPGPN.js.map +0 -7
  824. package/dist/esm/chunk-7E2BPXIP.js +0 -2
  825. package/dist/esm/chunk-7E2BPXIP.js.map +0 -7
  826. package/dist/esm/chunk-7FS2VDHO.js +0 -5
  827. package/dist/esm/chunk-7FS2VDHO.js.map +0 -7
  828. package/dist/esm/chunk-7RUVID3O.js +0 -2
  829. package/dist/esm/chunk-7RUVID3O.js.map +0 -7
  830. package/dist/esm/chunk-ALWNS44Q.js +0 -5
  831. package/dist/esm/chunk-ALWNS44Q.js.map +0 -7
  832. package/dist/esm/chunk-ARIV4AT5.js +0 -2
  833. package/dist/esm/chunk-ARIV4AT5.js.map +0 -7
  834. package/dist/esm/chunk-CET7V3FZ.js +0 -2
  835. package/dist/esm/chunk-CET7V3FZ.js.map +0 -7
  836. package/dist/esm/chunk-CFNESRYI.js +0 -2
  837. package/dist/esm/chunk-CFNESRYI.js.map +0 -7
  838. package/dist/esm/chunk-CKMMUHKE.js +0 -2
  839. package/dist/esm/chunk-CKMMUHKE.js.map +0 -7
  840. package/dist/esm/chunk-CLMOWP5T.js +0 -2
  841. package/dist/esm/chunk-CLMOWP5T.js.map +0 -7
  842. package/dist/esm/chunk-EBQZ3Z22.js +0 -2
  843. package/dist/esm/chunk-EBQZ3Z22.js.map +0 -7
  844. package/dist/esm/chunk-EDKQURDU.js +0 -2
  845. package/dist/esm/chunk-EDKQURDU.js.map +0 -7
  846. package/dist/esm/chunk-EPTYNVCU.js +0 -2
  847. package/dist/esm/chunk-EPTYNVCU.js.map +0 -7
  848. package/dist/esm/chunk-EPX34Y7S.js +0 -2
  849. package/dist/esm/chunk-EPX34Y7S.js.map +0 -7
  850. package/dist/esm/chunk-F6V7GBNQ.js +0 -2
  851. package/dist/esm/chunk-F6V7GBNQ.js.map +0 -7
  852. package/dist/esm/chunk-FC2DBBJ3.js +0 -2
  853. package/dist/esm/chunk-FG7XM7KJ.js +0 -2
  854. package/dist/esm/chunk-FG7XM7KJ.js.map +0 -7
  855. package/dist/esm/chunk-JFWMAYEH.js +0 -2
  856. package/dist/esm/chunk-JFWMAYEH.js.map +0 -7
  857. package/dist/esm/chunk-K3UAS7RW.js +0 -2
  858. package/dist/esm/chunk-K3UAS7RW.js.map +0 -7
  859. package/dist/esm/chunk-KZWNGWIM.js +0 -2
  860. package/dist/esm/chunk-KZWNGWIM.js.map +0 -7
  861. package/dist/esm/chunk-KZYFTDGO.js +0 -2
  862. package/dist/esm/chunk-KZYFTDGO.js.map +0 -7
  863. package/dist/esm/chunk-MJOXEUBT.js +0 -2
  864. package/dist/esm/chunk-MJOXEUBT.js.map +0 -7
  865. package/dist/esm/chunk-MN3XALXD.js +0 -2
  866. package/dist/esm/chunk-MN3XALXD.js.map +0 -7
  867. package/dist/esm/chunk-NJ7S43EK.js +0 -2
  868. package/dist/esm/chunk-NJ7S43EK.js.map +0 -7
  869. package/dist/esm/chunk-OGVKSYLL.js +0 -2
  870. package/dist/esm/chunk-OGVKSYLL.js.map +0 -7
  871. package/dist/esm/chunk-OO652UQW.js +0 -2
  872. package/dist/esm/chunk-OO652UQW.js.map +0 -7
  873. package/dist/esm/chunk-OWMA6GTG.js +0 -2
  874. package/dist/esm/chunk-OWMA6GTG.js.map +0 -7
  875. package/dist/esm/chunk-P2NZLSAD.js +0 -2
  876. package/dist/esm/chunk-P2NZLSAD.js.map +0 -7
  877. package/dist/esm/chunk-PHZNRO3D.js +0 -2
  878. package/dist/esm/chunk-PHZNRO3D.js.map +0 -7
  879. package/dist/esm/chunk-PLYOBXAF.js +0 -2
  880. package/dist/esm/chunk-PLYOBXAF.js.map +0 -7
  881. package/dist/esm/chunk-QFPHEY77.js +0 -2
  882. package/dist/esm/chunk-QFPHEY77.js.map +0 -7
  883. package/dist/esm/chunk-QQ62LO3X.js +0 -2
  884. package/dist/esm/chunk-QQ62LO3X.js.map +0 -7
  885. package/dist/esm/chunk-RDAMYQFF.js +0 -2
  886. package/dist/esm/chunk-RDAMYQFF.js.map +0 -7
  887. package/dist/esm/chunk-ROSWI2CL.js +0 -2
  888. package/dist/esm/chunk-ROSWI2CL.js.map +0 -7
  889. package/dist/esm/chunk-TIT3QMV7.js +0 -2
  890. package/dist/esm/chunk-TIT3QMV7.js.map +0 -7
  891. package/dist/esm/chunk-TVV6IHBN.js +0 -2
  892. package/dist/esm/chunk-TVV6IHBN.js.map +0 -7
  893. package/dist/esm/chunk-VDTB4JG3.js +0 -2
  894. package/dist/esm/chunk-VDTB4JG3.js.map +0 -7
  895. package/dist/esm/chunk-VLTXI4A7.js +0 -2
  896. package/dist/esm/chunk-VLTXI4A7.js.map +0 -7
  897. package/dist/esm/chunk-VNH7BJOA.js +0 -2
  898. package/dist/esm/chunk-VNH7BJOA.js.map +0 -7
  899. package/dist/esm/chunk-WBMCZ4Z3.js +0 -2
  900. package/dist/esm/chunk-WBMCZ4Z3.js.map +0 -7
  901. package/dist/esm/chunk-WGYUWEQV.js +0 -2
  902. package/dist/esm/chunk-WMGIFPI2.js +0 -2
  903. package/dist/esm/chunk-WMGIFPI2.js.map +0 -7
  904. package/dist/esm/chunk-XYVLQDGR.js +0 -2
  905. package/dist/esm/chunk-XYVLQDGR.js.map +0 -7
  906. package/dist/esm/chunk-Y3A6ZU24.js +0 -2
  907. package/dist/esm/chunk-Y3A6ZU24.js.map +0 -7
  908. /package/dist/esm/{chunk-XVYTOZES.js.map → chunk-34UMKY2L.js.map} +0 -0
  909. /package/dist/esm/{chunk-4XKK32M4.js.map → chunk-3HGHPAH4.js.map} +0 -0
  910. /package/dist/esm/{chunk-C34HCTGS.js.map → chunk-3Q3EOUGJ.js.map} +0 -0
  911. /package/dist/esm/{chunk-4ME6O27S.js.map → chunk-3UZHKW6I.js.map} +0 -0
  912. /package/dist/esm/{chunk-AF6XKU3W.js.map → chunk-3WCSLQNH.js.map} +0 -0
  913. /package/dist/esm/{chunk-DD6SJPOU.js.map → chunk-45AMHIBO.js.map} +0 -0
  914. /package/dist/esm/{chunk-CIYF56YS.js.map → chunk-4JNHUPIM.js.map} +0 -0
  915. /package/dist/esm/{chunk-OJU5GCDZ.js.map → chunk-5G4WWJ4Z.js.map} +0 -0
  916. /package/dist/esm/{chunk-AGNIFHOE.js.map → chunk-62CJL5G7.js.map} +0 -0
  917. /package/dist/esm/{chunk-Y5RCH23Z.js.map → chunk-6JP5PIOO.js.map} +0 -0
  918. /package/dist/esm/{chunk-ZO7TTWJI.js.map → chunk-77TGP2LO.js.map} +0 -0
  919. /package/dist/esm/{chunk-4LDVSTXI.js.map → chunk-BKES3M4Y.js.map} +0 -0
  920. /package/dist/esm/{chunk-VX6ARMWP.js.map → chunk-C7UXUTUF.js.map} +0 -0
  921. /package/dist/esm/{chunk-2I7QRVJ5.js.map → chunk-CIKDGYX3.js.map} +0 -0
  922. /package/dist/esm/{chunk-5XV4QEP5.js.map → chunk-CMEKH4I5.js.map} +0 -0
  923. /package/dist/esm/{chunk-JUJYMZ2F.js.map → chunk-DJA5MCJA.js.map} +0 -0
  924. /package/dist/esm/{chunk-4YFJWXL2.js.map → chunk-EUSMN3K7.js.map} +0 -0
  925. /package/dist/esm/{chunk-VICP2RNA.js.map → chunk-FISGGGPC.js.map} +0 -0
  926. /package/dist/esm/{chunk-KFR3CK24.js.map → chunk-GLKN32J3.js.map} +0 -0
  927. /package/dist/esm/{chunk-COWZAUZR.js.map → chunk-GONBMSRL.js.map} +0 -0
  928. /package/dist/esm/{chunk-GO7OHBHW.js.map → chunk-HFVD7W6R.js.map} +0 -0
  929. /package/dist/esm/{chunk-SAJY4H6J.js.map → chunk-HIBX2EXV.js.map} +0 -0
  930. /package/dist/esm/{chunk-VZSQATP6.js.map → chunk-HJLBVNQE.js.map} +0 -0
  931. /package/dist/esm/{chunk-JDGJSNWT.js.map → chunk-HNO4X33C.js.map} +0 -0
  932. /package/dist/esm/{chunk-E67CIG6A.js.map → chunk-IPHKKZYE.js.map} +0 -0
  933. /package/dist/esm/{chunk-7R73ISNJ.js.map → chunk-IQU6EELI.js.map} +0 -0
  934. /package/dist/esm/{chunk-PZ7OYATT.js.map → chunk-IV4YJRVR.js.map} +0 -0
  935. /package/dist/esm/{chunk-S5C5YRBS.js.map → chunk-IVBKTHDM.js.map} +0 -0
  936. /package/dist/esm/{chunk-RNTCHVFI.js.map → chunk-JXVUTFQN.js.map} +0 -0
  937. /package/dist/esm/{chunk-VR7ZAFYN.js.map → chunk-K7BWSYVP.js.map} +0 -0
  938. /package/dist/esm/{chunk-5WRCK4R7.js.map → chunk-KJTEZVOF.js.map} +0 -0
  939. /package/dist/esm/{chunk-OGXZHAQL.js.map → chunk-KXSMY4ZF.js.map} +0 -0
  940. /package/dist/esm/{chunk-MS5J4MF6.js.map → chunk-LJXP6K5Y.js.map} +0 -0
  941. /package/dist/esm/{chunk-CSKZZOI2.js.map → chunk-N6Q3L64W.js.map} +0 -0
  942. /package/dist/esm/{chunk-YBSRX63K.js.map → chunk-O2WPAUQN.js.map} +0 -0
  943. /package/dist/esm/{chunk-HJU4I34X.js.map → chunk-OB3MHLQL.js.map} +0 -0
  944. /package/dist/esm/{chunk-NIIEIZKQ.js.map → chunk-OW4KAIWF.js.map} +0 -0
  945. /package/dist/esm/{chunk-HF5WY5YE.js.map → chunk-PAEHH3WS.js.map} +0 -0
  946. /package/dist/esm/{chunk-FHOCUZDR.js.map → chunk-PXUQEA77.js.map} +0 -0
  947. /package/dist/esm/{chunk-7UHKEJ7Q.js.map → chunk-R2MQMCND.js.map} +0 -0
  948. /package/dist/esm/{chunk-64PFYID5.js.map → chunk-RAVFUI7W.js.map} +0 -0
  949. /package/dist/esm/{chunk-CDG5WH4U.js.map → chunk-RUOOCYK4.js.map} +0 -0
  950. /package/dist/esm/{chunk-36A5BYCN.js.map → chunk-RUPET4E7.js.map} +0 -0
  951. /package/dist/esm/{chunk-WGYUWEQV.js.map → chunk-RWN22S44.js.map} +0 -0
  952. /package/dist/esm/{chunk-7NVLCYCL.js.map → chunk-S3GZZXQ7.js.map} +0 -0
  953. /package/dist/esm/{chunk-N4GTDLRD.js.map → chunk-SGUTNJUO.js.map} +0 -0
  954. /package/dist/esm/{chunk-GL5QTWYI.js.map → chunk-SQ4BU4GH.js.map} +0 -0
  955. /package/dist/esm/{chunk-KOFEFBB3.js.map → chunk-T6Z4JUH6.js.map} +0 -0
  956. /package/dist/esm/{chunk-67MKPTZJ.js.map → chunk-TCEQ5VVE.js.map} +0 -0
  957. /package/dist/esm/{chunk-ESPWYN5C.js.map → chunk-TZ5MZQUB.js.map} +0 -0
  958. /package/dist/esm/{chunk-CRSHBENJ.js.map → chunk-UBWRIE4C.js.map} +0 -0
  959. /package/dist/esm/{chunk-ZOY43B55.js.map → chunk-UK3BFTI2.js.map} +0 -0
  960. /package/dist/esm/{chunk-KJUDZCYK.js.map → chunk-VBAXORVV.js.map} +0 -0
  961. /package/dist/esm/{chunk-OTXCKEWT.js.map → chunk-VJXHEDCE.js.map} +0 -0
  962. /package/dist/esm/{chunk-IHK3H2OM.js.map → chunk-VUKTURU4.js.map} +0 -0
  963. /package/dist/esm/{chunk-NQ3D3UXZ.js.map → chunk-VV67KTKA.js.map} +0 -0
  964. /package/dist/esm/{chunk-5SNHUVDA.js.map → chunk-YL62I5SI.js.map} +0 -0
  965. /package/dist/esm/{chunk-2OSGPH7E.js.map → chunk-YLLCCUC7.js.map} +0 -0
  966. /package/dist/esm/{chunk-OMGZG52I.js.map → chunk-ZE2GWHPY.js.map} +0 -0
  967. /package/dist/esm/{chunk-AGSSWWFI.js.map → chunk-ZK55O7TN.js.map} +0 -0
  968. /package/dist/esm/{chunk-YAQBIO2B.js.map → chunk-ZQVYY7UT.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../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", "../../../../src/components/_internal/base-menu.utils.tsx", "../../../../src/hooks/use-breakpoint.ts", "../../../../src/components/shell.types.ts"],
4
- "sourcesContent": ["'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 // Direction is inherited: a Radix DirectionProvider above the Theme (for a right-to-left app)\n // wins, and left-to-right stays the default when there is none.\n const dir = Direction.useDirection();\n const isRoot = context === undefined;\n if (isRoot) {\n return (\n <TooltipPrimitive.Provider delayDuration={200}>\n <Direction.Provider dir={dir}>\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", "'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\n\nimport { Kbd } from '../kbd.js';\nimport { useBreakpoint } from '../../hooks/use-breakpoint.js';\n\nimport type { Breakpoint, Responsive } from '../../props/prop-def.js';\n\nconst BREAKPOINTS_DESCENDING: Breakpoint[] = ['xl', 'lg', 'md', 'sm', 'xs', 'initial'];\n\n/**\n * Resolves a responsive value for the given breakpoint, falling back through\n * the smaller breakpoints when the current one is not set.\n */\nfunction resolveResponsiveValue<T>(\n value: T | Partial<Record<Breakpoint, T>> | undefined,\n currentBreakpoint: Breakpoint,\n defaultValue: T,\n): T {\n if (value === undefined || value === null) return defaultValue;\n if (typeof value !== 'object') return value;\n\n const map = value as Partial<Record<Breakpoint, T>>;\n for (let i = BREAKPOINTS_DESCENDING.indexOf(currentBreakpoint); i < BREAKPOINTS_DESCENDING.length; i++) {\n const resolved = map[BREAKPOINTS_DESCENDING[i]];\n if (resolved !== undefined) return resolved;\n }\n return defaultValue;\n}\n\n/**\n * Resolves a possibly responsive value against the current viewport. Only a\n * responsive object subscribes to breakpoint changes; a plain value costs\n * nothing.\n */\nfunction useResolvedResponsiveValue<T>(value: Responsive<T> | undefined, defaultValue: T): T {\n const isResponsive = typeof value === 'object' && value !== null;\n const { breakpoint } = useBreakpoint(isResponsive);\n return resolveResponsiveValue(value as T | Partial<Record<Breakpoint, T>> | undefined, breakpoint, defaultValue);\n}\n\ntype MenuMaterial = 'solid' | 'translucent';\n\n/**\n * The menu surface material. The component props win, then the nearest\n * Theme's `material`. Theme keeps `panelBackground` in sync with `material` at\n * the root, but a nested `<Theme material=\"solid\">` only updates `material`,\n * so reading the deprecated `panelBackground` from the theme gave the wrong\n * surface there.\n */\nfunction resolveMenuMaterial(\n material: MenuMaterial | undefined,\n panelBackground: MenuMaterial | undefined,\n theme: { material: MenuMaterial; panelBackground: MenuMaterial },\n): MenuMaterial {\n return material ?? panelBackground ?? theme.material ?? theme.panelBackground;\n}\n\n/** Content padding per menu size, in px at 100% scaling (see base-menu.css). */\nconst CONTENT_PADDING: Record<string, number> = { '1': 8, '2': 12, '3': 12 };\n\n/**\n * Offset that lines the first item of a menu up with its anchor: the pointer\n * for a context menu, or the sub trigger for a submenu. It cancels the content\n * padding, which scales with the theme.\n */\nfunction getMenuAlignOffset(size: string, scaling: string | undefined): number {\n const scale = scaling ? parseFloat(scaling) / 100 : 1;\n const padding = CONTENT_PADDING[size] ?? CONTENT_PADDING['2'];\n return -Math.round(padding * (Number.isFinite(scale) ? scale : 1));\n}\n\nconst KEY_SYMBOLS: Record<string, string> = {\n '\u2318': 'Meta',\n cmd: 'Meta',\n command: 'Meta',\n meta: 'Meta',\n '\u2325': 'Alt',\n option: 'Alt',\n opt: 'Alt',\n alt: 'Alt',\n '\u21E7': 'Shift',\n shift: 'Shift',\n '\u2303': 'Control',\n ctrl: 'Control',\n control: 'Control',\n '\u232B': 'Backspace',\n '\u2326': 'Delete',\n '\u23CE': 'Enter',\n '\u21B5': 'Enter',\n '\u238B': 'Escape',\n esc: 'Escape',\n '\u21E5': 'Tab',\n '\u2191': 'ArrowUp',\n '\u2193': 'ArrowDown',\n '\u2190': 'ArrowLeft',\n '\u2192': 'ArrowRight',\n};\n\nconst ariaKeyShortcutsCache = new Map<string, string>();\n\n/**\n * Converts a display shortcut such as \"\u2318 \u21E7 P\" or \"Ctrl+S\" into the\n * `aria-keyshortcuts` format (\"Meta+Shift+P\", \"Control+S\").\n */\nfunction toAriaKeyShortcuts(shortcut: string): string | undefined {\n const cached = ariaKeyShortcutsCache.get(shortcut);\n if (cached !== undefined) return cached || undefined;\n\n // Modifier symbols are tokens of their own (\"\u2318\u21E7P\"); otherwise split on \"+\" and spaces.\n const tokens = shortcut.match(/[\u2318\u2325\u21E7\u2303]|[^\\s+\u2318\u2325\u21E7\u2303]+/gu) ?? [];\n const keys = tokens.map((token) => {\n const mapped = KEY_SYMBOLS[token] ?? KEY_SYMBOLS[token.toLowerCase()];\n return mapped ?? (token.length === 1 ? token.toUpperCase() : token);\n });\n const result = keys.join('+');\n ariaKeyShortcutsCache.set(shortcut, result);\n return result || undefined;\n}\n\n/**\n * The keyboard shortcut hint at the end of a menu item. It is hidden from\n * assistive technology because the item exposes it through\n * `aria-keyshortcuts` instead of reading it as part of the item name.\n */\nfunction MenuShortcut({ shortcut, className }: { shortcut: string; className?: string }) {\n return (\n <div aria-hidden className={classNames('rt-BaseMenuShortcut', className)}>\n <Kbd size=\"1\">{shortcut}</Kbd>\n </div>\n );\n}\n\nexport {\n resolveResponsiveValue,\n useResolvedResponsiveValue,\n resolveMenuMaterial,\n getMenuAlignOffset,\n toAriaKeyShortcuts,\n MenuShortcut,\n};\nexport type { MenuMaterial };\n", "'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};\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ACX,GAAY,SAAZ,CAAqB,MAAOY,GAAQL,CAAS,CACvD,CAEO,SAASM,IAAiB,CAC/B,OAAa,aAAWb,EAAW,CACrC",
4
+ "sourcesContent": ["'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 // Direction is inherited: a Radix DirectionProvider above the Theme (for a right-to-left app)\n // wins, and left-to-right stays the default when there is none.\n const dir = Direction.useDirection();\n const isRoot = context === undefined;\n if (isRoot) {\n return (\n <TooltipPrimitive.Provider delayDuration={200}>\n <Direction.Provider dir={dir}>\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\n// For components whose colour comes from their content (Badge, Avatar, Code, Callout,\n// UserCard): they rest gray, and `color` picks a category when it means something.\nconst grayAccentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: 'gray' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\nexport {\n accentColorPropDef,\n grayAccentColorPropDef,\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: 'gray' },\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: 'gray' },\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: 'solid' },\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: 'solid' },\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", "'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\n\nimport { Kbd } from '../kbd.js';\nimport { useBreakpoint } from '../../hooks/use-breakpoint.js';\n\nimport type { Breakpoint, Responsive } from '../../props/prop-def.js';\n\nconst BREAKPOINTS_DESCENDING: Breakpoint[] = ['xl', 'lg', 'md', 'sm', 'xs', 'initial'];\n\n/**\n * Resolves a responsive value for the given breakpoint, falling back through\n * the smaller breakpoints when the current one is not set.\n */\nfunction resolveResponsiveValue<T>(\n value: T | Partial<Record<Breakpoint, T>> | undefined,\n currentBreakpoint: Breakpoint,\n defaultValue: T,\n): T {\n if (value === undefined || value === null) return defaultValue;\n if (typeof value !== 'object') return value;\n\n const map = value as Partial<Record<Breakpoint, T>>;\n for (let i = BREAKPOINTS_DESCENDING.indexOf(currentBreakpoint); i < BREAKPOINTS_DESCENDING.length; i++) {\n const resolved = map[BREAKPOINTS_DESCENDING[i]];\n if (resolved !== undefined) return resolved;\n }\n return defaultValue;\n}\n\n/**\n * Resolves a possibly responsive value against the current viewport. Only a\n * responsive object subscribes to breakpoint changes; a plain value costs\n * nothing.\n */\nfunction useResolvedResponsiveValue<T>(value: Responsive<T> | undefined, defaultValue: T): T {\n const isResponsive = typeof value === 'object' && value !== null;\n const { breakpoint } = useBreakpoint(isResponsive);\n return resolveResponsiveValue(value as T | Partial<Record<Breakpoint, T>> | undefined, breakpoint, defaultValue);\n}\n\ntype MenuMaterial = 'solid' | 'translucent';\n\n/**\n * The menu surface material. The component props win, then the nearest\n * Theme's `material`. Theme keeps `panelBackground` in sync with `material` at\n * the root, but a nested `<Theme material=\"solid\">` only updates `material`,\n * so reading the deprecated `panelBackground` from the theme gave the wrong\n * surface there.\n */\nfunction resolveMenuMaterial(\n material: MenuMaterial | undefined,\n panelBackground: MenuMaterial | undefined,\n theme: { material: MenuMaterial; panelBackground: MenuMaterial },\n): MenuMaterial {\n return material ?? panelBackground ?? theme.material ?? theme.panelBackground;\n}\n\n/** Content padding per menu size, in px at 100% scaling (see base-menu.css). */\nconst CONTENT_PADDING: Record<string, number> = { '1': 8, '2': 12, '3': 12 };\n\n/**\n * Offset that lines the first item of a menu up with its anchor: the pointer\n * for a context menu, or the sub trigger for a submenu. It cancels the content\n * padding, which scales with the theme.\n */\nfunction getMenuAlignOffset(size: string, scaling: string | undefined): number {\n const scale = scaling ? parseFloat(scaling) / 100 : 1;\n const padding = CONTENT_PADDING[size] ?? CONTENT_PADDING['2'];\n return -Math.round(padding * (Number.isFinite(scale) ? scale : 1));\n}\n\nconst KEY_SYMBOLS: Record<string, string> = {\n '\u2318': 'Meta',\n cmd: 'Meta',\n command: 'Meta',\n meta: 'Meta',\n '\u2325': 'Alt',\n option: 'Alt',\n opt: 'Alt',\n alt: 'Alt',\n '\u21E7': 'Shift',\n shift: 'Shift',\n '\u2303': 'Control',\n ctrl: 'Control',\n control: 'Control',\n '\u232B': 'Backspace',\n '\u2326': 'Delete',\n '\u23CE': 'Enter',\n '\u21B5': 'Enter',\n '\u238B': 'Escape',\n esc: 'Escape',\n '\u21E5': 'Tab',\n '\u2191': 'ArrowUp',\n '\u2193': 'ArrowDown',\n '\u2190': 'ArrowLeft',\n '\u2192': 'ArrowRight',\n};\n\nconst ariaKeyShortcutsCache = new Map<string, string>();\n\n/**\n * Converts a display shortcut such as \"\u2318 \u21E7 P\" or \"Ctrl+S\" into the\n * `aria-keyshortcuts` format (\"Meta+Shift+P\", \"Control+S\").\n */\nfunction toAriaKeyShortcuts(shortcut: string): string | undefined {\n const cached = ariaKeyShortcutsCache.get(shortcut);\n if (cached !== undefined) return cached || undefined;\n\n // Modifier symbols are tokens of their own (\"\u2318\u21E7P\"); otherwise split on \"+\" and spaces.\n const tokens = shortcut.match(/[\u2318\u2325\u21E7\u2303]|[^\\s+\u2318\u2325\u21E7\u2303]+/gu) ?? [];\n const keys = tokens.map((token) => {\n const mapped = KEY_SYMBOLS[token] ?? KEY_SYMBOLS[token.toLowerCase()];\n return mapped ?? (token.length === 1 ? token.toUpperCase() : token);\n });\n const result = keys.join('+');\n ariaKeyShortcutsCache.set(shortcut, result);\n return result || undefined;\n}\n\n/**\n * The keyboard shortcut hint at the end of a menu item. It is hidden from\n * assistive technology because the item exposes it through\n * `aria-keyshortcuts` instead of reading it as part of the item name.\n */\nfunction MenuShortcut({ shortcut, className }: { shortcut: string; className?: string }) {\n return (\n <div aria-hidden className={classNames('rt-BaseMenuShortcut', className)}>\n <Kbd size=\"1\">{shortcut}</Kbd>\n </div>\n );\n}\n\nexport {\n resolveResponsiveValue,\n useResolvedResponsiveValue,\n resolveMenuMaterial,\n getMenuAlignOffset,\n toAriaKeyShortcuts,\n MenuShortcut,\n};\nexport type { MenuMaterial };\n", "'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": "slBAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,kBAAAE,GAAA,sBAAAC,GAAA,yBAAAC,GAAA,mBAAAC,KAAA,eAAAC,GAAAN,IAEA,IAAAO,EA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MenuItemHeight", "menuSizeToItemHeight", "useMenuContext", "__toCommonJS", "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", "context", "dir", "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", "asChild", "isRoot", "hasBackgroundProp", "onAppearanceChange", "onAccentColorChange", "onGrayColorChange", "onMaterialChange", "onPanelBackgroundChange", "onRadiusChange", "onScalingChange", "onFontFamilyChange", "onHeadingFontFamilyChange", "themeProps", "Comp", "resolvedGrayColor", "getMatchingGrayColor", "isExplicitAppearance", "rootRef", "composedRef", "hasExplicitOS", "node", "os", "classNames", "React", "import_classnames", "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", "subscribe", "getSnapshot", "getServerSnapshot", "ready", "BREAKPOINTS_DESCENDING", "resolveResponsiveValue", "value", "currentBreakpoint", "defaultValue", "map", "i", "resolved", "useResolvedResponsiveValue", "isResponsive", "breakpoint", "useBreakpoint", "MenuContext", "menuSizeToItemHeight", "getMenuItemHeight", "size", "scaling", "scale", "MenuProvider", "children", "resolvedSize", "useResolvedResponsiveValue", "useThemeContext", "itemHeight", "value", "useMenuContext"]
7
7
  }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * A pane's own chrome: a header row, a scrolling region and a footer row.
3
+ *
4
+ * Shell.Sidebar and Shell.Panel render these as `Shell.PaneHeader`, `Shell.Scroll` and
5
+ * `Shell.PaneFooter`. The pane renders anything; with these parts it is the presentation, so
6
+ * Sidebar's menu parts work inside it with no `Sidebar.Root`. The index comes from the nearest
7
+ * Shell (`Shell.Root size`), or from a deprecated `Sidebar.Root` that still wraps them.
8
+ */
9
+ import * as React from 'react';
10
+ type PaneSize = '1' | '2' | '3';
11
+ type SidebarVisualContextValue = {
12
+ size: PaneSize;
13
+ menuVariant: 'solid' | 'soft';
14
+ presentation?: 'thin' | 'expanded';
15
+ color?: string;
16
+ };
17
+ /** Size, menu highlight and presentation for the Sidebar parts. Internal: not exported. */
18
+ declare const SidebarVisualContext: React.Context<SidebarVisualContextValue | null>;
19
+ declare function useSidebarVisual(): SidebarVisualContextValue | null;
20
+ /** The Shell's index. `Shell.Root size` sets it; panes hand it to their chrome. */
21
+ declare const ShellSizeContext: React.Context<PaneSize>;
22
+ /**
23
+ * Gives a Shell pane's children the Shell's index, so Sidebar parts size themselves. In a Rail
24
+ * the rows are `thin`: icon tiles with a small label, sub-menus as dropdowns.
25
+ */
26
+ declare function PaneChromeScope({ children, presentation }: {
27
+ children: React.ReactNode;
28
+ presentation?: 'thin';
29
+ }): React.JSX.Element;
30
+ interface PaneHeaderProps extends React.ComponentPropsWithoutRef<'div'> {
31
+ }
32
+ /** A pane's header row, pinned above its scrolling region. */
33
+ declare const PaneHeader: React.ForwardRefExoticComponent<PaneHeaderProps & React.RefAttributes<HTMLDivElement>>;
34
+ interface PaneFooterProps extends React.ComponentPropsWithoutRef<'div'> {
35
+ }
36
+ /** A pane's footer row, pinned below its scrolling region. */
37
+ declare const PaneFooter: React.ForwardRefExoticComponent<PaneFooterProps & React.RefAttributes<HTMLDivElement>>;
38
+ interface ScrollProps extends React.ComponentPropsWithoutRef<'div'> {
39
+ }
40
+ /**
41
+ * The one region of a pane that scrolls; it takes the room the header and footer leave.
42
+ * It is not a landmark: for navigation, pass `role="navigation"` and an `aria-label`.
43
+ */
44
+ declare const Scroll: React.ForwardRefExoticComponent<ScrollProps & React.RefAttributes<HTMLDivElement>>;
45
+ export { SidebarVisualContext, useSidebarVisual, ShellSizeContext, PaneChromeScope, PaneHeader, PaneFooter, Scroll };
46
+ export type { SidebarVisualContextValue, PaneSize, PaneHeaderProps, PaneFooterProps, ScrollProps };
47
+ //# sourceMappingURL=pane-chrome.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pane-chrome.d.ts","sourceRoot":"","sources":["../../../../src/components/_internal/pane-chrome.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,KAAK,QAAQ,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAEhC,KAAK,yBAAyB,GAAG;IAC/B,IAAI,EAAE,QAAQ,CAAC;IACf,WAAW,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,2FAA2F;AAC3F,QAAA,MAAM,oBAAoB,iDAA8D,CAAC;AAEzF,iBAAS,gBAAgB,qCAExB;AAED,mFAAmF;AACnF,QAAA,MAAM,gBAAgB,yBAAqC,CAAC;AAE5D;;;GAGG;AACH,iBAAS,eAAe,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,qBAIxG;AASD,UAAU,eAAgB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;CAAG;AAE1E,8DAA8D;AAC9D,QAAA,MAAM,UAAU,wFAGd,CAAC;AAGH,UAAU,eAAgB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;CAAG;AAE1E,8DAA8D;AAC9D,QAAA,MAAM,UAAU,wFAGd,CAAC;AAGH,UAAU,WAAY,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;CAAG;AAEtE;;;GAGG;AACH,QAAA,MAAM,MAAM,oFASV,CAAC;AAGH,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;AACrH,YAAY,EAAE,yBAAyB,EAAE,QAAQ,EAAE,eAAe,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";"use client";var se=Object.create;var v=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var ie=Object.getOwnPropertyNames;var ae=Object.getPrototypeOf,pe=Object.prototype.hasOwnProperty;var le=(r,e)=>{for(var t in e)v(r,t,{get:e[t],enumerable:!0})},j=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ie(e))!pe.call(r,s)&&s!==t&&v(r,s,{get:()=>e[s],enumerable:!(o=ne(e,s))||o.enumerable});return r};var P=(r,e,t)=>(t=r!=null?se(ae(r)):{},j(e||!r||!r.__esModule?v(t,"default",{value:r,enumerable:!0}):t,r)),me=r=>j(v({},"__esModule",{value:!0}),r);var Re={};le(Re,{PaneChromeScope:()=>ve,PaneFooter:()=>Y,PaneHeader:()=>X,Scroll:()=>Z,ShellSizeContext:()=>Q,SidebarVisualContext:()=>z,useSidebarVisual:()=>J});module.exports=me(Re);var l=P(require("react")),x=P(require("classnames"));var m=P(require("react")),N=P(require("classnames")),u=require("radix-ui"),_=require("radix-ui/internal");var $={asChild:{type:"boolean"}};var ce=["none","small","medium","large","full"],H={radius:{type:"enum",values:ce,default:void 0}};var fe=["1","2","3"],ue=["vertical","horizontal","both"],d={...$,size:{type:"enum",className:"rt-r-size",values:fe,default:"1",responsive:!0},...H,scrollbars:{type:"enum",values:ue,default:"both"},fade:{type:"boolean",default:!1}};var R=P(require("react"));function G(r){let[e,t]=R.useState(null);return R.useEffect(()=>{if(!r||!e)return;let o=0,s=()=>{o=0;let p=Math.max(0,e.scrollTop),c=Math.max(0,e.scrollHeight-e.clientHeight-e.scrollTop);e.style.setProperty("--scroll-overflow-start",`${p}px`),e.style.setProperty("--scroll-overflow-end",`${c}px`)},n=()=>{o||(o=requestAnimationFrame(s))};s(),e.addEventListener("scroll",n,{passive:!0});let i=typeof ResizeObserver>"u"?null:new ResizeObserver(n);i?.observe(e);for(let p of Array.from(e.children))i?.observe(p);let a=typeof MutationObserver>"u"?null:new MutationObserver(n);return a?.observe(e,{childList:!0}),()=>{o&&cancelAnimationFrame(o),e.removeEventListener("scroll",n),i?.disconnect(),a?.disconnect(),e.style.removeProperty("--scroll-overflow-start"),e.style.removeProperty("--scroll-overflow-end")}},[r,e]),t}function B(r){let{m:e,mx:t,my:o,mt:s,mr:n,mb:i,ml:a,...p}=r;return{m:e,mx:t,my:o,mt:s,mr:n,mb:i,ml:a,rest:p}}var de=["initial","xs","sm","md","lg","xl"],T=new Set(de);function V(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var ye=new Set(["initial","xs","sm","md","lg","xl"]);function A(r){if(typeof r!="object"||r===null)return!1;for(let e in r)if(ye.has(e))return!0;return!1}function S(r,e,t){return e!==void 0?e.has(t):r.includes(t)}function L({className:r,customProperties:e,...t}){let o=b({allowArbitraryValues:!0,className:r,...t}),s=Pe({customProperties:e,...t});return[o,s]}function b({allowArbitraryValues:r,value:e,className:t,propValues:o,propValueSet:s,parseValue:n=i=>i}){if(e){if(typeof e=="string")return S(o,s,e)?F(t,e,n):r?t:void 0;if(A(e)){let i=e,a=[];for(let p in i){if(!V(i,p)||!T.has(p))continue;let c=i[p];if(c!==void 0){if(S(o,s,c)){let f=F(t,c,n),g=p==="initial"?f:`${p}:${f}`;a.push(g)}else if(r){let f=p==="initial"?t:`${p}:${t}`;a.push(f)}}}return a.length>0?a.join(" "):""}if(r)return t}}function F(r,e,t){let o=r?"-":"",s=t(e),n=s?.startsWith("-"),i=n?"-":"",a=n?s?.substring(1):s;return`${i}${r}${o}${a}`}function Pe({customProperties:r,value:e,propValues:t,propValueSet:o,parseValue:s=n=>n}){if(!e||typeof e=="string"&&S(t,o,e))return;let n;if(typeof e=="string"){let i=s(e);n={};for(let a of r)n[a]=i;return n}if(A(e)){let i=e;for(let a in i){if(!V(i,a)||!T.has(a))continue;let p=i[a];if(p===void 0||S(t,o,p))continue;let c=s(p);n??(n={});for(let f of r){let g=a==="initial"?f:`${f}-${a}`;n[g]=c}}}return n??{}}function D(...r){let e;for(let t of r)t&&(e===void 0&&(e={}),Object.assign(e,t));return e}var y=["0","1","2","3","4","5","6","7","8","9","10","11","12","-1","-2","-3","-4","-5","-6","-7","-8","-9","-10","-11","-12"],U={m:{type:"enum | string",values:y,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:y,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:y,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:y,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:y,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:y,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:y,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}};var q=U.m.values,ge=new Set(q),W=[{key:"m",className:"rt-r-m",customProperties:["--margin"]},{key:"mx",className:"rt-r-mx",customProperties:["--margin-left","--margin-right"]},{key:"my",className:"rt-r-my",customProperties:["--margin-top","--margin-bottom"]},{key:"mt",className:"rt-r-mt",customProperties:["--margin-top"]},{key:"mr",className:"rt-r-mr",customProperties:["--margin-right"]},{key:"mb",className:"rt-r-mb",customProperties:["--margin-bottom"]},{key:"ml",className:"rt-r-ml",customProperties:["--margin-left"]}];function K(r){let e,t;for(let o=0;o<W.length;o++){let{key:s,className:n,customProperties:i}=W[o],a=r[s];if(a===void 0)continue;let[p,c]=L({className:n,customProperties:i,propValues:q,propValueSet:ge,value:a});p&&(e??(e=[])).push(p),c&&(t=D(t,c))}return[e!==void 0?e.join(" "):"",t]}var h=P(require("react"));function I(r,e){let{asChild:t,children:o}=r;if(!t)return typeof e=="function"?e(o):e;let s=h.Children.only(o);return h.cloneElement(s,{children:typeof e=="function"?e(s.props.children):e})}var w=m.forwardRef((r,e)=>{let{rest:t,...o}=B(r),[s,n]=K(o),{asChild:i,children:a,className:p,style:c,type:f,scrollHideDelay:g=f!=="scroll"?0:void 0,dir:Se,size:M=d.size.default,radius:O=d.radius.default,scrollbars:C=d.scrollbars.default,fade:k=d.fade.default,...ee}=t,re=G(k),te=(0,_.useComposedRefs)(e,re);return m.createElement(u.ScrollArea.Root,{type:f,scrollHideDelay:g,className:(0,N.default)("rt-ScrollAreaRoot",s,p),"data-fade":k?"":void 0,style:D(n,c),asChild:i},I({asChild:i,children:a},oe=>m.createElement(m.Fragment,null,m.createElement(u.ScrollArea.Viewport,{...ee,ref:te,className:"rt-ScrollAreaViewport"},oe),m.createElement("div",{className:"rt-ScrollAreaViewportFocusRing"}),C!=="vertical"?m.createElement(u.ScrollArea.Scrollbar,{"data-radius":O,orientation:"horizontal",className:(0,N.default)("rt-ScrollAreaScrollbar",b({className:"rt-r-size",value:M,propValues:d.size.values}))},m.createElement(u.ScrollArea.Thumb,{className:"rt-ScrollAreaThumb"})):null,C!=="horizontal"?m.createElement(u.ScrollArea.Scrollbar,{"data-radius":O,orientation:"vertical",className:(0,N.default)("rt-ScrollAreaScrollbar",b({className:"rt-r-size",value:M,propValues:d.size.values}))},m.createElement(u.ScrollArea.Thumb,{className:"rt-ScrollAreaThumb"})):null,C==="both"?m.createElement(u.ScrollArea.Corner,{className:"rt-ScrollAreaCorner"}):null)))});w.displayName="ScrollArea";var z=l.createContext(null);function J(){return l.useContext(z)}var Q=l.createContext("2");function ve({children:r,presentation:e}){let t=l.useContext(Q),o=l.useMemo(()=>({size:t,menuVariant:"soft",presentation:e}),[t,e]);return l.createElement(z.Provider,{value:o},r)}function E(){let r=J(),e=r?.size??"2",t=r?.menuVariant??"soft";return["rt-ShellPaneChrome",`rt-r-size-${e}`,`rt-menu-variant-${t}`]}var X=l.forwardRef(({className:r,...e},t)=>{let o=E();return l.createElement("div",{...e,ref:t,className:(0,x.default)("rt-ShellPaneHeader","rt-SidebarHeader","rt-SidebarHeader--container",...o,r)})});X.displayName="Shell.PaneHeader";var Y=l.forwardRef(({className:r,...e},t)=>{let o=E();return l.createElement("div",{...e,ref:t,className:(0,x.default)("rt-ShellPaneFooter","rt-SidebarFooter","rt-SidebarFooter--container",...o,r)})});Y.displayName="Shell.PaneFooter";var Z=l.forwardRef(({className:r,children:e,...t},o)=>{let s=E();return l.createElement(w,{type:"hover",className:"rt-ShellScroll"},l.createElement("div",{...t,ref:o,className:(0,x.default)("rt-BaseMenuContent","rt-SidebarContent",...s,r)},l.createElement("div",{className:"rt-BaseMenuViewport"},e)))});Z.displayName="Shell.Scroll";
2
+ //# sourceMappingURL=pane-chrome.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/components/_internal/pane-chrome.tsx", "../../../../src/components/scroll-area.tsx", "../../../../src/props/as-child.prop.ts", "../../../../src/props/radius.prop.ts", "../../../../src/components/scroll-area.props.tsx", "../../../../src/hooks/use-scroll-edges.ts", "../../../../src/helpers/extract-margin-props.ts", "../../../../src/props/prop-def.ts", "../../../../src/helpers/has-own-property.ts", "../../../../src/helpers/is-responsive-object.ts", "../../../../src/helpers/get-responsive-styles.ts", "../../../../src/helpers/merge-styles.ts", "../../../../src/props/margin.props.ts", "../../../../src/helpers/get-margin-styles.ts", "../../../../src/helpers/get-subtree.ts"],
4
+ "sourcesContent": ["'use client';\n\n/**\n * A pane's own chrome: a header row, a scrolling region and a footer row.\n *\n * Shell.Sidebar and Shell.Panel render these as `Shell.PaneHeader`, `Shell.Scroll` and\n * `Shell.PaneFooter`. The pane renders anything; with these parts it is the presentation, so\n * Sidebar's menu parts work inside it with no `Sidebar.Root`. The index comes from the nearest\n * Shell (`Shell.Root size`), or from a deprecated `Sidebar.Root` that still wraps them.\n */\n\nimport * as React from 'react';\nimport classNames from 'classnames';\n\nimport { ScrollArea } from '../scroll-area.js';\n\ntype PaneSize = '1' | '2' | '3';\n\ntype SidebarVisualContextValue = {\n size: PaneSize;\n menuVariant: 'solid' | 'soft';\n presentation?: 'thin' | 'expanded';\n color?: string;\n};\n\n/** Size, menu highlight and presentation for the Sidebar parts. Internal: not exported. */\nconst SidebarVisualContext = React.createContext<SidebarVisualContextValue | null>(null);\n\nfunction useSidebarVisual() {\n return React.useContext(SidebarVisualContext);\n}\n\n/** The Shell's index. `Shell.Root size` sets it; panes hand it to their chrome. */\nconst ShellSizeContext = React.createContext<PaneSize>('2');\n\n/**\n * Gives a Shell pane's children the Shell's index, so Sidebar parts size themselves. In a Rail\n * the rows are `thin`: icon tiles with a small label, sub-menus as dropdowns.\n */\nfunction PaneChromeScope({ children, presentation }: { children: React.ReactNode; presentation?: 'thin' }) {\n const size = React.useContext(ShellSizeContext);\n const value = React.useMemo<SidebarVisualContextValue>(() => ({ size, menuVariant: 'soft', presentation }), [size, presentation]);\n return <SidebarVisualContext.Provider value={value}>{children}</SidebarVisualContext.Provider>;\n}\n\nfunction useChromeClasses() {\n const visual = useSidebarVisual();\n const size = visual?.size ?? '2';\n const menuVariant = visual?.menuVariant ?? 'soft';\n return ['rt-ShellPaneChrome', `rt-r-size-${size}`, `rt-menu-variant-${menuVariant}`];\n}\n\ninterface PaneHeaderProps extends React.ComponentPropsWithoutRef<'div'> {}\n\n/** A pane's header row, pinned above its scrolling region. */\nconst PaneHeader = React.forwardRef<HTMLDivElement, PaneHeaderProps>(({ className, ...props }, forwardedRef) => {\n const chrome = useChromeClasses();\n return <div {...props} ref={forwardedRef} className={classNames('rt-ShellPaneHeader', 'rt-SidebarHeader', 'rt-SidebarHeader--container', ...chrome, className)} />;\n});\nPaneHeader.displayName = 'Shell.PaneHeader';\n\ninterface PaneFooterProps extends React.ComponentPropsWithoutRef<'div'> {}\n\n/** A pane's footer row, pinned below its scrolling region. */\nconst PaneFooter = React.forwardRef<HTMLDivElement, PaneFooterProps>(({ className, ...props }, forwardedRef) => {\n const chrome = useChromeClasses();\n return <div {...props} ref={forwardedRef} className={classNames('rt-ShellPaneFooter', 'rt-SidebarFooter', 'rt-SidebarFooter--container', ...chrome, className)} />;\n});\nPaneFooter.displayName = 'Shell.PaneFooter';\n\ninterface ScrollProps extends React.ComponentPropsWithoutRef<'div'> {}\n\n/**\n * The one region of a pane that scrolls; it takes the room the header and footer leave.\n * It is not a landmark: for navigation, pass `role=\"navigation\"` and an `aria-label`.\n */\nconst Scroll = React.forwardRef<HTMLDivElement, ScrollProps>(({ className, children, ...props }, forwardedRef) => {\n const chrome = useChromeClasses();\n return (\n <ScrollArea type=\"hover\" className=\"rt-ShellScroll\">\n <div {...props} ref={forwardedRef} className={classNames('rt-BaseMenuContent', 'rt-SidebarContent', ...chrome, className)}>\n <div className=\"rt-BaseMenuViewport\">{children}</div>\n </div>\n </ScrollArea>\n );\n});\nScroll.displayName = 'Shell.Scroll';\n\nexport { SidebarVisualContext, useSidebarVisual, ShellSizeContext, PaneChromeScope, PaneHeader, PaneFooter, Scroll };\nexport type { SidebarVisualContextValue, PaneSize, PaneHeaderProps, PaneFooterProps, ScrollProps };\n", "import * as React from 'react';\nimport classNames from 'classnames';\nimport { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';\nimport { useComposedRefs } from 'radix-ui/internal';\n\nimport { scrollAreaPropDefs } from './scroll-area.props.js';\nimport { useScrollEdges } from '../hooks/use-scroll-edges.js';\nimport { extractMarginProps } from '../helpers/extract-margin-props.js';\nimport { getMarginStyles } from '../helpers/get-margin-styles.js';\nimport { getResponsiveClassNames } from '../helpers/get-responsive-styles.js';\nimport { getSubtree } from '../helpers/get-subtree.js';\nimport { mergeStyles } from '../helpers/merge-styles.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype ScrollAreaElement = React.ElementRef<typeof ScrollAreaPrimitive.Viewport>;\ntype ScrollAreaOwnProps = GetPropDefTypes<typeof scrollAreaPropDefs>;\ninterface ScrollAreaProps\n extends ComponentPropsWithout<typeof ScrollAreaPrimitive.Root, RemovedProps>,\n ComponentPropsWithout<typeof ScrollAreaPrimitive.Viewport, RemovedProps | 'dir'>,\n MarginProps,\n ScrollAreaOwnProps {}\nconst ScrollArea = React.forwardRef<ScrollAreaElement, ScrollAreaProps>((props, forwardedRef) => {\n const { rest: marginRest, ...marginProps } = extractMarginProps(props);\n const [marginClassNames, marginCustomProperties] = getMarginStyles(marginProps);\n\n const {\n asChild,\n children,\n className,\n style,\n type,\n scrollHideDelay = type !== 'scroll' ? 0 : undefined,\n dir,\n size = scrollAreaPropDefs.size.default,\n radius = scrollAreaPropDefs.radius.default,\n scrollbars = scrollAreaPropDefs.scrollbars.default,\n fade = scrollAreaPropDefs.fade.default,\n ...viewportProps\n } = marginRest;\n const setEdgesElement = useScrollEdges<HTMLDivElement>(fade);\n const viewportRef = useComposedRefs(forwardedRef, setEdgesElement);\n\n return (\n <ScrollAreaPrimitive.Root\n type={type}\n scrollHideDelay={scrollHideDelay}\n className={classNames('rt-ScrollAreaRoot', marginClassNames, className)}\n data-fade={fade ? '' : undefined}\n style={mergeStyles(marginCustomProperties, style)}\n asChild={asChild}\n >\n {getSubtree({ asChild, children }, (children) => (\n <>\n <ScrollAreaPrimitive.Viewport\n {...viewportProps}\n ref={viewportRef}\n className=\"rt-ScrollAreaViewport\"\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n\n <div className=\"rt-ScrollAreaViewportFocusRing\" />\n\n {scrollbars !== 'vertical' ? (\n <ScrollAreaPrimitive.Scrollbar\n data-radius={radius}\n orientation=\"horizontal\"\n className={classNames(\n 'rt-ScrollAreaScrollbar',\n getResponsiveClassNames({\n className: 'rt-r-size',\n value: size,\n propValues: scrollAreaPropDefs.size.values,\n }),\n )}\n >\n <ScrollAreaPrimitive.Thumb className=\"rt-ScrollAreaThumb\" />\n </ScrollAreaPrimitive.Scrollbar>\n ) : null}\n\n {scrollbars !== 'horizontal' ? (\n <ScrollAreaPrimitive.Scrollbar\n data-radius={radius}\n orientation=\"vertical\"\n className={classNames(\n 'rt-ScrollAreaScrollbar',\n getResponsiveClassNames({\n className: 'rt-r-size',\n value: size,\n propValues: scrollAreaPropDefs.size.values,\n }),\n )}\n >\n <ScrollAreaPrimitive.Thumb className=\"rt-ScrollAreaThumb\" />\n </ScrollAreaPrimitive.Scrollbar>\n ) : null}\n\n {scrollbars === 'both' ? (\n <ScrollAreaPrimitive.Corner className=\"rt-ScrollAreaCorner\" />\n ) : null}\n </>\n ))}\n </ScrollAreaPrimitive.Root>\n );\n});\nScrollArea.displayName = 'ScrollArea';\n\nexport { ScrollArea };\nexport type { ScrollAreaProps };\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\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 { radiusPropDef } from '../props/radius.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3'] as const;\nconst scrollbarsValues = ['vertical', 'horizontal', 'both'] as const;\n\nconst scrollAreaPropDefs = {\n ...asChildPropDef,\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '1', responsive: true },\n ...radiusPropDef,\n scrollbars: { type: 'enum', values: scrollbarsValues, default: 'both' },\n /**\n * Fades the content toward the top and bottom edges while there is more content past them.\n * An edge with nothing hidden past it does not fade. A floating band over an edge can set\n * `--scroll-fade-start` or `--scroll-fade-end` to its height, so content fades as it passes\n * under the band.\n */\n fade: { type: 'boolean', default: false },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n scrollbars: PropDef<(typeof scrollbarsValues)[number]>;\n fade: PropDef<boolean>;\n};\n\nexport { scrollAreaPropDefs };\n", "import * as React from 'react';\n\n/**\n * Publishes how much content is hidden past each block edge of a scroller, as\n * `--scroll-overflow-start` and `--scroll-overflow-end` (px) on the element.\n * The scroll fade reads them, so an edge fades only while content is hidden\n * there, and the fade ramps in over the first pixels of scrolling.\n *\n * Writes happen at most once per frame, on scroll and when the element or its\n * content resizes. Nothing re-renders.\n */\nexport function useScrollEdges<T extends HTMLElement>(enabled: boolean) {\n const [element, setElement] = React.useState<T | null>(null);\n\n React.useEffect(() => {\n if (!enabled || !element) return;\n let frame = 0;\n const write = () => {\n frame = 0;\n const start = Math.max(0, element.scrollTop);\n const end = Math.max(0, element.scrollHeight - element.clientHeight - element.scrollTop);\n element.style.setProperty('--scroll-overflow-start', `${start}px`);\n element.style.setProperty('--scroll-overflow-end', `${end}px`);\n };\n const schedule = () => {\n if (!frame) frame = requestAnimationFrame(write);\n };\n write();\n element.addEventListener('scroll', schedule, { passive: true });\n const observer = typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(schedule);\n observer?.observe(element);\n for (const child of Array.from(element.children)) observer?.observe(child);\n const mutations = typeof MutationObserver === 'undefined' ? null : new MutationObserver(schedule);\n mutations?.observe(element, { childList: true });\n return () => {\n if (frame) cancelAnimationFrame(frame);\n element.removeEventListener('scroll', schedule);\n observer?.disconnect();\n mutations?.disconnect();\n element.style.removeProperty('--scroll-overflow-start');\n element.style.removeProperty('--scroll-overflow-end');\n };\n }, [enabled, element]);\n\n return setElement;\n}\n", "import type { MarginProps } from '../props/margin.props.js';\n\nexport function extractMarginProps<T extends MarginProps>(props: T) {\n const { m, mx, my, mt, mr, mb, ml, ...rest } = props;\n return { m, mx, my, mt, mr, mb, ml, rest };\n}\n", "import type React from 'react';\n\n// Creates a union type of string literals with strings, but retains intellisense for the literals.\n// Union<string, 'foo' | 'bar'> => string | Omit<string, 'foo' | 'bar'>\ntype Union<S = string, T extends string | number = string> = T | Omit<S, T>;\n\nconst breakpoints = ['initial', 'xs', 'sm', 'md', 'lg', 'xl'] as const;\nconst breakpointSet: Set<string> = new Set(breakpoints);\ntype Breakpoint = (typeof breakpoints)[number];\ntype Responsive<T> = T | Partial<Record<Breakpoint, T>>;\n\ntype BooleanPropDef = {\n type: 'boolean';\n default?: boolean;\n required?: boolean;\n className?: string;\n};\ntype StringPropDef = {\n type: 'string';\n default?: string;\n required?: boolean;\n};\ntype ReactNodePropDef = {\n type: 'ReactNode';\n default?: React.ReactNode;\n required?: boolean;\n};\ntype EnumPropDef<T> = {\n type: 'enum';\n values: readonly T[];\n default?: T;\n required?: boolean;\n};\ntype EnumOrStringPropDef<T> = {\n type: 'enum | string';\n values: readonly T[];\n default?: T | string;\n required?: boolean;\n};\n\ntype NonStylingPropDef = {\n className?: never;\n customProperties?: never;\n parseValue?: never;\n};\n\ntype StylingPropDef = {\n className: string;\n parseValue?: (value: string) => string | undefined;\n};\n\ntype ArbitraryStylingPropDef = {\n className: string;\n customProperties: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n};\n\ntype RegularPropDef<T> =\n | ReactNodePropDef\n | BooleanPropDef\n | (StringPropDef & ArbitraryStylingPropDef)\n | (StringPropDef & NonStylingPropDef)\n | (EnumPropDef<T> & StylingPropDef)\n | (EnumPropDef<T> & NonStylingPropDef)\n | (EnumOrStringPropDef<T> & ArbitraryStylingPropDef)\n | (EnumOrStringPropDef<T> & NonStylingPropDef);\ntype ResponsivePropDef<T = any> = RegularPropDef<T> & { responsive: true };\ntype PropDef<T = any> = RegularPropDef<T> | ResponsivePropDef<T>;\n\n// prettier-ignore\ntype GetPropDefType<Def> =\n Def extends BooleanPropDef ? (Def extends ResponsivePropDef ? Responsive<boolean> : boolean)\n : Def extends StringPropDef ? (Def extends ResponsivePropDef ? Responsive<string> : string)\n : Def extends ReactNodePropDef ? (Def extends ResponsivePropDef ? Responsive<React.ReactNode> : React.ReactNode)\n : Def extends EnumOrStringPropDef<infer Type> ?\n Def extends ResponsivePropDef<infer Type extends string> ? Responsive<Union<string, Type>> : Type\n : Def extends EnumPropDef<infer Type> ? (Def extends ResponsivePropDef<infer Type> ? Responsive<Type> : Type)\n : never;\n\ntype GetPropDefTypes<P> = {\n [K in keyof P]?: GetPropDefType<P[K]>;\n};\n\nexport { breakpoints, breakpointSet };\nexport type {\n PropDef,\n GetPropDefTypes,\n ResponsivePropDef,\n //\n Breakpoint,\n Responsive,\n Union,\n};\n", "/** A util to check whether the object has a key, while inferring the correct key type */\nfunction hasOwnProperty<K extends string | number | symbol>(\n obj: Record<K, unknown>,\n key: string | number | symbol\n): key is K {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\nexport { hasOwnProperty };\n", "import type { Responsive, Breakpoint } from '../props/prop-def.js';\n\n// Use a Set for O(1) lookup instead of array.includes() which is O(n)\nconst breakpointSet = new Set<string>(['initial', 'xs', 'sm', 'md', 'lg', 'xl']);\n\nexport function isResponsiveObject<Value extends string>(\n obj: Responsive<Value | Omit<string, Value>> | undefined\n): obj is Record<Breakpoint, string> {\n if (typeof obj !== 'object' || obj === null) {\n return false;\n }\n // Use for...in to avoid Object.keys() array allocation\n for (const key in obj) {\n if (breakpointSet.has(key)) {\n return true;\n }\n }\n return false;\n}\n", "import { breakpointSet } from '../props/prop-def.js';\nimport { hasOwnProperty } from './has-own-property.js';\nimport { isResponsiveObject } from './is-responsive-object.js';\n\nimport type { Responsive, Union } from '../props/prop-def.js';\n\n/**\n * Membership test against a prop def's enum values. Callers that already hold a\n * compiled prop def pass `propValueSet` for an O(1) lookup; the handful of call\n * sites that build options inline fall back to scanning the array.\n */\nfunction includesValue(propValues: string[] | readonly string[], propValueSet: ReadonlySet<string> | undefined, value: string): boolean {\n return propValueSet !== undefined ? propValueSet.has(value) : propValues.includes(value);\n}\n\ninterface GetResponsiveStylesOptions {\n className: string;\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveStyles({ className, customProperties, ...args }: GetResponsiveStylesOptions) {\n const responsiveClassNames = getResponsiveClassNames({\n allowArbitraryValues: true,\n className,\n ...args,\n });\n\n const responsiveCustomProperties = getResponsiveCustomProperties({ customProperties, ...args });\n return [responsiveClassNames, responsiveCustomProperties] as const;\n}\n\ninterface GetResponsiveClassNamesOptions {\n allowArbitraryValues?: boolean;\n className: string;\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveClassNames({ allowArbitraryValues, value, className, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveClassNamesOptions): string | undefined {\n if (!value) {\n return undefined;\n }\n\n if (typeof value === 'string') {\n if (includesValue(propValues, propValueSet, value)) {\n return getBaseClassName(className, value, parseValue);\n }\n return allowArbitraryValues ? className : undefined;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n const classNames: string[] = [];\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n if (value !== undefined) {\n if (includesValue(propValues, propValueSet, value)) {\n const baseClassName = getBaseClassName(className, value, parseValue);\n const bpClassName = bp === 'initial' ? baseClassName : `${bp}:${baseClassName}`;\n classNames.push(bpClassName);\n } else if (allowArbitraryValues) {\n const bpClassName = bp === 'initial' ? className : `${bp}:${className}`;\n classNames.push(bpClassName);\n }\n }\n }\n\n return classNames.length > 0 ? classNames.join(' ') : '';\n }\n\n if (allowArbitraryValues) {\n return className;\n }\n}\n\nfunction getBaseClassName(className: string, value: string, parseValue: (value: string) => string | undefined): string {\n const delimiter = className ? '-' : '';\n const matchedValue = parseValue(value);\n const isNegative = matchedValue?.startsWith('-');\n const minus = isNegative ? '-' : '';\n const absoluteValue = isNegative ? matchedValue?.substring(1) : matchedValue;\n return `${minus}${className}${delimiter}${absoluteValue}`;\n}\n\ninterface GetResponsiveCustomPropertiesOptions {\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveCustomProperties({ customProperties, value, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveCustomPropertiesOptions) {\n // Don't generate custom properties if the value is not arbitrary\n if (!value || (typeof value === 'string' && includesValue(propValues, propValueSet, value))) {\n return undefined;\n }\n\n let styles: Record<string, string | undefined> | undefined;\n\n if (typeof value === 'string') {\n const parsed = parseValue(value);\n styles = {};\n for (const customProperty of customProperties) {\n styles[customProperty] = parsed;\n }\n return styles;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n // Don't generate a custom property if the value is not arbitrary\n if (value === undefined || includesValue(propValues, propValueSet, value)) {\n continue;\n }\n\n const parsed = parseValue(value);\n styles ??= {};\n for (const customProperty of customProperties) {\n const bpProperty = bp === 'initial' ? customProperty : `${customProperty}-${bp}`;\n styles[bpProperty] = parsed;\n }\n }\n }\n\n return styles ?? {};\n}\n\nexport { getResponsiveStyles, getResponsiveCustomProperties, getResponsiveClassNames };\n", "type InlineStyle =\n | React.CSSProperties\n | Record<string, string | number | null | undefined>\n | undefined;\n\n// Merges CSS styles like `classNames` merges CSS classes\n// Optimized to avoid object spread in loop - uses Object.assign for in-place mutation\nexport function mergeStyles(...styles: Array<InlineStyle>): InlineStyle {\n let result: Record<string, string | number | null | undefined> | undefined;\n\n for (const style of styles) {\n if (style) {\n if (result === undefined) {\n // First non-empty style - create result object\n result = {};\n }\n Object.assign(result, style);\n }\n }\n\n return result;\n}\n", "import type { PropDef, GetPropDefTypes } from './prop-def.js';\n\n// prettier-ignore\nconst marginValues = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '-1', '-2', '-3', '-4', '-5', '-6', '-7', '-8', '-9', '-10', '-11', '-12'] as const;\n\nconst marginPropDefs = {\n /**\n * Sets the CSS **margin** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * m=\"4\"\n * m=\"100px\"\n * m={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin\n */\n m: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-m',\n customProperties: ['--m'],\n },\n /**\n * Sets the CSS **margin-left** and **margin-right** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mx=\"4\"\n * mx=\"100px\"\n * mx={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mx: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mx',\n customProperties: ['--ml', '--mr'],\n },\n /**\n * Sets the CSS **margin-top** and **margin-bottom** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * my=\"4\"\n * my=\"100px\"\n * my={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n my: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-my',\n customProperties: ['--mt', '--mb'],\n },\n /**\n * Sets the CSS **margin-top** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mt=\"4\"\n * mt=\"100px\"\n * mt={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n */\n mt: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mt',\n customProperties: ['--mt'],\n },\n /**\n * Sets the CSS **margin-right** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mr=\"4\"\n * mr=\"100px\"\n * mr={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mr: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mr',\n customProperties: ['--mr'],\n },\n /**\n * Sets the CSS **margin-bottom** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mb=\"4\"\n * mb=\"100px\"\n * mb={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n mb: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mb',\n customProperties: ['--mb'],\n },\n /**\n * Sets the CSS **margin-left** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * ml=\"4\"\n * ml=\"100px\"\n * ml={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n */\n ml: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-ml',\n customProperties: ['--ml'],\n },\n} satisfies {\n m: PropDef<(typeof marginValues)[number]>;\n mx: PropDef<(typeof marginValues)[number]>;\n my: PropDef<(typeof marginValues)[number]>;\n mt: PropDef<(typeof marginValues)[number]>;\n mr: PropDef<(typeof marginValues)[number]>;\n mb: PropDef<(typeof marginValues)[number]>;\n ml: PropDef<(typeof marginValues)[number]>;\n};\n\ntype MarginProps = GetPropDefTypes<typeof marginPropDefs>;\n\nexport { marginPropDefs };\nexport type { MarginProps };\n", "import { getResponsiveStyles } from './get-responsive-styles.js';\nimport { mergeStyles } from './merge-styles.js';\nimport { marginPropDefs } from '../props/margin.props.js';\n\nimport type { MarginProps } from '../props/margin.props.js';\n\nconst marginValues = marginPropDefs.m.values;\nconst marginValueSet: ReadonlySet<string> = new Set(marginValues);\n\n// Static table so the common case \u2014 a component with no margin props at all \u2014\n// is seven property reads and nothing else.\nconst MARGIN_PROPS: ReadonlyArray<{\n key: keyof MarginProps;\n className: string;\n customProperties: `--${string}`[];\n}> = [\n { key: 'm', className: 'rt-r-m', customProperties: ['--margin'] },\n { key: 'mx', className: 'rt-r-mx', customProperties: ['--margin-left', '--margin-right'] },\n { key: 'my', className: 'rt-r-my', customProperties: ['--margin-top', '--margin-bottom'] },\n { key: 'mt', className: 'rt-r-mt', customProperties: ['--margin-top'] },\n { key: 'mr', className: 'rt-r-mr', customProperties: ['--margin-right'] },\n { key: 'mb', className: 'rt-r-mb', customProperties: ['--margin-bottom'] },\n { key: 'ml', className: 'rt-r-ml', customProperties: ['--margin-left'] },\n];\n\nexport function getMarginStyles(props: MarginProps) {\n let classes: string[] | undefined;\n let style: ReturnType<typeof mergeStyles>;\n\n for (let i = 0; i < MARGIN_PROPS.length; i++) {\n const { key, className, customProperties } = MARGIN_PROPS[i];\n const value = props[key];\n if (value === undefined) continue;\n\n const [propClassNames, propCustomProperties] = getResponsiveStyles({\n className,\n customProperties,\n propValues: marginValues,\n propValueSet: marginValueSet,\n value,\n });\n\n if (propClassNames) (classes ??= []).push(propClassNames);\n if (propCustomProperties) style = mergeStyles(style, propCustomProperties);\n }\n\n return [classes !== undefined ? classes.join(' ') : '', style] as const;\n}\n", "import * as React from 'react';\n\n/**\n * This is a helper function that is used when a component supports `asChild`\n * using the `Slot` component but its implementation contains nested DOM elements.\n *\n * Using it ensures if a consumer uses the `asChild` prop, the elements are in\n * correct order in the DOM, adopting the intended consumer `children`.\n */\nexport function getSubtree(\n options: { asChild: boolean | undefined; children: React.ReactNode },\n content: React.ReactNode | ((children: React.ReactNode) => React.ReactNode)\n) {\n const { asChild, children } = options;\n if (!asChild) return typeof content === 'function' ? content(children) : content;\n\n const firstChild = React.Children.only(children) as React.ReactElement;\n return React.cloneElement(firstChild, {\n // @ts-expect-error\n children: typeof content === 'function' ? content(firstChild.props.children) : content,\n });\n}\n"],
5
+ "mappings": "mlBAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,qBAAAE,GAAA,eAAAC,EAAA,eAAAC,EAAA,WAAAC,EAAA,qBAAAC,EAAA,yBAAAC,EAAA,qBAAAC,IAAA,eAAAC,GAAAT,IAWA,IAAAU,EAAuB,oBACvBC,EAAuB,yBCZvB,IAAAC,EAAuB,oBACvBC,EAAuB,yBACvBC,EAAkD,oBAClDC,EAAgC,6BCDhC,IAAMC,EAAiB,CAKrB,QAAS,CACP,KAAM,SACR,CACF,ECRA,IAAMC,GAAQ,CAAC,OAAQ,QAAS,SAAU,QAAS,MAAM,EAEnDC,EAAgB,CACpB,OAAQ,CACN,KAAM,OACN,OAAQD,GACR,QAAS,MACX,CACF,ECLA,IAAME,GAAQ,CAAC,IAAK,IAAK,GAAG,EACtBC,GAAmB,CAAC,WAAY,aAAc,MAAM,EAEpDC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Dc,EAAO,YAAc",
6
+ "names": ["pane_chrome_exports", "__export", "PaneChromeScope", "PaneFooter", "PaneHeader", "Scroll", "ShellSizeContext", "SidebarVisualContext", "useSidebarVisual", "__toCommonJS", "React", "import_classnames", "React", "import_classnames", "import_radix_ui", "import_internal", "asChildPropDef", "radii", "radiusPropDef", "sizes", "scrollbarsValues", "scrollAreaPropDefs", "asChildPropDef", "radiusPropDef", "React", "useScrollEdges", "enabled", "element", "setElement", "frame", "write", "start", "end", "schedule", "observer", "child", "mutations", "extractMarginProps", "props", "m", "mx", "my", "mt", "mr", "mb", "ml", "rest", "breakpoints", "breakpointSet", "hasOwnProperty", "obj", "key", "breakpointSet", "isResponsiveObject", "obj", "key", "includesValue", "propValues", "propValueSet", "value", "getResponsiveStyles", "className", "customProperties", "args", "responsiveClassNames", "getResponsiveClassNames", "responsiveCustomProperties", "getResponsiveCustomProperties", "allowArbitraryValues", "parseValue", "getBaseClassName", "isResponsiveObject", "object", "classNames", "bp", "hasOwnProperty", "breakpointSet", "baseClassName", "bpClassName", "delimiter", "matchedValue", "isNegative", "minus", "absoluteValue", "styles", "parsed", "customProperty", "bpProperty", "mergeStyles", "styles", "result", "style", "marginValues", "marginPropDefs", "marginValues", "marginPropDefs", "marginValueSet", "MARGIN_PROPS", "getMarginStyles", "props", "classes", "style", "i", "key", "className", "customProperties", "value", "propClassNames", "propCustomProperties", "getResponsiveStyles", "mergeStyles", "React", "getSubtree", "options", "content", "asChild", "children", "firstChild", "ScrollArea", "props", "forwardedRef", "marginRest", "marginProps", "extractMarginProps", "marginClassNames", "marginCustomProperties", "getMarginStyles", "asChild", "children", "className", "style", "type", "scrollHideDelay", "dir", "size", "scrollAreaPropDefs", "radius", "scrollbars", "fade", "viewportProps", "setEdgesElement", "useScrollEdges", "viewportRef", "ScrollAreaPrimitive", "classNames", "mergeStyles", "getSubtree", "getResponsiveClassNames", "SidebarVisualContext", "useSidebarVisual", "ShellSizeContext", "PaneChromeScope", "children", "presentation", "size", "value", "useChromeClasses", "visual", "menuVariant", "PaneHeader", "className", "props", "forwardedRef", "chrome", "classNames", "PaneFooter", "Scroll", "ScrollArea"]
7
+ }
@@ -16,8 +16,9 @@ type SidebarUncontrolledProps = {
16
16
  state?: never;
17
17
  };
18
18
  type SidebarPublicProps = PaneBaseProps & {
19
+ /** @deprecated Thin mode is removed in 0.15.0. Use `Shell.Rail`. */
19
20
  thinSize?: number;
20
- /** `both` toggles through collapsed, thin and expanded; `single` between collapsed and the default. */
21
+ /** `both` (deprecated with thin mode; `single` is the 0.15.0 behaviour) toggles through collapsed, thin and expanded; `single` between collapsed and the default. */
21
22
  toggleModes?: 'both' | 'single';
22
23
  size?: number | string;
23
24
  defaultSize?: number | string;
@@ -1 +1 @@
1
- {"version":3,"file":"shell-sidebar.d.ts","sourceRoot":"","sources":["../../../../src/components/_internal/shell-sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAc,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE/D,OAAO,EAAkC,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAI3F,OAAO,KAAK,EAAE,UAAU,EAAyB,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEnH,KAAK,sBAAsB,GAAG;IAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,YAAY,GAAG,SAAS,CAAA;CAAE,CAAC;AACvF,KAAK,sBAAsB,GAAG;IAAE,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAAC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAAC,YAAY,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AACnK,KAAK,wBAAwB,GAAG;IAAE,YAAY,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,C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