@womp/kookie-ui 0.26.1 → 0.26.3

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 (707) hide show
  1. package/components.css +50 -2
  2. package/dist/cjs/components/_internal/base-button.d.ts.map +1 -1
  3. package/dist/cjs/components/_internal/base-button.js +1 -1
  4. package/dist/cjs/components/_internal/base-button.js.map +3 -3
  5. package/dist/cjs/components/_internal/base-button.props.js +0 -1
  6. package/dist/cjs/components/_internal/base-button.props.js.map +1 -1
  7. package/dist/cjs/components/_internal/base-checkbox.props.js +0 -1
  8. package/dist/cjs/components/_internal/base-checkbox.props.js.map +1 -1
  9. package/dist/cjs/components/_internal/base-menu.props.js +0 -1
  10. package/dist/cjs/components/_internal/base-menu.props.js.map +1 -1
  11. package/dist/cjs/components/_internal/base-radio.props.js +0 -1
  12. package/dist/cjs/components/_internal/base-radio.props.js.map +1 -1
  13. package/dist/cjs/components/_internal/base-tab-list.props.js +0 -1
  14. package/dist/cjs/components/_internal/base-tab-list.props.js.map +1 -1
  15. package/dist/cjs/components/_internal/pane-band-context.d.ts +15 -0
  16. package/dist/cjs/components/_internal/pane-band-context.d.ts.map +1 -0
  17. package/dist/cjs/components/_internal/pane-band-context.js +3 -0
  18. package/dist/cjs/components/_internal/pane-band-context.js.map +7 -0
  19. package/dist/cjs/components/_internal/pane-chrome.d.ts +1 -1
  20. package/dist/cjs/components/_internal/pane-chrome.d.ts.map +1 -1
  21. package/dist/cjs/components/_internal/pane-chrome.js +1 -1
  22. package/dist/cjs/components/_internal/pane-chrome.js.map +4 -4
  23. package/dist/cjs/components/_internal/portal-theme.d.ts +9 -0
  24. package/dist/cjs/components/_internal/portal-theme.d.ts.map +1 -0
  25. package/dist/cjs/components/_internal/portal-theme.js +3 -0
  26. package/dist/cjs/components/_internal/portal-theme.js.map +7 -0
  27. package/dist/cjs/components/_internal/shell-bottom.d.ts.map +1 -1
  28. package/dist/cjs/components/_internal/shell-bottom.js +1 -1
  29. package/dist/cjs/components/_internal/shell-bottom.js.map +3 -3
  30. package/dist/cjs/components/_internal/shell-sidebar.js +1 -1
  31. package/dist/cjs/components/_internal/shell-sidebar.js.map +4 -4
  32. package/dist/cjs/components/accordion.props.js +0 -1
  33. package/dist/cjs/components/accordion.props.js.map +1 -1
  34. package/dist/cjs/components/alert-dialog.js +1 -1
  35. package/dist/cjs/components/alert-dialog.js.map +4 -4
  36. package/dist/cjs/components/alert-dialog.props.js +0 -1
  37. package/dist/cjs/components/alert-dialog.props.js.map +1 -1
  38. package/dist/cjs/components/avatar.props.js +0 -1
  39. package/dist/cjs/components/avatar.props.js.map +1 -1
  40. package/dist/cjs/components/blockquote.props.js +0 -1
  41. package/dist/cjs/components/blockquote.props.js.map +1 -1
  42. package/dist/cjs/components/box.props.js +0 -1
  43. package/dist/cjs/components/box.props.js.map +1 -1
  44. package/dist/cjs/components/button.js +1 -1
  45. package/dist/cjs/components/button.js.map +4 -4
  46. package/dist/cjs/components/button.props.js +0 -1
  47. package/dist/cjs/components/button.props.js.map +1 -1
  48. package/dist/cjs/components/card.props.js +0 -1
  49. package/dist/cjs/components/card.props.js.map +1 -1
  50. package/dist/cjs/components/chatbar.js +1 -1
  51. package/dist/cjs/components/chatbar.js.map +4 -4
  52. package/dist/cjs/components/checkbox-group.props.js +0 -1
  53. package/dist/cjs/components/checkbox-group.props.js.map +1 -1
  54. package/dist/cjs/components/checkbox.props.js +0 -1
  55. package/dist/cjs/components/checkbox.props.js.map +1 -1
  56. package/dist/cjs/components/chip.js +1 -1
  57. package/dist/cjs/components/chip.js.map +4 -4
  58. package/dist/cjs/components/chip.props.js +0 -1
  59. package/dist/cjs/components/chip.props.js.map +1 -1
  60. package/dist/cjs/components/code.props.js +0 -1
  61. package/dist/cjs/components/code.props.js.map +1 -1
  62. package/dist/cjs/components/combobox.d.ts.map +1 -1
  63. package/dist/cjs/components/combobox.js +1 -1
  64. package/dist/cjs/components/combobox.js.map +4 -4
  65. package/dist/cjs/components/combobox.props.js +0 -1
  66. package/dist/cjs/components/combobox.props.js.map +1 -1
  67. package/dist/cjs/components/context-menu.d.ts.map +1 -1
  68. package/dist/cjs/components/context-menu.js +1 -1
  69. package/dist/cjs/components/context-menu.js.map +4 -4
  70. package/dist/cjs/components/context-menu.props.js +0 -1
  71. package/dist/cjs/components/context-menu.props.js.map +1 -1
  72. package/dist/cjs/components/dialog.js +1 -1
  73. package/dist/cjs/components/dialog.js.map +4 -4
  74. package/dist/cjs/components/dialog.props.js +0 -1
  75. package/dist/cjs/components/dialog.props.js.map +1 -1
  76. package/dist/cjs/components/dropdown-menu.d.ts.map +1 -1
  77. package/dist/cjs/components/dropdown-menu.js +1 -1
  78. package/dist/cjs/components/dropdown-menu.js.map +4 -4
  79. package/dist/cjs/components/dropdown-menu.props.js +0 -1
  80. package/dist/cjs/components/dropdown-menu.props.js.map +1 -1
  81. package/dist/cjs/components/flex.props.js +0 -1
  82. package/dist/cjs/components/flex.props.js.map +1 -1
  83. package/dist/cjs/components/grid.props.js +0 -1
  84. package/dist/cjs/components/grid.props.js.map +1 -1
  85. package/dist/cjs/components/heading.props.js +0 -1
  86. package/dist/cjs/components/heading.props.js.map +1 -1
  87. package/dist/cjs/components/image.props.js +0 -1
  88. package/dist/cjs/components/image.props.js.map +1 -1
  89. package/dist/cjs/components/index.js +2 -2
  90. package/dist/cjs/components/index.js.map +4 -4
  91. package/dist/cjs/components/kbd.props.js +0 -1
  92. package/dist/cjs/components/kbd.props.js.map +1 -1
  93. package/dist/cjs/components/link.props.js +0 -1
  94. package/dist/cjs/components/link.props.js.map +1 -1
  95. package/dist/cjs/components/message-scroller.js +1 -1
  96. package/dist/cjs/components/message-scroller.js.map +4 -4
  97. package/dist/cjs/components/navbar.props.js +0 -1
  98. package/dist/cjs/components/navbar.props.js.map +1 -1
  99. package/dist/cjs/components/notice.js +1 -1
  100. package/dist/cjs/components/notice.js.map +4 -4
  101. package/dist/cjs/components/popover.d.ts.map +1 -1
  102. package/dist/cjs/components/popover.js +1 -1
  103. package/dist/cjs/components/popover.js.map +4 -4
  104. package/dist/cjs/components/popover.props.js +0 -1
  105. package/dist/cjs/components/popover.props.js.map +1 -1
  106. package/dist/cjs/components/progress.props.js +0 -1
  107. package/dist/cjs/components/progress.props.js.map +1 -1
  108. package/dist/cjs/components/radio-group.props.js +0 -1
  109. package/dist/cjs/components/radio-group.props.js.map +1 -1
  110. package/dist/cjs/components/radio.props.js +0 -1
  111. package/dist/cjs/components/radio.props.js.map +1 -1
  112. package/dist/cjs/components/scroll-area.d.ts.map +1 -1
  113. package/dist/cjs/components/scroll-area.js +1 -1
  114. package/dist/cjs/components/scroll-area.js.map +3 -3
  115. package/dist/cjs/components/scroll-area.props.js +0 -1
  116. package/dist/cjs/components/scroll-area.props.js.map +1 -1
  117. package/dist/cjs/components/segmented-control.props.js +0 -1
  118. package/dist/cjs/components/segmented-control.props.js.map +1 -1
  119. package/dist/cjs/components/select.d.ts.map +1 -1
  120. package/dist/cjs/components/select.js +1 -1
  121. package/dist/cjs/components/select.js.map +4 -4
  122. package/dist/cjs/components/select.props.js +0 -1
  123. package/dist/cjs/components/select.props.js.map +1 -1
  124. package/dist/cjs/components/separator.props.js +0 -1
  125. package/dist/cjs/components/separator.props.js.map +1 -1
  126. package/dist/cjs/components/sheet.js +1 -1
  127. package/dist/cjs/components/sheet.js.map +4 -4
  128. package/dist/cjs/components/shell.d.ts.map +1 -1
  129. package/dist/cjs/components/shell.js +1 -1
  130. package/dist/cjs/components/shell.js.map +4 -4
  131. package/dist/cjs/components/sidebar.js +1 -1
  132. package/dist/cjs/components/sidebar.js.map +4 -4
  133. package/dist/cjs/components/slider.d.ts.map +1 -1
  134. package/dist/cjs/components/slider.js +1 -1
  135. package/dist/cjs/components/slider.js.map +3 -3
  136. package/dist/cjs/components/slider.props.js +0 -1
  137. package/dist/cjs/components/slider.props.js.map +1 -1
  138. package/dist/cjs/components/spinner.d.ts.map +1 -1
  139. package/dist/cjs/components/spinner.js +1 -1
  140. package/dist/cjs/components/spinner.js.map +2 -2
  141. package/dist/cjs/components/spinner.props.js +0 -1
  142. package/dist/cjs/components/spinner.props.js.map +1 -1
  143. package/dist/cjs/components/switch.props.js +0 -1
  144. package/dist/cjs/components/switch.props.js.map +1 -1
  145. package/dist/cjs/components/table.js +1 -1
  146. package/dist/cjs/components/table.js.map +3 -3
  147. package/dist/cjs/components/table.props.js +0 -1
  148. package/dist/cjs/components/table.props.js.map +1 -1
  149. package/dist/cjs/components/tabs.props.js +0 -1
  150. package/dist/cjs/components/tabs.props.js.map +1 -1
  151. package/dist/cjs/components/text-area.d.ts.map +1 -1
  152. package/dist/cjs/components/text-area.js +1 -1
  153. package/dist/cjs/components/text-area.js.map +3 -3
  154. package/dist/cjs/components/text-area.props.js +0 -1
  155. package/dist/cjs/components/text-area.props.js.map +1 -1
  156. package/dist/cjs/components/text-field.d.ts.map +1 -1
  157. package/dist/cjs/components/text-field.js +2 -2
  158. package/dist/cjs/components/text-field.js.map +3 -3
  159. package/dist/cjs/components/text-field.props.js +0 -1
  160. package/dist/cjs/components/text-field.props.js.map +1 -1
  161. package/dist/cjs/components/text.props.js +0 -1
  162. package/dist/cjs/components/text.props.js.map +1 -1
  163. package/dist/cjs/components/theme.props.js +0 -1
  164. package/dist/cjs/components/theme.props.js.map +1 -1
  165. package/dist/cjs/components/toggle.js +1 -1
  166. package/dist/cjs/components/toggle.js.map +4 -4
  167. package/dist/cjs/components/toolbar.js +1 -1
  168. package/dist/cjs/components/toolbar.js.map +4 -4
  169. package/dist/cjs/components/toolbar.props.d.ts +3 -2
  170. package/dist/cjs/components/toolbar.props.d.ts.map +1 -1
  171. package/dist/cjs/components/toolbar.props.js +0 -1
  172. package/dist/cjs/components/toolbar.props.js.map +2 -2
  173. package/dist/cjs/components/tooltip.js +1 -1
  174. package/dist/cjs/components/tooltip.js.map +4 -4
  175. package/dist/cjs/components/tooltip.props.js +0 -1
  176. package/dist/cjs/components/tooltip.props.js.map +1 -1
  177. package/dist/cjs/hooks/use-scroll-edges.d.ts +9 -0
  178. package/dist/cjs/hooks/use-scroll-edges.d.ts.map +1 -1
  179. package/dist/cjs/hooks/use-scroll-edges.js +1 -1
  180. package/dist/cjs/hooks/use-scroll-edges.js.map +3 -3
  181. package/dist/cjs/index.js +5 -5
  182. package/dist/cjs/index.js.map +4 -4
  183. package/dist/cjs/props/index.js +1 -1
  184. package/dist/cjs/props/index.js.map +4 -4
  185. package/dist/esm/chunk-27XQ5PN5.js +3 -0
  186. package/dist/esm/chunk-27XQ5PN5.js.map +7 -0
  187. package/dist/esm/chunk-2ACVWLFA.js +3 -0
  188. package/dist/esm/chunk-2NWHEGKZ.js +3 -0
  189. package/dist/esm/chunk-2NWHEGKZ.js.map +7 -0
  190. package/dist/esm/{chunk-W4MQ6TEK.js → chunk-2R7WQPXX.js} +2 -2
  191. package/dist/esm/chunk-2R7WQPXX.js.map +7 -0
  192. package/dist/esm/{chunk-I3SRUPUP.js → chunk-2ZLMWYJ6.js} +2 -3
  193. package/dist/esm/{chunk-I3SRUPUP.js.map → chunk-2ZLMWYJ6.js.map} +1 -1
  194. package/dist/esm/chunk-324VC67W.js +3 -0
  195. package/dist/esm/chunk-324VC67W.js.map +7 -0
  196. package/dist/esm/chunk-3UIODOPE.js +3 -0
  197. package/dist/esm/chunk-3UIODOPE.js.map +7 -0
  198. package/dist/esm/chunk-3W34KH33.js +2 -0
  199. package/dist/esm/{chunk-4S5L25RO.js.map → chunk-3W34KH33.js.map} +1 -1
  200. package/dist/esm/chunk-4CIQRUYW.js +6 -0
  201. package/dist/esm/chunk-4CIQRUYW.js.map +7 -0
  202. package/dist/esm/chunk-4E5XBM5Q.js +2 -0
  203. package/dist/esm/{chunk-IE5ACUZS.js.map → chunk-4E5XBM5Q.js.map} +1 -1
  204. package/dist/esm/{chunk-QH64BDXO.js → chunk-4G3FJUER.js} +2 -2
  205. package/dist/esm/{chunk-R7THBMND.js → chunk-4KIZRO52.js} +1 -1
  206. package/dist/esm/chunk-4MNRLB57.js +3 -0
  207. package/dist/esm/chunk-4MNRLB57.js.map +7 -0
  208. package/dist/esm/chunk-5KJIPH2N.js +3 -0
  209. package/dist/esm/chunk-5KJIPH2N.js.map +7 -0
  210. package/dist/esm/chunk-5XA2N2WR.js +2 -0
  211. package/dist/esm/{chunk-R7THBMND.js.map → chunk-5XA2N2WR.js.map} +1 -1
  212. package/dist/esm/{chunk-7B3XDZXZ.js → chunk-6C6EK2B5.js} +2 -2
  213. package/dist/esm/chunk-6DWDNKLS.js +1 -0
  214. package/dist/esm/chunk-6JGF6PQH.js +3 -0
  215. package/dist/esm/{chunk-JS23YQ4M.js.map → chunk-6JGF6PQH.js.map} +4 -4
  216. package/dist/esm/{chunk-CYTPMHSJ.js → chunk-7QBNXNEN.js} +2 -2
  217. package/dist/esm/{chunk-YOSCUA6Z.js → chunk-ACMANOVD.js} +2 -2
  218. package/dist/esm/{chunk-I6SMGWS5.js → chunk-AJWCSQIE.js} +2 -3
  219. package/dist/esm/chunk-AJWCSQIE.js.map +7 -0
  220. package/dist/esm/chunk-AKXBXLCP.js +2 -0
  221. package/dist/esm/chunk-AKXBXLCP.js.map +7 -0
  222. package/dist/esm/chunk-ANQLWGFN.js +3 -0
  223. package/dist/esm/chunk-ANQLWGFN.js.map +7 -0
  224. package/dist/esm/chunk-BF4WRYUX.js +2 -0
  225. package/dist/esm/{chunk-M3NI3D6R.js.map → chunk-BF4WRYUX.js.map} +1 -1
  226. package/dist/esm/{chunk-5WTSKXAE.js → chunk-BIITGC3Z.js} +2 -3
  227. package/dist/esm/{chunk-5WTSKXAE.js.map → chunk-BIITGC3Z.js.map} +1 -1
  228. package/dist/esm/{chunk-NBVCQQSY.js → chunk-BP64M73W.js} +2 -3
  229. package/dist/esm/{chunk-NBVCQQSY.js.map → chunk-BP64M73W.js.map} +1 -1
  230. package/dist/esm/chunk-BQC2P3SN.js +3 -0
  231. package/dist/esm/chunk-BQC2P3SN.js.map +7 -0
  232. package/dist/esm/chunk-BUXK5VGR.js +3 -0
  233. package/dist/esm/chunk-BUXK5VGR.js.map +7 -0
  234. package/dist/esm/chunk-C67MM24U.js +3 -0
  235. package/dist/esm/chunk-C67MM24U.js.map +7 -0
  236. package/dist/esm/{chunk-5TJH35TF.js → chunk-CGFLZ3DC.js} +2 -2
  237. package/dist/esm/chunk-CT543Q2V.js +2 -0
  238. package/dist/esm/{chunk-YZZMQ457.js.map → chunk-CT543Q2V.js.map} +1 -1
  239. package/dist/esm/chunk-D2C2A2ZK.js +3 -0
  240. package/dist/esm/{chunk-ZPWKWESI.js.map → chunk-D2C2A2ZK.js.map} +4 -4
  241. package/dist/esm/chunk-DFGY2NZB.js +2 -0
  242. package/dist/esm/{chunk-SGJKXIWG.js.map → chunk-DFGY2NZB.js.map} +1 -1
  243. package/dist/esm/{chunk-4J7QDLKI.js → chunk-DFLWZOQO.js} +2 -3
  244. package/dist/esm/{chunk-4J7QDLKI.js.map → chunk-DFLWZOQO.js.map} +1 -1
  245. package/dist/esm/chunk-DSM5SUH3.js +3 -0
  246. package/dist/esm/{chunk-FCKJD2PW.js.map → chunk-DSM5SUH3.js.map} +4 -4
  247. package/dist/esm/chunk-E2LSWNWZ.js +3 -0
  248. package/dist/esm/{chunk-CBWERXF4.js.map → chunk-E2LSWNWZ.js.map} +4 -4
  249. package/dist/esm/{chunk-XL5OHW6Z.js → chunk-EB4AG3OL.js} +2 -2
  250. package/dist/esm/chunk-EFXHBH3A.js +2 -0
  251. package/dist/esm/{chunk-XMHNOIPB.js.map → chunk-EFXHBH3A.js.map} +1 -1
  252. package/dist/esm/{chunk-6FLLFCBU.js → chunk-ELAW7ZUG.js} +2 -2
  253. package/dist/esm/chunk-ENQV6SEA.js +3 -0
  254. package/dist/esm/{chunk-YD2D73LF.js.map → chunk-ENQV6SEA.js.map} +4 -4
  255. package/dist/esm/chunk-EPGIYTFK.js +3 -0
  256. package/dist/esm/chunk-EPGIYTFK.js.map +7 -0
  257. package/dist/esm/{chunk-WT2SYGTU.js → chunk-ETQNRMHU.js} +2 -3
  258. package/dist/esm/{chunk-WT2SYGTU.js.map → chunk-ETQNRMHU.js.map} +1 -1
  259. package/dist/esm/{chunk-PT45Q47V.js → chunk-FATCGZZE.js} +1 -1
  260. package/dist/esm/{chunk-IZIDRDQW.js → chunk-FH6RT6XH.js} +2 -3
  261. package/dist/esm/{chunk-IZIDRDQW.js.map → chunk-FH6RT6XH.js.map} +1 -1
  262. package/dist/esm/chunk-FK434VPA.js +3 -0
  263. package/dist/esm/{chunk-PCLO3ZZY.js.map → chunk-FK434VPA.js.map} +4 -4
  264. package/dist/esm/chunk-FNAE6HUI.js +2 -0
  265. package/dist/esm/chunk-FNAE6HUI.js.map +7 -0
  266. package/dist/esm/chunk-FYTLUDL3.js +3 -0
  267. package/dist/esm/{chunk-37GC4A2O.js.map → chunk-FYTLUDL3.js.map} +4 -4
  268. package/dist/esm/chunk-GMWCTK5G.js +3 -0
  269. package/dist/esm/chunk-GMWCTK5G.js.map +7 -0
  270. package/dist/esm/chunk-H3IAGAEL.js +2 -0
  271. package/dist/esm/{chunk-WCGQ4IDE.js.map → chunk-H3IAGAEL.js.map} +1 -1
  272. package/dist/esm/{chunk-PT4KBXXP.js → chunk-HCBR74BW.js} +2 -3
  273. package/dist/esm/{chunk-PT4KBXXP.js.map → chunk-HCBR74BW.js.map} +1 -1
  274. package/dist/esm/{chunk-TGUWRU7N.js → chunk-HIEGLLY7.js} +1 -2
  275. package/dist/esm/{chunk-TGUWRU7N.js.map → chunk-HIEGLLY7.js.map} +1 -1
  276. package/dist/esm/chunk-HLIOHDEX.js +3 -0
  277. package/dist/esm/chunk-HLIOHDEX.js.map +7 -0
  278. package/dist/esm/chunk-HSWMHW37.js +2 -0
  279. package/dist/esm/{chunk-SV3CYQY5.js.map → chunk-HSWMHW37.js.map} +1 -1
  280. package/dist/esm/chunk-IDEDEPBM.js +3 -0
  281. package/dist/esm/chunk-IDEDEPBM.js.map +7 -0
  282. package/dist/esm/{chunk-CV7QQTI3.js → chunk-ISCZ57VL.js} +2 -2
  283. package/dist/esm/chunk-JD4KR6VZ.js +3 -0
  284. package/dist/esm/chunk-JP36JSNP.js +3 -0
  285. package/dist/esm/chunk-JP36JSNP.js.map +7 -0
  286. package/dist/esm/{chunk-IZXML75Y.js → chunk-JQVW4WNN.js} +2 -2
  287. package/dist/esm/{chunk-Z563IAE3.js → chunk-KLYI5E6F.js} +2 -2
  288. package/dist/esm/chunk-KVOWI6SN.js +2 -0
  289. package/dist/esm/{chunk-HV7USGHD.js.map → chunk-KVOWI6SN.js.map} +1 -1
  290. package/dist/esm/{chunk-WZKSLTBH.js → chunk-KVVRFWGQ.js} +2 -2
  291. package/dist/esm/{chunk-VVBSYWUA.js → chunk-LTUW36HM.js} +2 -2
  292. package/dist/esm/{chunk-QQY4WFJL.js → chunk-LUNWI377.js} +2 -3
  293. package/dist/esm/{chunk-QQY4WFJL.js.map → chunk-LUNWI377.js.map} +1 -1
  294. package/dist/esm/chunk-MCHK36NI.js +3 -0
  295. package/dist/esm/chunk-MCHK36NI.js.map +7 -0
  296. package/dist/esm/chunk-MGWGD6KI.js +3 -0
  297. package/dist/esm/chunk-MGWGD6KI.js.map +7 -0
  298. package/dist/esm/chunk-MPCCYR7L.js +3 -0
  299. package/dist/esm/chunk-MPCCYR7L.js.map +7 -0
  300. package/dist/esm/{chunk-PZ6Z7WTR.js → chunk-NNE3KNH4.js} +2 -3
  301. package/dist/esm/{chunk-PZ6Z7WTR.js.map → chunk-NNE3KNH4.js.map} +1 -1
  302. package/dist/esm/{chunk-CKJXTEVO.js → chunk-NR5FQCMU.js} +2 -3
  303. package/dist/esm/{chunk-CKJXTEVO.js.map → chunk-NR5FQCMU.js.map} +1 -1
  304. package/dist/esm/chunk-NWXODCTD.js +3 -0
  305. package/dist/esm/{chunk-BXZSJKWA.js.map → chunk-NWXODCTD.js.map} +4 -4
  306. package/dist/esm/chunk-OA7C34MJ.js +1 -0
  307. package/dist/esm/{chunk-65KD6WS6.js → chunk-OEPVYHSS.js} +2 -3
  308. package/dist/esm/{chunk-65KD6WS6.js.map → chunk-OEPVYHSS.js.map} +1 -1
  309. package/dist/esm/chunk-OLTRWCQK.js +3 -0
  310. package/dist/esm/chunk-OLTRWCQK.js.map +7 -0
  311. package/dist/esm/chunk-OLWUS7PC.js +3 -0
  312. package/dist/esm/chunk-OLWUS7PC.js.map +7 -0
  313. package/dist/esm/{chunk-647DRBXQ.js → chunk-OSSNMF5U.js} +2 -3
  314. package/dist/esm/{chunk-647DRBXQ.js.map → chunk-OSSNMF5U.js.map} +1 -1
  315. package/dist/esm/chunk-OUOP6Q3Z.js +3 -0
  316. package/dist/esm/chunk-OUOP6Q3Z.js.map +7 -0
  317. package/dist/esm/{chunk-TDT2CNES.js → chunk-P6UX6FFY.js} +2 -2
  318. package/dist/esm/{chunk-JUY7CBSL.js → chunk-PBFSBHBS.js} +2 -2
  319. package/dist/esm/chunk-PEMFIU3B.js +2 -0
  320. package/dist/esm/{chunk-BOLSK63X.js.map → chunk-PEMFIU3B.js.map} +1 -1
  321. package/dist/esm/{chunk-3B25RLWX.js → chunk-Q2TLWILH.js} +2 -2
  322. package/dist/esm/chunk-Q5SANVIW.js +3 -0
  323. package/dist/esm/chunk-Q5SANVIW.js.map +7 -0
  324. package/dist/esm/chunk-QPRUTOLI.js +3 -0
  325. package/dist/esm/chunk-QPRUTOLI.js.map +7 -0
  326. package/dist/esm/chunk-QRV32INS.js +3 -0
  327. package/dist/esm/chunk-QRV32INS.js.map +7 -0
  328. package/dist/esm/chunk-R7YHDIFM.js +3 -0
  329. package/dist/esm/chunk-R7YHDIFM.js.map +7 -0
  330. package/dist/esm/{chunk-EY6TCYGG.js → chunk-RAVZ7F5L.js} +2 -3
  331. package/dist/esm/{chunk-EY6TCYGG.js.map → chunk-RAVZ7F5L.js.map} +1 -1
  332. package/dist/esm/chunk-RP5ORPPH.js +3 -0
  333. package/dist/esm/{chunk-BVFHJP5E.js.map → chunk-RP5ORPPH.js.map} +4 -4
  334. package/dist/esm/chunk-SKOYHBIE.js +2 -0
  335. package/dist/esm/{chunk-5RFDCAKC.js.map → chunk-SKOYHBIE.js.map} +1 -1
  336. package/dist/esm/chunk-STPMPY3X.js +1 -0
  337. package/dist/esm/chunk-T2DZDW5Y.js +3 -0
  338. package/dist/esm/chunk-T2DZDW5Y.js.map +7 -0
  339. package/dist/esm/chunk-TZTUPQYK.js +2 -0
  340. package/dist/esm/{chunk-XVDT6DQZ.js.map → chunk-TZTUPQYK.js.map} +1 -1
  341. package/dist/esm/chunk-UICSVJ3B.js +1 -0
  342. package/dist/esm/chunk-UJ7JERJ5.js +3 -0
  343. package/dist/esm/chunk-UJ7JERJ5.js.map +7 -0
  344. package/dist/esm/{chunk-6RJQ5LLP.js → chunk-UMR4AF35.js} +2 -2
  345. package/dist/esm/chunk-UMYPLUG3.js +2 -0
  346. package/dist/esm/chunk-UMYPLUG3.js.map +7 -0
  347. package/dist/esm/chunk-UONSKZQT.js +2 -0
  348. package/dist/esm/{chunk-M37GE2TE.js.map → chunk-UONSKZQT.js.map} +1 -1
  349. package/dist/esm/{chunk-CAAEEHGQ.js → chunk-UUXZ4W6H.js} +2 -3
  350. package/dist/esm/{chunk-CAAEEHGQ.js.map → chunk-UUXZ4W6H.js.map} +1 -1
  351. package/dist/esm/chunk-VCV7RACK.js +2 -0
  352. package/dist/esm/chunk-VCV7RACK.js.map +7 -0
  353. package/dist/esm/chunk-VPP5IDW7.js +3 -0
  354. package/dist/esm/chunk-VPP5IDW7.js.map +7 -0
  355. package/dist/esm/{chunk-L4NF3Q2T.js → chunk-VW46DG7H.js} +2 -3
  356. package/dist/esm/{chunk-L4NF3Q2T.js.map → chunk-VW46DG7H.js.map} +1 -1
  357. package/dist/esm/chunk-W3ES2XSB.js +3 -0
  358. package/dist/esm/chunk-W3ES2XSB.js.map +7 -0
  359. package/dist/esm/chunk-W4Z6ORYO.js +3 -0
  360. package/dist/esm/{chunk-MQEWEAH5.js.map → chunk-W4Z6ORYO.js.map} +4 -4
  361. package/dist/esm/chunk-WD66RYF6.js +3 -0
  362. package/dist/esm/chunk-WD66RYF6.js.map +7 -0
  363. package/dist/esm/chunk-WOR3JCLX.js +1 -0
  364. package/dist/esm/chunk-WOR3JCLX.js.map +7 -0
  365. package/dist/esm/{chunk-HHSFAOIO.js → chunk-WYKNBNM5.js} +2 -2
  366. package/dist/esm/chunk-WYKNBNM5.js.map +7 -0
  367. package/dist/esm/chunk-X7JHZ3HA.js +3 -0
  368. package/dist/esm/{chunk-OQWD63AI.js.map → chunk-X7JHZ3HA.js.map} +4 -4
  369. package/dist/esm/chunk-XD3C3GVF.js +3 -0
  370. package/dist/esm/chunk-XD3C3GVF.js.map +7 -0
  371. package/dist/esm/{chunk-FI32HA4X.js → chunk-XDVTHL3S.js} +2 -3
  372. package/dist/esm/{chunk-FI32HA4X.js.map → chunk-XDVTHL3S.js.map} +1 -1
  373. package/dist/esm/chunk-XGES2VBG.js +3 -0
  374. package/dist/esm/chunk-XGES2VBG.js.map +7 -0
  375. package/dist/esm/{chunk-64EFWPHI.js → chunk-YCLPURTD.js} +1 -1
  376. package/dist/esm/chunk-YHQTFDGN.js +2 -0
  377. package/dist/esm/{chunk-PHWT772P.js.map → chunk-YHQTFDGN.js.map} +1 -1
  378. package/dist/esm/{chunk-AQ7VUGQQ.js → chunk-YMUERC2J.js} +2 -2
  379. package/dist/esm/chunk-YOZXIUZY.js +3 -0
  380. package/dist/esm/{chunk-N3QLHFHB.js.map → chunk-YOZXIUZY.js.map} +4 -4
  381. package/dist/esm/{chunk-R4PGFURL.js → chunk-Z5W4ACO2.js} +2 -2
  382. package/dist/esm/chunk-ZG2XQUOH.js +3 -0
  383. package/dist/esm/chunk-ZIAA2C4H.js +3 -0
  384. package/dist/esm/{chunk-5EBJOOXE.js.map → chunk-ZIAA2C4H.js.map} +4 -4
  385. package/dist/esm/components/_internal/base-button.d.ts.map +1 -1
  386. package/dist/esm/components/_internal/base-button.js +1 -1
  387. package/dist/esm/components/_internal/base-button.props.js +1 -2
  388. package/dist/esm/components/_internal/base-checkbox.props.js +1 -2
  389. package/dist/esm/components/_internal/base-menu.props.js +1 -2
  390. package/dist/esm/components/_internal/base-menu.utils.js +1 -1
  391. package/dist/esm/components/_internal/base-radio.props.js +1 -2
  392. package/dist/esm/components/_internal/base-tab-list.props.js +1 -2
  393. package/dist/esm/components/_internal/menu-context.js +1 -1
  394. package/dist/esm/components/_internal/pane-band-context.d.ts +15 -0
  395. package/dist/esm/components/_internal/pane-band-context.d.ts.map +1 -0
  396. package/dist/esm/components/_internal/pane-band-context.js +3 -0
  397. package/dist/esm/components/_internal/pane-band-context.js.map +7 -0
  398. package/dist/esm/components/_internal/pane-chrome.d.ts +1 -1
  399. package/dist/esm/components/_internal/pane-chrome.d.ts.map +1 -1
  400. package/dist/esm/components/_internal/pane-chrome.js +1 -1
  401. package/dist/esm/components/_internal/portal-theme.d.ts +9 -0
  402. package/dist/esm/components/_internal/portal-theme.d.ts.map +1 -0
  403. package/dist/esm/components/_internal/portal-theme.js +3 -0
  404. package/dist/esm/components/_internal/portal-theme.js.map +7 -0
  405. package/dist/esm/components/_internal/shell-bottom.d.ts.map +1 -1
  406. package/dist/esm/components/_internal/shell-bottom.js +1 -1
  407. package/dist/esm/components/_internal/shell-inspector.js +1 -1
  408. package/dist/esm/components/_internal/shell-pane.js +1 -1
  409. package/dist/esm/components/_internal/shell-sidebar.js +1 -1
  410. package/dist/esm/components/accordion.js +1 -1
  411. package/dist/esm/components/accordion.props.js +1 -2
  412. package/dist/esm/components/accordion.props.js.map +4 -4
  413. package/dist/esm/components/alert-dialog.js +1 -1
  414. package/dist/esm/components/alert-dialog.props.js +1 -2
  415. package/dist/esm/components/avatar.js +1 -1
  416. package/dist/esm/components/avatar.props.js +1 -2
  417. package/dist/esm/components/blockquote.js +1 -1
  418. package/dist/esm/components/blockquote.props.js +1 -2
  419. package/dist/esm/components/box.js +1 -1
  420. package/dist/esm/components/box.props.js +1 -2
  421. package/dist/esm/components/button.js +1 -1
  422. package/dist/esm/components/button.props.js +1 -2
  423. package/dist/esm/components/card.js +1 -1
  424. package/dist/esm/components/card.props.js +1 -2
  425. package/dist/esm/components/chatbar.js +1 -1
  426. package/dist/esm/components/checkbox-group.js +1 -1
  427. package/dist/esm/components/checkbox-group.props.js +1 -2
  428. package/dist/esm/components/checkbox.js +1 -1
  429. package/dist/esm/components/checkbox.props.js +1 -2
  430. package/dist/esm/components/chip.js +1 -1
  431. package/dist/esm/components/chip.props.js +1 -2
  432. package/dist/esm/components/code.js +1 -1
  433. package/dist/esm/components/code.props.js +1 -2
  434. package/dist/esm/components/combobox.d.ts.map +1 -1
  435. package/dist/esm/components/combobox.js +1 -1
  436. package/dist/esm/components/combobox.props.js +1 -2
  437. package/dist/esm/components/combobox.props.js.map +4 -4
  438. package/dist/esm/components/context-menu.d.ts.map +1 -1
  439. package/dist/esm/components/context-menu.js +1 -1
  440. package/dist/esm/components/context-menu.props.js +1 -2
  441. package/dist/esm/components/dialog.js +1 -1
  442. package/dist/esm/components/dialog.props.js +1 -2
  443. package/dist/esm/components/dropdown-menu.d.ts.map +1 -1
  444. package/dist/esm/components/dropdown-menu.js +1 -1
  445. package/dist/esm/components/dropdown-menu.props.js +1 -2
  446. package/dist/esm/components/flex.js +1 -1
  447. package/dist/esm/components/flex.props.js +1 -2
  448. package/dist/esm/components/grid.js +1 -1
  449. package/dist/esm/components/grid.props.js +1 -2
  450. package/dist/esm/components/heading.js +1 -1
  451. package/dist/esm/components/heading.props.js +1 -2
  452. package/dist/esm/components/image.js +1 -1
  453. package/dist/esm/components/image.props.js +1 -2
  454. package/dist/esm/components/image.props.js.map +4 -4
  455. package/dist/esm/components/index.js +1 -1
  456. package/dist/esm/components/kbd.js +1 -1
  457. package/dist/esm/components/kbd.props.js +1 -2
  458. package/dist/esm/components/link.js +1 -1
  459. package/dist/esm/components/link.props.js +1 -2
  460. package/dist/esm/components/message-scroller.js +1 -1
  461. package/dist/esm/components/navbar.js +1 -1
  462. package/dist/esm/components/navbar.props.js +1 -2
  463. package/dist/esm/components/navbar.props.js.map +4 -4
  464. package/dist/esm/components/notice.js +1 -1
  465. package/dist/esm/components/popover.d.ts.map +1 -1
  466. package/dist/esm/components/popover.js +1 -1
  467. package/dist/esm/components/popover.props.js +1 -2
  468. package/dist/esm/components/progress.js +1 -1
  469. package/dist/esm/components/progress.props.js +1 -2
  470. package/dist/esm/components/radio-group.js +1 -1
  471. package/dist/esm/components/radio-group.props.js +1 -2
  472. package/dist/esm/components/radio.js +1 -1
  473. package/dist/esm/components/radio.props.js +1 -2
  474. package/dist/esm/components/scroll-area.d.ts.map +1 -1
  475. package/dist/esm/components/scroll-area.js +1 -1
  476. package/dist/esm/components/scroll-area.props.js +1 -2
  477. package/dist/esm/components/segmented-control.js +1 -1
  478. package/dist/esm/components/segmented-control.props.js +1 -2
  479. package/dist/esm/components/select.d.ts.map +1 -1
  480. package/dist/esm/components/select.js +1 -1
  481. package/dist/esm/components/select.props.js +1 -2
  482. package/dist/esm/components/separator.js +1 -1
  483. package/dist/esm/components/separator.props.js +1 -2
  484. package/dist/esm/components/sheet.js +1 -1
  485. package/dist/esm/components/shell.context.js +1 -1
  486. package/dist/esm/components/shell.d.ts.map +1 -1
  487. package/dist/esm/components/shell.hooks.js +1 -1
  488. package/dist/esm/components/shell.js +1 -1
  489. package/dist/esm/components/sidebar.js +1 -1
  490. package/dist/esm/components/slider.d.ts.map +1 -1
  491. package/dist/esm/components/slider.js +1 -1
  492. package/dist/esm/components/slider.props.js +1 -2
  493. package/dist/esm/components/spinner.d.ts.map +1 -1
  494. package/dist/esm/components/spinner.js +1 -1
  495. package/dist/esm/components/spinner.props.js +1 -2
  496. package/dist/esm/components/switch.js +1 -1
  497. package/dist/esm/components/switch.props.js +1 -2
  498. package/dist/esm/components/table.js +1 -1
  499. package/dist/esm/components/table.props.js +1 -2
  500. package/dist/esm/components/tabs.js +1 -1
  501. package/dist/esm/components/tabs.props.js +1 -2
  502. package/dist/esm/components/text-area.d.ts.map +1 -1
  503. package/dist/esm/components/text-area.js +1 -1
  504. package/dist/esm/components/text-area.props.js +1 -2
  505. package/dist/esm/components/text-field.d.ts.map +1 -1
  506. package/dist/esm/components/text-field.js +1 -1
  507. package/dist/esm/components/text-field.props.js +1 -2
  508. package/dist/esm/components/text.js +1 -1
  509. package/dist/esm/components/text.props.js +1 -2
  510. package/dist/esm/components/theme.js +1 -1
  511. package/dist/esm/components/theme.props.js +1 -2
  512. package/dist/esm/components/toggle.js +1 -1
  513. package/dist/esm/components/toolbar.js +1 -1
  514. package/dist/esm/components/toolbar.props.d.ts +3 -2
  515. package/dist/esm/components/toolbar.props.d.ts.map +1 -1
  516. package/dist/esm/components/toolbar.props.js +1 -2
  517. package/dist/esm/components/toolbar.props.js.map +4 -4
  518. package/dist/esm/components/tooltip.js +1 -1
  519. package/dist/esm/components/tooltip.props.js +1 -2
  520. package/dist/esm/components/virtual-menu.js +1 -1
  521. package/dist/esm/helpers/extract-props.js +1 -1
  522. package/dist/esm/helpers/get-margin-styles.js +1 -1
  523. package/dist/esm/helpers/get-responsive-styles.js +1 -1
  524. package/dist/esm/helpers/index.js +1 -1
  525. package/dist/esm/hooks/index.js +1 -1
  526. package/dist/esm/hooks/use-scroll-edges.d.ts +9 -0
  527. package/dist/esm/hooks/use-scroll-edges.d.ts.map +1 -1
  528. package/dist/esm/hooks/use-scroll-edges.js +1 -1
  529. package/dist/esm/index.js +1 -1
  530. package/dist/esm/props/font-family.prop.js +1 -1
  531. package/dist/esm/props/font-family.prop.js.map +4 -4
  532. package/dist/esm/props/index.js +1 -1
  533. package/dist/esm/props/index.js.map +3 -3
  534. package/dist/esm/props/layout.props.js +1 -1
  535. package/package.json +1 -1
  536. package/src/components/_internal/base-button.tsx +8 -2
  537. package/src/components/_internal/pane-band-context.ts +17 -0
  538. package/src/components/_internal/pane-chrome.tsx +1 -8
  539. package/src/components/_internal/portal-theme.tsx +18 -0
  540. package/src/components/_internal/shell-bottom.tsx +4 -1
  541. package/src/components/alert-dialog.tsx +3 -3
  542. package/src/components/combobox.tsx +4 -3
  543. package/src/components/context-menu.tsx +6 -5
  544. package/src/components/dialog.tsx +3 -3
  545. package/src/components/dropdown-menu.tsx +6 -5
  546. package/src/components/popover.tsx +10 -64
  547. package/src/components/scroll-area.tsx +3 -2
  548. package/src/components/select.css +1 -1
  549. package/src/components/select.tsx +4 -3
  550. package/src/components/sheet.tsx +3 -3
  551. package/src/components/shell.css +11 -3
  552. package/src/components/shell.tsx +8 -1
  553. package/src/components/slider.tsx +19 -1
  554. package/src/components/spinner.css +16 -1
  555. package/src/components/spinner.tsx +14 -13
  556. package/src/components/text-area.css +19 -2
  557. package/src/components/text-area.tsx +34 -24
  558. package/src/components/text-field.css +14 -2
  559. package/src/components/text-field.tsx +44 -26
  560. package/src/components/toolbar.props.tsx +3 -2
  561. package/src/components/tooltip.tsx +3 -3
  562. package/src/hooks/use-scroll-edges.ts +16 -2
  563. package/src/styles/tokens/color.css +6 -5
  564. package/src/styles/tokens/shadow.css +2 -2
  565. package/styles.css +51 -4
  566. package/tokens/base.css +1 -2
  567. package/tokens.css +1 -2
  568. package/dist/esm/chunk-2IU5XPR2.js +0 -3
  569. package/dist/esm/chunk-2IU5XPR2.js.map +0 -7
  570. package/dist/esm/chunk-37GC4A2O.js +0 -3
  571. package/dist/esm/chunk-3H23GRNQ.js +0 -3
  572. package/dist/esm/chunk-3H23GRNQ.js.map +0 -7
  573. package/dist/esm/chunk-3L2MDOYC.js +0 -3
  574. package/dist/esm/chunk-3L2MDOYC.js.map +0 -7
  575. package/dist/esm/chunk-4S5L25RO.js +0 -3
  576. package/dist/esm/chunk-5CFSNNYS.js +0 -3
  577. package/dist/esm/chunk-5CFSNNYS.js.map +0 -7
  578. package/dist/esm/chunk-5EBJOOXE.js +0 -3
  579. package/dist/esm/chunk-5EP3UTM7.js +0 -3
  580. package/dist/esm/chunk-5EP3UTM7.js.map +0 -7
  581. package/dist/esm/chunk-5L4DZ2D3.js +0 -3
  582. package/dist/esm/chunk-5L4DZ2D3.js.map +0 -7
  583. package/dist/esm/chunk-5RFDCAKC.js +0 -3
  584. package/dist/esm/chunk-5XR5PTDR.js +0 -3
  585. package/dist/esm/chunk-5XR5PTDR.js.map +0 -7
  586. package/dist/esm/chunk-63MUJFVF.js +0 -3
  587. package/dist/esm/chunk-63MUJFVF.js.map +0 -7
  588. package/dist/esm/chunk-6AMWYEM7.js +0 -3
  589. package/dist/esm/chunk-6AMWYEM7.js.map +0 -7
  590. package/dist/esm/chunk-6BB2A6VU.js +0 -3
  591. package/dist/esm/chunk-6UZT3ZLO.js +0 -3
  592. package/dist/esm/chunk-6UZT3ZLO.js.map +0 -7
  593. package/dist/esm/chunk-7ROKZHH2.js +0 -3
  594. package/dist/esm/chunk-7ROKZHH2.js.map +0 -7
  595. package/dist/esm/chunk-7X7VWR3F.js +0 -3
  596. package/dist/esm/chunk-7X7VWR3F.js.map +0 -7
  597. package/dist/esm/chunk-7XHE6TOA.js +0 -6
  598. package/dist/esm/chunk-7XHE6TOA.js.map +0 -7
  599. package/dist/esm/chunk-A2OMWZI7.js +0 -2
  600. package/dist/esm/chunk-BOLSK63X.js +0 -3
  601. package/dist/esm/chunk-BVFHJP5E.js +0 -3
  602. package/dist/esm/chunk-BXZSJKWA.js +0 -3
  603. package/dist/esm/chunk-CBWERXF4.js +0 -3
  604. package/dist/esm/chunk-CQG4U5BR.js +0 -3
  605. package/dist/esm/chunk-CQG4U5BR.js.map +0 -7
  606. package/dist/esm/chunk-D4P7332M.js +0 -3
  607. package/dist/esm/chunk-D4P7332M.js.map +0 -7
  608. package/dist/esm/chunk-DVXDFCCV.js +0 -3
  609. package/dist/esm/chunk-DVXDFCCV.js.map +0 -7
  610. package/dist/esm/chunk-EAIQIW23.js +0 -3
  611. package/dist/esm/chunk-EAIQIW23.js.map +0 -7
  612. package/dist/esm/chunk-FCKJD2PW.js +0 -3
  613. package/dist/esm/chunk-FPGBCCML.js +0 -3
  614. package/dist/esm/chunk-FPGBCCML.js.map +0 -7
  615. package/dist/esm/chunk-GNPTPIL7.js +0 -3
  616. package/dist/esm/chunk-GNPTPIL7.js.map +0 -7
  617. package/dist/esm/chunk-HHSFAOIO.js.map +0 -7
  618. package/dist/esm/chunk-HV7USGHD.js +0 -3
  619. package/dist/esm/chunk-IE5ACUZS.js +0 -3
  620. package/dist/esm/chunk-ILWS2JUE.js +0 -3
  621. package/dist/esm/chunk-ILWS2JUE.js.map +0 -7
  622. package/dist/esm/chunk-IO43RGNR.js +0 -3
  623. package/dist/esm/chunk-IO43RGNR.js.map +0 -7
  624. package/dist/esm/chunk-J3QIUJ6F.js +0 -2
  625. package/dist/esm/chunk-JS23YQ4M.js +0 -3
  626. package/dist/esm/chunk-JZ5Z53MN.js +0 -2
  627. package/dist/esm/chunk-KRFXTPEW.js +0 -3
  628. package/dist/esm/chunk-KRFXTPEW.js.map +0 -7
  629. package/dist/esm/chunk-KSYHZCLD.js +0 -3
  630. package/dist/esm/chunk-KSYHZCLD.js.map +0 -7
  631. package/dist/esm/chunk-M37GE2TE.js +0 -3
  632. package/dist/esm/chunk-M3NI3D6R.js +0 -3
  633. package/dist/esm/chunk-MQEWEAH5.js +0 -3
  634. package/dist/esm/chunk-MXIVYALY.js +0 -3
  635. package/dist/esm/chunk-MXIVYALY.js.map +0 -7
  636. package/dist/esm/chunk-N3QLHFHB.js +0 -3
  637. package/dist/esm/chunk-NZCAGHCL.js +0 -3
  638. package/dist/esm/chunk-OQWD63AI.js +0 -3
  639. package/dist/esm/chunk-PCLO3ZZY.js +0 -3
  640. package/dist/esm/chunk-PHWT772P.js +0 -3
  641. package/dist/esm/chunk-PZCQDZVJ.js +0 -3
  642. package/dist/esm/chunk-PZCQDZVJ.js.map +0 -7
  643. package/dist/esm/chunk-RVPLXLRA.js +0 -3
  644. package/dist/esm/chunk-RVPLXLRA.js.map +0 -7
  645. package/dist/esm/chunk-SGJKXIWG.js +0 -3
  646. package/dist/esm/chunk-SHLERRO3.js +0 -3
  647. package/dist/esm/chunk-SHLERRO3.js.map +0 -7
  648. package/dist/esm/chunk-SV3CYQY5.js +0 -3
  649. package/dist/esm/chunk-U5GQ3IFS.js +0 -3
  650. package/dist/esm/chunk-U5GQ3IFS.js.map +0 -7
  651. package/dist/esm/chunk-VPRAXHLL.js +0 -3
  652. package/dist/esm/chunk-VPRAXHLL.js.map +0 -7
  653. package/dist/esm/chunk-VRQEWMC6.js +0 -3
  654. package/dist/esm/chunk-VRQEWMC6.js.map +0 -7
  655. package/dist/esm/chunk-W4MQ6TEK.js.map +0 -7
  656. package/dist/esm/chunk-WCGQ4IDE.js +0 -3
  657. package/dist/esm/chunk-WH7PQSSG.js +0 -2
  658. package/dist/esm/chunk-WJ4H2O2G.js +0 -3
  659. package/dist/esm/chunk-WJ4H2O2G.js.map +0 -7
  660. package/dist/esm/chunk-WMODMXEU.js +0 -3
  661. package/dist/esm/chunk-WMODMXEU.js.map +0 -7
  662. package/dist/esm/chunk-WMZLMZHB.js +0 -3
  663. package/dist/esm/chunk-WMZLMZHB.js.map +0 -7
  664. package/dist/esm/chunk-XH2CRCXR.js +0 -3
  665. package/dist/esm/chunk-XH2CRCXR.js.map +0 -7
  666. package/dist/esm/chunk-XMHNOIPB.js +0 -3
  667. package/dist/esm/chunk-XVDT6DQZ.js +0 -3
  668. package/dist/esm/chunk-Y2BTPKK6.js +0 -3
  669. package/dist/esm/chunk-Y2BTPKK6.js.map +0 -7
  670. package/dist/esm/chunk-YD2D73LF.js +0 -3
  671. package/dist/esm/chunk-YDBFIJHB.js +0 -3
  672. package/dist/esm/chunk-YDBFIJHB.js.map +0 -7
  673. package/dist/esm/chunk-YWG476GC.js +0 -3
  674. package/dist/esm/chunk-YZZMQ457.js +0 -3
  675. package/dist/esm/chunk-Z27REN6T.js +0 -3
  676. package/dist/esm/chunk-Z27REN6T.js.map +0 -7
  677. package/dist/esm/chunk-ZPWKWESI.js +0 -3
  678. package/dist/esm/chunk-ZYKJTNAT.js +0 -3
  679. package/dist/esm/chunk-ZYKJTNAT.js.map +0 -7
  680. /package/dist/esm/{chunk-I6SMGWS5.js.map → chunk-2ACVWLFA.js.map} +0 -0
  681. /package/dist/esm/{chunk-QH64BDXO.js.map → chunk-4G3FJUER.js.map} +0 -0
  682. /package/dist/esm/{chunk-6BB2A6VU.js.map → chunk-4KIZRO52.js.map} +0 -0
  683. /package/dist/esm/{chunk-7B3XDZXZ.js.map → chunk-6C6EK2B5.js.map} +0 -0
  684. /package/dist/esm/{chunk-A2OMWZI7.js.map → chunk-6DWDNKLS.js.map} +0 -0
  685. /package/dist/esm/{chunk-CYTPMHSJ.js.map → chunk-7QBNXNEN.js.map} +0 -0
  686. /package/dist/esm/{chunk-YOSCUA6Z.js.map → chunk-ACMANOVD.js.map} +0 -0
  687. /package/dist/esm/{chunk-5TJH35TF.js.map → chunk-CGFLZ3DC.js.map} +0 -0
  688. /package/dist/esm/{chunk-XL5OHW6Z.js.map → chunk-EB4AG3OL.js.map} +0 -0
  689. /package/dist/esm/{chunk-6FLLFCBU.js.map → chunk-ELAW7ZUG.js.map} +0 -0
  690. /package/dist/esm/{chunk-PT45Q47V.js.map → chunk-FATCGZZE.js.map} +0 -0
  691. /package/dist/esm/{chunk-CV7QQTI3.js.map → chunk-ISCZ57VL.js.map} +0 -0
  692. /package/dist/esm/{chunk-NZCAGHCL.js.map → chunk-JD4KR6VZ.js.map} +0 -0
  693. /package/dist/esm/{chunk-IZXML75Y.js.map → chunk-JQVW4WNN.js.map} +0 -0
  694. /package/dist/esm/{chunk-Z563IAE3.js.map → chunk-KLYI5E6F.js.map} +0 -0
  695. /package/dist/esm/{chunk-WZKSLTBH.js.map → chunk-KVVRFWGQ.js.map} +0 -0
  696. /package/dist/esm/{chunk-VVBSYWUA.js.map → chunk-LTUW36HM.js.map} +0 -0
  697. /package/dist/esm/{chunk-J3QIUJ6F.js.map → chunk-OA7C34MJ.js.map} +0 -0
  698. /package/dist/esm/{chunk-TDT2CNES.js.map → chunk-P6UX6FFY.js.map} +0 -0
  699. /package/dist/esm/{chunk-JUY7CBSL.js.map → chunk-PBFSBHBS.js.map} +0 -0
  700. /package/dist/esm/{chunk-3B25RLWX.js.map → chunk-Q2TLWILH.js.map} +0 -0
  701. /package/dist/esm/{chunk-JZ5Z53MN.js.map → chunk-STPMPY3X.js.map} +0 -0
  702. /package/dist/esm/{chunk-WH7PQSSG.js.map → chunk-UICSVJ3B.js.map} +0 -0
  703. /package/dist/esm/{chunk-6RJQ5LLP.js.map → chunk-UMR4AF35.js.map} +0 -0
  704. /package/dist/esm/{chunk-64EFWPHI.js.map → chunk-YCLPURTD.js.map} +0 -0
  705. /package/dist/esm/{chunk-AQ7VUGQQ.js.map → chunk-YMUERC2J.js.map} +0 -0
  706. /package/dist/esm/{chunk-R4PGFURL.js.map → chunk-Z5W4ACO2.js.map} +0 -0
  707. /package/dist/esm/{chunk-YWG476GC.js.map → chunk-ZG2XQUOH.js.map} +0 -0
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{b as P,d as $,f as A}from"./chunk-CV7QQTI3.js";import*as t from"react";import L from"classnames";import{useVirtualizer as oe}from"@tanstack/react-virtual";import{useLayoutEffect as B}from"radix-ui/internal";function q(r,a){if(r.style?.height!==a.style?.height||r.style?.transform!==a.style?.transform)return!1;let c=Object.keys(r);return c.length!==Object.keys(a).length?!1:c.every(s=>s==="style"||Object.is(r[s],a[s]))}var ce=t.memo(function({label:a,isHighlighted:c,id:s,style:f,tabIndex:h,"data-highlighted":o,"data-index":R,"aria-setsize":I,"aria-posinset":y,onMouseEnter:E,onMouseLeave:H,onClick:d,onKeyDown:T}){return t.createElement("div",{id:s,role:"menuitem",className:L("kui-reset","kui-BaseMenuItem","kui-VirtualMenuItem"),style:f,tabIndex:h,"data-highlighted":o,"data-index":R,"aria-setsize":I,"aria-posinset":y,onMouseEnter:E,onMouseLeave:H,onClick:d,onKeyDown:T},a)},q);function le(r,a,c){let[s,f]=t.useState(void 0);return B(()=>{let h=r.current;if(!a||!h)return;let o=document.createElement("div");o.className="kui-reset kui-BaseMenuItem kui-VirtualMenuItem",o.setAttribute("aria-hidden","true"),o.style.visibility="hidden",o.textContent="\xA0",h.appendChild(o);let R=o.getBoundingClientRect().height;o.remove(),f(R>0?R:void 0)},[r,a,c]),a?s:void 0}function de({items:r,itemLabel:a,renderItem:c,size:s,estimatedItemSize:f,overscan:h=5,onSelect:o,className:R,style:I,onKeyDown:y,onFocus:E,...H},d){let T=t.useId(),x=t.useRef(null),[S,m]=t.useState(-1),{isInsideMenu:l,size:C,itemHeight:U}=$(),D=A(),Y=t.useCallback(e=>{x.current=e,typeof d=="function"?d(e):d&&(d.current=e)},[d]),G=le(x,l&&s==null&&f==null,C),p=f??(s?P(s):G??U??P(C??"2"));if(!a&&!c)throw new Error("VirtualMenu requires either itemLabel or renderItem prop");let J=t.useMemo(()=>a?typeof a=="function"?a:e=>e[a]:null,[a]),v=t.useMemo(()=>r.length===0||S<0?-1:Math.min(S,r.length-1),[S,r.length]),Q=t.useMemo(()=>typeof p=="function"?p:()=>p,[p]),M=oe({count:r.length,getScrollElement:()=>x.current,estimateSize:Q,overscan:h}),X=M.getVirtualItems();B(()=>{M.measure()},[M,p]),t.useEffect(()=>{let e=x.current;if(!l||!e)return;let n=e.closest("[data-radix-menu-content]");if(!n)return;let i=u=>{u.target===n&&e.focus({preventScroll:!0})};return n.addEventListener("focusin",i),document.activeElement===n&&e.focus({preventScroll:!0}),()=>n.removeEventListener("focusin",i)},[l]);let z=t.useRef(y),w=t.useRef(E);z.current=y,w.current=E;let k=t.useRef(r),N=t.useRef(o),K=t.useRef(D);k.current=r,N.current=o,K.current=D;let g=t.useCallback(e=>{let n=k.current;e<0||e>=n.length||(N.current?.(n[e],e),K.current?.())},[]),b=t.useRef(M.scrollToIndex);b.current=M.scrollToIndex;let V=t.useRef(v);V.current=v;let Z=t.useCallback(e=>{let n=e.currentTarget.dataset.index;n!=null&&m(Number(n))},[]),ee=t.useCallback(e=>{let n=e.currentTarget.dataset.index;n!=null&&g(Number(n))},[g]),te=t.useCallback(e=>{let n=Number(e.currentTarget.dataset.index);m(i=>i===n?-1:i)},[]),ne=t.useCallback(e=>{if(e.key==="Enter"||e.key===" "){e.preventDefault(),e.stopPropagation();let n=e.currentTarget.dataset.index;n!=null&&g(Number(n))}},[g]),re=t.useCallback(e=>{if(z.current?.(e),e.defaultPrevented)return;let n=k.current,i=V.current;switch(e.key){case"ArrowDown":{e.preventDefault();let u=i<n.length-1?i+1:0;m(u),b.current(u,{align:"auto"});break}case"ArrowUp":{e.preventDefault();let u=i>0?i-1:n.length-1;m(u),b.current(u,{align:"auto"});break}case"Home":{e.preventDefault(),m(0),b.current(0,{align:"start"});break}case"End":{e.preventDefault();let u=n.length-1;m(u),b.current(u,{align:"end"});break}case"Enter":case" ":{e.preventDefault(),g(i);break}case"Tab":{l&&e.preventDefault();break}case"Escape":{l||e.currentTarget.blur();break}default:l&&e.key.length===1&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.stopPropagation()}},[g,l]),ae=t.useCallback(e=>{w.current?.(e),e.target===e.currentTarget&&V.current<0&&k.current.length>0&&m(0)},[]),O=t.useCallback(e=>`${T}-item-${e}`,[T]),ie=t.useMemo(()=>({overflow:"auto",position:"relative",...I}),[I]),j=M.getTotalSize(),se=t.useMemo(()=>({height:`${j}px`,width:"100%",position:"relative"}),[j]);return t.createElement("div",{...H,ref:Y,role:l?"group":"menu","aria-activedescendant":v>=0?O(v):void 0,tabIndex:0,onKeyDown:re,onFocus:ae,className:L("kui-VirtualMenuRoot",!l&&`kui-r-size-${s??"2"}`,R),style:ie},t.createElement("div",{className:"kui-VirtualMenuViewport",style:se},X.map(e=>{let n=r[e.index],i=e.index,u=v===i,ue={height:e.size,transform:`translateY(${e.start}px)`},F={id:O(i),isHighlighted:u,style:ue,tabIndex:-1,"data-highlighted":u?!0:void 0,"data-index":i,"aria-setsize":r.length,"aria-posinset":i+1,onMouseEnter:Z,onMouseLeave:te,onClick:ee,onKeyDown:ne};return c?t.createElement(c,{key:e.key,item:n,index:i,...F}):t.createElement(ce,{key:e.key,label:J(n),...F})})))}var W=t.forwardRef(de);W.displayName="VirtualMenu";var _=t.forwardRef(({className:r,children:a,...c},s)=>t.createElement("div",{ref:s,role:"menuitem",className:L("kui-reset","kui-BaseMenuItem","kui-VirtualMenuItem",r),...c},a));_.displayName="VirtualMenu.Item";var me=t.memo(_,q),ge=Object.assign(W,{Item:me});export{ge as a};
3
- //# sourceMappingURL=chunk-CYTPMHSJ.js.map
2
+ import{b as P,d as $,f as A}from"./chunk-ISCZ57VL.js";import*as t from"react";import L from"classnames";import{useVirtualizer as oe}from"@tanstack/react-virtual";import{useLayoutEffect as B}from"radix-ui/internal";function q(r,a){if(r.style?.height!==a.style?.height||r.style?.transform!==a.style?.transform)return!1;let c=Object.keys(r);return c.length!==Object.keys(a).length?!1:c.every(s=>s==="style"||Object.is(r[s],a[s]))}var ce=t.memo(function({label:a,isHighlighted:c,id:s,style:f,tabIndex:h,"data-highlighted":o,"data-index":R,"aria-setsize":I,"aria-posinset":y,onMouseEnter:E,onMouseLeave:H,onClick:d,onKeyDown:T}){return t.createElement("div",{id:s,role:"menuitem",className:L("kui-reset","kui-BaseMenuItem","kui-VirtualMenuItem"),style:f,tabIndex:h,"data-highlighted":o,"data-index":R,"aria-setsize":I,"aria-posinset":y,onMouseEnter:E,onMouseLeave:H,onClick:d,onKeyDown:T},a)},q);function le(r,a,c){let[s,f]=t.useState(void 0);return B(()=>{let h=r.current;if(!a||!h)return;let o=document.createElement("div");o.className="kui-reset kui-BaseMenuItem kui-VirtualMenuItem",o.setAttribute("aria-hidden","true"),o.style.visibility="hidden",o.textContent="\xA0",h.appendChild(o);let R=o.getBoundingClientRect().height;o.remove(),f(R>0?R:void 0)},[r,a,c]),a?s:void 0}function de({items:r,itemLabel:a,renderItem:c,size:s,estimatedItemSize:f,overscan:h=5,onSelect:o,className:R,style:I,onKeyDown:y,onFocus:E,...H},d){let T=t.useId(),x=t.useRef(null),[S,m]=t.useState(-1),{isInsideMenu:l,size:C,itemHeight:U}=$(),D=A(),Y=t.useCallback(e=>{x.current=e,typeof d=="function"?d(e):d&&(d.current=e)},[d]),G=le(x,l&&s==null&&f==null,C),p=f??(s?P(s):G??U??P(C??"2"));if(!a&&!c)throw new Error("VirtualMenu requires either itemLabel or renderItem prop");let J=t.useMemo(()=>a?typeof a=="function"?a:e=>e[a]:null,[a]),v=t.useMemo(()=>r.length===0||S<0?-1:Math.min(S,r.length-1),[S,r.length]),Q=t.useMemo(()=>typeof p=="function"?p:()=>p,[p]),M=oe({count:r.length,getScrollElement:()=>x.current,estimateSize:Q,overscan:h}),X=M.getVirtualItems();B(()=>{M.measure()},[M,p]),t.useEffect(()=>{let e=x.current;if(!l||!e)return;let n=e.closest("[data-radix-menu-content]");if(!n)return;let i=u=>{u.target===n&&e.focus({preventScroll:!0})};return n.addEventListener("focusin",i),document.activeElement===n&&e.focus({preventScroll:!0}),()=>n.removeEventListener("focusin",i)},[l]);let z=t.useRef(y),w=t.useRef(E);z.current=y,w.current=E;let k=t.useRef(r),N=t.useRef(o),K=t.useRef(D);k.current=r,N.current=o,K.current=D;let g=t.useCallback(e=>{let n=k.current;e<0||e>=n.length||(N.current?.(n[e],e),K.current?.())},[]),b=t.useRef(M.scrollToIndex);b.current=M.scrollToIndex;let V=t.useRef(v);V.current=v;let Z=t.useCallback(e=>{let n=e.currentTarget.dataset.index;n!=null&&m(Number(n))},[]),ee=t.useCallback(e=>{let n=e.currentTarget.dataset.index;n!=null&&g(Number(n))},[g]),te=t.useCallback(e=>{let n=Number(e.currentTarget.dataset.index);m(i=>i===n?-1:i)},[]),ne=t.useCallback(e=>{if(e.key==="Enter"||e.key===" "){e.preventDefault(),e.stopPropagation();let n=e.currentTarget.dataset.index;n!=null&&g(Number(n))}},[g]),re=t.useCallback(e=>{if(z.current?.(e),e.defaultPrevented)return;let n=k.current,i=V.current;switch(e.key){case"ArrowDown":{e.preventDefault();let u=i<n.length-1?i+1:0;m(u),b.current(u,{align:"auto"});break}case"ArrowUp":{e.preventDefault();let u=i>0?i-1:n.length-1;m(u),b.current(u,{align:"auto"});break}case"Home":{e.preventDefault(),m(0),b.current(0,{align:"start"});break}case"End":{e.preventDefault();let u=n.length-1;m(u),b.current(u,{align:"end"});break}case"Enter":case" ":{e.preventDefault(),g(i);break}case"Tab":{l&&e.preventDefault();break}case"Escape":{l||e.currentTarget.blur();break}default:l&&e.key.length===1&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.stopPropagation()}},[g,l]),ae=t.useCallback(e=>{w.current?.(e),e.target===e.currentTarget&&V.current<0&&k.current.length>0&&m(0)},[]),O=t.useCallback(e=>`${T}-item-${e}`,[T]),ie=t.useMemo(()=>({overflow:"auto",position:"relative",...I}),[I]),j=M.getTotalSize(),se=t.useMemo(()=>({height:`${j}px`,width:"100%",position:"relative"}),[j]);return t.createElement("div",{...H,ref:Y,role:l?"group":"menu","aria-activedescendant":v>=0?O(v):void 0,tabIndex:0,onKeyDown:re,onFocus:ae,className:L("kui-VirtualMenuRoot",!l&&`kui-r-size-${s??"2"}`,R),style:ie},t.createElement("div",{className:"kui-VirtualMenuViewport",style:se},X.map(e=>{let n=r[e.index],i=e.index,u=v===i,ue={height:e.size,transform:`translateY(${e.start}px)`},F={id:O(i),isHighlighted:u,style:ue,tabIndex:-1,"data-highlighted":u?!0:void 0,"data-index":i,"aria-setsize":r.length,"aria-posinset":i+1,onMouseEnter:Z,onMouseLeave:te,onClick:ee,onKeyDown:ne};return c?t.createElement(c,{key:e.key,item:n,index:i,...F}):t.createElement(ce,{key:e.key,label:J(n),...F})})))}var W=t.forwardRef(de);W.displayName="VirtualMenu";var _=t.forwardRef(({className:r,children:a,...c},s)=>t.createElement("div",{ref:s,role:"menuitem",className:L("kui-reset","kui-BaseMenuItem","kui-VirtualMenuItem",r),...c},a));_.displayName="VirtualMenu.Item";var me=t.memo(_,q),ge=Object.assign(W,{Item:me});export{ge as a};
3
+ //# sourceMappingURL=chunk-7QBNXNEN.js.map
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{e as x}from"./chunk-EAIQIW23.js";import{b as A,d as H,g as U}from"./chunk-XUCR7L4G.js";import{a as T,c as b}from"./chunk-3QWGSRYC.js";import{a as V,b as k,c as I}from"./chunk-VVBSYWUA.js";import{o as M}from"./chunk-GHWEXMF6.js";import{a as N,b as w,c as B}from"./chunk-QKCNGEX4.js";import{a as E}from"./chunk-WEBNIUEX.js";import{a as y}from"./chunk-G66WDIIV.js";import*as e from"react";import pe from"classnames";import{useComposedRefs as ue}from"radix-ui/internal";var D=t=>t==="collapsed"?"closed":"open",Se=t=>t==="closed"?"collapsed":"expanded";function L(t){if(t===void 0)return;if(typeof t=="string")return D(t);let n={};for(let[r,i]of Object.entries(t))i!==void 0&&(n[r]=D(i));return n}var ce={controlled:"state",default:"defaultState"},be={initial:"overlay",sm:"fixed"},O=e.forwardRef((t,n)=>{let{className:r,presentation:i=be,expandedSize:o=288,minSize:s=200,maxSize:d=400,resizable:m=!1,collapsible:_=!0,onExpand:$,onCollapse:W,onResize:j,onResizeStart:q,onResizeEnd:F,snapPoints:l,snapTolerance:G,collapseThreshold:p,paneId:u,persistence:S,children:K,style:J,state:Q,defaultState:X,onStateChange:Y,size:f,defaultSize:P,onSizeChange:Z,sizeUpdate:ee,sizeUpdateMs:ae=50,inset:h,id:te,...c}=t,{table:g,attributes:ne}=I(i,"fixed"),a=V({name:"sidebar",label:"Sidebar",propNames:ce,id:te,controlled:L(Q),defaultValue:L(X),presentationTable:g,builtIn:A,onChange:(de,le)=>Y?.(Se(de),{reason:le}),onExpand:$,onCollapse:W,size:o});M("sidebar",h),e.useEffect(()=>{(l!==void 0||p!==void 0||u!==void 0||S!==void 0)&&void 0},[l,p,u,S]);let z=e.useRef(null),ie=ue(n,a.setElement,z),oe=w({name:"sidebar",elementId:a.id,elementRef:z,cssVarName:"--sidebar-size",orientation:"vertical",edge:"end",growth:H,expandedSize:o,minSize:s,maxSize:d,resizable:m,collapsible:_,size:f,defaultSize:P,onSizeChange:Z,sizeUpdate:ee,sizeUpdateMs:ae,onResize:j,onResizeStart:q,onResizeEnd:F,snapPoints:l,snapTolerance:G,collapseThreshold:p,paneId:u,persistence:S,overlaying:a.overlaying,overlayingNow:()=>g[y()]==="overlay",requestCollapse:()=>a.setValue("closed","toggle"),requestToggle:()=>a.toggle("toggle")}),{handles:v,content:re}=B(K,b),se=m&&a.value!=="closed"&&!a.overlaying?e.createElement(E.Provider,{value:oe},v.length>0?v:e.createElement(T,null)):null,R=a.peeking?`var(--sidebar-size, ${o}px)`:void 0,C=N(f,P,s,d);return e.createElement("div",{...U(c),role:c.role??"navigation",id:a.id,ref:ie,className:pe("kui-ShellPane","kui-ShellSidebar",r),...k(a,ne),"data-inset":h||void 0,tabIndex:a.overlaying?-1:c.tabIndex,style:{...J,"--sidebar-expanded-size":`${o}px`,...C?{"--sidebar-size":C}:{},"--sidebar-min-size":`${s}px`,"--sidebar-max-size":`${d}px`,...R?{"--peek-sidebar-width":R}:{}}},e.createElement("div",{className:"kui-ShellSidebarContent"},e.createElement(x,null,re)),se)});O.displayName="Shell.Sidebar";O.Handle=b;export{O as a};
3
- //# sourceMappingURL=chunk-YOSCUA6Z.js.map
2
+ import{e as x}from"./chunk-OLTRWCQK.js";import{a as T,c as b}from"./chunk-3QWGSRYC.js";import{a as V,b as k,c as I}from"./chunk-LTUW36HM.js";import{a as N,b as w,c as B}from"./chunk-QKCNGEX4.js";import{a as E}from"./chunk-WEBNIUEX.js";import{b as A,d as H,g as U}from"./chunk-XUCR7L4G.js";import{a as y}from"./chunk-G66WDIIV.js";import{o as M}from"./chunk-GHWEXMF6.js";import*as e from"react";import pe from"classnames";import{useComposedRefs as ue}from"radix-ui/internal";var D=t=>t==="collapsed"?"closed":"open",Se=t=>t==="closed"?"collapsed":"expanded";function L(t){if(t===void 0)return;if(typeof t=="string")return D(t);let n={};for(let[r,i]of Object.entries(t))i!==void 0&&(n[r]=D(i));return n}var ce={controlled:"state",default:"defaultState"},be={initial:"overlay",sm:"fixed"},O=e.forwardRef((t,n)=>{let{className:r,presentation:i=be,expandedSize:o=288,minSize:s=200,maxSize:d=400,resizable:m=!1,collapsible:_=!0,onExpand:$,onCollapse:W,onResize:j,onResizeStart:q,onResizeEnd:F,snapPoints:l,snapTolerance:G,collapseThreshold:p,paneId:u,persistence:S,children:K,style:J,state:Q,defaultState:X,onStateChange:Y,size:f,defaultSize:P,onSizeChange:Z,sizeUpdate:ee,sizeUpdateMs:ae=50,inset:h,id:te,...c}=t,{table:g,attributes:ne}=I(i,"fixed"),a=V({name:"sidebar",label:"Sidebar",propNames:ce,id:te,controlled:L(Q),defaultValue:L(X),presentationTable:g,builtIn:A,onChange:(de,le)=>Y?.(Se(de),{reason:le}),onExpand:$,onCollapse:W,size:o});M("sidebar",h),e.useEffect(()=>{(l!==void 0||p!==void 0||u!==void 0||S!==void 0)&&void 0},[l,p,u,S]);let z=e.useRef(null),ie=ue(n,a.setElement,z),oe=w({name:"sidebar",elementId:a.id,elementRef:z,cssVarName:"--sidebar-size",orientation:"vertical",edge:"end",growth:H,expandedSize:o,minSize:s,maxSize:d,resizable:m,collapsible:_,size:f,defaultSize:P,onSizeChange:Z,sizeUpdate:ee,sizeUpdateMs:ae,onResize:j,onResizeStart:q,onResizeEnd:F,snapPoints:l,snapTolerance:G,collapseThreshold:p,paneId:u,persistence:S,overlaying:a.overlaying,overlayingNow:()=>g[y()]==="overlay",requestCollapse:()=>a.setValue("closed","toggle"),requestToggle:()=>a.toggle("toggle")}),{handles:v,content:re}=B(K,b),se=m&&a.value!=="closed"&&!a.overlaying?e.createElement(E.Provider,{value:oe},v.length>0?v:e.createElement(T,null)):null,R=a.peeking?`var(--sidebar-size, ${o}px)`:void 0,C=N(f,P,s,d);return e.createElement("div",{...U(c),role:c.role??"navigation",id:a.id,ref:ie,className:pe("kui-ShellPane","kui-ShellSidebar",r),...k(a,ne),"data-inset":h||void 0,tabIndex:a.overlaying?-1:c.tabIndex,style:{...J,"--sidebar-expanded-size":`${o}px`,...C?{"--sidebar-size":C}:{},"--sidebar-min-size":`${s}px`,"--sidebar-max-size":`${d}px`,...R?{"--peek-sidebar-width":R}:{}}},e.createElement("div",{className:"kui-ShellSidebarContent"},e.createElement(x,null,re)),se)});O.displayName="Shell.Sidebar";O.Handle=b;export{O as a};
3
+ //# sourceMappingURL=chunk-ACMANOVD.js.map
@@ -1,3 +1,2 @@
1
- "use client";
2
- import{a as s}from"./chunk-CLJ6SEGP.js";import{c as e}from"./chunk-HBWBPBSA.js";var t=["1","2","3","4"],r=["cascade","drill-down"],o={size:{type:"enum",className:"kui-r-size",values:t,default:"2",responsive:!0},...e},p={...o,submenuBehavior:{type:"enum",values:r,default:"cascade",responsive:!0}},u=o,a={...s,...e,shortcut:{type:"string"}},f={...e,shortcut:{type:"string"}},c={...e};export{r as a,p as b,u as c,a as d,f as e,c as f};
3
- //# sourceMappingURL=chunk-I6SMGWS5.js.map
1
+ import{c as e}from"./chunk-CUNKWFKA.js";import{a as s}from"./chunk-NZJGC6ZW.js";var t=["1","2","3","4"],r=["cascade","drill-down"],o={size:{type:"enum",className:"kui-r-size",values:t,default:"2",responsive:!0},...e},p={...o,submenuBehavior:{type:"enum",values:r,default:"cascade",responsive:!0}},u=o,a={...s,...e,shortcut:{type:"string"}},f={...e,shortcut:{type:"string"}},c={...e};export{r as a,p as b,u as c,a as d,f as e,c as f};
2
+ //# sourceMappingURL=chunk-AJWCSQIE.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/_internal/base-menu.props.ts"],
4
+ "sourcesContent": ["import { asChildPropDef } from '../../props/as-child.prop.js';\nimport { colorPropDef } from '../../props/color.prop.js';\n\nimport type { PropDef } from '../../props/prop-def.js';\n\nconst contentSizes = ['1', '2', '3', '4'] as const;\nconst submenuBehaviors = ['cascade', 'drill-down'] as const;\n\n// Base props shared between Content and SubContent\nconst baseMenuSharedPropDefs = {\n size: {\n type: 'enum',\n className: 'kui-r-size',\n values: contentSizes,\n default: '2',\n responsive: true,\n },\n ...colorPropDef,\n} satisfies {\n size: PropDef<(typeof contentSizes)[number]>;\n};\n\n// Content-specific props (includes submenuBehavior)\nconst baseMenuContentPropDefs = {\n ...baseMenuSharedPropDefs,\n /**\n * Controls how submenus behave.\n * - `cascade`: Default cascading behavior where submenus open to the side (portal-based)\n * - `drill-down`: Mobile-friendly behavior where submenus replace the content inline\n * Supports responsive values: `{ initial: 'drill-down', md: 'cascade' }`\n */\n submenuBehavior: {\n type: 'enum',\n values: submenuBehaviors,\n default: 'cascade',\n responsive: true,\n },\n} satisfies {\n size: PropDef<(typeof contentSizes)[number]>;\n submenuBehavior: PropDef<(typeof submenuBehaviors)[number]>;\n};\n\n// SubContent props (no submenuBehavior)\nconst baseMenuSubContentPropDefs = baseMenuSharedPropDefs;\n\nconst baseMenuItemPropDefs = {\n ...asChildPropDef,\n ...colorPropDef,\n shortcut: { type: 'string' },\n} satisfies {\n shortcut: PropDef<string>;\n};\n\nconst baseMenuCheckboxItemPropDefs = {\n ...colorPropDef,\n shortcut: { type: 'string' },\n} satisfies {\n shortcut: PropDef<string>;\n};\n\nconst baseMenuRadioItemPropDefs = {\n ...colorPropDef,\n};\n\nexport {\n baseMenuContentPropDefs,\n baseMenuSubContentPropDefs,\n baseMenuItemPropDefs,\n baseMenuCheckboxItemPropDefs,\n baseMenuRadioItemPropDefs,\n submenuBehaviors,\n};\n"],
5
+ "mappings": "gFAKA,IAAMA,EAAe,CAAC,IAAK,IAAK,IAAK,GAAG,EAClCC,EAAmB,CAAC,UAAW,YAAY,EAG3CC,EAAyB,CAC7B,KAAM,CACJ,KAAM,OACN,UAAW,aACX,OAAQF,EACR,QAAS,IACT,WAAY,EACd,EACA,GAAGG,CACL,EAKMC,EAA0B,CAC9B,GAAGF,EAOH,gBAAiB,CACf,KAAM,OACN,OAAQD,EACR,QAAS,UACT,WAAY,EACd,CACF,EAMMI,EAA6BH,EAE7BI,EAAuB,CAC3B,GAAGC,EACH,GAAGJ,EACH,SAAU,CAAE,KAAM,QAAS,CAC7B,EAIMK,EAA+B,CACnC,GAAGL,EACH,SAAU,CAAE,KAAM,QAAS,CAC7B,EAIMM,EAA4B,CAChC,GAAGN,CACL",
6
+ "names": ["contentSizes", "submenuBehaviors", "baseMenuSharedPropDefs", "colorPropDef", "baseMenuContentPropDefs", "baseMenuSubContentPropDefs", "baseMenuItemPropDefs", "asChildPropDef", "baseMenuCheckboxItemPropDefs", "baseMenuRadioItemPropDefs"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import{c as e}from"./chunk-CUNKWFKA.js";var s=["1","2","3","4"],r={size:{type:"enum",className:"kui-r-size",values:s,default:"2",responsive:!0},...e};export{r as a};
2
+ //# sourceMappingURL=chunk-AKXBXLCP.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/_internal/base-checkbox.props.ts"],
4
+ "sourcesContent": ["import { colorPropDef } from '../../props/color.prop.js';\n\nimport type { PropDef } from '../../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\n\nconst baseCheckboxPropDefs = {\n size: { type: 'enum', className: 'kui-r-size', values: sizes, default: '2', responsive: true },\n ...colorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport { baseCheckboxPropDefs };\n"],
5
+ "mappings": "wCAIA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAE3BC,EAAuB,CAC3B,KAAM,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQD,EAAO,QAAS,IAAK,WAAY,EAAK,EAC7F,GAAGE,CACL",
6
+ "names": ["sizes", "baseCheckboxPropDefs", "colorPropDef"]
7
+ }
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import*as e from"react";var n=e.createContext(void 0);export{n as a};
3
+ //# sourceMappingURL=chunk-ANQLWGFN.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/_internal/pane-band-context.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\n\ntype BandSize = '1' | '2' | '3' | '4';\n\n/**\n * Set by `Shell.PaneHeader` and `Shell.PaneFooter` to their band size, and by `Shell.Scroll` to\n * null (a scrolling list has no band). `PortalTheme`, the root of every portalled surface\n * (Popover, Dialog, Sheet, menus), sets null too, so a Toolbar in one does not take the Shell's\n * step; a `Theme asChild` an app nests in a pane leaves it alone. `Shell.Root` clears it again.\n * Unset (`undefined`) everywhere else.\n *\n * Its own module so PortalTheme can reset it without bringing the Shell.\n */\nconst PaneBandSizeContext = React.createContext<BandSize | null | undefined>(undefined);\n\nexport { PaneBandSizeContext };\nexport type { BandSize };\n"],
5
+ "mappings": ";AAAA,UAAYA,MAAW,QAavB,IAAMC,EAA4B,gBAA2C,MAAS",
6
+ "names": ["React", "PaneBandSizeContext"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import{c as e}from"./chunk-CUNKWFKA.js";var s=["1","2","3","4"],r={size:{type:"enum",className:"kui-r-size",values:s,default:"2",responsive:!0},...e};export{r as a};
2
+ //# sourceMappingURL=chunk-BF4WRYUX.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/components/_internal/base-radio.props.ts"],
4
4
  "sourcesContent": ["import { colorPropDef } from '../../props/color.prop.js';\n\nimport type { PropDef } from '../../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\n\nconst baseRadioPropDefs = {\n size: { type: 'enum', className: 'kui-r-size', values: sizes, default: '2', responsive: true },\n ...colorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport { baseRadioPropDefs };\n"],
5
- "mappings": ";wCAIA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAE3BC,EAAoB,CACxB,KAAM,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQD,EAAO,QAAS,IAAK,WAAY,EAAK,EAC7F,GAAGE,CACL",
5
+ "mappings": "wCAIA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAE3BC,EAAoB,CACxB,KAAM,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQD,EAAO,QAAS,IAAK,WAAY,EAAK,EAC7F,GAAGE,CACL",
6
6
  "names": ["sizes", "baseRadioPropDefs", "colorPropDef"]
7
7
  }
