@womp/kookie-ui 0.24.0 → 0.25.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 (1118) hide show
  1. package/README.md +3 -3
  2. package/components.css +12854 -11866
  3. package/dist/cjs/components/_internal/base-button.d.ts.map +1 -1
  4. package/dist/cjs/components/_internal/base-button.js +2 -1
  5. package/dist/cjs/components/_internal/base-button.js.map +3 -3
  6. package/dist/cjs/components/_internal/base-button.props.js +1 -0
  7. package/dist/cjs/components/_internal/base-button.props.js.map +2 -2
  8. package/dist/cjs/components/_internal/base-checkbox.props.js +1 -0
  9. package/dist/cjs/components/_internal/base-checkbox.props.js.map +1 -1
  10. package/dist/cjs/components/_internal/base-menu.props.js +1 -0
  11. package/dist/cjs/components/_internal/base-menu.props.js.map +1 -1
  12. package/dist/cjs/components/_internal/base-menu.utils.js +1 -0
  13. package/dist/cjs/components/_internal/base-menu.utils.js.map +1 -1
  14. package/dist/cjs/components/_internal/base-radio.props.js +1 -0
  15. package/dist/cjs/components/_internal/base-radio.props.js.map +1 -1
  16. package/dist/cjs/components/_internal/base-tab-list.props.js +1 -0
  17. package/dist/cjs/components/_internal/base-tab-list.props.js.map +1 -1
  18. package/dist/cjs/components/_internal/dropdown-menu-drill-down.d.ts +19 -7
  19. package/dist/cjs/components/_internal/dropdown-menu-drill-down.d.ts.map +1 -1
  20. package/dist/cjs/components/_internal/dropdown-menu-drill-down.js +2 -1
  21. package/dist/cjs/components/_internal/dropdown-menu-drill-down.js.map +3 -3
  22. package/dist/cjs/components/_internal/menu-context.d.ts +10 -0
  23. package/dist/cjs/components/_internal/menu-context.d.ts.map +1 -1
  24. package/dist/cjs/components/_internal/menu-context.js +2 -1
  25. package/dist/cjs/components/_internal/menu-context.js.map +3 -3
  26. package/dist/cjs/components/_internal/pane-chrome.d.ts +3 -1
  27. package/dist/cjs/components/_internal/pane-chrome.d.ts.map +1 -1
  28. package/dist/cjs/components/_internal/pane-chrome.js +2 -1
  29. package/dist/cjs/components/_internal/pane-chrome.js.map +3 -3
  30. package/dist/cjs/components/_internal/shell-bottom.d.ts +1 -1
  31. package/dist/cjs/components/_internal/shell-bottom.d.ts.map +1 -1
  32. package/dist/cjs/components/_internal/shell-bottom.js +2 -1
  33. package/dist/cjs/components/_internal/shell-bottom.js.map +3 -3
  34. package/dist/cjs/components/_internal/shell-handles.d.ts.map +1 -1
  35. package/dist/cjs/components/_internal/shell-handles.js +2 -1
  36. package/dist/cjs/components/_internal/shell-handles.js.map +3 -3
  37. package/dist/cjs/components/_internal/shell-inspector.d.ts +1 -1
  38. package/dist/cjs/components/_internal/shell-inspector.d.ts.map +1 -1
  39. package/dist/cjs/components/_internal/shell-inspector.js +2 -1
  40. package/dist/cjs/components/_internal/shell-inspector.js.map +3 -3
  41. package/dist/cjs/components/_internal/shell-pane.d.ts.map +1 -1
  42. package/dist/cjs/components/_internal/shell-pane.js +2 -1
  43. package/dist/cjs/components/_internal/shell-pane.js.map +3 -3
  44. package/dist/cjs/components/_internal/shell-resizable.d.ts.map +1 -1
  45. package/dist/cjs/components/_internal/shell-resizable.js +2 -1
  46. package/dist/cjs/components/_internal/shell-resizable.js.map +3 -3
  47. package/dist/cjs/components/_internal/shell-resize.js +1 -0
  48. package/dist/cjs/components/_internal/shell-resize.js.map +1 -1
  49. package/dist/cjs/components/_internal/shell-rest.js +1 -0
  50. package/dist/cjs/components/_internal/shell-rest.js.map +1 -1
  51. package/dist/cjs/components/_internal/shell-sidebar.d.ts +1 -1
  52. package/dist/cjs/components/_internal/shell-sidebar.d.ts.map +1 -1
  53. package/dist/cjs/components/_internal/shell-sidebar.js +2 -1
  54. package/dist/cjs/components/_internal/shell-sidebar.js.map +3 -3
  55. package/dist/cjs/components/_internal/shell-store.d.ts.map +1 -1
  56. package/dist/cjs/components/_internal/shell-store.js +2 -1
  57. package/dist/cjs/components/_internal/shell-store.js.map +3 -3
  58. package/dist/cjs/components/accessible-icon.js +1 -0
  59. package/dist/cjs/components/accessible-icon.js.map +1 -1
  60. package/dist/cjs/components/accordion.d.ts.map +1 -1
  61. package/dist/cjs/components/accordion.js +2 -1
  62. package/dist/cjs/components/accordion.js.map +3 -3
  63. package/dist/cjs/components/accordion.props.js +1 -0
  64. package/dist/cjs/components/accordion.props.js.map +1 -1
  65. package/dist/cjs/components/alert-dialog.d.ts.map +1 -1
  66. package/dist/cjs/components/alert-dialog.js +2 -1
  67. package/dist/cjs/components/alert-dialog.js.map +4 -4
  68. package/dist/cjs/components/alert-dialog.props.js +1 -0
  69. package/dist/cjs/components/alert-dialog.props.js.map +1 -1
  70. package/dist/cjs/components/avatar.d.ts.map +1 -1
  71. package/dist/cjs/components/avatar.js +2 -1
  72. package/dist/cjs/components/avatar.js.map +3 -3
  73. package/dist/cjs/components/avatar.props.js +1 -0
  74. package/dist/cjs/components/avatar.props.js.map +1 -1
  75. package/dist/cjs/components/blockquote.js +1 -0
  76. package/dist/cjs/components/blockquote.js.map +1 -1
  77. package/dist/cjs/components/blockquote.props.js +1 -0
  78. package/dist/cjs/components/blockquote.props.js.map +1 -1
  79. package/dist/cjs/components/box.js +1 -0
  80. package/dist/cjs/components/box.js.map +1 -1
  81. package/dist/cjs/components/box.props.js +1 -0
  82. package/dist/cjs/components/box.props.js.map +1 -1
  83. package/dist/cjs/components/button.d.ts.map +1 -1
  84. package/dist/cjs/components/button.js +2 -1
  85. package/dist/cjs/components/button.js.map +3 -3
  86. package/dist/cjs/components/button.props.js +1 -0
  87. package/dist/cjs/components/button.props.js.map +2 -2
  88. package/dist/cjs/components/card.js +1 -0
  89. package/dist/cjs/components/card.js.map +1 -1
  90. package/dist/cjs/components/card.props.js +1 -0
  91. package/dist/cjs/components/card.props.js.map +1 -1
  92. package/dist/cjs/components/chatbar.d.ts.map +1 -1
  93. package/dist/cjs/components/chatbar.js +2 -1
  94. package/dist/cjs/components/chatbar.js.map +3 -3
  95. package/dist/cjs/components/checkbox-group.js +1 -0
  96. package/dist/cjs/components/checkbox-group.js.map +1 -1
  97. package/dist/cjs/components/checkbox-group.primitive.js +1 -0
  98. package/dist/cjs/components/checkbox-group.primitive.js.map +1 -1
  99. package/dist/cjs/components/checkbox-group.props.js +1 -0
  100. package/dist/cjs/components/checkbox-group.props.js.map +1 -1
  101. package/dist/cjs/components/checkbox.js +1 -0
  102. package/dist/cjs/components/checkbox.js.map +1 -1
  103. package/dist/cjs/components/checkbox.props.js +1 -0
  104. package/dist/cjs/components/checkbox.props.js.map +1 -1
  105. package/dist/cjs/components/chip.js +2 -1
  106. package/dist/cjs/components/chip.js.map +3 -3
  107. package/dist/cjs/components/chip.props.js +1 -0
  108. package/dist/cjs/components/chip.props.js.map +1 -1
  109. package/dist/cjs/components/code.js +1 -0
  110. package/dist/cjs/components/code.js.map +1 -1
  111. package/dist/cjs/components/code.props.js +1 -0
  112. package/dist/cjs/components/code.props.js.map +1 -1
  113. package/dist/cjs/components/combobox.d.ts.map +1 -1
  114. package/dist/cjs/components/combobox.js +2 -1
  115. package/dist/cjs/components/combobox.js.map +4 -4
  116. package/dist/cjs/components/combobox.props.js +1 -0
  117. package/dist/cjs/components/combobox.props.js.map +1 -1
  118. package/dist/cjs/components/context-menu.d.ts +1 -2
  119. package/dist/cjs/components/context-menu.d.ts.map +1 -1
  120. package/dist/cjs/components/context-menu.js +2 -1
  121. package/dist/cjs/components/context-menu.js.map +4 -4
  122. package/dist/cjs/components/context-menu.props.js +1 -0
  123. package/dist/cjs/components/context-menu.props.js.map +1 -1
  124. package/dist/cjs/components/dialog.js +2 -1
  125. package/dist/cjs/components/dialog.js.map +3 -3
  126. package/dist/cjs/components/dialog.props.js +1 -0
  127. package/dist/cjs/components/dialog.props.js.map +1 -1
  128. package/dist/cjs/components/dropdown-menu.d.ts +1 -2
  129. package/dist/cjs/components/dropdown-menu.d.ts.map +1 -1
  130. package/dist/cjs/components/dropdown-menu.js +2 -1
  131. package/dist/cjs/components/dropdown-menu.js.map +4 -4
  132. package/dist/cjs/components/dropdown-menu.props.js +1 -0
  133. package/dist/cjs/components/dropdown-menu.props.js.map +1 -1
  134. package/dist/cjs/components/flex.js +1 -0
  135. package/dist/cjs/components/flex.js.map +2 -2
  136. package/dist/cjs/components/flex.props.js +1 -0
  137. package/dist/cjs/components/flex.props.js.map +2 -2
  138. package/dist/cjs/components/grid.js +1 -0
  139. package/dist/cjs/components/grid.js.map +2 -2
  140. package/dist/cjs/components/grid.props.js +1 -0
  141. package/dist/cjs/components/grid.props.js.map +2 -2
  142. package/dist/cjs/components/heading.d.ts +2 -2
  143. package/dist/cjs/components/heading.d.ts.map +1 -1
  144. package/dist/cjs/components/heading.js +2 -1
  145. package/dist/cjs/components/heading.js.map +2 -2
  146. package/dist/cjs/components/heading.props.d.ts +1 -1
  147. package/dist/cjs/components/heading.props.js +2 -1
  148. package/dist/cjs/components/heading.props.js.map +2 -2
  149. package/dist/cjs/components/icons.js +1 -0
  150. package/dist/cjs/components/icons.js.map +1 -1
  151. package/dist/cjs/components/image.d.ts +9 -2
  152. package/dist/cjs/components/image.d.ts.map +1 -1
  153. package/dist/cjs/components/image.js +2 -1
  154. package/dist/cjs/components/image.js.map +3 -3
  155. package/dist/cjs/components/image.props.js +1 -0
  156. package/dist/cjs/components/image.props.js.map +1 -1
  157. package/dist/cjs/components/index.d.ts +1 -1
  158. package/dist/cjs/components/index.d.ts.map +1 -1
  159. package/dist/cjs/components/index.js +3 -2
  160. package/dist/cjs/components/index.js.map +4 -4
  161. package/dist/cjs/components/kbd.js +1 -0
  162. package/dist/cjs/components/kbd.js.map +1 -1
  163. package/dist/cjs/components/kbd.props.js +1 -0
  164. package/dist/cjs/components/kbd.props.js.map +1 -1
  165. package/dist/cjs/components/link.js +1 -0
  166. package/dist/cjs/components/link.js.map +1 -1
  167. package/dist/cjs/components/link.props.js +1 -0
  168. package/dist/cjs/components/link.props.js.map +1 -1
  169. package/dist/cjs/components/message-scroller.d.ts +2 -2
  170. package/dist/cjs/components/message-scroller.d.ts.map +1 -1
  171. package/dist/cjs/components/message-scroller.js +2 -1
  172. package/dist/cjs/components/message-scroller.js.map +3 -3
  173. package/dist/cjs/components/navbar.js +1 -0
  174. package/dist/cjs/components/navbar.js.map +2 -2
  175. package/dist/cjs/components/navbar.props.js +1 -0
  176. package/dist/cjs/components/navbar.props.js.map +1 -1
  177. package/dist/cjs/components/notice.js +2 -1
  178. package/dist/cjs/components/notice.js.map +3 -3
  179. package/dist/cjs/components/popover.d.ts +3 -1
  180. package/dist/cjs/components/popover.d.ts.map +1 -1
  181. package/dist/cjs/components/popover.js +2 -1
  182. package/dist/cjs/components/popover.js.map +3 -3
  183. package/dist/cjs/components/popover.props.js +1 -0
  184. package/dist/cjs/components/popover.props.js.map +1 -1
  185. package/dist/cjs/components/portal.js +1 -0
  186. package/dist/cjs/components/portal.js.map +1 -1
  187. package/dist/cjs/components/progress.d.ts.map +1 -1
  188. package/dist/cjs/components/progress.js +2 -1
  189. package/dist/cjs/components/progress.js.map +3 -3
  190. package/dist/cjs/components/progress.props.js +1 -0
  191. package/dist/cjs/components/progress.props.js.map +1 -1
  192. package/dist/cjs/components/radio-group.js +1 -0
  193. package/dist/cjs/components/radio-group.js.map +1 -1
  194. package/dist/cjs/components/radio-group.props.js +1 -0
  195. package/dist/cjs/components/radio-group.props.js.map +1 -1
  196. package/dist/cjs/components/radio.js +1 -0
  197. package/dist/cjs/components/radio.js.map +1 -1
  198. package/dist/cjs/components/radio.props.js +1 -0
  199. package/dist/cjs/components/radio.props.js.map +1 -1
  200. package/dist/cjs/components/reset.js +1 -0
  201. package/dist/cjs/components/reset.js.map +1 -1
  202. package/dist/cjs/components/schemas/base-button.schema.js +1 -0
  203. package/dist/cjs/components/schemas/base-button.schema.js.map +1 -1
  204. package/dist/cjs/components/schemas/button.schema.js +1 -0
  205. package/dist/cjs/components/schemas/button.schema.js.map +1 -1
  206. package/dist/cjs/components/schemas/index.js +1 -0
  207. package/dist/cjs/components/schemas/index.js.map +1 -1
  208. package/dist/cjs/components/schemas/shell.schema.js +1 -0
  209. package/dist/cjs/components/schemas/shell.schema.js.map +1 -1
  210. package/dist/cjs/components/schemas/toggle.schema.js +1 -0
  211. package/dist/cjs/components/schemas/toggle.schema.js.map +1 -1
  212. package/dist/cjs/components/scroll-area.js +1 -0
  213. package/dist/cjs/components/scroll-area.js.map +1 -1
  214. package/dist/cjs/components/scroll-area.props.js +1 -0
  215. package/dist/cjs/components/scroll-area.props.js.map +1 -1
  216. package/dist/cjs/components/segmented-control.d.ts.map +1 -1
  217. package/dist/cjs/components/segmented-control.js +2 -1
  218. package/dist/cjs/components/segmented-control.js.map +3 -3
  219. package/dist/cjs/components/segmented-control.props.d.ts +0 -1
  220. package/dist/cjs/components/segmented-control.props.d.ts.map +1 -1
  221. package/dist/cjs/components/segmented-control.props.js +2 -1
  222. package/dist/cjs/components/segmented-control.props.js.map +2 -2
  223. package/dist/cjs/components/select.d.ts.map +1 -1
  224. package/dist/cjs/components/select.js +2 -1
  225. package/dist/cjs/components/select.js.map +4 -4
  226. package/dist/cjs/components/select.props.js +1 -0
  227. package/dist/cjs/components/select.props.js.map +1 -1
  228. package/dist/cjs/components/separator.d.ts.map +1 -1
  229. package/dist/cjs/components/separator.js +2 -1
  230. package/dist/cjs/components/separator.js.map +4 -4
  231. package/dist/cjs/components/separator.props.d.ts +1 -1
  232. package/dist/cjs/components/separator.props.js +2 -1
  233. package/dist/cjs/components/separator.props.js.map +2 -2
  234. package/dist/cjs/components/sheet.d.ts +1 -1
  235. package/dist/cjs/components/sheet.d.ts.map +1 -1
  236. package/dist/cjs/components/sheet.js +2 -1
  237. package/dist/cjs/components/sheet.js.map +3 -3
  238. package/dist/cjs/components/shell.context.js +2 -1
  239. package/dist/cjs/components/shell.context.js.map +3 -3
  240. package/dist/cjs/components/shell.d.ts +5 -2
  241. package/dist/cjs/components/shell.d.ts.map +1 -1
  242. package/dist/cjs/components/shell.hooks.js +2 -1
  243. package/dist/cjs/components/shell.hooks.js.map +3 -3
  244. package/dist/cjs/components/shell.js +2 -1
  245. package/dist/cjs/components/shell.js.map +3 -3
  246. package/dist/cjs/components/shell.types.js +1 -0
  247. package/dist/cjs/components/shell.types.js.map +1 -1
  248. package/dist/cjs/components/sidebar.d.ts.map +1 -1
  249. package/dist/cjs/components/sidebar.js +2 -1
  250. package/dist/cjs/components/sidebar.js.map +4 -4
  251. package/dist/cjs/components/slider.d.ts.map +1 -1
  252. package/dist/cjs/components/slider.js +2 -1
  253. package/dist/cjs/components/slider.js.map +3 -3
  254. package/dist/cjs/components/slider.props.d.ts +0 -2
  255. package/dist/cjs/components/slider.props.d.ts.map +1 -1
  256. package/dist/cjs/components/slider.props.js +2 -1
  257. package/dist/cjs/components/slider.props.js.map +2 -2
  258. package/dist/cjs/components/slot.js +1 -0
  259. package/dist/cjs/components/slot.js.map +1 -1
  260. package/dist/cjs/components/spinner.d.ts.map +1 -1
  261. package/dist/cjs/components/spinner.js +2 -1
  262. package/dist/cjs/components/spinner.js.map +2 -2
  263. package/dist/cjs/components/spinner.props.js +1 -0
  264. package/dist/cjs/components/spinner.props.js.map +1 -1
  265. package/dist/cjs/components/switch.js +1 -0
  266. package/dist/cjs/components/switch.js.map +1 -1
  267. package/dist/cjs/components/switch.props.js +1 -0
  268. package/dist/cjs/components/switch.props.js.map +1 -1
  269. package/dist/cjs/components/table.d.ts.map +1 -1
  270. package/dist/cjs/components/table.js +2 -1
  271. package/dist/cjs/components/table.js.map +3 -3
  272. package/dist/cjs/components/table.props.d.ts +0 -2
  273. package/dist/cjs/components/table.props.d.ts.map +1 -1
  274. package/dist/cjs/components/table.props.js +2 -1
  275. package/dist/cjs/components/table.props.js.map +3 -3
  276. package/dist/cjs/components/tabs.d.ts.map +1 -1
  277. package/dist/cjs/components/tabs.js +2 -1
  278. package/dist/cjs/components/tabs.js.map +3 -3
  279. package/dist/cjs/components/tabs.props.js +1 -0
  280. package/dist/cjs/components/tabs.props.js.map +1 -1
  281. package/dist/cjs/components/text-area.d.ts.map +1 -1
  282. package/dist/cjs/components/text-area.js +2 -1
  283. package/dist/cjs/components/text-area.js.map +2 -2
  284. package/dist/cjs/components/text-area.props.js +1 -0
  285. package/dist/cjs/components/text-area.props.js.map +1 -1
  286. package/dist/cjs/components/text-field.d.ts.map +1 -1
  287. package/dist/cjs/components/text-field.js +3 -2
  288. package/dist/cjs/components/text-field.js.map +3 -3
  289. package/dist/cjs/components/text-field.props.js +1 -0
  290. package/dist/cjs/components/text-field.props.js.map +2 -2
  291. package/dist/cjs/components/text.js +1 -0
  292. package/dist/cjs/components/text.js.map +1 -1
  293. package/dist/cjs/components/text.props.js +1 -0
  294. package/dist/cjs/components/text.props.js.map +1 -1
  295. package/dist/cjs/components/theme.d.ts.map +1 -1
  296. package/dist/cjs/components/theme.js +2 -1
  297. package/dist/cjs/components/theme.js.map +3 -3
  298. package/dist/cjs/components/theme.props.js +1 -0
  299. package/dist/cjs/components/theme.props.js.map +1 -1
  300. package/dist/cjs/components/toggle.js +2 -1
  301. package/dist/cjs/components/toggle.js.map +3 -3
  302. package/dist/cjs/components/toolbar.d.ts +4 -1
  303. package/dist/cjs/components/toolbar.d.ts.map +1 -1
  304. package/dist/cjs/components/toolbar.js +2 -1
  305. package/dist/cjs/components/toolbar.js.map +4 -4
  306. package/dist/cjs/components/toolbar.props.js +1 -0
  307. package/dist/cjs/components/toolbar.props.js.map +1 -1
  308. package/dist/cjs/components/tooltip.d.ts +13 -2
  309. package/dist/cjs/components/tooltip.d.ts.map +1 -1
  310. package/dist/cjs/components/tooltip.js +2 -1
  311. package/dist/cjs/components/tooltip.js.map +3 -3
  312. package/dist/cjs/components/tooltip.props.js +1 -0
  313. package/dist/cjs/components/tooltip.props.js.map +1 -1
  314. package/dist/cjs/components/virtual-menu.d.ts +19 -12
  315. package/dist/cjs/components/virtual-menu.d.ts.map +1 -1
  316. package/dist/cjs/components/virtual-menu.js +2 -1
  317. package/dist/cjs/components/virtual-menu.js.map +3 -3
  318. package/dist/cjs/components/visually-hidden.js +1 -0
  319. package/dist/cjs/components/visually-hidden.js.map +1 -1
  320. package/dist/cjs/helpers/get-margin-styles.d.ts.map +1 -1
  321. package/dist/cjs/helpers/get-margin-styles.js +1 -1
  322. package/dist/cjs/helpers/get-margin-styles.js.map +3 -3
  323. package/dist/cjs/helpers/index.js +4 -4
  324. package/dist/cjs/helpers/index.js.map +3 -3
  325. package/dist/cjs/hooks/index.js +5 -4
  326. package/dist/cjs/hooks/index.js.map +3 -3
  327. package/dist/cjs/hooks/use-appearance.d.ts.map +1 -1
  328. package/dist/cjs/hooks/use-appearance.js +4 -3
  329. package/dist/cjs/hooks/use-appearance.js.map +3 -3
  330. package/dist/cjs/hooks/use-body-pointer-events-cleanup.d.ts +1 -1
  331. package/dist/cjs/hooks/use-body-pointer-events-cleanup.d.ts.map +1 -1
  332. package/dist/cjs/hooks/use-body-pointer-events-cleanup.js +2 -1
  333. package/dist/cjs/hooks/use-body-pointer-events-cleanup.js.map +3 -3
  334. package/dist/cjs/hooks/use-breakpoint.js +1 -0
  335. package/dist/cjs/hooks/use-breakpoint.js.map +1 -1
  336. package/dist/cjs/hooks/use-live-announcer.js +1 -0
  337. package/dist/cjs/hooks/use-live-announcer.js.map +1 -1
  338. package/dist/cjs/hooks/use-prop-synced-state.js +1 -0
  339. package/dist/cjs/hooks/use-prop-synced-state.js.map +1 -1
  340. package/dist/cjs/hooks/use-scroll-edges.js +1 -0
  341. package/dist/cjs/hooks/use-scroll-edges.js.map +1 -1
  342. package/dist/cjs/hooks/use-thumb-sync.js +1 -0
  343. package/dist/cjs/hooks/use-thumb-sync.js.map +1 -1
  344. package/dist/cjs/hooks/use-toggle-state.js +1 -0
  345. package/dist/cjs/hooks/use-toggle-state.js.map +1 -1
  346. package/dist/cjs/hooks/use-tooltip-wrapper.js +1 -0
  347. package/dist/cjs/hooks/use-tooltip-wrapper.js.map +1 -1
  348. package/dist/cjs/index.js +6 -5
  349. package/dist/cjs/index.js.map +4 -4
  350. package/dist/cjs/props/gap.props.d.ts +4 -4
  351. package/dist/cjs/props/gap.props.js.map +1 -1
  352. package/dist/cjs/props/index.js +1 -1
  353. package/dist/cjs/props/index.js.map +3 -3
  354. package/dist/esm/chunk-2EXOL2BR.js +3 -0
  355. package/dist/esm/chunk-2EXOL2BR.js.map +7 -0
  356. package/dist/esm/chunk-2IU5XPR2.js +3 -0
  357. package/dist/esm/chunk-2IU5XPR2.js.map +7 -0
  358. package/dist/esm/chunk-2IUGM657.js +3 -0
  359. package/dist/esm/chunk-2IUGM657.js.map +7 -0
  360. package/dist/esm/{chunk-JYQGCXXI.js → chunk-2VSRZ4IT.js} +2 -1
  361. package/dist/esm/{chunk-JYQGCXXI.js.map → chunk-2VSRZ4IT.js.map} +1 -1
  362. package/dist/esm/chunk-2XZ7477Y.js +3 -0
  363. package/dist/esm/{chunk-NC3CJUE3.js.map → chunk-2XZ7477Y.js.map} +1 -1
  364. package/dist/esm/{chunk-GNTNGLYR.js → chunk-2Z2I27ZS.js} +3 -2
  365. package/dist/esm/{chunk-GNTNGLYR.js.map → chunk-2Z2I27ZS.js.map} +1 -1
  366. package/dist/esm/{chunk-PALE5UWK.js → chunk-3223MHQK.js} +3 -2
  367. package/dist/esm/{chunk-PALE5UWK.js.map → chunk-3223MHQK.js.map} +1 -1
  368. package/dist/esm/{chunk-MPTTUBFU.js → chunk-3H23GRNQ.js} +3 -2
  369. package/dist/esm/{chunk-MPTTUBFU.js.map → chunk-3H23GRNQ.js.map} +2 -2
  370. package/dist/esm/chunk-3LIF53YY.js +13 -0
  371. package/dist/esm/chunk-3LIF53YY.js.map +7 -0
  372. package/dist/esm/chunk-3QWGSRYC.js +3 -0
  373. package/dist/esm/chunk-3QWGSRYC.js.map +7 -0
  374. package/dist/esm/chunk-3WZLXGUE.js +3 -0
  375. package/dist/esm/chunk-3WZLXGUE.js.map +7 -0
  376. package/dist/esm/chunk-45O3JZWQ.js +6 -0
  377. package/dist/esm/chunk-45O3JZWQ.js.map +7 -0
  378. package/dist/esm/chunk-4ABQ6CDI.js +3 -0
  379. package/dist/esm/chunk-4ABQ6CDI.js.map +7 -0
  380. package/dist/esm/{chunk-IAEAXIBI.js → chunk-4J7QDLKI.js} +3 -2
  381. package/dist/esm/{chunk-IAEAXIBI.js.map → chunk-4J7QDLKI.js.map} +1 -1
  382. package/dist/esm/{chunk-4QKZYCCH.js → chunk-4Q5PUIDJ.js} +3 -2
  383. package/dist/esm/{chunk-4QKZYCCH.js.map → chunk-4Q5PUIDJ.js.map} +1 -1
  384. package/dist/esm/chunk-54HUG34P.js +3 -0
  385. package/dist/esm/chunk-54HUG34P.js.map +7 -0
  386. package/dist/esm/chunk-5EP3UTM7.js +3 -0
  387. package/dist/esm/{chunk-Q4IA622Q.js.map → chunk-5EP3UTM7.js.map} +1 -1
  388. package/dist/esm/chunk-5JYSYTHA.js +3 -0
  389. package/dist/esm/chunk-5JYSYTHA.js.map +7 -0
  390. package/dist/esm/{chunk-FWB47YCH.js → chunk-5KMEUZWN.js} +2 -1
  391. package/dist/esm/{chunk-FWB47YCH.js.map → chunk-5KMEUZWN.js.map} +1 -1
  392. package/dist/esm/{chunk-7MC7N4BC.js → chunk-5KQCG7AV.js} +2 -1
  393. package/dist/esm/{chunk-7MC7N4BC.js.map → chunk-5KQCG7AV.js.map} +1 -1
  394. package/dist/esm/chunk-5RFDCAKC.js +3 -0
  395. package/dist/esm/{chunk-SKOYHBIE.js.map → chunk-5RFDCAKC.js.map} +1 -1
  396. package/dist/esm/{chunk-BIITGC3Z.js → chunk-5WTSKXAE.js} +3 -2
  397. package/dist/esm/{chunk-BIITGC3Z.js.map → chunk-5WTSKXAE.js.map} +1 -1
  398. package/dist/esm/{chunk-OSSNMF5U.js → chunk-647DRBXQ.js} +3 -2
  399. package/dist/esm/{chunk-OSSNMF5U.js.map → chunk-647DRBXQ.js.map} +1 -1
  400. package/dist/esm/{chunk-KKMOGHIY.js → chunk-64EFWPHI.js} +3 -2
  401. package/dist/esm/{chunk-KKMOGHIY.js.map → chunk-64EFWPHI.js.map} +1 -1
  402. package/dist/esm/{chunk-BWLCTTTN.js → chunk-65KD6WS6.js} +3 -2
  403. package/dist/esm/{chunk-BWLCTTTN.js.map → chunk-65KD6WS6.js.map} +2 -2
  404. package/dist/esm/{chunk-RWTSGUVJ.js → chunk-6AMWYEM7.js} +3 -2
  405. package/dist/esm/{chunk-RWTSGUVJ.js.map → chunk-6AMWYEM7.js.map} +1 -1
  406. package/dist/esm/{chunk-ELAW7ZUG.js → chunk-6FLLFCBU.js} +2 -2
  407. package/dist/esm/{chunk-4P6TKZCA.js → chunk-6UZT3ZLO.js} +3 -2
  408. package/dist/esm/{chunk-4P6TKZCA.js.map → chunk-6UZT3ZLO.js.map} +1 -1
  409. package/dist/esm/chunk-7IHBNDCE.js +3 -0
  410. package/dist/esm/{chunk-WMVR2XBR.js.map → chunk-7IHBNDCE.js.map} +2 -2
  411. package/dist/esm/chunk-7J7RPEPB.js +3 -0
  412. package/dist/esm/chunk-7J7RPEPB.js.map +7 -0
  413. package/dist/esm/chunk-7N2Q5WOM.js +3 -0
  414. package/dist/esm/chunk-7N2Q5WOM.js.map +7 -0
  415. package/dist/esm/{chunk-25FNCKUM.js → chunk-7ROKZHH2.js} +3 -2
  416. package/dist/esm/{chunk-25FNCKUM.js.map → chunk-7ROKZHH2.js.map} +1 -1
  417. package/dist/esm/chunk-7VJF6EXN.js +3 -0
  418. package/dist/esm/chunk-7VJF6EXN.js.map +7 -0
  419. package/dist/esm/chunk-A2OMWZI7.js +2 -0
  420. package/dist/esm/{chunk-FDJV5RXX.js → chunk-A7QRPXXB.js} +3 -2
  421. package/dist/esm/{chunk-FDJV5RXX.js.map → chunk-A7QRPXXB.js.map} +1 -1
  422. package/dist/esm/chunk-AG2YETE6.js +3 -0
  423. package/dist/esm/chunk-AG2YETE6.js.map +7 -0
  424. package/dist/esm/{chunk-4BU4R7UM.js → chunk-AOBY2OUZ.js} +3 -2
  425. package/dist/esm/{chunk-4BU4R7UM.js.map → chunk-AOBY2OUZ.js.map} +1 -1
  426. package/dist/esm/{chunk-XEZXKPLE.js → chunk-AXODGYRY.js} +2 -1
  427. package/dist/esm/{chunk-XEZXKPLE.js.map → chunk-AXODGYRY.js.map} +1 -1
  428. package/dist/esm/chunk-AYKOOEZR.js +2 -0
  429. package/dist/esm/{chunk-YHYPIJCR.js → chunk-AZHSPPBV.js} +3 -2
  430. package/dist/esm/{chunk-YHYPIJCR.js.map → chunk-AZHSPPBV.js.map} +1 -1
  431. package/dist/esm/{chunk-ERNM3KVF.js → chunk-B6YGNB3V.js} +2 -1
  432. package/dist/esm/{chunk-ERNM3KVF.js.map → chunk-B6YGNB3V.js.map} +1 -1
  433. package/dist/esm/chunk-BMKUGZ4I.js +3 -0
  434. package/dist/esm/{chunk-VPSMETY2.js.map → chunk-BMKUGZ4I.js.map} +1 -1
  435. package/dist/esm/chunk-BOLSK63X.js +3 -0
  436. package/dist/esm/{chunk-X4A3XRBY.js.map → chunk-BOLSK63X.js.map} +1 -1
  437. package/dist/esm/chunk-BUZGRMDD.js +3 -0
  438. package/dist/esm/chunk-BUZGRMDD.js.map +7 -0
  439. package/dist/esm/{chunk-IDOZJVO6.js → chunk-CAAEEHGQ.js} +3 -2
  440. package/dist/esm/{chunk-IDOZJVO6.js.map → chunk-CAAEEHGQ.js.map} +1 -1
  441. package/dist/esm/{chunk-3QZBWH2A.js → chunk-CKJXTEVO.js} +3 -2
  442. package/dist/esm/chunk-CKJXTEVO.js.map +7 -0
  443. package/dist/esm/chunk-CLJ6SEGP.js +3 -0
  444. package/dist/esm/chunk-CLJ6SEGP.js.map +7 -0
  445. package/dist/esm/chunk-CR65RYGM.js +3 -0
  446. package/dist/esm/chunk-CR65RYGM.js.map +7 -0
  447. package/dist/esm/{chunk-H5BYPX6V.js → chunk-CRCYUJMK.js} +3 -2
  448. package/dist/esm/{chunk-H5BYPX6V.js.map → chunk-CRCYUJMK.js.map} +1 -1
  449. package/dist/esm/chunk-CV7QQTI3.js +3 -0
  450. package/dist/esm/chunk-CV7QQTI3.js.map +7 -0
  451. package/dist/esm/chunk-CYTPMHSJ.js +3 -0
  452. package/dist/esm/chunk-CYTPMHSJ.js.map +7 -0
  453. package/dist/esm/{chunk-GYP66ZK2.js → chunk-D4P7332M.js} +3 -2
  454. package/dist/esm/{chunk-GYP66ZK2.js.map → chunk-D4P7332M.js.map} +1 -1
  455. package/dist/esm/chunk-DI7RUMLO.js +3 -0
  456. package/dist/esm/chunk-DI7RUMLO.js.map +7 -0
  457. package/dist/esm/{chunk-OY5NT7VT.js → chunk-DVXDFCCV.js} +3 -2
  458. package/dist/esm/{chunk-OY5NT7VT.js.map → chunk-DVXDFCCV.js.map} +1 -1
  459. package/dist/esm/chunk-E4EMG3RC.js +3 -0
  460. package/dist/esm/chunk-E4EMG3RC.js.map +7 -0
  461. package/dist/esm/chunk-EAIQIW23.js +3 -0
  462. package/dist/esm/{chunk-4ZOVV3TY.js.map → chunk-EAIQIW23.js.map} +3 -3
  463. package/dist/esm/chunk-ENAW44VE.js +3 -0
  464. package/dist/esm/chunk-ENAW44VE.js.map +7 -0
  465. package/dist/esm/chunk-EVCQ6TG5.js +3 -0
  466. package/dist/esm/{chunk-VUPIJNG2.js.map → chunk-EVCQ6TG5.js.map} +2 -2
  467. package/dist/esm/{chunk-RAVZ7F5L.js → chunk-EY6TCYGG.js} +3 -2
  468. package/dist/esm/{chunk-RAVZ7F5L.js.map → chunk-EY6TCYGG.js.map} +1 -1
  469. package/dist/esm/chunk-FFJE25TJ.js +3 -0
  470. package/dist/esm/chunk-FFJE25TJ.js.map +7 -0
  471. package/dist/esm/chunk-FI32HA4X.js +3 -0
  472. package/dist/esm/{chunk-YXLDRDHW.js.map → chunk-FI32HA4X.js.map} +3 -3
  473. package/dist/esm/{chunk-NA237RHQ.js → chunk-FJLYSZV3.js} +1 -1
  474. package/dist/esm/{chunk-NA237RHQ.js.map → chunk-FJLYSZV3.js.map} +1 -1
  475. package/dist/esm/{chunk-DNOQ6E3W.js → chunk-FM3GBCX5.js} +3 -2
  476. package/dist/esm/{chunk-DNOQ6E3W.js.map → chunk-FM3GBCX5.js.map} +1 -1
  477. package/dist/esm/chunk-G32GSPNO.js +3 -0
  478. package/dist/esm/chunk-G32GSPNO.js.map +7 -0
  479. package/dist/esm/{chunk-TBZO22XK.js → chunk-G66WDIIV.js} +3 -2
  480. package/dist/esm/{chunk-TBZO22XK.js.map → chunk-G66WDIIV.js.map} +1 -1
  481. package/dist/esm/{chunk-PN3RQFSU.js → chunk-GHUAUFG7.js} +2 -1
  482. package/dist/esm/{chunk-PN3RQFSU.js.map → chunk-GHUAUFG7.js.map} +1 -1
  483. package/dist/esm/chunk-GHWEXMF6.js +3 -0
  484. package/dist/esm/chunk-GHWEXMF6.js.map +7 -0
  485. package/dist/esm/{chunk-62ZGP4ET.js → chunk-GKDGNPBD.js} +2 -1
  486. package/dist/esm/{chunk-62ZGP4ET.js.map → chunk-GKDGNPBD.js.map} +1 -1
  487. package/dist/esm/{chunk-W6BN5QLH.js → chunk-GNPTPIL7.js} +3 -2
  488. package/dist/esm/{chunk-W6BN5QLH.js.map → chunk-GNPTPIL7.js.map} +1 -1
  489. package/dist/esm/chunk-GPQSC6GL.js +3 -0
  490. package/dist/esm/chunk-GPQSC6GL.js.map +7 -0
  491. package/dist/esm/{chunk-THUBY6L2.js → chunk-GZ333J7L.js} +3 -2
  492. package/dist/esm/{chunk-THUBY6L2.js.map → chunk-GZ333J7L.js.map} +1 -1
  493. package/dist/esm/chunk-HBWBPBSA.js +3 -0
  494. package/dist/esm/chunk-HBWBPBSA.js.map +7 -0
  495. package/dist/esm/chunk-I3SRUPUP.js +3 -0
  496. package/dist/esm/chunk-I3SRUPUP.js.map +7 -0
  497. package/dist/esm/{chunk-3XHTJZNP.js → chunk-I6SMGWS5.js} +3 -2
  498. package/dist/esm/{chunk-3XHTJZNP.js.map → chunk-I6SMGWS5.js.map} +1 -1
  499. package/dist/esm/chunk-ILWS2JUE.js +3 -0
  500. package/dist/esm/chunk-ILWS2JUE.js.map +7 -0
  501. package/dist/esm/{chunk-QWDCLL6R.js → chunk-IN2WND4B.js} +3 -2
  502. package/dist/esm/{chunk-QWDCLL6R.js.map → chunk-IN2WND4B.js.map} +1 -1
  503. package/dist/esm/chunk-IO43RGNR.js +3 -0
  504. package/dist/esm/chunk-IO43RGNR.js.map +7 -0
  505. package/dist/esm/{chunk-UY6WJUNA.js → chunk-IQ2RMFOM.js} +3 -2
  506. package/dist/esm/{chunk-UY6WJUNA.js.map → chunk-IQ2RMFOM.js.map} +2 -2
  507. package/dist/esm/{chunk-DCNHG6VN.js → chunk-IZIDRDQW.js} +3 -2
  508. package/dist/esm/{chunk-DCNHG6VN.js.map → chunk-IZIDRDQW.js.map} +1 -1
  509. package/dist/esm/{chunk-7FTUTUMD.js → chunk-IZXML75Y.js} +2 -2
  510. package/dist/esm/chunk-J3QIUJ6F.js +2 -0
  511. package/dist/esm/chunk-JIF77MRB.js +3 -0
  512. package/dist/esm/chunk-JIF77MRB.js.map +7 -0
  513. package/dist/esm/{chunk-PBFSBHBS.js → chunk-JUY7CBSL.js} +2 -2
  514. package/dist/esm/chunk-JZ5Z53MN.js +2 -0
  515. package/dist/esm/{chunk-YEHM3FZN.js → chunk-JZVLP2VF.js} +3 -2
  516. package/dist/esm/{chunk-YEHM3FZN.js.map → chunk-JZVLP2VF.js.map} +1 -1
  517. package/dist/esm/chunk-KNBSG2WA.js +3 -0
  518. package/dist/esm/chunk-KNBSG2WA.js.map +7 -0
  519. package/dist/esm/{chunk-IWCFJJBI.js → chunk-KOAWATCI.js} +2 -1
  520. package/dist/esm/{chunk-IWCFJJBI.js.map → chunk-KOAWATCI.js.map} +1 -1
  521. package/dist/esm/chunk-KRFXTPEW.js +3 -0
  522. package/dist/esm/{chunk-63PQNLFJ.js.map → chunk-KRFXTPEW.js.map} +1 -1
  523. package/dist/esm/chunk-KSYHZCLD.js +3 -0
  524. package/dist/esm/{chunk-EZYXYLR2.js.map → chunk-KSYHZCLD.js.map} +1 -1
  525. package/dist/esm/{chunk-VW46DG7H.js → chunk-L4NF3Q2T.js} +3 -2
  526. package/dist/esm/{chunk-VW46DG7H.js.map → chunk-L4NF3Q2T.js.map} +1 -1
  527. package/dist/esm/chunk-L54FWKJE.js +3 -0
  528. package/dist/esm/chunk-L54FWKJE.js.map +7 -0
  529. package/dist/esm/{chunk-XTDXXQTB.js → chunk-L66IUPDW.js} +3 -2
  530. package/dist/esm/{chunk-XTDXXQTB.js.map → chunk-L66IUPDW.js.map} +1 -1
  531. package/dist/esm/{chunk-WX7SX5BN.js → chunk-LB2HB4NG.js} +3 -2
  532. package/dist/esm/{chunk-WX7SX5BN.js.map → chunk-LB2HB4NG.js.map} +2 -2
  533. package/dist/esm/{chunk-VVWYAVHM.js → chunk-LCG3JZ3C.js} +3 -2
  534. package/dist/esm/{chunk-VVWYAVHM.js.map → chunk-LCG3JZ3C.js.map} +1 -1
  535. package/dist/esm/chunk-LPLW7OWA.js +3 -0
  536. package/dist/esm/chunk-LPLW7OWA.js.map +7 -0
  537. package/dist/esm/chunk-M37GE2TE.js +3 -0
  538. package/dist/esm/{chunk-UONSKZQT.js.map → chunk-M37GE2TE.js.map} +1 -1
  539. package/dist/esm/{chunk-5YLKKQFK.js → chunk-MAA6LEE2.js} +2 -1
  540. package/dist/esm/{chunk-5YLKKQFK.js.map → chunk-MAA6LEE2.js.map} +1 -1
  541. package/dist/esm/chunk-MXIVYALY.js +3 -0
  542. package/dist/esm/chunk-MXIVYALY.js.map +7 -0
  543. package/dist/esm/chunk-N53NJCEM.js +3 -0
  544. package/dist/esm/chunk-N53NJCEM.js.map +7 -0
  545. package/dist/esm/{chunk-LXTGEI62.js → chunk-NBVCQQSY.js} +3 -2
  546. package/dist/esm/{chunk-LXTGEI62.js.map → chunk-NBVCQQSY.js.map} +1 -1
  547. package/dist/esm/chunk-NG54K6FL.js +2 -0
  548. package/dist/esm/chunk-NMQGDBLD.js +3 -0
  549. package/dist/esm/chunk-NMQGDBLD.js.map +7 -0
  550. package/dist/esm/chunk-OAJ5DARR.js +3 -0
  551. package/dist/esm/chunk-OAJ5DARR.js.map +7 -0
  552. package/dist/esm/chunk-OKQAVYW4.js +3 -0
  553. package/dist/esm/chunk-OKQAVYW4.js.map +7 -0
  554. package/dist/esm/chunk-PF67GJ5D.js +3 -0
  555. package/dist/esm/chunk-PF67GJ5D.js.map +7 -0
  556. package/dist/esm/chunk-PHWT772P.js +3 -0
  557. package/dist/esm/{chunk-XZQSSRTG.js.map → chunk-PHWT772P.js.map} +1 -1
  558. package/dist/esm/{chunk-PM6QY3JO.js → chunk-PPQ7URZL.js} +3 -2
  559. package/dist/esm/chunk-PPQ7URZL.js.map +7 -0
  560. package/dist/esm/{chunk-FNAE6HUI.js → chunk-PT45Q47V.js} +3 -2
  561. package/dist/esm/{chunk-FNAE6HUI.js.map → chunk-PT45Q47V.js.map} +1 -1
  562. package/dist/esm/{chunk-HCBR74BW.js → chunk-PT4KBXXP.js} +3 -2
  563. package/dist/esm/{chunk-HCBR74BW.js.map → chunk-PT4KBXXP.js.map} +1 -1
  564. package/dist/esm/{chunk-CHPT42BY.js → chunk-PZ6Z7WTR.js} +3 -2
  565. package/dist/esm/{chunk-CHPT42BY.js.map → chunk-PZ6Z7WTR.js.map} +1 -1
  566. package/dist/esm/{chunk-PSPENFPH.js → chunk-PZCQDZVJ.js} +3 -2
  567. package/dist/esm/{chunk-PSPENFPH.js.map → chunk-PZCQDZVJ.js.map} +1 -1
  568. package/dist/esm/{chunk-I53SGTKV.js → chunk-QH64BDXO.js} +3 -2
  569. package/dist/esm/{chunk-I53SGTKV.js.map → chunk-QH64BDXO.js.map} +1 -1
  570. package/dist/esm/{chunk-LUNWI377.js → chunk-QQY4WFJL.js} +3 -2
  571. package/dist/esm/{chunk-LUNWI377.js.map → chunk-QQY4WFJL.js.map} +1 -1
  572. package/dist/esm/{chunk-BE7LMBBC.js → chunk-RIHTVZVJ.js} +3 -2
  573. package/dist/esm/{chunk-BE7LMBBC.js.map → chunk-RIHTVZVJ.js.map} +1 -1
  574. package/dist/esm/{chunk-3XZOE2IQ.js → chunk-RVPLXLRA.js} +3 -2
  575. package/dist/esm/{chunk-3XZOE2IQ.js.map → chunk-RVPLXLRA.js.map} +1 -1
  576. package/dist/esm/{chunk-GS2QSZUR.js → chunk-SCIFT27R.js} +2 -1
  577. package/dist/esm/{chunk-GS2QSZUR.js.map → chunk-SCIFT27R.js.map} +1 -1
  578. package/dist/esm/chunk-SGJKXIWG.js +3 -0
  579. package/dist/esm/{chunk-DFGY2NZB.js.map → chunk-SGJKXIWG.js.map} +1 -1
  580. package/dist/esm/chunk-SHLERRO3.js +3 -0
  581. package/dist/esm/chunk-SHLERRO3.js.map +7 -0
  582. package/dist/esm/chunk-SV3CYQY5.js +3 -0
  583. package/dist/esm/{chunk-LVCUY2OS.js.map → chunk-SV3CYQY5.js.map} +2 -2
  584. package/dist/esm/chunk-TDT2CNES.js +2 -0
  585. package/dist/esm/chunk-TDT2CNES.js.map +7 -0
  586. package/dist/esm/chunk-TGRHRMQI.js +3 -0
  587. package/dist/esm/chunk-TGRHRMQI.js.map +7 -0
  588. package/dist/esm/{chunk-HIEGLLY7.js → chunk-TGUWRU7N.js} +2 -1
  589. package/dist/esm/{chunk-HIEGLLY7.js.map → chunk-TGUWRU7N.js.map} +1 -1
  590. package/dist/esm/{chunk-7ZOGH5NT.js → chunk-U5GQ3IFS.js} +2 -1
  591. package/dist/esm/{chunk-7ZOGH5NT.js.map → chunk-U5GQ3IFS.js.map} +1 -1
  592. package/dist/esm/{chunk-RKZVXVBN.js → chunk-UFJGZUKK.js} +3 -2
  593. package/dist/esm/chunk-UFJGZUKK.js.map +7 -0
  594. package/dist/esm/chunk-UUQGOQ5H.js +3 -0
  595. package/dist/esm/{chunk-G2JD52O5.js.map → chunk-UUQGOQ5H.js.map} +1 -1
  596. package/dist/esm/chunk-UZAS4PYM.js +3 -0
  597. package/dist/esm/chunk-UZAS4PYM.js.map +7 -0
  598. package/dist/esm/{chunk-OS3FCYZY.js → chunk-VQPANPMI.js} +2 -1
  599. package/dist/esm/chunk-VVBSYWUA.js +3 -0
  600. package/dist/esm/chunk-VVBSYWUA.js.map +7 -0
  601. package/dist/esm/chunk-WCGQ4IDE.js +3 -0
  602. package/dist/esm/{chunk-H3IAGAEL.js.map → chunk-WCGQ4IDE.js.map} +1 -1
  603. package/dist/esm/{chunk-HWQ3NTJP.js → chunk-WEBNIUEX.js} +2 -1
  604. package/dist/esm/{chunk-HWQ3NTJP.js.map → chunk-WEBNIUEX.js.map} +1 -1
  605. package/dist/esm/chunk-WH7PQSSG.js +2 -0
  606. package/dist/esm/{chunk-KL73COYX.js → chunk-WMZLMZHB.js} +2 -1
  607. package/dist/esm/{chunk-KL73COYX.js.map → chunk-WMZLMZHB.js.map} +1 -1
  608. package/dist/esm/{chunk-GBQZ4Z2H.js → chunk-WN3WMFAM.js} +3 -2
  609. package/dist/esm/{chunk-GBQZ4Z2H.js.map → chunk-WN3WMFAM.js.map} +1 -1
  610. package/dist/esm/{chunk-ETQNRMHU.js → chunk-WT2SYGTU.js} +3 -2
  611. package/dist/esm/{chunk-ETQNRMHU.js.map → chunk-WT2SYGTU.js.map} +1 -1
  612. package/dist/esm/{chunk-SUPFDIJL.js → chunk-WTP2KIK3.js} +2 -1
  613. package/dist/esm/{chunk-SUPFDIJL.js.map → chunk-WTP2KIK3.js.map} +1 -1
  614. package/dist/esm/{chunk-AGAQC4HH.js → chunk-WUCBFB25.js} +2 -1
  615. package/dist/esm/{chunk-AGAQC4HH.js.map → chunk-WUCBFB25.js.map} +1 -1
  616. package/dist/esm/chunk-WZKSLTBH.js +3 -0
  617. package/dist/esm/{chunk-BJUCBOGU.js.map → chunk-WZKSLTBH.js.map} +1 -1
  618. package/dist/esm/chunk-X272YV2E.js +3 -0
  619. package/dist/esm/chunk-X272YV2E.js.map +7 -0
  620. package/dist/esm/{chunk-CN6F4REJ.js → chunk-XH2CRCXR.js} +2 -1
  621. package/dist/esm/{chunk-CN6F4REJ.js.map → chunk-XH2CRCXR.js.map} +1 -1
  622. package/dist/esm/{chunk-KZEZDBE7.js → chunk-XL5OHW6Z.js} +3 -2
  623. package/dist/esm/{chunk-KZEZDBE7.js.map → chunk-XL5OHW6Z.js.map} +1 -1
  624. package/dist/esm/chunk-XMHNOIPB.js +3 -0
  625. package/dist/esm/{chunk-3BUQ7ADW.js.map → chunk-XMHNOIPB.js.map} +1 -1
  626. package/dist/esm/chunk-XU74PNM2.js +3 -0
  627. package/dist/esm/chunk-XU74PNM2.js.map +7 -0
  628. package/dist/esm/{chunk-3J6AUDID.js → chunk-XUCR7L4G.js} +2 -1
  629. package/dist/esm/{chunk-3J6AUDID.js.map → chunk-XUCR7L4G.js.map} +1 -1
  630. package/dist/esm/chunk-XVDT6DQZ.js +3 -0
  631. package/dist/esm/{chunk-TZTUPQYK.js.map → chunk-XVDT6DQZ.js.map} +1 -1
  632. package/dist/esm/{chunk-2N2AQNJH.js → chunk-Y2DBXOLT.js} +2 -1
  633. package/dist/esm/{chunk-2N2AQNJH.js.map → chunk-Y2DBXOLT.js.map} +1 -1
  634. package/dist/esm/chunk-YD2D73LF.js +3 -0
  635. package/dist/esm/chunk-YD2D73LF.js.map +7 -0
  636. package/dist/esm/chunk-YIKLO2XL.js +3 -0
  637. package/dist/esm/chunk-YIKLO2XL.js.map +7 -0
  638. package/dist/esm/chunk-YNCI5PY6.js +3 -0
  639. package/dist/esm/chunk-YNCI5PY6.js.map +7 -0
  640. package/dist/esm/chunk-YOSLXJI5.js +3 -0
  641. package/dist/esm/chunk-YOSLXJI5.js.map +7 -0
  642. package/dist/esm/{chunk-I4FLQELQ.js → chunk-YVZTQA2L.js} +3 -2
  643. package/dist/esm/{chunk-I4FLQELQ.js.map → chunk-YVZTQA2L.js.map} +1 -1
  644. package/dist/esm/chunk-YWG476GC.js +3 -0
  645. package/dist/esm/{chunk-MGQ4A2FI.js.map → chunk-YWG476GC.js.map} +1 -1
  646. package/dist/esm/chunk-YZZMQ457.js +3 -0
  647. package/dist/esm/{chunk-S6GWR6EZ.js.map → chunk-YZZMQ457.js.map} +1 -1
  648. package/dist/esm/chunk-Z27REN6T.js +3 -0
  649. package/dist/esm/chunk-Z27REN6T.js.map +7 -0
  650. package/dist/esm/{chunk-FVY44PTM.js → chunk-ZFDHZEWN.js} +3 -2
  651. package/dist/esm/{chunk-FVY44PTM.js.map → chunk-ZFDHZEWN.js.map} +1 -1
  652. package/dist/esm/chunk-ZPWKWESI.js +3 -0
  653. package/dist/esm/chunk-ZPWKWESI.js.map +7 -0
  654. package/dist/esm/components/_internal/base-button.d.ts.map +1 -1
  655. package/dist/esm/components/_internal/base-button.js +2 -1
  656. package/dist/esm/components/_internal/base-button.props.js +2 -1
  657. package/dist/esm/components/_internal/base-checkbox.props.js +2 -1
  658. package/dist/esm/components/_internal/base-menu.props.js +2 -1
  659. package/dist/esm/components/_internal/base-menu.utils.js +2 -1
  660. package/dist/esm/components/_internal/base-radio.props.js +2 -1
  661. package/dist/esm/components/_internal/base-tab-list.props.js +2 -1
  662. package/dist/esm/components/_internal/dropdown-menu-drill-down.d.ts +19 -7
  663. package/dist/esm/components/_internal/dropdown-menu-drill-down.d.ts.map +1 -1
  664. package/dist/esm/components/_internal/dropdown-menu-drill-down.js +2 -1
  665. package/dist/esm/components/_internal/menu-context.d.ts +10 -0
  666. package/dist/esm/components/_internal/menu-context.d.ts.map +1 -1
  667. package/dist/esm/components/_internal/menu-context.js +2 -1
  668. package/dist/esm/components/_internal/pane-chrome.d.ts +3 -1
  669. package/dist/esm/components/_internal/pane-chrome.d.ts.map +1 -1
  670. package/dist/esm/components/_internal/pane-chrome.js +2 -1
  671. package/dist/esm/components/_internal/shell-bottom.d.ts +1 -1
  672. package/dist/esm/components/_internal/shell-bottom.d.ts.map +1 -1
  673. package/dist/esm/components/_internal/shell-bottom.js +2 -1
  674. package/dist/esm/components/_internal/shell-handles.d.ts.map +1 -1
  675. package/dist/esm/components/_internal/shell-handles.js +2 -1
  676. package/dist/esm/components/_internal/shell-inspector.d.ts +1 -1
  677. package/dist/esm/components/_internal/shell-inspector.d.ts.map +1 -1
  678. package/dist/esm/components/_internal/shell-inspector.js +2 -1
  679. package/dist/esm/components/_internal/shell-pane.d.ts.map +1 -1
  680. package/dist/esm/components/_internal/shell-pane.js +2 -1
  681. package/dist/esm/components/_internal/shell-resizable.d.ts.map +1 -1
  682. package/dist/esm/components/_internal/shell-resizable.js +2 -1
  683. package/dist/esm/components/_internal/shell-resize.js +2 -1
  684. package/dist/esm/components/_internal/shell-rest.js +2 -1
  685. package/dist/esm/components/_internal/shell-sidebar.d.ts +1 -1
  686. package/dist/esm/components/_internal/shell-sidebar.d.ts.map +1 -1
  687. package/dist/esm/components/_internal/shell-sidebar.js +2 -1
  688. package/dist/esm/components/_internal/shell-store.d.ts.map +1 -1
  689. package/dist/esm/components/_internal/shell-store.js +2 -1
  690. package/dist/esm/components/accessible-icon.js +2 -1
  691. package/dist/esm/components/accordion.d.ts.map +1 -1
  692. package/dist/esm/components/accordion.js +2 -1
  693. package/dist/esm/components/accordion.props.js +2 -1
  694. package/dist/esm/components/alert-dialog.d.ts.map +1 -1
  695. package/dist/esm/components/alert-dialog.js +2 -1
  696. package/dist/esm/components/alert-dialog.props.js +2 -1
  697. package/dist/esm/components/avatar.d.ts.map +1 -1
  698. package/dist/esm/components/avatar.js +2 -1
  699. package/dist/esm/components/avatar.props.js +2 -1
  700. package/dist/esm/components/blockquote.js +2 -1
  701. package/dist/esm/components/blockquote.props.js +2 -1
  702. package/dist/esm/components/box.js +2 -1
  703. package/dist/esm/components/box.props.js +2 -1
  704. package/dist/esm/components/button.d.ts.map +1 -1
  705. package/dist/esm/components/button.js +2 -1
  706. package/dist/esm/components/button.props.js +2 -1
  707. package/dist/esm/components/card.js +2 -1
  708. package/dist/esm/components/card.props.js +2 -1
  709. package/dist/esm/components/chatbar.d.ts.map +1 -1
  710. package/dist/esm/components/chatbar.js +2 -1
  711. package/dist/esm/components/checkbox-group.js +2 -1
  712. package/dist/esm/components/checkbox-group.primitive.js +2 -1
  713. package/dist/esm/components/checkbox-group.props.js +2 -1
  714. package/dist/esm/components/checkbox.js +2 -1
  715. package/dist/esm/components/checkbox.props.js +2 -1
  716. package/dist/esm/components/chip.js +2 -1
  717. package/dist/esm/components/chip.props.js +2 -1
  718. package/dist/esm/components/code.js +2 -1
  719. package/dist/esm/components/code.props.js +2 -1
  720. package/dist/esm/components/combobox.d.ts.map +1 -1
  721. package/dist/esm/components/combobox.js +2 -1
  722. package/dist/esm/components/combobox.props.js +2 -1
  723. package/dist/esm/components/context-menu.d.ts +1 -2
  724. package/dist/esm/components/context-menu.d.ts.map +1 -1
  725. package/dist/esm/components/context-menu.js +2 -1
  726. package/dist/esm/components/context-menu.props.js +2 -1
  727. package/dist/esm/components/dialog.js +2 -1
  728. package/dist/esm/components/dialog.props.js +2 -1
  729. package/dist/esm/components/dropdown-menu.d.ts +1 -2
  730. package/dist/esm/components/dropdown-menu.d.ts.map +1 -1
  731. package/dist/esm/components/dropdown-menu.js +2 -1
  732. package/dist/esm/components/dropdown-menu.props.js +2 -1
  733. package/dist/esm/components/flex.js +2 -1
  734. package/dist/esm/components/flex.props.js +2 -1
  735. package/dist/esm/components/grid.js +2 -1
  736. package/dist/esm/components/grid.props.js +2 -1
  737. package/dist/esm/components/heading.d.ts +2 -2
  738. package/dist/esm/components/heading.d.ts.map +1 -1
  739. package/dist/esm/components/heading.js +2 -1
  740. package/dist/esm/components/heading.props.d.ts +1 -1
  741. package/dist/esm/components/heading.props.js +2 -1
  742. package/dist/esm/components/icons.js +2 -1
  743. package/dist/esm/components/image.d.ts +9 -2
  744. package/dist/esm/components/image.d.ts.map +1 -1
  745. package/dist/esm/components/image.js +2 -1
  746. package/dist/esm/components/image.props.js +2 -1
  747. package/dist/esm/components/index.d.ts +1 -1
  748. package/dist/esm/components/index.d.ts.map +1 -1
  749. package/dist/esm/components/index.js +2 -1
  750. package/dist/esm/components/kbd.js +2 -1
  751. package/dist/esm/components/kbd.props.js +2 -1
  752. package/dist/esm/components/link.js +2 -1
  753. package/dist/esm/components/link.props.js +2 -1
  754. package/dist/esm/components/message-scroller.d.ts +2 -2
  755. package/dist/esm/components/message-scroller.d.ts.map +1 -1
  756. package/dist/esm/components/message-scroller.js +2 -1
  757. package/dist/esm/components/navbar.js +2 -1
  758. package/dist/esm/components/navbar.props.js +2 -1
  759. package/dist/esm/components/notice.js +2 -1
  760. package/dist/esm/components/popover.d.ts +3 -1
  761. package/dist/esm/components/popover.d.ts.map +1 -1
  762. package/dist/esm/components/popover.js +2 -1
  763. package/dist/esm/components/popover.props.js +2 -1
  764. package/dist/esm/components/portal.js +2 -1
  765. package/dist/esm/components/progress.d.ts.map +1 -1
  766. package/dist/esm/components/progress.js +2 -1
  767. package/dist/esm/components/progress.props.js +2 -1
  768. package/dist/esm/components/radio-group.js +2 -1
  769. package/dist/esm/components/radio-group.props.js +2 -1
  770. package/dist/esm/components/radio.js +2 -1
  771. package/dist/esm/components/radio.props.js +2 -1
  772. package/dist/esm/components/reset.js +2 -1
  773. package/dist/esm/components/schemas/base-button.schema.js +2 -1
  774. package/dist/esm/components/schemas/button.schema.js +2 -1
  775. package/dist/esm/components/schemas/index.js +2 -1
  776. package/dist/esm/components/schemas/index.js.map +1 -1
  777. package/dist/esm/components/schemas/shell.schema.js +2 -1
  778. package/dist/esm/components/schemas/toggle.schema.js +2 -1
  779. package/dist/esm/components/scroll-area.js +2 -1
  780. package/dist/esm/components/scroll-area.props.js +2 -1
  781. package/dist/esm/components/segmented-control.d.ts.map +1 -1
  782. package/dist/esm/components/segmented-control.js +2 -1
  783. package/dist/esm/components/segmented-control.props.d.ts +0 -1
  784. package/dist/esm/components/segmented-control.props.d.ts.map +1 -1
  785. package/dist/esm/components/segmented-control.props.js +2 -1
  786. package/dist/esm/components/select.d.ts.map +1 -1
  787. package/dist/esm/components/select.js +2 -1
  788. package/dist/esm/components/select.props.js +2 -1
  789. package/dist/esm/components/separator.d.ts.map +1 -1
  790. package/dist/esm/components/separator.js +2 -1
  791. package/dist/esm/components/separator.props.d.ts +1 -1
  792. package/dist/esm/components/separator.props.js +2 -1
  793. package/dist/esm/components/sheet.d.ts +1 -1
  794. package/dist/esm/components/sheet.d.ts.map +1 -1
  795. package/dist/esm/components/sheet.js +2 -1
  796. package/dist/esm/components/shell.context.js +2 -1
  797. package/dist/esm/components/shell.d.ts +5 -2
  798. package/dist/esm/components/shell.d.ts.map +1 -1
  799. package/dist/esm/components/shell.hooks.js +2 -1
  800. package/dist/esm/components/shell.js +2 -1
  801. package/dist/esm/components/shell.types.js +2 -1
  802. package/dist/esm/components/sidebar.d.ts.map +1 -1
  803. package/dist/esm/components/sidebar.js +2 -1
  804. package/dist/esm/components/slider.d.ts.map +1 -1
  805. package/dist/esm/components/slider.js +2 -1
  806. package/dist/esm/components/slider.props.d.ts +0 -2
  807. package/dist/esm/components/slider.props.d.ts.map +1 -1
  808. package/dist/esm/components/slider.props.js +2 -1
  809. package/dist/esm/components/slot.js +2 -1
  810. package/dist/esm/components/spinner.d.ts.map +1 -1
  811. package/dist/esm/components/spinner.js +2 -1
  812. package/dist/esm/components/spinner.props.js +2 -1
  813. package/dist/esm/components/switch.js +2 -1
  814. package/dist/esm/components/switch.props.js +2 -1
  815. package/dist/esm/components/table.d.ts.map +1 -1
  816. package/dist/esm/components/table.js +2 -1
  817. package/dist/esm/components/table.props.d.ts +0 -2
  818. package/dist/esm/components/table.props.d.ts.map +1 -1
  819. package/dist/esm/components/table.props.js +2 -1
  820. package/dist/esm/components/tabs.d.ts.map +1 -1
  821. package/dist/esm/components/tabs.js +2 -1
  822. package/dist/esm/components/tabs.props.js +2 -1
  823. package/dist/esm/components/text-area.d.ts.map +1 -1
  824. package/dist/esm/components/text-area.js +2 -1
  825. package/dist/esm/components/text-area.props.js +2 -1
  826. package/dist/esm/components/text-field.d.ts.map +1 -1
  827. package/dist/esm/components/text-field.js +2 -1
  828. package/dist/esm/components/text-field.props.js +2 -1
  829. package/dist/esm/components/text.js +2 -1
  830. package/dist/esm/components/text.props.js +2 -1
  831. package/dist/esm/components/theme.d.ts.map +1 -1
  832. package/dist/esm/components/theme.js +2 -1
  833. package/dist/esm/components/theme.props.js +2 -1
  834. package/dist/esm/components/toggle.js +2 -1
  835. package/dist/esm/components/toolbar.d.ts +4 -1
  836. package/dist/esm/components/toolbar.d.ts.map +1 -1
  837. package/dist/esm/components/toolbar.js +2 -1
  838. package/dist/esm/components/toolbar.props.js +2 -1
  839. package/dist/esm/components/tooltip.d.ts +13 -2
  840. package/dist/esm/components/tooltip.d.ts.map +1 -1
  841. package/dist/esm/components/tooltip.js +2 -1
  842. package/dist/esm/components/tooltip.props.js +2 -1
  843. package/dist/esm/components/virtual-menu.d.ts +19 -12
  844. package/dist/esm/components/virtual-menu.d.ts.map +1 -1
  845. package/dist/esm/components/virtual-menu.js +2 -1
  846. package/dist/esm/components/visually-hidden.js +2 -1
  847. package/dist/esm/helpers/compile-prop-defs.js +1 -1
  848. package/dist/esm/helpers/extract-margin-props.js +1 -1
  849. package/dist/esm/helpers/extract-props.js +1 -1
  850. package/dist/esm/helpers/font-config.js +1 -1
  851. package/dist/esm/helpers/get-margin-styles.d.ts.map +1 -1
  852. package/dist/esm/helpers/get-margin-styles.js +1 -1
  853. package/dist/esm/helpers/get-matching-gray-color.js +1 -1
  854. package/dist/esm/helpers/get-responsive-styles.js +1 -1
  855. package/dist/esm/helpers/get-subtree.js +1 -1
  856. package/dist/esm/helpers/has-own-property.js +1 -1
  857. package/dist/esm/helpers/index.js +1 -1
  858. package/dist/esm/helpers/inert.js +1 -1
  859. package/dist/esm/helpers/inert.js.map +1 -1
  860. package/dist/esm/helpers/is-responsive-object.js +1 -1
  861. package/dist/esm/helpers/map-prop-values.js +1 -1
  862. package/dist/esm/helpers/merge-styles.js +1 -1
  863. package/dist/esm/helpers/normalize-to-px.js +1 -1
  864. package/dist/esm/helpers/require-react-element.js +1 -1
  865. package/dist/esm/helpers/theme-size.js +1 -1
  866. package/dist/esm/helpers/warn-deprecated.js +1 -1
  867. package/dist/esm/helpers/warn-deprecated.js.map +4 -4
  868. package/dist/esm/hooks/appearance-script.js +11 -1
  869. package/dist/esm/hooks/appearance-script.js.map +4 -4
  870. package/dist/esm/hooks/index.js +2 -1
  871. package/dist/esm/hooks/use-appearance.d.ts.map +1 -1
  872. package/dist/esm/hooks/use-appearance.js +2 -1
  873. package/dist/esm/hooks/use-body-pointer-events-cleanup.d.ts +1 -1
  874. package/dist/esm/hooks/use-body-pointer-events-cleanup.d.ts.map +1 -1
  875. package/dist/esm/hooks/use-body-pointer-events-cleanup.js +2 -1
  876. package/dist/esm/hooks/use-breakpoint.js +2 -1
  877. package/dist/esm/hooks/use-live-announcer.js +2 -1
  878. package/dist/esm/hooks/use-prop-synced-state.js +2 -1
  879. package/dist/esm/hooks/use-scroll-edges.js +2 -1
  880. package/dist/esm/hooks/use-thumb-sync.js +2 -1
  881. package/dist/esm/hooks/use-toggle-state.js +2 -1
  882. package/dist/esm/hooks/use-tooltip-wrapper.js +2 -1
  883. package/dist/esm/index.js +2 -1
  884. package/dist/esm/props/as-child.prop.js +1 -1
  885. package/dist/esm/props/color.prop.js +1 -1
  886. package/dist/esm/props/emphasis.prop.js +1 -1
  887. package/dist/esm/props/font-family.prop.js +1 -1
  888. package/dist/esm/props/gap.props.d.ts +4 -4
  889. package/dist/esm/props/gap.props.js +1 -1
  890. package/dist/esm/props/height.props.js +1 -1
  891. package/dist/esm/props/index.js +1 -1
  892. package/dist/esm/props/index.js.map +4 -4
  893. package/dist/esm/props/layout.props.js +1 -1
  894. package/dist/esm/props/leading-trim.prop.js +1 -1
  895. package/dist/esm/props/margin.props.js +1 -1
  896. package/dist/esm/props/padding.props.js +1 -1
  897. package/dist/esm/props/prop-def.js +1 -1
  898. package/dist/esm/props/radius.prop.js +1 -1
  899. package/dist/esm/props/shadow.props.js +1 -1
  900. package/dist/esm/props/text-align.prop.js +1 -1
  901. package/dist/esm/props/text-wrap.prop.js +1 -1
  902. package/dist/esm/props/truncate.prop.js +1 -1
  903. package/dist/esm/props/weight.prop.js +1 -1
  904. package/dist/esm/props/width.props.js +1 -1
  905. package/layout/utilities.css +2 -2
  906. package/layout.css +2 -2
  907. package/package.json +3 -7
  908. package/src/components/_internal/base-button.css +24 -6
  909. package/src/components/_internal/base-button.props.ts +1 -1
  910. package/src/components/_internal/base-button.tsx +80 -35
  911. package/src/components/_internal/base-checkbox.css +23 -0
  912. package/src/components/_internal/base-menu.css +9 -3
  913. package/src/components/_internal/base-radio.css +22 -0
  914. package/src/components/_internal/base-tab-list.css +5 -0
  915. package/src/components/_internal/dropdown-menu-drill-down.tsx +45 -26
  916. package/src/components/_internal/menu-context.tsx +36 -1
  917. package/src/components/_internal/pane-chrome.tsx +8 -6
  918. package/src/components/_internal/shell-bottom.tsx +2 -0
  919. package/src/components/_internal/shell-handles.tsx +10 -1
  920. package/src/components/_internal/shell-inspector.tsx +3 -0
  921. package/src/components/_internal/shell-pane.tsx +5 -4
  922. package/src/components/_internal/shell-resizable.tsx +17 -8
  923. package/src/components/_internal/shell-sidebar.tsx +3 -0
  924. package/src/components/_internal/shell-store.tsx +2 -1
  925. package/src/components/accordion.css +55 -69
  926. package/src/components/accordion.tsx +0 -26
  927. package/src/components/alert-dialog.tsx +4 -0
  928. package/src/components/avatar.css +6 -2
  929. package/src/components/avatar.tsx +36 -3
  930. package/src/components/blockquote.css +2 -2
  931. package/src/components/button.tsx +12 -5
  932. package/src/components/card.css +14 -3
  933. package/src/components/chatbar.css +20 -3
  934. package/src/components/chatbar.tsx +14 -11
  935. package/src/components/checkbox-group.css +1 -5
  936. package/src/components/checkbox.css +1 -5
  937. package/src/components/chip.css +0 -3
  938. package/src/components/combobox.tsx +25 -26
  939. package/src/components/context-menu.tsx +47 -27
  940. package/src/components/dropdown-menu.css +0 -6
  941. package/src/components/dropdown-menu.tsx +71 -34
  942. package/src/components/heading.props.tsx +1 -1
  943. package/src/components/heading.tsx +4 -4
  944. package/src/components/image.css +5 -0
  945. package/src/components/image.tsx +29 -3
  946. package/src/components/index.tsx +1 -1
  947. package/src/components/kbd.css +6 -5
  948. package/src/components/link.css +1 -5
  949. package/src/components/message-scroller.tsx +15 -26
  950. package/src/components/navbar.css +9 -1
  951. package/src/components/popover.css +14 -10
  952. package/src/components/popover.tsx +13 -11
  953. package/src/components/progress.css +33 -6
  954. package/src/components/progress.tsx +5 -3
  955. package/src/components/scroll-area.css +34 -4
  956. package/src/components/segmented-control.css +178 -148
  957. package/src/components/segmented-control.props.tsx +1 -1
  958. package/src/components/segmented-control.tsx +88 -63
  959. package/src/components/select.css +16 -29
  960. package/src/components/select.tsx +4 -15
  961. package/src/components/separator.css +8 -1
  962. package/src/components/separator.props.tsx +1 -1
  963. package/src/components/separator.tsx +22 -4
  964. package/src/components/sheet.css +4 -5
  965. package/src/components/sheet.tsx +3 -1
  966. package/src/components/shell.css +148 -21
  967. package/src/components/shell.tsx +18 -1
  968. package/src/components/sidebar.css +1 -135
  969. package/src/components/sidebar.tsx +178 -160
  970. package/src/components/slider.css +90 -21
  971. package/src/components/slider.props.tsx +2 -2
  972. package/src/components/slider.tsx +78 -91
  973. package/src/components/spinner.css +10 -2
  974. package/src/components/spinner.tsx +5 -1
  975. package/src/components/switch.css +40 -8
  976. package/src/components/table.css +5 -1
  977. package/src/components/table.props.tsx +0 -9
  978. package/src/components/table.tsx +2 -1
  979. package/src/components/tabs.tsx +10 -3
  980. package/src/components/text-area.css +17 -2
  981. package/src/components/text-area.tsx +20 -16
  982. package/src/components/text-field.css +51 -36
  983. package/src/components/text-field.tsx +100 -49
  984. package/src/components/theme.tsx +14 -44
  985. package/src/components/toolbar.tsx +35 -8
  986. package/src/components/tooltip.css +8 -1
  987. package/src/components/tooltip.tsx +30 -3
  988. package/src/components/virtual-menu.css +80 -0
  989. package/src/components/virtual-menu.tsx +103 -62
  990. package/src/helpers/get-margin-styles.ts +8 -10
  991. package/src/hooks/use-appearance.ts +32 -19
  992. package/src/hooks/use-body-pointer-events-cleanup.ts +123 -124
  993. package/src/props/gap.props.ts +4 -4
  994. package/src/styles/utilities/margin.css +2 -2
  995. package/src/styles/utilities/text-align.css +8 -0
  996. package/styles.css +1827 -803
  997. package/utilities.css +38 -2
  998. package/dist/esm/chunk-2E4P5XQL.js +0 -2
  999. package/dist/esm/chunk-2E4P5XQL.js.map +0 -7
  1000. package/dist/esm/chunk-2KZ4NI3X.js +0 -1
  1001. package/dist/esm/chunk-3BUQ7ADW.js +0 -2
  1002. package/dist/esm/chunk-3PTKPDSA.js +0 -2
  1003. package/dist/esm/chunk-3PTKPDSA.js.map +0 -7
  1004. package/dist/esm/chunk-3QZBWH2A.js.map +0 -7
  1005. package/dist/esm/chunk-3VTS4C63.js +0 -2
  1006. package/dist/esm/chunk-3VTS4C63.js.map +0 -7
  1007. package/dist/esm/chunk-3WE4E2WQ.js +0 -2
  1008. package/dist/esm/chunk-3WE4E2WQ.js.map +0 -7
  1009. package/dist/esm/chunk-3XUY5WFA.js +0 -2
  1010. package/dist/esm/chunk-3XUY5WFA.js.map +0 -7
  1011. package/dist/esm/chunk-432YLNB3.js +0 -2
  1012. package/dist/esm/chunk-432YLNB3.js.map +0 -7
  1013. package/dist/esm/chunk-4R5EMVB3.js +0 -2
  1014. package/dist/esm/chunk-4R5EMVB3.js.map +0 -7
  1015. package/dist/esm/chunk-4ZOVV3TY.js +0 -2
  1016. package/dist/esm/chunk-5ROQAZ7J.js +0 -2
  1017. package/dist/esm/chunk-5ROQAZ7J.js.map +0 -7
  1018. package/dist/esm/chunk-63PQNLFJ.js +0 -2
  1019. package/dist/esm/chunk-6DWDNKLS.js +0 -1
  1020. package/dist/esm/chunk-7CUQMU3T.js +0 -2
  1021. package/dist/esm/chunk-7CUQMU3T.js.map +0 -7
  1022. package/dist/esm/chunk-BGAJ2MDF.js +0 -2
  1023. package/dist/esm/chunk-BGAJ2MDF.js.map +0 -7
  1024. package/dist/esm/chunk-BJUCBOGU.js +0 -2
  1025. package/dist/esm/chunk-CLZW2IDD.js +0 -2
  1026. package/dist/esm/chunk-CLZW2IDD.js.map +0 -7
  1027. package/dist/esm/chunk-CMHUK7OG.js +0 -2
  1028. package/dist/esm/chunk-CMHUK7OG.js.map +0 -7
  1029. package/dist/esm/chunk-DFGY2NZB.js +0 -2
  1030. package/dist/esm/chunk-DUTZUWZP.js +0 -2
  1031. package/dist/esm/chunk-DUTZUWZP.js.map +0 -7
  1032. package/dist/esm/chunk-EZYXYLR2.js +0 -2
  1033. package/dist/esm/chunk-FDHWAC6W.js +0 -2
  1034. package/dist/esm/chunk-FDHWAC6W.js.map +0 -7
  1035. package/dist/esm/chunk-G2JD52O5.js +0 -2
  1036. package/dist/esm/chunk-G4ETY2NP.js +0 -2
  1037. package/dist/esm/chunk-G4ETY2NP.js.map +0 -7
  1038. package/dist/esm/chunk-GPOCLDBR.js +0 -2
  1039. package/dist/esm/chunk-GPOCLDBR.js.map +0 -7
  1040. package/dist/esm/chunk-H3IAGAEL.js +0 -2
  1041. package/dist/esm/chunk-H5G7UECV.js +0 -2
  1042. package/dist/esm/chunk-H5G7UECV.js.map +0 -7
  1043. package/dist/esm/chunk-HT7RFHLW.js +0 -2
  1044. package/dist/esm/chunk-HT7RFHLW.js.map +0 -7
  1045. package/dist/esm/chunk-IUER6BNH.js +0 -12
  1046. package/dist/esm/chunk-IUER6BNH.js.map +0 -7
  1047. package/dist/esm/chunk-IVQHRM33.js +0 -2
  1048. package/dist/esm/chunk-IVQHRM33.js.map +0 -7
  1049. package/dist/esm/chunk-KA5UE2VN.js +0 -2
  1050. package/dist/esm/chunk-KA5UE2VN.js.map +0 -7
  1051. package/dist/esm/chunk-KEGCX5VM.js +0 -2
  1052. package/dist/esm/chunk-KEGCX5VM.js.map +0 -7
  1053. package/dist/esm/chunk-KT2CMUS5.js +0 -2
  1054. package/dist/esm/chunk-KT2CMUS5.js.map +0 -7
  1055. package/dist/esm/chunk-KVHKPUZ2.js +0 -2
  1056. package/dist/esm/chunk-KVHKPUZ2.js.map +0 -7
  1057. package/dist/esm/chunk-LVCUY2OS.js +0 -2
  1058. package/dist/esm/chunk-M7I6ISPL.js +0 -2
  1059. package/dist/esm/chunk-M7I6ISPL.js.map +0 -7
  1060. package/dist/esm/chunk-MGQ4A2FI.js +0 -2
  1061. package/dist/esm/chunk-MHANZINI.js +0 -2
  1062. package/dist/esm/chunk-MHANZINI.js.map +0 -7
  1063. package/dist/esm/chunk-MYYXOFU5.js +0 -1
  1064. package/dist/esm/chunk-N3WBEQWL.js +0 -5
  1065. package/dist/esm/chunk-N3WBEQWL.js.map +0 -7
  1066. package/dist/esm/chunk-NC3CJUE3.js +0 -2
  1067. package/dist/esm/chunk-OA7C34MJ.js +0 -1
  1068. package/dist/esm/chunk-P2MV6HLA.js +0 -2
  1069. package/dist/esm/chunk-P2MV6HLA.js.map +0 -7
  1070. package/dist/esm/chunk-PDMCLVYT.js +0 -2
  1071. package/dist/esm/chunk-PDMCLVYT.js.map +0 -7
  1072. package/dist/esm/chunk-PJR6GRZC.js +0 -2
  1073. package/dist/esm/chunk-PJR6GRZC.js.map +0 -7
  1074. package/dist/esm/chunk-PM6QY3JO.js.map +0 -7
  1075. package/dist/esm/chunk-PPZY7PJA.js +0 -2
  1076. package/dist/esm/chunk-PPZY7PJA.js.map +0 -7
  1077. package/dist/esm/chunk-Q4IA622Q.js +0 -2
  1078. package/dist/esm/chunk-RKZVXVBN.js.map +0 -7
  1079. package/dist/esm/chunk-S6GWR6EZ.js +0 -2
  1080. package/dist/esm/chunk-SKOYHBIE.js +0 -2
  1081. package/dist/esm/chunk-STPMPY3X.js +0 -1
  1082. package/dist/esm/chunk-TXQZ5HLV.js +0 -2
  1083. package/dist/esm/chunk-TXQZ5HLV.js.map +0 -7
  1084. package/dist/esm/chunk-TZTUPQYK.js +0 -2
  1085. package/dist/esm/chunk-UICSVJ3B.js +0 -1
  1086. package/dist/esm/chunk-UKASIY6M.js +0 -2
  1087. package/dist/esm/chunk-UKASIY6M.js.map +0 -7
  1088. package/dist/esm/chunk-UONSKZQT.js +0 -2
  1089. package/dist/esm/chunk-V5O3TF57.js +0 -2
  1090. package/dist/esm/chunk-V5O3TF57.js.map +0 -7
  1091. package/dist/esm/chunk-VPSMETY2.js +0 -2
  1092. package/dist/esm/chunk-VUNCI6A6.js +0 -2
  1093. package/dist/esm/chunk-VUNCI6A6.js.map +0 -7
  1094. package/dist/esm/chunk-VUPIJNG2.js +0 -2
  1095. package/dist/esm/chunk-VXQQ6KXI.js +0 -2
  1096. package/dist/esm/chunk-VXQQ6KXI.js.map +0 -7
  1097. package/dist/esm/chunk-WG5ORTIW.js +0 -2
  1098. package/dist/esm/chunk-WG5ORTIW.js.map +0 -7
  1099. package/dist/esm/chunk-WMVR2XBR.js +0 -2
  1100. package/dist/esm/chunk-WOR3JCLX.js +0 -1
  1101. package/dist/esm/chunk-WOR3JCLX.js.map +0 -7
  1102. package/dist/esm/chunk-X4A3XRBY.js +0 -2
  1103. package/dist/esm/chunk-XOACTIBL.js +0 -2
  1104. package/dist/esm/chunk-XOACTIBL.js.map +0 -7
  1105. package/dist/esm/chunk-XZQSSRTG.js +0 -2
  1106. package/dist/esm/chunk-YIK4ACXS.js +0 -2
  1107. package/dist/esm/chunk-YIK4ACXS.js.map +0 -7
  1108. package/dist/esm/chunk-YXLDRDHW.js +0 -2
  1109. /package/dist/esm/{chunk-ELAW7ZUG.js.map → chunk-6FLLFCBU.js.map} +0 -0
  1110. /package/dist/esm/{chunk-2KZ4NI3X.js.map → chunk-A2OMWZI7.js.map} +0 -0
  1111. /package/dist/esm/{chunk-6DWDNKLS.js.map → chunk-AYKOOEZR.js.map} +0 -0
  1112. /package/dist/esm/{chunk-7FTUTUMD.js.map → chunk-IZXML75Y.js.map} +0 -0
  1113. /package/dist/esm/{chunk-MYYXOFU5.js.map → chunk-J3QIUJ6F.js.map} +0 -0
  1114. /package/dist/esm/{chunk-PBFSBHBS.js.map → chunk-JUY7CBSL.js.map} +0 -0
  1115. /package/dist/esm/{chunk-OA7C34MJ.js.map → chunk-JZ5Z53MN.js.map} +0 -0
  1116. /package/dist/esm/{chunk-OS3FCYZY.js.map → chunk-NG54K6FL.js.map} +0 -0
  1117. /package/dist/esm/{chunk-STPMPY3X.js.map → chunk-VQPANPMI.js.map} +0 -0
  1118. /package/dist/esm/{chunk-UICSVJ3B.js.map → chunk-WH7PQSSG.js.map} +0 -0
