@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 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/link.tsx", "../../../src/components/text.tsx", "../../../src/helpers/extract-props.ts", "../../../src/helpers/compile-prop-defs.ts", "../../../src/props/prop-def.ts", "../../../src/helpers/has-own-property.ts", "../../../src/helpers/is-responsive-object.ts", "../../../src/helpers/get-responsive-styles.ts", "../../../src/helpers/merge-styles.ts", "../../../src/props/margin.props.ts", "../../../src/props/as-child.prop.ts", "../../../src/props/color.prop.ts", "../../../src/props/emphasis.prop.ts", "../../../src/props/leading-trim.prop.ts", "../../../src/props/text-align.prop.ts", "../../../src/props/text-wrap.prop.ts", "../../../src/props/truncate.prop.ts", "../../../src/props/font-family.prop.ts", "../../../src/props/weight.prop.ts", "../../../src/components/text.props.tsx", "../../../src/components/link.props.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nimport classNames from 'classnames';\n\nimport { Text } from './text.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { linkPropDefs } from './link.props.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype LinkElement = React.ElementRef<'a'>;\ntype LinkOwnProps = GetPropDefTypes<typeof linkPropDefs>;\ninterface LinkProps extends ComponentPropsWithout<'a', RemovedProps>, MarginProps, LinkOwnProps {}\nconst Link = React.forwardRef<LinkElement, LinkProps>((props, forwardedRef) => {\n const { children, className, color, asChild, ...linkProps } = extractProps(props, linkPropDefs);\n return (\n <Text\n {...linkProps}\n data-accent-color={color}\n ref={forwardedRef}\n asChild\n className={classNames('rt-reset', 'rt-Link', className)}\n >\n {asChild ? (\n children\n ) : (\n // eslint-disable-next-line jsx-a11y/anchor-is-valid\n <a>{children}</a>\n )}\n </Text>\n );\n});\nLink.displayName = 'Link';\n\nexport { Link };\nexport type { LinkProps };\n", "import * as React from 'react';\nimport { Slot } from 'radix-ui';\n\nimport { extractProps } from '../helpers/extract-props.js';\nimport { marginPropDefs } from '../props/margin.props.js';\nimport { textPropDefs } from './text.props.js';\n\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\n\ntype TextElement = React.ElementRef<'span'>;\ntype TextOwnProps = GetPropDefTypes<typeof textPropDefs>;\ninterface CommonTextProps extends MarginProps, TextOwnProps {}\ntype TextSpanProps = { as?: 'span' } & ComponentPropsWithout<'span', RemovedProps>;\ntype TextDivProps = { as: 'div' } & ComponentPropsWithout<'div', RemovedProps>;\ntype TextLabelProps = { as: 'label' } & ComponentPropsWithout<'label', RemovedProps>;\ntype TextPProps = { as: 'p' } & ComponentPropsWithout<'p', RemovedProps>;\ntype TextProps = CommonTextProps & (TextSpanProps | TextDivProps | TextLabelProps | TextPProps);\n\n// Pre-merge prop definitions at module level to avoid per-render allocation\nconst mergedPropDefs = { ...textPropDefs, ...marginPropDefs };\n\nconst Text = React.memo(\n React.forwardRef<TextElement, TextProps>((props, forwardedRef) => {\n const {\n children,\n className,\n asChild,\n as: Tag = 'span',\n color,\n ...textProps\n } = extractProps(props, mergedPropDefs);\n\n const combinedClassName = className ? `rt-Text ${className}` : 'rt-Text';\n\n if (asChild) {\n return (\n <Slot.Root\n data-accent-color={color}\n {...textProps}\n ref={forwardedRef}\n className={combinedClassName}\n >\n {children}\n </Slot.Root>\n );\n }\n\n return (\n <Tag\n data-accent-color={color}\n {...(textProps as React.HTMLAttributes<HTMLElement>)}\n ref={forwardedRef as any}\n className={combinedClassName}\n >\n {children}\n </Tag>\n );\n })\n);\nText.displayName = 'Text';\n\nexport { Text };\nexport type { TextProps };\n", "import classNames from 'classnames';\n\nimport { getCompiledPropDefs } from './compile-prop-defs.js';\nimport { getResponsiveClassNames, getResponsiveStyles } from './get-responsive-styles.js';\nimport { isResponsiveObject } from './is-responsive-object.js';\nimport { mergeStyles } from './merge-styles.js';\n\nimport type { CompiledPropDef } from './compile-prop-defs.js';\nimport type * as React from 'react';\nimport type { PropDef } from '../props/prop-def.js';\n\ntype PropDefsWithClassName<T> = T extends Record<string, PropDef> ? { [K in keyof T]: T[K] extends { className: string } ? K : never }[keyof T] : never;\n\ntype ResponsiveValue = Record<string, string | undefined>;\n\n/**\n * Fills in the `initial` breakpoint of a responsive value from the prop def's\n * default, and coerces an invalid `initial` enum value back to that default.\n *\n * Returns the value untouched when nothing needs changing, and a copy otherwise\n * \u2014 callers routinely hoist responsive objects to module scope, so mutating the\n * caller's object would corrupt it for every later render.\n */\nfunction normalizeResponsiveValue(value: ResponsiveValue, propDef: CompiledPropDef) {\n let initial = value.initial;\n let changed = false;\n\n if (propDef.hasDefault && initial === undefined) {\n initial = propDef.default as string | undefined;\n changed = true;\n }\n\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(initial)) {\n initial = propDef.default as string | undefined;\n changed = true;\n }\n\n return changed ? { ...value, initial } : value;\n}\n\n/**\n * Takes props, checks them against prop defs that have a `className` on them,\n * adds necessary CSS classes and inline styles, and returns the props without\n * the corresponding prop defs that were used to formulate the new `className`\n * and `style` values. Also applies prop def defaults to every prop.\n */\nfunction extractProps<P extends { className?: string; style?: React.CSSProperties; [key: string]: any }, T extends Record<string, PropDef>[]>(\n props: P,\n ...propDefs: T\n): Omit<P & { className?: string; style?: React.CSSProperties }, PropDefsWithClassName<T[number]>> {\n const { styling, passthrough, stylingKeys } = getCompiledPropDefs(propDefs);\n\n // Copy the props that survive to the element rather than spreading and then\n // deleting the styling keys. Deleting off a spread demotes the object to\n // dictionary mode in V8, and this object is on the render path of every\n // component in the library.\n const extractedProps: Record<string, any> = {};\n for (const key in props) {\n if (stylingKeys.has(key)) continue;\n extractedProps[key] = props[key];\n }\n\n for (let i = 0; i < passthrough.length; i++) {\n const propDef = passthrough[i];\n const value = extractedProps[propDef.key];\n\n if (value === undefined) {\n if (propDef.hasDefault) extractedProps[propDef.key] = propDef.default;\n continue;\n }\n\n // Fall back to the default when the value is not a valid enum value\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(value) && !isResponsiveObject(value)) {\n extractedProps[propDef.key] = propDef.default;\n }\n }\n\n let style: ReturnType<typeof mergeStyles>;\n const classes: string[] = [];\n\n for (let i = 0; i < styling.length; i++) {\n const propDef = styling[i];\n let value = props[propDef.key];\n\n // Apply prop def defaults\n if (value === undefined && propDef.hasDefault) {\n value = propDef.default;\n }\n\n // Apply the default value if the value is not a valid enum value\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(value) && !isResponsiveObject(value)) {\n value = propDef.default;\n }\n\n if (!value) continue;\n\n if (isResponsiveObject(value)) {\n // Make sure we are not threading through responsive values for non-responsive prop defs\n if (!propDef.responsive) continue;\n value = normalizeResponsiveValue(value, propDef);\n }\n\n if (propDef.type === 'enum') {\n const propClassName = getResponsiveClassNames({\n allowArbitraryValues: false,\n value,\n className: propDef.className!,\n propValues: propDef.values,\n propValueSet: propDef.valueSet,\n parseValue: propDef.parseValue,\n });\n\n if (propClassName) classes.push(propClassName);\n continue;\n }\n\n if (propDef.type === 'string' || propDef.type === 'enum | string') {\n const [propClassNames, propCustomProperties] = getResponsiveStyles({\n className: propDef.className!,\n customProperties: propDef.customProperties!,\n // `string` prop defs have no enum values, so every value is arbitrary\n propValues: propDef.type === 'string' ? [] : propDef.values,\n propValueSet: propDef.type === 'string' ? undefined : propDef.valueSet,\n parseValue: propDef.parseValue,\n value,\n });\n\n if (propCustomProperties) style = mergeStyles(style, propCustomProperties);\n if (propClassNames) classes.push(propClassNames);\n continue;\n }\n\n if (propDef.type === 'boolean') {\n // TODO handle responsive boolean props\n classes.push(propDef.className!);\n continue;\n }\n }\n\n extractedProps.className = classNames(classes.length > 0 ? classes.join(' ') : undefined, props.className);\n extractedProps.style = mergeStyles(style, props.style);\n return extractedProps as ReturnType<typeof extractProps<P, T>>;\n}\n\nexport { extractProps };\n", "import type { PropDef } from '../props/prop-def.js';\n\n/**\n * A prop def pre-processed into the exact shape `extractProps` needs at render\n * time. Everything that can be derived from the static prop def \u2014 enum\n * membership sets, whether the def is responsive, whether it carries a default\n * \u2014 is computed once here instead of on every render.\n */\ninterface CompiledPropDef {\n key: string;\n type: PropDef['type'];\n default: unknown;\n hasDefault: boolean;\n responsive: boolean;\n className?: string;\n customProperties?: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n /** The prop def's own enum values, kept for the responsive class name helpers. */\n values: readonly string[];\n /** O(1) membership for `values`. */\n valueSet: ReadonlySet<string>;\n /**\n * `values` plus the default, used to coerce invalid enum values back to the\n * default. Only present for `type: 'enum'` \u2014 `'enum | string'` props accept\n * arbitrary strings and must not be coerced.\n */\n enumValueSet?: ReadonlySet<unknown>;\n}\n\ninterface CompiledPropDefs {\n /** Defs that contribute a class name and/or custom properties. */\n styling: CompiledPropDef[];\n /**\n * Defs that pass through to the element but still need a default applied or\n * an invalid enum value coerced. Defs that can do neither are omitted\n * entirely \u2014 they are already correct as passed.\n */\n passthrough: CompiledPropDef[];\n /** Keys consumed by `styling`, so they can be skipped when copying props. */\n stylingKeys: ReadonlySet<string>;\n}\n\nconst EMPTY_VALUES: readonly string[] = [];\nconst EMPTY_SET: ReadonlySet<string> = new Set();\n\nfunction compile(propDefs: readonly Record<string, PropDef>[]): CompiledPropDefs {\n const merged: Record<string, PropDef> = Object.assign({}, ...propDefs);\n const styling: CompiledPropDef[] = [];\n const passthrough: CompiledPropDef[] = [];\n const stylingKeys = new Set<string>();\n\n for (const key in merged) {\n // The PropDef union is narrowed per-field below; reading the optional\n // members off the union directly is what the runtime actually needs.\n const def = merged[key] as PropDef & {\n default?: unknown;\n values?: readonly string[];\n className?: string;\n customProperties?: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n responsive?: true;\n };\n\n const values = def.values ?? EMPTY_VALUES;\n const compiled: CompiledPropDef = {\n key,\n type: def.type,\n default: def.default,\n hasDefault: def.default !== undefined,\n responsive: 'responsive' in def,\n className: def.className,\n customProperties: def.customProperties,\n parseValue: def.parseValue,\n values,\n valueSet: values.length > 0 ? new Set(values) : EMPTY_SET,\n enumValueSet: def.type === 'enum' ? new Set<unknown>([def.default, ...values]) : undefined,\n };\n\n if (def.className) {\n styling.push(compiled);\n stylingKeys.add(key);\n } else if (compiled.hasDefault || def.type === 'enum') {\n // Anything else is copied through untouched, so there is nothing to do.\n passthrough.push(compiled);\n }\n }\n\n return { styling, passthrough, stylingKeys };\n}\n\ninterface CacheNode {\n children: WeakMap<object, CacheNode>;\n compiled?: CompiledPropDefs;\n}\n\nconst cacheRoot: CacheNode = { children: new WeakMap() };\n\n/**\n * Compiles a set of prop defs, memoized on the identity of the prop def objects\n * themselves. Components always pass the same module-level constants, so after\n * the first render of a given component this is a couple of WeakMap lookups\n * instead of merging 50-odd prop defs into a fresh object.\n */\nfunction getCompiledPropDefs(propDefs: readonly Record<string, PropDef>[]): CompiledPropDefs {\n let node = cacheRoot;\n\n for (let i = 0; i < propDefs.length; i++) {\n const propDef = propDefs[i];\n let child = node.children.get(propDef);\n if (child === undefined) {\n child = { children: new WeakMap() };\n node.children.set(propDef, child);\n }\n node = child;\n }\n\n return (node.compiled ??= compile(propDefs));\n}\n\nexport { getCompiledPropDefs };\nexport type { CompiledPropDef, CompiledPropDefs };\n", "import type React from 'react';\n\n// Creates a union type of string literals with strings, but retains intellisense for the literals.\n// Union<string, 'foo' | 'bar'> => string | Omit<string, 'foo' | 'bar'>\ntype Union<S = string, T extends string | number = string> = T | Omit<S, T>;\n\nconst breakpoints = ['initial', 'xs', 'sm', 'md', 'lg', 'xl'] as const;\nconst breakpointSet: Set<string> = new Set(breakpoints);\ntype Breakpoint = (typeof breakpoints)[number];\ntype Responsive<T> = T | Partial<Record<Breakpoint, T>>;\n\ntype BooleanPropDef = {\n type: 'boolean';\n default?: boolean;\n required?: boolean;\n className?: string;\n};\ntype StringPropDef = {\n type: 'string';\n default?: string;\n required?: boolean;\n};\ntype ReactNodePropDef = {\n type: 'ReactNode';\n default?: React.ReactNode;\n required?: boolean;\n};\ntype EnumPropDef<T> = {\n type: 'enum';\n values: readonly T[];\n default?: T;\n required?: boolean;\n};\ntype EnumOrStringPropDef<T> = {\n type: 'enum | string';\n values: readonly T[];\n default?: T | string;\n required?: boolean;\n};\n\ntype NonStylingPropDef = {\n className?: never;\n customProperties?: never;\n parseValue?: never;\n};\n\ntype StylingPropDef = {\n className: string;\n parseValue?: (value: string) => string | undefined;\n};\n\ntype ArbitraryStylingPropDef = {\n className: string;\n customProperties: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n};\n\ntype RegularPropDef<T> =\n | ReactNodePropDef\n | BooleanPropDef\n | (StringPropDef & ArbitraryStylingPropDef)\n | (StringPropDef & NonStylingPropDef)\n | (EnumPropDef<T> & StylingPropDef)\n | (EnumPropDef<T> & NonStylingPropDef)\n | (EnumOrStringPropDef<T> & ArbitraryStylingPropDef)\n | (EnumOrStringPropDef<T> & NonStylingPropDef);\ntype ResponsivePropDef<T = any> = RegularPropDef<T> & { responsive: true };\ntype PropDef<T = any> = RegularPropDef<T> | ResponsivePropDef<T>;\n\n// prettier-ignore\ntype GetPropDefType<Def> =\n Def extends BooleanPropDef ? (Def extends ResponsivePropDef ? Responsive<boolean> : boolean)\n : Def extends StringPropDef ? (Def extends ResponsivePropDef ? Responsive<string> : string)\n : Def extends ReactNodePropDef ? (Def extends ResponsivePropDef ? Responsive<React.ReactNode> : React.ReactNode)\n : Def extends EnumOrStringPropDef<infer Type> ?\n Def extends ResponsivePropDef<infer Type extends string> ? Responsive<Union<string, Type>> : Type\n : Def extends EnumPropDef<infer Type> ? (Def extends ResponsivePropDef<infer Type> ? Responsive<Type> : Type)\n : never;\n\ntype GetPropDefTypes<P> = {\n [K in keyof P]?: GetPropDefType<P[K]>;\n};\n\nexport { breakpoints, breakpointSet };\nexport type {\n PropDef,\n GetPropDefTypes,\n ResponsivePropDef,\n //\n Breakpoint,\n Responsive,\n Union,\n};\n", "/** A util to check whether the object has a key, while inferring the correct key type */\nfunction hasOwnProperty<K extends string | number | symbol>(\n obj: Record<K, unknown>,\n key: string | number | symbol\n): key is K {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\nexport { hasOwnProperty };\n", "import type { Responsive, Breakpoint } from '../props/prop-def.js';\n\n// Use a Set for O(1) lookup instead of array.includes() which is O(n)\nconst breakpointSet = new Set<string>(['initial', 'xs', 'sm', 'md', 'lg', 'xl']);\n\nexport function isResponsiveObject<Value extends string>(\n obj: Responsive<Value | Omit<string, Value>> | undefined\n): obj is Record<Breakpoint, string> {\n if (typeof obj !== 'object' || obj === null) {\n return false;\n }\n // Use for...in to avoid Object.keys() array allocation\n for (const key in obj) {\n if (breakpointSet.has(key)) {\n return true;\n }\n }\n return false;\n}\n", "import { breakpointSet } from '../props/prop-def.js';\nimport { hasOwnProperty } from './has-own-property.js';\nimport { isResponsiveObject } from './is-responsive-object.js';\n\nimport type { Responsive, Union } from '../props/prop-def.js';\n\n/**\n * Membership test against a prop def's enum values. Callers that already hold a\n * compiled prop def pass `propValueSet` for an O(1) lookup; the handful of call\n * sites that build options inline fall back to scanning the array.\n */\nfunction includesValue(propValues: string[] | readonly string[], propValueSet: ReadonlySet<string> | undefined, value: string): boolean {\n return propValueSet !== undefined ? propValueSet.has(value) : propValues.includes(value);\n}\n\ninterface GetResponsiveStylesOptions {\n className: string;\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveStyles({ className, customProperties, ...args }: GetResponsiveStylesOptions) {\n const responsiveClassNames = getResponsiveClassNames({\n allowArbitraryValues: true,\n className,\n ...args,\n });\n\n const responsiveCustomProperties = getResponsiveCustomProperties({ customProperties, ...args });\n return [responsiveClassNames, responsiveCustomProperties] as const;\n}\n\ninterface GetResponsiveClassNamesOptions {\n allowArbitraryValues?: boolean;\n className: string;\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveClassNames({ allowArbitraryValues, value, className, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveClassNamesOptions): string | undefined {\n if (!value) {\n return undefined;\n }\n\n if (typeof value === 'string') {\n if (includesValue(propValues, propValueSet, value)) {\n return getBaseClassName(className, value, parseValue);\n }\n return allowArbitraryValues ? className : undefined;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n const classNames: string[] = [];\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n if (value !== undefined) {\n if (includesValue(propValues, propValueSet, value)) {\n const baseClassName = getBaseClassName(className, value, parseValue);\n const bpClassName = bp === 'initial' ? baseClassName : `${bp}:${baseClassName}`;\n classNames.push(bpClassName);\n } else if (allowArbitraryValues) {\n const bpClassName = bp === 'initial' ? className : `${bp}:${className}`;\n classNames.push(bpClassName);\n }\n }\n }\n\n return classNames.length > 0 ? classNames.join(' ') : '';\n }\n\n if (allowArbitraryValues) {\n return className;\n }\n}\n\nfunction getBaseClassName(className: string, value: string, parseValue: (value: string) => string | undefined): string {\n const delimiter = className ? '-' : '';\n const matchedValue = parseValue(value);\n const isNegative = matchedValue?.startsWith('-');\n const minus = isNegative ? '-' : '';\n const absoluteValue = isNegative ? matchedValue?.substring(1) : matchedValue;\n return `${minus}${className}${delimiter}${absoluteValue}`;\n}\n\ninterface GetResponsiveCustomPropertiesOptions {\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveCustomProperties({ customProperties, value, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveCustomPropertiesOptions) {\n // Don't generate custom properties if the value is not arbitrary\n if (!value || (typeof value === 'string' && includesValue(propValues, propValueSet, value))) {\n return undefined;\n }\n\n let styles: Record<string, string | undefined> | undefined;\n\n if (typeof value === 'string') {\n const parsed = parseValue(value);\n styles = {};\n for (const customProperty of customProperties) {\n styles[customProperty] = parsed;\n }\n return styles;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n // Don't generate a custom property if the value is not arbitrary\n if (value === undefined || includesValue(propValues, propValueSet, value)) {\n continue;\n }\n\n const parsed = parseValue(value);\n styles ??= {};\n for (const customProperty of customProperties) {\n const bpProperty = bp === 'initial' ? customProperty : `${customProperty}-${bp}`;\n styles[bpProperty] = parsed;\n }\n }\n }\n\n return styles ?? {};\n}\n\nexport { getResponsiveStyles, getResponsiveCustomProperties, getResponsiveClassNames };\n", "type InlineStyle =\n | React.CSSProperties\n | Record<string, string | number | null | undefined>\n | undefined;\n\n// Merges CSS styles like `classNames` merges CSS classes\n// Optimized to avoid object spread in loop - uses Object.assign for in-place mutation\nexport function mergeStyles(...styles: Array<InlineStyle>): InlineStyle {\n let result: Record<string, string | number | null | undefined> | undefined;\n\n for (const style of styles) {\n if (style) {\n if (result === undefined) {\n // First non-empty style - create result object\n result = {};\n }\n Object.assign(result, style);\n }\n }\n\n return result;\n}\n", "import type { PropDef, GetPropDefTypes } from './prop-def.js';\n\n// prettier-ignore\nconst marginValues = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '-1', '-2', '-3', '-4', '-5', '-6', '-7', '-8', '-9', '-10', '-11', '-12'] as const;\n\nconst marginPropDefs = {\n /**\n * Sets the CSS **margin** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * m=\"4\"\n * m=\"100px\"\n * m={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin\n */\n m: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-m',\n customProperties: ['--m'],\n },\n /**\n * Sets the CSS **margin-left** and **margin-right** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mx=\"4\"\n * mx=\"100px\"\n * mx={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mx: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mx',\n customProperties: ['--ml', '--mr'],\n },\n /**\n * Sets the CSS **margin-top** and **margin-bottom** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * my=\"4\"\n * my=\"100px\"\n * my={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n my: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-my',\n customProperties: ['--mt', '--mb'],\n },\n /**\n * Sets the CSS **margin-top** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mt=\"4\"\n * mt=\"100px\"\n * mt={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n */\n mt: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mt',\n customProperties: ['--mt'],\n },\n /**\n * Sets the CSS **margin-right** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mr=\"4\"\n * mr=\"100px\"\n * mr={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mr: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mr',\n customProperties: ['--mr'],\n },\n /**\n * Sets the CSS **margin-bottom** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mb=\"4\"\n * mb=\"100px\"\n * mb={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n mb: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mb',\n customProperties: ['--mb'],\n },\n /**\n * Sets the CSS **margin-left** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * ml=\"4\"\n * ml=\"100px\"\n * ml={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n */\n ml: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-ml',\n customProperties: ['--ml'],\n },\n} satisfies {\n m: PropDef<(typeof marginValues)[number]>;\n mx: PropDef<(typeof marginValues)[number]>;\n my: PropDef<(typeof marginValues)[number]>;\n mt: PropDef<(typeof marginValues)[number]>;\n mr: PropDef<(typeof marginValues)[number]>;\n mb: PropDef<(typeof marginValues)[number]>;\n ml: PropDef<(typeof marginValues)[number]>;\n};\n\ntype MarginProps = GetPropDefTypes<typeof marginPropDefs>;\n\nexport { marginPropDefs };\nexport type { MarginProps };\n", "import type { PropDef } from './prop-def.js';\n\nconst asChildPropDef = {\n /**\n * Composes the component into its immediate child instead of rendering its own HTML element.\n * You\u2019ll have to provide a single React Element child.\n */\n asChild: {\n type: 'boolean',\n },\n} satisfies {\n asChild: PropDef<boolean>;\n};\n\nexport { asChildPropDef };\n", "import type { PropDef } from './prop-def.js';\n\n// prettier-ignore\nconst accentColors = ['gray', 'gold', 'bronze', 'brown', 'yellow', 'amber', 'orange', 'tomato', 'red', 'ruby', 'crimson', 'pink', 'plum', 'purple', 'violet', 'iris', 'indigo', 'blue', 'cyan', 'teal', 'jade', 'green', 'grass', 'lime', 'mint', 'sky'] as const;\n\nconst grayColors = ['auto', 'gray', 'mauve', 'slate', 'sage', 'olive', 'sand'] as const;\n\nconst colorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: undefined as (typeof accentColors)[number] | undefined,\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// 1. When used on components that compose Text, sets the color of the text to the current accent.\n// 2. Re-declares the accent role tokens (`--accent-ink`, `--accent-solid`, ...) that descendants read.\nconst accentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: '' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// For components whose colour comes from their content (Badge, Avatar, Code, Callout,\n// UserCard): they rest gray, and `color` picks a category when it means something.\nconst grayAccentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: 'gray' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\nexport {\n accentColorPropDef,\n grayAccentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import type { PropDef } from './prop-def.js';\n\nconst emphases = ['loud', 'medium', 'quiet'] as const;\n\n// Text-first components only (Text, Heading, Blockquote, Code, DataList.Label).\n// No colour + emphasis reads the gray ink ladder; colour + emphasis reads the accent ink ladder.\n// Components that need a different default (DataList.Label: 'medium') spread this def and override `default`.\nconst emphasisPropDef = {\n emphasis: {\n type: 'enum',\n className: 'rt-emphasis',\n values: emphases,\n default: undefined,\n },\n} satisfies {\n emphasis: PropDef<(typeof emphases)[number]>;\n};\n\nexport { emphasisPropDef, emphases };\n", "import type { PropDef } from './prop-def.js';\n\nconst leadingTrimValues = ['normal', 'start', 'end', 'both'] as const;\n\nconst leadingTrimPropDef = {\n trim: {\n type: 'enum',\n className: 'rt-r-lt',\n values: leadingTrimValues,\n responsive: true,\n },\n} satisfies {\n trim: PropDef<(typeof leadingTrimValues)[number]>;\n};\n\nexport { leadingTrimPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst textAlignValues = ['left', 'center', 'right'] as const;\n\nconst textAlignPropDef = {\n align: {\n type: 'enum',\n className: 'rt-r-ta',\n values: textAlignValues,\n responsive: true,\n },\n} satisfies {\n align: PropDef<(typeof textAlignValues)[number]>;\n};\n\nexport { textAlignPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst textWrapValues = ['wrap', 'nowrap', 'pretty', 'balance'] as const;\n\nconst textWrapPropDef = {\n wrap: {\n type: 'enum',\n className: 'rt-r-tw',\n values: textWrapValues,\n responsive: true,\n },\n} satisfies {\n wrap: PropDef<(typeof textWrapValues)[number]>;\n};\n\nexport { textWrapPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst truncatePropDef = {\n truncate: {\n type: 'boolean',\n className: 'rt-truncate',\n },\n} satisfies {\n truncate: PropDef<boolean>;\n};\n\nexport { truncatePropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst fontFamilies = ['sans', 'mono', 'serif'] as const;\n\nconst fontFamilyPropDef = {\n font: {\n type: 'enum',\n className: 'rt-r-ff',\n values: fontFamilies,\n },\n} satisfies {\n font: PropDef<(typeof fontFamilies)[number]>;\n};\n\nexport { fontFamilyPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst weights = ['thin', 'extralight', 'light', 'regular', 'medium', 'semibold', 'bold', 'extrabold'] as const;\n\nconst weightPropDef = {\n weight: {\n type: 'enum',\n className: 'rt-r-weight',\n values: weights,\n responsive: true,\n },\n} satisfies {\n weight: PropDef<(typeof weights)[number]>;\n};\n\nexport { weightPropDef };\n", "import { asChildPropDef } from '../props/as-child.prop.js';\nimport { colorPropDef } from '../props/color.prop.js';\nimport { emphasisPropDef } from '../props/emphasis.prop.js';\nimport { leadingTrimPropDef } from '../props/leading-trim.prop.js';\nimport { textAlignPropDef } from '../props/text-align.prop.js';\nimport { textWrapPropDef } from '../props/text-wrap.prop.js';\nimport { truncatePropDef } from '../props/truncate.prop.js';\nimport { fontFamilyPropDef } from '../props/font-family.prop.js';\nimport { weightPropDef } from '../props/weight.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst as = ['span', 'div', 'label', 'p'] as const;\nconst sizes = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'] as const;\n\nconst textPropDefs = {\n as: { type: 'enum', values: as, default: 'span' },\n ...asChildPropDef,\n size: {\n type: 'enum',\n className: 'rt-r-size',\n values: sizes,\n responsive: true,\n },\n ...fontFamilyPropDef,\n ...weightPropDef,\n ...textAlignPropDef,\n ...leadingTrimPropDef,\n ...truncatePropDef,\n ...textWrapPropDef,\n ...colorPropDef,\n ...emphasisPropDef,\n} satisfies {\n as: PropDef<(typeof as)[number]>;\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport { textPropDefs };\n", "import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColorPropDef } from '../props/color.prop.js';\nimport { leadingTrimPropDef } from '../props/leading-trim.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 underline = ['auto', 'always', 'hover', 'none'] as const;\n\nconst linkPropDefs = {\n ...asChildPropDef,\n size: {\n type: 'enum',\n className: 'rt-r-size',\n values: sizes,\n responsive: true,\n },\n ...weightPropDef,\n ...leadingTrimPropDef,\n ...truncatePropDef,\n ...textWrapPropDef,\n underline: { type: 'enum', className: 'rt-underline', values: underline, default: 'auto' },\n ...accentColorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>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ACR,WAAY,EACd,EACA,GAAGI,EACH,GAAGC,EACH,GAAGC,EACH,GAAGC,EACH,UAAW,CAAE,KAAM,OAAQ,UAAW,eAAgB,OAAQN,GAAW,QAAS,MAAO,EACzF,GAAGO,CACL,EpBZA,IAAMC,EAAa,aAAmC,CAACC,EAAOC,IAAiB,CAC7E,GAAM,CAAE,SAAAC,EAAU,UAAAC,EAAW,MAAAC,EAAO,QAAAC,EAAS,GAAGC,CAAU,EAAIC,EAAaP,EAAOQ,CAAY,EAC9F,OACE,gBAACC,EAAA,CACE,GAAGH,EACJ,oBAAmBF,EACnB,IAAKH,EACL,QAAO,GACP,aAAW,EAAAS,SAAW,WAAY,UAAWP,CAAS,GAErDE,EACCH,EAGA,gBAAC,SAAGA,CAAS,CAEjB,CAEJ,CAAC,EACDH,EAAK,YAAc",
4
+ "sourcesContent": ["import * as React from 'react';\nimport classNames from 'classnames';\n\nimport { Text } from './text.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { linkPropDefs } from './link.props.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype LinkElement = React.ElementRef<'a'>;\ntype LinkOwnProps = GetPropDefTypes<typeof linkPropDefs>;\ninterface LinkProps extends ComponentPropsWithout<'a', RemovedProps>, MarginProps, LinkOwnProps {}\nconst Link = React.forwardRef<LinkElement, LinkProps>((props, forwardedRef) => {\n const { children, className, color, asChild, ...linkProps } = extractProps(props, linkPropDefs);\n return (\n <Text\n {...linkProps}\n data-accent-color={color}\n ref={forwardedRef}\n asChild\n className={classNames('rt-reset', 'rt-Link', className)}\n >\n {asChild ? (\n children\n ) : (\n // eslint-disable-next-line jsx-a11y/anchor-is-valid\n <a>{children}</a>\n )}\n </Text>\n );\n});\nLink.displayName = 'Link';\n\nexport { Link };\nexport type { LinkProps };\n", "import * as React from 'react';\nimport { Slot } from 'radix-ui';\n\nimport { extractProps } from '../helpers/extract-props.js';\nimport { marginPropDefs } from '../props/margin.props.js';\nimport { textPropDefs } from './text.props.js';\n\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\n\ntype TextElement = React.ElementRef<'span'>;\ntype TextOwnProps = GetPropDefTypes<typeof textPropDefs>;\ninterface CommonTextProps extends MarginProps, TextOwnProps {}\ntype TextSpanProps = { as?: 'span' } & ComponentPropsWithout<'span', RemovedProps>;\ntype TextDivProps = { as: 'div' } & ComponentPropsWithout<'div', RemovedProps>;\ntype TextLabelProps = { as: 'label' } & ComponentPropsWithout<'label', RemovedProps>;\ntype TextPProps = { as: 'p' } & ComponentPropsWithout<'p', RemovedProps>;\ntype TextProps = CommonTextProps & (TextSpanProps | TextDivProps | TextLabelProps | TextPProps);\n\n// Pre-merge prop definitions at module level to avoid per-render allocation\nconst mergedPropDefs = { ...textPropDefs, ...marginPropDefs };\n\nconst Text = React.memo(\n React.forwardRef<TextElement, TextProps>((props, forwardedRef) => {\n const {\n children,\n className,\n asChild,\n as: Tag = 'span',\n color,\n ...textProps\n } = extractProps(props, mergedPropDefs);\n\n const combinedClassName = className ? `rt-Text ${className}` : 'rt-Text';\n\n if (asChild) {\n return (\n <Slot.Root\n data-accent-color={color}\n {...textProps}\n ref={forwardedRef}\n className={combinedClassName}\n >\n {children}\n </Slot.Root>\n );\n }\n\n return (\n <Tag\n data-accent-color={color}\n {...(textProps as React.HTMLAttributes<HTMLElement>)}\n ref={forwardedRef as any}\n className={combinedClassName}\n >\n {children}\n </Tag>\n );\n })\n);\nText.displayName = 'Text';\n\nexport { Text };\nexport type { TextProps };\n", "import classNames from 'classnames';\n\nimport { getCompiledPropDefs } from './compile-prop-defs.js';\nimport { getResponsiveClassNames, getResponsiveStyles } from './get-responsive-styles.js';\nimport { isResponsiveObject } from './is-responsive-object.js';\nimport { mergeStyles } from './merge-styles.js';\n\nimport type { CompiledPropDef } from './compile-prop-defs.js';\nimport type * as React from 'react';\nimport type { PropDef } from '../props/prop-def.js';\n\ntype PropDefsWithClassName<T> = T extends Record<string, PropDef> ? { [K in keyof T]: T[K] extends { className: string } ? K : never }[keyof T] : never;\n\ntype ResponsiveValue = Record<string, string | undefined>;\n\n/**\n * Fills in the `initial` breakpoint of a responsive value from the prop def's\n * default, and coerces an invalid `initial` enum value back to that default.\n *\n * Returns the value untouched when nothing needs changing, and a copy otherwise\n * \u2014 callers routinely hoist responsive objects to module scope, so mutating the\n * caller's object would corrupt it for every later render.\n */\nfunction normalizeResponsiveValue(value: ResponsiveValue, propDef: CompiledPropDef) {\n let initial = value.initial;\n let changed = false;\n\n if (propDef.hasDefault && initial === undefined) {\n initial = propDef.default as string | undefined;\n changed = true;\n }\n\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(initial)) {\n initial = propDef.default as string | undefined;\n changed = true;\n }\n\n return changed ? { ...value, initial } : value;\n}\n\n/**\n * Takes props, checks them against prop defs that have a `className` on them,\n * adds necessary CSS classes and inline styles, and returns the props without\n * the corresponding prop defs that were used to formulate the new `className`\n * and `style` values. Also applies prop def defaults to every prop.\n */\nfunction extractProps<P extends { className?: string; style?: React.CSSProperties; [key: string]: any }, T extends Record<string, PropDef>[]>(\n props: P,\n ...propDefs: T\n): Omit<P & { className?: string; style?: React.CSSProperties }, PropDefsWithClassName<T[number]>> {\n const { styling, passthrough, stylingKeys } = getCompiledPropDefs(propDefs);\n\n // Copy the props that survive to the element rather than spreading and then\n // deleting the styling keys. Deleting off a spread demotes the object to\n // dictionary mode in V8, and this object is on the render path of every\n // component in the library.\n const extractedProps: Record<string, any> = {};\n for (const key in props) {\n if (stylingKeys.has(key)) continue;\n extractedProps[key] = props[key];\n }\n\n for (let i = 0; i < passthrough.length; i++) {\n const propDef = passthrough[i];\n const value = extractedProps[propDef.key];\n\n if (value === undefined) {\n if (propDef.hasDefault) extractedProps[propDef.key] = propDef.default;\n continue;\n }\n\n // Fall back to the default when the value is not a valid enum value\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(value) && !isResponsiveObject(value)) {\n extractedProps[propDef.key] = propDef.default;\n }\n }\n\n let style: ReturnType<typeof mergeStyles>;\n const classes: string[] = [];\n\n for (let i = 0; i < styling.length; i++) {\n const propDef = styling[i];\n let value = props[propDef.key];\n\n // Apply prop def defaults\n if (value === undefined && propDef.hasDefault) {\n value = propDef.default;\n }\n\n // Apply the default value if the value is not a valid enum value\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(value) && !isResponsiveObject(value)) {\n value = propDef.default;\n }\n\n if (!value) continue;\n\n if (isResponsiveObject(value)) {\n // Make sure we are not threading through responsive values for non-responsive prop defs\n if (!propDef.responsive) continue;\n value = normalizeResponsiveValue(value, propDef);\n }\n\n if (propDef.type === 'enum') {\n const propClassName = getResponsiveClassNames({\n allowArbitraryValues: false,\n value,\n className: propDef.className!,\n propValues: propDef.values,\n propValueSet: propDef.valueSet,\n parseValue: propDef.parseValue,\n });\n\n if (propClassName) classes.push(propClassName);\n continue;\n }\n\n if (propDef.type === 'string' || propDef.type === 'enum | string') {\n const [propClassNames, propCustomProperties] = getResponsiveStyles({\n className: propDef.className!,\n customProperties: propDef.customProperties!,\n // `string` prop defs have no enum values, so every value is arbitrary\n propValues: propDef.type === 'string' ? [] : propDef.values,\n propValueSet: propDef.type === 'string' ? undefined : propDef.valueSet,\n parseValue: propDef.parseValue,\n value,\n });\n\n if (propCustomProperties) style = mergeStyles(style, propCustomProperties);\n if (propClassNames) classes.push(propClassNames);\n continue;\n }\n\n if (propDef.type === 'boolean') {\n // TODO handle responsive boolean props\n classes.push(propDef.className!);\n continue;\n }\n }\n\n extractedProps.className = classNames(classes.length > 0 ? classes.join(' ') : undefined, props.className);\n extractedProps.style = mergeStyles(style, props.style);\n return extractedProps as ReturnType<typeof extractProps<P, T>>;\n}\n\nexport { extractProps };\n", "import type { PropDef } from '../props/prop-def.js';\n\n/**\n * A prop def pre-processed into the exact shape `extractProps` needs at render\n * time. Everything that can be derived from the static prop def \u2014 enum\n * membership sets, whether the def is responsive, whether it carries a default\n * \u2014 is computed once here instead of on every render.\n */\ninterface CompiledPropDef {\n key: string;\n type: PropDef['type'];\n default: unknown;\n hasDefault: boolean;\n responsive: boolean;\n className?: string;\n customProperties?: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n /** The prop def's own enum values, kept for the responsive class name helpers. */\n values: readonly string[];\n /** O(1) membership for `values`. */\n valueSet: ReadonlySet<string>;\n /**\n * `values` plus the default, used to coerce invalid enum values back to the\n * default. Only present for `type: 'enum'` \u2014 `'enum | string'` props accept\n * arbitrary strings and must not be coerced.\n */\n enumValueSet?: ReadonlySet<unknown>;\n}\n\ninterface CompiledPropDefs {\n /** Defs that contribute a class name and/or custom properties. */\n styling: CompiledPropDef[];\n /**\n * Defs that pass through to the element but still need a default applied or\n * an invalid enum value coerced. Defs that can do neither are omitted\n * entirely \u2014 they are already correct as passed.\n */\n passthrough: CompiledPropDef[];\n /** Keys consumed by `styling`, so they can be skipped when copying props. */\n stylingKeys: ReadonlySet<string>;\n}\n\nconst EMPTY_VALUES: readonly string[] = [];\nconst EMPTY_SET: ReadonlySet<string> = new Set();\n\nfunction compile(propDefs: readonly Record<string, PropDef>[]): CompiledPropDefs {\n const merged: Record<string, PropDef> = Object.assign({}, ...propDefs);\n const styling: CompiledPropDef[] = [];\n const passthrough: CompiledPropDef[] = [];\n const stylingKeys = new Set<string>();\n\n for (const key in merged) {\n // The PropDef union is narrowed per-field below; reading the optional\n // members off the union directly is what the runtime actually needs.\n const def = merged[key] as PropDef & {\n default?: unknown;\n values?: readonly string[];\n className?: string;\n customProperties?: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n responsive?: true;\n };\n\n const values = def.values ?? EMPTY_VALUES;\n const compiled: CompiledPropDef = {\n key,\n type: def.type,\n default: def.default,\n hasDefault: def.default !== undefined,\n responsive: 'responsive' in def,\n className: def.className,\n customProperties: def.customProperties,\n parseValue: def.parseValue,\n values,\n valueSet: values.length > 0 ? new Set(values) : EMPTY_SET,\n enumValueSet: def.type === 'enum' ? new Set<unknown>([def.default, ...values]) : undefined,\n };\n\n if (def.className) {\n styling.push(compiled);\n stylingKeys.add(key);\n } else if (compiled.hasDefault || def.type === 'enum') {\n // Anything else is copied through untouched, so there is nothing to do.\n passthrough.push(compiled);\n }\n }\n\n return { styling, passthrough, stylingKeys };\n}\n\ninterface CacheNode {\n children: WeakMap<object, CacheNode>;\n compiled?: CompiledPropDefs;\n}\n\nconst cacheRoot: CacheNode = { children: new WeakMap() };\n\n/**\n * Compiles a set of prop defs, memoized on the identity of the prop def objects\n * themselves. Components always pass the same module-level constants, so after\n * the first render of a given component this is a couple of WeakMap lookups\n * instead of merging 50-odd prop defs into a fresh object.\n */\nfunction getCompiledPropDefs(propDefs: readonly Record<string, PropDef>[]): CompiledPropDefs {\n let node = cacheRoot;\n\n for (let i = 0; i < propDefs.length; i++) {\n const propDef = propDefs[i];\n let child = node.children.get(propDef);\n if (child === undefined) {\n child = { children: new WeakMap() };\n node.children.set(propDef, child);\n }\n node = child;\n }\n\n return (node.compiled ??= compile(propDefs));\n}\n\nexport { getCompiledPropDefs };\nexport type { CompiledPropDef, CompiledPropDefs };\n", "import type React from 'react';\n\n// Creates a union type of string literals with strings, but retains intellisense for the literals.\n// Union<string, 'foo' | 'bar'> => string | Omit<string, 'foo' | 'bar'>\ntype Union<S = string, T extends string | number = string> = T | Omit<S, T>;\n\nconst breakpoints = ['initial', 'xs', 'sm', 'md', 'lg', 'xl'] as const;\nconst breakpointSet: Set<string> = new Set(breakpoints);\ntype Breakpoint = (typeof breakpoints)[number];\ntype Responsive<T> = T | Partial<Record<Breakpoint, T>>;\n\ntype BooleanPropDef = {\n type: 'boolean';\n default?: boolean;\n required?: boolean;\n className?: string;\n};\ntype StringPropDef = {\n type: 'string';\n default?: string;\n required?: boolean;\n};\ntype ReactNodePropDef = {\n type: 'ReactNode';\n default?: React.ReactNode;\n required?: boolean;\n};\ntype EnumPropDef<T> = {\n type: 'enum';\n values: readonly T[];\n default?: T;\n required?: boolean;\n};\ntype EnumOrStringPropDef<T> = {\n type: 'enum | string';\n values: readonly T[];\n default?: T | string;\n required?: boolean;\n};\n\ntype NonStylingPropDef = {\n className?: never;\n customProperties?: never;\n parseValue?: never;\n};\n\ntype StylingPropDef = {\n className: string;\n parseValue?: (value: string) => string | undefined;\n};\n\ntype ArbitraryStylingPropDef = {\n className: string;\n customProperties: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n};\n\ntype RegularPropDef<T> =\n | ReactNodePropDef\n | BooleanPropDef\n | (StringPropDef & ArbitraryStylingPropDef)\n | (StringPropDef & NonStylingPropDef)\n | (EnumPropDef<T> & StylingPropDef)\n | (EnumPropDef<T> & NonStylingPropDef)\n | (EnumOrStringPropDef<T> & ArbitraryStylingPropDef)\n | (EnumOrStringPropDef<T> & NonStylingPropDef);\ntype ResponsivePropDef<T = any> = RegularPropDef<T> & { responsive: true };\ntype PropDef<T = any> = RegularPropDef<T> | ResponsivePropDef<T>;\n\n// prettier-ignore\ntype GetPropDefType<Def> =\n Def extends BooleanPropDef ? (Def extends ResponsivePropDef ? Responsive<boolean> : boolean)\n : Def extends StringPropDef ? (Def extends ResponsivePropDef ? Responsive<string> : string)\n : Def extends ReactNodePropDef ? (Def extends ResponsivePropDef ? Responsive<React.ReactNode> : React.ReactNode)\n : Def extends EnumOrStringPropDef<infer Type> ?\n Def extends ResponsivePropDef<infer Type extends string> ? Responsive<Union<string, Type>> : Type\n : Def extends EnumPropDef<infer Type> ? (Def extends ResponsivePropDef<infer Type> ? Responsive<Type> : Type)\n : never;\n\ntype GetPropDefTypes<P> = {\n [K in keyof P]?: GetPropDefType<P[K]>;\n};\n\nexport { breakpoints, breakpointSet };\nexport type {\n PropDef,\n GetPropDefTypes,\n ResponsivePropDef,\n //\n Breakpoint,\n Responsive,\n Union,\n};\n", "/** A util to check whether the object has a key, while inferring the correct key type */\nfunction hasOwnProperty<K extends string | number | symbol>(\n obj: Record<K, unknown>,\n key: string | number | symbol\n): key is K {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\nexport { hasOwnProperty };\n", "import type { Responsive, Breakpoint } from '../props/prop-def.js';\n\n// Use a Set for O(1) lookup instead of array.includes() which is O(n)\nconst breakpointSet = new Set<string>(['initial', 'xs', 'sm', 'md', 'lg', 'xl']);\n\nexport function isResponsiveObject<Value extends string>(\n obj: Responsive<Value | Omit<string, Value>> | undefined\n): obj is Record<Breakpoint, string> {\n if (typeof obj !== 'object' || obj === null) {\n return false;\n }\n // Use for...in to avoid Object.keys() array allocation\n for (const key in obj) {\n if (breakpointSet.has(key)) {\n return true;\n }\n }\n return false;\n}\n", "import { breakpointSet } from '../props/prop-def.js';\nimport { hasOwnProperty } from './has-own-property.js';\nimport { isResponsiveObject } from './is-responsive-object.js';\n\nimport type { Responsive, Union } from '../props/prop-def.js';\n\n/**\n * Membership test against a prop def's enum values. Callers that already hold a\n * compiled prop def pass `propValueSet` for an O(1) lookup; the handful of call\n * sites that build options inline fall back to scanning the array.\n */\nfunction includesValue(propValues: string[] | readonly string[], propValueSet: ReadonlySet<string> | undefined, value: string): boolean {\n return propValueSet !== undefined ? propValueSet.has(value) : propValues.includes(value);\n}\n\ninterface GetResponsiveStylesOptions {\n className: string;\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveStyles({ className, customProperties, ...args }: GetResponsiveStylesOptions) {\n const responsiveClassNames = getResponsiveClassNames({\n allowArbitraryValues: true,\n className,\n ...args,\n });\n\n const responsiveCustomProperties = getResponsiveCustomProperties({ customProperties, ...args });\n return [responsiveClassNames, responsiveCustomProperties] as const;\n}\n\ninterface GetResponsiveClassNamesOptions {\n allowArbitraryValues?: boolean;\n className: string;\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveClassNames({ allowArbitraryValues, value, className, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveClassNamesOptions): string | undefined {\n if (!value) {\n return undefined;\n }\n\n if (typeof value === 'string') {\n if (includesValue(propValues, propValueSet, value)) {\n return getBaseClassName(className, value, parseValue);\n }\n return allowArbitraryValues ? className : undefined;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n const classNames: string[] = [];\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n if (value !== undefined) {\n if (includesValue(propValues, propValueSet, value)) {\n const baseClassName = getBaseClassName(className, value, parseValue);\n const bpClassName = bp === 'initial' ? baseClassName : `${bp}:${baseClassName}`;\n classNames.push(bpClassName);\n } else if (allowArbitraryValues) {\n const bpClassName = bp === 'initial' ? className : `${bp}:${className}`;\n classNames.push(bpClassName);\n }\n }\n }\n\n return classNames.length > 0 ? classNames.join(' ') : '';\n }\n\n if (allowArbitraryValues) {\n return className;\n }\n}\n\nfunction getBaseClassName(className: string, value: string, parseValue: (value: string) => string | undefined): string {\n const delimiter = className ? '-' : '';\n const matchedValue = parseValue(value);\n const isNegative = matchedValue?.startsWith('-');\n const minus = isNegative ? '-' : '';\n const absoluteValue = isNegative ? matchedValue?.substring(1) : matchedValue;\n return `${minus}${className}${delimiter}${absoluteValue}`;\n}\n\ninterface GetResponsiveCustomPropertiesOptions {\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveCustomProperties({ customProperties, value, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveCustomPropertiesOptions) {\n // Don't generate custom properties if the value is not arbitrary\n if (!value || (typeof value === 'string' && includesValue(propValues, propValueSet, value))) {\n return undefined;\n }\n\n let styles: Record<string, string | undefined> | undefined;\n\n if (typeof value === 'string') {\n const parsed = parseValue(value);\n styles = {};\n for (const customProperty of customProperties) {\n styles[customProperty] = parsed;\n }\n return styles;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n // Don't generate a custom property if the value is not arbitrary\n if (value === undefined || includesValue(propValues, propValueSet, value)) {\n continue;\n }\n\n const parsed = parseValue(value);\n styles ??= {};\n for (const customProperty of customProperties) {\n const bpProperty = bp === 'initial' ? customProperty : `${customProperty}-${bp}`;\n styles[bpProperty] = parsed;\n }\n }\n }\n\n return styles ?? {};\n}\n\nexport { getResponsiveStyles, getResponsiveCustomProperties, getResponsiveClassNames };\n", "type InlineStyle =\n | React.CSSProperties\n | Record<string, string | number | null | undefined>\n | undefined;\n\n// Merges CSS styles like `classNames` merges CSS classes\n// Optimized to avoid object spread in loop - uses Object.assign for in-place mutation\nexport function mergeStyles(...styles: Array<InlineStyle>): InlineStyle {\n let result: Record<string, string | number | null | undefined> | undefined;\n\n for (const style of styles) {\n if (style) {\n if (result === undefined) {\n // First non-empty style - create result object\n result = {};\n }\n Object.assign(result, style);\n }\n }\n\n return result;\n}\n", "import type { PropDef, GetPropDefTypes } from './prop-def.js';\n\n// prettier-ignore\nconst marginValues = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '-1', '-2', '-3', '-4', '-5', '-6', '-7', '-8', '-9', '-10', '-11', '-12'] as const;\n\nconst marginPropDefs = {\n /**\n * Sets the CSS **margin** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * m=\"4\"\n * m=\"100px\"\n * m={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin\n */\n m: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-m',\n customProperties: ['--m'],\n },\n /**\n * Sets the CSS **margin-left** and **margin-right** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mx=\"4\"\n * mx=\"100px\"\n * mx={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mx: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mx',\n customProperties: ['--ml', '--mr'],\n },\n /**\n * Sets the CSS **margin-top** and **margin-bottom** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * my=\"4\"\n * my=\"100px\"\n * my={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n my: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-my',\n customProperties: ['--mt', '--mb'],\n },\n /**\n * Sets the CSS **margin-top** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mt=\"4\"\n * mt=\"100px\"\n * mt={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n */\n mt: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mt',\n customProperties: ['--mt'],\n },\n /**\n * Sets the CSS **margin-right** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mr=\"4\"\n * mr=\"100px\"\n * mr={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mr: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mr',\n customProperties: ['--mr'],\n },\n /**\n * Sets the CSS **margin-bottom** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mb=\"4\"\n * mb=\"100px\"\n * mb={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n mb: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mb',\n customProperties: ['--mb'],\n },\n /**\n * Sets the CSS **margin-left** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * ml=\"4\"\n * ml=\"100px\"\n * ml={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n */\n ml: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-ml',\n customProperties: ['--ml'],\n },\n} satisfies {\n m: PropDef<(typeof marginValues)[number]>;\n mx: PropDef<(typeof marginValues)[number]>;\n my: PropDef<(typeof marginValues)[number]>;\n mt: PropDef<(typeof marginValues)[number]>;\n mr: PropDef<(typeof marginValues)[number]>;\n mb: PropDef<(typeof marginValues)[number]>;\n ml: PropDef<(typeof marginValues)[number]>;\n};\n\ntype MarginProps = GetPropDefTypes<typeof marginPropDefs>;\n\nexport { marginPropDefs };\nexport type { MarginProps };\n", "import type { PropDef } from './prop-def.js';\n\nconst asChildPropDef = {\n /**\n * Composes the component into its immediate child instead of rendering its own HTML element.\n * You\u2019ll have to provide a single React Element child.\n */\n asChild: {\n type: 'boolean',\n },\n} satisfies {\n asChild: PropDef<boolean>;\n};\n\nexport { asChildPropDef };\n", "import type { PropDef } from './prop-def.js';\n\n// prettier-ignore\nconst accentColors = ['gray', 'gold', 'bronze', 'brown', 'yellow', 'amber', 'orange', 'tomato', 'red', 'ruby', 'crimson', 'pink', 'plum', 'purple', 'violet', 'iris', 'indigo', 'blue', 'cyan', 'teal', 'jade', 'green', 'grass', 'lime', 'mint', 'sky'] as const;\n\nconst grayColors = ['auto', 'gray', 'mauve', 'slate', 'sage', 'olive', 'sand'] as const;\n\nconst colorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: undefined as (typeof accentColors)[number] | undefined,\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// 1. When used on components that compose Text, sets the color of the text to the current accent.\n// 2. Re-declares the accent role tokens (`--accent-ink`, `--accent-solid`, ...) that descendants read.\nconst accentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: '' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// For components whose colour comes from their content (Badge, Avatar, Code): they rest gray, and `color` picks a category when it means something.\nconst grayAccentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: 'gray' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\nexport {\n accentColorPropDef,\n grayAccentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import type { PropDef } from './prop-def.js';\n\nconst emphases = ['loud', 'medium', 'quiet'] as const;\n\n// Text-first components only (Text, Heading, Blockquote, Code, DataList.Label).\n// No colour + emphasis reads the gray ink ladder; colour + emphasis reads the accent ink ladder.\n// Components that need a different default (DataList.Label: 'medium') spread this def and override `default`.\nconst emphasisPropDef = {\n emphasis: {\n type: 'enum',\n className: 'rt-emphasis',\n values: emphases,\n default: undefined,\n },\n} satisfies {\n emphasis: PropDef<(typeof emphases)[number]>;\n};\n\nexport { emphasisPropDef, emphases };\n", "import type { PropDef } from './prop-def.js';\n\nconst leadingTrimValues = ['normal', 'start', 'end', 'both'] as const;\n\nconst leadingTrimPropDef = {\n trim: {\n type: 'enum',\n className: 'rt-r-lt',\n values: leadingTrimValues,\n responsive: true,\n },\n} satisfies {\n trim: PropDef<(typeof leadingTrimValues)[number]>;\n};\n\nexport { leadingTrimPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst textAlignValues = ['left', 'center', 'right'] as const;\n\nconst textAlignPropDef = {\n align: {\n type: 'enum',\n className: 'rt-r-ta',\n values: textAlignValues,\n responsive: true,\n },\n} satisfies {\n align: PropDef<(typeof textAlignValues)[number]>;\n};\n\nexport { textAlignPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst textWrapValues = ['wrap', 'nowrap', 'pretty', 'balance'] as const;\n\nconst textWrapPropDef = {\n wrap: {\n type: 'enum',\n className: 'rt-r-tw',\n values: textWrapValues,\n responsive: true,\n },\n} satisfies {\n wrap: PropDef<(typeof textWrapValues)[number]>;\n};\n\nexport { textWrapPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst truncatePropDef = {\n truncate: {\n type: 'boolean',\n className: 'rt-truncate',\n },\n} satisfies {\n truncate: PropDef<boolean>;\n};\n\nexport { truncatePropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst fontFamilies = ['sans', 'mono', 'serif'] as const;\n\nconst fontFamilyPropDef = {\n font: {\n type: 'enum',\n className: 'rt-r-ff',\n values: fontFamilies,\n },\n} satisfies {\n font: PropDef<(typeof fontFamilies)[number]>;\n};\n\nexport { fontFamilyPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst weights = ['thin', 'extralight', 'light', 'regular', 'medium', 'semibold', 'bold', 'extrabold'] as const;\n\nconst weightPropDef = {\n weight: {\n type: 'enum',\n className: 'rt-r-weight',\n values: weights,\n responsive: true,\n },\n} satisfies {\n weight: PropDef<(typeof weights)[number]>;\n};\n\nexport { weightPropDef };\n", "import { asChildPropDef } from '../props/as-child.prop.js';\nimport { colorPropDef } from '../props/color.prop.js';\nimport { emphasisPropDef } from '../props/emphasis.prop.js';\nimport { leadingTrimPropDef } from '../props/leading-trim.prop.js';\nimport { textAlignPropDef } from '../props/text-align.prop.js';\nimport { textWrapPropDef } from '../props/text-wrap.prop.js';\nimport { truncatePropDef } from '../props/truncate.prop.js';\nimport { fontFamilyPropDef } from '../props/font-family.prop.js';\nimport { weightPropDef } from '../props/weight.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst as = ['span', 'div', 'label', 'p'] as const;\nconst sizes = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'] as const;\n\nconst textPropDefs = {\n as: { type: 'enum', values: as, default: 'span' },\n ...asChildPropDef,\n size: {\n type: 'enum',\n className: 'rt-r-size',\n values: sizes,\n responsive: true,\n },\n ...fontFamilyPropDef,\n ...weightPropDef,\n ...textAlignPropDef,\n ...leadingTrimPropDef,\n ...truncatePropDef,\n ...textWrapPropDef,\n ...colorPropDef,\n ...emphasisPropDef,\n} satisfies {\n as: PropDef<(typeof as)[number]>;\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport { textPropDefs };\n", "import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColorPropDef } from '../props/color.prop.js';\nimport { leadingTrimPropDef } from '../props/leading-trim.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 = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'] as const;\nconst underline = ['auto', 'always', 'hover', 'none'] as const;\n\nconst linkPropDefs = {\n ...asChildPropDef,\n size: {\n type: 'enum',\n className: 'rt-r-size',\n values: sizes,\n responsive: true,\n },\n ...weightPropDef,\n ...leadingTrimPropDef,\n ...truncatePropDef,\n ...textWrapPropDef,\n underline: { type: 'enum', className: 'rt-underline', values: underline, default: 'auto' },\n ...accentColorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n underline: PropDef<(typeof underline)[number]>;\n};\n\nexport { linkPropDefs };\n"],
5
+ "mappings": "2jBAAA,IAAAA,GAAA,GAAAC,EAAAD,GAAA,UAAAE,IAAA,eAAAC,GAAAH,IAAA,IAAAI,EAAuB,oBACvBC,EAAuB,yBCDvB,IAAAC,EAAuB,oBACvBC,EAAqB,oBCDrB,IAAAC,EAAuB,yBC0CvB,IAAMC,GAAkC,CAAC,EACnCC,GAAiC,IAAI,IA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C,EAAS,GAAGC,CAAU,EAAIC,EAAaP,EAAOQ,CAAY,EAC9F,OACE,gBAACC,EAAA,CACE,GAAGH,EACJ,oBAAmBF,EACnB,IAAKH,EACL,QAAO,GACP,aAAW,EAAAS,SAAW,WAAY,UAAWP,CAAS,GAErDE,EACCH,EAGA,gBAAC,SAAGA,CAAS,CAEjB,CAEJ,CAAC,EACDH,EAAK,YAAc",
6
6
  "names": ["link_exports", "__export", "Link", "__toCommonJS", "React", "import_classnames", "React", "import_radix_ui", "import_classnames", "EMPTY_VALUES", "EMPTY_SET", "compile", "propDefs", "merged", "styling", "passthrough", "stylingKeys", "key", "def", "values", "compiled", "cacheRoot", "getCompiledPropDefs", "node", "i", "propDef", "child", "breakpoints", "breakpointSet", "hasOwnProperty", "obj", "key", "breakpointSet", "isResponsiveObject", "obj", "key", "includesValue", "propValues", "propValueSet", "value", "getResponsiveStyles", "className", "customProperties", "args", "responsiveClassNames", "getResponsiveClassNames", "responsiveCustomProperties", "getResponsiveCustomProperties", "allowArbitraryValues", "parseValue", "getBaseClassName", "isResponsiveObject", "object", "classNames", "bp", "hasOwnProperty", "breakpointSet", "baseClassName", "bpClassName", "delimiter", "matchedValue", "isNegative", "minus", "absoluteValue", "styles", "parsed", "customProperty", "bpProperty", "mergeStyles", "styles", "result", "style", "normalizeResponsiveValue", "value", "propDef", "initial", "changed", "extractProps", "props", "propDefs", "styling", "passthrough", "stylingKeys", "getCompiledPropDefs", "extractedProps", "key", "i", "isResponsiveObject", "style", "classes", "propClassName", "getResponsiveClassNames", "propClassNames", "propCustomProperties", "getResponsiveStyles", "mergeStyles", "classNames", "marginValues", "marginPropDefs", "asChildPropDef", "accentColors", "colorPropDef", "accentColors", "accentColorPropDef", "emphases", "emphasisPropDef", "leadingTrimValues", "leadingTrimPropDef", "textAlignValues", "textAlignPropDef", "textWrapValues", "textWrapPropDef", "truncatePropDef", "fontFamilies", "fontFamilyPropDef", "weights", "weightPropDef", "as", "sizes", "textPropDefs", "asChildPropDef", "fontFamilyPropDef", "weightPropDef", "textAlignPropDef", "leadingTrimPropDef", "truncatePropDef", "textWrapPropDef", "colorPropDef", "emphasisPropDef", "mergedPropDefs", "textPropDefs", "marginPropDefs", "Text", "props", "forwardedRef", "children", "className", "asChild", "Tag", "color", "textProps", "extractProps", "combinedClassName", "sizes", "underline", "linkPropDefs", "asChildPropDef", "weightPropDef", "leadingTrimPropDef", "truncatePropDef", "textWrapPropDef", "accentColorPropDef", "Link", "props", "forwardedRef", "children", "className", "color", "asChild", "linkProps", "extractProps", "linkPropDefs", "Text", "classNames"]
7
7
  }
@@ -35,7 +35,7 @@ declare const linkPropDefs: {
35
35
  size: {
36
36
  type: "enum";
37
37
  className: string;
38
- values: readonly ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
38
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
39
39
  responsive: true;
40
40
  };
41
41
  asChild: {
@@ -1,2 +1,2 @@
1
- "use strict";var s=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var d=(o,e)=>{for(var t in e)s(o,t,{get:e[t],enumerable:!0})},D=(o,e,t,p)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of u(e))!y.call(o,r)&&r!==t&&s(o,r,{get:()=>e[r],enumerable:!(p=c(e,r))||p.enumerable});return o};var P=o=>D(s({},"__esModule",{value:!0}),o);var j={};d(j,{linkPropDefs:()=>x});module.exports=P(j);var a={asChild:{type:"boolean"}};var b=["gray","gold","bronze","brown","yellow","amber","orange","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","lime","mint","sky"];var n={color:{type:"enum",values:b,default:""}};var g=["normal","start","end","both"],i={trim:{type:"enum",className:"rt-r-lt",values:g,responsive:!0}};var h=["wrap","nowrap","pretty","balance"],l={wrap:{type:"enum",className:"rt-r-tw",values:h,responsive:!0}};var f={truncate:{type:"boolean",className:"rt-truncate"}};var v=["thin","extralight","light","regular","medium","semibold","bold","extrabold"],m={weight:{type:"enum",className:"rt-r-weight",values:v,responsive:!0}};var w=["1","2","3","4","5","6","7","8","9"],C=["auto","always","hover","none"],x={...a,size:{type:"enum",className:"rt-r-size",values:w,responsive:!0},...m,...i,...f,...l,underline:{type:"enum",className:"rt-underline",values:C,default:"auto"},...n};
1
+ "use strict";var s=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var d=(o,e)=>{for(var t in e)s(o,t,{get:e[t],enumerable:!0})},D=(o,e,t,p)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of u(e))!y.call(o,r)&&r!==t&&s(o,r,{get:()=>e[r],enumerable:!(p=c(e,r))||p.enumerable});return o};var P=o=>D(s({},"__esModule",{value:!0}),o);var j={};d(j,{linkPropDefs:()=>x});module.exports=P(j);var a={asChild:{type:"boolean"}};var b=["gray","gold","bronze","brown","yellow","amber","orange","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","lime","mint","sky"];var n={color:{type:"enum",values:b,default:""}};var g=["normal","start","end","both"],i={trim:{type:"enum",className:"rt-r-lt",values:g,responsive:!0}};var h=["wrap","nowrap","pretty","balance"],l={wrap:{type:"enum",className:"rt-r-tw",values:h,responsive:!0}};var f={truncate:{type:"boolean",className:"rt-truncate"}};var v=["thin","extralight","light","regular","medium","semibold","bold","extrabold"],m={weight:{type:"enum",className:"rt-r-weight",values:v,responsive:!0}};var w=["0","1","2","3","4","5","6","7","8","9","10","11","12"],C=["auto","always","hover","none"],x={...a,size:{type:"enum",className:"rt-r-size",values:w,responsive:!0},...m,...i,...f,...l,underline:{type:"enum",className:"rt-underline",values:C,default:"auto"},...n};
2
2
  //# sourceMappingURL=link.props.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/link.props.tsx", "../../../src/props/as-child.prop.ts", "../../../src/props/color.prop.ts", "../../../src/props/leading-trim.prop.ts", "../../../src/props/text-wrap.prop.ts", "../../../src/props/truncate.prop.ts", "../../../src/props/weight.prop.ts"],
4
- "sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColorPropDef } from '../props/color.prop.js';\nimport { leadingTrimPropDef } from '../props/leading-trim.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 underline = ['auto', 'always', 'hover', 'none'] as const;\n\nconst linkPropDefs = {\n ...asChildPropDef,\n size: {\n type: 'enum',\n className: 'rt-r-size',\n values: sizes,\n responsive: true,\n },\n ...weightPropDef,\n ...leadingTrimPropDef,\n ...truncatePropDef,\n ...textWrapPropDef,\n underline: { type: 'enum', className: 'rt-underline', values: underline, default: 'auto' },\n ...accentColorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n underline: PropDef<(typeof underline)[number]>;\n};\n\nexport { linkPropDefs };\n", "import type { PropDef } from './prop-def.js';\n\nconst asChildPropDef = {\n /**\n * Composes the component into its immediate child instead of rendering its own HTML element.\n * You\u2019ll have to provide a single React Element child.\n */\n asChild: {\n type: 'boolean',\n },\n} satisfies {\n asChild: PropDef<boolean>;\n};\n\nexport { asChildPropDef };\n", "import type { PropDef } from './prop-def.js';\n\n// prettier-ignore\nconst accentColors = ['gray', 'gold', 'bronze', 'brown', 'yellow', 'amber', 'orange', 'tomato', 'red', 'ruby', 'crimson', 'pink', 'plum', 'purple', 'violet', 'iris', 'indigo', 'blue', 'cyan', 'teal', 'jade', 'green', 'grass', 'lime', 'mint', 'sky'] as const;\n\nconst grayColors = ['auto', 'gray', 'mauve', 'slate', 'sage', 'olive', 'sand'] as const;\n\nconst colorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: undefined as (typeof accentColors)[number] | undefined,\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// 1. When used on components that compose Text, sets the color of the text to the current accent.\n// 2. Re-declares the accent role tokens (`--accent-ink`, `--accent-solid`, ...) that descendants read.\nconst accentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: '' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// For components whose colour comes from their content (Badge, Avatar, Code, Callout,\n// UserCard): they rest gray, and `color` picks a category when it means something.\nconst grayAccentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: 'gray' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\nexport {\n accentColorPropDef,\n grayAccentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import type { PropDef } from './prop-def.js';\n\nconst leadingTrimValues = ['normal', 'start', 'end', 'both'] as const;\n\nconst leadingTrimPropDef = {\n trim: {\n type: 'enum',\n className: 'rt-r-lt',\n values: leadingTrimValues,\n responsive: true,\n },\n} satisfies {\n trim: PropDef<(typeof leadingTrimValues)[number]>;\n};\n\nexport { leadingTrimPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst textWrapValues = ['wrap', 'nowrap', 'pretty', 'balance'] as const;\n\nconst textWrapPropDef = {\n wrap: {\n type: 'enum',\n className: 'rt-r-tw',\n values: textWrapValues,\n responsive: true,\n },\n} satisfies {\n wrap: PropDef<(typeof textWrapValues)[number]>;\n};\n\nexport { textWrapPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst truncatePropDef = {\n truncate: {\n type: 'boolean',\n className: 'rt-truncate',\n },\n} satisfies {\n truncate: PropDef<boolean>;\n};\n\nexport { truncatePropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst weights = ['thin', 'extralight', 'light', 'regular', 'medium', 'semibold', 'bold', 'extrabold'] as const;\n\nconst weightPropDef = {\n weight: {\n type: 'enum',\n className: 'rt-r-weight',\n values: weights,\n responsive: true,\n },\n} satisfies {\n weight: PropDef<(typeof weights)[number]>;\n};\n\nexport { weightPropDef };\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,kBAAAE,IAAA,eAAAC,EAAAH,GCEA,IAAMI,EAAiB,CAKrB,QAAS,CACP,KAAM,SACR,CACF,ECPA,IAAMC,EAAe,CAAC,OAAQ,OAAQ,SAAU,QAAS,SAAU,QAAS,SAAU,SAAU,MAAO,OAAQ,UAAW,OAAQ,OAAQ,SAAU,SAAU,OAAQ,SAAU,OAAQ,OAAQ,OAAQ,OAAQ,QAAS,QAAS,OAAQ,OAAQ,KAAK,EAgBvP,IAAMC,EAAqB,CACzB,MAAO,CACL,KAAM,OACN,OAAQC,EACR,QAAS,EACX,CACF,ECvBA,IAAMC,EAAoB,CAAC,SAAU,QAAS,MAAO,MAAM,EAErDC,EAAqB,CACzB,KAAM,CACJ,KAAM,OACN,UAAW,UACX,OAAQD,EACR,WAAY,EACd,CACF,ECTA,IAAME,EAAiB,CAAC,OAAQ,SAAU,SAAU,SAAS,EAEvDC,EAAkB,CACtB,KAAM,CACJ,KAAM,OACN,UAAW,UACX,OAAQD,EACR,WAAY,EACd,CACF,ECTA,IAAME,EAAkB,CACtB,SAAU,CACR,KAAM,UACN,UAAW,aACb,CACF,ECLA,IAAMC,EAAU,CAAC,OAAQ,aAAc,QAAS,UAAW,SAAU,WAAY,OAAQ,WAAW,EAE9FC,EAAgB,CACpB,OAAQ,CACN,KAAM,OACN,UAAW,cACX,OAAQD,EACR,WAAY,EACd,CACF,ENFA,IAAME,EAAQ,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,GAAG,EACpDC,EAAY,CAAC,OAAQ,SAAU,QAAS,MAAM,EAE9CC,EAAe,CACnB,GAAGC,EACH,KAAM,CACJ,KAAM,OACN,UAAW,YACX,OAAQH,EACR,WAAY,EACd,EACA,GAAGI,EACH,GAAGC,EACH,GAAGC,EACH,GAAGC,EACH,UAAW,CAAE,KAAM,OAAQ,UAAW,eAAgB,OAAQN,EAAW,QAAS,MAAO,EACzF,GAAGO,CACL",
4
+ "sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColorPropDef } from '../props/color.prop.js';\nimport { leadingTrimPropDef } from '../props/leading-trim.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 = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'] as const;\nconst underline = ['auto', 'always', 'hover', 'none'] as const;\n\nconst linkPropDefs = {\n ...asChildPropDef,\n size: {\n type: 'enum',\n className: 'rt-r-size',\n values: sizes,\n responsive: true,\n },\n ...weightPropDef,\n ...leadingTrimPropDef,\n ...truncatePropDef,\n ...textWrapPropDef,\n underline: { type: 'enum', className: 'rt-underline', values: underline, default: 'auto' },\n ...accentColorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n underline: PropDef<(typeof underline)[number]>;\n};\n\nexport { linkPropDefs };\n", "import type { PropDef } from './prop-def.js';\n\nconst asChildPropDef = {\n /**\n * Composes the component into its immediate child instead of rendering its own HTML element.\n * You\u2019ll have to provide a single React Element child.\n */\n asChild: {\n type: 'boolean',\n },\n} satisfies {\n asChild: PropDef<boolean>;\n};\n\nexport { asChildPropDef };\n", "import type { PropDef } from './prop-def.js';\n\n// prettier-ignore\nconst accentColors = ['gray', 'gold', 'bronze', 'brown', 'yellow', 'amber', 'orange', 'tomato', 'red', 'ruby', 'crimson', 'pink', 'plum', 'purple', 'violet', 'iris', 'indigo', 'blue', 'cyan', 'teal', 'jade', 'green', 'grass', 'lime', 'mint', 'sky'] as const;\n\nconst grayColors = ['auto', 'gray', 'mauve', 'slate', 'sage', 'olive', 'sand'] as const;\n\nconst colorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: undefined as (typeof accentColors)[number] | undefined,\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// 1. When used on components that compose Text, sets the color of the text to the current accent.\n// 2. Re-declares the accent role tokens (`--accent-ink`, `--accent-solid`, ...) that descendants read.\nconst accentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: '' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// For components whose colour comes from their content (Badge, Avatar, Code): they rest gray, and `color` picks a category when it means something.\nconst grayAccentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: 'gray' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\nexport {\n accentColorPropDef,\n grayAccentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import type { PropDef } from './prop-def.js';\n\nconst leadingTrimValues = ['normal', 'start', 'end', 'both'] as const;\n\nconst leadingTrimPropDef = {\n trim: {\n type: 'enum',\n className: 'rt-r-lt',\n values: leadingTrimValues,\n responsive: true,\n },\n} satisfies {\n trim: PropDef<(typeof leadingTrimValues)[number]>;\n};\n\nexport { leadingTrimPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst textWrapValues = ['wrap', 'nowrap', 'pretty', 'balance'] as const;\n\nconst textWrapPropDef = {\n wrap: {\n type: 'enum',\n className: 'rt-r-tw',\n values: textWrapValues,\n responsive: true,\n },\n} satisfies {\n wrap: PropDef<(typeof textWrapValues)[number]>;\n};\n\nexport { textWrapPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst truncatePropDef = {\n truncate: {\n type: 'boolean',\n className: 'rt-truncate',\n },\n} satisfies {\n truncate: PropDef<boolean>;\n};\n\nexport { truncatePropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst weights = ['thin', 'extralight', 'light', 'regular', 'medium', 'semibold', 'bold', 'extrabold'] as const;\n\nconst weightPropDef = {\n weight: {\n type: 'enum',\n className: 'rt-r-weight',\n values: weights,\n responsive: true,\n },\n} satisfies {\n weight: PropDef<(typeof weights)[number]>;\n};\n\nexport { weightPropDef };\n"],
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,kBAAAE,IAAA,eAAAC,EAAAH,GCEA,IAAMI,EAAiB,CAKrB,QAAS,CACP,KAAM,SACR,CACF,ECPA,IAAMC,EAAe,CAAC,OAAQ,OAAQ,SAAU,QAAS,SAAU,QAAS,SAAU,SAAU,MAAO,OAAQ,UAAW,OAAQ,OAAQ,SAAU,SAAU,OAAQ,SAAU,OAAQ,OAAQ,OAAQ,OAAQ,QAAS,QAAS,OAAQ,OAAQ,KAAK,EAgBvP,IAAMC,EAAqB,CACzB,MAAO,CACL,KAAM,OACN,OAAQC,EACR,QAAS,EACX,CACF,ECvBA,IAAMC,EAAoB,CAAC,SAAU,QAAS,MAAO,MAAM,EAErDC,EAAqB,CACzB,KAAM,CACJ,KAAM,OACN,UAAW,UACX,OAAQD,EACR,WAAY,EACd,CACF,ECTA,IAAME,EAAiB,CAAC,OAAQ,SAAU,SAAU,SAAS,EAEvDC,EAAkB,CACtB,KAAM,CACJ,KAAM,OACN,UAAW,UACX,OAAQD,EACR,WAAY,EACd,CACF,ECTA,IAAME,EAAkB,CACtB,SAAU,CACR,KAAM,UACN,UAAW,aACb,CACF,ECLA,IAAMC,EAAU,CAAC,OAAQ,aAAc,QAAS,UAAW,SAAU,WAAY,OAAQ,WAAW,EAE9FC,EAAgB,CACpB,OAAQ,CACN,KAAM,OACN,UAAW,cACX,OAAQD,EACR,WAAY,EACd,CACF,ENFA,IAAME,EAAQ,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,KAAM,KAAM,IAAI,EAC3EC,EAAY,CAAC,OAAQ,SAAU,QAAS,MAAM,EAE9CC,EAAe,CACnB,GAAGC,EACH,KAAM,CACJ,KAAM,OACN,UAAW,YACX,OAAQH,EACR,WAAY,EACd,EACA,GAAGI,EACH,GAAGC,EACH,GAAGC,EACH,GAAGC,EACH,UAAW,CAAE,KAAM,OAAQ,UAAW,eAAgB,OAAQN,EAAW,QAAS,MAAO,EACzF,GAAGO,CACL",
6
6
  "names": ["link_props_exports", "__export", "linkPropDefs", "__toCommonJS", "asChildPropDef", "accentColors", "accentColorPropDef", "accentColors", "leadingTrimValues", "leadingTrimPropDef", "textWrapValues", "textWrapPropDef", "truncatePropDef", "weights", "weightPropDef", "sizes", "underline", "linkPropDefs", "asChildPropDef", "weightPropDef", "leadingTrimPropDef", "truncatePropDef", "textWrapPropDef", "accentColorPropDef"]
7
7
  }