@@ -1,3 +1,2 @@
1
- "use client";
2
- import{a as e}from"./chunk-CLJ6SEGP.js";var s=["div","span"],o=["none","inline","inline-block","block","contents"],t={as:{type:"enum",values:s,default:"div"},...e,display:{type:"enum",className:"kui-r-display",values:o,responsive:!0}};export{t as a};
3
- //# sourceMappingURL=chunk-5WTSKXAE.js.map
1
+ import{a as e}from"./chunk-NZJGC6ZW.js";var s=["div","span"],o=["none","inline","inline-block","block","contents"],t={as:{type:"enum",values:s,default:"div"},...e,display:{type:"enum",className:"kui-r-display",values:o,responsive:!0}};export{t as a};
2
+ //# sourceMappingURL=chunk-BIITGC3Z.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/components/box.props.tsx"],
4
4
  "sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\n\nimport type { PropDef, GetPropDefTypes } from '../props/prop-def.js';\n\nconst as = ['div', 'span'] as const;\nconst displayValues = ['none', 'inline', 'inline-block', 'block', 'contents'] as const;\n\nconst boxPropDefs = {\n /**\n * Controls whether to render **div** or **span**\n *\n * @example\n * as=\"div\"\n * as=\"span\"\n */\n as: { type: 'enum', values: as, default: 'div' },\n ...asChildPropDef,\n /**\n * Sets the CSS **display** property.\n * Supports a subset of the corresponding CSS values and responsive objects.\n *\n * @example\n * display=\"inline-block\"\n * display={{ sm: 'none', lg: 'block' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/display\n */\n display: {\n type: 'enum',\n className: 'kui-r-display',\n values: displayValues,\n responsive: true,\n },\n} satisfies {\n as: PropDef<(typeof as)[number]>;\n display: PropDef<(typeof displayValues)[number]>;\n};\n\n// Use all of the imported prop defs to ensure that JSDoc works\ntype BoxOwnProps = GetPropDefTypes<typeof boxPropDefs & typeof asChildPropDef>;\n\nexport { boxPropDefs };\nexport type { BoxOwnProps };\n"],
