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

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 (833) 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 +20 -0
  42. package/dist/components/alert-dialog/alert-dialog.cjs.map +1 -0
  43. package/dist/components/alert-dialog/alert-dialog.d.ts +61 -0
  44. package/dist/components/alert-dialog/alert-dialog.d.ts.map +1 -0
  45. package/dist/components/alert-dialog/alert-dialog.js +18 -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 +1 -0
  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 +1 -0
  112. package/dist/components/calendar/calendar.js.map +1 -1
  113. package/dist/components/calendar/date-picker.cjs +2 -1
  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 +3 -2
  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.d.ts +28 -7
  238. package/dist/components/combobox/combobox.d.ts.map +1 -1
  239. package/dist/components/command/command.cjs +30 -16
  240. package/dist/components/command/command.cjs.map +1 -1
  241. package/dist/components/command/command.d.ts +51 -1
  242. package/dist/components/command/command.d.ts.map +1 -1
  243. package/dist/components/command/command.js +30 -16
  244. package/dist/components/command/command.js.map +1 -1
  245. package/dist/components/container/container.cjs +12 -11
  246. package/dist/components/container/container.cjs.map +1 -1
  247. package/dist/components/container/container.d.ts +6 -6
  248. package/dist/components/container/container.d.ts.map +1 -1
  249. package/dist/components/container/container.js +12 -11
  250. package/dist/components/container/container.js.map +1 -1
  251. package/dist/components/context-menu/__tests__/context-menu.test.d.ts +2 -0
  252. package/dist/components/context-menu/__tests__/context-menu.test.d.ts.map +1 -0
  253. package/dist/components/context-menu/context-menu-content.cjs +92 -0
  254. package/dist/components/context-menu/context-menu-content.cjs.map +1 -0
  255. package/dist/components/context-menu/context-menu-content.d.ts +13 -0
  256. package/dist/components/context-menu/context-menu-content.d.ts.map +1 -0
  257. package/dist/components/context-menu/context-menu-content.js +89 -0
  258. package/dist/components/context-menu/context-menu-content.js.map +1 -0
  259. package/dist/components/context-menu/context-menu-item.cjs +29 -0
  260. package/dist/components/context-menu/context-menu-item.cjs.map +1 -0
  261. package/dist/components/context-menu/context-menu-item.d.ts +10 -0
  262. package/dist/components/context-menu/context-menu-item.d.ts.map +1 -0
  263. package/dist/components/context-menu/context-menu-item.js +27 -0
  264. package/dist/components/context-menu/context-menu-item.js.map +1 -0
  265. package/dist/components/context-menu/context-menu-misc.cjs +42 -0
  266. package/dist/components/context-menu/context-menu-misc.cjs.map +1 -0
  267. package/dist/components/context-menu/context-menu-misc.d.ts +21 -0
  268. package/dist/components/context-menu/context-menu-misc.d.ts.map +1 -0
  269. package/dist/components/context-menu/context-menu-misc.js +37 -0
  270. package/dist/components/context-menu/context-menu-misc.js.map +1 -0
  271. package/dist/components/context-menu/context-menu-root.cjs +78 -0
  272. package/dist/components/context-menu/context-menu-root.cjs.map +1 -0
  273. package/dist/components/context-menu/context-menu-root.d.ts +40 -0
  274. package/dist/components/context-menu/context-menu-root.d.ts.map +1 -0
  275. package/dist/components/context-menu/context-menu-root.js +75 -0
  276. package/dist/components/context-menu/context-menu-root.js.map +1 -0
  277. package/dist/components/context-menu/context-menu-trigger.cjs +36 -0
  278. package/dist/components/context-menu/context-menu-trigger.cjs.map +1 -0
  279. package/dist/components/context-menu/context-menu-trigger.d.ts +16 -0
  280. package/dist/components/context-menu/context-menu-trigger.d.ts.map +1 -0
  281. package/dist/components/context-menu/context-menu-trigger.js +33 -0
  282. package/dist/components/context-menu/context-menu-trigger.js.map +1 -0
  283. package/dist/components/context-menu/context-menu.cjs +23 -0
  284. package/dist/components/context-menu/context-menu.cjs.map +1 -0
  285. package/dist/components/context-menu/context-menu.d.ts +46 -0
  286. package/dist/components/context-menu/context-menu.d.ts.map +1 -0
  287. package/dist/components/context-menu/context-menu.js +21 -0
  288. package/dist/components/context-menu/context-menu.js.map +1 -0
  289. package/dist/components/context-menu/index.d.ts +2 -0
  290. package/dist/components/context-menu/index.d.ts.map +1 -0
  291. package/dist/components/copy-button/copy-button.cjs +3 -3
  292. package/dist/components/copy-button/copy-button.cjs.map +1 -1
  293. package/dist/components/copy-button/copy-button.d.ts +4 -1
  294. package/dist/components/copy-button/copy-button.d.ts.map +1 -1
  295. package/dist/components/copy-button/copy-button.js +4 -4
  296. package/dist/components/copy-button/copy-button.js.map +1 -1
  297. package/dist/components/data-table/components/content.cjs +1 -0
  298. package/dist/components/data-table/components/content.cjs.map +1 -1
  299. package/dist/components/data-table/components/content.d.ts +3 -0
  300. package/dist/components/data-table/components/content.d.ts.map +1 -1
  301. package/dist/components/data-table/components/content.js +1 -0
  302. package/dist/components/data-table/components/content.js.map +1 -1
  303. package/dist/components/data-table/components/display-settings.cjs +1 -0
  304. package/dist/components/data-table/components/display-settings.cjs.map +1 -1
  305. package/dist/components/data-table/components/display-settings.d.ts +3 -0
  306. package/dist/components/data-table/components/display-settings.d.ts.map +1 -1
  307. package/dist/components/data-table/components/display-settings.js +1 -0
  308. package/dist/components/data-table/components/display-settings.js.map +1 -1
  309. package/dist/components/data-table/components/filters.cjs +1 -0
  310. package/dist/components/data-table/components/filters.cjs.map +1 -1
  311. package/dist/components/data-table/components/filters.d.ts +3 -0
  312. package/dist/components/data-table/components/filters.d.ts.map +1 -1
  313. package/dist/components/data-table/components/filters.js +1 -0
  314. package/dist/components/data-table/components/filters.js.map +1 -1
  315. package/dist/components/data-table/components/search.cjs +4 -5
  316. package/dist/components/data-table/components/search.cjs.map +1 -1
  317. package/dist/components/data-table/components/search.d.ts +7 -3
  318. package/dist/components/data-table/components/search.d.ts.map +1 -1
  319. package/dist/components/data-table/components/search.js +4 -5
  320. package/dist/components/data-table/components/search.js.map +1 -1
  321. package/dist/components/data-table/components/toolbar.cjs +1 -0
  322. package/dist/components/data-table/components/toolbar.cjs.map +1 -1
  323. package/dist/components/data-table/components/toolbar.d.ts +3 -0
  324. package/dist/components/data-table/components/toolbar.d.ts.map +1 -1
  325. package/dist/components/data-table/components/toolbar.js +1 -0
  326. package/dist/components/data-table/components/toolbar.js.map +1 -1
  327. package/dist/components/data-table/components/virtualized-content.cjs +1 -0
  328. package/dist/components/data-table/components/virtualized-content.cjs.map +1 -1
  329. package/dist/components/data-table/components/virtualized-content.d.ts +3 -0
  330. package/dist/components/data-table/components/virtualized-content.d.ts.map +1 -1
  331. package/dist/components/data-table/components/virtualized-content.js +1 -0
  332. package/dist/components/data-table/components/virtualized-content.js.map +1 -1
  333. package/dist/components/data-table/data-table.cjs +2 -1
  334. package/dist/components/data-table/data-table.cjs.map +1 -1
  335. package/dist/components/data-table/data-table.d.ts +5 -1
  336. package/dist/components/data-table/data-table.d.ts.map +1 -1
  337. package/dist/components/data-table/data-table.js +2 -1
  338. package/dist/components/data-table/data-table.js.map +1 -1
  339. package/dist/components/data-table/data-table.types.cjs.map +1 -1
  340. package/dist/components/data-table/data-table.types.d.ts +1 -0
  341. package/dist/components/data-table/data-table.types.d.ts.map +1 -1
  342. package/dist/components/data-table/data-table.types.js.map +1 -1
  343. package/dist/components/data-table/hooks/useFilters.cjs +6 -5
  344. package/dist/components/data-table/hooks/useFilters.cjs.map +1 -1
  345. package/dist/components/data-table/hooks/useFilters.d.ts.map +1 -1
  346. package/dist/components/data-table/hooks/useFilters.js +6 -5
  347. package/dist/components/data-table/hooks/useFilters.js.map +1 -1
  348. package/dist/components/dialog/dialog-content.cjs +3 -4
  349. package/dist/components/dialog/dialog-content.cjs.map +1 -1
  350. package/dist/components/dialog/dialog-content.d.ts +4 -1
  351. package/dist/components/dialog/dialog-content.d.ts.map +1 -1
  352. package/dist/components/dialog/dialog-content.js +3 -4
  353. package/dist/components/dialog/dialog-content.js.map +1 -1
  354. package/dist/components/dialog/dialog-misc.cjs +18 -13
  355. package/dist/components/dialog/dialog-misc.cjs.map +1 -1
  356. package/dist/components/dialog/dialog-misc.d.ts +27 -33
  357. package/dist/components/dialog/dialog-misc.d.ts.map +1 -1
  358. package/dist/components/dialog/dialog-misc.js +18 -13
  359. package/dist/components/dialog/dialog-misc.js.map +1 -1
  360. package/dist/components/dialog/dialog.d.ts +9 -34
  361. package/dist/components/dialog/dialog.d.ts.map +1 -1
  362. package/dist/components/drawer/drawer-content.cjs +3 -4
  363. package/dist/components/drawer/drawer-content.cjs.map +1 -1
  364. package/dist/components/drawer/drawer-content.d.ts +6 -2
  365. package/dist/components/drawer/drawer-content.d.ts.map +1 -1
  366. package/dist/components/drawer/drawer-content.js +3 -4
  367. package/dist/components/drawer/drawer-content.js.map +1 -1
  368. package/dist/components/drawer/drawer-misc.cjs +12 -5
  369. package/dist/components/drawer/drawer-misc.cjs.map +1 -1
  370. package/dist/components/drawer/drawer-misc.d.ts +18 -5
  371. package/dist/components/drawer/drawer-misc.d.ts.map +1 -1
  372. package/dist/components/drawer/drawer-misc.js +12 -5
  373. package/dist/components/drawer/drawer-misc.js.map +1 -1
  374. package/dist/components/drawer/drawer-root.cjs +2 -2
  375. package/dist/components/drawer/drawer-root.cjs.map +1 -1
  376. package/dist/components/drawer/drawer-root.d.ts.map +1 -1
  377. package/dist/components/drawer/drawer-root.js +2 -2
  378. package/dist/components/drawer/drawer-root.js.map +1 -1
  379. package/dist/components/drawer/drawer.d.ts +7 -5
  380. package/dist/components/drawer/drawer.d.ts.map +1 -1
  381. package/dist/components/empty-state/empty-state.cjs +5 -4
  382. package/dist/components/empty-state/empty-state.cjs.map +1 -1
  383. package/dist/components/empty-state/empty-state.d.ts +12 -7
  384. package/dist/components/empty-state/empty-state.d.ts.map +1 -1
  385. package/dist/components/empty-state/empty-state.js +5 -4
  386. package/dist/components/empty-state/empty-state.js.map +1 -1
  387. package/dist/components/filter-chip/filter-chip.cjs +1 -2
  388. package/dist/components/filter-chip/filter-chip.cjs.map +1 -1
  389. package/dist/components/filter-chip/filter-chip.js +1 -2
  390. package/dist/components/filter-chip/filter-chip.js.map +1 -1
  391. package/dist/components/flex/flex.cjs +3 -3
  392. package/dist/components/flex/flex.cjs.map +1 -1
  393. package/dist/components/flex/flex.d.ts +5 -2
  394. package/dist/components/flex/flex.d.ts.map +1 -1
  395. package/dist/components/flex/flex.js +3 -3
  396. package/dist/components/flex/flex.js.map +1 -1
  397. package/dist/components/grid/grid-item.cjs +3 -4
  398. package/dist/components/grid/grid-item.cjs.map +1 -1
  399. package/dist/components/grid/grid-item.d.ts +4 -1
  400. package/dist/components/grid/grid-item.d.ts.map +1 -1
  401. package/dist/components/grid/grid-item.js +3 -4
  402. package/dist/components/grid/grid-item.js.map +1 -1
  403. package/dist/components/grid/grid.cjs +2 -2
  404. package/dist/components/grid/grid.cjs.map +1 -1
  405. package/dist/components/grid/grid.d.ts +4 -1
  406. package/dist/components/grid/grid.d.ts.map +1 -1
  407. package/dist/components/grid/grid.js +3 -3
  408. package/dist/components/grid/grid.js.map +1 -1
  409. package/dist/components/grid/index.d.ts +4 -31
  410. package/dist/components/grid/index.d.ts.map +1 -1
  411. package/dist/components/headline/headline.cjs +3 -4
  412. package/dist/components/headline/headline.cjs.map +1 -1
  413. package/dist/components/headline/headline.d.ts +8 -14
  414. package/dist/components/headline/headline.d.ts.map +1 -1
  415. package/dist/components/headline/headline.js +3 -4
  416. package/dist/components/headline/headline.js.map +1 -1
  417. package/dist/components/icon-button/icon-button.cjs +3 -2
  418. package/dist/components/icon-button/icon-button.cjs.map +1 -1
  419. package/dist/components/icon-button/icon-button.d.ts +6 -2
  420. package/dist/components/icon-button/icon-button.d.ts.map +1 -1
  421. package/dist/components/icon-button/icon-button.js +3 -2
  422. package/dist/components/icon-button/icon-button.js.map +1 -1
  423. package/dist/components/image/image.cjs.map +1 -1
  424. package/dist/components/image/image.d.ts +2 -4
  425. package/dist/components/image/image.d.ts.map +1 -1
  426. package/dist/components/image/image.js.map +1 -1
  427. package/dist/components/indicator/indicator.cjs +9 -9
  428. package/dist/components/indicator/indicator.cjs.map +1 -1
  429. package/dist/components/indicator/indicator.d.ts +4 -4
  430. package/dist/components/indicator/indicator.d.ts.map +1 -1
  431. package/dist/components/indicator/indicator.js +9 -9
  432. package/dist/components/indicator/indicator.js.map +1 -1
  433. package/dist/components/input-field/input-field.cjs +3 -4
  434. package/dist/components/input-field/input-field.cjs.map +1 -1
  435. package/dist/components/input-field/input-field.d.ts +6 -3
  436. package/dist/components/input-field/input-field.d.ts.map +1 -1
  437. package/dist/components/input-field/input-field.js +3 -4
  438. package/dist/components/input-field/input-field.js.map +1 -1
  439. package/dist/components/label/label.cjs +10 -9
  440. package/dist/components/label/label.cjs.map +1 -1
  441. package/dist/components/label/label.d.ts +6 -3
  442. package/dist/components/label/label.d.ts.map +1 -1
  443. package/dist/components/label/label.js +10 -9
  444. package/dist/components/label/label.js.map +1 -1
  445. package/dist/components/link/link.cjs +9 -10
  446. package/dist/components/link/link.cjs.map +1 -1
  447. package/dist/components/link/link.d.ts +7 -4
  448. package/dist/components/link/link.d.ts.map +1 -1
  449. package/dist/components/link/link.js +9 -10
  450. package/dist/components/link/link.js.map +1 -1
  451. package/dist/components/list/list.cjs +4 -4
  452. package/dist/components/list/list.cjs.map +1 -1
  453. package/dist/components/list/list.d.ts +6 -6
  454. package/dist/components/list/list.d.ts.map +1 -1
  455. package/dist/components/list/list.js +4 -4
  456. package/dist/components/list/list.js.map +1 -1
  457. package/dist/components/menu/cell.cjs +3 -2
  458. package/dist/components/menu/cell.cjs.map +1 -1
  459. package/dist/components/menu/cell.d.ts +6 -5
  460. package/dist/components/menu/cell.d.ts.map +1 -1
  461. package/dist/components/menu/cell.js +3 -2
  462. package/dist/components/menu/cell.js.map +1 -1
  463. package/dist/components/menu/menu-content.cjs +7 -7
  464. package/dist/components/menu/menu-content.cjs.map +1 -1
  465. package/dist/components/menu/menu-content.d.ts +8 -2
  466. package/dist/components/menu/menu-content.d.ts.map +1 -1
  467. package/dist/components/menu/menu-content.js +8 -8
  468. package/dist/components/menu/menu-content.js.map +1 -1
  469. package/dist/components/menu/menu-item.cjs +4 -5
  470. package/dist/components/menu/menu-item.cjs.map +1 -1
  471. package/dist/components/menu/menu-item.d.ts +4 -1
  472. package/dist/components/menu/menu-item.d.ts.map +1 -1
  473. package/dist/components/menu/menu-item.js +4 -5
  474. package/dist/components/menu/menu-item.js.map +1 -1
  475. package/dist/components/menu/menu-misc.cjs +12 -10
  476. package/dist/components/menu/menu-misc.cjs.map +1 -1
  477. package/dist/components/menu/menu-misc.d.ts +19 -6
  478. package/dist/components/menu/menu-misc.d.ts.map +1 -1
  479. package/dist/components/menu/menu-misc.js +13 -11
  480. package/dist/components/menu/menu-misc.js.map +1 -1
  481. package/dist/components/menu/menu-root.cjs +3 -3
  482. package/dist/components/menu/menu-root.cjs.map +1 -1
  483. package/dist/components/menu/menu-root.js +4 -4
  484. package/dist/components/menu/menu-root.js.map +1 -1
  485. package/dist/components/menu/menu-trigger.cjs +13 -10
  486. package/dist/components/menu/menu-trigger.cjs.map +1 -1
  487. package/dist/components/menu/menu-trigger.d.ts +8 -2
  488. package/dist/components/menu/menu-trigger.d.ts.map +1 -1
  489. package/dist/components/menu/menu-trigger.js +13 -10
  490. package/dist/components/menu/menu-trigger.js.map +1 -1
  491. package/dist/components/menu/menu.d.ts +13 -11
  492. package/dist/components/menu/menu.d.ts.map +1 -1
  493. package/dist/components/menu/menu.module.css.cjs +1 -1
  494. package/dist/components/menu/menu.module.css.js +1 -1
  495. package/dist/components/menubar/__tests__/menubar.test.d.ts +2 -0
  496. package/dist/components/menubar/__tests__/menubar.test.d.ts.map +1 -0
  497. package/dist/components/menubar/index.d.ts +2 -0
  498. package/dist/components/menubar/index.d.ts.map +1 -0
  499. package/dist/components/menubar/menubar.cjs +22 -0
  500. package/dist/components/menubar/menubar.cjs.map +1 -0
  501. package/dist/components/menubar/menubar.d.ts +9 -0
  502. package/dist/components/menubar/menubar.d.ts.map +1 -0
  503. package/dist/components/menubar/menubar.js +19 -0
  504. package/dist/components/menubar/menubar.js.map +1 -0
  505. package/dist/components/{box/box.module.css.cjs → menubar/menubar.module.css.cjs} +2 -2
  506. package/dist/components/menubar/menubar.module.css.cjs.map +1 -0
  507. package/dist/components/menubar/menubar.module.css.js +4 -0
  508. package/dist/components/menubar/menubar.module.css.js.map +1 -0
  509. package/dist/components/meter/__tests__/meter.test.d.ts +2 -0
  510. package/dist/components/meter/__tests__/meter.test.d.ts.map +1 -0
  511. package/dist/components/meter/index.d.ts +2 -0
  512. package/dist/components/meter/index.d.ts.map +1 -0
  513. package/dist/components/meter/meter-misc.cjs +20 -0
  514. package/dist/components/meter/meter-misc.cjs.map +1 -0
  515. package/dist/components/meter/meter-misc.d.ts +10 -0
  516. package/dist/components/meter/meter-misc.d.ts.map +1 -0
  517. package/dist/components/meter/meter-misc.js +17 -0
  518. package/dist/components/meter/meter-misc.js.map +1 -0
  519. package/dist/components/meter/meter-root.cjs +38 -0
  520. package/dist/components/meter/meter-root.cjs.map +1 -0
  521. package/dist/components/meter/meter-root.d.ts +19 -0
  522. package/dist/components/meter/meter-root.d.ts.map +1 -0
  523. package/dist/components/meter/meter-root.js +35 -0
  524. package/dist/components/meter/meter-root.js.map +1 -0
  525. package/dist/components/meter/meter-track.cjs +21 -0
  526. package/dist/components/meter/meter-track.cjs.map +1 -0
  527. package/dist/components/meter/meter-track.d.ts +6 -0
  528. package/dist/components/meter/meter-track.d.ts.map +1 -0
  529. package/dist/components/meter/meter-track.js +19 -0
  530. package/dist/components/meter/meter-track.js.map +1 -0
  531. package/dist/components/meter/meter.cjs +14 -0
  532. package/dist/components/meter/meter.cjs.map +1 -0
  533. package/dist/components/meter/meter.d.ts +9 -0
  534. package/dist/components/meter/meter.d.ts.map +1 -0
  535. package/dist/components/meter/meter.js +12 -0
  536. package/dist/components/meter/meter.js.map +1 -0
  537. package/dist/components/meter/meter.module.css.cjs +8 -0
  538. package/dist/components/meter/meter.module.css.cjs.map +1 -0
  539. package/dist/components/meter/meter.module.css.js +4 -0
  540. package/dist/components/meter/meter.module.css.js.map +1 -0
  541. package/dist/components/navbar/navbar-root.cjs +88 -4
  542. package/dist/components/navbar/navbar-root.cjs.map +1 -1
  543. package/dist/components/navbar/navbar-root.d.ts +11 -3
  544. package/dist/components/navbar/navbar-root.d.ts.map +1 -1
  545. package/dist/components/navbar/navbar-root.js +89 -5
  546. package/dist/components/navbar/navbar-root.js.map +1 -1
  547. package/dist/components/navbar/navbar-sections.cjs +11 -3
  548. package/dist/components/navbar/navbar-sections.cjs.map +1 -1
  549. package/dist/components/navbar/navbar-sections.d.ts +17 -5
  550. package/dist/components/navbar/navbar-sections.d.ts.map +1 -1
  551. package/dist/components/navbar/navbar-sections.js +11 -4
  552. package/dist/components/navbar/navbar-sections.js.map +1 -1
  553. package/dist/components/navbar/navbar.cjs +1 -0
  554. package/dist/components/navbar/navbar.cjs.map +1 -1
  555. package/dist/components/navbar/navbar.d.ts +16 -3
  556. package/dist/components/navbar/navbar.d.ts.map +1 -1
  557. package/dist/components/navbar/navbar.js +2 -1
  558. package/dist/components/navbar/navbar.js.map +1 -1
  559. package/dist/components/navbar/navbar.module.css.cjs +1 -1
  560. package/dist/components/navbar/navbar.module.css.js +1 -1
  561. package/dist/components/number-field/__tests__/number-field.test.d.ts +2 -0
  562. package/dist/components/number-field/__tests__/number-field.test.d.ts.map +1 -0
  563. package/dist/components/number-field/index.d.ts +3 -0
  564. package/dist/components/number-field/index.d.ts.map +1 -0
  565. package/dist/components/number-field/number-field.cjs +53 -0
  566. package/dist/components/number-field/number-field.cjs.map +1 -0
  567. package/dist/components/number-field/number-field.d.ts +38 -0
  568. package/dist/components/number-field/number-field.d.ts.map +1 -0
  569. package/dist/components/number-field/number-field.js +51 -0
  570. package/dist/components/number-field/number-field.js.map +1 -0
  571. package/dist/components/number-field/number-field.module.css.cjs +8 -0
  572. package/dist/components/number-field/number-field.module.css.cjs.map +1 -0
  573. package/dist/components/number-field/number-field.module.css.js +4 -0
  574. package/dist/components/number-field/number-field.module.css.js.map +1 -0
  575. package/dist/components/popover/popover.cjs +2 -3
  576. package/dist/components/popover/popover.cjs.map +1 -1
  577. package/dist/components/popover/popover.d.ts +7 -2
  578. package/dist/components/popover/popover.d.ts.map +1 -1
  579. package/dist/components/popover/popover.js +2 -3
  580. package/dist/components/popover/popover.js.map +1 -1
  581. package/dist/components/preview-card/preview-card.cjs +5 -4
  582. package/dist/components/preview-card/preview-card.cjs.map +1 -1
  583. package/dist/components/preview-card/preview-card.d.ts +12 -3
  584. package/dist/components/preview-card/preview-card.d.ts.map +1 -1
  585. package/dist/components/preview-card/preview-card.js +5 -4
  586. package/dist/components/preview-card/preview-card.js.map +1 -1
  587. package/dist/components/progress/__tests__/progress.test.d.ts +2 -0
  588. package/dist/components/progress/__tests__/progress.test.d.ts.map +1 -0
  589. package/dist/components/progress/index.d.ts +2 -0
  590. package/dist/components/progress/index.d.ts.map +1 -0
  591. package/dist/components/progress/progress-misc.cjs +20 -0
  592. package/dist/components/progress/progress-misc.cjs.map +1 -0
  593. package/dist/components/progress/progress-misc.d.ts +10 -0
  594. package/dist/components/progress/progress-misc.d.ts.map +1 -0
  595. package/dist/components/progress/progress-misc.js +17 -0
  596. package/dist/components/progress/progress-misc.js.map +1 -0
  597. package/dist/components/progress/progress-root.cjs +38 -0
  598. package/dist/components/progress/progress-root.cjs.map +1 -0
  599. package/dist/components/progress/progress-root.d.ts +19 -0
  600. package/dist/components/progress/progress-root.d.ts.map +1 -0
  601. package/dist/components/progress/progress-root.js +35 -0
  602. package/dist/components/progress/progress-root.js.map +1 -0
  603. package/dist/components/progress/progress-track.cjs +21 -0
  604. package/dist/components/progress/progress-track.cjs.map +1 -0
  605. package/dist/components/progress/progress-track.d.ts +6 -0
  606. package/dist/components/progress/progress-track.d.ts.map +1 -0
  607. package/dist/components/progress/progress-track.js +19 -0
  608. package/dist/components/progress/progress-track.js.map +1 -0
  609. package/dist/components/progress/progress.cjs +14 -0
  610. package/dist/components/progress/progress.cjs.map +1 -0
  611. package/dist/components/progress/progress.d.ts +9 -0
  612. package/dist/components/progress/progress.d.ts.map +1 -0
  613. package/dist/components/progress/progress.js +12 -0
  614. package/dist/components/progress/progress.js.map +1 -0
  615. package/dist/components/progress/progress.module.css.cjs +8 -0
  616. package/dist/components/progress/progress.module.css.cjs.map +1 -0
  617. package/dist/components/progress/progress.module.css.js +4 -0
  618. package/dist/components/progress/progress.module.css.js.map +1 -0
  619. package/dist/components/radio/radio.cjs +6 -3
  620. package/dist/components/radio/radio.cjs.map +1 -1
  621. package/dist/components/radio/radio.d.ts +11 -2
  622. package/dist/components/radio/radio.d.ts.map +1 -1
  623. package/dist/components/radio/radio.js +6 -3
  624. package/dist/components/radio/radio.js.map +1 -1
  625. package/dist/components/scroll-area/scroll-area-scrollbar.cjs +4 -5
  626. package/dist/components/scroll-area/scroll-area-scrollbar.cjs.map +1 -1
  627. package/dist/components/scroll-area/scroll-area-scrollbar.d.ts +4 -1
  628. package/dist/components/scroll-area/scroll-area-scrollbar.d.ts.map +1 -1
  629. package/dist/components/scroll-area/scroll-area-scrollbar.js +4 -5
  630. package/dist/components/scroll-area/scroll-area-scrollbar.js.map +1 -1
  631. package/dist/components/scroll-area/scroll-area.cjs +3 -4
  632. package/dist/components/scroll-area/scroll-area.cjs.map +1 -1
  633. package/dist/components/scroll-area/scroll-area.d.ts +4 -1
  634. package/dist/components/scroll-area/scroll-area.d.ts.map +1 -1
  635. package/dist/components/scroll-area/scroll-area.js +3 -4
  636. package/dist/components/scroll-area/scroll-area.js.map +1 -1
  637. package/dist/components/search/search.cjs +3 -4
  638. package/dist/components/search/search.cjs.map +1 -1
  639. package/dist/components/search/search.d.ts +4 -1
  640. package/dist/components/search/search.d.ts.map +1 -1
  641. package/dist/components/search/search.js +3 -4
  642. package/dist/components/search/search.js.map +1 -1
  643. package/dist/components/select/select-content.cjs +4 -5
  644. package/dist/components/select/select-content.cjs.map +1 -1
  645. package/dist/components/select/select-content.d.ts +6 -7
  646. package/dist/components/select/select-content.d.ts.map +1 -1
  647. package/dist/components/select/select-content.js +4 -5
  648. package/dist/components/select/select-content.js.map +1 -1
  649. package/dist/components/select/select-item.cjs +3 -3
  650. package/dist/components/select/select-item.cjs.map +1 -1
  651. package/dist/components/select/select-item.d.ts +6 -6
  652. package/dist/components/select/select-item.d.ts.map +1 -1
  653. package/dist/components/select/select-item.js +4 -4
  654. package/dist/components/select/select-item.js.map +1 -1
  655. package/dist/components/select/select-misc.cjs +9 -9
  656. package/dist/components/select/select-misc.cjs.map +1 -1
  657. package/dist/components/select/select-misc.d.ts +16 -12
  658. package/dist/components/select/select-misc.d.ts.map +1 -1
  659. package/dist/components/select/select-misc.js +10 -10
  660. package/dist/components/select/select-misc.js.map +1 -1
  661. package/dist/components/select/select-root.cjs +3 -2
  662. package/dist/components/select/select-root.cjs.map +1 -1
  663. package/dist/components/select/select-root.d.ts +4 -1
  664. package/dist/components/select/select-root.d.ts.map +1 -1
  665. package/dist/components/select/select-root.js +4 -3
  666. package/dist/components/select/select-root.js.map +1 -1
  667. package/dist/components/select/select-trigger.cjs +2 -3
  668. package/dist/components/select/select-trigger.cjs.map +1 -1
  669. package/dist/components/select/select-trigger.d.ts +7 -3
  670. package/dist/components/select/select-trigger.d.ts.map +1 -1
  671. package/dist/components/select/select-trigger.js +2 -3
  672. package/dist/components/select/select-trigger.js.map +1 -1
  673. package/dist/components/select/select-value.cjs +6 -6
  674. package/dist/components/select/select-value.cjs.map +1 -1
  675. package/dist/components/select/select-value.d.ts +6 -3
  676. package/dist/components/select/select-value.d.ts.map +1 -1
  677. package/dist/components/select/select-value.js +7 -7
  678. package/dist/components/select/select-value.js.map +1 -1
  679. package/dist/components/select/select.d.ts +16 -18
  680. package/dist/components/select/select.d.ts.map +1 -1
  681. package/dist/components/side-panel/side-panel.cjs +9 -6
  682. package/dist/components/side-panel/side-panel.cjs.map +1 -1
  683. package/dist/components/side-panel/side-panel.d.ts +16 -10
  684. package/dist/components/side-panel/side-panel.d.ts.map +1 -1
  685. package/dist/components/side-panel/side-panel.js +10 -7
  686. package/dist/components/side-panel/side-panel.js.map +1 -1
  687. package/dist/components/sidebar/sidebar-item.cjs +2 -3
  688. package/dist/components/sidebar/sidebar-item.cjs.map +1 -1
  689. package/dist/components/sidebar/sidebar-item.d.ts +6 -3
  690. package/dist/components/sidebar/sidebar-item.d.ts.map +1 -1
  691. package/dist/components/sidebar/sidebar-item.js +3 -4
  692. package/dist/components/sidebar/sidebar-item.js.map +1 -1
  693. package/dist/components/sidebar/sidebar-main.cjs +3 -2
  694. package/dist/components/sidebar/sidebar-main.cjs.map +1 -1
  695. package/dist/components/sidebar/sidebar-main.d.ts +6 -1
  696. package/dist/components/sidebar/sidebar-main.d.ts.map +1 -1
  697. package/dist/components/sidebar/sidebar-main.js +3 -2
  698. package/dist/components/sidebar/sidebar-main.js.map +1 -1
  699. package/dist/components/sidebar/sidebar-misc.cjs +9 -4
  700. package/dist/components/sidebar/sidebar-misc.cjs.map +1 -1
  701. package/dist/components/sidebar/sidebar-misc.d.ts +15 -5
  702. package/dist/components/sidebar/sidebar-misc.d.ts.map +1 -1
  703. package/dist/components/sidebar/sidebar-misc.js +9 -4
  704. package/dist/components/sidebar/sidebar-misc.js.map +1 -1
  705. package/dist/components/sidebar/sidebar-root.cjs +3 -3
  706. package/dist/components/sidebar/sidebar-root.cjs.map +1 -1
  707. package/dist/components/sidebar/sidebar-root.d.ts +6 -3
  708. package/dist/components/sidebar/sidebar-root.d.ts.map +1 -1
  709. package/dist/components/sidebar/sidebar-root.js +4 -4
  710. package/dist/components/sidebar/sidebar-root.js.map +1 -1
  711. package/dist/components/sidebar/sidebar.d.ts +10 -6
  712. package/dist/components/sidebar/sidebar.d.ts.map +1 -1
  713. package/dist/components/skeleton/skeleton.cjs +3 -1
  714. package/dist/components/skeleton/skeleton.cjs.map +1 -1
  715. package/dist/components/skeleton/skeleton.d.ts +10 -4
  716. package/dist/components/skeleton/skeleton.d.ts.map +1 -1
  717. package/dist/components/skeleton/skeleton.js +3 -1
  718. package/dist/components/skeleton/skeleton.js.map +1 -1
  719. package/dist/components/slider/slider.cjs +5 -4
  720. package/dist/components/slider/slider.cjs.map +1 -1
  721. package/dist/components/slider/slider.d.ts +5 -1
  722. package/dist/components/slider/slider.d.ts.map +1 -1
  723. package/dist/components/slider/slider.js +6 -5
  724. package/dist/components/slider/slider.js.map +1 -1
  725. package/dist/components/spinner/spinner.cjs +17 -16
  726. package/dist/components/spinner/spinner.cjs.map +1 -1
  727. package/dist/components/spinner/spinner.d.ts +9 -6
  728. package/dist/components/spinner/spinner.d.ts.map +1 -1
  729. package/dist/components/spinner/spinner.js +17 -16
  730. package/dist/components/spinner/spinner.js.map +1 -1
  731. package/dist/components/switch/switch.cjs +3 -2
  732. package/dist/components/switch/switch.cjs.map +1 -1
  733. package/dist/components/switch/switch.d.ts +4 -1
  734. package/dist/components/switch/switch.d.ts.map +1 -1
  735. package/dist/components/switch/switch.js +3 -2
  736. package/dist/components/switch/switch.js.map +1 -1
  737. package/dist/components/table/table.cjs +28 -22
  738. package/dist/components/table/table.cjs.map +1 -1
  739. package/dist/components/table/table.d.ts +43 -25
  740. package/dist/components/table/table.d.ts.map +1 -1
  741. package/dist/components/table/table.js +28 -22
  742. package/dist/components/table/table.js.map +1 -1
  743. package/dist/components/tabs/tabs.cjs +13 -6
  744. package/dist/components/tabs/tabs.cjs.map +1 -1
  745. package/dist/components/tabs/tabs.d.ts +22 -6
  746. package/dist/components/tabs/tabs.d.ts.map +1 -1
  747. package/dist/components/tabs/tabs.js +13 -6
  748. package/dist/components/tabs/tabs.js.map +1 -1
  749. package/dist/components/text/text.cjs +5 -4
  750. package/dist/components/text/text.cjs.map +1 -1
  751. package/dist/components/text/text.d.ts +13 -11
  752. package/dist/components/text/text.d.ts.map +1 -1
  753. package/dist/components/text/text.js +5 -4
  754. package/dist/components/text/text.js.map +1 -1
  755. package/dist/components/text-area/text-area.cjs +3 -23
  756. package/dist/components/text-area/text-area.cjs.map +1 -1
  757. package/dist/components/text-area/text-area.d.ts +7 -5
  758. package/dist/components/text-area/text-area.d.ts.map +1 -1
  759. package/dist/components/text-area/text-area.js +3 -4
  760. package/dist/components/text-area/text-area.js.map +1 -1
  761. package/dist/components/theme-provider/theme.cjs +4 -3
  762. package/dist/components/theme-provider/theme.cjs.map +1 -1
  763. package/dist/components/theme-provider/theme.d.ts +4 -2
  764. package/dist/components/theme-provider/theme.d.ts.map +1 -1
  765. package/dist/components/theme-provider/theme.js +4 -3
  766. package/dist/components/theme-provider/theme.js.map +1 -1
  767. package/dist/components/toast/toast-provider.cjs +3 -4
  768. package/dist/components/toast/toast-provider.cjs.map +1 -1
  769. package/dist/components/toast/toast-provider.d.ts +5 -2
  770. package/dist/components/toast/toast-provider.d.ts.map +1 -1
  771. package/dist/components/toast/toast-provider.js +3 -4
  772. package/dist/components/toast/toast-provider.js.map +1 -1
  773. package/dist/components/toast/toast-root.cjs +3 -4
  774. package/dist/components/toast/toast-root.cjs.map +1 -1
  775. package/dist/components/toast/toast-root.d.ts +5 -3
  776. package/dist/components/toast/toast-root.d.ts.map +1 -1
  777. package/dist/components/toast/toast-root.js +3 -4
  778. package/dist/components/toast/toast-root.js.map +1 -1
  779. package/dist/components/toast/toast.d.ts +4 -2
  780. package/dist/components/toast/toast.d.ts.map +1 -1
  781. package/dist/components/toggle/__tests__/toggle.test.d.ts +2 -0
  782. package/dist/components/toggle/__tests__/toggle.test.d.ts.map +1 -0
  783. package/dist/components/toggle/index.d.ts +2 -0
  784. package/dist/components/toggle/index.d.ts.map +1 -0
  785. package/dist/components/toggle/toggle.cjs +36 -0
  786. package/dist/components/toggle/toggle.cjs.map +1 -0
  787. package/dist/components/toggle/toggle.d.ts +22 -0
  788. package/dist/components/toggle/toggle.d.ts.map +1 -0
  789. package/dist/components/toggle/toggle.js +34 -0
  790. package/dist/components/toggle/toggle.js.map +1 -0
  791. package/dist/components/toggle/toggle.module.css.cjs +8 -0
  792. package/dist/components/toggle/toggle.module.css.cjs.map +1 -0
  793. package/dist/components/toggle/toggle.module.css.js +4 -0
  794. package/dist/components/toggle/toggle.module.css.js.map +1 -0
  795. package/dist/components/toolbar/__tests__/toolbar.test.d.ts +2 -0
  796. package/dist/components/toolbar/__tests__/toolbar.test.d.ts.map +1 -0
  797. package/dist/components/toolbar/index.d.ts +2 -0
  798. package/dist/components/toolbar/index.d.ts.map +1 -0
  799. package/dist/components/toolbar/toolbar.cjs +25 -0
  800. package/dist/components/toolbar/toolbar.cjs.map +1 -0
  801. package/dist/components/toolbar/toolbar.d.ts +20 -0
  802. package/dist/components/toolbar/toolbar.d.ts.map +1 -0
  803. package/dist/components/toolbar/toolbar.js +23 -0
  804. package/dist/components/toolbar/toolbar.js.map +1 -0
  805. package/dist/components/toolbar/toolbar.module.css.cjs +8 -0
  806. package/dist/components/toolbar/toolbar.module.css.cjs.map +1 -0
  807. package/dist/components/toolbar/toolbar.module.css.js +4 -0
  808. package/dist/components/toolbar/toolbar.module.css.js.map +1 -0
  809. package/dist/components/tooltip/tooltip-content.cjs +2 -3
  810. package/dist/components/tooltip/tooltip-content.cjs.map +1 -1
  811. package/dist/components/tooltip/tooltip-content.d.ts +5 -2
  812. package/dist/components/tooltip/tooltip-content.d.ts.map +1 -1
  813. package/dist/components/tooltip/tooltip-content.js +2 -3
  814. package/dist/components/tooltip/tooltip-content.js.map +1 -1
  815. package/dist/components/tooltip/tooltip-misc.cjs +3 -4
  816. package/dist/components/tooltip/tooltip-misc.cjs.map +1 -1
  817. package/dist/components/tooltip/tooltip-misc.d.ts +4 -1
  818. package/dist/components/tooltip/tooltip-misc.d.ts.map +1 -1
  819. package/dist/components/tooltip/tooltip-misc.js +3 -4
  820. package/dist/components/tooltip/tooltip-misc.js.map +1 -1
  821. package/dist/components/tooltip/tooltip.d.ts +4 -2
  822. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  823. package/dist/index.cjs +16 -0
  824. package/dist/index.cjs.map +1 -1
  825. package/dist/index.d.ts +8 -0
  826. package/dist/index.d.ts.map +1 -1
  827. package/dist/index.js +8 -0
  828. package/dist/index.js.map +1 -1
  829. package/dist/style.css +1 -1
  830. package/package.json +6 -5
  831. package/dist/components/box/box.module.css.cjs.map +0 -1
  832. package/dist/components/box/box.module.css.js +0 -4
  833. package/dist/components/box/box.module.css.js.map +0 -1
