@raystack/apsara 1.0.0-rc.0 → 1.0.0-rc.2

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 (859) hide show
  1. package/dist/components/accordion/accordion-content.cjs +1 -2
  2. package/dist/components/accordion/accordion-content.cjs.map +1 -1
  3. package/dist/components/accordion/accordion-content.d.ts +5 -1
  4. package/dist/components/accordion/accordion-content.d.ts.map +1 -1
  5. package/dist/components/accordion/accordion-content.js +1 -2
  6. package/dist/components/accordion/accordion-content.js.map +1 -1
  7. package/dist/components/accordion/accordion-item.cjs +1 -2
  8. package/dist/components/accordion/accordion-item.cjs.map +1 -1
  9. package/dist/components/accordion/accordion-item.d.ts +5 -1
  10. package/dist/components/accordion/accordion-item.d.ts.map +1 -1
  11. package/dist/components/accordion/accordion-item.js +1 -2
  12. package/dist/components/accordion/accordion-item.js.map +1 -1
  13. package/dist/components/accordion/accordion-root.cjs +4 -5
  14. package/dist/components/accordion/accordion-root.cjs.map +1 -1
  15. package/dist/components/accordion/accordion-root.d.ts +4 -1
  16. package/dist/components/accordion/accordion-root.d.ts.map +1 -1
  17. package/dist/components/accordion/accordion-root.js +4 -5
  18. package/dist/components/accordion/accordion-root.js.map +1 -1
  19. package/dist/components/accordion/accordion-trigger.cjs +1 -2
  20. package/dist/components/accordion/accordion-trigger.cjs.map +1 -1
  21. package/dist/components/accordion/accordion-trigger.d.ts +5 -1
  22. package/dist/components/accordion/accordion-trigger.d.ts.map +1 -1
  23. package/dist/components/accordion/accordion-trigger.js +1 -2
  24. package/dist/components/accordion/accordion-trigger.js.map +1 -1
  25. package/dist/components/accordion/accordion.d.ts +16 -14
  26. package/dist/components/accordion/accordion.d.ts.map +1 -1
  27. package/dist/components/alert-dialog/__tests__/alert-dialog.test.d.ts +2 -0
  28. package/dist/components/alert-dialog/__tests__/alert-dialog.test.d.ts.map +1 -0
  29. package/dist/components/alert-dialog/alert-dialog-content.cjs +16 -0
  30. package/dist/components/alert-dialog/alert-dialog-content.cjs.map +1 -0
  31. package/dist/components/alert-dialog/alert-dialog-content.d.ts +18 -0
  32. package/dist/components/alert-dialog/alert-dialog-content.d.ts.map +1 -0
  33. package/dist/components/alert-dialog/alert-dialog-content.js +14 -0
  34. package/dist/components/alert-dialog/alert-dialog-content.js.map +1 -0
  35. package/dist/components/alert-dialog/alert-dialog-misc.cjs +36 -0
  36. package/dist/components/alert-dialog/alert-dialog-misc.cjs.map +1 -0
  37. package/dist/components/alert-dialog/alert-dialog-misc.d.ts +28 -0
  38. package/dist/components/alert-dialog/alert-dialog-misc.d.ts.map +1 -0
  39. package/dist/components/alert-dialog/alert-dialog-misc.js +29 -0
  40. package/dist/components/alert-dialog/alert-dialog-misc.js.map +1 -0
  41. package/dist/components/alert-dialog/alert-dialog.cjs +21 -0
  42. package/dist/components/alert-dialog/alert-dialog.cjs.map +1 -0
  43. package/dist/components/alert-dialog/alert-dialog.d.ts +62 -0
  44. package/dist/components/alert-dialog/alert-dialog.d.ts.map +1 -0
  45. package/dist/components/alert-dialog/alert-dialog.js +19 -0
  46. package/dist/components/alert-dialog/alert-dialog.js.map +1 -0
  47. package/dist/components/alert-dialog/index.d.ts +2 -0
  48. package/dist/components/alert-dialog/index.d.ts.map +1 -0
  49. package/dist/components/amount/amount.cjs +4 -5
  50. package/dist/components/amount/amount.cjs.map +1 -1
  51. package/dist/components/amount/amount.d.ts +6 -2
  52. package/dist/components/amount/amount.d.ts.map +1 -1
  53. package/dist/components/amount/amount.js +4 -5
  54. package/dist/components/amount/amount.js.map +1 -1
  55. package/dist/components/announcement-bar/announcement-bar.cjs +3 -2
  56. package/dist/components/announcement-bar/announcement-bar.cjs.map +1 -1
  57. package/dist/components/announcement-bar/announcement-bar.d.ts +6 -3
  58. package/dist/components/announcement-bar/announcement-bar.d.ts.map +1 -1
  59. package/dist/components/announcement-bar/announcement-bar.js +3 -2
  60. package/dist/components/announcement-bar/announcement-bar.js.map +1 -1
  61. package/dist/components/avatar/avatar.cjs +6 -5
  62. package/dist/components/avatar/avatar.cjs.map +1 -1
  63. package/dist/components/avatar/avatar.d.ts +12 -6
  64. package/dist/components/avatar/avatar.d.ts.map +1 -1
  65. package/dist/components/avatar/avatar.js +7 -6
  66. package/dist/components/avatar/avatar.js.map +1 -1
  67. package/dist/components/badge/badge.cjs +15 -15
  68. package/dist/components/badge/badge.cjs.map +1 -1
  69. package/dist/components/badge/badge.d.ts +5 -5
  70. package/dist/components/badge/badge.d.ts.map +1 -1
  71. package/dist/components/badge/badge.js +15 -15
  72. package/dist/components/badge/badge.js.map +1 -1
  73. package/dist/components/box/box.cjs +3 -7
  74. package/dist/components/box/box.cjs.map +1 -1
  75. package/dist/components/box/box.d.ts +2 -8
  76. package/dist/components/box/box.d.ts.map +1 -1
  77. package/dist/components/box/box.js +3 -7
  78. package/dist/components/box/box.js.map +1 -1
  79. package/dist/components/breadcrumb/breadcrumb-item.cjs +28 -14
  80. package/dist/components/breadcrumb/breadcrumb-item.cjs.map +1 -1
  81. package/dist/components/breadcrumb/breadcrumb-item.d.ts +19 -9
  82. package/dist/components/breadcrumb/breadcrumb-item.d.ts.map +1 -1
  83. package/dist/components/breadcrumb/breadcrumb-item.js +29 -15
  84. package/dist/components/breadcrumb/breadcrumb-item.js.map +1 -1
  85. package/dist/components/breadcrumb/breadcrumb-misc.cjs +8 -9
  86. package/dist/components/breadcrumb/breadcrumb-misc.cjs.map +1 -1
  87. package/dist/components/breadcrumb/breadcrumb-misc.d.ts +11 -5
  88. package/dist/components/breadcrumb/breadcrumb-misc.d.ts.map +1 -1
  89. package/dist/components/breadcrumb/breadcrumb-misc.js +8 -9
  90. package/dist/components/breadcrumb/breadcrumb-misc.js.map +1 -1
  91. package/dist/components/breadcrumb/breadcrumb-root.cjs +4 -5
  92. package/dist/components/breadcrumb/breadcrumb-root.cjs.map +1 -1
  93. package/dist/components/breadcrumb/breadcrumb-root.d.ts +9 -3
  94. package/dist/components/breadcrumb/breadcrumb-root.d.ts.map +1 -1
  95. package/dist/components/breadcrumb/breadcrumb-root.js +4 -5
  96. package/dist/components/breadcrumb/breadcrumb-root.js.map +1 -1
  97. package/dist/components/breadcrumb/breadcrumb.d.ts +16 -4
  98. package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -1
  99. package/dist/components/breadcrumb/breadcrumb.module.css.cjs +1 -1
  100. package/dist/components/breadcrumb/breadcrumb.module.css.js +1 -1
  101. package/dist/components/button/button.cjs +3 -4
  102. package/dist/components/button/button.cjs.map +1 -1
  103. package/dist/components/button/button.d.ts +6 -3
  104. package/dist/components/button/button.d.ts.map +1 -1
  105. package/dist/components/button/button.js +3 -4
  106. package/dist/components/button/button.js.map +1 -1
  107. package/dist/components/calendar/calendar.cjs +2 -1
  108. package/dist/components/calendar/calendar.cjs.map +1 -1
  109. package/dist/components/calendar/calendar.d.ts +4 -1
  110. package/dist/components/calendar/calendar.d.ts.map +1 -1
  111. package/dist/components/calendar/calendar.js +2 -1
  112. package/dist/components/calendar/calendar.js.map +1 -1
  113. package/dist/components/calendar/date-picker.cjs +3 -2
  114. package/dist/components/calendar/date-picker.cjs.map +1 -1
  115. package/dist/components/calendar/date-picker.d.ts +3 -0
  116. package/dist/components/calendar/date-picker.d.ts.map +1 -1
  117. package/dist/components/calendar/date-picker.js +4 -3
  118. package/dist/components/calendar/date-picker.js.map +1 -1
  119. package/dist/components/calendar/range-picker.cjs +2 -1
  120. package/dist/components/calendar/range-picker.cjs.map +1 -1
  121. package/dist/components/calendar/range-picker.d.ts +3 -0
  122. package/dist/components/calendar/range-picker.d.ts.map +1 -1
  123. package/dist/components/calendar/range-picker.js +3 -2
  124. package/dist/components/calendar/range-picker.js.map +1 -1
  125. package/dist/components/callout/callout.cjs +3 -4
  126. package/dist/components/callout/callout.cjs.map +1 -1
  127. package/dist/components/callout/callout.d.ts +7 -4
  128. package/dist/components/callout/callout.d.ts.map +1 -1
  129. package/dist/components/callout/callout.js +3 -4
  130. package/dist/components/callout/callout.js.map +1 -1
  131. package/dist/components/checkbox/checkbox.cjs +6 -5
  132. package/dist/components/checkbox/checkbox.cjs.map +1 -1
  133. package/dist/components/checkbox/checkbox.d.ts +13 -2
  134. package/dist/components/checkbox/checkbox.d.ts.map +1 -1
  135. package/dist/components/checkbox/checkbox.js +6 -5
  136. package/dist/components/checkbox/checkbox.js.map +1 -1
  137. package/dist/components/code-block/code-block-code.cjs +4 -4
  138. package/dist/components/code-block/code-block-code.cjs.map +1 -1
  139. package/dist/components/code-block/code-block-code.d.ts +6 -3
  140. package/dist/components/code-block/code-block-code.d.ts.map +1 -1
  141. package/dist/components/code-block/code-block-code.js +5 -5
  142. package/dist/components/code-block/code-block-code.js.map +1 -1
  143. package/dist/components/code-block/code-block-language-select.cjs +5 -6
  144. package/dist/components/code-block/code-block-language-select.cjs.map +1 -1
  145. package/dist/components/code-block/code-block-language-select.d.ts +6 -1
  146. package/dist/components/code-block/code-block-language-select.d.ts.map +1 -1
  147. package/dist/components/code-block/code-block-language-select.js +5 -6
  148. package/dist/components/code-block/code-block-language-select.js.map +1 -1
  149. package/dist/components/code-block/code-block-misc.cjs +20 -21
  150. package/dist/components/code-block/code-block-misc.cjs.map +1 -1
  151. package/dist/components/code-block/code-block-misc.d.ts +23 -90
  152. package/dist/components/code-block/code-block-misc.d.ts.map +1 -1
  153. package/dist/components/code-block/code-block-misc.js +20 -21
  154. package/dist/components/code-block/code-block-misc.js.map +1 -1
  155. package/dist/components/code-block/code-block-root.cjs +4 -4
  156. package/dist/components/code-block/code-block-root.cjs.map +1 -1
  157. package/dist/components/code-block/code-block-root.d.ts +6 -3
  158. package/dist/components/code-block/code-block-root.d.ts.map +1 -1
  159. package/dist/components/code-block/code-block-root.js +5 -5
  160. package/dist/components/code-block/code-block-root.js.map +1 -1
  161. package/dist/components/code-block/code-block.d.ts +18 -94
  162. package/dist/components/code-block/code-block.d.ts.map +1 -1
  163. package/dist/components/collapsible/collapsible.cjs +9 -4
  164. package/dist/components/collapsible/collapsible.cjs.map +1 -1
  165. package/dist/components/collapsible/collapsible.d.ts +17 -3
  166. package/dist/components/collapsible/collapsible.d.ts.map +1 -1
  167. package/dist/components/collapsible/collapsible.js +9 -4
  168. package/dist/components/collapsible/collapsible.js.map +1 -1
  169. package/dist/components/color-picker/color-picker-alpha.cjs +1 -0
  170. package/dist/components/color-picker/color-picker-alpha.cjs.map +1 -1
  171. package/dist/components/color-picker/color-picker-alpha.d.ts +4 -1
  172. package/dist/components/color-picker/color-picker-alpha.d.ts.map +1 -1
  173. package/dist/components/color-picker/color-picker-alpha.js +1 -0
  174. package/dist/components/color-picker/color-picker-alpha.js.map +1 -1
  175. package/dist/components/color-picker/color-picker-area.cjs +2 -1
  176. package/dist/components/color-picker/color-picker-area.cjs.map +1 -1
  177. package/dist/components/color-picker/color-picker-area.d.ts +6 -3
  178. package/dist/components/color-picker/color-picker-area.d.ts.map +1 -1
  179. package/dist/components/color-picker/color-picker-area.js +2 -1
  180. package/dist/components/color-picker/color-picker-area.js.map +1 -1
  181. package/dist/components/color-picker/color-picker-hue.cjs +1 -0
  182. package/dist/components/color-picker/color-picker-hue.cjs.map +1 -1
  183. package/dist/components/color-picker/color-picker-hue.d.ts +4 -1
  184. package/dist/components/color-picker/color-picker-hue.d.ts.map +1 -1
  185. package/dist/components/color-picker/color-picker-hue.js +1 -0
  186. package/dist/components/color-picker/color-picker-hue.js.map +1 -1
  187. package/dist/components/color-picker/color-picker-input.cjs +1 -0
  188. package/dist/components/color-picker/color-picker-input.cjs.map +1 -1
  189. package/dist/components/color-picker/color-picker-input.d.ts +5 -2
  190. package/dist/components/color-picker/color-picker-input.d.ts.map +1 -1
  191. package/dist/components/color-picker/color-picker-input.js +1 -0
  192. package/dist/components/color-picker/color-picker-input.js.map +1 -1
  193. package/dist/components/color-picker/color-picker-mode.cjs +2 -1
  194. package/dist/components/color-picker/color-picker-mode.cjs.map +1 -1
  195. package/dist/components/color-picker/color-picker-mode.d.ts +4 -1
  196. package/dist/components/color-picker/color-picker-mode.d.ts.map +1 -1
  197. package/dist/components/color-picker/color-picker-mode.js +2 -1
  198. package/dist/components/color-picker/color-picker-mode.js.map +1 -1
  199. package/dist/components/color-picker/color-picker-root.cjs +2 -1
  200. package/dist/components/color-picker/color-picker-root.cjs.map +1 -1
  201. package/dist/components/color-picker/color-picker-root.d.ts +6 -3
  202. package/dist/components/color-picker/color-picker-root.d.ts.map +1 -1
  203. package/dist/components/color-picker/color-picker-root.js +2 -1
  204. package/dist/components/color-picker/color-picker-root.js.map +1 -1
  205. package/dist/components/color-picker/color-picker.d.ts +24 -6
  206. package/dist/components/color-picker/color-picker.d.ts.map +1 -1
  207. package/dist/components/combobox/combobox-content.cjs +2 -3
  208. package/dist/components/combobox/combobox-content.cjs.map +1 -1
  209. package/dist/components/combobox/combobox-content.d.ts +4 -1
  210. package/dist/components/combobox/combobox-content.d.ts.map +1 -1
  211. package/dist/components/combobox/combobox-content.js +2 -3
  212. package/dist/components/combobox/combobox-content.js.map +1 -1
  213. package/dist/components/combobox/combobox-input.cjs +2 -3
  214. package/dist/components/combobox/combobox-input.cjs.map +1 -1
  215. package/dist/components/combobox/combobox-input.d.ts +7 -3
  216. package/dist/components/combobox/combobox-input.d.ts.map +1 -1
  217. package/dist/components/combobox/combobox-input.js +2 -3
  218. package/dist/components/combobox/combobox-input.js.map +1 -1
  219. package/dist/components/combobox/combobox-item.cjs +3 -4
  220. package/dist/components/combobox/combobox-item.cjs.map +1 -1
  221. package/dist/components/combobox/combobox-item.d.ts +4 -1
  222. package/dist/components/combobox/combobox-item.d.ts.map +1 -1
  223. package/dist/components/combobox/combobox-item.js +3 -4
  224. package/dist/components/combobox/combobox-item.js.map +1 -1
  225. package/dist/components/combobox/combobox-misc.cjs +9 -10
  226. package/dist/components/combobox/combobox-misc.cjs.map +1 -1
  227. package/dist/components/combobox/combobox-misc.d.ts +13 -3
  228. package/dist/components/combobox/combobox-misc.d.ts.map +1 -1
  229. package/dist/components/combobox/combobox-misc.js +9 -10
  230. package/dist/components/combobox/combobox-misc.js.map +1 -1
  231. package/dist/components/combobox/combobox-root.cjs +2 -1
  232. package/dist/components/combobox/combobox-root.cjs.map +1 -1
  233. package/dist/components/combobox/combobox-root.d.ts +4 -1
  234. package/dist/components/combobox/combobox-root.d.ts.map +1 -1
  235. package/dist/components/combobox/combobox-root.js +3 -2
  236. package/dist/components/combobox/combobox-root.js.map +1 -1
  237. package/dist/components/combobox/combobox.cjs +4 -1
  238. package/dist/components/combobox/combobox.cjs.map +1 -1
  239. package/dist/components/combobox/combobox.d.ts +31 -7
  240. package/dist/components/combobox/combobox.d.ts.map +1 -1
  241. package/dist/components/combobox/combobox.js +4 -1
  242. package/dist/components/combobox/combobox.js.map +1 -1
  243. package/dist/components/command/command.cjs +30 -16
  244. package/dist/components/command/command.cjs.map +1 -1
  245. package/dist/components/command/command.d.ts +51 -1
  246. package/dist/components/command/command.d.ts.map +1 -1
  247. package/dist/components/command/command.js +30 -16
  248. package/dist/components/command/command.js.map +1 -1
  249. package/dist/components/container/container.cjs +12 -11
  250. package/dist/components/container/container.cjs.map +1 -1
  251. package/dist/components/container/container.d.ts +6 -6
  252. package/dist/components/container/container.d.ts.map +1 -1
  253. package/dist/components/container/container.js +12 -11
  254. package/dist/components/container/container.js.map +1 -1
  255. package/dist/components/context-menu/__tests__/context-menu.test.d.ts +2 -0
  256. package/dist/components/context-menu/__tests__/context-menu.test.d.ts.map +1 -0
  257. package/dist/components/context-menu/context-menu-content.cjs +92 -0
  258. package/dist/components/context-menu/context-menu-content.cjs.map +1 -0
  259. package/dist/components/context-menu/context-menu-content.d.ts +13 -0
  260. package/dist/components/context-menu/context-menu-content.d.ts.map +1 -0
  261. package/dist/components/context-menu/context-menu-content.js +89 -0
  262. package/dist/components/context-menu/context-menu-content.js.map +1 -0
  263. package/dist/components/context-menu/context-menu-item.cjs +29 -0
  264. package/dist/components/context-menu/context-menu-item.cjs.map +1 -0
  265. package/dist/components/context-menu/context-menu-item.d.ts +10 -0
  266. package/dist/components/context-menu/context-menu-item.d.ts.map +1 -0
  267. package/dist/components/context-menu/context-menu-item.js +27 -0
  268. package/dist/components/context-menu/context-menu-item.js.map +1 -0
  269. package/dist/components/context-menu/context-menu-misc.cjs +42 -0
  270. package/dist/components/context-menu/context-menu-misc.cjs.map +1 -0
  271. package/dist/components/context-menu/context-menu-misc.d.ts +21 -0
  272. package/dist/components/context-menu/context-menu-misc.d.ts.map +1 -0
  273. package/dist/components/context-menu/context-menu-misc.js +37 -0
  274. package/dist/components/context-menu/context-menu-misc.js.map +1 -0
  275. package/dist/components/context-menu/context-menu-root.cjs +78 -0
  276. package/dist/components/context-menu/context-menu-root.cjs.map +1 -0
  277. package/dist/components/context-menu/context-menu-root.d.ts +40 -0
  278. package/dist/components/context-menu/context-menu-root.d.ts.map +1 -0
  279. package/dist/components/context-menu/context-menu-root.js +75 -0
  280. package/dist/components/context-menu/context-menu-root.js.map +1 -0
  281. package/dist/components/context-menu/context-menu-trigger.cjs +36 -0
  282. package/dist/components/context-menu/context-menu-trigger.cjs.map +1 -0
  283. package/dist/components/context-menu/context-menu-trigger.d.ts +16 -0
  284. package/dist/components/context-menu/context-menu-trigger.d.ts.map +1 -0
  285. package/dist/components/context-menu/context-menu-trigger.js +33 -0
  286. package/dist/components/context-menu/context-menu-trigger.js.map +1 -0
  287. package/dist/components/context-menu/context-menu.cjs +23 -0
  288. package/dist/components/context-menu/context-menu.cjs.map +1 -0
  289. package/dist/components/context-menu/context-menu.d.ts +46 -0
  290. package/dist/components/context-menu/context-menu.d.ts.map +1 -0
  291. package/dist/components/context-menu/context-menu.js +21 -0
  292. package/dist/components/context-menu/context-menu.js.map +1 -0
  293. package/dist/components/context-menu/index.d.ts +2 -0
  294. package/dist/components/context-menu/index.d.ts.map +1 -0
  295. package/dist/components/copy-button/copy-button.cjs +3 -3
  296. package/dist/components/copy-button/copy-button.cjs.map +1 -1
  297. package/dist/components/copy-button/copy-button.d.ts +4 -1
  298. package/dist/components/copy-button/copy-button.d.ts.map +1 -1
  299. package/dist/components/copy-button/copy-button.js +4 -4
  300. package/dist/components/copy-button/copy-button.js.map +1 -1
  301. package/dist/components/data-table/components/content.cjs +1 -0
  302. package/dist/components/data-table/components/content.cjs.map +1 -1
  303. package/dist/components/data-table/components/content.d.ts +3 -0
  304. package/dist/components/data-table/components/content.d.ts.map +1 -1
  305. package/dist/components/data-table/components/content.js +1 -0
  306. package/dist/components/data-table/components/content.js.map +1 -1
  307. package/dist/components/data-table/components/display-settings.cjs +1 -0
  308. package/dist/components/data-table/components/display-settings.cjs.map +1 -1
  309. package/dist/components/data-table/components/display-settings.d.ts +3 -0
  310. package/dist/components/data-table/components/display-settings.d.ts.map +1 -1
  311. package/dist/components/data-table/components/display-settings.js +1 -0
  312. package/dist/components/data-table/components/display-settings.js.map +1 -1
  313. package/dist/components/data-table/components/filters.cjs +1 -0
  314. package/dist/components/data-table/components/filters.cjs.map +1 -1
  315. package/dist/components/data-table/components/filters.d.ts +3 -0
  316. package/dist/components/data-table/components/filters.d.ts.map +1 -1
  317. package/dist/components/data-table/components/filters.js +1 -0
  318. package/dist/components/data-table/components/filters.js.map +1 -1
  319. package/dist/components/data-table/components/search.cjs +4 -5
  320. package/dist/components/data-table/components/search.cjs.map +1 -1
  321. package/dist/components/data-table/components/search.d.ts +7 -3
  322. package/dist/components/data-table/components/search.d.ts.map +1 -1
  323. package/dist/components/data-table/components/search.js +4 -5
  324. package/dist/components/data-table/components/search.js.map +1 -1
  325. package/dist/components/data-table/components/toolbar.cjs +1 -0
  326. package/dist/components/data-table/components/toolbar.cjs.map +1 -1
  327. package/dist/components/data-table/components/toolbar.d.ts +3 -0
  328. package/dist/components/data-table/components/toolbar.d.ts.map +1 -1
  329. package/dist/components/data-table/components/toolbar.js +1 -0
  330. package/dist/components/data-table/components/toolbar.js.map +1 -1
  331. package/dist/components/data-table/components/virtualized-content.cjs +1 -0
  332. package/dist/components/data-table/components/virtualized-content.cjs.map +1 -1
  333. package/dist/components/data-table/components/virtualized-content.d.ts +3 -0
  334. package/dist/components/data-table/components/virtualized-content.d.ts.map +1 -1
  335. package/dist/components/data-table/components/virtualized-content.js +1 -0
  336. package/dist/components/data-table/components/virtualized-content.js.map +1 -1
  337. package/dist/components/data-table/data-table.cjs +2 -1
  338. package/dist/components/data-table/data-table.cjs.map +1 -1
  339. package/dist/components/data-table/data-table.d.ts +5 -1
  340. package/dist/components/data-table/data-table.d.ts.map +1 -1
  341. package/dist/components/data-table/data-table.js +2 -1
  342. package/dist/components/data-table/data-table.js.map +1 -1
  343. package/dist/components/data-table/data-table.types.cjs.map +1 -1
  344. package/dist/components/data-table/data-table.types.d.ts +1 -0
  345. package/dist/components/data-table/data-table.types.d.ts.map +1 -1
  346. package/dist/components/data-table/data-table.types.js.map +1 -1
  347. package/dist/components/data-table/hooks/useFilters.cjs +6 -5
  348. package/dist/components/data-table/hooks/useFilters.cjs.map +1 -1
  349. package/dist/components/data-table/hooks/useFilters.d.ts.map +1 -1
  350. package/dist/components/data-table/hooks/useFilters.js +6 -5
  351. package/dist/components/data-table/hooks/useFilters.js.map +1 -1
  352. package/dist/components/data-table/utils/filter-operations.cjs +12 -3
  353. package/dist/components/data-table/utils/filter-operations.cjs.map +1 -1
  354. package/dist/components/data-table/utils/filter-operations.d.ts.map +1 -1
  355. package/dist/components/data-table/utils/filter-operations.js +12 -3
  356. package/dist/components/data-table/utils/filter-operations.js.map +1 -1
  357. package/dist/components/dialog/dialog-content.cjs +3 -4
  358. package/dist/components/dialog/dialog-content.cjs.map +1 -1
  359. package/dist/components/dialog/dialog-content.d.ts +4 -1
  360. package/dist/components/dialog/dialog-content.d.ts.map +1 -1
  361. package/dist/components/dialog/dialog-content.js +3 -4
  362. package/dist/components/dialog/dialog-content.js.map +1 -1
  363. package/dist/components/dialog/dialog-misc.cjs +18 -13
  364. package/dist/components/dialog/dialog-misc.cjs.map +1 -1
  365. package/dist/components/dialog/dialog-misc.d.ts +27 -33
  366. package/dist/components/dialog/dialog-misc.d.ts.map +1 -1
  367. package/dist/components/dialog/dialog-misc.js +18 -13
  368. package/dist/components/dialog/dialog-misc.js.map +1 -1
  369. package/dist/components/dialog/dialog.cjs +2 -1
  370. package/dist/components/dialog/dialog.cjs.map +1 -1
  371. package/dist/components/dialog/dialog.d.ts +10 -34
  372. package/dist/components/dialog/dialog.d.ts.map +1 -1
  373. package/dist/components/dialog/dialog.js +2 -1
  374. package/dist/components/dialog/dialog.js.map +1 -1
  375. package/dist/components/drawer/drawer-content.cjs +3 -4
  376. package/dist/components/drawer/drawer-content.cjs.map +1 -1
  377. package/dist/components/drawer/drawer-content.d.ts +7 -3
  378. package/dist/components/drawer/drawer-content.d.ts.map +1 -1
  379. package/dist/components/drawer/drawer-content.js +4 -5
  380. package/dist/components/drawer/drawer-content.js.map +1 -1
  381. package/dist/components/drawer/drawer-misc.cjs +12 -5
  382. package/dist/components/drawer/drawer-misc.cjs.map +1 -1
  383. package/dist/components/drawer/drawer-misc.d.ts +18 -5
  384. package/dist/components/drawer/drawer-misc.d.ts.map +1 -1
  385. package/dist/components/drawer/drawer-misc.js +13 -6
  386. package/dist/components/drawer/drawer-misc.js.map +1 -1
  387. package/dist/components/drawer/drawer-root.cjs +3 -3
  388. package/dist/components/drawer/drawer-root.cjs.map +1 -1
  389. package/dist/components/drawer/drawer-root.d.ts +1 -1
  390. package/dist/components/drawer/drawer-root.d.ts.map +1 -1
  391. package/dist/components/drawer/drawer-root.js +4 -4
  392. package/dist/components/drawer/drawer-root.js.map +1 -1
  393. package/dist/components/drawer/drawer.cjs +3 -2
  394. package/dist/components/drawer/drawer.cjs.map +1 -1
  395. package/dist/components/drawer/drawer.d.ts +9 -6
  396. package/dist/components/drawer/drawer.d.ts.map +1 -1
  397. package/dist/components/drawer/drawer.js +4 -3
  398. package/dist/components/drawer/drawer.js.map +1 -1
  399. package/dist/components/empty-state/empty-state.cjs +5 -4
  400. package/dist/components/empty-state/empty-state.cjs.map +1 -1
  401. package/dist/components/empty-state/empty-state.d.ts +12 -7
  402. package/dist/components/empty-state/empty-state.d.ts.map +1 -1
  403. package/dist/components/empty-state/empty-state.js +5 -4
  404. package/dist/components/empty-state/empty-state.js.map +1 -1
  405. package/dist/components/filter-chip/filter-chip.cjs +1 -2
  406. package/dist/components/filter-chip/filter-chip.cjs.map +1 -1
  407. package/dist/components/filter-chip/filter-chip.js +1 -2
  408. package/dist/components/filter-chip/filter-chip.js.map +1 -1
  409. package/dist/components/flex/flex.cjs +3 -3
  410. package/dist/components/flex/flex.cjs.map +1 -1
  411. package/dist/components/flex/flex.d.ts +7 -4
  412. package/dist/components/flex/flex.d.ts.map +1 -1
  413. package/dist/components/flex/flex.js +3 -3
  414. package/dist/components/flex/flex.js.map +1 -1
  415. package/dist/components/grid/grid-item.cjs +3 -4
  416. package/dist/components/grid/grid-item.cjs.map +1 -1
  417. package/dist/components/grid/grid-item.d.ts +4 -1
  418. package/dist/components/grid/grid-item.d.ts.map +1 -1
  419. package/dist/components/grid/grid-item.js +3 -4
  420. package/dist/components/grid/grid-item.js.map +1 -1
  421. package/dist/components/grid/grid.cjs +2 -2
  422. package/dist/components/grid/grid.cjs.map +1 -1
  423. package/dist/components/grid/grid.d.ts +4 -1
  424. package/dist/components/grid/grid.d.ts.map +1 -1
  425. package/dist/components/grid/grid.js +3 -3
  426. package/dist/components/grid/grid.js.map +1 -1
  427. package/dist/components/grid/index.d.ts +4 -31
  428. package/dist/components/grid/index.d.ts.map +1 -1
  429. package/dist/components/headline/headline.cjs +3 -4
  430. package/dist/components/headline/headline.cjs.map +1 -1
  431. package/dist/components/headline/headline.d.ts +8 -14
  432. package/dist/components/headline/headline.d.ts.map +1 -1
  433. package/dist/components/headline/headline.js +3 -4
  434. package/dist/components/headline/headline.js.map +1 -1
  435. package/dist/components/icon-button/icon-button.cjs +3 -2
  436. package/dist/components/icon-button/icon-button.cjs.map +1 -1
  437. package/dist/components/icon-button/icon-button.d.ts +6 -2
  438. package/dist/components/icon-button/icon-button.d.ts.map +1 -1
  439. package/dist/components/icon-button/icon-button.js +3 -2
  440. package/dist/components/icon-button/icon-button.js.map +1 -1
  441. package/dist/components/image/image.cjs.map +1 -1
  442. package/dist/components/image/image.d.ts +2 -4
  443. package/dist/components/image/image.d.ts.map +1 -1
  444. package/dist/components/image/image.js.map +1 -1
  445. package/dist/components/indicator/indicator.cjs +9 -9
  446. package/dist/components/indicator/indicator.cjs.map +1 -1
  447. package/dist/components/indicator/indicator.d.ts +4 -4
  448. package/dist/components/indicator/indicator.d.ts.map +1 -1
  449. package/dist/components/indicator/indicator.js +9 -9
  450. package/dist/components/indicator/indicator.js.map +1 -1
  451. package/dist/components/input-field/input-field.cjs +3 -4
  452. package/dist/components/input-field/input-field.cjs.map +1 -1
  453. package/dist/components/input-field/input-field.d.ts +6 -3
  454. package/dist/components/input-field/input-field.d.ts.map +1 -1
  455. package/dist/components/input-field/input-field.js +3 -4
  456. package/dist/components/input-field/input-field.js.map +1 -1
  457. package/dist/components/label/label.cjs +10 -9
  458. package/dist/components/label/label.cjs.map +1 -1
  459. package/dist/components/label/label.d.ts +6 -3
  460. package/dist/components/label/label.d.ts.map +1 -1
  461. package/dist/components/label/label.js +10 -9
  462. package/dist/components/label/label.js.map +1 -1
  463. package/dist/components/link/link.cjs +9 -10
  464. package/dist/components/link/link.cjs.map +1 -1
  465. package/dist/components/link/link.d.ts +7 -4
  466. package/dist/components/link/link.d.ts.map +1 -1
  467. package/dist/components/link/link.js +9 -10
  468. package/dist/components/link/link.js.map +1 -1
  469. package/dist/components/list/list.cjs +4 -4
  470. package/dist/components/list/list.cjs.map +1 -1
  471. package/dist/components/list/list.d.ts +6 -6
  472. package/dist/components/list/list.d.ts.map +1 -1
  473. package/dist/components/list/list.js +4 -4
  474. package/dist/components/list/list.js.map +1 -1
  475. package/dist/components/menu/cell.cjs +3 -2
  476. package/dist/components/menu/cell.cjs.map +1 -1
  477. package/dist/components/menu/cell.d.ts +6 -5
  478. package/dist/components/menu/cell.d.ts.map +1 -1
  479. package/dist/components/menu/cell.js +3 -2
  480. package/dist/components/menu/cell.js.map +1 -1
  481. package/dist/components/menu/menu-content.cjs +7 -7
  482. package/dist/components/menu/menu-content.cjs.map +1 -1
  483. package/dist/components/menu/menu-content.d.ts +8 -2
  484. package/dist/components/menu/menu-content.d.ts.map +1 -1
  485. package/dist/components/menu/menu-content.js +8 -8
  486. package/dist/components/menu/menu-content.js.map +1 -1
  487. package/dist/components/menu/menu-item.cjs +4 -5
  488. package/dist/components/menu/menu-item.cjs.map +1 -1
  489. package/dist/components/menu/menu-item.d.ts +4 -1
  490. package/dist/components/menu/menu-item.d.ts.map +1 -1
  491. package/dist/components/menu/menu-item.js +4 -5
  492. package/dist/components/menu/menu-item.js.map +1 -1
  493. package/dist/components/menu/menu-misc.cjs +12 -10
  494. package/dist/components/menu/menu-misc.cjs.map +1 -1
  495. package/dist/components/menu/menu-misc.d.ts +19 -6
  496. package/dist/components/menu/menu-misc.d.ts.map +1 -1
  497. package/dist/components/menu/menu-misc.js +13 -11
  498. package/dist/components/menu/menu-misc.js.map +1 -1
  499. package/dist/components/menu/menu-root.cjs +3 -3
  500. package/dist/components/menu/menu-root.cjs.map +1 -1
  501. package/dist/components/menu/menu-root.js +4 -4
  502. package/dist/components/menu/menu-root.js.map +1 -1
  503. package/dist/components/menu/menu-trigger.cjs +13 -10
  504. package/dist/components/menu/menu-trigger.cjs.map +1 -1
  505. package/dist/components/menu/menu-trigger.d.ts +8 -2
  506. package/dist/components/menu/menu-trigger.d.ts.map +1 -1
  507. package/dist/components/menu/menu-trigger.js +13 -10
  508. package/dist/components/menu/menu-trigger.js.map +1 -1
  509. package/dist/components/menu/menu.cjs +3 -1
  510. package/dist/components/menu/menu.cjs.map +1 -1
  511. package/dist/components/menu/menu.d.ts +15 -11
  512. package/dist/components/menu/menu.d.ts.map +1 -1
  513. package/dist/components/menu/menu.js +3 -1
  514. package/dist/components/menu/menu.js.map +1 -1
  515. package/dist/components/menu/menu.module.css.cjs +1 -1
  516. package/dist/components/menu/menu.module.css.js +1 -1
  517. package/dist/components/menubar/__tests__/menubar.test.d.ts +2 -0
  518. package/dist/components/menubar/__tests__/menubar.test.d.ts.map +1 -0
  519. package/dist/components/menubar/index.d.ts +2 -0
  520. package/dist/components/menubar/index.d.ts.map +1 -0
  521. package/dist/components/menubar/menubar.cjs +22 -0
  522. package/dist/components/menubar/menubar.cjs.map +1 -0
  523. package/dist/components/menubar/menubar.d.ts +9 -0
  524. package/dist/components/menubar/menubar.d.ts.map +1 -0
  525. package/dist/components/menubar/menubar.js +19 -0
  526. package/dist/components/menubar/menubar.js.map +1 -0
  527. package/dist/components/{box/box.module.css.cjs → menubar/menubar.module.css.cjs} +2 -2
  528. package/dist/components/menubar/menubar.module.css.cjs.map +1 -0
  529. package/dist/components/menubar/menubar.module.css.js +4 -0
  530. package/dist/components/menubar/menubar.module.css.js.map +1 -0
  531. package/dist/components/meter/__tests__/meter.test.d.ts +2 -0
  532. package/dist/components/meter/__tests__/meter.test.d.ts.map +1 -0
  533. package/dist/components/meter/index.d.ts +2 -0
  534. package/dist/components/meter/index.d.ts.map +1 -0
  535. package/dist/components/meter/meter-misc.cjs +20 -0
  536. package/dist/components/meter/meter-misc.cjs.map +1 -0
  537. package/dist/components/meter/meter-misc.d.ts +10 -0
  538. package/dist/components/meter/meter-misc.d.ts.map +1 -0
  539. package/dist/components/meter/meter-misc.js +17 -0
  540. package/dist/components/meter/meter-misc.js.map +1 -0
  541. package/dist/components/meter/meter-root.cjs +38 -0
  542. package/dist/components/meter/meter-root.cjs.map +1 -0
  543. package/dist/components/meter/meter-root.d.ts +19 -0
  544. package/dist/components/meter/meter-root.d.ts.map +1 -0
  545. package/dist/components/meter/meter-root.js +35 -0
  546. package/dist/components/meter/meter-root.js.map +1 -0
  547. package/dist/components/meter/meter-track.cjs +21 -0
  548. package/dist/components/meter/meter-track.cjs.map +1 -0
  549. package/dist/components/meter/meter-track.d.ts +6 -0
  550. package/dist/components/meter/meter-track.d.ts.map +1 -0
  551. package/dist/components/meter/meter-track.js +19 -0
  552. package/dist/components/meter/meter-track.js.map +1 -0
  553. package/dist/components/meter/meter.cjs +14 -0
  554. package/dist/components/meter/meter.cjs.map +1 -0
  555. package/dist/components/meter/meter.d.ts +9 -0
  556. package/dist/components/meter/meter.d.ts.map +1 -0
  557. package/dist/components/meter/meter.js +12 -0
  558. package/dist/components/meter/meter.js.map +1 -0
  559. package/dist/components/meter/meter.module.css.cjs +8 -0
  560. package/dist/components/meter/meter.module.css.cjs.map +1 -0
  561. package/dist/components/meter/meter.module.css.js +4 -0
  562. package/dist/components/meter/meter.module.css.js.map +1 -0
  563. package/dist/components/navbar/navbar-root.cjs +88 -4
  564. package/dist/components/navbar/navbar-root.cjs.map +1 -1
  565. package/dist/components/navbar/navbar-root.d.ts +11 -3
  566. package/dist/components/navbar/navbar-root.d.ts.map +1 -1
  567. package/dist/components/navbar/navbar-root.js +89 -5
  568. package/dist/components/navbar/navbar-root.js.map +1 -1
  569. package/dist/components/navbar/navbar-sections.cjs +11 -3
  570. package/dist/components/navbar/navbar-sections.cjs.map +1 -1
  571. package/dist/components/navbar/navbar-sections.d.ts +17 -5
  572. package/dist/components/navbar/navbar-sections.d.ts.map +1 -1
  573. package/dist/components/navbar/navbar-sections.js +11 -4
  574. package/dist/components/navbar/navbar-sections.js.map +1 -1
  575. package/dist/components/navbar/navbar.cjs +1 -0
  576. package/dist/components/navbar/navbar.cjs.map +1 -1
  577. package/dist/components/navbar/navbar.d.ts +16 -3
  578. package/dist/components/navbar/navbar.d.ts.map +1 -1
  579. package/dist/components/navbar/navbar.js +2 -1
  580. package/dist/components/navbar/navbar.js.map +1 -1
  581. package/dist/components/navbar/navbar.module.css.cjs +1 -1
  582. package/dist/components/navbar/navbar.module.css.js +1 -1
  583. package/dist/components/number-field/__tests__/number-field.test.d.ts +2 -0
  584. package/dist/components/number-field/__tests__/number-field.test.d.ts.map +1 -0
  585. package/dist/components/number-field/index.d.ts +3 -0
  586. package/dist/components/number-field/index.d.ts.map +1 -0
  587. package/dist/components/number-field/number-field.cjs +53 -0
  588. package/dist/components/number-field/number-field.cjs.map +1 -0
  589. package/dist/components/number-field/number-field.d.ts +38 -0
  590. package/dist/components/number-field/number-field.d.ts.map +1 -0
  591. package/dist/components/number-field/number-field.js +51 -0
  592. package/dist/components/number-field/number-field.js.map +1 -0
  593. package/dist/components/number-field/number-field.module.css.cjs +8 -0
  594. package/dist/components/number-field/number-field.module.css.cjs.map +1 -0
  595. package/dist/components/number-field/number-field.module.css.js +4 -0
  596. package/dist/components/number-field/number-field.module.css.js.map +1 -0
  597. package/dist/components/popover/popover.cjs +4 -4
  598. package/dist/components/popover/popover.cjs.map +1 -1
  599. package/dist/components/popover/popover.d.ts +8 -2
  600. package/dist/components/popover/popover.d.ts.map +1 -1
  601. package/dist/components/popover/popover.js +4 -4
  602. package/dist/components/popover/popover.js.map +1 -1
  603. package/dist/components/preview-card/preview-card.cjs +5 -4
  604. package/dist/components/preview-card/preview-card.cjs.map +1 -1
  605. package/dist/components/preview-card/preview-card.d.ts +12 -3
  606. package/dist/components/preview-card/preview-card.d.ts.map +1 -1
  607. package/dist/components/preview-card/preview-card.js +5 -4
  608. package/dist/components/preview-card/preview-card.js.map +1 -1
  609. package/dist/components/progress/__tests__/progress.test.d.ts +2 -0
  610. package/dist/components/progress/__tests__/progress.test.d.ts.map +1 -0
  611. package/dist/components/progress/index.d.ts +2 -0
  612. package/dist/components/progress/index.d.ts.map +1 -0
  613. package/dist/components/progress/progress-misc.cjs +20 -0
  614. package/dist/components/progress/progress-misc.cjs.map +1 -0
  615. package/dist/components/progress/progress-misc.d.ts +10 -0
  616. package/dist/components/progress/progress-misc.d.ts.map +1 -0
  617. package/dist/components/progress/progress-misc.js +17 -0
  618. package/dist/components/progress/progress-misc.js.map +1 -0
  619. package/dist/components/progress/progress-root.cjs +38 -0
  620. package/dist/components/progress/progress-root.cjs.map +1 -0
  621. package/dist/components/progress/progress-root.d.ts +19 -0
  622. package/dist/components/progress/progress-root.d.ts.map +1 -0
  623. package/dist/components/progress/progress-root.js +35 -0
  624. package/dist/components/progress/progress-root.js.map +1 -0
  625. package/dist/components/progress/progress-track.cjs +21 -0
  626. package/dist/components/progress/progress-track.cjs.map +1 -0
  627. package/dist/components/progress/progress-track.d.ts +6 -0
  628. package/dist/components/progress/progress-track.d.ts.map +1 -0
  629. package/dist/components/progress/progress-track.js +19 -0
  630. package/dist/components/progress/progress-track.js.map +1 -0
  631. package/dist/components/progress/progress.cjs +14 -0
  632. package/dist/components/progress/progress.cjs.map +1 -0
  633. package/dist/components/progress/progress.d.ts +9 -0
  634. package/dist/components/progress/progress.d.ts.map +1 -0
  635. package/dist/components/progress/progress.js +12 -0
  636. package/dist/components/progress/progress.js.map +1 -0
  637. package/dist/components/progress/progress.module.css.cjs +8 -0
  638. package/dist/components/progress/progress.module.css.cjs.map +1 -0
  639. package/dist/components/progress/progress.module.css.js +4 -0
  640. package/dist/components/progress/progress.module.css.js.map +1 -0
  641. package/dist/components/radio/radio.cjs +6 -3
  642. package/dist/components/radio/radio.cjs.map +1 -1
  643. package/dist/components/radio/radio.d.ts +11 -2
  644. package/dist/components/radio/radio.d.ts.map +1 -1
  645. package/dist/components/radio/radio.js +6 -3
  646. package/dist/components/radio/radio.js.map +1 -1
  647. package/dist/components/scroll-area/scroll-area-scrollbar.cjs +4 -5
  648. package/dist/components/scroll-area/scroll-area-scrollbar.cjs.map +1 -1
  649. package/dist/components/scroll-area/scroll-area-scrollbar.d.ts +4 -1
  650. package/dist/components/scroll-area/scroll-area-scrollbar.d.ts.map +1 -1
  651. package/dist/components/scroll-area/scroll-area-scrollbar.js +4 -5
  652. package/dist/components/scroll-area/scroll-area-scrollbar.js.map +1 -1
  653. package/dist/components/scroll-area/scroll-area.cjs +3 -4
  654. package/dist/components/scroll-area/scroll-area.cjs.map +1 -1
  655. package/dist/components/scroll-area/scroll-area.d.ts +4 -1
  656. package/dist/components/scroll-area/scroll-area.d.ts.map +1 -1
  657. package/dist/components/scroll-area/scroll-area.js +3 -4
  658. package/dist/components/scroll-area/scroll-area.js.map +1 -1
  659. package/dist/components/search/search.cjs +3 -4
  660. package/dist/components/search/search.cjs.map +1 -1
  661. package/dist/components/search/search.d.ts +4 -1
  662. package/dist/components/search/search.d.ts.map +1 -1
  663. package/dist/components/search/search.js +3 -4
  664. package/dist/components/search/search.js.map +1 -1
  665. package/dist/components/select/select-content.cjs +4 -5
  666. package/dist/components/select/select-content.cjs.map +1 -1
  667. package/dist/components/select/select-content.d.ts +6 -7
  668. package/dist/components/select/select-content.d.ts.map +1 -1
  669. package/dist/components/select/select-content.js +4 -5
  670. package/dist/components/select/select-content.js.map +1 -1
  671. package/dist/components/select/select-item.cjs +3 -3
  672. package/dist/components/select/select-item.cjs.map +1 -1
  673. package/dist/components/select/select-item.d.ts +6 -6
  674. package/dist/components/select/select-item.d.ts.map +1 -1
  675. package/dist/components/select/select-item.js +4 -4
  676. package/dist/components/select/select-item.js.map +1 -1
  677. package/dist/components/select/select-misc.cjs +9 -9
  678. package/dist/components/select/select-misc.cjs.map +1 -1
  679. package/dist/components/select/select-misc.d.ts +16 -12
  680. package/dist/components/select/select-misc.d.ts.map +1 -1
  681. package/dist/components/select/select-misc.js +10 -10
  682. package/dist/components/select/select-misc.js.map +1 -1
  683. package/dist/components/select/select-root.cjs +3 -2
  684. package/dist/components/select/select-root.cjs.map +1 -1
  685. package/dist/components/select/select-root.d.ts +4 -1
  686. package/dist/components/select/select-root.d.ts.map +1 -1
  687. package/dist/components/select/select-root.js +4 -3
  688. package/dist/components/select/select-root.js.map +1 -1
  689. package/dist/components/select/select-trigger.cjs +2 -3
  690. package/dist/components/select/select-trigger.cjs.map +1 -1
  691. package/dist/components/select/select-trigger.d.ts +7 -3
  692. package/dist/components/select/select-trigger.d.ts.map +1 -1
  693. package/dist/components/select/select-trigger.js +2 -3
  694. package/dist/components/select/select-trigger.js.map +1 -1
  695. package/dist/components/select/select-value.cjs +6 -6
  696. package/dist/components/select/select-value.cjs.map +1 -1
  697. package/dist/components/select/select-value.d.ts +6 -3
  698. package/dist/components/select/select-value.d.ts.map +1 -1
  699. package/dist/components/select/select-value.js +7 -7
  700. package/dist/components/select/select-value.js.map +1 -1
  701. package/dist/components/select/select.d.ts +16 -18
  702. package/dist/components/select/select.d.ts.map +1 -1
  703. package/dist/components/side-panel/side-panel.cjs +9 -6
  704. package/dist/components/side-panel/side-panel.cjs.map +1 -1
  705. package/dist/components/side-panel/side-panel.d.ts +16 -10
  706. package/dist/components/side-panel/side-panel.d.ts.map +1 -1
  707. package/dist/components/side-panel/side-panel.js +10 -7
  708. package/dist/components/side-panel/side-panel.js.map +1 -1
  709. package/dist/components/sidebar/sidebar-item.cjs +2 -3
  710. package/dist/components/sidebar/sidebar-item.cjs.map +1 -1
  711. package/dist/components/sidebar/sidebar-item.d.ts +6 -3
  712. package/dist/components/sidebar/sidebar-item.d.ts.map +1 -1
  713. package/dist/components/sidebar/sidebar-item.js +3 -4
  714. package/dist/components/sidebar/sidebar-item.js.map +1 -1
  715. package/dist/components/sidebar/sidebar-main.cjs +3 -2
  716. package/dist/components/sidebar/sidebar-main.cjs.map +1 -1
  717. package/dist/components/sidebar/sidebar-main.d.ts +6 -1
  718. package/dist/components/sidebar/sidebar-main.d.ts.map +1 -1
  719. package/dist/components/sidebar/sidebar-main.js +3 -2
  720. package/dist/components/sidebar/sidebar-main.js.map +1 -1
  721. package/dist/components/sidebar/sidebar-misc.cjs +9 -4
  722. package/dist/components/sidebar/sidebar-misc.cjs.map +1 -1
  723. package/dist/components/sidebar/sidebar-misc.d.ts +15 -5
  724. package/dist/components/sidebar/sidebar-misc.d.ts.map +1 -1
  725. package/dist/components/sidebar/sidebar-misc.js +9 -4
  726. package/dist/components/sidebar/sidebar-misc.js.map +1 -1
  727. package/dist/components/sidebar/sidebar-root.cjs +3 -3
  728. package/dist/components/sidebar/sidebar-root.cjs.map +1 -1
  729. package/dist/components/sidebar/sidebar-root.d.ts +6 -3
  730. package/dist/components/sidebar/sidebar-root.d.ts.map +1 -1
  731. package/dist/components/sidebar/sidebar-root.js +4 -4
  732. package/dist/components/sidebar/sidebar-root.js.map +1 -1
  733. package/dist/components/sidebar/sidebar.d.ts +10 -6
  734. package/dist/components/sidebar/sidebar.d.ts.map +1 -1
  735. package/dist/components/skeleton/skeleton.cjs +3 -1
  736. package/dist/components/skeleton/skeleton.cjs.map +1 -1
  737. package/dist/components/skeleton/skeleton.d.ts +10 -4
  738. package/dist/components/skeleton/skeleton.d.ts.map +1 -1
  739. package/dist/components/skeleton/skeleton.js +3 -1
  740. package/dist/components/skeleton/skeleton.js.map +1 -1
  741. package/dist/components/slider/slider.cjs +5 -4
  742. package/dist/components/slider/slider.cjs.map +1 -1
  743. package/dist/components/slider/slider.d.ts +5 -1
  744. package/dist/components/slider/slider.d.ts.map +1 -1
  745. package/dist/components/slider/slider.js +6 -5
  746. package/dist/components/slider/slider.js.map +1 -1
  747. package/dist/components/spinner/spinner.cjs +17 -16
  748. package/dist/components/spinner/spinner.cjs.map +1 -1
  749. package/dist/components/spinner/spinner.d.ts +9 -6
  750. package/dist/components/spinner/spinner.d.ts.map +1 -1
  751. package/dist/components/spinner/spinner.js +17 -16
  752. package/dist/components/spinner/spinner.js.map +1 -1
  753. package/dist/components/switch/switch.cjs +3 -2
  754. package/dist/components/switch/switch.cjs.map +1 -1
  755. package/dist/components/switch/switch.d.ts +4 -1
  756. package/dist/components/switch/switch.d.ts.map +1 -1
  757. package/dist/components/switch/switch.js +3 -2
  758. package/dist/components/switch/switch.js.map +1 -1
  759. package/dist/components/table/table.cjs +28 -22
  760. package/dist/components/table/table.cjs.map +1 -1
  761. package/dist/components/table/table.d.ts +43 -25
  762. package/dist/components/table/table.d.ts.map +1 -1
  763. package/dist/components/table/table.js +28 -22
  764. package/dist/components/table/table.js.map +1 -1
  765. package/dist/components/tabs/tabs.cjs +13 -6
  766. package/dist/components/tabs/tabs.cjs.map +1 -1
  767. package/dist/components/tabs/tabs.d.ts +22 -6
  768. package/dist/components/tabs/tabs.d.ts.map +1 -1
  769. package/dist/components/tabs/tabs.js +13 -6
  770. package/dist/components/tabs/tabs.js.map +1 -1
  771. package/dist/components/text/text.cjs +5 -4
  772. package/dist/components/text/text.cjs.map +1 -1
  773. package/dist/components/text/text.d.ts +14 -12
  774. package/dist/components/text/text.d.ts.map +1 -1
  775. package/dist/components/text/text.js +5 -4
  776. package/dist/components/text/text.js.map +1 -1
  777. package/dist/components/text-area/text-area.cjs +3 -23
  778. package/dist/components/text-area/text-area.cjs.map +1 -1
  779. package/dist/components/text-area/text-area.d.ts +7 -5
  780. package/dist/components/text-area/text-area.d.ts.map +1 -1
  781. package/dist/components/text-area/text-area.js +3 -4
  782. package/dist/components/text-area/text-area.js.map +1 -1
  783. package/dist/components/theme-provider/theme.cjs +4 -3
  784. package/dist/components/theme-provider/theme.cjs.map +1 -1
  785. package/dist/components/theme-provider/theme.d.ts +4 -2
  786. package/dist/components/theme-provider/theme.d.ts.map +1 -1
  787. package/dist/components/theme-provider/theme.js +4 -3
  788. package/dist/components/theme-provider/theme.js.map +1 -1
  789. package/dist/components/toast/toast-provider.cjs +3 -4
  790. package/dist/components/toast/toast-provider.cjs.map +1 -1
  791. package/dist/components/toast/toast-provider.d.ts +5 -2
  792. package/dist/components/toast/toast-provider.d.ts.map +1 -1
  793. package/dist/components/toast/toast-provider.js +3 -4
  794. package/dist/components/toast/toast-provider.js.map +1 -1
  795. package/dist/components/toast/toast-root.cjs +3 -4
  796. package/dist/components/toast/toast-root.cjs.map +1 -1
  797. package/dist/components/toast/toast-root.d.ts +5 -3
  798. package/dist/components/toast/toast-root.d.ts.map +1 -1
  799. package/dist/components/toast/toast-root.js +3 -4
  800. package/dist/components/toast/toast-root.js.map +1 -1
  801. package/dist/components/toast/toast.d.ts +4 -2
  802. package/dist/components/toast/toast.d.ts.map +1 -1
  803. package/dist/components/toggle/__tests__/toggle.test.d.ts +2 -0
  804. package/dist/components/toggle/__tests__/toggle.test.d.ts.map +1 -0
  805. package/dist/components/toggle/index.d.ts +2 -0
  806. package/dist/components/toggle/index.d.ts.map +1 -0
  807. package/dist/components/toggle/toggle.cjs +36 -0
  808. package/dist/components/toggle/toggle.cjs.map +1 -0
  809. package/dist/components/toggle/toggle.d.ts +22 -0
  810. package/dist/components/toggle/toggle.d.ts.map +1 -0
  811. package/dist/components/toggle/toggle.js +34 -0
  812. package/dist/components/toggle/toggle.js.map +1 -0
  813. package/dist/components/toggle/toggle.module.css.cjs +8 -0
  814. package/dist/components/toggle/toggle.module.css.cjs.map +1 -0
  815. package/dist/components/toggle/toggle.module.css.js +4 -0
  816. package/dist/components/toggle/toggle.module.css.js.map +1 -0
  817. package/dist/components/toolbar/__tests__/toolbar.test.d.ts +2 -0
  818. package/dist/components/toolbar/__tests__/toolbar.test.d.ts.map +1 -0
  819. package/dist/components/toolbar/index.d.ts +2 -0
  820. package/dist/components/toolbar/index.d.ts.map +1 -0
  821. package/dist/components/toolbar/toolbar.cjs +25 -0
  822. package/dist/components/toolbar/toolbar.cjs.map +1 -0
  823. package/dist/components/toolbar/toolbar.d.ts +20 -0
  824. package/dist/components/toolbar/toolbar.d.ts.map +1 -0
  825. package/dist/components/toolbar/toolbar.js +23 -0
  826. package/dist/components/toolbar/toolbar.js.map +1 -0
  827. package/dist/components/toolbar/toolbar.module.css.cjs +8 -0
  828. package/dist/components/toolbar/toolbar.module.css.cjs.map +1 -0
  829. package/dist/components/toolbar/toolbar.module.css.js +4 -0
  830. package/dist/components/toolbar/toolbar.module.css.js.map +1 -0
  831. package/dist/components/tooltip/tooltip-content.cjs +2 -3
  832. package/dist/components/tooltip/tooltip-content.cjs.map +1 -1
  833. package/dist/components/tooltip/tooltip-content.d.ts +5 -2
  834. package/dist/components/tooltip/tooltip-content.d.ts.map +1 -1
  835. package/dist/components/tooltip/tooltip-content.js +2 -3
  836. package/dist/components/tooltip/tooltip-content.js.map +1 -1
  837. package/dist/components/tooltip/tooltip-misc.cjs +3 -4
  838. package/dist/components/tooltip/tooltip-misc.cjs.map +1 -1
  839. package/dist/components/tooltip/tooltip-misc.d.ts +4 -1
  840. package/dist/components/tooltip/tooltip-misc.d.ts.map +1 -1
  841. package/dist/components/tooltip/tooltip-misc.js +3 -4
  842. package/dist/components/tooltip/tooltip-misc.js.map +1 -1
  843. package/dist/components/tooltip/tooltip.cjs +2 -1
  844. package/dist/components/tooltip/tooltip.cjs.map +1 -1
  845. package/dist/components/tooltip/tooltip.d.ts +5 -2
  846. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  847. package/dist/components/tooltip/tooltip.js +2 -1
  848. package/dist/components/tooltip/tooltip.js.map +1 -1
  849. package/dist/index.cjs +16 -0
  850. package/dist/index.cjs.map +1 -1
  851. package/dist/index.d.ts +8 -0
  852. package/dist/index.d.ts.map +1 -1
  853. package/dist/index.js +8 -0
  854. package/dist/index.js.map +1 -1
  855. package/dist/style.css +1 -1
  856. package/package.json +7 -6
  857. package/dist/components/box/box.module.css.cjs.map +0 -1
  858. package/dist/components/box/box.module.css.js +0 -4
  859. package/dist/components/box/box.module.css.js.map +0 -1