5
- "mappings": ";wCAIA,IAAMA,EAAK,CAAC,MAAO,MAAM,EACnBC,EAAgB,CAAC,OAAQ,SAAU,eAAgB,QAAS,UAAU,EAEtEC,EAAc,CAQlB,GAAI,CAAE,KAAM,OAAQ,OAAQF,EAAI,QAAS,KAAM,EAC/C,GAAGG,EAYH,QAAS,CACP,KAAM,OACN,UAAW,gBACX,OAAQF,EACR,WAAY,EACd,CACF",
5
+ "mappings": "wCAIA,IAAMA,EAAK,CAAC,MAAO,MAAM,EACnBC,EAAgB,CAAC,OAAQ,SAAU,eAAgB,QAAS,UAAU,EAEtEC,EAAc,CAQlB,GAAI,CAAE,KAAM,OAAQ,OAAQF,EAAI,QAAS,KAAM,EAC/C,GAAGG,EAYH,QAAS,CACP,KAAM,OACN,UAAW,gBACX,OAAQF,EACR,WAAY,EACd,CACF",
6
6
  "names": ["as", "displayValues", "boxPropDefs", "asChildPropDef"]
7
7
  }
@@ -1,3 +1,2 @@
1
- "use client";
2
- import{a as o}from"./chunk-64EFWPHI.js";import{a as e}from"./chunk-OAJ5DARR.js";import{b as s}from"./chunk-XU74PNM2.js";import{c as r}from"./chunk-HBWBPBSA.js";var t=["1","2","3","4"],p=["raised","surface","soft","ghost","outline"],d={size:{type:"enum",className:"kui-r-size",values:t,default:"2",responsive:!0},variant:{type:"enum",className:"kui-variant",values:p,default:"raised"},error:{type:"boolean",default:!1},errorMessage:{type:"string",default:void 0},required:{type:"boolean",default:!1},"aria-describedby":{type:"string",default:void 0},"aria-labelledby":{type:"string",default:void 0},...r,...s},i=["left","right"],l={side:{type:"enum",values:i},...r,gap:o.gap,px:e.px,pl:e.pl,pr:e.pr};export{d as a,l as b};
3
- //# sourceMappingURL=chunk-NBVCQQSY.js.map
1
+ import{a as e}from"./chunk-P7VSZYG3.js";import{a as o}from"./chunk-UMYPLUG3.js";import{b as s}from"./chunk-KRJTW535.js";import{c as r}from"./chunk-CUNKWFKA.js";var t=["1","2","3","4"],p=["raised","surface","soft","ghost","outline"],d={size:{type:"enum",className:"kui-r-size",values:t,default:"2",responsive:!0},variant:{type:"enum",className:"kui-variant",values:p,default:"raised"},error:{type:"boolean",default:!1},errorMessage:{type:"string",default:void 0},required:{type:"boolean",default:!1},"aria-describedby":{type:"string",default:void 0},"aria-labelledby":{type:"string",default:void 0},...r,...s},i=["left","right"],l={side:{type:"enum",values:i},...r,gap:o.gap,px:e.px,pl:e.pl,pr:e.pr};export{d as a,l as b};
2
+ //# sourceMappingURL=chunk-BP64M73W.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/components/text-field.props.tsx"],
4
4
  "sourcesContent": ["import { colorPropDef } from '../props/color.prop.js';\nimport { paddingPropDefs } from '../props/padding.props.js';\nimport { radiusPropDef } from '../props/radius.prop.js';\nimport { flexPropDefs } from './flex.props.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst variants = ['raised', 'surface', 'soft', 'ghost', 'outline'] as const;\n\nconst textFieldRootPropDefs = {\n size: { type: 'enum', className: 'kui-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'kui-variant', values: variants, default: 'raised' },\n // Error and validation props\n error: { type: 'boolean', default: false },\n errorMessage: { type: 'string', default: undefined },\n required: { type: 'boolean', default: false },\n // Accessibility props\n 'aria-describedby': { type: 'string', default: undefined },\n 'aria-labelledby': { type: 'string', default: undefined },\n ...colorPropDef,\n ...radiusPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n error: PropDef<boolean>;\n errorMessage: PropDef<string | undefined>;\n required: PropDef<boolean>;\n 'aria-describedby': PropDef<string | undefined>;\n 'aria-labelledby': PropDef<string | undefined>;\n};\n\nconst sides = ['left', 'right'] as const;\n\nconst textFieldSlotPropDefs = {\n side: { type: 'enum', values: sides },\n ...colorPropDef,\n gap: flexPropDefs.gap,\n px: paddingPropDefs.px,\n pl: paddingPropDefs.pl,\n pr: paddingPropDefs.pr,\n} satisfies {\n side: PropDef<(typeof sides)[number]>;\n gap: typeof flexPropDefs.gap;\n px: typeof paddingPropDefs.px;\n pl: typeof paddingPropDefs.pl;\n pr: typeof paddingPropDefs.pr;\n};\n\n/** Scrubbing props for TextField.Slot - handled separately from PropDef system */\ninterface TextFieldSlotScrubProps {\n /** Enable scrubbing behavior on this slot */\n scrub?: boolean;\n /** Current value (required for min/max clamping to work correctly) */\n scrubValue?: number;\n /** Base value change per movement unit (default: 1) */\n scrubStep?: number;\n /** Pixels of movement per step - higher = less sensitive (default: 1) */\n scrubSensitivity?: number;\n /** Minimum allowed value */\n scrubMin?: number;\n /** Maximum allowed value */\n scrubMax?: number;\n /** Step multiplier when Shift is held (default: 10) */\n scrubShiftMultiplier?: number;\n /** Step multiplier when Alt/Option is held (default: 0.1) */\n scrubAltMultiplier?: number;\n /**\n * Callback fired during scrubbing with the value delta\n * @param delta - The change in value\n * @param isChanging - true while dragging, false when released\n */\n onScrub?: (delta: number, isChanging: boolean) => void;\n}\n\nexport type { TextFieldSlotScrubProps };\n\nexport { textFieldRootPropDefs, textFieldSlotPropDefs };\n"],