@@ -1,2 +1,3 @@
1
+ "use client";
1
2
  "use strict";var i=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var f=(e,o)=>{for(var s in o)i(e,s,{get:o[s],enumerable:!0})},l=(e,o,s,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of a(o))!p.call(e,t)&&t!==s&&i(e,t,{get:()=>o[t],enumerable:!(r=n(o,t))||r.enumerable});return e};var u=e=>l(i({},"__esModule",{value:!0}),e);var y={};f(y,{toolbarRootPropDefs:()=>z});module.exports=u(y);var c=["1","2","3","4"],m=["horizontal","vertical"],z={size:{type:"enum",className:"kui-r-size",values:c,default:"2"},orientation:{type:"enum",values:m,default:"horizontal"}};
2
3
  //# sourceMappingURL=toolbar.props.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/toolbar.props.tsx"],
4
4
  "sourcesContent": ["import type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst orientations = ['horizontal', 'vertical'] as const;\n\n/**\n * Toolbar prop definitions.\n *\n * `size` is one value for the whole row (not responsive): the row hands it to every control\n * inside it that does not state its own, through context, so it has to be a single index.\n */\nconst toolbarRootPropDefs = {\n /**\n * Size step of the row and of every control in it that doesn't set its own `size`.\n * Matches Button's sizes: 1 (28px) to 4 (48px). Unset inside `Shell.PaneHeader` or\n * `Shell.PaneFooter`, it rests one step above the Shell's `size`.\n */\n size: { type: 'enum', className: 'kui-r-size', values: sizes, default: '2' },\n /**\n * Direction of the row and of the arrow keys. Use `vertical` for a strip of tools along an edge.\n */\n orientation: { type: 'enum', values: orientations, default: 'horizontal' },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n orientation: PropDef<(typeof orientations)[number]>;\n};\n\nexport { toolbarRootPropDefs };\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,yBAAAE,IAAA,eAAAC,EAAAH,GAEA,IAAMI,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,EAAe,CAAC,aAAc,UAAU,EAQxCH,EAAsB,CAM1B,KAAM,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQE,EAAO,QAAS,GAAI,EAI3E,YAAa,CAAE,KAAM,OAAQ,OAAQC,EAAc,QAAS,YAAa,CAC3E",
5
+ "mappings": ";yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,yBAAAE,IAAA,eAAAC,EAAAH,GAEA,IAAMI,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,EAAe,CAAC,aAAc,UAAU,EAQxCH,EAAsB,CAM1B,KAAM,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQE,EAAO,QAAS,GAAI,EAI3E,YAAa,CAAE,KAAM,OAAQ,OAAQC,EAAc,QAAS,YAAa,CAC3E",
6
6
  "names": ["toolbar_props_exports", "__export", "toolbarRootPropDefs", "__toCommonJS", "sizes", "orientations"]
7
7
  }