@@ -2,30 +2,29 @@
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { Combobox } from '@base-ui/react';
4
4
  import { cx } from 'class-variance-authority';
5
- import { forwardRef } from 'react';
6
5
  import styles from './combobox.module.css.js';
7
6
  import { useComboboxContext } from './combobox-root.js';
8
7
 
9
- const ComboboxLabel = forwardRef(({ className, ...props }, ref) => {
8
+ const ComboboxLabel = ({ className, ...props }) => {
10
9
  const { inputValue, hasItems } = useComboboxContext();
11
10
  if (!hasItems && inputValue?.length)
12
11
  return null;
13
- return (jsx(Combobox.GroupLabel, { ref: ref, className: cx(styles.label, className), ...props }));
14
- });
12
+ return (jsx(Combobox.GroupLabel, { className: cx(styles.label, className), ...props }));
13
+ };
15
14
  ComboboxLabel.displayName = 'Combobox.Label';
16
- const ComboboxGroup = forwardRef(({ className, children, ...props }, ref) => {
15
+ const ComboboxGroup = ({ className, children, ...props }) => {
17
16
  const { inputValue, hasItems } = useComboboxContext();
18
17
  if (!hasItems && inputValue?.length)
19
18
  return children;
20
- return (jsx(Combobox.Group, { ref: ref, className: cx(styles.group, className), ...props, children: children }));
21
- });
19
+ return (jsx(Combobox.Group, { className: cx(styles.group, className), ...props, children: children }));
20
+ };
22
21
  ComboboxGroup.displayName = 'Combobox.Group';
