@womp/kookie-ui 0.20.0 → 0.21.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 (1171) hide show
  1. package/README.md +2 -18
  2. package/codemods/components-0.21.py +123 -0
  3. package/components.css +950 -2717
  4. package/dist/cjs/components/_internal/base-button.d.ts +2 -4
  5. package/dist/cjs/components/_internal/base-button.d.ts.map +1 -1
  6. package/dist/cjs/components/_internal/base-button.js +1 -1
  7. package/dist/cjs/components/_internal/base-button.js.map +3 -3
  8. package/dist/cjs/components/_internal/base-button.props.d.ts +1 -9
  9. package/dist/cjs/components/_internal/base-button.props.d.ts.map +1 -1
  10. package/dist/cjs/components/_internal/base-button.props.js +1 -1
  11. package/dist/cjs/components/_internal/base-button.props.js.map +2 -2
  12. package/dist/cjs/components/_internal/base-checkbox.props.js.map +1 -1
  13. package/dist/cjs/components/_internal/base-menu.props.js.map +1 -1
  14. package/dist/cjs/components/_internal/base-menu.utils.js +1 -1
  15. package/dist/cjs/components/_internal/base-menu.utils.js.map +4 -4
  16. package/dist/cjs/components/_internal/base-radio.props.js.map +1 -1
  17. package/dist/cjs/components/_internal/base-tab-list.props.js.map +1 -1
  18. package/dist/cjs/components/_internal/pane-chrome.js +1 -1
  19. package/dist/cjs/components/_internal/pane-chrome.js.map +4 -4
  20. package/dist/cjs/components/_internal/shell-sidebar.js +1 -1
  21. package/dist/cjs/components/_internal/shell-sidebar.js.map +4 -4
  22. package/dist/cjs/components/accordion.d.ts.map +1 -1
  23. package/dist/cjs/components/accordion.js +1 -1
  24. package/dist/cjs/components/accordion.js.map +3 -3
  25. package/dist/cjs/components/accordion.props.d.ts +0 -5
  26. package/dist/cjs/components/accordion.props.d.ts.map +1 -1
  27. package/dist/cjs/components/accordion.props.js +1 -1
  28. package/dist/cjs/components/accordion.props.js.map +2 -2
  29. package/dist/cjs/components/alert-dialog.js +1 -1
  30. package/dist/cjs/components/alert-dialog.js.map +4 -4
  31. package/dist/cjs/components/avatar.d.ts +1 -2
  32. package/dist/cjs/components/avatar.d.ts.map +1 -1
  33. package/dist/cjs/components/avatar.js +1 -1
  34. package/dist/cjs/components/avatar.js.map +4 -4
  35. package/dist/cjs/components/avatar.props.d.ts.map +1 -1
  36. package/dist/cjs/components/avatar.props.js.map +1 -1
  37. package/dist/cjs/components/blockquote.d.ts +1 -2
  38. package/dist/cjs/components/blockquote.d.ts.map +1 -1
  39. package/dist/cjs/components/blockquote.js +1 -1
  40. package/dist/cjs/components/blockquote.js.map +4 -4
  41. package/dist/cjs/components/blockquote.props.js.map +1 -1
  42. package/dist/cjs/components/button.d.ts +23 -7
  43. package/dist/cjs/components/button.d.ts.map +1 -1
  44. package/dist/cjs/components/button.js +1 -4
  45. package/dist/cjs/components/button.js.map +3 -3
  46. package/dist/cjs/components/button.props.js +1 -1
  47. package/dist/cjs/components/button.props.js.map +2 -2
  48. package/dist/cjs/components/card.d.ts +1 -2
  49. package/dist/cjs/components/card.d.ts.map +1 -1
  50. package/dist/cjs/components/card.js +1 -1
  51. package/dist/cjs/components/card.js.map +4 -4
  52. package/dist/cjs/components/chatbar.d.ts +2 -3
  53. package/dist/cjs/components/chatbar.d.ts.map +1 -1
  54. package/dist/cjs/components/chatbar.js +1 -4
  55. package/dist/cjs/components/chatbar.js.map +4 -4
  56. package/dist/cjs/components/checkbox-group.d.ts +2 -3
  57. package/dist/cjs/components/checkbox-group.d.ts.map +1 -1
  58. package/dist/cjs/components/checkbox-group.js +1 -1
  59. package/dist/cjs/components/checkbox-group.js.map +4 -4
  60. package/dist/cjs/components/checkbox-group.props.js.map +1 -1
  61. package/dist/cjs/components/checkbox.d.ts +1 -2
  62. package/dist/cjs/components/checkbox.d.ts.map +1 -1
  63. package/dist/cjs/components/checkbox.js +1 -1
  64. package/dist/cjs/components/checkbox.js.map +4 -4
  65. package/dist/cjs/components/checkbox.props.js.map +1 -1
  66. package/dist/cjs/components/chip.d.ts +18 -0
  67. package/dist/cjs/components/chip.d.ts.map +1 -0
  68. package/dist/cjs/components/chip.js +2 -0
  69. package/dist/cjs/components/chip.js.map +7 -0
  70. package/dist/cjs/components/{badge.props.d.ts → chip.props.d.ts} +3 -3
  71. package/dist/cjs/components/chip.props.d.ts.map +1 -0
  72. package/dist/cjs/components/chip.props.js +2 -0
  73. package/dist/cjs/components/chip.props.js.map +7 -0
  74. package/dist/cjs/components/code.d.ts +1 -2
  75. package/dist/cjs/components/code.d.ts.map +1 -1
  76. package/dist/cjs/components/code.js +1 -1
  77. package/dist/cjs/components/code.js.map +4 -4
  78. package/dist/cjs/components/code.props.js.map +1 -1
  79. package/dist/cjs/components/combobox.d.ts +1 -2
  80. package/dist/cjs/components/combobox.d.ts.map +1 -1
  81. package/dist/cjs/components/combobox.js +1 -1
  82. package/dist/cjs/components/combobox.js.map +4 -4
  83. package/dist/cjs/components/combobox.props.js.map +1 -1
  84. package/dist/cjs/components/context-menu.js +1 -1
  85. package/dist/cjs/components/context-menu.js.map +4 -4
  86. package/dist/cjs/components/context-menu.props.js.map +1 -1
  87. package/dist/cjs/components/dialog.js +1 -1
  88. package/dist/cjs/components/dialog.js.map +4 -4
  89. package/dist/cjs/components/dropdown-menu.js +1 -1
  90. package/dist/cjs/components/dropdown-menu.js.map +4 -4
  91. package/dist/cjs/components/dropdown-menu.props.js.map +1 -1
  92. package/dist/cjs/components/heading.d.ts +1 -2
  93. package/dist/cjs/components/heading.d.ts.map +1 -1
  94. package/dist/cjs/components/heading.js +1 -1
  95. package/dist/cjs/components/heading.js.map +4 -4
  96. package/dist/cjs/components/heading.props.js.map +1 -1
  97. package/dist/cjs/components/index.d.ts +2 -18
  98. package/dist/cjs/components/index.d.ts.map +1 -1
  99. package/dist/cjs/components/index.js +3 -14
  100. package/dist/cjs/components/index.js.map +4 -4
  101. package/dist/cjs/components/kbd.d.ts +1 -2
  102. package/dist/cjs/components/kbd.d.ts.map +1 -1
  103. package/dist/cjs/components/kbd.js +1 -1
  104. package/dist/cjs/components/kbd.js.map +4 -4
  105. package/dist/cjs/components/link.d.ts +1 -2
  106. package/dist/cjs/components/link.d.ts.map +1 -1
  107. package/dist/cjs/components/link.js +1 -1
  108. package/dist/cjs/components/link.js.map +4 -4
  109. package/dist/cjs/components/link.props.js.map +1 -1
  110. package/dist/cjs/components/message-scroller.d.ts +2 -3
  111. package/dist/cjs/components/message-scroller.d.ts.map +1 -1
  112. package/dist/cjs/components/message-scroller.js +1 -4
  113. package/dist/cjs/components/message-scroller.js.map +4 -4
  114. package/dist/cjs/components/navbar.d.ts +14 -6
  115. package/dist/cjs/components/navbar.d.ts.map +1 -1
  116. package/dist/cjs/components/navbar.js +1 -1
  117. package/dist/cjs/components/navbar.js.map +2 -2
  118. package/dist/cjs/components/notice.d.ts.map +1 -1
  119. package/dist/cjs/components/notice.js +1 -4
  120. package/dist/cjs/components/notice.js.map +4 -4
  121. package/dist/cjs/components/popover.js.map +1 -1
  122. package/dist/cjs/components/progress.d.ts +1 -2
  123. package/dist/cjs/components/progress.d.ts.map +1 -1
  124. package/dist/cjs/components/progress.js +1 -1
  125. package/dist/cjs/components/progress.js.map +4 -4
  126. package/dist/cjs/components/progress.props.js.map +1 -1
  127. package/dist/cjs/components/radio-group.d.ts +2 -3
  128. package/dist/cjs/components/radio-group.d.ts.map +1 -1
  129. package/dist/cjs/components/radio-group.js +1 -1
  130. package/dist/cjs/components/radio-group.js.map +4 -4
  131. package/dist/cjs/components/radio-group.props.js.map +1 -1
  132. package/dist/cjs/components/radio.d.ts +1 -2
  133. package/dist/cjs/components/radio.d.ts.map +1 -1
  134. package/dist/cjs/components/radio.js +1 -1
  135. package/dist/cjs/components/radio.js.map +4 -4
  136. package/dist/cjs/components/radio.props.js.map +1 -1
  137. package/dist/cjs/components/schemas/base-button.schema.d.ts +2 -3
  138. package/dist/cjs/components/schemas/base-button.schema.d.ts.map +1 -1
  139. package/dist/cjs/components/schemas/base-button.schema.js +1 -1
  140. package/dist/cjs/components/schemas/base-button.schema.js.map +2 -2
  141. package/dist/cjs/components/schemas/button.schema.d.ts +0 -1
  142. package/dist/cjs/components/schemas/button.schema.d.ts.map +1 -1
  143. package/dist/cjs/components/schemas/button.schema.js +1 -1
  144. package/dist/cjs/components/schemas/button.schema.js.map +2 -2
  145. package/dist/cjs/components/schemas/index.d.ts +2 -6
  146. package/dist/cjs/components/schemas/index.d.ts.map +1 -1
  147. package/dist/cjs/components/schemas/index.js +1 -1
  148. package/dist/cjs/components/schemas/index.js.map +4 -4
  149. package/dist/cjs/components/schemas/{toggle-button.schema.d.ts → toggle.schema.d.ts} +13 -38
  150. package/dist/cjs/components/schemas/toggle.schema.d.ts.map +1 -0
  151. package/dist/cjs/components/schemas/toggle.schema.js +2 -0
  152. package/dist/cjs/components/schemas/toggle.schema.js.map +7 -0
  153. package/dist/cjs/components/scroll-area.d.ts +1 -2
  154. package/dist/cjs/components/scroll-area.d.ts.map +1 -1
  155. package/dist/cjs/components/scroll-area.js +1 -1
  156. package/dist/cjs/components/scroll-area.js.map +4 -4
  157. package/dist/cjs/components/segmented-control.d.ts +1 -2
  158. package/dist/cjs/components/segmented-control.d.ts.map +1 -1
  159. package/dist/cjs/components/segmented-control.js +1 -1
  160. package/dist/cjs/components/segmented-control.js.map +4 -4
  161. package/dist/cjs/components/select.d.ts +1 -2
  162. package/dist/cjs/components/select.d.ts.map +1 -1
  163. package/dist/cjs/components/select.js +1 -1
  164. package/dist/cjs/components/select.js.map +4 -4
  165. package/dist/cjs/components/select.props.js.map +1 -1
  166. package/dist/cjs/components/separator.d.ts +1 -2
  167. package/dist/cjs/components/separator.d.ts.map +1 -1
  168. package/dist/cjs/components/separator.js +1 -1
  169. package/dist/cjs/components/separator.js.map +4 -4
  170. package/dist/cjs/components/separator.props.js.map +1 -1
  171. package/dist/cjs/components/sheet.js +1 -1
  172. package/dist/cjs/components/sheet.js.map +4 -4
  173. package/dist/cjs/components/shell.js +1 -1
  174. package/dist/cjs/components/shell.js.map +4 -4
  175. package/dist/cjs/components/sidebar.d.ts +5 -5
  176. package/dist/cjs/components/sidebar.d.ts.map +1 -1
  177. package/dist/cjs/components/sidebar.js +1 -1
  178. package/dist/cjs/components/sidebar.js.map +4 -4
  179. package/dist/cjs/components/slider.d.ts +1 -2
  180. package/dist/cjs/components/slider.d.ts.map +1 -1
  181. package/dist/cjs/components/slider.js +1 -1
  182. package/dist/cjs/components/slider.js.map +4 -4
  183. package/dist/cjs/components/slider.props.js.map +1 -1
  184. package/dist/cjs/components/spinner.d.ts +1 -2
  185. package/dist/cjs/components/spinner.d.ts.map +1 -1
  186. package/dist/cjs/components/spinner.js +1 -1
  187. package/dist/cjs/components/spinner.js.map +3 -3
  188. package/dist/cjs/components/switch.d.ts +1 -2
  189. package/dist/cjs/components/switch.d.ts.map +1 -1
  190. package/dist/cjs/components/switch.js +1 -1
  191. package/dist/cjs/components/switch.js.map +4 -4
  192. package/dist/cjs/components/switch.props.js.map +1 -1
  193. package/dist/cjs/components/table.d.ts +1 -2
  194. package/dist/cjs/components/table.d.ts.map +1 -1
  195. package/dist/cjs/components/table.js +1 -1
  196. package/dist/cjs/components/table.js.map +4 -4
  197. package/dist/cjs/components/tabs.d.ts +3 -4
  198. package/dist/cjs/components/tabs.d.ts.map +1 -1
  199. package/dist/cjs/components/tabs.js +1 -1
  200. package/dist/cjs/components/tabs.js.map +4 -4
  201. package/dist/cjs/components/tabs.props.js.map +1 -1
  202. package/dist/cjs/components/text-area.d.ts +1 -2
  203. package/dist/cjs/components/text-area.d.ts.map +1 -1
  204. package/dist/cjs/components/text-area.js +1 -1
  205. package/dist/cjs/components/text-area.js.map +4 -4
  206. package/dist/cjs/components/text-area.props.js.map +1 -1
  207. package/dist/cjs/components/text-field.d.ts +1 -2
  208. package/dist/cjs/components/text-field.d.ts.map +1 -1
  209. package/dist/cjs/components/text-field.js +2 -2
  210. package/dist/cjs/components/text-field.js.map +4 -4
  211. package/dist/cjs/components/text-field.props.js.map +1 -1
  212. package/dist/cjs/components/text.d.ts +1 -2
  213. package/dist/cjs/components/text.d.ts.map +1 -1
  214. package/dist/cjs/components/text.js +1 -1
  215. package/dist/cjs/components/text.js.map +4 -4
  216. package/dist/cjs/components/text.props.js.map +1 -1
  217. package/dist/cjs/components/theme.js.map +1 -1
  218. package/dist/cjs/components/theme.props.js.map +1 -1
  219. package/dist/cjs/components/toggle.d.ts +35 -0
  220. package/dist/cjs/components/toggle.d.ts.map +1 -0
  221. package/dist/cjs/components/toggle.js +10 -0
  222. package/dist/cjs/components/toggle.js.map +7 -0
  223. package/dist/cjs/components/toolbar.d.ts +2 -3
  224. package/dist/cjs/components/toolbar.d.ts.map +1 -1
  225. package/dist/cjs/components/toolbar.js +1 -4
  226. package/dist/cjs/components/toolbar.js.map +4 -4
  227. package/dist/cjs/components/tooltip.js +1 -1
  228. package/dist/cjs/components/tooltip.js.map +4 -4
  229. package/dist/cjs/hooks/index.js.map +1 -1
  230. package/dist/cjs/hooks/use-prop-synced-state.d.ts +1 -1
  231. package/dist/cjs/hooks/use-prop-synced-state.js.map +1 -1
  232. package/dist/cjs/hooks/use-toggle-state.d.ts +1 -1
  233. package/dist/cjs/hooks/use-toggle-state.js.map +1 -1
  234. package/dist/cjs/index.js +5 -16
  235. package/dist/cjs/index.js.map +4 -4
  236. package/dist/cjs/props/color.prop.js.map +1 -1
  237. package/dist/cjs/props/emphasis.prop.js.map +1 -1
  238. package/dist/cjs/props/index.d.ts +1 -14
  239. package/dist/cjs/props/index.d.ts.map +1 -1
  240. package/dist/cjs/props/index.js +1 -1
  241. package/dist/cjs/props/index.js.map +4 -4
  242. package/dist/esm/{chunk-STMTXK7U.js → chunk-24CVW6P7.js} +2 -2
  243. package/dist/esm/{chunk-GTXRD4FZ.js → chunk-2KZ44I6T.js} +2 -2
  244. package/dist/esm/chunk-2KZ44I6T.js.map +7 -0
  245. package/dist/esm/chunk-36GV4H3C.js +2 -0
  246. package/dist/esm/chunk-36GV4H3C.js.map +7 -0
  247. package/dist/esm/chunk-4I4NJNYO.js +2 -0
  248. package/dist/esm/chunk-4I4NJNYO.js.map +7 -0
  249. package/dist/esm/chunk-4VBH3W2S.js +2 -0
  250. package/dist/esm/chunk-4ZAJVYU6.js +2 -0
  251. package/dist/esm/{chunk-QETAAJJV.js → chunk-5B6JDZ3S.js} +2 -2
  252. package/dist/esm/chunk-5B6JDZ3S.js.map +7 -0
  253. package/dist/esm/{chunk-NCDOMH5I.js → chunk-5P4JTWBK.js} +2 -2
  254. package/dist/esm/chunk-5P4JTWBK.js.map +7 -0
  255. package/dist/esm/chunk-5WLSAUNJ.js +2 -0
  256. package/dist/esm/chunk-5WLSAUNJ.js.map +7 -0
  257. package/dist/esm/chunk-6WANXT2G.js +2 -0
  258. package/dist/esm/chunk-6WANXT2G.js.map +7 -0
  259. package/dist/esm/chunk-72FU5FEC.js +2 -0
  260. package/dist/esm/chunk-7AXEPJYF.js +2 -0
  261. package/dist/esm/chunk-7AXEPJYF.js.map +7 -0
  262. package/dist/esm/{chunk-MLXHD7YF.js → chunk-7FPLWHMT.js} +2 -2
  263. package/dist/esm/chunk-7MC7N4BC.js +2 -0
  264. package/dist/esm/chunk-7MC7N4BC.js.map +7 -0
  265. package/dist/esm/chunk-7MPFZIZX.js +2 -0
  266. package/dist/esm/chunk-7MPFZIZX.js.map +7 -0
  267. package/dist/esm/{chunk-YS5BZRRK.js → chunk-7OQXCYCW.js} +2 -2
  268. package/dist/esm/{chunk-TBWKDBUF.js → chunk-7QPXLSVR.js} +2 -2
  269. package/dist/esm/{chunk-TBWKDBUF.js.map → chunk-7QPXLSVR.js.map} +2 -2
  270. package/dist/esm/chunk-7XWAXYZD.js +2 -0
  271. package/dist/esm/chunk-7XWAXYZD.js.map +7 -0
  272. package/dist/esm/chunk-AYZRLA7F.js +2 -0
  273. package/dist/esm/{chunk-6RZVKCNG.js → chunk-BHGES72S.js} +2 -2
  274. package/dist/esm/chunk-BQD7XS4K.js +2 -0
  275. package/dist/esm/chunk-BQD7XS4K.js.map +7 -0
  276. package/dist/esm/{chunk-KU3LLWFU.js → chunk-CTZ467AB.js} +2 -2
  277. package/dist/esm/{chunk-34KVYDF6.js → chunk-CUNKWFKA.js} +1 -1
  278. package/dist/esm/{chunk-34KVYDF6.js.map → chunk-CUNKWFKA.js.map} +1 -1
  279. package/dist/esm/{chunk-Q7S5LQBQ.js → chunk-CYO6CRMQ.js} +2 -2
  280. package/dist/esm/chunk-D3U4MWDZ.js +1 -0
  281. package/dist/esm/{chunk-VLLJ7A6P.js → chunk-DCNHG6VN.js} +2 -2
  282. package/dist/esm/chunk-DL6F2TIU.js +2 -0
  283. package/dist/esm/chunk-DL6F2TIU.js.map +7 -0
  284. package/dist/esm/chunk-DSV3XBHM.js +2 -0
  285. package/dist/esm/chunk-DSV3XBHM.js.map +7 -0
  286. package/dist/esm/{chunk-JDMJC76O.js → chunk-EDEYYJ3Q.js} +2 -2
  287. package/dist/esm/chunk-EDP2TJVB.js +2 -0
  288. package/dist/esm/chunk-EDP2TJVB.js.map +7 -0
  289. package/dist/esm/chunk-EGSMLRSO.js +2 -0
  290. package/dist/esm/chunk-EGSMLRSO.js.map +7 -0
  291. package/dist/esm/{chunk-6FLLFCBU.js → chunk-ELAW7ZUG.js} +2 -2
  292. package/dist/esm/{chunk-HK7RJPQ2.js → chunk-EOWG5SIY.js} +2 -2
  293. package/dist/esm/{chunk-TLZMLJTI.js → chunk-FSMUCDLI.js} +2 -2
  294. package/dist/esm/{chunk-B6RH4CTY.js → chunk-G46OLCM2.js} +2 -2
  295. package/dist/esm/{chunk-VK7RNXUO.js → chunk-GBFGUOFS.js} +1 -1
  296. package/dist/esm/{chunk-VK7RNXUO.js.map → chunk-GBFGUOFS.js.map} +1 -1
  297. package/dist/esm/{chunk-5LGWS5QS.js → chunk-GOV5I7I2.js} +2 -2
  298. package/dist/esm/{chunk-JOB6FH3D.js → chunk-GWGQ73PU.js} +2 -2
  299. package/dist/esm/{chunk-VSSJTPBV.js → chunk-HELY5CSU.js} +2 -2
  300. package/dist/esm/{chunk-UFJJTUOU.js → chunk-HGG3ULNK.js} +2 -2
  301. package/dist/esm/chunk-HZNOHY6O.js +2 -0
  302. package/dist/esm/chunk-IAC5IOPN.js +2 -0
  303. package/dist/esm/chunk-IAC5IOPN.js.map +7 -0
  304. package/dist/esm/chunk-IN6ZEGDK.js +2 -0
  305. package/dist/esm/chunk-IN6ZEGDK.js.map +7 -0
  306. package/dist/esm/chunk-IQBSUN5B.js +2 -0
  307. package/dist/esm/chunk-IQBSUN5B.js.map +7 -0
  308. package/dist/esm/{chunk-PUVZFRTQ.js → chunk-IZPDJN6O.js} +2 -2
  309. package/dist/esm/chunk-JMBCX5XR.js +2 -0
  310. package/dist/esm/chunk-JMBCX5XR.js.map +7 -0
  311. package/dist/esm/{chunk-KPACVWV4.js → chunk-K4BDLRCC.js} +2 -2
  312. package/dist/esm/chunk-K6QKUX3C.js +2 -0
  313. package/dist/esm/{chunk-IND2NZIN.js → chunk-K6WT5ZEA.js} +2 -2
  314. package/dist/esm/{chunk-CLEH57SW.js → chunk-KIYCILXL.js} +2 -2
  315. package/dist/esm/{chunk-ZCAI2PRH.js → chunk-KRDRQU4G.js} +2 -2
  316. package/dist/esm/{chunk-T5DSQKKF.js → chunk-KRZL245C.js} +2 -2
  317. package/dist/esm/chunk-LHYX53XA.js +2 -0
  318. package/dist/esm/chunk-LHYX53XA.js.map +7 -0
  319. package/dist/esm/{chunk-WBGKTN35.js → chunk-LNFN35ZE.js} +2 -2
  320. package/dist/esm/{chunk-JH55M4I2.js → chunk-LPVDR7V3.js} +2 -2
  321. package/dist/esm/chunk-LVCP5WGX.js +2 -0
  322. package/dist/esm/chunk-M4M4OZTS.js +2 -0
  323. package/dist/esm/chunk-MC3GY6ET.js +2 -0
  324. package/dist/esm/chunk-MC3GY6ET.js.map +7 -0
  325. package/dist/esm/chunk-MKY2IRPO.js +2 -0
  326. package/dist/esm/chunk-MKY2IRPO.js.map +7 -0
  327. package/dist/esm/{chunk-UNH3FGU4.js → chunk-MYO2E46Z.js} +2 -2
  328. package/dist/esm/{chunk-UNH3FGU4.js.map → chunk-MYO2E46Z.js.map} +2 -2
  329. package/dist/esm/chunk-OA2BZDKL.js +2 -0
  330. package/dist/esm/chunk-P3WB3K2M.js +2 -0
  331. package/dist/esm/chunk-P3WB3K2M.js.map +7 -0
  332. package/dist/esm/{chunk-JUY7CBSL.js → chunk-PBFSBHBS.js} +2 -2
  333. package/dist/esm/{chunk-CD324U6G.js → chunk-PEP6MQJ2.js} +2 -2
  334. package/dist/esm/{chunk-WAURCNAS.js → chunk-PN3RQFSU.js} +1 -1
  335. package/dist/esm/chunk-PN3RQFSU.js.map +7 -0
  336. package/dist/esm/chunk-QQVA2PJ3.js +2 -0
  337. package/dist/esm/chunk-QQVA2PJ3.js.map +7 -0
  338. package/dist/esm/{chunk-E3754NJZ.js → chunk-QZ6OCMH4.js} +2 -2
  339. package/dist/esm/chunk-RBTTIDON.js +2 -0
  340. package/dist/esm/chunk-RBTTIDON.js.map +7 -0
  341. package/dist/esm/{chunk-6AZV4VFW.js → chunk-RGZKWVJC.js} +2 -2
  342. package/dist/esm/{chunk-6AZV4VFW.js.map → chunk-RGZKWVJC.js.map} +1 -1
  343. package/dist/esm/chunk-T4L4QDBG.js +2 -0
  344. package/dist/esm/chunk-T4L4QDBG.js.map +7 -0
  345. package/dist/esm/chunk-TCSPZ27B.js +2 -0
  346. package/dist/esm/chunk-TCSPZ27B.js.map +7 -0
  347. package/dist/esm/chunk-TDQTMR5T.js +2 -0
  348. package/dist/esm/chunk-TDQTMR5T.js.map +7 -0
  349. package/dist/esm/{chunk-54KMG7NX.js → chunk-TKSG7KBZ.js} +2 -2
  350. package/dist/esm/{chunk-WDDO73O5.js → chunk-UEHCCJYY.js} +2 -2
  351. package/dist/esm/chunk-UMIDPKFZ.js +2 -0
  352. package/dist/esm/chunk-UMIDPKFZ.js.map +7 -0
  353. package/dist/esm/chunk-UW5IJ64A.js +5 -0
  354. package/dist/esm/chunk-UW5IJ64A.js.map +7 -0
  355. package/dist/esm/{chunk-KSZOVI57.js → chunk-VCU6VCPH.js} +2 -2
  356. package/dist/esm/chunk-VCU6VCPH.js.map +7 -0
  357. package/dist/esm/{chunk-R372ULQC.js → chunk-VJOJGAGA.js} +2 -2
  358. package/dist/esm/chunk-VNONKPH7.js +2 -0
  359. package/dist/esm/chunk-VNONKPH7.js.map +7 -0
  360. package/dist/esm/chunk-VOEZ5HJL.js +2 -0
  361. package/dist/esm/chunk-VOEZ5HJL.js.map +7 -0
  362. package/dist/esm/chunk-W7YHNMAO.js +2 -0
  363. package/dist/esm/chunk-W7YHNMAO.js.map +7 -0
  364. package/dist/esm/chunk-WQT6UULR.js +2 -0
  365. package/dist/esm/chunk-WQT6UULR.js.map +7 -0
  366. package/dist/esm/chunk-WW7WTPM6.js +2 -0
  367. package/dist/esm/chunk-WW7WTPM6.js.map +7 -0
  368. package/dist/esm/{chunk-ZWZGUBL4.js → chunk-WWF3IU3P.js} +1 -1
  369. package/dist/esm/chunk-WWF3IU3P.js.map +7 -0
  370. package/dist/esm/chunk-XEW4BRIL.js +2 -0
  371. package/dist/esm/chunk-XEW4BRIL.js.map +7 -0
  372. package/dist/esm/chunk-YB7CENHH.js +2 -0
  373. package/dist/esm/chunk-YB7CENHH.js.map +7 -0
  374. package/dist/esm/chunk-YEIZ43KW.js +2 -0
  375. package/dist/esm/chunk-YEIZ43KW.js.map +7 -0
  376. package/dist/esm/chunk-ZCWDURKJ.js +2 -0
  377. package/dist/esm/chunk-ZCWDURKJ.js.map +7 -0
  378. package/dist/esm/components/_internal/base-button.d.ts +2 -4
  379. package/dist/esm/components/_internal/base-button.d.ts.map +1 -1
  380. package/dist/esm/components/_internal/base-button.js +1 -1
  381. package/dist/esm/components/_internal/base-button.props.d.ts +1 -9
  382. package/dist/esm/components/_internal/base-button.props.d.ts.map +1 -1
  383. package/dist/esm/components/_internal/base-button.props.js +1 -1
  384. package/dist/esm/components/_internal/base-checkbox.props.js +1 -1
  385. package/dist/esm/components/_internal/base-menu.props.js +1 -1
  386. package/dist/esm/components/_internal/base-menu.utils.js +1 -1
  387. package/dist/esm/components/_internal/base-radio.props.js +1 -1
  388. package/dist/esm/components/_internal/base-tab-list.props.js +1 -1
  389. package/dist/esm/components/_internal/menu-context.js +1 -1
  390. package/dist/esm/components/_internal/pane-chrome.js +1 -1
  391. package/dist/esm/components/_internal/shell-sidebar.js +1 -1
  392. package/dist/esm/components/accordion.d.ts.map +1 -1
  393. package/dist/esm/components/accordion.js +1 -1
  394. package/dist/esm/components/accordion.props.d.ts +0 -5
  395. package/dist/esm/components/accordion.props.d.ts.map +1 -1
  396. package/dist/esm/components/accordion.props.js +1 -1
  397. package/dist/esm/components/alert-dialog.js +1 -1
  398. package/dist/esm/components/avatar.d.ts +1 -2
  399. package/dist/esm/components/avatar.d.ts.map +1 -1
  400. package/dist/esm/components/avatar.js +1 -1
  401. package/dist/esm/components/avatar.props.d.ts.map +1 -1
  402. package/dist/esm/components/avatar.props.js +1 -1
  403. package/dist/esm/components/blockquote.d.ts +1 -2
  404. package/dist/esm/components/blockquote.d.ts.map +1 -1
  405. package/dist/esm/components/blockquote.js +1 -1
  406. package/dist/esm/components/blockquote.props.js +1 -1
  407. package/dist/esm/components/box.js +1 -1
  408. package/dist/esm/components/button.d.ts +23 -7
  409. package/dist/esm/components/button.d.ts.map +1 -1
  410. package/dist/esm/components/button.js +1 -1
  411. package/dist/esm/components/button.props.js +1 -1
  412. package/dist/esm/components/card.d.ts +1 -2
  413. package/dist/esm/components/card.d.ts.map +1 -1
  414. package/dist/esm/components/card.js +1 -1
  415. package/dist/esm/components/chatbar.d.ts +2 -3
  416. package/dist/esm/components/chatbar.d.ts.map +1 -1
  417. package/dist/esm/components/chatbar.js +1 -1
  418. package/dist/esm/components/checkbox-group.d.ts +2 -3
  419. package/dist/esm/components/checkbox-group.d.ts.map +1 -1
  420. package/dist/esm/components/checkbox-group.js +1 -1
  421. package/dist/esm/components/checkbox-group.props.js +1 -1
  422. package/dist/esm/components/checkbox.d.ts +1 -2
  423. package/dist/esm/components/checkbox.d.ts.map +1 -1
  424. package/dist/esm/components/checkbox.js +1 -1
  425. package/dist/esm/components/checkbox.props.js +1 -1
  426. package/dist/esm/components/chip.d.ts +18 -0
  427. package/dist/esm/components/chip.d.ts.map +1 -0
  428. package/dist/esm/components/chip.js +2 -0
  429. package/dist/esm/components/{badge.props.d.ts → chip.props.d.ts} +3 -3
  430. package/dist/esm/components/chip.props.d.ts.map +1 -0
  431. package/dist/esm/components/chip.props.js +2 -0
  432. package/dist/esm/components/code.d.ts +1 -2
  433. package/dist/esm/components/code.d.ts.map +1 -1
  434. package/dist/esm/components/code.js +1 -1
  435. package/dist/esm/components/code.props.js +1 -1
  436. package/dist/esm/components/combobox.d.ts +1 -2
  437. package/dist/esm/components/combobox.d.ts.map +1 -1
  438. package/dist/esm/components/combobox.js +1 -1
  439. package/dist/esm/components/combobox.props.js +1 -1
  440. package/dist/esm/components/context-menu.js +1 -1
  441. package/dist/esm/components/context-menu.props.js +1 -1
  442. package/dist/esm/components/dialog.js +1 -1
  443. package/dist/esm/components/dropdown-menu.js +1 -1
  444. package/dist/esm/components/dropdown-menu.props.js +1 -1
  445. package/dist/esm/components/flex.js +1 -1
  446. package/dist/esm/components/grid.js +1 -1
  447. package/dist/esm/components/heading.d.ts +1 -2
  448. package/dist/esm/components/heading.d.ts.map +1 -1
  449. package/dist/esm/components/heading.js +1 -1
  450. package/dist/esm/components/heading.props.js +1 -1
  451. package/dist/esm/components/index.d.ts +2 -18
  452. package/dist/esm/components/index.d.ts.map +1 -1
  453. package/dist/esm/components/index.js +1 -1
  454. package/dist/esm/components/kbd.d.ts +1 -2
  455. package/dist/esm/components/kbd.d.ts.map +1 -1
  456. package/dist/esm/components/kbd.js +1 -1
  457. package/dist/esm/components/link.d.ts +1 -2
  458. package/dist/esm/components/link.d.ts.map +1 -1
  459. package/dist/esm/components/link.js +1 -1
  460. package/dist/esm/components/link.props.js +1 -1
  461. package/dist/esm/components/message-scroller.d.ts +2 -3
  462. package/dist/esm/components/message-scroller.d.ts.map +1 -1
  463. package/dist/esm/components/message-scroller.js +1 -1
  464. package/dist/esm/components/navbar.d.ts +14 -6
  465. package/dist/esm/components/navbar.d.ts.map +1 -1
  466. package/dist/esm/components/navbar.js +1 -1
  467. package/dist/esm/components/notice.d.ts.map +1 -1
  468. package/dist/esm/components/notice.js +1 -1
  469. package/dist/esm/components/popover.js +1 -1
  470. package/dist/esm/components/progress.d.ts +1 -2
  471. package/dist/esm/components/progress.d.ts.map +1 -1
  472. package/dist/esm/components/progress.js +1 -1
  473. package/dist/esm/components/progress.props.js +1 -1
  474. package/dist/esm/components/radio-group.d.ts +2 -3
  475. package/dist/esm/components/radio-group.d.ts.map +1 -1
  476. package/dist/esm/components/radio-group.js +1 -1
  477. package/dist/esm/components/radio-group.props.js +1 -1
  478. package/dist/esm/components/radio.d.ts +1 -2
  479. package/dist/esm/components/radio.d.ts.map +1 -1
  480. package/dist/esm/components/radio.js +1 -1
  481. package/dist/esm/components/radio.props.js +1 -1
  482. package/dist/esm/components/schemas/base-button.schema.d.ts +2 -3
  483. package/dist/esm/components/schemas/base-button.schema.d.ts.map +1 -1
  484. package/dist/esm/components/schemas/base-button.schema.js +1 -1
  485. package/dist/esm/components/schemas/button.schema.d.ts +0 -1
  486. package/dist/esm/components/schemas/button.schema.d.ts.map +1 -1
  487. package/dist/esm/components/schemas/button.schema.js +1 -1
  488. package/dist/esm/components/schemas/index.d.ts +2 -6
  489. package/dist/esm/components/schemas/index.d.ts.map +1 -1
  490. package/dist/esm/components/schemas/index.js +1 -1
  491. package/dist/esm/components/schemas/index.js.map +2 -2
  492. package/dist/esm/components/schemas/{toggle-button.schema.d.ts → toggle.schema.d.ts} +13 -38
  493. package/dist/esm/components/schemas/toggle.schema.d.ts.map +1 -0
  494. package/dist/esm/components/schemas/toggle.schema.js +2 -0
  495. package/dist/esm/components/scroll-area.d.ts +1 -2
  496. package/dist/esm/components/scroll-area.d.ts.map +1 -1
  497. package/dist/esm/components/scroll-area.js +1 -1
  498. package/dist/esm/components/segmented-control.d.ts +1 -2
  499. package/dist/esm/components/segmented-control.d.ts.map +1 -1
  500. package/dist/esm/components/segmented-control.js +1 -1
  501. package/dist/esm/components/select.d.ts +1 -2
  502. package/dist/esm/components/select.d.ts.map +1 -1
  503. package/dist/esm/components/select.js +1 -1
  504. package/dist/esm/components/select.props.js +1 -1
  505. package/dist/esm/components/separator.d.ts +1 -2
  506. package/dist/esm/components/separator.d.ts.map +1 -1
  507. package/dist/esm/components/separator.js +1 -1
  508. package/dist/esm/components/separator.props.js +1 -1
  509. package/dist/esm/components/sheet.js +1 -1
  510. package/dist/esm/components/shell.js +1 -1
  511. package/dist/esm/components/sidebar.d.ts +5 -5
  512. package/dist/esm/components/sidebar.d.ts.map +1 -1
  513. package/dist/esm/components/sidebar.js +1 -1
  514. package/dist/esm/components/slider.d.ts +1 -2
  515. package/dist/esm/components/slider.d.ts.map +1 -1
  516. package/dist/esm/components/slider.js +1 -1
  517. package/dist/esm/components/slider.props.js +1 -1
  518. package/dist/esm/components/spinner.d.ts +1 -2
  519. package/dist/esm/components/spinner.d.ts.map +1 -1
  520. package/dist/esm/components/spinner.js +1 -1
  521. package/dist/esm/components/switch.d.ts +1 -2
  522. package/dist/esm/components/switch.d.ts.map +1 -1
  523. package/dist/esm/components/switch.js +1 -1
  524. package/dist/esm/components/switch.props.js +1 -1
  525. package/dist/esm/components/table.d.ts +1 -2
  526. package/dist/esm/components/table.d.ts.map +1 -1
  527. package/dist/esm/components/table.js +1 -1
  528. package/dist/esm/components/tabs.d.ts +3 -4
  529. package/dist/esm/components/tabs.d.ts.map +1 -1
  530. package/dist/esm/components/tabs.js +1 -1
  531. package/dist/esm/components/tabs.props.js +1 -1
  532. package/dist/esm/components/text-area.d.ts +1 -2
  533. package/dist/esm/components/text-area.d.ts.map +1 -1
  534. package/dist/esm/components/text-area.js +1 -1
  535. package/dist/esm/components/text-area.props.js +1 -1
  536. package/dist/esm/components/text-field.d.ts +1 -2
  537. package/dist/esm/components/text-field.d.ts.map +1 -1
  538. package/dist/esm/components/text-field.js +1 -1
  539. package/dist/esm/components/text-field.props.js +1 -1
  540. package/dist/esm/components/text.d.ts +1 -2
  541. package/dist/esm/components/text.d.ts.map +1 -1
  542. package/dist/esm/components/text.js +1 -1
  543. package/dist/esm/components/text.props.js +1 -1
  544. package/dist/esm/components/theme.js +1 -1
  545. package/dist/esm/components/theme.props.js +1 -1
  546. package/dist/esm/components/toggle.d.ts +35 -0
  547. package/dist/esm/components/toggle.d.ts.map +1 -0
  548. package/dist/esm/components/toggle.js +2 -0
  549. package/dist/esm/components/toolbar.d.ts +2 -3
  550. package/dist/esm/components/toolbar.d.ts.map +1 -1
  551. package/dist/esm/components/toolbar.js +1 -1
  552. package/dist/esm/components/tooltip.js +1 -1
  553. package/dist/esm/components/virtual-menu.js +1 -1
  554. package/dist/esm/helpers/extract-props.js +1 -1
  555. package/dist/esm/helpers/get-margin-styles.js +1 -1
  556. package/dist/esm/helpers/get-responsive-styles.js +1 -1
  557. package/dist/esm/helpers/index.js +1 -1
  558. package/dist/esm/helpers/inert.js +1 -1
  559. package/dist/esm/helpers/inert.js.map +4 -4
  560. package/dist/esm/hooks/index.js +1 -1
  561. package/dist/esm/hooks/use-prop-synced-state.d.ts +1 -1
  562. package/dist/esm/hooks/use-prop-synced-state.js +1 -1
  563. package/dist/esm/hooks/use-toggle-state.d.ts +1 -1
  564. package/dist/esm/hooks/use-toggle-state.js +1 -1
  565. package/dist/esm/index.js +1 -1
  566. package/dist/esm/props/color.prop.js +1 -1
  567. package/dist/esm/props/emphasis.prop.js +1 -1
  568. package/dist/esm/props/index.d.ts +1 -14
  569. package/dist/esm/props/index.d.ts.map +1 -1
  570. package/dist/esm/props/index.js +1 -1
  571. package/layout/components.css +0 -223
  572. package/layout.css +0 -221
  573. package/package.json +1 -1
  574. package/schemas/base-button.json +0 -5
  575. package/schemas/button.json +0 -5
  576. package/schemas/index.json +14 -629
  577. package/schemas/schemas.d.ts +2 -6
  578. package/schemas/{toggle-button.json → toggle.json} +4 -9
  579. package/src/components/_internal/base-button.css +2 -36
  580. package/src/components/_internal/base-button.props.ts +1 -7
  581. package/src/components/_internal/base-button.tsx +3 -9
  582. package/src/components/_internal/base-checkbox.css +3 -8
  583. package/src/components/_internal/base-menu.css +10 -6
  584. package/src/components/_internal/base-radio.css +2 -7
  585. package/src/components/_internal/base-sidebar-menu.css +3 -2
  586. package/src/components/_internal/base-tab-list.css +3 -4
  587. package/src/components/accordion.css +0 -33
  588. package/src/components/accordion.props.tsx +0 -3
  589. package/src/components/accordion.tsx +1 -2
  590. package/src/components/alert-dialog.tsx +1 -1
  591. package/src/components/avatar.tsx +2 -4
  592. package/src/components/blockquote.tsx +0 -2
  593. package/src/components/button.css +4 -3
  594. package/src/components/button.tsx +34 -19
  595. package/src/components/card.tsx +2 -4
  596. package/src/components/chatbar.css +2 -2
  597. package/src/components/chatbar.tsx +8 -7
  598. package/src/components/checkbox-group.tsx +2 -7
  599. package/src/components/checkbox.tsx +1 -4
  600. package/src/components/{badge.css → chip.css} +9 -9
  601. package/src/components/{badge.props.tsx → chip.props.tsx} +2 -2
  602. package/src/components/{badge.tsx → chip.tsx} +20 -23
  603. package/src/components/code.tsx +0 -4
  604. package/src/components/combobox.css +2 -2
  605. package/src/components/combobox.tsx +2 -4
  606. package/src/components/dialog.tsx +1 -1
  607. package/src/components/dropdown-menu.css +4 -4
  608. package/src/components/heading.tsx +2 -5
  609. package/src/components/index.css +2 -15
  610. package/src/components/index.tsx +2 -23
  611. package/src/components/kbd.tsx +2 -4
  612. package/src/components/layout.css +0 -2
  613. package/src/components/link.tsx +1 -2
  614. package/src/components/message-scroller.tsx +6 -5
  615. package/src/components/navbar.tsx +7 -3
  616. package/src/components/notice.tsx +2 -3
  617. package/src/components/progress.tsx +1 -5
  618. package/src/components/radio-group.tsx +3 -8
  619. package/src/components/radio.tsx +1 -4
  620. package/src/components/schemas/base-button.schema.ts +2 -13
  621. package/src/components/schemas/index.ts +3 -11
  622. package/src/components/schemas/{toggle-button.schema.ts → toggle.schema.ts} +18 -38
  623. package/src/components/scroll-area.tsx +3 -11
  624. package/src/components/segmented-control.css +8 -5
  625. package/src/components/segmented-control.tsx +2 -5
  626. package/src/components/select.tsx +0 -4
  627. package/src/components/separator.tsx +2 -4
  628. package/src/components/sidebar.css +10 -10
  629. package/src/components/sidebar.tsx +15 -15
  630. package/src/components/slider.css +1 -2
  631. package/src/components/slider.tsx +0 -4
  632. package/src/components/spinner.tsx +1 -5
  633. package/src/components/switch.tsx +0 -4
  634. package/src/components/table.tsx +1 -5
  635. package/src/components/tabs.tsx +2 -8
  636. package/src/components/text-area.css +2 -1
  637. package/src/components/text-area.tsx +1 -4
  638. package/src/components/text-field.css +4 -2
  639. package/src/components/text-field.tsx +2 -4
  640. package/src/components/text.tsx +2 -5
  641. package/src/components/theme.tsx +1 -1
  642. package/src/components/toggle.tsx +96 -0
  643. package/src/components/toolbar.tsx +6 -12
  644. package/src/hooks/use-prop-synced-state.ts +1 -1
  645. package/src/hooks/use-toggle-state.ts +1 -1
  646. package/src/props/color.prop.ts +1 -1
  647. package/src/props/emphasis.prop.ts +2 -2
  648. package/src/props/index.ts +1 -14
  649. package/src/styles/tokens/color.css +1 -1
  650. package/styles.css +900 -2667
  651. package/dist/cjs/components/aspect-ratio.d.ts +0 -4
  652. package/dist/cjs/components/aspect-ratio.d.ts.map +0 -1
  653. package/dist/cjs/components/aspect-ratio.js +0 -2
  654. package/dist/cjs/components/aspect-ratio.js.map +0 -7
  655. package/dist/cjs/components/badge.d.ts +0 -19
  656. package/dist/cjs/components/badge.d.ts.map +0 -1
  657. package/dist/cjs/components/badge.js +0 -2
  658. package/dist/cjs/components/badge.js.map +0 -7
  659. package/dist/cjs/components/badge.props.d.ts.map +0 -1
  660. package/dist/cjs/components/badge.props.js +0 -2
  661. package/dist/cjs/components/badge.props.js.map +0 -7
  662. package/dist/cjs/components/checkbox-cards.d.ts +0 -19
  663. package/dist/cjs/components/checkbox-cards.d.ts.map +0 -1
  664. package/dist/cjs/components/checkbox-cards.js +0 -2
  665. package/dist/cjs/components/checkbox-cards.js.map +0 -7
  666. package/dist/cjs/components/checkbox-cards.props.d.ts +0 -43
  667. package/dist/cjs/components/checkbox-cards.props.d.ts.map +0 -1
  668. package/dist/cjs/components/checkbox-cards.props.js +0 -2
  669. package/dist/cjs/components/checkbox-cards.props.js.map +0 -7
  670. package/dist/cjs/components/container.d.ts +0 -11
  671. package/dist/cjs/components/container.d.ts.map +0 -1
  672. package/dist/cjs/components/container.js +0 -2
  673. package/dist/cjs/components/container.js.map +0 -7
  674. package/dist/cjs/components/container.props.d.ts +0 -68
  675. package/dist/cjs/components/container.props.d.ts.map +0 -1
  676. package/dist/cjs/components/container.props.js +0 -2
  677. package/dist/cjs/components/container.props.js.map +0 -7
  678. package/dist/cjs/components/data-list.d.ts +0 -23
  679. package/dist/cjs/components/data-list.d.ts.map +0 -1
  680. package/dist/cjs/components/data-list.js +0 -2
  681. package/dist/cjs/components/data-list.js.map +0 -7
  682. package/dist/cjs/components/data-list.props.d.ts +0 -63
  683. package/dist/cjs/components/data-list.props.d.ts.map +0 -1
  684. package/dist/cjs/components/data-list.props.js +0 -2
  685. package/dist/cjs/components/data-list.props.js.map +0 -7
  686. package/dist/cjs/components/em.d.ts +0 -11
  687. package/dist/cjs/components/em.d.ts.map +0 -1
  688. package/dist/cjs/components/em.js +0 -2
  689. package/dist/cjs/components/em.js.map +0 -7
  690. package/dist/cjs/components/em.props.d.ts +0 -17
  691. package/dist/cjs/components/em.props.d.ts.map +0 -1
  692. package/dist/cjs/components/em.props.js +0 -2
  693. package/dist/cjs/components/em.props.js.map +0 -7
  694. package/dist/cjs/components/hover-card.d.ts +0 -17
  695. package/dist/cjs/components/hover-card.d.ts.map +0 -1
  696. package/dist/cjs/components/hover-card.js +0 -2
  697. package/dist/cjs/components/hover-card.js.map +0 -7
  698. package/dist/cjs/components/hover-card.props.d.ts +0 -57
  699. package/dist/cjs/components/hover-card.props.d.ts.map +0 -1
  700. package/dist/cjs/components/hover-card.props.js +0 -2
  701. package/dist/cjs/components/hover-card.props.js.map +0 -7
  702. package/dist/cjs/components/icon-button.d.ts +0 -108
  703. package/dist/cjs/components/icon-button.d.ts.map +0 -1
  704. package/dist/cjs/components/icon-button.js +0 -5
  705. package/dist/cjs/components/icon-button.js.map +0 -7
  706. package/dist/cjs/components/icon-button.props.d.ts +0 -2
  707. package/dist/cjs/components/icon-button.props.d.ts.map +0 -1
  708. package/dist/cjs/components/icon-button.props.js +0 -2
  709. package/dist/cjs/components/icon-button.props.js.map +0 -7
  710. package/dist/cjs/components/image.d.ts +0 -96
  711. package/dist/cjs/components/image.d.ts.map +0 -1
  712. package/dist/cjs/components/image.js +0 -2
  713. package/dist/cjs/components/image.js.map +0 -7
  714. package/dist/cjs/components/image.props.d.ts +0 -147
  715. package/dist/cjs/components/image.props.d.ts.map +0 -1
  716. package/dist/cjs/components/image.props.js +0 -2
  717. package/dist/cjs/components/image.props.js.map +0 -7
  718. package/dist/cjs/components/quote.d.ts +0 -11
  719. package/dist/cjs/components/quote.d.ts.map +0 -1
  720. package/dist/cjs/components/quote.js +0 -2
  721. package/dist/cjs/components/quote.js.map +0 -7
  722. package/dist/cjs/components/quote.props.d.ts +0 -17
  723. package/dist/cjs/components/quote.props.d.ts.map +0 -1
  724. package/dist/cjs/components/quote.props.js +0 -2
  725. package/dist/cjs/components/quote.props.js.map +0 -7
  726. package/dist/cjs/components/radio-cards.d.ts +0 -16
  727. package/dist/cjs/components/radio-cards.d.ts.map +0 -1
  728. package/dist/cjs/components/radio-cards.js +0 -2
  729. package/dist/cjs/components/radio-cards.js.map +0 -7
  730. package/dist/cjs/components/radio-cards.props.d.ts +0 -43
  731. package/dist/cjs/components/radio-cards.props.d.ts.map +0 -1
  732. package/dist/cjs/components/radio-cards.props.js +0 -2
  733. package/dist/cjs/components/radio-cards.props.js.map +0 -7
  734. package/dist/cjs/components/schemas/icon-button.schema.d.ts +0 -201
  735. package/dist/cjs/components/schemas/icon-button.schema.d.ts.map +0 -1
  736. package/dist/cjs/components/schemas/icon-button.schema.js +0 -2
  737. package/dist/cjs/components/schemas/icon-button.schema.js.map +0 -7
  738. package/dist/cjs/components/schemas/toggle-button.schema.d.ts.map +0 -1
  739. package/dist/cjs/components/schemas/toggle-button.schema.js +0 -2
  740. package/dist/cjs/components/schemas/toggle-button.schema.js.map +0 -7
  741. package/dist/cjs/components/schemas/toggle-icon-button.schema.d.ts +0 -211
  742. package/dist/cjs/components/schemas/toggle-icon-button.schema.d.ts.map +0 -1
  743. package/dist/cjs/components/schemas/toggle-icon-button.schema.js +0 -2
  744. package/dist/cjs/components/schemas/toggle-icon-button.schema.js.map +0 -7
  745. package/dist/cjs/components/section.d.ts +0 -11
  746. package/dist/cjs/components/section.d.ts.map +0 -1
  747. package/dist/cjs/components/section.js +0 -2
  748. package/dist/cjs/components/section.js.map +0 -7
  749. package/dist/cjs/components/section.props.d.ts +0 -52
  750. package/dist/cjs/components/section.props.d.ts.map +0 -1
  751. package/dist/cjs/components/section.props.js +0 -2
  752. package/dist/cjs/components/section.props.js.map +0 -7
  753. package/dist/cjs/components/skeleton.d.ts +0 -12
  754. package/dist/cjs/components/skeleton.d.ts.map +0 -1
  755. package/dist/cjs/components/skeleton.js +0 -2
  756. package/dist/cjs/components/skeleton.js.map +0 -7
  757. package/dist/cjs/components/skeleton.props.d.ts +0 -44
  758. package/dist/cjs/components/skeleton.props.d.ts.map +0 -1
  759. package/dist/cjs/components/skeleton.props.js +0 -2
  760. package/dist/cjs/components/skeleton.props.js.map +0 -7
  761. package/dist/cjs/components/strong.d.ts +0 -11
  762. package/dist/cjs/components/strong.d.ts.map +0 -1
  763. package/dist/cjs/components/strong.js +0 -2
  764. package/dist/cjs/components/strong.js.map +0 -7
  765. package/dist/cjs/components/strong.props.d.ts +0 -17
  766. package/dist/cjs/components/strong.props.d.ts.map +0 -1
  767. package/dist/cjs/components/strong.props.js +0 -2
  768. package/dist/cjs/components/strong.props.js.map +0 -7
  769. package/dist/cjs/components/tab-nav.d.ts +0 -19
  770. package/dist/cjs/components/tab-nav.d.ts.map +0 -1
  771. package/dist/cjs/components/tab-nav.js +0 -2
  772. package/dist/cjs/components/tab-nav.js.map +0 -7
  773. package/dist/cjs/components/tab-nav.props.d.ts +0 -12
  774. package/dist/cjs/components/tab-nav.props.d.ts.map +0 -1
  775. package/dist/cjs/components/tab-nav.props.js +0 -2
  776. package/dist/cjs/components/tab-nav.props.js.map +0 -7
  777. package/dist/cjs/components/theme-panel.d.ts +0 -25
  778. package/dist/cjs/components/theme-panel.d.ts.map +0 -1
  779. package/dist/cjs/components/theme-panel.js +0 -13
  780. package/dist/cjs/components/theme-panel.js.map +0 -7
  781. package/dist/cjs/components/toggle-button.d.ts +0 -63
  782. package/dist/cjs/components/toggle-button.d.ts.map +0 -1
  783. package/dist/cjs/components/toggle-button.js +0 -13
  784. package/dist/cjs/components/toggle-button.js.map +0 -7
  785. package/dist/cjs/components/toggle-icon-button.d.ts +0 -109
  786. package/dist/cjs/components/toggle-icon-button.d.ts.map +0 -1
  787. package/dist/cjs/components/toggle-icon-button.js +0 -13
  788. package/dist/cjs/components/toggle-icon-button.js.map +0 -7
  789. package/dist/esm/chunk-33IRPFDK.js +0 -2
  790. package/dist/esm/chunk-33IRPFDK.js.map +0 -7
  791. package/dist/esm/chunk-3E6ADI2F.js +0 -2
  792. package/dist/esm/chunk-3E6ADI2F.js.map +0 -7
  793. package/dist/esm/chunk-42LDZ7L5.js +0 -2
  794. package/dist/esm/chunk-42LDZ7L5.js.map +0 -7
  795. package/dist/esm/chunk-43A5GUSI.js +0 -2
  796. package/dist/esm/chunk-43A5GUSI.js.map +0 -7
  797. package/dist/esm/chunk-4JQZUQY7.js +0 -2
  798. package/dist/esm/chunk-4JQZUQY7.js.map +0 -7
  799. package/dist/esm/chunk-534LGOWC.js +0 -2
  800. package/dist/esm/chunk-534LGOWC.js.map +0 -7
  801. package/dist/esm/chunk-5UU2IMGX.js +0 -2
  802. package/dist/esm/chunk-5UU2IMGX.js.map +0 -7
  803. package/dist/esm/chunk-74SNS4VY.js +0 -2
  804. package/dist/esm/chunk-74SNS4VY.js.map +0 -7
  805. package/dist/esm/chunk-7FC7HF76.js +0 -2
  806. package/dist/esm/chunk-7FC7HF76.js.map +0 -7
  807. package/dist/esm/chunk-7KIKAEI7.js +0 -2
  808. package/dist/esm/chunk-7KIKAEI7.js.map +0 -7
  809. package/dist/esm/chunk-7SS6EIE5.js +0 -5
  810. package/dist/esm/chunk-7SS6EIE5.js.map +0 -7
  811. package/dist/esm/chunk-7UV4FYYL.js +0 -2
  812. package/dist/esm/chunk-7UV4FYYL.js.map +0 -7
  813. package/dist/esm/chunk-ABS275QZ.js +0 -2
  814. package/dist/esm/chunk-AI6UQ5VD.js +0 -2
  815. package/dist/esm/chunk-AI6UQ5VD.js.map +0 -7
  816. package/dist/esm/chunk-AUV6B4AH.js +0 -2
  817. package/dist/esm/chunk-AUV6B4AH.js.map +0 -7
  818. package/dist/esm/chunk-BQS6XXJR.js +0 -2
  819. package/dist/esm/chunk-BQS6XXJR.js.map +0 -7
  820. package/dist/esm/chunk-CC4GNSKL.js +0 -2
  821. package/dist/esm/chunk-CC4GNSKL.js.map +0 -7
  822. package/dist/esm/chunk-CNMFVJNC.js +0 -2
  823. package/dist/esm/chunk-CNMFVJNC.js.map +0 -7
  824. package/dist/esm/chunk-D2ZHYCTG.js +0 -2
  825. package/dist/esm/chunk-D2ZHYCTG.js.map +0 -7
  826. package/dist/esm/chunk-DMWLY6ZP.js +0 -2
  827. package/dist/esm/chunk-E453PYTG.js +0 -2
  828. package/dist/esm/chunk-E453PYTG.js.map +0 -7
  829. package/dist/esm/chunk-EUHAZKWY.js +0 -2
  830. package/dist/esm/chunk-EUHAZKWY.js.map +0 -7
  831. package/dist/esm/chunk-F2UUKVBM.js +0 -1
  832. package/dist/esm/chunk-F7HK2QLM.js +0 -2
  833. package/dist/esm/chunk-FNRKTMNN.js +0 -2
  834. package/dist/esm/chunk-FNRKTMNN.js.map +0 -7
  835. package/dist/esm/chunk-FSKZAL5H.js +0 -2
  836. package/dist/esm/chunk-FSKZAL5H.js.map +0 -7
  837. package/dist/esm/chunk-GDACOD53.js +0 -2
  838. package/dist/esm/chunk-GDACOD53.js.map +0 -7
  839. package/dist/esm/chunk-GFOSP3PZ.js +0 -2
  840. package/dist/esm/chunk-GFOSP3PZ.js.map +0 -7
  841. package/dist/esm/chunk-GLERJXVS.js +0 -2
  842. package/dist/esm/chunk-GLERJXVS.js.map +0 -7
  843. package/dist/esm/chunk-GPVPXAUC.js +0 -2
  844. package/dist/esm/chunk-GPVPXAUC.js.map +0 -7
  845. package/dist/esm/chunk-GTXRD4FZ.js.map +0 -7
  846. package/dist/esm/chunk-HJ6ACBXW.js +0 -2
  847. package/dist/esm/chunk-HJ6ACBXW.js.map +0 -7
  848. package/dist/esm/chunk-HJZNHNLX.js +0 -2
  849. package/dist/esm/chunk-HJZNHNLX.js.map +0 -7
  850. package/dist/esm/chunk-HT5EFJA3.js +0 -2
  851. package/dist/esm/chunk-HT5EFJA3.js.map +0 -7
  852. package/dist/esm/chunk-HVXXJZC2.js +0 -2
  853. package/dist/esm/chunk-HVXXJZC2.js.map +0 -7
  854. package/dist/esm/chunk-IBF5U4QW.js +0 -2
  855. package/dist/esm/chunk-IBF5U4QW.js.map +0 -7
  856. package/dist/esm/chunk-JQURG6CB.js +0 -2
  857. package/dist/esm/chunk-JQURG6CB.js.map +0 -7
  858. package/dist/esm/chunk-KRPEEM4C.js +0 -2
  859. package/dist/esm/chunk-KRPEEM4C.js.map +0 -7
  860. package/dist/esm/chunk-KSZOVI57.js.map +0 -7
  861. package/dist/esm/chunk-L6UXAITB.js +0 -2
  862. package/dist/esm/chunk-L6UXAITB.js.map +0 -7
  863. package/dist/esm/chunk-LFUPGIPA.js +0 -2
  864. package/dist/esm/chunk-LFUPGIPA.js.map +0 -7
  865. package/dist/esm/chunk-MCQCG6AS.js +0 -2
  866. package/dist/esm/chunk-MCQCG6AS.js.map +0 -7
  867. package/dist/esm/chunk-MLXFZDFU.js +0 -2
  868. package/dist/esm/chunk-MLXFZDFU.js.map +0 -7
  869. package/dist/esm/chunk-N5OSP3PU.js +0 -2
  870. package/dist/esm/chunk-NCDOMH5I.js.map +0 -7
  871. package/dist/esm/chunk-NEK7F746.js +0 -5
  872. package/dist/esm/chunk-NEK7F746.js.map +0 -7
  873. package/dist/esm/chunk-NETIWKIR.js +0 -2
  874. package/dist/esm/chunk-NETIWKIR.js.map +0 -7
  875. package/dist/esm/chunk-NIX6Z3JG.js +0 -2
  876. package/dist/esm/chunk-NIX6Z3JG.js.map +0 -7
  877. package/dist/esm/chunk-NTGRWJEG.js +0 -2
  878. package/dist/esm/chunk-O7IPBLC7.js +0 -2
  879. package/dist/esm/chunk-O7IPBLC7.js.map +0 -7
  880. package/dist/esm/chunk-OLSTITVY.js +0 -2
  881. package/dist/esm/chunk-OLSTITVY.js.map +0 -7
  882. package/dist/esm/chunk-OMYAVTX6.js +0 -2
  883. package/dist/esm/chunk-OMYAVTX6.js.map +0 -7
  884. package/dist/esm/chunk-OXYHRNJA.js +0 -2
  885. package/dist/esm/chunk-PIMNQEDG.js +0 -2
  886. package/dist/esm/chunk-PIMNQEDG.js.map +0 -7
  887. package/dist/esm/chunk-PPNWGWN3.js +0 -2
  888. package/dist/esm/chunk-PPNWGWN3.js.map +0 -7
  889. package/dist/esm/chunk-Q5LPCJXN.js +0 -2
  890. package/dist/esm/chunk-Q5LPCJXN.js.map +0 -7
  891. package/dist/esm/chunk-Q6GUADLO.js +0 -2
  892. package/dist/esm/chunk-Q6GUADLO.js.map +0 -7
  893. package/dist/esm/chunk-QETAAJJV.js.map +0 -7
  894. package/dist/esm/chunk-QEYOXQK5.js +0 -2
  895. package/dist/esm/chunk-QOPRXQGR.js +0 -2
  896. package/dist/esm/chunk-QOPRXQGR.js.map +0 -7
  897. package/dist/esm/chunk-RUWKVDFT.js +0 -2
  898. package/dist/esm/chunk-RUWKVDFT.js.map +0 -7
  899. package/dist/esm/chunk-RVM4LGAU.js +0 -2
  900. package/dist/esm/chunk-RVM4LGAU.js.map +0 -7
  901. package/dist/esm/chunk-SKOF4A27.js +0 -10
  902. package/dist/esm/chunk-SKOF4A27.js.map +0 -7
  903. package/dist/esm/chunk-TLWCU336.js +0 -2
  904. package/dist/esm/chunk-TLWCU336.js.map +0 -7
  905. package/dist/esm/chunk-TQIR5LLY.js +0 -2
  906. package/dist/esm/chunk-TQIR5LLY.js.map +0 -7
  907. package/dist/esm/chunk-UUWGAQDT.js +0 -2
  908. package/dist/esm/chunk-UUWGAQDT.js.map +0 -7
  909. package/dist/esm/chunk-VLQ2LX5M.js +0 -2
  910. package/dist/esm/chunk-VLQ2LX5M.js.map +0 -7
  911. package/dist/esm/chunk-VTTJFBV6.js +0 -2
  912. package/dist/esm/chunk-VTTJFBV6.js.map +0 -7
  913. package/dist/esm/chunk-WAURCNAS.js.map +0 -7
  914. package/dist/esm/chunk-WSKA5MZZ.js +0 -2
  915. package/dist/esm/chunk-X7HFFVFD.js +0 -2
  916. package/dist/esm/chunk-X7HFFVFD.js.map +0 -7
  917. package/dist/esm/chunk-XASK6LMX.js +0 -2
  918. package/dist/esm/chunk-XASK6LMX.js.map +0 -7
  919. package/dist/esm/chunk-XDAQXNBQ.js +0 -2
  920. package/dist/esm/chunk-XDV2SDJ3.js +0 -2
  921. package/dist/esm/chunk-XDV2SDJ3.js.map +0 -7
  922. package/dist/esm/chunk-XI5YXUCK.js +0 -2
  923. package/dist/esm/chunk-XI5YXUCK.js.map +0 -7
  924. package/dist/esm/chunk-XPT5ELKO.js +0 -2
  925. package/dist/esm/chunk-XPT5ELKO.js.map +0 -7
  926. package/dist/esm/chunk-XXHIMGBY.js +0 -2
  927. package/dist/esm/chunk-XXHIMGBY.js.map +0 -7
  928. package/dist/esm/chunk-Y7LT3F6R.js +0 -2
  929. package/dist/esm/chunk-Y7LT3F6R.js.map +0 -7
  930. package/dist/esm/chunk-YKPMLM7M.js +0 -1
  931. package/dist/esm/chunk-YYZBPQQ4.js +0 -2
  932. package/dist/esm/chunk-YYZBPQQ4.js.map +0 -7
  933. package/dist/esm/chunk-Z6NRR7KS.js +0 -2
  934. package/dist/esm/chunk-Z6NRR7KS.js.map +0 -7
  935. package/dist/esm/chunk-ZIKJ2WZN.js +0 -2
  936. package/dist/esm/chunk-ZIKJ2WZN.js.map +0 -7
  937. package/dist/esm/chunk-ZMOBKT4T.js +0 -2
  938. package/dist/esm/chunk-ZMOBKT4T.js.map +0 -7
  939. package/dist/esm/chunk-ZRHXFYAE.js +0 -2
  940. package/dist/esm/chunk-ZRHXFYAE.js.map +0 -7
  941. package/dist/esm/chunk-ZWZGUBL4.js.map +0 -7
  942. package/dist/esm/components/aspect-ratio.d.ts +0 -4
  943. package/dist/esm/components/aspect-ratio.d.ts.map +0 -1
  944. package/dist/esm/components/aspect-ratio.js +0 -2
  945. package/dist/esm/components/badge.d.ts +0 -19
  946. package/dist/esm/components/badge.d.ts.map +0 -1
  947. package/dist/esm/components/badge.js +0 -2
  948. package/dist/esm/components/badge.props.d.ts.map +0 -1
  949. package/dist/esm/components/badge.props.js +0 -2
  950. package/dist/esm/components/checkbox-cards.d.ts +0 -19
  951. package/dist/esm/components/checkbox-cards.d.ts.map +0 -1
  952. package/dist/esm/components/checkbox-cards.js +0 -2
  953. package/dist/esm/components/checkbox-cards.js.map +0 -7
  954. package/dist/esm/components/checkbox-cards.props.d.ts +0 -43
  955. package/dist/esm/components/checkbox-cards.props.d.ts.map +0 -1
  956. package/dist/esm/components/checkbox-cards.props.js +0 -2
  957. package/dist/esm/components/checkbox-cards.props.js.map +0 -7
  958. package/dist/esm/components/container.d.ts +0 -11
  959. package/dist/esm/components/container.d.ts.map +0 -1
  960. package/dist/esm/components/container.js +0 -2
  961. package/dist/esm/components/container.js.map +0 -7
  962. package/dist/esm/components/container.props.d.ts +0 -68
  963. package/dist/esm/components/container.props.d.ts.map +0 -1
  964. package/dist/esm/components/container.props.js +0 -2
  965. package/dist/esm/components/container.props.js.map +0 -7
  966. package/dist/esm/components/data-list.d.ts +0 -23
  967. package/dist/esm/components/data-list.d.ts.map +0 -1
  968. package/dist/esm/components/data-list.js +0 -2
  969. package/dist/esm/components/data-list.js.map +0 -7
  970. package/dist/esm/components/data-list.props.d.ts +0 -63
  971. package/dist/esm/components/data-list.props.d.ts.map +0 -1
  972. package/dist/esm/components/data-list.props.js +0 -2
  973. package/dist/esm/components/data-list.props.js.map +0 -7
  974. package/dist/esm/components/em.d.ts +0 -11
  975. package/dist/esm/components/em.d.ts.map +0 -1
  976. package/dist/esm/components/em.js +0 -2
  977. package/dist/esm/components/em.js.map +0 -7
  978. package/dist/esm/components/em.props.d.ts +0 -17
  979. package/dist/esm/components/em.props.d.ts.map +0 -1
  980. package/dist/esm/components/em.props.js +0 -2
  981. package/dist/esm/components/em.props.js.map +0 -7
  982. package/dist/esm/components/hover-card.d.ts +0 -17
  983. package/dist/esm/components/hover-card.d.ts.map +0 -1
  984. package/dist/esm/components/hover-card.js +0 -2
  985. package/dist/esm/components/hover-card.js.map +0 -7
  986. package/dist/esm/components/hover-card.props.d.ts +0 -57
  987. package/dist/esm/components/hover-card.props.d.ts.map +0 -1
  988. package/dist/esm/components/hover-card.props.js +0 -2
  989. package/dist/esm/components/hover-card.props.js.map +0 -7
  990. package/dist/esm/components/icon-button.d.ts +0 -108
  991. package/dist/esm/components/icon-button.d.ts.map +0 -1
  992. package/dist/esm/components/icon-button.js +0 -2
  993. package/dist/esm/components/icon-button.js.map +0 -7
  994. package/dist/esm/components/icon-button.props.d.ts +0 -2
  995. package/dist/esm/components/icon-button.props.d.ts.map +0 -1
  996. package/dist/esm/components/icon-button.props.js +0 -2
  997. package/dist/esm/components/icon-button.props.js.map +0 -7
  998. package/dist/esm/components/image.d.ts +0 -96
  999. package/dist/esm/components/image.d.ts.map +0 -1
  1000. package/dist/esm/components/image.js +0 -2
  1001. package/dist/esm/components/image.js.map +0 -7
  1002. package/dist/esm/components/image.props.d.ts +0 -147
  1003. package/dist/esm/components/image.props.d.ts.map +0 -1
  1004. package/dist/esm/components/image.props.js +0 -2
  1005. package/dist/esm/components/image.props.js.map +0 -7
  1006. package/dist/esm/components/quote.d.ts +0 -11
  1007. package/dist/esm/components/quote.d.ts.map +0 -1
  1008. package/dist/esm/components/quote.js +0 -2
  1009. package/dist/esm/components/quote.js.map +0 -7
  1010. package/dist/esm/components/quote.props.d.ts +0 -17
  1011. package/dist/esm/components/quote.props.d.ts.map +0 -1
  1012. package/dist/esm/components/quote.props.js +0 -2
  1013. package/dist/esm/components/quote.props.js.map +0 -7
  1014. package/dist/esm/components/radio-cards.d.ts +0 -16
  1015. package/dist/esm/components/radio-cards.d.ts.map +0 -1
  1016. package/dist/esm/components/radio-cards.js +0 -2
  1017. package/dist/esm/components/radio-cards.js.map +0 -7
  1018. package/dist/esm/components/radio-cards.props.d.ts +0 -43
  1019. package/dist/esm/components/radio-cards.props.d.ts.map +0 -1
  1020. package/dist/esm/components/radio-cards.props.js +0 -2
  1021. package/dist/esm/components/radio-cards.props.js.map +0 -7
  1022. package/dist/esm/components/schemas/icon-button.schema.d.ts +0 -201
  1023. package/dist/esm/components/schemas/icon-button.schema.d.ts.map +0 -1
  1024. package/dist/esm/components/schemas/icon-button.schema.js +0 -2
  1025. package/dist/esm/components/schemas/icon-button.schema.js.map +0 -7
  1026. package/dist/esm/components/schemas/toggle-button.schema.d.ts.map +0 -1
  1027. package/dist/esm/components/schemas/toggle-button.schema.js +0 -2
  1028. package/dist/esm/components/schemas/toggle-button.schema.js.map +0 -7
  1029. package/dist/esm/components/schemas/toggle-icon-button.schema.d.ts +0 -211
  1030. package/dist/esm/components/schemas/toggle-icon-button.schema.d.ts.map +0 -1
  1031. package/dist/esm/components/schemas/toggle-icon-button.schema.js +0 -2
  1032. package/dist/esm/components/schemas/toggle-icon-button.schema.js.map +0 -7
  1033. package/dist/esm/components/section.d.ts +0 -11
  1034. package/dist/esm/components/section.d.ts.map +0 -1
  1035. package/dist/esm/components/section.js +0 -2
  1036. package/dist/esm/components/section.js.map +0 -7
  1037. package/dist/esm/components/section.props.d.ts +0 -52
  1038. package/dist/esm/components/section.props.d.ts.map +0 -1
  1039. package/dist/esm/components/section.props.js +0 -2
  1040. package/dist/esm/components/section.props.js.map +0 -7
  1041. package/dist/esm/components/skeleton.d.ts +0 -12
  1042. package/dist/esm/components/skeleton.d.ts.map +0 -1
  1043. package/dist/esm/components/skeleton.js +0 -2
  1044. package/dist/esm/components/skeleton.js.map +0 -7
  1045. package/dist/esm/components/skeleton.props.d.ts +0 -44
  1046. package/dist/esm/components/skeleton.props.d.ts.map +0 -1
  1047. package/dist/esm/components/skeleton.props.js +0 -2
  1048. package/dist/esm/components/skeleton.props.js.map +0 -7
  1049. package/dist/esm/components/strong.d.ts +0 -11
  1050. package/dist/esm/components/strong.d.ts.map +0 -1
  1051. package/dist/esm/components/strong.js +0 -2
  1052. package/dist/esm/components/strong.js.map +0 -7
  1053. package/dist/esm/components/strong.props.d.ts +0 -17
  1054. package/dist/esm/components/strong.props.d.ts.map +0 -1
  1055. package/dist/esm/components/strong.props.js +0 -2
  1056. package/dist/esm/components/strong.props.js.map +0 -7
  1057. package/dist/esm/components/tab-nav.d.ts +0 -19
  1058. package/dist/esm/components/tab-nav.d.ts.map +0 -1
  1059. package/dist/esm/components/tab-nav.js +0 -2
  1060. package/dist/esm/components/tab-nav.js.map +0 -7
  1061. package/dist/esm/components/tab-nav.props.d.ts +0 -12
  1062. package/dist/esm/components/tab-nav.props.d.ts.map +0 -1
  1063. package/dist/esm/components/tab-nav.props.js +0 -2
  1064. package/dist/esm/components/tab-nav.props.js.map +0 -7
  1065. package/dist/esm/components/theme-panel.d.ts +0 -25
  1066. package/dist/esm/components/theme-panel.d.ts.map +0 -1
  1067. package/dist/esm/components/theme-panel.js +0 -2
  1068. package/dist/esm/components/theme-panel.js.map +0 -7
  1069. package/dist/esm/components/toggle-button.d.ts +0 -63
  1070. package/dist/esm/components/toggle-button.d.ts.map +0 -1
  1071. package/dist/esm/components/toggle-button.js +0 -2
  1072. package/dist/esm/components/toggle-button.js.map +0 -7
  1073. package/dist/esm/components/toggle-icon-button.d.ts +0 -109
  1074. package/dist/esm/components/toggle-icon-button.d.ts.map +0 -1
  1075. package/dist/esm/components/toggle-icon-button.js +0 -2
  1076. package/dist/esm/components/toggle-icon-button.js.map +0 -7
  1077. package/schemas/icon-button.json +0 -296
  1078. package/schemas/toggle-button.d.ts +0 -2
  1079. package/schemas/toggle-icon-button.d.ts +0 -2
  1080. package/schemas/toggle-icon-button.json +0 -304
  1081. package/src/components/aspect-ratio.tsx +0 -3
  1082. package/src/components/checkbox-cards.css +0 -124
  1083. package/src/components/checkbox-cards.props.tsx +0 -27
  1084. package/src/components/checkbox-cards.tsx +0 -141
  1085. package/src/components/container.css +0 -43
  1086. package/src/components/container.props.tsx +0 -84
  1087. package/src/components/container.tsx +0 -59
  1088. package/src/components/data-list.css +0 -254
  1089. package/src/components/data-list.props.tsx +0 -57
  1090. package/src/components/data-list.tsx +0 -102
  1091. package/src/components/em.css +0 -16
  1092. package/src/components/em.props.tsx +0 -11
  1093. package/src/components/em.tsx +0 -22
  1094. package/src/components/hover-card.css +0 -39
  1095. package/src/components/hover-card.props.tsx +0 -37
  1096. package/src/components/hover-card.tsx +0 -74
  1097. package/src/components/icon-button.css +0 -9
  1098. package/src/components/icon-button.props.tsx +0 -1
  1099. package/src/components/icon-button.tsx +0 -110
  1100. package/src/components/image.css +0 -221
  1101. package/src/components/image.props.ts +0 -163
  1102. package/src/components/image.tsx +0 -308
  1103. package/src/components/quote.css +0 -16
  1104. package/src/components/quote.props.tsx +0 -11
  1105. package/src/components/quote.tsx +0 -22
  1106. package/src/components/radio-cards.css +0 -110
  1107. package/src/components/radio-cards.props.tsx +0 -27
  1108. package/src/components/radio-cards.tsx +0 -98
  1109. package/src/components/schemas/icon-button.schema.ts +0 -142
  1110. package/src/components/schemas/toggle-icon-button.schema.ts +0 -195
  1111. package/src/components/section.css +0 -25
  1112. package/src/components/section.props.tsx +0 -63
  1113. package/src/components/section.tsx +0 -36
  1114. package/src/components/skeleton.css +0 -55
  1115. package/src/components/skeleton.props.tsx +0 -14
  1116. package/src/components/skeleton.tsx +0 -48
  1117. package/src/components/strong.css +0 -13
  1118. package/src/components/strong.props.tsx +0 -11
  1119. package/src/components/strong.tsx +0 -24
  1120. package/src/components/tab-nav.css +0 -5
  1121. package/src/components/tab-nav.props.tsx +0 -13
  1122. package/src/components/tab-nav.tsx +0 -82
  1123. package/src/components/theme-panel.css +0 -67
  1124. package/src/components/theme-panel.tsx +0 -549
  1125. package/src/components/toggle-button.tsx +0 -117
  1126. package/src/components/toggle-icon-button.tsx +0 -115
  1127. /package/dist/esm/{chunk-STMTXK7U.js.map → chunk-24CVW6P7.js.map} +0 -0
  1128. /package/dist/esm/{chunk-OXYHRNJA.js.map → chunk-4VBH3W2S.js.map} +0 -0
  1129. /package/dist/esm/{chunk-F7HK2QLM.js.map → chunk-4ZAJVYU6.js.map} +0 -0
  1130. /package/dist/esm/{chunk-ABS275QZ.js.map → chunk-72FU5FEC.js.map} +0 -0
  1131. /package/dist/esm/{chunk-MLXHD7YF.js.map → chunk-7FPLWHMT.js.map} +0 -0
  1132. /package/dist/esm/{chunk-YS5BZRRK.js.map → chunk-7OQXCYCW.js.map} +0 -0
  1133. /package/dist/esm/{chunk-N5OSP3PU.js.map → chunk-AYZRLA7F.js.map} +0 -0
  1134. /package/dist/esm/{chunk-6RZVKCNG.js.map → chunk-BHGES72S.js.map} +0 -0
  1135. /package/dist/esm/{chunk-KU3LLWFU.js.map → chunk-CTZ467AB.js.map} +0 -0
  1136. /package/dist/esm/{chunk-Q7S5LQBQ.js.map → chunk-CYO6CRMQ.js.map} +0 -0
  1137. /package/dist/esm/{chunk-F2UUKVBM.js.map → chunk-D3U4MWDZ.js.map} +0 -0
  1138. /package/dist/esm/{chunk-VLLJ7A6P.js.map → chunk-DCNHG6VN.js.map} +0 -0
  1139. /package/dist/esm/{chunk-JDMJC76O.js.map → chunk-EDEYYJ3Q.js.map} +0 -0
  1140. /package/dist/esm/{chunk-6FLLFCBU.js.map → chunk-ELAW7ZUG.js.map} +0 -0
  1141. /package/dist/esm/{chunk-HK7RJPQ2.js.map → chunk-EOWG5SIY.js.map} +0 -0
  1142. /package/dist/esm/{chunk-TLZMLJTI.js.map → chunk-FSMUCDLI.js.map} +0 -0
  1143. /package/dist/esm/{chunk-B6RH4CTY.js.map → chunk-G46OLCM2.js.map} +0 -0
  1144. /package/dist/esm/{chunk-5LGWS5QS.js.map → chunk-GOV5I7I2.js.map} +0 -0
  1145. /package/dist/esm/{chunk-JOB6FH3D.js.map → chunk-GWGQ73PU.js.map} +0 -0
  1146. /package/dist/esm/{chunk-VSSJTPBV.js.map → chunk-HELY5CSU.js.map} +0 -0
  1147. /package/dist/esm/{chunk-UFJJTUOU.js.map → chunk-HGG3ULNK.js.map} +0 -0
  1148. /package/dist/esm/{chunk-DMWLY6ZP.js.map → chunk-HZNOHY6O.js.map} +0 -0
  1149. /package/dist/esm/{chunk-PUVZFRTQ.js.map → chunk-IZPDJN6O.js.map} +0 -0
  1150. /package/dist/esm/{chunk-KPACVWV4.js.map → chunk-K4BDLRCC.js.map} +0 -0
  1151. /package/dist/esm/{chunk-XDAQXNBQ.js.map → chunk-K6QKUX3C.js.map} +0 -0
  1152. /package/dist/esm/{chunk-IND2NZIN.js.map → chunk-K6WT5ZEA.js.map} +0 -0
  1153. /package/dist/esm/{chunk-CLEH57SW.js.map → chunk-KIYCILXL.js.map} +0 -0
  1154. /package/dist/esm/{chunk-ZCAI2PRH.js.map → chunk-KRDRQU4G.js.map} +0 -0
  1155. /package/dist/esm/{chunk-T5DSQKKF.js.map → chunk-KRZL245C.js.map} +0 -0
  1156. /package/dist/esm/{chunk-WBGKTN35.js.map → chunk-LNFN35ZE.js.map} +0 -0
  1157. /package/dist/esm/{chunk-JH55M4I2.js.map → chunk-LPVDR7V3.js.map} +0 -0
  1158. /package/dist/esm/{chunk-NTGRWJEG.js.map → chunk-LVCP5WGX.js.map} +0 -0
  1159. /package/dist/esm/{chunk-QEYOXQK5.js.map → chunk-M4M4OZTS.js.map} +0 -0
  1160. /package/dist/esm/{chunk-WSKA5MZZ.js.map → chunk-OA2BZDKL.js.map} +0 -0
  1161. /package/dist/esm/{chunk-JUY7CBSL.js.map → chunk-PBFSBHBS.js.map} +0 -0
  1162. /package/dist/esm/{chunk-CD324U6G.js.map → chunk-PEP6MQJ2.js.map} +0 -0
  1163. /package/dist/esm/{chunk-E3754NJZ.js.map → chunk-QZ6OCMH4.js.map} +0 -0
  1164. /package/dist/esm/{chunk-54KMG7NX.js.map → chunk-TKSG7KBZ.js.map} +0 -0
  1165. /package/dist/esm/{chunk-WDDO73O5.js.map → chunk-UEHCCJYY.js.map} +0 -0
  1166. /package/dist/esm/{chunk-R372ULQC.js.map → chunk-VJOJGAGA.js.map} +0 -0
  1167. /package/dist/esm/{chunk-YKPMLM7M.js.map → components/chip.js.map} +0 -0
  1168. /package/dist/esm/components/{aspect-ratio.js.map → chip.props.js.map} +0 -0
  1169. /package/dist/esm/components/{badge.js.map → schemas/toggle.schema.js.map} +0 -0
  1170. /package/dist/esm/components/{badge.props.js.map → toggle.js.map} +0 -0
  1171. /package/schemas/{icon-button.d.ts → toggle.d.ts} +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";var Ve=Object.create;var j=Object.defineProperty;var ze=Object.getOwnPropertyDescriptor;var ke=Object.getOwnPropertyNames;var je=Object.getPrototypeOf,Oe=Object.prototype.hasOwnProperty;var Ae=(e,t)=>{for(var o in t)j(e,o,{get:t[o],enumerable:!0})},ne=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ke(t))!Oe.call(e,s)&&s!==o&&j(e,s,{get:()=>t[s],enumerable:!(i=ze(t,s))||i.enumerable});return e};var g=(e,t,o)=>(o=e!=null?Ve(je(e)):{},ne(t||!e||!e.__esModule?j(o,"default",{value:e,enumerable:!0}):o,e)),Ge=e=>ne(j({},"__esModule",{value:!0}),e);var nt={};Ae(nt,{Tooltip:()=>Fe});module.exports=Ge(nt);var P=g(require("react")),Ne=g(require("classnames")),x=require("radix-ui");var C=g(require("react")),Te=require("radix-ui");var pe=g(require("classnames"));var We=[],Ee=new Set;function Ie(e){let t=Object.assign({},...e),o=[],i=[],s=new Set;for(let l in t){let n=t[l],p=n.values??We,a={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):Ee,enumValueSet:n.type==="enum"?new Set([n.default,...p]):void 0};n.className?(o.push(a),s.add(l)):(a.hasDefault||n.type==="enum")&&i.push(a)}return{styling:o,passthrough:i,stylingKeys:s}}var Me={children:new WeakMap};function se(e){let t=Me;for(let o=0;o<e.length;o++){let i=e[o],s=t.children.get(i);s===void 0&&(s={children:new WeakMap},t.children.set(i,s)),t=s}return t.compiled??(t.compiled=Ie(e))}var Be=["initial","xs","sm","md","lg","xl"],H=new Set(Be);function K(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var $e=new Set(["initial","xs","sm","md","lg","xl"]);function D(e){if(typeof e!="object"||e===null)return!1;for(let t in e)if($e.has(t))return!0;return!1}function O(e,t,o){return t!==void 0?t.has(o):e.includes(o)}function ie({className:e,customProperties:t,...o}){let i=U({allowArbitraryValues:!0,className:e,...o}),s=He({customProperties:t,...o});return[i,s]}function U({allowArbitraryValues:e,value:t,className:o,propValues:i,propValueSet:s,parseValue:l=n=>n}){if(t){if(typeof t=="string")return O(i,s,t)?ae(o,t,l):e?o:void 0;if(D(t)){let n=t,p=[];for(let a in n){if(!K(n,a)||!H.has(a))continue;let r=n[a];if(r!==void 0){if(O(i,s,r)){let m=ae(o,r,l),c=a==="initial"?m:`${a}:${m}`;p.push(c)}else if(e){let m=a==="initial"?o:`${a}:${o}`;p.push(m)}}}return p.length>0?p.join(" "):""}if(e)return o}}function ae(e,t,o){let i=e?"-":"",s=o(t),l=s?.startsWith("-"),n=l?"-":"",p=l?s?.substring(1):s;return`${n}${e}${i}${p}`}function He({customProperties:e,value:t,propValues:o,propValueSet:i,parseValue:s=l=>l}){if(!t||typeof t=="string"&&O(o,i,t))return;let l;if(typeof t=="string"){let n=s(t);l={};for(let p of e)l[p]=n;return l}if(D(t)){let n=t;for(let p in n){if(!K(n,p)||!H.has(p))continue;let a=n[p];if(a===void 0||O(o,i,a))continue;let r=s(a);l??(l={});for(let m of e){let c=p==="initial"?m:`${m}-${p}`;l[c]=r}}}return l??{}}function L(...e){let t;for(let o of e)o&&(t===void 0&&(t={}),Object.assign(t,o));return t}function Ke(e,t){let o=e.initial,i=!1;return t.hasDefault&&o===void 0&&(o=t.default,i=!0),t.enumValueSet!==void 0&&!t.enumValueSet.has(o)&&(o=t.default,i=!0),i?{...e,initial:o}:e}function A(e,...t){let{styling:o,passthrough:i,stylingKeys:s}=se(t),l={};for(let a in e)s.has(a)||(l[a]=e[a]);for(let a=0;a<i.length;a++){let r=i[a],m=l[r.key];if(m===void 0){r.hasDefault&&(l[r.key]=r.default);continue}r.enumValueSet!==void 0&&!r.enumValueSet.has(m)&&!D(m)&&(l[r.key]=r.default)}let n,p=[];for(let a=0;a<o.length;a++){let r=o[a],m=e[r.key];if(m===void 0&&r.hasDefault&&(m=r.default),r.enumValueSet!==void 0&&!r.enumValueSet.has(m)&&!D(m)&&(m=r.default),!!m){if(D(m)){if(!r.responsive)continue;m=Ke(m,r)}if(r.type==="enum"){let c=U({allowArbitraryValues:!1,value:m,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:m});y&&(n=L(n,y)),c&&p.push(c);continue}if(r.type==="boolean"){p.push(r.className);continue}}}return l.className=(0,pe.default)(p.length>0?p.join(" "):void 0,e.className),l.style=L(n,e.style),l}var T=["0","1","2","3","4","5","6","7","8","9","10","11","12","-1","-2","-3","-4","-5","-6","-7","-8","-9","-10","-11","-12","bleed"],le={m:{type:"enum | string",values:T,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:T,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:T,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:T,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:T,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:T,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:T,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}};var G={asChild:{type:"boolean"}};var q=["gray","gold","bronze","brown","yellow","amber","orange","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","lime","mint","sky"],me=["auto","gray","mauve","slate","sage","olive","sand"],fe={color:{type:"enum",values:q,default:void 0}};var Ue=["loud","medium","quiet"],ue={emphasis:{type:"enum",className:"rt-emphasis",values:Ue,default:void 0}};var Le=["normal","start","end","both"],ce={trim:{type:"enum",className:"rt-r-lt",values:Le,responsive:!0}};var qe=["left","center","right"],de={align:{type:"enum",className:"rt-r-ta",values:qe,responsive:!0}};var _e=["wrap","nowrap","pretty","balance"],ye={wrap:{type:"enum",className:"rt-r-tw",values:_e,responsive:!0}};var Pe={truncate:{type:"boolean",className:"rt-truncate"}};var Ye=["sans","mono","serif"],ge={font:{type:"enum",className:"rt-r-ff",values:Ye}};var Ze=["regular","medium","semibold"],he={weight:{type:"enum",className:"rt-r-weight",values:Ze,responsive:!0}};var Je=["span","div","label","p"],Qe=["1","2","3","4","5","6","7","8","9"],De={as:{type:"enum",values:Je,default:"span"},...G,size:{type:"enum",className:"rt-r-size",values:Qe,responsive:!0},...ge,...he,...de,...ce,...Pe,...ye,...fe,...ue};var Xe={...De,...le},_=C.memo(C.forwardRef((e,t)=>{let{children:o,className:i,asChild:s,as:l="span",color:n,...p}=A(e,Xe),a=i?`rt-Text ${i}`:"rt-Text";return s?C.createElement(Te.Slot.Root,{"data-accent-color":n,...p,ref:t,className:a},o):C.createElement(l,{"data-accent-color":n,...p,ref:t,className:a},o)}));_.displayName="Text";var f=g(require("react")),xe=g(require("classnames")),v=require("radix-ui"),W=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 Y=g(require("react")),et="2",Z=Y.createContext(et);Z.displayName="ThemeSizeContext";var J=g(require("react"));function h(e){let[t,o]=J.useState(e),[i,s]=J.useState(e);return Object.is(e,i)||(s(e),o(e)),[t,o]}var ve=["none","small","medium","large","full"];var tt=["inherit","light","dark"],Re=["sans","mono","serif"],ot=["1","2","3","4"],u={...G,hasBackground:{type:"boolean",default:!0},appearance:{type:"enum",values:tt,default:"inherit"},accentColor:{type:"enum",values:q,default:"gray"},grayColor:{type:"enum",values:me,default:"gray"},radius:{type:"enum",values:ve,default:"full"},fontFamily:{type:"enum",values:Re,default:"sans"},headingFontFamily:{type:"enum",values:Re},size:{type:"enum",values:ot,default:"2"}};var d=()=>{},oo={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},Q=f.createContext(void 0);var X=f.forwardRef((e,t)=>{let o=f.useContext(Q),i=v.Direction.useDirection();return o===void 0?f.createElement(v.Tooltip.Provider,{delayDuration:200},f.createElement(v.Direction.Provider,{dir:i},f.createElement(be,{...e,ref:t}))):f.createElement(ee,{...e,ref:t})});X.displayName="Theme";var be=f.forwardRef((e,t)=>{let{appearance:o=u.appearance.default,accentColor:i=u.accentColor.default,grayColor:s=u.grayColor.default,radius:l=u.radius.default,fontFamily:n=u.fontFamily.default,headingFontFamily:p,size:a=u.size.default,hasBackground:r=u.hasBackground.default,...m}=e,[c,y]=h(o),[R,N]=h(i),[F,w]=h(s),[V,z]=h(l),[k,b]=h(n),[I,S]=h(p),[M,B]=h(a);return f.createElement(ee,{...m,ref:t,isRoot:!0,hasBackground:r,appearance:c,accentColor:R,grayColor:F,radius:V,fontFamily:k,headingFontFamily:I,size:M,onAppearanceChange:y,onAccentColorChange:N,onGrayColorChange:w,onRadiusChange:z,onFontFamilyChange:b,onHeadingFontFamilyChange:S,onSizeChange:B})});be.displayName="ThemeRoot";function rt(){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 ee=f.forwardRef((e,t)=>{let o=f.useContext(Q),{asChild:i,isRoot:s,hasBackground:l,appearance:n=e.appearance??o?.appearance??u.appearance.default,accentColor:p=e.accentColor??o?.accentColor??u.accentColor.default,grayColor:a=e.grayColor??o?.resolvedGrayColor??u.grayColor.default,radius:r=e.radius??o?.radius??u.radius.default,fontFamily:m=e.fontFamily??o?.fontFamily??u.fontFamily.default,headingFontFamily:c=e.headingFontFamily??o?.headingFontFamily,size:y=e.size??o?.size??u.size.default,onAppearanceChange:R=d,onAccentColorChange:N=d,onGrayColorChange:F=d,onRadiusChange:w=d,onFontFamilyChange:V=d,onHeadingFontFamilyChange:z=d,onSizeChange:k=d,...b}=e,I=i?v.Slot.Root:"div",S=a==="auto"?Ce(p):a,M=e.appearance==="light"||e.appearance==="dark",B=l===void 0?s||M:l,te=f.useRef(null),we=(0,W.useComposedRefs)(t,te),oe="data-os"in b;return(0,W.useLayoutEffect)(()=>{if(!s||oe)return;let $=te.current;if(!$)return;let re=rt();if(re)return $.setAttribute("data-os",re),()=>$.removeAttribute("data-os")},[s,oe]),f.createElement(Q.Provider,{value:f.useMemo(()=>({appearance:n,accentColor:p,grayColor:a,resolvedGrayColor:S,radius:r,fontFamily:m,headingFontFamily:c,size:y,onAppearanceChange:R,onAccentColorChange:N,onGrayColorChange:F,onRadiusChange:w,onFontFamilyChange:V,onHeadingFontFamilyChange:z,onSizeChange:k}),[n,p,a,S,r,m,c,y,R,N,F,w,V,z,k])},f.createElement(Z.Provider,{value:y},f.createElement(I,{"data-is-root-theme":s?"true":"false","data-accent-color":p,"data-gray-color":S,"data-has-background":B?"true":"false","data-radius":r,"data-font-family":m,"data-heading-font-family":c,ref:we,...b,className:(0,xe.default)("radix-themes",{light:n==="light",dark:n==="dark"},b.className)})))});ee.displayName="ThemeImpl";var E={width:{type:"string",className:"rt-r-w",customProperties:["--width"],responsive:!0},minWidth:{type:"string",className:"rt-r-min-w",customProperties:["--min-width"],responsive:!0},maxWidth:{type:"string",className:"rt-r-max-w",customProperties:["--max-width"],responsive:!0}};var Se={content:{type:"ReactNode",required:!0},width:E.width,minWidth:E.minWidth,maxWidth:{...E.maxWidth,default:"360px"}};var Fe=P.forwardRef((e,t)=>{let{children:o,className:i,open:s,defaultOpen:l,onOpenChange:n,delayDuration:p,disableHoverableContent:a,content:r,container:m,forceMount:c,...y}=A(e,Se),R={open:s,defaultOpen:l,onOpenChange:n,delayDuration:p,disableHoverableContent:a};return P.createElement(x.Tooltip.Root,{...R},P.createElement(x.Tooltip.Trigger,{asChild:!0},o),P.createElement(x.Tooltip.Portal,{container:m,forceMount:c},P.createElement(X,{asChild:!0},P.createElement(x.Tooltip.Content,{sideOffset:4,collisionPadding:10,...y,asChild:!1,ref:t,className:(0,Ne.default)("rt-TooltipContent",i)},P.createElement(_,{as:"p",className:"rt-TooltipText",size:"1"},r),P.createElement(x.Tooltip.Arrow,{className:"rt-TooltipArrow"})))))});Fe.displayName="Tooltip";