@@ -1,5 +1,5 @@
1
- "use strict";"use client";var Nt=Object.create;var Q=Object.defineProperty;var Vt=Object.getOwnPropertyDescriptor;var kt=Object.getOwnPropertyNames;var Ft=Object.getPrototypeOf,Et=Object.prototype.hasOwnProperty;var Ot=(e,t)=>{for(var o in t)Q(e,o,{get:t[o],enumerable:!0})},Ee=(e,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of kt(t))!Et.call(e,r)&&r!==o&&Q(e,r,{get:()=>t[r],enumerable:!(s=Vt(t,r))||s.enumerable});return e};var c=(e,t,o)=>(o=e!=null?Nt(Ft(e)):{},Ee(t||!e||!e.__esModule?Q(o,"default",{value:e,enumerable:!0}):o,e)),Mt=e=>Ee(Q({},"__esModule",{value:!0}),e);var So={};Ot(So,{Button:()=>wt,Content:()=>St,Item:()=>Bt,Root:()=>xt,Viewport:()=>Tt,useMessageScroller:()=>x.useMessageScroller,useMessageScrollerScrollable:()=>x.useMessageScrollerScrollable,useMessageScrollerVisibility:()=>x.useMessageScrollerVisibility});module.exports=Mt(So);var b=c(require("react")),U=c(require("classnames")),x=require("@shadcn/react/message-scroller"),Ct=require("radix-ui/internal");var ae=c(require("react"));var y=c(require("react")),rt=c(require("classnames")),st=require("radix-ui");function Oe(e){return e==="classic"?"raised":(e==="override"&&void 0,e)}var j={asChild:{type:"boolean"}};var Z=["gray","gold","bronze","brown","yellow","amber","orange","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","lime","mint","sky"],Me=["auto","gray","mauve","slate","sage","olive","sand"],je={color:{type:"enum",values:Z,default:void 0}},Ie={color:{type:"enum",values:Z,default:""}};var ce=["none","small","medium","large","full"],We={radius:{type:"enum",values:ce,default:void 0}};var jt=["1","2","3","4"],It=["raised","solid","soft","surface","outline","ghost","override","classic"],Wt=["solid","translucent"],At=["solid","translucent"],de={...j,size:{type:"enum",className:"rt-r-size",values:jt,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:It,default:"raised",parseValue:Oe},...Ie,...We,loading:{type:"boolean",className:"rt-loading",default:!1},fullWidth:{type:"boolean",className:"rt-full-width",default:!1},material:{type:"enum",values:At,default:void 0},panelBackground:{type:"enum",values:Wt,default:void 0},flush:{type:"boolean",default:!1}};var oe=c(require("react")),Ye=c(require("classnames"));var ze=c(require("classnames"));var Gt=[],Ht=new Set;function zt(e){let t=Object.assign({},...e),o=[],s=[],r=new Set;for(let a in t){let n=t[a],i=n.values??Gt,l={key:a,type:n.type,default:n.default,hasDefault:n.default!==void 0,responsive:"responsive"in n,className:n.className,customProperties:n.customProperties,parseValue:n.parseValue,values:i,valueSet:i.length>0?new Set(i):Ht,enumValueSet:n.type==="enum"?new Set([n.default,...i]):void 0};n.className?(o.push(l),r.add(a)):(l.hasDefault||n.type==="enum")&&s.push(l)}return{styling:o,passthrough:s,stylingKeys:r}}var Lt={children:new WeakMap};function Ae(e){let t=Lt;for(let o=0;o<e.length;o++){let s=e[o],r=t.children.get(s);r===void 0&&(r={children:new WeakMap},t.children.set(s,r)),t=r}return t.compiled??(t.compiled=zt(e))}var $t=["initial","xs","sm","md","lg","xl"],ye=new Set($t);function ge(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Kt=new Set(["initial","xs","sm","md","lg","xl"]);function A(e){if(typeof e!="object"||e===null)return!1;for(let t in e)if(Kt.has(t))return!0;return!1}function ee(e,t,o){return t!==void 0?t.has(o):e.includes(o)}function He({className:e,customProperties:t,...o}){let s=Pe({allowArbitraryValues:!0,className:e,...o}),r=qt({customProperties:t,...o});return[s,r]}function Pe({allowArbitraryValues:e,value:t,className:o,propValues:s,propValueSet:r,parseValue:a=n=>n}){if(t){if(typeof t=="string")return ee(s,r,t)?Ge(o,t,a):e?o:void 0;if(A(t)){let n=t,i=[];for(let l in n){if(!ge(n,l)||!ye.has(l))continue;let p=n[l];if(p!==void 0){if(ee(s,r,p)){let u=Ge(o,p,a),f=l==="initial"?u:`${l}:${u}`;i.push(f)}else if(e){let u=l==="initial"?o:`${l}:${o}`;i.push(u)}}}return i.length>0?i.join(" "):""}if(e)return o}}function Ge(e,t,o){let s=e?"-":"",r=o(t),a=r?.startsWith("-"),n=a?"-":"",i=a?r?.substring(1):r;return`${n}${e}${s}${i}`}function qt({customProperties:e,value:t,propValues:o,propValueSet:s,parseValue:r=a=>a}){if(!t||typeof t=="string"&&ee(o,s,t))return;let a;if(typeof t=="string"){let n=r(t);a={};for(let i of e)a[i]=n;return a}if(A(t)){let n=t;for(let i in n){if(!ge(n,i)||!ye.has(i))continue;let l=n[i];if(l===void 0||ee(o,s,l))continue;let p=r(l);a??(a={});for(let u of e){let f=i==="initial"?u:`${u}-${i}`;a[f]=p}}}return a??{}}function he(...e){let t;for(let o of e)o&&(t===void 0&&(t={}),Object.assign(t,o));return t}function Ut(e,t){let o=e.initial,s=!1;return t.hasDefault&&o===void 0&&(o=t.default,s=!0),t.enumValueSet!==void 0&&!t.enumValueSet.has(o)&&(o=t.default,s=!0),s?{...e,initial:o}:e}function N(e,...t){let{styling:o,passthrough:s,stylingKeys:r}=Ae(t),a={};for(let l in e)r.has(l)||(a[l]=e[l]);for(let l=0;l<s.length;l++){let p=s[l],u=a[p.key];if(u===void 0){p.hasDefault&&(a[p.key]=p.default);continue}p.enumValueSet!==void 0&&!p.enumValueSet.has(u)&&!A(u)&&(a[p.key]=p.default)}let n,i=[];for(let l=0;l<o.length;l++){let p=o[l],u=e[p.key];if(u===void 0&&p.hasDefault&&(u=p.default),p.enumValueSet!==void 0&&!p.enumValueSet.has(u)&&!A(u)&&(u=p.default),!!u){if(A(u)){if(!p.responsive)continue;u=Ut(u,p)}if(p.type==="enum"){let f=Pe({allowArbitraryValues:!1,value:u,className:p.className,propValues:p.values,propValueSet:p.valueSet,parseValue:p.parseValue});f&&i.push(f);continue}if(p.type==="string"||p.type==="enum | string"){let[f,D]=He({className:p.className,customProperties:p.customProperties,propValues:p.type==="string"?[]:p.values,propValueSet:p.type==="string"?void 0:p.valueSet,parseValue:p.parseValue,value:u});D&&(n=he(n,D)),f&&i.push(f);continue}if(p.type==="boolean"){i.push(p.className);continue}}}return a.className=(0,ze.default)(i.length>0?i.join(" "):void 0,e.className),a.style=he(n,e.style),a}var G=["0","1","2","3","4","5","6","7","8","9","10","11","12"],Le={p:{type:"enum | string",className:"rt-r-p",customProperties:["--p"],values:G,responsive:!0},px:{type:"enum | string",className:"rt-r-px",customProperties:["--pl","--pr"],values:G,responsive:!0},py:{type:"enum | string",className:"rt-r-py",customProperties:["--pt","--pb"],values:G,responsive:!0},pt:{type:"enum | string",className:"rt-r-pt",customProperties:["--pt"],values:G,responsive:!0},pr:{type:"enum | string",className:"rt-r-pr",customProperties:["--pr"],values:G,responsive:!0},pb:{type:"enum | string",className:"rt-r-pb",customProperties:["--pb"],values:G,responsive:!0},pl:{type:"enum | string",className:"rt-r-pl",customProperties:["--pl"],values:G,responsive:!0}};var $e={height:{type:"string",className:"rt-r-h",customProperties:["--height"],responsive:!0},minHeight:{type:"string",className:"rt-r-min-h",customProperties:["--min-height"],responsive:!0},maxHeight:{type:"string",className:"rt-r-max-h",customProperties:["--max-height"],responsive:!0}};var $={width:{type:"string",className:"rt-r-w",customProperties:["--width"],responsive:!0},minWidth:{type:"string",className:"rt-r-min-w",customProperties:["--min-width"],responsive:!0},maxWidth:{type:"string",className:"rt-r-max-w",customProperties:["--max-width"],responsive:!0}};var ve=["visible","hidden","clip","scroll","auto"],_t=["static","relative","absolute","fixed","sticky"],Y=["0","1","2","3","4","5","6","7","8","9","-1","-2","-3","-4","-5","-6","-7","-8","-9"],Yt=["0","1"],Xt=["0","1"],Jt=["start","center","end","baseline","stretch"],Qt=["start","center","end","baseline","stretch"],Ke={...Le,...$,...$e,position:{type:"enum",className:"rt-r-position",values:_t,responsive:!0},inset:{type:"enum | string",className:"rt-r-inset",customProperties:["--inset"],values:Y,responsive:!0},top:{type:"enum | string",className:"rt-r-top",customProperties:["--top"],values:Y,responsive:!0},right:{type:"enum | string",className:"rt-r-right",customProperties:["--right"],values:Y,responsive:!0},bottom:{type:"enum | string",className:"rt-r-bottom",customProperties:["--bottom"],values:Y,responsive:!0},left:{type:"enum | string",className:"rt-r-left",customProperties:["--left"],values:Y,responsive:!0},overflow:{type:"enum",className:"rt-r-overflow",values:ve,responsive:!0},overflowX:{type:"enum",className:"rt-r-ox",values:ve,responsive:!0},overflowY:{type:"enum",className:"rt-r-oy",values:ve,responsive:!0},flexBasis:{type:"string",className:"rt-r-fb",customProperties:["--flex-basis"],responsive:!0},flexShrink:{type:"enum | string",className:"rt-r-fs",customProperties:["--flex-shrink"],values:Yt,responsive:!0},flexGrow:{type:"enum | string",className:"rt-r-fg",customProperties:["--flex-grow"],values:Xt,responsive:!0},gridArea:{type:"string",className:"rt-r-ga",customProperties:["--grid-area"],responsive:!0},gridColumn:{type:"string",className:"rt-r-gc",customProperties:["--grid-column"],responsive:!0},gridColumnStart:{type:"string",className:"rt-r-gcs",customProperties:["--grid-column-start"],responsive:!0},gridColumnEnd:{type:"string",className:"rt-r-gce",customProperties:["--grid-column-end"],responsive:!0},gridRow:{type:"string",className:"rt-r-gr",customProperties:["--grid-row"],responsive:!0},gridRowStart:{type:"string",className:"rt-r-grs",customProperties:["--grid-row-start"],responsive:!0},gridRowEnd:{type:"string",className:"rt-r-gre",customProperties:["--grid-row-end"],responsive:!0},alignSelf:{type:"enum",className:"rt-r-as",values:Jt,responsive:!0},justifySelf:{type:"enum",className:"rt-r-js",values:Qt,responsive:!0}};var H=["0","1","2","3","4","5","6","7","8","9","10","11","12","-1","-2","-3","-4","-5","-6","-7","-8","-9","-10","-11","-12"],I={m:{type:"enum | string",values:H,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:H,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:H,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:H,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:H,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:H,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:H,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}};var te=require("radix-ui"),nr=te.Slot.Root,qe=te.Slot.Root,ar=te.Slot.Slottable;var be=["0","1","2","3","4","5","6","7","8","9","10","11","12"],Ue={gap:{type:"enum | string",className:"rt-r-gap",customProperties:["--gap"],values:be,responsive:!0},gapX:{type:"enum | string",className:"rt-r-cg",customProperties:["--column-gap"],values:be,responsive:!0},gapY:{type:"enum | string",className:"rt-r-rg",customProperties:["--row-gap"],values:be,responsive:!0}};var Zt=["div","span"],eo=["none","inline-flex","flex"],to=["row","column","row-reverse","column-reverse"],oo=["start","center","end","baseline","stretch"],ro=["start","center","end","between"],so=["nowrap","wrap","wrap-reverse"],_e={as:{type:"enum",values:Zt,default:"div"},...j,display:{type:"enum",className:"rt-r-display",values:eo,responsive:!0},direction:{type:"enum",className:"rt-r-fd",values:to,responsive:!0},align:{type:"enum",className:"rt-r-ai",values:oo,responsive:!0},justify:{type:"enum",className:"rt-r-jc",values:ro,parseValue:no,responsive:!0},wrap:{type:"enum",className:"rt-r-fw",values:so,responsive:!0},...Ue};function no(e){return e==="between"?"space-between":e}var K=oe.forwardRef((e,t)=>{let{className:o,asChild:s,as:r="div",...a}=N(e,_e,Ke,I);return oe.createElement(s?qe:r,{...a,ref:t,className:(0,Ye.default)("rt-Flex",o)})});K.displayName="Flex";var v=c(require("react")),Je=c(require("classnames"));var ao=["1","2","3"],Xe={size:{type:"enum",className:"rt-r-size",values:ao,default:"2",responsive:!0},loading:{type:"boolean",default:!0}};var De=v.forwardRef((e,t)=>{let{className:o,children:s,loading:r,...a}=N(e,Xe,I);if(!r)return s;let n=v.createElement("span",{...a,ref:t,className:(0,Je.default)("rt-Spinner",o)},v.createElement("span",{className:"rt-SpinnerLeaf"}),v.createElement("span",{className:"rt-SpinnerLeaf"}),v.createElement("span",{className:"rt-SpinnerLeaf"}),v.createElement("span",{className:"rt-SpinnerLeaf"}),v.createElement("span",{className:"rt-SpinnerLeaf"}),v.createElement("span",{className:"rt-SpinnerLeaf"}),v.createElement("span",{className:"rt-SpinnerLeaf"}),v.createElement("span",{className:"rt-SpinnerLeaf"}));return s===void 0?n:v.createElement(K,{asChild:!0,position:"relative",align:"center",justify:"center"},v.createElement("span",null,v.createElement("span",{"aria-hidden":!0,style:{display:"contents",visibility:"hidden"},inert:void 0},s),v.createElement(K,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},v.createElement("span",null,n))))});De.displayName="Spinner";var Re=require("radix-ui"),Qe=Re.VisuallyHidden.Root,xr=Re.VisuallyHidden.Root;var et=c(require("react")),io="Warning: The `panelBackground` prop is deprecated and will be removed in a future version. Use `material` prop instead.",Ze=new Set;function po(e){Ze.has(e)||(Ze.add(e),console.warn(e))}function re(e){et.useEffect(()=>{},[e])}function tt(e,t){if(e!==void 0)return typeof e=="string"?t(e):Object.fromEntries(Object.entries(e).map(([o,s])=>[o,t(s)]))}function ot(e){switch(e){case"1":return"1";case"2":case"3":return"2";case"4":return"3"}}var Ce=y.forwardRef((e,t)=>{let{size:o=de.size.default}=e,{className:s,children:r,asChild:a,as:n,color:i,radius:l,material:p,panelBackground:u,flush:f,disabled:D=e.loading,...T}=N(e,de,I);re(e.panelBackground);let B=p??u,E=a?st.Slot.Root:n||"button",w=a||!n||["button","input","textarea","select"].includes(n),O=!a&&(!n||n==="button"),M="type"in T,F=y.useId(),S=e.loading?`${F}-loading`:void 0,g=y.useMemo(()=>typeof r=="string"?r:y.isValidElement(r)&&typeof r.props?.children=="string"?r.props.children:"button",[r]),C=y.useMemo(()=>e.loading?{"aria-busy":!0,"aria-disabled":!0,"aria-describedby":S,"aria-label":`${g} (loading)`}:{},[e.loading,S,g]);return y.createElement(E,{"data-disabled":D||void 0,"data-accent-color":i,"data-radius":l,"data-material":B,"data-panel-background":B,"data-flush":f?"true":void 0,...T,...C,ref:t,className:(0,rt.default)("rt-reset","rt-BaseButton",s),...w&&{disabled:D},...O&&!M?{type:"button"}:{}},e.loading?y.createElement(y.Fragment,null,y.createElement("span",{style:{display:"contents",visibility:"hidden"},"aria-hidden":!0},r),y.createElement(Qe,null,y.createElement("span",{id:S},g," is loading, please wait..."),r),y.createElement(K,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},y.createElement("span",null,y.createElement(De,{size:tt(o,ot),"aria-hidden":"true"})))):r)});Ce.displayName="BaseButton";var W=c(require("react")),Dt=c(require("classnames"));var k=c(require("react")),vt=c(require("classnames")),q=require("radix-ui");var z=c(require("react")),ct=require("radix-ui");var lo=["loud","medium","quiet"],nt={emphasis:{type:"enum",className:"rt-emphasis",values:lo,default:void 0}};var uo=["normal","start","end","both"],at={trim:{type:"enum",className:"rt-r-lt",values:uo,responsive:!0}};var mo=["left","center","right"],it={align:{type:"enum",className:"rt-r-ta",values:mo,responsive:!0}};var fo=["wrap","nowrap","pretty","balance"],pt={wrap:{type:"enum",className:"rt-r-tw",values:fo,responsive:!0}};var lt={truncate:{type:"boolean",className:"rt-truncate"}};var co=["sans","mono","serif"],ut={font:{type:"enum",className:"rt-r-ff",values:co}};var yo=["thin","extralight","light","regular","medium","semibold","bold","extrabold"],mt={weight:{type:"enum",className:"rt-r-weight",values:yo,responsive:!0}};var go=["span","div","label","p"],Po=["0","1","2","3","4","5","6","7","8","9","10","11","12"],ft={as:{type:"enum",values:go,default:"span"},...j,size:{type:"enum",className:"rt-r-size",values:Po,responsive:!0},...ut,...mt,...it,...at,...lt,...pt,...je,...nt};var ho={...ft,...I},xe=z.memo(z.forwardRef((e,t)=>{let{children:o,className:s,asChild:r,as:a="span",color:n,...i}=N(e,ho),l=s?`rt-Text ${s}`:"rt-Text";return r?z.createElement(ct.Slot.Root,{"data-accent-color":n,...i,ref:t,className:l},o):z.createElement(a,{"data-accent-color":n,...i,ref:t,className:l},o)}));xe.displayName="Text";var d=c(require("react")),gt=c(require("classnames")),L=require("radix-ui"),se=require("radix-ui/internal");function dt(e){switch(e){case"tomato":case"red":case"ruby":case"crimson":case"pink":case"plum":case"purple":case"violet":return"mauve";case"iris":case"indigo":case"blue":case"sky":case"cyan":return"slate";case"teal":case"jade":case"mint":case"green":return"sage";case"grass":case"lime":return"olive";case"yellow":case"amber":case"orange":case"brown":case"gold":case"bronze":return"sand";case"gray":return"gray"}}var Te=c(require("react"));function V(e){let[t,o]=Te.useState(e),[s,r]=Te.useState(e);return Object.is(e,s)||(r(e),o(e)),[t,o]}var vo=["inherit","light","dark"],bo=["solid","translucent"],Do=["solid","translucent"],Ro=["90%","95%","100%","105%","110%"],yt=["sans","mono","serif"],m={...j,hasBackground:{type:"boolean",default:!0},appearance:{type:"enum",values:vo,default:"inherit"},accentColor:{type:"enum",values:Z,default:"gray"},grayColor:{type:"enum",values:Me,default:"gray"},material:{type:"enum",values:Do,default:"solid"},panelBackground:{type:"enum",values:bo,default:"solid"},radius:{type:"enum",values:ce,default:"full"},scaling:{type:"enum",values:Ro,default:"100%"},fontFamily:{type:"enum",values:yt,default:"sans"},headingFontFamily:{type:"enum",values:yt}};var h=()=>{},ds={appearance:m.appearance.default,accentColor:m.accentColor.default,grayColor:m.grayColor.default,resolvedGrayColor:m.grayColor.default,material:m.material.default,panelBackground:m.panelBackground.default,radius:m.radius.default,scaling:m.scaling.default,fontFamily:m.fontFamily.default,headingFontFamily:void 0,onAppearanceChange:h,onAccentColorChange:h,onGrayColorChange:h,onMaterialChange:h,onPanelBackgroundChange:h,onRadiusChange:h,onScalingChange:h,onFontFamilyChange:h,onHeadingFontFamilyChange:h},Se=d.createContext(void 0);var Be=d.forwardRef((e,t)=>{let o=d.useContext(Se),s=L.Direction.useDirection();return o===void 0?d.createElement(L.Tooltip.Provider,{delayDuration:200},d.createElement(L.Direction.Provider,{dir:s},d.createElement(Pt,{...e,ref:t}))):d.createElement(we,{...e,ref:t})});Be.displayName="Theme";var Pt=d.forwardRef((e,t)=>{let{appearance:o=m.appearance.default,accentColor:s=m.accentColor.default,grayColor:r=m.grayColor.default,material:a=m.material.default,panelBackground:n=m.panelBackground.default,radius:i=m.radius.default,scaling:l=m.scaling.default,fontFamily:p=m.fontFamily.default,headingFontFamily:u,hasBackground:f=m.hasBackground.default,...D}=e;re(e.panelBackground);let[T,B]=V(o),[E,w]=V(s),[O,M]=V(r),F=a!==m.material.default?a:n,[S,g]=V(F),[C,R]=V(S),[P,pe]=V(i),[_,le]=V(l),[ue,X]=V(p),[me,J]=V(u);return d.createElement(we,{...D,ref:t,isRoot:!0,hasBackground:f,appearance:T,accentColor:E,grayColor:O,material:S,panelBackground:C,radius:P,scaling:_,fontFamily:ue,headingFontFamily:me,onAppearanceChange:B,onAccentColorChange:w,onGrayColorChange:M,onMaterialChange:g,onPanelBackgroundChange:R,onRadiusChange:pe,onScalingChange:le,onFontFamilyChange:X,onHeadingFontFamilyChange:J})});Pt.displayName="ThemeRoot";function Co(){if(typeof navigator>"u")return;let e=navigator.userAgent;if(e.includes("Win"))return"windows";if(e.includes("Mac"))return"macos";if(e.includes("Linux"))return"linux"}var we=d.forwardRef((e,t)=>{let o=d.useContext(Se),{asChild:s,isRoot:r,hasBackground:a,appearance:n=e.appearance??o?.appearance??m.appearance.default,accentColor:i=e.accentColor??o?.accentColor??m.accentColor.default,grayColor:l=e.grayColor??o?.resolvedGrayColor??m.grayColor.default,material:p=e.material??o?.material??m.material.default,panelBackground:u=e.panelBackground??o?.panelBackground??m.panelBackground.default,radius:f=e.radius??o?.radius??m.radius.default,scaling:D=e.scaling??o?.scaling??m.scaling.default,fontFamily:T=e.fontFamily??o?.fontFamily??m.fontFamily.default,headingFontFamily:B=e.headingFontFamily??o?.headingFontFamily,onAppearanceChange:E=h,onAccentColorChange:w=h,onGrayColorChange:O=h,onMaterialChange:M=h,onPanelBackgroundChange:F=h,onRadiusChange:S=h,onScalingChange:g=h,onFontFamilyChange:C=h,onHeadingFontFamilyChange:R=h,...P}=e,pe=s?L.Slot.Root:"div",_=l==="auto"?dt(i):l,le=e.appearance==="light"||e.appearance==="dark",ue=a===void 0?r||le:a,X=d.useRef(null),me=(0,se.useComposedRefs)(t,X),J="data-os"in P;return(0,se.useLayoutEffect)(()=>{if(!r||J)return;let fe=X.current;if(!fe)return;let Fe=Co();if(Fe)return fe.setAttribute("data-os",Fe),()=>fe.removeAttribute("data-os")},[r,J]),d.createElement(Se.Provider,{value:d.useMemo(()=>({appearance:n,accentColor:i,grayColor:l,resolvedGrayColor:_,material:p,panelBackground:u,radius:f,scaling:D,fontFamily:T,headingFontFamily:B,onAppearanceChange:E,onAccentColorChange:w,onGrayColorChange:O,onMaterialChange:M,onPanelBackgroundChange:F,onRadiusChange:S,onScalingChange:g,onFontFamilyChange:C,onHeadingFontFamilyChange:R}),[n,i,l,_,p,u,f,D,T,B,E,w,O,M,F,S,g,C,R])},d.createElement(pe,{"data-is-root-theme":r?"true":"false","data-accent-color":i,"data-gray-color":_,"data-has-background":ue?"true":"false","data-material":p,"data-panel-background":u,"data-radius":f,"data-scaling":D,"data-font-family":T,"data-heading-font-family":B,ref:me,...P,className:(0,gt.default)("radix-themes",{light:n==="light",dark:n==="dark"},P.className)}))});we.displayName="ThemeImpl";var ht={content:{type:"ReactNode",required:!0},width:$.width,minWidth:$.minWidth,maxWidth:{...$.maxWidth,default:"360px"}};var Ne=k.forwardRef((e,t)=>{let{children:o,className:s,open:r,defaultOpen:a,onOpenChange:n,delayDuration:i,disableHoverableContent:l,content:p,container:u,forceMount:f,...D}=N(e,ht),T={open:r,defaultOpen:a,onOpenChange:n,delayDuration:i,disableHoverableContent:l};return k.createElement(q.Tooltip.Root,{...T},k.createElement(q.Tooltip.Trigger,{asChild:!0},o),k.createElement(q.Tooltip.Portal,{container:u,forceMount:f},k.createElement(Be,{asChild:!0},k.createElement(q.Tooltip.Content,{sideOffset:4,collisionPadding:10,...D,asChild:!1,ref:t,className:(0,vt.default)("rt-TooltipContent",s)},k.createElement(xe,{as:"p",className:"rt-TooltipText",size:"1"},p),k.createElement(q.Tooltip.Arrow,{className:"rt-TooltipArrow"})))))});Ne.displayName="Tooltip";var ne=c(require("react"));function bt(e){let t=ne.useId(),o=!!e,s=ne.useMemo(()=>o?{"aria-describedby":t}:{},[o,t]);return{tooltipId:t,hasTooltip:o,accessibilityProps:s}}var xo={loud:"solid",medium:"raised",quiet:"ghost"};function To(e){if(e["aria-label"]||e["aria-labelledby"]||e.children)return;console.error(`IconButton: Icon buttons must have an accessible name. Please provide either:
1
+ "use strict";"use client";var Ct=Object.create;var Y=Object.defineProperty;var xt=Object.getOwnPropertyDescriptor;var Tt=Object.getOwnPropertyNames;var St=Object.getPrototypeOf,Nt=Object.prototype.hasOwnProperty;var wt=(e,t)=>{for(var o in t)Y(e,o,{get:t[o],enumerable:!0})},Be=(e,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Tt(t))!Nt.call(e,r)&&r!==o&&Y(e,r,{get:()=>t[r],enumerable:!(s=xt(t,r))||s.enumerable});return e};var d=(e,t,o)=>(o=e!=null?Ct(St(e)):{},Be(t||!e||!e.__esModule?Y(o,"default",{value:e,enumerable:!0}):o,e)),Bt=e=>Be(Y({},"__esModule",{value:!0}),e);var Po={};wt(Po,{Button:()=>bt,Content:()=>vt,Item:()=>Dt,Root:()=>gt,Viewport:()=>ht,useMessageScroller:()=>D.useMessageScroller,useMessageScrollerScrollable:()=>D.useMessageScrollerScrollable,useMessageScrollerVisibility:()=>D.useMessageScrollerVisibility});module.exports=Bt(Po);var h=d(require("react")),L=d(require("classnames")),D=require("@shadcn/react/message-scroller"),Pt=require("radix-ui/internal");var oe=d(require("react"));var y=d(require("react")),Xe=d(require("classnames")),Je=require("radix-ui");var V={asChild:{type:"boolean"}};var X=["gray","gold","bronze","brown","yellow","amber","orange","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","lime","mint","sky"],Ve=["auto","gray","mauve","slate","sage","olive","sand"],Fe={color:{type:"enum",values:X,default:void 0}},Ee={color:{type:"enum",values:X,default:""}};var pe=["none","small","medium","large","full"],je={radius:{type:"enum",values:pe,default:void 0}};var Vt=["1","2","3","4"],Ft=["raised","solid","soft","surface","outline","ghost"],Et=["solid","translucent"],le={...V,size:{type:"enum",className:"rt-r-size",values:Vt,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:Ft,default:"solid"},...Ee,...je,loading:{type:"boolean",className:"rt-loading",default:!1},fullWidth:{type:"boolean",className:"rt-full-width",default:!1},material:{type:"enum",values:Et,default:void 0},flush:{type:"boolean",default:!1}};var Z=d(require("react")),$e=d(require("classnames"));var Ie=d(require("classnames"));var jt=[],Mt=new Set;function kt(e){let t=Object.assign({},...e),o=[],s=[],r=new Set;for(let a in t){let n=t[a],l=n.values??jt,p={key:a,type:n.type,default:n.default,hasDefault:n.default!==void 0,responsive:"responsive"in n,className:n.className,customProperties:n.customProperties,parseValue:n.parseValue,values:l,valueSet:l.length>0?new Set(l):Mt,enumValueSet:n.type==="enum"?new Set([n.default,...l]):void 0};n.className?(o.push(p),r.add(a)):(p.hasDefault||n.type==="enum")&&s.push(p)}return{styling:o,passthrough:s,stylingKeys:r}}var Ot={children:new WeakMap};function Me(e){let t=Ot;for(let o=0;o<e.length;o++){let s=e[o],r=t.children.get(s);r===void 0&&(r={children:new WeakMap},t.children.set(s,r)),t=r}return t.compiled??(t.compiled=kt(e))}var It=["initial","xs","sm","md","lg","xl"],me=new Set(It);function fe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Wt=new Set(["initial","xs","sm","md","lg","xl"]);function E(e){if(typeof e!="object"||e===null)return!1;for(let t in e)if(Wt.has(t))return!0;return!1}function J(e,t,o){return t!==void 0?t.has(o):e.includes(o)}function Oe({className:e,customProperties:t,...o}){let s=ue({allowArbitraryValues:!0,className:e,...o}),r=Gt({customProperties:t,...o});return[s,r]}function ue({allowArbitraryValues:e,value:t,className:o,propValues:s,propValueSet:r,parseValue:a=n=>n}){if(t){if(typeof t=="string")return J(s,r,t)?ke(o,t,a):e?o:void 0;if(E(t)){let n=t,l=[];for(let p in n){if(!fe(n,p)||!me.has(p))continue;let i=n[p];if(i!==void 0){if(J(s,r,i)){let m=ke(o,i,a),f=p==="initial"?m:`${p}:${m}`;l.push(f)}else if(e){let m=p==="initial"?o:`${p}:${o}`;l.push(m)}}}return l.length>0?l.join(" "):""}if(e)return o}}function ke(e,t,o){let s=e?"-":"",r=o(t),a=r?.startsWith("-"),n=a?"-":"",l=a?r?.substring(1):r;return`${n}${e}${s}${l}`}function Gt({customProperties:e,value:t,propValues:o,propValueSet:s,parseValue:r=a=>a}){if(!t||typeof t=="string"&&J(o,s,t))return;let a;if(typeof t=="string"){let n=r(t);a={};for(let l of e)a[l]=n;return a}if(E(t)){let n=t;for(let l in n){if(!fe(n,l)||!me.has(l))continue;let p=n[l];if(p===void 0||J(o,s,p))continue;let i=r(p);a??(a={});for(let m of e){let f=l==="initial"?m:`${m}-${l}`;a[f]=i}}}return a??{}}function ce(...e){let t;for(let o of e)o&&(t===void 0&&(t={}),Object.assign(t,o));return t}function At(e,t){let o=e.initial,s=!1;return t.hasDefault&&o===void 0&&(o=t.default,s=!0),t.enumValueSet!==void 0&&!t.enumValueSet.has(o)&&(o=t.default,s=!0),s?{...e,initial:o}:e}function R(e,...t){let{styling:o,passthrough:s,stylingKeys:r}=Me(t),a={};for(let p in e)r.has(p)||(a[p]=e[p]);for(let p=0;p<s.length;p++){let i=s[p],m=a[i.key];if(m===void 0){i.hasDefault&&(a[i.key]=i.default);continue}i.enumValueSet!==void 0&&!i.enumValueSet.has(m)&&!E(m)&&(a[i.key]=i.default)}let n,l=[];for(let p=0;p<o.length;p++){let i=o[p],m=e[i.key];if(m===void 0&&i.hasDefault&&(m=i.default),i.enumValueSet!==void 0&&!i.enumValueSet.has(m)&&!E(m)&&(m=i.default),!!m){if(E(m)){if(!i.responsive)continue;m=At(m,i)}if(i.type==="enum"){let f=ue({allowArbitraryValues:!1,value:m,className:i.className,propValues:i.values,propValueSet:i.valueSet,parseValue:i.parseValue});f&&l.push(f);continue}if(i.type==="string"||i.type==="enum | string"){let[f,v]=Oe({className:i.className,customProperties:i.customProperties,propValues:i.type==="string"?[]:i.values,propValueSet:i.type==="string"?void 0:i.valueSet,parseValue:i.parseValue,value:m});v&&(n=ce(n,v)),f&&l.push(f);continue}if(i.type==="boolean"){l.push(i.className);continue}}}return a.className=(0,Ie.default)(l.length>0?l.join(" "):void 0,e.className),a.style=ce(n,e.style),a}var j=["0","1","2","3","4","5","6","7","8","9","10","11","12"],We={p:{type:"enum | string",className:"rt-r-p",customProperties:["--p"],values:j,responsive:!0},px:{type:"enum | string",className:"rt-r-px",customProperties:["--pl","--pr"],values:j,responsive:!0},py:{type:"enum | string",className:"rt-r-py",customProperties:["--pt","--pb"],values:j,responsive:!0},pt:{type:"enum | string",className:"rt-r-pt",customProperties:["--pt"],values:j,responsive:!0},pr:{type:"enum | string",className:"rt-r-pr",customProperties:["--pr"],values:j,responsive:!0},pb:{type:"enum | string",className:"rt-r-pb",customProperties:["--pb"],values:j,responsive:!0},pl:{type:"enum | string",className:"rt-r-pl",customProperties:["--pl"],values:j,responsive:!0}};var Ge={height:{type:"string",className:"rt-r-h",customProperties:["--height"],responsive:!0},minHeight:{type:"string",className:"rt-r-min-h",customProperties:["--min-height"],responsive:!0},maxHeight:{type:"string",className:"rt-r-max-h",customProperties:["--max-height"],responsive:!0}};var A={width:{type:"string",className:"rt-r-w",customProperties:["--width"],responsive:!0},minWidth:{type:"string",className:"rt-r-min-w",customProperties:["--min-width"],responsive:!0},maxWidth:{type:"string",className:"rt-r-max-w",customProperties:["--max-width"],responsive:!0}};var de=["visible","hidden","clip","scroll","auto"],Ht=["static","relative","absolute","fixed","sticky"],q=["0","1","2","3","4","5","6","7","8","9","-1","-2","-3","-4","-5","-6","-7","-8","-9"],zt=["0","1"],Lt=["0","1"],$t=["start","center","end","baseline","stretch"],Kt=["start","center","end","baseline","stretch"],Ae={...We,...A,...Ge,position:{type:"enum",className:"rt-r-position",values:Ht,responsive:!0},inset:{type:"enum | string",className:"rt-r-inset",customProperties:["--inset"],values:q,responsive:!0},top:{type:"enum | string",className:"rt-r-top",customProperties:["--top"],values:q,responsive:!0},right:{type:"enum | string",className:"rt-r-right",customProperties:["--right"],values:q,responsive:!0},bottom:{type:"enum | string",className:"rt-r-bottom",customProperties:["--bottom"],values:q,responsive:!0},left:{type:"enum | string",className:"rt-r-left",customProperties:["--left"],values:q,responsive:!0},overflow:{type:"enum",className:"rt-r-overflow",values:de,responsive:!0},overflowX:{type:"enum",className:"rt-r-ox",values:de,responsive:!0},overflowY:{type:"enum",className:"rt-r-oy",values:de,responsive:!0},flexBasis:{type:"string",className:"rt-r-fb",customProperties:["--flex-basis"],responsive:!0},flexShrink:{type:"enum | string",className:"rt-r-fs",customProperties:["--flex-shrink"],values:zt,responsive:!0},flexGrow:{type:"enum | string",className:"rt-r-fg",customProperties:["--flex-grow"],values:Lt,responsive:!0},gridArea:{type:"string",className:"rt-r-ga",customProperties:["--grid-area"],responsive:!0},gridColumn:{type:"string",className:"rt-r-gc",customProperties:["--grid-column"],responsive:!0},gridColumnStart:{type:"string",className:"rt-r-gcs",customProperties:["--grid-column-start"],responsive:!0},gridColumnEnd:{type:"string",className:"rt-r-gce",customProperties:["--grid-column-end"],responsive:!0},gridRow:{type:"string",className:"rt-r-gr",customProperties:["--grid-row"],responsive:!0},gridRowStart:{type:"string",className:"rt-r-grs",customProperties:["--grid-row-start"],responsive:!0},gridRowEnd:{type:"string",className:"rt-r-gre",customProperties:["--grid-row-end"],responsive:!0},alignSelf:{type:"enum",className:"rt-r-as",values:$t,responsive:!0},justifySelf:{type:"enum",className:"rt-r-js",values:Kt,responsive:!0}};var M=["0","1","2","3","4","5","6","7","8","9","10","11","12","-1","-2","-3","-4","-5","-6","-7","-8","-9","-10","-11","-12"],F={m:{type:"enum | string",values:M,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:M,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:M,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:M,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:M,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:M,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:M,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}};var Q=require("radix-ui"),Uo=Q.Slot.Root,He=Q.Slot.Root,_o=Q.Slot.Slottable;var ye=["0","1","2","3","4","5","6","7","8","9","10","11","12"],ze={gap:{type:"enum | string",className:"rt-r-gap",customProperties:["--gap"],values:ye,responsive:!0},gapX:{type:"enum | string",className:"rt-r-cg",customProperties:["--column-gap"],values:ye,responsive:!0},gapY:{type:"enum | string",className:"rt-r-rg",customProperties:["--row-gap"],values:ye,responsive:!0}};var qt=["div","span"],Ut=["none","inline-flex","flex"],_t=["row","column","row-reverse","column-reverse"],Yt=["start","center","end","baseline","stretch"],Xt=["start","center","end","between"],Jt=["nowrap","wrap","wrap-reverse"],Le={as:{type:"enum",values:qt,default:"div"},...V,display:{type:"enum",className:"rt-r-display",values:Ut,responsive:!0},direction:{type:"enum",className:"rt-r-fd",values:_t,responsive:!0},align:{type:"enum",className:"rt-r-ai",values:Yt,responsive:!0},justify:{type:"enum",className:"rt-r-jc",values:Xt,parseValue:Qt,responsive:!0},wrap:{type:"enum",className:"rt-r-fw",values:Jt,responsive:!0},...ze};function Qt(e){return e==="between"?"space-between":e}var H=Z.forwardRef((e,t)=>{let{className:o,asChild:s,as:r="div",...a}=R(e,Le,Ae,F);return Z.createElement(s?He:r,{...a,ref:t,className:(0,$e.default)("rt-Flex",o)})});H.displayName="Flex";var P=d(require("react")),qe=d(require("classnames"));var Zt=["1","2","3"],Ke={size:{type:"enum",className:"rt-r-size",values:Zt,default:"2",responsive:!0},loading:{type:"boolean",default:!0}};var Pe=P.forwardRef((e,t)=>{let{className:o,children:s,loading:r,...a}=R(e,Ke,F);if(!r)return s;let n=P.createElement("span",{...a,ref:t,className:(0,qe.default)("rt-Spinner",o)},P.createElement("span",{className:"rt-SpinnerLeaf"}),P.createElement("span",{className:"rt-SpinnerLeaf"}),P.createElement("span",{className:"rt-SpinnerLeaf"}),P.createElement("span",{className:"rt-SpinnerLeaf"}),P.createElement("span",{className:"rt-SpinnerLeaf"}),P.createElement("span",{className:"rt-SpinnerLeaf"}),P.createElement("span",{className:"rt-SpinnerLeaf"}),P.createElement("span",{className:"rt-SpinnerLeaf"}));return s===void 0?n:P.createElement(H,{asChild:!0,position:"relative",align:"center",justify:"center"},P.createElement("span",null,P.createElement("span",{"aria-hidden":!0,style:{display:"contents",visibility:"hidden"},inert:void 0},s),P.createElement(H,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},P.createElement("span",null,n))))});Pe.displayName="Spinner";var ge=require("radix-ui"),Ue=ge.VisuallyHidden.Root,ur=ge.VisuallyHidden.Root;function _e(e,t){if(e!==void 0)return typeof e=="string"?t(e):Object.fromEntries(Object.entries(e).map(([o,s])=>[o,t(s)]))}function Ye(e){switch(e){case"1":return"1";case"2":case"3":return"2";case"4":return"3"}}var he=y.forwardRef((e,t)=>{let{size:o=le.size.default}=e,{className:s,children:r,asChild:a,as:n,color:l,radius:p,material:i,flush:m,disabled:f=e.loading,...v}=R(e,le,F),b=i,S=a?Je.Slot.Root:n||"button",N=a||!n||["button","input","textarea","select"].includes(n),x=!a&&(!n||n==="button"),I="type"in v,W=y.useId(),w=e.loading?`${W}-loading`:void 0,B=y.useMemo(()=>typeof r=="string"?r:y.isValidElement(r)&&typeof r.props?.children=="string"?r.props.children:"button",[r]),G=y.useMemo(()=>e.loading?{"aria-busy":!0,"aria-disabled":!0,"aria-describedby":w,"aria-label":`${B} (loading)`}:{},[e.loading,w,B]);return y.createElement(S,{"data-disabled":f||void 0,"data-accent-color":l,"data-radius":p,"data-material":b,"data-flush":m?"true":void 0,...v,...G,ref:t,className:(0,Xe.default)("rt-reset","rt-BaseButton",s),...N&&{disabled:f},...x&&!I?{type:"button"}:{}},e.loading?y.createElement(y.Fragment,null,y.createElement("span",{style:{display:"contents",visibility:"hidden"},"aria-hidden":!0},r),y.createElement(Ue,null,y.createElement("span",{id:w},B," is loading, please wait..."),r),y.createElement(H,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},y.createElement("span",null,y.createElement(Pe,{size:_e(o,Ye),"aria-hidden":"true"})))):r)});he.displayName="BaseButton";var U=d(require("react")),dt=d(require("classnames"));var C=d(require("react")),ut=d(require("classnames")),z=require("radix-ui");var k=d(require("react")),at=require("radix-ui");var eo=["loud","medium","quiet"],Qe={emphasis:{type:"enum",className:"rt-emphasis",values:eo,default:void 0}};var to=["normal","start","end","both"],Ze={trim:{type:"enum",className:"rt-r-lt",values:to,responsive:!0}};var oo=["left","center","right"],et={align:{type:"enum",className:"rt-r-ta",values:oo,responsive:!0}};var ro=["wrap","nowrap","pretty","balance"],tt={wrap:{type:"enum",className:"rt-r-tw",values:ro,responsive:!0}};var ot={truncate:{type:"boolean",className:"rt-truncate"}};var so=["sans","mono","serif"],rt={font:{type:"enum",className:"rt-r-ff",values:so}};var no=["thin","extralight","light","regular","medium","semibold","bold","extrabold"],st={weight:{type:"enum",className:"rt-r-weight",values:no,responsive:!0}};var ao=["span","div","label","p"],io=["0","1","2","3","4","5","6","7","8","9","10","11","12"],nt={as:{type:"enum",values:ao,default:"span"},...V,size:{type:"enum",className:"rt-r-size",values:io,responsive:!0},...rt,...st,...et,...Ze,...ot,...tt,...Fe,...Qe};var po={...nt,...F},ve=k.memo(k.forwardRef((e,t)=>{let{children:o,className:s,asChild:r,as:a="span",color:n,...l}=R(e,po),p=s?`rt-Text ${s}`:"rt-Text";return r?k.createElement(at.Slot.Root,{"data-accent-color":n,...l,ref:t,className:p},o):k.createElement(a,{"data-accent-color":n,...l,ref:t,className:p},o)}));ve.displayName="Text";var c=d(require("react")),lt=d(require("classnames")),O=require("radix-ui"),ee=require("radix-ui/internal");function it(e){switch(e){case"tomato":case"red":case"ruby":case"crimson":case"pink":case"plum":case"purple":case"violet":return"mauve";case"iris":case"indigo":case"blue":case"sky":case"cyan":return"slate";case"teal":case"jade":case"mint":case"green":return"sage";case"grass":case"lime":return"olive";case"yellow":case"amber":case"orange":case"brown":case"gold":case"bronze":return"sand";case"gray":return"gray"}}var De=d(require("react"));function T(e){let[t,o]=De.useState(e),[s,r]=De.useState(e);return Object.is(e,s)||(r(e),o(e)),[t,o]}var lo=["inherit","light","dark"],mo=["solid","translucent"],fo=["90%","95%","100%","105%","110%"],pt=["sans","mono","serif"],u={...V,hasBackground:{type:"boolean",default:!0},appearance:{type:"enum",values:lo,default:"inherit"},accentColor:{type:"enum",values:X,default:"gray"},grayColor:{type:"enum",values:Ve,default:"gray"},material:{type:"enum",values:mo,default:"solid"},radius:{type:"enum",values:pe,default:"full"},scaling:{type:"enum",values:fo,default:"100%"},fontFamily:{type:"enum",values:pt,default:"sans"},headingFontFamily:{type:"enum",values:pt}};var g=()=>{},Zr={appearance:u.appearance.default,accentColor:u.accentColor.default,grayColor:u.grayColor.default,resolvedGrayColor:u.grayColor.default,material:u.material.default,radius:u.radius.default,scaling:u.scaling.default,fontFamily:u.fontFamily.default,headingFontFamily:void 0,onAppearanceChange:g,onAccentColorChange:g,onGrayColorChange:g,onMaterialChange:g,onRadiusChange:g,onScalingChange:g,onFontFamilyChange:g,onHeadingFontFamilyChange:g},be=c.createContext(void 0);var Re=c.forwardRef((e,t)=>{let o=c.useContext(be),s=O.Direction.useDirection();return o===void 0?c.createElement(O.Tooltip.Provider,{delayDuration:200},c.createElement(O.Direction.Provider,{dir:s},c.createElement(mt,{...e,ref:t}))):c.createElement(Ce,{...e,ref:t})});Re.displayName="Theme";var mt=c.forwardRef((e,t)=>{let{appearance:o=u.appearance.default,accentColor:s=u.accentColor.default,grayColor:r=u.grayColor.default,material:a=u.material.default,radius:n=u.radius.default,scaling:l=u.scaling.default,fontFamily:p=u.fontFamily.default,headingFontFamily:i,hasBackground:m=u.hasBackground.default,...f}=e,[v,b]=T(o),[S,N]=T(s),[x,I]=T(r),[W,w]=T(a),[B,G]=T(n),[$,se]=T(l),[K,ne]=T(p),[ae,_]=T(i);return c.createElement(Ce,{...f,ref:t,isRoot:!0,hasBackground:m,appearance:v,accentColor:S,grayColor:x,material:W,radius:B,scaling:$,fontFamily:K,headingFontFamily:ae,onAppearanceChange:b,onAccentColorChange:N,onGrayColorChange:I,onMaterialChange:w,onRadiusChange:G,onScalingChange:se,onFontFamilyChange:ne,onHeadingFontFamilyChange:_})});mt.displayName="ThemeRoot";function uo(){if(typeof navigator>"u")return;let e=navigator.userAgent;if(e.includes("Win"))return"windows";if(e.includes("Mac"))return"macos";if(e.includes("Linux"))return"linux"}var Ce=c.forwardRef((e,t)=>{let o=c.useContext(be),{asChild:s,isRoot:r,hasBackground:a,appearance:n=e.appearance??o?.appearance??u.appearance.default,accentColor:l=e.accentColor??o?.accentColor??u.accentColor.default,grayColor:p=e.grayColor??o?.resolvedGrayColor??u.grayColor.default,material:i=e.material??o?.material??u.material.default,radius:m=e.radius??o?.radius??u.radius.default,scaling:f=e.scaling??o?.scaling??u.scaling.default,fontFamily:v=e.fontFamily??o?.fontFamily??u.fontFamily.default,headingFontFamily:b=e.headingFontFamily??o?.headingFontFamily,onAppearanceChange:S=g,onAccentColorChange:N=g,onGrayColorChange:x=g,onMaterialChange:I=g,onRadiusChange:W=g,onScalingChange:w=g,onFontFamilyChange:B=g,onHeadingFontFamilyChange:G=g,...$}=e,se=s?O.Slot.Root:"div",K=p==="auto"?it(l):p,ne=e.appearance==="light"||e.appearance==="dark",ae=a===void 0?r||ne:a,_=c.useRef(null),Rt=(0,ee.useComposedRefs)(t,_),Ne="data-os"in $;return(0,ee.useLayoutEffect)(()=>{if(!r||Ne)return;let ie=_.current;if(!ie)return;let we=uo();if(we)return ie.setAttribute("data-os",we),()=>ie.removeAttribute("data-os")},[r,Ne]),c.createElement(be.Provider,{value:c.useMemo(()=>({appearance:n,accentColor:l,grayColor:p,resolvedGrayColor:K,material:i,radius:m,scaling:f,fontFamily:v,headingFontFamily:b,onAppearanceChange:S,onAccentColorChange:N,onGrayColorChange:x,onMaterialChange:I,onRadiusChange:W,onScalingChange:w,onFontFamilyChange:B,onHeadingFontFamilyChange:G}),[n,l,p,K,i,m,f,v,b,S,N,x,I,W,w,B,G])},c.createElement(se,{"data-is-root-theme":r?"true":"false","data-accent-color":l,"data-gray-color":K,"data-has-background":ae?"true":"false","data-material":i,"data-radius":m,"data-scaling":f,"data-font-family":v,"data-heading-font-family":b,ref:Rt,...$,className:(0,lt.default)("radix-themes",{light:n==="light",dark:n==="dark"},$.className)}))});Ce.displayName="ThemeImpl";var ft={content:{type:"ReactNode",required:!0},width:A.width,minWidth:A.minWidth,maxWidth:{...A.maxWidth,default:"360px"}};var xe=C.forwardRef((e,t)=>{let{children:o,className:s,open:r,defaultOpen:a,onOpenChange:n,delayDuration:l,disableHoverableContent:p,content:i,container:m,forceMount:f,...v}=R(e,ft),b={open:r,defaultOpen:a,onOpenChange:n,delayDuration:l,disableHoverableContent:p};return C.createElement(z.Tooltip.Root,{...b},C.createElement(z.Tooltip.Trigger,{asChild:!0},o),C.createElement(z.Tooltip.Portal,{container:m,forceMount:f},C.createElement(Re,{asChild:!0},C.createElement(z.Tooltip.Content,{sideOffset:4,collisionPadding:10,...v,asChild:!1,ref:t,className:(0,ut.default)("rt-TooltipContent",s)},C.createElement(ve,{as:"p",className:"rt-TooltipText",size:"1"},i),C.createElement(z.Tooltip.Arrow,{className:"rt-TooltipArrow"})))))});xe.displayName="Tooltip";var te=d(require("react"));function ct(e){let t=te.useId(),o=!!e,s=te.useMemo(()=>o?{"aria-describedby":t}:{},[o,t]);return{tooltipId:t,hasTooltip:o,accessibilityProps:s}}var co={loud:"solid",medium:"raised",quiet:"ghost"};function yo(e){if(e["aria-label"]||e["aria-labelledby"]||e.children)return;console.error(`IconButton: Icon buttons must have an accessible name. Please provide either:
2
2
  - aria-label prop with descriptive text
3
3
  - aria-labelledby prop referencing a label element
4
- - or visible text children`)}var Ve=W.forwardRef(({className:e,style:t,tooltip:o,tooltipSide:s="top",tooltipAlign:r="center",tooltipDelayDuration:a,tooltipDisableHoverableContent:n,overrideStyles:i,iconOnly:l=!1,emphasis:p,variant:u,...f},D)=>{let{tooltipId:T,hasTooltip:B,accessibilityProps:E}=bt(o),w=W.useMemo(()=>{if(!i)return;let S={},g=(R,P)=>{P!==void 0&&(S[R]=P)},C=(R,P)=>{P&&(g(`--button-override-${R}color`,P.color),g(`--button-override-${R}background`,P.background),g(`--button-override-${R}background-color`,P.backgroundColor),g(`--button-override-${R}box-shadow`,P.boxShadow),g(`--button-override-${R}filter`,P.filter),g(`--button-override-${R}outline`,P.outline),g(`--button-override-${R}outline-offset`,P.outlineOffset),g(`--button-override-${R}opacity`,P.opacity))};return C("",i.normal),C("hover-",i.hover),C("active-",i.active),C("pressed-",i.pressed),C("open-",i.open),C("disabled-",i.disabled),i.focus&&(g("--button-override-focus-outline",i.focus.outline),g("--button-override-focus-outline-offset",i.focus.outlineOffset)),S},[i]),O=W.useMemo(()=>w?{...w,...t}:t,[w,t]);if(l&&(To(f),f.fullWidth&&void 0),p!==void 0&&u!==void 0)throw new Error("Button: pass `emphasis` or `variant`, not both. They set the same thing.");let M=p!==void 0?xo[p]:u,F=W.createElement(Ce,{...f,variant:M,...E,ref:D,className:(0,Dt.default)(l?"rt-IconButton":"rt-Button",e),style:O});return B?W.createElement(Ne,{content:o,side:s,align:r,delayDuration:a,disableHoverableContent:n,id:T},F):F});Ve.displayName="Button";var ke=ae.forwardRef((e,t)=>ae.createElement(Ve,{...e,iconOnly:!0,ref:t}));ke.displayName="IconButton";var ie=c(require("react"));function Rt(e){let[t,o]=ie.useState(null);return ie.useEffect(()=>{if(!e||!t)return;let s=0,r=()=>{s=0;let l=Math.max(0,t.scrollTop),p=Math.max(0,t.scrollHeight-t.clientHeight-t.scrollTop);t.style.setProperty("--scroll-overflow-start",`${l}px`),t.style.setProperty("--scroll-overflow-end",`${p}px`)},a=()=>{s||(s=requestAnimationFrame(r))};r(),t.addEventListener("scroll",a,{passive:!0});let n=typeof ResizeObserver>"u"?null:new ResizeObserver(a);n?.observe(t);for(let l of Array.from(t.children))n?.observe(l);let i=typeof MutationObserver>"u"?null:new MutationObserver(a);return i?.observe(t,{childList:!0}),()=>{s&&cancelAnimationFrame(s),t.removeEventListener("scroll",a),n?.disconnect(),i?.disconnect(),t.style.removeProperty("--scroll-overflow-start"),t.style.removeProperty("--scroll-overflow-end")}},[e,t]),o}var xt=b.forwardRef(({autoScroll:e=!0,defaultScrollPosition:t="end",scrollEdgeThreshold:o,scrollMargin:s,className:r,children:a,...n},i)=>b.createElement(x.MessageScroller.Provider,{autoScroll:e,defaultScrollPosition:t,...o!=null?{scrollEdgeThreshold:o}:{},...s!=null?{scrollMargin:s}:{}},b.createElement(x.MessageScroller.Root,{...n,ref:i,className:(0,U.default)("rt-MessageScrollerRoot",r)},a)));xt.displayName="MessageScroller.Root";var Tt=b.forwardRef(({className:e,"aria-label":t,fade:o=!0,...s},r)=>{let a=Rt(o),n=(0,Ct.useComposedRefs)(r,a);return b.createElement(x.MessageScroller.Viewport,{"aria-label":t??"",...s,ref:n,"data-fade":o?"":void 0,className:(0,U.default)("rt-MessageScrollerViewport",e)})});Tt.displayName="MessageScroller.Viewport";var St=b.forwardRef(({className:e,...t},o)=>b.createElement(x.MessageScroller.Content,{...t,ref:o,className:(0,U.default)("rt-MessageScrollerContent",e)}));St.displayName="MessageScroller.Content";var Bt=b.forwardRef(({className:e,...t},o)=>b.createElement(x.MessageScroller.Item,{...t,ref:o,className:(0,U.default)("rt-MessageScrollerItem",e)}));Bt.displayName="MessageScroller.Item";var wt=b.forwardRef(({direction:e="end",behavior:t,className:o,children:s,size:r="2",variant:a="surface",emphasis:n,color:i="gray",radius:l="full","aria-label":p,...u},f)=>b.createElement(x.MessageScroller.Button,{direction:e,...t?{behavior:t}:{},render:b.createElement(ke,{...u,ref:f,size:r,...n?{emphasis:n}:{variant:a},color:i,radius:l,"aria-label":p??(e==="end"?"Jump to the latest":"Jump to the first"),className:(0,U.default)("rt-MessageScrollerButton",o),"data-direction":e},s??b.createElement("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none","aria-hidden":!0,style:e==="start"?{transform:"rotate(180deg)"}:void 0},b.createElement("path",{d:"M7.5 2.5v10M3.5 8.5l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))}));wt.displayName="MessageScroller.Button";
4
+ - or visible text children`)}var Te=U.forwardRef(({className:e,style:t,tooltip:o,tooltipSide:s="top",tooltipAlign:r="center",tooltipDelayDuration:a,tooltipDisableHoverableContent:n,iconOnly:l=!1,emphasis:p,variant:i,...m},f)=>{let{tooltipId:v,hasTooltip:b,accessibilityProps:S}=ct(o);if(l&&(yo(m),m.fullWidth=!1),p!==void 0&&i!==void 0)throw new Error("Button: pass `emphasis` or `variant`, not both. They set the same thing.");let N=p!==void 0?co[p]:i,x=U.createElement(he,{...m,variant:N,...S,ref:f,className:(0,dt.default)(l?"rt-IconButton":"rt-Button",e),style:t});return b?U.createElement(xe,{content:o,side:s,align:r,delayDuration:a,disableHoverableContent:n,id:v},x):x});Te.displayName="Button";var Se=oe.forwardRef((e,t)=>oe.createElement(Te,{...e,iconOnly:!0,ref:t}));Se.displayName="IconButton";var re=d(require("react"));function yt(e){let[t,o]=re.useState(null);return re.useEffect(()=>{if(!e||!t)return;let s=0,r=()=>{s=0;let p=Math.max(0,t.scrollTop),i=Math.max(0,t.scrollHeight-t.clientHeight-t.scrollTop);t.style.setProperty("--scroll-overflow-start",`${p}px`),t.style.setProperty("--scroll-overflow-end",`${i}px`)},a=()=>{s||(s=requestAnimationFrame(r))};r(),t.addEventListener("scroll",a,{passive:!0});let n=typeof ResizeObserver>"u"?null:new ResizeObserver(a);n?.observe(t);for(let p of Array.from(t.children))n?.observe(p);let l=typeof MutationObserver>"u"?null:new MutationObserver(a);return l?.observe(t,{childList:!0}),()=>{s&&cancelAnimationFrame(s),t.removeEventListener("scroll",a),n?.disconnect(),l?.disconnect(),t.style.removeProperty("--scroll-overflow-start"),t.style.removeProperty("--scroll-overflow-end")}},[e,t]),o}var gt=h.forwardRef(({autoScroll:e=!0,defaultScrollPosition:t="end",scrollEdgeThreshold:o,scrollMargin:s,className:r,children:a,...n},l)=>h.createElement(D.MessageScroller.Provider,{autoScroll:e,defaultScrollPosition:t,...o!=null?{scrollEdgeThreshold:o}:{},...s!=null?{scrollMargin:s}:{}},h.createElement(D.MessageScroller.Root,{...n,ref:l,className:(0,L.default)("rt-MessageScrollerRoot",r)},a)));gt.displayName="MessageScroller.Root";var ht=h.forwardRef(({className:e,"aria-label":t,fade:o=!0,...s},r)=>{let a=yt(o),n=(0,Pt.useComposedRefs)(r,a);return h.createElement(D.MessageScroller.Viewport,{"aria-label":t??"",...s,ref:n,"data-fade":o?"":void 0,className:(0,L.default)("rt-MessageScrollerViewport",e)})});ht.displayName="MessageScroller.Viewport";var vt=h.forwardRef(({className:e,...t},o)=>h.createElement(D.MessageScroller.Content,{...t,ref:o,className:(0,L.default)("rt-MessageScrollerContent",e)}));vt.displayName="MessageScroller.Content";var Dt=h.forwardRef(({className:e,...t},o)=>h.createElement(D.MessageScroller.Item,{...t,ref:o,className:(0,L.default)("rt-MessageScrollerItem",e)}));Dt.displayName="MessageScroller.Item";var bt=h.forwardRef(({direction:e="end",behavior:t,className:o,children:s,size:r="2",variant:a="surface",emphasis:n,color:l="gray",radius:p="full","aria-label":i,...m},f)=>h.createElement(D.MessageScroller.Button,{direction:e,...t?{behavior:t}:{},render:h.createElement(Se,{...m,ref:f,size:r,...n?{emphasis:n}:{variant:a},color:l,radius:p,"aria-label":i??(e==="end"?"Jump to the latest":"Jump to the first"),className:(0,L.default)("rt-MessageScrollerButton",o),"data-direction":e},s??h.createElement("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none","aria-hidden":!0,style:e==="start"?{transform:"rotate(180deg)"}:void 0},h.createElement("path",{d:"M7.5 2.5v10M3.5 8.5l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))}));bt.displayName="MessageScroller.Button";
5
5
  //# sourceMappingURL=message-scroller.js.map