23
- const ComboboxSeparator = forwardRef(({ className, ...props }, ref) => {
22
+ const ComboboxSeparator = ({ className, ...props }) => {
24
23
  const { inputValue, hasItems } = useComboboxContext();
25
24
  if (!hasItems && inputValue?.length)
26
25
  return null;
27
- return (jsx(Combobox.Separator, { ref: ref, className: cx(styles.separator, className), ...props }));
28
- });
26
+ return (jsx(Combobox.Separator, { className: cx(styles.separator, className), ...props }));
27
+ };
29
28
  ComboboxSeparator.displayName = 'Combobox.Separator';
30
29
 
31
30
  export { ComboboxGroup, ComboboxLabel, ComboboxSeparator };
@@ -1 +1 @@
1
- {"version":3,"file":"combobox-misc.js","sources":["../../../components/combobox/combobox-misc.tsx"],"sourcesContent":["'use client';\n\nimport { Combobox as ComboboxPrimitive } from '@base-ui/react';\nimport { cx } from 'class-variance-authority';\nimport { ElementRef, forwardRef } from 'react';\nimport styles from './combobox.module.css';\nimport { useComboboxContext } from './combobox-root';\n\nexport const ComboboxLabel = forwardRef<\n ElementRef<typeof ComboboxPrimitive.GroupLabel>,\n ComboboxPrimitive.GroupLabel.Props\n>(({ className, ...props }, ref) => {\n const { inputValue, hasItems } = useComboboxContext();\n if (!hasItems && inputValue?.length) return null;\n\n return (\n <ComboboxPrimitive.GroupLabel\n ref={ref}\n className={cx(styles.label, className)}\n {...props}\n />\n );\n});\nComboboxLabel.displayName = 'Combobox.Label';\n\nexport const ComboboxGroup = forwardRef<\n ElementRef<typeof ComboboxPrimitive.Group>,\n ComboboxPrimitive.Group.Props\n>(({ className, children, ...props }, ref) => {\n const { inputValue, hasItems } = useComboboxContext();\n if (!hasItems && inputValue?.length) return children;\n\n return (\n <ComboboxPrimitive.Group\n ref={ref}\n className={cx(styles.group, className)}\n {...props}\n >\n {children}\n </ComboboxPrimitive.Group>\n );\n});\nComboboxGroup.displayName = 'Combobox.Group';\n\nexport const ComboboxSeparator = forwardRef<\n ElementRef<typeof ComboboxPrimitive.Separator>,\n ComboboxPrimitive.Separator.Props\n>(({ className, ...props }, ref) => {\n const { inputValue, hasItems } = useComboboxContext();\n if (!hasItems && inputValue?.length) return null;\n\n return (\n <ComboboxPrimitive.Separator\n ref={ref}\n className={cx(styles.separator, className)}\n {...props}\n />\n );\n});\nComboboxSeparator.displayName = 'Combobox.Separator';\n"],"names":[],"mappings":";;;;;;;;AAQa;;AAKX;AAAqC;;AASvC;AACA;AAEa;;AAKX;AAAqC;;AAWvC;AACA;AAEa;;AAKX;AAAqC;;AASvC;AACA;;"}
1
+ {"version":3,"file":"combobox-misc.js","sources":["../../../components/combobox/combobox-misc.tsx"],"sourcesContent":["'use client';\n\nimport { Combobox as ComboboxPrimitive } from '@base-ui/react';\nimport { cx } from 'class-variance-authority';\nimport styles from './combobox.module.css';\nimport { useComboboxContext } from './combobox-root';\n\nexport const ComboboxLabel = ({\n className,\n ...props\n}: ComboboxPrimitive.GroupLabel.Props) => {\n const { inputValue, hasItems } = useComboboxContext();\n if (!hasItems && inputValue?.length) return null;\n\n return (\n <ComboboxPrimitive.GroupLabel\n className={cx(styles.label, className)}\n {...props}\n />\n );\n};\nComboboxLabel.displayName = 'Combobox.Label';\n\nexport const ComboboxGroup = ({\n className,\n children,\n ...props\n}: ComboboxPrimitive.Group.Props) => {\n const { inputValue, hasItems } = useComboboxContext();\n if (!hasItems && inputValue?.length) return children;\n\n return (\n <ComboboxPrimitive.Group className={cx(styles.group, className)} {...props}>\n {children}\n </ComboboxPrimitive.Group>\n );\n};\nComboboxGroup.displayName = 'Combobox.Group';\n\nexport const ComboboxSeparator = ({\n className,\n ...props\n}: ComboboxPrimitive.Separator.Props) => {\n const { inputValue, hasItems } = useComboboxContext();\n if (!hasItems && inputValue?.length) return null;\n\n return (\n <ComboboxPrimitive.Separator\n className={cx(styles.separator, className)}\n {...props}\n />\n );\n};\nComboboxSeparator.displayName = 'Combobox.Separator';\n"],"names":[],"mappings":";;;;;;;AAOO;;AAKL;AAAqC;;AAQvC;AACA;AAEO;;AAML;AAAqC;;AAOvC;AACA;AAEO;;AAKL;AAAqC;;AAQvC;AACA;;"}
@@ -39,8 +39,9 @@ const ComboboxRoot = ({ multiple = false, children, onValueChange, onInputValueC
39
39
  value: computedValue,
40
40
  onValueChange: handleValueChange
41
41
  }), [multiple, inputValue, items, computedValue, handleValueChange]);