1
+ "use strict";var Ne=Object.create;var V=Object.defineProperty;var we=Object.getOwnPropertyDescriptor;var ze=Object.getOwnPropertyNames;var ke=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 ze(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(ke(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),u=i==="initial"?f:`${i}:${f}`;p.push(u)}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 u=p==="initial"?f:`${f}-${p}`;l[u]=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 u=K({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,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)),u&&p.push(u);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:"rt-emphasis",values:Me,default:void 0}};var Ke=["normal","start","end","both"],me={trim:{type:"enum",className:"rt-r-lt",values:Ke,responsive:!0}};var Ue=["left","center","right"],ce={align:{type:"enum",className:"rt-r-ta",values:Ue,responsive:!0}};var Le=["wrap","nowrap","pretty","balance"],ue={wrap:{type:"enum",className:"rt-r-tw",values:Le,responsive:!0}};var de={truncate:{type:"boolean",className:"rt-truncate"}};var qe=["sans","mono","serif"],ye={font:{type:"enum",className:"rt-r-ff",values:qe}};var _e=["regular","medium","semibold"],Pe={weight:{type:"enum",className:"rt-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:"rt-r-size",values:Ze,responsive:!0},...ye,...Pe,...ce,...me,...de,...ue,...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?`rt-Text ${a}`:"rt-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"],c={...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:c.appearance.default,accentColor:c.accentColor.default,grayColor:c.grayColor.default,resolvedGrayColor:c.grayColor.default,radius:c.radius.default,fontFamily:c.fontFamily.default,headingFontFamily:void 0,size:c.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=c.appearance.default,accentColor:a=c.accentColor.default,grayColor:s=c.grayColor.default,radius:l=c.radius.default,fontFamily:n=c.fontFamily.default,headingFontFamily:p,size:i=c.size.default,hasBackground:r=c.hasBackground.default,...f}=e,[u,y]=h(o),[v,S]=h(a),[F,N]=h(s),[w,z]=h(l),[k,x]=h(n),[E,b]=h(p),[I,B]=h(i);return m.createElement(X,{...f,ref:t,isRoot:!0,hasBackground:r,appearance:u,accentColor:v,grayColor:F,radius:w,fontFamily:k,headingFontFamily:E,size:I,onAppearanceChange:y,onAccentColorChange:S,onGrayColorChange:N,onRadiusChange:z,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??c.appearance.default,accentColor:p=e.accentColor??o?.accentColor??c.accentColor.default,grayColor:i=e.grayColor??o?.resolvedGrayColor??c.grayColor.default,radius:r=e.radius??o?.radius??c.radius.default,fontFamily:f=e.fontFamily??o?.fontFamily??c.fontFamily.default,headingFontFamily:u=e.headingFontFamily??o?.headingFontFamily,size:y=e.size??o?.size??c.size.default,onAppearanceChange:v=d,onAccentColorChange:S=d,onGrayColorChange:F=d,onRadiusChange:N=d,onFontFamilyChange:w=d,onHeadingFontFamilyChange:z=d,onSizeChange:k=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:u,size:y,onAppearanceChange:v,onAccentColorChange:S,onGrayColorChange:F,onRadiusChange:N,onFontFamilyChange:w,onHeadingFontFamilyChange:z,onSizeChange:k}),[n,p,i,b,r,f,u,y,v,S,F,N,w,z,k])},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":u,ref:Fe,...x,className:(0,ve.default)("radix-themes",{light:n==="light",dark:n==="dark"},x.className)})))});X.displayName="ThemeImpl";var W={width:{type:"string",className:"rt-r-w",customProperties:["--width"],responsive:!0},minWidth:{type:"string",className:"rt-r-min-w",customProperties:["--min-width"],responsive:!0},maxWidth:{type:"string",className:"rt-r-max-w",customProperties:["--max-width"],responsive:!0}};var 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:u,...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:u},P.createElement(Q,{asChild:!0},P.createElement(R.Tooltip.Content,{sideOffset:4,collisionPadding:10,...y,asChild:!1,ref:t,className:(0,be.default)("rt-TooltipContent",a)},P.createElement(q,{as:"p",className:"rt-TooltipText",size:"1"},r),P.createElement(R.Tooltip.Arrow,{className:"rt-TooltipArrow"})))))});Se.displayName="Tooltip";
2
2
  //# sourceMappingURL=tooltip.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 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/margin.props.ts", "../../../src/props/as-child.prop.ts", "../../../src/props/color.prop.ts", "../../../src/props/emphasis.prop.ts", "../../../src/props/leading-trim.prop.ts", "../../../src/props/text-align.prop.ts", "../../../src/props/text-wrap.prop.ts", "../../../src/props/truncate.prop.ts", "../../../src/props/font-family.prop.ts", "../../../src/props/weight.prop.ts", "../../../src/components/text.props.tsx", "../../../src/components/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('rt-TooltipContent', className)}\n >\n <Text as=\"p\" className=\"rt-TooltipText\" size=\"1\">\n {content}\n </Text>\n <TooltipPrimitive.Arrow className=\"rt-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 { marginPropDefs } from '../props/margin.props.js';\nimport { textPropDefs } from './text.props.js';\n\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\n\ntype TextElement = React.ElementRef<'span'>;\ntype TextOwnProps = GetPropDefTypes<typeof textPropDefs>;\ninterface CommonTextProps extends MarginProps, TextOwnProps {}\ntype TextSpanProps = { as?: 'span' } & ComponentPropsWithout<'span', RemovedProps>;\ntype TextDivProps = { as: 'div' } & ComponentPropsWithout<'div', RemovedProps>;\ntype TextLabelProps = { as: 'label' } & ComponentPropsWithout<'label', RemovedProps>;\ntype TextPProps = { as: 'p' } & ComponentPropsWithout<'p', RemovedProps>;\ntype TextProps = CommonTextProps & (TextSpanProps | TextDivProps | TextLabelProps | TextPProps);\n\n// Pre-merge prop definitions at module level to avoid per-render allocation\nconst mergedPropDefs = { ...textPropDefs, ...marginPropDefs };\n\nconst Text = React.memo(\n React.forwardRef<TextElement, TextProps>((props, forwardedRef) => {\n const {\n children,\n className,\n asChild,\n as: Tag = 'span',\n color,\n ...textProps\n } = extractProps(props, mergedPropDefs);\n\n const combinedClassName = className ? `rt-Text ${className}` : 'rt-Text';\n\n if (asChild) {\n return (\n <Slot.Root\n data-accent-color={color}\n {...textProps}\n ref={forwardedRef}\n className={combinedClassName}\n >\n {children}\n </Slot.Root>\n );\n }\n\n return (\n <Tag\n data-accent-color={color}\n {...(textProps as React.HTMLAttributes<HTMLElement>)}\n ref={forwardedRef as any}\n className={combinedClassName}\n >\n {children}\n </Tag>\n );\n })\n);\nText.displayName = 'Text';\n\nexport { Text };\nexport type { TextProps };\n", "import classNames from 'classnames';\n\nimport { getCompiledPropDefs } from './compile-prop-defs.js';\nimport { getResponsiveClassNames, getResponsiveStyles } from './get-responsive-styles.js';\nimport { isResponsiveObject } from './is-responsive-object.js';\nimport { mergeStyles } from './merge-styles.js';\n\nimport type { CompiledPropDef } from './compile-prop-defs.js';\nimport type * as React from 'react';\nimport type { PropDef } from '../props/prop-def.js';\n\ntype PropDefsWithClassName<T> = T extends Record<string, PropDef> ? { [K in keyof T]: T[K] extends { className: string } ? K : never }[keyof T] : never;\n\ntype ResponsiveValue = Record<string, string | undefined>;\n\n/**\n * Fills in the `initial` breakpoint of a responsive value from the prop def's\n * default, and coerces an invalid `initial` enum value back to that default.\n *\n * Returns the value untouched when nothing needs changing, and a copy otherwise\n * \u2014 callers routinely hoist responsive objects to module scope, so mutating the\n * caller's object would corrupt it for every later render.\n */\nfunction normalizeResponsiveValue(value: ResponsiveValue, propDef: CompiledPropDef) {\n let initial = value.initial;\n let changed = false;\n\n if (propDef.hasDefault && initial === undefined) {\n initial = propDef.default as string | undefined;\n changed = true;\n }\n\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(initial)) {\n initial = propDef.default as string | undefined;\n changed = true;\n }\n\n return changed ? { ...value, initial } : value;\n}\n\n/**\n * Takes props, checks them against prop defs that have a `className` on them,\n * adds necessary CSS classes and inline styles, and returns the props without\n * the corresponding prop defs that were used to formulate the new `className`\n * and `style` values. Also applies prop def defaults to every prop.\n */\nfunction extractProps<P extends { className?: string; style?: React.CSSProperties; [key: string]: any }, T extends Record<string, PropDef>[]>(\n props: P,\n ...propDefs: T\n): Omit<P & { className?: string; style?: React.CSSProperties }, PropDefsWithClassName<T[number]>> {\n const { styling, passthrough, stylingKeys } = getCompiledPropDefs(propDefs);\n\n // Copy the props that survive to the element rather than spreading and then\n // deleting the styling keys. Deleting off a spread demotes the object to\n // dictionary mode in V8, and this object is on the render path of every\n // component in the library.\n const extractedProps: Record<string, any> = {};\n for (const key in props) {\n if (stylingKeys.has(key)) continue;\n extractedProps[key] = props[key];\n }\n\n for (let i = 0; i < passthrough.length; i++) {\n const propDef = passthrough[i];\n const value = extractedProps[propDef.key];\n\n if (value === undefined) {\n if (propDef.hasDefault) extractedProps[propDef.key] = propDef.default;\n continue;\n }\n\n // Fall back to the default when the value is not a valid enum value\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(value) && !isResponsiveObject(value)) {\n extractedProps[propDef.key] = propDef.default;\n }\n }\n\n let style: ReturnType<typeof mergeStyles>;\n const classes: string[] = [];\n\n for (let i = 0; i < styling.length; i++) {\n const propDef = styling[i];\n let value = props[propDef.key];\n\n // Apply prop def defaults\n if (value === undefined && propDef.hasDefault) {\n value = propDef.default;\n }\n\n // Apply the default value if the value is not a valid enum value\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(value) && !isResponsiveObject(value)) {\n value = propDef.default;\n }\n\n if (!value) continue;\n\n if (isResponsiveObject(value)) {\n // Make sure we are not threading through responsive values for non-responsive prop defs\n if (!propDef.responsive) continue;\n value = normalizeResponsiveValue(value, propDef);\n }\n\n if (propDef.type === 'enum') {\n const propClassName = getResponsiveClassNames({\n allowArbitraryValues: false,\n value,\n className: propDef.className!,\n propValues: propDef.values,\n propValueSet: propDef.valueSet,\n parseValue: propDef.parseValue,\n });\n\n if (propClassName) classes.push(propClassName);\n continue;\n }\n\n if (propDef.type === 'string' || propDef.type === 'enum | string') {\n const [propClassNames, propCustomProperties] = getResponsiveStyles({\n className: propDef.className!,\n customProperties: propDef.customProperties!,\n // `string` prop defs have no enum values, so every value is arbitrary\n propValues: propDef.type === 'string' ? [] : propDef.values,\n propValueSet: propDef.type === 'string' ? undefined : propDef.valueSet,\n parseValue: propDef.parseValue,\n value,\n });\n\n if (propCustomProperties) style = mergeStyles(style, propCustomProperties);\n if (propClassNames) classes.push(propClassNames);\n continue;\n }\n\n if (propDef.type === 'boolean') {\n // TODO handle responsive boolean props\n classes.push(propDef.className!);\n continue;\n }\n }\n\n extractedProps.className = classNames(classes.length > 0 ? classes.join(' ') : undefined, props.className);\n extractedProps.style = mergeStyles(style, props.style);\n return extractedProps as ReturnType<typeof extractProps<P, T>>;\n}\n\nexport { extractProps };\n", "import type { PropDef } from '../props/prop-def.js';\n\n/**\n * A prop def pre-processed into the exact shape `extractProps` needs at render\n * time. Everything that can be derived from the static prop def \u2014 enum\n * membership sets, whether the def is responsive, whether it carries a default\n * \u2014 is computed once here instead of on every render.\n */\ninterface CompiledPropDef {\n key: string;\n type: PropDef['type'];\n default: unknown;\n hasDefault: boolean;\n responsive: boolean;\n className?: string;\n customProperties?: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n /** The prop def's own enum values, kept for the responsive class name helpers. */\n values: readonly string[];\n /** O(1) membership for `values`. */\n valueSet: ReadonlySet<string>;\n /**\n * `values` plus the default, used to coerce invalid enum values back to the\n * default. Only present for `type: 'enum'` \u2014 `'enum | string'` props accept\n * arbitrary strings and must not be coerced.\n */\n enumValueSet?: ReadonlySet<unknown>;\n}\n\ninterface CompiledPropDefs {\n /** Defs that contribute a class name and/or custom properties. */\n styling: CompiledPropDef[];\n /**\n * Defs that pass through to the element but still need a default applied or\n * an invalid enum value coerced. Defs that can do neither are omitted\n * entirely \u2014 they are already correct as passed.\n */\n passthrough: CompiledPropDef[];\n /** Keys consumed by `styling`, so they can be skipped when copying props. */\n stylingKeys: ReadonlySet<string>;\n}\n\nconst EMPTY_VALUES: readonly string[] = [];\nconst EMPTY_SET: ReadonlySet<string> = new Set();\n\nfunction compile(propDefs: readonly Record<string, PropDef>[]): CompiledPropDefs {\n const merged: Record<string, PropDef> = Object.assign({}, ...propDefs);\n const styling: CompiledPropDef[] = [];\n const passthrough: CompiledPropDef[] = [];\n const stylingKeys = new Set<string>();\n\n for (const key in merged) {\n // The PropDef union is narrowed per-field below; reading the optional\n // members off the union directly is what the runtime actually needs.\n const def = merged[key] as PropDef & {\n default?: unknown;\n values?: readonly string[];\n className?: string;\n customProperties?: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n responsive?: true;\n };\n\n const values = def.values ?? EMPTY_VALUES;\n const compiled: CompiledPropDef = {\n key,\n type: def.type,\n default: def.default,\n hasDefault: def.default !== undefined,\n responsive: 'responsive' in def,\n className: def.className,\n customProperties: def.customProperties,\n parseValue: def.parseValue,\n values,\n valueSet: values.length > 0 ? new Set(values) : EMPTY_SET,\n enumValueSet: def.type === 'enum' ? new Set<unknown>([def.default, ...values]) : undefined,\n };\n\n if (def.className) {\n styling.push(compiled);\n stylingKeys.add(key);\n } else if (compiled.hasDefault || def.type === 'enum') {\n // Anything else is copied through untouched, so there is nothing to do.\n passthrough.push(compiled);\n }\n }\n\n return { styling, passthrough, stylingKeys };\n}\n\ninterface CacheNode {\n children: WeakMap<object, CacheNode>;\n compiled?: CompiledPropDefs;\n}\n\nconst cacheRoot: CacheNode = { children: new WeakMap() };\n\n/**\n * Compiles a set of prop defs, memoized on the identity of the prop def objects\n * themselves. Components always pass the same module-level constants, so after\n * the first render of a given component this is a couple of WeakMap lookups\n * instead of merging 50-odd prop defs into a fresh object.\n */\nfunction getCompiledPropDefs(propDefs: readonly Record<string, PropDef>[]): CompiledPropDefs {\n let node = cacheRoot;\n\n for (let i = 0; i < propDefs.length; i++) {\n const propDef = propDefs[i];\n let child = node.children.get(propDef);\n if (child === undefined) {\n child = { children: new WeakMap() };\n node.children.set(propDef, child);\n }\n node = child;\n }\n\n return (node.compiled ??= compile(propDefs));\n}\n\nexport { getCompiledPropDefs };\nexport type { CompiledPropDef, CompiledPropDefs };\n", "import type React from 'react';\n\n// Creates a union type of string literals with strings, but retains intellisense for the literals.\n// Union<string, 'foo' | 'bar'> => string | Omit<string, 'foo' | 'bar'>\ntype Union<S = string, T extends string | number = string> = T | Omit<S, T>;\n\nconst breakpoints = ['initial', 'xs', 'sm', 'md', 'lg', 'xl'] as const;\nconst breakpointSet: Set<string> = new Set(breakpoints);\ntype Breakpoint = (typeof breakpoints)[number];\ntype Responsive<T> = T | Partial<Record<Breakpoint, T>>;\n\ntype BooleanPropDef = {\n type: 'boolean';\n default?: boolean;\n required?: boolean;\n className?: string;\n};\ntype StringPropDef = {\n type: 'string';\n default?: string;\n required?: boolean;\n};\ntype ReactNodePropDef = {\n type: 'ReactNode';\n default?: React.ReactNode;\n required?: boolean;\n};\ntype EnumPropDef<T> = {\n type: 'enum';\n values: readonly T[];\n default?: T;\n required?: boolean;\n};\ntype EnumOrStringPropDef<T> = {\n type: 'enum | string';\n values: readonly T[];\n default?: T | string;\n required?: boolean;\n};\n\ntype NonStylingPropDef = {\n className?: never;\n customProperties?: never;\n parseValue?: never;\n};\n\ntype StylingPropDef = {\n className: string;\n parseValue?: (value: string) => string | undefined;\n};\n\ntype ArbitraryStylingPropDef = {\n className: string;\n customProperties: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n};\n\ntype RegularPropDef<T> =\n | ReactNodePropDef\n | BooleanPropDef\n | (StringPropDef & ArbitraryStylingPropDef)\n | (StringPropDef & NonStylingPropDef)\n | (EnumPropDef<T> & StylingPropDef)\n | (EnumPropDef<T> & NonStylingPropDef)\n | (EnumOrStringPropDef<T> & ArbitraryStylingPropDef)\n | (EnumOrStringPropDef<T> & NonStylingPropDef);\ntype ResponsivePropDef<T = any> = RegularPropDef<T> & { responsive: true };\ntype PropDef<T = any> = RegularPropDef<T> | ResponsivePropDef<T>;\n\n// prettier-ignore\ntype GetPropDefType<Def> =\n Def extends BooleanPropDef ? (Def extends ResponsivePropDef ? Responsive<boolean> : boolean)\n : Def extends StringPropDef ? (Def extends ResponsivePropDef ? Responsive<string> : string)\n : Def extends ReactNodePropDef ? (Def extends ResponsivePropDef ? Responsive<React.ReactNode> : React.ReactNode)\n : Def extends EnumOrStringPropDef<infer Type> ?\n Def extends ResponsivePropDef<infer Type extends string> ? Responsive<Union<string, Type>> : Type\n : Def extends EnumPropDef<infer Type> ? (Def extends ResponsivePropDef<infer Type> ? Responsive<Type> : Type)\n : never;\n\ntype GetPropDefTypes<P> = {\n [K in keyof P]?: GetPropDefType<P[K]>;\n};\n\nexport { breakpoints, breakpointSet };\nexport type {\n PropDef,\n GetPropDefTypes,\n ResponsivePropDef,\n //\n Breakpoint,\n Responsive,\n Union,\n};\n", "/** A util to check whether the object has a key, while inferring the correct key type */\nfunction hasOwnProperty<K extends string | number | symbol>(\n obj: Record<K, unknown>,\n key: string | number | symbol\n): key is K {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\nexport { hasOwnProperty };\n", "import type { Responsive, Breakpoint } from '../props/prop-def.js';\n\n// Use a Set for O(1) lookup instead of array.includes() which is O(n)\nconst breakpointSet = new Set<string>(['initial', 'xs', 'sm', 'md', 'lg', 'xl']);\n\nexport function isResponsiveObject<Value extends string>(\n obj: Responsive<Value | Omit<string, Value>> | undefined\n): obj is Record<Breakpoint, string> {\n if (typeof obj !== 'object' || obj === null) {\n return false;\n }\n // Use for...in to avoid Object.keys() array allocation\n for (const key in obj) {\n if (breakpointSet.has(key)) {\n return true;\n }\n }\n return false;\n}\n", "import { breakpointSet } from '../props/prop-def.js';\nimport { hasOwnProperty } from './has-own-property.js';\nimport { isResponsiveObject } from './is-responsive-object.js';\n\nimport type { Responsive, Union } from '../props/prop-def.js';\n\n/**\n * Membership test against a prop def's enum values. Callers that already hold a\n * compiled prop def pass `propValueSet` for an O(1) lookup; the handful of call\n * sites that build options inline fall back to scanning the array.\n */\nfunction includesValue(propValues: string[] | readonly string[], propValueSet: ReadonlySet<string> | undefined, value: string): boolean {\n return propValueSet !== undefined ? propValueSet.has(value) : propValues.includes(value);\n}\n\ninterface GetResponsiveStylesOptions {\n className: string;\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveStyles({ className, customProperties, ...args }: GetResponsiveStylesOptions) {\n const responsiveClassNames = getResponsiveClassNames({\n allowArbitraryValues: true,\n className,\n ...args,\n });\n\n const responsiveCustomProperties = getResponsiveCustomProperties({ customProperties, ...args });\n return [responsiveClassNames, responsiveCustomProperties] as const;\n}\n\ninterface GetResponsiveClassNamesOptions {\n allowArbitraryValues?: boolean;\n className: string;\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveClassNames({ allowArbitraryValues, value, className, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveClassNamesOptions): string | undefined {\n if (!value) {\n return undefined;\n }\n\n if (typeof value === 'string') {\n if (includesValue(propValues, propValueSet, value)) {\n return getBaseClassName(className, value, parseValue);\n }\n return allowArbitraryValues ? className : undefined;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n const classNames: string[] = [];\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n if (value !== undefined) {\n if (includesValue(propValues, propValueSet, value)) {\n const baseClassName = getBaseClassName(className, value, parseValue);\n const bpClassName = bp === 'initial' ? baseClassName : `${bp}:${baseClassName}`;\n classNames.push(bpClassName);\n } else if (allowArbitraryValues) {\n const bpClassName = bp === 'initial' ? className : `${bp}:${className}`;\n classNames.push(bpClassName);\n }\n }\n }\n\n return classNames.length > 0 ? classNames.join(' ') : '';\n }\n\n if (allowArbitraryValues) {\n return className;\n }\n}\n\nfunction getBaseClassName(className: string, value: string, parseValue: (value: string) => string | undefined): string {\n const delimiter = className ? '-' : '';\n const matchedValue = parseValue(value);\n const isNegative = matchedValue?.startsWith('-');\n const minus = isNegative ? '-' : '';\n const absoluteValue = isNegative ? matchedValue?.substring(1) : matchedValue;\n return `${minus}${className}${delimiter}${absoluteValue}`;\n}\n\ninterface GetResponsiveCustomPropertiesOptions {\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveCustomProperties({ customProperties, value, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveCustomPropertiesOptions) {\n // Don't generate custom properties if the value is not arbitrary\n if (!value || (typeof value === 'string' && includesValue(propValues, propValueSet, value))) {\n return undefined;\n }\n\n let styles: Record<string, string | undefined> | undefined;\n\n if (typeof value === 'string') {\n const parsed = parseValue(value);\n styles = {};\n for (const customProperty of customProperties) {\n styles[customProperty] = parsed;\n }\n return styles;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n // Don't generate a custom property if the value is not arbitrary\n if (value === undefined || includesValue(propValues, propValueSet, value)) {\n continue;\n }\n\n const parsed = parseValue(value);\n styles ??= {};\n for (const customProperty of customProperties) {\n const bpProperty = bp === 'initial' ? customProperty : `${customProperty}-${bp}`;\n styles[bpProperty] = parsed;\n }\n }\n }\n\n return styles ?? {};\n}\n\nexport { getResponsiveStyles, getResponsiveCustomProperties, getResponsiveClassNames };\n", "type InlineStyle =\n | React.CSSProperties\n | Record<string, string | number | null | undefined>\n | undefined;\n\n// Merges CSS styles like `classNames` merges CSS classes\n// Optimized to avoid object spread in loop - uses Object.assign for in-place mutation\nexport function mergeStyles(...styles: Array<InlineStyle>): InlineStyle {\n let result: Record<string, string | number | null | undefined> | undefined;\n\n for (const style of styles) {\n if (style) {\n if (result === undefined) {\n // First non-empty style - create result object\n result = {};\n }\n Object.assign(result, style);\n }\n }\n\n return result;\n}\n", "import type { PropDef, GetPropDefTypes } from './prop-def.js';\n\n// prettier-ignore\nconst marginValues = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '-1', '-2', '-3', '-4', '-5', '-6', '-7', '-8', '-9', '-10', '-11', '-12', 'bleed'] as const;\n\nconst marginPropDefs = {\n /**\n * Sets the CSS **margin** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * m=\"4\"\n * m=\"100px\"\n * m={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin\n */\n m: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-m',\n customProperties: ['--m'],\n },\n /**\n * Sets the CSS **margin-left** and **margin-right** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mx=\"4\"\n * mx=\"100px\"\n * mx={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mx: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mx',\n customProperties: ['--ml', '--mr'],\n },\n /**\n * Sets the CSS **margin-top** and **margin-bottom** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * my=\"4\"\n * my=\"100px\"\n * my={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n my: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-my',\n customProperties: ['--mt', '--mb'],\n },\n /**\n * Sets the CSS **margin-top** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mt=\"4\"\n * mt=\"100px\"\n * mt={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n */\n mt: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mt',\n customProperties: ['--mt'],\n },\n /**\n * Sets the CSS **margin-right** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mr=\"4\"\n * mr=\"100px\"\n * mr={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mr: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mr',\n customProperties: ['--mr'],\n },\n /**\n * Sets the CSS **margin-bottom** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mb=\"4\"\n * mb=\"100px\"\n * mb={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n mb: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mb',\n customProperties: ['--mb'],\n },\n /**\n * Sets the CSS **margin-left** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * ml=\"4\"\n * ml=\"100px\"\n * ml={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n */\n ml: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-ml',\n customProperties: ['--ml'],\n },\n} satisfies {\n m: PropDef<(typeof marginValues)[number]>;\n mx: PropDef<(typeof marginValues)[number]>;\n my: PropDef<(typeof marginValues)[number]>;\n mt: PropDef<(typeof marginValues)[number]>;\n mr: PropDef<(typeof marginValues)[number]>;\n mb: PropDef<(typeof marginValues)[number]>;\n ml: PropDef<(typeof marginValues)[number]>;\n};\n\ntype MarginProps = GetPropDefTypes<typeof marginPropDefs>;\n\nexport { marginPropDefs };\nexport type { MarginProps };\n", "import type { PropDef } from './prop-def.js';\n\nconst asChildPropDef = {\n /**\n * Composes the component into its immediate child instead of rendering its own HTML element.\n * You\u2019ll have to provide a single React Element child.\n */\n asChild: {\n type: 'boolean',\n },\n} satisfies {\n asChild: PropDef<boolean>;\n};\n\nexport { asChildPropDef };\n", "import type { PropDef } from './prop-def.js';\n\n// prettier-ignore\nconst accentColors = ['gray', 'gold', 'bronze', 'brown', 'yellow', 'amber', 'orange', 'tomato', 'red', 'ruby', 'crimson', 'pink', 'plum', 'purple', 'violet', 'iris', 'indigo', 'blue', 'cyan', 'teal', 'jade', 'green', 'grass', 'lime', 'mint', 'sky'] as const;\n\nconst grayColors = ['auto', 'gray', 'mauve', 'slate', 'sage', 'olive', 'sand'] as const;\n\nconst colorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: undefined as (typeof accentColors)[number] | undefined,\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// 1. When used on components that compose Text, sets the color of the text to the current accent.\n// 2. Re-declares the accent role tokens (`--accent-ink`, `--accent-solid`, ...) that descendants read.\nconst accentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: '' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// For components whose colour comes from their content (Badge, Avatar, Code): they rest gray, and `color` picks a category when it means something.\nconst grayAccentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: 'gray' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\nexport {\n accentColorPropDef,\n grayAccentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import type { PropDef } from './prop-def.js';\n\nconst emphases = ['loud', 'medium', 'quiet'] as const;\n\n// Text-first components only (Text, Heading, Blockquote, Code, DataList.Label).\n// No colour + emphasis reads the gray ink ladder; colour + emphasis reads the accent ink ladder.\n// Components that need a different default (DataList.Label: 'medium') spread this def and override `default`.\nconst emphasisPropDef = {\n emphasis: {\n type: 'enum',\n className: 'rt-emphasis',\n values: emphases,\n default: undefined,\n },\n} satisfies {\n emphasis: PropDef<(typeof emphases)[number]>;\n};\n\nexport { emphasisPropDef, emphases };\n", "import type { PropDef } from './prop-def.js';\n\nconst leadingTrimValues = ['normal', 'start', 'end', 'both'] as const;\n\nconst leadingTrimPropDef = {\n trim: {\n type: 'enum',\n className: 'rt-r-lt',\n values: leadingTrimValues,\n responsive: true,\n },\n} satisfies {\n trim: PropDef<(typeof leadingTrimValues)[number]>;\n};\n\nexport { leadingTrimPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst textAlignValues = ['left', 'center', 'right'] as const;\n\nconst textAlignPropDef = {\n align: {\n type: 'enum',\n className: 'rt-r-ta',\n values: textAlignValues,\n responsive: true,\n },\n} satisfies {\n align: PropDef<(typeof textAlignValues)[number]>;\n};\n\nexport { textAlignPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst textWrapValues = ['wrap', 'nowrap', 'pretty', 'balance'] as const;\n\nconst textWrapPropDef = {\n wrap: {\n type: 'enum',\n className: 'rt-r-tw',\n values: textWrapValues,\n responsive: true,\n },\n} satisfies {\n wrap: PropDef<(typeof textWrapValues)[number]>;\n};\n\nexport { textWrapPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst truncatePropDef = {\n truncate: {\n type: 'boolean',\n className: 'rt-truncate',\n },\n} satisfies {\n truncate: PropDef<boolean>;\n};\n\nexport { truncatePropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst fontFamilies = ['sans', 'mono', 'serif'] as const;\n\nconst fontFamilyPropDef = {\n font: {\n type: 'enum',\n className: 'rt-r-ff',\n values: fontFamilies,\n },\n} satisfies {\n font: PropDef<(typeof fontFamilies)[number]>;\n};\n\nexport { fontFamilyPropDef };\n", "import type { PropDef } from './prop-def.js';\n\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: 'rt-r-weight',\n values: weights,\n responsive: true,\n },\n} satisfies {\n weight: PropDef<(typeof weights)[number]>;\n};\n\nexport { weightPropDef };\n", "import { asChildPropDef } from '../props/as-child.prop.js';\nimport { colorPropDef } from '../props/color.prop.js';\nimport { emphasisPropDef } from '../props/emphasis.prop.js';\nimport { leadingTrimPropDef } from '../props/leading-trim.prop.js';\nimport { textAlignPropDef } from '../props/text-align.prop.js';\nimport { textWrapPropDef } from '../props/text-wrap.prop.js';\nimport { truncatePropDef } from '../props/truncate.prop.js';\nimport { fontFamilyPropDef } from '../props/font-family.prop.js';\nimport { weightPropDef } from '../props/weight.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst as = ['span', 'div', 'label', 'p'] as const;\nconst sizes = ['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: 'rt-r-size',\n values: sizes,\n responsive: true,\n },\n ...fontFamilyPropDef,\n ...weightPropDef,\n ...textAlignPropDef,\n ...leadingTrimPropDef,\n ...truncatePropDef,\n ...textWrapPropDef,\n ...colorPropDef,\n ...emphasisPropDef,\n} satisfies {\n as: PropDef<(typeof as)[number]>;\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport { textPropDefs };\n", "'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 // `ThemePanel` can change the theme at runtime. Syncing during render\n // rather than in an effect matters here: an effect would commit the old\n // theme first and re-render every consumer of the context a second time.\n const [appearance, setAppearance] = usePropSyncedState(appearanceProp);\n const [accentColor, setAccentColor] = usePropSyncedState(accentColorProp);\n const [grayColor, setGrayColor] = usePropSyncedState(grayColorProp);\n 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 'radix-themes',\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 `ThemePanel` can change it at runtime.\n *\n * Adjusts state during render rather than syncing in a `useEffect`. An effect\n * would commit one render carrying the *old* value and schedule a second one,\n * which for a provider means every consumer renders twice and the browser can\n * paint the stale value in between.\n *\n * @see https://react.dev/reference/react/useState#storing-information-from-previous-renders\n */\nexport function usePropSyncedState<T>(propValue: T) {\n const [value, setValue] = React.useState(propValue);\n const [previousPropValue, setPreviousPropValue] = React.useState(propValue);\n\n if (!Object.is(propValue, previousPropValue)) {\n setPreviousPropValue(propValue);\n setValue(propValue);\n }\n\n return [value, setValue] as const;\n}\n", "import 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: 'rt-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: 'rt-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: 'rt-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,EAA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,SACN,UAAW,aACX,iBAAkB,CAAC,aAAa,EAChC,WAAY,EACd,EAYA,SAAU,CACR,KAAM,SACN,UAAW,aACX,iBAAkB,CAAC,aAAa,EAChC,WAAY,EACd,CACF,EClDA,IAAMC,GAAkB,CACtB,QAAS,CAAE,KAAM,YAAa,SAAU,EAAK,EAC7C,MAAOC,EAAc,MACrB,SAAUA,EAAc,SACxB,SAAU,CAAE,GAAGA,EAAc,SAAU,QAAS,OAAQ,CAC1D,E3BYA,IAAMC,GAAgB,aAAyC,CAACC,EAAOC,IAAiB,CACtF,GAAM,CACJ,SAAAC,EACA,UAAAC,EACA,KAAAC,EACA,YAAAC,EACA,aAAAC,EACA,cAAAC,EACA,wBAAAC,EACA,QAAAC,EACA,UAAAC,EACA,WAAAC,EACA,GAAGC,CACL,EAAIC,EAAab,EAAOc,EAAe,EACjCC,EAAY,CAAE,KAAAX,EAAM,YAAAC,EAAa,aAAAC,EAAc,cAAAC,EAAe,wBAAAC,CAAwB,EAC5F,OACE,gBAAC,EAAAQ,QAAiB,KAAjB,CAAuB,GAAGD,GACzB,gBAAC,EAAAC,QAAiB,QAAjB,CAAyB,QAAO,IAAEd,CAAS,EAC5C,gBAAC,EAAAc,QAAiB,OAAjB,CAAwB,UAAWN,EAAW,WAAYC,GACzD,gBAACM,EAAA,CAAM,QAAO,IACZ,gBAAC,EAAAD,QAAiB,QAAjB,CACC,WAAY,EACZ,iBAAkB,GACjB,GAAGJ,EACJ,QAAS,GACT,IAAKX,EACL,aAAW,GAAAiB,SAAW,oBAAqBf,CAAS,GAEpD,gBAACgB,EAAA,CAAK,GAAG,IAAI,UAAU,iBAAiB,KAAK,KAC1CV,CACH,EACA,gBAAC,EAAAO,QAAiB,MAAjB,CAAuB,UAAU,kBAAkB,CACtD,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", "i", "isResponsiveObject", "style", "classes", "propClassName", "getResponsiveClassNames", "propClassNames", "propCustomProperties", "getResponsiveStyles", "mergeStyles", "classNames", "marginValues", "marginPropDefs", "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", "mergedPropDefs", "textPropDefs", "marginPropDefs", "Text", "props", "forwardedRef", "children", "className", "asChild", "Tag", "color", "textProps", "extractProps", "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"]
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('rt-TooltipContent', className)}\n >\n <Text as=\"p\" className=\"rt-TooltipText\" size=\"1\">\n {content}\n </Text>\n <TooltipPrimitive.Arrow className=\"rt-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 ? `rt-Text ${className}` : 'rt-Text';\n\n if (asChild) {\n return (\n <Slot.Root\n data-accent-color={color}\n {...textProps}\n ref={forwardedRef}\n className={combinedClassName}\n >\n {children}\n </Slot.Root>\n );\n }\n\n return (\n <Tag\n data-accent-color={color}\n {...(textProps as React.HTMLAttributes<HTMLElement>)}\n ref={forwardedRef as any}\n className={combinedClassName}\n >\n {children}\n </Tag>\n );\n })\n);\nText.displayName = 'Text';\n\nexport { Text };\nexport type { TextProps };\n", "import classNames from 'classnames';\n\nimport { getCompiledPropDefs } from './compile-prop-defs.js';\nimport { getResponsiveClassNames, getResponsiveStyles } from './get-responsive-styles.js';\nimport { isResponsiveObject } from './is-responsive-object.js';\nimport { mergeStyles } from './merge-styles.js';\n\nimport type { CompiledPropDef } from './compile-prop-defs.js';\nimport type * as React from 'react';\nimport type { PropDef } from '../props/prop-def.js';\n\ntype PropDefsWithClassName<T> = T extends Record<string, PropDef> ? { [K in keyof T]: T[K] extends { className: string } ? K : never }[keyof T] : never;\n\ntype ResponsiveValue = Record<string, string | undefined>;\n\n/**\n * Fills in the `initial` breakpoint of a responsive value from the prop def's\n * default, and coerces an invalid `initial` enum value back to that default.\n *\n * Returns the value untouched when nothing needs changing, and a copy otherwise\n * \u2014 callers routinely hoist responsive objects to module scope, so mutating the\n * caller's object would corrupt it for every later render.\n */\nfunction normalizeResponsiveValue(value: ResponsiveValue, propDef: CompiledPropDef) {\n let initial = value.initial;\n let changed = false;\n\n if (propDef.hasDefault && initial === undefined) {\n initial = propDef.default as string | undefined;\n changed = true;\n }\n\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(initial)) {\n initial = propDef.default as string | undefined;\n changed = true;\n }\n\n return changed ? { ...value, initial } : value;\n}\n\n/**\n * Takes props, checks them against prop defs that have a `className` on them,\n * adds necessary CSS classes and inline styles, and returns the props without\n * the corresponding prop defs that were used to formulate the new `className`\n * and `style` values. Also applies prop def defaults to every prop.\n */\nfunction extractProps<P extends { className?: string; style?: React.CSSProperties; [key: string]: any }, T extends Record<string, PropDef>[]>(\n props: P,\n ...propDefs: T\n): Omit<P & { className?: string; style?: React.CSSProperties }, PropDefsWithClassName<T[number]>> {\n const { styling, passthrough, stylingKeys } = getCompiledPropDefs(propDefs);\n\n // Copy the props that survive to the element rather than spreading and then\n // deleting the styling keys. Deleting off a spread demotes the object to\n // dictionary mode in V8, and this object is on the render path of every\n // component in the library.\n const extractedProps: Record<string, any> = {};\n for (const key in props) {\n if (stylingKeys.has(key)) continue;\n extractedProps[key] = props[key];\n }\n\n for (let i = 0; i < passthrough.length; i++) {\n const propDef = passthrough[i];\n const value = extractedProps[propDef.key];\n\n if (value === undefined) {\n if (propDef.hasDefault) extractedProps[propDef.key] = propDef.default;\n continue;\n }\n\n // Fall back to the default when the value is not a valid enum value\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(value) && !isResponsiveObject(value)) {\n extractedProps[propDef.key] = propDef.default;\n }\n }\n\n let style: ReturnType<typeof mergeStyles>;\n const classes: string[] = [];\n\n for (let i = 0; i < styling.length; i++) {\n const propDef = styling[i];\n let value = props[propDef.key];\n\n // Apply prop def defaults\n if (value === undefined && propDef.hasDefault) {\n value = propDef.default;\n }\n\n // Apply the default value if the value is not a valid enum value\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(value) && !isResponsiveObject(value)) {\n value = propDef.default;\n }\n\n if (!value) continue;\n\n if (isResponsiveObject(value)) {\n // Make sure we are not threading through responsive values for non-responsive prop defs\n if (!propDef.responsive) continue;\n value = normalizeResponsiveValue(value, propDef);\n }\n\n if (propDef.type === 'enum') {\n const propClassName = getResponsiveClassNames({\n allowArbitraryValues: false,\n value,\n className: propDef.className!,\n propValues: propDef.values,\n propValueSet: propDef.valueSet,\n parseValue: propDef.parseValue,\n });\n\n if (propClassName) classes.push(propClassName);\n continue;\n }\n\n if (propDef.type === 'string' || propDef.type === 'enum | string') {\n const [propClassNames, propCustomProperties] = getResponsiveStyles({\n className: propDef.className!,\n customProperties: propDef.customProperties!,\n // `string` prop defs have no enum values, so every value is arbitrary\n propValues: propDef.type === 'string' ? [] : propDef.values,\n propValueSet: propDef.type === 'string' ? undefined : propDef.valueSet,\n parseValue: propDef.parseValue,\n value,\n });\n\n if (propCustomProperties) style = mergeStyles(style, propCustomProperties);\n if (propClassNames) classes.push(propClassNames);\n continue;\n }\n\n if (propDef.type === 'boolean') {\n // TODO handle responsive boolean props\n classes.push(propDef.className!);\n continue;\n }\n }\n\n extractedProps.className = classNames(classes.length > 0 ? classes.join(' ') : undefined, props.className);\n extractedProps.style = mergeStyles(style, props.style);\n return extractedProps as ReturnType<typeof extractProps<P, T>>;\n}\n\nexport { extractProps };\n", "import type { PropDef } from '../props/prop-def.js';\n\n/**\n * A prop def pre-processed into the exact shape `extractProps` needs at render\n * time. Everything that can be derived from the static prop def \u2014 enum\n * membership sets, whether the def is responsive, whether it carries a default\n * \u2014 is computed once here instead of on every render.\n */\ninterface CompiledPropDef {\n key: string;\n type: PropDef['type'];\n default: unknown;\n hasDefault: boolean;\n responsive: boolean;\n className?: string;\n customProperties?: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n /** The prop def's own enum values, kept for the responsive class name helpers. */\n values: readonly string[];\n /** O(1) membership for `values`. */\n valueSet: ReadonlySet<string>;\n /**\n * `values` plus the default, used to coerce invalid enum values back to the\n * default. Only present for `type: 'enum'` \u2014 `'enum | string'` props accept\n * arbitrary strings and must not be coerced.\n */\n enumValueSet?: ReadonlySet<unknown>;\n}\n\ninterface CompiledPropDefs {\n /** Defs that contribute a class name and/or custom properties. */\n styling: CompiledPropDef[];\n /**\n * Defs that pass through to the element but still need a default applied or\n * an invalid enum value coerced. Defs that can do neither are omitted\n * entirely \u2014 they are already correct as passed.\n */\n passthrough: CompiledPropDef[];\n /** Keys consumed by `styling`, so they can be skipped when copying props. */\n stylingKeys: ReadonlySet<string>;\n}\n\nconst EMPTY_VALUES: readonly string[] = [];\nconst EMPTY_SET: ReadonlySet<string> = new Set();\n\nfunction compile(propDefs: readonly Record<string, PropDef>[]): CompiledPropDefs {\n const merged: Record<string, PropDef> = Object.assign({}, ...propDefs);\n const styling: CompiledPropDef[] = [];\n const passthrough: CompiledPropDef[] = [];\n const stylingKeys = new Set<string>();\n\n for (const key in merged) {\n // The PropDef union is narrowed per-field below; reading the optional\n // members off the union directly is what the runtime actually needs.\n const def = merged[key] as PropDef & {\n default?: unknown;\n values?: readonly string[];\n className?: string;\n customProperties?: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n responsive?: true;\n };\n\n const values = def.values ?? EMPTY_VALUES;\n const compiled: CompiledPropDef = {\n key,\n type: def.type,\n default: def.default,\n hasDefault: def.default !== undefined,\n responsive: 'responsive' in def,\n className: def.className,\n customProperties: def.customProperties,\n parseValue: def.parseValue,\n values,\n valueSet: values.length > 0 ? new Set(values) : EMPTY_SET,\n enumValueSet: def.type === 'enum' ? new Set<unknown>([def.default, ...values]) : undefined,\n };\n\n if (def.className) {\n styling.push(compiled);\n stylingKeys.add(key);\n } else if (compiled.hasDefault || def.type === 'enum') {\n // Anything else is copied through untouched, so there is nothing to do.\n passthrough.push(compiled);\n }\n }\n\n return { styling, passthrough, stylingKeys };\n}\n\ninterface CacheNode {\n children: WeakMap<object, CacheNode>;\n compiled?: CompiledPropDefs;\n}\n\nconst cacheRoot: CacheNode = { children: new WeakMap() };\n\n/**\n * Compiles a set of prop defs, memoized on the identity of the prop def objects\n * themselves. Components always pass the same module-level constants, so after\n * the first render of a given component this is a couple of WeakMap lookups\n * instead of merging 50-odd prop defs into a fresh object.\n */\nfunction getCompiledPropDefs(propDefs: readonly Record<string, PropDef>[]): CompiledPropDefs {\n let node = cacheRoot;\n\n for (let i = 0; i < propDefs.length; i++) {\n const propDef = propDefs[i];\n let child = node.children.get(propDef);\n if (child === undefined) {\n child = { children: new WeakMap() };\n node.children.set(propDef, child);\n }\n node = child;\n }\n\n return (node.compiled ??= compile(propDefs));\n}\n\nexport { getCompiledPropDefs };\nexport type { CompiledPropDef, CompiledPropDefs };\n", "import type React from 'react';\n\n// Creates a union type of string literals with strings, but retains intellisense for the literals.\n// Union<string, 'foo' | 'bar'> => string | Omit<string, 'foo' | 'bar'>\ntype Union<S = string, T extends string | number = string> = T | Omit<S, T>;\n\nconst breakpoints = ['initial', 'xs', 'sm', 'md', 'lg', 'xl'] as const;\nconst breakpointSet: Set<string> = new Set(breakpoints);\ntype Breakpoint = (typeof breakpoints)[number];\ntype Responsive<T> = T | Partial<Record<Breakpoint, T>>;\n\ntype BooleanPropDef = {\n type: 'boolean';\n default?: boolean;\n required?: boolean;\n className?: string;\n};\ntype StringPropDef = {\n type: 'string';\n default?: string;\n required?: boolean;\n};\ntype ReactNodePropDef = {\n type: 'ReactNode';\n default?: React.ReactNode;\n required?: boolean;\n};\ntype EnumPropDef<T> = {\n type: 'enum';\n values: readonly T[];\n default?: T;\n required?: boolean;\n};\ntype EnumOrStringPropDef<T> = {\n type: 'enum | string';\n values: readonly T[];\n default?: T | string;\n required?: boolean;\n};\n\ntype NonStylingPropDef = {\n className?: never;\n customProperties?: never;\n parseValue?: never;\n};\n\ntype StylingPropDef = {\n className: string;\n parseValue?: (value: string) => string | undefined;\n};\n\ntype ArbitraryStylingPropDef = {\n className: string;\n customProperties: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n};\n\ntype RegularPropDef<T> =\n | ReactNodePropDef\n | BooleanPropDef\n | (StringPropDef & ArbitraryStylingPropDef)\n | (StringPropDef & NonStylingPropDef)\n | (EnumPropDef<T> & StylingPropDef)\n | (EnumPropDef<T> & NonStylingPropDef)\n | (EnumOrStringPropDef<T> & ArbitraryStylingPropDef)\n | (EnumOrStringPropDef<T> & NonStylingPropDef);\ntype ResponsivePropDef<T = any> = RegularPropDef<T> & { responsive: true };\ntype PropDef<T = any> = RegularPropDef<T> | ResponsivePropDef<T>;\n\n// prettier-ignore\ntype GetPropDefType<Def> =\n Def extends BooleanPropDef ? (Def extends ResponsivePropDef ? Responsive<boolean> : boolean)\n : Def extends StringPropDef ? (Def extends ResponsivePropDef ? Responsive<string> : string)\n : Def extends ReactNodePropDef ? (Def extends ResponsivePropDef ? Responsive<React.ReactNode> : React.ReactNode)\n : Def extends EnumOrStringPropDef<infer Type> ?\n Def extends ResponsivePropDef<infer Type extends string> ? Responsive<Union<string, Type>> : Type\n : Def extends EnumPropDef<infer Type> ? (Def extends ResponsivePropDef<infer Type> ? Responsive<Type> : Type)\n : never;\n\ntype GetPropDefTypes<P> = {\n [K in keyof P]?: GetPropDefType<P[K]>;\n};\n\nexport { breakpoints, breakpointSet };\nexport type {\n PropDef,\n GetPropDefTypes,\n ResponsivePropDef,\n //\n Breakpoint,\n Responsive,\n Union,\n};\n", "/** A util to check whether the object has a key, while inferring the correct key type */\nfunction hasOwnProperty<K extends string | number | symbol>(\n obj: Record<K, unknown>,\n key: string | number | symbol\n): key is K {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\nexport { hasOwnProperty };\n", "import type { Responsive, Breakpoint } from '../props/prop-def.js';\n\n// Use a Set for O(1) lookup instead of array.includes() which is O(n)\nconst breakpointSet = new Set<string>(['initial', 'xs', 'sm', 'md', 'lg', 'xl']);\n\nexport function isResponsiveObject<Value extends string>(\n obj: Responsive<Value | Omit<string, Value>> | undefined\n): obj is Record<Breakpoint, string> {\n if (typeof obj !== 'object' || obj === null) {\n return false;\n }\n // Use for...in to avoid Object.keys() array allocation\n for (const key in obj) {\n if (breakpointSet.has(key)) {\n return true;\n }\n }\n return false;\n}\n", "import { breakpointSet } from '../props/prop-def.js';\nimport { hasOwnProperty } from './has-own-property.js';\nimport { isResponsiveObject } from './is-responsive-object.js';\n\nimport type { Responsive, Union } from '../props/prop-def.js';\n\n/**\n * Membership test against a prop def's enum values. Callers that already hold a\n * compiled prop def pass `propValueSet` for an O(1) lookup; the handful of call\n * sites that build options inline fall back to scanning the array.\n */\nfunction includesValue(propValues: string[] | readonly string[], propValueSet: ReadonlySet<string> | undefined, value: string): boolean {\n return propValueSet !== undefined ? propValueSet.has(value) : propValues.includes(value);\n}\n\ninterface GetResponsiveStylesOptions {\n className: string;\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveStyles({ className, customProperties, ...args }: GetResponsiveStylesOptions) {\n const responsiveClassNames = getResponsiveClassNames({\n allowArbitraryValues: true,\n className,\n ...args,\n });\n\n const responsiveCustomProperties = getResponsiveCustomProperties({ customProperties, ...args });\n return [responsiveClassNames, responsiveCustomProperties] as const;\n}\n\ninterface GetResponsiveClassNamesOptions {\n allowArbitraryValues?: boolean;\n className: string;\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveClassNames({ allowArbitraryValues, value, className, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveClassNamesOptions): string | undefined {\n if (!value) {\n return undefined;\n }\n\n if (typeof value === 'string') {\n if (includesValue(propValues, propValueSet, value)) {\n return getBaseClassName(className, value, parseValue);\n }\n return allowArbitraryValues ? className : undefined;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n const classNames: string[] = [];\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n if (value !== undefined) {\n if (includesValue(propValues, propValueSet, value)) {\n const baseClassName = getBaseClassName(className, value, parseValue);\n const bpClassName = bp === 'initial' ? baseClassName : `${bp}:${baseClassName}`;\n classNames.push(bpClassName);\n } else if (allowArbitraryValues) {\n const bpClassName = bp === 'initial' ? className : `${bp}:${className}`;\n classNames.push(bpClassName);\n }\n }\n }\n\n return classNames.length > 0 ? classNames.join(' ') : '';\n }\n\n if (allowArbitraryValues) {\n return className;\n }\n}\n\nfunction getBaseClassName(className: string, value: string, parseValue: (value: string) => string | undefined): string {\n const delimiter = className ? '-' : '';\n const matchedValue = parseValue(value);\n const isNegative = matchedValue?.startsWith('-');\n const minus = isNegative ? '-' : '';\n const absoluteValue = isNegative ? matchedValue?.substring(1) : matchedValue;\n return `${minus}${className}${delimiter}${absoluteValue}`;\n}\n\ninterface GetResponsiveCustomPropertiesOptions {\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveCustomProperties({ customProperties, value, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveCustomPropertiesOptions) {\n // Don't generate custom properties if the value is not arbitrary\n if (!value || (typeof value === 'string' && includesValue(propValues, propValueSet, value))) {\n return undefined;\n }\n\n let styles: Record<string, string | undefined> | undefined;\n\n if (typeof value === 'string') {\n const parsed = parseValue(value);\n styles = {};\n for (const customProperty of customProperties) {\n styles[customProperty] = parsed;\n }\n return styles;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n // Don't generate a custom property if the value is not arbitrary\n if (value === undefined || includesValue(propValues, propValueSet, value)) {\n continue;\n }\n\n const parsed = parseValue(value);\n styles ??= {};\n for (const customProperty of customProperties) {\n const bpProperty = bp === 'initial' ? customProperty : `${customProperty}-${bp}`;\n styles[bpProperty] = parsed;\n }\n }\n }\n\n return styles ?? {};\n}\n\nexport { getResponsiveStyles, getResponsiveCustomProperties, getResponsiveClassNames };\n", "type InlineStyle =\n | React.CSSProperties\n | Record<string, string | number | null | undefined>\n | undefined;\n\n// Merges CSS styles like `classNames` merges CSS classes\n// Optimized to avoid object spread in loop - uses Object.assign for in-place mutation\nexport function mergeStyles(...styles: Array<InlineStyle>): InlineStyle {\n let result: Record<string, string | number | null | undefined> | undefined;\n\n for (const style of styles) {\n if (style) {\n if (result === undefined) {\n // First non-empty style - create result object\n result = {};\n }\n Object.assign(result, style);\n }\n }\n\n return result;\n}\n", "import type { PropDef } 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: 'rt-emphasis',\n values: emphases,\n default: undefined,\n },\n} satisfies {\n emphasis: PropDef<(typeof emphases)[number]>;\n};\n\nexport { emphasisPropDef, emphases };\n", "import type { PropDef } from './prop-def.js';\n\nconst leadingTrimValues = ['normal', 'start', 'end', 'both'] as const;\n\nconst leadingTrimPropDef = {\n trim: {\n type: 'enum',\n className: 'rt-r-lt',\n values: leadingTrimValues,\n responsive: true,\n },\n} satisfies {\n trim: PropDef<(typeof leadingTrimValues)[number]>;\n};\n\nexport { leadingTrimPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst textAlignValues = ['left', 'center', 'right'] as const;\n\nconst textAlignPropDef = {\n align: {\n type: 'enum',\n className: 'rt-r-ta',\n values: textAlignValues,\n responsive: true,\n },\n} satisfies {\n align: PropDef<(typeof textAlignValues)[number]>;\n};\n\nexport { textAlignPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst textWrapValues = ['wrap', 'nowrap', 'pretty', 'balance'] as const;\n\nconst textWrapPropDef = {\n wrap: {\n type: 'enum',\n className: 'rt-r-tw',\n values: textWrapValues,\n responsive: true,\n },\n} satisfies {\n wrap: PropDef<(typeof textWrapValues)[number]>;\n};\n\nexport { textWrapPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst truncatePropDef = {\n truncate: {\n type: 'boolean',\n className: 'rt-truncate',\n },\n} satisfies {\n truncate: PropDef<boolean>;\n};\n\nexport { truncatePropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst fontFamilies = ['sans', 'mono', 'serif'] as const;\n\nconst fontFamilyPropDef = {\n font: {\n type: 'enum',\n className: 'rt-r-ff',\n values: fontFamilies,\n },\n} satisfies {\n font: PropDef<(typeof fontFamilies)[number]>;\n};\n\nexport { fontFamilyPropDef };\n", "import type { PropDef } from './prop-def.js';\n\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: 'rt-r-weight',\n values: weights,\n responsive: true,\n },\n} satisfies {\n weight: PropDef<(typeof weights)[number]>;\n};\n\nexport { weightPropDef };\n", "import { asChildPropDef } from '../props/as-child.prop.js';\nimport { colorPropDef } from '../props/color.prop.js';\nimport { emphasisPropDef } from '../props/emphasis.prop.js';\nimport { leadingTrimPropDef } from '../props/leading-trim.prop.js';\nimport { textAlignPropDef } from '../props/text-align.prop.js';\nimport { textWrapPropDef } from '../props/text-wrap.prop.js';\nimport { truncatePropDef } from '../props/truncate.prop.js';\nimport { fontFamilyPropDef } from '../props/font-family.prop.js';\nimport { weightPropDef } from '../props/weight.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst as = ['span', 'div', 'label', 'p'] as const;\nconst sizes = ['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: 'rt-r-size',\n values: sizes,\n responsive: true,\n },\n ...fontFamilyPropDef,\n ...weightPropDef,\n ...textAlignPropDef,\n ...leadingTrimPropDef,\n ...truncatePropDef,\n ...textWrapPropDef,\n ...colorPropDef,\n ...emphasisPropDef,\n} satisfies {\n as: PropDef<(typeof as)[number]>;\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport { textPropDefs };\n", "'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 'radix-themes',\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: 'rt-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: 'rt-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: 'rt-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,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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B,SAAU,CAAE,GAAGA,EAAc,SAAU,QAAS,OAAQ,CAC1D,E1BYA,IAAMC,GAAgB,aAAyC,CAACC,EAAOC,IAAiB,CACtF,GAAM,CACJ,SAAAC,EACA,UAAAC,EACA,KAAAC,EACA,YAAAC,EACA,aAAAC,EACA,cAAAC,EACA,wBAAAC,EACA,QAAAC,EACA,UAAAC,EACA,WAAAC,EACA,GAAGC,CACL,EAAIC,EAAab,EAAOc,EAAe,EACjCC,EAAY,CAAE,KAAAX,EAAM,YAAAC,EAAa,aAAAC,EAAc,cAAAC,EAAe,wBAAAC,CAAwB,EAC5F,OACE,gBAAC,EAAAQ,QAAiB,KAAjB,CAAuB,GAAGD,GACzB,gBAAC,EAAAC,QAAiB,QAAjB,CAAyB,QAAO,IAAEd,CAAS,EAC5C,gBAAC,EAAAc,QAAiB,OAAjB,CAAwB,UAAWN,EAAW,WAAYC,GACzD,gBAACM,EAAA,CAAM,QAAO,IACZ,gBAAC,EAAAD,QAAiB,QAAjB,CACC,WAAY,EACZ,iBAAkB,GACjB,GAAGJ,EACJ,QAAS,GACT,IAAKX,EACL,aAAW,GAAAiB,SAAW,oBAAqBf,CAAS,GAEpD,gBAACgB,EAAA,CAAK,GAAG,IAAI,UAAU,iBAAiB,KAAK,KAC1CV,CACH,EACA,gBAAC,EAAAO,QAAiB,MAAjB,CAAuB,UAAU,kBAAkB,CACtD,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"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/hooks/index.ts", "../../../src/hooks/use-live-announcer.ts", "../../../src/hooks/use-body-pointer-events-cleanup.ts", "../../../src/hooks/use-tooltip-wrapper.ts", "../../../src/hooks/use-toggle-state.ts", "../../../src/hooks/use-appearance.ts", "../../../src/hooks/appearance-script.ts"],
4
- "sourcesContent": ["export { useLiveAnnouncer } from './use-live-announcer.js';\nexport { useBodyPointerEventsCleanup } from './use-body-pointer-events-cleanup.js';\nexport { useTooltipWrapper } from './use-tooltip-wrapper.js';\nexport { useToggleState } from './use-toggle-state.js';\nexport { useAppearance, setAppearance } from './use-appearance.js';\nexport { appearanceScript, APPEARANCE_STORAGE_KEY } from './appearance-script.js';\nexport type { AppearanceChoice, ResolvedAppearance } from './use-appearance.js';\n", "import * as React from 'react';\n\n/**\n * Reference counter to track how many components are using the live region.\n * Only remove the live region when no components are using it.\n */\nlet liveRegionRefCount = 0;\n\n/**\n * Hook for making live announcements to screen readers\n * Creates a hidden aria-live region for announcing dynamic content changes\n */\nexport function useLiveAnnouncer() {\n // Track the timeout so we can clean it up on unmount\n const timeoutRef = React.useRef<ReturnType<typeof setTimeout> | undefined>(undefined);\n\n // Create aria-live region if it doesn't exist\n React.useEffect(() => {\n let liveRegion = document.getElementById('rt-live-announcer');\n\n if (!liveRegion) {\n liveRegion = document.createElement('div');\n liveRegion.id = 'rt-live-announcer';\n liveRegion.setAttribute('aria-live', 'polite');\n liveRegion.setAttribute('aria-atomic', 'true');\n liveRegion.style.cssText = `\n position: absolute;\n left: -10000px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n `;\n document.body.appendChild(liveRegion);\n }\n\n // Increment ref count when component mounts\n liveRegionRefCount++;\n\n return () => {\n // Decrement ref count when component unmounts\n liveRegionRefCount--;\n\n // Clean up timeout on unmount\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n }\n\n // Only remove the live region if no components are using it\n if (liveRegionRefCount === 0) {\n const region = document.getElementById('rt-live-announcer');\n if (region) {\n region.remove();\n }\n }\n };\n }, []);\n\n const announce = React.useCallback((message: string) => {\n const liveRegion = document.getElementById('rt-live-announcer');\n if (liveRegion) {\n // Clear any pending timeout\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n }\n\n // Clear previous announcements\n liveRegion.textContent = '';\n\n // Add new announcement with a small delay to ensure it's announced\n timeoutRef.current = setTimeout(() => {\n liveRegion.textContent = message;\n }, 100);\n }\n }, []);\n\n return announce;\n}\n", "import * as React from 'react';\n\nlet cleanupInstalled = false;\n\n/**\n * Hook to cleanup stuck pointer-events: none on document.body\n *\n * This addresses an issue where react-remove-scroll (used by Radix UI Dialog)\n * sometimes fails to restore body pointer-events after dialog closes,\n * leaving the page unclickable.\n */\nexport function useBodyPointerEventsCleanup() {\n React.useEffect(() => {\n if (typeof document === 'undefined') return;\n if (cleanupInstalled) return;\n\n cleanupInstalled = true;\n\n // Deferred cleanups are tracked so unmount can cancel the ones still\n // queued. A timer that outlives the document reaches for `document.body`\n // after it is gone; under jsdom that surfaces as an unhandled\n // ReferenceError attributed to whichever test happened to be running.\n const pending = new Set<ReturnType<typeof setTimeout>>();\n\n const defer = (fn: () => void, delay: number) => {\n const id = setTimeout(() => {\n pending.delete(id);\n fn();\n }, delay);\n pending.add(id);\n };\n\n const hasOpenModal = (): boolean => {\n // Check for open dialogs/alertdialogs\n const hasDialogs = Boolean(\n document.querySelector(\n '[role=\"dialog\"][aria-modal=\"true\"], [role=\"alertdialog\"][aria-modal=\"true\"]',\n ),\n );\n\n // Also check for any Radix overlays that are still mounted\n const hasRadixOverlays = Boolean(\n document.querySelector('[data-radix-popper-content-wrapper], [data-state=\"open\"]'),\n );\n\n return hasDialogs || hasRadixOverlays;\n };\n\n const forceCleanup = () => {\n // Aggressive cleanup - remove pointer-events regardless\n if (document.body.style.pointerEvents === 'none') {\n console.log('[KookieUI] Force cleaning stuck pointer-events: none from body');\n document.body.style.pointerEvents = '';\n\n // Also remove any scroll-lock related attributes\n document.body.removeAttribute('data-scroll-locked');\n document.body.removeAttribute('data-remove-scroll');\n\n // Remove any classes that might be causing issues\n document.body.classList.remove('ReactModal__Body--open');\n }\n };\n\n const safeCleanup = () => {\n if (document.body.style.pointerEvents === 'none' && !hasOpenModal()) {\n console.log('[KookieUI] Safe cleaning stuck pointer-events: none from body');\n document.body.style.pointerEvents = '';\n }\n };\n\n // Force cleanup on any click outside modal content\n const onDocumentClick = (event: Event) => {\n const target = event.target as Element;\n if (\n target &&\n !target.closest(\n '[role=\"dialog\"], [role=\"alertdialog\"], [data-radix-popper-content-wrapper]',\n )\n ) {\n // Clicked outside any modal - force cleanup after a short delay\n defer(forceCleanup, 100);\n }\n };\n\n // Force cleanup on ESC key\n const onEscapeKey = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n defer(forceCleanup, 200);\n }\n };\n\n // Safe cleanup on other interactions\n const onInteraction = () => {\n defer(safeCleanup, 50);\n };\n\n // Install global listeners\n document.addEventListener('click', onDocumentClick, true);\n document.addEventListener('keydown', onEscapeKey, true);\n document.addEventListener('pointerup', onInteraction, true);\n document.addEventListener('transitionend', onInteraction, true);\n document.addEventListener('animationend', onInteraction, true);\n\n // Watch for DOM changes that might indicate overlay removal\n const observer = new MutationObserver(() => {\n defer(safeCleanup, 0);\n });\n observer.observe(document.body, { childList: true, subtree: true, attributes: true });\n\n // Fallback periodic cleanup\n const intervalId = setInterval(() => {\n if (document.body.style.pointerEvents === 'none' && !hasOpenModal()) {\n console.log('[KookieUI] Periodic cleanup of stuck pointer-events');\n document.body.style.pointerEvents = '';\n }\n }, 1000);\n\n // Initial cleanup\n defer(safeCleanup, 100);\n\n // Tear everything down together. The observer is the important one: it\n // fires while React unmounts the tree, so leaving it connected keeps\n // queueing work against a document that is about to go away. Releasing the\n // latch lets a later mount reinstall.\n return () => {\n clearInterval(intervalId);\n\n pending.forEach(clearTimeout);\n pending.clear();\n\n observer.disconnect();\n\n document.removeEventListener('click', onDocumentClick, true);\n document.removeEventListener('keydown', onEscapeKey, true);\n document.removeEventListener('pointerup', onInteraction, true);\n document.removeEventListener('transitionend', onInteraction, true);\n document.removeEventListener('animationend', onInteraction, true);\n\n cleanupInstalled = false;\n };\n }, []);\n}\n", "import * as React from 'react';\n\n/**\n * Hook for managing tooltip accessibility props and conditional rendering.\n * Encapsulates tooltip ID generation and aria-describedby binding.\n *\n * @param tooltip - The tooltip content (if any)\n * @returns Object containing tooltipId, hasTooltip flag, and accessibility props\n *\n * @example\n * ```tsx\n * const { tooltipId, hasTooltip, accessibilityProps } = useTooltipWrapper(tooltip);\n *\n * const button = <button {...accessibilityProps}>Click me</button>;\n *\n * if (!hasTooltip) return button;\n *\n * return <Tooltip id={tooltipId} content={tooltip}>{button}</Tooltip>;\n * ```\n */\nexport function useTooltipWrapper(tooltip: React.ReactNode) {\n const tooltipId = React.useId();\n const hasTooltip = Boolean(tooltip);\n\n const accessibilityProps = React.useMemo(() => (hasTooltip ? { 'aria-describedby': tooltipId } : {}), [hasTooltip, tooltipId]);\n\n return { tooltipId, hasTooltip, accessibilityProps };\n}\n", "import * as React from 'react';\nimport { useLiveAnnouncer } from './use-live-announcer.js';\n\n/**\n * Options for the useToggleState hook\n */\ninterface UseToggleStateOptions {\n /** Controlled pressed state */\n pressed?: boolean;\n /** Callback when pressed state changes */\n onPressedChange?: (pressed: boolean) => void;\n /** Function to get the accessible name for announcements */\n getAccessibleName: () => string;\n /** Component name for warning messages */\n componentName: string;\n}\n\n/**\n * Hook for shared toggle button state management.\n * Provides accessibility announcements and controlled/uncontrolled warnings.\n *\n * @param options - Configuration options for the toggle state\n * @returns Object containing the handlePressedChange callback\n *\n * @example\n * ```tsx\n * const getAccessibleName = React.useCallback(() => 'Toggle button', []);\n *\n * const { handlePressedChange } = useToggleState({\n * pressed,\n * onPressedChange,\n * getAccessibleName,\n * componentName: 'ToggleButton',\n * });\n * ```\n */\nexport function useToggleState({ pressed, onPressedChange, getAccessibleName, componentName }: UseToggleStateOptions) {\n const announce = useLiveAnnouncer();\n\n // Track if we've already warned about controlled without handler\n const warnedRef = React.useRef(false);\n\n /**\n * Memoized handler for state changes with accessibility announcements.\n * Announces the new state immediately for screen readers.\n */\n const handlePressedChange = React.useCallback(\n (newPressed: boolean) => {\n const accessibleName = getAccessibleName();\n // Announce the state change for screen readers\n announce(`${accessibleName} ${newPressed ? 'pressed' : 'unpressed'}`);\n // Call the user's change handler\n onPressedChange?.(newPressed);\n },\n [announce, onPressedChange, getAccessibleName],\n );\n\n // Development-only warning for controlled/uncontrolled pattern\n // Only warns once to avoid console spam\n React.useEffect(() => {\n if (process.env.NODE_ENV === 'development' && pressed !== undefined && onPressedChange === undefined && !warnedRef.current) {\n warnedRef.current = true;\n console.warn(\n `${componentName}: You provided a \\`pressed\\` prop without an \\`onPressedChange\\` handler. ` +\n 'This will result in a read-only toggle button. If you want the button to be interactive, ' +\n 'you should provide an `onPressedChange` handler.',\n );\n }\n }, [pressed, onPressedChange, componentName]);\n\n return { handlePressedChange };\n}\n", "'use client';\n\nimport * as React from 'react';\nimport { APPEARANCE_STORAGE_KEY } from './appearance-script.js';\n\n/**\n * Light and dark mode, decided before the first paint and kept on `<html>`.\n *\n * The server cannot know the visitor's mode, so `appearanceScript` runs synchronously in\n * `<head>`: the stored choice first, `prefers-color-scheme` otherwise. It writes the `light`\n * or `dark` class (which every token and component stylesheet already keys off) and\n * `data-appearance` on `<html>`. The root `<Theme>` keeps `appearance=\"inherit\"`, so it\n * writes no class of its own and `<html>` is the one source of truth. Nested themes and\n * portals inherit it from there.\n *\n * `useAppearance` is the client half: an external store over `<html>` and the same storage\n * key. It never mirrors the mode into React state that could disagree with the DOM.\n */\n\ntype AppearanceChoice = 'system' | 'light' | 'dark';\ntype ResolvedAppearance = 'light' | 'dark';\n\nconst listeners = new Set<() => void>();\n\nfunction emit() {\n for (const listener of listeners) listener();\n}\n\nfunction readChoice(): AppearanceChoice {\n try {\n const value = globalThis.localStorage?.getItem(APPEARANCE_STORAGE_KEY);\n return value === 'light' || value === 'dark' ? value : 'system';\n } catch {\n return 'system';\n }\n}\n\nfunction systemAppearance(): ResolvedAppearance {\n return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';\n}\n\nfunction stamp(mode: ResolvedAppearance) {\n const root = document.documentElement;\n root.classList.remove('light', 'dark');\n root.classList.add(mode);\n root.setAttribute('data-appearance', mode);\n root.style.colorScheme = mode;\n}\n\nfunction readResolved(): ResolvedAppearance {\n const root = document.documentElement;\n if (root.classList.contains('dark') || root.classList.contains('dark-theme')) return 'dark';\n if (root.classList.contains('light') || root.classList.contains('light-theme')) return 'light';\n return systemAppearance();\n}\n\nlet snapshot: { choice: AppearanceChoice; resolved: ResolvedAppearance } | null = null;\n\nfunction getSnapshot() {\n const choice = readChoice();\n const resolved = readResolved();\n if (!snapshot || snapshot.choice !== choice || snapshot.resolved !== resolved) {\n snapshot = { choice, resolved };\n }\n return snapshot;\n}\n\nconst serverSnapshot = { choice: 'system' as AppearanceChoice, resolved: 'light' as ResolvedAppearance };\n\nfunction subscribe(listener: () => void) {\n listeners.add(listener);\n const media = window.matchMedia('(prefers-color-scheme: dark)');\n // With no stored choice, follow the system as it changes.\n const onSystemChange = () => {\n if (readChoice() === 'system') {\n stamp(systemAppearance());\n emit();\n }\n };\n // Another tab changed the choice.\n const onStorage = (event: StorageEvent) => {\n if (event.key !== APPEARANCE_STORAGE_KEY) return;\n const choice = readChoice();\n stamp(choice === 'system' ? systemAppearance() : choice);\n emit();\n };\n media.addEventListener('change', onSystemChange);\n window.addEventListener('storage', onStorage);\n return () => {\n listeners.delete(listener);\n media.removeEventListener('change', onSystemChange);\n window.removeEventListener('storage', onStorage);\n };\n}\n\n/** Applies a choice to `<html>` and stores it. The change applies even if storage is blocked. */\nfunction setAppearance(choice: AppearanceChoice) {\n try {\n if (choice === 'system') localStorage.removeItem(APPEARANCE_STORAGE_KEY);\n else localStorage.setItem(APPEARANCE_STORAGE_KEY, choice);\n } catch {\n // Storage is blocked: the mode still changes for this page.\n }\n stamp(choice === 'system' ? systemAppearance() : choice);\n emit();\n}\n\n/**\n * The page's light or dark mode. `choice` is what the person picked (`system` when they\n * haven't); `appearance` is what is showing. On the server and in the first client render it\n * reports `system` / `light`, then corrects without a hydration mismatch.\n */\nfunction useAppearance() {\n const { choice, resolved } = React.useSyncExternalStore(subscribe, getSnapshot, () => serverSnapshot);\n return { choice, appearance: resolved, setAppearance } as const;\n}\n\nexport { useAppearance, setAppearance };\nexport type { AppearanceChoice, ResolvedAppearance };\n", "/**\n * The pre-paint half of light and dark mode (see `use-appearance.ts`). Kept in its own module\n * with no client directive, so a server component such as a Next.js root layout can import the\n * string and inline it in `<head>`.\n */\n\nconst APPEARANCE_STORAGE_KEY = 'kookie-appearance';\n\n/**\n * Inline this in `<head>`, before any stylesheet paints, e.g.\n * `<script dangerouslySetInnerHTML={{ __html: appearanceScript }} />`.\n *\n * Storage is read inside its own try/catch: browsers that block site data throw on access,\n * and that must not skip the stamp. `matchMedia` always answers.\n */\nconst appearanceScript = `(function () {\n var e = document.documentElement;\n var a = null;\n try { a = localStorage.getItem(${JSON.stringify(APPEARANCE_STORAGE_KEY)}); } catch (err) {}\n var dark = a === \"light\" ? false : a === \"dark\" ? true : matchMedia(\"(prefers-color-scheme: dark)\").matches;\n var mode = dark ? \"dark\" : \"light\";\n e.classList.remove(\"light\", \"dark\");\n e.classList.add(mode);\n e.setAttribute(\"data-appearance\", mode);\n e.style.colorScheme = mode;\n})();`;\n\nexport { appearanceScript, APPEARANCE_STORAGE_KEY };\n"],
4
+ "sourcesContent": ["export { useLiveAnnouncer } from './use-live-announcer.js';\nexport { useBodyPointerEventsCleanup } from './use-body-pointer-events-cleanup.js';\nexport { useTooltipWrapper } from './use-tooltip-wrapper.js';\nexport { useToggleState } from './use-toggle-state.js';\nexport { useAppearance, setAppearance } from './use-appearance.js';\nexport { appearanceScript, APPEARANCE_STORAGE_KEY } from './appearance-script.js';\nexport type { AppearanceChoice, ResolvedAppearance } from './use-appearance.js';\n", "import * as React from 'react';\n\n/**\n * Reference counter to track how many components are using the live region.\n * Only remove the live region when no components are using it.\n */\nlet liveRegionRefCount = 0;\n\n/**\n * Hook for making live announcements to screen readers\n * Creates a hidden aria-live region for announcing dynamic content changes\n */\nexport function useLiveAnnouncer() {\n // Track the timeout so we can clean it up on unmount\n const timeoutRef = React.useRef<ReturnType<typeof setTimeout> | undefined>(undefined);\n\n // Create aria-live region if it doesn't exist\n React.useEffect(() => {\n let liveRegion = document.getElementById('rt-live-announcer');\n\n if (!liveRegion) {\n liveRegion = document.createElement('div');\n liveRegion.id = 'rt-live-announcer';\n liveRegion.setAttribute('aria-live', 'polite');\n liveRegion.setAttribute('aria-atomic', 'true');\n liveRegion.style.cssText = `\n position: absolute;\n left: -10000px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n `;\n document.body.appendChild(liveRegion);\n }\n\n // Increment ref count when component mounts\n liveRegionRefCount++;\n\n return () => {\n // Decrement ref count when component unmounts\n liveRegionRefCount--;\n\n // Clean up timeout on unmount\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n }\n\n // Only remove the live region if no components are using it\n if (liveRegionRefCount === 0) {\n const region = document.getElementById('rt-live-announcer');\n if (region) {\n region.remove();\n }\n }\n };\n }, []);\n\n const announce = React.useCallback((message: string) => {\n const liveRegion = document.getElementById('rt-live-announcer');\n if (liveRegion) {\n // Clear any pending timeout\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n }\n\n // Clear previous announcements\n liveRegion.textContent = '';\n\n // Add new announcement with a small delay to ensure it's announced\n timeoutRef.current = setTimeout(() => {\n liveRegion.textContent = message;\n }, 100);\n }\n }, []);\n\n return announce;\n}\n", "import * as React from 'react';\n\nlet cleanupInstalled = false;\n\n/**\n * Hook to cleanup stuck pointer-events: none on document.body\n *\n * This addresses an issue where react-remove-scroll (used by Radix UI Dialog)\n * sometimes fails to restore body pointer-events after dialog closes,\n * leaving the page unclickable.\n */\nexport function useBodyPointerEventsCleanup() {\n React.useEffect(() => {\n if (typeof document === 'undefined') return;\n if (cleanupInstalled) return;\n\n cleanupInstalled = true;\n\n // Deferred cleanups are tracked so unmount can cancel the ones still\n // queued. A timer that outlives the document reaches for `document.body`\n // after it is gone; under jsdom that surfaces as an unhandled\n // ReferenceError attributed to whichever test happened to be running.\n const pending = new Set<ReturnType<typeof setTimeout>>();\n\n const defer = (fn: () => void, delay: number) => {\n const id = setTimeout(() => {\n pending.delete(id);\n fn();\n }, delay);\n pending.add(id);\n };\n\n const hasOpenModal = (): boolean => {\n // Check for open dialogs/alertdialogs\n const hasDialogs = Boolean(\n document.querySelector(\n '[role=\"dialog\"][aria-modal=\"true\"], [role=\"alertdialog\"][aria-modal=\"true\"]',\n ),\n );\n\n // Also check for any Radix overlays that are still mounted\n const hasRadixOverlays = Boolean(\n document.querySelector('[data-radix-popper-content-wrapper], [data-state=\"open\"]'),\n );\n\n return hasDialogs || hasRadixOverlays;\n };\n\n const forceCleanup = () => {\n // Aggressive cleanup - remove pointer-events regardless\n if (document.body.style.pointerEvents === 'none') {\n console.log('[KookieUI] Force cleaning stuck pointer-events: none from body');\n document.body.style.pointerEvents = '';\n\n // Also remove any scroll-lock related attributes\n document.body.removeAttribute('data-scroll-locked');\n document.body.removeAttribute('data-remove-scroll');\n\n // Remove any classes that might be causing issues\n document.body.classList.remove('ReactModal__Body--open');\n }\n };\n\n const safeCleanup = () => {\n if (document.body.style.pointerEvents === 'none' && !hasOpenModal()) {\n console.log('[KookieUI] Safe cleaning stuck pointer-events: none from body');\n document.body.style.pointerEvents = '';\n }\n };\n\n // Force cleanup on any click outside modal content\n const onDocumentClick = (event: Event) => {\n const target = event.target as Element;\n if (\n target &&\n !target.closest(\n '[role=\"dialog\"], [role=\"alertdialog\"], [data-radix-popper-content-wrapper]',\n )\n ) {\n // Clicked outside any modal - force cleanup after a short delay\n defer(forceCleanup, 100);\n }\n };\n\n // Force cleanup on ESC key\n const onEscapeKey = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n defer(forceCleanup, 200);\n }\n };\n\n // Safe cleanup on other interactions\n const onInteraction = () => {\n defer(safeCleanup, 50);\n };\n\n // Install global listeners\n document.addEventListener('click', onDocumentClick, true);\n document.addEventListener('keydown', onEscapeKey, true);\n document.addEventListener('pointerup', onInteraction, true);\n document.addEventListener('transitionend', onInteraction, true);\n document.addEventListener('animationend', onInteraction, true);\n\n // Watch for DOM changes that might indicate overlay removal\n const observer = new MutationObserver(() => {\n defer(safeCleanup, 0);\n });\n observer.observe(document.body, { childList: true, subtree: true, attributes: true });\n\n // Fallback periodic cleanup\n const intervalId = setInterval(() => {\n if (document.body.style.pointerEvents === 'none' && !hasOpenModal()) {\n console.log('[KookieUI] Periodic cleanup of stuck pointer-events');\n document.body.style.pointerEvents = '';\n }\n }, 1000);\n\n // Initial cleanup\n defer(safeCleanup, 100);\n\n // Tear everything down together. The observer is the important one: it\n // fires while React unmounts the tree, so leaving it connected keeps\n // queueing work against a document that is about to go away. Releasing the\n // latch lets a later mount reinstall.\n return () => {\n clearInterval(intervalId);\n\n pending.forEach(clearTimeout);\n pending.clear();\n\n observer.disconnect();\n\n document.removeEventListener('click', onDocumentClick, true);\n document.removeEventListener('keydown', onEscapeKey, true);\n document.removeEventListener('pointerup', onInteraction, true);\n document.removeEventListener('transitionend', onInteraction, true);\n document.removeEventListener('animationend', onInteraction, true);\n\n cleanupInstalled = false;\n };\n }, []);\n}\n", "import * as React from 'react';\n\n/**\n * Hook for managing tooltip accessibility props and conditional rendering.\n * Encapsulates tooltip ID generation and aria-describedby binding.\n *\n * @param tooltip - The tooltip content (if any)\n * @returns Object containing tooltipId, hasTooltip flag, and accessibility props\n *\n * @example\n * ```tsx\n * const { tooltipId, hasTooltip, accessibilityProps } = useTooltipWrapper(tooltip);\n *\n * const button = <button {...accessibilityProps}>Click me</button>;\n *\n * if (!hasTooltip) return button;\n *\n * return <Tooltip id={tooltipId} content={tooltip}>{button}</Tooltip>;\n * ```\n */\nexport function useTooltipWrapper(tooltip: React.ReactNode) {\n const tooltipId = React.useId();\n const hasTooltip = Boolean(tooltip);\n\n const accessibilityProps = React.useMemo(() => (hasTooltip ? { 'aria-describedby': tooltipId } : {}), [hasTooltip, tooltipId]);\n\n return { tooltipId, hasTooltip, accessibilityProps };\n}\n", "import * as React from 'react';\nimport { useLiveAnnouncer } from './use-live-announcer.js';\n\n/**\n * Options for the useToggleState hook\n */\ninterface UseToggleStateOptions {\n /** Controlled pressed state */\n pressed?: boolean;\n /** Callback when pressed state changes */\n onPressedChange?: (pressed: boolean) => void;\n /** Function to get the accessible name for announcements */\n getAccessibleName: () => string;\n /** Component name for warning messages */\n componentName: string;\n}\n\n/**\n * Hook for shared toggle button state management.\n * Provides accessibility announcements and controlled/uncontrolled warnings.\n *\n * @param options - Configuration options for the toggle state\n * @returns Object containing the handlePressedChange callback\n *\n * @example\n * ```tsx\n * const getAccessibleName = React.useCallback(() => 'Toggle button', []);\n *\n * const { handlePressedChange } = useToggleState({\n * pressed,\n * onPressedChange,\n * getAccessibleName,\n * componentName: 'Toggle',\n * });\n * ```\n */\nexport function useToggleState({ pressed, onPressedChange, getAccessibleName, componentName }: UseToggleStateOptions) {\n const announce = useLiveAnnouncer();\n\n // Track if we've already warned about controlled without handler\n const warnedRef = React.useRef(false);\n\n /**\n * Memoized handler for state changes with accessibility announcements.\n * Announces the new state immediately for screen readers.\n */\n const handlePressedChange = React.useCallback(\n (newPressed: boolean) => {\n const accessibleName = getAccessibleName();\n // Announce the state change for screen readers\n announce(`${accessibleName} ${newPressed ? 'pressed' : 'unpressed'}`);\n // Call the user's change handler\n onPressedChange?.(newPressed);\n },\n [announce, onPressedChange, getAccessibleName],\n );\n\n // Development-only warning for controlled/uncontrolled pattern\n // Only warns once to avoid console spam\n React.useEffect(() => {\n if (process.env.NODE_ENV === 'development' && pressed !== undefined && onPressedChange === undefined && !warnedRef.current) {\n warnedRef.current = true;\n console.warn(\n `${componentName}: You provided a \\`pressed\\` prop without an \\`onPressedChange\\` handler. ` +\n 'This will result in a read-only toggle button. If you want the button to be interactive, ' +\n 'you should provide an `onPressedChange` handler.',\n );\n }\n }, [pressed, onPressedChange, componentName]);\n\n return { handlePressedChange };\n}\n", "'use client';\n\nimport * as React from 'react';\nimport { APPEARANCE_STORAGE_KEY } from './appearance-script.js';\n\n/**\n * Light and dark mode, decided before the first paint and kept on `<html>`.\n *\n * The server cannot know the visitor's mode, so `appearanceScript` runs synchronously in\n * `<head>`: the stored choice first, `prefers-color-scheme` otherwise. It writes the `light`\n * or `dark` class (which every token and component stylesheet already keys off) and\n * `data-appearance` on `<html>`. The root `<Theme>` keeps `appearance=\"inherit\"`, so it\n * writes no class of its own and `<html>` is the one source of truth. Nested themes and\n * portals inherit it from there.\n *\n * `useAppearance` is the client half: an external store over `<html>` and the same storage\n * key. It never mirrors the mode into React state that could disagree with the DOM.\n */\n\ntype AppearanceChoice = 'system' | 'light' | 'dark';\ntype ResolvedAppearance = 'light' | 'dark';\n\nconst listeners = new Set<() => void>();\n\nfunction emit() {\n for (const listener of listeners) listener();\n}\n\nfunction readChoice(): AppearanceChoice {\n try {\n const value = globalThis.localStorage?.getItem(APPEARANCE_STORAGE_KEY);\n return value === 'light' || value === 'dark' ? value : 'system';\n } catch {\n return 'system';\n }\n}\n\nfunction systemAppearance(): ResolvedAppearance {\n return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';\n}\n\nfunction stamp(mode: ResolvedAppearance) {\n const root = document.documentElement;\n root.classList.remove('light', 'dark');\n root.classList.add(mode);\n root.setAttribute('data-appearance', mode);\n root.style.colorScheme = mode;\n}\n\nfunction readResolved(): ResolvedAppearance {\n const root = document.documentElement;\n if (root.classList.contains('dark') || root.classList.contains('dark-theme')) return 'dark';\n if (root.classList.contains('light') || root.classList.contains('light-theme')) return 'light';\n return systemAppearance();\n}\n\nlet snapshot: { choice: AppearanceChoice; resolved: ResolvedAppearance } | null = null;\n\nfunction getSnapshot() {\n const choice = readChoice();\n const resolved = readResolved();\n if (!snapshot || snapshot.choice !== choice || snapshot.resolved !== resolved) {\n snapshot = { choice, resolved };\n }\n return snapshot;\n}\n\nconst serverSnapshot = { choice: 'system' as AppearanceChoice, resolved: 'light' as ResolvedAppearance };\n\nfunction subscribe(listener: () => void) {\n listeners.add(listener);\n const media = window.matchMedia('(prefers-color-scheme: dark)');\n // With no stored choice, follow the system as it changes.\n const onSystemChange = () => {\n if (readChoice() === 'system') {\n stamp(systemAppearance());\n emit();\n }\n };\n // Another tab changed the choice.\n const onStorage = (event: StorageEvent) => {\n if (event.key !== APPEARANCE_STORAGE_KEY) return;\n const choice = readChoice();\n stamp(choice === 'system' ? systemAppearance() : choice);\n emit();\n };\n media.addEventListener('change', onSystemChange);\n window.addEventListener('storage', onStorage);\n return () => {\n listeners.delete(listener);\n media.removeEventListener('change', onSystemChange);\n window.removeEventListener('storage', onStorage);\n };\n}\n\n/** Applies a choice to `<html>` and stores it. The change applies even if storage is blocked. */\nfunction setAppearance(choice: AppearanceChoice) {\n try {\n if (choice === 'system') localStorage.removeItem(APPEARANCE_STORAGE_KEY);\n else localStorage.setItem(APPEARANCE_STORAGE_KEY, choice);\n } catch {\n // Storage is blocked: the mode still changes for this page.\n }\n stamp(choice === 'system' ? systemAppearance() : choice);\n emit();\n}\n\n/**\n * The page's light or dark mode. `choice` is what the person picked (`system` when they\n * haven't); `appearance` is what is showing. On the server and in the first client render it\n * reports `system` / `light`, then corrects without a hydration mismatch.\n */\nfunction useAppearance() {\n const { choice, resolved } = React.useSyncExternalStore(subscribe, getSnapshot, () => serverSnapshot);\n return { choice, appearance: resolved, setAppearance } as const;\n}\n\nexport { useAppearance, setAppearance };\nexport type { AppearanceChoice, ResolvedAppearance };\n", "/**\n * The pre-paint half of light and dark mode (see `use-appearance.ts`). Kept in its own module\n * with no client directive, so a server component such as a Next.js root layout can import the\n * string and inline it in `<head>`.\n */\n\nconst APPEARANCE_STORAGE_KEY = 'kookie-appearance';\n\n/**\n * Inline this in `<head>`, before any stylesheet paints, e.g.\n * `<script dangerouslySetInnerHTML={{ __html: appearanceScript }} />`.\n *\n * Storage is read inside its own try/catch: browsers that block site data throw on access,\n * and that must not skip the stamp. `matchMedia` always answers.\n */\nconst appearanceScript = `(function () {\n var e = document.documentElement;\n var a = null;\n try { a = localStorage.getItem(${JSON.stringify(APPEARANCE_STORAGE_KEY)}); } catch (err) {}\n var dark = a === \"light\" ? false : a === \"dark\" ? true : matchMedia(\"(prefers-color-scheme: dark)\").matches;\n var mode = dark ? \"dark\" : \"light\";\n e.classList.remove(\"light\", \"dark\");\n e.classList.add(mode);\n e.setAttribute(\"data-appearance\", mode);\n e.style.colorScheme = mode;\n})();`;\n\nexport { appearanceScript, APPEARANCE_STORAGE_KEY };\n"],
5
5
  "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,4BAAAE,EAAA,qBAAAC,EAAA,kBAAAC,EAAA,kBAAAC,EAAA,gCAAAC,EAAA,qBAAA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M,MAAQf,EAAwB,OAC1C,IAAMQ,EAASV,EAAW,EAC1BI,EAAMM,IAAW,SAAWP,EAAiB,EAAIO,CAAM,EACvDZ,EAAK,CACP,EACA,OAAAgB,EAAM,iBAAiB,SAAUC,CAAc,EAC/C,OAAO,iBAAiB,UAAWC,CAAS,EACrC,IAAM,CACXnB,EAAU,OAAOE,CAAQ,EACzBe,EAAM,oBAAoB,SAAUC,CAAc,EAClD,OAAO,oBAAoB,UAAWC,CAAS,CACjD,CACF,CAGA,SAASE,EAAcR,EAA0B,CAC/C,GAAI,CACEA,IAAW,SAAU,aAAa,WAAWR,CAAsB,EAClE,aAAa,QAAQA,EAAwBQ,CAAM,CAC1D,MAAQ,CAER,CACAN,EAAMM,IAAW,SAAWP,EAAiB,EAAIO,CAAM,EACvDZ,EAAK,CACP,CAOA,SAASqB,GAAgB,CACvB,GAAM,CAAE,OAAAT,EAAQ,SAAAC,CAAS,EAAU,uBAAqBE,EAAWJ,EAAa,IAAMG,CAAc,EACpG,MAAO,CAAE,OAAAF,EAAQ,WAAYC,EAAU,cAAAO,CAAc,CACvD",