@@ -3,12 +3,23 @@ import { Tooltip as TooltipPrimitive } from 'radix-ui';
3
3
  import { tooltipPropDefs } from './tooltip.props.js';
4
4
  import type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';
5
5
  import type { GetPropDefTypes } from '../props/prop-def.js';
6
+ interface TooltipProviderProps extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider> {
7
+ }
8
+ /**
9
+ * Groups the tooltips inside it: the first one waits `delayDuration` (200ms), and the next ones
10
+ * open at once while the pointer moves between them. Put it once near the root of the app.
11
+ * A Tooltip outside one still works, with the same delay, but each one waits on its own.
12
+ */
13
+ declare function TooltipProvider({ delayDuration, children, ...props }: TooltipProviderProps): React.JSX.Element;
14
+ declare namespace TooltipProvider {
15
+ var displayName: string;
16
+ }
6
17
  type TooltipOwnProps = GetPropDefTypes<typeof tooltipPropDefs>;
7
18
  interface TooltipProps extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root>, ComponentPropsWithout<typeof TooltipPrimitive.Content, RemovedProps | 'content'>, TooltipOwnProps {
8
19
  content: React.ReactNode;
9
20
  container?: React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Portal>['container'];
10
21
  }
11
22
  declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLDivElement>>;