42
- return (jsxRuntime.jsx(ComboboxContext.Provider, { value: contextValue, children: jsxRuntime.jsx(react.Combobox.Root, { multiple: multiple, onValueChange: handleValueChange, onInputValueChange: handleInputValueChange, items: items, value: providedValue, defaultValue: defaultValue, modal: true, ...props, children: children }) }));
42
+ return (jsxRuntime.jsx(ComboboxContext, { value: contextValue, children: jsxRuntime.jsx(react.Combobox.Root, { multiple: multiple, onValueChange: handleValueChange, onInputValueChange: handleInputValueChange, items: items, value: providedValue, defaultValue: defaultValue, modal: true, ...props, children: children }) }));
43
43
  };
44
+ ComboboxRoot.displayName = 'Combobox';
44
45
 
45
46
  exports.ComboboxRoot = ComboboxRoot;
46
47
  exports.useComboboxContext = useComboboxContext;
@@ -1 +1 @@
1
- {"version":3,"file":"combobox-root.cjs","sources":["../../../components/combobox/combobox-root.tsx"],"sourcesContent":["'use client';\n\nimport { Combobox as ComboboxPrimitive } from '@base-ui/react';\nimport {\n createContext,\n RefObject,\n useCallback,\n useContext,\n useMemo,\n useRef,\n useState\n} from 'react';\n\ninterface ComboboxContextValue<Value = string> {\n multiple: boolean;\n inputValue: string;\n hasItems: boolean;\n inputContainerRef: RefObject<HTMLDivElement | null>;\n value: Value | Value[] | null | undefined;\n onValueChange?: (value: Value | Value[] | null) => void;\n}\n\nconst ComboboxContext = createContext<\n ComboboxContextValue<unknown> | undefined\n>(undefined);\n\nexport const useComboboxContext = <\n Value = string\n>(): ComboboxContextValue<Value> => {\n const context = useContext(ComboboxContext);\n if (!context) {\n throw new Error(\n 'useComboboxContext must be used within a ComboboxProvider'\n );\n }\n return context as ComboboxContextValue<Value>;\n};\n\nexport interface BaseComboboxRootProps<Value>\n extends Omit<\n ComboboxPrimitive.Root.Props<Value, boolean>,\n 'onValueChange' | 'onInputValueChange' | 'multiple'\n > {\n onInputValueChange?: (inputValue: string) => void;\n}\n\nexport interface SingleComboboxProps<Value = string>\n extends BaseComboboxRootProps<Value> {\n multiple?: false;\n value?: Value | null;\n defaultValue?: Value | null;\n onValueChange?: (value: Value | null) => void;\n}\n\nexport interface MultipleComboboxProps<Value = string>\n extends BaseComboboxRootProps<Value> {\n multiple: true;\n value?: Value[];\n defaultValue?: Value[];\n onValueChange?: (value: Value[]) => void;\n}\n\nexport type ComboboxRootProps<Value = string> =\n | SingleComboboxProps<Value>\n | MultipleComboboxProps<Value>;\n\nexport const ComboboxRoot = <Value extends unknown | unknown[]>({\n multiple = false,\n children,\n onValueChange,\n onInputValueChange,\n value: providedValue,\n defaultValue,\n items,\n ...props\n}: ComboboxRootProps<Value>) => {\n const [inputValue, setInputValue] = useState('');\n const [internalValue, setInternalValue] = useState<\n Value | Value[] | null | undefined\n >(defaultValue ?? null);\n const inputContainerRef = useRef<HTMLDivElement>(null);\n\n const computedValue = providedValue ?? internalValue;\n\n const handleInputValueChange = useCallback(\n (\n value: string,\n eventDetails: ComboboxPrimitive.Root.ChangeEventDetails\n ) => {\n setInputValue(value);\n onInputValueChange?.(value);\n },\n [onInputValueChange]\n );\n\n const handleValueChange = useCallback(\n (\n value: Value | Value[] | null,\n eventDetails: ComboboxPrimitive.Root.ChangeEventDetails\n ) => {\n setInternalValue(value);\n if (multiple) {\n (onValueChange as MultipleComboboxProps<Value>['onValueChange'])?.(\n value as Value[]\n );\n } else {\n (onValueChange as SingleComboboxProps<Value>['onValueChange'])?.(\n value as Value | null\n );\n }\n },\n [onValueChange, multiple]\n );\n\n const contextValue = useMemo(\n () => ({\n multiple,\n inputValue,\n hasItems: !!items,\n inputContainerRef,\n value: computedValue,\n onValueChange: handleValueChange\n }),\n [multiple, inputValue, items, computedValue, handleValueChange]\n );\n\n return (\n <ComboboxContext.Provider\n value={contextValue as ComboboxContextValue<unknown>}\n >\n <ComboboxPrimitive.Root\n multiple={multiple}\n onValueChange={handleValueChange}\n onInputValueChange={handleInputValueChange}\n items={items}\n value={providedValue}\n defaultValue={defaultValue}\n modal\n {...props}\n >\n {children}\n </ComboboxPrimitive.Root>\n </ComboboxContext.Provider>\n );\n};\n"],"names":[],"mappings":";;;;;;;AAsBA;AAIO;AAGL;;AAEE;;AAIF;AACF;AA8BO;;AAWL;AAGA;AAEA;;;AAQI;AACF;;;;AAWK;;;AAIA;;AAIL;AAIF;;;;;AAMI;AACA;AACD;;AAsBL;;;"}
1
+ {"version":3,"file":"combobox-root.cjs","sources":["../../../components/combobox/combobox-root.tsx"],"sourcesContent":["'use client';\n\nimport { Combobox as ComboboxPrimitive } from '@base-ui/react';\nimport {\n createContext,\n RefObject,\n useCallback,\n useContext,\n useMemo,\n useRef,\n useState\n} from 'react';\n\ninterface ComboboxContextValue<Value = string> {\n multiple: boolean;\n inputValue: string;\n hasItems: boolean;\n inputContainerRef: RefObject<HTMLDivElement | null>;\n value: Value | Value[] | null | undefined;\n onValueChange?: (value: Value | Value[] | null) => void;\n}\n\nconst ComboboxContext = createContext<\n ComboboxContextValue<unknown> | undefined\n>(undefined);\n\nexport const useComboboxContext = <\n Value = string\n>(): ComboboxContextValue<Value> => {\n const context = useContext(ComboboxContext);\n if (!context) {\n throw new Error(\n 'useComboboxContext must be used within a ComboboxProvider'\n );\n }\n return context as ComboboxContextValue<Value>;\n};\n\nexport interface BaseComboboxRootProps<Value>\n extends Omit<\n ComboboxPrimitive.Root.Props<Value, boolean>,\n 'onValueChange' | 'onInputValueChange' | 'multiple'\n > {\n onInputValueChange?: (inputValue: string) => void;\n}\n\nexport interface SingleComboboxProps<Value = string>\n extends BaseComboboxRootProps<Value> {\n multiple?: false;\n value?: Value | null;\n defaultValue?: Value | null;\n onValueChange?: (value: Value | null) => void;\n}\n\nexport interface MultipleComboboxProps<Value = string>\n extends BaseComboboxRootProps<Value> {\n multiple: true;\n value?: Value[];\n defaultValue?: Value[];\n onValueChange?: (value: Value[]) => void;\n}\n\nexport type ComboboxRootProps<Value = string> =\n | SingleComboboxProps<Value>\n | MultipleComboboxProps<Value>;\n\nexport const ComboboxRoot = <Value extends unknown | unknown[]>({\n multiple = false,\n children,\n onValueChange,\n onInputValueChange,\n value: providedValue,\n defaultValue,\n items,\n ...props\n}: ComboboxRootProps<Value>) => {\n const [inputValue, setInputValue] = useState('');\n const [internalValue, setInternalValue] = useState<\n Value | Value[] | null | undefined\n >(defaultValue ?? null);\n const inputContainerRef = useRef<HTMLDivElement>(null);\n\n const computedValue = providedValue ?? internalValue;\n\n const handleInputValueChange = useCallback(\n (\n value: string,\n eventDetails: ComboboxPrimitive.Root.ChangeEventDetails\n ) => {\n setInputValue(value);\n onInputValueChange?.(value);\n },\n [onInputValueChange]\n );\n\n const handleValueChange = useCallback(\n (\n value: Value | Value[] | null,\n eventDetails: ComboboxPrimitive.Root.ChangeEventDetails\n ) => {\n setInternalValue(value);\n if (multiple) {\n (onValueChange as MultipleComboboxProps<Value>['onValueChange'])?.(\n value as Value[]\n );\n } else {\n (onValueChange as SingleComboboxProps<Value>['onValueChange'])?.(\n value as Value | null\n );\n }\n },\n [onValueChange, multiple]\n );\n\n const contextValue = useMemo(\n () => ({\n multiple,\n inputValue,\n hasItems: !!items,\n inputContainerRef,\n value: computedValue,\n onValueChange: handleValueChange\n }),\n [multiple, inputValue, items, computedValue, handleValueChange]\n );\n\n return (\n <ComboboxContext value={contextValue as ComboboxContextValue<unknown>}>\n <ComboboxPrimitive.Root\n multiple={multiple}\n onValueChange={handleValueChange}\n onInputValueChange={handleInputValueChange}\n items={items}\n value={providedValue}\n defaultValue={defaultValue}\n modal\n {...props}\n >\n {children}\n </ComboboxPrimitive.Root>\n </ComboboxContext>\n );\n};\n\nComboboxRoot.displayName = 'Combobox';\n"],"names":[],"mappings":";;;;;;;AAsBA;AAIO;AAGL;;AAEE;;AAIF;AACF;AA8BO;;AAWL;AAGA;AAEA;;;AAQI;AACF;;;;AAWK;;;AAIA;;AAIL;AAIF;;;;;AAMI;AACA;AACD;;AAoBL;AAEA;;;"}
@@ -25,6 +25,9 @@ export interface MultipleComboboxProps<Value = string> extends BaseComboboxRootP
25
25
  onValueChange?: (value: Value[]) => void;