5
- "mappings": ";gKAOA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,EAAW,CAAC,SAAU,UAAW,OAAQ,QAAS,SAAS,EAE3DC,EAAwB,CAC5B,KAAM,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQF,EAAO,QAAS,IAAK,WAAY,EAAK,EAC7F,QAAS,CAAE,KAAM,OAAQ,UAAW,cAAe,OAAQC,EAAU,QAAS,QAAS,EAEvF,MAAO,CAAE,KAAM,UAAW,QAAS,EAAM,EACzC,aAAc,CAAE,KAAM,SAAU,QAAS,MAAU,EACnD,SAAU,CAAE,KAAM,UAAW,QAAS,EAAM,EAE5C,mBAAoB,CAAE,KAAM,SAAU,QAAS,MAAU,EACzD,kBAAmB,CAAE,KAAM,SAAU,QAAS,MAAU,EACxD,GAAGE,EACH,GAAGC,CACL,EAUMC,EAAQ,CAAC,OAAQ,OAAO,EAExBC,EAAwB,CAC5B,KAAM,CAAE,KAAM,OAAQ,OAAQD,CAAM,EACpC,GAAGF,EACH,IAAKI,EAAa,IAClB,GAAIC,EAAgB,GACpB,GAAIA,EAAgB,GACpB,GAAIA,EAAgB,EACtB",
5
+ "mappings": "gKAOA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,EAAW,CAAC,SAAU,UAAW,OAAQ,QAAS,SAAS,EAE3DC,EAAwB,CAC5B,KAAM,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQF,EAAO,QAAS,IAAK,WAAY,EAAK,EAC7F,QAAS,CAAE,KAAM,OAAQ,UAAW,cAAe,OAAQC,EAAU,QAAS,QAAS,EAEvF,MAAO,CAAE,KAAM,UAAW,QAAS,EAAM,EACzC,aAAc,CAAE,KAAM,SAAU,QAAS,MAAU,EACnD,SAAU,CAAE,KAAM,UAAW,QAAS,EAAM,EAE5C,mBAAoB,CAAE,KAAM,SAAU,QAAS,MAAU,EACzD,kBAAmB,CAAE,KAAM,SAAU,QAAS,MAAU,EACxD,GAAGE,EACH,GAAGC,CACL,EAUMC,EAAQ,CAAC,OAAQ,OAAO,EAExBC,EAAwB,CAC5B,KAAM,CAAE,KAAM,OAAQ,OAAQD,CAAM,EACpC,GAAGF,EACH,IAAKI,EAAa,IAClB,GAAIC,EAAgB,GACpB,GAAIA,EAAgB,GACpB,GAAIA,EAAgB,EACtB",
6
6
  "names": ["sizes", "variants", "textFieldRootPropDefs", "colorPropDef", "radiusPropDef", "sides", "textFieldSlotPropDefs", "flexPropDefs", "paddingPropDefs"]