12
- export { Tooltip };
13
- export type { TooltipProps };
23
+ export { Tooltip, TooltipProvider };
24
+ export type { TooltipProps, TooltipProviderProps };
14
25
  //# sourceMappingURL=tooltip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAKvD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAG5D,KAAK,eAAe,GAAG,eAAe,CAAC,OAAO,eAAe,CAAC,CAAC;AAC/D,UAAU,YACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,EAClE,qBAAqB,CAAC,OAAO,gBAAgB,CAAC,OAAO,EAAE,YAAY,GAAG,SAAS,CAAC,EAChF,eAAe;IACjB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,SAAS,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,gBAAgB,CA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Y,EAAE,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1,2 +1,3 @@
1
- "use strict";var Ne=Object.create;var V=Object.defineProperty;var we=Object.getOwnPropertyDescriptor;var ke=Object.getOwnPropertyNames;var ze=Object.getPrototypeOf,Ve=Object.prototype.hasOwnProperty;var je=(e,t)=>{for(var o in t)V(e,o,{get:t[o],enumerable:!0})},re=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ke(t))!Ve.call(e,s)&&s!==o&&V(e,s,{get:()=>t[s],enumerable:!(a=we(t,s))||a.enumerable});return e};var g=(e,t,o)=>(o=e!=null?Ne(ze(e)):{},re(t||!e||!e.__esModule?V(o,"default",{value:e,enumerable:!0}):o,e)),Oe=e=>re(V({},"__esModule",{value:!0}),e);var tt={};je(tt,{Tooltip:()=>Se});module.exports=Oe(tt);var P=g(require("react")),be=g(require("classnames")),R=require("radix-ui");var T=g(require("react")),he=require("radix-ui");var ae=g(require("classnames"));var Ae=[],Ge=new Set;function We(e){let t=Object.assign({},...e),o=[],a=[],s=new Set;for(let l in t){let n=t[l],p=n.values??Ae,i={key:l,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:p,valueSet:p.length>0?new Set(p):Ge,enumValueSet:n.type==="enum"?new Set([n.default,...p]):void 0};n.className?(o.push(i),s.add(l)):(i.hasDefault||n.type==="enum")&&a.push(i)}return{styling:o,passthrough:a,stylingKeys:s}}var Ee={children:new WeakMap};function ne(e){let t=Ee;for(let o=0;o<e.length;o++){let a=e[o],s=t.children.get(a);s===void 0&&(s={children:new WeakMap},t.children.set(a,s)),t=s}return t.compiled??(t.compiled=We(e))}var Ie=["initial","xs","sm","md","lg","xl"],H=new Set(Ie);function M(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Be=new Set(["initial","xs","sm","md","lg","xl"]);function C(e){if(typeof e!="object"||e===null)return!1;for(let t in e)if(Be.has(t))return!0;return!1}function j(e,t,o){return t!==void 0?t.has(o):e.includes(o)}function ie({className:e,customProperties:t,...o}){let a=K({allowArbitraryValues:!0,className:e,...o}),s=$e({customProperties:t,...o});return[a,s]}function K({allowArbitraryValues:e,value:t,className:o,propValues:a,propValueSet:s,parseValue:l=n=>n}){if(t){if(typeof t=="string")return j(a,s,t)?se(o,t,l):e?o:void 0;if(C(t)){let n=t,p=[];for(let i in n){if(!M(n,i)||!H.has(i))continue;let r=n[i];if(r!==void 0){if(j(a,s,r)){let f=se(o,r,l),c=i==="initial"?f:`${i}:${f}`;p.push(c)}else if(e){let f=i==="initial"?o:`${i}:${o}`;p.push(f)}}}return p.length>0?p.join(" "):""}if(e)return o}}function se(e,t,o){let a=e?"-":"",s=o(t),l=s?.startsWith("-"),n=l?"-":"",p=l?s?.substring(1):s;return`${n}${e}${a}${p}`}function $e({customProperties:e,value:t,propValues:o,propValueSet:a,parseValue:s=l=>l}){if(!t||typeof t=="string"&&j(o,a,t))return;let l;if(typeof t=="string"){let n=s(t);l={};for(let p of e)l[p]=n;return l}if(C(t)){let n=t;for(let p in n){if(!M(n,p)||!H.has(p))continue;let i=n[p];if(i===void 0||j(o,a,i))continue;let r=s(i);l??(l={});for(let f of e){let c=p==="initial"?f:`${f}-${p}`;l[c]=r}}}return l??{}}function U(...e){let t;for(let o of e)o&&(t===void 0&&(t={}),Object.assign(t,o));return t}function He(e,t){let o=e.initial,a=!1;return t.hasDefault&&o===void 0&&(o=t.default,a=!0),t.enumValueSet!==void 0&&!t.enumValueSet.has(o)&&(o=t.default,a=!0),a?{...e,initial:o}:e}function O(e,...t){let{styling:o,passthrough:a,stylingKeys:s}=ne(t),l={};for(let i in e)s.has(i)||(l[i]=e[i]);for(let i=0;i<a.length;i++){let r=a[i],f=l[r.key];if(f===void 0){r.hasDefault&&(l[r.key]=r.default);continue}r.enumValueSet!==void 0&&!r.enumValueSet.has(f)&&!C(f)&&(l[r.key]=r.default)}let n,p=[];for(let i=0;i<o.length;i++){let r=o[i],f=e[r.key];if(f===void 0&&r.hasDefault&&(f=r.default),r.enumValueSet!==void 0&&!r.enumValueSet.has(f)&&!C(f)&&(f=r.default),!!f){if(C(f)){if(!r.responsive)continue;f=He(f,r)}if(r.type==="enum"){let c=K({allowArbitraryValues:!1,value:f,className:r.className,propValues:r.values,propValueSet:r.valueSet,parseValue:r.parseValue});c&&p.push(c);continue}if(r.type==="string"||r.type==="enum | string"){let[c,y]=ie({className:r.className,customProperties:r.customProperties,propValues:r.type==="string"?[]:r.values,propValueSet:r.type==="string"?void 0:r.valueSet,parseValue:r.parseValue,value:f});y&&(n=U(n,y)),c&&p.push(c);continue}if(r.type==="boolean"){p.push(r.className);continue}}}return l.className=(0,ae.default)(p.length>0?p.join(" "):void 0,e.className),l.style=U(n,e.style),l}var A={asChild:{type:"boolean"}};var L=["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"],pe=["auto","gray","mauve","slate","sage","olive","sand"],le={color:{type:"enum",values:L,default:void 0}};var Me=["loud","medium","quiet"],fe={emphasis:{type:"enum",className:"kui-emphasis",values:Me,default:void 0}};var Ke=["normal","start","end","both"],me={trim:{type:"enum",className:"kui-r-lt",values:Ke,responsive:!0}};var Ue=["left","center","right"],ue={align:{type:"enum",className:"kui-r-ta",values:Ue,responsive:!0}};var Le=["wrap","nowrap","pretty","balance"],ce={wrap:{type:"enum",className:"kui-r-tw",values:Le,responsive:!0}};var de={truncate:{type:"boolean",className:"kui-truncate"}};var qe=["sans","mono","serif"],ye={font:{type:"enum",className:"kui-r-ff",values:qe}};var _e=["regular","medium","semibold"],Pe={weight:{type:"enum",className:"kui-r-weight",values:_e,responsive:!0}};var Ye=["span","div","label","p"],Ze=["1","2","3","4","5","6","7","8","9"],ge={as:{type:"enum",values:Ye,default:"span"},...A,size:{type:"enum",className:"kui-r-size",values:Ze,responsive:!0},...ye,...Pe,...ue,...me,...de,...ce,...le,...fe};var q=T.memo(T.forwardRef((e,t)=>{let{children:o,className:a,asChild:s,as:l="span",color:n,...p}=O(e,ge),i=a?`kui-Text ${a}`:"kui-Text";return s?T.createElement(he.Slot.Root,{"data-accent-color":n,...p,ref:t,className:i},o):T.createElement(l,{"data-accent-color":n,...p,ref:t,className:i},o)}));q.displayName="Text";var m=g(require("react")),ve=g(require("classnames")),D=require("radix-ui"),G=require("radix-ui/internal");function Ce(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 _=g(require("react")),Je="2",Y=_.createContext(Je);Y.displayName="ThemeSizeContext";var Z=g(require("react"));function h(e){let[t,o]=Z.useState(e),[a,s]=Z.useState(e);return Object.is(e,a)||(s(e),o(e)),[t,o]}var Te=["none","small","medium","large","full"];var Qe=["inherit","light","dark"],De=["sans","mono","serif"],Xe=["1","2","3","4"],u={...A,hasBackground:{type:"boolean",default:!0},appearance:{type:"enum",values:Qe,default:"inherit"},accentColor:{type:"enum",values:L,default:"gray"},grayColor:{type:"enum",values:pe,default:"gray"},radius:{type:"enum",values:Te,default:"full"},fontFamily:{type:"enum",values:De,default:"sans"},headingFontFamily:{type:"enum",values:De},size:{type:"enum",values:Xe,default:"2"}};var d=()=>{},Jt={appearance:u.appearance.default,accentColor:u.accentColor.default,grayColor:u.grayColor.default,resolvedGrayColor:u.grayColor.default,radius:u.radius.default,fontFamily:u.fontFamily.default,headingFontFamily:void 0,size:u.size.default,onAppearanceChange:d,onAccentColorChange:d,onGrayColorChange:d,onRadiusChange:d,onFontFamilyChange:d,onHeadingFontFamilyChange:d,onSizeChange:d},J=m.createContext(void 0);var Q=m.forwardRef((e,t)=>{let o=m.useContext(J),a=D.Direction.useDirection();return o===void 0?m.createElement(D.Tooltip.Provider,{delayDuration:200},m.createElement(D.Direction.Provider,{dir:a},m.createElement(Re,{...e,ref:t}))):m.createElement(X,{...e,ref:t})});Q.displayName="Theme";var Re=m.forwardRef((e,t)=>{let{appearance:o=u.appearance.default,accentColor:a=u.accentColor.default,grayColor:s=u.grayColor.default,radius:l=u.radius.default,fontFamily:n=u.fontFamily.default,headingFontFamily:p,size:i=u.size.default,hasBackground:r=u.hasBackground.default,...f}=e,[c,y]=h(o),[v,S]=h(a),[F,N]=h(s),[w,k]=h(l),[z,x]=h(n),[E,b]=h(p),[I,B]=h(i);return m.createElement(X,{...f,ref:t,isRoot:!0,hasBackground:r,appearance:c,accentColor:v,grayColor:F,radius:w,fontFamily:z,headingFontFamily:E,size:I,onAppearanceChange:y,onAccentColorChange:S,onGrayColorChange:N,onRadiusChange:k,onFontFamilyChange:x,onHeadingFontFamilyChange:b,onSizeChange:B})});Re.displayName="ThemeRoot";function et(){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 X=m.forwardRef((e,t)=>{let o=m.useContext(J),{asChild:a,isRoot:s,hasBackground:l,appearance:n=e.appearance??o?.appearance??u.appearance.default,accentColor:p=e.accentColor??o?.accentColor??u.accentColor.default,grayColor:i=e.grayColor??o?.resolvedGrayColor??u.grayColor.default,radius:r=e.radius??o?.radius??u.radius.default,fontFamily:f=e.fontFamily??o?.fontFamily??u.fontFamily.default,headingFontFamily:c=e.headingFontFamily??o?.headingFontFamily,size:y=e.size??o?.size??u.size.default,onAppearanceChange:v=d,onAccentColorChange:S=d,onGrayColorChange:F=d,onRadiusChange:N=d,onFontFamilyChange:w=d,onHeadingFontFamilyChange:k=d,onSizeChange:z=d,...x}=e,E=a?D.Slot.Root:"div",b=i==="auto"?Ce(p):i,I=e.appearance==="light"||e.appearance==="dark",B=l===void 0?s||I:l,ee=m.useRef(null),Fe=(0,G.useComposedRefs)(t,ee),te="data-os"in x;return(0,G.useLayoutEffect)(()=>{if(!s||te)return;let $=ee.current;if(!$)return;let oe=et();if(oe)return $.setAttribute("data-os",oe),()=>$.removeAttribute("data-os")},[s,te]),m.createElement(J.Provider,{value:m.useMemo(()=>({appearance:n,accentColor:p,grayColor:i,resolvedGrayColor:b,radius:r,fontFamily:f,headingFontFamily:c,size:y,onAppearanceChange:v,onAccentColorChange:S,onGrayColorChange:F,onRadiusChange:N,onFontFamilyChange:w,onHeadingFontFamilyChange:k,onSizeChange:z}),[n,p,i,b,r,f,c,y,v,S,F,N,w,k,z])},m.createElement(Y.Provider,{value:y},m.createElement(E,{"data-is-root-theme":s?"true":"false","data-accent-color":p,"data-gray-color":b,"data-has-background":B?"true":"false","data-radius":r,"data-font-family":f,"data-heading-font-family":c,ref:Fe,...x,className:(0,ve.default)("kui-theme",{light:n==="light",dark:n==="dark"},x.className)})))});X.displayName="ThemeImpl";var W={width:{type:"string",className:"kui-r-w",customProperties:["--width"],responsive:!0},minWidth:{type:"string",className:"kui-r-min-w",customProperties:["--min-width"],responsive:!0},maxWidth:{type:"string",className:"kui-r-max-w",customProperties:["--max-width"],responsive:!0}};var xe={content:{type:"ReactNode",required:!0},width:W.width,minWidth:W.minWidth,maxWidth:{...W.maxWidth,default:"360px"}};var Se=P.forwardRef((e,t)=>{let{children:o,className:a,open:s,defaultOpen:l,onOpenChange:n,delayDuration:p,disableHoverableContent:i,content:r,container:f,forceMount:c,...y}=O(e,xe),v={open:s,defaultOpen:l,onOpenChange:n,delayDuration:p,disableHoverableContent:i};return P.createElement(R.Tooltip.Root,{...v},P.createElement(R.Tooltip.Trigger,{asChild:!0},o),P.createElement(R.Tooltip.Portal,{container:f,forceMount:c},P.createElement(Q,{asChild:!0},P.createElement(R.Tooltip.Content,{sideOffset:4,collisionPadding:10,...y,asChild:!1,ref:t,className:(0,be.default)("kui-TooltipContent",a)},P.createElement(q,{as:"p",className:"kui-TooltipText",size:"1"},r),P.createElement(R.Tooltip.Arrow,{className:"kui-TooltipArrow"})))))});Se.displayName="Tooltip";
1
+ "use client";
2
+ "use strict";var be=Object.create;var V=Object.defineProperty;var Se=Object.getOwnPropertyDescriptor;var Fe=Object.getOwnPropertyNames;var Ne=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty;var we=(e,o)=>{for(var t in o)V(e,t,{get:o[t],enumerable:!0})},Q=(e,o,t,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of Fe(o))!ke.call(e,s)&&s!==t&&V(e,s,{get:()=>o[s],enumerable:!(a=Se(o,s))||a.enumerable});return e};var g=(e,o,t)=>(t=e!=null?be(Ne(e)):{},Q(o||!e||!e.__esModule?V(t,"default",{value:e,enumerable:!0}):t,e)),ze=e=>Q(V({},"__esModule",{value:!0}),e);var Je={};we(Je,{Tooltip:()=>xe,TooltipProvider:()=>Re});module.exports=ze(Je);var d=g(require("react")),Te=g(require("classnames")),C=require("radix-ui");var v=g(require("react")),ue=require("radix-ui");var te=g(require("classnames"));var Ve=[],je=new Set;function Oe(e){let o=Object.assign({},...e),t=[],a=[],s=new Set;for(let l in o){let n=o[l],p=n.values??Ve,i={key:l,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:p,valueSet:p.length>0?new Set(p):je,enumValueSet:n.type==="enum"?new Set([n.default,...p]):void 0};n.className?(t.push(i),s.add(l)):(i.hasDefault||n.type==="enum")&&a.push(i)}return{styling:t,passthrough:a,stylingKeys:s}}var Ae={children:new WeakMap};function X(e){let o=Ae;for(let t=0;t<e.length;t++){let a=e[t],s=o.children.get(a);s===void 0&&(s={children:new WeakMap},o.children.set(a,s)),o=s}return o.compiled??(o.compiled=Oe(e))}var Ge=["initial","xs","sm","md","lg","xl"],B=new Set(Ge);function H(e,o){return Object.prototype.hasOwnProperty.call(e,o)}var We=new Set(["initial","xs","sm","md","lg","xl"]);function D(e){if(typeof e!="object"||e===null)return!1;for(let o in e)if(We.has(o))return!0;return!1}function j(e,o,t){return o!==void 0?o.has(t):e.includes(t)}function oe({className:e,customProperties:o,...t}){let a=$({allowArbitraryValues:!0,className:e,...t}),s=Ee({customProperties:o,...t});return[a,s]}function $({allowArbitraryValues:e,value:o,className:t,propValues:a,propValueSet:s,parseValue:l=n=>n}){if(o){if(typeof o=="string")return j(a,s,o)?ee(t,o,l):e?t:void 0;if(D(o)){let n=o,p=[];for(let i in n){if(!H(n,i)||!B.has(i))continue;let r=n[i];if(r!==void 0){if(j(a,s,r)){let f=ee(t,r,l),u=i==="initial"?f:`${i}:${f}`;p.push(u)}else if(e){let f=i==="initial"?t:`${i}:${t}`;p.push(f)}}}return p.length>0?p.join(" "):""}if(e)return t}}function ee(e,o,t){let a=e?"-":"",s=t(o),l=s?.startsWith("-"),n=l?"-":"",p=l?s?.substring(1):s;return`${n}${e}${a}${p}`}function Ee({customProperties:e,value:o,propValues:t,propValueSet:a,parseValue:s=l=>l}){if(!o||typeof o=="string"&&j(t,a,o))return;let l;if(typeof o=="string"){let n=s(o);l={};for(let p of e)l[p]=n;return l}if(D(o)){let n=o;for(let p in n){if(!H(n,p)||!B.has(p))continue;let i=n[p];if(i===void 0||j(t,a,i))continue;let r=s(i);l??(l={});for(let f of e){let u=p==="initial"?f:`${f}-${p}`;l[u]=r}}}return l??{}}function M(...e){let o;for(let t of e)t&&(o===void 0&&(o={}),Object.assign(o,t));return o}function Ie(e,o){let t=e.initial,a=!1;return o.hasDefault&&t===void 0&&(t=o.default,a=!0),o.enumValueSet!==void 0&&!o.enumValueSet.has(t)&&(t=o.default,a=!0),a?{...e,initial:t}:e}function O(e,...o){let{styling:t,passthrough:a,stylingKeys:s}=X(o),l={};for(let i in e)s.has(i)||(l[i]=e[i]);for(let i=0;i<a.length;i++){let r=a[i],f=l[r.key];if(f===void 0){r.hasDefault&&(l[r.key]=r.default);continue}r.enumValueSet!==void 0&&!r.enumValueSet.has(f)&&!D(f)&&(l[r.key]=r.default)}let n,p=[];for(let i=0;i<t.length;i++){let r=t[i],f=e[r.key];if(f===void 0&&r.hasDefault&&(f=r.default),r.enumValueSet!==void 0&&!r.enumValueSet.has(f)&&!D(f)&&(f=r.default),!!f){if(D(f)){if(!r.responsive)continue;f=Ie(f,r)}if(r.type==="enum"){let u=$({allowArbitraryValues:!1,value:f,className:r.className,propValues:r.values,propValueSet:r.valueSet,parseValue:r.parseValue});u&&p.push(u);continue}if(r.type==="string"||r.type==="enum | string"){let[u,P]=oe({className:r.className,customProperties:r.customProperties,propValues:r.type==="string"?[]:r.values,propValueSet:r.type==="string"?void 0:r.valueSet,parseValue:r.parseValue,value:f});P&&(n=M(n,P)),u&&p.push(u);continue}if(r.type==="boolean"){p.push(r.className);continue}}}return l.className=(0,te.default)(p.length>0?p.join(" "):void 0,e.className),l.style=M(n,e.style),l}var A={asChild:{type:"boolean"}};var K=["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"],re=["auto","gray","mauve","slate","sage","olive","sand"],ne={color:{type:"enum",values:K,default:void 0}};var Be=["loud","medium","quiet"],se={emphasis:{type:"enum",className:"kui-emphasis",values:Be,default:void 0}};var He=["normal","start","end","both"],ie={trim:{type:"enum",className:"kui-r-lt",values:He,responsive:!0}};var $e=["left","center","right"],ae={align:{type:"enum",className:"kui-r-ta",values:$e,responsive:!0}};var Me=["wrap","nowrap","pretty","balance"],pe={wrap:{type:"enum",className:"kui-r-tw",values:Me,responsive:!0}};var le={truncate:{type:"boolean",className:"kui-truncate"}};var Ke=["sans","mono","serif"],fe={font:{type:"enum",className:"kui-r-ff",values:Ke}};var Ue=["regular","medium","semibold"],me={weight:{type:"enum",className:"kui-r-weight",values:Ue,responsive:!0}};var Le=["span","div","label","p"],qe=["1","2","3","4","5","6","7","8","9"],ce={as:{type:"enum",values:Le,default:"span"},...A,size:{type:"enum",className:"kui-r-size",values:qe,responsive:!0},...fe,...me,...ae,...ie,...le,...pe,...ne,...se};var U=v.memo(v.forwardRef((e,o)=>{let{children:t,className:a,asChild:s,as:l="span",color:n,...p}=O(e,ce),i=a?`kui-Text ${a}`:"kui-Text";return s?v.createElement(ue.Slot.Root,{"data-accent-color":n,...p,ref:o,className:i},t):v.createElement(l,{"data-accent-color":n,...p,ref:o,className:i},t)}));U.displayName="Text";var c=g(require("react")),ge=g(require("classnames")),S=require("radix-ui");function de(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 L=g(require("react")),_e="2",q=L.createContext(_e);q.displayName="ThemeSizeContext";var _=g(require("react"));function h(e){let[o,t]=_.useState(e),[a,s]=_.useState(e);return Object.is(e,a)||(s(e),t(e)),[o,t]}var ye=["none","small","medium","large","full"];var Ye=["inherit","light","dark"],Pe=["sans","mono","serif"],Ze=["1","2","3","4"],m={...A,hasBackground:{type:"boolean",default:!0},appearance:{type:"enum",values:Ye,default:"inherit"},accentColor:{type:"enum",values:K,default:"gray"},grayColor:{type:"enum",values:re,default:"gray"},radius:{type:"enum",values:ye,default:"full"},fontFamily:{type:"enum",values:Pe,default:"sans"},headingFontFamily:{type:"enum",values:Pe},size:{type:"enum",values:Ze,default:"2"}};var y=()=>{},_o={appearance:m.appearance.default,accentColor:m.accentColor.default,grayColor:m.grayColor.default,resolvedGrayColor:m.grayColor.default,radius:m.radius.default,fontFamily:m.fontFamily.default,headingFontFamily:void 0,size:m.size.default,onAppearanceChange:y,onAccentColorChange:y,onGrayColorChange:y,onRadiusChange:y,onFontFamilyChange:y,onHeadingFontFamilyChange:y,onSizeChange:y},Y=c.createContext(void 0);var Z=c.forwardRef((e,o)=>{let t=c.useContext(Y),a=S.Direction.useDirection();return t===void 0?c.createElement(S.Direction.Provider,{dir:a},c.createElement(he,{...e,ref:o})):c.createElement(J,{...e,ref:o})});Z.displayName="Theme";var he=c.forwardRef((e,o)=>{let{appearance:t=m.appearance.default,accentColor:a=m.accentColor.default,grayColor:s=m.grayColor.default,radius:l=m.radius.default,fontFamily:n=m.fontFamily.default,headingFontFamily:p,size:i=m.size.default,hasBackground:r=m.hasBackground.default,...f}=e,[u,P]=h(t),[R,x]=h(a),[T,F]=h(s),[N,k]=h(l),[w,z]=h(n),[W,b]=h(p),[E,I]=h(i);return c.createElement(J,{...f,ref:o,isRoot:!0,hasBackground:r,appearance:u,accentColor:R,grayColor:T,radius:N,fontFamily:w,headingFontFamily:W,size:E,onAppearanceChange:P,onAccentColorChange:x,onGrayColorChange:F,onRadiusChange:k,onFontFamilyChange:z,onHeadingFontFamilyChange:b,onSizeChange:I})});he.displayName="ThemeRoot";var J=c.forwardRef((e,o)=>{let t=c.useContext(Y),{asChild:a,isRoot:s,hasBackground:l,appearance:n=e.appearance??t?.appearance??m.appearance.default,accentColor:p=e.accentColor??t?.accentColor??m.accentColor.default,grayColor:i=e.grayColor??t?.resolvedGrayColor??m.grayColor.default,radius:r=e.radius??t?.radius??m.radius.default,fontFamily:f=e.fontFamily??t?.fontFamily??m.fontFamily.default,headingFontFamily:u=e.headingFontFamily??t?.headingFontFamily,size:P=e.size??t?.size??m.size.default,onAppearanceChange:R=t?.onAppearanceChange??y,onAccentColorChange:x=t?.onAccentColorChange??y,onGrayColorChange:T=t?.onGrayColorChange??y,onRadiusChange:F=t?.onRadiusChange??y,onFontFamilyChange:N=t?.onFontFamilyChange??y,onHeadingFontFamilyChange:k=t?.onHeadingFontFamilyChange??y,onSizeChange:w=t?.onSizeChange??y,...z}=e,W=a?S.Slot.Root:"div",b=i==="auto"?de(p):i,E=e.appearance==="light"||e.appearance==="dark",I=l===void 0?s||E:l;return c.createElement(Y.Provider,{value:c.useMemo(()=>({appearance:n,accentColor:p,grayColor:i,resolvedGrayColor:b,radius:r,fontFamily:f,headingFontFamily:u,size:P,onAppearanceChange:R,onAccentColorChange:x,onGrayColorChange:T,onRadiusChange:F,onFontFamilyChange:N,onHeadingFontFamilyChange:k,onSizeChange:w}),[n,p,i,b,r,f,u,P,R,x,T,F,N,k,w])},c.createElement(q.Provider,{value:P},c.createElement(W,{"data-is-root-theme":s?"true":"false","data-accent-color":p,"data-gray-color":b,"data-has-background":I?"true":"false","data-radius":r,"data-font-family":f,"data-heading-font-family":u,ref:o,...z,className:(0,ge.default)("kui-theme",{light:n==="light",dark:n==="dark"},z.className)})))});J.displayName="ThemeImpl";var G={width:{type:"string",className:"kui-r-w",customProperties:["--width"],responsive:!0},minWidth:{type:"string",className:"kui-r-min-w",customProperties:["--min-width"],responsive:!0},maxWidth:{type:"string",className:"kui-r-max-w",customProperties:["--max-width"],responsive:!0}};var Ce={content:{type:"ReactNode",required:!0},width:G.width,minWidth:G.minWidth,maxWidth:{...G.maxWidth,default:"360px"}};var De=200,ve=d.createContext(!1);function Re({delayDuration:e=De,children:o,...t}){return d.createElement(ve.Provider,{value:!0},d.createElement(C.Tooltip.Provider,{delayDuration:e,...t},o))}Re.displayName="TooltipProvider";var xe=d.forwardRef((e,o)=>{let{children:t,className:a,open:s,defaultOpen:l,onOpenChange:n,delayDuration:p,disableHoverableContent:i,content:r,container:f,forceMount:u,...P}=O(e,Ce),R={open:s,defaultOpen:l,onOpenChange:n,delayDuration:p,disableHoverableContent:i},x=d.useContext(ve),T=d.createElement(C.Tooltip.Root,{...R},d.createElement(C.Tooltip.Trigger,{asChild:!0},t),d.createElement(C.Tooltip.Portal,{container:f,forceMount:u},d.createElement(Z,{asChild:!0},d.createElement(C.Tooltip.Content,{sideOffset:4,collisionPadding:10,...P,asChild:!1,ref:o,className:(0,Te.default)("kui-TooltipContent",a)},d.createElement(U,{as:"p",className:"kui-TooltipText",size:"1"},r),d.createElement(C.Tooltip.Arrow,{className:"kui-TooltipArrow"})))));return x?T:d.createElement(C.Tooltip.Provider,{delayDuration:De},T)});xe.displayName="Tooltip";
2
3
  //# sourceMappingURL=tooltip.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/tooltip.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/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/theme.tsx", "../../../src/helpers/get-matching-gray-color.ts", "../../../src/helpers/theme-size.ts", "../../../src/hooks/use-prop-synced-state.ts", "../../../src/props/radius.prop.ts", "../../../src/components/theme.props.tsx", "../../../src/props/width.props.ts", "../../../src/components/tooltip.props.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nimport classNames from 'classnames';\nimport { Tooltip as TooltipPrimitive } from 'radix-ui';\n\nimport { Text } from './text.js';\nimport { Theme } from './theme.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { tooltipPropDefs } from './tooltip.props.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype TooltipElement = React.ElementRef<typeof TooltipPrimitive.Content>;\ntype TooltipOwnProps = GetPropDefTypes<typeof tooltipPropDefs>;\ninterface TooltipProps\n extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root>,\n ComponentPropsWithout<typeof TooltipPrimitive.Content, RemovedProps | 'content'>,\n TooltipOwnProps {\n content: React.ReactNode;\n container?: React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Portal>['container'];\n}\nconst Tooltip = React.forwardRef<TooltipElement, TooltipProps>((props, forwardedRef) => {\n const {\n children,\n className,\n open,\n defaultOpen,\n onOpenChange,\n delayDuration,\n disableHoverableContent,\n content,\n container,\n forceMount,\n ...tooltipContentProps\n } = extractProps(props, tooltipPropDefs);\n const rootProps = { open, defaultOpen, onOpenChange, delayDuration, disableHoverableContent };\n return (\n <TooltipPrimitive.Root {...rootProps}>\n <TooltipPrimitive.Trigger asChild>{children}</TooltipPrimitive.Trigger>\n <TooltipPrimitive.Portal container={container} forceMount={forceMount}>\n <Theme asChild>\n <TooltipPrimitive.Content\n sideOffset={4}\n collisionPadding={10}\n {...tooltipContentProps}\n asChild={false}\n ref={forwardedRef}\n className={classNames('kui-TooltipContent', className)}\n >\n <Text as=\"p\" className=\"kui-TooltipText\" size=\"1\">\n {content}\n </Text>\n <TooltipPrimitive.Arrow className=\"kui-TooltipArrow\" />\n </TooltipPrimitive.Content>\n </Theme>\n </TooltipPrimitive.Portal>\n </TooltipPrimitive.Root>\n );\n});\nTooltip.displayName = 'Tooltip';\n\nexport { Tooltip };\nexport type { TooltipProps };\n", "import * as React from 'react';\nimport { Slot } from 'radix-ui';\n\nimport { extractProps } from '../helpers/extract-props.js';\nimport { textPropDefs } from './text.props.js';\n\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 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\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, textPropDefs);\n\n const combinedClassName = className ? `kui-Text ${className}` : 'kui-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 } 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 (Chip, 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).\n// No colour + emphasis reads the gray ink ladder; colour + emphasis reads the accent ink ladder.\n// Components that need a different default spread this def and override `default`.\nconst emphasisPropDef = {\n emphasis: {\n type: 'enum',\n className: 'kui-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: 'kui-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: 'kui-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: 'kui-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: 'kui-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: 'kui-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\n/** v2's three weights (\u00A715). No bold: a larger size or stronger emphasis says importance. */\nconst weights = ['regular', 'medium', 'semibold'] as const;\n\nconst weightPropDef = {\n weight: {\n type: 'enum',\n className: 'kui-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 = ['1', '2', '3', '4', '5', '6', '7', '8', '9'] as const;\n\nconst textPropDefs = {\n as: { type: 'enum', values: as, default: 'span' },\n ...asChildPropDef,\n size: {\n type: 'enum',\n className: 'kui-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", "'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { Direction, Slot, Tooltip as TooltipPrimitive } from 'radix-ui';\nimport { useComposedRefs, useLayoutEffect } from 'radix-ui/internal';\n\nimport { getMatchingGrayColor } from '../helpers/get-matching-gray-color.js';\nimport { ThemeSizeContext } from '../helpers/theme-size.js';\nimport { usePropSyncedState } from '../hooks/use-prop-synced-state.js';\nimport { themePropDefs } from './theme.props.js';\n\nimport type { ThemeOwnProps } from './theme.props.js';\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\n\nconst noop = () => {};\n\ntype ThemeAppearance = (typeof themePropDefs.appearance.values)[number];\ntype ThemeAccentColor = (typeof themePropDefs.accentColor.values)[number];\ntype ThemeGrayColor = (typeof themePropDefs.grayColor.values)[number];\ntype ThemeRadius = (typeof themePropDefs.radius.values)[number];\ntype ThemeFontFamily = (typeof themePropDefs.fontFamily.values)[number];\ntype ThemeSize = (typeof themePropDefs.size.values)[number];\n// Headings follow the body font until something sets this, so `undefined` is a\n// meaningful value here rather than a missing one.\ntype ThemeHeadingFontFamily = ThemeFontFamily | undefined;\n\ninterface ThemeChangeHandlers {\n onAppearanceChange: (appearance: ThemeAppearance) => void;\n onAccentColorChange: (accentColor: ThemeAccentColor) => void;\n onGrayColorChange: (grayColor: ThemeGrayColor) => void;\n onRadiusChange: (radius: ThemeRadius) => void;\n onFontFamilyChange: (fontFamily: ThemeFontFamily) => void;\n onHeadingFontFamilyChange: (headingFontFamily: ThemeHeadingFontFamily) => void;\n onSizeChange: (size: ThemeSize) => void;\n}\n\ninterface ThemeContextValue extends ThemeChangeHandlers {\n appearance: ThemeAppearance;\n accentColor: ThemeAccentColor;\n grayColor: ThemeGrayColor;\n resolvedGrayColor: ThemeGrayColor;\n radius: ThemeRadius;\n fontFamily: ThemeFontFamily;\n headingFontFamily: ThemeHeadingFontFamily;\n size: ThemeSize;\n}\n// Default theme values used when components render outside a Theme provider\nconst defaultThemeContext: ThemeContextValue = {\n appearance: themePropDefs.appearance.default,\n accentColor: themePropDefs.accentColor.default,\n grayColor: themePropDefs.grayColor.default,\n resolvedGrayColor: themePropDefs.grayColor.default,\n radius: themePropDefs.radius.default,\n fontFamily: themePropDefs.fontFamily.default,\n headingFontFamily: undefined,\n size: themePropDefs.size.default,\n onAppearanceChange: noop,\n onAccentColorChange: noop,\n onGrayColorChange: noop,\n onRadiusChange: noop,\n onFontFamilyChange: noop,\n onHeadingFontFamilyChange: noop,\n onSizeChange: noop,\n};\n\nconst ThemeContext = React.createContext<ThemeContextValue | undefined>(undefined);\n\nfunction useThemeContext() {\n const context = React.useContext(ThemeContext);\n // Return default context if used outside Theme provider (e.g., during SSR)\n return context ?? defaultThemeContext;\n}\n\ninterface ThemeProps extends ThemeImplPublicProps {}\nconst Theme = React.forwardRef<ThemeImplElement, ThemeProps>((props, forwardedRef) => {\n const context = React.useContext(ThemeContext);\n // Direction is inherited: a Radix DirectionProvider above the Theme (for a right-to-left app)\n // wins, and left-to-right stays the default when there is none.\n const dir = Direction.useDirection();\n const isRoot = context === undefined;\n if (isRoot) {\n return (\n <TooltipPrimitive.Provider delayDuration={200}>\n <Direction.Provider dir={dir}>\n <ThemeRoot {...props} ref={forwardedRef} />\n </Direction.Provider>\n </TooltipPrimitive.Provider>\n );\n }\n return <ThemeImpl {...props} ref={forwardedRef} />;\n});\nTheme.displayName = 'Theme';\n\nconst ThemeRoot = React.forwardRef<ThemeImplElement, ThemeImplPublicProps>((props, forwardedRef) => {\n const {\n appearance: appearanceProp = themePropDefs.appearance.default,\n accentColor: accentColorProp = themePropDefs.accentColor.default,\n grayColor: grayColorProp = themePropDefs.grayColor.default,\n radius: radiusProp = themePropDefs.radius.default,\n fontFamily: fontFamilyProp = themePropDefs.fontFamily.default,\n headingFontFamily: headingFontFamilyProp,\n size: sizeProp = themePropDefs.size.default,\n hasBackground = themePropDefs.hasBackground.default,\n ...rootProps\n } = props;\n\n // Each of these follows its prop but stays independently settable, so\n // the context setters can change the theme at runtime. Syncing during render\n // rather than in an effect matters here: an effect would commit the old\n // theme first and re-render every consumer of the context a second time.\n const [appearance, setAppearance] = usePropSyncedState(appearanceProp);\n const [accentColor, setAccentColor] = usePropSyncedState(accentColorProp);\n const [grayColor, setGrayColor] = usePropSyncedState(grayColorProp);\n const [radius, setRadius] = usePropSyncedState(radiusProp);\n const [fontFamily, setFontFamily] = usePropSyncedState(fontFamilyProp);\n const [headingFontFamily, setHeadingFontFamily] = usePropSyncedState(headingFontFamilyProp);\n const [size, setSize] = usePropSyncedState(sizeProp);\n\n return (\n <ThemeImpl\n {...rootProps}\n ref={forwardedRef}\n isRoot\n hasBackground={hasBackground}\n //\n appearance={appearance}\n accentColor={accentColor}\n grayColor={grayColor}\n radius={radius}\n fontFamily={fontFamily}\n headingFontFamily={headingFontFamily}\n size={size}\n //\n onAppearanceChange={setAppearance}\n onAccentColorChange={setAccentColor}\n onGrayColorChange={setGrayColor}\n onRadiusChange={setRadius}\n onFontFamilyChange={setFontFamily}\n onHeadingFontFamilyChange={setHeadingFontFamily}\n onSizeChange={setSize}\n />\n );\n});\nThemeRoot.displayName = 'ThemeRoot';\n\ntype ThemeImplElement = React.ElementRef<'div'>;\ninterface ThemeImplProps extends ThemeImplPublicProps, ThemeImplPrivateProps {}\ninterface ThemeImplPublicProps extends ComponentPropsWithout<'div', RemovedProps | 'dir'>, ThemeOwnProps {}\ninterface ThemeImplPrivateProps extends Partial<ThemeChangeHandlers> {\n isRoot?: boolean;\n}\nfunction getClientOS(): 'windows' | 'macos' | 'linux' | undefined {\n if (typeof navigator === 'undefined') return undefined;\n const ua = navigator.userAgent;\n if (ua.includes('Win')) return 'windows';\n if (ua.includes('Mac')) return 'macos';\n if (ua.includes('Linux')) return 'linux';\n return undefined;\n}\n\nconst ThemeImpl = React.forwardRef<ThemeImplElement, ThemeImplProps>((props, forwardedRef) => {\n const context = React.useContext(ThemeContext);\n const {\n asChild,\n isRoot,\n hasBackground: hasBackgroundProp,\n //\n appearance = props.appearance ?? context?.appearance ?? themePropDefs.appearance.default,\n accentColor = props.accentColor ?? context?.accentColor ?? themePropDefs.accentColor.default,\n grayColor = props.grayColor ?? context?.resolvedGrayColor ?? themePropDefs.grayColor.default,\n radius = props.radius ?? context?.radius ?? themePropDefs.radius.default,\n fontFamily = props.fontFamily ?? context?.fontFamily ?? themePropDefs.fontFamily.default,\n headingFontFamily = props.headingFontFamily ?? context?.headingFontFamily,\n size = props.size ?? context?.size ?? themePropDefs.size.default,\n //\n onAppearanceChange = noop,\n onAccentColorChange = noop,\n onGrayColorChange = noop,\n onRadiusChange = noop,\n onFontFamilyChange = noop,\n onHeadingFontFamilyChange = noop,\n onSizeChange = noop,\n //\n ...themeProps\n } = props;\n const Comp = asChild ? Slot.Root : 'div';\n const resolvedGrayColor = grayColor === 'auto' ? getMatchingGrayColor(accentColor) : grayColor;\n const isExplicitAppearance = props.appearance === 'light' || props.appearance === 'dark';\n const hasBackground = hasBackgroundProp === undefined ? isRoot || isExplicitAppearance : hasBackgroundProp;\n\n // `data-os` can only be resolved on the client. Writing it straight to the\n // DOM keeps it out of the server markup \u2014 so hydration still matches \u2014 without\n // spending a render pass, and a state update here would re-render the whole\n // application on mount.\n const rootRef = React.useRef<ThemeImplElement>(null);\n const composedRef = useComposedRefs(forwardedRef, rootRef);\n const hasExplicitOS = 'data-os' in themeProps;\n\n useLayoutEffect(() => {\n if (!isRoot || hasExplicitOS) return;\n const node = rootRef.current;\n if (!node) return;\n\n const os = getClientOS();\n if (!os) return;\n node.setAttribute('data-os', os);\n return () => node.removeAttribute('data-os');\n }, [isRoot, hasExplicitOS]);\n\n return (\n <ThemeContext.Provider\n value={React.useMemo(\n () => ({\n appearance,\n accentColor,\n grayColor,\n resolvedGrayColor,\n radius,\n fontFamily,\n headingFontFamily,\n size,\n //\n onAppearanceChange,\n onAccentColorChange,\n onGrayColorChange,\n onRadiusChange,\n onFontFamilyChange,\n onHeadingFontFamilyChange,\n onSizeChange,\n }),\n [\n appearance,\n accentColor,\n grayColor,\n resolvedGrayColor,\n radius,\n fontFamily,\n headingFontFamily,\n size,\n //\n onAppearanceChange,\n onAccentColorChange,\n onGrayColorChange,\n onRadiusChange,\n onFontFamilyChange,\n onHeadingFontFamilyChange,\n onSizeChange,\n ],\n )}\n >\n {/* Size travels on its own context as a bare string, so the components\n that read it do not re-render when another theme value changes. */}\n <ThemeSizeContext.Provider value={size}>\n <Comp\n data-is-root-theme={isRoot ? 'true' : 'false'}\n data-accent-color={accentColor}\n data-gray-color={resolvedGrayColor}\n // for nested `Theme` background\n data-has-background={hasBackground ? 'true' : 'false'}\n data-radius={radius}\n data-font-family={fontFamily}\n data-heading-font-family={headingFontFamily}\n ref={composedRef}\n {...themeProps}\n className={classNames(\n 'kui-theme',\n {\n light: appearance === 'light',\n dark: appearance === 'dark',\n },\n themeProps.className,\n )}\n />\n </ThemeSizeContext.Provider>\n </ThemeContext.Provider>\n );\n});\nThemeImpl.displayName = 'ThemeImpl';\n\nexport { Theme, ThemeContext, useThemeContext };\nexport type { ThemeProps, ThemeContextValue };\n", "import type { accentColors } from '../props/color.prop.js';\n\ntype ThemeAccentColor = (typeof accentColors)[number];\n\nexport function getMatchingGrayColor(accentColor: ThemeAccentColor) {\n switch (accentColor) {\n case 'tomato':\n case 'red':\n case 'ruby':\n case 'crimson':\n case 'pink':\n case 'plum':\n case 'purple':\n case 'violet':\n return 'mauve';\n case 'iris':\n case 'indigo':\n case 'blue':\n case 'sky':\n case 'cyan':\n return 'slate';\n case 'teal':\n case 'jade':\n case 'mint':\n case 'green':\n return 'sage';\n case 'grass':\n case 'lime':\n return 'olive';\n case 'yellow':\n case 'amber':\n case 'orange':\n case 'brown':\n case 'gold':\n case 'bronze':\n return 'sand';\n case 'gray':\n return 'gray';\n }\n}\n", "'use client';\n\nimport * as React from 'react';\n\ntype ThemeSize = '1' | '2' | '3' | '4';\n\n/** The rest of the 1-4 index when no Theme states a size. */\nconst THEME_SIZE_DEFAULT: ThemeSize = '2';\n\n/**\n * The app-wide size index, provided by `Theme` beside `ThemeContext`.\n *\n * It is its own context, holding one string, so a component that only needs\n * the size does not re-render when the accent colour or appearance changes.\n */\nconst ThemeSizeContext = React.createContext<ThemeSize>(THEME_SIZE_DEFAULT);\nThemeSizeContext.displayName = 'ThemeSizeContext';\n\ninterface SizePropDef {\n values: readonly string[];\n default?: string;\n}\n\n/**\n * Maps the theme size onto a component's own range: the value itself when the\n * component has it, otherwise the nearest end of the range (`4` on a 1-3 scale\n * is `3`, on a 1-2 scale it is `2`).\n */\nfunction clampSize(size: ThemeSize, values: readonly string[]): string {\n if (values.includes(size)) return size;\n const n = Number(size);\n let nearest = values[0];\n let distance = Infinity;\n for (let i = 0; i < values.length; i++) {\n const d = Math.abs(Number(values[i]) - n);\n if (d < distance) {\n distance = d;\n nearest = values[i];\n }\n }\n return nearest;\n}\n\n/**\n * The size a component on the 1-4 index takes: what the caller said, else the\n * nearest Theme's size, mapped into the component's range.\n */\nfunction useThemeSize<V>(explicit: V | undefined, propDef: SizePropDef): V {\n const themeSize = React.useContext(ThemeSizeContext);\n if (explicit !== undefined) return explicit;\n // The clamped value is one of `propDef.values`, which is what `V` ranges over.\n return clampSize(themeSize, propDef.values) as V;\n}\n\n/**\n * Fills `size` from the nearest Theme when the caller left it unset, so the\n * result can go straight into `extractProps`. An explicit size, responsive\n * object included, wins.\n *\n * Returns the same props object when there is nothing to fill: when a size is\n * set, or when the theme size resolves to the prop def's own default (the\n * common case, a Theme with no size), so `extractProps` applies it as before.\n */\nfunction useThemeSizeProps<P extends { size?: unknown }>(props: P, propDef: SizePropDef): P {\n const themeSize = React.useContext(ThemeSizeContext);\n if (props.size !== undefined) return props;\n const size = clampSize(themeSize, propDef.values);\n if (size === propDef.default) return props;\n return { ...props, size };\n}\n\nexport { ThemeSizeContext, THEME_SIZE_DEFAULT, clampSize, useThemeSize, useThemeSizeProps };\nexport type { ThemeSize };\n", "import * as React from 'react';\n\n/**\n * State that tracks a prop but can also be set imperatively \u2014 the shape `Theme`\n * needs, where a prop sets the value and the context setters can change it at runtime.\n *\n * Adjusts state during render rather than syncing in a `useEffect`. An effect\n * would commit one render carrying the *old* value and schedule a second one,\n * which for a provider means every consumer renders twice and the browser can\n * paint the stale value in between.\n *\n * @see https://react.dev/reference/react/useState#storing-information-from-previous-renders\n */\nexport function usePropSyncedState<T>(propValue: T) {\n const [value, setValue] = React.useState(propValue);\n const [previousPropValue, setPreviousPropValue] = React.useState(propValue);\n\n if (!Object.is(propValue, previousPropValue)) {\n setPreviousPropValue(propValue);\n setValue(propValue);\n }\n\n return [value, setValue] as const;\n}\n", "import type { PropDef } from './prop-def.js';\n\nconst radii = ['none', 'small', 'medium', 'large', 'full'] as const;\n\nconst radiusPropDef = {\n radius: {\n type: 'enum',\n values: radii,\n default: undefined,\n },\n} satisfies {\n radius: PropDef<(typeof radii)[number]>;\n};\n\nexport { radiusPropDef, radii };\n", "import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColors, grayColors } from '../props/color.prop.js';\nimport { radii } from '../props/radius.prop.js';\n\nimport type { GetPropDefTypes, PropDef } from '../props/prop-def.js';\n\nconst appearances = ['inherit', 'light', 'dark'] as const;\nconst fontFamilies = ['sans', 'mono', 'serif'] as const;\nconst sizes = ['1', '2', '3', '4'] as const;\n\nconst themePropDefs = {\n ...asChildPropDef,\n /**\n * Whether to apply background color to the Theme element.\n *\n * Defaults to true for the root Theme and for Theme elements that\n * have an explicit light or dark appearance prop.\n */\n hasBackground: { type: 'boolean', default: true },\n /**\n * Sets the color scheme of the theme, typcially referred to as light and dark mode.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/dark-mode\n */\n appearance: { type: 'enum', values: appearances, default: 'inherit' },\n /**\n * Selects one of the accent color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n accentColor: { type: 'enum', values: accentColors, default: 'gray' },\n /**\n * Selects one of the gray color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n grayColor: { type: 'enum', values: grayColors, default: 'gray' },\n /**\n * Sets the default radius of the components.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n radius: { type: 'enum', values: radii, default: 'full' },\n /**\n * Sets the font family used for body text in the theme.\n *\n * Headings follow this unless `headingFontFamily` (or the `--font-heading`\n * token) says otherwise.\n *\n * @default 'sans'\n */\n fontFamily: { type: 'enum', values: fontFamilies, default: 'sans' },\n /**\n * Sets the font family used for `Heading`, independently of body text.\n *\n * Deliberately has no default: when it is left unset no attribute is\n * emitted and `--font-heading` keeps following `--font-body`, so a\n * `--font-heading` override in your own CSS survives a `fontFamily` switch.\n */\n headingFontFamily: { type: 'enum', values: fontFamilies },\n /**\n * The app-wide size index. Every component on the 1-4 control and surface\n * scale that states no `size` of its own takes this one; an explicit\n * `size` always wins. Nested Themes override it for their subtree.\n *\n * @default '2'\n */\n size: { type: 'enum', values: sizes, default: '2' },\n} satisfies {\n hasBackground: PropDef<boolean>;\n appearance: PropDef<(typeof appearances)[number]>;\n accentColor: PropDef<(typeof accentColors)[number]>;\n grayColor: PropDef<(typeof grayColors)[number]>;\n radius: PropDef<(typeof radii)[number]>;\n fontFamily: PropDef<(typeof fontFamilies)[number]>;\n headingFontFamily: PropDef<(typeof fontFamilies)[number]>;\n size: PropDef<(typeof sizes)[number]>;\n};\n\ntype ThemeOwnProps = GetPropDefTypes<typeof themePropDefs & typeof asChildPropDef>;\n\nexport { themePropDefs };\nexport type { ThemeOwnProps };\n", "import type { GetPropDefTypes, PropDef } from './prop-def.js';\n\nconst widthPropDefs = {\n /**\n * Sets the CSS **width** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * width=\"100px\"\n * width={{ md: '100vw', xl: '1400px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/width\n */\n width: {\n type: 'string',\n className: 'kui-r-w',\n customProperties: ['--width'],\n responsive: true,\n },\n /**\n * Sets the CSS **min-width** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * minWidth=\"100px\"\n * minWidth={{ md: '100vw', xl: '1400px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/min-width\n */\n minWidth: {\n type: 'string',\n className: 'kui-r-min-w',\n customProperties: ['--min-width'],\n responsive: true,\n },\n /**\n * Sets the CSS **max-width** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * maxWidth=\"100px\"\n * maxWidth={{ md: '100vw', xl: '1400px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/max-width\n */\n maxWidth: {\n type: 'string',\n className: 'kui-r-max-w',\n customProperties: ['--max-width'],\n responsive: true,\n },\n} satisfies {\n width: PropDef<string>;\n minWidth: PropDef<string>;\n maxWidth: PropDef<string>;\n};\n\ntype WidthProps = GetPropDefTypes<typeof widthPropDefs>;\n\nexport { widthPropDefs };\nexport type { WidthProps };\n", "import { widthPropDefs } from '../props/width.props.js';\n\nimport type { PropDef, GetPropDefTypes } from '../props/prop-def.js';\n\nconst tooltipPropDefs = {\n content: { type: 'ReactNode', required: true },\n width: widthPropDefs.width,\n minWidth: widthPropDefs.minWidth,\n maxWidth: { ...widthPropDefs.maxWidth, default: '360px' },\n} satisfies {\n width: PropDef<string>;\n minWidth: PropDef<string>;\n maxWidth: PropDef<string>;\n content: PropDef<React.ReactNode>;\n};\n\ntype TooltipOwnProps = GetPropDefTypes<typeof tooltipPropDefs & typeof widthPropDefs>;\n\nexport { tooltipPropDefs };\nexport type { TooltipOwnProps };\n"],
5
- "mappings": "ykBAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,aAAAE,KAAA,eAAAC,GAAAH,IAAA,IAAAI,EAAuB,oBACvBC,GAAuB,yBACvBC,EAA4C,oBCF5C,IAAAC,EAAuB,oBACvBC,GAAqB,oBCDrB,IAAAC,GAAuB,yBC0CvB,IAAMC,GAAkC,CAAC,EACnCC,GAAiC,IAAI,IAE3C,SAASC,GAAQC,EAAgE,CAC/E,IAAMC,EAAkC,OAAO,OAAO,CAAC,EAAG,GAAGD,CAAQ,EAC/DE,EAA6B,CAAC,EAC9BC,EAAiC,CAAC,EAClCC,EAAc,IAAI,IAExB,QAAWC,KAAOJ,EAAQ,CAGxB,IAAMK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,kBAAkB,KAAK,KAC3CV,CACH,EACA,gBAAC,EAAAO,QAAiB,MAAjB,CAAuB,UAAU,mBAAmB,CACvD,CACF,CACF,CACF,CAEJ,CAAC,EACDjB,GAAQ,YAAc",
6
- "names": ["tooltip_exports", "__export", "Tooltip", "__toCommonJS", "React", "import_classnames", "import_radix_ui", "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", "isResponsiveObject", "style", "classes", "propClassName", "getResponsiveClassNames", "propClassNames", "propCustomProperties", "getResponsiveStyles", "mergeStyles", "classNames", "asChildPropDef", "accentColors", "grayColors", "colorPropDef", "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", "Text", "props", "forwardedRef", "children", "className", "asChild", "Tag", "color", "textProps", "extractProps", "textPropDefs", "combinedClassName", "React", "import_classnames", "import_radix_ui", "import_internal", "getMatchingGrayColor", "accentColor", "React", "THEME_SIZE_DEFAULT", "ThemeSizeContext", "React", "usePropSyncedState", "propValue", "value", "setValue", "previousPropValue", "setPreviousPropValue", "radii", "appearances", "fontFamilies", "sizes", "themePropDefs", "asChildPropDef", "accentColors", "grayColors", "radii", "noop", "defaultThemeContext", "themePropDefs", "ThemeContext", "Theme", "props", "forwardedRef", "context", "ThemeContext", "dir", "TooltipPrimitive", "ThemeRoot", "ThemeImpl", "appearanceProp", "themePropDefs", "accentColorProp", "grayColorProp", "radiusProp", "fontFamilyProp", "headingFontFamilyProp", "sizeProp", "hasBackground", "rootProps", "appearance", "setAppearance", "usePropSyncedState", "accentColor", "setAccentColor", "grayColor", "setGrayColor", "radius", "setRadius", "fontFamily", "setFontFamily", "headingFontFamily", "setHeadingFontFamily", "size", "setSize", "getClientOS", "ua", "asChild", "isRoot", "hasBackgroundProp", "onAppearanceChange", "noop", "onAccentColorChange", "onGrayColorChange", "onRadiusChange", "onFontFamilyChange", "onHeadingFontFamilyChange", "onSizeChange", "themeProps", "Comp", "resolvedGrayColor", "getMatchingGrayColor", "isExplicitAppearance", "rootRef", "composedRef", "hasExplicitOS", "node", "os", "ThemeSizeContext", "classNames", "widthPropDefs", "tooltipPropDefs", "widthPropDefs", "Tooltip", "props", "forwardedRef", "children", "className", "open", "defaultOpen", "onOpenChange", "delayDuration", "disableHoverableContent", "content", "container", "forceMount", "tooltipContentProps", "extractProps", "tooltipPropDefs", "rootProps", "TooltipPrimitive", "Theme", "classNames", "Text"]
4
+ "sourcesContent": ["import * as React from 'react';\nimport classNames from 'classnames';\nimport { Tooltip as TooltipPrimitive } from 'radix-ui';\n\nimport { Text } from './text.js';\nimport { Theme } from './theme.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { tooltipPropDefs } from './tooltip.props.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\n/** The rest before a tooltip opens, in milliseconds. */\nconst TOOLTIP_DELAY = 200;\n\n/** True inside a `TooltipProvider`, so a Tooltip knows it need not bring its own. */\nconst TooltipProviderContext = React.createContext(false);\n\ninterface TooltipProviderProps extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider> {}\n\n/**\n * Groups the tooltips inside it: the first one waits `delayDuration` (200ms), and the next ones\n * open at once while the pointer moves between them. Put it once near the root of the app.\n * A Tooltip outside one still works, with the same delay, but each one waits on its own.\n */\nfunction TooltipProvider({ delayDuration = TOOLTIP_DELAY, children, ...props }: TooltipProviderProps) {\n return (\n <TooltipProviderContext.Provider value={true}>\n <TooltipPrimitive.Provider delayDuration={delayDuration} {...props}>\n {children}\n </TooltipPrimitive.Provider>\n </TooltipProviderContext.Provider>\n );\n}\nTooltipProvider.displayName = 'TooltipProvider';\n\ntype TooltipElement = React.ElementRef<typeof TooltipPrimitive.Content>;\ntype TooltipOwnProps = GetPropDefTypes<typeof tooltipPropDefs>;\ninterface TooltipProps\n extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root>,\n ComponentPropsWithout<typeof TooltipPrimitive.Content, RemovedProps | 'content'>,\n TooltipOwnProps {\n content: React.ReactNode;\n container?: React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Portal>['container'];\n}\nconst Tooltip = React.forwardRef<TooltipElement, TooltipProps>((props, forwardedRef) => {\n const {\n children,\n className,\n open,\n defaultOpen,\n onOpenChange,\n delayDuration,\n disableHoverableContent,\n content,\n container,\n forceMount,\n ...tooltipContentProps\n } = extractProps(props, tooltipPropDefs);\n const rootProps = { open, defaultOpen, onOpenChange, delayDuration, disableHoverableContent };\n const hasProvider = React.useContext(TooltipProviderContext);\n const tooltip = (\n <TooltipPrimitive.Root {...rootProps}>\n <TooltipPrimitive.Trigger asChild>{children}</TooltipPrimitive.Trigger>\n <TooltipPrimitive.Portal container={container} forceMount={forceMount}>\n <Theme asChild>\n <TooltipPrimitive.Content\n sideOffset={4}\n collisionPadding={10}\n {...tooltipContentProps}\n asChild={false}\n ref={forwardedRef}\n className={classNames('kui-TooltipContent', className)}\n >\n <Text as=\"p\" className=\"kui-TooltipText\" size=\"1\">\n {content}\n </Text>\n <TooltipPrimitive.Arrow className=\"kui-TooltipArrow\" />\n </TooltipPrimitive.Content>\n </Theme>\n </TooltipPrimitive.Portal>\n </TooltipPrimitive.Root>\n );\n // Radix needs a provider above every tooltip. Outside a TooltipProvider, bring one.\n return hasProvider ? tooltip : <TooltipPrimitive.Provider delayDuration={TOOLTIP_DELAY}>{tooltip}</TooltipPrimitive.Provider>;\n});\nTooltip.displayName = 'Tooltip';\n\nexport { Tooltip, TooltipProvider };\nexport type { TooltipProps, TooltipProviderProps };\n", "import * as React from 'react';\nimport { Slot } from 'radix-ui';\n\nimport { extractProps } from '../helpers/extract-props.js';\nimport { textPropDefs } from './text.props.js';\n\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 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\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, textPropDefs);\n\n const combinedClassName = className ? `kui-Text ${className}` : 'kui-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 } 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 (Chip, 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).\n// No colour + emphasis reads the gray ink ladder; colour + emphasis reads the accent ink ladder.\n// Components that need a different default spread this def and override `default`.\nconst emphasisPropDef = {\n emphasis: {\n type: 'enum',\n className: 'kui-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: 'kui-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: 'kui-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: 'kui-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: 'kui-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: 'kui-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\n/** v2's three weights (\u00A715). No bold: a larger size or stronger emphasis says importance. */\nconst weights = ['regular', 'medium', 'semibold'] as const;\n\nconst weightPropDef = {\n weight: {\n type: 'enum',\n className: 'kui-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 = ['1', '2', '3', '4', '5', '6', '7', '8', '9'] as const;\n\nconst textPropDefs = {\n as: { type: 'enum', values: as, default: 'span' },\n ...asChildPropDef,\n size: {\n type: 'enum',\n className: 'kui-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", "'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { Direction, Slot } from 'radix-ui';\n\nimport { getMatchingGrayColor } from '../helpers/get-matching-gray-color.js';\nimport { ThemeSizeContext } from '../helpers/theme-size.js';\nimport { usePropSyncedState } from '../hooks/use-prop-synced-state.js';\nimport { themePropDefs } from './theme.props.js';\n\nimport type { ThemeOwnProps } from './theme.props.js';\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\n\nconst noop = () => {};\n\ntype ThemeAppearance = (typeof themePropDefs.appearance.values)[number];\ntype ThemeAccentColor = (typeof themePropDefs.accentColor.values)[number];\ntype ThemeGrayColor = (typeof themePropDefs.grayColor.values)[number];\ntype ThemeRadius = (typeof themePropDefs.radius.values)[number];\ntype ThemeFontFamily = (typeof themePropDefs.fontFamily.values)[number];\ntype ThemeSize = (typeof themePropDefs.size.values)[number];\n// Headings follow the body font until something sets this, so `undefined` is a\n// meaningful value here rather than a missing one.\ntype ThemeHeadingFontFamily = ThemeFontFamily | undefined;\n\ninterface ThemeChangeHandlers {\n onAppearanceChange: (appearance: ThemeAppearance) => void;\n onAccentColorChange: (accentColor: ThemeAccentColor) => void;\n onGrayColorChange: (grayColor: ThemeGrayColor) => void;\n onRadiusChange: (radius: ThemeRadius) => void;\n onFontFamilyChange: (fontFamily: ThemeFontFamily) => void;\n onHeadingFontFamilyChange: (headingFontFamily: ThemeHeadingFontFamily) => void;\n onSizeChange: (size: ThemeSize) => void;\n}\n\ninterface ThemeContextValue extends ThemeChangeHandlers {\n appearance: ThemeAppearance;\n accentColor: ThemeAccentColor;\n grayColor: ThemeGrayColor;\n resolvedGrayColor: ThemeGrayColor;\n radius: ThemeRadius;\n fontFamily: ThemeFontFamily;\n headingFontFamily: ThemeHeadingFontFamily;\n size: ThemeSize;\n}\n// Default theme values used when components render outside a Theme provider\nconst defaultThemeContext: ThemeContextValue = {\n appearance: themePropDefs.appearance.default,\n accentColor: themePropDefs.accentColor.default,\n grayColor: themePropDefs.grayColor.default,\n resolvedGrayColor: themePropDefs.grayColor.default,\n radius: themePropDefs.radius.default,\n fontFamily: themePropDefs.fontFamily.default,\n headingFontFamily: undefined,\n size: themePropDefs.size.default,\n onAppearanceChange: noop,\n onAccentColorChange: noop,\n onGrayColorChange: noop,\n onRadiusChange: noop,\n onFontFamilyChange: noop,\n onHeadingFontFamilyChange: noop,\n onSizeChange: noop,\n};\n\nconst ThemeContext = React.createContext<ThemeContextValue | undefined>(undefined);\n\nfunction useThemeContext() {\n const context = React.useContext(ThemeContext);\n // Return default context if used outside Theme provider (e.g., during SSR)\n return context ?? defaultThemeContext;\n}\n\ninterface ThemeProps extends ThemeImplPublicProps {}\nconst Theme = React.forwardRef<ThemeImplElement, ThemeProps>((props, forwardedRef) => {\n const context = React.useContext(ThemeContext);\n // Direction is inherited: a Radix DirectionProvider above the Theme (for a right-to-left app)\n // wins, and left-to-right stays the default when there is none.\n const dir = Direction.useDirection();\n const isRoot = context === undefined;\n if (isRoot) {\n return (\n <Direction.Provider dir={dir}>\n <ThemeRoot {...props} ref={forwardedRef} />\n </Direction.Provider>\n );\n }\n return <ThemeImpl {...props} ref={forwardedRef} />;\n});\nTheme.displayName = 'Theme';\n\nconst ThemeRoot = React.forwardRef<ThemeImplElement, ThemeImplPublicProps>((props, forwardedRef) => {\n const {\n appearance: appearanceProp = themePropDefs.appearance.default,\n accentColor: accentColorProp = themePropDefs.accentColor.default,\n grayColor: grayColorProp = themePropDefs.grayColor.default,\n radius: radiusProp = themePropDefs.radius.default,\n fontFamily: fontFamilyProp = themePropDefs.fontFamily.default,\n headingFontFamily: headingFontFamilyProp,\n size: sizeProp = themePropDefs.size.default,\n hasBackground = themePropDefs.hasBackground.default,\n ...rootProps\n } = props;\n\n // Each of these follows its prop but stays independently settable, so\n // the context setters can change the theme at runtime. Syncing during render\n // rather than in an effect matters here: an effect would commit the old\n // theme first and re-render every consumer of the context a second time.\n const [appearance, setAppearance] = usePropSyncedState(appearanceProp);\n const [accentColor, setAccentColor] = usePropSyncedState(accentColorProp);\n const [grayColor, setGrayColor] = usePropSyncedState(grayColorProp);\n const [radius, setRadius] = usePropSyncedState(radiusProp);\n const [fontFamily, setFontFamily] = usePropSyncedState(fontFamilyProp);\n const [headingFontFamily, setHeadingFontFamily] = usePropSyncedState(headingFontFamilyProp);\n const [size, setSize] = usePropSyncedState(sizeProp);\n\n return (\n <ThemeImpl\n {...rootProps}\n ref={forwardedRef}\n isRoot\n hasBackground={hasBackground}\n //\n appearance={appearance}\n accentColor={accentColor}\n grayColor={grayColor}\n radius={radius}\n fontFamily={fontFamily}\n headingFontFamily={headingFontFamily}\n size={size}\n //\n onAppearanceChange={setAppearance}\n onAccentColorChange={setAccentColor}\n onGrayColorChange={setGrayColor}\n onRadiusChange={setRadius}\n onFontFamilyChange={setFontFamily}\n onHeadingFontFamilyChange={setHeadingFontFamily}\n onSizeChange={setSize}\n />\n );\n});\nThemeRoot.displayName = 'ThemeRoot';\n\ntype ThemeImplElement = React.ElementRef<'div'>;\ninterface ThemeImplProps extends ThemeImplPublicProps, ThemeImplPrivateProps {}\ninterface ThemeImplPublicProps extends ComponentPropsWithout<'div', RemovedProps | 'dir'>, ThemeOwnProps {}\ninterface ThemeImplPrivateProps extends Partial<ThemeChangeHandlers> {\n isRoot?: boolean;\n}\nconst ThemeImpl = React.forwardRef<ThemeImplElement, ThemeImplProps>((props, forwardedRef) => {\n const context = React.useContext(ThemeContext);\n const {\n asChild,\n isRoot,\n hasBackground: hasBackgroundProp,\n //\n appearance = props.appearance ?? context?.appearance ?? themePropDefs.appearance.default,\n accentColor = props.accentColor ?? context?.accentColor ?? themePropDefs.accentColor.default,\n grayColor = props.grayColor ?? context?.resolvedGrayColor ?? themePropDefs.grayColor.default,\n radius = props.radius ?? context?.radius ?? themePropDefs.radius.default,\n fontFamily = props.fontFamily ?? context?.fontFamily ?? themePropDefs.fontFamily.default,\n headingFontFamily = props.headingFontFamily ?? context?.headingFontFamily,\n size = props.size ?? context?.size ?? themePropDefs.size.default,\n // A nested Theme forwards changes to the one above it, so a switcher\n // inside a portal (Dialog, Popover, menus) still reaches the root.\n onAppearanceChange = context?.onAppearanceChange ?? noop,\n onAccentColorChange = context?.onAccentColorChange ?? noop,\n onGrayColorChange = context?.onGrayColorChange ?? noop,\n onRadiusChange = context?.onRadiusChange ?? noop,\n onFontFamilyChange = context?.onFontFamilyChange ?? noop,\n onHeadingFontFamilyChange = context?.onHeadingFontFamilyChange ?? noop,\n onSizeChange = context?.onSizeChange ?? noop,\n //\n ...themeProps\n } = props;\n const Comp = asChild ? Slot.Root : 'div';\n const resolvedGrayColor = grayColor === 'auto' ? getMatchingGrayColor(accentColor) : grayColor;\n const isExplicitAppearance = props.appearance === 'light' || props.appearance === 'dark';\n const hasBackground = hasBackgroundProp === undefined ? isRoot || isExplicitAppearance : hasBackgroundProp;\n\n return (\n <ThemeContext.Provider\n value={React.useMemo(\n () => ({\n appearance,\n accentColor,\n grayColor,\n resolvedGrayColor,\n radius,\n fontFamily,\n headingFontFamily,\n size,\n //\n onAppearanceChange,\n onAccentColorChange,\n onGrayColorChange,\n onRadiusChange,\n onFontFamilyChange,\n onHeadingFontFamilyChange,\n onSizeChange,\n }),\n [\n appearance,\n accentColor,\n grayColor,\n resolvedGrayColor,\n radius,\n fontFamily,\n headingFontFamily,\n size,\n //\n onAppearanceChange,\n onAccentColorChange,\n onGrayColorChange,\n onRadiusChange,\n onFontFamilyChange,\n onHeadingFontFamilyChange,\n onSizeChange,\n ],\n )}\n >\n {/* Size travels on its own context as a bare string, so the components\n that read it do not re-render when another theme value changes. */}\n <ThemeSizeContext.Provider value={size}>\n <Comp\n data-is-root-theme={isRoot ? 'true' : 'false'}\n data-accent-color={accentColor}\n data-gray-color={resolvedGrayColor}\n // for nested `Theme` background\n data-has-background={hasBackground ? 'true' : 'false'}\n data-radius={radius}\n data-font-family={fontFamily}\n data-heading-font-family={headingFontFamily}\n ref={forwardedRef}\n {...themeProps}\n className={classNames(\n 'kui-theme',\n {\n light: appearance === 'light',\n dark: appearance === 'dark',\n },\n themeProps.className,\n )}\n />\n </ThemeSizeContext.Provider>\n </ThemeContext.Provider>\n );\n});\nThemeImpl.displayName = 'ThemeImpl';\n\nexport { Theme, ThemeContext, useThemeContext };\nexport type { ThemeProps, ThemeContextValue };\n", "import type { accentColors } from '../props/color.prop.js';\n\ntype ThemeAccentColor = (typeof accentColors)[number];\n\nexport function getMatchingGrayColor(accentColor: ThemeAccentColor) {\n switch (accentColor) {\n case 'tomato':\n case 'red':\n case 'ruby':\n case 'crimson':\n case 'pink':\n case 'plum':\n case 'purple':\n case 'violet':\n return 'mauve';\n case 'iris':\n case 'indigo':\n case 'blue':\n case 'sky':\n case 'cyan':\n return 'slate';\n case 'teal':\n case 'jade':\n case 'mint':\n case 'green':\n return 'sage';\n case 'grass':\n case 'lime':\n return 'olive';\n case 'yellow':\n case 'amber':\n case 'orange':\n case 'brown':\n case 'gold':\n case 'bronze':\n return 'sand';\n case 'gray':\n return 'gray';\n }\n}\n", "'use client';\n\nimport * as React from 'react';\n\ntype ThemeSize = '1' | '2' | '3' | '4';\n\n/** The rest of the 1-4 index when no Theme states a size. */\nconst THEME_SIZE_DEFAULT: ThemeSize = '2';\n\n/**\n * The app-wide size index, provided by `Theme` beside `ThemeContext`.\n *\n * It is its own context, holding one string, so a component that only needs\n * the size does not re-render when the accent colour or appearance changes.\n */\nconst ThemeSizeContext = React.createContext<ThemeSize>(THEME_SIZE_DEFAULT);\nThemeSizeContext.displayName = 'ThemeSizeContext';\n\ninterface SizePropDef {\n values: readonly string[];\n default?: string;\n}\n\n/**\n * Maps the theme size onto a component's own range: the value itself when the\n * component has it, otherwise the nearest end of the range (`4` on a 1-3 scale\n * is `3`, on a 1-2 scale it is `2`).\n */\nfunction clampSize(size: ThemeSize, values: readonly string[]): string {\n if (values.includes(size)) return size;\n const n = Number(size);\n let nearest = values[0];\n let distance = Infinity;\n for (let i = 0; i < values.length; i++) {\n const d = Math.abs(Number(values[i]) - n);\n if (d < distance) {\n distance = d;\n nearest = values[i];\n }\n }\n return nearest;\n}\n\n/**\n * The size a component on the 1-4 index takes: what the caller said, else the\n * nearest Theme's size, mapped into the component's range.\n */\nfunction useThemeSize<V>(explicit: V | undefined, propDef: SizePropDef): V {\n const themeSize = React.useContext(ThemeSizeContext);\n if (explicit !== undefined) return explicit;\n // The clamped value is one of `propDef.values`, which is what `V` ranges over.\n return clampSize(themeSize, propDef.values) as V;\n}\n\n/**\n * Fills `size` from the nearest Theme when the caller left it unset, so the\n * result can go straight into `extractProps`. An explicit size, responsive\n * object included, wins.\n *\n * Returns the same props object when there is nothing to fill: when a size is\n * set, or when the theme size resolves to the prop def's own default (the\n * common case, a Theme with no size), so `extractProps` applies it as before.\n */\nfunction useThemeSizeProps<P extends { size?: unknown }>(props: P, propDef: SizePropDef): P {\n const themeSize = React.useContext(ThemeSizeContext);\n if (props.size !== undefined) return props;\n const size = clampSize(themeSize, propDef.values);\n if (size === propDef.default) return props;\n return { ...props, size };\n}\n\nexport { ThemeSizeContext, THEME_SIZE_DEFAULT, clampSize, useThemeSize, useThemeSizeProps };\nexport type { ThemeSize };\n", "import * as React from 'react';\n\n/**\n * State that tracks a prop but can also be set imperatively \u2014 the shape `Theme`\n * needs, where a prop sets the value and the context setters can change it at runtime.\n *\n * Adjusts state during render rather than syncing in a `useEffect`. An effect\n * would commit one render carrying the *old* value and schedule a second one,\n * which for a provider means every consumer renders twice and the browser can\n * paint the stale value in between.\n *\n * @see https://react.dev/reference/react/useState#storing-information-from-previous-renders\n */\nexport function usePropSyncedState<T>(propValue: T) {\n const [value, setValue] = React.useState(propValue);\n const [previousPropValue, setPreviousPropValue] = React.useState(propValue);\n\n if (!Object.is(propValue, previousPropValue)) {\n setPreviousPropValue(propValue);\n setValue(propValue);\n }\n\n return [value, setValue] as const;\n}\n", "import type { PropDef } from './prop-def.js';\n\nconst radii = ['none', 'small', 'medium', 'large', 'full'] as const;\n\nconst radiusPropDef = {\n radius: {\n type: 'enum',\n values: radii,\n default: undefined,\n },\n} satisfies {\n radius: PropDef<(typeof radii)[number]>;\n};\n\nexport { radiusPropDef, radii };\n", "import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColors, grayColors } from '../props/color.prop.js';\nimport { radii } from '../props/radius.prop.js';\n\nimport type { GetPropDefTypes, PropDef } from '../props/prop-def.js';\n\nconst appearances = ['inherit', 'light', 'dark'] as const;\nconst fontFamilies = ['sans', 'mono', 'serif'] as const;\nconst sizes = ['1', '2', '3', '4'] as const;\n\nconst themePropDefs = {\n ...asChildPropDef,\n /**\n * Whether to apply background color to the Theme element.\n *\n * Defaults to true for the root Theme and for Theme elements that\n * have an explicit light or dark appearance prop.\n */\n hasBackground: { type: 'boolean', default: true },\n /**\n * Sets the color scheme of the theme, typcially referred to as light and dark mode.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/dark-mode\n */\n appearance: { type: 'enum', values: appearances, default: 'inherit' },\n /**\n * Selects one of the accent color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n accentColor: { type: 'enum', values: accentColors, default: 'gray' },\n /**\n * Selects one of the gray color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n grayColor: { type: 'enum', values: grayColors, default: 'gray' },\n /**\n * Sets the default radius of the components.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n radius: { type: 'enum', values: radii, default: 'full' },\n /**\n * Sets the font family used for body text in the theme.\n *\n * Headings follow this unless `headingFontFamily` (or the `--font-heading`\n * token) says otherwise.\n *\n * @default 'sans'\n */\n fontFamily: { type: 'enum', values: fontFamilies, default: 'sans' },\n /**\n * Sets the font family used for `Heading`, independently of body text.\n *\n * Deliberately has no default: when it is left unset no attribute is\n * emitted and `--font-heading` keeps following `--font-body`, so a\n * `--font-heading` override in your own CSS survives a `fontFamily` switch.\n */\n headingFontFamily: { type: 'enum', values: fontFamilies },\n /**\n * The app-wide size index. Every component on the 1-4 control and surface\n * scale that states no `size` of its own takes this one; an explicit\n * `size` always wins. Nested Themes override it for their subtree.\n *\n * @default '2'\n */\n size: { type: 'enum', values: sizes, default: '2' },\n} satisfies {\n hasBackground: PropDef<boolean>;\n appearance: PropDef<(typeof appearances)[number]>;\n accentColor: PropDef<(typeof accentColors)[number]>;\n grayColor: PropDef<(typeof grayColors)[number]>;\n radius: PropDef<(typeof radii)[number]>;\n fontFamily: PropDef<(typeof fontFamilies)[number]>;\n headingFontFamily: PropDef<(typeof fontFamilies)[number]>;\n size: PropDef<(typeof sizes)[number]>;\n};\n\ntype ThemeOwnProps = GetPropDefTypes<typeof themePropDefs & typeof asChildPropDef>;\n\nexport { themePropDefs };\nexport type { ThemeOwnProps };\n", "import type { GetPropDefTypes, PropDef } from './prop-def.js';\n\nconst widthPropDefs = {\n /**\n * Sets the CSS **width** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * width=\"100px\"\n * width={{ md: '100vw', xl: '1400px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/width\n */\n width: {\n type: 'string',\n className: 'kui-r-w',\n customProperties: ['--width'],\n responsive: true,\n },\n /**\n * Sets the CSS **min-width** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * minWidth=\"100px\"\n * minWidth={{ md: '100vw', xl: '1400px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/min-width\n */\n minWidth: {\n type: 'string',\n className: 'kui-r-min-w',\n customProperties: ['--min-width'],\n responsive: true,\n },\n /**\n * Sets the CSS **max-width** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * maxWidth=\"100px\"\n * maxWidth={{ md: '100vw', xl: '1400px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/max-width\n */\n maxWidth: {\n type: 'string',\n className: 'kui-r-max-w',\n customProperties: ['--max-width'],\n responsive: true,\n },\n} satisfies {\n width: PropDef<string>;\n minWidth: PropDef<string>;\n maxWidth: PropDef<string>;\n};\n\ntype WidthProps = GetPropDefTypes<typeof widthPropDefs>;\n\nexport { widthPropDefs };\nexport type { WidthProps };\n", "import { widthPropDefs } from '../props/width.props.js';\n\nimport type { PropDef, GetPropDefTypes } from '../props/prop-def.js';\n\nconst tooltipPropDefs = {\n content: { type: 'ReactNode', required: true },\n width: widthPropDefs.width,\n minWidth: widthPropDefs.minWidth,\n maxWidth: { ...widthPropDefs.maxWidth, default: '360px' },\n} satisfies {\n width: PropDef<string>;\n minWidth: PropDef<string>;\n maxWidth: PropDef<string>;\n content: PropDef<React.ReactNode>;\n};\n\ntype TooltipOwnProps = GetPropDefTypes<typeof tooltipPropDefs & typeof widthPropDefs>;\n\nexport { tooltipPropDefs };\nexport type { TooltipOwnProps };\n"],
5
+ "mappings": ";skBAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,aAAAE,GAAA,oBAAAC,KAAA,eAAAC,GAAAJ,IAAA,IAAAK,EAAuB,oBACvBC,GAAuB,yBACvBC,EAA4C,oBCF5C,IAAAC,EAAuB,oBACvBC,GAAqB,oBCDrB,IAAAC,GAAuB,yBC0CvB,IAAMC,GAAkC,CAAC,EACnCC,GAAiC,IAAI,IAE3C,SAASC,GAAQC,EAAgE,CAC/E,IAAMC,EAAkC,OAAO,OAAO,CAAC,EAAG,GAAGD,CAAQ,EAC/DE,EAA6B,CAAC,EAC9BC,EAAiC,CAAC,EAClCC,EAAc,IAAI,IAExB,QAAWC,KAAOJ,EAAQ,CAGxB,IAAMK,EAAML,EAAOI,CAAG,EAShBE,EAASD,EAAI,QAAUT,GACvBW,EAA4B,CAChC,IAAAH,EACA,KAAMC,EAAI,KACV,QAASA,EAAI,QACb,WAAYA,EAAI,UAAY,OAC5B,WAAY,eAAgBA,EAC5B,UAAWA,EAAI,UACf,iBAAkBA,EAAI,iBACtB,WAAYA,EAAI,WAChB,OAAAC,EACA,SAAUA,EAAO,OAAS,EAAI,IAAI,IAAIA,CAAM,EAAIT,GAChD,aAAcQ,EAAI,OAAS,OAAS,IAAI,IAAa,CAACA,EAAI,QAAS,GAAGC,CAAM,CAAC,EAAI,MACnF,EAEID,EAAI,WACNJ,EAAQ,KAAKM,CAAQ,EACrBJ,EAAY,IAAIC,CAAG,IACVG,EAAS,YAAcF,EAAI,OAAS,SAE7CH,EAAY,KAAKK,CAAQ,CAE7B,CAEA,MAAO,CAAE,QAAAN,EAAS,YAAAC,EAAa,YAAAC,CAAY,CAC7C,CAOA,IAAMK,GAAuB,CAAE,SAAU,IAAI,OAAU,EAQvD,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,EAAsB,EACrDqB,EACJ,gBAAC,EAAAhB,QAAiB,KAAjB,CAAuB,GAAGc,GACzB,gBAAC,EAAAd,QAAiB,QAAjB,CAAyB,QAAO,IAAEF,CAAS,EAC5C,gBAAC,EAAAE,QAAiB,OAAjB,CAAwB,UAAWS,EAAW,WAAYC,GACzD,gBAACO,EAAA,CAAM,QAAO,IACZ,gBAAC,EAAAjB,QAAiB,QAAjB,CACC,WAAY,EACZ,iBAAkB,GACjB,GAAGW,EACJ,QAAS,GACT,IAAKT,EACL,aAAW,GAAAgB,SAAW,qBAAsBf,CAAS,GAErD,gBAACgB,EAAA,CAAK,GAAG,IAAI,UAAU,kBAAkB,KAAK,KAC3CX,CACH,EACA,gBAAC,EAAAR,QAAiB,MAAjB,CAAuB,UAAU,mBAAmB,CACvD,CACF,CACF,CACF,EAGF,OAAOe,EAAcC,EAAU,gBAAC,EAAAhB,QAAiB,SAAjB,CAA0B,cAAeN,IAAgBsB,CAAQ,CACnG,CAAC,EACDf,GAAQ,YAAc",
6
+ "names": ["tooltip_exports", "__export", "Tooltip", "TooltipProvider", "__toCommonJS", "React", "import_classnames", "import_radix_ui", "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", "isResponsiveObject", "style", "classes", "propClassName", "getResponsiveClassNames", "propClassNames", "propCustomProperties", "getResponsiveStyles", "mergeStyles", "classNames", "asChildPropDef", "accentColors", "grayColors", "colorPropDef", "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", "Text", "props", "forwardedRef", "children", "className", "asChild", "Tag", "color", "textProps", "extractProps", "textPropDefs", "combinedClassName", "React", "import_classnames", "import_radix_ui", "getMatchingGrayColor", "accentColor", "React", "THEME_SIZE_DEFAULT", "ThemeSizeContext", "React", "usePropSyncedState", "propValue", "value", "setValue", "previousPropValue", "setPreviousPropValue", "radii", "appearances", "fontFamilies", "sizes", "themePropDefs", "asChildPropDef", "accentColors", "grayColors", "radii", "noop", "defaultThemeContext", "themePropDefs", "ThemeContext", "Theme", "props", "forwardedRef", "context", "ThemeContext", "dir", "ThemeRoot", "ThemeImpl", "appearanceProp", "themePropDefs", "accentColorProp", "grayColorProp", "radiusProp", "fontFamilyProp", "headingFontFamilyProp", "sizeProp", "hasBackground", "rootProps", "appearance", "setAppearance", "usePropSyncedState", "accentColor", "setAccentColor", "grayColor", "setGrayColor", "radius", "setRadius", "fontFamily", "setFontFamily", "headingFontFamily", "setHeadingFontFamily", "size", "setSize", "asChild", "isRoot", "hasBackgroundProp", "onAppearanceChange", "noop", "onAccentColorChange", "onGrayColorChange", "onRadiusChange", "onFontFamilyChange", "onHeadingFontFamilyChange", "onSizeChange", "themeProps", "Comp", "resolvedGrayColor", "getMatchingGrayColor", "isExplicitAppearance", "ThemeSizeContext", "classNames", "widthPropDefs", "tooltipPropDefs", "widthPropDefs", "TOOLTIP_DELAY", "TooltipProviderContext", "TooltipProvider", "delayDuration", "children", "props", "TooltipPrimitive", "Tooltip", "forwardedRef", "className", "open", "defaultOpen", "onOpenChange", "disableHoverableContent", "content", "container", "forceMount", "tooltipContentProps", "extractProps", "tooltipPropDefs", "rootProps", "hasProvider", "tooltip", "Theme", "classNames", "Text"]
7
7
  }
@@ -1,2 +1,3 @@
1
+ "use client";
1
2
  "use strict";var i=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var n=Object.prototype.hasOwnProperty;var m=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},P=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let p of f(t))!n.call(e,p)&&p!==r&&i(e,p,{get:()=>t[p],enumerable:!(s=d(t,p))||s.enumerable});return e};var h=e=>P(i({},"__esModule",{value:!0}),e);var D={};m(D,{tooltipPropDefs:()=>a});module.exports=h(D);var o={width:{type:"string",className:"kui-r-w",customProperties:["--width"],responsive:!0},minWidth:{type:"string",className:"kui-r-min-w",customProperties:["--min-width"],responsive:!0},maxWidth:{type:"string",className:"kui-r-max-w",customProperties:["--max-width"],responsive:!0}};var a={content:{type:"ReactNode",required:!0},width:o.width,minWidth:o.minWidth,maxWidth:{...o.maxWidth,default:"360px"}};