26
26
  }
27
27
  export type ComboboxRootProps<Value = string> = SingleComboboxProps<Value> | MultipleComboboxProps<Value>;
28
- export declare const ComboboxRoot: <Value extends unknown>({ multiple, children, onValueChange, onInputValueChange, value: providedValue, defaultValue, items, ...props }: ComboboxRootProps<Value>) => import("react/jsx-runtime").JSX.Element;
28
+ export declare const ComboboxRoot: {
29
+ <Value extends unknown>({ multiple, children, onValueChange, onInputValueChange, value: providedValue, defaultValue, items, ...props }: ComboboxRootProps<Value>): import("react/jsx-runtime").JSX.Element;
30
+ displayName: string;
31
+ };
29
32
  export {};
30
33
  //# sourceMappingURL=combobox-root.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"combobox-root.d.ts","sourceRoot":"","sources":["../../../components/combobox/combobox-root.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAEL,SAAS,EAMV,MAAM,OAAO,CAAC;AAEf,UAAU,oBAAoB,CAAC,KAAK,GAAG,MAAM;IAC3C,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACpD,KAAK,EAAE,KAAK,GAAG,KAAK,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,EAAE,GAAG,IAAI,KAAK,IAAI,CAAC;CACzD;AAMD,eAAO,MAAM,kBAAkB,wBAE1B,qBAAqB,KAAK,CAQ9B,CAAC;AAEF,MAAM,WAAW,qBAAqB,CAAC,KAAK,CAC1C,SAAQ,IAAI,CACV,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,EAC5C,eAAe,GAAG,oBAAoB,GAAG,UAAU,CACpD;IACD,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACnD;AAED,MAAM,WAAW,mBAAmB,CAAC,KAAK,GAAG,MAAM,CACjD,SAAQ,qBAAqB,CAAC,KAAK,CAAC;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC5B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,CAAC;CAC/C;AAED,MAAM,WAAW,qBAAqB,CAAC,KAAK,GAAG,MAAM,CACnD,SAAQ,qBAAqB,CAAC,KAAK,CAAC;IACpC,QAAQ,EAAE,IAAI,CAAC;IACf,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;IAChB,YAAY,CAAC,EAAE,KAAK,EAAE,CAAC;IACvB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC;CAC1C;AAED,MAAM,MAAM,iBAAiB,CAAC,KAAK,GAAG,MAAM,IACxC,mBAAmB,CAAC,KAAK,CAAC,GAC1B,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC,eAAO,MAAM,YAAY,0IAStB,kBAAkB,KAAK,CAAC,4CAqE1B,CAAC"}
