@womp/kookie-ui 0.18.0 → 0.19.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 (535) hide show
  1. package/components.css +691 -1462
  2. package/dist/cjs/components/_internal/base-button.js +1 -1
  3. package/dist/cjs/components/_internal/base-button.js.map +2 -2
  4. package/dist/cjs/components/_internal/base-menu.utils.js +1 -1
  5. package/dist/cjs/components/_internal/base-menu.utils.js.map +2 -2
  6. package/dist/cjs/components/_internal/pane-chrome.js +1 -1
  7. package/dist/cjs/components/_internal/pane-chrome.js.map +2 -2
  8. package/dist/cjs/components/_internal/shell-sidebar.js +1 -1
  9. package/dist/cjs/components/_internal/shell-sidebar.js.map +2 -2
  10. package/dist/cjs/components/alert-dialog.d.ts.map +1 -1
  11. package/dist/cjs/components/alert-dialog.js +1 -1
  12. package/dist/cjs/components/alert-dialog.js.map +3 -3
  13. package/dist/cjs/components/alert-dialog.props.d.ts +1 -2
  14. package/dist/cjs/components/alert-dialog.props.d.ts.map +1 -1
  15. package/dist/cjs/components/alert-dialog.props.js +1 -1
  16. package/dist/cjs/components/alert-dialog.props.js.map +2 -2
  17. package/dist/cjs/components/avatar.js +1 -1
  18. package/dist/cjs/components/avatar.js.map +2 -2
  19. package/dist/cjs/components/badge.js +1 -1
  20. package/dist/cjs/components/badge.js.map +2 -2
  21. package/dist/cjs/components/blockquote.js +1 -1
  22. package/dist/cjs/components/blockquote.js.map +2 -2
  23. package/dist/cjs/components/box.js +1 -1
  24. package/dist/cjs/components/box.js.map +2 -2
  25. package/dist/cjs/components/button.js +1 -1
  26. package/dist/cjs/components/button.js.map +2 -2
  27. package/dist/cjs/components/card.d.ts.map +1 -1
  28. package/dist/cjs/components/card.js +1 -1
  29. package/dist/cjs/components/card.js.map +4 -4
  30. package/dist/cjs/components/card.props.d.ts +3 -10
  31. package/dist/cjs/components/card.props.d.ts.map +1 -1
  32. package/dist/cjs/components/card.props.js +1 -1
  33. package/dist/cjs/components/card.props.js.map +2 -2
  34. package/dist/cjs/components/chatbar.js +2 -2
  35. package/dist/cjs/components/chatbar.js.map +2 -2
  36. package/dist/cjs/components/checkbox-cards.d.ts.map +1 -1
  37. package/dist/cjs/components/checkbox-cards.js +1 -1
  38. package/dist/cjs/components/checkbox-cards.js.map +4 -4
  39. package/dist/cjs/components/checkbox-cards.props.d.ts +2 -1
  40. package/dist/cjs/components/checkbox-cards.props.d.ts.map +1 -1
  41. package/dist/cjs/components/checkbox-cards.props.js +1 -1
  42. package/dist/cjs/components/checkbox-cards.props.js.map +2 -2
  43. package/dist/cjs/components/checkbox-group.js +1 -1
  44. package/dist/cjs/components/checkbox-group.js.map +2 -2
  45. package/dist/cjs/components/checkbox.js +1 -1
  46. package/dist/cjs/components/checkbox.js.map +2 -2
  47. package/dist/cjs/components/code.js +1 -1
  48. package/dist/cjs/components/code.js.map +2 -2
  49. package/dist/cjs/components/combobox.js +1 -1
  50. package/dist/cjs/components/combobox.js.map +2 -2
  51. package/dist/cjs/components/container.js +1 -1
  52. package/dist/cjs/components/container.js.map +2 -2
  53. package/dist/cjs/components/context-menu.js +1 -1
  54. package/dist/cjs/components/context-menu.js.map +2 -2
  55. package/dist/cjs/components/data-list.js +1 -1
  56. package/dist/cjs/components/data-list.js.map +2 -2
  57. package/dist/cjs/components/dialog.d.ts.map +1 -1
  58. package/dist/cjs/components/dialog.js +1 -1
  59. package/dist/cjs/components/dialog.js.map +3 -3
  60. package/dist/cjs/components/dialog.props.d.ts +1 -2
  61. package/dist/cjs/components/dialog.props.d.ts.map +1 -1
  62. package/dist/cjs/components/dialog.props.js +1 -1
  63. package/dist/cjs/components/dialog.props.js.map +2 -2
  64. package/dist/cjs/components/dropdown-menu.js +1 -1
  65. package/dist/cjs/components/dropdown-menu.js.map +2 -2
  66. package/dist/cjs/components/flex.js +1 -1
  67. package/dist/cjs/components/flex.js.map +2 -2
  68. package/dist/cjs/components/grid.js +1 -1
  69. package/dist/cjs/components/grid.js.map +2 -2
  70. package/dist/cjs/components/heading.js +1 -1
  71. package/dist/cjs/components/heading.js.map +2 -2
  72. package/dist/cjs/components/hover-card.js +1 -1
  73. package/dist/cjs/components/hover-card.js.map +2 -2
  74. package/dist/cjs/components/hover-card.props.d.ts +1 -1
  75. package/dist/cjs/components/hover-card.props.js +1 -1
  76. package/dist/cjs/components/hover-card.props.js.map +2 -2
  77. package/dist/cjs/components/icon-button.js +1 -1
  78. package/dist/cjs/components/icon-button.js.map +2 -2
  79. package/dist/cjs/components/image.js +1 -1
  80. package/dist/cjs/components/image.js.map +2 -2
  81. package/dist/cjs/components/index.d.ts +0 -1
  82. package/dist/cjs/components/index.d.ts.map +1 -1
  83. package/dist/cjs/components/index.js +5 -5
  84. package/dist/cjs/components/index.js.map +4 -4
  85. package/dist/cjs/components/kbd.js +1 -1
  86. package/dist/cjs/components/kbd.js.map +2 -2
  87. package/dist/cjs/components/link.js +1 -1
  88. package/dist/cjs/components/link.js.map +2 -2
  89. package/dist/cjs/components/message-scroller.js +1 -1
  90. package/dist/cjs/components/message-scroller.js.map +2 -2
  91. package/dist/cjs/components/navbar.js +1 -1
  92. package/dist/cjs/components/navbar.js.map +2 -2
  93. package/dist/cjs/components/notice.d.ts +2 -2
  94. package/dist/cjs/components/notice.d.ts.map +1 -1
  95. package/dist/cjs/components/notice.js +2 -2
  96. package/dist/cjs/components/notice.js.map +2 -2
  97. package/dist/cjs/components/progress.js +1 -1
  98. package/dist/cjs/components/progress.js.map +2 -2
  99. package/dist/cjs/components/radio-cards.d.ts.map +1 -1
  100. package/dist/cjs/components/radio-cards.js +1 -1
  101. package/dist/cjs/components/radio-cards.js.map +4 -4
  102. package/dist/cjs/components/radio-cards.props.d.ts +2 -1
  103. package/dist/cjs/components/radio-cards.props.d.ts.map +1 -1
  104. package/dist/cjs/components/radio-cards.props.js +1 -1
  105. package/dist/cjs/components/radio-cards.props.js.map +2 -2
  106. package/dist/cjs/components/radio-group.js +1 -1
  107. package/dist/cjs/components/radio-group.js.map +2 -2
  108. package/dist/cjs/components/radio.js +1 -1
  109. package/dist/cjs/components/radio.js.map +2 -2
  110. package/dist/cjs/components/scroll-area.js +1 -1
  111. package/dist/cjs/components/scroll-area.js.map +2 -2
  112. package/dist/cjs/components/section.js +1 -1
  113. package/dist/cjs/components/section.js.map +2 -2
  114. package/dist/cjs/components/segmented-control.js +1 -1
  115. package/dist/cjs/components/segmented-control.js.map +2 -2
  116. package/dist/cjs/components/select.js +1 -1
  117. package/dist/cjs/components/select.js.map +2 -2
  118. package/dist/cjs/components/separator.js +1 -1
  119. package/dist/cjs/components/separator.js.map +2 -2
  120. package/dist/cjs/components/sheet.d.ts +2 -2
  121. package/dist/cjs/components/sheet.d.ts.map +1 -1
  122. package/dist/cjs/components/sheet.js +1 -1
  123. package/dist/cjs/components/sheet.js.map +3 -3
  124. package/dist/cjs/components/shell.js +1 -1
  125. package/dist/cjs/components/shell.js.map +2 -2
  126. package/dist/cjs/components/sidebar.js +1 -1
  127. package/dist/cjs/components/sidebar.js.map +2 -2
  128. package/dist/cjs/components/skeleton.js +1 -1
  129. package/dist/cjs/components/skeleton.js.map +2 -2
  130. package/dist/cjs/components/slider.js +1 -1
  131. package/dist/cjs/components/slider.js.map +2 -2
  132. package/dist/cjs/components/spinner.js +1 -1
  133. package/dist/cjs/components/spinner.js.map +2 -2
  134. package/dist/cjs/components/switch.js +1 -1
  135. package/dist/cjs/components/switch.js.map +2 -2
  136. package/dist/cjs/components/tab-nav.js +1 -1
  137. package/dist/cjs/components/tab-nav.js.map +2 -2
  138. package/dist/cjs/components/table.js +1 -1
  139. package/dist/cjs/components/table.js.map +2 -2
  140. package/dist/cjs/components/tabs.js +1 -1
  141. package/dist/cjs/components/tabs.js.map +2 -2
  142. package/dist/cjs/components/text-area.js +1 -1
  143. package/dist/cjs/components/text-area.js.map +2 -2
  144. package/dist/cjs/components/text-field.js +1 -1
  145. package/dist/cjs/components/text-field.js.map +2 -2
  146. package/dist/cjs/components/text.js +1 -1
  147. package/dist/cjs/components/text.js.map +2 -2
  148. package/dist/cjs/components/theme-panel.js +1 -1
  149. package/dist/cjs/components/theme-panel.js.map +2 -2
  150. package/dist/cjs/components/toggle-button.js +1 -1
  151. package/dist/cjs/components/toggle-button.js.map +2 -2
  152. package/dist/cjs/components/toggle-icon-button.js +1 -1
  153. package/dist/cjs/components/toggle-icon-button.js.map +2 -2
  154. package/dist/cjs/components/toolbar.js +1 -1
  155. package/dist/cjs/components/toolbar.js.map +2 -2
  156. package/dist/cjs/components/tooltip.js +1 -1
  157. package/dist/cjs/components/tooltip.js.map +2 -2
  158. package/dist/cjs/helpers/extract-margin-props.d.ts +7 -7
  159. package/dist/cjs/helpers/get-margin-styles.js +1 -1
  160. package/dist/cjs/helpers/get-margin-styles.js.map +2 -2
  161. package/dist/cjs/helpers/index.js +1 -1
  162. package/dist/cjs/helpers/index.js.map +2 -2
  163. package/dist/cjs/index.js +6 -6
  164. package/dist/cjs/index.js.map +4 -4
  165. package/dist/cjs/props/index.d.ts +0 -1
  166. package/dist/cjs/props/index.d.ts.map +1 -1
  167. package/dist/cjs/props/index.js +1 -1
  168. package/dist/cjs/props/index.js.map +4 -4
  169. package/dist/cjs/props/margin.props.d.ts +7 -7
  170. package/dist/cjs/props/margin.props.js +1 -1
  171. package/dist/cjs/props/margin.props.js.map +2 -2
  172. package/dist/esm/chunk-2FPJ6Q2N.js +2 -0
  173. package/dist/esm/chunk-2FPJ6Q2N.js.map +7 -0
  174. package/dist/esm/{chunk-KRXCFIRK.js → chunk-2XQECQF2.js} +2 -2
  175. package/dist/esm/{chunk-YVMQWSHA.js → chunk-32ATKZAP.js} +2 -2
  176. package/dist/esm/{chunk-ZJZIV2JH.js → chunk-42LDZ7L5.js} +2 -2
  177. package/dist/esm/{chunk-AMP7O3DM.js → chunk-43A5GUSI.js} +2 -2
  178. package/dist/esm/{chunk-MDHXSEGH.js → chunk-4ITIXBIP.js} +2 -2
  179. package/dist/esm/{chunk-MDHXSEGH.js.map → chunk-4ITIXBIP.js.map} +2 -2
  180. package/dist/esm/{chunk-MJEYJI5G.js → chunk-63ASTOS2.js} +2 -2
  181. package/dist/esm/{chunk-UBSLEGQZ.js → chunk-6FLLFCBU.js} +2 -2
  182. package/dist/esm/{chunk-DJFTDR6Y.js → chunk-6RZVKCNG.js} +2 -2
  183. package/dist/esm/{chunk-YF3MFME4.js → chunk-6XNQ5XD3.js} +2 -2
  184. package/dist/esm/{chunk-JLI7WHV6.js → chunk-7FC7HF76.js} +2 -2
  185. package/dist/esm/{chunk-KFQ4B5YC.js → chunk-7KIKAEI7.js} +2 -2
  186. package/dist/esm/{chunk-7J2QS2UT.js → chunk-7SS6EIE5.js} +2 -2
  187. package/dist/esm/{chunk-ZH2B7WEH.js → chunk-7UV4FYYL.js} +2 -2
  188. package/dist/esm/{chunk-TPHNDGSV.js → chunk-AI6UQ5VD.js} +2 -2
  189. package/dist/esm/chunk-BINUV3ME.js +2 -0
  190. package/dist/esm/chunk-BINUV3ME.js.map +7 -0
  191. package/dist/esm/{chunk-4M55YJMR.js → chunk-BQS6XXJR.js} +2 -2
  192. package/dist/esm/{chunk-O6K6RZXY.js → chunk-BUBV3C6C.js} +2 -2
  193. package/dist/esm/{chunk-AO32NT75.js → chunk-CLEH57SW.js} +2 -2
  194. package/dist/esm/chunk-CR2BSCFM.js +2 -0
  195. package/dist/esm/chunk-CR2BSCFM.js.map +7 -0
  196. package/dist/esm/chunk-D2ZHYCTG.js +2 -0
  197. package/dist/esm/chunk-D2ZHYCTG.js.map +7 -0
  198. package/dist/esm/{chunk-XHKL4PG7.js → chunk-DIR22XIX.js} +2 -2
  199. package/dist/esm/{chunk-TGRRQHLQ.js → chunk-DMWLY6ZP.js} +2 -2
  200. package/dist/esm/{chunk-AKPAHQYE.js → chunk-E453PYTG.js} +2 -2
  201. package/dist/esm/chunk-E4KCVRBQ.js +2 -0
  202. package/dist/esm/chunk-E4KCVRBQ.js.map +7 -0
  203. package/dist/esm/chunk-F2UUKVBM.js +1 -0
  204. package/dist/esm/{chunk-UNRG6Z5I.js → chunk-FNRKTMNN.js} +2 -2
  205. package/dist/esm/{chunk-WKMJIWFP.js → chunk-FTGD2SZ6.js} +2 -2
  206. package/dist/esm/{chunk-RSJSVJ6A.js → chunk-G3U6OHVA.js} +2 -2
  207. package/dist/esm/{chunk-RC7TBVLO.js → chunk-G6PO4QKW.js} +2 -2
  208. package/dist/esm/{chunk-EHUSLPWN.js → chunk-GIIMBBVM.js} +2 -2
  209. package/dist/esm/{chunk-DSB3TEAQ.js → chunk-GLERJXVS.js} +2 -2
  210. package/dist/esm/{chunk-JCRBBT4X.js → chunk-GPVPXAUC.js} +2 -2
  211. package/dist/esm/{chunk-XVKFQSLI.js → chunk-GYB7PAGB.js} +2 -2
  212. package/dist/esm/{chunk-7FZPCM7W.js → chunk-GYNRAVCL.js} +2 -2
  213. package/dist/esm/chunk-HT5EFJA3.js +2 -0
  214. package/dist/esm/chunk-HT5EFJA3.js.map +7 -0
  215. package/dist/esm/{chunk-BFLO4IVZ.js → chunk-IXNJFV4O.js} +2 -2
  216. package/dist/esm/chunk-JBC6DT2X.js +2 -0
  217. package/dist/esm/chunk-JBC6DT2X.js.map +7 -0
  218. package/dist/esm/{chunk-5R2WX2FU.js → chunk-JRIBL4WJ.js} +2 -2
  219. package/dist/esm/{chunk-PBFSBHBS.js → chunk-JUY7CBSL.js} +2 -2
  220. package/dist/esm/{chunk-V2TPYSZ2.js → chunk-JZSXHYUU.js} +2 -2
  221. package/dist/esm/{chunk-GVLTTTFL.js → chunk-K6Y2SM5N.js} +2 -2
  222. package/dist/esm/{chunk-CL6LRPCS.js → chunk-KDKL3HXD.js} +2 -2
  223. package/dist/esm/{chunk-XHF6RBOE.js → chunk-KRPEEM4C.js} +2 -2
  224. package/dist/esm/{chunk-VT4AAF7Q.js → chunk-L2IIIELE.js} +2 -2
  225. package/dist/esm/chunk-LFUPGIPA.js +2 -0
  226. package/dist/esm/chunk-LFUPGIPA.js.map +7 -0
  227. package/dist/esm/{chunk-BZ6YBP2S.js → chunk-MZR6YBE7.js} +2 -2
  228. package/dist/esm/{chunk-K5SC3CZZ.js → chunk-N5OSP3PU.js} +2 -2
  229. package/dist/esm/{chunk-IF4PYIUV.js → chunk-N77QJUTO.js} +2 -2
  230. package/dist/esm/{chunk-35HNDWWM.js → chunk-NETIWKIR.js} +2 -2
  231. package/dist/esm/{chunk-UQZHW3EJ.js → chunk-OMYAVTX6.js} +2 -2
  232. package/dist/esm/{chunk-7CBZFHSQ.js → chunk-OXYHRNJA.js} +2 -2
  233. package/dist/esm/{chunk-L6M2MI7Y.js → chunk-PIMNQEDG.js} +2 -2
  234. package/dist/esm/chunk-PUQXBW2K.js +2 -0
  235. package/dist/esm/chunk-PUQXBW2K.js.map +7 -0
  236. package/dist/esm/{chunk-VIDXAECE.js → chunk-Q5LPCJXN.js} +2 -2
  237. package/dist/esm/chunk-QWLKMVZY.js +2 -0
  238. package/dist/esm/{chunk-ENSDQ3XQ.js → chunk-RUWKVDFT.js} +2 -2
  239. package/dist/esm/{chunk-CHPZ3LNC.js → chunk-RVM4LGAU.js} +2 -2
  240. package/dist/esm/{chunk-IWT3Q2PD.js → chunk-TLWCU336.js} +2 -2
  241. package/dist/esm/{chunk-MQDZBF4J.js → chunk-TQIR5LLY.js} +2 -2
  242. package/dist/esm/{chunk-QAUYOVVL.js → chunk-UFJJTUOU.js} +2 -2
  243. package/dist/esm/{chunk-F3XBIUXB.js → chunk-UUHTK35B.js} +2 -2
  244. package/dist/esm/{chunk-DFSW4QR4.js → chunk-UUV5UNYL.js} +2 -2
  245. package/dist/esm/{chunk-BN24ZBO7.js → chunk-UUWGAQDT.js} +2 -2
  246. package/dist/esm/{chunk-GQBQHGEF.js → chunk-UZQO4APP.js} +2 -2
  247. package/dist/esm/{chunk-ZFBLPW3X.js → chunk-VLQ2LX5M.js} +2 -2
  248. package/dist/esm/{chunk-4DE3ONED.js → chunk-VTTJFBV6.js} +2 -2
  249. package/dist/esm/{chunk-PAQS6C2A.js → chunk-WDDO73O5.js} +2 -2
  250. package/dist/esm/{chunk-CRK34MWY.js → chunk-X3D3JR64.js} +2 -2
  251. package/dist/esm/{chunk-3OABA7AF.js → chunk-X7HFFVFD.js} +2 -2
  252. package/dist/esm/chunk-XASK6LMX.js +2 -0
  253. package/dist/esm/chunk-XASK6LMX.js.map +7 -0
  254. package/dist/esm/{chunk-KPPIW4OJ.js → chunk-XTE22CXV.js} +2 -2
  255. package/dist/esm/{chunk-5VBJT2VY.js → chunk-YS5BZRRK.js} +2 -2
  256. package/dist/esm/{chunk-EA2XSEFH.js → chunk-YVHRWMSZ.js} +2 -2
  257. package/dist/esm/chunk-YYZBPQQ4.js +2 -0
  258. package/dist/esm/chunk-YYZBPQQ4.js.map +7 -0
  259. package/dist/esm/chunk-Z6NRR7KS.js +2 -0
  260. package/dist/esm/chunk-Z6NRR7KS.js.map +7 -0
  261. package/dist/esm/{chunk-U7PDXTRX.js → chunk-ZIKJ2WZN.js} +2 -2
  262. package/dist/esm/{chunk-35KS5AQE.js → chunk-ZMOBKT4T.js} +2 -2
  263. package/dist/esm/components/_internal/base-button.js +1 -1
  264. package/dist/esm/components/_internal/base-menu.utils.js +1 -1
  265. package/dist/esm/components/_internal/menu-context.js +1 -1
  266. package/dist/esm/components/_internal/pane-chrome.js +1 -1
  267. package/dist/esm/components/_internal/shell-sidebar.js +1 -1
  268. package/dist/esm/components/accordion.js +1 -1
  269. package/dist/esm/components/alert-dialog.d.ts.map +1 -1
  270. package/dist/esm/components/alert-dialog.js +1 -1
  271. package/dist/esm/components/alert-dialog.props.d.ts +1 -2
  272. package/dist/esm/components/alert-dialog.props.d.ts.map +1 -1
  273. package/dist/esm/components/alert-dialog.props.js +1 -1
  274. package/dist/esm/components/avatar.js +1 -1
  275. package/dist/esm/components/badge.js +1 -1
  276. package/dist/esm/components/blockquote.js +1 -1
  277. package/dist/esm/components/box.js +1 -1
  278. package/dist/esm/components/button.js +1 -1
  279. package/dist/esm/components/card.d.ts.map +1 -1
  280. package/dist/esm/components/card.js +1 -1
  281. package/dist/esm/components/card.props.d.ts +3 -10
  282. package/dist/esm/components/card.props.d.ts.map +1 -1
  283. package/dist/esm/components/card.props.js +1 -1
  284. package/dist/esm/components/chatbar.js +1 -1
  285. package/dist/esm/components/checkbox-cards.d.ts.map +1 -1
  286. package/dist/esm/components/checkbox-cards.js +1 -1
  287. package/dist/esm/components/checkbox-cards.props.d.ts +2 -1
  288. package/dist/esm/components/checkbox-cards.props.d.ts.map +1 -1
  289. package/dist/esm/components/checkbox-cards.props.js +1 -1
  290. package/dist/esm/components/checkbox-group.js +1 -1
  291. package/dist/esm/components/checkbox.js +1 -1
  292. package/dist/esm/components/code.js +1 -1
  293. package/dist/esm/components/combobox.js +1 -1
  294. package/dist/esm/components/container.js +1 -1
  295. package/dist/esm/components/context-menu.js +1 -1
  296. package/dist/esm/components/data-list.js +1 -1
  297. package/dist/esm/components/dialog.d.ts.map +1 -1
  298. package/dist/esm/components/dialog.js +1 -1
  299. package/dist/esm/components/dialog.props.d.ts +1 -2
  300. package/dist/esm/components/dialog.props.d.ts.map +1 -1
  301. package/dist/esm/components/dialog.props.js +1 -1
  302. package/dist/esm/components/dropdown-menu.js +1 -1
  303. package/dist/esm/components/em.js +1 -1
  304. package/dist/esm/components/flex.js +1 -1
  305. package/dist/esm/components/grid.js +1 -1
  306. package/dist/esm/components/heading.js +1 -1
  307. package/dist/esm/components/hover-card.js +1 -1
  308. package/dist/esm/components/hover-card.props.d.ts +1 -1
  309. package/dist/esm/components/hover-card.props.js +1 -1
  310. package/dist/esm/components/icon-button.js +1 -1
  311. package/dist/esm/components/image.js +1 -1
  312. package/dist/esm/components/index.d.ts +0 -1
  313. package/dist/esm/components/index.d.ts.map +1 -1
  314. package/dist/esm/components/index.js +1 -1
  315. package/dist/esm/components/kbd.js +1 -1
  316. package/dist/esm/components/link.js +1 -1
  317. package/dist/esm/components/message-scroller.js +1 -1
  318. package/dist/esm/components/navbar.js +1 -1
  319. package/dist/esm/components/notice.d.ts +2 -2
  320. package/dist/esm/components/notice.d.ts.map +1 -1
  321. package/dist/esm/components/notice.js +1 -1
  322. package/dist/esm/components/popover.js +1 -1
  323. package/dist/esm/components/progress.js +1 -1
  324. package/dist/esm/components/quote.js +1 -1
  325. package/dist/esm/components/radio-cards.d.ts.map +1 -1
  326. package/dist/esm/components/radio-cards.js +1 -1
  327. package/dist/esm/components/radio-cards.props.d.ts +2 -1
  328. package/dist/esm/components/radio-cards.props.d.ts.map +1 -1
  329. package/dist/esm/components/radio-cards.props.js +1 -1
  330. package/dist/esm/components/radio-group.js +1 -1
  331. package/dist/esm/components/radio.js +1 -1
  332. package/dist/esm/components/schemas/index.js +1 -1
  333. package/dist/esm/components/scroll-area.js +1 -1
  334. package/dist/esm/components/section.js +1 -1
  335. package/dist/esm/components/segmented-control.js +1 -1
  336. package/dist/esm/components/select.js +1 -1
  337. package/dist/esm/components/separator.js +1 -1
  338. package/dist/esm/components/sheet.d.ts +2 -2
  339. package/dist/esm/components/sheet.d.ts.map +1 -1
  340. package/dist/esm/components/sheet.js +1 -1
  341. package/dist/esm/components/shell.js +1 -1
  342. package/dist/esm/components/sidebar.js +1 -1
  343. package/dist/esm/components/skeleton.js +1 -1
  344. package/dist/esm/components/slider.js +1 -1
  345. package/dist/esm/components/spinner.js +1 -1
  346. package/dist/esm/components/strong.js +1 -1
  347. package/dist/esm/components/switch.js +1 -1
  348. package/dist/esm/components/tab-nav.js +1 -1
  349. package/dist/esm/components/table.js +1 -1
  350. package/dist/esm/components/tabs.js +1 -1
  351. package/dist/esm/components/text-area.js +1 -1
  352. package/dist/esm/components/text-field.js +1 -1
  353. package/dist/esm/components/text.js +1 -1
  354. package/dist/esm/components/theme-panel.js +1 -1
  355. package/dist/esm/components/toggle-button.js +1 -1
  356. package/dist/esm/components/toggle-icon-button.js +1 -1
  357. package/dist/esm/components/toolbar.js +1 -1
  358. package/dist/esm/components/tooltip.js +1 -1
  359. package/dist/esm/components/virtual-menu.js +1 -1
  360. package/dist/esm/helpers/extract-margin-props.d.ts +7 -7
  361. package/dist/esm/helpers/extract-props.js +1 -1
  362. package/dist/esm/helpers/get-margin-styles.js +1 -1
  363. package/dist/esm/helpers/get-responsive-styles.js +1 -1
  364. package/dist/esm/helpers/index.js +1 -1
  365. package/dist/esm/index.js +1 -1
  366. package/dist/esm/props/index.d.ts +0 -1
  367. package/dist/esm/props/index.d.ts.map +1 -1
  368. package/dist/esm/props/index.js +1 -1
  369. package/dist/esm/props/margin.props.d.ts +7 -7
  370. package/dist/esm/props/margin.props.js +1 -1
  371. package/layout/utilities.css +240 -198
  372. package/layout.css +240 -198
  373. package/package.json +1 -1
  374. package/src/components/_internal/base-card.css +21 -73
  375. package/src/components/_internal/base-dialog.css +18 -12
  376. package/src/components/_internal/base-menu.css +3 -3
  377. package/src/components/accordion.css +3 -3
  378. package/src/components/alert-dialog.css +4 -0
  379. package/src/components/alert-dialog.tsx +3 -1
  380. package/src/components/avatar.css +9 -9
  381. package/src/components/badge.css +3 -3
  382. package/src/components/card.css +11 -2
  383. package/src/components/card.props.tsx +3 -6
  384. package/src/components/card.tsx +7 -9
  385. package/src/components/chatbar.css +6 -6
  386. package/src/components/checkbox-cards.css +4 -48
  387. package/src/components/checkbox-cards.props.tsx +2 -1
  388. package/src/components/checkbox-cards.tsx +9 -3
  389. package/src/components/dialog.css +4 -0
  390. package/src/components/dialog.props.tsx +3 -2
  391. package/src/components/dialog.tsx +3 -1
  392. package/src/components/hover-card.css +10 -10
  393. package/src/components/hover-card.props.tsx +1 -1
  394. package/src/components/index.css +0 -1
  395. package/src/components/index.tsx +0 -1
  396. package/src/components/kbd.css +14 -14
  397. package/src/components/notice.css +21 -11
  398. package/src/components/notice.tsx +4 -4
  399. package/src/components/popover.css +8 -12
  400. package/src/components/radio-cards.css +0 -38
  401. package/src/components/radio-cards.props.tsx +2 -1
  402. package/src/components/radio-cards.tsx +13 -3
  403. package/src/components/scroll-area.css +1 -1
  404. package/src/components/segmented-control.css +4 -4
  405. package/src/components/select.css +6 -6
  406. package/src/components/sheet.css +2 -1
  407. package/src/components/sheet.tsx +6 -10
  408. package/src/components/shell.css +1 -1
  409. package/src/components/sidebar.css +6 -6
  410. package/src/components/table.css +3 -11
  411. package/src/components/text-field.css +4 -4
  412. package/src/components/toolbar.css +4 -4
  413. package/src/props/index.ts +0 -1
  414. package/src/props/margin.props.ts +1 -1
  415. package/src/styles/tokens/radius.css +97 -53
  416. package/src/styles/utilities/margin.css +40 -7
  417. package/src/styles/utilities/padding.css +0 -26
  418. package/styles.css +1135 -1689
  419. package/tokens/base.css +201 -26
  420. package/tokens.css +201 -26
  421. package/utilities.css +240 -198
  422. package/dist/cjs/components/inset.d.ts +0 -12
  423. package/dist/cjs/components/inset.d.ts.map +0 -1
  424. package/dist/cjs/components/inset.js +0 -2
  425. package/dist/cjs/components/inset.js.map +0 -7
  426. package/dist/cjs/components/inset.props.d.ts +0 -71
  427. package/dist/cjs/components/inset.props.d.ts.map +0 -1
  428. package/dist/cjs/components/inset.props.js +0 -2
  429. package/dist/cjs/components/inset.props.js.map +0 -7
  430. package/dist/esm/chunk-2CNQGDY3.js +0 -2
  431. package/dist/esm/chunk-2CNQGDY3.js.map +0 -7
  432. package/dist/esm/chunk-2O3WL25H.js +0 -2
  433. package/dist/esm/chunk-6YWDEANN.js +0 -2
  434. package/dist/esm/chunk-6YWDEANN.js.map +0 -7
  435. package/dist/esm/chunk-6YWJUNMB.js +0 -2
  436. package/dist/esm/chunk-6YWJUNMB.js.map +0 -7
  437. package/dist/esm/chunk-EO7WQYFO.js +0 -2
  438. package/dist/esm/chunk-EO7WQYFO.js.map +0 -7
  439. package/dist/esm/chunk-GHD3TKCA.js +0 -2
  440. package/dist/esm/chunk-GHD3TKCA.js.map +0 -7
  441. package/dist/esm/chunk-GSTOGDAJ.js +0 -2
  442. package/dist/esm/chunk-GSTOGDAJ.js.map +0 -7
  443. package/dist/esm/chunk-GTVFQXLJ.js +0 -2
  444. package/dist/esm/chunk-GTVFQXLJ.js.map +0 -7
  445. package/dist/esm/chunk-IYFDCW7Y.js +0 -2
  446. package/dist/esm/chunk-IYFDCW7Y.js.map +0 -7
  447. package/dist/esm/chunk-JAMLW534.js +0 -2
  448. package/dist/esm/chunk-JAMLW534.js.map +0 -7
  449. package/dist/esm/chunk-MPN33CKR.js +0 -2
  450. package/dist/esm/chunk-MPN33CKR.js.map +0 -7
  451. package/dist/esm/chunk-NFVOEHZS.js +0 -2
  452. package/dist/esm/chunk-NFVOEHZS.js.map +0 -7
  453. package/dist/esm/chunk-QDW5ZG5E.js +0 -1
  454. package/dist/esm/chunk-RJ6SA7AY.js +0 -2
  455. package/dist/esm/chunk-RJ6SA7AY.js.map +0 -7
  456. package/dist/esm/chunk-VJSZG35J.js +0 -2
  457. package/dist/esm/chunk-VJSZG35J.js.map +0 -7
  458. package/dist/esm/chunk-YGPUKJEB.js +0 -2
  459. package/dist/esm/chunk-YGPUKJEB.js.map +0 -7
  460. package/dist/esm/components/inset.d.ts +0 -12
  461. package/dist/esm/components/inset.d.ts.map +0 -1
  462. package/dist/esm/components/inset.js +0 -2
  463. package/dist/esm/components/inset.js.map +0 -7
  464. package/dist/esm/components/inset.props.d.ts +0 -71
  465. package/dist/esm/components/inset.props.d.ts.map +0 -1
  466. package/dist/esm/components/inset.props.js +0 -2
  467. package/dist/esm/components/inset.props.js.map +0 -7
  468. package/src/components/inset.css +0 -111
  469. package/src/components/inset.props.tsx +0 -90
  470. package/src/components/inset.tsx +0 -28
  471. /package/dist/esm/{chunk-KRXCFIRK.js.map → chunk-2XQECQF2.js.map} +0 -0
  472. /package/dist/esm/{chunk-YVMQWSHA.js.map → chunk-32ATKZAP.js.map} +0 -0
  473. /package/dist/esm/{chunk-ZJZIV2JH.js.map → chunk-42LDZ7L5.js.map} +0 -0
  474. /package/dist/esm/{chunk-AMP7O3DM.js.map → chunk-43A5GUSI.js.map} +0 -0
  475. /package/dist/esm/{chunk-MJEYJI5G.js.map → chunk-63ASTOS2.js.map} +0 -0
  476. /package/dist/esm/{chunk-UBSLEGQZ.js.map → chunk-6FLLFCBU.js.map} +0 -0
  477. /package/dist/esm/{chunk-DJFTDR6Y.js.map → chunk-6RZVKCNG.js.map} +0 -0
  478. /package/dist/esm/{chunk-YF3MFME4.js.map → chunk-6XNQ5XD3.js.map} +0 -0
  479. /package/dist/esm/{chunk-JLI7WHV6.js.map → chunk-7FC7HF76.js.map} +0 -0
  480. /package/dist/esm/{chunk-KFQ4B5YC.js.map → chunk-7KIKAEI7.js.map} +0 -0
  481. /package/dist/esm/{chunk-7J2QS2UT.js.map → chunk-7SS6EIE5.js.map} +0 -0
  482. /package/dist/esm/{chunk-ZH2B7WEH.js.map → chunk-7UV4FYYL.js.map} +0 -0
  483. /package/dist/esm/{chunk-TPHNDGSV.js.map → chunk-AI6UQ5VD.js.map} +0 -0
  484. /package/dist/esm/{chunk-4M55YJMR.js.map → chunk-BQS6XXJR.js.map} +0 -0
  485. /package/dist/esm/{chunk-O6K6RZXY.js.map → chunk-BUBV3C6C.js.map} +0 -0
  486. /package/dist/esm/{chunk-AO32NT75.js.map → chunk-CLEH57SW.js.map} +0 -0
  487. /package/dist/esm/{chunk-XHKL4PG7.js.map → chunk-DIR22XIX.js.map} +0 -0
  488. /package/dist/esm/{chunk-TGRRQHLQ.js.map → chunk-DMWLY6ZP.js.map} +0 -0
  489. /package/dist/esm/{chunk-AKPAHQYE.js.map → chunk-E453PYTG.js.map} +0 -0
  490. /package/dist/esm/{chunk-QDW5ZG5E.js.map → chunk-F2UUKVBM.js.map} +0 -0
  491. /package/dist/esm/{chunk-UNRG6Z5I.js.map → chunk-FNRKTMNN.js.map} +0 -0
  492. /package/dist/esm/{chunk-WKMJIWFP.js.map → chunk-FTGD2SZ6.js.map} +0 -0
  493. /package/dist/esm/{chunk-RSJSVJ6A.js.map → chunk-G3U6OHVA.js.map} +0 -0
  494. /package/dist/esm/{chunk-RC7TBVLO.js.map → chunk-G6PO4QKW.js.map} +0 -0
  495. /package/dist/esm/{chunk-EHUSLPWN.js.map → chunk-GIIMBBVM.js.map} +0 -0
  496. /package/dist/esm/{chunk-DSB3TEAQ.js.map → chunk-GLERJXVS.js.map} +0 -0
  497. /package/dist/esm/{chunk-JCRBBT4X.js.map → chunk-GPVPXAUC.js.map} +0 -0
  498. /package/dist/esm/{chunk-XVKFQSLI.js.map → chunk-GYB7PAGB.js.map} +0 -0
  499. /package/dist/esm/{chunk-7FZPCM7W.js.map → chunk-GYNRAVCL.js.map} +0 -0
  500. /package/dist/esm/{chunk-BFLO4IVZ.js.map → chunk-IXNJFV4O.js.map} +0 -0
  501. /package/dist/esm/{chunk-5R2WX2FU.js.map → chunk-JRIBL4WJ.js.map} +0 -0
  502. /package/dist/esm/{chunk-PBFSBHBS.js.map → chunk-JUY7CBSL.js.map} +0 -0
  503. /package/dist/esm/{chunk-V2TPYSZ2.js.map → chunk-JZSXHYUU.js.map} +0 -0
  504. /package/dist/esm/{chunk-GVLTTTFL.js.map → chunk-K6Y2SM5N.js.map} +0 -0
  505. /package/dist/esm/{chunk-CL6LRPCS.js.map → chunk-KDKL3HXD.js.map} +0 -0
  506. /package/dist/esm/{chunk-XHF6RBOE.js.map → chunk-KRPEEM4C.js.map} +0 -0
  507. /package/dist/esm/{chunk-VT4AAF7Q.js.map → chunk-L2IIIELE.js.map} +0 -0
  508. /package/dist/esm/{chunk-BZ6YBP2S.js.map → chunk-MZR6YBE7.js.map} +0 -0
  509. /package/dist/esm/{chunk-K5SC3CZZ.js.map → chunk-N5OSP3PU.js.map} +0 -0
  510. /package/dist/esm/{chunk-IF4PYIUV.js.map → chunk-N77QJUTO.js.map} +0 -0
  511. /package/dist/esm/{chunk-35HNDWWM.js.map → chunk-NETIWKIR.js.map} +0 -0
  512. /package/dist/esm/{chunk-UQZHW3EJ.js.map → chunk-OMYAVTX6.js.map} +0 -0
  513. /package/dist/esm/{chunk-7CBZFHSQ.js.map → chunk-OXYHRNJA.js.map} +0 -0
  514. /package/dist/esm/{chunk-L6M2MI7Y.js.map → chunk-PIMNQEDG.js.map} +0 -0
  515. /package/dist/esm/{chunk-VIDXAECE.js.map → chunk-Q5LPCJXN.js.map} +0 -0
  516. /package/dist/esm/{chunk-2O3WL25H.js.map → chunk-QWLKMVZY.js.map} +0 -0
  517. /package/dist/esm/{chunk-ENSDQ3XQ.js.map → chunk-RUWKVDFT.js.map} +0 -0
  518. /package/dist/esm/{chunk-CHPZ3LNC.js.map → chunk-RVM4LGAU.js.map} +0 -0
  519. /package/dist/esm/{chunk-IWT3Q2PD.js.map → chunk-TLWCU336.js.map} +0 -0
  520. /package/dist/esm/{chunk-MQDZBF4J.js.map → chunk-TQIR5LLY.js.map} +0 -0
  521. /package/dist/esm/{chunk-QAUYOVVL.js.map → chunk-UFJJTUOU.js.map} +0 -0
  522. /package/dist/esm/{chunk-F3XBIUXB.js.map → chunk-UUHTK35B.js.map} +0 -0
  523. /package/dist/esm/{chunk-DFSW4QR4.js.map → chunk-UUV5UNYL.js.map} +0 -0
  524. /package/dist/esm/{chunk-BN24ZBO7.js.map → chunk-UUWGAQDT.js.map} +0 -0
  525. /package/dist/esm/{chunk-GQBQHGEF.js.map → chunk-UZQO4APP.js.map} +0 -0
  526. /package/dist/esm/{chunk-ZFBLPW3X.js.map → chunk-VLQ2LX5M.js.map} +0 -0
  527. /package/dist/esm/{chunk-4DE3ONED.js.map → chunk-VTTJFBV6.js.map} +0 -0
  528. /package/dist/esm/{chunk-PAQS6C2A.js.map → chunk-WDDO73O5.js.map} +0 -0
  529. /package/dist/esm/{chunk-CRK34MWY.js.map → chunk-X3D3JR64.js.map} +0 -0
  530. /package/dist/esm/{chunk-3OABA7AF.js.map → chunk-X7HFFVFD.js.map} +0 -0
  531. /package/dist/esm/{chunk-KPPIW4OJ.js.map → chunk-XTE22CXV.js.map} +0 -0
  532. /package/dist/esm/{chunk-5VBJT2VY.js.map → chunk-YS5BZRRK.js.map} +0 -0
  533. /package/dist/esm/{chunk-EA2XSEFH.js.map → chunk-YVHRWMSZ.js.map} +0 -0
  534. /package/dist/esm/{chunk-U7PDXTRX.js.map → chunk-ZIKJ2WZN.js.map} +0 -0
  535. /package/dist/esm/{chunk-35KS5AQE.js.map → chunk-ZMOBKT4T.js.map} +0 -0
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import { insetPropDefs } from './inset.props.js';
3
- import type { MarginProps } from '../props/margin.props.js';
4
- import type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';
5
- import type { GetPropDefTypes } from '../props/prop-def.js';
6
- type InsetOwnProps = GetPropDefTypes<typeof insetPropDefs>;
7
- interface InsetProps extends ComponentPropsWithout<'div', RemovedProps>, MarginProps, InsetOwnProps {
8
- }
9
- declare const Inset: React.ForwardRefExoticComponent<InsetProps & React.RefAttributes<HTMLDivElement>>;
10
- export { Inset };
11
- export type { InsetProps };
12
- //# sourceMappingURL=inset.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inset.d.ts","sourceRoot":"","sources":["../../../src/components/inset.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAIjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAG5D,KAAK,aAAa,GAAG,eAAe,CAAC,OAAO,aAAa,CAAC,CAAC;AAC3D,UAAU,UACR,SAAQ,qBAAqB,CAAC,KAAK,EAAE,YAAY,CAAC,EAChD,WAAW,EACX,aAAa;CAAG;AAEpB,QAAA,MAAM,KAAK,mFAIT,CAAC;AAGH,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,YAAY,EAAE,UAAU,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- "use strict";var K=Object.create;var g=Object.defineProperty;var B=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var U=Object.getPrototypeOf,W=Object.prototype.hasOwnProperty;var A=(t,e)=>{for(var s in e)g(t,s,{get:e[s],enumerable:!0})},h=(t,e,s,p)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of M(e))!W.call(t,o)&&o!==s&&g(t,o,{get:()=>e[o],enumerable:!(p=B(e,o))||p.enumerable});return t};var v=(t,e,s)=>(s=t!=null?K(U(t)):{},h(e||!t||!t.__esModule?g(s,"default",{value:t,enumerable:!0}):s,t)),q=t=>h(g({},"__esModule",{value:!0}),t);var ee={};A(ee,{Inset:()=>I});module.exports=q(ee);var D=v(require("react")),$=v(require("classnames")),G=require("radix-ui");var x={asChild:{type:"boolean"}};var Y=["all","x","y","top","bottom","left","right"],_=["border-box","padding-box"],m=["current","0"],T={...x,side:{type:"enum",className:"rt-r-side",values:Y,default:"all",responsive:!0},clip:{type:"enum",className:"rt-r-clip",values:_,default:"border-box",responsive:!0},p:{type:"enum",className:"rt-r-p",values:m,parseValue:d,responsive:!0},px:{type:"enum",className:"rt-r-px",values:m,parseValue:d,responsive:!0},py:{type:"enum",className:"rt-r-py",values:m,parseValue:d,responsive:!0},pt:{type:"enum",className:"rt-r-pt",values:m,parseValue:d,responsive:!0},pr:{type:"enum",className:"rt-r-pr",values:m,parseValue:d,responsive:!0},pb:{type:"enum",className:"rt-r-pb",values:m,parseValue:d,responsive:!0},pl:{type:"enum",className:"rt-r-pl",values:m,parseValue:d,responsive:!0}};function d(t){return t==="current"?"inset":t}var j=v(require("classnames"));var z=[],L=new Set;function F(t){let e=Object.assign({},...t),s=[],p=[],o=new Set;for(let i in e){let n=e[i],l=n.values??z,a={key:i,type:n.type,default:n.default,hasDefault:n.default!==void 0,responsive:"responsive"in n,className:n.className,customProperties:n.customProperties,parseValue:n.parseValue,values:l,valueSet:l.length>0?new Set(l):L,enumValueSet:n.type==="enum"?new Set([n.default,...l]):void 0};n.className?(s.push(a),o.add(i)):(a.hasDefault||n.type==="enum")&&p.push(a)}return{styling:s,passthrough:p,stylingKeys:o}}var H={children:new WeakMap};function C(t){let e=H;for(let s=0;s<t.length;s++){let p=t[s],o=e.children.get(p);o===void 0&&(o={children:new WeakMap},e.children.set(p,o)),e=o}return e.compiled??(e.compiled=F(t))}var J=["initial","xs","sm","md","lg","xl"],R=new Set(J);function b(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Q=new Set(["initial","xs","sm","md","lg","xl"]);function c(t){if(typeof t!="object"||t===null)return!1;for(let e in t)if(Q.has(e))return!0;return!1}function P(t,e,s){return e!==void 0?e.has(s):t.includes(s)}function O({className:t,customProperties:e,...s}){let p=S({allowArbitraryValues:!0,className:t,...s}),o=X({customProperties:e,...s});return[p,o]}function S({allowArbitraryValues:t,value:e,className:s,propValues:p,propValueSet:o,parseValue:i=n=>n}){if(e){if(typeof e=="string")return P(p,o,e)?k(s,e,i):t?s:void 0;if(c(e)){let n=e,l=[];for(let a in n){if(!b(n,a)||!R.has(a))continue;let r=n[a];if(r!==void 0){if(P(p,o,r)){let u=k(s,r,i),f=a==="initial"?u:`${a}:${u}`;l.push(f)}else if(t){let u=a==="initial"?s:`${a}:${s}`;l.push(u)}}}return l.length>0?l.join(" "):""}if(t)return s}}function k(t,e,s){let p=t?"-":"",o=s(e),i=o?.startsWith("-"),n=i?"-":"",l=i?o?.substring(1):o;return`${n}${t}${p}${l}`}function X({customProperties:t,value:e,propValues:s,propValueSet:p,parseValue:o=i=>i}){if(!e||typeof e=="string"&&P(s,p,e))return;let i;if(typeof e=="string"){let n=o(e);i={};for(let l of t)i[l]=n;return i}if(c(e)){let n=e;for(let l in n){if(!b(n,l)||!R.has(l))continue;let a=n[l];if(a===void 0||P(s,p,a))continue;let r=o(a);i??(i={});for(let u of t){let f=l==="initial"?u:`${u}-${l}`;i[f]=r}}}return i??{}}function N(...t){let e;for(let s of t)s&&(e===void 0&&(e={}),Object.assign(e,s));return e}function Z(t,e){let s=t.initial,p=!1;return e.hasDefault&&s===void 0&&(s=e.default,p=!0),e.enumValueSet!==void 0&&!e.enumValueSet.has(s)&&(s=e.default,p=!0),p?{...t,initial:s}:t}function w(t,...e){let{styling:s,passthrough:p,stylingKeys:o}=C(e),i={};for(let a in t)o.has(a)||(i[a]=t[a]);for(let a=0;a<p.length;a++){let r=p[a],u=i[r.key];if(u===void 0){r.hasDefault&&(i[r.key]=r.default);continue}r.enumValueSet!==void 0&&!r.enumValueSet.has(u)&&!c(u)&&(i[r.key]=r.default)}let n,l=[];for(let a=0;a<s.length;a++){let r=s[a],u=t[r.key];if(u===void 0&&r.hasDefault&&(u=r.default),r.enumValueSet!==void 0&&!r.enumValueSet.has(u)&&!c(u)&&(u=r.default),!!u){if(c(u)){if(!r.responsive)continue;u=Z(u,r)}if(r.type==="enum"){let f=S({allowArbitraryValues:!1,value:u,className:r.className,propValues:r.values,propValueSet:r.valueSet,parseValue:r.parseValue});f&&l.push(f);continue}if(r.type==="string"||r.type==="enum | string"){let[f,V]=O({className:r.className,customProperties:r.customProperties,propValues:r.type==="string"?[]:r.values,propValueSet:r.type==="string"?void 0:r.valueSet,parseValue:r.parseValue,value:u});V&&(n=N(n,V)),f&&l.push(f);continue}if(r.type==="boolean"){l.push(r.className);continue}}}return i.className=(0,j.default)(l.length>0?l.join(" "):void 0,t.className),i.style=N(n,t.style),i}var y=["0","1","2","3","4","5","6","7","8","9","10","11","12","-1","-2","-3","-4","-5","-6","-7","-8","-9","-10","-11","-12"],E={m:{type:"enum | string",values:y,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:y,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:y,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:y,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:y,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:y,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:y,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}};var I=D.forwardRef((t,e)=>{let{asChild:s,className:p,...o}=w(t,T,E),i=s?G.Slot.Root:"div";return D.createElement(i,{...o,ref:e,className:(0,$.default)("rt-Inset",p)})});I.displayName="Inset";
2
- //# sourceMappingURL=inset.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/components/inset.tsx", "../../../src/props/as-child.prop.ts", "../../../src/components/inset.props.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"],
4
- "sourcesContent": ["import * as React from 'react';\nimport classNames from 'classnames';\nimport { Slot } from 'radix-ui';\n\nimport { insetPropDefs } from './inset.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { marginPropDefs } from '../props/margin.props.js';\n\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype InsetElement = React.ElementRef<'div'>;\ntype InsetOwnProps = GetPropDefTypes<typeof insetPropDefs>;\ninterface InsetProps\n extends ComponentPropsWithout<'div', RemovedProps>,\n MarginProps,\n InsetOwnProps {}\n\nconst Inset = React.forwardRef<InsetElement, InsetProps>((props, forwardedRef) => {\n const { asChild, className, ...insetProps } = extractProps(props, insetPropDefs, marginPropDefs);\n const Comp = asChild ? Slot.Root : 'div';\n return <Comp {...insetProps} ref={forwardedRef} className={classNames('rt-Inset', className)} />;\n});\nInset.displayName = 'Inset';\n\nexport { Inset };\nexport type { InsetProps };\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 { asChildPropDef } from '../props/as-child.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sides = ['all', 'x', 'y', 'top', 'bottom', 'left', 'right'] as const;\nconst clipValues = ['border-box', 'padding-box'] as const;\nconst paddingValues = ['current', '0'] as const;\n\nconst insetPropDefs = {\n ...asChildPropDef,\n side: {\n type: 'enum',\n className: 'rt-r-side',\n values: sides,\n default: 'all',\n responsive: true,\n },\n clip: {\n type: 'enum',\n className: 'rt-r-clip',\n values: clipValues,\n default: 'border-box',\n responsive: true,\n },\n p: {\n type: 'enum',\n className: 'rt-r-p',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n px: {\n type: 'enum',\n className: 'rt-r-px',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n py: {\n type: 'enum',\n className: 'rt-r-py',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n pt: {\n type: 'enum',\n className: 'rt-r-pt',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n pr: {\n type: 'enum',\n className: 'rt-r-pr',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n pb: {\n type: 'enum',\n className: 'rt-r-pb',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n pl: {\n type: 'enum',\n className: 'rt-r-pl',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n} satisfies {\n side: PropDef<(typeof sides)[number]>;\n clip: PropDef<(typeof clipValues)[number]>;\n p: PropDef<(typeof paddingValues)[number]>;\n px: PropDef<(typeof paddingValues)[number]>;\n py: PropDef<(typeof paddingValues)[number]>;\n pt: PropDef<(typeof paddingValues)[number]>;\n pr: PropDef<(typeof paddingValues)[number]>;\n pb: PropDef<(typeof paddingValues)[number]>;\n pl: PropDef<(typeof paddingValues)[number]>;\n};\n\nfunction parsePaddingValue(value: string) {\n return value === 'current' ? 'inset' : value;\n}\n\nexport { insetPropDefs };\n", "import classNames from 'classnames';\n\nimport { getCompiledPropDefs } from './compile-prop-defs.js';\nimport { getResponsiveClassNames, getResponsiveStyles } from './get-responsive-styles.js';\nimport { isResponsiveObject } from './is-responsive-object.js';\nimport { mergeStyles } from './merge-styles.js';\n\nimport type { CompiledPropDef } from './compile-prop-defs.js';\nimport type * as React from 'react';\nimport type { PropDef } from '../props/prop-def.js';\n\ntype PropDefsWithClassName<T> = T extends Record<string, PropDef> ? { [K in keyof T]: T[K] extends { className: string } ? K : never }[keyof T] : never;\n\ntype ResponsiveValue = Record<string, string | undefined>;\n\n/**\n * Fills in the `initial` breakpoint of a responsive value from the prop def's\n * default, and coerces an invalid `initial` enum value back to that default.\n *\n * Returns the value untouched when nothing needs changing, and a copy otherwise\n * \u2014 callers routinely hoist responsive objects to module scope, so mutating the\n * caller's object would corrupt it for every later render.\n */\nfunction normalizeResponsiveValue(value: ResponsiveValue, propDef: CompiledPropDef) {\n let initial = value.initial;\n let changed = false;\n\n if (propDef.hasDefault && initial === undefined) {\n initial = propDef.default as string | undefined;\n changed = true;\n }\n\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(initial)) {\n initial = propDef.default as string | undefined;\n changed = true;\n }\n\n return changed ? { ...value, initial } : value;\n}\n\n/**\n * Takes props, checks them against prop defs that have a `className` on them,\n * adds necessary CSS classes and inline styles, and returns the props without\n * the corresponding prop defs that were used to formulate the new `className`\n * and `style` values. Also applies prop def defaults to every prop.\n */\nfunction extractProps<P extends { className?: string; style?: React.CSSProperties; [key: string]: any }, T extends Record<string, PropDef>[]>(\n props: P,\n ...propDefs: T\n): Omit<P & { className?: string; style?: React.CSSProperties }, PropDefsWithClassName<T[number]>> {\n const { styling, passthrough, stylingKeys } = getCompiledPropDefs(propDefs);\n\n // Copy the props that survive to the element rather than spreading and then\n // deleting the styling keys. Deleting off a spread demotes the object to\n // dictionary mode in V8, and this object is on the render path of every\n // component in the library.\n const extractedProps: Record<string, any> = {};\n for (const key in props) {\n if (stylingKeys.has(key)) continue;\n extractedProps[key] = props[key];\n }\n\n for (let i = 0; i < passthrough.length; i++) {\n const propDef = passthrough[i];\n const value = extractedProps[propDef.key];\n\n if (value === undefined) {\n if (propDef.hasDefault) extractedProps[propDef.key] = propDef.default;\n continue;\n }\n\n // Fall back to the default when the value is not a valid enum value\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(value) && !isResponsiveObject(value)) {\n extractedProps[propDef.key] = propDef.default;\n }\n }\n\n let style: ReturnType<typeof mergeStyles>;\n const classes: string[] = [];\n\n for (let i = 0; i < styling.length; i++) {\n const propDef = styling[i];\n let value = props[propDef.key];\n\n // Apply prop def defaults\n if (value === undefined && propDef.hasDefault) {\n value = propDef.default;\n }\n\n // Apply the default value if the value is not a valid enum value\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(value) && !isResponsiveObject(value)) {\n value = propDef.default;\n }\n\n if (!value) continue;\n\n if (isResponsiveObject(value)) {\n // Make sure we are not threading through responsive values for non-responsive prop defs\n if (!propDef.responsive) continue;\n value = normalizeResponsiveValue(value, propDef);\n }\n\n if (propDef.type === 'enum') {\n const propClassName = getResponsiveClassNames({\n allowArbitraryValues: false,\n value,\n className: propDef.className!,\n propValues: propDef.values,\n propValueSet: propDef.valueSet,\n parseValue: propDef.parseValue,\n });\n\n if (propClassName) classes.push(propClassName);\n continue;\n }\n\n if (propDef.type === 'string' || propDef.type === 'enum | string') {\n const [propClassNames, propCustomProperties] = getResponsiveStyles({\n className: propDef.className!,\n customProperties: propDef.customProperties!,\n // `string` prop defs have no enum values, so every value is arbitrary\n propValues: propDef.type === 'string' ? [] : propDef.values,\n propValueSet: propDef.type === 'string' ? undefined : propDef.valueSet,\n parseValue: propDef.parseValue,\n value,\n });\n\n if (propCustomProperties) style = mergeStyles(style, propCustomProperties);\n if (propClassNames) classes.push(propClassNames);\n continue;\n }\n\n if (propDef.type === 'boolean') {\n // TODO handle responsive boolean props\n classes.push(propDef.className!);\n continue;\n }\n }\n\n extractedProps.className = classNames(classes.length > 0 ? classes.join(' ') : undefined, props.className);\n extractedProps.style = mergeStyles(style, props.style);\n return extractedProps as ReturnType<typeof extractProps<P, T>>;\n}\n\nexport { extractProps };\n", "import type { PropDef } from '../props/prop-def.js';\n\n/**\n * A prop def pre-processed into the exact shape `extractProps` needs at render\n * time. Everything that can be derived from the static prop def \u2014 enum\n * membership sets, whether the def is responsive, whether it carries a default\n * \u2014 is computed once here instead of on every render.\n */\ninterface CompiledPropDef {\n key: string;\n type: PropDef['type'];\n default: unknown;\n hasDefault: boolean;\n responsive: boolean;\n className?: string;\n customProperties?: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n /** The prop def's own enum values, kept for the responsive class name helpers. */\n values: readonly string[];\n /** O(1) membership for `values`. */\n valueSet: ReadonlySet<string>;\n /**\n * `values` plus the default, used to coerce invalid enum values back to the\n * default. Only present for `type: 'enum'` \u2014 `'enum | string'` props accept\n * arbitrary strings and must not be coerced.\n */\n enumValueSet?: ReadonlySet<unknown>;\n}\n\ninterface CompiledPropDefs {\n /** Defs that contribute a class name and/or custom properties. */\n styling: CompiledPropDef[];\n /**\n * Defs that pass through to the element but still need a default applied or\n * an invalid enum value coerced. Defs that can do neither are omitted\n * entirely \u2014 they are already correct as passed.\n */\n passthrough: CompiledPropDef[];\n /** Keys consumed by `styling`, so they can be skipped when copying props. */\n stylingKeys: ReadonlySet<string>;\n}\n\nconst EMPTY_VALUES: readonly string[] = [];\nconst EMPTY_SET: ReadonlySet<string> = new Set();\n\nfunction compile(propDefs: readonly Record<string, PropDef>[]): CompiledPropDefs {\n const merged: Record<string, PropDef> = Object.assign({}, ...propDefs);\n const styling: CompiledPropDef[] = [];\n const passthrough: CompiledPropDef[] = [];\n const stylingKeys = new Set<string>();\n\n for (const key in merged) {\n // The PropDef union is narrowed per-field below; reading the optional\n // members off the union directly is what the runtime actually needs.\n const def = merged[key] as PropDef & {\n default?: unknown;\n values?: readonly string[];\n className?: string;\n customProperties?: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n responsive?: true;\n };\n\n const values = def.values ?? EMPTY_VALUES;\n const compiled: CompiledPropDef = {\n key,\n type: def.type,\n default: def.default,\n hasDefault: def.default !== undefined,\n responsive: 'responsive' in def,\n className: def.className,\n customProperties: def.customProperties,\n parseValue: def.parseValue,\n values,\n valueSet: values.length > 0 ? new Set(values) : EMPTY_SET,\n enumValueSet: def.type === 'enum' ? new Set<unknown>([def.default, ...values]) : undefined,\n };\n\n if (def.className) {\n styling.push(compiled);\n stylingKeys.add(key);\n } else if (compiled.hasDefault || def.type === 'enum') {\n // Anything else is copied through untouched, so there is nothing to do.\n passthrough.push(compiled);\n }\n }\n\n return { styling, passthrough, stylingKeys };\n}\n\ninterface CacheNode {\n children: WeakMap<object, CacheNode>;\n compiled?: CompiledPropDefs;\n}\n\nconst cacheRoot: CacheNode = { children: new WeakMap() };\n\n/**\n * Compiles a set of prop defs, memoized on the identity of the prop def objects\n * themselves. Components always pass the same module-level constants, so after\n * the first render of a given component this is a couple of WeakMap lookups\n * instead of merging 50-odd prop defs into a fresh object.\n */\nfunction getCompiledPropDefs(propDefs: readonly Record<string, PropDef>[]): CompiledPropDefs {\n let node = cacheRoot;\n\n for (let i = 0; i < propDefs.length; i++) {\n const propDef = propDefs[i];\n let child = node.children.get(propDef);\n if (child === undefined) {\n child = { children: new WeakMap() };\n node.children.set(propDef, child);\n }\n node = child;\n }\n\n return (node.compiled ??= compile(propDefs));\n}\n\nexport { getCompiledPropDefs };\nexport type { CompiledPropDef, CompiledPropDefs };\n", "import type React from 'react';\n\n// Creates a union type of string literals with strings, but retains intellisense for the literals.\n// Union<string, 'foo' | 'bar'> => string | Omit<string, 'foo' | 'bar'>\ntype Union<S = string, T extends string | number = string> = T | Omit<S, T>;\n\nconst breakpoints = ['initial', 'xs', 'sm', 'md', 'lg', 'xl'] as const;\nconst breakpointSet: Set<string> = new Set(breakpoints);\ntype Breakpoint = (typeof breakpoints)[number];\ntype Responsive<T> = T | Partial<Record<Breakpoint, T>>;\n\ntype BooleanPropDef = {\n type: 'boolean';\n default?: boolean;\n required?: boolean;\n className?: string;\n};\ntype StringPropDef = {\n type: 'string';\n default?: string;\n required?: boolean;\n};\ntype ReactNodePropDef = {\n type: 'ReactNode';\n default?: React.ReactNode;\n required?: boolean;\n};\ntype EnumPropDef<T> = {\n type: 'enum';\n values: readonly T[];\n default?: T;\n required?: boolean;\n};\ntype EnumOrStringPropDef<T> = {\n type: 'enum | string';\n values: readonly T[];\n default?: T | string;\n required?: boolean;\n};\n\ntype NonStylingPropDef = {\n className?: never;\n customProperties?: never;\n parseValue?: never;\n};\n\ntype StylingPropDef = {\n className: string;\n parseValue?: (value: string) => string | undefined;\n};\n\ntype ArbitraryStylingPropDef = {\n className: string;\n customProperties: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n};\n\ntype RegularPropDef<T> =\n | ReactNodePropDef\n | BooleanPropDef\n | (StringPropDef & ArbitraryStylingPropDef)\n | (StringPropDef & NonStylingPropDef)\n | (EnumPropDef<T> & StylingPropDef)\n | (EnumPropDef<T> & NonStylingPropDef)\n | (EnumOrStringPropDef<T> & ArbitraryStylingPropDef)\n | (EnumOrStringPropDef<T> & NonStylingPropDef);\ntype ResponsivePropDef<T = any> = RegularPropDef<T> & { responsive: true };\ntype PropDef<T = any> = RegularPropDef<T> | ResponsivePropDef<T>;\n\n// prettier-ignore\ntype GetPropDefType<Def> =\n Def extends BooleanPropDef ? (Def extends ResponsivePropDef ? Responsive<boolean> : boolean)\n : Def extends StringPropDef ? (Def extends ResponsivePropDef ? Responsive<string> : string)\n : Def extends ReactNodePropDef ? (Def extends ResponsivePropDef ? Responsive<React.ReactNode> : React.ReactNode)\n : Def extends EnumOrStringPropDef<infer Type> ?\n Def extends ResponsivePropDef<infer Type extends string> ? Responsive<Union<string, Type>> : Type\n : Def extends EnumPropDef<infer Type> ? (Def extends ResponsivePropDef<infer Type> ? Responsive<Type> : Type)\n : never;\n\ntype GetPropDefTypes<P> = {\n [K in keyof P]?: GetPropDefType<P[K]>;\n};\n\nexport { breakpoints, breakpointSet };\nexport type {\n PropDef,\n GetPropDefTypes,\n ResponsivePropDef,\n //\n Breakpoint,\n Responsive,\n Union,\n};\n", "/** A util to check whether the object has a key, while inferring the correct key type */\nfunction hasOwnProperty<K extends string | number | symbol>(\n obj: Record<K, unknown>,\n key: string | number | symbol\n): key is K {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\nexport { hasOwnProperty };\n", "import type { Responsive, Breakpoint } from '../props/prop-def.js';\n\n// Use a Set for O(1) lookup instead of array.includes() which is O(n)\nconst breakpointSet = new Set<string>(['initial', 'xs', 'sm', 'md', 'lg', 'xl']);\n\nexport function isResponsiveObject<Value extends string>(\n obj: Responsive<Value | Omit<string, Value>> | undefined\n): obj is Record<Breakpoint, string> {\n if (typeof obj !== 'object' || obj === null) {\n return false;\n }\n // Use for...in to avoid Object.keys() array allocation\n for (const key in obj) {\n if (breakpointSet.has(key)) {\n return true;\n }\n }\n return false;\n}\n", "import { breakpointSet } from '../props/prop-def.js';\nimport { hasOwnProperty } from './has-own-property.js';\nimport { isResponsiveObject } from './is-responsive-object.js';\n\nimport type { Responsive, Union } from '../props/prop-def.js';\n\n/**\n * Membership test against a prop def's enum values. Callers that already hold a\n * compiled prop def pass `propValueSet` for an O(1) lookup; the handful of call\n * sites that build options inline fall back to scanning the array.\n */\nfunction includesValue(propValues: string[] | readonly string[], propValueSet: ReadonlySet<string> | undefined, value: string): boolean {\n return propValueSet !== undefined ? propValueSet.has(value) : propValues.includes(value);\n}\n\ninterface GetResponsiveStylesOptions {\n className: string;\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveStyles({ className, customProperties, ...args }: GetResponsiveStylesOptions) {\n const responsiveClassNames = getResponsiveClassNames({\n allowArbitraryValues: true,\n className,\n ...args,\n });\n\n const responsiveCustomProperties = getResponsiveCustomProperties({ customProperties, ...args });\n return [responsiveClassNames, responsiveCustomProperties] as const;\n}\n\ninterface GetResponsiveClassNamesOptions {\n allowArbitraryValues?: boolean;\n className: string;\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveClassNames({ allowArbitraryValues, value, className, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveClassNamesOptions): string | undefined {\n if (!value) {\n return undefined;\n }\n\n if (typeof value === 'string') {\n if (includesValue(propValues, propValueSet, value)) {\n return getBaseClassName(className, value, parseValue);\n }\n return allowArbitraryValues ? className : undefined;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n const classNames: string[] = [];\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n if (value !== undefined) {\n if (includesValue(propValues, propValueSet, value)) {\n const baseClassName = getBaseClassName(className, value, parseValue);\n const bpClassName = bp === 'initial' ? baseClassName : `${bp}:${baseClassName}`;\n classNames.push(bpClassName);\n } else if (allowArbitraryValues) {\n const bpClassName = bp === 'initial' ? className : `${bp}:${className}`;\n classNames.push(bpClassName);\n }\n }\n }\n\n return classNames.length > 0 ? classNames.join(' ') : '';\n }\n\n if (allowArbitraryValues) {\n return className;\n }\n}\n\nfunction getBaseClassName(className: string, value: string, parseValue: (value: string) => string | undefined): string {\n const delimiter = className ? '-' : '';\n const matchedValue = parseValue(value);\n const isNegative = matchedValue?.startsWith('-');\n const minus = isNegative ? '-' : '';\n const absoluteValue = isNegative ? matchedValue?.substring(1) : matchedValue;\n return `${minus}${className}${delimiter}${absoluteValue}`;\n}\n\ninterface GetResponsiveCustomPropertiesOptions {\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveCustomProperties({ customProperties, value, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveCustomPropertiesOptions) {\n // Don't generate custom properties if the value is not arbitrary\n if (!value || (typeof value === 'string' && includesValue(propValues, propValueSet, value))) {\n return undefined;\n }\n\n let styles: Record<string, string | undefined> | undefined;\n\n if (typeof value === 'string') {\n const parsed = parseValue(value);\n styles = {};\n for (const customProperty of customProperties) {\n styles[customProperty] = parsed;\n }\n return styles;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n // Don't generate a custom property if the value is not arbitrary\n if (value === undefined || includesValue(propValues, propValueSet, value)) {\n continue;\n }\n\n const parsed = parseValue(value);\n styles ??= {};\n for (const customProperty of customProperties) {\n const bpProperty = bp === 'initial' ? customProperty : `${customProperty}-${bp}`;\n styles[bpProperty] = parsed;\n }\n }\n }\n\n return styles ?? {};\n}\n\nexport { getResponsiveStyles, getResponsiveCustomProperties, getResponsiveClassNames };\n", "type InlineStyle =\n | React.CSSProperties\n | Record<string, string | number | null | undefined>\n | undefined;\n\n// Merges CSS styles like `classNames` merges CSS classes\n// Optimized to avoid object spread in loop - uses Object.assign for in-place mutation\nexport function mergeStyles(...styles: Array<InlineStyle>): InlineStyle {\n let result: Record<string, string | number | null | undefined> | undefined;\n\n for (const style of styles) {\n if (style) {\n if (result === undefined) {\n // First non-empty style - create result object\n result = {};\n }\n Object.assign(result, style);\n }\n }\n\n return result;\n}\n", "import type { PropDef, GetPropDefTypes } from './prop-def.js';\n\n// prettier-ignore\nconst marginValues = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '-1', '-2', '-3', '-4', '-5', '-6', '-7', '-8', '-9', '-10', '-11', '-12'] as const;\n\nconst marginPropDefs = {\n /**\n * Sets the CSS **margin** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * m=\"4\"\n * m=\"100px\"\n * m={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin\n */\n m: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-m',\n customProperties: ['--m'],\n },\n /**\n * Sets the CSS **margin-left** and **margin-right** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mx=\"4\"\n * mx=\"100px\"\n * mx={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mx: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mx',\n customProperties: ['--ml', '--mr'],\n },\n /**\n * Sets the CSS **margin-top** and **margin-bottom** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * my=\"4\"\n * my=\"100px\"\n * my={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n my: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-my',\n customProperties: ['--mt', '--mb'],\n },\n /**\n * Sets the CSS **margin-top** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mt=\"4\"\n * mt=\"100px\"\n * mt={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n */\n mt: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mt',\n customProperties: ['--mt'],\n },\n /**\n * Sets the CSS **margin-right** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mr=\"4\"\n * mr=\"100px\"\n * mr={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mr: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mr',\n customProperties: ['--mr'],\n },\n /**\n * Sets the CSS **margin-bottom** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mb=\"4\"\n * mb=\"100px\"\n * mb={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n mb: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mb',\n customProperties: ['--mb'],\n },\n /**\n * Sets the CSS **margin-left** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * ml=\"4\"\n * ml=\"100px\"\n * ml={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n */\n ml: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-ml',\n customProperties: ['--ml'],\n },\n} satisfies {\n m: PropDef<(typeof marginValues)[number]>;\n mx: PropDef<(typeof marginValues)[number]>;\n my: PropDef<(typeof marginValues)[number]>;\n mt: PropDef<(typeof marginValues)[number]>;\n mr: PropDef<(typeof marginValues)[number]>;\n mb: PropDef<(typeof marginValues)[number]>;\n ml: PropDef<(typeof marginValues)[number]>;\n};\n\ntype MarginProps = GetPropDefTypes<typeof marginPropDefs>;\n\nexport { marginPropDefs };\nexport type { MarginProps };\n"],
5
- "mappings": "0jBAAA,IAAAA,GAAA,GAAAC,EAAAD,GAAA,WAAAE,IAAA,eAAAC,EAAAH,IAAA,IAAAI,EAAuB,oBACvBC,EAAuB,yBACvBC,EAAqB,oBCArB,IAAMC,EAAiB,CAKrB,QAAS,CACP,KAAM,SACR,CACF,ECNA,IAAMC,EAAQ,CAAC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,IAAK,IAAK,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,MAAO,MAAO,KAAK,EAE7JC,EAAiB,CAarB,EAAG,CACD,KAAM,gBACN,OAAQD,EACR,WAAY,GACZ,UAAW,SACX,iBAAkB,CAAC,KAAK,CAC1B,EAcA,GAAI,CACF,KAAM,gBACN,OAAQA,EACR,WAAY,GACZ,UAAW,UACX,iBAAkB,CAAC,OAAQ,MAAM,CACnC,EAcA,GAAI,CACF,KAAM,gBACN,OAAQA,EACR,WAAY,GACZ,UAAW,UACX,iBAAkB,CAAC,OAAQ,MAAM,CACnC,EAaA,GAAI,CACF,KAAM,gBACN,OAAQA,EACR,WAAY,GACZ,UAAW,UACX,iBAAkB,CAAC,MAAM,CAC3B,EAaA,GAAI,CACF,KAAM,gBACN,OAAQA,EACR,WAAY,GACZ,UAAW,UACX,iBAAkB,CAAC,MAAM,CAC3B,EAaA,GAAI,CACF,KAAM,gBACN,OAAQA,EACR,WAAY,GACZ,UAAW,UACX,iBAAkB,CAAC,MAAM,CAC3B,EAaA,GAAI,CACF,KAAM,gBACN,OAAQA,EACR,WAAY,GACZ,UAAW,UACX,iBAAkB,CAAC,MAAM,CAC3B,CACF,EV1HA,IAAME,EAAc,aAAqC,CAACC,EAAOC,IAAiB,CAChF,GAAM,CAAE,QAAAC,EAAS,UAAAC,EAAW,GAAGC,CAAW,EAAIC,EAAaL,EAAOM,EAAeC,CAAc,EACzFC,EAAON,EAAU,OAAK,KAAO,MACnC,OAAO,gBAACM,EAAA,CAAM,GAAGJ,EAAY,IAAKH,EAAc,aAAW,EAAAQ,SAAW,WAAYN,CAAS,EAAG,CAChG,CAAC,EACDJ,EAAM,YAAc",
6
- "names": ["inset_exports", "__export", "Inset", "__toCommonJS", "React", "import_classnames", "import_radix_ui", "asChildPropDef", "sides", "clipValues", "paddingValues", "insetPropDefs", "asChildPropDef", "parsePaddingValue", "value", "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", "Inset", "props", "forwardedRef", "asChild", "className", "insetProps", "extractProps", "insetPropDefs", "marginPropDefs", "Comp", "classNames"]
7
- }
@@ -1,71 +0,0 @@
1
- declare const insetPropDefs: {
2
- side: {
3
- type: "enum";
4
- className: string;
5
- values: readonly ["all", "x", "y", "top", "bottom", "left", "right"];
6
- default: "all";
7
- responsive: true;
8
- };
9
- clip: {
10
- type: "enum";
11
- className: string;
12
- values: readonly ["border-box", "padding-box"];
13
- default: "border-box";
14
- responsive: true;
15
- };
16
- p: {
17
- type: "enum";
18
- className: string;
19
- values: readonly ["current", "0"];
20
- parseValue: typeof parsePaddingValue;
21
- responsive: true;
22
- };
23
- px: {
24
- type: "enum";
25
- className: string;
26
- values: readonly ["current", "0"];
27
- parseValue: typeof parsePaddingValue;
28
- responsive: true;
29
- };
30
- py: {
31
- type: "enum";
32
- className: string;
33
- values: readonly ["current", "0"];
34
- parseValue: typeof parsePaddingValue;
35
- responsive: true;
36
- };
37
- pt: {
38
- type: "enum";
39
- className: string;
40
- values: readonly ["current", "0"];
41
- parseValue: typeof parsePaddingValue;
42
- responsive: true;
43
- };
44
- pr: {
45
- type: "enum";
46
- className: string;
47
- values: readonly ["current", "0"];
48
- parseValue: typeof parsePaddingValue;
49
- responsive: true;
50
- };
51
- pb: {
52
- type: "enum";
53
- className: string;
54
- values: readonly ["current", "0"];
55
- parseValue: typeof parsePaddingValue;
56
- responsive: true;
57
- };
58
- pl: {
59
- type: "enum";
60
- className: string;
61
- values: readonly ["current", "0"];
62
- parseValue: typeof parsePaddingValue;
63
- responsive: true;
64
- };
65
- asChild: {
66
- type: "boolean";
67
- };
68
- };
69
- declare function parsePaddingValue(value: string): string;
70
- export { insetPropDefs };
71
- //# sourceMappingURL=inset.props.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inset.props.d.ts","sourceRoot":"","sources":["../../../src/components/inset.props.tsx"],"names":[],"mappings":"AAQA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ElB,CAAC;AAEF,iBAAS,iBAAiB,CAAC,KAAK,EAAE,MAAM,UAEvC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- "use strict";var o=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var f=(e,p)=>{for(var t in p)o(e,t,{get:p[t],enumerable:!0})},m=(e,p,t,u)=>{if(p&&typeof p=="object"||typeof p=="function")for(let a of i(p))!d.call(e,a)&&a!==t&&o(e,a,{get:()=>p[a],enumerable:!(u=n(p,a))||u.enumerable});return e};var c=e=>m(o({},"__esModule",{value:!0}),e);var v={};f(v,{insetPropDefs:()=>V});module.exports=c(v);var l={asChild:{type:"boolean"}};var y=["all","x","y","top","bottom","left","right"],b=["border-box","padding-box"],s=["current","0"],V={...l,side:{type:"enum",className:"rt-r-side",values:y,default:"all",responsive:!0},clip:{type:"enum",className:"rt-r-clip",values:b,default:"border-box",responsive:!0},p:{type:"enum",className:"rt-r-p",values:s,parseValue:r,responsive:!0},px:{type:"enum",className:"rt-r-px",values:s,parseValue:r,responsive:!0},py:{type:"enum",className:"rt-r-py",values:s,parseValue:r,responsive:!0},pt:{type:"enum",className:"rt-r-pt",values:s,parseValue:r,responsive:!0},pr:{type:"enum",className:"rt-r-pr",values:s,parseValue:r,responsive:!0},pb:{type:"enum",className:"rt-r-pb",values:s,parseValue:r,responsive:!0},pl:{type:"enum",className:"rt-r-pl",values:s,parseValue:r,responsive:!0}};function r(e){return e==="current"?"inset":e}
2
- //# sourceMappingURL=inset.props.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/components/inset.props.tsx", "../../../src/props/as-child.prop.ts"],
4
- "sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sides = ['all', 'x', 'y', 'top', 'bottom', 'left', 'right'] as const;\nconst clipValues = ['border-box', 'padding-box'] as const;\nconst paddingValues = ['current', '0'] as const;\n\nconst insetPropDefs = {\n ...asChildPropDef,\n side: {\n type: 'enum',\n className: 'rt-r-side',\n values: sides,\n default: 'all',\n responsive: true,\n },\n clip: {\n type: 'enum',\n className: 'rt-r-clip',\n values: clipValues,\n default: 'border-box',\n responsive: true,\n },\n p: {\n type: 'enum',\n className: 'rt-r-p',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n px: {\n type: 'enum',\n className: 'rt-r-px',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n py: {\n type: 'enum',\n className: 'rt-r-py',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n pt: {\n type: 'enum',\n className: 'rt-r-pt',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n pr: {\n type: 'enum',\n className: 'rt-r-pr',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n pb: {\n type: 'enum',\n className: 'rt-r-pb',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n pl: {\n type: 'enum',\n className: 'rt-r-pl',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n} satisfies {\n side: PropDef<(typeof sides)[number]>;\n clip: PropDef<(typeof clipValues)[number]>;\n p: PropDef<(typeof paddingValues)[number]>;\n px: PropDef<(typeof paddingValues)[number]>;\n py: PropDef<(typeof paddingValues)[number]>;\n pt: PropDef<(typeof paddingValues)[number]>;\n pr: PropDef<(typeof paddingValues)[number]>;\n pb: PropDef<(typeof paddingValues)[number]>;\n pl: PropDef<(typeof paddingValues)[number]>;\n};\n\nfunction parsePaddingValue(value: string) {\n return value === 'current' ? 'inset' : value;\n}\n\nexport { insetPropDefs };\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"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,mBAAAE,IAAA,eAAAC,EAAAH,GCEA,IAAMI,EAAiB,CAKrB,QAAS,CACP,KAAM,SACR,CACF,EDNA,IAAMC,EAAQ,CAAC,MAAO,IAAK,IAAK,MAAO,SAAU,OAAQ,OAAO,EAC1DC,EAAa,CAAC,aAAc,aAAa,EACzCC,EAAgB,CAAC,UAAW,GAAG,EAE/BC,EAAgB,CACpB,GAAGC,EACH,KAAM,CACJ,KAAM,OACN,UAAW,YACX,OAAQJ,EACR,QAAS,MACT,WAAY,EACd,EACA,KAAM,CACJ,KAAM,OACN,UAAW,YACX,OAAQC,EACR,QAAS,aACT,WAAY,EACd,EACA,EAAG,CACD,KAAM,OACN,UAAW,SACX,OAAQC,EACR,WAAYG,EACZ,WAAY,EACd,EACA,GAAI,CACF,KAAM,OACN,UAAW,UACX,OAAQH,EACR,WAAYG,EACZ,WAAY,EACd,EACA,GAAI,CACF,KAAM,OACN,UAAW,UACX,OAAQH,EACR,WAAYG,EACZ,WAAY,EACd,EACA,GAAI,CACF,KAAM,OACN,UAAW,UACX,OAAQH,EACR,WAAYG,EACZ,WAAY,EACd,EACA,GAAI,CACF,KAAM,OACN,UAAW,UACX,OAAQH,EACR,WAAYG,EACZ,WAAY,EACd,EACA,GAAI,CACF,KAAM,OACN,UAAW,UACX,OAAQH,EACR,WAAYG,EACZ,WAAY,EACd,EACA,GAAI,CACF,KAAM,OACN,UAAW,UACX,OAAQH,EACR,WAAYG,EACZ,WAAY,EACd,CACF,EAYA,SAASA,EAAkBC,EAAe,CACxC,OAAOA,IAAU,UAAY,QAAUA,CACzC",
6
- "names": ["inset_props_exports", "__export", "insetPropDefs", "__toCommonJS", "asChildPropDef", "sides", "clipValues", "paddingValues", "insetPropDefs", "asChildPropDef", "parsePaddingValue", "value"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as p}from"./chunk-RJ6SA7AY.js";import{a as o}from"./chunk-UBSLEGQZ.js";import{a as e}from"./chunk-GSTOGDAJ.js";import*as r from"react";import P from"classnames";import{Slot as c}from"radix-ui";var C=r.forwardRef((t,s)=>{let{asChild:a,className:m,flush:d,inset:n,...f}=o(t,p,e),i=a?c.Root:"div";return r.createElement(i,{ref:s,...f,"data-flush":d?"true":void 0,"data-inset":n?"true":void 0,className:P("rt-reset","rt-BaseCard","rt-Card",m)})});C.displayName="Card";export{C as a};
2
- //# sourceMappingURL=chunk-2CNQGDY3.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/card.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nimport classNames from 'classnames';\nimport { Slot } from 'radix-ui';\n\nimport { cardPropDefs } from './card.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { marginPropDefs } from '../props/margin.props.js';\n\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype CardElement = React.ElementRef<'div'>;\ntype CardOwnProps = GetPropDefTypes<typeof cardPropDefs>;\ninterface CardProps extends ComponentPropsWithout<'div', RemovedProps>, MarginProps, CardOwnProps {}\nconst Card = React.forwardRef<CardElement, CardProps>((props, forwardedRef) => {\n const { asChild, className, flush, inset, ...cardProps } = extractProps(\n props,\n cardPropDefs,\n marginPropDefs,\n );\n const Comp = asChild ? Slot.Root : 'div';\n return (\n <Comp\n ref={forwardedRef}\n {...cardProps}\n data-flush={flush ? 'true' : undefined}\n data-inset={inset ? 'true' : undefined}\n className={classNames('rt-reset', 'rt-BaseCard', 'rt-Card', className)}\n />\n );\n});\nCard.displayName = 'Card';\n\nexport { Card };\nexport type { CardProps };\n"],
5
- "mappings": "wHAAA,UAAYA,MAAW,QACvB,OAAOC,MAAgB,aACvB,OAAS,QAAAC,MAAY,WAarB,IAAMC,EAAa,aAAmC,CAACC,EAAOC,IAAiB,CAC7E,GAAM,CAAE,QAAAC,EAAS,UAAAC,EAAW,MAAAC,EAAO,MAAAC,EAAO,GAAGC,CAAU,EAAIC,EACzDP,EACAQ,EACAC,CACF,EACMC,EAAOR,EAAUS,EAAK,KAAO,MACnC,OACE,gBAACD,EAAA,CACC,IAAKT,EACJ,GAAGK,EACJ,aAAYF,EAAQ,OAAS,OAC7B,aAAYC,EAAQ,OAAS,OAC7B,UAAWO,EAAW,WAAY,cAAe,UAAWT,CAAS,EACvE,CAEJ,CAAC,EACDJ,EAAK,YAAc",
6
- "names": ["React", "classNames", "Slot", "Card", "props", "forwardedRef", "asChild", "className", "flush", "inset", "cardProps", "extractProps", "cardPropDefs", "marginPropDefs", "Comp", "Slot", "classNames"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as e}from"./chunk-MDHXSEGH.js";var o={...e};export{o as a};
2
- //# sourceMappingURL=chunk-2O3WL25H.js.map
@@ -1,2 +0,0 @@
1
- import{a as f}from"./chunk-BFLO4IVZ.js";import{a as s}from"./chunk-MJJ7XDIP.js";import{c as d}from"./chunk-6AZV4VFW.js";import{a as P}from"./chunk-O6K6RZXY.js";import{a as A}from"./chunk-2O3WL25H.js";import{a as c}from"./chunk-UBSLEGQZ.js";import{a as M}from"./chunk-OS3FCYZY.js";var B={};M(B,{Action:()=>T,Cancel:()=>E,Content:()=>R,Description:()=>v,Root:()=>C,Title:()=>u,Trigger:()=>y});import*as e from"react";import W from"classnames";import{AlertDialog as l}from"radix-ui";var C=t=>e.createElement(l.Root,{...t});C.displayName="AlertDialog.Root";var y=e.forwardRef(({children:t,...o},r)=>e.createElement(l.Trigger,{...o,ref:r,asChild:!0},s(t)));y.displayName="AlertDialog.Trigger";var{align:L,...O}=A,S={align:L},R=e.forwardRef(({align:t,...o},r)=>{let{className:h}=c({align:t},S),{className:N,forceMount:x,container:b,...w}=c(o,O),g=e.useRef(null),H=e.useMemo(()=>i=>{g.current=i,typeof r=="function"?r(i):r&&(r.current=i)},[r]);return e.useEffect(()=>{if(typeof window>"u")return;let i=g.current;if(!i)return;let a=i.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(a.length===0)return;let p=a[0],m=a[a.length-1],D=n=>{n.key==="Tab"&&(n.shiftKey?document.activeElement===p&&(n.preventDefault(),m.focus()):document.activeElement===m&&(n.preventDefault(),p.focus()))};return i.addEventListener("keydown",D),p.focus(),()=>{i.removeEventListener("keydown",D)}},[]),e.createElement(l.Portal,{container:b,forceMount:x},e.createElement(d,{asChild:!0},e.createElement(l.Overlay,{className:"rt-BaseDialogOverlay rt-AlertDialogOverlay"},e.createElement("div",{className:"rt-BaseDialogScroll rt-AlertDialogScroll"},e.createElement("div",{className:`rt-BaseDialogScrollPadding rt-AlertDialogScrollPadding ${h}`},e.createElement(l.Content,{...w,ref:H,className:W("rt-BaseDialogContent","rt-AlertDialogContent",N),tabIndex:-1,role:"alertdialog","aria-modal":"true","aria-describedby":"alert-dialog-description",onCloseAutoFocus:i=>{i.preventDefault(),document.body.style.pointerEvents=""}}),e.createElement("div",{"aria-live":"assertive","aria-atomic":"true",className:"rt-sr-only",id:"alert-dialog-announcement"}))))))});R.displayName="AlertDialog.Content";var u=e.forwardRef((t,o)=>e.createElement(l.Title,{asChild:!0},e.createElement(f,{size:"5",mb:"4",trim:"start",...t,asChild:!1,ref:o})));u.displayName="AlertDialog.Title";var v=e.forwardRef((t,o)=>e.createElement(l.Description,{asChild:!0},e.createElement(P,{as:"p",size:"3",...t,asChild:!1,ref:o})));v.displayName="AlertDialog.Description";var T=e.forwardRef(({children:t,...o},r)=>e.createElement(l.Action,{...o,ref:r,asChild:!0},s(t)));T.displayName="AlertDialog.Action";var E=e.forwardRef(({children:t,...o},r)=>e.createElement(l.Cancel,{...o,ref:r,asChild:!0},s(t)));E.displayName="AlertDialog.Cancel";export{C as a,y as b,R as c,u as d,v as e,T as f,E as g,B as h};
2
- //# sourceMappingURL=chunk-6YWDEANN.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/alert-dialog.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nimport classNames from 'classnames';\nimport { AlertDialog as AlertDialogPrimitive } from 'radix-ui';\n\nimport { alertDialogContentPropDefs } from './alert-dialog.props.js';\nimport { Heading } from './heading.js';\nimport { Text } from './text.js';\nimport { Theme } from './theme.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { requireReactElement } from '../helpers/require-react-element.js';\n\nimport type { AlertDialogContentOwnProps } from './alert-dialog.props.js';\nimport type {\n ComponentPropsWithout,\n RemovedProps,\n ComponentPropsAs,\n} from '../helpers/component-props.js';\n\ninterface AlertDialogRootProps\n extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Root> {}\nconst AlertDialogRoot: React.FC<AlertDialogRootProps> = (props) => (\n <AlertDialogPrimitive.Root {...props} />\n);\nAlertDialogRoot.displayName = 'AlertDialog.Root';\n\ntype AlertDialogTriggerElement = React.ElementRef<typeof AlertDialogPrimitive.Trigger>;\ninterface AlertDialogTriggerProps\n extends ComponentPropsWithout<typeof AlertDialogPrimitive.Trigger, RemovedProps> {}\nconst AlertDialogTrigger = React.forwardRef<AlertDialogTriggerElement, AlertDialogTriggerProps>(\n ({ children, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Trigger {...props} ref={forwardedRef} asChild>\n {requireReactElement(children)}\n </AlertDialogPrimitive.Trigger>\n ),\n);\nAlertDialogTrigger.displayName = 'AlertDialog.Trigger';\n\n// Split once at module scope. `extractProps` memoises on the identity of the\n// prop def objects it is handed, so rebuilding these per render would recompile\n// them on every render.\nconst {\n align: alignPropDef,\n ...contentPropDefs\n} = alertDialogContentPropDefs;\nconst alignPropDefs = { align: alignPropDef };\n\ntype AlertDialogContentElement = React.ElementRef<typeof AlertDialogPrimitive.Content>;\ninterface AlertDialogContentProps\n extends ComponentPropsWithout<typeof AlertDialogPrimitive.Content, RemovedProps>,\n AlertDialogContentOwnProps {\n container?: React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Portal>['container'];\n}\nconst AlertDialogContent = React.forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ align, ...props }, forwardedRef) => {\n const { className: alignClassName } = extractProps({ align }, alignPropDefs);\n\n const {\n className,\n forceMount,\n container,\n ...contentProps\n } = extractProps(props, contentPropDefs);\n\n // Focus management\n const contentRef = React.useRef<HTMLDivElement>(null);\n const combinedRef = React.useMemo(\n () => (node: HTMLDivElement | null) => {\n contentRef.current = node;\n if (typeof forwardedRef === 'function') {\n forwardedRef(node);\n } else if (forwardedRef) {\n forwardedRef.current = node;\n }\n },\n [forwardedRef],\n );\n\n // Focus trap effect\n React.useEffect(() => {\n // SSR safety - only run on client\n if (typeof window === 'undefined') return;\n\n const content = contentRef.current;\n if (!content) return;\n\n const focusableElements = content.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\n );\n\n if (focusableElements.length === 0) return;\n\n const firstElement = focusableElements[0] as HTMLElement;\n const lastElement = focusableElements[focusableElements.length - 1] as HTMLElement;\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Tab') {\n if (event.shiftKey) {\n if (document.activeElement === firstElement) {\n event.preventDefault();\n lastElement.focus();\n }\n } else {\n if (document.activeElement === lastElement) {\n event.preventDefault();\n firstElement.focus();\n }\n }\n }\n };\n\n content.addEventListener('keydown', handleKeyDown);\n\n // Focus first element when dialog opens\n firstElement.focus();\n\n return () => {\n content.removeEventListener('keydown', handleKeyDown);\n };\n }, []);\n\n return (\n <AlertDialogPrimitive.Portal container={container} forceMount={forceMount}>\n <Theme asChild>\n <AlertDialogPrimitive.Overlay className=\"rt-BaseDialogOverlay rt-AlertDialogOverlay\">\n <div className=\"rt-BaseDialogScroll rt-AlertDialogScroll\">\n <div\n className={`rt-BaseDialogScrollPadding rt-AlertDialogScrollPadding ${alignClassName}`}\n >\n <AlertDialogPrimitive.Content\n {...contentProps}\n ref={combinedRef}\n className={classNames('rt-BaseDialogContent', 'rt-AlertDialogContent', className)}\n tabIndex={-1}\n role=\"alertdialog\"\n aria-modal=\"true\"\n aria-describedby=\"alert-dialog-description\"\n onCloseAutoFocus={(event) => {\n // Prevent default focus behavior\n event.preventDefault();\n // Restore pointer-events to body (Radix UI fix for issue #1241)\n document.body.style.pointerEvents = '';\n }}\n />\n {/* ARIA live region for screen reader announcements */}\n <div\n aria-live=\"assertive\"\n aria-atomic=\"true\"\n className=\"rt-sr-only\"\n id=\"alert-dialog-announcement\"\n />\n </div>\n </div>\n </AlertDialogPrimitive.Overlay>\n </Theme>\n </AlertDialogPrimitive.Portal>\n );\n },\n);\nAlertDialogContent.displayName = 'AlertDialog.Content';\n\ntype AlertDialogTitleElement = React.ElementRef<typeof Heading>;\ntype AlertDialogTitleProps = ComponentPropsWithout<typeof Heading, 'asChild'>;\nconst AlertDialogTitle = React.forwardRef<AlertDialogTitleElement, AlertDialogTitleProps>(\n (props, forwardedRef) => (\n <AlertDialogPrimitive.Title asChild>\n <Heading size=\"5\" mb=\"4\" trim=\"start\" {...props} asChild={false} ref={forwardedRef} />\n </AlertDialogPrimitive.Title>\n ),\n);\nAlertDialogTitle.displayName = 'AlertDialog.Title';\n\ntype AlertDialogDescriptionElement = HTMLParagraphElement;\ntype AlertDialogDescriptionProps = ComponentPropsAs<typeof Text, 'p'>;\nconst AlertDialogDescription = React.forwardRef<\n AlertDialogDescriptionElement,\n AlertDialogDescriptionProps\n>((props, forwardedRef) => (\n <AlertDialogPrimitive.Description asChild>\n <Text as=\"p\" size=\"3\" {...props} asChild={false} ref={forwardedRef} />\n </AlertDialogPrimitive.Description>\n));\nAlertDialogDescription.displayName = 'AlertDialog.Description';\n\ntype AlertDialogActionElement = React.ElementRef<typeof AlertDialogPrimitive.Action>;\ninterface AlertDialogActionProps\n extends ComponentPropsWithout<typeof AlertDialogPrimitive.Action, RemovedProps> {}\nconst AlertDialogAction = React.forwardRef<AlertDialogActionElement, AlertDialogActionProps>(\n ({ children, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Action {...props} ref={forwardedRef} asChild>\n {requireReactElement(children)}\n </AlertDialogPrimitive.Action>\n ),\n);\nAlertDialogAction.displayName = 'AlertDialog.Action';\n\ntype AlertDialogCancelElement = React.ElementRef<typeof AlertDialogPrimitive.Cancel>;\ninterface AlertDialogCancelProps\n extends ComponentPropsWithout<typeof AlertDialogPrimitive.Cancel, RemovedProps> {}\nconst AlertDialogCancel = React.forwardRef<AlertDialogCancelElement, AlertDialogCancelProps>(\n ({ children, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Cancel {...props} ref={forwardedRef} asChild>\n {requireReactElement(children)}\n </AlertDialogPrimitive.Cancel>\n ),\n);\nAlertDialogCancel.displayName = 'AlertDialog.Cancel';\n\nexport {\n AlertDialogRoot as Root,\n AlertDialogTrigger as Trigger,\n AlertDialogContent as Content,\n AlertDialogTitle as Title,\n AlertDialogDescription as Description,\n AlertDialogAction as Action,\n AlertDialogCancel as Cancel,\n};\n\nexport type {\n AlertDialogRootProps as RootProps,\n AlertDialogTriggerProps as TriggerProps,\n AlertDialogContentProps as ContentProps,\n AlertDialogTitleProps as TitleProps,\n AlertDialogDescriptionProps as DescriptionProps,\n AlertDialogActionProps as ActionProps,\n AlertDialogCancelProps as CancelProps,\n};\n"],
5
- "mappings": "wRAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,YAAAE,EAAA,WAAAC,EAAA,YAAAC,EAAA,gBAAAC,EAAA,SAAAC,EAAA,UAAAC,EAAA,YAAAC,IAAA,UAAYC,MAAW,QACvB,OAAOC,MAAgB,aACvB,OAAS,eAAeC,MAA4B,WAkBpD,IAAMC,EAAmDC,GACvD,gBAACC,EAAqB,KAArB,CAA2B,GAAGD,EAAO,EAExCD,EAAgB,YAAc,mBAK9B,IAAMG,EAA2B,aAC/B,CAAC,CAAE,SAAAC,EAAU,GAAGH,CAAM,EAAGI,IACvB,gBAACH,EAAqB,QAArB,CAA8B,GAAGD,EAAO,IAAKI,EAAc,QAAO,IAChEC,EAAoBF,CAAQ,CAC/B,CAEJ,EACAD,EAAmB,YAAc,sBAKjC,GAAM,CACJ,MAAOI,EACP,GAAGC,CACL,EAAIC,EACEC,EAAgB,CAAE,MAAOH,CAAa,EAQtCI,EAA2B,aAC/B,CAAC,CAAE,MAAAC,EAAO,GAAGX,CAAM,EAAGI,IAAiB,CACrC,GAAM,CAAE,UAAWQ,CAAe,EAAIC,EAAa,CAAE,MAAAF,CAAM,EAAGF,CAAa,EAErE,CACJ,UAAAK,EACA,WAAAC,EACA,UAAAC,EACA,GAAGC,CACL,EAAIJ,EAAab,EAAOO,CAAe,EAGjCW,EAAmB,SAAuB,IAAI,EAC9CC,EAAoB,UACxB,IAAOC,GAAgC,CACrCF,EAAW,QAAUE,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Ac,sBAIjC,IAAMmB,EAAyB,aAC7B,CAAC7B,EAAOI,IACN,gBAACH,EAAqB,MAArB,CAA2B,QAAO,IACjC,gBAAC6B,EAAA,CAAQ,KAAK,IAAI,GAAG,IAAI,KAAK,QAAS,GAAG9B,EAAO,QAAS,GAAO,IAAKI,EAAc,CACtF,CAEJ,EACAyB,EAAiB,YAAc,oBAI/B,IAAME,EAA+B,aAGnC,CAAC/B,EAAOI,IACR,gBAACH,EAAqB,YAArB,CAAiC,QAAO,IACvC,gBAAC+B,EAAA,CAAK,GAAG,IAAI,KAAK,IAAK,GAAGhC,EAAO,QAAS,GAAO,IAAKI,EAAc,CACtE,CACD,EACD2B,EAAuB,YAAc,0BAKrC,IAAME,EAA0B,aAC9B,CAAC,CAAE,SAAA9B,EAAU,GAAGH,CAAM,EAAGI,IACvB,gBAACH,EAAqB,OAArB,CAA6B,GAAGD,EAAO,IAAKI,EAAc,QAAO,IAC/DC,EAAoBF,CAAQ,CAC/B,CAEJ,EACA8B,EAAkB,YAAc,qBAKhC,IAAMC,EAA0B,aAC9B,CAAC,CAAE,SAAA/B,EAAU,GAAGH,CAAM,EAAGI,IACvB,gBAACH,EAAqB,OAArB,CAA6B,GAAGD,EAAO,IAAKI,EAAc,QAAO,IAC/DC,EAAoBF,CAAQ,CAC/B,CAEJ,EACA+B,EAAkB,YAAc",
6
- "names": ["alert_dialog_exports", "__export", "AlertDialogAction", "AlertDialogCancel", "AlertDialogContent", "AlertDialogDescription", "AlertDialogRoot", "AlertDialogTitle", "AlertDialogTrigger", "React", "classNames", "AlertDialogPrimitive", "AlertDialogRoot", "props", "AlertDialogPrimitive", "AlertDialogTrigger", "children", "forwardedRef", "requireReactElement", "alignPropDef", "contentPropDefs", "alertDialogContentPropDefs", "alignPropDefs", "AlertDialogContent", "align", "alignClassName", "extractProps", "className", "forceMount", "container", "contentProps", "contentRef", "combinedRef", "node", "content", "focusableElements", "firstElement", "lastElement", "handleKeyDown", "event", "Theme", "classNames", "AlertDialogTitle", "Heading", "AlertDialogDescription", "Text", "AlertDialogAction", "AlertDialogCancel"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as e}from"./chunk-HAGKI7NA.js";import{a as s}from"./chunk-RJ6SA7AY.js";import{a as r}from"./chunk-NZJGC6ZW.js";import{c as o}from"./chunk-34KVYDF6.js";var a=["1","2","3","4","5"],p=s.variant.values,n={...r,size:{type:"enum",className:"rt-r-size",values:a,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:p,default:"raised"},...o,columns:{...e.columns,default:"repeat(auto-fit, minmax(160px, 1fr))"},gap:{...e.gap,default:"4"}};export{n as a};
2
- //# sourceMappingURL=chunk-6YWJUNMB.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/radio-cards.props.tsx"],
4
- "sourcesContent": ["import { cardPropDefs } from './card.props.js';\nimport { asChildPropDef } from '../props/as-child.prop.js';\nimport { colorPropDef } from '../props/color.prop.js';\nimport { gridPropDefs } from './grid.props.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4', '5'] as const;\n// The same list as Card: a selectable card looks like any other card.\nconst variants = cardPropDefs.variant.values;\n\nconst radioCardsRootPropDefs = {\n ...asChildPropDef,\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'raised' },\n ...colorPropDef,\n columns: { ...gridPropDefs.columns, default: 'repeat(auto-fit, minmax(160px, 1fr))' },\n gap: { ...gridPropDefs.gap, default: '4' },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n columns: PropDef<(typeof gridPropDefs.columns.values)[number]>;\n gap: PropDef<(typeof gridPropDefs.gap.values)[number]>;\n};\n\nexport { radioCardsRootPropDefs };\n"],
5
- "mappings": "gKAOA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,IAAK,GAAG,EAEhCC,EAAWC,EAAa,QAAQ,OAEhCC,EAAyB,CAC7B,GAAGC,EACH,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQJ,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,QAAS,EACtF,GAAGI,EACH,QAAS,CAAE,GAAGC,EAAa,QAAS,QAAS,sCAAuC,EACpF,IAAK,CAAE,GAAGA,EAAa,IAAK,QAAS,GAAI,CAC3C",
6
- "names": ["sizes", "variants", "cardPropDefs", "radioCardsRootPropDefs", "asChildPropDef", "colorPropDef", "gridPropDefs"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as e}from"./chunk-HAGKI7NA.js";import{a as s}from"./chunk-RJ6SA7AY.js";import{a as r}from"./chunk-NZJGC6ZW.js";import{c as o}from"./chunk-34KVYDF6.js";var a=["1","2","3","4","5"],p=s.variant.values,n={...r,size:{type:"enum",className:"rt-r-size",values:a,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:p,default:"raised"},...o,columns:{...e.columns,default:"repeat(auto-fit, minmax(200px, 1fr))"},gap:{...e.gap,default:"4"}};export{n as a};
2
- //# sourceMappingURL=chunk-EO7WQYFO.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/checkbox-cards.props.tsx"],
4
- "sourcesContent": ["import { cardPropDefs } from './card.props.js';\nimport { asChildPropDef } from '../props/as-child.prop.js';\nimport { colorPropDef } from '../props/color.prop.js';\nimport { gridPropDefs } from './grid.props.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4', '5'] as const;\n// The same list as Card: a selectable card looks like any other card.\nconst variants = cardPropDefs.variant.values;\n\nconst checkboxCardsRootPropDefs = {\n ...asChildPropDef,\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'raised' },\n ...colorPropDef,\n columns: { ...gridPropDefs.columns, default: 'repeat(auto-fit, minmax(200px, 1fr))' },\n gap: { ...gridPropDefs.gap, default: '4' },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n columns: PropDef<(typeof gridPropDefs.columns.values)[number]>;\n gap: PropDef<(typeof gridPropDefs.gap.values)[number]>;\n};\n\nexport { checkboxCardsRootPropDefs };\n"],
5
- "mappings": "gKAOA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,IAAK,GAAG,EAEhCC,EAAWC,EAAa,QAAQ,OAEhCC,EAA4B,CAChC,GAAGC,EACH,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQJ,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,QAAS,EACtF,GAAGI,EACH,QAAS,CAAE,GAAGC,EAAa,QAAS,QAAS,sCAAuC,EACpF,IAAK,CAAE,GAAGA,EAAa,IAAK,QAAS,GAAI,CAC3C",
6
- "names": ["sizes", "variants", "cardPropDefs", "checkboxCardsRootPropDefs", "asChildPropDef", "colorPropDef", "gridPropDefs"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as R}from"./chunk-KPPIW4OJ.js";import{a as m}from"./chunk-7FZPCM7W.js";import{a as u}from"./chunk-O6K6RZXY.js";import{d as p}from"./chunk-3YLYGKFB.js";import*as e from"react";import v from"classnames";var C=e.createContext(void 0),g={values:["1","2","3"]},f=e.forwardRef(({kind:a,size:t="2",color:o="gray",className:c,children:n,trailing:s,leading:i,...l},r)=>e.createElement("div",{role:"status","aria-live":"polite",...l,ref:r,className:v("rt-NoticeRoot",`rt-r-size-${t}`,c),"data-kind":a,"data-accent-color":o},i?e.createElement("span",{className:"rt-NoticeIcon","aria-hidden":!0},i):null,e.createElement(u,{as:"div",size:t,className:"rt-NoticeText"},n),s));f.displayName="Strip";var z=e.forwardRef(({icon:a,action:t,onDismiss:o,dismissLabel:c="Dismiss",size:n,...s},i)=>{let l=e.useContext(C),r=p(n??l,g);return e.createElement(f,{...s,size:r,ref:i,kind:"notice",leading:a,trailing:t||o?e.createElement("span",{className:"rt-NoticeActions"},t,o?e.createElement(R,{size:r,variant:"ghost",color:"gray","aria-label":c,className:"rt-NoticeDismiss",onClick:o},e.createElement("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none","aria-hidden":!0},e.createElement("path",{d:"M4 4l7 7M11 4l-7 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))):null):null})});z.displayName="Notice";var x=e.forwardRef(({confirmLabel:a,cancelLabel:t="Not now",onConfirm:o,onCancel:c,busy:n=!1,size:s,color:i="gray",...l},r)=>{let N=e.useContext(C),d=p(s??N,g);return e.createElement(f,{...l,size:d,color:i,ref:r,kind:"confirmation",trailing:e.createElement("span",{className:"rt-NoticeActions"},e.createElement(m,{size:d,variant:"ghost",color:"gray",disabled:n,onClick:c},t),e.createElement(m,{size:d,variant:"solid",color:i,loading:n,onClick:o},a))})});x.displayName="Confirmation";export{C as a,z as b,x as c};
2
- //# sourceMappingURL=chunk-GHD3TKCA.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/notice.tsx"],
4
- "sourcesContent": ["'use client';\n\n/**\n * Notice and Confirmation \u2014 what the app tells the person while it is true.\n *\n * Two questions place every message: what is it about, and what made it appear.\n *\n * - **Notice** \u2014 a condition that is true now, which nobody just caused: a usage limit, a\n * connection lost, a goal that finished. It takes space in the layout and never floats, so it\n * cannot cover what it is about. At most one action, and that action FIXES the condition. A\n * dismiss button only ACKNOWLEDGES it, and the app owns that state (`onDismiss`), because a\n * component cannot remember a dismissal across a reload.\n * - **Confirmation** \u2014 a question that waits for an answer: a quiet no before a loud yes, and no\n * dismiss button, because closing a question does not answer it. It never takes focus, so a\n * person can answer in the composer instead.\n *\n * Placement is the caller's. In a chat, both go in `Chatbar.Root`'s `notices`.\n * A notice with no action and no dismiss button is just a sentence: use `Text`.\n */\n\nimport * as React from 'react';\nimport classNames from 'classnames';\n\nimport { Button } from './button.js';\nimport { IconButton } from './icon-button.js';\nimport { Text } from './text.js';\nimport { useThemeSize } from '../helpers/theme-size.js';\nimport { accentColorPropDef } from '../props/color.prop.js';\n\ntype NoticeSize = '1' | '2' | '3';\n\n/** The size a notice takes when it doesn't set one. `Chatbar.Root` provides its own size here. */\nconst NoticeSizeContext = React.createContext<NoticeSize | undefined>(undefined);\n\n/** Notice's own range; a Theme size of 4 maps to 3. */\nconst noticeSizePropDef = { values: ['1', '2', '3'] as const };\ntype NoticeColor = (typeof accentColorPropDef)['color']['values'][number];\n\ninterface StripProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'color' | 'children'> {\n /** Padding, text and button size. Defaults to the nearest Theme's size (3 when the Theme is 4). */\n size?: NoticeSize;\n /**\n * The category of the message, not its volume. Default `gray`. Use a colour only when it adds a\n * fact the words don't already give, such as `red` for something that stops the next step.\n */\n color?: NoticeColor;\n /** The message. */\n children: React.ReactNode;\n}\n\ninterface NoticeProps extends StripProps {\n /** An icon before the message. It is hidden from assistive technology. */\n icon?: React.ReactNode;\n /** One action that fixes the condition, such as `<Button>Add credits</Button>`. */\n action?: React.ReactNode;\n /**\n * Called when the person presses the dismiss button, which shows only when this is set.\n * Dismissing hides the message; it does not fix the condition. Remove the notice and remember\n * the choice in your app.\n */\n onDismiss?: () => void;\n /** Accessible name of the dismiss button. Default \"Dismiss\". */\n dismissLabel?: string;\n}\n\ninterface ConfirmationProps extends StripProps {\n /** The yes. Name the action, such as \"Run\" or \"Allow up to $18\". */\n confirmLabel: string;\n /** The no. Default \"Not now\". */\n cancelLabel?: string;\n onConfirm: () => void;\n onCancel: () => void;\n /** The yes is running: it shows a spinner and the no is disabled. */\n busy?: boolean;\n}\n\nconst Strip = React.forwardRef<HTMLDivElement, StripProps & { kind: 'notice' | 'confirmation'; trailing: React.ReactNode; leading?: React.ReactNode }>(\n ({ kind, size = '2', color = 'gray', className, children, trailing, leading, ...props }, forwardedRef) => (\n <div\n role=\"status\"\n aria-live=\"polite\"\n {...props}\n ref={forwardedRef}\n className={classNames('rt-NoticeRoot', `rt-r-size-${size}`, className)}\n data-kind={kind}\n data-accent-color={color}\n >\n {leading ? (\n <span className=\"rt-NoticeIcon\" aria-hidden>\n {leading}\n </span>\n ) : null}\n <Text as=\"div\" size={size} className=\"rt-NoticeText\">\n {children}\n </Text>\n {trailing}\n </div>\n ),\n);\nStrip.displayName = 'Strip';\n\n/** A condition that is true now, with at most one action that fixes it. */\nconst Notice = React.forwardRef<HTMLDivElement, NoticeProps>(({ icon, action, onDismiss, dismissLabel = 'Dismiss', size: sizeProp, ...props }, forwardedRef) => {\n const contextSize = React.useContext(NoticeSizeContext);\n const size = useThemeSize(sizeProp ?? contextSize, noticeSizePropDef);\n const trailing =\n action || onDismiss ? (\n <span className=\"rt-NoticeActions\">\n {action}\n {onDismiss ? (\n <IconButton size={size} variant=\"ghost\" color=\"gray\" aria-label={dismissLabel} className=\"rt-NoticeDismiss\" onClick={onDismiss}>\n <svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" fill=\"none\" aria-hidden>\n <path d=\"M4 4l7 7M11 4l-7 7\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" />\n </svg>\n </IconButton>\n ) : null}\n </span>\n ) : null;\n return <Strip {...props} size={size} ref={forwardedRef} kind=\"notice\" leading={icon} trailing={trailing} />;\n});\nNotice.displayName = 'Notice';\n\n/** A question that waits for an answer: a quiet no, a loud yes, and no dismiss button. */\nconst Confirmation = React.forwardRef<HTMLDivElement, ConfirmationProps>(\n ({ confirmLabel, cancelLabel = 'Not now', onConfirm, onCancel, busy = false, size: sizeProp, color = 'gray', ...props }, forwardedRef) => {\n const contextSize = React.useContext(NoticeSizeContext);\n const size = useThemeSize(sizeProp ?? contextSize, noticeSizePropDef);\n return (\n <Strip\n {...props}\n size={size}\n color={color}\n ref={forwardedRef}\n kind=\"confirmation\"\n trailing={\n <span className=\"rt-NoticeActions\">\n <Button size={size} variant=\"ghost\" color=\"gray\" disabled={busy} onClick={onCancel}>\n {cancelLabel}\n </Button>\n <Button size={size} variant=\"solid\" color={color} loading={busy} onClick={onConfirm}>\n {confirmLabel}\n </Button>\n </span>\n }\n />\n );\n },\n);\nConfirmation.displayName = 'Confirmation';\n\nexport { Notice, Confirmation, NoticeSizeContext };\nexport type { NoticeProps, ConfirmationProps };\n"],
5
- "mappings": "gKAoBA,UAAYA,MAAW,QACvB,OAAOC,MAAgB,aAWvB,IAAMC,EAA0B,gBAAsC,MAAS,EAGzEC,EAAoB,CAAE,OAAQ,CAAC,IAAK,IAAK,GAAG,CAAW,EAyCvDC,EAAc,aAClB,CAAC,CAAE,KAAAC,EAAM,KAAAC,EAAO,IAAK,MAAAC,EAAQ,OAAQ,UAAAC,EAAW,SAAAC,EAAU,SAAAC,EAAU,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IACvF,gBAAC,OACC,KAAK,SACL,YAAU,SACT,GAAGD,EACJ,IAAKC,EACL,UAAWC,EAAW,gBAAiB,aAAaR,CAAI,GAAIE,CAAS,EACrE,YAAWH,EACX,oBAAmBE,GAElBI,EACC,gBAAC,QAAK,UAAU,gBAAgB,cAAW,IACxCA,CACH,EACE,KACJ,gBAACI,EAAA,CAAK,GAAG,MAAM,KAAMT,EAAM,UAAU,iBAClCG,CACH,EACCC,CACH,CAEJ,EACAN,EAAM,YAAc,QAGpB,IAAMY,EAAe,aAAwC,CAAC,CAAE,KAAAC,EAAM,OAAAC,EAAQ,UAAAC,EAAW,aAAAC,EAAe,UAAW,KAAMC,EAAU,GAAGT,CAAM,EAAGC,IAAiB,CAC9J,IAAMS,EAAoB,aAAWpB,CAAiB,EAChDI,EAAOiB,EAAaF,GAAYC,EAAanB,CAAiB,EAcpE,OAAO,gBAACC,EAAA,CAAO,GAAGQ,EAAO,KAAMN,EAAM,IAAKO,EAAc,KAAK,SAAS,QAASI,EAAM,SAZnFC,GAAUC,EACR,gBAAC,QAAK,UAAU,oBACbD,EACAC,EACC,gBAACK,EAAA,CAAW,KAAMlB,EAAM,QAAQ,QAAQ,MAAM,OAAO,aAAYc,EAAc,UAAU,mBAAmB,QAASD,GACnH,gBAAC,OAAI,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,cAAW,IACrE,gBAAC,QAAK,EAAE,qBAAqB,OAAO,eAAe,YAAY,MAAM,cAAc,QAAQ,CAC7F,CACF,EACE,IACN,EACE,KACmG,CAC3G,CAAC,EACDH,EAAO,YAAc,SAGrB,IAAMS,EAAqB,aACzB,CAAC,CAAE,aAAAC,EAAc,YAAAC,EAAc,UAAW,UAAAC,EAAW,SAAAC,EAAU,KAAAC,EAAO,GAAO,KAAMT,EAAU,MAAAd,EAAQ,OAAQ,GAAGK,CAAM,EAAGC,IAAiB,CACxI,IAAMS,EAAoB,aAAWpB,CAAiB,EAChDI,EAAOiB,EAAaF,GAAYC,EAAanB,CAAiB,EACpE,OACA,gBAACC,EAAA,CACE,GAAGQ,EACJ,KAAMN,EACN,MAAOC,EACP,IAAKM,EACL,KAAK,eACL,SACE,gBAAC,QAAK,UAAU,oBACd,gBAACkB,EAAA,CAAO,KAAMzB,EAAM,QAAQ,QAAQ,MAAM,OAAO,SAAUwB,EAAM,QAASD,GACvEF,CACH,EACA,gBAACI,EAAA,CAAO,KAAMzB,EAAM,QAAQ,QAAQ,MAAOC,EAAO,QAASuB,EAAM,QAASF,GACvEF,CACH,CACF,EAEJ,CAEF,CACF,EACAD,EAAa,YAAc",
6
- "names": ["React", "classNames", "NoticeSizeContext", "noticeSizePropDef", "Strip", "kind", "size", "color", "className", "children", "trailing", "leading", "props", "forwardedRef", "classNames", "Text", "Notice", "icon", "action", "onDismiss", "dismissLabel", "sizeProp", "contextSize", "useThemeSize", "IconButton", "Confirmation", "confirmLabel", "cancelLabel", "onConfirm", "onCancel", "busy", "Button"]
7
- }
@@ -1,2 +0,0 @@
1
- var e=["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"],r={m:{type:"enum | string",values:e,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:e,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:e,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:e,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:e,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:e,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:e,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}};export{r as a};
2
- //# sourceMappingURL=chunk-GSTOGDAJ.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/props/margin.props.ts"],
4
- "sourcesContent": ["import type { PropDef, GetPropDefTypes } from './prop-def.js';\n\n// prettier-ignore\nconst marginValues = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '-1', '-2', '-3', '-4', '-5', '-6', '-7', '-8', '-9', '-10', '-11', '-12'] as const;\n\nconst marginPropDefs = {\n /**\n * Sets the CSS **margin** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * m=\"4\"\n * m=\"100px\"\n * m={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin\n */\n m: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-m',\n customProperties: ['--m'],\n },\n /**\n * Sets the CSS **margin-left** and **margin-right** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mx=\"4\"\n * mx=\"100px\"\n * mx={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mx: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mx',\n customProperties: ['--ml', '--mr'],\n },\n /**\n * Sets the CSS **margin-top** and **margin-bottom** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * my=\"4\"\n * my=\"100px\"\n * my={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n my: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-my',\n customProperties: ['--mt', '--mb'],\n },\n /**\n * Sets the CSS **margin-top** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mt=\"4\"\n * mt=\"100px\"\n * mt={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n */\n mt: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mt',\n customProperties: ['--mt'],\n },\n /**\n * Sets the CSS **margin-right** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mr=\"4\"\n * mr=\"100px\"\n * mr={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mr: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mr',\n customProperties: ['--mr'],\n },\n /**\n * Sets the CSS **margin-bottom** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mb=\"4\"\n * mb=\"100px\"\n * mb={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n mb: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mb',\n customProperties: ['--mb'],\n },\n /**\n * Sets the CSS **margin-left** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * ml=\"4\"\n * ml=\"100px\"\n * ml={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n */\n ml: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-ml',\n customProperties: ['--ml'],\n },\n} satisfies {\n m: PropDef<(typeof marginValues)[number]>;\n mx: PropDef<(typeof marginValues)[number]>;\n my: PropDef<(typeof marginValues)[number]>;\n mt: PropDef<(typeof marginValues)[number]>;\n mr: PropDef<(typeof marginValues)[number]>;\n mb: PropDef<(typeof marginValues)[number]>;\n ml: PropDef<(typeof marginValues)[number]>;\n};\n\ntype MarginProps = GetPropDefTypes<typeof marginPropDefs>;\n\nexport { marginPropDefs };\nexport type { MarginProps };\n"],
5
- "mappings": "AAGA,IAAMA,EAAe,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,MAAO,MAAO,KAAK,EAE7JC,EAAiB,CAarB,EAAG,CACD,KAAM,gBACN,OAAQD,EACR,WAAY,GACZ,UAAW,SACX,iBAAkB,CAAC,KAAK,CAC1B,EAcA,GAAI,CACF,KAAM,gBACN,OAAQA,EACR,WAAY,GACZ,UAAW,UACX,iBAAkB,CAAC,OAAQ,MAAM,CACnC,EAcA,GAAI,CACF,KAAM,gBACN,OAAQA,EACR,WAAY,GACZ,UAAW,UACX,iBAAkB,CAAC,OAAQ,MAAM,CACnC,EAaA,GAAI,CACF,KAAM,gBACN,OAAQA,EACR,WAAY,GACZ,UAAW,UACX,iBAAkB,CAAC,MAAM,CAC3B,EAaA,GAAI,CACF,KAAM,gBACN,OAAQA,EACR,WAAY,GACZ,UAAW,UACX,iBAAkB,CAAC,MAAM,CAC3B,EAaA,GAAI,CACF,KAAM,gBACN,OAAQA,EACR,WAAY,GACZ,UAAW,UACX,iBAAkB,CAAC,MAAM,CAC3B,EAaA,GAAI,CACF,KAAM,gBACN,OAAQA,EACR,WAAY,GACZ,UAAW,UACX,iBAAkB,CAAC,MAAM,CAC3B,CACF",
6
- "names": ["marginValues", "marginPropDefs"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as u}from"./chunk-MHANZINI.js";import{a as P}from"./chunk-BFLO4IVZ.js";import{a as g}from"./chunk-MJJ7XDIP.js";import{c as C}from"./chunk-6AZV4VFW.js";import{a as d}from"./chunk-O6K6RZXY.js";import{a as f}from"./chunk-MDHXSEGH.js";import{a as p}from"./chunk-UBSLEGQZ.js";import{a as L}from"./chunk-OS3FCYZY.js";var A={};L(A,{Close:()=>h,Content:()=>R,Description:()=>E,Root:()=>y,Title:()=>T,Trigger:()=>v});import*as e from"react";import W from"classnames";import{Dialog as a}from"radix-ui";var y=o=>e.createElement(a.Root,{...o,modal:!0});y.displayName="Dialog.Root";var v=e.forwardRef(({children:o,...i},r)=>e.createElement(a.Trigger,{...i,ref:r,asChild:!0},g(o)));v.displayName="Dialog.Trigger";var{align:O,...B}=f,S={align:O},R=e.forwardRef(({align:o,...i},r)=>{let{className:N}=p({align:o},S),{className:x,forceMount:b,container:w,...H}=p(i,B),m=e.useRef(null),M=e.useMemo(()=>t=>{m.current=t,typeof r=="function"?r(t):r&&(r.current=t)},[r]);return u(),e.useEffect(()=>{if(typeof window>"u")return;let t=m.current;if(!t)return;let l=t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(l.length===0)return;let s=l[0],c=l[l.length-1],D=n=>{n.key==="Tab"&&(n.shiftKey?document.activeElement===s&&(n.preventDefault(),c.focus()):document.activeElement===c&&(n.preventDefault(),s.focus()))};return t.addEventListener("keydown",D),s.focus(),()=>{t.removeEventListener("keydown",D)}},[]),e.createElement(a.Portal,{container:w,forceMount:b},e.createElement(C,{asChild:!0},e.createElement(a.Overlay,{className:"rt-BaseDialogOverlay rt-DialogOverlay"},e.createElement("div",{className:"rt-BaseDialogScroll rt-DialogScroll"},e.createElement("div",{className:`rt-BaseDialogScrollPadding rt-DialogScrollPadding ${N}`},e.createElement(a.Content,{...H,ref:M,className:W("rt-BaseDialogContent","rt-DialogContent",x),tabIndex:-1,role:"dialog","aria-modal":"true",onCloseAutoFocus:t=>{t.preventDefault(),document.body.style.pointerEvents=""}}),e.createElement("div",{"aria-live":"polite","aria-atomic":"true",className:"rt-sr-only",id:"dialog-announcement"}))))))});R.displayName="Dialog.Content";var T=e.forwardRef((o,i)=>e.createElement(a.Title,{asChild:!0},e.createElement(P,{size:"5",mb:"4",trim:"start",...o,asChild:!1,ref:i})));T.displayName="Dialog.Title";var E=e.forwardRef((o,i)=>e.createElement(a.Description,{asChild:!0},e.createElement(d,{as:"p",size:"3",...o,asChild:!1,ref:i})));E.displayName="Dialog.Description";var h=e.forwardRef(({children:o,...i},r)=>e.createElement(a.Close,{...i,ref:r,asChild:!0},g(o)));h.displayName="Dialog.Close";export{y as a,v as b,R as c,T as d,E as e,h as f,A as g};
2
- //# sourceMappingURL=chunk-GTVFQXLJ.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/dialog.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nimport classNames from 'classnames';\nimport { Dialog as DialogPrimitive } from 'radix-ui';\n\nimport { dialogContentPropDefs } from './dialog.props.js';\nimport { Heading } from './heading.js';\nimport { Text } from './text.js';\nimport { Theme } from './theme.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { requireReactElement } from '../helpers/require-react-element.js';\nimport { useBodyPointerEventsCleanup } from '../hooks/use-body-pointer-events-cleanup.js';\n\nimport type { DialogContentOwnProps } from './dialog.props.js';\nimport type {\n ComponentPropsWithout,\n RemovedProps,\n ComponentPropsAs,\n} from '../helpers/component-props.js';\n\ninterface DialogRootProps extends ComponentPropsWithout<typeof DialogPrimitive.Root, 'modal'> {}\nconst DialogRoot: React.FC<DialogRootProps> = (props) => <DialogPrimitive.Root {...props} modal />;\nDialogRoot.displayName = 'Dialog.Root';\n\ntype DialogTriggerElement = React.ElementRef<typeof DialogPrimitive.Trigger>;\ninterface DialogTriggerProps\n extends ComponentPropsWithout<typeof DialogPrimitive.Trigger, RemovedProps> {}\nconst DialogTrigger = React.forwardRef<DialogTriggerElement, DialogTriggerProps>(\n ({ children, ...props }, forwardedRef) => (\n <DialogPrimitive.Trigger {...props} ref={forwardedRef} asChild>\n {requireReactElement(children)}\n </DialogPrimitive.Trigger>\n ),\n);\nDialogTrigger.displayName = 'Dialog.Trigger';\n\n// Split once at module scope. `extractProps` memoises on the identity of the\n// prop def objects it is handed, so rebuilding these per render would recompile\n// them on every render.\nconst {\n align: alignPropDef,\n ...contentPropDefs\n} = dialogContentPropDefs;\nconst alignPropDefs = { align: alignPropDef };\n\ntype DialogContentElement = React.ElementRef<typeof DialogPrimitive.Content>;\ninterface DialogContentProps\n extends ComponentPropsWithout<typeof DialogPrimitive.Content, RemovedProps>,\n DialogContentOwnProps {\n container?: React.ComponentPropsWithoutRef<typeof DialogPrimitive.Portal>['container'];\n}\nconst DialogContent = React.forwardRef<DialogContentElement, DialogContentProps>(\n ({ align, ...props }, forwardedRef) => {\n const { className: alignClassName } = extractProps({ align }, alignPropDefs);\n\n const {\n className,\n forceMount,\n container,\n ...contentProps\n } = extractProps(props, contentPropDefs);\n\n // Focus management\n const contentRef = React.useRef<HTMLDivElement>(null);\n const combinedRef = React.useMemo(\n () => (node: HTMLDivElement | null) => {\n contentRef.current = node;\n if (typeof forwardedRef === 'function') {\n forwardedRef(node);\n } else if (forwardedRef) {\n forwardedRef.current = node;\n }\n },\n [forwardedRef],\n );\n\n // Cleanup stuck pointer-events on body\n useBodyPointerEventsCleanup();\n\n // Focus trap effect\n React.useEffect(() => {\n // SSR safety - only run on client\n if (typeof window === 'undefined') return;\n\n const content = contentRef.current;\n if (!content) return;\n\n const focusableElements = content.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\n );\n\n if (focusableElements.length === 0) return;\n\n const firstElement = focusableElements[0] as HTMLElement;\n const lastElement = focusableElements[focusableElements.length - 1] as HTMLElement;\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Tab') {\n if (event.shiftKey) {\n if (document.activeElement === firstElement) {\n event.preventDefault();\n lastElement.focus();\n }\n } else {\n if (document.activeElement === lastElement) {\n event.preventDefault();\n firstElement.focus();\n }\n }\n }\n };\n\n content.addEventListener('keydown', handleKeyDown);\n\n // Focus first element when dialog opens\n firstElement.focus();\n\n return () => {\n content.removeEventListener('keydown', handleKeyDown);\n };\n }, []);\n\n return (\n <DialogPrimitive.Portal container={container} forceMount={forceMount}>\n <Theme asChild>\n <DialogPrimitive.Overlay className=\"rt-BaseDialogOverlay rt-DialogOverlay\">\n <div className=\"rt-BaseDialogScroll rt-DialogScroll\">\n <div\n className={`rt-BaseDialogScrollPadding rt-DialogScrollPadding ${alignClassName}`}\n >\n <DialogPrimitive.Content\n {...contentProps}\n ref={combinedRef}\n className={classNames('rt-BaseDialogContent', 'rt-DialogContent', className)}\n tabIndex={-1}\n role=\"dialog\"\n aria-modal=\"true\"\n onCloseAutoFocus={(event) => {\n // Prevent default focus behavior\n event.preventDefault();\n // Restore pointer-events to body (Radix UI fix for issue #1241)\n document.body.style.pointerEvents = '';\n }}\n />\n {/* ARIA live region for screen reader announcements */}\n <div\n aria-live=\"polite\"\n aria-atomic=\"true\"\n className=\"rt-sr-only\"\n id=\"dialog-announcement\"\n />\n </div>\n </div>\n </DialogPrimitive.Overlay>\n </Theme>\n </DialogPrimitive.Portal>\n );\n },\n);\nDialogContent.displayName = 'Dialog.Content';\n\ntype DialogTitleElement = React.ElementRef<typeof Heading>;\ntype DialogTitleProps = ComponentPropsWithout<typeof Heading, 'asChild'>;\nconst DialogTitle = React.forwardRef<DialogTitleElement, DialogTitleProps>(\n (props, forwardedRef) => (\n <DialogPrimitive.Title asChild>\n <Heading size=\"5\" mb=\"4\" trim=\"start\" {...props} asChild={false} ref={forwardedRef} />\n </DialogPrimitive.Title>\n ),\n);\nDialogTitle.displayName = 'Dialog.Title';\n\ntype DialogDescriptionElement = HTMLParagraphElement;\ntype DialogDescriptionProps = ComponentPropsAs<typeof Text, 'p'>;\nconst DialogDescription = React.forwardRef<DialogDescriptionElement, DialogDescriptionProps>(\n (props, forwardedRef) => (\n <DialogPrimitive.Description asChild>\n <Text as=\"p\" size=\"3\" {...props} asChild={false} ref={forwardedRef} />\n </DialogPrimitive.Description>\n ),\n);\nDialogDescription.displayName = 'Dialog.Description';\n\ntype DialogCloseElement = React.ElementRef<typeof DialogPrimitive.Close>;\ninterface DialogCloseProps\n extends ComponentPropsWithout<typeof DialogPrimitive.Close, RemovedProps> {}\nconst DialogClose = React.forwardRef<DialogCloseElement, DialogCloseProps>(\n ({ children, ...props }, forwardedRef) => (\n <DialogPrimitive.Close {...props} ref={forwardedRef} asChild>\n {requireReactElement(children)}\n </DialogPrimitive.Close>\n ),\n);\nDialogClose.displayName = 'Dialog.Close';\n\nexport {\n DialogRoot as Root,\n DialogTrigger as Trigger,\n DialogContent as Content,\n DialogTitle as Title,\n DialogDescription as Description,\n DialogClose as Close,\n};\n\nexport type {\n DialogRootProps as RootProps,\n DialogTriggerProps as TriggerProps,\n DialogContentProps as ContentProps,\n DialogTitleProps as TitleProps,\n DialogDescriptionProps as DescriptionProps,\n DialogCloseProps as CloseProps,\n};\n"],
5
- "mappings": "gUAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,WAAAE,EAAA,YAAAC,EAAA,gBAAAC,EAAA,SAAAC,EAAA,UAAAC,EAAA,YAAAC,IAAA,UAAYC,MAAW,QACvB,OAAOC,MAAgB,aACvB,OAAS,UAAUC,MAAuB,WAkB1C,IAAMC,EAAyCC,GAAU,gBAACC,EAAgB,KAAhB,CAAsB,GAAGD,EAAO,MAAK,GAAC,EAChGD,EAAW,YAAc,cAKzB,IAAMG,EAAsB,aAC1B,CAAC,CAAE,SAAAC,EAAU,GAAGH,CAAM,EAAGI,IACvB,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AAC,EAGH,gBAACzB,EAAgB,OAAhB,CAAuB,UAAWe,EAAW,WAAYD,GACxD,gBAACa,EAAA,CAAM,QAAO,IACZ,gBAAC3B,EAAgB,QAAhB,CAAwB,UAAU,yCACjC,gBAAC,OAAI,UAAU,uCACb,gBAAC,OACC,UAAW,qDAAqDW,CAAc,IAE9E,gBAACX,EAAgB,QAAhB,CACE,GAAGgB,EACJ,IAAKE,EACL,UAAWU,EAAW,uBAAwB,mBAAoBf,CAAS,EAC3E,SAAU,GACV,KAAK,SACL,aAAW,OACX,iBAAmBa,GAAU,CAE3BA,EAAM,eAAe,EAErB,SAAS,KAAK,MAAM,cAAgB,EACtC,EACF,EAEA,gBAAC,OACC,YAAU,SACV,cAAY,OACZ,UAAU,aACV,GAAG,sBACL,CACF,CACF,CACF,CACF,CACF,CAEJ,CACF,EACAjB,EAAc,YAAc,iBAI5B,IAAMoB,EAAoB,aACxB,CAAC9B,EAAOI,IACN,gBAACH,EAAgB,MAAhB,CAAsB,QAAO,IAC5B,gBAAC8B,EAAA,CAAQ,KAAK,IAAI,GAAG,IAAI,KAAK,QAAS,GAAG/B,EAAO,QAAS,GAAO,IAAKI,EAAc,CACtF,CAEJ,EACA0B,EAAY,YAAc,eAI1B,IAAME,EAA0B,aAC9B,CAAChC,EAAOI,IACN,gBAACH,EAAgB,YAAhB,CAA4B,QAAO,IAClC,gBAACgC,EAAA,CAAK,GAAG,IAAI,KAAK,IAAK,GAAGjC,EAAO,QAAS,GAAO,IAAKI,EAAc,CACtE,CAEJ,EACA4B,EAAkB,YAAc,qBAKhC,IAAME,EAAoB,aACxB,CAAC,CAAE,SAAA/B,EAAU,GAAGH,CAAM,EAAGI,IACvB,gBAACH,EAAgB,MAAhB,CAAuB,GAAGD,EAAO,IAAKI,EAAc,QAAO,IACzDC,EAAoBF,CAAQ,CAC/B,CAEJ,EACA+B,EAAY,YAAc",
6
- "names": ["dialog_exports", "__export", "DialogClose", "DialogContent", "DialogDescription", "DialogRoot", "DialogTitle", "DialogTrigger", "React", "classNames", "DialogPrimitive", "DialogRoot", "props", "DialogPrimitive", "DialogTrigger", "children", "forwardedRef", "requireReactElement", "alignPropDef", "contentPropDefs", "dialogContentPropDefs", "alignPropDefs", "DialogContent", "align", "alignClassName", "extractProps", "className", "forceMount", "container", "contentProps", "contentRef", "combinedRef", "node", "useBodyPointerEventsCleanup", "content", "focusableElements", "firstElement", "lastElement", "handleKeyDown", "event", "Theme", "classNames", "DialogTitle", "Heading", "DialogDescription", "Text", "DialogClose"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as r}from"./chunk-JAMLW534.js";import{a as o}from"./chunk-UBSLEGQZ.js";import{a as t}from"./chunk-GSTOGDAJ.js";import*as e from"react";import a from"classnames";import{Slot as P}from"radix-ui";var c=e.forwardRef((p,s)=>{let{asChild:n,className:m,...i}=o(p,r,t),f=n?P.Root:"div";return e.createElement(f,{...i,ref:s,className:a("rt-Inset",m)})});c.displayName="Inset";export{c as a};
2
- //# sourceMappingURL=chunk-IYFDCW7Y.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/inset.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nimport classNames from 'classnames';\nimport { Slot } from 'radix-ui';\n\nimport { insetPropDefs } from './inset.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { marginPropDefs } from '../props/margin.props.js';\n\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype InsetElement = React.ElementRef<'div'>;\ntype InsetOwnProps = GetPropDefTypes<typeof insetPropDefs>;\ninterface InsetProps\n extends ComponentPropsWithout<'div', RemovedProps>,\n MarginProps,\n InsetOwnProps {}\n\nconst Inset = React.forwardRef<InsetElement, InsetProps>((props, forwardedRef) => {\n const { asChild, className, ...insetProps } = extractProps(props, insetPropDefs, marginPropDefs);\n const Comp = asChild ? Slot.Root : 'div';\n return <Comp {...insetProps} ref={forwardedRef} className={classNames('rt-Inset', className)} />;\n});\nInset.displayName = 'Inset';\n\nexport { Inset };\nexport type { InsetProps };\n"],
5
- "mappings": "wHAAA,UAAYA,MAAW,QACvB,OAAOC,MAAgB,aACvB,OAAS,QAAAC,MAAY,WAiBrB,IAAMC,EAAc,aAAqC,CAACC,EAAOC,IAAiB,CAChF,GAAM,CAAE,QAAAC,EAAS,UAAAC,EAAW,GAAGC,CAAW,EAAIC,EAAaL,EAAOM,EAAeC,CAAc,EACzFC,EAAON,EAAUO,EAAK,KAAO,MACnC,OAAO,gBAACD,EAAA,CAAM,GAAGJ,EAAY,IAAKH,EAAc,UAAWS,EAAW,WAAYP,CAAS,EAAG,CAChG,CAAC,EACDJ,EAAM,YAAc",
6
- "names": ["React", "classNames", "Slot", "Inset", "props", "forwardedRef", "asChild", "className", "insetProps", "extractProps", "insetPropDefs", "marginPropDefs", "Comp", "Slot", "classNames"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as r}from"./chunk-NZJGC6ZW.js";var a=["all","x","y","top","bottom","left","right"],t=["border-box","padding-box"],e=["current","0"],o={...r,side:{type:"enum",className:"rt-r-side",values:a,default:"all",responsive:!0},clip:{type:"enum",className:"rt-r-clip",values:t,default:"border-box",responsive:!0},p:{type:"enum",className:"rt-r-p",values:e,parseValue:p,responsive:!0},px:{type:"enum",className:"rt-r-px",values:e,parseValue:p,responsive:!0},py:{type:"enum",className:"rt-r-py",values:e,parseValue:p,responsive:!0},pt:{type:"enum",className:"rt-r-pt",values:e,parseValue:p,responsive:!0},pr:{type:"enum",className:"rt-r-pr",values:e,parseValue:p,responsive:!0},pb:{type:"enum",className:"rt-r-pb",values:e,parseValue:p,responsive:!0},pl:{type:"enum",className:"rt-r-pl",values:e,parseValue:p,responsive:!0}};function p(s){return s==="current"?"inset":s}export{o as a};
2
- //# sourceMappingURL=chunk-JAMLW534.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/inset.props.tsx"],
4
- "sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sides = ['all', 'x', 'y', 'top', 'bottom', 'left', 'right'] as const;\nconst clipValues = ['border-box', 'padding-box'] as const;\nconst paddingValues = ['current', '0'] as const;\n\nconst insetPropDefs = {\n ...asChildPropDef,\n side: {\n type: 'enum',\n className: 'rt-r-side',\n values: sides,\n default: 'all',\n responsive: true,\n },\n clip: {\n type: 'enum',\n className: 'rt-r-clip',\n values: clipValues,\n default: 'border-box',\n responsive: true,\n },\n p: {\n type: 'enum',\n className: 'rt-r-p',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n px: {\n type: 'enum',\n className: 'rt-r-px',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n py: {\n type: 'enum',\n className: 'rt-r-py',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n pt: {\n type: 'enum',\n className: 'rt-r-pt',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n pr: {\n type: 'enum',\n className: 'rt-r-pr',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n pb: {\n type: 'enum',\n className: 'rt-r-pb',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n pl: {\n type: 'enum',\n className: 'rt-r-pl',\n values: paddingValues,\n parseValue: parsePaddingValue,\n responsive: true,\n },\n} satisfies {\n side: PropDef<(typeof sides)[number]>;\n clip: PropDef<(typeof clipValues)[number]>;\n p: PropDef<(typeof paddingValues)[number]>;\n px: PropDef<(typeof paddingValues)[number]>;\n py: PropDef<(typeof paddingValues)[number]>;\n pt: PropDef<(typeof paddingValues)[number]>;\n pr: PropDef<(typeof paddingValues)[number]>;\n pb: PropDef<(typeof paddingValues)[number]>;\n pl: PropDef<(typeof paddingValues)[number]>;\n};\n\nfunction parsePaddingValue(value: string) {\n return value === 'current' ? 'inset' : value;\n}\n\nexport { insetPropDefs };\n"],
5
- "mappings": "wCAIA,IAAMA,EAAQ,CAAC,MAAO,IAAK,IAAK,MAAO,SAAU,OAAQ,OAAO,EAC1DC,EAAa,CAAC,aAAc,aAAa,EACzCC,EAAgB,CAAC,UAAW,GAAG,EAE/BC,EAAgB,CACpB,GAAGC,EACH,KAAM,CACJ,KAAM,OACN,UAAW,YACX,OAAQJ,EACR,QAAS,MACT,WAAY,EACd,EACA,KAAM,CACJ,KAAM,OACN,UAAW,YACX,OAAQC,EACR,QAAS,aACT,WAAY,EACd,EACA,EAAG,CACD,KAAM,OACN,UAAW,SACX,OAAQC,EACR,WAAYG,EACZ,WAAY,EACd,EACA,GAAI,CACF,KAAM,OACN,UAAW,UACX,OAAQH,EACR,WAAYG,EACZ,WAAY,EACd,EACA,GAAI,CACF,KAAM,OACN,UAAW,UACX,OAAQH,EACR,WAAYG,EACZ,WAAY,EACd,EACA,GAAI,CACF,KAAM,OACN,UAAW,UACX,OAAQH,EACR,WAAYG,EACZ,WAAY,EACd,EACA,GAAI,CACF,KAAM,OACN,UAAW,UACX,OAAQH,EACR,WAAYG,EACZ,WAAY,EACd,EACA,GAAI,CACF,KAAM,OACN,UAAW,UACX,OAAQH,EACR,WAAYG,EACZ,WAAY,EACd,EACA,GAAI,CACF,KAAM,OACN,UAAW,UACX,OAAQH,EACR,WAAYG,EACZ,WAAY,EACd,CACF,EAYA,SAASA,EAAkBC,EAAe,CACxC,OAAOA,IAAU,UAAY,QAAUA,CACzC",
6
- "names": ["sides", "clipValues", "paddingValues", "insetPropDefs", "asChildPropDef", "parsePaddingValue", "value"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as S}from"./chunk-MHANZINI.js";import{a as g}from"./chunk-BFLO4IVZ.js";import{a as c}from"./chunk-MJJ7XDIP.js";import{c as y}from"./chunk-6AZV4VFW.js";import{a as u}from"./chunk-O6K6RZXY.js";import{a as P}from"./chunk-MDHXSEGH.js";import{a as d}from"./chunk-UBSLEGQZ.js";import{a as O}from"./chunk-OS3FCYZY.js";var A={};O(A,{Close:()=>b,Content:()=>T,Description:()=>E,Root:()=>R,Title:()=>v,Trigger:()=>C});import*as e from"react";import z from"classnames";import{Dialog as n}from"radix-ui";var R=o=>e.createElement(n.Root,{...o,modal:!0});R.displayName="Sheet.Root";var C=e.forwardRef(({children:o,...t},i)=>e.createElement(n.Trigger,{...t,ref:i,asChild:!0},c(o)));C.displayName="Sheet.Trigger";var{align:U,...D}=P,{default:X,...j}=D.maxWidth,k={...D,maxWidth:j},T=e.forwardRef((o,t)=>{let{side:i="start",forceMount:s,container:x,className:N,...M}=o,w={left:"start",right:"end",start:"start",end:"end",top:"top",bottom:"bottom"}[i],{className:W,...H}=d(M,k),f=e.useRef(null),L=e.useMemo(()=>r=>{f.current=r,typeof t=="function"?t(r):t&&(t.current=r)},[t]);return S(),e.useEffect(()=>{if(typeof window>"u")return;let r=f.current;if(!r)return;let a=r.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(a.length===0)return;let l=a[0],m=a[a.length-1],h=p=>{p.key==="Tab"&&(p.shiftKey?document.activeElement===l&&(p.preventDefault(),m.focus()):document.activeElement===m&&(p.preventDefault(),l.focus()))};return r.addEventListener("keydown",h),l.focus(),()=>{r.removeEventListener("keydown",h)}},[]),e.createElement(n.Portal,{container:x,forceMount:s},e.createElement(y,{asChild:!0},e.createElement(n.Overlay,{className:"rt-BaseDialogOverlay rt-DialogOverlay rt-SheetOverlay"},e.createElement(n.Content,{...H,ref:L,className:z("rt-BaseDialogContent","rt-SheetContent",N,W),"data-side":w,tabIndex:-1,role:"dialog","aria-modal":"true"}))))});T.displayName="Sheet.Content";var v=e.forwardRef(({size:o="4",weight:t="medium",...i},s)=>e.createElement(n.Title,{asChild:!0},e.createElement(g,{ref:s,size:o,weight:t,...i})));v.displayName="Sheet.Title";var E=e.forwardRef(({size:o="2",emphasis:t="medium",...i},s)=>e.createElement(n.Description,{asChild:!0},e.createElement(u,{ref:s,size:o,emphasis:t,...i})));E.displayName="Sheet.Description";var b=e.forwardRef(({children:o,...t},i)=>e.createElement(n.Close,{...t,ref:i,asChild:!0},c(o)));b.displayName="Sheet.Close";export{R as a,C as b,T as c,v as d,E as e,b as f,A as g};
2
- //# sourceMappingURL=chunk-MPN33CKR.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/sheet.tsx"],
4
- "sourcesContent": ["'use client';\n\n/**\n * Sheet\n *\n * A side-placed overlay built on top of Radix Dialog. It inherits accessibility,\n * focus management, overlay behavior, and sizing scales from the base dialog, and\n * adds side placement and slide motion suited for navigation panels and drawers.\n *\n * Structure mirrors Dialog:\n * - Root, Trigger, Content, Title, Description, Close\n *\n * Notes\n * - Side: set with `side` on `Sheet.Content`. Aliases: `left` \u2192 `start`, `right` \u2192 `end`.\n * - Sizing: reuses Dialog content prop defs (width/min/max/height/size). Default Dialog\n * maxWidth clamping is removed for Sheets.\n * - A11y: provide an accessible name via `Sheet.Title` or `aria-label` on `Sheet.Content`.\n *\n * Example\n * <Sheet.Root>\n * <Sheet.Trigger>\n * <Button>Open</Button>\n * </Sheet.Trigger>\n * <Sheet.Content side=\"end\" width={{ initial: '280px', md: '360px' }}>\n * <Sheet.Title>Details</Sheet.Title>\n * ...\n * <Sheet.Close>\n * <Button>Close</Button>\n * </Sheet.Close>\n * </Sheet.Content>\n * </Sheet.Root>\n */\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { Dialog as DialogPrimitive } from 'radix-ui';\n\nimport { dialogContentPropDefs } from './dialog.props.js';\nimport type { DialogContentOwnProps } from './dialog.props.js';\nimport { Theme } from './theme.js';\nimport { Heading } from './heading.js';\nimport { Text } from './text.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { requireReactElement } from '../helpers/require-react-element.js';\nimport { useBodyPointerEventsCleanup } from '../hooks/use-body-pointer-events-cleanup.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { HeadingProps } from './heading.js';\n\n/**\n * Supported sides for the Sheet.\n * Aliases are normalized RTL-aware: `left` \u2192 `start`, `right` \u2192 `end`.\n */\ntype SheetSide = 'start' | 'end' | 'top' | 'bottom' | 'left' | 'right';\n\n/**\n * Sheet is a side-placed overlay built on the Dialog primitive.\n * It reuses Dialog's accessibility, focus, overlay, and size scales, while adding side placement and slide motion.\n */\n\n// Root\n/**\n * Props for `Sheet.Root` (Radix Dialog root with `modal` forced on).\n */\ninterface SheetRootProps extends ComponentPropsWithout<typeof DialogPrimitive.Root, 'modal'> {}\nconst Root: React.FC<SheetRootProps> = (props) => <DialogPrimitive.Root {...props} modal />;\nRoot.displayName = 'Sheet.Root';\n\n// Trigger\n/** Element type for `Sheet.Trigger`. */\ntype SheetTriggerElement = React.ElementRef<typeof DialogPrimitive.Trigger>;\n/** Props for `Sheet.Trigger` (expects a single element child). */\ninterface SheetTriggerProps\n extends ComponentPropsWithout<typeof DialogPrimitive.Trigger, RemovedProps> {}\nconst Trigger = React.forwardRef<SheetTriggerElement, SheetTriggerProps>(\n ({ children, ...props }, ref) => (\n <DialogPrimitive.Trigger {...props} ref={ref} asChild>\n {requireReactElement(children)}\n </DialogPrimitive.Trigger>\n ),\n);\nTrigger.displayName = 'Sheet.Trigger';\n\n// Content\n/** Element type for `Sheet.Content`. */\n// Reuse dialog content prop defs for size/width/height tokens.\n// Built once at module scope: `extractProps` memoises on the identity of the\n// prop def objects it is handed, so rebuilding these per render would recompile\n// them every time a sheet renders.\nconst {\n align: _alignPropDef,\n ...dialogPropDefsForSheet\n} = dialogContentPropDefs;\n\n// Override dialog's default maxWidth (600px) to avoid clamping Sheet by default\nconst { default: _mwDefault, ...maxWidthWithoutDefault } = dialogPropDefsForSheet.maxWidth;\nconst sheetPropDefs = {\n ...dialogPropDefsForSheet,\n maxWidth: maxWidthWithoutDefault,\n} as typeof dialogPropDefsForSheet;\n\ntype SheetContentElement = React.ElementRef<typeof DialogPrimitive.Content>;\ninterface SheetContentProps\n extends ComponentPropsWithout<typeof DialogPrimitive.Content, RemovedProps>,\n DialogContentOwnProps {\n /** Side where the Sheet should appear. `left`/`right` alias to `start`/`end`. */\n side?: SheetSide;\n /** Optional DOM container to portal into. Defaults to `document.body`. */\n container?: React.ComponentPropsWithoutRef<typeof DialogPrimitive.Portal>['container'];\n}\n\n/**\n * Renders the Sheet panel. Normalizes left/right to logical start/end and\n * forwards dialog sizing props. Provide an accessible name via `Sheet.Title`\n * or `aria-label`.\n */\nconst Content = React.forwardRef<SheetContentElement, SheetContentProps>(\n (allProps, forwardedRef) => {\n const {\n side = 'start',\n forceMount,\n container,\n className,\n ...restProps\n } = allProps;\n const normalizedSideMap: Record<SheetSide, 'start' | 'end' | 'top' | 'bottom'> = {\n left: 'start',\n right: 'end',\n start: 'start',\n end: 'end',\n top: 'top',\n bottom: 'bottom',\n };\n const normalizedSide = normalizedSideMap[side];\n // Size/width/height class names come from the dialog defs \u2014 see `sheetPropDefs`.\n const { className: extractedClassName, ...contentProps } = extractProps(\n restProps,\n sheetPropDefs,\n );\n\n // Dev-only a11y guard: ensure label is provided via Title or aria-label\n if (process.env.NODE_ENV !== 'production') {\n const children = (contentProps as any).children as React.ReactNode;\n const hasAriaLabel = typeof (contentProps as any)['aria-label'] === 'string';\n let hasTitle = false;\n if (children) {\n for (const child of React.Children.toArray(children)) {\n if (React.isValidElement(child) && child.type === Title) {\n hasTitle = true;\n break;\n }\n }\n }\n if (!hasTitle && !hasAriaLabel) {\n console.warn(\n 'Sheet.Content: Missing accessible name. Include Sheet.Title as a child or provide aria-label.',\n );\n }\n }\n\n // Focus management and stuck pointer-events cleanup like Dialog\n const contentRef = React.useRef<HTMLDivElement>(null);\n const combinedRef = React.useMemo(\n () => (node: HTMLDivElement | null) => {\n contentRef.current = node;\n if (typeof forwardedRef === 'function') {\n forwardedRef(node);\n } else if (forwardedRef) {\n (forwardedRef as React.MutableRefObject<HTMLDivElement | null>).current = node;\n }\n },\n [forwardedRef],\n );\n\n useBodyPointerEventsCleanup();\n\n React.useEffect(() => {\n if (typeof window === 'undefined') return;\n const content = contentRef.current;\n if (!content) return;\n\n const focusableElements = content.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\n );\n\n if (focusableElements.length === 0) return;\n\n const firstElement = focusableElements[0] as HTMLElement;\n const lastElement = focusableElements[focusableElements.length - 1] as HTMLElement;\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Tab') {\n if (event.shiftKey) {\n if (document.activeElement === firstElement) {\n event.preventDefault();\n lastElement.focus();\n }\n } else if (document.activeElement === lastElement) {\n event.preventDefault();\n firstElement.focus();\n }\n }\n };\n\n content.addEventListener('keydown', handleKeyDown);\n firstElement.focus();\n\n return () => {\n content.removeEventListener('keydown', handleKeyDown);\n };\n }, []);\n\n return (\n <DialogPrimitive.Portal container={container} forceMount={forceMount}>\n <Theme asChild>\n <DialogPrimitive.Overlay className=\"rt-BaseDialogOverlay rt-DialogOverlay rt-SheetOverlay\">\n <DialogPrimitive.Content\n {...contentProps}\n ref={combinedRef}\n className={classNames(\n 'rt-BaseDialogContent',\n 'rt-SheetContent',\n className,\n extractedClassName,\n )}\n data-side={normalizedSide}\n tabIndex={-1}\n role=\"dialog\"\n aria-modal=\"true\"\n />\n </DialogPrimitive.Overlay>\n </Theme>\n </DialogPrimitive.Portal>\n );\n },\n);\nContent.displayName = 'Sheet.Content';\n\n// Title - renders as Heading with sensible defaults\ntype SheetTitleElement = React.ElementRef<typeof Heading>;\ntype SheetTitleProps = HeadingProps;\n/** Accessible title for the Sheet. Renders as Heading with sensible defaults. */\nconst Title = React.forwardRef<SheetTitleElement, SheetTitleProps>(\n ({ size = '4', weight = 'medium', ...props }, ref) => (\n <DialogPrimitive.Title asChild>\n <Heading ref={ref} size={size} weight={weight} {...props} />\n </DialogPrimitive.Title>\n ),\n);\nTitle.displayName = 'Sheet.Title';\n\n// Description - renders as Text with sensible defaults\ntype SheetDescriptionElement = React.ElementRef<typeof Text>;\ntype SheetDescriptionProps = React.ComponentPropsWithoutRef<typeof Text>;\n/** Supplementary description text for Sheet content. Renders as Text with sensible defaults. */\nconst Description = React.forwardRef<SheetDescriptionElement, SheetDescriptionProps>(\n ({ size = '2', emphasis = 'medium', ...rest }, ref) => (\n <DialogPrimitive.Description asChild>\n <Text ref={ref} size={size} emphasis={emphasis} {...rest} />\n </DialogPrimitive.Description>\n ),\n);\nDescription.displayName = 'Sheet.Description';\n\ntype SheetCloseElement = React.ElementRef<typeof DialogPrimitive.Close>;\ninterface SheetCloseProps\n extends ComponentPropsWithout<typeof DialogPrimitive.Close, RemovedProps> {}\n/** Close button for the Sheet. Expects a single element child rendered via `asChild`. */\nconst Close = React.forwardRef<SheetCloseElement, SheetCloseProps>(\n ({ children, ...props }, ref) => (\n <DialogPrimitive.Close {...props} ref={ref} asChild>\n {requireReactElement(children)}\n </DialogPrimitive.Close>\n ),\n);\nClose.displayName = 'Sheet.Close';\n\nexport { Root, Trigger, Content, Title, Description, Close };\nexport type {\n SheetRootProps as RootProps,\n SheetTriggerProps as TriggerProps,\n SheetContentProps as ContentProps,\n SheetTitleProps as TitleProps,\n SheetDescriptionProps as DescriptionProps,\n SheetCloseProps as CloseProps,\n};\n"],
5
- "mappings": "gUAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,WAAAE,EAAA,YAAAC,EAAA,gBAAAC,EAAA,SAAAC,EAAA,UAAAC,EAAA,YAAAC,IAiCA,UAAYC,MAAW,QACvB,OAAOC,MAAgB,aACvB,OAAS,UAAUC,MAAuB,WA8B1C,IAAMC,EAAkCC,GAAU,gBAACC,EAAgB,KAAhB,CAAsB,GAAGD,EAAO,MAAK,GAAC,EACzFD,EAAK,YAAc,aAQnB,IAAMG,EAAgB,aACpB,CAAC,CAAE,SAAAC,EAAU,GAAGH,CAAM,EAAGI,IACvB,gBAACH,EAAgB,QAAhB,CAAyB,GAAGD,EAAO,IAAKI,EAAK,QAAO,IAClDC,EAAoB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oBAAoB,UAAWI,CAAa,CACtD,CACF,EAAG,CAAC,CAAC,EAGH,gBAAC/B,EAAgB,OAAhB,CAAuB,UAAWgB,EAAW,WAAYD,GACxD,gBAACkB,EAAA,CAAM,QAAO,IACZ,gBAACjC,EAAgB,QAAhB,CAAwB,UAAU,yDACjC,gBAACA,EAAgB,QAAhB,CACE,GAAGqB,EACJ,IAAKG,EACL,UAAWU,EACT,uBACA,kBACAjB,EACAG,CACF,EACA,YAAWD,EACX,SAAU,GACV,KAAK,SACL,aAAW,OACb,CACF,CACF,CACF,CAEJ,CACF,EACAR,EAAQ,YAAc,gBAMtB,IAAMwB,EAAc,aAClB,CAAC,CAAE,KAAAC,EAAO,IAAK,OAAAC,EAAS,SAAU,GAAGtC,CAAM,EAAGI,IAC5C,gBAACH,EAAgB,MAAhB,CAAsB,QAAO,IAC5B,gBAACsC,EAAA,CAAQ,IAAKnC,EAAK,KAAMiC,EAAM,OAAQC,EAAS,GAAGtC,EAAO,CAC5D,CAEJ,EACAoC,EAAM,YAAc,cAMpB,IAAMI,EAAoB,aACxB,CAAC,CAAE,KAAAH,EAAO,IAAK,SAAAI,EAAW,SAAU,GAAGC,CAAK,EAAGtC,IAC7C,gBAACH,EAAgB,YAAhB,CAA4B,QAAO,IAClC,gBAAC0C,EAAA,CAAK,IAAKvC,EAAK,KAAMiC,EAAM,SAAUI,EAAW,GAAGC,EAAM,CAC5D,CAEJ,EACAF,EAAY,YAAc,oBAM1B,IAAMI,EAAc,aAClB,CAAC,CAAE,SAAAzC,EAAU,GAAGH,CAAM,EAAGI,IACvB,gBAACH,EAAgB,MAAhB,CAAuB,GAAGD,EAAO,IAAKI,EAAK,QAAO,IAChDC,EAAoBF,CAAQ,CAC/B,CAEJ,EACAyC,EAAM,YAAc",
6
- "names": ["sheet_exports", "__export", "Close", "Content", "Description", "Root", "Title", "Trigger", "React", "classNames", "DialogPrimitive", "Root", "props", "DialogPrimitive", "Trigger", "children", "ref", "requireReactElement", "_alignPropDef", "dialogPropDefsForSheet", "dialogContentPropDefs", "_mwDefault", "maxWidthWithoutDefault", "sheetPropDefs", "Content", "allProps", "forwardedRef", "side", "forceMount", "container", "className", "restProps", "normalizedSide", "extractedClassName", "contentProps", "extractProps", "contentRef", "combinedRef", "node", "useBodyPointerEventsCleanup", "content", "focusableElements", "firstElement", "lastElement", "handleKeyDown", "event", "Theme", "classNames", "Title", "size", "weight", "Heading", "Description", "emphasis", "rest", "Text", "Close"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as l}from"./chunk-TGRRQHLQ.js";import{a as i,e as k,f as P,g as f}from"./chunk-V32EP3S7.js";import{b as h}from"./chunk-IX5HIHVI.js";import{a as b}from"./chunk-EO7WQYFO.js";import{a as d}from"./chunk-STMTXK7U.js";import{a as C}from"./chunk-UBSLEGQZ.js";import{a as x}from"./chunk-GSTOGDAJ.js";import{a as z}from"./chunk-OS3FCYZY.js";var _={};z(_,{Item:()=>y,Root:()=>v});import*as o from"react";import m from"classnames";import{Context as D}from"radix-ui/internal";var R="CheckboxCards",[S]=D.createContextScope(R,[i]),u=i(),[E,g]=S(R),v=o.forwardRef((r,s)=>{let{__scopeCheckboxCards:t,className:a,color:c,...p}=C(r,b,x),e=u(t);return o.createElement(E,{scope:t,size:r.size,variant:r.variant},o.createElement(l,{asChild:!0},o.createElement(k,{...e,"data-accent-color":c,...p,ref:s,className:m("rt-CheckboxCardsRoot",a)})))});v.displayName="CheckboxCards.Root";var y=o.forwardRef(({__scopeCheckboxCards:r,children:s,className:t,style:a,...c},p)=>{let e=g("CheckboxCardsItem",r),n=u(r),{className:G}=C({size:e?.size,variant:e?.variant||"solid"},d),I=e?.variant?`rt-variant-${e.variant}`:void 0,N=e?.size?`rt-r-size-${e.size}`:void 0;return o.createElement("label",{className:m("rt-BaseCard","rt-CheckboxCardsItem",I,N,t),style:a},s,o.createElement(P,{...n,...c,ref:p,className:m("rt-reset","rt-BaseCheckboxRoot","rt-CheckboxCardCheckbox",G)},o.createElement(f,{...n,asChild:!0,className:"rt-BaseCheckboxIndicator"},o.createElement(h,null))))});y.displayName="CheckboxCards.Item";export{v as a,y as b,_ as c};
2
- //# sourceMappingURL=chunk-NFVOEHZS.js.map