7
7
  }
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ var e=["normal","start","end","both"],o={trim:{type:"enum",className:"kui-r-lt",values:e,responsive:!0}};var t=["left","center","right"],n={align:{type:"enum",className:"kui-r-ta",values:t,responsive:!0}};var s=["sans","mono","serif"],p={font:{type:"enum",className:"kui-r-ff",values:s}};export{o as a,n as b,p as c};
3
+ //# sourceMappingURL=chunk-BQC2P3SN.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/props/leading-trim.prop.ts", "../../src/props/text-align.prop.ts", "../../src/props/font-family.prop.ts"],
4
+ "sourcesContent": ["import type { PropDef } from './prop-def.js';\n\nconst leadingTrimValues = ['normal', 'start', 'end', 'both'] as const;\n\nconst leadingTrimPropDef = {\n trim: {\n type: 'enum',\n className: 'kui-r-lt',\n values: leadingTrimValues,\n responsive: true,\n },\n} satisfies {\n trim: PropDef<(typeof leadingTrimValues)[number]>;\n};\n\nexport { leadingTrimPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst textAlignValues = ['left', 'center', 'right'] as const;\n\nconst textAlignPropDef = {\n align: {\n type: 'enum',\n className: 'kui-r-ta',\n values: textAlignValues,\n responsive: true,\n },\n} satisfies {\n align: PropDef<(typeof textAlignValues)[number]>;\n};\n\nexport { textAlignPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst fontFamilies = ['sans', 'mono', 'serif'] as const;\n\nconst fontFamilyPropDef = {\n font: {\n type: 'enum',\n className: 'kui-r-ff',\n values: fontFamilies,\n },\n} satisfies {\n font: PropDef<(typeof fontFamilies)[number]>;\n};\n\nexport { fontFamilyPropDef };\n"],
5
+ "mappings": ";AAEA,IAAMA,EAAoB,CAAC,SAAU,QAAS,MAAO,MAAM,EAErDC,EAAqB,CACzB,KAAM,CACJ,KAAM,OACN,UAAW,WACX,OAAQD,EACR,WAAY,EACd,CACF,ECTA,IAAME,EAAkB,CAAC,OAAQ,SAAU,OAAO,EAE5CC,EAAmB,CACvB,MAAO,CACL,KAAM,OACN,UAAW,WACX,OAAQD,EACR,WAAY,EACd,CACF,ECTA,IAAME,EAAe,CAAC,OAAQ,OAAQ,OAAO,EAEvCC,EAAoB,CACxB,KAAM,CACJ,KAAM,OACN,UAAW,WACX,OAAQD,CACV,CACF",
6
+ "names": ["leadingTrimValues", "leadingTrimPropDef", "textAlignValues", "textAlignPropDef", "fontFamilies", "fontFamilyPropDef"]
7
+ }
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import{a as o}from"./chunk-KVVRFWGQ.js";import{c as i}from"./chunk-OKQAVYW4.js";import*as e from"react";import l from"classnames";var t={loading:{type:"boolean",default:!0}};var u=e.forwardRef((f,d)=>{let{className:m,children:s,loading:n,...p}=i(f,t);if(s===void 0&&!n)return null;let a=p["aria-label"]!==void 0||p["aria-labelledby"]!==void 0,r=e.createElement("span",{role:a?"status":void 0,"aria-hidden":a?void 0:!0,...p,ref:d,className:l("kui-Spinner",m)},e.createElement("span",{className:"kui-SpinnerWheel"},e.createElement("span",{className:"kui-SpinnerLeaf"}),e.createElement("span",{className:"kui-SpinnerLeaf"}),e.createElement("span",{className:"kui-SpinnerLeaf"}),e.createElement("span",{className:"kui-SpinnerLeaf"}),e.createElement("span",{className:"kui-SpinnerLeaf"}),e.createElement("span",{className:"kui-SpinnerLeaf"}),e.createElement("span",{className:"kui-SpinnerLeaf"}),e.createElement("span",{className:"kui-SpinnerLeaf"})),typeof p["aria-label"]=="string"?e.createElement("span",{className:"kui-sr-only"},p["aria-label"]):null);return s===void 0?r:e.createElement("span",{className:"kui-SpinnerHost","data-loading":n||void 0,"aria-busy":n||void 0},e.createElement("span",{"aria-hidden":n||void 0,className:l("kui-SpinnerChildren",n&&"kui-SpinnerHiddenChildren")},s),n?e.createElement(o,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},e.createElement("span",null,r)):null)});u.displayName="Spinner";export{u as a};
3
+ //# sourceMappingURL=chunk-BUXK5VGR.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/spinner.tsx", "../../src/components/spinner.props.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nimport classNames from 'classnames';\n\nimport { Flex } from './flex.js';\nimport { spinnerPropDefs } from './spinner.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype SpinnerElement = React.ElementRef<'span'>;\ntype SpinnerOwnProps = GetPropDefTypes<typeof spinnerPropDefs>;\ninterface SpinnerProps\n extends ComponentPropsWithout<'span', RemovedProps>,\n SpinnerOwnProps {}\nconst Spinner = React.forwardRef<SpinnerElement, SpinnerProps>((props, forwardedRef) => {\n const { className, children, loading, ...spinnerProps } = extractProps(\n props,\n spinnerPropDefs\n );\n\n // Without children a Spinner is only the wheel, shown while loading.\n if (children === undefined && !loading) return null;\n\n // Decorative unless named: a named spinner is a status message, an unnamed one is hidden.\n const named =\n spinnerProps['aria-label'] !== undefined || spinnerProps['aria-labelledby'] !== undefined;\n\n const spinner = (\n <span\n role={named ? 'status' : undefined}\n aria-hidden={named ? undefined : true}\n {...spinnerProps}\n ref={forwardedRef} className={classNames('kui-Spinner', className)}>\n <span className=\"kui-SpinnerWheel\">\n <span className=\"kui-SpinnerLeaf\" />\n <span className=\"kui-SpinnerLeaf\" />\n <span className=\"kui-SpinnerLeaf\" />\n <span className=\"kui-SpinnerLeaf\" />\n <span className=\"kui-SpinnerLeaf\" />\n <span className=\"kui-SpinnerLeaf\" />\n <span className=\"kui-SpinnerLeaf\" />\n <span className=\"kui-SpinnerLeaf\" />\n </span>\n {/* A live region reads its text, not its aria-label, so the name is also its content. */}\n {typeof spinnerProps['aria-label'] === 'string' ? (\n <span className=\"kui-sr-only\">{spinnerProps['aria-label']}</span>\n ) : null}\n </span>\n );\n\n if (children === undefined) return spinner;\n\n // With children, one tree whether loading or not, so starting or stopping never remounts them\n // (their state, focus and refs survive). At rest the host is `display: contents`; while loading\n // it centres the wheel over the children, which keep their space but are hidden.\n return (\n <span className=\"kui-SpinnerHost\" data-loading={loading || undefined} aria-busy={loading || undefined}>\n {/* `display: contents` removes the content from the accessibility tree in some browsers, so\n while loading it is removed with `aria-hidden` too. */}\n <span aria-hidden={loading || undefined} className={classNames('kui-SpinnerChildren', loading && 'kui-SpinnerHiddenChildren')}>\n {children}\n </span>\n {loading ? (\n <Flex asChild align=\"center\" justify=\"center\" position=\"absolute\" inset=\"0\">\n <span>{spinner}</span>\n </Flex>\n ) : null}\n </span>\n );\n});\nSpinner.displayName = 'Spinner';\n\nexport { Spinner };\nexport type { SpinnerProps };\n", "import type { PropDef } from '../props/prop-def.js';\n\nconst spinnerPropDefs = {\n loading: { type: 'boolean', default: true },\n} satisfies {\n loading: PropDef<boolean>;\n};\n\nexport { spinnerPropDefs };\n"],
5
+ "mappings": ";gFAAA,UAAYA,MAAW,QACvB,OAAOC,MAAgB,aCCvB,IAAMC,EAAkB,CACtB,QAAS,CAAE,KAAM,UAAW,QAAS,EAAK,CAC5C,EDWA,IAAMC,EAAgB,aAAyC,CAACC,EAAOC,IAAiB,CACtF,GAAM,CAAE,UAAAC,EAAW,SAAAC,EAAU,QAAAC,EAAS,GAAGC,CAAa,EAAIC,EACxDN,EACAO,CACF,EAGA,GAAIJ,IAAa,QAAa,CAACC,EAAS,OAAO,KAG/C,IAAMI,EACJH,EAAa,YAAY,IAAM,QAAaA,EAAa,iBAAiB,IAAM,OAE5EI,EACJ,gBAAC,QACC,KAAMD,EAAQ,SAAW,OACzB,cAAaA,EAAQ,OAAY,GAChC,GAAGH,EACJ,IAAKJ,EAAc,UAAWS,EAAW,cAAeR,CAAS,GACjE,gBAAC,QAAK,UAAU,oBACd,gBAAC,QAAK,UAAU,kBAAkB,EAClC,gBAAC,QAAK,UAAU,kBAAkB,EAClC,gBAAC,QAAK,UAAU,kBAAkB,EAClC,gBAAC,QAAK,UAAU,kBAAkB,EAClC,gBAAC,QAAK,UAAU,kBAAkB,EAClC,gBAAC,QAAK,UAAU,kBAAkB,EAClC,gBAAC,QAAK,UAAU,kBAAkB,EAClC,gBAAC,QAAK,UAAU,kBAAkB,CACpC,EAEC,OAAOG,EAAa,YAAY,GAAM,SACrC,gBAAC,QAAK,UAAU,eAAeA,EAAa,YAAY,CAAE,EACxD,IACN,EAGF,OAAIF,IAAa,OAAkBM,EAMjC,gBAAC,QAAK,UAAU,kBAAkB,eAAcL,GAAW,OAAW,YAAWA,GAAW,QAG1F,gBAAC,QAAK,cAAaA,GAAW,OAAW,UAAWM,EAAW,sBAAuBN,GAAW,2BAA2B,GACzHD,CACH,EACCC,EACC,gBAACO,EAAA,CAAK,QAAO,GAAC,MAAM,SAAS,QAAQ,SAAS,SAAS,WAAW,MAAM,KACtE,gBAAC,YAAMF,CAAQ,CACjB,EACE,IACN,CAEJ,CAAC,EACDV,EAAQ,YAAc",
6
+ "names": ["React", "classNames", "spinnerPropDefs", "Spinner", "props", "forwardedRef", "className", "children", "loading", "spinnerProps", "extractProps", "spinnerPropDefs", "named", "spinner", "classNames", "Flex"]
7
+ }
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import{a}from"./chunk-4MNRLB57.js";import{a as s}from"./chunk-BQC2P3SN.js";import{b as n,c as i,d as m}from"./chunk-UJ7JERJ5.js";import{c as t}from"./chunk-OKQAVYW4.js";import{d as p}from"./chunk-HBWBPBSA.js";import{a as r}from"./chunk-CLJ6SEGP.js";import*as e from"react";import L from"classnames";var y=["1","2","3","4","5","6","7","8","9"],D=["auto","always","hover","none"],f={...r,size:{type:"enum",className:"kui-r-size",values:y,responsive:!0},...m,...s,...i,...n,underline:{type:"enum",className:"kui-underline",values:D,default:"auto"},...p};var h=e.forwardRef((l,c)=>{let{children:o,className:P,color:u,asChild:d,...k}=t(l,f);return e.createElement(a,{...k,"data-accent-color":u,ref:c,asChild:!0,className:L("kui-reset","kui-Link",P)},d?o:e.createElement("a",null,o))});h.displayName="Link";export{h as a};
3
+ //# sourceMappingURL=chunk-C67MM24U.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/link.tsx", "../../src/components/link.props.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nimport classNames from 'classnames';\n\nimport { Text } from './text.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { linkPropDefs } from './link.props.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype LinkElement = React.ElementRef<'a'>;\ntype LinkOwnProps = GetPropDefTypes<typeof linkPropDefs>;\ninterface LinkProps extends ComponentPropsWithout<'a', RemovedProps>, LinkOwnProps {}\nconst Link = React.forwardRef<LinkElement, LinkProps>((props, forwardedRef) => {\n const { children, className, color, asChild, ...linkProps } = extractProps(props, linkPropDefs);\n return (\n <Text\n {...linkProps}\n data-accent-color={color}\n ref={forwardedRef}\n asChild\n className={classNames('kui-reset', 'kui-Link', className)}\n >\n {asChild ? (\n children\n ) : (\n // eslint-disable-next-line jsx-a11y/anchor-is-valid\n <a>{children}</a>\n )}\n </Text>\n );\n});\nLink.displayName = 'Link';\n\nexport { Link };\nexport type { LinkProps };\n", "import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColorPropDef } from '../props/color.prop.js';\nimport { leadingTrimPropDef } from '../props/leading-trim.prop.js';\nimport { textWrapPropDef } from '../props/text-wrap.prop.js';\nimport { truncatePropDef } from '../props/truncate.prop.js';\nimport { weightPropDef } from '../props/weight.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4', '5', '6', '7', '8', '9'] as const;\nconst underline = ['auto', 'always', 'hover', 'none'] as const;\n\nconst linkPropDefs = {\n ...asChildPropDef,\n size: {\n type: 'enum',\n className: 'kui-r-size',\n values: sizes,\n responsive: true,\n },\n ...weightPropDef,\n ...leadingTrimPropDef,\n ...truncatePropDef,\n ...textWrapPropDef,\n underline: { type: 'enum', className: 'kui-underline', values: underline, default: 'auto' },\n ...accentColorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n underline: PropDef<(typeof underline)[number]>;\n};\n\nexport { linkPropDefs };\n"],
5
+ "mappings": ";yPAAA,UAAYA,MAAW,QACvB,OAAOC,MAAgB,aCQvB,IAAMC,EAAQ,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,GAAG,EACpDC,EAAY,CAAC,OAAQ,SAAU,QAAS,MAAM,EAE9CC,EAAe,CACnB,GAAGC,EACH,KAAM,CACJ,KAAM,OACN,UAAW,aACX,OAAQH,EACR,WAAY,EACd,EACA,GAAGI,EACH,GAAGC,EACH,GAAGC,EACH,GAAGC,EACH,UAAW,CAAE,KAAM,OAAQ,UAAW,gBAAiB,OAAQN,EAAW,QAAS,MAAO,EAC1F,GAAGO,CACL,EDbA,IAAMC,EAAa,aAAmC,CAACC,EAAOC,IAAiB,CAC7E,GAAM,CAAE,SAAAC,EAAU,UAAAC,EAAW,MAAAC,EAAO,QAAAC,EAAS,GAAGC,CAAU,EAAIC,EAAaP,EAAOQ,CAAY,EAC9F,OACE,gBAACC,EAAA,CACE,GAAGH,EACJ,oBAAmBF,EACnB,IAAKH,EACL,QAAO,GACP,UAAWS,EAAW,YAAa,WAAYP,CAAS,GAEvDE,EACCH,EAGA,gBAAC,SAAGA,CAAS,CAEjB,CAEJ,CAAC,EACDH,EAAK,YAAc",
6
+ "names": ["React", "classNames", "sizes", "underline", "linkPropDefs", "asChildPropDef", "weightPropDef", "leadingTrimPropDef", "truncatePropDef", "textWrapPropDef", "accentColorPropDef", "Link", "props", "forwardedRef", "children", "className", "color", "asChild", "linkProps", "extractProps", "linkPropDefs", "Text", "classNames"]
7
+ }
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{a as c}from"./chunk-Y2DBXOLT.js";import{b as p}from"./chunk-Y2BTPKK6.js";import{a as u}from"./chunk-WMODMXEU.js";import*as t from"react";import O from"classnames";var C={loud:"solid",medium:"raised",quiet:"ghost"};function T(e){if(e["aria-label"]||e["aria-labelledby"])return;console.error("Button: an `iconOnly` button must have an accessible name. Pass `aria-label`, or `aria-labelledby` referencing a label element.")}var w=t.forwardRef(({className:e,style:a,tooltip:r,tooltipSide:d="top",tooltipAlign:m="center",tooltipDelayDuration:B,tooltipDisableHoverableContent:b,iconOnly:s=!1,emphasis:n,variant:i,...o},y)=>{let{tooltipId:f,hasTooltip:P,accessibilityProps:R}=c(r);s&&(T(o),o.fullWidth=!1);let h=n!==void 0?C[n]:i,g=o["aria-describedby"],v=R["aria-describedby"],E=[g,v].filter(Boolean).join(" ")||void 0,l=t.createElement(u,{...o,variant:h,"aria-describedby":E,ref:y,"data-icon-only":s||void 0,className:O("kui-Button",e),style:a});return P?t.createElement(p,{content:r,side:d,align:m,delayDuration:B,disableHoverableContent:b,id:f},l):l});w.displayName="Button";export{w as a};
3
- //# sourceMappingURL=chunk-5TJH35TF.js.map
2
+ import{a as c}from"./chunk-Y2DBXOLT.js";import{b as p}from"./chunk-MPCCYR7L.js";import{a as u}from"./chunk-27XQ5PN5.js";import*as t from"react";import O from"classnames";var C={loud:"solid",medium:"raised",quiet:"ghost"};function T(e){if(e["aria-label"]||e["aria-labelledby"])return;console.error("Button: an `iconOnly` button must have an accessible name. Pass `aria-label`, or `aria-labelledby` referencing a label element.")}var w=t.forwardRef(({className:e,style:a,tooltip:r,tooltipSide:d="top",tooltipAlign:m="center",tooltipDelayDuration:B,tooltipDisableHoverableContent:b,iconOnly:s=!1,emphasis:n,variant:i,...o},y)=>{let{tooltipId:f,hasTooltip:P,accessibilityProps:R}=c(r);s&&(T(o),o.fullWidth=!1);let h=n!==void 0?C[n]:i,g=o["aria-describedby"],v=R["aria-describedby"],E=[g,v].filter(Boolean).join(" ")||void 0,l=t.createElement(u,{...o,variant:h,"aria-describedby":E,ref:y,"data-icon-only":s||void 0,className:O("kui-Button",e),style:a});return P?t.createElement(p,{content:r,side:d,align:m,delayDuration:B,disableHoverableContent:b,id:f},l):l});w.displayName="Button";export{w as a};
3
+ //# sourceMappingURL=chunk-CGFLZ3DC.js.map
@@ -0,0 +1,2 @@
1
+ import{b as e}from"./chunk-VS2ZWRGO.js";import{a as p}from"./chunk-SBRPXQWH.js";import{a as s}from"./chunk-SJXV4BWZ.js";import{a as t}from"./chunk-N6KH2EOU.js";import{c as r}from"./chunk-CUNKWFKA.js";import{a as o}from"./chunk-NZJGC6ZW.js";var f=["1","2","3","4","5","6","7","8","9"],n={...o,size:{type:"enum",className:"kui-r-size",values:f,responsive:!0},...t,...r,...e,...s,...p};export{n as a};
2
+ //# sourceMappingURL=chunk-CT543Q2V.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/components/blockquote.props.tsx"],
4
4
  "sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { colorPropDef } from '../props/color.prop.js';\nimport { emphasisPropDef } from '../props/emphasis.prop.js';\nimport { textWrapPropDef } from '../props/text-wrap.prop.js';\nimport { truncatePropDef } from '../props/truncate.prop.js';\nimport { weightPropDef } from '../props/weight.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4', '5', '6', '7', '8', '9'] as const;\n\nconst blockquotePropDefs = {\n ...asChildPropDef,\n size: {\n type: 'enum',\n className: 'kui-r-size',\n values: sizes,\n responsive: true,\n },\n ...weightPropDef,\n ...colorPropDef,\n ...emphasisPropDef,\n ...truncatePropDef,\n ...textWrapPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport { blockquotePropDefs };\n"],
5
- "mappings": ";8KASA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,GAAG,EAEpDC,EAAqB,CACzB,GAAGC,EACH,KAAM,CACJ,KAAM,OACN,UAAW,aACX,OAAQF,EACR,WAAY,EACd,EACA,GAAGG,EACH,GAAGC,EACH,GAAGC,EACH,GAAGC,EACH,GAAGC,CACL",
5
+ "mappings": "gPASA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,GAAG,EAEpDC,EAAqB,CACzB,GAAGC,EACH,KAAM,CACJ,KAAM,OACN,UAAW,aACX,OAAQF,EACR,WAAY,EACd,EACA,GAAGG,EACH,GAAGC,EACH,GAAGC,EACH,GAAGC,EACH,GAAGC,CACL",
6
6
  "names": ["sizes", "blockquotePropDefs", "asChildPropDef", "weightPropDef", "colorPropDef", "emphasisPropDef", "truncatePropDef", "textWrapPropDef"]
7
7
  }
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import{b as a,c as i}from"./chunk-OKQAVYW4.js";import{c as t}from"./chunk-HBWBPBSA.js";import{b as p}from"./chunk-XU74PNM2.js";import*as r from"react";import R from"classnames";import{Progress as n}from"radix-ui";var v=["surface","soft","outline"],m={variant:{type:"enum",className:"kui-variant",values:v,default:"surface"},...t,...p,duration:{type:"string"}};var D=r.forwardRef((f,P)=>{let{className:u,style:c,color:d,radius:g,duration:l,...e}=i(f,m),{value:o,max:y}=e,s=o!=null&&o>=0&&o<=(y??100);return r.createElement(n.Root,{"data-accent-color":d,"data-radius":g,ref:P,className:R("kui-ProgressRoot",u),style:a({"--progress-duration":s?void 0:l,"--progress-value":s?o:void 0,"--progress-max":e.max??void 0},c),...e,asChild:!1},r.createElement(n.Indicator,{className:"kui-ProgressIndicator"}))});D.displayName="Progress";export{D as a};
3
+ //# sourceMappingURL=chunk-D2C2A2ZK.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/components/progress.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nimport classNames from 'classnames';\nimport { Progress as ProgressPrimitive } from 'radix-ui';\n\nimport { progressPropDefs } from './progress.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { mergeStyles } from '../helpers/merge-styles.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype ProgressElement = React.ElementRef<typeof ProgressPrimitive.Root>;\ntype ProgressOwnProps = GetPropDefTypes<typeof progressPropDefs>;\ninterface ProgressProps\n extends ComponentPropsWithout<typeof ProgressPrimitive.Root, RemovedProps | 'children'>,\n ProgressOwnProps {\n duration?: `${number}s` | `${number}ms`;\n}\nconst Progress = React.forwardRef<ProgressElement, ProgressProps>((props, forwardedRef) => {\n const { className, style, color, radius, duration, ...progressProps } = extractProps(\n props,\n progressPropDefs\n );\n\n // Radix treats `null`, `undefined` and a value outside 0 to max as indeterminate, so all of\n // them keep a custom duration.\n const { value, max } = progressProps;\n const isDeterminate = value != null && value >= 0 && value <= (max ?? 100);\n\n return (\n <ProgressPrimitive.Root\n data-accent-color={color}\n data-radius={radius}\n ref={forwardedRef}\n className={classNames('kui-ProgressRoot', className)}\n style={mergeStyles(\n {\n '--progress-duration': isDeterminate ? undefined : duration,\n '--progress-value': isDeterminate ? value : undefined,\n '--progress-max': progressProps.max ?? undefined,\n },\n style\n )}\n {...progressProps}\n asChild={false}\n >\n <ProgressPrimitive.Indicator className=\"kui-ProgressIndicator\" />\n </ProgressPrimitive.Root>\n );\n});\nProgress.displayName = 'Progress';\n\nexport { Progress };\nexport type { ProgressProps };\n"],
5
- "mappings": ";uFAAA,UAAYA,MAAW,QACvB,OAAOC,MAAgB,aACvB,OAAS,YAAYC,MAAyB,WAgB9C,IAAMC,EAAiB,aAA2C,CAACC,EAAOC,IAAiB,CACzF,GAAM,CAAE,UAAAC,EAAW,MAAAC,EAAO,MAAAC,EAAO,OAAAC,EAAQ,SAAAC,EAAU,GAAGC,CAAc,EAAIC,EACtER,EACAS,CACF,EAIM,CAAE,MAAAC,EAAO,IAAAC,CAAI,EAAIJ,EACjBK,EAAgBF,GAAS,MAAQA,GAAS,GAAKA,IAAUC,GAAO,KAEtE,OACE,gBAACE,EAAkB,KAAlB,CACC,oBAAmBT,EACnB,cAAaC,EACb,IAAKJ,EACL,UAAWa,EAAW,mBAAoBZ,CAAS,EACnD,MAAOa,EACL,CACE,sBAAuBH,EAAgB,OAAYN,EACnD,mBAAoBM,EAAgBF,EAAQ,OAC5C,iBAAkBH,EAAc,KAAO,MACzC,EACAJ,CACF,EACC,GAAGI,EACJ,QAAS,IAET,gBAACM,EAAkB,UAAlB,CAA4B,UAAU,wBAAwB,CACjE,CAEJ,CAAC,EACDd,EAAS,YAAc",
6
- "names": ["React", "classNames", "ProgressPrimitive", "Progress", "props", "forwardedRef", "className", "style", "color", "radius", "duration", "progressProps", "extractProps", "progressPropDefs", "value", "max", "isDeterminate", "ProgressPrimitive", "classNames", "mergeStyles"]
3
+ "sources": ["../../src/components/progress.tsx", "../../src/components/progress.props.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nimport classNames from 'classnames';\nimport { Progress as ProgressPrimitive } from 'radix-ui';\n\nimport { progressPropDefs } from './progress.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { mergeStyles } from '../helpers/merge-styles.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype ProgressElement = React.ElementRef<typeof ProgressPrimitive.Root>;\ntype ProgressOwnProps = GetPropDefTypes<typeof progressPropDefs>;\ninterface ProgressProps\n extends ComponentPropsWithout<typeof ProgressPrimitive.Root, RemovedProps | 'children'>,\n ProgressOwnProps {\n duration?: `${number}s` | `${number}ms`;\n}\nconst Progress = React.forwardRef<ProgressElement, ProgressProps>((props, forwardedRef) => {\n const { className, style, color, radius, duration, ...progressProps } = extractProps(\n props,\n progressPropDefs\n );\n\n // Radix treats `null`, `undefined` and a value outside 0 to max as indeterminate, so all of\n // them keep a custom duration.\n const { value, max } = progressProps;\n const isDeterminate = value != null && value >= 0 && value <= (max ?? 100);\n\n return (\n <ProgressPrimitive.Root\n data-accent-color={color}\n data-radius={radius}\n ref={forwardedRef}\n className={classNames('kui-ProgressRoot', className)}\n style={mergeStyles(\n {\n '--progress-duration': isDeterminate ? undefined : duration,\n '--progress-value': isDeterminate ? value : undefined,\n '--progress-max': progressProps.max ?? undefined,\n },\n style\n )}\n {...progressProps}\n asChild={false}\n >\n <ProgressPrimitive.Indicator className=\"kui-ProgressIndicator\" />\n </ProgressPrimitive.Root>\n );\n});\nProgress.displayName = 'Progress';\n\nexport { Progress };\nexport type { ProgressProps };\n", "import { colorPropDef } from '../props/color.prop.js';\nimport { radiusPropDef } from '../props/radius.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst variants = ['surface', 'soft', 'outline'] as const;\n\nconst progressPropDefs = {\n variant: { type: 'enum', className: 'kui-variant', values: variants, default: 'surface' },\n ...colorPropDef,\n ...radiusPropDef,\n duration: { type: 'string' },\n} satisfies {\n variant: PropDef<(typeof variants)[number]>;\n duration: PropDef<string>;\n};\n\nexport { progressPropDefs };\n"],
5
+ "mappings": ";+HAAA,UAAYA,MAAW,QACvB,OAAOC,MAAgB,aACvB,OAAS,YAAYC,MAAyB,WCG9C,IAAMC,EAAW,CAAC,UAAW,OAAQ,SAAS,EAExCC,EAAmB,CACvB,QAAS,CAAE,KAAM,OAAQ,UAAW,cAAe,OAAQD,EAAU,QAAS,SAAU,EACxF,GAAGE,EACH,GAAGC,EACH,SAAU,CAAE,KAAM,QAAS,CAC7B,EDMA,IAAMC,EAAiB,aAA2C,CAACC,EAAOC,IAAiB,CACzF,GAAM,CAAE,UAAAC,EAAW,MAAAC,EAAO,MAAAC,EAAO,OAAAC,EAAQ,SAAAC,EAAU,GAAGC,CAAc,EAAIC,EACtER,EACAS,CACF,EAIM,CAAE,MAAAC,EAAO,IAAAC,CAAI,EAAIJ,EACjBK,EAAgBF,GAAS,MAAQA,GAAS,GAAKA,IAAUC,GAAO,KAEtE,OACE,gBAACE,EAAkB,KAAlB,CACC,oBAAmBT,EACnB,cAAaC,EACb,IAAKJ,EACL,UAAWa,EAAW,mBAAoBZ,CAAS,EACnD,MAAOa,EACL,CACE,sBAAuBH,EAAgB,OAAYN,EACnD,mBAAoBM,EAAgBF,EAAQ,OAC5C,iBAAkBH,EAAc,KAAO,MACzC,EACAJ,CACF,EACC,GAAGI,EACJ,QAAS,IAET,gBAACM,EAAkB,UAAlB,CAA4B,UAAU,wBAAwB,CACjE,CAEJ,CAAC,EACDd,EAAS,YAAc",
6
+ "names": ["React", "classNames", "ProgressPrimitive", "variants", "progressPropDefs", "colorPropDef", "radiusPropDef", "Progress", "props", "forwardedRef", "className", "style", "color", "radius", "duration", "progressProps", "extractProps", "progressPropDefs", "value", "max", "isDeterminate", "ProgressPrimitive", "classNames", "mergeStyles"]
7
7
  }
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./chunk-FNAE6HUI.js";var o={...e};export{o as a};
2
+ //# sourceMappingURL=chunk-DFGY2NZB.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/components/alert-dialog.props.tsx"],
4
4
  "sourcesContent": ["import { dialogContentPropDefs } from './dialog.props.js';\nimport type { PropDef, GetPropDefTypes } from '../props/prop-def.js';\n\nconst alertDialogContentPropDefs = {\n ...dialogContentPropDefs,\n} satisfies {\n align: PropDef<'start' | 'center'>;\n size: PropDef<'1' | '2' | '3' | '4'>;\n width: PropDef<string>;\n minWidth: PropDef<string>;\n maxWidth: PropDef<string>;\n};\n\ntype AlertDialogContentOwnProps = GetPropDefTypes<typeof alertDialogContentPropDefs>;\n\nexport { alertDialogContentPropDefs };\nexport type { AlertDialogContentOwnProps };\n"],