1
+ {"version":3,"file":"combobox-root.d.ts","sourceRoot":"","sources":["../../../components/combobox/combobox-root.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAEL,SAAS,EAMV,MAAM,OAAO,CAAC;AAEf,UAAU,oBAAoB,CAAC,KAAK,GAAG,MAAM;IAC3C,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACpD,KAAK,EAAE,KAAK,GAAG,KAAK,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,EAAE,GAAG,IAAI,KAAK,IAAI,CAAC;CACzD;AAMD,eAAO,MAAM,kBAAkB,wBAE1B,qBAAqB,KAAK,CAQ9B,CAAC;AAEF,MAAM,WAAW,qBAAqB,CAAC,KAAK,CAC1C,SAAQ,IAAI,CACV,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,EAC5C,eAAe,GAAG,oBAAoB,GAAG,UAAU,CACpD;IACD,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACnD;AAED,MAAM,WAAW,mBAAmB,CAAC,KAAK,GAAG,MAAM,CACjD,SAAQ,qBAAqB,CAAC,KAAK,CAAC;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC5B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,CAAC;CAC/C;AAED,MAAM,WAAW,qBAAqB,CAAC,KAAK,GAAG,MAAM,CACnD,SAAQ,qBAAqB,CAAC,KAAK,CAAC;IACpC,QAAQ,EAAE,IAAI,CAAC;IACf,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;IAChB,YAAY,CAAC,EAAE,KAAK,EAAE,CAAC;IACvB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC;CAC1C;AAED,MAAM,MAAM,iBAAiB,CAAC,KAAK,GAAG,MAAM,IACxC,mBAAmB,CAAC,KAAK,CAAC,GAC1B,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC,eAAO,MAAM,YAAY;4IAStB,kBAAkB,KAAK,CAAC;;CAmE1B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { Combobox } from '@base-ui/react';
4
- import { createContext, useContext, useState, useRef, useCallback, useMemo } from 'react';
4
+ import { createContext, useState, useRef, useCallback, useMemo, useContext } from 'react';
5
5
 
6
6
  const ComboboxContext = createContext(undefined);
7
7
  const useComboboxContext = () => {
@@ -37,8 +37,9 @@ const ComboboxRoot = ({ multiple = false, children, onValueChange, onInputValueC
37
37
  value: computedValue,
38
38
  onValueChange: handleValueChange
39
39
  }), [multiple, inputValue, items, computedValue, handleValueChange]);
40
- return (jsx(ComboboxContext.Provider, { value: contextValue, children: jsx(Combobox.Root, { multiple: multiple, onValueChange: handleValueChange, onInputValueChange: handleInputValueChange, items: items, value: providedValue, defaultValue: defaultValue, modal: true, ...props, children: children }) }));
40
+ return (jsx(ComboboxContext, { value: contextValue, children: jsx(Combobox.Root, { multiple: multiple, onValueChange: handleValueChange, onInputValueChange: handleInputValueChange, items: items, value: providedValue, defaultValue: defaultValue, modal: true, ...props, children: children }) }));
41
41
  };
42
+ ComboboxRoot.displayName = 'Combobox';
42
43
 
43
44
  export { ComboboxRoot, useComboboxContext };
44
45
  //# sourceMappingURL=combobox-root.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"combobox-root.js","sources":["../../../components/combobox/combobox-root.tsx"],"sourcesContent":["'use client';\n\nimport { Combobox as ComboboxPrimitive } from '@base-ui/react';\nimport {\n createContext,\n RefObject,\n useCallback,\n useContext,\n useMemo,\n useRef,\n useState\n} from 'react';\n\ninterface ComboboxContextValue<Value = string> {\n multiple: boolean;\n inputValue: string;\n hasItems: boolean;\n inputContainerRef: RefObject<HTMLDivElement | null>;\n value: Value | Value[] | null | undefined;\n onValueChange?: (value: Value | Value[] | null) => void;\n}\n\nconst ComboboxContext = createContext<\n ComboboxContextValue<unknown> | undefined\n>(undefined);\n\nexport const useComboboxContext = <\n Value = string\n>(): ComboboxContextValue<Value> => {\n const context = useContext(ComboboxContext);\n if (!context) {\n throw new Error(\n 'useComboboxContext must be used within a ComboboxProvider'\n );\n }\n return context as ComboboxContextValue<Value>;\n};\n\nexport interface BaseComboboxRootProps<Value>\n extends Omit<\n ComboboxPrimitive.Root.Props<Value, boolean>,\n 'onValueChange' | 'onInputValueChange' | 'multiple'\n > {\n onInputValueChange?: (inputValue: string) => void;\n}\n\nexport interface SingleComboboxProps<Value = string>\n extends BaseComboboxRootProps<Value> {\n multiple?: false;\n value?: Value | null;\n defaultValue?: Value | null;\n onValueChange?: (value: Value | null) => void;\n}\n\nexport interface MultipleComboboxProps<Value = string>\n extends BaseComboboxRootProps<Value> {\n multiple: true;\n value?: Value[];\n defaultValue?: Value[];\n onValueChange?: (value: Value[]) => void;\n}\n\nexport type ComboboxRootProps<Value = string> =\n | SingleComboboxProps<Value>\n | MultipleComboboxProps<Value>;\n\nexport const ComboboxRoot = <Value extends unknown | unknown[]>({\n multiple = false,\n children,\n onValueChange,\n onInputValueChange,\n value: providedValue,\n defaultValue,\n items,\n ...props\n}: ComboboxRootProps<Value>) => {\n const [inputValue, setInputValue] = useState('');\n const [internalValue, setInternalValue] = useState<\n Value | Value[] | null | undefined\n >(defaultValue ?? null);\n const inputContainerRef = useRef<HTMLDivElement>(null);\n\n const computedValue = providedValue ?? internalValue;\n\n const handleInputValueChange = useCallback(\n (\n value: string,\n eventDetails: ComboboxPrimitive.Root.ChangeEventDetails\n ) => {\n setInputValue(value);\n onInputValueChange?.(value);\n },\n [onInputValueChange]\n );\n\n const handleValueChange = useCallback(\n (\n value: Value | Value[] | null,\n eventDetails: ComboboxPrimitive.Root.ChangeEventDetails\n ) => {\n setInternalValue(value);\n if (multiple) {\n (onValueChange as MultipleComboboxProps<Value>['onValueChange'])?.(\n value as Value[]\n );\n } else {\n (onValueChange as SingleComboboxProps<Value>['onValueChange'])?.(\n value as Value | null\n );\n }\n },\n [onValueChange, multiple]\n );\n\n const contextValue = useMemo(\n () => ({\n multiple,\n inputValue,\n hasItems: !!items,\n inputContainerRef,\n value: computedValue,\n onValueChange: handleValueChange\n }),\n [multiple, inputValue, items, computedValue, handleValueChange]\n );\n\n return (\n <ComboboxContext.Provider\n value={contextValue as ComboboxContextValue<unknown>}\n >\n <ComboboxPrimitive.Root\n multiple={multiple}\n onValueChange={handleValueChange}\n onInputValueChange={handleInputValueChange}\n items={items}\n value={providedValue}\n defaultValue={defaultValue}\n modal\n {...props}\n >\n {children}\n </ComboboxPrimitive.Root>\n </ComboboxContext.Provider>\n );\n};\n"],"names":[],"mappings":";;;;;AAsBA;AAIO;AAGL;;AAEE;;AAIF;AACF;AA8BO;;AAWL;AAGA;AAEA;;;AAQI;AACF;;;;AAWK;;;AAIA;;AAIL;AAIF;;;;;AAMI;AACA;AACD;;AAsBL;;"}
1
+ {"version":3,"file":"combobox-root.js","sources":["../../../components/combobox/combobox-root.tsx"],"sourcesContent":["'use client';\n\nimport { Combobox as ComboboxPrimitive } from '@base-ui/react';\nimport {\n createContext,\n RefObject,\n useCallback,\n useContext,\n useMemo,\n useRef,\n useState\n} from 'react';\n\ninterface ComboboxContextValue<Value = string> {\n multiple: boolean;\n inputValue: string;\n hasItems: boolean;\n inputContainerRef: RefObject<HTMLDivElement | null>;\n value: Value | Value[] | null | undefined;\n onValueChange?: (value: Value | Value[] | null) => void;\n}\n\nconst ComboboxContext = createContext<\n ComboboxContextValue<unknown> | undefined\n>(undefined);\n\nexport const useComboboxContext = <\n Value = string\n>(): ComboboxContextValue<Value> => {\n const context = useContext(ComboboxContext);\n if (!context) {\n throw new Error(\n 'useComboboxContext must be used within a ComboboxProvider'\n );\n }\n return context as ComboboxContextValue<Value>;\n};\n\nexport interface BaseComboboxRootProps<Value>\n extends Omit<\n ComboboxPrimitive.Root.Props<Value, boolean>,\n 'onValueChange' | 'onInputValueChange' | 'multiple'\n > {\n onInputValueChange?: (inputValue: string) => void;\n}\n\nexport interface SingleComboboxProps<Value = string>\n extends BaseComboboxRootProps<Value> {\n multiple?: false;\n value?: Value | null;\n defaultValue?: Value | null;\n onValueChange?: (value: Value | null) => void;\n}\n\nexport interface MultipleComboboxProps<Value = string>\n extends BaseComboboxRootProps<Value> {\n multiple: true;\n value?: Value[];\n defaultValue?: Value[];\n onValueChange?: (value: Value[]) => void;\n}\n\nexport type ComboboxRootProps<Value = string> =\n | SingleComboboxProps<Value>\n | MultipleComboboxProps<Value>;\n\nexport const ComboboxRoot = <Value extends unknown | unknown[]>({\n multiple = false,\n children,\n onValueChange,\n onInputValueChange,\n value: providedValue,\n defaultValue,\n items,\n ...props\n}: ComboboxRootProps<Value>) => {\n const [inputValue, setInputValue] = useState('');\n const [internalValue, setInternalValue] = useState<\n Value | Value[] | null | undefined\n >(defaultValue ?? null);\n const inputContainerRef = useRef<HTMLDivElement>(null);\n\n const computedValue = providedValue ?? internalValue;\n\n const handleInputValueChange = useCallback(\n (\n value: string,\n eventDetails: ComboboxPrimitive.Root.ChangeEventDetails\n ) => {\n setInputValue(value);\n onInputValueChange?.(value);\n },\n [onInputValueChange]\n );\n\n const handleValueChange = useCallback(\n (\n value: Value | Value[] | null,\n eventDetails: ComboboxPrimitive.Root.ChangeEventDetails\n ) => {\n setInternalValue(value);\n if (multiple) {\n (onValueChange as MultipleComboboxProps<Value>['onValueChange'])?.(\n value as Value[]\n );\n } else {\n (onValueChange as SingleComboboxProps<Value>['onValueChange'])?.(\n value as Value | null\n );\n }\n },\n [onValueChange, multiple]\n );\n\n const contextValue = useMemo(\n () => ({\n multiple,\n inputValue,\n hasItems: !!items,\n inputContainerRef,\n value: computedValue,\n onValueChange: handleValueChange\n }),\n [multiple, inputValue, items, computedValue, handleValueChange]\n );\n\n return (\n <ComboboxContext value={contextValue as ComboboxContextValue<unknown>}>\n <ComboboxPrimitive.Root\n multiple={multiple}\n onValueChange={handleValueChange}\n onInputValueChange={handleInputValueChange}\n items={items}\n value={providedValue}\n defaultValue={defaultValue}\n modal\n {...props}\n >\n {children}\n </ComboboxPrimitive.Root>\n </ComboboxContext>\n );\n};\n\nComboboxRoot.displayName = 'Combobox';\n"],"names":[],"mappings":";;;;;AAsBA;AAIO;AAGL;;AAEE;;AAIF;AACF;AA8BO;;AAWL;AAGA;AAEA;;;AAQI;AACF;;;;AAWK;;;AAIA;;AAIL;AAIF;;;;;AAMI;AACA;AACD;;AAoBL;AAEA;;"}
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var react = require('@base-ui/react');
3
4
  var comboboxContent = require('./combobox-content.cjs');
4
5
  var comboboxInput = require('./combobox-input.cjs');
5
6
  var comboboxItem = require('./combobox-item.cjs');
@@ -12,7 +13,9 @@ const Combobox = Object.assign(comboboxRoot.ComboboxRoot, {
12
13
  Item: comboboxItem.ComboboxItem,
13
14
  Group: comboboxMisc.ComboboxGroup,
14
15
  Label: comboboxMisc.ComboboxLabel,
15
- Separator: comboboxMisc.ComboboxSeparator
16
+ Separator: comboboxMisc.ComboboxSeparator,
17
+ useFilter: react.Combobox.useFilter,
18
+ useFilteredItems: react.Combobox.useFilteredItems
16
19
  });
17
20
 
18
21
  exports.Combobox = Combobox;
@@ -1 +1 @@
1
- {"version":3,"file":"combobox.cjs","sources":["../../../components/combobox/combobox.tsx"],"sourcesContent":["import { ComboboxContent } from './combobox-content';\nimport { ComboboxInput } from './combobox-input';\nimport { ComboboxItem } from './combobox-item';\nimport {\n ComboboxGroup,\n ComboboxLabel,\n ComboboxSeparator\n} from './combobox-misc';\nimport { ComboboxRoot } from './combobox-root';\n\nexport const Combobox = Object.assign(ComboboxRoot, {\n Input: ComboboxInput,\n Content: ComboboxContent,\n Item: ComboboxItem,\n Group: ComboboxGroup,\n Label: ComboboxLabel,\n Separator: ComboboxSeparator\n});\n"],"names":["ComboboxRoot","ComboboxInput","ComboboxContent","ComboboxItem","ComboboxGroup","ComboboxLabel","ComboboxSeparator"],"mappings":";;;;;;;;MAUa,QAAQ,GAAG,MAAM,CAAC,MAAM,CAACA,yBAAY,EAAE;AAClD,IAAA,KAAK,EAAEC,2BAAa;AACpB,IAAA,OAAO,EAAEC,+BAAe;AACxB,IAAA,IAAI,EAAEC,yBAAY;AAClB,IAAA,KAAK,EAAEC,0BAAa;AACpB,IAAA,KAAK,EAAEC,0BAAa;AACpB,IAAA,SAAS,EAAEC,8BAAiB;AAC7B,CAAA;;;;"}
1
+ {"version":3,"file":"combobox.cjs","sources":["../../../components/combobox/combobox.tsx"],"sourcesContent":["import { Combobox as ComboboxPrimitive } from '@base-ui/react';\nimport { ComboboxContent } from './combobox-content';\nimport { ComboboxInput } from './combobox-input';\nimport { ComboboxItem } from './combobox-item';\nimport {\n ComboboxGroup,\n ComboboxLabel,\n ComboboxSeparator\n} from './combobox-misc';\nimport { ComboboxRoot } from './combobox-root';\n\nexport const Combobox = Object.assign(ComboboxRoot, {\n Input: ComboboxInput,\n Content: ComboboxContent,\n Item: ComboboxItem,\n Group: ComboboxGroup,\n Label: ComboboxLabel,\n Separator: ComboboxSeparator,\n useFilter: ComboboxPrimitive.useFilter,\n useFilteredItems: ComboboxPrimitive.useFilteredItems\n});\n"],"names":["ComboboxRoot","ComboboxInput","ComboboxContent","ComboboxItem","ComboboxGroup","ComboboxLabel","ComboboxSeparator","ComboboxPrimitive"],"mappings":";;;;;;;;;MAWa,QAAQ,GAAG,MAAM,CAAC,MAAM,CAACA,yBAAY,EAAE;AAClD,IAAA,KAAK,EAAEC,2BAAa;AACpB,IAAA,OAAO,EAAEC,+BAAe;AACxB,IAAA,IAAI,EAAEC,yBAAY;AAClB,IAAA,KAAK,EAAEC,0BAAa;AACpB,IAAA,KAAK,EAAEC,0BAAa;AACpB,IAAA,SAAS,EAAEC,8BAAiB;IAC5B,SAAS,EAAEC,cAAiB,CAAC,SAAS;IACtC,gBAAgB,EAAEA,cAAiB,CAAC,gBAAgB;AACrD,CAAA;;;;"}
@@ -1,9 +1,33 @@
1
- export declare const Combobox: (<Value extends unknown>({ multiple, children, onValueChange, onInputValueChange, value: providedValue, defaultValue, items, ...props }: import("./combobox-root").ComboboxRootProps<Value>) => import("react/jsx-runtime").JSX.Element) & {
2
- Input: import("react").ForwardRefExoticComponent<import("./combobox-input").ComboboxInputProps & import("react").RefAttributes<HTMLInputElement>>;
3
- Content: import("react").ForwardRefExoticComponent<Omit<import("./combobox-content").ComboboxContentProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
4
- Item: import("react").ForwardRefExoticComponent<Omit<import("./combobox-item").ComboboxItemProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
5
- Group: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteGroupProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
6
- Label: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteGroupLabelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
7
- Separator: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").SeparatorProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
1
+ import { Combobox as ComboboxPrimitive } from '@base-ui/react';
2
+ export declare const Combobox: {
3
+ <Value extends unknown>({ multiple, children, onValueChange, onInputValueChange, value: providedValue, defaultValue, items, ...props }: import("./combobox-root").ComboboxRootProps<Value>): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ } & {
6
+ Input: {
7
+ ({ ref, ...props }: import("./combobox-input").ComboboxInputProps): import("react/jsx-runtime").JSX.Element;
8
+ displayName: string;
9
+ };
10
+ Content: {
11
+ ({ ref, className, children, style, render, initialFocus, finalFocus, sideOffset, ...positionerProps }: import("./combobox-content").ComboboxContentProps): import("react/jsx-runtime").JSX.Element;
12
+ displayName: string;
13
+ };
14
+ Item: {
15
+ ({ className, children, value: providedValue, leadingIcon, disabled, render, ...props }: import("./combobox-item").ComboboxItemProps): import("react/jsx-runtime").JSX.Element | null;
16
+ displayName: string;
17
+ };
18
+ Group: {
19
+ ({ className, children, ...props }: import("@base-ui/react").AutocompleteGroupProps): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
20
+ displayName: string;
21
+ };
22
+ Label: {
23
+ ({ className, ...props }: import("@base-ui/react").AutocompleteGroupLabelProps): import("react/jsx-runtime").JSX.Element | null;
24
+ displayName: string;
25
+ };
26
+ Separator: {
27
+ ({ className, ...props }: import("@base-ui/react").SeparatorProps): import("react/jsx-runtime").JSX.Element | null;
28
+ displayName: string;
29
+ };
30
+ useFilter: typeof ComboboxPrimitive.useFilter;
31
+ useFilteredItems: typeof ComboboxPrimitive.useFilteredItems;
8
32
  };
9
33
  //# sourceMappingURL=combobox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../components/combobox/combobox.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,QAAQ;;;;;;;CAOnB,CAAC"}
1
+ {"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../components/combobox/combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAW/D,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASnB,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { Combobox as Combobox$1 } from '@base-ui/react';
1
2
  import { ComboboxContent } from './combobox-content.js';
2
3
  import { ComboboxInput } from './combobox-input.js';
3
4
  import { ComboboxItem } from './combobox-item.js';
@@ -10,7 +11,9 @@ const Combobox = Object.assign(ComboboxRoot, {
10
11
  Item: ComboboxItem,
11
12
  Group: ComboboxGroup,
12
13
  Label: ComboboxLabel,
13
- Separator: ComboboxSeparator
14
+ Separator: ComboboxSeparator,
15
+ useFilter: Combobox$1.useFilter,
16
+ useFilteredItems: Combobox$1.useFilteredItems
14
17
  });
15
18
 
16
19
  export { Combobox };
@@ -1 +1 @@
1
- {"version":3,"file":"combobox.js","sources":["../../../components/combobox/combobox.tsx"],"sourcesContent":["import { ComboboxContent } from './combobox-content';\nimport { ComboboxInput } from './combobox-input';\nimport { ComboboxItem } from './combobox-item';\nimport {\n ComboboxGroup,\n ComboboxLabel,\n ComboboxSeparator\n} from './combobox-misc';\nimport { ComboboxRoot } from './combobox-root';\n\nexport const Combobox = Object.assign(ComboboxRoot, {\n Input: ComboboxInput,\n Content: ComboboxContent,\n Item: ComboboxItem,\n Group: ComboboxGroup,\n Label: ComboboxLabel,\n Separator: ComboboxSeparator\n});\n"],"names":[],"mappings":";;;;;;MAUa,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE;AAClD,IAAA,KAAK,EAAE,aAAa;AACpB,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,KAAK,EAAE,aAAa;AACpB,IAAA,KAAK,EAAE,aAAa;AACpB,IAAA,SAAS,EAAE,iBAAiB;AAC7B,CAAA;;;;"}
1
+ {"version":3,"file":"combobox.js","sources":["../../../components/combobox/combobox.tsx"],"sourcesContent":["import { Combobox as ComboboxPrimitive } from '@base-ui/react';\nimport { ComboboxContent } from './combobox-content';\nimport { ComboboxInput } from './combobox-input';\nimport { ComboboxItem } from './combobox-item';\nimport {\n ComboboxGroup,\n ComboboxLabel,\n ComboboxSeparator\n} from './combobox-misc';\nimport { ComboboxRoot } from './combobox-root';\n\nexport const Combobox = Object.assign(ComboboxRoot, {\n Input: ComboboxInput,\n Content: ComboboxContent,\n Item: ComboboxItem,\n Group: ComboboxGroup,\n Label: ComboboxLabel,\n Separator: ComboboxSeparator,\n useFilter: ComboboxPrimitive.useFilter,\n useFilteredItems: ComboboxPrimitive.useFilteredItems\n});\n"],"names":["ComboboxPrimitive"],"mappings":";;;;;;;MAWa,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE;AAClD,IAAA,KAAK,EAAE,aAAa;AACpB,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,KAAK,EAAE,aAAa;AACpB,IAAA,KAAK,EAAE,aAAa;AACpB,IAAA,SAAS,EAAE,iBAAiB;IAC5B,SAAS,EAAEA,UAAiB,CAAC,SAAS;IACtC,gBAAgB,EAAEA,UAAiB,CAAC,gBAAgB;AACrD,CAAA;;;;"}
@@ -5,39 +5,53 @@ var jsxRuntime = require('react/jsx-runtime');
5
5
  var reactIcons = require('@radix-ui/react-icons');
6
6
  var classVarianceAuthority = require('class-variance-authority');
7
7
  var cmdk = require('cmdk');
8
- var React = require('react');
9
8
  var dialog = require('../dialog/dialog.cjs');
10
9
  var flex = require('../flex/flex.cjs');
11
10
  var command_module = require('./command.module.css.cjs');
12
11
 
13
12
  const command = classVarianceAuthority.cva(command_module.default.command);
14
- const CommandRoot = React.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsx(cmdk.Command, { ref: ref, className: command({ className }), ...props })));
15
- CommandRoot.displayName = cmdk.Command?.displayName;
13
+ function CommandRoot({ className, ...props }) {
14
+ return jsxRuntime.jsx(cmdk.Command, { className: command({ className }), ...props });
15
+ }
16
+ CommandRoot.displayName = 'Command';
16
17
  const CommandDialog = ({ children, ...props }) => {
17
18
  return (jsxRuntime.jsx(dialog.Dialog, { ...props, children: jsxRuntime.jsx(dialog.Dialog.Content, { style: { overflow: 'hidden', padding: '0' }, children: jsxRuntime.jsx(Command, { className: command_module.default.dialogcommand, children: children }) }) }));
18
19
  };
20
+ CommandDialog.displayName = 'Command.Dialog';
19
21
  const input = classVarianceAuthority.cva(command_module.default.input);
20
- const CommandInput = React.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxs(flex.Flex, { align: 'center', gap: 'small', "cmdk-input-wrapper": '', className: command_module.default.inputWrapper, children: [jsxRuntime.jsx(reactIcons.MagnifyingGlassIcon, { className: command_module.default.inputIcon, width: 16, height: 16 }), jsxRuntime.jsx(cmdk.Command.Input, { ref: ref, className: input({ className }), ...props })] })));
21
- CommandInput.displayName = cmdk.Command.Input.displayName;
22
+ function CommandInput({ className, ...props }) {
23
+ return (jsxRuntime.jsxs(flex.Flex, { align: 'center', gap: 'small', "cmdk-input-wrapper": '', className: command_module.default.inputWrapper, children: [jsxRuntime.jsx(reactIcons.MagnifyingGlassIcon, { className: command_module.default.inputIcon, width: 16, height: 16 }), jsxRuntime.jsx(cmdk.Command.Input, { className: input({ className }), ...props })] }));
24
+ }
25
+ CommandInput.displayName = 'Command.Input';
22
26
  const list = classVarianceAuthority.cva(command_module.default.list);