2
3
  //# sourceMappingURL=tooltip.props.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/tooltip.props.tsx", "../../../src/props/width.props.ts"],
4
4
  "sourcesContent": ["import { widthPropDefs } from '../props/width.props.js';\n\nimport type { PropDef, GetPropDefTypes } from '../props/prop-def.js';\n\nconst tooltipPropDefs = {\n content: { type: 'ReactNode', required: true },\n width: widthPropDefs.width,\n minWidth: widthPropDefs.minWidth,\n maxWidth: { ...widthPropDefs.maxWidth, default: '360px' },\n} satisfies {\n width: PropDef<string>;\n minWidth: PropDef<string>;\n maxWidth: PropDef<string>;\n content: PropDef<React.ReactNode>;\n};\n\ntype TooltipOwnProps = GetPropDefTypes<typeof tooltipPropDefs & typeof widthPropDefs>;\n\nexport { tooltipPropDefs };\nexport type { TooltipOwnProps };\n", "import type { GetPropDefTypes, PropDef } from './prop-def.js';\n\nconst widthPropDefs = {\n /**\n * Sets the CSS **width** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * width=\"100px\"\n * width={{ md: '100vw', xl: '1400px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/width\n */\n width: {\n type: 'string',\n className: 'kui-r-w',\n customProperties: ['--width'],\n responsive: true,\n },\n /**\n * Sets the CSS **min-width** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * minWidth=\"100px\"\n * minWidth={{ md: '100vw', xl: '1400px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/min-width\n */\n minWidth: {\n type: 'string',\n className: 'kui-r-min-w',\n customProperties: ['--min-width'],\n responsive: true,\n },\n /**\n * Sets the CSS **max-width** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * maxWidth=\"100px\"\n * maxWidth={{ md: '100vw', xl: '1400px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/max-width\n */\n maxWidth: {\n type: 'string',\n className: 'kui-r-max-w',\n customProperties: ['--max-width'],\n responsive: true,\n },\n} satisfies {\n width: PropDef<string>;\n minWidth: PropDef<string>;\n maxWidth: PropDef<string>;\n};\n\ntype WidthProps = GetPropDefTypes<typeof widthPropDefs>;\n\nexport { widthPropDefs };\nexport type { WidthProps };\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,qBAAAE,IAAA,eAAAC,EAAAH,GCEA,IAAMI,EAAgB,CAYpB,MAAO,CACL,KAAM,SACN,UAAW,UACX,iBAAkB,CAAC,SAAS,EAC5B,WAAY,EACd,EAYA,SAAU,CACR,KAAM,SACN,UAAW,cACX,iBAAkB,CAAC,aAAa,EAChC,WAAY,EACd,EAYA,SAAU,CACR,KAAM,SACN,UAAW,cACX,iBAAkB,CAAC,aAAa,EAChC,WAAY,EACd,CACF,EDlDA,IAAMC,EAAkB,CACtB,QAAS,CAAE,KAAM,YAAa,SAAU,EAAK,EAC7C,MAAOC,EAAc,MACrB,SAAUA,EAAc,SACxB,SAAU,CAAE,GAAGA,EAAc,SAAU,QAAS,OAAQ,CAC1D",
5
+ "mappings": ";yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,qBAAAE,IAAA,eAAAC,EAAAH,GCEA,IAAMI,EAAgB,CAYpB,MAAO,CACL,KAAM,SACN,UAAW,UACX,iBAAkB,CAAC,SAAS,EAC5B,WAAY,EACd,EAYA,SAAU,CACR,KAAM,SACN,UAAW,cACX,iBAAkB,CAAC,aAAa,EAChC,WAAY,EACd,EAYA,SAAU,CACR,KAAM,SACN,UAAW,cACX,iBAAkB,CAAC,aAAa,EAChC,WAAY,EACd,CACF,EDlDA,IAAMC,EAAkB,CACtB,QAAS,CAAE,KAAM,YAAa,SAAU,EAAK,EAC7C,MAAOC,EAAc,MACrB,SAAUA,EAAc,SACxB,SAAU,CAAE,GAAGA,EAAc,SAAU,QAAS,OAAQ,CAC1D",
6
6
  "names": ["tooltip_props_exports", "__export", "tooltipPropDefs", "__toCommonJS", "widthPropDefs", "tooltipPropDefs", "widthPropDefs"]
7
7
  }