@@ -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,9 +1,30 @@
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
+ export declare const Combobox: {
2
+ <Value extends unknown>({ multiple, children, onValueChange, onInputValueChange, value: providedValue, defaultValue, items, ...props }: import("./combobox-root").ComboboxRootProps<Value>): import("react/jsx-runtime").JSX.Element;
3
+ displayName: string;
4
+ } & {
5
+ Input: {
6
+ ({ ref, ...props }: import("./combobox-input").ComboboxInputProps): import("react/jsx-runtime").JSX.Element;
7
+ displayName: string;
8
+ };
9
+ Content: {
10
+ ({ ref, className, children, style, render, initialFocus, finalFocus, sideOffset, ...positionerProps }: import("./combobox-content").ComboboxContentProps): import("react/jsx-runtime").JSX.Element;
11
+ displayName: string;
12
+ };
13
+ Item: {
14
+ ({ className, children, value: providedValue, leadingIcon, disabled, render, ...props }: import("./combobox-item").ComboboxItemProps): import("react/jsx-runtime").JSX.Element | null;
15
+ displayName: string;
16
+ };
17
+ Group: {
18
+ ({ 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;
19
+ displayName: string;
20
+ };
21
+ Label: {
22
+ ({ className, ...props }: import("@base-ui/react").AutocompleteGroupLabelProps): import("react/jsx-runtime").JSX.Element | null;
23
+ displayName: string;
24
+ };
25
+ Separator: {
26
+ ({ className, ...props }: import("@base-ui/react").SeparatorProps): import("react/jsx-runtime").JSX.Element | null;
27
+ displayName: string;
28
+ };
8
29
  };
9
30
  //# 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":"AAUA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOnB,CAAC"}
@@ -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;;;;"}
@@ -1,13 +1,13 @@
1
- import { VariantProps } from "class-variance-authority";
2
- import { HTMLAttributes, PropsWithChildren } from "react";
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { ComponentProps } from 'react';
3
3
  declare const container: (props?: ({
4
4
  size?: "small" | "none" | "medium" | "large" | null | undefined;
5
5
  align?: "center" | "left" | "right" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
- type ContainerProps = PropsWithChildren<VariantProps<typeof container>> & HTMLAttributes<HTMLElement> & {
8
- "aria-label"?: string;
9
- "aria-labelledby"?: string;
10
- };
7
+ type ContainerProps = VariantProps<typeof container> & ComponentProps<'div'>;
11
8
  export declare function Container({ children, size, align, className, role, ...props }: ContainerProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare namespace Container {
10
+ var displayName: string;
11
+ }
12
12
  export {};
13
13
  //# sourceMappingURL=container.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../components/container/container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI1D,QAAA,MAAM,SAAS;;;8EAkBb,CAAC;AAEH,KAAK,cAAc,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC,GACrE,cAAc,CAAC,WAAW,CAAC,GAAG;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEJ,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,SAAS,EACT,IAAe,EACf,GAAG,KAAK,EACT,EAAE,cAAc,2CAUhB"}
1
+ {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../components/container/container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAIvC,QAAA,MAAM,SAAS;;;8EAkBb,CAAC;AAEH,KAAK,cAAc,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE7E,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,SAAS,EACT,IAAe,EACf,GAAG,KAAK,EACT,EAAE,cAAc,2CAUhB;yBAjBe,SAAS"}
@@ -5,25 +5,26 @@ import styles from './container.module.css.js';
5
5
  const container = cva(styles.container, {
6
6
  variants: {
7
7
  size: {
8
- small: styles["container-small"],
9
- medium: styles["container-medium"],
10
- large: styles["container-large"],
11
- none: styles["container-none"],
8
+ small: styles['container-small'],
9
+ medium: styles['container-medium'],
10
+ large: styles['container-large'],
11
+ none: styles['container-none']
12
12
  },
13
13
  align: {
14
- left: styles["container-align-left"],
15
- center: styles["container-align-center"],
16
- right: styles["container-align-right"],
14
+ left: styles['container-align-left'],
15
+ center: styles['container-align-center'],
16
+ right: styles['container-align-right']
17
17
  }
18
18
  },
19
19
  defaultVariants: {
20
- size: "none",
21
- align: "center",
22
- },
20
+ size: 'none',
21
+ align: 'center'
22
+ }
23
23
  });
24
- function Container({ children, size, align, className, role = "region", ...props }) {
24
+ function Container({ children, size, align, className, role = 'region', ...props }) {
25
25
  return (jsx("div", { className: container({ size, align, className }), role: role, ...props, children: children }));
26
26
  }
27
+ Container.displayName = 'Container';
27
28
 
28
29
  export { Container };
29
30
  //# sourceMappingURL=container.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"container.js","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":["_jsx"],"mappings":";;;;AAKA,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,SAAS,EAAE;AACtC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAE,MAAM,CAAC,iBAAiB,CAAC;AAChC,YAAA,MAAM,EAAE,MAAM,CAAC,kBAAkB,CAAC;AAClC,YAAA,KAAK,EAAE,MAAM,CAAC,iBAAiB,CAAC;AAChC,YAAA,IAAI,EAAE,MAAM,CAAC,gBAAgB,CAAC;AAC/B,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAE,MAAM,CAAC,sBAAsB,CAAC;AACpC,YAAA,MAAM,EAAE,MAAM,CAAC,wBAAwB,CAAC;AACxC,YAAA,KAAK,EAAE,MAAM,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,QACEA,GACE,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.js","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":["_jsx"],"mappings":";;;;AAKA,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,SAAS,EAAE;AACtC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAE,MAAM,CAAC,iBAAiB,CAAC;AAChC,YAAA,MAAM,EAAE,MAAM,CAAC,kBAAkB,CAAC;AAClC,YAAA,KAAK,EAAE,MAAM,CAAC,iBAAiB,CAAC;AAChC,YAAA,IAAI,EAAE,MAAM,CAAC,gBAAgB,CAAC;AAC/B,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAE,MAAM,CAAC,sBAAsB,CAAC;AACpC,YAAA,MAAM,EAAE,MAAM,CAAC,wBAAwB,CAAC;AACxC,YAAA,KAAK,EAAE,MAAM,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,QACEA,GACE,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;;;;"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=context-menu.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-menu.test.d.ts","sourceRoot":"","sources":["../../../../components/context-menu/__tests__/context-menu.test.tsx"],"names":[],"mappings":""}