23
- const CommandList = React.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsx(cmdk.Command.List, { ref: ref, className: list({ className }), ...props })));
24
- CommandList.displayName = cmdk.Command.List.displayName;
25
- const CommandEmpty = React.forwardRef((props, ref) => (jsxRuntime.jsx(cmdk.Command.Empty, { ref: ref, className: command_module.default.empty, ...props })));
26
- CommandEmpty.displayName = cmdk.Command.Empty.displayName;
27
+ function CommandList({ className, ...props }) {
28
+ return jsxRuntime.jsx(cmdk.Command.List, { className: list({ className }), ...props });
29
+ }
30
+ CommandList.displayName = 'Command.List';
31
+ function CommandEmpty(props) {
32
+ return jsxRuntime.jsx(cmdk.Command.Empty, { className: command_module.default.empty, ...props });
33
+ }
34
+ CommandEmpty.displayName = 'Command.Empty';
27
35
  const group = classVarianceAuthority.cva(command_module.default.group);
28
- const CommandGroup = React.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsx(cmdk.Command.Group, { ref: ref, className: group({ className }), ...props })));
29
- CommandGroup.displayName = cmdk.Command.Group.displayName;
36
+ function CommandGroup({ className, ...props }) {
37
+ return jsxRuntime.jsx(cmdk.Command.Group, { className: group({ className }), ...props });
38
+ }
39
+ CommandGroup.displayName = 'Command.Group';
30
40
  const separator = classVarianceAuthority.cva(command_module.default.separator);
31
- const CommandSeparator = React.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsx(cmdk.Command.Separator, { ref: ref, className: separator({ className }), ...props })));
32
- CommandSeparator.displayName = cmdk.Command.Separator.displayName;
41
+ function CommandSeparator({ className, ...props }) {
42
+ return (jsxRuntime.jsx(cmdk.Command.Separator, { className: separator({ className }), ...props }));
43
+ }
44
+ CommandSeparator.displayName = 'Command.Separator';
33
45
  const item = classVarianceAuthority.cva(command_module.default.item);
34
- const CommandItem = React.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsx(cmdk.Command.Item, { ref: ref, className: item({ className }), ...props })));
35
- CommandItem.displayName = cmdk.Command.Item.displayName;
46
+ function CommandItem({ className, ...props }) {
47
+ return jsxRuntime.jsx(cmdk.Command.Item, { className: item({ className }), ...props });
48
+ }
49
+ CommandItem.displayName = 'Command.Item';
36
50
  const shortcut = classVarianceAuthority.cva(command_module.default.shortcut);
37
51
  const CommandShortcut = ({ className, ...props }) => {
38
52
  return jsxRuntime.jsx("span", { className: shortcut({ className }), ...props });
39
53
  };