5
- "mappings": ";wCAGA,IAAMA,EAA6B,CACjC,GAAGC,CACL",
5
+ "mappings": "wCAGA,IAAMA,EAA6B,CACjC,GAAGC,CACL",
6
6
  "names": ["alertDialogContentPropDefs", "dialogContentPropDefs"]
7
7
  }
@@ -1,3 +1,2 @@
1
- "use client";
2
- import{a as t}from"./chunk-CR65RYGM.js";import{a as s}from"./chunk-CLJ6SEGP.js";var n=["div","span"],a=["none","inline-grid","grid"],o=["1","2","3","4","5","6","7","8","9"],u=["1","2","3","4","5","6","7","8","9"],p=["row","column","dense","row-dense","column-dense"],i=["start","center","end","baseline","stretch"],l=["start","center","end","between"],c=["start","center","end","baseline","between","around","evenly","stretch"],f=["start","center","end","baseline","stretch"],m={as:{type:"enum",values:n,default:"div"},...s,display:{type:"enum",className:"kui-r-display",values:a,responsive:!0},areas:{type:"string",className:"kui-r-gta",customProperties:["--grid-template-areas"],responsive:!0},columns:{type:"enum | string",className:"kui-r-gtc",customProperties:["--grid-template-columns"],values:o,parseValue:r,responsive:!0},rows:{type:"enum | string",className:"kui-r-gtr",customProperties:["--grid-template-rows"],values:u,parseValue:r,responsive:!0},flow:{type:"enum",className:"kui-r-gaf",values:p,responsive:!0},align:{type:"enum",className:"kui-r-ai",values:i,responsive:!0},justify:{type:"enum",className:"kui-r-jc",values:l,parseValue:y,responsive:!0},alignContent:{type:"enum",className:"kui-r-ac",values:c,parseValue:d,responsive:!0},justifyItems:{type:"enum",className:"kui-r-ji",values:f,responsive:!0},...t};function r(e){return m.columns.values.includes(e)?e:e?.match(/^\d+$/)?`repeat(${e}, minmax(0, 1fr))`:e}function y(e){return e==="between"?"space-between":e}function d(e){return e==="between"?"space-between":e==="around"?"space-around":e==="evenly"?"space-evenly":e}export{m as a};
3
- //# sourceMappingURL=chunk-4J7QDLKI.js.map
1
+ import{a as t}from"./chunk-FJLYSZV3.js";import{a as s}from"./chunk-NZJGC6ZW.js";var n=["div","span"],a=["none","inline-grid","grid"],o=["1","2","3","4","5","6","7","8","9"],u=["1","2","3","4","5","6","7","8","9"],p=["row","column","dense","row-dense","column-dense"],i=["start","center","end","baseline","stretch"],l=["start","center","end","between"],c=["start","center","end","baseline","between","around","evenly","stretch"],f=["start","center","end","baseline","stretch"],m={as:{type:"enum",values:n,default:"div"},...s,display:{type:"enum",className:"kui-r-display",values:a,responsive:!0},areas:{type:"string",className:"kui-r-gta",customProperties:["--grid-template-areas"],responsive:!0},columns:{type:"enum | string",className:"kui-r-gtc",customProperties:["--grid-template-columns"],values:o,parseValue:r,responsive:!0},rows:{type:"enum | string",className:"kui-r-gtr",customProperties:["--grid-template-rows"],values:u,parseValue:r,responsive:!0},flow:{type:"enum",className:"kui-r-gaf",values:p,responsive:!0},align:{type:"enum",className:"kui-r-ai",values:i,responsive:!0},justify:{type:"enum",className:"kui-r-jc",values:l,parseValue:y,responsive:!0},alignContent:{type:"enum",className:"kui-r-ac",values:c,parseValue:d,responsive:!0},justifyItems:{type:"enum",className:"kui-r-ji",values:f,responsive:!0},...t};function r(e){return m.columns.values.includes(e)?e:e?.match(/^\d+$/)?`repeat(${e}, minmax(0, 1fr))`:e}function y(e){return e==="between"?"space-between":e}function d(e){return e==="between"?"space-between":e==="around"?"space-around":e==="evenly"?"space-evenly":e}export{m as a};
2
+ //# sourceMappingURL=chunk-DFLWZOQO.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/components/grid.props.tsx"],
4
4
  "sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { gapPropDefs } from '../props/gap.props.js';\n\nimport type { PropDef, GetPropDefTypes } from '../props/prop-def.js';\n\nconst as = ['div', 'span'] as const;\nconst displayValues = ['none', 'inline-grid', 'grid'] as const;\nconst columnsValues = ['1', '2', '3', '4', '5', '6', '7', '8', '9'] as const;\nconst rowsValues = ['1', '2', '3', '4', '5', '6', '7', '8', '9'] as const;\nconst flowValues = ['row', 'column', 'dense', 'row-dense', 'column-dense'] as const;\nconst alignValues = ['start', 'center', 'end', 'baseline', 'stretch'] as const;\nconst justifyValues = ['start', 'center', 'end', 'between'] as const;\nconst alignContentValues = [\n 'start',\n 'center',\n 'end',\n 'baseline',\n 'between',\n 'around',\n 'evenly',\n 'stretch',\n] as const;\nconst justifyItemsValues = ['start', 'center', 'end', 'baseline', 'stretch'] as const;\n\nconst gridPropDefs = {\n /**\n * Controls whether to render **div** or **span**\n *\n * @example\n * as=\"div\"\n * as=\"span\"\n */\n as: { type: 'enum', values: as, default: 'div' },\n ...asChildPropDef,\n /**\n * Sets the CSS **display** property.\n * Supports a subset of the corresponding CSS values and responsive objects.\n *\n * @example\n * display=\"inline-grid\"\n * display={{ sm: 'none', lg: 'grid' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/display\n */\n display: {\n type: 'enum',\n className: 'kui-r-display',\n values: displayValues,\n responsive: true,\n },\n /**\n * Sets the CSS **grid-template** property.\n * Supports a subset of the corresponding CSS values and responsive objects.\n *\n * @example\n * template='\"header header\" \"sidebar content\"'\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas\n */\n areas: {\n type: 'string',\n className: 'kui-r-gta',\n customProperties: ['--grid-template-areas'],\n responsive: true,\n },\n /**\n * Sets the CSS **grid-template-columns** property.\n * Supports numeric string values, CSS strings and responsive objects.\n *\n * Use numeric string values to create grid columns of even size.\n *\n * @example\n * columns=\"3\"\n * columns=\"100px 1fr\"\n * columns={{ xs: '1', md: 'auto 1fr' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns\n */\n columns: {\n type: 'enum | string',\n className: 'kui-r-gtc',\n customProperties: ['--grid-template-columns'],\n values: columnsValues,\n parseValue: parseGridValue,\n responsive: true,\n },\n /**\n * Sets the CSS **grid-template-rows** property.\n * Supports numeric string values, CSS strings and responsive objects.\n *\n * Use numeric string values to create grid rows of even size.\n *\n * @example\n * rows=\"3\"\n * rows=\"100px 1fr\"\n * rows={{ xs: '1', md: 'auto 1fr' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows\n */\n rows: {\n type: 'enum | string',\n className: 'kui-r-gtr',\n customProperties: ['--grid-template-rows'],\n values: rowsValues,\n parseValue: parseGridValue,\n responsive: true,\n },\n /**\n * Sets the CSS **grid-auto-flow** property.\n * Supports the corresponding CSS values and responsive objects.\n *\n * @example\n * flow=\"column\"\n * flow={{ sm: 'column', lg: 'row' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow\n */\n flow: {\n type: 'enum',\n className: 'kui-r-gaf',\n values: flowValues,\n responsive: true,\n },\n /**\n * Sets the CSS **align-items** property.\n * Supports the corresponding CSS values and responsive objects.\n *\n * @example\n * align=\"center\"\n * align={{ sm: 'baseline', lg: 'center' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/align-items\n */\n align: {\n type: 'enum',\n className: 'kui-r-ai',\n values: alignValues,\n responsive: true,\n },\n /**\n * Sets the CSS **justify-content** property.\n * Supports a subset of the corresponding CSS values and responsive objects.\n *\n * @example\n * justify=\"between\"\n * justify={{ sm: 'start', lg: 'center' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content\n */\n justify: {\n type: 'enum',\n className: 'kui-r-jc',\n values: justifyValues,\n parseValue: parseJustifyValue,\n responsive: true,\n },\n /**\n * Sets the CSS **align-content** property.\n * Supports a subset of the corresponding CSS values and responsive objects.\n *\n * @example\n * alignContent=\"between\"\n * alignContent={{ sm: 'start', lg: 'center' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/align-content\n */\n alignContent: {\n type: 'enum',\n className: 'kui-r-ac',\n values: alignContentValues,\n parseValue: parseAlignContentValue,\n responsive: true,\n },\n /**\n * Sets the CSS **justify-items** property.\n * Supports a subset of the corresponding CSS values and responsive objects.\n *\n * @example\n * justifyItems=\"center\"\n * justifyItems={{ sm: 'start', lg: 'center' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items\n */\n justifyItems: {\n type: 'enum',\n className: 'kui-r-ji',\n values: justifyItemsValues,\n responsive: true,\n },\n ...gapPropDefs,\n} satisfies {\n as: PropDef<(typeof as)[number]>;\n display: PropDef<(typeof displayValues)[number]>;\n areas: PropDef<string>;\n columns: PropDef<(typeof columnsValues)[number]>;\n rows: PropDef<(typeof rowsValues)[number]>;\n flow: PropDef<(typeof flowValues)[number]>;\n align: PropDef<(typeof alignValues)[number]>;\n justify: PropDef<(typeof justifyValues)[number]>;\n alignContent: PropDef<(typeof alignContentValues)[number]>;\n justifyItems: PropDef<(typeof justifyItemsValues)[number]>;\n};\n\nfunction parseGridValue(value: string): string {\n if ((gridPropDefs.columns.values as readonly string[]).includes(value)) {\n return value;\n }\n\n return value?.match(/^\\d+$/) ? `repeat(${value}, minmax(0, 1fr))` : value;\n}\n\nfunction parseJustifyValue(value: string) {\n return value === 'between' ? 'space-between' : value;\n}\n\nfunction parseAlignContentValue(value: string) {\n return value === 'between'\n ? 'space-between'\n : value === 'around'\n ? 'space-around'\n : value === 'evenly'\n ? 'space-evenly'\n : value;\n}\n\n// Use all of the imported prop defs to ensure that JSDoc works\ntype GridOwnProps = GetPropDefTypes<typeof gridPropDefs & typeof asChildPropDef>;\n\nexport { gridPropDefs };\nexport type { GridOwnProps };\n"],
5
- "mappings": ";gFAKA,IAAMA,EAAK,CAAC,MAAO,MAAM,EACnBC,EAAgB,CAAC,OAAQ,cAAe,MAAM,EAC9CC,EAAgB,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,GAAG,EAC5DC,EAAa,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,GAAG,EACzDC,EAAa,CAAC,MAAO,SAAU,QAAS,YAAa,cAAc,EACnEC,EAAc,CAAC,QAAS,SAAU,MAAO,WAAY,SAAS,EAC9DC,EAAgB,CAAC,QAAS,SAAU,MAAO,SAAS,EACpDC,EAAqB,CACzB,QACA,SACA,MACA,WACA,UACA,SACA,SACA,SACF,EACMC,EAAqB,CAAC,QAAS,SAAU,MAAO,WAAY,SAAS,EAErEC,EAAe,CAQnB,GAAI,CAAE,KAAM,OAAQ,OAAQT,EAAI,QAAS,KAAM,EAC/C,GAAGU,EAYH,QAAS,CACP,KAAM,OACN,UAAW,gBACX,OAAQT,EACR,WAAY,EACd,EAWA,MAAO,CACL,KAAM,SACN,UAAW,YACX,iBAAkB,CAAC,uBAAuB,EAC1C,WAAY,EACd,EAeA,QAAS,CACP,KAAM,gBACN,UAAW,YACX,iBAAkB,CAAC,yBAAyB,EAC5C,OAAQC,EACR,WAAYS,EACZ,WAAY,EACd,EAeA,KAAM,CACJ,KAAM,gBACN,UAAW,YACX,iBAAkB,CAAC,sBAAsB,EACzC,OAAQR,EACR,WAAYQ,EACZ,WAAY,EACd,EAYA,KAAM,CACJ,KAAM,OACN,UAAW,YACX,OAAQP,EACR,WAAY,EACd,EAYA,MAAO,CACL,KAAM,OACN,UAAW,WACX,OAAQC,EACR,WAAY,EACd,EAYA,QAAS,CACP,KAAM,OACN,UAAW,WACX,OAAQC,EACR,WAAYM,EACZ,WAAY,EACd,EAYA,aAAc,CACZ,KAAM,OACN,UAAW,WACX,OAAQL,EACR,WAAYM,EACZ,WAAY,EACd,EAYA,aAAc,CACZ,KAAM,OACN,UAAW,WACX,OAAQL,EACR,WAAY,EACd,EACA,GAAGM,CACL,EAaA,SAASH,EAAeI,EAAuB,CAC7C,OAAKN,EAAa,QAAQ,OAA6B,SAASM,CAAK,EAC5DA,EAGFA,GAAO,MAAM,OAAO,EAAI,UAAUA,CAAK,oBAAsBA,CACtE,CAEA,SAASH,EAAkBG,EAAe,CACxC,OAAOA,IAAU,UAAY,gBAAkBA,CACjD,CAEA,SAASF,EAAuBE,EAAe,CAC7C,OAAOA,IAAU,UACb,gBACAA,IAAU,SACR,eACAA,IAAU,SACR,eACAA,CACV",
5
+ "mappings": "gFAKA,IAAMA,EAAK,CAAC,MAAO,MAAM,EACnBC,EAAgB,CAAC,OAAQ,cAAe,MAAM,EAC9CC,EAAgB,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,GAAG,EAC5DC,EAAa,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,GAAG,EACzDC,EAAa,CAAC,MAAO,SAAU,QAAS,YAAa,cAAc,EACnEC,EAAc,CAAC,QAAS,SAAU,MAAO,WAAY,SAAS,EAC9DC,EAAgB,CAAC,QAAS,SAAU,MAAO,SAAS,EACpDC,EAAqB,CACzB,QACA,SACA,MACA,WACA,UACA,SACA,SACA,SACF,EACMC,EAAqB,CAAC,QAAS,SAAU,MAAO,WAAY,SAAS,EAErEC,EAAe,CAQnB,GAAI,CAAE,KAAM,OAAQ,OAAQT,EAAI,QAAS,KAAM,EAC/C,GAAGU,EAYH,QAAS,CACP,KAAM,OACN,UAAW,gBACX,OAAQT,EACR,WAAY,EACd,EAWA,MAAO,CACL,KAAM,SACN,UAAW,YACX,iBAAkB,CAAC,uBAAuB,EAC1C,WAAY,EACd,EAeA,QAAS,CACP,KAAM,gBACN,UAAW,YACX,iBAAkB,CAAC,yBAAyB,EAC5C,OAAQC,EACR,WAAYS,EACZ,WAAY,EACd,EAeA,KAAM,CACJ,KAAM,gBACN,UAAW,YACX,iBAAkB,CAAC,sBAAsB,EACzC,OAAQR,EACR,WAAYQ,EACZ,WAAY,EACd,EAYA,KAAM,CACJ,KAAM,OACN,UAAW,YACX,OAAQP,EACR,WAAY,EACd,EAYA,MAAO,CACL,KAAM,OACN,UAAW,WACX,OAAQC,EACR,WAAY,EACd,EAYA,QAAS,CACP,KAAM,OACN,UAAW,WACX,OAAQC,EACR,WAAYM,EACZ,WAAY,EACd,EAYA,aAAc,CACZ,KAAM,OACN,UAAW,WACX,OAAQL,EACR,WAAYM,EACZ,WAAY,EACd,EAYA,aAAc,CACZ,KAAM,OACN,UAAW,WACX,OAAQL,EACR,WAAY,EACd,EACA,GAAGM,CACL,EAaA,SAASH,EAAeI,EAAuB,CAC7C,OAAKN,EAAa,QAAQ,OAA6B,SAASM,CAAK,EAC5DA,EAGFA,GAAO,MAAM,OAAO,EAAI,UAAUA,CAAK,oBAAsBA,CACtE,CAEA,SAASH,EAAkBG,EAAe,CACxC,OAAOA,IAAU,UAAY,gBAAkBA,CACjD,CAEA,SAASF,EAAuBE,EAAe,CAC7C,OAAOA,IAAU,UACb,gBACAA,IAAU,SACR,eACAA,IAAU,SACR,eACAA,CACV",
6
6
  "names": ["as", "displayValues", "columnsValues", "rowsValues", "flowValues", "alignValues", "justifyValues", "alignContentValues", "justifyItemsValues", "gridPropDefs", "asChildPropDef", "parseGridValue", "parseJustifyValue", "parseAlignContentValue", "gapPropDefs", "value"]
