@womp/kookie-ui 0.14.4 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1185) hide show
  1. package/README.md +2 -2
  2. package/components.css +711 -2741
  3. package/dist/cjs/components/_internal/base-button.d.ts.map +1 -1
  4. package/dist/cjs/components/_internal/base-button.js +1 -1
  5. package/dist/cjs/components/_internal/base-button.js.map +4 -4
  6. package/dist/cjs/components/_internal/base-button.props.d.ts +2 -9
  7. package/dist/cjs/components/_internal/base-button.props.d.ts.map +1 -1
  8. package/dist/cjs/components/_internal/base-button.props.js +1 -1
  9. package/dist/cjs/components/_internal/base-button.props.js.map +4 -4
  10. package/dist/cjs/components/_internal/base-checkbox.props.d.ts +2 -9
  11. package/dist/cjs/components/_internal/base-checkbox.props.d.ts.map +1 -1
  12. package/dist/cjs/components/_internal/base-checkbox.props.js +1 -1
  13. package/dist/cjs/components/_internal/base-checkbox.props.js.map +4 -4
  14. package/dist/cjs/components/_internal/base-menu.props.d.ts +0 -28
  15. package/dist/cjs/components/_internal/base-menu.props.d.ts.map +1 -1
  16. package/dist/cjs/components/_internal/base-menu.props.js +1 -1
  17. package/dist/cjs/components/_internal/base-menu.props.js.map +3 -3
  18. package/dist/cjs/components/_internal/base-menu.utils.d.ts +2 -9
  19. package/dist/cjs/components/_internal/base-menu.utils.d.ts.map +1 -1
  20. package/dist/cjs/components/_internal/base-menu.utils.js +1 -1
  21. package/dist/cjs/components/_internal/base-menu.utils.js.map +4 -4
  22. package/dist/cjs/components/_internal/base-radio.props.d.ts +1 -8
  23. package/dist/cjs/components/_internal/base-radio.props.d.ts.map +1 -1
  24. package/dist/cjs/components/_internal/base-radio.props.js +1 -1
  25. package/dist/cjs/components/_internal/base-radio.props.js.map +4 -4
  26. package/dist/cjs/components/_internal/base-tab-list.props.d.ts +0 -6
  27. package/dist/cjs/components/_internal/base-tab-list.props.d.ts.map +1 -1
  28. package/dist/cjs/components/_internal/base-tab-list.props.js +1 -1
  29. package/dist/cjs/components/_internal/base-tab-list.props.js.map +3 -3
  30. package/dist/cjs/components/_internal/menu-context.js +1 -1
  31. package/dist/cjs/components/_internal/menu-context.js.map +4 -4
  32. package/dist/cjs/components/_internal/shell-bottom.js +1 -1
  33. package/dist/cjs/components/_internal/shell-bottom.js.map +2 -2
  34. package/dist/cjs/components/_internal/shell-inspector.js +1 -1
  35. package/dist/cjs/components/_internal/shell-inspector.js.map +2 -2
  36. package/dist/cjs/components/_internal/shell-pane.d.ts +2 -3
  37. package/dist/cjs/components/_internal/shell-pane.d.ts.map +1 -1
  38. package/dist/cjs/components/_internal/shell-pane.js +1 -1
  39. package/dist/cjs/components/_internal/shell-pane.js.map +2 -2
  40. package/dist/cjs/components/_internal/shell-sidebar.d.ts +0 -4
  41. package/dist/cjs/components/_internal/shell-sidebar.d.ts.map +1 -1
  42. package/dist/cjs/components/_internal/shell-sidebar.js +1 -1
  43. package/dist/cjs/components/_internal/shell-sidebar.js.map +3 -3
  44. package/dist/cjs/components/_internal/shell-store.d.ts +4 -4
  45. package/dist/cjs/components/_internal/shell-store.d.ts.map +1 -1
  46. package/dist/cjs/components/_internal/shell-store.js +1 -1
  47. package/dist/cjs/components/_internal/shell-store.js.map +1 -1
  48. package/dist/cjs/components/accordion.d.ts.map +1 -1
  49. package/dist/cjs/components/accordion.js +1 -1
  50. package/dist/cjs/components/accordion.js.map +4 -4
  51. package/dist/cjs/components/accordion.props.d.ts +4 -15
  52. package/dist/cjs/components/accordion.props.d.ts.map +1 -1
  53. package/dist/cjs/components/accordion.props.js +1 -1
  54. package/dist/cjs/components/accordion.props.js.map +4 -4
  55. package/dist/cjs/components/alert-dialog.d.ts.map +1 -1
  56. package/dist/cjs/components/alert-dialog.js +1 -1
  57. package/dist/cjs/components/alert-dialog.js.map +4 -4
  58. package/dist/cjs/components/alert-dialog.props.d.ts +0 -5
  59. package/dist/cjs/components/alert-dialog.props.d.ts.map +1 -1
  60. package/dist/cjs/components/alert-dialog.props.js +1 -1
  61. package/dist/cjs/components/alert-dialog.props.js.map +3 -3
  62. package/dist/cjs/components/avatar.d.ts.map +1 -1
  63. package/dist/cjs/components/avatar.js +1 -1
  64. package/dist/cjs/components/avatar.js.map +4 -4
  65. package/dist/cjs/components/avatar.props.d.ts +2 -17
  66. package/dist/cjs/components/avatar.props.d.ts.map +1 -1
  67. package/dist/cjs/components/avatar.props.js +1 -1
  68. package/dist/cjs/components/avatar.props.js.map +4 -4
  69. package/dist/cjs/components/badge.d.ts.map +1 -1
  70. package/dist/cjs/components/badge.js +1 -1
  71. package/dist/cjs/components/badge.js.map +4 -4
  72. package/dist/cjs/components/badge.props.d.ts +1 -16
  73. package/dist/cjs/components/badge.props.d.ts.map +1 -1
  74. package/dist/cjs/components/badge.props.js +1 -1
  75. package/dist/cjs/components/badge.props.js.map +4 -4
  76. package/dist/cjs/components/blockquote.js.map +1 -1
  77. package/dist/cjs/components/blockquote.props.d.ts +1 -1
  78. package/dist/cjs/components/blockquote.props.js +1 -1
  79. package/dist/cjs/components/blockquote.props.js.map +2 -2
  80. package/dist/cjs/components/button.d.ts +2 -39
  81. package/dist/cjs/components/button.d.ts.map +1 -1
  82. package/dist/cjs/components/button.js +2 -2
  83. package/dist/cjs/components/button.js.map +4 -4
  84. package/dist/cjs/components/button.props.js +1 -1
  85. package/dist/cjs/components/button.props.js.map +4 -4
  86. package/dist/cjs/components/card.d.ts.map +1 -1
  87. package/dist/cjs/components/card.js +1 -1
  88. package/dist/cjs/components/card.js.map +4 -4
  89. package/dist/cjs/components/card.props.d.ts +1 -8
  90. package/dist/cjs/components/card.props.d.ts.map +1 -1
  91. package/dist/cjs/components/card.props.js +1 -1
  92. package/dist/cjs/components/card.props.js.map +4 -4
  93. package/dist/cjs/components/chatbar.d.ts +1 -3
  94. package/dist/cjs/components/chatbar.d.ts.map +1 -1
  95. package/dist/cjs/components/chatbar.js +2 -2
  96. package/dist/cjs/components/chatbar.js.map +4 -4
  97. package/dist/cjs/components/checkbox-cards.d.ts.map +1 -1
  98. package/dist/cjs/components/checkbox-cards.js +1 -1
  99. package/dist/cjs/components/checkbox-cards.js.map +4 -4
  100. package/dist/cjs/components/checkbox-cards.props.d.ts +2 -10
  101. package/dist/cjs/components/checkbox-cards.props.d.ts.map +1 -1
  102. package/dist/cjs/components/checkbox-cards.props.js +1 -1
  103. package/dist/cjs/components/checkbox-cards.props.js.map +4 -4
  104. package/dist/cjs/components/checkbox-group.js +1 -1
  105. package/dist/cjs/components/checkbox-group.js.map +4 -4
  106. package/dist/cjs/components/checkbox-group.props.d.ts +2 -8
  107. package/dist/cjs/components/checkbox-group.props.d.ts.map +1 -1
  108. package/dist/cjs/components/checkbox-group.props.js +1 -1
  109. package/dist/cjs/components/checkbox-group.props.js.map +4 -4
  110. package/dist/cjs/components/checkbox.d.ts.map +1 -1
  111. package/dist/cjs/components/checkbox.js +1 -1
  112. package/dist/cjs/components/checkbox.js.map +4 -4
  113. package/dist/cjs/components/checkbox.props.js +1 -1
  114. package/dist/cjs/components/checkbox.props.js.map +4 -4
  115. package/dist/cjs/components/code.js +1 -1
  116. package/dist/cjs/components/code.js.map +2 -2
  117. package/dist/cjs/components/code.props.d.ts +1 -1
  118. package/dist/cjs/components/code.props.js +1 -1
  119. package/dist/cjs/components/code.props.js.map +2 -2
  120. package/dist/cjs/components/combobox.d.ts.map +1 -1
  121. package/dist/cjs/components/combobox.js +1 -1
  122. package/dist/cjs/components/combobox.js.map +4 -4
  123. package/dist/cjs/components/combobox.props.d.ts +1 -20
  124. package/dist/cjs/components/combobox.props.d.ts.map +1 -1
  125. package/dist/cjs/components/combobox.props.js +1 -1
  126. package/dist/cjs/components/combobox.props.js.map +4 -4
  127. package/dist/cjs/components/context-menu.d.ts.map +1 -1
  128. package/dist/cjs/components/context-menu.js +1 -1
  129. package/dist/cjs/components/context-menu.js.map +4 -4
  130. package/dist/cjs/components/context-menu.props.js +1 -1
  131. package/dist/cjs/components/context-menu.props.js.map +3 -3
  132. package/dist/cjs/components/data-list.js.map +1 -1
  133. package/dist/cjs/components/data-list.props.js.map +1 -1
  134. package/dist/cjs/components/dialog.d.ts.map +1 -1
  135. package/dist/cjs/components/dialog.js +1 -1
  136. package/dist/cjs/components/dialog.js.map +4 -4
  137. package/dist/cjs/components/dialog.props.d.ts +0 -5
  138. package/dist/cjs/components/dialog.props.d.ts.map +1 -1
  139. package/dist/cjs/components/dialog.props.js +1 -1
  140. package/dist/cjs/components/dialog.props.js.map +3 -3
  141. package/dist/cjs/components/dropdown-menu.d.ts.map +1 -1
  142. package/dist/cjs/components/dropdown-menu.js +1 -1
  143. package/dist/cjs/components/dropdown-menu.js.map +4 -4
  144. package/dist/cjs/components/dropdown-menu.props.js +1 -1
  145. package/dist/cjs/components/dropdown-menu.props.js.map +3 -3
  146. package/dist/cjs/components/heading.js.map +1 -1
  147. package/dist/cjs/components/heading.props.js.map +1 -1
  148. package/dist/cjs/components/hover-card.js +1 -1
  149. package/dist/cjs/components/hover-card.js.map +4 -4
  150. package/dist/cjs/components/icon-button.d.ts +1 -1
  151. package/dist/cjs/components/icon-button.d.ts.map +1 -1
  152. package/dist/cjs/components/icon-button.js +2 -2
  153. package/dist/cjs/components/icon-button.js.map +4 -4
  154. package/dist/cjs/components/icon-button.props.js +1 -1
  155. package/dist/cjs/components/icon-button.props.js.map +4 -4
  156. package/dist/cjs/components/image.d.ts +0 -5
  157. package/dist/cjs/components/image.d.ts.map +1 -1
  158. package/dist/cjs/components/image.js +1 -1
  159. package/dist/cjs/components/image.js.map +3 -3
  160. package/dist/cjs/components/index.d.ts +0 -3
  161. package/dist/cjs/components/index.d.ts.map +1 -1
  162. package/dist/cjs/components/index.js +5 -5
  163. package/dist/cjs/components/index.js.map +4 -4
  164. package/dist/cjs/components/kbd.js +1 -1
  165. package/dist/cjs/components/kbd.js.map +4 -4
  166. package/dist/cjs/components/kbd.props.d.ts +2 -4
  167. package/dist/cjs/components/kbd.props.d.ts.map +1 -1
  168. package/dist/cjs/components/kbd.props.js +1 -1
  169. package/dist/cjs/components/kbd.props.js.map +4 -4
  170. package/dist/cjs/components/link.js +1 -1
  171. package/dist/cjs/components/link.js.map +2 -2
  172. package/dist/cjs/components/link.props.d.ts +1 -1
  173. package/dist/cjs/components/link.props.js +1 -1
  174. package/dist/cjs/components/link.props.js.map +2 -2
  175. package/dist/cjs/components/message-scroller.js +2 -2
  176. package/dist/cjs/components/message-scroller.js.map +4 -4
  177. package/dist/cjs/components/notice.js +2 -2
  178. package/dist/cjs/components/notice.js.map +4 -4
  179. package/dist/cjs/components/popover.d.ts.map +1 -1
  180. package/dist/cjs/components/popover.js +1 -1
  181. package/dist/cjs/components/popover.js.map +4 -4
  182. package/dist/cjs/components/popover.props.d.ts +0 -6
  183. package/dist/cjs/components/popover.props.d.ts.map +1 -1
  184. package/dist/cjs/components/popover.props.js +1 -1
  185. package/dist/cjs/components/popover.props.js.map +3 -3
  186. package/dist/cjs/components/progress.js.map +1 -1
  187. package/dist/cjs/components/progress.props.js.map +1 -1
  188. package/dist/cjs/components/radio-cards.d.ts.map +1 -1
  189. package/dist/cjs/components/radio-cards.js +1 -1
  190. package/dist/cjs/components/radio-cards.js.map +4 -4
  191. package/dist/cjs/components/radio-cards.props.d.ts +2 -10
  192. package/dist/cjs/components/radio-cards.props.d.ts.map +1 -1
  193. package/dist/cjs/components/radio-cards.props.js +1 -1
  194. package/dist/cjs/components/radio-cards.props.js.map +4 -4
  195. package/dist/cjs/components/radio-group.js +1 -1
  196. package/dist/cjs/components/radio-group.js.map +4 -4
  197. package/dist/cjs/components/radio-group.props.d.ts +1 -3
  198. package/dist/cjs/components/radio-group.props.d.ts.map +1 -1
  199. package/dist/cjs/components/radio-group.props.js +1 -1
  200. package/dist/cjs/components/radio-group.props.js.map +4 -4
  201. package/dist/cjs/components/radio.d.ts.map +1 -1
  202. package/dist/cjs/components/radio.js +1 -1
  203. package/dist/cjs/components/radio.js.map +4 -4
  204. package/dist/cjs/components/radio.props.js +1 -1
  205. package/dist/cjs/components/radio.props.js.map +4 -4
  206. package/dist/cjs/components/schemas/base-button.schema.d.ts +0 -7
  207. package/dist/cjs/components/schemas/base-button.schema.d.ts.map +1 -1
  208. package/dist/cjs/components/schemas/base-button.schema.js +1 -1
  209. package/dist/cjs/components/schemas/base-button.schema.js.map +2 -2
  210. package/dist/cjs/components/schemas/button.schema.d.ts +7 -73
  211. package/dist/cjs/components/schemas/button.schema.d.ts.map +1 -1
  212. package/dist/cjs/components/schemas/button.schema.js +1 -1
  213. package/dist/cjs/components/schemas/button.schema.js.map +2 -2
  214. package/dist/cjs/components/schemas/icon-button.schema.d.ts +0 -7
  215. package/dist/cjs/components/schemas/icon-button.schema.d.ts.map +1 -1
  216. package/dist/cjs/components/schemas/icon-button.schema.js +1 -1
  217. package/dist/cjs/components/schemas/icon-button.schema.js.map +2 -2
  218. package/dist/cjs/components/schemas/index.js +1 -1
  219. package/dist/cjs/components/schemas/index.js.map +2 -2
  220. package/dist/cjs/components/schemas/shell.schema.d.ts +5 -29
  221. package/dist/cjs/components/schemas/shell.schema.d.ts.map +1 -1
  222. package/dist/cjs/components/schemas/shell.schema.js +1 -1
  223. package/dist/cjs/components/schemas/shell.schema.js.map +2 -2
  224. package/dist/cjs/components/schemas/toggle-button.schema.d.ts +7 -73
  225. package/dist/cjs/components/schemas/toggle-button.schema.d.ts.map +1 -1
  226. package/dist/cjs/components/schemas/toggle-button.schema.js +1 -1
  227. package/dist/cjs/components/schemas/toggle-button.schema.js.map +2 -2
  228. package/dist/cjs/components/schemas/toggle-icon-button.schema.d.ts +0 -7
  229. package/dist/cjs/components/schemas/toggle-icon-button.schema.d.ts.map +1 -1
  230. package/dist/cjs/components/schemas/toggle-icon-button.schema.js +1 -1
  231. package/dist/cjs/components/schemas/toggle-icon-button.schema.js.map +2 -2
  232. package/dist/cjs/components/segmented-control.d.ts.map +1 -1
  233. package/dist/cjs/components/segmented-control.js +1 -1
  234. package/dist/cjs/components/segmented-control.js.map +4 -4
  235. package/dist/cjs/components/segmented-control.props.d.ts +0 -11
  236. package/dist/cjs/components/segmented-control.props.d.ts.map +1 -1
  237. package/dist/cjs/components/segmented-control.props.js +1 -1
  238. package/dist/cjs/components/segmented-control.props.js.map +3 -3
  239. package/dist/cjs/components/select.d.ts.map +1 -1
  240. package/dist/cjs/components/select.js +1 -1
  241. package/dist/cjs/components/select.js.map +4 -4
  242. package/dist/cjs/components/select.props.d.ts +1 -14
  243. package/dist/cjs/components/select.props.d.ts.map +1 -1
  244. package/dist/cjs/components/select.props.js +1 -1
  245. package/dist/cjs/components/select.props.js.map +4 -4
  246. package/dist/cjs/components/separator.js.map +1 -1
  247. package/dist/cjs/components/separator.props.js.map +1 -1
  248. package/dist/cjs/components/sheet.d.ts +1 -2
  249. package/dist/cjs/components/sheet.d.ts.map +1 -1
  250. package/dist/cjs/components/sheet.js +1 -1
  251. package/dist/cjs/components/sheet.js.map +4 -4
  252. package/dist/cjs/components/shell.context.js +1 -1
  253. package/dist/cjs/components/shell.context.js.map +2 -2
  254. package/dist/cjs/components/shell.hooks.js.map +1 -1
  255. package/dist/cjs/components/shell.js +1 -1
  256. package/dist/cjs/components/shell.js.map +3 -3
  257. package/dist/cjs/components/shell.types.d.ts +1 -1
  258. package/dist/cjs/components/shell.types.d.ts.map +1 -1
  259. package/dist/cjs/components/shell.types.js.map +1 -1
  260. package/dist/cjs/components/sidebar.d.ts +2 -92
  261. package/dist/cjs/components/sidebar.d.ts.map +1 -1
  262. package/dist/cjs/components/sidebar.js +1 -1
  263. package/dist/cjs/components/sidebar.js.map +4 -4
  264. package/dist/cjs/components/slider.js.map +1 -1
  265. package/dist/cjs/components/slider.props.js.map +1 -1
  266. package/dist/cjs/components/switch.d.ts.map +1 -1
  267. package/dist/cjs/components/switch.js +1 -1
  268. package/dist/cjs/components/switch.js.map +3 -3
  269. package/dist/cjs/components/switch.props.d.ts +0 -18
  270. package/dist/cjs/components/switch.props.d.ts.map +1 -1
  271. package/dist/cjs/components/switch.props.js +1 -1
  272. package/dist/cjs/components/switch.props.js.map +3 -3
  273. package/dist/cjs/components/tab-nav.d.ts.map +1 -1
  274. package/dist/cjs/components/tab-nav.js +1 -1
  275. package/dist/cjs/components/tab-nav.js.map +4 -4
  276. package/dist/cjs/components/tab-nav.props.js +1 -1
  277. package/dist/cjs/components/tab-nav.props.js.map +3 -3
  278. package/dist/cjs/components/tabs.d.ts.map +1 -1
  279. package/dist/cjs/components/tabs.js +1 -1
  280. package/dist/cjs/components/tabs.js.map +4 -4
  281. package/dist/cjs/components/tabs.props.js +1 -1
  282. package/dist/cjs/components/tabs.props.js.map +3 -3
  283. package/dist/cjs/components/text-area.d.ts.map +1 -1
  284. package/dist/cjs/components/text-area.js +1 -1
  285. package/dist/cjs/components/text-area.js.map +4 -4
  286. package/dist/cjs/components/text-area.props.d.ts +1 -12
  287. package/dist/cjs/components/text-area.props.d.ts.map +1 -1
  288. package/dist/cjs/components/text-area.props.js +1 -1
  289. package/dist/cjs/components/text-area.props.js.map +4 -4
  290. package/dist/cjs/components/text-field.d.ts.map +1 -1
  291. package/dist/cjs/components/text-field.js +2 -2
  292. package/dist/cjs/components/text-field.js.map +4 -4
  293. package/dist/cjs/components/text-field.props.d.ts +1 -12
  294. package/dist/cjs/components/text-field.props.d.ts.map +1 -1
  295. package/dist/cjs/components/text-field.props.js +1 -1
  296. package/dist/cjs/components/text-field.props.js.map +4 -4
  297. package/dist/cjs/components/text.js.map +1 -1
  298. package/dist/cjs/components/text.props.js.map +1 -1
  299. package/dist/cjs/components/theme-panel.d.ts.map +1 -1
  300. package/dist/cjs/components/theme-panel.js +3 -3
  301. package/dist/cjs/components/theme-panel.js.map +4 -4
  302. package/dist/cjs/components/theme.d.ts +0 -3
  303. package/dist/cjs/components/theme.d.ts.map +1 -1
  304. package/dist/cjs/components/theme.js +1 -1
  305. package/dist/cjs/components/theme.js.map +4 -4
  306. package/dist/cjs/components/theme.props.d.ts +1 -19
  307. package/dist/cjs/components/theme.props.d.ts.map +1 -1
  308. package/dist/cjs/components/theme.props.js +1 -1
  309. package/dist/cjs/components/theme.props.js.map +3 -3
  310. package/dist/cjs/components/toggle-button.d.ts.map +1 -1
  311. package/dist/cjs/components/toggle-button.js +3 -3
  312. package/dist/cjs/components/toggle-button.js.map +4 -4
  313. package/dist/cjs/components/toggle-icon-button.d.ts.map +1 -1
  314. package/dist/cjs/components/toggle-icon-button.js +3 -3
  315. package/dist/cjs/components/toggle-icon-button.js.map +4 -4
  316. package/dist/cjs/components/toolbar.d.ts +1 -1
  317. package/dist/cjs/components/toolbar.d.ts.map +1 -1
  318. package/dist/cjs/components/toolbar.js +2 -2
  319. package/dist/cjs/components/toolbar.js.map +4 -4
  320. package/dist/cjs/components/tooltip.js +1 -1
  321. package/dist/cjs/components/tooltip.js.map +4 -4
  322. package/dist/cjs/components/virtual-menu.js +1 -1
  323. package/dist/cjs/components/virtual-menu.js.map +4 -4
  324. package/dist/cjs/helpers/index.js +4 -4
  325. package/dist/cjs/helpers/index.js.map +3 -3
  326. package/dist/cjs/helpers/map-prop-values.d.ts +1 -4
  327. package/dist/cjs/helpers/map-prop-values.d.ts.map +1 -1
  328. package/dist/cjs/helpers/map-prop-values.js +1 -1
  329. package/dist/cjs/helpers/map-prop-values.js.map +3 -3
  330. package/dist/cjs/hooks/use-breakpoint.js.map +1 -1
  331. package/dist/cjs/index.js +7 -7
  332. package/dist/cjs/index.js.map +4 -4
  333. package/dist/cjs/props/color.prop.d.ts.map +1 -1
  334. package/dist/cjs/props/color.prop.js.map +2 -2
  335. package/dist/cjs/props/index.d.ts +0 -1
  336. package/dist/cjs/props/index.d.ts.map +1 -1
  337. package/dist/cjs/props/index.js +1 -1
  338. package/dist/cjs/props/index.js.map +4 -4
  339. package/dist/esm/chunk-23WDP4JG.js +2 -0
  340. package/dist/esm/chunk-23WDP4JG.js.map +7 -0
  341. package/dist/esm/{chunk-K7BWSYVP.js → chunk-2IPVLV6B.js} +2 -2
  342. package/dist/esm/{chunk-SQ4BU4GH.js → chunk-2NNB4ZZ5.js} +2 -2
  343. package/dist/esm/{chunk-57XCVY6J.js → chunk-2PO6TZ7L.js} +2 -2
  344. package/dist/esm/{chunk-57XCVY6J.js.map → chunk-2PO6TZ7L.js.map} +1 -1
  345. package/dist/esm/{chunk-JXVUTFQN.js → chunk-2XSRO44Q.js} +2 -2
  346. package/dist/esm/{chunk-Z4DTHR2S.js → chunk-34KVYDF6.js} +1 -1
  347. package/dist/esm/{chunk-Z4DTHR2S.js.map → chunk-34KVYDF6.js.map} +2 -2
  348. package/dist/esm/{chunk-KXSMY4ZF.js → chunk-35KS5AQE.js} +2 -2
  349. package/dist/esm/chunk-3OABA7AF.js +2 -0
  350. package/dist/esm/chunk-3OABA7AF.js.map +7 -0
  351. package/dist/esm/chunk-3PT3AOD5.js +2 -0
  352. package/dist/esm/chunk-3PT3AOD5.js.map +7 -0
  353. package/dist/esm/{chunk-A2XVR7GL.js → chunk-3PTKPDSA.js} +2 -2
  354. package/dist/esm/chunk-3PTKPDSA.js.map +7 -0
  355. package/dist/esm/chunk-4D7OU2UA.js +2 -0
  356. package/dist/esm/chunk-4D7OU2UA.js.map +7 -0
  357. package/dist/esm/chunk-4FQLRQKJ.js +2 -0
  358. package/dist/esm/chunk-4FQLRQKJ.js.map +7 -0
  359. package/dist/esm/chunk-5AHQJB6H.js +2 -0
  360. package/dist/esm/{chunk-RWN22S44.js.map → chunk-5AHQJB6H.js.map} +2 -2
  361. package/dist/esm/chunk-5EAMAW2H.js +2 -0
  362. package/dist/esm/chunk-5EAMAW2H.js.map +7 -0
  363. package/dist/esm/chunk-5GYIQIPW.js +2 -0
  364. package/dist/esm/chunk-5GYIQIPW.js.map +7 -0
  365. package/dist/esm/chunk-5PG5YGIW.js +2 -0
  366. package/dist/esm/chunk-5PG5YGIW.js.map +7 -0
  367. package/dist/esm/{chunk-34UMKY2L.js → chunk-5RHODJDJ.js} +2 -2
  368. package/dist/esm/chunk-5ROQAZ7J.js +2 -0
  369. package/dist/esm/{chunk-GMHA5CFH.js.map → chunk-5ROQAZ7J.js.map} +2 -2
  370. package/dist/esm/chunk-5SQL4ZRC.js +2 -0
  371. package/dist/esm/chunk-5SQL4ZRC.js.map +7 -0
  372. package/dist/esm/{chunk-YA5DF67M.js → chunk-5YLKKQFK.js} +1 -1
  373. package/dist/esm/chunk-5YLKKQFK.js.map +7 -0
  374. package/dist/esm/{chunk-ZQVYY7UT.js → chunk-672FI4OH.js} +2 -2
  375. package/dist/esm/{chunk-T6Z4JUH6.js → chunk-6ERCPRXX.js} +2 -2
  376. package/dist/esm/chunk-7BE6N3KY.js +2 -0
  377. package/dist/esm/chunk-7BE6N3KY.js.map +7 -0
  378. package/dist/esm/{chunk-PXUQEA77.js → chunk-7CBZFHSQ.js} +2 -2
  379. package/dist/esm/{chunk-VJXHEDCE.js → chunk-7UW7D77E.js} +2 -2
  380. package/dist/esm/{chunk-62CJL5G7.js → chunk-A2NG5NRN.js} +2 -2
  381. package/dist/esm/{chunk-RUPET4E7.js → chunk-A6CDNZMT.js} +2 -2
  382. package/dist/esm/chunk-ABQHBDM4.js +2 -0
  383. package/dist/esm/chunk-ABQHBDM4.js.map +7 -0
  384. package/dist/esm/{chunk-43A5GUSI.js → chunk-AMP7O3DM.js} +2 -2
  385. package/dist/esm/{chunk-UBOOUDS4.js → chunk-AO32NT75.js} +2 -2
  386. package/dist/esm/chunk-B72RMGWZ.js +2 -0
  387. package/dist/esm/chunk-B72RMGWZ.js.map +7 -0
  388. package/dist/esm/{chunk-HFVD7W6R.js → chunk-BFLO4IVZ.js} +2 -2
  389. package/dist/esm/{chunk-SQZ5O7QS.js → chunk-BQE543O5.js} +2 -2
  390. package/dist/esm/chunk-C7JXVNMI.js +2 -0
  391. package/dist/esm/chunk-C7JXVNMI.js.map +7 -0
  392. package/dist/esm/chunk-CAUFRKTK.js +2 -0
  393. package/dist/esm/chunk-CAUFRKTK.js.map +7 -0
  394. package/dist/esm/chunk-CJ4UZDW5.js +2 -0
  395. package/dist/esm/chunk-CJ4UZDW5.js.map +7 -0
  396. package/dist/esm/{chunk-O2WPAUQN.js → chunk-CL6LRPCS.js} +2 -2
  397. package/dist/esm/chunk-CYXBQRQK.js +2 -0
  398. package/dist/esm/chunk-CYXBQRQK.js.map +7 -0
  399. package/dist/esm/chunk-DD5QHU6R.js +2 -0
  400. package/dist/esm/chunk-DD5QHU6R.js.map +7 -0
  401. package/dist/esm/chunk-DIGT74P3.js +2 -0
  402. package/dist/esm/chunk-DIGT74P3.js.map +7 -0
  403. package/dist/esm/{chunk-3OQM7SLQ.js → chunk-DQTJMIRO.js} +2 -2
  404. package/dist/esm/{chunk-GLERJXVS.js → chunk-DSB3TEAQ.js} +2 -2
  405. package/dist/esm/chunk-E5DJILUI.js +2 -0
  406. package/dist/esm/chunk-E5DJILUI.js.map +7 -0
  407. package/dist/esm/chunk-EJG2UNTM.js +2 -0
  408. package/dist/esm/chunk-EJG2UNTM.js.map +7 -0
  409. package/dist/esm/{chunk-HIBX2EXV.js → chunk-ELZEAEN2.js} +2 -2
  410. package/dist/esm/{chunk-IV4YJRVR.js → chunk-EVTNB4TB.js} +2 -2
  411. package/dist/esm/{chunk-CYSDGVKF.js → chunk-F2XQYWBE.js} +2 -2
  412. package/dist/esm/chunk-F2XQYWBE.js.map +7 -0
  413. package/dist/esm/chunk-FK6F6ROH.js +2 -0
  414. package/dist/esm/chunk-FK6F6ROH.js.map +7 -0
  415. package/dist/esm/chunk-GS2QSZUR.js +2 -0
  416. package/dist/esm/chunk-GS2QSZUR.js.map +7 -0
  417. package/dist/esm/{chunk-SGUTNJUO.js → chunk-GVLTTTFL.js} +2 -2
  418. package/dist/esm/chunk-HI3JY3DJ.js +2 -0
  419. package/dist/esm/chunk-HI3JY3DJ.js.map +7 -0
  420. package/dist/esm/{chunk-CIKDGYX3.js → chunk-HVQ3SLQC.js} +2 -2
  421. package/dist/esm/chunk-I53SGTKV.js +2 -0
  422. package/dist/esm/chunk-I53SGTKV.js.map +7 -0
  423. package/dist/esm/chunk-IMYZP5OY.js +2 -0
  424. package/dist/esm/chunk-IMYZP5OY.js.map +7 -0
  425. package/dist/esm/{chunk-N6Q3L64W.js → chunk-IYFDCW7Y.js} +2 -2
  426. package/dist/esm/chunk-IYXR46Q6.js +5 -0
  427. package/dist/esm/chunk-IYXR46Q6.js.map +7 -0
  428. package/dist/esm/chunk-JGB6LNTP.js +2 -0
  429. package/dist/esm/chunk-JGB6LNTP.js.map +7 -0
  430. package/dist/esm/chunk-JLHJHYVQ.js +2 -0
  431. package/dist/esm/chunk-JLHJHYVQ.js.map +7 -0
  432. package/dist/esm/{chunk-7FC7HF76.js → chunk-JLI7WHV6.js} +2 -2
  433. package/dist/esm/{chunk-OW4KAIWF.js → chunk-JQURG6CB.js} +2 -2
  434. package/dist/esm/{chunk-GONBMSRL.js → chunk-JZD5FHSU.js} +2 -2
  435. package/dist/esm/{chunk-EUSMN3K7.js → chunk-K5SC3CZZ.js} +2 -2
  436. package/dist/esm/{chunk-UBWRIE4C.js → chunk-K7J23OPW.js} +2 -2
  437. package/dist/esm/{chunk-UTHTSYSL.js → chunk-K7XY7FLD.js} +2 -2
  438. package/dist/esm/chunk-K7XY7FLD.js.map +7 -0
  439. package/dist/esm/chunk-KA5XDSKH.js +2 -0
  440. package/dist/esm/chunk-KA5XDSKH.js.map +7 -0
  441. package/dist/esm/chunk-L6M2MI7Y.js +2 -0
  442. package/dist/esm/chunk-L6M2MI7Y.js.map +7 -0
  443. package/dist/esm/chunk-LRFAOQK6.js +2 -0
  444. package/dist/esm/chunk-LRFAOQK6.js.map +7 -0
  445. package/dist/esm/chunk-LXSARUXD.js +2 -0
  446. package/dist/esm/chunk-LXSARUXD.js.map +7 -0
  447. package/dist/esm/{chunk-7ZCQAMHZ.js → chunk-MD3QCXRD.js} +2 -2
  448. package/dist/esm/chunk-MGQ4A2FI.js +2 -0
  449. package/dist/esm/{chunk-CMEKH4I5.js → chunk-MGSHX5N5.js} +2 -2
  450. package/dist/esm/chunk-MLJLEOZ5.js +2 -0
  451. package/dist/esm/chunk-MLJLEOZ5.js.map +7 -0
  452. package/dist/esm/chunk-MNC2O6QW.js +2 -0
  453. package/dist/esm/chunk-MNC2O6QW.js.map +7 -0
  454. package/dist/esm/chunk-MOMYWKIO.js +2 -0
  455. package/dist/esm/chunk-MOMYWKIO.js.map +7 -0
  456. package/dist/esm/{chunk-T7Q6DQRD.js → chunk-MQT3YJKY.js} +2 -2
  457. package/dist/esm/chunk-MQT3YJKY.js.map +7 -0
  458. package/dist/esm/{chunk-ZE2GWHPY.js → chunk-MVW2SY4F.js} +2 -2
  459. package/dist/esm/{chunk-KJTEZVOF.js → chunk-O6K6RZXY.js} +2 -2
  460. package/dist/esm/{chunk-JUY7CBSL.js → chunk-PBFSBHBS.js} +2 -2
  461. package/dist/esm/{chunk-3HGHPAH4.js → chunk-PDBVZAUJ.js} +2 -2
  462. package/dist/esm/chunk-PRRJ4WRE.js +2 -0
  463. package/dist/esm/chunk-PRRJ4WRE.js.map +7 -0
  464. package/dist/esm/chunk-PSS45RHX.js +2 -0
  465. package/dist/esm/{chunk-4JNHUPIM.js.map → chunk-PSS45RHX.js.map} +3 -3
  466. package/dist/esm/chunk-PTEAQFHI.js +2 -0
  467. package/dist/esm/chunk-PTEAQFHI.js.map +7 -0
  468. package/dist/esm/chunk-QDW5ZG5E.js +1 -0
  469. package/dist/esm/chunk-QE2EF7A7.js +2 -0
  470. package/dist/esm/chunk-QE2EF7A7.js.map +7 -0
  471. package/dist/esm/{chunk-R2MQMCND.js → chunk-QJFAGWBO.js} +2 -2
  472. package/dist/esm/chunk-QJSSCW3B.js +2 -0
  473. package/dist/esm/chunk-QJSSCW3B.js.map +7 -0
  474. package/dist/esm/chunk-QPNYHS6A.js +2 -0
  475. package/dist/esm/chunk-QPNYHS6A.js.map +7 -0
  476. package/dist/esm/chunk-QWFFYUFH.js +2 -0
  477. package/dist/esm/chunk-QWFFYUFH.js.map +7 -0
  478. package/dist/esm/{chunk-TCEQ5VVE.js → chunk-R4CN4Q3G.js} +2 -2
  479. package/dist/esm/chunk-RA4U6VVZ.js +2 -0
  480. package/dist/esm/chunk-RA4U6VVZ.js.map +7 -0
  481. package/dist/esm/{chunk-HJLBVNQE.js → chunk-RYURXQLJ.js} +2 -2
  482. package/dist/esm/{chunk-RUOOCYK4.js → chunk-S53ZQNHK.js} +2 -2
  483. package/dist/esm/chunk-SHFBYYEP.js +2 -0
  484. package/dist/esm/chunk-SHFBYYEP.js.map +7 -0
  485. package/dist/esm/{chunk-5G4WWJ4Z.js → chunk-T5DSQKKF.js} +2 -2
  486. package/dist/esm/{chunk-3XSB7YIM.js → chunk-TBZO22XK.js} +2 -2
  487. package/dist/esm/{chunk-C7UXUTUF.js → chunk-TGRRQHLQ.js} +2 -2
  488. package/dist/esm/{chunk-IVBKTHDM.js → chunk-TPHNDGSV.js} +2 -2
  489. package/dist/esm/chunk-TY3DIJFF.js +10 -0
  490. package/dist/esm/chunk-TY3DIJFF.js.map +7 -0
  491. package/dist/esm/chunk-UA6FP7HS.js +2 -0
  492. package/dist/esm/{chunk-6FLLFCBU.js → chunk-UBSLEGQZ.js} +2 -2
  493. package/dist/esm/chunk-UI2EFF6F.js +2 -0
  494. package/dist/esm/chunk-UI2EFF6F.js.map +7 -0
  495. package/dist/esm/chunk-ULSNYQOY.js +2 -0
  496. package/dist/esm/{chunk-XKBLNVOD.js.map → chunk-ULSNYQOY.js.map} +1 -1
  497. package/dist/esm/chunk-UPCRXJB2.js +2 -0
  498. package/dist/esm/chunk-UPCRXJB2.js.map +7 -0
  499. package/dist/esm/chunk-URLG45A4.js +2 -0
  500. package/dist/esm/chunk-URLG45A4.js.map +7 -0
  501. package/dist/esm/{chunk-LJXP6K5Y.js → chunk-V2TPYSZ2.js} +2 -2
  502. package/dist/esm/chunk-V7UP4SLZ.js +2 -0
  503. package/dist/esm/chunk-V7UP4SLZ.js.map +7 -0
  504. package/dist/esm/{chunk-FMMKOOS7.js → chunk-VASXAV62.js} +2 -2
  505. package/dist/esm/chunk-VASXAV62.js.map +7 -0
  506. package/dist/esm/chunk-VSSJTPBV.js +2 -0
  507. package/dist/esm/chunk-VSSJTPBV.js.map +7 -0
  508. package/dist/esm/chunk-W7VAP3WE.js +2 -0
  509. package/dist/esm/chunk-W7VAP3WE.js.map +7 -0
  510. package/dist/esm/chunk-WGNIFXUE.js +2 -0
  511. package/dist/esm/chunk-WGNIFXUE.js.map +7 -0
  512. package/dist/esm/chunk-WNSG5P3U.js +2 -0
  513. package/dist/esm/chunk-WNSG5P3U.js.map +7 -0
  514. package/dist/esm/{chunk-YLLCCUC7.js → chunk-X3UTLDGG.js} +2 -2
  515. package/dist/esm/chunk-XCDXQLWS.js +2 -0
  516. package/dist/esm/chunk-XCDXQLWS.js.map +7 -0
  517. package/dist/esm/{chunk-3UZHKW6I.js → chunk-XHF6RBOE.js} +2 -2
  518. package/dist/esm/{chunk-IPHKKZYE.js → chunk-XHKL4PG7.js} +2 -2
  519. package/dist/esm/chunk-XKAWVGBL.js +2 -0
  520. package/dist/esm/chunk-XKAWVGBL.js.map +7 -0
  521. package/dist/esm/{chunk-PAEHH3WS.js → chunk-XZ5XZS5O.js} +2 -2
  522. package/dist/esm/chunk-Y3FVBAN2.js +2 -0
  523. package/dist/esm/chunk-Y3FVBAN2.js.map +7 -0
  524. package/dist/esm/chunk-Y4IB7KDZ.js +5 -0
  525. package/dist/esm/chunk-Y4IB7KDZ.js.map +7 -0
  526. package/dist/esm/chunk-YKGLZEXX.js +2 -0
  527. package/dist/esm/{chunk-VBAXORVV.js.map → chunk-YKGLZEXX.js.map} +3 -3
  528. package/dist/esm/chunk-Z2LGVLUB.js +2 -0
  529. package/dist/esm/chunk-Z2LGVLUB.js.map +7 -0
  530. package/dist/esm/chunk-ZMFZYXLB.js +2 -0
  531. package/dist/esm/chunk-ZMFZYXLB.js.map +7 -0
  532. package/dist/esm/components/_internal/base-button.d.ts.map +1 -1
  533. package/dist/esm/components/_internal/base-button.js +1 -1
  534. package/dist/esm/components/_internal/base-button.props.d.ts +2 -9
  535. package/dist/esm/components/_internal/base-button.props.d.ts.map +1 -1
  536. package/dist/esm/components/_internal/base-button.props.js +1 -1
  537. package/dist/esm/components/_internal/base-checkbox.props.d.ts +2 -9
  538. package/dist/esm/components/_internal/base-checkbox.props.d.ts.map +1 -1
  539. package/dist/esm/components/_internal/base-checkbox.props.js +1 -1
  540. package/dist/esm/components/_internal/base-menu.props.d.ts +0 -28
  541. package/dist/esm/components/_internal/base-menu.props.d.ts.map +1 -1
  542. package/dist/esm/components/_internal/base-menu.props.js +1 -1
  543. package/dist/esm/components/_internal/base-menu.utils.d.ts +2 -9
  544. package/dist/esm/components/_internal/base-menu.utils.d.ts.map +1 -1
  545. package/dist/esm/components/_internal/base-menu.utils.js +1 -1
  546. package/dist/esm/components/_internal/base-radio.props.d.ts +1 -8
  547. package/dist/esm/components/_internal/base-radio.props.d.ts.map +1 -1
  548. package/dist/esm/components/_internal/base-radio.props.js +1 -1
  549. package/dist/esm/components/_internal/base-tab-list.props.d.ts +0 -6
  550. package/dist/esm/components/_internal/base-tab-list.props.d.ts.map +1 -1
  551. package/dist/esm/components/_internal/base-tab-list.props.js +1 -1
  552. package/dist/esm/components/_internal/menu-context.js +1 -1
  553. package/dist/esm/components/_internal/pane-chrome.js +1 -1
  554. package/dist/esm/components/_internal/shell-bottom.js +1 -1
  555. package/dist/esm/components/_internal/shell-inspector.js +1 -1
  556. package/dist/esm/components/_internal/shell-pane.d.ts +2 -3
  557. package/dist/esm/components/_internal/shell-pane.d.ts.map +1 -1
  558. package/dist/esm/components/_internal/shell-pane.js +1 -1
  559. package/dist/esm/components/_internal/shell-sidebar.d.ts +0 -4
  560. package/dist/esm/components/_internal/shell-sidebar.d.ts.map +1 -1
  561. package/dist/esm/components/_internal/shell-sidebar.js +1 -1
  562. package/dist/esm/components/_internal/shell-store.d.ts +4 -4
  563. package/dist/esm/components/_internal/shell-store.d.ts.map +1 -1
  564. package/dist/esm/components/_internal/shell-store.js +1 -1
  565. package/dist/esm/components/accordion.d.ts.map +1 -1
  566. package/dist/esm/components/accordion.js +1 -1
  567. package/dist/esm/components/accordion.props.d.ts +4 -15
  568. package/dist/esm/components/accordion.props.d.ts.map +1 -1
  569. package/dist/esm/components/accordion.props.js +1 -1
  570. package/dist/esm/components/alert-dialog.d.ts.map +1 -1
  571. package/dist/esm/components/alert-dialog.js +1 -1
  572. package/dist/esm/components/alert-dialog.props.d.ts +0 -5
  573. package/dist/esm/components/alert-dialog.props.d.ts.map +1 -1
  574. package/dist/esm/components/alert-dialog.props.js +1 -1
  575. package/dist/esm/components/avatar.d.ts.map +1 -1
  576. package/dist/esm/components/avatar.js +1 -1
  577. package/dist/esm/components/avatar.props.d.ts +2 -17
  578. package/dist/esm/components/avatar.props.d.ts.map +1 -1
  579. package/dist/esm/components/avatar.props.js +1 -1
  580. package/dist/esm/components/badge.d.ts.map +1 -1
  581. package/dist/esm/components/badge.js +1 -1
  582. package/dist/esm/components/badge.props.d.ts +1 -16
  583. package/dist/esm/components/badge.props.d.ts.map +1 -1
  584. package/dist/esm/components/badge.props.js +1 -1
  585. package/dist/esm/components/blockquote.js +1 -1
  586. package/dist/esm/components/blockquote.props.d.ts +1 -1
  587. package/dist/esm/components/blockquote.props.js +1 -1
  588. package/dist/esm/components/box.js +1 -1
  589. package/dist/esm/components/button.d.ts +2 -39
  590. package/dist/esm/components/button.d.ts.map +1 -1
  591. package/dist/esm/components/button.js +1 -1
  592. package/dist/esm/components/button.props.js +1 -1
  593. package/dist/esm/components/card.d.ts.map +1 -1
  594. package/dist/esm/components/card.js +1 -1
  595. package/dist/esm/components/card.props.d.ts +1 -8
  596. package/dist/esm/components/card.props.d.ts.map +1 -1
  597. package/dist/esm/components/card.props.js +1 -1
  598. package/dist/esm/components/chatbar.d.ts +1 -3
  599. package/dist/esm/components/chatbar.d.ts.map +1 -1
  600. package/dist/esm/components/chatbar.js +1 -1
  601. package/dist/esm/components/checkbox-cards.d.ts.map +1 -1
  602. package/dist/esm/components/checkbox-cards.js +1 -1
  603. package/dist/esm/components/checkbox-cards.props.d.ts +2 -10
  604. package/dist/esm/components/checkbox-cards.props.d.ts.map +1 -1
  605. package/dist/esm/components/checkbox-cards.props.js +1 -1
  606. package/dist/esm/components/checkbox-group.js +1 -1
  607. package/dist/esm/components/checkbox-group.props.d.ts +2 -8
  608. package/dist/esm/components/checkbox-group.props.d.ts.map +1 -1
  609. package/dist/esm/components/checkbox-group.props.js +1 -1
  610. package/dist/esm/components/checkbox.d.ts.map +1 -1
  611. package/dist/esm/components/checkbox.js +1 -1
  612. package/dist/esm/components/checkbox.props.js +1 -1
  613. package/dist/esm/components/code.js +1 -1
  614. package/dist/esm/components/code.props.d.ts +1 -1
  615. package/dist/esm/components/code.props.js +1 -1
  616. package/dist/esm/components/combobox.d.ts.map +1 -1
  617. package/dist/esm/components/combobox.js +1 -1
  618. package/dist/esm/components/combobox.props.d.ts +1 -20
  619. package/dist/esm/components/combobox.props.d.ts.map +1 -1
  620. package/dist/esm/components/combobox.props.js +1 -1
  621. package/dist/esm/components/container.js +1 -1
  622. package/dist/esm/components/context-menu.d.ts.map +1 -1
  623. package/dist/esm/components/context-menu.js +1 -1
  624. package/dist/esm/components/context-menu.props.js +1 -1
  625. package/dist/esm/components/data-list.js +1 -1
  626. package/dist/esm/components/data-list.props.js +1 -1
  627. package/dist/esm/components/dialog.d.ts.map +1 -1
  628. package/dist/esm/components/dialog.js +1 -1
  629. package/dist/esm/components/dialog.props.d.ts +0 -5
  630. package/dist/esm/components/dialog.props.d.ts.map +1 -1
  631. package/dist/esm/components/dialog.props.js +1 -1
  632. package/dist/esm/components/dropdown-menu.d.ts.map +1 -1
  633. package/dist/esm/components/dropdown-menu.js +1 -1
  634. package/dist/esm/components/dropdown-menu.props.js +1 -1
  635. package/dist/esm/components/em.js +1 -1
  636. package/dist/esm/components/flex.js +1 -1
  637. package/dist/esm/components/grid.js +1 -1
  638. package/dist/esm/components/heading.js +1 -1
  639. package/dist/esm/components/heading.props.js +1 -1
  640. package/dist/esm/components/hover-card.js +1 -1
  641. package/dist/esm/components/icon-button.d.ts +1 -1
  642. package/dist/esm/components/icon-button.d.ts.map +1 -1
  643. package/dist/esm/components/icon-button.js +1 -1
  644. package/dist/esm/components/icon-button.props.js +1 -1
  645. package/dist/esm/components/image.d.ts +0 -5
  646. package/dist/esm/components/image.d.ts.map +1 -1
  647. package/dist/esm/components/image.js +1 -1
  648. package/dist/esm/components/index.d.ts +0 -3
  649. package/dist/esm/components/index.d.ts.map +1 -1
  650. package/dist/esm/components/index.js +1 -1
  651. package/dist/esm/components/inset.js +1 -1
  652. package/dist/esm/components/kbd.js +1 -1
  653. package/dist/esm/components/kbd.props.d.ts +2 -4
  654. package/dist/esm/components/kbd.props.d.ts.map +1 -1
  655. package/dist/esm/components/kbd.props.js +1 -1
  656. package/dist/esm/components/link.js +1 -1
  657. package/dist/esm/components/link.props.d.ts +1 -1
  658. package/dist/esm/components/link.props.js +1 -1
  659. package/dist/esm/components/message-scroller.js +1 -1
  660. package/dist/esm/components/navbar.js +1 -1
  661. package/dist/esm/components/notice.js +1 -1
  662. package/dist/esm/components/popover.d.ts.map +1 -1
  663. package/dist/esm/components/popover.js +1 -1
  664. package/dist/esm/components/popover.props.d.ts +0 -6
  665. package/dist/esm/components/popover.props.d.ts.map +1 -1
  666. package/dist/esm/components/popover.props.js +1 -1
  667. package/dist/esm/components/progress.js +1 -1
  668. package/dist/esm/components/progress.props.js +1 -1
  669. package/dist/esm/components/quote.js +1 -1
  670. package/dist/esm/components/radio-cards.d.ts.map +1 -1
  671. package/dist/esm/components/radio-cards.js +1 -1
  672. package/dist/esm/components/radio-cards.props.d.ts +2 -10
  673. package/dist/esm/components/radio-cards.props.d.ts.map +1 -1
  674. package/dist/esm/components/radio-cards.props.js +1 -1
  675. package/dist/esm/components/radio-group.js +1 -1
  676. package/dist/esm/components/radio-group.props.d.ts +1 -3
  677. package/dist/esm/components/radio-group.props.d.ts.map +1 -1
  678. package/dist/esm/components/radio-group.props.js +1 -1
  679. package/dist/esm/components/radio.d.ts.map +1 -1
  680. package/dist/esm/components/radio.js +1 -1
  681. package/dist/esm/components/radio.props.js +1 -1
  682. package/dist/esm/components/schemas/base-button.schema.d.ts +0 -7
  683. package/dist/esm/components/schemas/base-button.schema.d.ts.map +1 -1
  684. package/dist/esm/components/schemas/base-button.schema.js +1 -1
  685. package/dist/esm/components/schemas/button.schema.d.ts +7 -73
  686. package/dist/esm/components/schemas/button.schema.d.ts.map +1 -1
  687. package/dist/esm/components/schemas/button.schema.js +1 -1
  688. package/dist/esm/components/schemas/icon-button.schema.d.ts +0 -7
  689. package/dist/esm/components/schemas/icon-button.schema.d.ts.map +1 -1
  690. package/dist/esm/components/schemas/icon-button.schema.js +1 -1
  691. package/dist/esm/components/schemas/index.js +1 -1
  692. package/dist/esm/components/schemas/shell.schema.d.ts +5 -29
  693. package/dist/esm/components/schemas/shell.schema.d.ts.map +1 -1
  694. package/dist/esm/components/schemas/shell.schema.js +1 -1
  695. package/dist/esm/components/schemas/toggle-button.schema.d.ts +7 -73
  696. package/dist/esm/components/schemas/toggle-button.schema.d.ts.map +1 -1
  697. package/dist/esm/components/schemas/toggle-button.schema.js +1 -1
  698. package/dist/esm/components/schemas/toggle-icon-button.schema.d.ts +0 -7
  699. package/dist/esm/components/schemas/toggle-icon-button.schema.d.ts.map +1 -1
  700. package/dist/esm/components/schemas/toggle-icon-button.schema.js +1 -1
  701. package/dist/esm/components/scroll-area.js +1 -1
  702. package/dist/esm/components/section.js +1 -1
  703. package/dist/esm/components/segmented-control.d.ts.map +1 -1
  704. package/dist/esm/components/segmented-control.js +1 -1
  705. package/dist/esm/components/segmented-control.props.d.ts +0 -11
  706. package/dist/esm/components/segmented-control.props.d.ts.map +1 -1
  707. package/dist/esm/components/segmented-control.props.js +1 -1
  708. package/dist/esm/components/select.d.ts.map +1 -1
  709. package/dist/esm/components/select.js +1 -1
  710. package/dist/esm/components/select.props.d.ts +1 -14
  711. package/dist/esm/components/select.props.d.ts.map +1 -1
  712. package/dist/esm/components/select.props.js +1 -1
  713. package/dist/esm/components/separator.js +1 -1
  714. package/dist/esm/components/separator.props.js +1 -1
  715. package/dist/esm/components/sheet.d.ts +1 -2
  716. package/dist/esm/components/sheet.d.ts.map +1 -1
  717. package/dist/esm/components/sheet.js +1 -1
  718. package/dist/esm/components/shell.context.js +1 -1
  719. package/dist/esm/components/shell.hooks.js +1 -1
  720. package/dist/esm/components/shell.js +1 -1
  721. package/dist/esm/components/shell.types.d.ts +1 -1
  722. package/dist/esm/components/shell.types.d.ts.map +1 -1
  723. package/dist/esm/components/shell.types.js +1 -1
  724. package/dist/esm/components/sidebar.d.ts +2 -92
  725. package/dist/esm/components/sidebar.d.ts.map +1 -1
  726. package/dist/esm/components/sidebar.js +1 -1
  727. package/dist/esm/components/skeleton.js +1 -1
  728. package/dist/esm/components/slider.js +1 -1
  729. package/dist/esm/components/slider.props.js +1 -1
  730. package/dist/esm/components/spinner.js +1 -1
  731. package/dist/esm/components/strong.js +1 -1
  732. package/dist/esm/components/switch.d.ts.map +1 -1
  733. package/dist/esm/components/switch.js +1 -1
  734. package/dist/esm/components/switch.props.d.ts +0 -18
  735. package/dist/esm/components/switch.props.d.ts.map +1 -1
  736. package/dist/esm/components/switch.props.js +1 -1
  737. package/dist/esm/components/tab-nav.d.ts.map +1 -1
  738. package/dist/esm/components/tab-nav.js +1 -1
  739. package/dist/esm/components/tab-nav.props.js +1 -1
  740. package/dist/esm/components/table.js +1 -1
  741. package/dist/esm/components/tabs.d.ts.map +1 -1
  742. package/dist/esm/components/tabs.js +1 -1
  743. package/dist/esm/components/tabs.props.js +1 -1
  744. package/dist/esm/components/text-area.d.ts.map +1 -1
  745. package/dist/esm/components/text-area.js +1 -1
  746. package/dist/esm/components/text-area.props.d.ts +1 -12
  747. package/dist/esm/components/text-area.props.d.ts.map +1 -1
  748. package/dist/esm/components/text-area.props.js +1 -1
  749. package/dist/esm/components/text-field.d.ts.map +1 -1
  750. package/dist/esm/components/text-field.js +1 -1
  751. package/dist/esm/components/text-field.props.d.ts +1 -12
  752. package/dist/esm/components/text-field.props.d.ts.map +1 -1
  753. package/dist/esm/components/text-field.props.js +1 -1
  754. package/dist/esm/components/text.js +1 -1
  755. package/dist/esm/components/text.props.js +1 -1
  756. package/dist/esm/components/theme-panel.d.ts.map +1 -1
  757. package/dist/esm/components/theme-panel.js +1 -1
  758. package/dist/esm/components/theme.d.ts +0 -3
  759. package/dist/esm/components/theme.d.ts.map +1 -1
  760. package/dist/esm/components/theme.js +1 -1
  761. package/dist/esm/components/theme.props.d.ts +1 -19
  762. package/dist/esm/components/theme.props.d.ts.map +1 -1
  763. package/dist/esm/components/theme.props.js +1 -1
  764. package/dist/esm/components/toggle-button.d.ts.map +1 -1
  765. package/dist/esm/components/toggle-button.js +1 -1
  766. package/dist/esm/components/toggle-icon-button.d.ts.map +1 -1
  767. package/dist/esm/components/toggle-icon-button.js +1 -1
  768. package/dist/esm/components/toolbar.d.ts +1 -1
  769. package/dist/esm/components/toolbar.d.ts.map +1 -1
  770. package/dist/esm/components/toolbar.js +1 -1
  771. package/dist/esm/components/tooltip.js +1 -1
  772. package/dist/esm/components/virtual-menu.js +1 -1
  773. package/dist/esm/helpers/extract-props.js +1 -1
  774. package/dist/esm/helpers/get-margin-styles.js +1 -1
  775. package/dist/esm/helpers/get-responsive-styles.js +1 -1
  776. package/dist/esm/helpers/index.js +1 -1
  777. package/dist/esm/helpers/map-prop-values.d.ts +1 -4
  778. package/dist/esm/helpers/map-prop-values.d.ts.map +1 -1
  779. package/dist/esm/helpers/map-prop-values.js +1 -1
  780. package/dist/esm/hooks/use-breakpoint.js +1 -1
  781. package/dist/esm/index.js +1 -1
  782. package/dist/esm/props/color.prop.d.ts.map +1 -1
  783. package/dist/esm/props/color.prop.js +1 -1
  784. package/dist/esm/props/index.d.ts +0 -1
  785. package/dist/esm/props/index.d.ts.map +1 -1
  786. package/dist/esm/props/index.js +1 -1
  787. package/package.json +1 -2
  788. package/schemas/base-button.json +2 -17
  789. package/schemas/button.json +21 -234
  790. package/schemas/icon-button.json +2 -17
  791. package/schemas/index.json +58 -548
  792. package/schemas/shell-root.json +10 -0
  793. package/schemas/shell-sidebar.json +0 -29
  794. package/schemas/toggle-button.json +21 -234
  795. package/schemas/toggle-icon-button.json +2 -17
  796. package/src/components/_internal/base-button.css +7 -110
  797. package/src/components/_internal/base-button.props.ts +4 -8
  798. package/src/components/_internal/base-button.tsx +1 -6
  799. package/src/components/_internal/base-card.css +12 -54
  800. package/src/components/_internal/base-checkbox.css +9 -120
  801. package/src/components/_internal/base-checkbox.props.ts +3 -7
  802. package/src/components/_internal/base-dialog.css +5 -24
  803. package/src/components/_internal/base-menu.css +5 -44
  804. package/src/components/_internal/base-menu.props.ts +0 -20
  805. package/src/components/_internal/base-menu.utils.tsx +3 -13
  806. package/src/components/_internal/base-radio.css +8 -115
  807. package/src/components/_internal/base-radio.props.ts +2 -6
  808. package/src/components/_internal/base-sidebar-menu.css +0 -35
  809. package/src/components/_internal/base-sidebar.css +0 -37
  810. package/src/components/_internal/base-tab-list.css +8 -14
  811. package/src/components/_internal/base-tab-list.props.ts +3 -6
  812. package/src/components/_internal/shell-pane.tsx +2 -3
  813. package/src/components/_internal/shell-sidebar.tsx +5 -31
  814. package/src/components/_internal/shell-store.tsx +4 -4
  815. package/src/components/accordion.css +42 -95
  816. package/src/components/accordion.props.tsx +6 -13
  817. package/src/components/accordion.tsx +2 -6
  818. package/src/components/alert-dialog.props.tsx +0 -1
  819. package/src/components/alert-dialog.tsx +1 -13
  820. package/src/components/avatar.css +4 -31
  821. package/src/components/avatar.props.tsx +3 -13
  822. package/src/components/avatar.tsx +0 -4
  823. package/src/components/badge.css +1 -38
  824. package/src/components/badge.props.tsx +2 -12
  825. package/src/components/badge.tsx +0 -11
  826. package/src/components/blockquote.props.tsx +1 -1
  827. package/src/components/button.tsx +5 -85
  828. package/src/components/card.props.tsx +2 -6
  829. package/src/components/card.tsx +2 -3
  830. package/src/components/chatbar.css +6 -24
  831. package/src/components/chatbar.tsx +16 -31
  832. package/src/components/checkbox-cards.css +0 -1
  833. package/src/components/checkbox-cards.props.tsx +5 -9
  834. package/src/components/checkbox-cards.tsx +2 -6
  835. package/src/components/checkbox.tsx +0 -2
  836. package/src/components/code.css +20 -0
  837. package/src/components/code.props.tsx +1 -1
  838. package/src/components/combobox.css +14 -13
  839. package/src/components/combobox.props.tsx +2 -15
  840. package/src/components/combobox.tsx +7 -23
  841. package/src/components/context-menu.tsx +9 -18
  842. package/src/components/dialog.props.tsx +0 -3
  843. package/src/components/dialog.tsx +1 -13
  844. package/src/components/dropdown-menu.css +0 -21
  845. package/src/components/dropdown-menu.tsx +9 -20
  846. package/src/components/icon-button.tsx +1 -1
  847. package/src/components/image.css +2 -11
  848. package/src/components/image.tsx +2 -10
  849. package/src/components/index.css +0 -5
  850. package/src/components/index.tsx +0 -3
  851. package/src/components/kbd.css +37 -13
  852. package/src/components/kbd.props.tsx +2 -4
  853. package/src/components/link.props.tsx +1 -1
  854. package/src/components/popover.css +2 -6
  855. package/src/components/popover.props.tsx +3 -6
  856. package/src/components/popover.tsx +2 -6
  857. package/src/components/progress.css +12 -13
  858. package/src/components/radio-cards.css +0 -2
  859. package/src/components/radio-cards.props.tsx +5 -9
  860. package/src/components/radio-cards.tsx +2 -6
  861. package/src/components/radio-group.props.tsx +1 -2
  862. package/src/components/radio.tsx +1 -2
  863. package/src/components/reset.css +3 -16
  864. package/src/components/schemas/base-button.schema.ts +3 -23
  865. package/src/components/schemas/button.schema.ts +15 -94
  866. package/src/components/schemas/shell.schema.ts +2 -3
  867. package/src/components/scroll-area.css +0 -11
  868. package/src/components/segmented-control.css +11 -23
  869. package/src/components/segmented-control.props.tsx +0 -6
  870. package/src/components/segmented-control.tsx +1 -8
  871. package/src/components/select.css +81 -93
  872. package/src/components/select.props.tsx +2 -9
  873. package/src/components/select.tsx +2 -7
  874. package/src/components/sheet.css +0 -71
  875. package/src/components/sheet.tsx +5 -14
  876. package/src/components/shell.context.tsx +2 -2
  877. package/src/components/shell.css +7 -64
  878. package/src/components/shell.tsx +2 -2
  879. package/src/components/shell.types.ts +1 -1
  880. package/src/components/sidebar.css +78 -341
  881. package/src/components/sidebar.tsx +3 -244
  882. package/src/components/slider.css +12 -15
  883. package/src/components/spinner.css +2 -2
  884. package/src/components/switch.css +3 -55
  885. package/src/components/switch.props.tsx +0 -6
  886. package/src/components/switch.tsx +1 -4
  887. package/src/components/tab-nav.tsx +2 -5
  888. package/src/components/tabs.css +0 -2
  889. package/src/components/tabs.tsx +2 -5
  890. package/src/components/text-area.css +6 -13
  891. package/src/components/text-area.props.tsx +2 -9
  892. package/src/components/text-area.tsx +4 -9
  893. package/src/components/text-field.css +36 -44
  894. package/src/components/text-field.props.tsx +2 -9
  895. package/src/components/text-field.tsx +4 -9
  896. package/src/components/theme-panel.tsx +9 -13
  897. package/src/components/theme.props.tsx +1 -17
  898. package/src/components/theme.tsx +1 -26
  899. package/src/components/toggle-button.tsx +1 -1
  900. package/src/components/toggle-icon-button.tsx +6 -6
  901. package/src/components/toolbar.tsx +1 -4
  902. package/src/components/tooltip.css +1 -21
  903. package/src/helpers/map-prop-values.ts +1 -7
  904. package/src/props/color.prop.ts +1 -2
  905. package/src/props/index.ts +0 -1
  906. package/src/styles/tokens/base.css +0 -1
  907. package/src/styles/tokens/color.css +2 -32
  908. package/src/styles/tokens/constants.css +0 -90
  909. package/styles.css +963 -3146
  910. package/tokens/base.css +2 -110
  911. package/tokens.css +2 -155
  912. package/dist/cjs/components/app-bar.d.ts +0 -50
  913. package/dist/cjs/components/app-bar.d.ts.map +0 -1
  914. package/dist/cjs/components/app-bar.js +0 -2
  915. package/dist/cjs/components/app-bar.js.map +0 -7
  916. package/dist/cjs/components/callout.d.ts +0 -23
  917. package/dist/cjs/components/callout.d.ts.map +0 -1
  918. package/dist/cjs/components/callout.js +0 -2
  919. package/dist/cjs/components/callout.js.map +0 -7
  920. package/dist/cjs/components/callout.props.d.ts +0 -40
  921. package/dist/cjs/components/callout.props.d.ts.map +0 -1
  922. package/dist/cjs/components/callout.props.js +0 -2
  923. package/dist/cjs/components/callout.props.js.map +0 -7
  924. package/dist/cjs/components/sidebar.props.d.ts +0 -62
  925. package/dist/cjs/components/sidebar.props.d.ts.map +0 -1
  926. package/dist/cjs/components/sidebar.props.js +0 -2
  927. package/dist/cjs/components/sidebar.props.js.map +0 -7
  928. package/dist/cjs/components/user-card.d.ts +0 -13
  929. package/dist/cjs/components/user-card.d.ts.map +0 -1
  930. package/dist/cjs/components/user-card.js +0 -2
  931. package/dist/cjs/components/user-card.js.map +0 -7
  932. package/dist/cjs/components/user-card.props.d.ts +0 -60
  933. package/dist/cjs/components/user-card.props.d.ts.map +0 -1
  934. package/dist/cjs/components/user-card.props.js +0 -2
  935. package/dist/cjs/components/user-card.props.js.map +0 -7
  936. package/dist/cjs/helpers/parse-variant.d.ts +0 -8
  937. package/dist/cjs/helpers/parse-variant.d.ts.map +0 -1
  938. package/dist/cjs/helpers/parse-variant.js +0 -2
  939. package/dist/cjs/helpers/parse-variant.js.map +0 -7
  940. package/dist/cjs/helpers/use-deprecation-warning.d.ts +0 -10
  941. package/dist/cjs/helpers/use-deprecation-warning.d.ts.map +0 -1
  942. package/dist/cjs/helpers/use-deprecation-warning.js +0 -2
  943. package/dist/cjs/helpers/use-deprecation-warning.js.map +0 -7
  944. package/dist/esm/chunk-27SCVCQY.js +0 -2
  945. package/dist/esm/chunk-27SCVCQY.js.map +0 -7
  946. package/dist/esm/chunk-2C5WLKEZ.js +0 -2
  947. package/dist/esm/chunk-2C5WLKEZ.js.map +0 -7
  948. package/dist/esm/chunk-2D5QJ6MX.js +0 -2
  949. package/dist/esm/chunk-2D5QJ6MX.js.map +0 -7
  950. package/dist/esm/chunk-2DKLJMUU.js +0 -2
  951. package/dist/esm/chunk-2DKLJMUU.js.map +0 -7
  952. package/dist/esm/chunk-2EQWBT2S.js +0 -2
  953. package/dist/esm/chunk-2T74JEVN.js +0 -2
  954. package/dist/esm/chunk-2T74JEVN.js.map +0 -7
  955. package/dist/esm/chunk-3M73GWN5.js +0 -2
  956. package/dist/esm/chunk-3M73GWN5.js.map +0 -7
  957. package/dist/esm/chunk-3Q3EOUGJ.js +0 -2
  958. package/dist/esm/chunk-3Q3EOUGJ.js.map +0 -7
  959. package/dist/esm/chunk-3TIO3EMN.js +0 -2
  960. package/dist/esm/chunk-3TIO3EMN.js.map +0 -7
  961. package/dist/esm/chunk-3WCSLQNH.js +0 -2
  962. package/dist/esm/chunk-3WCSLQNH.js.map +0 -7
  963. package/dist/esm/chunk-45AMHIBO.js +0 -2
  964. package/dist/esm/chunk-45AMHIBO.js.map +0 -7
  965. package/dist/esm/chunk-47CEZJM2.js +0 -2
  966. package/dist/esm/chunk-47CEZJM2.js.map +0 -7
  967. package/dist/esm/chunk-4BPRLR6C.js +0 -2
  968. package/dist/esm/chunk-4BPRLR6C.js.map +0 -7
  969. package/dist/esm/chunk-4D5LR4H6.js +0 -2
  970. package/dist/esm/chunk-4D5LR4H6.js.map +0 -7
  971. package/dist/esm/chunk-4JNHUPIM.js +0 -2
  972. package/dist/esm/chunk-4WLDX7WZ.js +0 -2
  973. package/dist/esm/chunk-4WLDX7WZ.js.map +0 -7
  974. package/dist/esm/chunk-5JS7ADWX.js +0 -2
  975. package/dist/esm/chunk-5JS7ADWX.js.map +0 -7
  976. package/dist/esm/chunk-5T6K7VPP.js +0 -2
  977. package/dist/esm/chunk-5T6K7VPP.js.map +0 -7
  978. package/dist/esm/chunk-5TXQLK4G.js +0 -2
  979. package/dist/esm/chunk-5TXQLK4G.js.map +0 -7
  980. package/dist/esm/chunk-6JP5PIOO.js +0 -2
  981. package/dist/esm/chunk-6JP5PIOO.js.map +0 -7
  982. package/dist/esm/chunk-6SVNBGZ6.js +0 -5
  983. package/dist/esm/chunk-6SVNBGZ6.js.map +0 -7
  984. package/dist/esm/chunk-77TGP2LO.js +0 -2
  985. package/dist/esm/chunk-77TGP2LO.js.map +0 -7
  986. package/dist/esm/chunk-7YIQV7VO.js +0 -2
  987. package/dist/esm/chunk-7YIQV7VO.js.map +0 -7
  988. package/dist/esm/chunk-A2XVR7GL.js.map +0 -7
  989. package/dist/esm/chunk-ADXZNG4F.js +0 -2
  990. package/dist/esm/chunk-ADXZNG4F.js.map +0 -7
  991. package/dist/esm/chunk-AVFGMLL4.js +0 -2
  992. package/dist/esm/chunk-AVFGMLL4.js.map +0 -7
  993. package/dist/esm/chunk-BKES3M4Y.js +0 -2
  994. package/dist/esm/chunk-BKES3M4Y.js.map +0 -7
  995. package/dist/esm/chunk-C7EVYSWK.js +0 -1
  996. package/dist/esm/chunk-CL6P54QT.js +0 -5
  997. package/dist/esm/chunk-CL6P54QT.js.map +0 -7
  998. package/dist/esm/chunk-CSUEZWN5.js +0 -2
  999. package/dist/esm/chunk-CSUEZWN5.js.map +0 -7
  1000. package/dist/esm/chunk-CYSDGVKF.js.map +0 -7
  1001. package/dist/esm/chunk-DJA5MCJA.js +0 -2
  1002. package/dist/esm/chunk-DJA5MCJA.js.map +0 -7
  1003. package/dist/esm/chunk-DVSXWSAT.js +0 -2
  1004. package/dist/esm/chunk-DVSXWSAT.js.map +0 -7
  1005. package/dist/esm/chunk-E7LJHM3S.js +0 -2
  1006. package/dist/esm/chunk-E7LJHM3S.js.map +0 -7
  1007. package/dist/esm/chunk-F7TOKXKZ.js +0 -10
  1008. package/dist/esm/chunk-F7TOKXKZ.js.map +0 -7
  1009. package/dist/esm/chunk-FISGGGPC.js +0 -2
  1010. package/dist/esm/chunk-FISGGGPC.js.map +0 -7
  1011. package/dist/esm/chunk-FMMKOOS7.js.map +0 -7
  1012. package/dist/esm/chunk-FNB47XDO.js +0 -2
  1013. package/dist/esm/chunk-FNB47XDO.js.map +0 -7
  1014. package/dist/esm/chunk-GCUGJXI2.js +0 -2
  1015. package/dist/esm/chunk-GCUGJXI2.js.map +0 -7
  1016. package/dist/esm/chunk-GLKN32J3.js +0 -2
  1017. package/dist/esm/chunk-GLKN32J3.js.map +0 -7
  1018. package/dist/esm/chunk-GMHA5CFH.js +0 -2
  1019. package/dist/esm/chunk-GRRV4I2I.js +0 -2
  1020. package/dist/esm/chunk-GRRV4I2I.js.map +0 -7
  1021. package/dist/esm/chunk-H7LHGT44.js +0 -2
  1022. package/dist/esm/chunk-H7LHGT44.js.map +0 -7
  1023. package/dist/esm/chunk-HNO4X33C.js +0 -2
  1024. package/dist/esm/chunk-HNO4X33C.js.map +0 -7
  1025. package/dist/esm/chunk-IHRLGR6J.js +0 -2
  1026. package/dist/esm/chunk-IHRLGR6J.js.map +0 -7
  1027. package/dist/esm/chunk-IY3GKGDZ.js +0 -2
  1028. package/dist/esm/chunk-IY3GKGDZ.js.map +0 -7
  1029. package/dist/esm/chunk-JTN3KTAS.js +0 -2
  1030. package/dist/esm/chunk-JTN3KTAS.js.map +0 -7
  1031. package/dist/esm/chunk-KJC32RWT.js +0 -2
  1032. package/dist/esm/chunk-KJC32RWT.js.map +0 -7
  1033. package/dist/esm/chunk-O2RISF37.js +0 -2
  1034. package/dist/esm/chunk-O2RISF37.js.map +0 -7
  1035. package/dist/esm/chunk-OB3MHLQL.js +0 -2
  1036. package/dist/esm/chunk-OB3MHLQL.js.map +0 -7
  1037. package/dist/esm/chunk-OJSDBLP7.js +0 -2
  1038. package/dist/esm/chunk-OJSDBLP7.js.map +0 -7
  1039. package/dist/esm/chunk-OUSDYZDE.js +0 -2
  1040. package/dist/esm/chunk-OUSDYZDE.js.map +0 -7
  1041. package/dist/esm/chunk-OVGPUFRI.js +0 -2
  1042. package/dist/esm/chunk-OVGPUFRI.js.map +0 -7
  1043. package/dist/esm/chunk-PLTTQFRQ.js +0 -2
  1044. package/dist/esm/chunk-PLTTQFRQ.js.map +0 -7
  1045. package/dist/esm/chunk-RA2XCS3M.js +0 -2
  1046. package/dist/esm/chunk-RA2XCS3M.js.map +0 -7
  1047. package/dist/esm/chunk-ROGC7K5N.js +0 -2
  1048. package/dist/esm/chunk-ROGC7K5N.js.map +0 -7
  1049. package/dist/esm/chunk-RON6FXLO.js +0 -2
  1050. package/dist/esm/chunk-RON6FXLO.js.map +0 -7
  1051. package/dist/esm/chunk-RWN22S44.js +0 -2
  1052. package/dist/esm/chunk-S3GZZXQ7.js +0 -2
  1053. package/dist/esm/chunk-S3GZZXQ7.js.map +0 -7
  1054. package/dist/esm/chunk-SIBSXKFF.js +0 -2
  1055. package/dist/esm/chunk-SIBSXKFF.js.map +0 -7
  1056. package/dist/esm/chunk-SURYYF7I.js +0 -2
  1057. package/dist/esm/chunk-SURYYF7I.js.map +0 -7
  1058. package/dist/esm/chunk-T7Q6DQRD.js.map +0 -7
  1059. package/dist/esm/chunk-UE2OBZIS.js +0 -2
  1060. package/dist/esm/chunk-UE2OBZIS.js.map +0 -7
  1061. package/dist/esm/chunk-UK3BFTI2.js +0 -2
  1062. package/dist/esm/chunk-UK3BFTI2.js.map +0 -7
  1063. package/dist/esm/chunk-UTHTSYSL.js.map +0 -7
  1064. package/dist/esm/chunk-V3QVAXH3.js +0 -2
  1065. package/dist/esm/chunk-V3QVAXH3.js.map +0 -7
  1066. package/dist/esm/chunk-V5ZSDDVZ.js +0 -2
  1067. package/dist/esm/chunk-V5ZSDDVZ.js.map +0 -7
  1068. package/dist/esm/chunk-VBAXORVV.js +0 -2
  1069. package/dist/esm/chunk-VJUFYYKP.js +0 -2
  1070. package/dist/esm/chunk-VJUFYYKP.js.map +0 -7
  1071. package/dist/esm/chunk-VUKTURU4.js +0 -2
  1072. package/dist/esm/chunk-VUKTURU4.js.map +0 -7
  1073. package/dist/esm/chunk-WDNTAQ6G.js +0 -2
  1074. package/dist/esm/chunk-WDNTAQ6G.js.map +0 -7
  1075. package/dist/esm/chunk-WHAKQCNV.js +0 -2
  1076. package/dist/esm/chunk-WHAKQCNV.js.map +0 -7
  1077. package/dist/esm/chunk-WTXQB2EV.js +0 -2
  1078. package/dist/esm/chunk-WTXQB2EV.js.map +0 -7
  1079. package/dist/esm/chunk-XILM2OMC.js +0 -2
  1080. package/dist/esm/chunk-XILM2OMC.js.map +0 -7
  1081. package/dist/esm/chunk-XKBLNVOD.js +0 -2
  1082. package/dist/esm/chunk-YA5DF67M.js.map +0 -7
  1083. package/dist/esm/chunk-YBS2IB7Z.js +0 -2
  1084. package/dist/esm/chunk-YBS2IB7Z.js.map +0 -7
  1085. package/dist/esm/chunk-YL62I5SI.js +0 -2
  1086. package/dist/esm/chunk-ZK55O7TN.js +0 -2
  1087. package/dist/esm/chunk-ZK55O7TN.js.map +0 -7
  1088. package/dist/esm/chunk-ZVIWTYHE.js +0 -2
  1089. package/dist/esm/chunk-ZVIWTYHE.js.map +0 -7
  1090. package/dist/esm/components/app-bar.d.ts +0 -50
  1091. package/dist/esm/components/app-bar.d.ts.map +0 -1
  1092. package/dist/esm/components/app-bar.js +0 -2
  1093. package/dist/esm/components/app-bar.js.map +0 -7
  1094. package/dist/esm/components/callout.d.ts +0 -23
  1095. package/dist/esm/components/callout.d.ts.map +0 -1
  1096. package/dist/esm/components/callout.js +0 -2
  1097. package/dist/esm/components/callout.js.map +0 -7
  1098. package/dist/esm/components/callout.props.d.ts +0 -40
  1099. package/dist/esm/components/callout.props.d.ts.map +0 -1
  1100. package/dist/esm/components/callout.props.js +0 -2
  1101. package/dist/esm/components/callout.props.js.map +0 -7
  1102. package/dist/esm/components/sidebar.props.d.ts +0 -62
  1103. package/dist/esm/components/sidebar.props.d.ts.map +0 -1
  1104. package/dist/esm/components/sidebar.props.js +0 -2
  1105. package/dist/esm/components/sidebar.props.js.map +0 -7
  1106. package/dist/esm/components/user-card.d.ts +0 -13
  1107. package/dist/esm/components/user-card.d.ts.map +0 -1
  1108. package/dist/esm/components/user-card.js +0 -2
  1109. package/dist/esm/components/user-card.js.map +0 -7
  1110. package/dist/esm/components/user-card.props.d.ts +0 -60
  1111. package/dist/esm/components/user-card.props.d.ts.map +0 -1
  1112. package/dist/esm/components/user-card.props.js +0 -2
  1113. package/dist/esm/components/user-card.props.js.map +0 -7
  1114. package/dist/esm/helpers/parse-variant.d.ts +0 -8
  1115. package/dist/esm/helpers/parse-variant.d.ts.map +0 -1
  1116. package/dist/esm/helpers/parse-variant.js +0 -2
  1117. package/dist/esm/helpers/parse-variant.js.map +0 -7
  1118. package/dist/esm/helpers/use-deprecation-warning.d.ts +0 -10
  1119. package/dist/esm/helpers/use-deprecation-warning.d.ts.map +0 -1
  1120. package/dist/esm/helpers/use-deprecation-warning.js +0 -2
  1121. package/dist/esm/helpers/use-deprecation-warning.js.map +0 -7
  1122. package/src/components/animations.css +0 -155
  1123. package/src/components/app-bar.css +0 -204
  1124. package/src/components/app-bar.tsx +0 -261
  1125. package/src/components/callout.css +0 -160
  1126. package/src/components/callout.props.tsx +0 -29
  1127. package/src/components/callout.tsx +0 -120
  1128. package/src/components/sidebar.props.tsx +0 -56
  1129. package/src/components/user-card.css +0 -29
  1130. package/src/components/user-card.props.tsx +0 -46
  1131. package/src/components/user-card.tsx +0 -106
  1132. package/src/helpers/parse-variant.ts +0 -21
  1133. package/src/helpers/use-deprecation-warning.ts +0 -26
  1134. package/src/styles/tokens/transition.css +0 -189
  1135. /package/dist/esm/{chunk-K7BWSYVP.js.map → chunk-2IPVLV6B.js.map} +0 -0
  1136. /package/dist/esm/{chunk-SQ4BU4GH.js.map → chunk-2NNB4ZZ5.js.map} +0 -0
  1137. /package/dist/esm/{chunk-JXVUTFQN.js.map → chunk-2XSRO44Q.js.map} +0 -0
  1138. /package/dist/esm/{chunk-KXSMY4ZF.js.map → chunk-35KS5AQE.js.map} +0 -0
  1139. /package/dist/esm/{chunk-34UMKY2L.js.map → chunk-5RHODJDJ.js.map} +0 -0
  1140. /package/dist/esm/{chunk-ZQVYY7UT.js.map → chunk-672FI4OH.js.map} +0 -0
  1141. /package/dist/esm/{chunk-T6Z4JUH6.js.map → chunk-6ERCPRXX.js.map} +0 -0
  1142. /package/dist/esm/{chunk-PXUQEA77.js.map → chunk-7CBZFHSQ.js.map} +0 -0
  1143. /package/dist/esm/{chunk-VJXHEDCE.js.map → chunk-7UW7D77E.js.map} +0 -0
  1144. /package/dist/esm/{chunk-62CJL5G7.js.map → chunk-A2NG5NRN.js.map} +0 -0
  1145. /package/dist/esm/{chunk-RUPET4E7.js.map → chunk-A6CDNZMT.js.map} +0 -0
  1146. /package/dist/esm/{chunk-43A5GUSI.js.map → chunk-AMP7O3DM.js.map} +0 -0
  1147. /package/dist/esm/{chunk-UBOOUDS4.js.map → chunk-AO32NT75.js.map} +0 -0
  1148. /package/dist/esm/{chunk-HFVD7W6R.js.map → chunk-BFLO4IVZ.js.map} +0 -0
  1149. /package/dist/esm/{chunk-SQZ5O7QS.js.map → chunk-BQE543O5.js.map} +0 -0
  1150. /package/dist/esm/{chunk-O2WPAUQN.js.map → chunk-CL6LRPCS.js.map} +0 -0
  1151. /package/dist/esm/{chunk-3OQM7SLQ.js.map → chunk-DQTJMIRO.js.map} +0 -0
  1152. /package/dist/esm/{chunk-GLERJXVS.js.map → chunk-DSB3TEAQ.js.map} +0 -0
  1153. /package/dist/esm/{chunk-HIBX2EXV.js.map → chunk-ELZEAEN2.js.map} +0 -0
  1154. /package/dist/esm/{chunk-IV4YJRVR.js.map → chunk-EVTNB4TB.js.map} +0 -0
  1155. /package/dist/esm/{chunk-SGUTNJUO.js.map → chunk-GVLTTTFL.js.map} +0 -0
  1156. /package/dist/esm/{chunk-CIKDGYX3.js.map → chunk-HVQ3SLQC.js.map} +0 -0
  1157. /package/dist/esm/{chunk-N6Q3L64W.js.map → chunk-IYFDCW7Y.js.map} +0 -0
  1158. /package/dist/esm/{chunk-7FC7HF76.js.map → chunk-JLI7WHV6.js.map} +0 -0
  1159. /package/dist/esm/{chunk-OW4KAIWF.js.map → chunk-JQURG6CB.js.map} +0 -0
  1160. /package/dist/esm/{chunk-GONBMSRL.js.map → chunk-JZD5FHSU.js.map} +0 -0
  1161. /package/dist/esm/{chunk-EUSMN3K7.js.map → chunk-K5SC3CZZ.js.map} +0 -0
  1162. /package/dist/esm/{chunk-UBWRIE4C.js.map → chunk-K7J23OPW.js.map} +0 -0
  1163. /package/dist/esm/{chunk-7ZCQAMHZ.js.map → chunk-MD3QCXRD.js.map} +0 -0
  1164. /package/dist/esm/{chunk-2EQWBT2S.js.map → chunk-MGQ4A2FI.js.map} +0 -0
  1165. /package/dist/esm/{chunk-CMEKH4I5.js.map → chunk-MGSHX5N5.js.map} +0 -0
  1166. /package/dist/esm/{chunk-ZE2GWHPY.js.map → chunk-MVW2SY4F.js.map} +0 -0
  1167. /package/dist/esm/{chunk-KJTEZVOF.js.map → chunk-O6K6RZXY.js.map} +0 -0
  1168. /package/dist/esm/{chunk-JUY7CBSL.js.map → chunk-PBFSBHBS.js.map} +0 -0
  1169. /package/dist/esm/{chunk-3HGHPAH4.js.map → chunk-PDBVZAUJ.js.map} +0 -0
  1170. /package/dist/esm/{chunk-C7EVYSWK.js.map → chunk-QDW5ZG5E.js.map} +0 -0
  1171. /package/dist/esm/{chunk-R2MQMCND.js.map → chunk-QJFAGWBO.js.map} +0 -0
  1172. /package/dist/esm/{chunk-TCEQ5VVE.js.map → chunk-R4CN4Q3G.js.map} +0 -0
  1173. /package/dist/esm/{chunk-HJLBVNQE.js.map → chunk-RYURXQLJ.js.map} +0 -0
  1174. /package/dist/esm/{chunk-RUOOCYK4.js.map → chunk-S53ZQNHK.js.map} +0 -0
  1175. /package/dist/esm/{chunk-5G4WWJ4Z.js.map → chunk-T5DSQKKF.js.map} +0 -0
  1176. /package/dist/esm/{chunk-3XSB7YIM.js.map → chunk-TBZO22XK.js.map} +0 -0
  1177. /package/dist/esm/{chunk-C7UXUTUF.js.map → chunk-TGRRQHLQ.js.map} +0 -0
  1178. /package/dist/esm/{chunk-IVBKTHDM.js.map → chunk-TPHNDGSV.js.map} +0 -0
  1179. /package/dist/esm/{chunk-YL62I5SI.js.map → chunk-UA6FP7HS.js.map} +0 -0
  1180. /package/dist/esm/{chunk-6FLLFCBU.js.map → chunk-UBSLEGQZ.js.map} +0 -0
  1181. /package/dist/esm/{chunk-LJXP6K5Y.js.map → chunk-V2TPYSZ2.js.map} +0 -0
  1182. /package/dist/esm/{chunk-YLLCCUC7.js.map → chunk-X3UTLDGG.js.map} +0 -0
  1183. /package/dist/esm/{chunk-3UZHKW6I.js.map → chunk-XHF6RBOE.js.map} +0 -0
  1184. /package/dist/esm/{chunk-IPHKKZYE.js.map → chunk-XHKL4PG7.js.map} +0 -0
  1185. /package/dist/esm/{chunk-PAEHH3WS.js.map → chunk-XZ5XZS5O.js.map} +0 -0
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/shell.tsx"],
4
- "sourcesContent": ["/**\n * Shell: the app frame.\n *\n * Since 0.8.0 the Shell is built on kookie-ui-v2's model, behind v1's API:\n *\n * - The Root is a CSS grid and renders its children as given, in JSX order.\n * Each pane claims its own grid area, so the Root never scans or reorders\n * children, any child renders, and a pane mounted after the Root works.\n * - State lives on each pane: `auto` (untouched), `open` or `closed`, and the\n * Sidebar's `thin`. An untouched pane follows the window, resolved by the\n * stylesheet, so first paint needs no script and no open-state callback\n * fires on mount or on a resize.\n * - A pane is one element at every width. `overlay` is a posture of that\n * element, not a Sheet swapped in: crossing a breakpoint keeps its scroll\n * position, its focus and its children's state.\n * - The Root owns what an overlay needs: one scrim, `inert` on everything\n * else, focus moved in and returned, Escape, and a scroll lock.\n * - Nothing links panes to each other. A Rail closing no longer closes the\n * Panel; an app that wants that writes it in `onOpenChange`.\n */\n'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useComposedRefs } from 'radix-ui/internal';\nimport { PaneResizeContext } from './_internal/shell-resize.js';\nimport { PaneHandle, PanelHandle } from './_internal/shell-handles.js';\nimport { Sidebar } from './_internal/shell-sidebar.js';\nimport { Bottom } from './_internal/shell-bottom.js';\nimport { Inspector } from './_internal/shell-inspector.js';\nimport { usePane, paneAttributes, usePresentationTable } from './_internal/shell-pane.js';\nimport { splitHandles, useResizablePane } from './_internal/shell-resizable.js';\nimport {\n FIXED_TABLE,\n ShellInsetContext,\n ShellStoreContext,\n createShellStore,\n setShellPeek,\n subscribeShellStore,\n useInsetRegistration,\n usePaneEntry,\n useShellStore,\n warnOnce,\n type InsetPaneId,\n} from './_internal/shell-store.js';\nimport { navigationRest, detailRest, toPaneValue, startAnchoredGrowth, withoutRemovedPaneProps } from './_internal/shell-rest.js';\nimport { useShell, useSidebarMode } from './shell.context.js';\nimport { useResponsivePresentation } from './shell.hooks.js';\nimport { readBreakpoint } from '../hooks/use-breakpoint.js';\nimport { PaneChromeScope, PaneFooter, PaneHeader, Scroll, ShellSizeContext } from './_internal/pane-chrome.js';\nimport type { PaneSize } from './_internal/pane-chrome.js';\nimport type { Breakpoint, CSSPropertiesWithVars, PaneBaseProps, PaneMode, PaneName, PaneTarget, ResponsivePresentation, SidebarMode } from './shell.types.js';\n\n/* \u2500\u2500 Root \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n\nexport interface ShellRootProps extends React.ComponentPropsWithoutRef<'div'> {\n children: React.ReactNode;\n height?: 'full' | 'auto' | string | number;\n /** The index the panes' chrome takes: `Shell.PaneHeader`, `Shell.Scroll`, `Shell.PaneFooter` and the Sidebar rows in them. Default `2`. */\n size?: PaneSize;\n}\n\n/**\n * Every Shell with a live overlay holds the page still, counted across Shells,\n * through an attribute the stylesheet reads. Saving and restoring the\n * document's inline `overflow` would fight any other scroll lock on the page.\n */\nlet pageLockHolders = 0;\nfunction updatePageLock(delta: 1 | -1) {\n pageLockHolders = Math.max(0, pageLockHolders + delta);\n const doc = document.documentElement;\n if (pageLockHolders > 0) doc.setAttribute('data-rt-shell-lock', '');\n else doc.removeAttribute('data-rt-shell-lock');\n}\n\n/** Marks a child the Root made inert, so closing removes only what the Root added. */\nconst INERT_MARK = 'data-rt-shell-inert';\n\n/** How many frames a focus rescue watches after an overlay opens or closes. */\nconst RESCUE_FRAMES = 30;\n\n/** Focus that is nowhere useful: the document, or nothing at all. */\nfunction isNowhere(doc: Document, el: Element | EventTarget | null): boolean {\n return el === null || el === doc || el === doc.body || el === doc.documentElement;\n}\n\n/** A Trigger that drives the pane with this id and can take focus, optionally only inside `within`. */\nfunction triggerFor(doc: Document, id: string, within?: HTMLElement[]): HTMLElement | null {\n for (const el of doc.querySelectorAll<HTMLElement>('[data-shell-trigger][aria-controls]')) {\n if (el.getAttribute('aria-controls') !== id || el.closest('[inert]')) continue;\n if (within && !within.some((pane) => pane.contains(el))) continue;\n return el;\n }\n return null;\n}\n\ntype LivePane = { name: PaneName; id: string; el: HTMLElement };\n\nconst Root = React.forwardRef<HTMLDivElement, ShellRootProps>(({ className, children, height = 'full', size = '2', style, onKeyDown, onFocus, ...props }, ref) => {\n const [store] = React.useState(createShellStore);\n const subscribe = React.useCallback((listener: () => void) => subscribeShellStore(store, listener), [store]);\n // Subscribed for the re-render, not for a value: a pane opening or closing\n // must bring the Root back so containment and the scrim follow it.\n React.useSyncExternalStore(\n subscribe,\n () => store.version,\n () => 0,\n );\n\n const rootRef = React.useRef<HTMLDivElement | null>(null);\n const composedRef = useComposedRefs(ref, rootRef);\n\n // Inset: the Root paints the backdrop while any pane is inset.\n const [insetPanes, setInsetPanes] = React.useState<ReadonlySet<InsetPaneId>>(() => new Set());\n const registerInset = React.useCallback((id: InsetPaneId) => {\n setInsetPanes((prev) => (prev.has(id) ? prev : new Set(prev).add(id)));\n }, []);\n const unregisterInset = React.useCallback((id: InsetPaneId) => {\n setInsetPanes((prev) => {\n if (!prev.has(id)) return prev;\n const next = new Set(prev);\n next.delete(id);\n return next;\n });\n }, []);\n const insetContext = React.useMemo(() => ({ registerInset, unregisterInset }), [registerInset, unregisterInset]);\n\n const closeOverlays = React.useCallback(() => {\n for (const entry of store.entries.values()) {\n if (entry.overlayLive) entry.setValue('closed', 'dismiss');\n }\n }, [store]);\n\n const livePanes = React.useCallback(\n (): LivePane[] => [...store.entries.values()].filter((entry) => entry.overlayLive && entry.el).map((entry) => ({ name: entry.name, id: entry.id, el: entry.el as HTMLElement })),\n [store],\n );\n const liveCount = [...store.entries.values()].filter((entry) => entry.overlayLive && entry.el).length;\n\n // A Shell given a height of its own sits inside a page, and its overlays\n // cover only its box: it holds no page lock. `full` is the page, and\n // `auto` grows with its content, so its overlays are placed on the window.\n const contained = height !== 'full' && height !== 'auto';\n\n /*\n * Containment is the Root's, not the pane's. Only the Root can see every live\n * overlay and every child at once. A per-pane effect, given two overlays,\n * inerts the other live overlay and restores values the other effect wrote,\n * which can leave the whole frame inert for good.\n *\n * Exempt are the scrim and each root child that CONTAINS a live overlay, so\n * a pane wrapped in a plain element is not inerted with its wrapper. A child\n * the Root inerts is marked, and closing clears only marked children, so\n * `inert` the app sets on a child is the app's before, during and after.\n */\n const contain = React.useCallback(() => {\n const rootEl = rootRef.current;\n if (!rootEl) return;\n const liveEls = livePanes().map((pane) => pane.el);\n for (const child of rootEl.children) {\n if (!(child instanceof HTMLElement) || child.classList.contains('rt-ShellScrim')) continue;\n const holdsLive = liveEls.some((el) => child === el || child.contains(el));\n if (liveEls.length === 0 || holdsLive) {\n if (child.hasAttribute(INERT_MARK)) {\n child.removeAttribute(INERT_MARK);\n child.inert = false;\n }\n } else if (!child.inert) {\n child.setAttribute(INERT_MARK, '');\n child.inert = true;\n }\n }\n }, [livePanes]);\n\n const returnFocusTo = React.useRef<HTMLElement | null>(null);\n const lastLive = React.useRef<LivePane[]>([]);\n const lastFocusInRoot = React.useRef<HTMLElement | null>(null);\n const holdsLock = React.useRef(false);\n\n /*\n * Focus can be taken away after the commit that moved it: a menu that\n * opened or closed a pane restores focus to its own trigger when it\n * finishes closing, which may be inert or hidden by then. For a few frames\n * after an overlay opens or closes, focus that ends up nowhere useful is\n * put back where it belongs.\n */\n const rescueFrame = React.useRef(0);\n const cancelRescue = React.useCallback(() => {\n if (rescueFrame.current) cancelAnimationFrame(rescueFrame.current);\n rescueFrame.current = 0;\n }, []);\n const rescueFocus = React.useCallback(\n (target: HTMLElement, lost: (active: Element | null) => boolean) => {\n cancelRescue();\n let frames = 0;\n const tick = () => {\n rescueFrame.current = 0;\n if (!target.isConnected) return;\n if (lost(target.ownerDocument.activeElement)) {\n target.focus({ preventScroll: true });\n return;\n }\n frames += 1;\n if (frames < RESCUE_FRAMES) rescueFrame.current = requestAnimationFrame(tick);\n };\n rescueFrame.current = requestAnimationFrame(tick);\n },\n [cancelRescue],\n );\n\n React.useEffect(\n () => () => {\n cancelRescue();\n if (holdsLock.current) {\n holdsLock.current = false;\n updatePageLock(-1);\n }\n },\n [cancelRescue],\n );\n\n // No dependency array, on purpose: a pane opening or closing is a render\n // of this component, and so is a child appearing through the Root.\n React.useEffect(() => {\n const rootEl = rootRef.current;\n if (!rootEl) return;\n const doc = rootEl.ownerDocument;\n const live = livePanes();\n const liveEls = live.map((pane) => pane.el);\n\n const wantsLock = !contained && live.length > 0;\n if (wantsLock !== holdsLock.current) {\n holdsLock.current = wantsLock;\n updatePageLock(wantsLock ? 1 : -1);\n }\n\n const previous = lastLive.current;\n lastLive.current = live;\n // A pane that left the live set because it closed, as opposed to one\n // that is still open but stopped being an overlay at a breakpoint.\n const closed = previous.filter((pane) => {\n if (liveEls.includes(pane.el)) return false;\n const entry = store.entries.get(pane.name);\n return !pane.el.isConnected || !entry || entry.el !== pane.el || entry.value === 'closed';\n });\n const inClosed = (active: Element | null) => active !== null && closed.some((pane) => pane.el.contains(active));\n\n // The return target is taken on the opening edge, before inerting: inerting\n // the subtree that holds the trigger blurs it. Focus already inside the\n // overlay (a pane that became one at a breakpoint) is no place to return\n // to, and an opener in a portal (a menu item) goes away with its menu, so\n // the last place focus held inside the frame stands in for it.\n if (previous.length === 0 && live.length > 0) {\n const active = doc.activeElement;\n let target = active instanceof HTMLElement && !isNowhere(doc, active) && !liveEls.some((el) => el.contains(active)) ? active : null;\n if (target && !rootEl.contains(target)) {\n const inRoot = lastFocusInRoot.current;\n if (inRoot && inRoot.isConnected && !liveEls.some((el) => el.contains(inRoot))) target = inRoot;\n }\n returnFocusTo.current = target;\n }\n\n contain();\n\n if (live.length === 0) {\n const before = returnFocusTo.current;\n returnFocusTo.current = null;\n // Every overlay that left only stopped being one: focus stays where it is.\n if (closed.length === 0) return;\n const usable = (el: HTMLElement | null) => el !== null && el.isConnected && !el.closest('[inert]') && !inClosed(el);\n let target = usable(before) ? before : null;\n for (const pane of closed) target ??= triggerFor(doc, pane.id);\n if (!target) return;\n const lost = (active: Element | null) => isNowhere(doc, active) || inClosed(active);\n if (lost(doc.activeElement)) target.focus({ preventScroll: true });\n else rescueFocus(target, lost);\n return;\n }\n\n // Some overlays closed while others stay: focus left in a closed one goes\n // to the Trigger that opened it, if a live pane holds it, or to the pane\n // on top.\n if (closed.length > 0) {\n const active = doc.activeElement;\n if (isNowhere(doc, active) || inClosed(active)) {\n let target: HTMLElement | null = null;\n for (const pane of closed) target ??= triggerFor(doc, pane.id, liveEls);\n (target ?? liveEls[liveEls.length - 1]).focus({ preventScroll: true });\n }\n }\n\n // Focus moves in on the opening edge and nowhere else, and only when it\n // is not already somewhere the user put it inside the live set.\n const opened = liveEls.filter((el) => !previous.some((pane) => pane.el === el));\n const active = doc.activeElement;\n if (opened.length > 0 && !liveEls.some((el) => el.contains(active))) {\n opened[0].focus({ preventScroll: true });\n rescueFocus(opened[0], (now) => isNowhere(doc, now) || (now instanceof Element && now.closest('[inert]') !== null));\n }\n });\n\n // A child that appears through its own state while an overlay is live does\n // not render the Root, so the Root watches its children while one is.\n React.useEffect(() => {\n const rootEl = rootRef.current;\n if (!rootEl || liveCount === 0 || typeof MutationObserver === 'undefined') return;\n const observer = new MutationObserver(contain);\n observer.observe(rootEl, { childList: true, subtree: true, attributes: true, attributeFilter: ['inert'] });\n return () => observer.disconnect();\n }, [liveCount, contain]);\n\n /*\n * Escape closes the overlays. It is handled as a React event on the Root, so\n * a component inside a pane that answers Escape in its own onKeyDown runs\n * first, and its preventDefault() or stopPropagation() keeps the pane open.\n * When the Root closes something it stops the event there, so a React\n * Escape handler above the Shell does not act on it too. A layer that\n * listens on the document in the capture phase (Radix dialogs, menus and\n * popovers) answers first and calls preventDefault() when it closes, so an\n * enclosing Kookie Dialog closes before a Shell inside it is asked.\n */\n const handleKeyDown = (event: React.KeyboardEvent<HTMLDivElement>) => {\n onKeyDown?.(event);\n if (event.key !== 'Escape' || event.defaultPrevented || liveCount === 0) return;\n closeOverlays();\n event.stopPropagation();\n };\n\n // With focus on the document itself (a pane closed under it, or a menu that\n // closed and took focus with it), the Root never sees the key. While an\n // overlay is live the document answers that one case.\n React.useEffect(() => {\n const rootEl = rootRef.current;\n if (!rootEl || liveCount === 0) return;\n const doc = rootEl.ownerDocument;\n const onDocumentKeyDown = (event: KeyboardEvent) => {\n if (event.key !== 'Escape' || event.defaultPrevented || !isNowhere(doc, event.target)) return;\n closeOverlays();\n };\n doc.addEventListener('keydown', onDocumentKeyDown);\n return () => doc.removeEventListener('keydown', onDocumentKeyDown);\n }, [liveCount, closeOverlays]);\n\n const handleFocus = (event: React.FocusEvent<HTMLDivElement>) => {\n onFocus?.(event);\n if (event.target instanceof HTMLElement && rootRef.current?.contains(event.target)) lastFocusInRoot.current = event.target;\n };\n\n // A floating Panel sits beside the Rail when the Rail is showing, and\n // beside its card when the Rail is inset.\n const rail = store.entries.get('rail');\n const railShown = rail !== undefined && rail.value !== undefined && rail.value !== 'closed';\n const railOffset = railShown ? (insetPanes.has('rail') ? `calc(${rail.size}px + 2 * var(--shell-inset-gap))` : `${rail.size}px`) : undefined;\n\n // `full` writes no inline height: the stylesheet states it as 100vh with a\n // 100dvh override where supported, and an inline value would beat both.\n const heightStyle: React.CSSProperties = height === 'full' ? {} : height === 'auto' ? { height: 'auto' } : typeof height === 'number' ? { height: `${height}px` } : { height };\n\n return (\n <ShellStoreContext.Provider value={store}>\n <ShellSizeContext.Provider value={size}>\n <ShellInsetContext.Provider value={insetContext}>\n {/* The Root is not a widget: it hears Escape bubbling up from the panes,\n after their own handlers, to close the overlays. */}\n {/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}\n <div\n {...props}\n ref={composedRef}\n className={classNames('rt-ShellRoot', className)}\n data-height={height === 'auto' ? 'auto' : undefined}\n data-has-inset={insetPanes.size > 0 || undefined}\n data-overlay-live={liveCount > 0 || undefined}\n onKeyDown={handleKeyDown}\n onFocus={handleFocus}\n style={{ ...heightStyle, ...(railOffset ? ({ '--shell-rail-offset': railOffset } as CSSPropertiesWithVars) : {}), ...style }}\n >\n {children}\n {/* Root-owned and always mounted. The stylesheet shows it while an\n overlay is live; containment takes the rest of the frame out of\n the accessibility tree, so the scrim itself is hidden from it. */}\n <div className=\"rt-ShellScrim\" aria-hidden onClick={closeOverlays} />\n </div>\n </ShellInsetContext.Provider>\n </ShellSizeContext.Provider>\n </ShellStoreContext.Provider>\n );\n});\nRoot.displayName = 'Shell.Root';\n\n/* \u2500\u2500 Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n\ninterface ShellHeaderProps extends React.ComponentPropsWithoutRef<'header'> {\n height?: number;\n}\n\nconst Header = React.forwardRef<HTMLElement, ShellHeaderProps>(({ className, height = 64, style, ...props }, ref) => (\n <header\n {...props}\n ref={ref}\n className={classNames('rt-ShellHeader', className)}\n style={\n {\n ...style,\n '--shell-header-height': `${height}px`,\n } as CSSPropertiesWithVars\n }\n />\n));\nHeader.displayName = 'Shell.Header';\n\n/* \u2500\u2500 Left (deprecated) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n\ninterface LeftProps extends React.ComponentPropsWithoutRef<'div'> {\n presentation?: ResponsivePresentation;\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean, meta: { reason: 'init' | 'toggle' | 'panel' | 'responsive' | 'dismiss' }) => void;\n collapsible?: boolean;\n onExpand?: () => void;\n onCollapse?: () => void;\n inset?: boolean;\n}\n\n/**\n * @deprecated The Root no longer wraps the Rail and Panel in a Left\n * container: each is its own pane. `Shell.Left` renders its children and\n * ignores its own props. Removed in 1.0.\n */\nconst Left = React.forwardRef<HTMLDivElement, LeftProps>(({ children }, _ref) => {\n React.useEffect(() => {\n warnOnce('Shell.Left is deprecated and is removed in 1.0. Render Shell.Rail and Shell.Panel directly in Shell.Root.');\n }, []);\n return <>{children}</>;\n});\nLeft.displayName = 'Shell.Left';\n\n/* \u2500\u2500 Rail \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n\ntype RailOpenChangeMeta = { reason: 'init' | 'toggle' | 'responsive' | 'panel' | 'dismiss' };\n\ntype RailControlledProps = { open: boolean | Partial<Record<Breakpoint, boolean>>; onOpenChange?: (open: boolean, meta: RailOpenChangeMeta) => void; defaultOpen?: never };\ntype RailUncontrolledProps = { defaultOpen?: boolean | Partial<Record<Breakpoint, boolean>>; onOpenChange?: (open: boolean, meta: RailOpenChangeMeta) => void; open?: never };\n\ntype RailProps = React.ComponentPropsWithoutRef<'div'> & {\n presentation?: ResponsivePresentation;\n expandedSize?: number;\n collapsible?: boolean;\n /** @deprecated Use `onOpenChange`. */\n onExpand?: () => void;\n /** @deprecated Use `onOpenChange`. */\n onCollapse?: () => void;\n /** When true, adds margin and triggers the gray backdrop on the Shell. */\n inset?: boolean;\n} & (RailControlledProps | RailUncontrolledProps);\n\nconst RAIL_PROP_NAMES = { controlled: 'open', default: 'defaultOpen' };\n\nconst Rail = React.forwardRef<HTMLDivElement, RailProps>((props, ref) => {\n const { className, presentation, expandedSize = 64, collapsible: _collapsible, onExpand, onCollapse, children, style, open, defaultOpen, onOpenChange, inset, id, ...domProps } = props;\n const { table, attributes } = usePresentationTable(presentation, 'fixed');\n const pane = usePane({\n name: 'rail',\n label: 'Rail',\n propNames: RAIL_PROP_NAMES,\n id,\n controlled: toPaneValue(open),\n defaultValue: toPaneValue(defaultOpen),\n presentationTable: table,\n builtIn: navigationRest,\n onChange: (value, reason) => onOpenChange?.(value !== 'closed', { reason }),\n onExpand,\n onCollapse,\n size: expandedSize,\n });\n useInsetRegistration('rail', inset);\n const composedRef = useComposedRefs(ref, pane.setElement);\n\n return (\n <div\n {...domProps}\n id={pane.id}\n ref={composedRef}\n className={classNames('rt-ShellPane', 'rt-ShellRail', className)}\n {...paneAttributes(pane, attributes)}\n data-inset={inset || undefined}\n tabIndex={pane.overlaying ? -1 : domProps.tabIndex}\n style={{ ...style, '--rail-size': `${expandedSize}px` } as CSSPropertiesWithVars}\n >\n <RailContent>{children}</RailContent>\n </div>\n );\n});\nRail.displayName = 'Shell.Rail';\n\n/** The Rail's content carries the index, so the thin row styles can size themselves by it. */\nfunction RailContent({ children }: { children: React.ReactNode }) {\n const size = React.useContext(ShellSizeContext);\n return (\n <div className={classNames('rt-ShellRailContent', `rt-r-size-${size}`)}>\n <PaneChromeScope presentation=\"thin\">{children}</PaneChromeScope>\n </div>\n );\n}\n\n/* \u2500\u2500 Panel \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n\ntype HandleComponent = React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<'div'> & React.RefAttributes<HTMLDivElement>>;\n\ntype PanelOpenChangeMeta = { reason: 'toggle' | 'left' | 'init' | 'responsive' | 'dismiss' };\ntype PanelControlledProps = { open: boolean | Partial<Record<Breakpoint, boolean>>; onOpenChange?: (open: boolean, meta: PanelOpenChangeMeta) => void; defaultOpen?: never };\ntype PanelUncontrolledProps = { defaultOpen?: boolean | Partial<Record<Breakpoint, boolean>>; onOpenChange?: (open: boolean, meta: PanelOpenChangeMeta) => void; open?: never };\n\ntype PanelSizeControlledProps = { size: number | string; defaultSize?: never };\ntype PanelSizeUncontrolledProps = { defaultSize?: number | string; size?: never };\n\ntype PanelSizeChangeMeta = { reason: 'init' | 'resize' | 'controlled' };\ntype PanelPublicProps = PaneBaseProps &\n (PanelControlledProps | PanelUncontrolledProps) &\n (PanelSizeControlledProps | PanelSizeUncontrolledProps) & {\n onSizeChange?: (size: number, meta: PanelSizeChangeMeta) => void;\n sizeUpdate?: 'throttle' | 'debounce';\n sizeUpdateMs?: number;\n /** When true, adds margin and triggers the gray backdrop on the Shell. */\n inset?: boolean;\n };\ntype PanelComponent = React.ForwardRefExoticComponent<PanelPublicProps & React.RefAttributes<HTMLDivElement>> & {\n Handle: HandleComponent;\n};\n\nconst PANEL_PROP_NAMES = { controlled: 'open', default: 'defaultOpen' };\n\n/**\n * A Panel with a `presentation` of its own uses it. One without follows the\n * Rail rendered before it, which is how 0.7 placed a Panel; the stylesheet\n * reads the Rail's attributes for the first paint and the registry carries\n * the Rail's table for the JS mirror.\n */\nconst Panel = React.forwardRef<HTMLDivElement, PanelPublicProps>((props, ref) => {\n const {\n className,\n presentation,\n defaultOpen,\n open,\n onOpenChange,\n size,\n defaultSize,\n expandedSize = 288,\n minSize = 100,\n maxSize = 800,\n resizable = false,\n collapsible = true,\n onExpand,\n onCollapse,\n onResize,\n onResizeStart,\n onResizeEnd,\n snapPoints,\n snapTolerance,\n collapseThreshold,\n paneId,\n persistence,\n children,\n style,\n onSizeChange,\n sizeUpdate,\n sizeUpdateMs = 50,\n inset,\n id,\n ...domProps\n } = props;\n const store = useShellStore('Shell.Panel');\n const rail = usePaneEntry(store, 'rail');\n const own = usePresentationTable(presentation, 'fixed');\n const followsRail = presentation === undefined;\n const presentationTable = followsRail ? (rail?.presentationTable ?? FIXED_TABLE) : own.table;\n const presentationAttributes = followsRail ? { 'data-presentation-follows': '' } : own.attributes;\n\n const pane = usePane({\n name: 'panel',\n label: 'Panel',\n propNames: PANEL_PROP_NAMES,\n id,\n controlled: toPaneValue(open),\n defaultValue: toPaneValue(defaultOpen),\n presentationTable,\n builtIn: detailRest,\n onChange: (value, reason) => onOpenChange?.(value !== 'closed', { reason }),\n onExpand,\n onCollapse,\n size: expandedSize,\n });\n useInsetRegistration('panel', inset);\n\n React.useEffect(() => {\n if (snapPoints !== undefined || collapseThreshold !== undefined || paneId !== undefined || persistence !== undefined) {\n warnOnce('Shell.Panel: `snapPoints`, `collapseThreshold`, `paneId` and `persistence` are deprecated and are removed in 1.0. Keep the size in your own state with `size`/`onSizeChange`.');\n }\n }, [snapPoints, collapseThreshold, paneId, persistence]);\n\n const elementRef = React.useRef<HTMLElement | null>(null);\n const composedRef = useComposedRefs(ref, pane.setElement, elementRef);\n\n const resize = useResizablePane({\n name: 'panel',\n elementId: pane.id,\n elementRef,\n cssVarName: '--panel-size',\n orientation: 'vertical',\n edge: 'end',\n growth: startAnchoredGrowth,\n expandedSize,\n minSize,\n maxSize,\n resizable,\n collapsible,\n size,\n defaultSize,\n onSizeChange,\n sizeUpdate,\n sizeUpdateMs,\n onResize,\n onResizeStart,\n onResizeEnd,\n snapPoints,\n snapTolerance,\n collapseThreshold,\n paneId,\n persistence,\n overlaying: pane.overlaying,\n // Asked when the effect runs: the Rail registers its table after this\n // Panel first renders, so the render's answer can be out of date.\n overlayingNow: () => {\n const table = followsRail ? (store.entries.get('rail')?.presentationTable ?? FIXED_TABLE) : own.table;\n return table[readBreakpoint()] === 'overlay';\n },\n requestCollapse: () => pane.setValue('closed', 'toggle'),\n requestToggle: () => pane.toggle('toggle'),\n });\n\n const { handles, content } = splitHandles(children, PanelHandle);\n const handle = resizable && pane.shown !== false && !pane.overlaying ? <PaneResizeContext.Provider value={resize}>{handles.length > 0 ? handles : <PaneHandle />}</PaneResizeContext.Provider> : null;\n\n return (\n <div\n {...withoutRemovedPaneProps(domProps)}\n id={pane.id}\n ref={composedRef}\n className={classNames('rt-ShellPane', 'rt-ShellPanel', className)}\n {...paneAttributes(pane, presentationAttributes)}\n data-inset={inset || undefined}\n tabIndex={pane.overlaying ? -1 : domProps.tabIndex}\n style={\n {\n ...style,\n '--panel-expanded-size': `${expandedSize}px`,\n } as CSSPropertiesWithVars\n }\n >\n <div className=\"rt-ShellPanelContent\">\n <PaneChromeScope>{content}</PaneChromeScope>\n </div>\n {handle}\n </div>\n );\n}) as PanelComponent;\nPanel.displayName = 'Shell.Panel';\nPanel.Handle = PanelHandle;\n\n/* \u2500\u2500 Content \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n\ninterface ShellContentProps extends React.ComponentPropsWithoutRef<'main'> {\n /** When true, adds margin and triggers the gray backdrop on the Shell. */\n inset?: boolean;\n}\n\nconst Content = React.forwardRef<HTMLElement, ShellContentProps>(({ className, inset, ...props }, ref) => {\n useInsetRegistration('content', inset);\n return <main {...props} ref={ref} className={classNames('rt-ShellContent', className)} data-inset={inset || undefined} />;\n});\nContent.displayName = 'Shell.Content';\n\n/* \u2500\u2500 Trigger \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n\ntype TriggerAction = 'toggle' | 'expand' | 'collapse';\n\ninterface TriggerProps extends React.ComponentPropsWithoutRef<'button'> {\n target: PaneTarget;\n action?: TriggerAction;\n /**\n * Whether to show a preview of the target pane on hover while it is closed\n * and not an overlay. Defaults to false.\n *\n * @deprecated Removed in 1.0. A preview reachable only by mouse hover has no\n * keyboard or touch equivalent; open the pane instead.\n */\n peekOnHover?: boolean;\n}\n\n/**\n * A button that drives a pane by name, through the registry. It sets\n * `aria-controls` and `aria-expanded` (left off while an untouched pane\n * cannot know its state yet), renders `type=\"button\"`, and runs the\n * consumer's `onClick` first: calling `preventDefault()` there cancels it.\n */\nconst Trigger = React.forwardRef<HTMLButtonElement, TriggerProps>(({ target, action = 'toggle', peekOnHover, onClick, onMouseEnter, onMouseLeave, children, ...props }, ref) => {\n const store = useShellStore('Shell.Trigger');\n React.useEffect(() => {\n if (target === 'left') warnOnce('Shell.Trigger target=\"left\" is deprecated and is removed in 1.0. Use target=\"rail\".');\n if (peekOnHover) warnOnce('Shell.Trigger: `peekOnHover` is deprecated and is removed in 1.0.');\n }, [target, peekOnHover]);\n const name: PaneName = target === 'left' ? 'rail' : target;\n // Subscribes to its own pane only.\n const entry = usePaneEntry(store, name);\n const shown = entry?.value === undefined ? undefined : entry.value !== 'closed';\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n onClick?.(event);\n if (event.defaultPrevented) return;\n const current = store.entries.get(name);\n if (!current) return;\n if (store.peek === name) setShellPeek(store, null);\n if (action === 'toggle') current.toggle('toggle');\n else if (action === 'expand') current.setValue('open', 'toggle');\n else current.setValue('closed', 'toggle');\n };\n\n const handleMouseEnter = (event: React.MouseEvent<HTMLButtonElement>) => {\n onMouseEnter?.(event);\n if (!peekOnHover) return;\n const current = store.entries.get(name);\n if (current && current.value === 'closed' && current.presentation !== 'overlay') setShellPeek(store, name);\n };\n\n const handleMouseLeave = (event: React.MouseEvent<HTMLButtonElement>) => {\n onMouseLeave?.(event);\n if (peekOnHover && store.peek === name) setShellPeek(store, null);\n };\n\n return (\n <button\n // A button's default type is `submit`. Stated before the spread, so a consumer's own wins.\n type=\"button\"\n aria-controls={entry?.id}\n aria-expanded={shown}\n {...props}\n ref={ref}\n onClick={handleClick}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n data-shell-trigger={target}\n data-shell-action={action}\n >\n {children}\n </button>\n );\n});\nTrigger.displayName = 'Shell.Trigger';\n\n// Exports\nexport {\n Root,\n Header,\n Left,\n Rail,\n Panel,\n Sidebar,\n Content,\n Inspector,\n Bottom,\n Trigger,\n PaneHeader,\n PaneFooter,\n Scroll,\n useShell,\n useSidebarMode,\n useResponsivePresentation,\n type PaneMode,\n type SidebarMode,\n type ResponsivePresentation,\n type PaneTarget,\n type TriggerAction,\n};\n"],
5
- "mappings": "ouBAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,YAAAE,GAAA,YAAAC,GAAA,WAAAC,GAAA,cAAAC,GAAA,SAAAC,GAAA,eAAAC,GAAA,eAAAC,GAAA,UAAAC,GAAA,SAAAC,GAAA,SAAAC,GAAA,WAAAC,GAAA,YAAAC,GAAA,YAAAC,GAAA,8BAAAC,GAAA,aAAAC,GAAA,mBAAAC,KAsBA,UAAYC,MAAW,QACvB,OAAOC,MAAgB,aACvB,OAAS,mBAAAC,OAAuB,oBA2ChC,IAAIC,GAAkB,EACtB,SAASC,GAAeC,EAAe,CACrCF,GAAkB,KAAK,IAAI,EAAGA,GAAkBE,CAAK,EACrD,IAAMC,EAAM,SAAS,gBACjBH,GAAkB,EAAGG,EAAI,aAAa,qBAAsB,EAAE,EAC7DA,EAAI,gBAAgB,oBAAoB,CAC/C,CAGA,IAAMC,GAAa,sBAGbC,GAAgB,GAGtB,SAASC,EAAUH,EAAeI,EAA2C,CAC3E,OAAOA,IAAO,MAAQA,IAAOJ,GAAOI,IAAOJ,EAAI,MAAQI,IAAOJ,EAAI,eACpE,CAGA,SAASK,GAAWL,EAAeM,EAAYC,EAA4C,CACzF,QAAWH,KAAMJ,EAAI,iBAA8B,qCAAqC,EACtF,GAAI,EAAAI,EAAG,aAAa,eAAe,IAAME,GAAMF,EAAG,QAAQ,SAAS,IAC/D,EAAAG,GAAU,CAACA,EAAO,KAAMC,GAASA,EAAK,SAASJ,CAAE,CAAC,GACtD,OAAOA,EAET,OAAO,IACT,CAIA,IAAMK,GAAa,aAA2C,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,OAAAC,EAAS,OAAQ,KAAAC,EAAO,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BzF,GAA+C,CACvEkF,IAAelF,CAAK,EAChB+E,GAAe/H,EAAM,OAASmI,GAAMI,EAAavI,EAAO,IAAI,CAClE,EAEA,OACE,gBAAC,UAEC,KAAK,SACL,gBAAegB,GAAO,GACtB,gBAAeoH,EACd,GAAGtI,EACJ,IAAKC,EACL,QAASsI,EACT,aAAcG,EACd,aAAcC,EACd,qBAAoBzG,EACpB,oBAAmB8F,GAElBtI,CACH,CAEJ,CAAC,EACDqI,GAAQ,YAAc",
6
- "names": ["shell_exports", "__export", "Bottom", "Content", "Header", "Inspector", "Left", "PaneFooter", "PaneHeader", "Panel", "Rail", "Root", "Scroll", "Sidebar", "Trigger", "useResponsivePresentation", "useShell", "useSidebarMode", "React", "classNames", "useComposedRefs", "pageLockHolders", "updatePageLock", "delta", "doc", "INERT_MARK", "RESCUE_FRAMES", "isNowhere", "el", "triggerFor", "id", "within", "pane", "Root", "className", "children", "height", "size", "style", "onKeyDown", "onFocus", "props", "ref", "store", "createShellStore", "subscribe", "listener", "subscribeShellStore", "rootRef", "composedRef", "useComposedRefs", "insetPanes", "setInsetPanes", "registerInset", "prev", "unregisterInset", "next", "insetContext", "closeOverlays", "entry", "livePanes", "liveCount", "contained", "contain", "rootEl", "liveEls", "child", "holdsLive", "returnFocusTo", "lastLive", "lastFocusInRoot", "holdsLock", "rescueFrame", "cancelRescue", "rescueFocus", "target", "lost", "frames", "tick", "live", "wantsLock", "previous", "closed", "inClosed", "active", "inRoot", "before", "opened", "now", "observer", "handleKeyDown", "event", "onDocumentKeyDown", "handleFocus", "rail", "railOffset", "heightStyle", "ShellStoreContext", "ShellSizeContext", "ShellInsetContext", "classNames", "Header", "Left", "_ref", "RAIL_PROP_NAMES", "Rail", "presentation", "expandedSize", "_collapsible", "onExpand", "onCollapse", "open", "defaultOpen", "onOpenChange", "inset", "domProps", "table", "attributes", "usePresentationTable", "usePane", "toPaneValue", "navigationRest", "value", "reason", "useInsetRegistration", "paneAttributes", "RailContent", "PaneChromeScope", "PANEL_PROP_NAMES", "Panel", "defaultSize", "minSize", "maxSize", "resizable", "collapsible", "onResize", "onResizeStart", "onResizeEnd", "snapPoints", "snapTolerance", "collapseThreshold", "paneId", "persistence", "onSizeChange", "sizeUpdate", "sizeUpdateMs", "useShellStore", "usePaneEntry", "own", "followsRail", "presentationTable", "FIXED_TABLE", "presentationAttributes", "detailRest", "elementRef", "resize", "useResizablePane", "startAnchoredGrowth", "readBreakpoint", "handles", "content", "splitHandles", "PanelHandle", "handle", "PaneResizeContext", "PaneHandle", "withoutRemovedPaneProps", "Content", "Trigger", "action", "peekOnHover", "onClick", "onMouseEnter", "onMouseLeave", "name", "shown", "handleClick", "current", "setShellPeek", "handleMouseEnter", "handleMouseLeave"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as re,b as ae}from"./chunk-3TIO3EMN.js";import{a as A,b as te,c as O}from"./chunk-27SCVCQY.js";import{b as ee,c as oe}from"./chunk-IX5HIHVI.js";import{a as Z}from"./chunk-MJJ7XDIP.js";import{b as X,c as Y}from"./chunk-FISGGGPC.js";import{a as Q}from"./chunk-AGAQC4HH.js";import{c as J}from"./chunk-FWB47YCH.js";import{a as U}from"./chunk-5TXQLK4G.js";import{a as B}from"./chunk-6FLLFCBU.js";import{a as $}from"./chunk-GSTOGDAJ.js";import{a as Ie}from"./chunk-OS3FCYZY.js";var Me={};Ie(Me,{Content:()=>xe,Empty:()=>ve,Group:()=>Re,Input:()=>ge,Item:()=>Se,Label:()=>he,List:()=>Pe,Root:()=>de,Separator:()=>ye,Trigger:()=>Ce,Value:()=>fe});import*as e from"react";import d from"classnames";import{Popover as ne}from"radix-ui";import{useCallbackRef as H,useComposedRefs as ie,useControllableState as W,useLayoutEffect as K}from"radix-ui/internal";import{Command as N,useCommandState as se}from"cmdk";var we={size:A.size},Ne={size:O.size},le=new Set;function Le(o){le.has(o)||(le.add(o),console.warn(o))}function ke(o){let r=o,t=new Set;return{get:()=>r,set:a=>{Object.is(a,r)||(r=a,t.forEach(n=>n()))},subscribe:a=>(t.add(a),()=>{t.delete(a)})}}var me=e.createContext(null),F=o=>{let r=e.useContext(me);if(!r)throw new Error(`Combobox.${o} must be used within Combobox.Root`);return r},ce=e.createContext(null),be=e.createContext(null),pe=e.createContext(null),ue=()=>e.useContext(pe);function De(o){let r=o.getAttribute("aria-label")?.trim();if(r)return r;let t=o.getAttribute("aria-labelledby");if(t){let n=t.split(/\s+/).map(s=>o.ownerDocument.getElementById(s)?.textContent?.trim()).filter(Boolean).join(" ");if(n)return n}let a=o.labels;if(a&&a.length>0){let n=Array.from(a).map(s=>s.textContent?.trim()).filter(Boolean).join(" ");if(n)return n}}var de=o=>{let{children:r,size:t=A.size.default,value:a,defaultValue:n=null,onValueChange:s,open:i,defaultOpen:b=!1,onOpenChange:m,placeholder:u="Select an option",searchPlaceholder:C="Search...",searchValue:c,defaultSearchValue:V="",onSearchValueChange:E,filter:h,shouldFilter:x=!0,loop:g=!0,disabled:P,resetSearchOnSelect:y=!0,resetSearchOnClose:p=!0,color:S,displayValue:f,...T}=o,[v,I]=W({prop:i,defaultProp:b,onChange:m}),[R,k]=W({prop:a,defaultProp:n,onChange:s}),[L,l]=W({prop:c,defaultProp:V,onChange:E}),w=typeof f=="function"?f(R):f,[D]=e.useState(()=>ke(R));K(()=>{D.set(R)},[D,R]);let z=H(M=>{I(M),!M&&p&&l("")}),q=H(M=>{k(M),I(!1),y&&l("")}),G=e.useRef(null),_=e.useCallback(()=>G.current?De(G.current):void 0,[]),Ve=e.useMemo(()=>({value:R,displayValue:w,setOpen:z,size:t,placeholder:u,searchPlaceholder:C,disabled:P,color:S,loop:g,shouldFilter:x,filter:h,triggerRef:G,getTriggerLabel:_}),[R,w,z,t,u,C,P,S,g,x,h,_]),Ee=e.useMemo(()=>({value:L,setValue:l}),[L,l]),Te=e.useMemo(()=>({store:D,onSelect:q,disabled:P}),[D,q,P]);return e.createElement(me.Provider,{value:Ve},e.createElement(ce.Provider,{value:Ee},e.createElement(be.Provider,{value:Te},e.createElement(re,{open:v,onOpenChange:z,...T},r))))};de.displayName="Combobox.Root";var Ce=e.forwardRef((o,r)=>{let t=F("Trigger"),{children:a,className:n,placeholder:s,disabled:i,readOnly:b,error:m,loading:u,color:C,radius:c,material:V,onClick:E,onKeyDown:h,type:x,...g}=B({size:t.size,...o},we,te,$),{panelBackground:P}=o,y=V??P,p=i??t.disabled,S=C??t.color,f=!!(b||u),T=t.value==null&&t.displayValue==null,v=ie(r,t.triggerRef),{getTriggerLabel:I}=t;e.useEffect(()=>{},[I]);let R=l=>{E?.(l),f&&l.preventDefault()},k=l=>{h?.(l),!(l.defaultPrevented||f||p)&&l.key==="ArrowDown"&&(l.preventDefault(),t.setOpen(!0))},L=e.createElement(e.Fragment,null,e.createElement("span",{className:"rt-SelectTriggerInner"},e.createElement("span",{className:"rt-ComboboxValue"},t.displayValue??t.value??s??t.placeholder)),u?e.createElement("div",{className:"rt-SelectIcon rt-SelectLoadingIcon","aria-hidden":"true"},e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.createElement("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"32",className:"rt-SelectLoadingIconCircle"}))):e.createElement(oe,{className:"rt-SelectIcon"}));return e.createElement(ae,{disabled:p},e.createElement("button",{"data-accent-color":S,"data-radius":c,"data-panel-background":y,"data-material":y,"data-error":m,"data-loading":u,"data-disabled":p||void 0,"data-read-only":b||void 0,"data-placeholder":T?"":void 0,...g,role:"combobox","aria-disabled":p||void 0,"aria-readonly":b||void 0,"aria-invalid":m||void 0,"aria-busy":u||void 0,type:x??"button",disabled:p,onClick:R,onKeyDown:k,ref:v,className:d("rt-reset","rt-SelectTrigger","rt-ComboboxTrigger",n)},a?Z(a):L))});Ce.displayName="Combobox.Trigger";var fe=e.forwardRef(({placeholder:o,children:r,className:t,...a},n)=>{let s=F("Value"),i=s.displayValue??s.value??void 0;return e.createElement("span",{...a,ref:n,className:d("rt-ComboboxValue",t)},i??r??o??s.placeholder)});fe.displayName="Combobox.Value";function Oe(){let o=se(n=>n.filtered.count),r=se(n=>n.search),[t,a]=e.useState("");return e.useEffect(()=>{let n=r?o===0?"No results":`${o} result${o===1?"":"s"}`:"",s=window.setTimeout(()=>a(n),r?400:0);return()=>window.clearTimeout(s)},[o,r]),e.createElement(Q,{role:"status","aria-live":"polite","aria-atomic":"true"},t)}var xe=e.forwardRef((o,r)=>{let t=F("Content"),a=X();U(o.panelBackground);let n=o.material??o.panelBackground??a.material??a.panelBackground,s=t.size==="4"?"3":t.size,i=o.size??s??O.size.default;o.variant!==void 0&&void 0;let b=o.variant??O.variant.default,{className:m,children:u,color:C,forceMount:c,container:V,material:E,panelBackground:h,onOpenAutoFocus:x,"aria-label":g,"aria-labelledby":P,...y}=B({...o,size:i,variant:b},O),p=C||t.color||a.accentColor,{getTriggerLabel:S}=t,[f,T]=e.useState(S);K(()=>{if(f!==void 0)return;let l=S();l!==void 0&&T(l)},[S,f]);let v=o["aria-label"]??f,I=e.useMemo(()=>({variant:b,sizeClassName:B({size:i},Ne).className||void 0,color:p,material:n,label:v}),[b,i,p,n,v]),R=e.useRef(null),k=l=>{if(x?.(l),l.defaultPrevented)return;let w=R.current;if(!w||w.querySelector("[cmdk-input]"))return;l.preventDefault(),(w.querySelector("[cmdk-list]")??w).focus({preventScroll:!0})},L=t.value?.trim()||void 0;return e.createElement(ne.Portal,{container:V,forceMount:c?!0:void 0},e.createElement(Y,{asChild:!0},e.createElement(ne.Content,{"data-accent-color":p,"data-material":n,"data-panel-background":n,align:"start",sideOffset:4,collisionPadding:10,"aria-label":P?void 0:v,"aria-labelledby":P,...y,forceMount:c?!0:void 0,onOpenAutoFocus:k,ref:r,className:d("rt-PopperContent","rt-BaseMenuContent","rt-ComboboxContent",m)},e.createElement(pe.Provider,{value:I},e.createElement(N,{ref:R,loop:t.loop,shouldFilter:t.shouldFilter,filter:t.filter,label:v,defaultValue:L,className:"rt-ComboboxCommand"},u,e.createElement(Oe,null))))))});xe.displayName="Combobox.Content";var ge=e.forwardRef(({className:o,startAdornment:r,endAdornment:t,placeholder:a,variant:n,value:s,onValueChange:i,...b},m)=>{let u=F("Input"),C=e.useContext(ce),c=ue(),V=c?.variant??"soft",E=n??(V==="solid"?"surface":"soft"),h=s??C?.value??"",x=i??C?.setValue,g=e.createElement("div",{className:d("rt-TextFieldRoot","rt-ComboboxInputRoot",c?.sizeClassName,`rt-variant-${E}`),"data-accent-color":c?.color,"data-material":c?.material,"data-panel-background":c?.material},r?e.createElement("div",{className:"rt-TextFieldSlot"},r):null,e.createElement(N.Input,{...b,ref:m,value:h,onValueChange:x,placeholder:a??u.searchPlaceholder,className:d("rt-reset","rt-TextFieldInput",o)}),t?e.createElement("div",{className:"rt-TextFieldSlot","data-side":"right"},t):null);return c?e.createElement("div",{className:"rt-ComboboxSearch"},g):g});ge.displayName="Combobox.Input";var Pe=e.forwardRef(({className:o,children:r,label:t,...a},n)=>{let s=ue();return e.createElement("div",{className:"rt-ComboboxScrollArea"},e.createElement("div",{className:d("rt-BaseMenuViewport","rt-ComboboxViewport")},e.createElement(N.List,{...a,label:t??s?.label,ref:n,className:d("rt-ComboboxList",o)},r)))});Pe.displayName="Combobox.List";var ve=e.forwardRef(({className:o,...r},t)=>e.createElement(N.Empty,{...r,ref:t,className:d("rt-ComboboxEmpty",o)}));ve.displayName="Combobox.Empty";var Re=e.forwardRef(({className:o,...r},t)=>e.createElement(N.Group,{...r,ref:t,className:d("rt-BaseMenuGroup","rt-ComboboxGroup",o)}));Re.displayName="Combobox.Group";var he=e.forwardRef(({className:o,id:r,...t},a)=>{let n=e.useId(),s=r??n,i=e.useRef(null),b=ie(a,i);return K(()=>{let m=i.current?.closest("[cmdk-group-items]");if(!(!m||m.hasAttribute("aria-labelledby")))return m.setAttribute("aria-labelledby",s),()=>{m.getAttribute("aria-labelledby")===s&&m.removeAttribute("aria-labelledby")}},[s]),e.createElement("div",{...t,id:s,ref:b,className:d("rt-BaseMenuLabel","rt-ComboboxLabel",o)})});he.displayName="Combobox.Label";var ye=e.forwardRef(({className:o,...r},t)=>e.createElement(N.Separator,{...r,ref:t,className:d("rt-BaseMenuSeparator","rt-ComboboxSeparator",o)}));ye.displayName="Combobox.Separator";function j(o){return o==null||typeof o=="boolean"?"":typeof o=="string"||typeof o=="number"?String(o):Array.isArray(o)?o.map(j).join(""):e.isValidElement(o)?j(o.props.children):""}var Se=e.forwardRef(({className:o,children:r,label:t,value:a,disabled:n,onSelect:s,keywords:i,...b},m)=>{let u=e.useContext(be);if(!u)throw new Error("Combobox.Item must be used within Combobox.Root");let{store:C,onSelect:c,disabled:V}=u,E=a??(typeof r=="string"?r.trim():void 0),h=()=>E!==void 0&&C.get()===E,x=e.useSyncExternalStore(C.subscribe,h,h),g=H(s),P=e.useCallback(T=>{let v=a??T;c(v),g(v)},[a,c,g]),y=(t??j(r)).replace(/\s+/g," ").trim(),p=y?i?[y,...i]:[y]:i,S=p?p.join("\0"):"",f=n??V??!1;return e.createElement(N.Item,{key:S,...b,value:a,keywords:p,"aria-checked":x,disabled:f||void 0,ref:m,onSelect:P,className:d("rt-reset","rt-BaseMenuItem","rt-ComboboxItem",o)},x?e.createElement("span",{className:d("rt-BaseMenuItemIndicator","rt-ComboboxItemIndicator")},e.createElement(ee,{className:d("rt-BaseMenuItemIndicatorIcon","rt-ComboboxItemIndicatorIcon")})):null,e.createElement(J,null,r))});Se.displayName="Combobox.Item";export{de as a,Ce as b,fe as c,xe as d,ge as e,Pe as f,ve as g,Re as h,he as i,ye as j,Se as k,Me as l};
2
- //# sourceMappingURL=chunk-V3QVAXH3.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/combobox.tsx"],
4
- "sourcesContent": ["'use client';\n\n/**\n * Combobox: Radix Popover for positioning, dismissal and focus; cmdk for search,\n * filtering and keyboard navigation.\n *\n * Render path. State is split so an interaction re-renders only what reads it:\n * - `ComboboxContext` (Trigger, Value, Content): config and the selected value.\n * Open state is not in it, so opening and closing re-render no consumer.\n * - `ComboboxSearchContext` (Input only): the search text.\n * - `ComboboxItemContext` (Items): stable values only. Items read \"am I selected\"\n * from a store through `useSyncExternalStore`, so a selection re-renders the old\n * and the new selected item, not all N.\n *\n * Highlight. cmdk's `data-selected` is the single highlight source, driven by both\n * the pointer and the keyboard. There is no separate CSS `:hover` highlight, so two\n * items are never lit at once and Enter always picks the lit item.\n */\n\nimport { warnDeprecated } from '../helpers/warn-deprecated.js';\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { Popover as PopoverPrimitive } from 'radix-ui';\nimport { useCallbackRef, useComposedRefs, useControllableState, useLayoutEffect } from 'radix-ui/internal';\nimport { Command as CommandPrimitive, useCommandState } from 'cmdk';\n\nimport { extractProps } from '../helpers/extract-props.js';\nimport { useDeprecatedPanelBackgroundWarning } from '../helpers/use-deprecation-warning.js';\nimport { comboboxRootPropDefs, comboboxTriggerPropDefs, comboboxContentPropDefs } from './combobox.props.js';\nimport { marginPropDefs } from '../props/margin.props.js';\nimport { ChevronDownIcon, ThickCheckIcon } from './icons.js';\nimport { Theme, useThemeContext } from './theme.js';\nimport { requireReactElement } from '../helpers/require-react-element.js';\nimport * as Popover from './popover.js';\nimport { Slottable } from './slot.js';\nimport { VisuallyHidden } from './visually-hidden.js';\n\nimport type { textFieldRootPropDefs } from './text-field.props.js';\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype TextFieldVariant = (typeof textFieldRootPropDefs.variant.values)[number];\ntype ComboboxValue = string | null;\ntype CommandFilter = (value: string, search: string, keywords?: string[]) => number;\n\n// Hoisted so extractProps' compiled prop-def cache (keyed by object identity) hits.\nconst triggerSizingPropDefs = { size: comboboxRootPropDefs.size };\nconst contentSizePropDefs = { size: comboboxContentPropDefs.size };\n\nconst warned = new Set<string>();\nfunction warnOnce(message: string) {\n if (warned.has(message)) return;\n warned.add(message);\n console.warn(message);\n}\n\n// ============================================================================\n// Selection store\n// ============================================================================\n\ninterface SelectionStore {\n get: () => ComboboxValue;\n set: (value: ComboboxValue) => void;\n subscribe: (listener: () => void) => () => void;\n}\n\nfunction createSelectionStore(initial: ComboboxValue): SelectionStore {\n let current = initial;\n const listeners = new Set<() => void>();\n return {\n get: () => current,\n set: (next) => {\n if (Object.is(next, current)) return;\n current = next;\n listeners.forEach((listener) => listener());\n },\n subscribe: (listener) => {\n listeners.add(listener);\n return () => {\n listeners.delete(listener);\n };\n },\n };\n}\n\n// ============================================================================\n// Contexts\n// ============================================================================\n\ninterface ComboboxContextValue {\n value: ComboboxValue;\n displayValue?: string;\n setOpen: (open: boolean) => void;\n size?: ComboboxRootOwnProps['size'];\n placeholder?: string;\n searchPlaceholder?: string;\n disabled?: boolean;\n color?: string;\n loop: boolean;\n shouldFilter: boolean;\n filter?: CommandFilter;\n triggerRef: React.RefObject<HTMLButtonElement | null>;\n /** Reads the trigger's accessible name from the DOM (aria-label, aria-labelledby or <label>). */\n getTriggerLabel: () => string | undefined;\n}\n\nconst ComboboxContext = React.createContext<ComboboxContextValue | null>(null);\n\nconst useComboboxContext = (componentName: string) => {\n const ctx = React.useContext(ComboboxContext);\n if (!ctx) {\n throw new Error(`Combobox.${componentName} must be used within Combobox.Root`);\n }\n return ctx;\n};\n\ninterface ComboboxSearchContextValue {\n value: string;\n setValue: (value: string) => void;\n}\n\nconst ComboboxSearchContext = React.createContext<ComboboxSearchContextValue | null>(null);\n\ninterface ComboboxItemContextValue {\n store: SelectionStore;\n onSelect: (value: string) => void;\n disabled?: boolean;\n}\n\nconst ComboboxItemContext = React.createContext<ComboboxItemContextValue | null>(null);\n\n/** Values resolved by Content and read by Input and List. */\ninterface ComboboxContentContextValue {\n variant: 'solid' | 'soft';\n sizeClassName?: string;\n color?: string;\n material?: string;\n label?: string;\n}\n\nconst ComboboxContentContext = React.createContext<ComboboxContentContextValue | null>(null);\n\nconst useComboboxContentContext = () => React.useContext(ComboboxContentContext);\n\n// ============================================================================\n// Root\n// ============================================================================\n\ntype ComboboxRootOwnProps = GetPropDefTypes<typeof comboboxRootPropDefs> & {\n value?: ComboboxValue;\n defaultValue?: ComboboxValue;\n onValueChange?: (value: ComboboxValue) => void;\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n placeholder?: string;\n searchPlaceholder?: string;\n searchValue?: string;\n defaultSearchValue?: string;\n onSearchValueChange?: (value: string) => void;\n filter?: CommandFilter;\n shouldFilter?: boolean;\n loop?: boolean;\n disabled?: boolean;\n /** Clear the search text when an option is selected. Defaults to true. */\n resetSearchOnSelect?: boolean;\n /** Clear the search text when the popup is dismissed without a selection. Defaults to true. */\n resetSearchOnClose?: boolean;\n color?: (typeof comboboxTriggerPropDefs.color.values)[number];\n /**\n * Text shown in the trigger for the selected value. Without it the raw value is shown.\n * Can be a string or a function that receives the current value. Pass a stable\n * function (module scope or `useCallback`): an inline function runs on every render.\n * @example displayValue={(v) => items.find(i => i.value === v)?.label}\n */\n displayValue?: string | ((value: ComboboxValue) => string | undefined);\n};\n\ntype PopoverRootProps = React.ComponentPropsWithoutRef<typeof Popover.Root>;\ninterface ComboboxRootProps extends PopoverRootProps, ComboboxRootOwnProps {}\n\nfunction readElementLabel(el: HTMLElement): string | undefined {\n const ariaLabel = el.getAttribute('aria-label')?.trim();\n if (ariaLabel) return ariaLabel;\n\n const labelledBy = el.getAttribute('aria-labelledby');\n if (labelledBy) {\n const text = labelledBy\n .split(/\\s+/)\n .map((id) => el.ownerDocument.getElementById(id)?.textContent?.trim())\n .filter(Boolean)\n .join(' ');\n if (text) return text;\n }\n\n const labels = (el as HTMLButtonElement).labels;\n if (labels && labels.length > 0) {\n const text = Array.from(labels)\n .map((label) => label.textContent?.trim())\n .filter(Boolean)\n .join(' ');\n if (text) return text;\n }\n\n return undefined;\n}\n\nconst ComboboxRoot: React.FC<ComboboxRootProps> = (props) => {\n const {\n children,\n size = comboboxRootPropDefs.size.default,\n value: valueProp,\n defaultValue = null,\n onValueChange,\n open: openProp,\n defaultOpen = false,\n onOpenChange,\n placeholder = 'Select an option',\n searchPlaceholder = 'Search...',\n searchValue: searchValueProp,\n defaultSearchValue = '',\n onSearchValueChange,\n filter,\n shouldFilter = true,\n loop = true,\n disabled,\n resetSearchOnSelect = true,\n resetSearchOnClose = true,\n color,\n displayValue: displayValueProp,\n ...rootProps\n } = props;\n\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange,\n });\n\n const [value, setValue] = useControllableState<ComboboxValue>({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange,\n });\n\n const [searchValue, setSearchValue] = useControllableState<string>({\n prop: searchValueProp,\n defaultProp: defaultSearchValue,\n onChange: onSearchValueChange,\n });\n\n const resolvedDisplayValue = typeof displayValueProp === 'function' ? displayValueProp(value) : displayValueProp;\n\n // Items subscribe to this store instead of the context, so a selection\n // re-renders only the items whose selected state flips.\n const [store] = React.useState(() => createSelectionStore(value));\n useLayoutEffect(() => {\n store.set(value);\n }, [store, value]);\n\n // The radix setters change identity whenever their controlled prop changes.\n // Reading them through callback refs keeps these handlers stable, so the\n // contexts below do not change on every keystroke or selection.\n const handleOpenChange = useCallbackRef((nextOpen: boolean) => {\n setOpen(nextOpen);\n if (!nextOpen && resetSearchOnClose) setSearchValue('');\n });\n\n const onSelect = useCallbackRef((nextValue: string) => {\n setValue(nextValue);\n setOpen(false);\n if (resetSearchOnSelect) setSearchValue('');\n });\n\n const triggerRef = React.useRef<HTMLButtonElement | null>(null);\n const getTriggerLabel = React.useCallback(() => (triggerRef.current ? readElementLabel(triggerRef.current) : undefined), []);\n\n const contextValue = React.useMemo<ComboboxContextValue>(\n () => ({\n value,\n displayValue: resolvedDisplayValue,\n setOpen: handleOpenChange,\n size,\n placeholder,\n searchPlaceholder,\n disabled,\n color,\n loop,\n shouldFilter,\n filter,\n triggerRef,\n getTriggerLabel,\n }),\n [value, resolvedDisplayValue, handleOpenChange, size, placeholder, searchPlaceholder, disabled, color, loop, shouldFilter, filter, getTriggerLabel],\n );\n\n const searchContextValue = React.useMemo<ComboboxSearchContextValue>(() => ({ value: searchValue, setValue: setSearchValue }), [searchValue, setSearchValue]);\n\n const itemContextValue = React.useMemo<ComboboxItemContextValue>(() => ({ store, onSelect, disabled }), [store, onSelect, disabled]);\n\n return (\n <ComboboxContext.Provider value={contextValue}>\n <ComboboxSearchContext.Provider value={searchContextValue}>\n <ComboboxItemContext.Provider value={itemContextValue}>\n <Popover.Root open={open} onOpenChange={handleOpenChange} {...rootProps}>\n {children}\n </Popover.Root>\n </ComboboxItemContext.Provider>\n </ComboboxSearchContext.Provider>\n </ComboboxContext.Provider>\n );\n};\nComboboxRoot.displayName = 'Combobox.Root';\n\n// ============================================================================\n// Trigger\n// ============================================================================\n\ntype ComboboxTriggerElement = HTMLButtonElement;\ntype ComboboxTriggerOwnProps = GetPropDefTypes<typeof comboboxTriggerPropDefs>;\ntype NativeTriggerProps = Omit<React.ComponentPropsWithoutRef<'button'>, 'color'>;\ninterface ComboboxTriggerProps extends NativeTriggerProps, MarginProps, ComboboxTriggerOwnProps {}\n\nconst ComboboxTrigger = React.forwardRef<ComboboxTriggerElement, ComboboxTriggerProps>((props, forwardedRef) => {\n const ctx = useComboboxContext('Trigger');\n\n const {\n children,\n className,\n placeholder,\n disabled,\n readOnly,\n error,\n loading,\n color,\n radius,\n material,\n onClick,\n onKeyDown,\n type: buttonType,\n ...triggerProps\n } = extractProps({ size: ctx.size, ...props }, triggerSizingPropDefs, comboboxTriggerPropDefs, marginPropDefs);\n\n // `panelBackground` has a className prop def, so extractProps strips it.\n const { panelBackground } = props;\n const resolvedMaterial = material ?? panelBackground;\n const isDisabled = disabled ?? ctx.disabled;\n const resolvedColor = color ?? ctx.color;\n // Read-only and loading triggers stay focusable but do not open.\n const isBlocked = Boolean(readOnly || loading);\n const isPlaceholder = ctx.value == null && ctx.displayValue == null;\n\n const composedRef = useComposedRefs(forwardedRef, ctx.triggerRef);\n\n const { getTriggerLabel } = ctx;\n React.useEffect(() => {\n if (process.env.NODE_ENV === 'production') return;\n if (!getTriggerLabel()) {\n warnOnce(\n 'Combobox.Trigger has no accessible name. The combobox role does not take its name from its content. Add `aria-label`, `aria-labelledby`, or a `<label htmlFor>` that points at the trigger.',\n );\n }\n }, [getTriggerLabel]);\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n onClick?.(event);\n // Radix skips its open toggle when the event is default-prevented.\n if (isBlocked) event.preventDefault();\n };\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLButtonElement>) => {\n onKeyDown?.(event);\n if (event.defaultPrevented || isBlocked || isDisabled) return;\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n ctx.setOpen(true);\n }\n };\n\n const defaultContent = (\n <>\n <span className=\"rt-SelectTriggerInner\">\n <span className=\"rt-ComboboxValue\">{ctx.displayValue ?? ctx.value ?? placeholder ?? ctx.placeholder}</span>\n </span>\n {loading ? (\n <div className=\"rt-SelectIcon rt-SelectLoadingIcon\" aria-hidden=\"true\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\">\n <circle\n cx=\"8\"\n cy=\"8\"\n r=\"7\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeDasharray=\"32\"\n strokeDashoffset=\"32\"\n className=\"rt-SelectLoadingIconCircle\"\n />\n </svg>\n </div>\n ) : (\n <ChevronDownIcon className=\"rt-SelectIcon\" />\n )}\n </>\n );\n\n // Radix Popover.Trigger supplies aria-expanded, aria-controls (the popup id) and\n // aria-haspopup=\"dialog\", which matches the Popover dialog this opens.\n return (\n <Popover.Trigger disabled={isDisabled}>\n <button\n data-accent-color={resolvedColor}\n data-radius={radius}\n data-panel-background={resolvedMaterial}\n data-material={resolvedMaterial}\n data-error={error}\n data-loading={loading}\n data-disabled={isDisabled || undefined}\n data-read-only={readOnly || undefined}\n data-placeholder={isPlaceholder ? '' : undefined}\n {...triggerProps}\n // eslint-disable-next-line jsx-a11y/role-has-required-aria-props -- Popover.Trigger (Slot) adds aria-expanded and aria-controls\n role=\"combobox\"\n aria-disabled={isDisabled || undefined}\n aria-readonly={readOnly || undefined}\n aria-invalid={error || undefined}\n aria-busy={loading || undefined}\n type={buttonType ?? 'button'}\n disabled={isDisabled}\n onClick={handleClick}\n onKeyDown={handleKeyDown}\n ref={composedRef}\n className={classNames('rt-reset', 'rt-SelectTrigger', 'rt-ComboboxTrigger', className)}\n >\n {children ? requireReactElement(children) : defaultContent}\n </button>\n </Popover.Trigger>\n );\n});\nComboboxTrigger.displayName = 'Combobox.Trigger';\n\n// ============================================================================\n// Value (standalone, for custom trigger layouts)\n// ============================================================================\n\ntype ComboboxValueElement = HTMLSpanElement;\ninterface ComboboxValueProps extends React.ComponentPropsWithoutRef<'span'> {\n placeholder?: string;\n}\n\nconst ComboboxValue = React.forwardRef<ComboboxValueElement, ComboboxValueProps>(({ placeholder, children, className, ...valueProps }, forwardedRef) => {\n const ctx = useComboboxContext('Value');\n const display = ctx.displayValue ?? ctx.value ?? undefined;\n return (\n <span {...valueProps} ref={forwardedRef} className={classNames('rt-ComboboxValue', className)}>\n {display ?? children ?? placeholder ?? ctx.placeholder}\n </span>\n );\n});\nComboboxValue.displayName = 'Combobox.Value';\n\n// ============================================================================\n// Content\n// ============================================================================\n\ntype ComboboxContentElement = React.ElementRef<typeof PopoverPrimitive.Content>;\ntype ComboboxContentOwnProps = GetPropDefTypes<typeof comboboxContentPropDefs> & {\n container?: React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Portal>['container'];\n};\ninterface ComboboxContentProps extends Omit<ComponentPropsWithout<typeof PopoverPrimitive.Content, RemovedProps>, 'size'>, ComboboxContentOwnProps {}\n\n/** Announces the filtered result count to screen readers after typing settles. */\nfunction ComboboxAnnouncer() {\n const count = useCommandState((state) => state.filtered.count);\n const search = useCommandState((state) => state.search);\n const [message, setMessage] = React.useState('');\n\n React.useEffect(() => {\n const next = !search ? '' : count === 0 ? 'No results' : `${count} result${count === 1 ? '' : 's'}`;\n const timeout = window.setTimeout(() => setMessage(next), search ? 400 : 0);\n return () => window.clearTimeout(timeout);\n }, [count, search]);\n\n return (\n <VisuallyHidden role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">\n {message}\n </VisuallyHidden>\n );\n}\n\nconst ComboboxContent = React.forwardRef<ComboboxContentElement, ComboboxContentProps>((props, forwardedRef) => {\n const ctx = useComboboxContext('Content');\n const themeContext = useThemeContext();\n\n useDeprecatedPanelBackgroundWarning(props.panelBackground);\n\n const material = props.material ?? props.panelBackground ?? themeContext.material ?? themeContext.panelBackground;\n // Menus stop at size 3; a size 4 field opens a size 3 list.\n const rootSize = ctx.size === '4' ? '3' : ctx.size;\n const size = props.size ?? rootSize ?? comboboxContentPropDefs.size.default;\n if (props.variant !== undefined) {\n warnDeprecated(\n 'The menu `variant` prop is deprecated and will be removed in 0.15.0. Menus highlight with a soft fill, and a solid one when the person asks for more contrast.',\n );\n }\n const variant = props.variant ?? comboboxContentPropDefs.variant.default;\n\n const {\n className,\n children,\n color,\n forceMount,\n container,\n material: _material,\n panelBackground: _panelBackground,\n onOpenAutoFocus,\n 'aria-label': _ariaLabel,\n 'aria-labelledby': ariaLabelledByProp,\n ...contentProps\n } = extractProps({ ...props, size, variant }, comboboxContentPropDefs);\n\n const resolvedColor = color || ctx.color || themeContext.accentColor;\n\n\n // The trigger's name labels the popup, the search field and the listbox.\n // Read once per mount (the content remounts on every open); fall back to a\n // layout effect when the trigger was not attached yet (defaultOpen, forceMount).\n const { getTriggerLabel } = ctx;\n const [triggerLabel, setTriggerLabel] = React.useState(getTriggerLabel);\n useLayoutEffect(() => {\n if (triggerLabel !== undefined) return;\n const label = getTriggerLabel();\n if (label !== undefined) setTriggerLabel(label);\n }, [getTriggerLabel, triggerLabel]);\n\n const label = props['aria-label'] ?? triggerLabel;\n\n const contentContextValue = React.useMemo<ComboboxContentContextValue>(\n () => ({\n variant,\n // Responsive-aware size class for the search field (never String() a responsive object).\n sizeClassName: extractProps({ size }, contentSizePropDefs).className || undefined,\n color: resolvedColor,\n material,\n label,\n }),\n [variant, size, resolvedColor, material, label],\n );\n\n const commandRef = React.useRef<HTMLDivElement>(null);\n\n // Without a search field, focus would land on the popup itself, outside cmdk's\n // keydown handler. Focus the listbox instead so arrow keys and Enter work.\n const handleOpenAutoFocus = (event: Event) => {\n onOpenAutoFocus?.(event);\n if (event.defaultPrevented) return;\n const command = commandRef.current;\n if (!command || command.querySelector('[cmdk-input]')) return;\n event.preventDefault();\n const list = command.querySelector<HTMLElement>('[cmdk-list]');\n (list ?? command).focus({ preventScroll: true });\n };\n\n // Start the highlight on the selected option (cmdk trims item values).\n const initialHighlight = ctx.value?.trim() || undefined;\n\n return (\n <PopoverPrimitive.Portal container={container} forceMount={forceMount ? true : undefined}>\n <Theme asChild>\n <PopoverPrimitive.Content\n data-accent-color={resolvedColor}\n data-material={material}\n data-panel-background={material}\n align=\"start\"\n sideOffset={4}\n collisionPadding={10}\n aria-label={ariaLabelledByProp ? undefined : label}\n aria-labelledby={ariaLabelledByProp}\n {...contentProps}\n forceMount={forceMount ? true : undefined}\n onOpenAutoFocus={handleOpenAutoFocus}\n ref={forwardedRef}\n className={classNames('rt-PopperContent', 'rt-BaseMenuContent', 'rt-ComboboxContent', className)}\n >\n <ComboboxContentContext.Provider value={contentContextValue}>\n <CommandPrimitive\n ref={commandRef}\n loop={ctx.loop}\n shouldFilter={ctx.shouldFilter}\n filter={ctx.filter}\n label={label}\n defaultValue={initialHighlight}\n className=\"rt-ComboboxCommand\"\n >\n {children}\n <ComboboxAnnouncer />\n </CommandPrimitive>\n </ComboboxContentContext.Provider>\n </PopoverPrimitive.Content>\n </Theme>\n </PopoverPrimitive.Portal>\n );\n});\nComboboxContent.displayName = 'Combobox.Content';\n\n// ============================================================================\n// Input\n// ============================================================================\n\ntype ComboboxInputElement = React.ElementRef<typeof CommandPrimitive.Input>;\ninterface ComboboxInputProps extends Omit<React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>, 'value' | 'onValueChange'> {\n startAdornment?: React.ReactNode;\n endAdornment?: React.ReactNode;\n variant?: TextFieldVariant;\n value?: string;\n onValueChange?: (value: string) => void;\n}\n\nconst ComboboxInput = React.forwardRef<ComboboxInputElement, ComboboxInputProps>(\n ({ className, startAdornment, endAdornment, placeholder, variant: inputVariant, value, onValueChange, ...inputProps }, forwardedRef) => {\n const ctx = useComboboxContext('Input');\n const search = React.useContext(ComboboxSearchContext);\n const contentContext = useComboboxContentContext();\n\n const contentVariant = contentContext?.variant ?? 'soft';\n const textFieldVariant = inputVariant ?? (contentVariant === 'solid' ? 'surface' : 'soft');\n\n // The search text lives in Root; only this component subscribes to it.\n const searchValue = value ?? search?.value ?? '';\n const handleSearchChange = onValueChange ?? search?.setValue;\n\n const inputField = (\n <div\n className={classNames('rt-TextFieldRoot', 'rt-ComboboxInputRoot', contentContext?.sizeClassName, `rt-variant-${textFieldVariant}`)}\n data-accent-color={contentContext?.color}\n data-material={contentContext?.material}\n data-panel-background={contentContext?.material}\n >\n {startAdornment ? <div className=\"rt-TextFieldSlot\">{startAdornment}</div> : null}\n <CommandPrimitive.Input\n {...inputProps}\n ref={forwardedRef}\n value={searchValue}\n onValueChange={handleSearchChange}\n placeholder={placeholder ?? ctx.searchPlaceholder}\n className={classNames('rt-reset', 'rt-TextFieldInput', className)}\n />\n {endAdornment ? (\n <div className=\"rt-TextFieldSlot\" data-side=\"right\">\n {endAdornment}\n </div>\n ) : null}\n </div>\n );\n\n return contentContext ? <div className=\"rt-ComboboxSearch\">{inputField}</div> : inputField;\n },\n);\nComboboxInput.displayName = 'Combobox.Input';\n\n// ============================================================================\n// List\n// ============================================================================\n\ntype ComboboxListElement = React.ElementRef<typeof CommandPrimitive.List>;\ninterface ComboboxListProps extends React.ComponentPropsWithoutRef<typeof CommandPrimitive.List> {}\n\n// cmdk's List owns its id (referenced by the input's aria-controls), role and\n// aria-label (set from `label`), so none of them are overridden here.\nconst ComboboxList = React.forwardRef<ComboboxListElement, ComboboxListProps>(({ className, children, label, ...listProps }, forwardedRef) => {\n const contentContext = useComboboxContentContext();\n return (\n <div className=\"rt-ComboboxScrollArea\">\n <div className={classNames('rt-BaseMenuViewport', 'rt-ComboboxViewport')}>\n <CommandPrimitive.List {...listProps} label={label ?? contentContext?.label} ref={forwardedRef} className={classNames('rt-ComboboxList', className)}>\n {children}\n </CommandPrimitive.List>\n </div>\n </div>\n );\n});\nComboboxList.displayName = 'Combobox.List';\n\n// ============================================================================\n// Empty\n// ============================================================================\n\ntype ComboboxEmptyElement = React.ElementRef<typeof CommandPrimitive.Empty>;\ninterface ComboboxEmptyProps extends React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty> {}\n\nconst ComboboxEmpty = React.forwardRef<ComboboxEmptyElement, ComboboxEmptyProps>(({ className, ...emptyProps }, forwardedRef) => (\n <CommandPrimitive.Empty {...emptyProps} ref={forwardedRef} className={classNames('rt-ComboboxEmpty', className)} />\n));\nComboboxEmpty.displayName = 'Combobox.Empty';\n\n// ============================================================================\n// Group\n// ============================================================================\n\ntype ComboboxGroupElement = React.ElementRef<typeof CommandPrimitive.Group>;\ninterface ComboboxGroupProps extends React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group> {}\n\nconst ComboboxGroup = React.forwardRef<ComboboxGroupElement, ComboboxGroupProps>(({ className, ...groupProps }, forwardedRef) => (\n <CommandPrimitive.Group {...groupProps} ref={forwardedRef} className={classNames('rt-BaseMenuGroup', 'rt-ComboboxGroup', className)} />\n));\nComboboxGroup.displayName = 'Combobox.Group';\n\n// ============================================================================\n// Label\n// ============================================================================\n\ntype ComboboxLabelElement = React.ElementRef<'div'>;\ninterface ComboboxLabelProps extends React.ComponentPropsWithoutRef<'div'> {}\n\nconst ComboboxLabel = React.forwardRef<ComboboxLabelElement, ComboboxLabelProps>(({ className, id: idProp, ...labelProps }, forwardedRef) => {\n const generatedId = React.useId();\n const id = idProp ?? generatedId;\n const localRef = React.useRef<HTMLDivElement>(null);\n const composedRef = useComposedRefs(forwardedRef, localRef);\n\n // cmdk renders the group's role=\"group\" element itself and gives no way to\n // label it from a child, so name it after this label when inside a Group.\n useLayoutEffect(() => {\n const group = localRef.current?.closest('[cmdk-group-items]');\n if (!group || group.hasAttribute('aria-labelledby')) return;\n group.setAttribute('aria-labelledby', id);\n return () => {\n if (group.getAttribute('aria-labelledby') === id) group.removeAttribute('aria-labelledby');\n };\n }, [id]);\n\n return <div {...labelProps} id={id} ref={composedRef} className={classNames('rt-BaseMenuLabel', 'rt-ComboboxLabel', className)} />;\n});\nComboboxLabel.displayName = 'Combobox.Label';\n\n// ============================================================================\n// Separator\n// ============================================================================\n\ntype ComboboxSeparatorElement = React.ElementRef<typeof CommandPrimitive.Separator>;\ninterface ComboboxSeparatorProps extends React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator> {}\n\nconst ComboboxSeparator = React.forwardRef<ComboboxSeparatorElement, ComboboxSeparatorProps>(({ className, ...separatorProps }, forwardedRef) => (\n <CommandPrimitive.Separator {...separatorProps} ref={forwardedRef} className={classNames('rt-BaseMenuSeparator', 'rt-ComboboxSeparator', className)} />\n));\nComboboxSeparator.displayName = 'Combobox.Separator';\n\n// ============================================================================\n// Item\n// ============================================================================\n\n/** Plain text of a React node tree, used as the item's search text. */\nfunction getNodeText(node: React.ReactNode): string {\n if (node == null || typeof node === 'boolean') return '';\n if (typeof node === 'string' || typeof node === 'number') return String(node);\n if (Array.isArray(node)) return node.map(getNodeText).join('');\n if (React.isValidElement<{ children?: React.ReactNode }>(node)) return getNodeText(node.props.children);\n return '';\n}\n\ntype ComboboxItemElement = React.ElementRef<typeof CommandPrimitive.Item>;\ninterface ComboboxItemProps extends Omit<React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>, 'keywords' | 'onSelect'> {\n /**\n * Text matched by search. Defaults to the text of `children`. Set it when the\n * children are components whose text is not in the JSX (it cannot be read).\n */\n label?: string;\n /** Additional keywords for search filtering. */\n keywords?: string[];\n /** Called when the item is selected. */\n onSelect?: (value: string) => void;\n}\n\nconst ComboboxItem = React.forwardRef<ComboboxItemElement, ComboboxItemProps>(\n ({ className, children, label, value, disabled, onSelect, keywords, ...itemProps }, forwardedRef) => {\n const itemContext = React.useContext(ComboboxItemContext);\n if (!itemContext) {\n throw new Error('Combobox.Item must be used within Combobox.Root');\n }\n const { store, onSelect: onSelectFromRoot, disabled: rootDisabled } = itemContext;\n\n // Without `value`, cmdk uses the trimmed text of string children.\n const itemValue = value ?? (typeof children === 'string' ? children.trim() : undefined);\n const getIsSelected = () => itemValue !== undefined && store.get() === itemValue;\n const isSelected = React.useSyncExternalStore(store.subscribe, getIsSelected, getIsSelected);\n\n const onSelectProp = useCallbackRef(onSelect);\n // cmdk passes its resolved value (the `value` prop, or the text when `value` is omitted).\n const handleSelect = React.useCallback(\n (resolvedValue: string) => {\n const nextValue = value ?? resolvedValue;\n onSelectFromRoot(nextValue);\n onSelectProp(nextValue);\n },\n [value, onSelectFromRoot, onSelectProp],\n );\n\n // cmdk matches only `value` and `keywords`, so add the visible text as a keyword.\n const text = (label ?? getNodeText(children)).replace(/\\s+/g, ' ').trim();\n const searchKeywords = text ? (keywords ? [text, ...keywords] : [text]) : keywords;\n // cmdk stores keywords only when `value` changes. Remount the cmdk item when\n // they change so a new label or keyword list is picked up.\n const keywordsKey = searchKeywords ? searchKeywords.join('\u0000') : '';\n\n const isDisabled = disabled ?? rootDisabled ?? false;\n\n return (\n <CommandPrimitive.Item\n key={keywordsKey}\n {...itemProps}\n value={value}\n keywords={searchKeywords}\n // cmdk owns aria-selected (the highlighted option); the chosen option is aria-checked.\n aria-checked={isSelected}\n disabled={isDisabled || undefined}\n ref={forwardedRef}\n onSelect={handleSelect}\n className={classNames('rt-reset', 'rt-BaseMenuItem', 'rt-ComboboxItem', className)}\n >\n {isSelected ? (\n <span className={classNames('rt-BaseMenuItemIndicator', 'rt-ComboboxItemIndicator')}>\n <ThickCheckIcon className={classNames('rt-BaseMenuItemIndicatorIcon', 'rt-ComboboxItemIndicatorIcon')} />\n </span>\n ) : null}\n <Slottable>{children}</Slottable>\n </CommandPrimitive.Item>\n );\n },\n);\nComboboxItem.displayName = 'Combobox.Item';\n\n// ============================================================================\n// Exports\n// ============================================================================\n\nexport {\n ComboboxRoot as Root,\n ComboboxTrigger as Trigger,\n ComboboxValue as Value,\n ComboboxContent as Content,\n ComboboxInput as Input,\n ComboboxList as List,\n ComboboxEmpty as Empty,\n ComboboxGroup as Group,\n ComboboxLabel as Label,\n ComboboxSeparator as Separator,\n ComboboxItem as Item,\n};\n\nexport type {\n ComboboxRootProps as RootProps,\n ComboboxTriggerProps as TriggerProps,\n ComboboxValueProps as ValueProps,\n ComboboxContentProps as ContentProps,\n ComboboxInputProps as InputProps,\n ComboboxListProps as ListProps,\n ComboboxEmptyProps as EmptyProps,\n ComboboxGroupProps as GroupProps,\n ComboboxLabelProps as LabelProps,\n ComboboxSeparatorProps as SeparatorProps,\n ComboboxItemProps as ItemProps,\n};\n"],
5
- "mappings": "ieAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,aAAAE,GAAA,UAAAC,GAAA,UAAAC,GAAA,UAAAC,GAAA,SAAAC,GAAA,UAAAC,GAAA,SAAAC,GAAA,SAAAC,GAAA,cAAAC,GAAA,YAAAC,GAAA,UAAAC,KAoBA,UAAYC,MAAW,QACvB,OAAOC,MAAgB,aACvB,OAAS,WAAWC,OAAwB,WAC5C,OAAS,kBAAAC,EAAgB,mBAAAC,GAAiB,wBAAAC,EAAsB,mBAAAC,MAAuB,oBACvF,OAAS,WAAWC,EAAkB,mBAAAC,OAAuB,OAuB7D,IAAMC,GAAwB,CAAE,KAAMC,EAAqB,IAAK,EAC1DC,GAAsB,CAAE,KAAMC,EAAwB,IAAK,EAE3DC,GAAS,IAAI,IACnB,SAASC,GAASC,EAAiB,CAC7BF,GAAO,IAAIE,CAAO,IACtBF,GAAO,IAA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AAC8E,EAAA,KAAWtJ,CAAS,CACvB,CAEJ,CACF,EACAuI,GAAa,YAAc",
6
- "names": ["combobox_exports", "__export", "ComboboxContent", "ComboboxEmpty", "ComboboxGroup", "ComboboxInput", "ComboboxItem", "ComboboxLabel", "ComboboxList", "ComboboxRoot", "ComboboxSeparator", "ComboboxTrigger", "ComboboxValue", "React", "classNames", "PopoverPrimitive", "useCallbackRef", "useComposedRefs", "useControllableState", "useLayoutEffect", "CommandPrimitive", "useCommandState", "triggerSizingPropDefs", "comboboxRootPropDefs", "contentSizePropDefs", "comboboxContentPropDefs", "warned", "warnOnce", "message", "createSelectionStore", "initial", "current", "listeners", "next", "listener", "ComboboxContext", "useComboboxContext", "componentName", "ctx", "ComboboxSearchContext", "ComboboxItemContext", "ComboboxContentContext", "useComboboxContentContext", "readElementLabel", "el", "ariaLabel", "labelledBy", "text", "id", "labels", "label", "ComboboxRoot", "props", "children", "size", "valueProp", "defaultValue", "onValueChange", "openProp", "defaultOpen", "onOpenChange", "placeholder", "searchPlaceholder", "searchValueProp", "defaultSearchValue", "onSearchValueChange", "filter", "shouldFilter", "loop", "disabled", "resetSearchOnSelect", "resetSearchOnClose", "color", "displayValueProp", "rootProps", "open", "setOpen", "useControllableState", "value", "setValue", "searchValue", "setSearchValue", "resolvedDisplayValue", "store", "useLayoutEffect", "handleOpenChange", "useCallbackRef", "nextOpen", "onSelect", "nextValue", "triggerRef", "getTriggerLabel", "contextValue", "searchContextValue", "itemContextValue", "PopoverRoot", "ComboboxTrigger", "forwardedRef", "className", "readOnly", "error", "loading", "radius", "material", "onClick", "onKeyDown", "buttonType", "triggerProps", "extractProps", "comboboxTriggerPropDefs", "marginPropDefs", "panelBackground", "resolvedMaterial", "isDisabled", "resolvedColor", "isBlocked", "isPlaceholder", "composedRef", "useComposedRefs", "handleClick", "event", "handleKeyDown", "defaultContent", "ChevronDownIcon", "PopoverTrigger", "classNames", "requireReactElement", "ComboboxValue", "valueProps", "display", "ComboboxAnnouncer", "count", "useCommandState", "state", "search", "setMessage", "timeout", "VisuallyHidden", "ComboboxContent", "themeContext", "useThemeContext", "useDeprecatedPanelBackgroundWarning", "rootSize", "variant", "forceMount", "container", "_material", "_panelBackground", "onOpenAutoFocus", "_ariaLabel", "ariaLabelledByProp", "contentProps", "triggerLabel", "setTriggerLabel", "contentContextValue", "commandRef", "handleOpenAutoFocus", "command", "initialHighlight", "PopoverPrimitive", "Theme", "CommandPrimitive", "ComboboxInput", "startAdornment", "endAdornment", "inputVariant", "inputProps", "contentContext", "contentVariant", "textFieldVariant", "handleSearchChange", "inputField", "ComboboxList", "listProps", "ComboboxEmpty", "emptyProps", "ComboboxGroup", "groupProps", "ComboboxLabel", "idProp", "labelProps", "generatedId", "localRef", "group", "ComboboxSeparator", "separatorProps", "getNodeText", "node", "ComboboxItem", "keywords", "itemProps", "itemContext", "onSelectFromRoot", "rootDisabled", "itemValue", "getIsSelected", "isSelected", "onSelectProp", "handleSelect", "resolvedValue", "searchKeywords", "keywordsKey", "ThickCheckIcon", "Slottable"]
7
- }
@@ -1,2 +0,0 @@
1
- import{z as e}from"zod";var h=e.enum(["expanded","collapsed"]).describe("Pane state mode"),l=e.enum(["collapsed","thin","expanded"]).describe("Sidebar state"),b=e.enum(["fixed","overlay","stacked"]).describe("Presentation mode"),z=e.enum(["initial","xs","sm","md","lg","xl"]).describe("Responsive breakpoint"),u=e.enum(["left","rail","panel","sidebar","inspector","bottom"]).describe("Pane target. `left` is deprecated: use `rail`."),m=e.enum(["toggle","expand","collapse"]).describe("Trigger action"),c=e.enum(["toggle","dismiss"]).describe("Why the state changed: `toggle` for a trigger or the resize handle, `dismiss` for Escape or the scrim"),S=e.enum(["init","resize","controlled"]).describe("Why the size changed");function r(n){return e.union([n,e.object({initial:n.optional(),xs:n.optional(),sm:n.optional(),md:n.optional(),lg:n.optional(),xl:n.optional()})])}var x=r(h).describe("Responsive pane mode configuration"),p=r(l).describe("Responsive sidebar state"),t=r(b).describe("Responsive presentation configuration"),d=r(e.boolean()).describe("Responsive open state"),f=e.object({load:e.function({output:e.union([e.number(),e.promise(e.number()),e.undefined()])}).optional(),save:e.function({input:[e.number()],output:e.union([e.void(),e.promise(e.void())])}).optional()}).describe("Deprecated, removed in 1.0. Keep the size in your own state with `size`/`onSizeChange`."),o=e.record(e.string(),e.union([e.string(),e.number()])).optional().describe("Inline styles"),a={open:e.union([e.boolean(),d]).optional().describe("The open state, when controlled. A responsive object is deprecated."),defaultOpen:e.union([e.boolean(),d]).optional().describe("The starting state. A responsive object leaves the pane untouched, with that object as the answer at each breakpoint."),onOpenChange:e.function({input:[e.boolean(),e.object({reason:c})],output:e.void()}).optional().describe("Called when a user opens or closes the pane. Never called on mount or on a resize.")},i={id:e.string().optional().describe("The pane id. A Trigger points `aria-controls` at it."),presentation:t.optional(),expandedSize:e.number().optional(),inset:e.boolean().optional().describe("Lifts the pane off the frame and paints the backdrop behind it"),onExpand:e.function({output:e.void()}).optional().describe("Deprecated: use `onOpenChange`"),onCollapse:e.function({output:e.void()}).optional().describe("Deprecated: use `onOpenChange`"),className:e.string().optional().describe("Additional CSS class name"),style:o,children:e.any().optional()},s={minSize:e.number().optional(),maxSize:e.number().optional().describe("The largest size. A drag also stops before the handle leaves the frame."),resizable:e.boolean().optional(),collapsible:e.boolean().optional().describe("A double-click on the handle closes the pane"),size:e.union([e.number(),e.string()]).optional().describe("The size, when controlled"),defaultSize:e.union([e.number(),e.string()]).optional().describe("The starting size"),onSizeChange:e.function({input:[e.number(),e.object({reason:S})],output:e.void()}).optional(),sizeUpdate:e.enum(["throttle","debounce"]).optional().describe("Rate-limits onSizeChange across repeated resize ends, such as key presses on the handle. A drag calls it once, when the drag ends; use onResize for live sizes."),sizeUpdateMs:e.number().optional(),onResize:e.function({input:[e.number()],output:e.void()}).optional().describe("Called during a drag, at most once per animation frame"),onResizeStart:e.function({input:[e.number()],output:e.void()}).optional(),onResizeEnd:e.function({input:[e.number()],output:e.void()}).optional(),snapPoints:e.array(e.number()).optional().describe("Deprecated, removed in 1.0"),snapTolerance:e.number().optional().describe("Deprecated, removed in 1.0"),collapseThreshold:e.number().optional().describe("Deprecated, removed in 1.0"),paneId:e.string().optional().describe("Deprecated, removed in 1.0"),persistence:f.optional()},P=e.object({height:e.union([e.literal("full"),e.literal("auto"),e.string(),e.number()]).default("full").describe("Height of the frame. `full` is 100dvh, with 100vh where dvh is not supported."),className:e.string().optional().describe("Additional CSS class name"),style:o,children:e.any().optional().describe("The Shell parts, and anything else, rendered in order")}).strict(),y=e.object({height:e.number().default(64).describe("Height of the header, in pixels"),className:e.string().optional().describe("Additional CSS class name"),style:o,children:e.any().optional().describe("Header content")}).strict(),v=e.object({...i,...a,presentation:t.default("fixed").describe("Presentation mode"),expandedSize:e.number().default(64).describe("Width in pixels"),collapsible:e.boolean().optional()}).strict(),w=e.object({...i,...a,...s,presentation:t.optional().describe("Presentation mode. With no value the panel follows the Rail's."),expandedSize:e.number().default(288).describe("Open width in pixels"),minSize:e.number().default(100).describe("Minimum width when resizing"),maxSize:e.number().default(800).describe("Maximum width when resizing"),resizable:e.boolean().default(!1).describe("Whether the panel can be resized"),collapsible:e.boolean().default(!0).describe("Whether a double-click on the handle closes the panel")}).strict(),R=e.object({...i,...s,state:e.union([l,p]).optional().describe("The state, when controlled. A responsive object is deprecated."),defaultState:p.optional().describe("The starting state. With no value the sidebar is open where it is in the frame and closed where it is an overlay."),onStateChange:e.function({input:[l,e.object({reason:c})],output:e.void()}).optional().describe("Called when a user changes the state. Never called on mount or on a resize."),presentation:t.default({initial:"overlay",sm:"fixed"}).describe("Presentation mode"),expandedSize:e.number().default(288).describe("Open width in pixels"),minSize:e.number().default(200).describe("Minimum width when resizing"),maxSize:e.number().default(400).describe("Maximum width when resizing"),thinSize:e.number().default(64).describe("Width in the thin state"),toggleModes:e.enum(["both","single"]).default("both").describe("`both` goes collapsed, thin, expanded; `single` goes between collapsed and one open state"),resizable:e.boolean().default(!1).describe("Whether the sidebar can be resized"),collapsible:e.boolean().default(!0).describe("Whether a double-click on the handle closes the sidebar")}).strict(),T=e.object({inset:e.boolean().optional().describe("Lifts the pane off the frame and paints the backdrop behind it"),className:e.string().optional().describe("Additional CSS class name"),style:o,children:e.any().optional().describe("Main content")}).strict(),C=e.object({...i,...a,...s,presentation:t.default({initial:"overlay",sm:"fixed"}).describe("Presentation mode"),expandedSize:e.number().default(320).describe("Open width in pixels"),minSize:e.number().default(200).describe("Minimum width when resizing"),maxSize:e.number().default(500).describe("Maximum width when resizing"),resizable:e.boolean().default(!1).describe("Whether the inspector can be resized"),collapsible:e.boolean().default(!0).describe("Whether a double-click on the handle closes the inspector")}).strict(),N=e.object({...i,...a,...s,presentation:t.default("fixed").describe("Presentation mode"),expandedSize:e.number().default(200).describe("Open height in pixels"),minSize:e.number().default(100).describe("Minimum height when resizing"),maxSize:e.number().default(400).describe("Maximum height when resizing"),resizable:e.boolean().default(!1).describe("Whether the bottom panel can be resized"),collapsible:e.boolean().default(!0).describe("Whether a double-click on the handle closes the panel")}).strict(),M=e.object({target:u.describe("Which pane to drive"),action:m.default("toggle").describe("Action to perform"),peekOnHover:e.boolean().default(!1).describe("Deprecated, removed in 1.0. Shows a preview of a closed pane on hover."),type:e.enum(["button","submit","reset"]).default("button").describe("The button type"),className:e.string().optional().describe("Additional CSS class name"),style:o,children:e.any().optional().describe("Trigger content"),onClick:e.function().optional().describe("Runs before the trigger acts. Call `event.preventDefault()` to cancel it."),onMouseEnter:e.function().optional().describe("Mouse enter handler"),onMouseLeave:e.function().optional().describe("Mouse leave handler"),"aria-label":e.string().optional().describe("ARIA label for accessibility"),"aria-labelledby":e.string().optional().describe("ARIA labelled by reference"),"aria-describedby":e.string().optional().describe("ARIA described by reference")}).strict(),k=e.object({className:e.string().optional().describe("Additional CSS class name"),style:o,children:e.any().optional().describe("Handle content")}).strict();function A(n){return n}function E(n){return n}function O(n){return n}function j(n){return n}function D(n){return n}function H(n){return n}function W(n){return n}function _(n){return n}function V(n){return n}function I(n){return n}export{P as a,y as b,v as c,w as d,R as e,T as f,C as g,N as h,M as i,k as j,A as k,E as l,O as m,j as n,D as o,H as p,W as q,_ as r,V as s,I as t};
2
- //# sourceMappingURL=chunk-V5ZSDDVZ.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/schemas/shell.schema.ts"],
4
- "sourcesContent": ["import { z } from 'zod';\n\n/**\n * Shell Zod schema: the Shell's props, for tools that read a schema\n * (editors, assistants, documentation).\n *\n * Shell is the frame of an application. Each pane holds its own open state;\n * a pane nobody has touched follows the window, and the stylesheet resolves\n * it at each breakpoint. Callbacks report user actions only.\n *\n * @example\n * ```tsx\n * const props = ShellRootSchema.parse({ height: 'full' });\n *\n * const sidebarProps = ShellSidebarSchema.parse({\n * defaultState: { initial: 'collapsed', md: 'expanded' },\n * presentation: { initial: 'overlay', sm: 'fixed' },\n * });\n * ```\n */\n\n// Common types\nconst PaneModeSchema = z.enum(['expanded', 'collapsed']).describe('Pane state mode');\nconst SidebarModeSchema = z.enum(['collapsed', 'thin', 'expanded']).describe('Sidebar state');\nconst PresentationValueSchema = z.enum(['fixed', 'overlay', 'stacked']).describe('Presentation mode');\nconst _BreakpointSchema = z.enum(['initial', 'xs', 'sm', 'md', 'lg', 'xl']).describe('Responsive breakpoint');\nconst PaneTargetSchema = z.enum(['left', 'rail', 'panel', 'sidebar', 'inspector', 'bottom']).describe('Pane target. `left` is deprecated: use `rail`.');\nconst TriggerActionSchema = z.enum(['toggle', 'expand', 'collapse']).describe('Trigger action');\nconst OpenChangeReasonSchema = z.enum(['toggle', 'dismiss']).describe('Why the state changed: `toggle` for a trigger or the resize handle, `dismiss` for Escape or the scrim');\nconst SizeChangeReasonSchema = z.enum(['init', 'resize', 'controlled']).describe('Why the size changed');\n\nfunction responsive<T extends z.ZodTypeAny>(value: T) {\n return z.union([\n value,\n z.object({\n initial: value.optional(),\n xs: value.optional(),\n sm: value.optional(),\n md: value.optional(),\n lg: value.optional(),\n xl: value.optional(),\n }),\n ]);\n}\n\n// Responsive schemas\nconst _ResponsiveModeSchema = responsive(PaneModeSchema).describe('Responsive pane mode configuration');\nconst ResponsiveSidebarModeSchema = responsive(SidebarModeSchema).describe('Responsive sidebar state');\nconst ResponsivePresentationSchema = responsive(PresentationValueSchema).describe('Responsive presentation configuration');\nconst ResponsiveOpenSchema = responsive(z.boolean()).describe('Responsive open state');\n\n// Size persistence adapter (deprecated)\nconst PaneSizePersistenceSchema = z\n .object({\n load: z.function({ output: z.union([z.number(), z.promise(z.number()), z.undefined()]) }).optional(),\n save: z.function({ input: [z.number()], output: z.union([z.void(), z.promise(z.void())]) }).optional(),\n })\n .describe('Deprecated, removed in 1.0. Keep the size in your own state with `size`/`onSizeChange`.');\n\nconst StyleSchema = z\n .record(z.string(), z.union([z.string(), z.number()]))\n .optional()\n .describe('Inline styles');\n\nconst OpenPropsSchema = {\n open: z.union([z.boolean(), ResponsiveOpenSchema]).optional().describe('The open state, when controlled. A responsive object is deprecated.'),\n defaultOpen: z\n .union([z.boolean(), ResponsiveOpenSchema])\n .optional()\n .describe('The starting state. A responsive object leaves the pane untouched, with that object as the answer at each breakpoint.'),\n onOpenChange: z\n .function({ input: [z.boolean(), z.object({ reason: OpenChangeReasonSchema })], output: z.void() })\n .optional()\n .describe('Called when a user opens or closes the pane. Never called on mount or on a resize.'),\n};\n\n// Props shared by every pane\nconst PaneBaseShape = {\n id: z.string().optional().describe('The pane id. A Trigger points `aria-controls` at it.'),\n presentation: ResponsivePresentationSchema.optional(),\n expandedSize: z.number().optional(),\n inset: z.boolean().optional().describe('Lifts the pane off the frame and paints the backdrop behind it'),\n onExpand: z.function({ output: z.void() }).optional().describe('Deprecated: use `onOpenChange`'),\n onCollapse: z.function({ output: z.void() }).optional().describe('Deprecated: use `onOpenChange`'),\n className: z.string().optional().describe('Additional CSS class name'),\n style: StyleSchema,\n children: z.any().optional(),\n};\n\n// Props of a pane that resizes\nconst ResizeShape = {\n minSize: z.number().optional(),\n maxSize: z.number().optional().describe('The largest size. A drag also stops before the handle leaves the frame.'),\n resizable: z.boolean().optional(),\n collapsible: z.boolean().optional().describe('A double-click on the handle closes the pane'),\n size: z.union([z.number(), z.string()]).optional().describe('The size, when controlled'),\n defaultSize: z.union([z.number(), z.string()]).optional().describe('The starting size'),\n onSizeChange: z.function({ input: [z.number(), z.object({ reason: SizeChangeReasonSchema })], output: z.void() }).optional(),\n sizeUpdate: z\n .enum(['throttle', 'debounce'])\n .optional()\n .describe('Rate-limits onSizeChange across repeated resize ends, such as key presses on the handle. A drag calls it once, when the drag ends; use onResize for live sizes.'),\n sizeUpdateMs: z.number().optional(),\n onResize: z\n .function({ input: [z.number()], output: z.void() })\n .optional()\n .describe('Called during a drag, at most once per animation frame'),\n onResizeStart: z.function({ input: [z.number()], output: z.void() }).optional(),\n onResizeEnd: z.function({ input: [z.number()], output: z.void() }).optional(),\n snapPoints: z.array(z.number()).optional().describe('Deprecated, removed in 1.0'),\n snapTolerance: z.number().optional().describe('Deprecated, removed in 1.0'),\n collapseThreshold: z.number().optional().describe('Deprecated, removed in 1.0'),\n paneId: z.string().optional().describe('Deprecated, removed in 1.0'),\n persistence: PaneSizePersistenceSchema.optional(),\n};\n\n/**\n * Shell.Root component schema\n */\nexport const ShellRootSchema = z\n .object({\n height: z\n .union([z.literal('full'), z.literal('auto'), z.string(), z.number()])\n .default('full')\n .describe('Height of the frame. `full` is 100dvh, with 100vh where dvh is not supported.'),\n className: z.string().optional().describe('Additional CSS class name'),\n style: StyleSchema,\n children: z.any().optional().describe('The Shell parts, and anything else, rendered in order'),\n })\n .strict();\n\n/**\n * Shell.Header component schema\n */\nexport const ShellHeaderSchema = z\n .object({\n height: z.number().default(64).describe('Height of the header, in pixels'),\n className: z.string().optional().describe('Additional CSS class name'),\n style: StyleSchema,\n children: z.any().optional().describe('Header content'),\n })\n .strict();\n\n/**\n * Shell.Rail component schema\n */\nexport const ShellRailSchema = z\n .object({\n ...PaneBaseShape,\n ...OpenPropsSchema,\n presentation: ResponsivePresentationSchema.default('fixed').describe('Presentation mode'),\n expandedSize: z.number().default(64).describe('Width in pixels'),\n collapsible: z.boolean().optional(),\n })\n .strict();\n\n/**\n * Shell.Panel component schema\n */\nexport const ShellPanelSchema = z\n .object({\n ...PaneBaseShape,\n ...OpenPropsSchema,\n ...ResizeShape,\n presentation: ResponsivePresentationSchema.optional().describe(\"Presentation mode. With no value the panel follows the Rail's.\"),\n expandedSize: z.number().default(288).describe('Open width in pixels'),\n minSize: z.number().default(100).describe('Minimum width when resizing'),\n maxSize: z.number().default(800).describe('Maximum width when resizing'),\n resizable: z.boolean().default(false).describe('Whether the panel can be resized'),\n collapsible: z.boolean().default(true).describe('Whether a double-click on the handle closes the panel'),\n })\n .strict();\n\n/**\n * Shell.Sidebar component schema\n */\nexport const ShellSidebarSchema = z\n .object({\n ...PaneBaseShape,\n ...ResizeShape,\n state: z.union([SidebarModeSchema, ResponsiveSidebarModeSchema]).optional().describe('The state, when controlled. A responsive object is deprecated.'),\n defaultState: ResponsiveSidebarModeSchema.optional().describe('The starting state. With no value the sidebar is open where it is in the frame and closed where it is an overlay.'),\n onStateChange: z\n .function({ input: [SidebarModeSchema, z.object({ reason: OpenChangeReasonSchema })], output: z.void() })\n .optional()\n .describe('Called when a user changes the state. Never called on mount or on a resize.'),\n presentation: ResponsivePresentationSchema.default({ initial: 'overlay', sm: 'fixed' }).describe('Presentation mode'),\n expandedSize: z.number().default(288).describe('Open width in pixels'),\n minSize: z.number().default(200).describe('Minimum width when resizing'),\n maxSize: z.number().default(400).describe('Maximum width when resizing'),\n thinSize: z.number().default(64).describe('Width in the thin state'),\n toggleModes: z.enum(['both', 'single']).default('both').describe('`both` goes collapsed, thin, expanded; `single` goes between collapsed and one open state'),\n resizable: z.boolean().default(false).describe('Whether the sidebar can be resized'),\n collapsible: z.boolean().default(true).describe('Whether a double-click on the handle closes the sidebar'),\n })\n .strict();\n\n/**\n * Shell.Content component schema\n */\nexport const ShellContentSchema = z\n .object({\n inset: z.boolean().optional().describe('Lifts the pane off the frame and paints the backdrop behind it'),\n className: z.string().optional().describe('Additional CSS class name'),\n style: StyleSchema,\n children: z.any().optional().describe('Main content'),\n })\n .strict();\n\n/**\n * Shell.Inspector component schema\n */\nexport const ShellInspectorSchema = z\n .object({\n ...PaneBaseShape,\n ...OpenPropsSchema,\n ...ResizeShape,\n presentation: ResponsivePresentationSchema.default({ initial: 'overlay', sm: 'fixed' }).describe('Presentation mode'),\n expandedSize: z.number().default(320).describe('Open width in pixels'),\n minSize: z.number().default(200).describe('Minimum width when resizing'),\n maxSize: z.number().default(500).describe('Maximum width when resizing'),\n resizable: z.boolean().default(false).describe('Whether the inspector can be resized'),\n collapsible: z.boolean().default(true).describe('Whether a double-click on the handle closes the inspector'),\n })\n .strict();\n\n/**\n * Shell.Bottom component schema\n */\nexport const ShellBottomSchema = z\n .object({\n ...PaneBaseShape,\n ...OpenPropsSchema,\n ...ResizeShape,\n presentation: ResponsivePresentationSchema.default('fixed').describe('Presentation mode'),\n expandedSize: z.number().default(200).describe('Open height in pixels'),\n minSize: z.number().default(100).describe('Minimum height when resizing'),\n maxSize: z.number().default(400).describe('Maximum height when resizing'),\n resizable: z.boolean().default(false).describe('Whether the bottom panel can be resized'),\n collapsible: z.boolean().default(true).describe('Whether a double-click on the handle closes the panel'),\n })\n .strict();\n\n/**\n * Shell.Trigger component schema\n */\nexport const ShellTriggerSchema = z\n .object({\n target: PaneTargetSchema.describe('Which pane to drive'),\n action: TriggerActionSchema.default('toggle').describe('Action to perform'),\n peekOnHover: z.boolean().default(false).describe('Deprecated, removed in 1.0. Shows a preview of a closed pane on hover.'),\n type: z.enum(['button', 'submit', 'reset']).default('button').describe('The button type'),\n className: z.string().optional().describe('Additional CSS class name'),\n style: StyleSchema,\n children: z.any().optional().describe('Trigger content'),\n onClick: z.function().optional().describe('Runs before the trigger acts. Call `event.preventDefault()` to cancel it.'),\n onMouseEnter: z.function().optional().describe('Mouse enter handler'),\n onMouseLeave: z.function().optional().describe('Mouse leave handler'),\n 'aria-label': z.string().optional().describe('ARIA label for accessibility'),\n 'aria-labelledby': z.string().optional().describe('ARIA labelled by reference'),\n 'aria-describedby': z.string().optional().describe('ARIA described by reference'),\n })\n .strict();\n\n/**\n * Shell.Handle component schema (for resize handles)\n */\nexport const ShellHandleSchema = z\n .object({\n className: z.string().optional().describe('Additional CSS class name'),\n style: StyleSchema,\n children: z.any().optional().describe('Handle content'),\n })\n .strict();\n\n// Type exports\nexport type ShellRootProps = z.infer<typeof ShellRootSchema>;\nexport type ShellHeaderProps = z.infer<typeof ShellHeaderSchema>;\nexport type ShellRailProps = z.infer<typeof ShellRailSchema>;\nexport type ShellPanelProps = z.infer<typeof ShellPanelSchema>;\nexport type ShellSidebarProps = z.infer<typeof ShellSidebarSchema>;\nexport type ShellContentProps = z.infer<typeof ShellContentSchema>;\nexport type ShellInspectorProps = z.infer<typeof ShellInspectorSchema>;\nexport type ShellBottomProps = z.infer<typeof ShellBottomSchema>;\nexport type ShellTriggerProps = z.infer<typeof ShellTriggerSchema>;\nexport type ShellHandleProps = z.infer<typeof ShellHandleSchema>;\n\n// Common type exports\nexport type PaneMode = z.infer<typeof PaneModeSchema>;\nexport type SidebarMode = z.infer<typeof SidebarModeSchema>;\nexport type PresentationValue = z.infer<typeof PresentationValueSchema>;\nexport type Breakpoint = z.infer<typeof _BreakpointSchema>;\nexport type PaneTarget = z.infer<typeof PaneTargetSchema>;\nexport type TriggerAction = z.infer<typeof TriggerActionSchema>;\nexport type ResponsiveMode = z.infer<typeof _ResponsiveModeSchema>;\nexport type ResponsiveSidebarMode = z.infer<typeof ResponsiveSidebarModeSchema>;\nexport type ResponsivePresentation = z.infer<typeof ResponsivePresentationSchema>;\nexport type PaneSizePersistence = z.infer<typeof PaneSizePersistenceSchema>;\n\n/**\n * Development-only helper to validate and normalize Shell props\n * This function should only be used in development mode\n *\n * @param props - Props to validate and normalize\n * @returns Validated and normalized props\n *\n * @example\n * ```tsx\n * // In development, this will validate props and show helpful errors\n * const validatedProps = parseShellRootProps({ height: 'invalid' });\n * // Throws validation errors for invalid values\n * ```\n */\nexport function parseShellRootProps(props: unknown): ShellRootProps {\n if (process.env.NODE_ENV === 'development') {\n return ShellRootSchema.parse(props);\n }\n return props as ShellRootProps;\n}\n\nexport function parseShellHeaderProps(props: unknown): ShellHeaderProps {\n if (process.env.NODE_ENV === 'development') {\n return ShellHeaderSchema.parse(props);\n }\n return props as ShellHeaderProps;\n}\n\nexport function parseShellRailProps(props: unknown): ShellRailProps {\n if (process.env.NODE_ENV === 'development') {\n return ShellRailSchema.parse(props);\n }\n return props as ShellRailProps;\n}\n\nexport function parseShellPanelProps(props: unknown): ShellPanelProps {\n if (process.env.NODE_ENV === 'development') {\n return ShellPanelSchema.parse(props);\n }\n return props as ShellPanelProps;\n}\n\nexport function parseShellSidebarProps(props: unknown): ShellSidebarProps {\n if (process.env.NODE_ENV === 'development') {\n return ShellSidebarSchema.parse(props);\n }\n return props as ShellSidebarProps;\n}\n\nexport function parseShellContentProps(props: unknown): ShellContentProps {\n if (process.env.NODE_ENV === 'development') {\n return ShellContentSchema.parse(props);\n }\n return props as ShellContentProps;\n}\n\nexport function parseShellInspectorProps(props: unknown): ShellInspectorProps {\n if (process.env.NODE_ENV === 'development') {\n return ShellInspectorSchema.parse(props);\n }\n return props as ShellInspectorProps;\n}\n\nexport function parseShellBottomProps(props: unknown): ShellBottomProps {\n if (process.env.NODE_ENV === 'development') {\n return ShellBottomSchema.parse(props);\n }\n return props as ShellBottomProps;\n}\n\nexport function parseShellTriggerProps(props: unknown): ShellTriggerProps {\n if (process.env.NODE_ENV === 'development') {\n return ShellTriggerSchema.parse(props);\n }\n return props as ShellTriggerProps;\n}\n\nexport function parseShellHandleProps(props: unknown): ShellHandleProps {\n if (process.env.NODE_ENV === 'development') {\n return ShellHandleSchema.parse(props);\n }\n return props as ShellHandleProps;\n}\n"],
5
- "mappings": "AAAA,OAAS,KAAAA,MAAS,MAsBlB,IAAMC,EAAiBD,EAAE,KAAK,CA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C,CAI5E,OAAOA,CACT,CAEO,SAASO,EAAsBP,EAAkC,CAItE,OAAOA,CACT,CAEO,SAASQ,EAAuBR,EAAmC,CAIxE,OAAOA,CACT,CAEO,SAASS,EAAsBT,EAAkC,CAItE,OAAOA,CACT",
6
- "names": ["z", "PaneModeSchema", "SidebarModeSchema", "PresentationValueSchema", "_BreakpointSchema", "PaneTargetSchema", "TriggerActionSchema", "OpenChangeReasonSchema", "SizeChangeReasonSchema", "responsive", "value", "_ResponsiveModeSchema", "ResponsiveSidebarModeSchema", "ResponsivePresentationSchema", "ResponsiveOpenSchema", "PaneSizePersistenceSchema", "StyleSchema", "OpenPropsSchema", "PaneBaseShape", "ResizeShape", "ShellRootSchema", "ShellHeaderSchema", "ShellRailSchema", "ShellPanelSchema", "ShellSidebarSchema", "ShellContentSchema", "ShellInspectorSchema", "ShellBottomSchema", "ShellTriggerSchema", "ShellHandleSchema", "parseShellRootProps", "props", "parseShellHeaderProps", "parseShellRailProps", "parseShellPanelProps", "parseShellSidebarProps", "parseShellContentProps", "parseShellInspectorProps", "parseShellBottomProps", "parseShellTriggerProps", "parseShellHandleProps"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as i}from"./chunk-3WCSLQNH.js";import{a as r}from"./chunk-6FLLFCBU.js";import{a as e}from"./chunk-GSTOGDAJ.js";import*as t from"react";import l from"classnames";import{Switch as p}from"radix-ui";var w=t.forwardRef((s,a)=>{let{className:c,color:m,panelBackground:f,material:h,...n}=r(s,i,e),o=h||f;return t.createElement(p.Root,{"data-accent-color":m,"data-panel-background":o,"data-material":o,...n,asChild:!1,ref:a,className:l("rt-reset","rt-SwitchRoot",c)},t.createElement(p.Thumb,{className:"rt-SwitchThumb"}))});w.displayName="Switch";export{w as a};
2
- //# sourceMappingURL=chunk-VBAXORVV.js.map
@@ -1,2 +0,0 @@
1
- import{b as e}from"./chunk-KRJTW535.js";var t=["1","2","3","4"],s=["soft"],a=["horizontal","vertical"],r={disabled:{type:"boolean",className:"disabled",default:!1},size:{type:"enum",className:"rt-r-size",values:t,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:s,default:"soft"},orientation:{type:"enum",className:"rt-r-orientation",values:a,default:"horizontal",responsive:!0},material:{type:"enum",values:["solid","translucent"]},panelBackground:{type:"enum",values:["solid","translucent"]},...e};export{r as a};
2
- //# sourceMappingURL=chunk-VJUFYYKP.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/segmented-control.props.tsx"],
4
- "sourcesContent": ["import { radiusPropDef } from '../props/radius.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst variants = ['soft'] as const;\nconst orientations = ['horizontal', 'vertical'] as const;\n\nconst segmentedControlRootPropDefs = {\n disabled: { type: 'boolean', className: 'disabled', default: false },\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'soft' },\n orientation: {\n type: 'enum',\n className: 'rt-r-orientation',\n values: orientations,\n default: 'horizontal',\n responsive: true,\n },\n material: { type: 'enum', values: ['solid', 'translucent'] },\n /** @deprecated Use `material`. Removed in 0.15.0. */\n panelBackground: { type: 'enum', values: ['solid', 'translucent'] },\n ...radiusPropDef,\n} satisfies {\n disabled?: PropDef<boolean>;\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n orientation: PropDef<(typeof orientations)[number]>;\n material: PropDef<'solid' | 'translucent'>;\n panelBackground: PropDef<'solid' | 'translucent'>;\n};\n\nexport { segmentedControlRootPropDefs };\n"],
5
- "mappings": "wCAIA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,EAAW,CAAC,MAAM,EAClBC,EAAe,CAAC,aAAc,UAAU,EAExCC,EAA+B,CACnC,SAAU,CAAE,KAAM,UAAW,UAAW,WAAY,QAAS,EAAM,EACnE,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQH,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,MAAO,EACpF,YAAa,CACX,KAAM,OACN,UAAW,mBACX,OAAQC,EACR,QAAS,aACT,WAAY,EACd,EACA,SAAU,CAAE,KAAM,OAAQ,OAAQ,CAAC,QAAS,aAAa,CAAE,EAE3D,gBAAiB,CAAE,KAAM,OAAQ,OAAQ,CAAC,QAAS,aAAa,CAAE,EAClE,GAAGE,CACL",
6
- "names": ["sizes", "variants", "orientations", "segmentedControlRootPropDefs", "radiusPropDef"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as M}from"./chunk-IVBKTHDM.js";import{a as T}from"./chunk-GFOSP3PZ.js";import{a as D}from"./chunk-K53W3ELO.js";import{a as x}from"./chunk-VX44UTQ5.js";import{a as H}from"./chunk-ERGJN7FJ.js";import{a as w}from"./chunk-6FLLFCBU.js";import{a as N}from"./chunk-GSTOGDAJ.js";import*as e from"react";import k from"classnames";var U=e.forwardRef((o,r)=>{let j=typeof o.width=="number"?o.width:void 0,W=typeof o.height=="number"?o.height:void 0,a="fill"in o&&o.fill===!0,{as:h="img",asChild:V,fill:X,className:y,style:s,loading:O="lazy",alt:z,src:n,placeholder:l,showSkeleton:A=!1,fadeIn:i=!0,loadingAriaLabel:F="Loading image...",errorAriaLabel:G="Failed to load image",radius:_,caption:u,onLoad:P,onError:I,...q}=w(o,T,N,H,x,D),B=h!=="img"?{width:j,height:W,...a?{fill:!0}:{}}:{},[m,p]=e.useState("loading"),[J,c]=e.useState(!!l),v=e.useRef(null),K=e.useCallback(t=>{p("loaded"),c(!1),P?.(t)},[P]),Q=e.useCallback(t=>{p("error"),c(!1),I?.(t)},[I]);if(e.useEffect(()=>{let t=v.current;t&&t.complete&&t.naturalWidth>0&&(p("loaded"),c(!1))},[n]),!n)return console.warn("Image component: src prop is required"),null;let d=m==="loading",g=m==="error",E=m==="loaded",f=a?{display:"block",opacity:i?E?1:0:1,transition:i?"opacity 0.3s ease-out":"none"}:{width:"100%",height:"100%",display:"block",opacity:i?E?1:0:1,transition:i?"opacity 0.3s ease-out":"none"},R=e.createElement(h,{ref:t=>{v.current=t,typeof r=="function"?r(t):r&&(r.current=t)},loading:O,style:a?f:{...f,position:"relative",zIndex:1},className:k("rt-reset","rt-Image"),alt:z,src:n,"data-radius":_,onLoad:K,onError:Q,"aria-busy":d,"aria-invalid":g,"aria-describedby":g?"image-error":void 0,...B,...q}),L=d&&e.createElement("div",{className:"rt-sr-only","aria-live":"polite",role:"status"},F),b=g&&e.createElement("div",{id:"image-error",className:"rt-sr-only","aria-live":"polite",role:"alert"},G),C=A&&d&&e.createElement(M,{width:"100%",height:"100%",style:{position:"absolute",inset:0}}),S=l&&J&&e.createElement("img",{style:{...f,position:"absolute",inset:0,filter:"blur(4px)",opacity:.7,zIndex:0},className:k("rt-reset","rt-Image","rt-Image--placeholder"),alt:"",src:l});if(!u){let t=a?{position:"absolute",inset:0,...s}:{position:"relative",...s};return e.createElement("div",{className:y,style:t},L,b,C,S,R)}return e.createElement("div",{className:y,style:{display:"flex",flexDirection:"column",...s}},e.createElement("div",{style:{position:"relative",flex:"1 1 0%",minHeight:0}},L,b,C,S,R),e.createElement("div",{className:"rt-Image-caption",style:{flex:"0 0 auto"}},u))});U.displayName="Image";export{U as a};
2
- //# sourceMappingURL=chunk-VUKTURU4.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/image.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nimport classNames from 'classnames';\n\nimport { imagePropDefs } from './image.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { marginPropDefs } from '../props/margin.props.js';\nimport { widthPropDefs } from '../props/width.props.js';\nimport { heightPropDefs } from '../props/height.props.js';\nimport { layoutPropDefs } from '../props/layout.props.js';\nimport { Skeleton } from './skeleton.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { WidthProps } from '../props/width.props.js';\nimport type { HeightProps } from '../props/height.props.js';\nimport type { LayoutProps } from '../props/layout.props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype ImageElement = React.ElementRef<'img'>;\n\ntype ImageOwnProps = GetPropDefTypes<typeof imagePropDefs> & {\n /**\n * Native loading behavior for the image\n * @default 'lazy'\n */\n loading?: 'eager' | 'lazy';\n /**\n * Placeholder image URL to show while the main image is loading (LQIP pattern)\n */\n placeholder?: string;\n /**\n * Shows a skeleton placeholder while loading\n */\n showSkeleton?: boolean;\n /**\n * Whether the image should fade in when loaded\n * @default true\n */\n fadeIn?: boolean;\n /**\n * Callback fired when the image successfully loads\n */\n onLoad?: (event: React.SyntheticEvent<HTMLImageElement>) => void;\n /**\n * Callback fired when the image fails to load\n */\n onError?: (event: React.SyntheticEvent<HTMLImageElement>) => void;\n /**\n * Alternative text for the image (required for accessibility)\n */\n alt: string;\n /**\n * Image source URL\n */\n src: string;\n /**\n * When true, the image will fill its parent container (for Next.js Image compatibility).\n * Parent must have `position: relative` and defined dimensions.\n */\n fill?: boolean;\n};\n\ninterface CommonImageProps\n extends MarginProps,\n WidthProps,\n HeightProps,\n LayoutProps,\n ImageOwnProps {}\n\ntype ImageImgProps = { as?: 'img' } & ComponentPropsWithout<'img', RemovedProps | 'color' | 'width' | 'height' | 'alt'>;\ntype ImageComponentProps = { as: React.ComponentType<any> } & Record<string, any>;\ntype ImageProps = CommonImageProps & (ImageImgProps | ImageComponentProps);\n\n/**\n * Image component for displaying images with enhanced loading states and accessibility.\n *\n * Supports polymorphic rendering via the `as` prop for Next.js Image compatibility.\n *\n * @example\n * ```tsx\n * // Basic usage\n * <Image src=\"/photo.jpg\" alt=\"Team photo\" />\n *\n * // With Next.js Image (fixed dimensions)\n * import NextImage from 'next/image';\n * <Image as={NextImage} src=\"/photo.jpg\" alt=\"...\" width={400} height={300} />\n *\n * // With Next.js Image (fill mode - parent needs position: relative and dimensions)\n * <div style={{ position: 'relative', width: '100%', aspectRatio: '16/9' }}>\n * <Image as={NextImage} src=\"/photo.jpg\" alt=\"...\" fill />\n * </div>\n *\n * // With placeholder and skeleton\n * <Image\n * src=\"/high-res.jpg\"\n * placeholder=\"/low-res.jpg\"\n * showSkeleton\n * alt=\"Product showcase\"\n * />\n *\n * // With caption\n * <Image\n * src=\"/chart.png\"\n * alt=\"Sales data visualization\"\n * caption=\"Q3 2024 Sales Performance\"\n * />\n * ```\n */\nconst Image = React.forwardRef<ImageElement, ImageProps>((props, forwardedRef) => {\n // Extract native width/height before extractProps consumes them (for Next.js Image compatibility)\n const nativeWidth = typeof props.width === 'number' ? props.width : undefined;\n const nativeHeight = typeof props.height === 'number' ? props.height : undefined;\n // Check if fill prop is used (for Next.js Image compatibility)\n const hasFill = 'fill' in props && props.fill === true;\n\n const {\n as: Component = 'img',\n asChild: _asChild, // Extract to prevent passing to DOM element\n fill: _fill, // Extract to prevent passing to native img element (only used for custom components)\n className,\n style,\n loading = 'lazy',\n alt,\n src,\n placeholder,\n showSkeleton = false,\n fadeIn = true,\n loadingAriaLabel = 'Loading image...',\n errorAriaLabel = 'Failed to load image',\n radius,\n caption,\n onLoad: userOnLoad,\n onError: userOnError,\n ...restProps\n } = extractProps(\n props,\n imagePropDefs,\n marginPropDefs,\n widthPropDefs,\n heightPropDefs,\n layoutPropDefs,\n );\n\n // When using a custom component (like Next.js Image), pass native width/height and fill\n const isCustomComponent = Component !== 'img';\n const componentDimensionProps = isCustomComponent\n ? { width: nativeWidth, height: nativeHeight, ...(hasFill ? { fill: true } : {}) }\n : {};\n\n const [loadingState, setLoadingState] = React.useState<'loading' | 'loaded' | 'error'>('loading');\n const [showPlaceholder, setShowPlaceholder] = React.useState(!!placeholder);\n const imgRef = React.useRef<HTMLImageElement>(null);\n\n const handleLoad = React.useCallback(\n (event: React.SyntheticEvent<HTMLImageElement>) => {\n setLoadingState('loaded');\n setShowPlaceholder(false);\n userOnLoad?.(event);\n },\n [userOnLoad],\n );\n\n const handleError = React.useCallback(\n (event: React.SyntheticEvent<HTMLImageElement>) => {\n setLoadingState('error');\n setShowPlaceholder(false);\n userOnError?.(event);\n },\n [userOnError],\n );\n\n // Check if image is already cached\n React.useEffect(() => {\n const img = imgRef.current;\n if (img && img.complete && img.naturalWidth > 0) {\n setLoadingState('loaded');\n setShowPlaceholder(false);\n }\n }, [src]);\n\n if (!src) {\n console.warn('Image component: src prop is required');\n return null;\n }\n\n const isLoading = loadingState === 'loading';\n const isError = loadingState === 'error';\n const isLoaded = loadingState === 'loaded';\n\n // When using fill (Next.js Image), don't add dimension/position styles as Next.js handles them\n const imgStyle: React.CSSProperties = hasFill\n ? {\n display: 'block',\n opacity: fadeIn ? (isLoaded ? 1 : 0) : 1,\n transition: fadeIn ? 'opacity 0.3s ease-out' : 'none',\n }\n : {\n width: '100%',\n height: '100%',\n display: 'block',\n opacity: fadeIn ? (isLoaded ? 1 : 0) : 1,\n transition: fadeIn ? 'opacity 0.3s ease-out' : 'none',\n };\n\n const mergeRefs = (node: HTMLImageElement | null) => {\n (imgRef as React.RefObject<HTMLImageElement | null>).current = node;\n if (typeof forwardedRef === 'function') {\n forwardedRef(node);\n } else if (forwardedRef) {\n forwardedRef.current = node;\n }\n };\n\n const imageElement = (\n <Component\n ref={mergeRefs}\n loading={loading}\n style={hasFill ? imgStyle : { ...imgStyle, position: 'relative', zIndex: 1 }}\n className={classNames('rt-reset', 'rt-Image')}\n alt={alt}\n src={src}\n data-radius={radius}\n onLoad={handleLoad}\n onError={handleError}\n aria-busy={isLoading}\n aria-invalid={isError}\n aria-describedby={isError ? 'image-error' : undefined}\n {...componentDimensionProps}\n {...restProps}\n />\n );\n\n const loadingAnnouncement = isLoading && (\n <div className=\"rt-sr-only\" aria-live=\"polite\" role=\"status\">\n {loadingAriaLabel}\n </div>\n );\n\n const errorAnnouncement = isError && (\n <div id=\"image-error\" className=\"rt-sr-only\" aria-live=\"polite\" role=\"alert\">\n {errorAriaLabel}\n </div>\n );\n\n const skeletonElement = showSkeleton && isLoading && (\n <Skeleton width=\"100%\" height=\"100%\" style={{ position: 'absolute', inset: 0 }} />\n );\n\n const placeholderElement = placeholder && showPlaceholder && (\n <img\n style={{\n ...imgStyle,\n position: 'absolute',\n inset: 0,\n filter: 'blur(4px)',\n opacity: 0.7,\n zIndex: 0,\n }}\n className={classNames('rt-reset', 'rt-Image', 'rt-Image--placeholder')}\n alt=\"\"\n src={placeholder}\n />\n );\n\n // Simple flat structure when no caption\n if (!caption) {\n // When using fill, wrapper uses absolute positioning to fill the nearest positioned ancestor\n const wrapperStyle: React.CSSProperties = hasFill\n ? { position: 'absolute', inset: 0, ...style }\n : { position: 'relative', ...style };\n return (\n <div className={className} style={wrapperStyle}>\n {loadingAnnouncement}\n {errorAnnouncement}\n {skeletonElement}\n {placeholderElement}\n {imageElement}\n </div>\n );\n }\n\n // Flexbox structure when caption is present\n return (\n <div\n className={className}\n style={{\n display: 'flex',\n flexDirection: 'column',\n ...style,\n }}\n >\n <div\n style={{\n position: 'relative',\n flex: '1 1 0%',\n minHeight: 0,\n }}\n >\n {loadingAnnouncement}\n {errorAnnouncement}\n {skeletonElement}\n {placeholderElement}\n {imageElement}\n </div>\n\n <div className=\"rt-Image-caption\" style={{ flex: '0 0 auto' }}>\n {caption}\n </div>\n </div>\n );\n});\n\nImage.displayName = 'Image';\n\nexport { Image };\nexport type { ImageProps };\n"],
5
- "mappings": "wRAAA,UAAYA,MAAW,QACvB,OAAOC,MAAgB,aA2GvB,IAAMC,EAAc,aAAqC,CAACC,EAAOC,IAAiB,CAEhF,IAAMC,EAAc,OAAOF,EAAM,OAAU,SAAWA,EAAM,MAAQ,OAC9DG,EAAe,OAAOH,EAAM,QAAW,SAAWA,EAAM,OAAS,OAEjEI,EAAU,SAAUJ,GAASA,EAAM,OAAS,GAE5C,CACJ,GAAIK,EAAY,MAChB,QAASC,EACT,KAAMC,EACN,UAAAC,EACA,MAAAC,EACA,QA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OACC,MAAO,CACL,SAAU,WACV,KAAM,SACN,UAAW,CACb,GAECqC,EACAC,EACAC,EACAE,EACAP,CACH,EAEA,gBAAC,OAAI,UAAU,mBAAmB,MAAO,CAAE,KAAM,UAAW,GACzDxB,CACH,CACF,CAEJ,CAAC,EAEDpB,EAAM,YAAc",
6
- "names": ["React", "classNames", "Image", "props", "forwardedRef", "nativeWidth", "nativeHeight", "hasFill", "Component", "_asChild", "_fill", "className", "style", "loading", "alt", "src", "placeholder", "showSkeleton", "fadeIn", "loadingAriaLabel", "errorAriaLabel", "radius", "caption", "userOnLoad", "userOnError", "restProps", "extractProps", "imagePropDefs", "marginPropDefs", "widthPropDefs", "heightPropDefs", "layoutPropDefs", "componentDimensionProps", "loadingState", "setLoadingState", "showPlaceholder", "setShowPlaceholder", "imgRef", "handleLoad", "event", "handleError", "img", "isLoading", "isError", "isLoaded", "imgStyle", "imageElement", "node", "classNames", "loadingAnnouncement", "errorAnnouncement", "skeletonElement", "Skeleton", "placeholderElement", "wrapperStyle"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as e}from"./chunk-AVFGMLL4.js";import{c as s}from"./chunk-Z4DTHR2S.js";var a=["1","2","3"],r=["raised","solid","soft","outline","surface","classic"],t=["solid","translucent"],n={size:{type:"enum",className:"rt-r-size",values:a,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:r,default:"raised",parseValue:e},material:{type:"enum",values:t,default:void 0},...s};export{n as a};
2
- //# sourceMappingURL=chunk-WDNTAQ6G.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/_internal/base-radio.props.ts"],
4
- "sourcesContent": ["import { parseVariant } from '../../helpers/parse-variant.js';\nimport { colorPropDef } from '../../props/color.prop.js';\n\nimport type { PropDef } from '../../props/prop-def.js';\n\nconst sizes = ['1', '2', '3'] as const;\nconst variants = ['raised', 'solid', 'soft', 'outline', 'surface', 'classic'] as const;\nconst materials = ['solid', 'translucent'] as const;\n\nconst baseRadioPropDefs = {\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'raised', parseValue: parseVariant },\n material: { type: 'enum', values: materials, default: undefined },\n ...colorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n material: PropDef<(typeof materials)[number] | undefined>;\n};\n\nexport { baseRadioPropDefs };\n"],
5
- "mappings": "gFAKA,IAAMA,EAAQ,CAAC,IAAK,IAAK,GAAG,EACtBC,EAAW,CAAC,SAAU,QAAS,OAAQ,UAAW,UAAW,SAAS,EACtEC,EAAY,CAAC,QAAS,aAAa,EAEnCC,EAAoB,CACxB,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQH,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,SAAU,WAAYG,CAAa,EAChH,SAAU,CAAE,KAAM,OAAQ,OAAQF,EAAW,QAAS,MAAU,EAChE,GAAGG,CACL",
6
- "names": ["sizes", "variants", "materials", "baseRadioPropDefs", "parseVariant", "colorPropDef"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as o}from"./chunk-VX44UTQ5.js";import{a as e}from"./chunk-ERGJN7FJ.js";import{a as t}from"./chunk-NZJGC6ZW.js";var r=["1","2","3","4"],p=["solid","translucent"],f={...t,size:{type:"enum",className:"rt-r-size",values:r,default:"2",responsive:!0},material:{type:"enum",values:p,default:void 0},panelBackground:{type:"enum",values:p,default:void 0},width:e.width,minWidth:e.minWidth,maxWidth:{...e.maxWidth,default:"480px"},...o};export{f as a};
2
- //# sourceMappingURL=chunk-WHAKQCNV.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/popover.props.tsx"],
4
- "sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { heightPropDefs } from '../props/height.props.js';\nimport { widthPropDefs } from '../props/width.props.js';\n\nimport type { PropDef, GetPropDefTypes } from '../props/prop-def.js';\n\nconst contentSizes = ['1', '2', '3', '4'] as const;\nconst panelBackgrounds = ['solid', 'translucent'] as const;\n\nconst popoverContentPropDefs = {\n ...asChildPropDef,\n size: {\n type: 'enum',\n className: 'rt-r-size',\n values: contentSizes,\n default: '2',\n responsive: true,\n },\n material: { type: 'enum', values: panelBackgrounds, default: undefined },\n /** @deprecated Use `material`. Removed in 0.15.0. */\n panelBackground: { type: 'enum', values: panelBackgrounds, default: undefined },\n width: widthPropDefs.width,\n minWidth: widthPropDefs.minWidth,\n maxWidth: { ...widthPropDefs.maxWidth, default: '480px' },\n ...heightPropDefs,\n} satisfies {\n width: PropDef<string>;\n minWidth: PropDef<string>;\n maxWidth: PropDef<string>;\n size: PropDef<(typeof contentSizes)[number]>;\n material: PropDef<(typeof panelBackgrounds)[number] | undefined>;\n panelBackground: PropDef<(typeof panelBackgrounds)[number] | undefined>;\n};\n\ntype PopoverContentOwnProps = GetPropDefTypes<\n typeof popoverContentPropDefs &\n typeof asChildPropDef &\n typeof widthPropDefs &\n typeof heightPropDefs\n>;\n\nexport { popoverContentPropDefs };\nexport type { PopoverContentOwnProps };\n"],
5
- "mappings": "wHAMA,IAAMA,EAAe,CAAC,IAAK,IAAK,IAAK,GAAG,EAClCC,EAAmB,CAAC,QAAS,aAAa,EAE1CC,EAAyB,CAC7B,GAAGC,EACH,KAAM,CACJ,KAAM,OACN,UAAW,YACX,OAAQH,EACR,QAAS,IACT,WAAY,EACd,EACA,SAAU,CAAE,KAAM,OAAQ,OAAQC,EAAkB,QAAS,MAAU,EAEvE,gBAAiB,CAAE,KAAM,OAAQ,OAAQA,EAAkB,QAAS,MAAU,EAC9E,MAAOG,EAAc,MACrB,SAAUA,EAAc,SACxB,SAAU,CAAE,GAAGA,EAAc,SAAU,QAAS,OAAQ,EACxD,GAAGC,CACL",
6
- "names": ["contentSizes", "panelBackgrounds", "popoverContentPropDefs", "asChildPropDef", "widthPropDefs", "heightPropDefs"]
7
- }
@@ -1,2 +0,0 @@
1
- import{c as e}from"./chunk-Z4DTHR2S.js";var r=["1","2","3","4"],a=["nowrap","wrap","wrap-reverse"],n=["start","center","end"],s=["solid","translucent"],o={size:{type:"enum",className:"rt-r-size",values:r,default:"2",responsive:!0},wrap:{type:"enum",className:"rt-r-fw",values:a,responsive:!0},justify:{type:"enum",className:"rt-r-jc",values:n,responsive:!0},...e,material:{type:"enum",values:s,default:void 0},panelBackground:{type:"enum",values:s,default:void 0}};export{o as a};
2
- //# sourceMappingURL=chunk-WTXQB2EV.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/_internal/base-tab-list.props.ts"],
4
- "sourcesContent": ["import { colorPropDef } from '../../props/color.prop.js';\n\nimport type { PropDef } from '../../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst wrapValues = ['nowrap', 'wrap', 'wrap-reverse'] as const;\nconst justifyValues = ['start', 'center', 'end'] as const;\nconst panelBackgrounds = ['solid', 'translucent'] as const;\n\nconst baseTabListPropDefs = {\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n wrap: {\n type: 'enum',\n className: 'rt-r-fw',\n values: wrapValues,\n responsive: true,\n },\n justify: {\n type: 'enum',\n className: 'rt-r-jc',\n values: justifyValues,\n responsive: true,\n },\n ...colorPropDef,\n material: { type: 'enum', values: panelBackgrounds, default: undefined },\n /** @deprecated Use `material`. Removed in 0.15.0. */\n panelBackground: { type: 'enum', values: panelBackgrounds, default: undefined },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n wrap: PropDef<(typeof wrapValues)[number]>;\n justify: PropDef<(typeof justifyValues)[number]>;\n material: PropDef<(typeof panelBackgrounds)[number] | undefined>;\n panelBackground: PropDef<(typeof panelBackgrounds)[number] | undefined>;\n};\n\nexport { baseTabListPropDefs };\n"],
5
- "mappings": "wCAIA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,EAAa,CAAC,SAAU,OAAQ,cAAc,EAC9CC,EAAgB,CAAC,QAAS,SAAU,KAAK,EACzCC,EAAmB,CAAC,QAAS,aAAa,EAE1CC,EAAsB,CAC1B,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQJ,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,KAAM,CACJ,KAAM,OACN,UAAW,UACX,OAAQC,EACR,WAAY,EACd,EACA,QAAS,CACP,KAAM,OACN,UAAW,UACX,OAAQC,EACR,WAAY,EACd,EACA,GAAGG,EACH,SAAU,CAAE,KAAM,OAAQ,OAAQF,EAAkB,QAAS,MAAU,EAEvE,gBAAiB,CAAE,KAAM,OAAQ,OAAQA,EAAkB,QAAS,MAAU,CAChF",
6
- "names": ["sizes", "wrapValues", "justifyValues", "panelBackgrounds", "baseTabListPropDefs", "colorPropDef"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as e}from"./chunk-NZJGC6ZW.js";import{a as s}from"./chunk-AVFGMLL4.js";var r=["1","2","3","4","5","6","7","8","9"],a=["raised","soft","classic"],i={...e,size:{type:"enum",className:"rt-r-size",values:r,responsive:!0},variant:{type:"enum",className:"rt-variant",values:a,default:"raised",parseValue:s}};export{i as a};
2
- //# sourceMappingURL=chunk-XILM2OMC.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/kbd.props.tsx"],
4
- "sourcesContent": ["import { parseVariant } from '../helpers/parse-variant.js';\nimport { asChildPropDef } from '../props/as-child.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4', '5', '6', '7', '8', '9'] as const;\nconst variants = ['raised', 'soft', 'classic'] as const;\n\nconst kbdPropDefs = {\n ...asChildPropDef,\n size: {\n type: 'enum',\n className: 'rt-r-size',\n values: sizes,\n responsive: true,\n },\n variant: {\n type: 'enum',\n className: 'rt-variant',\n values: variants,\n default: 'raised',\n parseValue: parseVariant,\n },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n};\n\nexport { kbdPropDefs };\n"],
5
- "mappings": "gFAKA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,GAAG,EACpDC,EAAW,CAAC,SAAU,OAAQ,SAAS,EAEvCC,EAAc,CAClB,GAAGC,EACH,KAAM,CACJ,KAAM,OACN,UAAW,YACX,OAAQH,EACR,WAAY,EACd,EACA,QAAS,CACP,KAAM,OACN,UAAW,aACX,OAAQC,EACR,QAAS,SACT,WAAYG,CACd,CACF",
6
- "names": ["sizes", "variants", "kbdPropDefs", "asChildPropDef", "parseVariant"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as e}from"./chunk-GCUGJXI2.js";var t=["solid","translucent"],r={...e,material:{type:"enum",values:t,default:void 0}};export{r as a};
2
- //# sourceMappingURL=chunk-XKBLNVOD.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/shell.types.ts"],
4
- "sourcesContent": ["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": "AAuDO,IAAMA,EAAe,CAC1B,GAAI,qBACJ,GAAI,qBACJ,GAAI,sBACJ,GAAI,sBACJ,GAAI,qBACN,EAKaC,EAA2C,CAAC,UAAW,KAAM,KAAM,KAAM,KAAM,IAAI",
6
- "names": ["_BREAKPOINTS", "SHELL_BREAKPOINTS"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as p}from"./chunk-FD2TR343.js";import{b as e}from"./chunk-ZWZGUBL4.js";import{a as t}from"./chunk-WYADYDPN.js";import{a as s}from"./chunk-ZE2KAVXW.js";import{a as o}from"./chunk-NZJGC6ZW.js";import{e as r}from"./chunk-Z4DTHR2S.js";var a=["1","2","3","4","5","6","7","8","9"],i=["solid","soft","outline","ghost"],P={...o,size:{type:"enum",className:"rt-r-size",values:a,responsive:!0},variant:{type:"enum",className:"rt-variant",values:i,default:"soft"},...p,...r,...e,...s,...t};export{P as a};
2
- //# sourceMappingURL=chunk-YBS2IB7Z.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/code.props.tsx"],
4
- "sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { grayAccentColorPropDef } from '../props/color.prop.js';\nimport { emphasisPropDef } from '../props/emphasis.prop.js';\nimport { textWrapPropDef } from '../props/text-wrap.prop.js';\nimport { truncatePropDef } from '../props/truncate.prop.js';\nimport { weightPropDef } from '../props/weight.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4', '5', '6', '7', '8', '9'] as const;\nconst variants = ['solid', 'soft', 'outline', 'ghost'] as const;\n\nconst codePropDefs = {\n ...asChildPropDef,\n size: {\n type: 'enum',\n className: 'rt-r-size',\n values: sizes,\n responsive: true,\n },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'soft' },\n ...weightPropDef,\n ...grayAccentColorPropDef,\n ...emphasisPropDef,\n ...truncatePropDef,\n ...textWrapPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n};\n\nexport { codePropDefs };\n"],
5
- "mappings": "gPASA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,GAAG,EACpDC,EAAW,CAAC,QAAS,OAAQ,UAAW,OAAO,EAE/CC,EAAe,CACnB,GAAGC,EACH,KAAM,CACJ,KAAM,OACN,UAAW,YACX,OAAQH,EACR,WAAY,EACd,EACA,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,MAAO,EACpF,GAAGG,EACH,GAAGC,EACH,GAAGC,EACH,GAAGC,EACH,GAAGC,CACL",
6
- "names": ["sizes", "variants", "codePropDefs", "asChildPropDef", "weightPropDef", "grayAccentColorPropDef", "emphasisPropDef", "truncatePropDef", "textWrapPropDef"]
7
- }