40
- CommandShortcut.displayName = 'CommandShortcut';
54
+ CommandShortcut.displayName = 'Command.Shortcut';
41
55
  const Command = Object.assign(CommandRoot, {
42
56
  Dialog: CommandDialog,
43
57
  Input: CommandInput,
@@ -1 +1 @@
1
- {"version":3,"file":"command.cjs","sources":["../../../components/command/command.tsx"],"sourcesContent":["'use client';\n\nimport { MagnifyingGlassIcon } from '@radix-ui/react-icons';\nimport { cva } from 'class-variance-authority';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport React from 'react';\n\nimport { Dialog } from '../dialog';\nimport { Flex } from '../flex';\nimport styles from './command.module.css';\n\nconst command = cva(styles.command);\nconst CommandRoot = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive ref={ref} className={command({ className })} {...props} />\n));\nCommandRoot.displayName = CommandPrimitive?.displayName;\n\ninterface CommandDialogProps extends DialogPrimitive.DialogProps {}\n\nconst CommandDialog = ({ children, ...props }: CommandDialogProps) => {\n return (\n <Dialog {...props}>\n <Dialog.Content style={{ overflow: 'hidden', padding: '0' }}>\n <Command className={styles.dialogcommand}>{children}</Command>\n </Dialog.Content>\n </Dialog>\n );\n};\n\nconst input = cva(styles.input);\nconst CommandInput = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Input>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>\n>(({ className, ...props }, ref) => (\n <Flex\n align='center'\n gap='small'\n cmdk-input-wrapper=''\n className={styles.inputWrapper}\n >\n <MagnifyingGlassIcon className={styles.inputIcon} width={16} height={16} />\n <CommandPrimitive.Input\n ref={ref}\n className={input({ className })}\n {...props}\n />\n </Flex>\n));\n\nCommandInput.displayName = CommandPrimitive.Input.displayName;\n\nconst list = cva(styles.list);\nconst CommandList = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.List ref={ref} className={list({ className })} {...props} />\n));\n\nCommandList.displayName = CommandPrimitive.List.displayName;\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Empty>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>\n>((props, ref) => (\n <CommandPrimitive.Empty ref={ref} className={styles.empty} {...props} />\n));\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName;\n\nconst group = cva(styles.group);\nconst CommandGroup = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Group\n ref={ref}\n className={group({ className })}\n {...props}\n />\n));\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName;\n\nconst separator = cva(styles.separator);\nconst CommandSeparator = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Separator\n ref={ref}\n className={separator({ className })}\n {...props}\n />\n));\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName;\n\nconst item = cva(styles.item);\nconst CommandItem = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Item ref={ref} className={item({ className })} {...props} />\n));\n\nCommandItem.displayName = CommandPrimitive.Item.displayName;\n\nconst shortcut = cva(styles.shortcut);\nconst CommandShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return <span className={shortcut({ className })} {...props} />;\n};\nCommandShortcut.displayName = 'CommandShortcut';\n\nexport const Command: any = Object.assign(CommandRoot, {\n Dialog: CommandDialog,\n Input: CommandInput,\n List: CommandList,\n Empty: CommandEmpty,\n Group: CommandGroup,\n Item: CommandItem,\n Shortcut: CommandShortcut,\n Separator: CommandSeparator\n});\n"],"names":[],"mappings":";;;;;;;;;;;;AAYA;AACA;AAMA;AAIA;AACE;AAOF;AAEA;AACA;AAmBA;AAEA;AACA;AAOA;AAEA;AAOA;AAEA;AACA;AAWA;AAEA;AACA;AAUA;AAEA;AACA;AAOA;AAEA;AACA;AAIE;AACF;AACA;;AAGE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACD;;"}
1
+ {"version":3,"file":"command.cjs","sources":["../../../components/command/command.tsx"],"sourcesContent":["'use client';\n\nimport { Dialog as DialogPrimitive } from '@base-ui/react';\nimport { MagnifyingGlassIcon } from '@radix-ui/react-icons';\nimport { cva } from 'class-variance-authority';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { type ComponentProps, ReactNode } from 'react';\n\nimport { Dialog } from '../dialog';\nimport { Flex } from '../flex';\nimport styles from './command.module.css';\n\nconst command = cva(styles.command);\nfunction CommandRoot({\n className,\n ...props\n}: ComponentProps<typeof CommandPrimitive>) {\n return <CommandPrimitive className={command({ className })} {...props} />;\n}\nCommandRoot.displayName = 'Command';\n\ninterface CommandDialogProps extends DialogPrimitive.Root.Props {\n children: ReactNode;\n}\n\nconst CommandDialog = ({ children, ...props }: CommandDialogProps) => {\n return (\n <Dialog {...props}>\n <Dialog.Content style={{ overflow: 'hidden', padding: '0' }}>\n <Command className={styles.dialogcommand}>{children}</Command>\n </Dialog.Content>\n </Dialog>\n );\n};\nCommandDialog.displayName = 'Command.Dialog';\n\nconst input = cva(styles.input);\nfunction CommandInput({\n className,\n ...props\n}: ComponentProps<typeof CommandPrimitive.Input>) {\n return (\n <Flex\n align='center'\n gap='small'\n cmdk-input-wrapper=''\n className={styles.inputWrapper}\n >\n <MagnifyingGlassIcon\n className={styles.inputIcon}\n width={16}\n height={16}\n />\n <CommandPrimitive.Input className={input({ className })} {...props} />\n </Flex>\n );\n}\n\nCommandInput.displayName = 'Command.Input';\n\nconst list = cva(styles.list);\nfunction CommandList({\n className,\n ...props\n}: ComponentProps<typeof CommandPrimitive.List>) {\n return <CommandPrimitive.List className={list({ className })} {...props} />;\n}\n\nCommandList.displayName = 'Command.List';\n\nfunction CommandEmpty(props: ComponentProps<typeof CommandPrimitive.Empty>) {\n return <CommandPrimitive.Empty className={styles.empty} {...props} />;\n}\n\nCommandEmpty.displayName = 'Command.Empty';\n\nconst group = cva(styles.group);\nfunction CommandGroup({\n className,\n ...props\n}: ComponentProps<typeof CommandPrimitive.Group>) {\n return <CommandPrimitive.Group className={group({ className })} {...props} />;\n}\n\nCommandGroup.displayName = 'Command.Group';\n\nconst separator = cva(styles.separator);\nfunction CommandSeparator({\n className,\n ...props\n}: ComponentProps<typeof CommandPrimitive.Separator>) {\n return (\n <CommandPrimitive.Separator\n className={separator({ className })}\n {...props}\n />\n );\n}\nCommandSeparator.displayName = 'Command.Separator';\n\nconst item = cva(styles.item);\nfunction CommandItem({\n className,\n ...props\n}: ComponentProps<typeof CommandPrimitive.Item>) {\n return <CommandPrimitive.Item className={item({ className })} {...props} />;\n}\n\nCommandItem.displayName = 'Command.Item';\n\nconst shortcut = cva(styles.shortcut);\nconst CommandShortcut = ({ className, ...props }: ComponentProps<'span'>) => {\n return <span className={shortcut({ className })} {...props} />;\n};\nCommandShortcut.displayName = 'Command.Shortcut';\n\nexport const Command = Object.assign(CommandRoot, {\n Dialog: CommandDialog,\n Input: CommandInput,\n List: CommandList,\n Empty: CommandEmpty,\n Group: CommandGroup,\n Item: CommandItem,\n Shortcut: CommandShortcut,\n Separator: CommandSeparator\n});\n"],"names":[],"mappings":";;;;;;;;;;;AAYA;AACA;AAIE;AACF;AACA;AAMA;AACE;AAOF;AACA;AAEA;AACA;;AAmBA;AAEA;AAEA;AACA;AAIE;AACF;AAEA;AAEA;AACE;AACF;AAEA;AAEA;AACA;AAIE;AACF;AAEA;AAEA;AACA;AAIE;AAMF;AACA;AAEA;AACA;AAIE;AACF;AAEA;AAEA;AACA;AACE;AACF;AACA;;AAGE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACD;;"}
@@ -1,2 +1,52 @@
1
- export declare const Command: any;
1
+ import { Dialog as DialogPrimitive } from '@base-ui/react';
2
+ import { Command as CommandPrimitive } from 'cmdk';
3
+ import { type ComponentProps, ReactNode } from 'react';
4
+ declare function CommandRoot({ className, ...props }: ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
5
+ declare namespace CommandRoot {
6
+ var displayName: string;
7
+ }
8
+ interface CommandDialogProps extends DialogPrimitive.Root.Props {
9
+ children: ReactNode;
10
+ }
11
+ declare function CommandInput({ className, ...props }: ComponentProps<typeof CommandPrimitive.Input>): import("react/jsx-runtime").JSX.Element;
12
+ declare namespace CommandInput {
13
+ var displayName: string;
14
+ }
15
+ declare function CommandList({ className, ...props }: ComponentProps<typeof CommandPrimitive.List>): import("react/jsx-runtime").JSX.Element;
16
+ declare namespace CommandList {
17
+ var displayName: string;
18
+ }
19
+ declare function CommandEmpty(props: ComponentProps<typeof CommandPrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
20
+ declare namespace CommandEmpty {
21
+ var displayName: string;
22
+ }
23
+ declare function CommandGroup({ className, ...props }: ComponentProps<typeof CommandPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
24
+ declare namespace CommandGroup {
25
+ var displayName: string;
26
+ }
27
+ declare function CommandSeparator({ className, ...props }: ComponentProps<typeof CommandPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
28
+ declare namespace CommandSeparator {
29
+ var displayName: string;
30
+ }
31
+ declare function CommandItem({ className, ...props }: ComponentProps<typeof CommandPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
32
+ declare namespace CommandItem {
33
+ var displayName: string;
34
+ }
35
+ export declare const Command: typeof CommandRoot & {
36
+ Dialog: {
37
+ ({ children, ...props }: CommandDialogProps): import("react/jsx-runtime").JSX.Element;
38
+ displayName: string;
39
+ };
40
+ Input: typeof CommandInput;
41
+ List: typeof CommandList;
42
+ Empty: typeof CommandEmpty;
43
+ Group: typeof CommandGroup;
44
+ Item: typeof CommandItem;
45
+ Shortcut: {
46
+ ({ className, ...props }: ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
47
+ displayName: string;
48
+ };
49
+ Separator: typeof CommandSeparator;
50
+ };
51
+ export {};
2
52
  //# sourceMappingURL=command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../components/command/command.tsx"],"names":[],"mappings":"AAwHA,eAAO,MAAM,OAAO,EAAE,GASpB,CAAC"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../components/command/command.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AACnD,OAAO,EAAE,KAAK,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvD,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,2CAEzC;kBALQ,WAAW;;;AAQpB,UAAU,kBAAmB,SAAQ,eAAe,CAAC,IAAI,CAAC,KAAK;IAC7D,QAAQ,EAAE,SAAS,CAAC;CACrB;AAcD,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,2CAgB/C;kBAnBQ,YAAY;;;AAwBrB,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAE9C;kBALQ,WAAW;;;AASpB,iBAAS,YAAY,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,2CAEzE;kBAFQ,YAAY;;;AAOrB,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,2CAE/C;kBALQ,YAAY;;;AAUrB,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,2CAOnD;kBAVQ,gBAAgB;;;AAczB,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAE9C;kBALQ,WAAW;;;AAepB,eAAO,MAAM,OAAO;;iCA3F2B,kBAAkB;;;;;;;;;kCAsFf,eAAe,MAAM,CAAC;;;;CActE,CAAC"}
@@ -3,39 +3,53 @@ import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { MagnifyingGlassIcon } from '@radix-ui/react-icons';
4
4
  import { cva } from 'class-variance-authority';
5
5
  import { Command as Command$1 } from 'cmdk';
6
- import React__default from 'react';
7
6
  import { Dialog } from '../dialog/dialog.js';
8
7
  import { Flex } from '../flex/flex.js';
9
8
  import styles from './command.module.css.js';
10
9
 
11
10
  const command = cva(styles.command);
12
- const CommandRoot = React__default.forwardRef(({ className, ...props }, ref) => (jsx(Command$1, { ref: ref, className: command({ className }), ...props })));
13
- CommandRoot.displayName = Command$1?.displayName;
11
+ function CommandRoot({ className, ...props }) {
12
+ return jsx(Command$1, { className: command({ className }), ...props });
13
+ }
14
+ CommandRoot.displayName = 'Command';
14
15
  const CommandDialog = ({ children, ...props }) => {
15
16
  return (jsx(Dialog, { ...props, children: jsx(Dialog.Content, { style: { overflow: 'hidden', padding: '0' }, children: jsx(Command, { className: styles.dialogcommand, children: children }) }) }));
16
17
  };
18
+ CommandDialog.displayName = 'Command.Dialog';
17
19
  const input = cva(styles.input);
18
- const CommandInput = React__default.forwardRef(({ className, ...props }, ref) => (jsxs(Flex, { align: 'center', gap: 'small', "cmdk-input-wrapper": '', className: styles.inputWrapper, children: [jsx(MagnifyingGlassIcon, { className: styles.inputIcon, width: 16, height: 16 }), jsx(Command$1.Input, { ref: ref, className: input({ className }), ...props })] })));
19
- CommandInput.displayName = Command$1.Input.displayName;
20
+ function CommandInput({ className, ...props }) {
21
+ return (jsxs(Flex, { align: 'center', gap: 'small', "cmdk-input-wrapper": '', className: styles.inputWrapper, children: [jsx(MagnifyingGlassIcon, { className: styles.inputIcon, width: 16, height: 16 }), jsx(Command$1.Input, { className: input({ className }), ...props })] }));
22
+ }
23
+ CommandInput.displayName = 'Command.Input';
20
24
  const list = cva(styles.list);
21
- const CommandList = React__default.forwardRef(({ className, ...props }, ref) => (jsx(Command$1.List, { ref: ref, className: list({ className }), ...props })));
22
- CommandList.displayName = Command$1.List.displayName;
23
- const CommandEmpty = React__default.forwardRef((props, ref) => (jsx(Command$1.Empty, { ref: ref, className: styles.empty, ...props })));
24
- CommandEmpty.displayName = Command$1.Empty.displayName;
25
+ function CommandList({ className, ...props }) {
26
+ return jsx(Command$1.List, { className: list({ className }), ...props });
27
+ }
28
+ CommandList.displayName = 'Command.List';
29
+ function CommandEmpty(props) {
30
+ return jsx(Command$1.Empty, { className: styles.empty, ...props });
31
+ }
32
+ CommandEmpty.displayName = 'Command.Empty';
25
33
  const group = cva(styles.group);
26
- const CommandGroup = React__default.forwardRef(({ className, ...props }, ref) => (jsx(Command$1.Group, { ref: ref, className: group({ className }), ...props })));
27
- CommandGroup.displayName = Command$1.Group.displayName;
34
+ function CommandGroup({ className, ...props }) {
35
+ return jsx(Command$1.Group, { className: group({ className }), ...props });
36
+ }
37
+ CommandGroup.displayName = 'Command.Group';
28
38
  const separator = cva(styles.separator);
29
- const CommandSeparator = React__default.forwardRef(({ className, ...props }, ref) => (jsx(Command$1.Separator, { ref: ref, className: separator({ className }), ...props })));
30
- CommandSeparator.displayName = Command$1.Separator.displayName;
39
+ function CommandSeparator({ className, ...props }) {
40
+ return (jsx(Command$1.Separator, { className: separator({ className }), ...props }));
41
+ }
42
+ CommandSeparator.displayName = 'Command.Separator';
31
43
  const item = cva(styles.item);
32
- const CommandItem = React__default.forwardRef(({ className, ...props }, ref) => (jsx(Command$1.Item, { ref: ref, className: item({ className }), ...props })));
33
- CommandItem.displayName = Command$1.Item.displayName;
44
+ function CommandItem({ className, ...props }) {
45
+ return jsx(Command$1.Item, { className: item({ className }), ...props });
46
+ }
47
+ CommandItem.displayName = 'Command.Item';
34
48
  const shortcut = cva(styles.shortcut);
35
49
  const CommandShortcut = ({ className, ...props }) => {
36
50
  return jsx("span", { className: shortcut({ className }), ...props });
37
51
  };
38
- CommandShortcut.displayName = 'CommandShortcut';
52
+ CommandShortcut.displayName = 'Command.Shortcut';
39
53
  const Command = Object.assign(CommandRoot, {
40
54
  Dialog: CommandDialog,
41
55
  Input: CommandInput,
@@ -1 +1 @@
1
- {"version":3,"file":"command.js","sources":["../../../components/command/command.tsx"],"sourcesContent":["'use client';\n\nimport { MagnifyingGlassIcon } from '@radix-ui/react-icons';\nimport { cva } from 'class-variance-authority';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport React from 'react';\n\nimport { Dialog } from '../dialog';\nimport { Flex } from '../flex';\nimport styles from './command.module.css';\n\nconst command = cva(styles.command);\nconst CommandRoot = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive ref={ref} className={command({ className })} {...props} />\n));\nCommandRoot.displayName = CommandPrimitive?.displayName;\n\ninterface CommandDialogProps extends DialogPrimitive.DialogProps {}\n\nconst CommandDialog = ({ children, ...props }: CommandDialogProps) => {\n return (\n <Dialog {...props}>\n <Dialog.Content style={{ overflow: 'hidden', padding: '0' }}>\n <Command className={styles.dialogcommand}>{children}</Command>\n </Dialog.Content>\n </Dialog>\n );\n};\n\nconst input = cva(styles.input);\nconst CommandInput = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Input>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>\n>(({ className, ...props }, ref) => (\n <Flex\n align='center'\n gap='small'\n cmdk-input-wrapper=''\n className={styles.inputWrapper}\n >\n <MagnifyingGlassIcon className={styles.inputIcon} width={16} height={16} />\n <CommandPrimitive.Input\n ref={ref}\n className={input({ className })}\n {...props}\n />\n </Flex>\n));\n\nCommandInput.displayName = CommandPrimitive.Input.displayName;\n\nconst list = cva(styles.list);\nconst CommandList = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.List ref={ref} className={list({ className })} {...props} />\n));\n\nCommandList.displayName = CommandPrimitive.List.displayName;\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Empty>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>\n>((props, ref) => (\n <CommandPrimitive.Empty ref={ref} className={styles.empty} {...props} />\n));\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName;\n\nconst group = cva(styles.group);\nconst CommandGroup = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Group\n ref={ref}\n className={group({ className })}\n {...props}\n />\n));\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName;\n\nconst separator = cva(styles.separator);\nconst CommandSeparator = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Separator\n ref={ref}\n className={separator({ className })}\n {...props}\n />\n));\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName;\n\nconst item = cva(styles.item);\nconst CommandItem = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Item ref={ref} className={item({ className })} {...props} />\n));\n\nCommandItem.displayName = CommandPrimitive.Item.displayName;\n\nconst shortcut = cva(styles.shortcut);\nconst CommandShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return <span className={shortcut({ className })} {...props} />;\n};\nCommandShortcut.displayName = 'CommandShortcut';\n\nexport const Command: any = Object.assign(CommandRoot, {\n Dialog: CommandDialog,\n Input: CommandInput,\n List: CommandList,\n Empty: CommandEmpty,\n Group: CommandGroup,\n Item: CommandItem,\n Shortcut: CommandShortcut,\n Separator: CommandSeparator\n});\n"],"names":[],"mappings":";;;;;;;;;;AAYA;AACA;AAMA;AAIA;AACE;AAOF;AAEA;AACA;AAmBA;AAEA;AACA;AAOA;AAEA;AAOA;AAEA;AACA;AAWA;AAEA;AACA;AAUA;AAEA;AACA;AAOA;AAEA;AACA;AAIE;AACF;AACA;;AAGE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACD;;"}
1
+ {"version":3,"file":"command.js","sources":["../../../components/command/command.tsx"],"sourcesContent":["'use client';\n\nimport { Dialog as DialogPrimitive } from '@base-ui/react';\nimport { MagnifyingGlassIcon } from '@radix-ui/react-icons';\nimport { cva } from 'class-variance-authority';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { type ComponentProps, ReactNode } from 'react';\n\nimport { Dialog } from '../dialog';\nimport { Flex } from '../flex';\nimport styles from './command.module.css';\n\nconst command = cva(styles.command);\nfunction CommandRoot({\n className,\n ...props\n}: ComponentProps<typeof CommandPrimitive>) {\n return <CommandPrimitive className={command({ className })} {...props} />;\n}\nCommandRoot.displayName = 'Command';\n\ninterface CommandDialogProps extends DialogPrimitive.Root.Props {\n children: ReactNode;\n}\n\nconst CommandDialog = ({ children, ...props }: CommandDialogProps) => {\n return (\n <Dialog {...props}>\n <Dialog.Content style={{ overflow: 'hidden', padding: '0' }}>\n <Command className={styles.dialogcommand}>{children}</Command>\n </Dialog.Content>\n </Dialog>\n );\n};\nCommandDialog.displayName = 'Command.Dialog';\n\nconst input = cva(styles.input);\nfunction CommandInput({\n className,\n ...props\n}: ComponentProps<typeof CommandPrimitive.Input>) {\n return (\n <Flex\n align='center'\n gap='small'\n cmdk-input-wrapper=''\n className={styles.inputWrapper}\n >\n <MagnifyingGlassIcon\n className={styles.inputIcon}\n width={16}\n height={16}\n />\n <CommandPrimitive.Input className={input({ className })} {...props} />\n </Flex>\n );\n}\n\nCommandInput.displayName = 'Command.Input';\n\nconst list = cva(styles.list);\nfunction CommandList({\n className,\n ...props\n}: ComponentProps<typeof CommandPrimitive.List>) {\n return <CommandPrimitive.List className={list({ className })} {...props} />;\n}\n\nCommandList.displayName = 'Command.List';\n\nfunction CommandEmpty(props: ComponentProps<typeof CommandPrimitive.Empty>) {\n return <CommandPrimitive.Empty className={styles.empty} {...props} />;\n}\n\nCommandEmpty.displayName = 'Command.Empty';\n\nconst group = cva(styles.group);\nfunction CommandGroup({\n className,\n ...props\n}: ComponentProps<typeof CommandPrimitive.Group>) {\n return <CommandPrimitive.Group className={group({ className })} {...props} />;\n}\n\nCommandGroup.displayName = 'Command.Group';\n\nconst separator = cva(styles.separator);\nfunction CommandSeparator({\n className,\n ...props\n}: ComponentProps<typeof CommandPrimitive.Separator>) {\n return (\n <CommandPrimitive.Separator\n className={separator({ className })}\n {...props}\n />\n );\n}\nCommandSeparator.displayName = 'Command.Separator';\n\nconst item = cva(styles.item);\nfunction CommandItem({\n className,\n ...props\n}: ComponentProps<typeof CommandPrimitive.Item>) {\n return <CommandPrimitive.Item className={item({ className })} {...props} />;\n}\n\nCommandItem.displayName = 'Command.Item';\n\nconst shortcut = cva(styles.shortcut);\nconst CommandShortcut = ({ className, ...props }: ComponentProps<'span'>) => {\n return <span className={shortcut({ className })} {...props} />;\n};\nCommandShortcut.displayName = 'Command.Shortcut';\n\nexport const Command = Object.assign(CommandRoot, {\n Dialog: CommandDialog,\n Input: CommandInput,\n List: CommandList,\n Empty: CommandEmpty,\n Group: CommandGroup,\n Item: CommandItem,\n Shortcut: CommandShortcut,\n Separator: CommandSeparator\n});\n"],"names":[],"mappings":";;;;;;;;;AAYA;AACA;AAIE;AACF;AACA;AAMA;AACE;AAOF;AACA;AAEA;AACA;;AAmBA;AAEA;AAEA;AACA;AAIE;AACF;AAEA;AAEA;AACE;AACF;AAEA;AAEA;AACA;AAIE;AACF;AAEA;AAEA;AACA;AAIE;AAMF;AACA;AAEA;AACA;AAIE;AACF;AAEA;AAEA;AACA;AACE;AACF;AACA;;AAGE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACD;;"}
@@ -7,25 +7,26 @@ var container_module = require('./container.module.css.cjs');
7
7
  const container = classVarianceAuthority.cva(container_module.default.container, {
8
8
  variants: {
9
9
  size: {
10
- small: container_module.default["container-small"],
11
- medium: container_module.default["container-medium"],
12
- large: container_module.default["container-large"],
13
- none: container_module.default["container-none"],
10
+ small: container_module.default['container-small'],
11
+ medium: container_module.default['container-medium'],
12
+ large: container_module.default['container-large'],
13
+ none: container_module.default['container-none']
14
14
  },
15
15
  align: {
16
- left: container_module.default["container-align-left"],
17
- center: container_module.default["container-align-center"],
18
- right: container_module.default["container-align-right"],
16
+ left: container_module.default['container-align-left'],
17
+ center: container_module.default['container-align-center'],
18
+ right: container_module.default['container-align-right']
19
19
  }
20
20
  },
21
21
  defaultVariants: {
22
- size: "none",
23
- align: "center",
24
- },
22
+ size: 'none',
23
+ align: 'center'
24
+ }
25
25
  });
26
- function Container({ children, size, align, className, role = "region", ...props }) {
26
+ function Container({ children, size, align, className, role = 'region', ...props }) {
27
27
  return (jsxRuntime.jsx("div", { className: container({ size, align, className }), role: role, ...props, children: children }));
28
28
  }
29
+ Container.displayName = 'Container';
29
30
 
30
31
  exports.Container = Container;
31
32
  //# sourceMappingURL=container.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"container.cjs","sources":["../../../components/container/container.tsx"],"sourcesContent":["import { cva, VariantProps } from \"class-variance-authority\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\n\nimport styles from \"./container.module.css\";\n\nconst container = cva(styles.container, {\n variants: {\n size: {\n small: styles[\"container-small\"],\n medium: styles[\"container-medium\"],\n large: styles[\"container-large\"],\n none: styles[\"container-none\"],\n },\n align: {\n left: styles[\"container-align-left\"],\n center: styles[\"container-align-center\"],\n right: styles[\"container-align-right\"],\n }\n },\n defaultVariants: {\n size: \"none\",\n align: \"center\",\n },\n});\n\ntype ContainerProps = PropsWithChildren<VariantProps<typeof container>> &\n HTMLAttributes<HTMLElement> & {\n \"aria-label\"?: string;\n \"aria-labelledby\"?: string;\n };\n\nexport function Container({\n children,\n size,\n align,\n className,\n role = \"region\",\n ...props\n}: ContainerProps) {\n return (\n <div \n className={container({ size, align, className })} \n role={role}\n {...props}\n >\n {children}\n </div>\n );\n} "],"names":["cva","styles","_jsx"],"mappings":";;;;;;AAKA,MAAM,SAAS,GAAGA,0BAAG,CAACC,wBAAM,CAAC,SAAS,EAAE;AACtC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAEA,wBAAM,CAAC,iBAAiB,CAAC;AAChC,YAAA,MAAM,EAAEA,wBAAM,CAAC,kBAAkB,CAAC;AAClC,YAAA,KAAK,EAAEA,wBAAM,CAAC,iBAAiB,CAAC;AAChC,YAAA,IAAI,EAAEA,wBAAM,CAAC,gBAAgB,CAAC;AAC/B,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAEA,wBAAM,CAAC,sBAAsB,CAAC;AACpC,YAAA,MAAM,EAAEA,wBAAM,CAAC,wBAAwB,CAAC;AACxC,YAAA,KAAK,EAAEA,wBAAM,CAAC,uBAAuB,CAAC;AACvC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,KAAK,EAAE,QAAQ;AAChB,KAAA;AACF,CAAA,CAAC,CAAC;SAQa,SAAS,CAAC,EACxB,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,SAAS,EACT,IAAI,GAAG,QAAQ,EACf,GAAG,KAAK,EACO,EAAA;IACf,QACEC,cACE,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,SAAS,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAChD,IAAI,EAAE,IAAI,EAAA,GACN,KAAK,EAER,QAAA,EAAA,QAAQ,EACL,CAAA,EACN;AACJ;;;;"}
1
+ {"version":3,"file":"container.cjs","sources":["../../../components/container/container.tsx"],"sourcesContent":["import { cva, VariantProps } from 'class-variance-authority';\nimport { ComponentProps } from 'react';\n\nimport styles from './container.module.css';\n\nconst container = cva(styles.container, {\n variants: {\n size: {\n small: styles['container-small'],\n medium: styles['container-medium'],\n large: styles['container-large'],\n none: styles['container-none']\n },\n align: {\n left: styles['container-align-left'],\n center: styles['container-align-center'],\n right: styles['container-align-right']\n }\n },\n defaultVariants: {\n size: 'none',\n align: 'center'\n }\n});\n\ntype ContainerProps = VariantProps<typeof container> & ComponentProps<'div'>;\n\nexport function Container({\n children,\n size,\n align,\n className,\n role = 'region',\n ...props\n}: ContainerProps) {\n return (\n <div\n className={container({ size, align, className })}\n role={role}\n {...props}\n >\n {children}\n </div>\n );\n}\n\nContainer.displayName = 'Container';\n"],"names":["cva","styles","_jsx"],"mappings":";;;;;;AAKA,MAAM,SAAS,GAAGA,0BAAG,CAACC,wBAAM,CAAC,SAAS,EAAE;AACtC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAEA,wBAAM,CAAC,iBAAiB,CAAC;AAChC,YAAA,MAAM,EAAEA,wBAAM,CAAC,kBAAkB,CAAC;AAClC,YAAA,KAAK,EAAEA,wBAAM,CAAC,iBAAiB,CAAC;AAChC,YAAA,IAAI,EAAEA,wBAAM,CAAC,gBAAgB,CAAC;AAC/B,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAEA,wBAAM,CAAC,sBAAsB,CAAC;AACpC,YAAA,MAAM,EAAEA,wBAAM,CAAC,wBAAwB,CAAC;AACxC,YAAA,KAAK,EAAEA,wBAAM,CAAC,uBAAuB,CAAC;AACvC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,KAAK,EAAE,QAAQ;AAChB,KAAA;AACF,CAAA,CAAC,CAAC;SAIa,SAAS,CAAC,EACxB,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,SAAS,EACT,IAAI,GAAG,QAAQ,EACf,GAAG,KAAK,EACO,EAAA;IACf,QACEC,cACE,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,SAAS,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAChD,IAAI,EAAE,IAAI,EAAA,GACN,KAAK,EAER,QAAA,EAAA,QAAQ,EACL,CAAA,EACN;AACJ,CAAC;AAED,SAAS,CAAC,WAAW,GAAG,WAAW;;;;"}