7
7
  }
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import{c as r}from"./chunk-OKQAVYW4.js";import{c as o}from"./chunk-HBWBPBSA.js";import{c as s}from"./chunk-5ON3XLRD.js";import*as e from"react";import w from"classnames";import{Switch as i}from"radix-ui";var n=["1","2","3","4"],t={size:{type:"enum",className:"kui-r-size",values:n,default:"2",responsive:!0},...o};var l=e.forwardRef((p,c)=>{let m=s(p,t.size),{className:f,color:a,...h}=r(m,t);return e.createElement(i.Root,{"data-accent-color":a,...h,asChild:!1,ref:c,className:w("kui-reset","kui-SwitchRoot",f)},e.createElement(i.Thumb,{className:"kui-SwitchThumb"}))});l.displayName="Switch";export{l as a};
3
+ //# sourceMappingURL=chunk-DSM5SUH3.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/components/switch.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nimport classNames from 'classnames';\nimport { Switch as SwitchPrimitive } from 'radix-ui';\n\nimport { extractProps } from '../helpers/extract-props.js';\nimport { useThemeSizeProps } from '../hooks/theme-size.js';\nimport { switchPropDefs } from './switch.props.js';\n\nimport type { GetPropDefTypes } from '../props/prop-def.js';\nimport type { ComponentPropsWithout } from '../helpers/component-props.js';\n\ntype SwitchElement = React.ElementRef<typeof SwitchPrimitive.Root>;\ntype SwitchOwnProps = GetPropDefTypes<typeof switchPropDefs>;\ninterface SwitchProps\n extends ComponentPropsWithout<\n typeof SwitchPrimitive.Root,\n 'asChild' | 'color' | 'defaultValue' | 'children'\n >,\n SwitchOwnProps {}\nconst Switch = React.forwardRef<SwitchElement, SwitchProps>((ownProps, forwardedRef) => {\n const props = useThemeSizeProps(ownProps, switchPropDefs.size);\n const { className, color, ...switchProps } = extractProps(\n props,\n switchPropDefs,\n );\n return (\n <SwitchPrimitive.Root\n data-accent-color={color}\n {...switchProps}\n asChild={false}\n ref={forwardedRef}\n className={classNames('kui-reset', 'kui-SwitchRoot', className)}\n >\n <SwitchPrimitive.Thumb className=\"kui-SwitchThumb\" />\n </SwitchPrimitive.Root>\n );\n});\nSwitch.displayName = 'Switch';\n\nexport { Switch };\nexport type { SwitchProps };\n"],
5
- "mappings": ";wHAAA,UAAYA,MAAW,QACvB,OAAOC,MAAgB,aACvB,OAAS,UAAUC,MAAuB,WAiB1C,IAAMC,EAAe,aAAuC,CAACC,EAAUC,IAAiB,CACtF,IAAMC,EAAQC,EAAkBH,EAAUI,EAAe,IAAI,EACvD,CAAE,UAAAC,EAAW,MAAAC,EAAO,GAAGC,CAAY,EAAIC,EAC3CN,EACAE,CACF,EACA,OACE,gBAACK,EAAgB,KAAhB,CACC,oBAAmBH,EAClB,GAAGC,EACJ,QAAS,GACT,IAAKN,EACL,UAAWS,EAAW,YAAa,iBAAkBL,CAAS,GAE9D,gBAACI,EAAgB,MAAhB,CAAsB,UAAU,kBAAkB,CACrD,CAEJ,CAAC,EACDV,EAAO,YAAc",
6
- "names": ["React", "classNames", "SwitchPrimitive", "Switch", "ownProps", "forwardedRef", "props", "useThemeSizeProps", "switchPropDefs", "className", "color", "switchProps", "extractProps", "SwitchPrimitive", "classNames"]
3
+ "sources": ["../../src/components/switch.tsx", "../../src/components/switch.props.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nimport classNames from 'classnames';\nimport { Switch as SwitchPrimitive } from 'radix-ui';\n\nimport { extractProps } from '../helpers/extract-props.js';\nimport { useThemeSizeProps } from '../hooks/theme-size.js';\nimport { switchPropDefs } from './switch.props.js';\n\nimport type { GetPropDefTypes } from '../props/prop-def.js';\nimport type { ComponentPropsWithout } from '../helpers/component-props.js';\n\ntype SwitchElement = React.ElementRef<typeof SwitchPrimitive.Root>;\ntype SwitchOwnProps = GetPropDefTypes<typeof switchPropDefs>;\ninterface SwitchProps\n extends ComponentPropsWithout<\n typeof SwitchPrimitive.Root,\n 'asChild' | 'color' | 'defaultValue' | 'children'\n >,\n SwitchOwnProps {}\nconst Switch = React.forwardRef<SwitchElement, SwitchProps>((ownProps, forwardedRef) => {\n const props = useThemeSizeProps(ownProps, switchPropDefs.size);\n const { className, color, ...switchProps } = extractProps(\n props,\n switchPropDefs,\n );\n return (\n <SwitchPrimitive.Root\n data-accent-color={color}\n {...switchProps}\n asChild={false}\n ref={forwardedRef}\n className={classNames('kui-reset', 'kui-SwitchRoot', className)}\n >\n <SwitchPrimitive.Thumb className=\"kui-SwitchThumb\" />\n </SwitchPrimitive.Root>\n );\n});\nSwitch.displayName = 'Switch';\n\nexport { Switch };\nexport type { SwitchProps };\n", "import { colorPropDef } from '../props/color.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\n\nconst switchPropDefs = {\n size: { type: 'enum', className: 'kui-r-size', values: sizes, default: '2', responsive: true },\n ...colorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport { switchPropDefs };\n"],
5
+ "mappings": ";wHAAA,UAAYA,MAAW,QACvB,OAAOC,MAAgB,aACvB,OAAS,UAAUC,MAAuB,WCE1C,IAAMC,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAE3BC,EAAiB,CACrB,KAAM,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQD,EAAO,QAAS,IAAK,WAAY,EAAK,EAC7F,GAAGE,CACL,EDUA,IAAMC,EAAe,aAAuC,CAACC,EAAUC,IAAiB,CACtF,IAAMC,EAAQC,EAAkBH,EAAUI,EAAe,IAAI,EACvD,CAAE,UAAAC,EAAW,MAAAC,EAAO,GAAGC,CAAY,EAAIC,EAC3CN,EACAE,CACF,EACA,OACE,gBAACK,EAAgB,KAAhB,CACC,oBAAmBH,EAClB,GAAGC,EACJ,QAAS,GACT,IAAKN,EACL,UAAWS,EAAW,YAAa,iBAAkBL,CAAS,GAE9D,gBAACI,EAAgB,MAAhB,CAAsB,UAAU,kBAAkB,CACrD,CAEJ,CAAC,EACDV,EAAO,YAAc",
6
+ "names": ["React", "classNames", "SwitchPrimitive", "sizes", "switchPropDefs", "colorPropDef", "Switch", "ownProps", "forwardedRef", "props", "useThemeSizeProps", "switchPropDefs", "className", "color", "switchProps", "extractProps", "SwitchPrimitive", "classNames"]
7
7
  }
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import{a as P}from"./chunk-4MNRLB57.js";import{c as f}from"./chunk-OKQAVYW4.js";import{c as G}from"./chunk-HBWBPBSA.js";import{b as l}from"./chunk-5ON3XLRD.js";import{a as n}from"./chunk-CLJ6SEGP.js";import{a as S}from"./chunk-VQPANPMI.js";var _={};S(_,{Item:()=>N,Root:()=>C});import*as o from"react";import c from"classnames";import{Context as v}from"radix-ui/internal";import{RadioGroup as d}from"radix-ui";var h=["1","2","3","4"],R={...n,size:{type:"enum",className:"kui-r-size",values:h,default:"2",responsive:!0},...G};var y="RadioGroup",[D]=v.createContextScope(y,[d.createRadioGroupScope]),I=d.createRadioGroupScope(),[E,x]=D(y),C=o.forwardRef(({color:a=R.color.default,size:e,...t},r)=>{let i=l(e,R.size),{__scopeRadioGroup:p,className:s,...m}=t,z=I(p);return o.createElement(E,{scope:p,color:a,size:i},o.createElement(d.Root,{...z,...m,ref:r,className:c("kui-RadioGroupRoot",s)}))});C.displayName="RadioGroup.Root";var N=o.forwardRef((a,e)=>{let{__scopeRadioGroup:t,children:r,className:i,style:p,...s}=a,{size:m}=x("RadioGroupItem",t);return r?o.createElement(P,{as:"label",size:m,className:c("kui-RadioGroupItem",i),style:p},o.createElement(u,{__scopeRadioGroup:t,...s,ref:e}),r&&o.createElement("span",{className:"kui-RadioGroupItemInner"},r)):o.createElement(u,{__scopeRadioGroup:t,...s,ref:e,className:i,style:p})});N.displayName="RadioGroup.Item";var u=o.forwardRef(({__scopeRadioGroup:a,...e},t)=>{let r=x("RadioGroupItemRadio",a),i=I(a),{color:p,className:s}=f({...e,...r},R);return o.createElement(d.Item,{...i,"data-accent-color":p,...e,asChild:!1,ref:t,className:c("kui-reset","kui-BaseRadioRoot",s)})});u.displayName="RadioGroup.ItemRadio";export{C as a,N as b,_ as c};
3
+ //# sourceMappingURL=chunk-E2LSWNWZ.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/components/radio-group.tsx"],
4
- "sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { Context } from 'radix-ui/internal';\nimport { RadioGroup as RadioGroupPrimitive } from 'radix-ui';\n\nimport { radioGroupRootPropDefs } from './radio-group.props.js';\nimport { Text } from './text.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { useThemeSize } from '../hooks/theme-size.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\nconst RADIO_GROUP_NAME = 'RadioGroup';\n\ntype ScopedProps<P> = P & { __scopeRadioGroup?: Context.Scope };\nconst [createRadioGroupContext] = Context.createContextScope(RADIO_GROUP_NAME, [\n RadioGroupPrimitive.createRadioGroupScope,\n]);\nconst useRadioGroupScope = RadioGroupPrimitive.createRadioGroupScope();\n\ntype RadioGroupRootOwnProps = GetPropDefTypes<typeof radioGroupRootPropDefs>;\ntype RadioGroupContextValue = RadioGroupRootOwnProps;\n\nconst [RadioGroupProvider, useRadioGroupContext] =\n createRadioGroupContext<RadioGroupContextValue>(RADIO_GROUP_NAME);\n\ntype RadioGroupRootElement = React.ElementRef<typeof RadioGroupPrimitive.Root>;\ninterface RadioGroupRootProps\n extends ComponentPropsWithout<\n typeof RadioGroupPrimitive.Root,\n 'asChild' | 'color' | 'defaultChecked'\n >,\n RadioGroupRootOwnProps {}\nconst RadioGroupRoot = React.forwardRef<RadioGroupRootElement, RadioGroupRootProps>(\n (\n {\n color = radioGroupRootPropDefs.color.default,\n size: sizeProp,\n ...props\n }: ScopedProps<RadioGroupRootProps>,\n forwardedRef\n ) => {\n const size = useThemeSize(sizeProp, radioGroupRootPropDefs.size);\n const { __scopeRadioGroup, className, ...rootProps } = props;\n const radioGroupScope = useRadioGroupScope(__scopeRadioGroup);\n return (\n <RadioGroupProvider\n scope={__scopeRadioGroup}\n color={color}\n size={size}\n >\n <RadioGroupPrimitive.Root\n {...radioGroupScope}\n {...rootProps}\n ref={forwardedRef}\n className={classNames('kui-RadioGroupRoot', className)}\n />\n </RadioGroupProvider>\n );\n }\n);\nRadioGroupRoot.displayName = 'RadioGroup.Root';\n\ntype RadioGroupItemElement = React.ElementRef<typeof RadioGroupItemRadio>;\ninterface RadioGroupItemProps\n extends ComponentPropsWithout<typeof RadioGroupItemRadio, RemovedProps> {}\nconst RadioGroupItem = React.forwardRef<RadioGroupItemElement, RadioGroupItemProps>(\n (_props: ScopedProps<RadioGroupItemProps>, forwardedRef) => {\n const { __scopeRadioGroup, children, className, style, ...props } = _props;\n const { size } = useRadioGroupContext('RadioGroupItem', __scopeRadioGroup);\n\n // Render `<Text as=\"label\">` if children\u00A0are provided, otherwise render\n // the solo radio button to allow building out your custom layouts with it.\n if (children) {\n return (\n <Text\n as=\"label\"\n size={size}\n className={classNames('kui-RadioGroupItem', className)}\n style={style}\n >\n <RadioGroupItemRadio\n __scopeRadioGroup={__scopeRadioGroup}\n {...props}\n ref={forwardedRef}\n />\n {children && <span className=\"kui-RadioGroupItemInner\">{children}</span>}\n </Text>\n );\n }\n\n return (\n <RadioGroupItemRadio\n __scopeRadioGroup={__scopeRadioGroup}\n {...props}\n ref={forwardedRef}\n className={className}\n style={style}\n />\n );\n }\n);\nRadioGroupItem.displayName = 'RadioGroup.Item';\n\ntype RadioGroupItemRadioElement = React.ElementRef<typeof RadioGroupPrimitive.Item>;\ninterface RadioGroupItemRadioProps\n extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item> {}\nconst RadioGroupItemRadio = React.forwardRef<\n RadioGroupItemRadioElement,\n ScopedProps<RadioGroupItemRadioProps>\n>(({ __scopeRadioGroup, ...props }, forwardedRef) => {\n const context = useRadioGroupContext('RadioGroupItemRadio', __scopeRadioGroup);\n const radioGroupScope = useRadioGroupScope(__scopeRadioGroup);\n const { color, className } = extractProps(\n { ...props, ...context },\n radioGroupRootPropDefs\n );\n return (\n <RadioGroupPrimitive.Item\n {...radioGroupScope}\n data-accent-color={color}\n {...props}\n asChild={false}\n ref={forwardedRef}\n className={classNames('kui-reset', 'kui-BaseRadioRoot', className)}\n />\n );\n});\nRadioGroupItemRadio.displayName = 'RadioGroup.ItemRadio';\n\nexport { RadioGroupRoot as Root, RadioGroupItem as Item };\nexport type { RadioGroupRootProps as RootProps, RadioGroupItemProps as ItemProps };\n"],
5
- "mappings": ";wMAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,UAAAE,EAAA,SAAAC,IAEA,UAAYC,MAAW,QACvB,OAAOC,MAAgB,aACvB,OAAS,WAAAC,MAAe,oBACxB,OAAS,cAAcC,MAA2B,WAUlD,IAAMC,EAAmB,aAGnB,CAACC,CAAuB,EAAIC,EAAQ,mBAAmBF,EAAkB,CAC7EG,EAAoB,qBACtB,CAAC,EACKC,EAAqBD,EAAoB,sBAAsB,EAK/D,CAACE,EAAoBC,CAAoB,EAC7CL,EAAgDD,CAAgB,EAS5DO,EAAuB,aAC3B,CACE,CACE,MAAAC,EAAQC,EAAuB,MAAM,QACrC,KAAMC,EACN,GAAGC,CACL,EACAC,IACG,CACH,IAAMC,EAAOC,EAAaJ,EAAUD,EAAuB,IAAI,EACzD,CAAE,kBAAAM,EAAmB,UAAAC,EAAW,GAAGC,CAAU,EAAIN,EACjDO,EAAkBd,EAAmBW,CAAiB,EAC5D,OACE,gBAACV,EAAA,CACC,MAAOU,EACP,MAAOP,EACP,KAAMK,GAEN,gBAACV,EAAoB,KAApB,CACE,GAAGe,EACH,GAAGD,EACJ,IAAKL,EACL,UAAWO,EAAW,qBAAsBH,CAAS,EACvD,CACF,CAEJ,CACF,EACAT,EAAe,YAAc,kBAK7B,IAAMa,EAAuB,aAC3B,CAACC,EAA0CT,IAAiB,CAC1D,GAAM,CAAE,kBAAAG,EAAmB,SAAAO,EAAU,UAAAN,EAAW,MAAAO,EAAO,GAAGZ,CAAM,EAAIU,EAC9D,CAAE,KAAAR,CAAK,EAAIP,EAAqB,iBAAkBS,CAAiB,EAIzE,OAAIO,EAEA,gBAACE,EAAA,CACC,GAAG,QACH,KAAMX,EACN,UAAWM,EAAW,qBAAsBH,CAAS,EACrD,MAAOO,GAEP,gBAACE,EAAA,CACC,kBAAmBV,EAClB,GAAGJ,EACJ,IAAKC,EACP,EACCU,GAAY,gBAAC,QAAK,UAAU,2BAA2BA,CAAS,CACnE,EAKF,gBAACG,EAAA,CACC,kBAAmBV,EAClB,GAAGJ,EACJ,IAAKC,EACL,UAAWI,EACX,MAAOO,EACT,CAEJ,CACF,EACAH,EAAe,YAAc,kBAK7B,IAAMK,EAA4B,aAGhC,CAAC,CAAE,kBAAAV,EAAmB,GAAGJ,CAAM,EAAGC,IAAiB,CACnD,IAAMc,EAAUpB,EAAqB,sBAAuBS,CAAiB,EACvEG,EAAkBd,EAAmBW,CAAiB,EACtD,CAAE,MAAAP,EAAO,UAAAQ,CAAU,EAAIW,EAC3B,CAAE,GAAGhB,EAAO,GAAGe,CAAQ,EACvBjB,CACF,EACA,OACE,gBAACN,EAAoB,KAApB,CACE,GAAGe,EACJ,oBAAmBV,EAClB,GAAGG,EACJ,QAAS,GACT,IAAKC,EACL,UAAWO,EAAW,YAAa,oBAAqBH,CAAS,EACnE,CAEJ,CAAC,EACDS,EAAoB,YAAc",
6
- "names": ["radio_group_exports", "__export", "RadioGroupItem", "RadioGroupRoot", "React", "classNames", "Context", "RadioGroupPrimitive", "RADIO_GROUP_NAME", "createRadioGroupContext", "Context", "RadioGroupPrimitive", "useRadioGroupScope", "RadioGroupProvider", "useRadioGroupContext", "RadioGroupRoot", "color", "radioGroupRootPropDefs", "sizeProp", "props", "forwardedRef", "size", "useThemeSize", "__scopeRadioGroup", "className", "rootProps", "radioGroupScope", "classNames", "RadioGroupItem", "_props", "children", "style", "Text", "RadioGroupItemRadio", "context", "extractProps"]
3
+ "sources": ["../../src/components/radio-group.tsx", "../../src/components/radio-group.props.tsx"],
4
+ "sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { Context } from 'radix-ui/internal';\nimport { RadioGroup as RadioGroupPrimitive } from 'radix-ui';\n\nimport { radioGroupRootPropDefs } from './radio-group.props.js';\nimport { Text } from './text.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { useThemeSize } from '../hooks/theme-size.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\nconst RADIO_GROUP_NAME = 'RadioGroup';\n\ntype ScopedProps<P> = P & { __scopeRadioGroup?: Context.Scope };\nconst [createRadioGroupContext] = Context.createContextScope(RADIO_GROUP_NAME, [\n RadioGroupPrimitive.createRadioGroupScope,\n]);\nconst useRadioGroupScope = RadioGroupPrimitive.createRadioGroupScope();\n\ntype RadioGroupRootOwnProps = GetPropDefTypes<typeof radioGroupRootPropDefs>;\ntype RadioGroupContextValue = RadioGroupRootOwnProps;\n\nconst [RadioGroupProvider, useRadioGroupContext] =\n createRadioGroupContext<RadioGroupContextValue>(RADIO_GROUP_NAME);\n\ntype RadioGroupRootElement = React.ElementRef<typeof RadioGroupPrimitive.Root>;\ninterface RadioGroupRootProps\n extends ComponentPropsWithout<\n typeof RadioGroupPrimitive.Root,\n 'asChild' | 'color' | 'defaultChecked'\n >,\n RadioGroupRootOwnProps {}\nconst RadioGroupRoot = React.forwardRef<RadioGroupRootElement, RadioGroupRootProps>(\n (\n {\n color = radioGroupRootPropDefs.color.default,\n size: sizeProp,\n ...props\n }: ScopedProps<RadioGroupRootProps>,\n forwardedRef\n ) => {\n const size = useThemeSize(sizeProp, radioGroupRootPropDefs.size);\n const { __scopeRadioGroup, className, ...rootProps } = props;\n const radioGroupScope = useRadioGroupScope(__scopeRadioGroup);\n return (\n <RadioGroupProvider\n scope={__scopeRadioGroup}\n color={color}\n size={size}\n >\n <RadioGroupPrimitive.Root\n {...radioGroupScope}\n {...rootProps}\n ref={forwardedRef}\n className={classNames('kui-RadioGroupRoot', className)}\n />\n </RadioGroupProvider>\n );\n }\n);\nRadioGroupRoot.displayName = 'RadioGroup.Root';\n\ntype RadioGroupItemElement = React.ElementRef<typeof RadioGroupItemRadio>;\ninterface RadioGroupItemProps\n extends ComponentPropsWithout<typeof RadioGroupItemRadio, RemovedProps> {}\nconst RadioGroupItem = React.forwardRef<RadioGroupItemElement, RadioGroupItemProps>(\n (_props: ScopedProps<RadioGroupItemProps>, forwardedRef) => {\n const { __scopeRadioGroup, children, className, style, ...props } = _props;\n const { size } = useRadioGroupContext('RadioGroupItem', __scopeRadioGroup);\n\n // Render `<Text as=\"label\">` if children\u00A0are provided, otherwise render\n // the solo radio button to allow building out your custom layouts with it.\n if (children) {\n return (\n <Text\n as=\"label\"\n size={size}\n className={classNames('kui-RadioGroupItem', className)}\n style={style}\n >\n <RadioGroupItemRadio\n __scopeRadioGroup={__scopeRadioGroup}\n {...props}\n ref={forwardedRef}\n />\n {children && <span className=\"kui-RadioGroupItemInner\">{children}</span>}\n </Text>\n );\n }\n\n return (\n <RadioGroupItemRadio\n __scopeRadioGroup={__scopeRadioGroup}\n {...props}\n ref={forwardedRef}\n className={className}\n style={style}\n />\n );\n }\n);\nRadioGroupItem.displayName = 'RadioGroup.Item';\n\ntype RadioGroupItemRadioElement = React.ElementRef<typeof RadioGroupPrimitive.Item>;\ninterface RadioGroupItemRadioProps\n extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item> {}\nconst RadioGroupItemRadio = React.forwardRef<\n RadioGroupItemRadioElement,\n ScopedProps<RadioGroupItemRadioProps>\n>(({ __scopeRadioGroup, ...props }, forwardedRef) => {\n const context = useRadioGroupContext('RadioGroupItemRadio', __scopeRadioGroup);\n const radioGroupScope = useRadioGroupScope(__scopeRadioGroup);\n const { color, className } = extractProps(\n { ...props, ...context },\n radioGroupRootPropDefs\n );\n return (\n <RadioGroupPrimitive.Item\n {...radioGroupScope}\n data-accent-color={color}\n {...props}\n asChild={false}\n ref={forwardedRef}\n className={classNames('kui-reset', 'kui-BaseRadioRoot', className)}\n />\n );\n});\nRadioGroupItemRadio.displayName = 'RadioGroup.ItemRadio';\n\nexport { RadioGroupRoot as Root, RadioGroupItem as Item };\nexport type { RadioGroupRootProps as RootProps, RadioGroupItemProps as ItemProps };\n", "import { asChildPropDef } from '../props/as-child.prop.js';\nimport { colorPropDef } from '../props/color.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\n\nconst radioGroupRootPropDefs = {\n ...asChildPropDef,\n size: { type: 'enum', className: 'kui-r-size', values: sizes, default: '2', responsive: true },\n ...colorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport { radioGroupRootPropDefs };\n"],
5
+ "mappings": ";gPAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,UAAAE,EAAA,SAAAC,IAEA,UAAYC,MAAW,QACvB,OAAOC,MAAgB,aACvB,OAAS,WAAAC,MAAe,oBACxB,OAAS,cAAcC,MAA2B,WCAlD,IAAMC,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAE3BC,EAAyB,CAC7B,GAAGC,EACH,KAAM,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQF,EAAO,QAAS,IAAK,WAAY,EAAK,EAC7F,GAAGG,CACL,EDIA,IAAMC,EAAmB,aAGnB,CAACC,CAAuB,EAAIC,EAAQ,mBAAmBF,EAAkB,CAC7EG,EAAoB,qBACtB,CAAC,EACKC,EAAqBD,EAAoB,sBAAsB,EAK/D,CAACE,EAAoBC,CAAoB,EAC7CL,EAAgDD,CAAgB,EAS5DO,EAAuB,aAC3B,CACE,CACE,MAAAC,EAAQC,EAAuB,MAAM,QACrC,KAAMC,EACN,GAAGC,CACL,EACAC,IACG,CACH,IAAMC,EAAOC,EAAaJ,EAAUD,EAAuB,IAAI,EACzD,CAAE,kBAAAM,EAAmB,UAAAC,EAAW,GAAGC,CAAU,EAAIN,EACjDO,EAAkBd,EAAmBW,CAAiB,EAC5D,OACE,gBAACV,EAAA,CACC,MAAOU,EACP,MAAOP,EACP,KAAMK,GAEN,gBAACV,EAAoB,KAApB,CACE,GAAGe,EACH,GAAGD,EACJ,IAAKL,EACL,UAAWO,EAAW,qBAAsBH,CAAS,EACvD,CACF,CAEJ,CACF,EACAT,EAAe,YAAc,kBAK7B,IAAMa,EAAuB,aAC3B,CAACC,EAA0CT,IAAiB,CAC1D,GAAM,CAAE,kBAAAG,EAAmB,SAAAO,EAAU,UAAAN,EAAW,MAAAO,EAAO,GAAGZ,CAAM,EAAIU,EAC9D,CAAE,KAAAR,CAAK,EAAIP,EAAqB,iBAAkBS,CAAiB,EAIzE,OAAIO,EAEA,gBAACE,EAAA,CACC,GAAG,QACH,KAAMX,EACN,UAAWM,EAAW,qBAAsBH,CAAS,EACrD,MAAOO,GAEP,gBAACE,EAAA,CACC,kBAAmBV,EAClB,GAAGJ,EACJ,IAAKC,EACP,EACCU,GAAY,gBAAC,QAAK,UAAU,2BAA2BA,CAAS,CACnE,EAKF,gBAACG,EAAA,CACC,kBAAmBV,EAClB,GAAGJ,EACJ,IAAKC,EACL,UAAWI,EACX,MAAOO,EACT,CAEJ,CACF,EACAH,EAAe,YAAc,kBAK7B,IAAMK,EAA4B,aAGhC,CAAC,CAAE,kBAAAV,EAAmB,GAAGJ,CAAM,EAAGC,IAAiB,CACnD,IAAMc,EAAUpB,EAAqB,sBAAuBS,CAAiB,EACvEG,EAAkBd,EAAmBW,CAAiB,EACtD,CAAE,MAAAP,EAAO,UAAAQ,CAAU,EAAIW,EAC3B,CAAE,GAAGhB,EAAO,GAAGe,CAAQ,EACvBjB,CACF,EACA,OACE,gBAACN,EAAoB,KAApB,CACE,GAAGe,EACJ,oBAAmBV,EAClB,GAAGG,EACJ,QAAS,GACT,IAAKC,EACL,UAAWO,EAAW,YAAa,oBAAqBH,CAAS,EACnE,CAEJ,CAAC,EACDS,EAAoB,YAAc",
6
+ "names": ["radio_group_exports", "__export", "RadioGroupItem", "RadioGroupRoot", "React", "classNames", "Context", "RadioGroupPrimitive", "sizes", "radioGroupRootPropDefs", "asChildPropDef", "colorPropDef", "RADIO_GROUP_NAME", "createRadioGroupContext", "Context", "RadioGroupPrimitive", "useRadioGroupScope", "RadioGroupProvider", "useRadioGroupContext", "RadioGroupRoot", "color", "radioGroupRootPropDefs", "sizeProp", "props", "forwardedRef", "size", "useThemeSize", "__scopeRadioGroup", "className", "rootProps", "radioGroupScope", "classNames", "RadioGroupItem", "_props", "children", "style", "Text", "RadioGroupItemRadio", "context", "extractProps"]
7
7
  }
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{a as c}from"./chunk-6AMWYEM7.js";import{b as p}from"./chunk-G66WDIIV.js";import*as a from"react";import l from"classnames";var i=["xl","lg","md","sm","xs","initial"];function m(e,t,o){if(e==null)return o;if(typeof e!="object")return e;let s=e;for(let r=i.indexOf(t);r<i.length;r++){let n=s[i[r]];if(n!==void 0)return n}return o}function A(e,t){let o=typeof e=="object"&&e!==null,{breakpoint:s}=p(o);return m(e,s,t)}var d={1:8,2:12,3:16,4:24};function B(e){return-(d[e]??d[2])}var u={"\u2318":"Meta",cmd:"Meta",command:"Meta",meta:"Meta","\u2325":"Alt",option:"Alt",opt:"Alt",alt:"Alt","\u21E7":"Shift",shift:"Shift","\u2303":"Control",ctrl:"Control",control:"Control","\u232B":"Backspace","\u2326":"Delete","\u23CE":"Enter","\u21B5":"Enter","\u238B":"Escape",esc:"Escape","\u21E5":"Tab","\u2191":"ArrowUp","\u2193":"ArrowDown","\u2190":"ArrowLeft","\u2192":"ArrowRight"},f=new Map;function k(e){let t=f.get(e);if(t!==void 0)return t||void 0;let r=(e.match(/[⌘⌥⇧⌃]|[^\s+⌘⌥⇧⌃]+/gu)??[]).map(n=>u[n]??u[n.toLowerCase()]??(n.length===1?n.toUpperCase():n)).join("+");return f.set(e,r),r||void 0}function S({shortcut:e,className:t}){return a.createElement("div",{"aria-hidden":!0,className:l("kui-BaseMenuShortcut",t)},a.createElement(c,{size:"1"},e))}export{m as a,A as b,B as c,k as d,S as e};
3
- //# sourceMappingURL=chunk-XL5OHW6Z.js.map
2
+ import{a as c}from"./chunk-QPRUTOLI.js";import{b as p}from"./chunk-G66WDIIV.js";import*as a from"react";import l from"classnames";var i=["xl","lg","md","sm","xs","initial"];function m(e,t,o){if(e==null)return o;if(typeof e!="object")return e;let s=e;for(let r=i.indexOf(t);r<i.length;r++){let n=s[i[r]];if(n!==void 0)return n}return o}function A(e,t){let o=typeof e=="object"&&e!==null,{breakpoint:s}=p(o);return m(e,s,t)}var d={1:8,2:12,3:16,4:24};function B(e){return-(d[e]??d[2])}var u={"\u2318":"Meta",cmd:"Meta",command:"Meta",meta:"Meta","\u2325":"Alt",option:"Alt",opt:"Alt",alt:"Alt","\u21E7":"Shift",shift:"Shift","\u2303":"Control",ctrl:"Control",control:"Control","\u232B":"Backspace","\u2326":"Delete","\u23CE":"Enter","\u21B5":"Enter","\u238B":"Escape",esc:"Escape","\u21E5":"Tab","\u2191":"ArrowUp","\u2193":"ArrowDown","\u2190":"ArrowLeft","\u2192":"ArrowRight"},f=new Map;function k(e){let t=f.get(e);if(t!==void 0)return t||void 0;let r=(e.match(/[⌘⌥⇧⌃]|[^\s+⌘⌥⇧⌃]+/gu)??[]).map(n=>u[n]??u[n.toLowerCase()]??(n.length===1?n.toUpperCase():n)).join("+");return f.set(e,r),r||void 0}function S({shortcut:e,className:t}){return a.createElement("div",{"aria-hidden":!0,className:l("kui-BaseMenuShortcut",t)},a.createElement(c,{size:"1"},e))}export{m as a,A as b,B as c,k as d,S as e};
3
+ //# sourceMappingURL=chunk-EB4AG3OL.js.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-KEWNXANF.js";import{a as o}from"./chunk-SBRPXQWH.js";import{a as s}from"./chunk-SJXV4BWZ.js";import{a as p}from"./chunk-N6KH2EOU.js";import{d as r}from"./chunk-CUNKWFKA.js";import{a as e}from"./chunk-NZJGC6ZW.js";var i=["1","2","3","4","5","6","7","8","9"],n=["auto","always","hover","none"],D={...e,size:{type:"enum",className:"kui-r-size",values:i,responsive:!0},...p,...t,...s,...o,underline:{type:"enum",className:"kui-underline",values:n,default:"auto"},...r};export{D as a};
2
+ //# sourceMappingURL=chunk-EFXHBH3A.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/components/link.props.tsx"],
4
4
  "sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColorPropDef } from '../props/color.prop.js';\nimport { leadingTrimPropDef } from '../props/leading-trim.prop.js';\nimport { textWrapPropDef } from '../props/text-wrap.prop.js';\nimport { truncatePropDef } from '../props/truncate.prop.js';\nimport { weightPropDef } from '../props/weight.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4', '5', '6', '7', '8', '9'] as const;\nconst underline = ['auto', 'always', 'hover', 'none'] as const;\n\nconst linkPropDefs = {\n ...asChildPropDef,\n size: {\n type: 'enum',\n className: 'kui-r-size',\n values: sizes,\n responsive: true,\n },\n ...weightPropDef,\n ...leadingTrimPropDef,\n ...truncatePropDef,\n ...textWrapPropDef,\n underline: { type: 'enum', className: 'kui-underline', values: underline, default: 'auto' },\n ...accentColorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n underline: PropDef<(typeof underline)[number]>;\n};\n\nexport { linkPropDefs };\n"],