6
6
  "names": ["hooks_exports", "__export", "APPEARANCE_STORAGE_KEY", "appearanceScript", "setAppearance", "useAppearance", "useBodyPointerEventsCleanup", "useLiveAnnouncer", "useToggleState", "useTooltipWrapper", "__toCommonJS", "React", "liveRegionRefCount", "useLiveAnnouncer", "timeoutRef", "liveRegion", "region", "message", "React", "cleanupInstalled", "useBodyPointerEventsCleanup", "pending", "defer", "fn", "delay", "id", "hasOpenModal", "hasDialogs", "hasRadixOverlays", "forceCleanup", "safeCleanup", "onDocumentClick", "event", "target", "onEscapeKey", "onInteraction", "observer", "intervalId", "React", "useTooltipWrapper", "tooltip", "tooltipId", "hasTooltip", "accessibilityProps", "React", "useToggleState", "pressed", "onPressedChange", "getAccessibleName", "componentName", "announce", "useLiveAnnouncer", "warnedRef", "handlePressedChange", "newPressed", "accessibleName", "React", "APPEARANCE_STORAGE_KEY", "appearanceScript", "listeners", "emit", "listener", "readChoice", "value", "APPEARANCE_STORAGE_KEY", "systemAppearance", "stamp", "mode", "root", "readResolved", "snapshot", "getSnapshot", "choice", "resolved", "serverSnapshot", "subscribe", "media", "onSystemChange", "onStorage", "event", "setAppearance", "useAppearance"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  /**
3
3
  * State that tracks a prop but can also be set imperatively — the shape `Theme`
4
- * needs, where a prop sets the value and `ThemePanel` can change it at runtime.
4
+ * needs, where a prop sets the value and the context setters can change it at runtime.
5
5
  *
6
6
  * Adjusts state during render rather than syncing in a `useEffect`. An effect
7
7
  * would commit one render carrying the *old* value and schedule a second one,