@@ -43,18 +43,21 @@ interface VirtualMenuRenderItemProps<T> {
43
43
  'data-highlighted': true | undefined;
44
44
  /** Data attribute for event delegation */
45
45
  'data-index': number;
46
+ /** Number of items in the whole list, since only some rows are mounted */
47
+ 'aria-setsize': number;
48
+ /** Position of this row in the whole list, from 1 */
49
+ 'aria-posinset': number;
46
50
  /** Mouse enter handler */
47
51
  onMouseEnter: (e: React.MouseEvent<HTMLElement>) => void;
48
52
  /** Mouse leave handler */
49
- onMouseLeave: () => void;
53
+ onMouseLeave: (e: React.MouseEvent<HTMLElement>) => void;
50
54
  /** Click handler */
51
55
  onClick: (e: React.MouseEvent<HTMLElement>) => void;
52
56
  /** Keyboard handler for Enter/Space activation */
53
57
  onKeyDown: (e: React.KeyboardEvent<HTMLElement>) => void;
54
58
  }
55
- interface VirtualMenuProps<T> {
56
- /** Array of items to render */
57
- items: T[];
59
+ /** How rows are drawn: one of `itemLabel` or `renderItem` is required. */
60
+ type VirtualMenuRowProps<T> = {
58
61
  /**
59
62
  * Simple label accessor for basic text items.
60
63
  * Can be a property key or a function.
@@ -62,7 +65,10 @@ interface VirtualMenuProps<T> {
62
65
  * itemLabel="name"
63
66
  * itemLabel={(item) => item.name}
64
67
  */
65
- itemLabel?: keyof T | ((item: T) => React.ReactNode);
68
+ itemLabel: keyof T | ((item: T) => React.ReactNode);
69
+ renderItem?: undefined;
70
+ } | {
71
+ itemLabel?: undefined;
66
72
  /**
67
73
  * Custom component for rendering items.
68
74
  * Must be memoized (React.memo) for optimal performance.
@@ -72,7 +78,14 @@ interface VirtualMenuProps<T> {
72
78
  * ));
73
79
  * <VirtualMenu items={items} renderItem={MyItem} />
74
80
  */
75
- renderItem?: React.ComponentType<VirtualMenuRenderItemProps<T>>;
81
+ renderItem: React.ComponentType<VirtualMenuRenderItemProps<T>>;
82
+ };
83
+ /** Attributes of the list element that pass through, such as `id`, `aria-labelledby` or `data-*`. */
84
+ type VirtualMenuDivProps = Omit<React.ComponentPropsWithoutRef<'div'>, 'children' | 'onSelect' | 'role' | 'tabIndex' | 'aria-activedescendant'>;
85
+ type VirtualMenuProps<T> = VirtualMenuDivProps & VirtualMenuRowProps<T> & VirtualMenuOwnProps<T>;
86
+ interface VirtualMenuOwnProps<T> {
87
+ /** Array of items to render */
88
+ items: T[];
76
89
  /**
77
90
  * Menu size - controls item height.
78
91
  * Automatically inherited from parent DropdownMenu.Content/ContextMenu.Content.
@@ -91,12 +104,6 @@ interface VirtualMenuProps<T> {
91
104
  overscan?: number;
92
105
  /** Callback when an item is selected */
93
106
  onSelect?: (item: T, index: number) => void;
94
- /** Additional class name */
95
- className?: string;
96
- /** Additional styles */
97
- style?: React.CSSProperties;
98
- /** Accessible label for the menu */
99
- 'aria-label'?: string;
100
107
  }
101
108
  interface VirtualMenuItemProps extends React.ComponentPropsWithoutRef<'div'> {
102
109
  children: React.ReactNode;