5
- "mappings": ";8KASA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,GAAG,EACpDC,EAAY,CAAC,OAAQ,SAAU,QAAS,MAAM,EAE9CC,EAAe,CACnB,GAAGC,EACH,KAAM,CACJ,KAAM,OACN,UAAW,aACX,OAAQH,EACR,WAAY,EACd,EACA,GAAGI,EACH,GAAGC,EACH,GAAGC,EACH,GAAGC,EACH,UAAW,CAAE,KAAM,OAAQ,UAAW,gBAAiB,OAAQN,EAAW,QAAS,MAAO,EAC1F,GAAGO,CACL",
5
+ "mappings": "gPASA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,GAAG,EACpDC,EAAY,CAAC,OAAQ,SAAU,QAAS,MAAM,EAE9CC,EAAe,CACnB,GAAGC,EACH,KAAM,CACJ,KAAM,OACN,UAAW,aACX,OAAQH,EACR,WAAY,EACd,EACA,GAAGI,EACH,GAAGC,EACH,GAAGC,EACH,GAAGC,EACH,UAAW,CAAE,KAAM,OAAQ,UAAW,gBAAiB,OAAQN,EAAW,QAAS,MAAO,EAC1F,GAAGO,CACL",
6
6
  "names": ["sizes", "underline", "linkPropDefs", "asChildPropDef", "weightPropDef", "leadingTrimPropDef", "truncatePropDef", "textWrapPropDef", "accentColorPropDef"]
7
7
  }
@@ -1,2 +1,2 @@
1
- import{a as d}from"./chunk-AX5S56DS.js";import{a as m}from"./chunk-E23RKOQJ.js";import{a as y,b as g}from"./chunk-JUY7CBSL.js";import{a as p}from"./chunk-RZCX6IBE.js";import h from"classnames";function V(n,i){let a=n.initial,o=!1;return i.hasDefault&&a===void 0&&(a=i.default,o=!0),i.enumValueSet!==void 0&&!i.enumValueSet.has(a)&&(a=i.default,o=!0),o?{...n,initial:a}:n}function T(n,...i){let{styling:a,passthrough:o,stylingKeys:P}=d(i),r={};for(let t in n)P.has(t)||(r[t]=n[t]);for(let t=0;t<o.length;t++){let e=o[t],s=r[e.key];if(s===void 0){e.hasDefault&&(r[e.key]=e.default);continue}e.enumValueSet!==void 0&&!e.enumValueSet.has(s)&&!p(s)&&(r[e.key]=e.default)}let f,l=[];for(let t=0;t<a.length;t++){let e=a[t],s=n[e.key];if(s===void 0&&e.hasDefault&&(s=e.default),e.enumValueSet!==void 0&&!e.enumValueSet.has(s)&&!p(s)&&(s=e.default),!!s){if(p(s)){if(!e.responsive)continue;s=V(s,e)}if(e.type==="enum"){let u=g({allowArbitraryValues:!1,value:s,className:e.className,propValues:e.values,propValueSet:e.valueSet,parseValue:e.parseValue});u&&l.push(u);continue}if(e.type==="string"||e.type==="enum | string"){let[u,c]=y({className:e.className,customProperties:e.customProperties,propValues:e.type==="string"?[]:e.values,propValueSet:e.type==="string"?void 0:e.valueSet,parseValue:e.parseValue,value:s});c&&(f=m(f,c)),u&&l.push(u);continue}if(e.type==="boolean"){l.push(e.className);continue}}}return r.className=h(l.length>0?l.join(" "):void 0,n.className),r.style=m(f,n.style),r}export{T as a};
2
- //# sourceMappingURL=chunk-6FLLFCBU.js.map
1
+ import{a as m}from"./chunk-E23RKOQJ.js";import{a as y,b as g}from"./chunk-PBFSBHBS.js";import{a as p}from"./chunk-RZCX6IBE.js";import{a as d}from"./chunk-AX5S56DS.js";import h from"classnames";function V(n,i){let a=n.initial,o=!1;return i.hasDefault&&a===void 0&&(a=i.default,o=!0),i.enumValueSet!==void 0&&!i.enumValueSet.has(a)&&(a=i.default,o=!0),o?{...n,initial:a}:n}function T(n,...i){let{styling:a,passthrough:o,stylingKeys:P}=d(i),r={};for(let t in n)P.has(t)||(r[t]=n[t]);for(let t=0;t<o.length;t++){let e=o[t],s=r[e.key];if(s===void 0){e.hasDefault&&(r[e.key]=e.default);continue}e.enumValueSet!==void 0&&!e.enumValueSet.has(s)&&!p(s)&&(r[e.key]=e.default)}let f,l=[];for(let t=0;t<a.length;t++){let e=a[t],s=n[e.key];if(s===void 0&&e.hasDefault&&(s=e.default),e.enumValueSet!==void 0&&!e.enumValueSet.has(s)&&!p(s)&&(s=e.default),!!s){if(p(s)){if(!e.responsive)continue;s=V(s,e)}if(e.type==="enum"){let u=g({allowArbitraryValues:!1,value:s,className:e.className,propValues:e.values,propValueSet:e.valueSet,parseValue:e.parseValue});u&&l.push(u);continue}if(e.type==="string"||e.type==="enum | string"){let[u,c]=y({className:e.className,customProperties:e.customProperties,propValues:e.type==="string"?[]:e.values,propValueSet:e.type==="string"?void 0:e.valueSet,parseValue:e.parseValue,value:s});c&&(f=m(f,c)),u&&l.push(u);continue}if(e.type==="boolean"){l.push(e.className);continue}}}return r.className=h(l.length>0?l.join(" "):void 0,n.className),r.style=m(f,n.style),r}export{T as a};
2
+ //# sourceMappingURL=chunk-ELAW7ZUG.js.map
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import{a as n}from"./chunk-LPLW7OWA.js";import{a as d}from"./chunk-L54FWKJE.js";import{c as m}from"./chunk-OKQAVYW4.js";import{b as a}from"./chunk-XU74PNM2.js";import*as e from"react";import v from"classnames";import{useComposedRefs as x,useLayoutEffect as N}from"radix-ui/internal";var W=["cover","contain","fill","scale-down","none"],f={...a,fit:{type:"enum",className:"kui-r-fit",values:W,default:"cover"}};var H=e.forwardRef((p,g)=>{let{width:o,height:r,...h}=p,u=typeof o=="number"?o:void 0,c=typeof r=="number"?r:void 0,{className:l,alt:P,radius:y,loading:w="lazy",decoding:I="async",onLoad:R,onError:b,...D}=m({...h,width:typeof o=="number"?void 0:o,height:typeof r=="number"?void 0:r},f,d,n),[j,s]=e.useState("loading"),i=e.useRef(null);N(()=>{let t=i.current;t?.complete?s(t.naturalWidth>0?"loaded":"error"):s("loading")},[p.src]);let E=x(i,g);return e.createElement("img",{...D,width:u,height:c,ref:E,alt:P,loading:w,decoding:I,"data-radius":y,"data-status":j,className:v("kui-Image",l),onLoad:t=>{s("loaded"),R?.(t)},onError:t=>{s("error"),b?.(t)}})});H.displayName="Image";export{H as a};
3
+ //# sourceMappingURL=chunk-ENQV6SEA.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/components/image.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nimport classNames from 'classnames';\nimport { useComposedRefs, useLayoutEffect } from 'radix-ui/internal';\n\nimport { imagePropDefs } from './image.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { widthPropDefs } from '../props/width.props.js';\nimport { heightPropDefs } from '../props/height.props.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { WidthProps } from '../props/width.props.js';\nimport type { HeightProps } from '../props/height.props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype ImageElement = React.ElementRef<'img'>;\ntype ImageOwnProps = GetPropDefTypes<typeof imagePropDefs>;\ntype ImageStatus = 'loading' | 'loaded' | 'error';\n\ninterface ImageProps\n extends ComponentPropsWithout<'img', RemovedProps | 'width' | 'height' | 'src' | 'alt'>,\n Omit<WidthProps, 'width'>,\n Omit<HeightProps, 'height'>,\n ImageOwnProps {\n src: string;\n /** Required. Pass `\"\"` for a decorative picture. */\n alt: string;\n /**\n * A number is the picture's intrinsic width in pixels, written as the `width` attribute, so the\n * browser reserves its box before it loads. A string or responsive object sets the CSS width.\n */\n width?: WidthProps['width'] | number;\n /** A number is the intrinsic height attribute; a string or responsive object sets the CSS height. */\n height?: HeightProps['height'] | number;\n}\n\n/**\n * A plain `<img>` that loads lazily, fills its box by `fit` and takes the theme's corner.\n * One element and no wrapper: `width`, `height`, `className` and `style` all land on the\n * `<img>` itself. Numeric `width` and `height` are the native attributes, which reserve the box.\n *\n * Until it loads it rests on a quiet neutral fill, which is also what stays if it fails.\n */\nconst Image = React.forwardRef<ImageElement, ImageProps>((props, forwardedRef) => {\n // Numbers are the native attributes, which give the browser an aspect ratio before load.\n const { width, height, ...layoutProps } = props;\n const widthAttribute = typeof width === 'number' ? width : undefined;\n const heightAttribute = typeof height === 'number' ? height : undefined;\n const { className, alt, radius, loading = 'lazy', decoding = 'async', onLoad, onError, ...imageProps } = extractProps(\n {\n ...layoutProps,\n width: typeof width === 'number' ? undefined : width,\n height: typeof height === 'number' ? undefined : height,\n },\n imagePropDefs,\n widthPropDefs,\n heightPropDefs,\n );\n\n const [status, setStatus] = React.useState<ImageStatus>('loading');\n const ref = React.useRef<HTMLImageElement>(null);\n\n // A cached image, or one that finished before hydration, never fires onLoad for us.\n useLayoutEffect(() => {\n const img = ref.current;\n if (img?.complete) setStatus(img.naturalWidth > 0 ? 'loaded' : 'error');\n else setStatus('loading');\n }, [props.src]);\n\n const setRefs = useComposedRefs(ref, forwardedRef);\n\n return (\n <img\n {...imageProps}\n width={widthAttribute}\n height={heightAttribute}\n ref={setRefs}\n alt={alt}\n loading={loading}\n decoding={decoding}\n data-radius={radius}\n data-status={status}\n className={classNames('kui-Image', className)}\n onLoad={(event) => {\n setStatus('loaded');\n onLoad?.(event);\n }}\n onError={(event) => {\n setStatus('error');\n onError?.(event);\n }}\n />\n );\n});\nImage.displayName = 'Image';\n\nexport { Image };\nexport type { ImageProps };\n"],
5
- "mappings": ";gKAAA,UAAYA,MAAW,QACvB,OAAOC,MAAgB,aACvB,OAAS,mBAAAC,EAAiB,mBAAAC,MAAuB,oBAwCjD,IAAMC,EAAc,aAAqC,CAACC,EAAOC,IAAiB,CAEhF,GAAM,CAAE,MAAAC,EAAO,OAAAC,EAAQ,GAAGC,CAAY,EAAIJ,EACpCK,EAAiB,OAAOH,GAAU,SAAWA,EAAQ,OACrDI,EAAkB,OAAOH,GAAW,SAAWA,EAAS,OACxD,CAAE,UAAAI,EAAW,IAAAC,EAAK,OAAAC,EAAQ,QAAAC,EAAU,OAAQ,SAAAC,EAAW,QAAS,OAAAC,EAAQ,QAAAC,EAAS,GAAGC,CAAW,EAAIC,EACvG,CACE,GAAGX,EACH,MAAO,OAAOF,GAAU,SAAW,OAAYA,EAC/C,OAAQ,OAAOC,GAAW,SAAW,OAAYA,CACnD,EACAa,EACAC,EACAC,CACF,EAEM,CAACC,EAAQC,CAAS,EAAU,WAAsB,SAAS,EAC3DC,EAAY,SAAyB,IAAI,EAG/CC,EAAgB,IAAM,CACpB,IAAMC,EAAMF,EAAI,QACZE,GAAK,SAAUH,EAAUG,EAAI,aAAe,EAAI,SAAW,OAAO,EACjEH,EAAU,SAAS,CAC1B,EAAG,CAACpB,EAAM,GAAG,CAAC,EAEd,IAAMwB,EAAUC,EAAgBJ,EAAKpB,CAAY,EAEjD,OACE,gBAAC,OACE,GAAGa,EACJ,MAAOT,EACP,OAAQC,EACR,IAAKkB,EACL,IAAKhB,EACL,QAASE,EACT,SAAUC,EACV,cAAaF,EACb,cAAaU,EACb,UAAWO,EAAW,YAAanB,CAAS,EAC5C,OAASoB,GAAU,CACjBP,EAAU,QAAQ,EAClBR,IAASe,CAAK,CAChB,EACA,QAAUA,GAAU,CAClBP,EAAU,OAAO,EACjBP,IAAUc,CAAK,CACjB,EACF,CAEJ,CAAC,EACD5B,EAAM,YAAc",
6
- "names": ["React", "classNames", "useComposedRefs", "useLayoutEffect", "Image", "props", "forwardedRef", "width", "height", "layoutProps", "widthAttribute", "heightAttribute", "className", "alt", "radius", "loading", "decoding", "onLoad", "onError", "imageProps", "extractProps", "imagePropDefs", "widthPropDefs", "heightPropDefs", "status", "setStatus", "ref", "useLayoutEffect", "img", "setRefs", "useComposedRefs", "classNames", "event"]
3
+ "sources": ["../../src/components/image.tsx", "../../src/components/image.props.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nimport classNames from 'classnames';\nimport { useComposedRefs, useLayoutEffect } from 'radix-ui/internal';\n\nimport { imagePropDefs } from './image.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { widthPropDefs } from '../props/width.props.js';\nimport { heightPropDefs } from '../props/height.props.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { WidthProps } from '../props/width.props.js';\nimport type { HeightProps } from '../props/height.props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype ImageElement = React.ElementRef<'img'>;\ntype ImageOwnProps = GetPropDefTypes<typeof imagePropDefs>;\ntype ImageStatus = 'loading' | 'loaded' | 'error';\n\ninterface ImageProps\n extends ComponentPropsWithout<'img', RemovedProps | 'width' | 'height' | 'src' | 'alt'>,\n Omit<WidthProps, 'width'>,\n Omit<HeightProps, 'height'>,\n ImageOwnProps {\n src: string;\n /** Required. Pass `\"\"` for a decorative picture. */\n alt: string;\n /**\n * A number is the picture's intrinsic width in pixels, written as the `width` attribute, so the\n * browser reserves its box before it loads. A string or responsive object sets the CSS width.\n */\n width?: WidthProps['width'] | number;\n /** A number is the intrinsic height attribute; a string or responsive object sets the CSS height. */\n height?: HeightProps['height'] | number;\n}\n\n/**\n * A plain `<img>` that loads lazily, fills its box by `fit` and takes the theme's corner.\n * One element and no wrapper: `width`, `height`, `className` and `style` all land on the\n * `<img>` itself. Numeric `width` and `height` are the native attributes, which reserve the box.\n *\n * Until it loads it rests on a quiet neutral fill, which is also what stays if it fails.\n */\nconst Image = React.forwardRef<ImageElement, ImageProps>((props, forwardedRef) => {\n // Numbers are the native attributes, which give the browser an aspect ratio before load.\n const { width, height, ...layoutProps } = props;\n const widthAttribute = typeof width === 'number' ? width : undefined;\n const heightAttribute = typeof height === 'number' ? height : undefined;\n const { className, alt, radius, loading = 'lazy', decoding = 'async', onLoad, onError, ...imageProps } = extractProps(\n {\n ...layoutProps,\n width: typeof width === 'number' ? undefined : width,\n height: typeof height === 'number' ? undefined : height,\n },\n imagePropDefs,\n widthPropDefs,\n heightPropDefs,\n );\n\n const [status, setStatus] = React.useState<ImageStatus>('loading');\n const ref = React.useRef<HTMLImageElement>(null);\n\n // A cached image, or one that finished before hydration, never fires onLoad for us.\n useLayoutEffect(() => {\n const img = ref.current;\n if (img?.complete) setStatus(img.naturalWidth > 0 ? 'loaded' : 'error');\n else setStatus('loading');\n }, [props.src]);\n\n const setRefs = useComposedRefs(ref, forwardedRef);\n\n return (\n <img\n {...imageProps}\n width={widthAttribute}\n height={heightAttribute}\n ref={setRefs}\n alt={alt}\n loading={loading}\n decoding={decoding}\n data-radius={radius}\n data-status={status}\n className={classNames('kui-Image', className)}\n onLoad={(event) => {\n setStatus('loaded');\n onLoad?.(event);\n }}\n onError={(event) => {\n setStatus('error');\n onError?.(event);\n }}\n />\n );\n});\nImage.displayName = 'Image';\n\nexport { Image };\nexport type { ImageProps };\n", "import { radiusPropDef } from '../props/radius.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst objectFitValues = ['cover', 'contain', 'fill', 'scale-down', 'none'] as const;\n\nconst imagePropDefs = {\n ...radiusPropDef,\n /**\n * How the picture fills its box, as CSS `object-fit`.\n * @link https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit\n */\n fit: { type: 'enum', className: 'kui-r-fit', values: objectFitValues, default: 'cover' },\n} satisfies {\n fit: PropDef<(typeof objectFitValues)[number]>;\n};\n\nexport { imagePropDefs };\n"],
5
+ "mappings": ";gKAAA,UAAYA,MAAW,QACvB,OAAOC,MAAgB,aACvB,OAAS,mBAAAC,EAAiB,mBAAAC,MAAuB,oBCEjD,IAAMC,EAAkB,CAAC,QAAS,UAAW,OAAQ,aAAc,MAAM,EAEnEC,EAAgB,CACpB,GAAGC,EAKH,IAAK,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQF,EAAiB,QAAS,OAAQ,CACzF,ED6BA,IAAMG,EAAc,aAAqC,CAACC,EAAOC,IAAiB,CAEhF,GAAM,CAAE,MAAAC,EAAO,OAAAC,EAAQ,GAAGC,CAAY,EAAIJ,EACpCK,EAAiB,OAAOH,GAAU,SAAWA,EAAQ,OACrDI,EAAkB,OAAOH,GAAW,SAAWA,EAAS,OACxD,CAAE,UAAAI,EAAW,IAAAC,EAAK,OAAAC,EAAQ,QAAAC,EAAU,OAAQ,SAAAC,EAAW,QAAS,OAAAC,EAAQ,QAAAC,EAAS,GAAGC,CAAW,EAAIC,EACvG,CACE,GAAGX,EACH,MAAO,OAAOF,GAAU,SAAW,OAAYA,EAC/C,OAAQ,OAAOC,GAAW,SAAW,OAAYA,CACnD,EACAa,EACAC,EACAC,CACF,EAEM,CAACC,EAAQC,CAAS,EAAU,WAAsB,SAAS,EAC3DC,EAAY,SAAyB,IAAI,EAG/CC,EAAgB,IAAM,CACpB,IAAMC,EAAMF,EAAI,QACZE,GAAK,SAAUH,EAAUG,EAAI,aAAe,EAAI,SAAW,OAAO,EACjEH,EAAU,SAAS,CAC1B,EAAG,CAACpB,EAAM,GAAG,CAAC,EAEd,IAAMwB,EAAUC,EAAgBJ,EAAKpB,CAAY,EAEjD,OACE,gBAAC,OACE,GAAGa,EACJ,MAAOT,EACP,OAAQC,EACR,IAAKkB,EACL,IAAKhB,EACL,QAASE,EACT,SAAUC,EACV,cAAaF,EACb,cAAaU,EACb,UAAWO,EAAW,YAAanB,CAAS,EAC5C,OAASoB,GAAU,CACjBP,EAAU,QAAQ,EAClBR,IAASe,CAAK,CAChB,EACA,QAAUA,GAAU,CAClBP,EAAU,OAAO,EACjBP,IAAUc,CAAK,CACjB,EACF,CAEJ,CAAC,EACD5B,EAAM,YAAc",
6
+ "names": ["React", "classNames", "useComposedRefs", "useLayoutEffect", "objectFitValues", "imagePropDefs", "radiusPropDef", "Image", "props", "forwardedRef", "width", "height", "layoutProps", "widthAttribute", "heightAttribute", "className", "alt", "radius", "loading", "decoding", "onLoad", "onError", "imageProps", "extractProps", "imagePropDefs", "widthPropDefs", "heightPropDefs", "status", "setStatus", "ref", "useLayoutEffect", "img", "setRefs", "useComposedRefs", "classNames", "event"]
7
7
  }