@devalok/shilp-sutra 0.53.0 → 0.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (429) hide show
  1. package/AGENTS.md +7 -1
  2. package/BREAKING.json +29 -0
  3. package/MIGRATION.md +83 -0
  4. package/dist/_chunks/badge-group.js +1 -1
  5. package/dist/_chunks/popover.js +38 -37
  6. package/dist/_chunks/popover.js.map +1 -1
  7. package/dist/_chunks/primitives/react-accordion.js +270 -0
  8. package/dist/_chunks/primitives/react-accordion.js.map +1 -0
  9. package/dist/_chunks/primitives/react-alert-dialog.js +857 -0
  10. package/dist/_chunks/primitives/react-alert-dialog.js.map +1 -0
  11. package/dist/_chunks/primitives/react-aspect-ratio.js +32 -0
  12. package/dist/_chunks/primitives/react-aspect-ratio.js.map +1 -0
  13. package/dist/_chunks/primitives/react-avatar.js +69 -0
  14. package/dist/_chunks/primitives/react-avatar.js.map +1 -0
  15. package/dist/_chunks/primitives/react-checkbox.js +151 -0
  16. package/dist/_chunks/primitives/react-checkbox.js.map +1 -0
  17. package/dist/_chunks/primitives/react-context-menu.js +905 -0
  18. package/dist/_chunks/primitives/react-context-menu.js.map +1 -0
  19. package/dist/_chunks/primitives/react-dropdown-menu.js +220 -0
  20. package/dist/_chunks/primitives/react-dropdown-menu.js.map +1 -0
  21. package/dist/_chunks/primitives/react-hover-card.js +153 -0
  22. package/dist/_chunks/primitives/react-hover-card.js.map +1 -0
  23. package/dist/_chunks/primitives/react-label.js +16 -0
  24. package/dist/_chunks/primitives/react-label.js.map +1 -0
  25. package/dist/_chunks/primitives/react-menubar.js +304 -0
  26. package/dist/_chunks/primitives/react-menubar.js.map +1 -0
  27. package/dist/_chunks/primitives/react-navigation-menu.js +560 -0
  28. package/dist/_chunks/primitives/react-navigation-menu.js.map +1 -0
  29. package/dist/_chunks/primitives/react-popover.js +186 -0
  30. package/dist/_chunks/primitives/react-popover.js.map +1 -0
  31. package/dist/_chunks/primitives/react-progress.js +70 -0
  32. package/dist/_chunks/primitives/react-progress.js.map +1 -0
  33. package/dist/_chunks/primitives/react-radio-group.js +170 -0
  34. package/dist/_chunks/primitives/react-radio-group.js.map +1 -0
  35. package/dist/_chunks/primitives/react-select.js +671 -0
  36. package/dist/_chunks/primitives/react-select.js.map +1 -0
  37. package/dist/_chunks/primitives/react-separator.js +24 -0
  38. package/dist/_chunks/primitives/react-separator.js.map +1 -0
  39. package/dist/_chunks/primitives/react-slider.js +349 -0
  40. package/dist/_chunks/primitives/react-slider.js.map +1 -0
  41. package/dist/_chunks/primitives/react-switch.js +92 -0
  42. package/dist/_chunks/primitives/react-switch.js.map +1 -0
  43. package/dist/_chunks/primitives/react-tabs.js +114 -0
  44. package/dist/_chunks/primitives/react-tabs.js.map +1 -0
  45. package/dist/_chunks/primitives/react-toggle-group.js +122 -0
  46. package/dist/_chunks/primitives/react-toggle-group.js.map +1 -0
  47. package/dist/_chunks/primitives/react-toggle.js +28 -0
  48. package/dist/_chunks/primitives/react-toggle.js.map +1 -0
  49. package/dist/_chunks/primitives/react-tooltip.js +341 -0
  50. package/dist/_chunks/primitives/react-tooltip.js.map +1 -0
  51. package/dist/_chunks/primitives-internal.js +2071 -0
  52. package/dist/_chunks/primitives-internal.js.map +1 -0
  53. package/dist/_chunks/shared.js +32 -32
  54. package/dist/_chunks/tiptap.js +1 -1
  55. package/dist/ai/ai-command-provider.d.ts +2 -3
  56. package/dist/ai/block-renderer.d.ts +1 -2
  57. package/dist/ai/blocks/block-shell.d.ts +0 -1
  58. package/dist/ai/blocks/block-table.d.ts +1 -2
  59. package/dist/ai/blocks/confirm.d.ts +1 -2
  60. package/dist/ai/blocks/divider.d.ts +1 -2
  61. package/dist/ai/blocks/error.d.ts +1 -2
  62. package/dist/ai/blocks/index.d.ts +7 -8
  63. package/dist/ai/blocks/info.d.ts +1 -2
  64. package/dist/ai/blocks/loading.d.ts +1 -2
  65. package/dist/ai/blocks/stat-row.d.ts +1 -2
  66. package/dist/ai/blocks/success.d.ts +1 -2
  67. package/dist/ai/blocks/text.d.ts +1 -2
  68. package/dist/ai/command-bar.d.ts +1 -2
  69. package/dist/ai/conversation.d.ts +2 -3
  70. package/dist/ai/devadoot-icon.d.ts +0 -1
  71. package/dist/ai/index.d.ts +16 -17
  72. package/dist/ai/types.js +1 -0
  73. package/dist/composed/activity-feed.d.ts +1 -2
  74. package/dist/composed/avatar-group.d.ts +11 -10
  75. package/dist/composed/avatar-group.d.ts.map +1 -1
  76. package/dist/composed/avatar-group.js +108 -140
  77. package/dist/composed/avatar-group.js.map +1 -1
  78. package/dist/composed/bulk-action-bar.d.ts +20 -13
  79. package/dist/composed/bulk-action-bar.d.ts.map +1 -1
  80. package/dist/composed/bulk-action-bar.js +81 -110
  81. package/dist/composed/bulk-action-bar.js.map +1 -1
  82. package/dist/composed/command-palette.d.ts +1 -2
  83. package/dist/composed/confirm-dialog.d.ts +0 -1
  84. package/dist/composed/date-picker/calendar-grid.d.ts +0 -1
  85. package/dist/composed/date-picker/date-picker.d.ts +0 -1
  86. package/dist/composed/date-picker/date-range-picker.d.ts +1 -2
  87. package/dist/composed/date-picker/date-time-picker.d.ts +0 -1
  88. package/dist/composed/date-picker/index.d.ts +17 -18
  89. package/dist/composed/date-picker/month-picker.d.ts +0 -1
  90. package/dist/composed/date-picker/presets.d.ts +0 -1
  91. package/dist/composed/date-picker/time-picker.d.ts +0 -1
  92. package/dist/composed/date-picker/use-calendar.d.ts +0 -1
  93. package/dist/composed/date-picker/year-picker.d.ts +0 -1
  94. package/dist/composed/deadline-indicator.d.ts +0 -1
  95. package/dist/composed/diff.d.ts +0 -1
  96. package/dist/composed/emoji-picker.d.ts +0 -1
  97. package/dist/composed/empty-state.d.ts +1 -2
  98. package/dist/composed/error-boundary.d.ts +15 -4
  99. package/dist/composed/error-boundary.d.ts.map +1 -1
  100. package/dist/composed/error-boundary.js +43 -26
  101. package/dist/composed/error-boundary.js.map +1 -1
  102. package/dist/composed/extensions/emoji-data.d.ts +0 -1
  103. package/dist/composed/extensions/emoji-node.d.ts +0 -1
  104. package/dist/composed/extensions/emoji-suggestion.d.ts +1 -2
  105. package/dist/composed/extensions/file-attachment.d.ts +0 -1
  106. package/dist/composed/extensions/mention-suggestion.d.ts +1 -2
  107. package/dist/composed/extensions/slash-command.d.ts +0 -1
  108. package/dist/composed/file-preview/audio-preview.d.ts +0 -1
  109. package/dist/composed/file-preview/document-preview.d.ts +0 -1
  110. package/dist/composed/file-preview/embed-preview.d.ts +0 -1
  111. package/dist/composed/file-preview/image-preview.d.ts +0 -1
  112. package/dist/composed/file-preview/shared.d.ts +0 -1
  113. package/dist/composed/file-preview/video-preview.d.ts +0 -1
  114. package/dist/composed/file-preview.d.ts +0 -1
  115. package/dist/composed/filter-bar.d.ts +0 -1
  116. package/dist/composed/form-section.d.ts +0 -1
  117. package/dist/composed/global-loading.d.ts +0 -1
  118. package/dist/composed/index.d.ts +49 -50
  119. package/dist/composed/inline-edit.d.ts +0 -1
  120. package/dist/composed/loading-skeleton.d.ts +2 -0
  121. package/dist/composed/loading-skeleton.d.ts.map +1 -1
  122. package/dist/composed/loading-skeleton.js +79 -56
  123. package/dist/composed/loading-skeleton.js.map +1 -1
  124. package/dist/composed/markdown-viewer.d.ts +0 -1
  125. package/dist/composed/master-detail.d.ts +21 -9
  126. package/dist/composed/master-detail.d.ts.map +1 -1
  127. package/dist/composed/master-detail.js +91 -77
  128. package/dist/composed/master-detail.js.map +1 -1
  129. package/dist/composed/member-picker.d.ts +0 -1
  130. package/dist/composed/multi-select-popover.d.ts +0 -1
  131. package/dist/composed/page-skeletons.d.ts +6 -0
  132. package/dist/composed/page-skeletons.d.ts.map +1 -1
  133. package/dist/composed/page-skeletons.js +93 -71
  134. package/dist/composed/page-skeletons.js.map +1 -1
  135. package/dist/composed/priority-indicator.d.ts +0 -1
  136. package/dist/composed/responsive-modal.d.ts +1 -2
  137. package/dist/composed/responsive-modal.js +47 -47
  138. package/dist/composed/rich-chat-input/attachment-strip.d.ts +0 -1
  139. package/dist/composed/rich-chat-input/audio-player.d.ts +0 -1
  140. package/dist/composed/rich-chat-input/audio-waveform.d.ts +0 -1
  141. package/dist/composed/rich-chat-input/chat-toolbar.d.ts +0 -1
  142. package/dist/composed/rich-chat-input/recording-overlay.d.ts +0 -1
  143. package/dist/composed/rich-chat-input/reply-banner.d.ts +0 -1
  144. package/dist/composed/rich-chat-input/schedule-send.d.ts +0 -1
  145. package/dist/composed/rich-chat-input/use-voice-recorder.d.ts +0 -1
  146. package/dist/composed/rich-chat-input.d.ts +9 -10
  147. package/dist/composed/rich-chat-input.js +1 -1
  148. package/dist/composed/rich-text-editor.d.ts +1 -2
  149. package/dist/composed/schedule-view.d.ts +0 -1
  150. package/dist/composed/simple-tooltip.d.ts +0 -1
  151. package/dist/composed/status-badge.d.ts +1 -2
  152. package/dist/hooks/index.d.ts +6 -7
  153. package/dist/hooks/use-color-mode.d.ts +0 -1
  154. package/dist/hooks/use-mobile.d.ts +0 -1
  155. package/dist/hooks/use-touch-device.d.ts +0 -1
  156. package/dist/hooks/use-viewport-height.d.ts +0 -1
  157. package/dist/motion/check-motion-provider.d.ts +0 -1
  158. package/dist/motion/index.d.ts +2 -3
  159. package/dist/motion/motion-provider.d.ts +1 -2
  160. package/dist/motion/primitives-index.d.ts +1 -2
  161. package/dist/motion/primitives.d.ts +1 -2
  162. package/dist/primitives/_internal/react-arrow.d.ts +1 -1
  163. package/dist/primitives/_internal/react-collection.d.ts +2 -2
  164. package/dist/primitives/_internal/react-dismissable-layer.d.ts +1 -1
  165. package/dist/primitives/_internal/react-focus-scope.d.ts +1 -1
  166. package/dist/primitives/_internal/react-popper.d.ts +4 -4
  167. package/dist/primitives/_internal/react-portal.d.ts +1 -1
  168. package/dist/primitives/_internal/react-use-rect.d.ts +1 -1
  169. package/dist/primitives/react-accordion.d.ts +3 -3
  170. package/dist/primitives/react-alert-dialog.d.ts +2 -2
  171. package/dist/primitives/react-aspect-ratio.d.ts +1 -1
  172. package/dist/primitives/react-avatar.d.ts +2 -2
  173. package/dist/primitives/react-checkbox.d.ts +3 -3
  174. package/dist/primitives/react-collapsible.d.ts +2 -2
  175. package/dist/primitives/react-context-menu.d.ts +3 -3
  176. package/dist/primitives/react-dialog.d.ts +5 -5
  177. package/dist/primitives/react-dropdown-menu.d.ts +3 -3
  178. package/dist/primitives/react-hover-card.d.ts +5 -5
  179. package/dist/primitives/react-label.d.ts +1 -1
  180. package/dist/primitives/react-menu.d.ts +7 -7
  181. package/dist/primitives/react-menubar.d.ts +5 -5
  182. package/dist/primitives/react-navigation-menu.d.ts +5 -5
  183. package/dist/primitives/react-popover.d.ts +6 -6
  184. package/dist/primitives/react-progress.d.ts +2 -2
  185. package/dist/primitives/react-radio-group.d.ts +3 -3
  186. package/dist/primitives/react-roving-focus.d.ts +2 -2
  187. package/dist/primitives/react-select.d.ts +6 -6
  188. package/dist/primitives/react-separator.d.ts +1 -1
  189. package/dist/primitives/react-slider.d.ts +2 -2
  190. package/dist/primitives/react-switch.d.ts +2 -2
  191. package/dist/primitives/react-tabs.d.ts +3 -3
  192. package/dist/primitives/react-toast.d.ts +3 -3
  193. package/dist/primitives/react-toggle-group.d.ts +4 -4
  194. package/dist/primitives/react-toggle.d.ts +1 -1
  195. package/dist/primitives/react-tooltip.d.ts +5 -5
  196. package/dist/primitives/react-visually-hidden.d.ts +1 -1
  197. package/dist/shell/app-command-palette.d.ts +2 -3
  198. package/dist/shell/bottom-navbar.d.ts +1 -2
  199. package/dist/shell/command-registry.d.ts +1 -2
  200. package/dist/shell/index.d.ts +12 -11
  201. package/dist/shell/index.d.ts.map +1 -1
  202. package/dist/shell/index.js +2 -3
  203. package/dist/shell/link-context.d.ts +2 -3
  204. package/dist/shell/notification-center.d.ts +0 -1
  205. package/dist/shell/notification-preferences.d.ts +0 -1
  206. package/dist/shell/notification-preferences.d.ts.map +1 -1
  207. package/dist/shell/notification-preferences.js +2 -0
  208. package/dist/shell/notification-preferences.js.map +1 -1
  209. package/dist/shell/top-bar.d.ts +1 -2
  210. package/dist/test-utils/conformance.d.ts +0 -1
  211. package/dist/ui/accordion.d.ts +1 -2
  212. package/dist/ui/accordion.js +1 -1
  213. package/dist/ui/alert-dialog.d.ts +1 -2
  214. package/dist/ui/alert-dialog.js +52 -52
  215. package/dist/ui/alert.d.ts +0 -1
  216. package/dist/ui/aspect-ratio.d.ts +1 -2
  217. package/dist/ui/aspect-ratio.js +4 -4
  218. package/dist/ui/autocomplete.d.ts +1 -2
  219. package/dist/ui/autocomplete.js +1 -1
  220. package/dist/ui/avatar.d.ts +1 -2
  221. package/dist/ui/avatar.js +33 -33
  222. package/dist/ui/badge-group.d.ts +1 -2
  223. package/dist/ui/badge-indicator.d.ts +0 -1
  224. package/dist/ui/badge.d.ts +3 -4
  225. package/dist/ui/banner.d.ts +0 -1
  226. package/dist/ui/breadcrumb.js +1 -1
  227. package/dist/ui/button-group.d.ts +1 -2
  228. package/dist/ui/button-processing.d.ts +0 -1
  229. package/dist/ui/button.d.ts +1 -2
  230. package/dist/ui/button.js +1 -1
  231. package/dist/ui/card.d.ts +0 -1
  232. package/dist/ui/charts/_internal/animation.d.ts +0 -1
  233. package/dist/ui/charts/_internal/axes.d.ts +0 -1
  234. package/dist/ui/charts/_internal/colors.d.ts +1 -2
  235. package/dist/ui/charts/_internal/grid-lines.d.ts +0 -1
  236. package/dist/ui/charts/_internal/legend.d.ts +0 -1
  237. package/dist/ui/charts/_internal/scales.d.ts +0 -1
  238. package/dist/ui/charts/_internal/tooltip.d.ts +0 -1
  239. package/dist/ui/charts/_internal/types.d.ts +0 -1
  240. package/dist/ui/charts/area-chart.d.ts +1 -2
  241. package/dist/ui/charts/bar-chart.d.ts +1 -2
  242. package/dist/ui/charts/chart-container.d.ts +1 -2
  243. package/dist/ui/charts/gauge-chart.d.ts +0 -1
  244. package/dist/ui/charts/index.d.ts +9 -10
  245. package/dist/ui/charts/line-chart.d.ts +1 -2
  246. package/dist/ui/charts/pie-chart.d.ts +0 -1
  247. package/dist/ui/charts/radar-chart.d.ts +0 -1
  248. package/dist/ui/charts/sparkline.d.ts +0 -1
  249. package/dist/ui/chat/date-separator.d.ts +0 -1
  250. package/dist/ui/chat/index.d.ts +7 -8
  251. package/dist/ui/chat/message-input.d.ts +0 -1
  252. package/dist/ui/chat/message-list.d.ts +0 -1
  253. package/dist/ui/chat/message.d.ts +1 -2
  254. package/dist/ui/chat/system-message.d.ts +1 -2
  255. package/dist/ui/chat/typing-indicator.d.ts +0 -1
  256. package/dist/ui/chat/unread-separator.d.ts +0 -1
  257. package/dist/ui/checkbox.d.ts +2 -3
  258. package/dist/ui/checkbox.js +13 -13
  259. package/dist/ui/collapsible.d.ts +1 -2
  260. package/dist/ui/collapsible.js +1 -1
  261. package/dist/ui/color-input.d.ts +0 -1
  262. package/dist/ui/color-swatch.d.ts +0 -1
  263. package/dist/ui/combobox.d.ts +3 -4
  264. package/dist/ui/combobox.d.ts.map +1 -1
  265. package/dist/ui/combobox.js +146 -141
  266. package/dist/ui/combobox.js.map +1 -1
  267. package/dist/ui/context-menu.d.ts +1 -2
  268. package/dist/ui/context-menu.js +58 -58
  269. package/dist/ui/data-table-body.d.ts +0 -1
  270. package/dist/ui/data-table-bulk-actions.d.ts +0 -1
  271. package/dist/ui/data-table-card.d.ts +0 -1
  272. package/dist/ui/data-table-context.d.ts +0 -1
  273. package/dist/ui/data-table-header.d.ts +0 -1
  274. package/dist/ui/data-table-pagination.d.ts +0 -1
  275. package/dist/ui/data-table-toolbar.d.ts +0 -1
  276. package/dist/ui/data-table.d.ts +3 -4
  277. package/dist/ui/devalok-grain.d.ts +0 -1
  278. package/dist/ui/dialog.d.ts +1 -2
  279. package/dist/ui/dialog.js +43 -43
  280. package/dist/ui/dot.d.ts +0 -1
  281. package/dist/ui/dropdown-menu.d.ts +1 -2
  282. package/dist/ui/dropdown-menu.js +69 -69
  283. package/dist/ui/file-upload.d.ts +0 -1
  284. package/dist/ui/file-upload.d.ts.map +1 -1
  285. package/dist/ui/file-upload.js +124 -138
  286. package/dist/ui/file-upload.js.map +1 -1
  287. package/dist/ui/form.d.ts +7 -1
  288. package/dist/ui/form.d.ts.map +1 -1
  289. package/dist/ui/form.js +4 -2
  290. package/dist/ui/form.js.map +1 -1
  291. package/dist/ui/hover-card.d.ts +1 -2
  292. package/dist/ui/hover-card.js +16 -16
  293. package/dist/ui/icon-button.d.ts +4 -4
  294. package/dist/ui/icon-button.d.ts.map +1 -1
  295. package/dist/ui/icon-button.js +1 -1
  296. package/dist/ui/icon-button.js.map +1 -1
  297. package/dist/ui/icon-context.d.ts +0 -1
  298. package/dist/ui/icon-group.d.ts +1 -2
  299. package/dist/ui/icon.d.ts +1 -2
  300. package/dist/ui/index.d.ts +78 -79
  301. package/dist/ui/index.d.ts.map +1 -1
  302. package/dist/ui/index.js.map +1 -1
  303. package/dist/ui/input-otp.d.ts +0 -1
  304. package/dist/ui/input.d.ts +1 -2
  305. package/dist/ui/label.d.ts +1 -2
  306. package/dist/ui/label.d.ts.map +1 -1
  307. package/dist/ui/label.js +13 -12
  308. package/dist/ui/label.js.map +1 -1
  309. package/dist/ui/lib/bottom-sheet.d.ts +0 -1
  310. package/dist/ui/lib/check-tokens.d.ts +0 -1
  311. package/dist/ui/lib/field-state.d.ts +0 -1
  312. package/dist/ui/lib/icon-input.d.ts +0 -1
  313. package/dist/ui/lib/index.d.ts +6 -7
  314. package/dist/ui/lib/keybinding.d.ts +0 -1
  315. package/dist/ui/lib/link-context.d.ts +0 -1
  316. package/dist/ui/lib/mention.d.ts +0 -1
  317. package/dist/ui/lib/normalize-icon.d.ts +2 -2
  318. package/dist/ui/lib/slot.d.ts +2 -3
  319. package/dist/ui/lib/use-controllable-open.d.ts +0 -1
  320. package/dist/ui/link.d.ts +0 -1
  321. package/dist/ui/link.js +1 -1
  322. package/dist/ui/menubar.d.ts +1 -2
  323. package/dist/ui/menubar.js +64 -64
  324. package/dist/ui/navigation-menu.d.ts +1 -2
  325. package/dist/ui/navigation-menu.js +67 -67
  326. package/dist/ui/number-input.d.ts +1 -2
  327. package/dist/ui/oauth-button/index.d.ts +1 -2
  328. package/dist/ui/oauth-button/oauth-button.d.ts +2 -3
  329. package/dist/ui/pagination.d.ts +0 -1
  330. package/dist/ui/pagination.js +1 -1
  331. package/dist/ui/popover.d.ts +1 -2
  332. package/dist/ui/progress-ring.d.ts +0 -1
  333. package/dist/ui/progress.d.ts +1 -2
  334. package/dist/ui/progress.js +30 -30
  335. package/dist/ui/radio.d.ts +2 -3
  336. package/dist/ui/radio.js +18 -18
  337. package/dist/ui/search-input.d.ts +0 -1
  338. package/dist/ui/segmented-control.d.ts +1 -2
  339. package/dist/ui/select.d.ts +1 -2
  340. package/dist/ui/select.js +55 -55
  341. package/dist/ui/separator.d.ts +1 -2
  342. package/dist/ui/separator.js +5 -5
  343. package/dist/ui/sheet.d.ts +1 -2
  344. package/dist/ui/sheet.js +45 -45
  345. package/dist/ui/sidebar.d.ts +4 -5
  346. package/dist/ui/sidebar.js +1 -1
  347. package/dist/ui/slider.d.ts +1 -2
  348. package/dist/ui/slider.js +14 -14
  349. package/dist/ui/spinner.d.ts +0 -1
  350. package/dist/ui/spinner.d.ts.map +1 -1
  351. package/dist/ui/spinner.js +50 -44
  352. package/dist/ui/spinner.js.map +1 -1
  353. package/dist/ui/split-button.d.ts +14 -4
  354. package/dist/ui/split-button.d.ts.map +1 -1
  355. package/dist/ui/split-button.js.map +1 -1
  356. package/dist/ui/stat-card.d.ts +3 -4
  357. package/dist/ui/stat-flash.d.ts +1 -2
  358. package/dist/ui/stepper.d.ts +1 -2
  359. package/dist/ui/surface.js +1 -1
  360. package/dist/ui/switch.d.ts +2 -3
  361. package/dist/ui/switch.d.ts.map +1 -1
  362. package/dist/ui/switch.js +31 -31
  363. package/dist/ui/switch.js.map +1 -1
  364. package/dist/ui/table-row-link.d.ts +0 -1
  365. package/dist/ui/table.js +1 -1
  366. package/dist/ui/table.js.map +1 -1
  367. package/dist/ui/tabs.d.ts +1 -2
  368. package/dist/ui/tabs.js +35 -35
  369. package/dist/ui/textarea.d.ts +1 -2
  370. package/dist/ui/toast-registry.d.ts +0 -1
  371. package/dist/ui/toast-types.js +1 -0
  372. package/dist/ui/toast.d.ts +2 -3
  373. package/dist/ui/toaster.d.ts +0 -1
  374. package/dist/ui/toggle-group.d.ts +2 -3
  375. package/dist/ui/toggle-group.js +14 -14
  376. package/dist/ui/toggle.d.ts +1 -2
  377. package/dist/ui/toggle.js +12 -12
  378. package/dist/ui/tooltip.d.ts +1 -2
  379. package/dist/ui/tooltip.js +21 -21
  380. package/dist/ui/tree-view/index.d.ts +3 -4
  381. package/dist/ui/tree-view/tree-item.d.ts +1 -2
  382. package/dist/ui/tree-view/tree-view.d.ts +1 -2
  383. package/dist/ui/tree-view/use-tree.d.ts +1 -2
  384. package/dist/ui/truncated-text.d.ts +0 -1
  385. package/docs/components/composed/bulk-action-bar.md +9 -3
  386. package/docs/components/composed/error-boundary.md +18 -2
  387. package/docs/components/composed/master-detail.md +12 -2
  388. package/docs/components/composed/page-skeletons.md +2 -2
  389. package/docs/components/composed/rich-chat-input.md +18 -6
  390. package/docs/components/composed/simple-tooltip.md +1 -1
  391. package/docs/components/shell/app-command-palette.md +2 -1
  392. package/docs/components/shell/bottom-navbar.md +4 -4
  393. package/docs/components/shell/command-registry.md +2 -2
  394. package/docs/components/shell/link-context.md +2 -2
  395. package/docs/components/shell/top-bar.md +1 -1
  396. package/docs/components/ui/search-input.md +2 -2
  397. package/docs/components/ui/slider.md +2 -2
  398. package/docs/components/ui/split-button.md +3 -3
  399. package/docs/recipes/install-astro.md +2 -0
  400. package/docs/recipes/install-next-app-router.md +2 -0
  401. package/docs/recipes/install-remix.md +2 -0
  402. package/docs/recipes/install-tanstack-start.md +2 -0
  403. package/docs/recipes/install-vite.md +2 -0
  404. package/docs/recipes/troubleshoot.md +80 -0
  405. package/llms.txt +2 -2
  406. package/make-kit/Guidelines.md +1 -1
  407. package/make-kit/components/overview.md +2 -2
  408. package/make-kit/foundations/surfaces.md +1 -1
  409. package/mcp-manifest.json +411 -147
  410. package/package.json +30 -10
  411. package/skill/SKILL.md +1 -1
  412. package/skill/chat-skill/README.md +18 -0
  413. package/skill/chat-skill/SKILL.md +78 -0
  414. package/skill/chat-skill/chatgpt-instructions.md +26 -0
  415. package/skill/chat-skill/gemini-instructions.md +25 -0
  416. package/skill/references/components.md +2 -2
  417. package/skill/references/setup-astro.md +2 -0
  418. package/skill/references/setup-next-app-router.md +2 -0
  419. package/skill/references/setup-remix.md +2 -0
  420. package/skill/references/setup-tanstack-start.md +2 -0
  421. package/skill/references/setup-vite.md +2 -0
  422. package/skill/references/troubleshoot.md +80 -0
  423. package/dist/_chunks/primitives.js +0 -7596
  424. package/dist/_chunks/primitives.js.map +0 -1
  425. package/dist/shell/sidebar.d.ts +0 -113
  426. package/dist/shell/sidebar.d.ts.map +0 -1
  427. package/dist/shell/sidebar.js +0 -293
  428. package/dist/shell/sidebar.js.map +0 -1
  429. package/docs/components/shell/sidebar.md +0 -103
@@ -0,0 +1,857 @@
1
+ "use client";
2
+ import { DismissableLayer as e, FocusScope as t, Portal as n, Presence as r, Primitive as i, composeEventHandlers as a, createContext as o, createContextScope as s, createSlot as c, createSlottable as l, useComposedRefs as u, useControllableState as d, useFocusGuards as f, useId as p } from "../primitives-internal.js";
3
+ import * as m from "react";
4
+ import { useState as h } from "react";
5
+ import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
6
+ //#region ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
7
+ var y = function() {
8
+ return y = Object.assign || function(e) {
9
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
10
+ return e;
11
+ }, y.apply(this, arguments);
12
+ };
13
+ function ee(e, t) {
14
+ var n = {};
15
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
16
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
17
+ return n;
18
+ }
19
+ function te(e, t, n) {
20
+ if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
21
+ return e.concat(a || Array.prototype.slice.call(t));
22
+ }
23
+ //#endregion
24
+ //#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.17_react@19.2.8/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
25
+ var b = "right-scroll-bar-position", x = "width-before-scroll-bar", ne = "with-scroll-bars-hidden", S = "--removed-body-scroll-bar-size";
26
+ //#endregion
27
+ //#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.17_react@19.2.8/node_modules/use-callback-ref/dist/es2015/assignRef.js
28
+ function C(e, t) {
29
+ return typeof e == "function" ? e(t) : e && (e.current = t), e;
30
+ }
31
+ //#endregion
32
+ //#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.17_react@19.2.8/node_modules/use-callback-ref/dist/es2015/useRef.js
33
+ function re(e, t) {
34
+ var n = h(function() {
35
+ return {
36
+ value: e,
37
+ callback: t,
38
+ facade: {
39
+ get current() {
40
+ return n.value;
41
+ },
42
+ set current(e) {
43
+ var t = n.value;
44
+ t !== e && (n.value = e, n.callback(e, t));
45
+ }
46
+ }
47
+ };
48
+ })[0];
49
+ return n.callback = t, n.facade;
50
+ }
51
+ //#endregion
52
+ //#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.17_react@19.2.8/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
53
+ var ie = typeof window < "u" ? m.useLayoutEffect : m.useEffect, w = /* @__PURE__ */ new WeakMap();
54
+ function ae(e, t) {
55
+ var n = re(t || null, function(t) {
56
+ return e.forEach(function(e) {
57
+ return C(e, t);
58
+ });
59
+ });
60
+ return ie(function() {
61
+ var t = w.get(n);
62
+ if (t) {
63
+ var r = new Set(t), i = new Set(e), a = n.current;
64
+ r.forEach(function(e) {
65
+ i.has(e) || C(e, null);
66
+ }), i.forEach(function(e) {
67
+ r.has(e) || C(e, a);
68
+ });
69
+ }
70
+ w.set(n, e);
71
+ }, [e]), n;
72
+ }
73
+ //#endregion
74
+ //#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.17_react@19.2.8/node_modules/use-sidecar/dist/es2015/medium.js
75
+ function oe(e) {
76
+ return e;
77
+ }
78
+ function se(e, t) {
79
+ t === void 0 && (t = oe);
80
+ var n = [], r = !1;
81
+ return {
82
+ read: function() {
83
+ if (r) throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
84
+ return n.length ? n[n.length - 1] : e;
85
+ },
86
+ useMedium: function(e) {
87
+ var i = t(e, r);
88
+ return n.push(i), function() {
89
+ n = n.filter(function(e) {
90
+ return e !== i;
91
+ });
92
+ };
93
+ },
94
+ assignSyncMedium: function(e) {
95
+ for (r = !0; n.length;) {
96
+ var t = n;
97
+ n = [], t.forEach(e);
98
+ }
99
+ n = {
100
+ push: function(t) {
101
+ return e(t);
102
+ },
103
+ filter: function() {
104
+ return n;
105
+ }
106
+ };
107
+ },
108
+ assignMedium: function(e) {
109
+ r = !0;
110
+ var t = [];
111
+ if (n.length) {
112
+ var i = n;
113
+ n = [], i.forEach(e), t = n;
114
+ }
115
+ var a = function() {
116
+ var n = t;
117
+ t = [], n.forEach(e);
118
+ }, o = function() {
119
+ return Promise.resolve().then(a);
120
+ };
121
+ o(), n = {
122
+ push: function(e) {
123
+ t.push(e), o();
124
+ },
125
+ filter: function(e) {
126
+ return t = t.filter(e), n;
127
+ }
128
+ };
129
+ }
130
+ };
131
+ }
132
+ function ce(e) {
133
+ e === void 0 && (e = {});
134
+ var t = se(null);
135
+ return t.options = y({
136
+ async: !0,
137
+ ssr: !1
138
+ }, e), t;
139
+ }
140
+ //#endregion
141
+ //#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.17_react@19.2.8/node_modules/use-sidecar/dist/es2015/exports.js
142
+ var le = function(e) {
143
+ var t = e.sideCar, n = ee(e, ["sideCar"]);
144
+ if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
145
+ var r = t.read();
146
+ if (!r) throw Error("Sidecar medium not found");
147
+ return m.createElement(r, y({}, n));
148
+ };
149
+ le.isSideCarExport = !0;
150
+ function ue(e, t) {
151
+ return e.useMedium(t), le;
152
+ }
153
+ //#endregion
154
+ //#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.17_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/medium.js
155
+ var de = ce(), T = function() {}, E = m.forwardRef(function(e, t) {
156
+ var n = m.useRef(null), r = m.useState({
157
+ onScrollCapture: T,
158
+ onWheelCapture: T,
159
+ onTouchMoveCapture: T
160
+ }), i = r[0], a = r[1], o = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, p = e.noRelative, h = e.noIsolation, g = e.inert, _ = e.allowPinchZoom, v = e.as, te = v === void 0 ? "div" : v, b = e.gapMode, x = ee(e, [
161
+ "forwardProps",
162
+ "children",
163
+ "className",
164
+ "removeScrollBar",
165
+ "enabled",
166
+ "shards",
167
+ "sideCar",
168
+ "noRelative",
169
+ "noIsolation",
170
+ "inert",
171
+ "allowPinchZoom",
172
+ "as",
173
+ "gapMode"
174
+ ]), ne = f, S = ae([n, t]), C = y(y({}, x), i);
175
+ return m.createElement(m.Fragment, null, u && m.createElement(ne, {
176
+ sideCar: de,
177
+ removeScrollBar: l,
178
+ shards: d,
179
+ noRelative: p,
180
+ noIsolation: h,
181
+ inert: g,
182
+ setCallbacks: a,
183
+ allowPinchZoom: !!_,
184
+ lockRef: n,
185
+ gapMode: b
186
+ }), o ? m.cloneElement(m.Children.only(s), y(y({}, C), { ref: S })) : m.createElement(te, y({}, C, {
187
+ className: c,
188
+ ref: S
189
+ }), s));
190
+ });
191
+ E.defaultProps = {
192
+ enabled: !0,
193
+ removeScrollBar: !0,
194
+ inert: !1
195
+ }, E.classNames = {
196
+ fullWidth: x,
197
+ zeroRight: b
198
+ };
199
+ //#endregion
200
+ //#region ../../node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
201
+ var fe, pe = function() {
202
+ if (fe) return fe;
203
+ if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
204
+ };
205
+ //#endregion
206
+ //#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.17_react@19.2.8/node_modules/react-style-singleton/dist/es2015/singleton.js
207
+ function me() {
208
+ if (!document) return null;
209
+ var e = document.createElement("style");
210
+ e.type = "text/css";
211
+ var t = pe();
212
+ return t && e.setAttribute("nonce", t), e;
213
+ }
214
+ function he(e, t) {
215
+ e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
216
+ }
217
+ function ge(e) {
218
+ (document.head || document.getElementsByTagName("head")[0]).appendChild(e);
219
+ }
220
+ var _e = function() {
221
+ var e = 0, t = null;
222
+ return {
223
+ add: function(n) {
224
+ e == 0 && (t = me()) && (he(t, n), ge(t)), e++;
225
+ },
226
+ remove: function() {
227
+ e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
228
+ }
229
+ };
230
+ }, ve = function() {
231
+ var e = _e();
232
+ return function(t, n) {
233
+ m.useEffect(function() {
234
+ return e.add(t), function() {
235
+ e.remove();
236
+ };
237
+ }, [t && n]);
238
+ };
239
+ }, ye = function() {
240
+ var e = ve();
241
+ return function(t) {
242
+ var n = t.styles, r = t.dynamic;
243
+ return e(n, r), null;
244
+ };
245
+ }, be = {
246
+ left: 0,
247
+ top: 0,
248
+ right: 0,
249
+ gap: 0
250
+ }, D = function(e) {
251
+ return parseInt(e || "", 10) || 0;
252
+ }, xe = function(e) {
253
+ var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
254
+ return [
255
+ D(n),
256
+ D(r),
257
+ D(i)
258
+ ];
259
+ }, Se = function(e) {
260
+ if (e === void 0 && (e = "margin"), typeof window > "u") return be;
261
+ var t = xe(e), n = document.documentElement.clientWidth, r = window.innerWidth;
262
+ return {
263
+ left: t[0],
264
+ top: t[1],
265
+ right: t[2],
266
+ gap: Math.max(0, r - n + t[2] - t[0])
267
+ };
268
+ }, Ce = ye(), O = "data-scroll-locked", we = function(e, t, n, r) {
269
+ var i = e.left, a = e.top, o = e.right, s = e.gap;
270
+ return n === void 0 && (n = "margin"), `
271
+ .${ne} {
272
+ overflow: hidden ${r};
273
+ padding-right: ${s}px ${r};
274
+ }
275
+ body[${O}] {
276
+ overflow: hidden ${r};
277
+ overscroll-behavior: contain;
278
+ ${[
279
+ t && `position: relative ${r};`,
280
+ n === "margin" && `
281
+ padding-left: ${i}px;
282
+ padding-top: ${a}px;
283
+ padding-right: ${o}px;
284
+ margin-left:0;
285
+ margin-top:0;
286
+ margin-right: ${s}px ${r};
287
+ `,
288
+ n === "padding" && `padding-right: ${s}px ${r};`
289
+ ].filter(Boolean).join("")}
290
+ }
291
+
292
+ .${b} {
293
+ right: ${s}px ${r};
294
+ }
295
+
296
+ .${x} {
297
+ margin-right: ${s}px ${r};
298
+ }
299
+
300
+ .${b} .${b} {
301
+ right: 0 ${r};
302
+ }
303
+
304
+ .${x} .${x} {
305
+ margin-right: 0 ${r};
306
+ }
307
+
308
+ body[${O}] {
309
+ ${S}: ${s}px;
310
+ }
311
+ `;
312
+ }, k = function() {
313
+ var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
314
+ return isFinite(e) ? e : 0;
315
+ }, Te = function() {
316
+ m.useEffect(function() {
317
+ return document.body.setAttribute(O, (k() + 1).toString()), function() {
318
+ var e = k() - 1;
319
+ e <= 0 ? document.body.removeAttribute(O) : document.body.setAttribute(O, e.toString());
320
+ };
321
+ }, []);
322
+ }, Ee = function(e) {
323
+ var t = e.noRelative, n = e.noImportant, r = e.gapMode, i = r === void 0 ? "margin" : r;
324
+ Te();
325
+ var a = m.useMemo(function() {
326
+ return Se(i);
327
+ }, [i]);
328
+ return m.createElement(Ce, { styles: we(a, !t, i, n ? "" : "!important") });
329
+ }, A = !1;
330
+ if (typeof window < "u") try {
331
+ var j = Object.defineProperty({}, "passive", { get: function() {
332
+ return A = !0, !0;
333
+ } });
334
+ window.addEventListener("test", j, j), window.removeEventListener("test", j, j);
335
+ } catch {
336
+ A = !1;
337
+ }
338
+ var M = A ? { passive: !1 } : !1, De = function(e) {
339
+ return e.tagName === "TEXTAREA";
340
+ }, N = function(e, t) {
341
+ if (!(e instanceof Element)) return !1;
342
+ var n = window.getComputedStyle(e);
343
+ return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !De(e) && n[t] === "visible");
344
+ }, Oe = function(e) {
345
+ return N(e, "overflowY");
346
+ }, ke = function(e) {
347
+ return N(e, "overflowX");
348
+ }, P = function(e, t) {
349
+ var n = t.ownerDocument, r = t;
350
+ do {
351
+ if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), F(e, r)) {
352
+ var i = Me(e, r);
353
+ if (i[1] > i[2]) return !0;
354
+ }
355
+ r = r.parentNode;
356
+ } while (r && r !== n.body);
357
+ return !1;
358
+ }, Ae = function(e) {
359
+ return [
360
+ e.scrollTop,
361
+ e.scrollHeight,
362
+ e.clientHeight
363
+ ];
364
+ }, je = function(e) {
365
+ return [
366
+ e.scrollLeft,
367
+ e.scrollWidth,
368
+ e.clientWidth
369
+ ];
370
+ }, F = function(e, t) {
371
+ return e === "v" ? Oe(t) : ke(t);
372
+ }, Me = function(e, t) {
373
+ return e === "v" ? Ae(t) : je(t);
374
+ }, Ne = function(e, t) {
375
+ return e === "h" && t === "rtl" ? -1 : 1;
376
+ }, Pe = function(e, t, n, r, i) {
377
+ var a = Ne(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
378
+ do {
379
+ if (!s) break;
380
+ var p = Me(e, s), m = p[0], h = p[1] - p[2] - a * m;
381
+ (m || h) && F(e, s) && (d += h, f += m);
382
+ var g = s.parentNode;
383
+ s = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
384
+ } while (!c && s !== document.body || c && (t.contains(s) || t === s));
385
+ return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
386
+ }, I = function(e) {
387
+ return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
388
+ }, Fe = function(e) {
389
+ return [e.deltaX, e.deltaY];
390
+ }, Ie = function(e) {
391
+ return e && "current" in e ? e.current : e;
392
+ }, Le = function(e, t) {
393
+ return e[0] === t[0] && e[1] === t[1];
394
+ }, Re = function(e) {
395
+ return `
396
+ .block-interactivity-${e} {pointer-events: none;}
397
+ .allow-interactivity-${e} {pointer-events: all;}
398
+ `;
399
+ }, ze = 0, L = [];
400
+ function Be(e) {
401
+ var t = m.useRef([]), n = m.useRef([0, 0]), r = m.useRef(), i = m.useState(ze++)[0], a = m.useState(ye)[0], o = m.useRef(e);
402
+ m.useEffect(function() {
403
+ o.current = e;
404
+ }, [e]), m.useEffect(function() {
405
+ if (e.inert) {
406
+ document.body.classList.add(`block-interactivity-${i}`);
407
+ var t = te([e.lockRef.current], (e.shards || []).map(Ie), !0).filter(Boolean);
408
+ return t.forEach(function(e) {
409
+ return e.classList.add(`allow-interactivity-${i}`);
410
+ }), function() {
411
+ document.body.classList.remove(`block-interactivity-${i}`), t.forEach(function(e) {
412
+ return e.classList.remove(`allow-interactivity-${i}`);
413
+ });
414
+ };
415
+ }
416
+ }, [
417
+ e.inert,
418
+ e.lockRef.current,
419
+ e.shards
420
+ ]);
421
+ var s = m.useCallback(function(e, t) {
422
+ if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !o.current.allowPinchZoom;
423
+ var i = I(e), a = n.current, s = "deltaX" in e ? e.deltaX : a[0] - i[0], c = "deltaY" in e ? e.deltaY : a[1] - i[1], l, u = e.target, d = Math.abs(s) > Math.abs(c) ? "h" : "v";
424
+ if ("touches" in e && d === "h" && u.type === "range") return !1;
425
+ var f = window.getSelection(), p = f && f.anchorNode;
426
+ if (p && (p === u || p.contains(u))) return !1;
427
+ var m = P(d, u);
428
+ if (!m) return !0;
429
+ if (m ? l = d : (l = d === "v" ? "h" : "v", m = P(d, u)), !m) return !1;
430
+ if (!r.current && "changedTouches" in e && (s || c) && (r.current = l), !l) return !0;
431
+ var h = r.current || l;
432
+ return Pe(h, t, e, h === "h" ? s : c, !0);
433
+ }, []), c = m.useCallback(function(e) {
434
+ var n = e;
435
+ if (!(!L.length || L[L.length - 1] !== a)) {
436
+ var r = "deltaY" in n ? Fe(n) : I(n), i = t.current.filter(function(e) {
437
+ return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) && Le(e.delta, r);
438
+ })[0];
439
+ if (i && i.should) {
440
+ n.cancelable && n.preventDefault();
441
+ return;
442
+ }
443
+ if (!i) {
444
+ var c = (o.current.shards || []).map(Ie).filter(Boolean).filter(function(e) {
445
+ return e.contains(n.target);
446
+ });
447
+ (c.length > 0 ? s(n, c[0]) : !o.current.noIsolation) && n.cancelable && n.preventDefault();
448
+ }
449
+ }
450
+ }, []), l = m.useCallback(function(e, n, r, i) {
451
+ var a = {
452
+ name: e,
453
+ delta: n,
454
+ target: r,
455
+ should: i,
456
+ shadowParent: Ve(r)
457
+ };
458
+ t.current.push(a), setTimeout(function() {
459
+ t.current = t.current.filter(function(e) {
460
+ return e !== a;
461
+ });
462
+ }, 1);
463
+ }, []), u = m.useCallback(function(e) {
464
+ n.current = I(e), r.current = void 0;
465
+ }, []), d = m.useCallback(function(t) {
466
+ l(t.type, Fe(t), t.target, s(t, e.lockRef.current));
467
+ }, []), f = m.useCallback(function(t) {
468
+ l(t.type, I(t), t.target, s(t, e.lockRef.current));
469
+ }, []);
470
+ m.useEffect(function() {
471
+ return L.push(a), e.setCallbacks({
472
+ onScrollCapture: d,
473
+ onWheelCapture: d,
474
+ onTouchMoveCapture: f
475
+ }), document.addEventListener("wheel", c, M), document.addEventListener("touchmove", c, M), document.addEventListener("touchstart", u, M), function() {
476
+ L = L.filter(function(e) {
477
+ return e !== a;
478
+ }), document.removeEventListener("wheel", c, M), document.removeEventListener("touchmove", c, M), document.removeEventListener("touchstart", u, M);
479
+ };
480
+ }, []);
481
+ var p = e.removeScrollBar, h = e.inert;
482
+ return m.createElement(m.Fragment, null, h ? m.createElement(a, { styles: Re(i) }) : null, p ? m.createElement(Ee, {
483
+ noRelative: e.noRelative,
484
+ gapMode: e.gapMode
485
+ }) : null);
486
+ }
487
+ function Ve(e) {
488
+ for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
489
+ return t;
490
+ }
491
+ //#endregion
492
+ //#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.17_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/sidecar.js
493
+ var He = ue(de, Be), R = m.forwardRef(function(e, t) {
494
+ return m.createElement(E, y({}, e, {
495
+ ref: t,
496
+ sideCar: He
497
+ }));
498
+ });
499
+ R.classNames = E.classNames;
500
+ //#endregion
501
+ //#region ../../node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
502
+ var Ue = function(e) {
503
+ return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
504
+ }, z = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), V = {}, H = 0, We = function(e) {
505
+ return e && (e.host || We(e.parentNode));
506
+ }, Ge = function(e, t) {
507
+ return t.map(function(t) {
508
+ if (e.contains(t)) return t;
509
+ var n = We(t);
510
+ return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
511
+ }).filter(function(e) {
512
+ return !!e;
513
+ });
514
+ }, Ke = function(e, t, n, r) {
515
+ var i = Ge(t, Array.isArray(e) ? e : [e]);
516
+ V[n] || (V[n] = /* @__PURE__ */ new WeakMap());
517
+ var a = V[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
518
+ !e || s.has(e) || (s.add(e), l(e.parentNode));
519
+ };
520
+ i.forEach(l);
521
+ var u = function(e) {
522
+ !e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
523
+ if (s.has(e)) u(e);
524
+ else try {
525
+ var t = e.getAttribute(r), i = t !== null && t !== "false", c = (z.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
526
+ z.set(e, c), a.set(e, l), o.push(e), c === 1 && i && B.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
527
+ } catch (t) {
528
+ console.error("aria-hidden: cannot operate on ", e, t);
529
+ }
530
+ });
531
+ };
532
+ return u(t), s.clear(), H++, function() {
533
+ o.forEach(function(e) {
534
+ var t = z.get(e) - 1, i = a.get(e) - 1;
535
+ z.set(e, t), a.set(e, i), t || (B.has(e) || e.removeAttribute(r), B.delete(e)), i || e.removeAttribute(n);
536
+ }), H--, H || (z = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), V = {});
537
+ };
538
+ }, qe = function(e, t, n) {
539
+ n === void 0 && (n = "data-aria-hidden");
540
+ var r = Array.from(Array.isArray(e) ? e : [e]), i = t || Ue(e);
541
+ return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), Ke(r, i, n, "aria-hidden")) : function() {
542
+ return null;
543
+ };
544
+ }, U = "Dialog", [Je, Ye] = s(U), [Xe, W] = Je(U), Ze = (e) => {
545
+ let { __scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !0 } = e, s = m.useRef(null), c = m.useRef(null), [l, u] = d({
546
+ prop: r,
547
+ defaultProp: i ?? !1,
548
+ onChange: a,
549
+ caller: U
550
+ });
551
+ return /* @__PURE__ */ _(Xe, {
552
+ scope: t,
553
+ triggerRef: s,
554
+ contentRef: c,
555
+ contentId: p(),
556
+ titleId: p(),
557
+ descriptionId: p(),
558
+ open: l,
559
+ onOpenChange: u,
560
+ onOpenToggle: m.useCallback(() => u((e) => !e), [u]),
561
+ modal: o,
562
+ children: n
563
+ });
564
+ };
565
+ Ze.displayName = U;
566
+ var Qe = "DialogTrigger", $e = m.forwardRef((e, t) => {
567
+ let { __scopeDialog: n, ...r } = e, o = W(Qe, n), s = u(t, o.triggerRef);
568
+ return /* @__PURE__ */ _(i.button, {
569
+ type: "button",
570
+ "aria-haspopup": "dialog",
571
+ "aria-expanded": o.open,
572
+ "aria-controls": o.contentId,
573
+ "data-state": Y(o.open),
574
+ ...r,
575
+ ref: s,
576
+ onClick: a(e.onClick, o.onOpenToggle)
577
+ });
578
+ });
579
+ $e.displayName = Qe;
580
+ var G = "DialogPortal", [et, tt] = Je(G, { forceMount: void 0 }), nt = (e) => {
581
+ let { __scopeDialog: t, forceMount: i, children: a, container: o } = e, s = W(G, t);
582
+ return /* @__PURE__ */ _(et, {
583
+ scope: t,
584
+ forceMount: i,
585
+ children: m.Children.map(a, (e) => /* @__PURE__ */ _(r, {
586
+ present: i || s.open,
587
+ children: /* @__PURE__ */ _(n, {
588
+ asChild: !0,
589
+ container: o,
590
+ children: e
591
+ })
592
+ }))
593
+ });
594
+ };
595
+ nt.displayName = G;
596
+ var K = "DialogOverlay", rt = m.forwardRef((e, t) => {
597
+ let n = tt(K, e.__scopeDialog), { forceMount: i = n.forceMount, ...a } = e, o = W(K, e.__scopeDialog);
598
+ return o.modal ? /* @__PURE__ */ _(r, {
599
+ present: i || o.open,
600
+ children: /* @__PURE__ */ _(at, {
601
+ ...a,
602
+ ref: t
603
+ })
604
+ }) : null;
605
+ });
606
+ rt.displayName = K;
607
+ var it = /* @__PURE__ */ c("DialogOverlay.RemoveScroll"), at = m.forwardRef((e, t) => {
608
+ let { __scopeDialog: n, ...r } = e, a = W(K, n);
609
+ return /* @__PURE__ */ _(R, {
610
+ as: it,
611
+ allowPinchZoom: !0,
612
+ shards: [a.contentRef],
613
+ children: /* @__PURE__ */ _(i.div, {
614
+ "data-state": Y(a.open),
615
+ ...r,
616
+ ref: t,
617
+ style: {
618
+ pointerEvents: "auto",
619
+ ...r.style
620
+ }
621
+ })
622
+ });
623
+ }), q = "DialogContent", ot = m.forwardRef((e, t) => {
624
+ let n = tt(q, e.__scopeDialog), { forceMount: i = n.forceMount, ...a } = e, o = W(q, e.__scopeDialog);
625
+ return /* @__PURE__ */ _(r, {
626
+ present: i || o.open,
627
+ children: o.modal ? /* @__PURE__ */ _(st, {
628
+ ...a,
629
+ ref: t
630
+ }) : /* @__PURE__ */ _(ct, {
631
+ ...a,
632
+ ref: t
633
+ })
634
+ });
635
+ });
636
+ ot.displayName = q;
637
+ var st = m.forwardRef((e, t) => {
638
+ let n = W(q, e.__scopeDialog), r = m.useRef(null), i = u(t, n.contentRef, r);
639
+ return m.useEffect(() => {
640
+ let e = r.current;
641
+ if (e) return qe(e);
642
+ }, []), /* @__PURE__ */ _(lt, {
643
+ ...e,
644
+ ref: i,
645
+ trapFocus: n.open,
646
+ disableOutsidePointerEvents: !0,
647
+ onCloseAutoFocus: a(e.onCloseAutoFocus, (e) => {
648
+ e.preventDefault(), n.triggerRef.current?.focus();
649
+ }),
650
+ onPointerDownOutside: a(e.onPointerDownOutside, (e) => {
651
+ let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
652
+ (t.button === 2 || n) && e.preventDefault();
653
+ }),
654
+ onFocusOutside: a(e.onFocusOutside, (e) => e.preventDefault())
655
+ });
656
+ }), ct = m.forwardRef((e, t) => {
657
+ let n = W(q, e.__scopeDialog), r = m.useRef(!1), i = m.useRef(!1);
658
+ return /* @__PURE__ */ _(lt, {
659
+ ...e,
660
+ ref: t,
661
+ trapFocus: !1,
662
+ disableOutsidePointerEvents: !1,
663
+ onCloseAutoFocus: (t) => {
664
+ e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
665
+ },
666
+ onInteractOutside: (t) => {
667
+ e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
668
+ let a = t.target;
669
+ n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
670
+ }
671
+ });
672
+ }), lt = m.forwardRef((n, r) => {
673
+ let { __scopeDialog: i, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, ...c } = n, l = W(q, i), d = m.useRef(null), p = u(r, d);
674
+ return f(), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(t, {
675
+ asChild: !0,
676
+ loop: !0,
677
+ trapped: a,
678
+ onMountAutoFocus: o,
679
+ onUnmountAutoFocus: s,
680
+ children: /* @__PURE__ */ _(e, {
681
+ role: "dialog",
682
+ id: l.contentId,
683
+ "aria-describedby": l.descriptionId,
684
+ "aria-labelledby": l.titleId,
685
+ "data-state": Y(l.open),
686
+ ...c,
687
+ ref: p,
688
+ onDismiss: () => l.onOpenChange(!1)
689
+ })
690
+ }), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(vt, { titleId: l.titleId }), /* @__PURE__ */ _(bt, {
691
+ contentRef: d,
692
+ descriptionId: l.descriptionId
693
+ })] })] });
694
+ }), J = "DialogTitle", ut = m.forwardRef((e, t) => {
695
+ let { __scopeDialog: n, ...r } = e, a = W(J, n);
696
+ return /* @__PURE__ */ _(i.h2, {
697
+ id: a.titleId,
698
+ ...r,
699
+ ref: t
700
+ });
701
+ });
702
+ ut.displayName = J;
703
+ var dt = "DialogDescription", ft = m.forwardRef((e, t) => {
704
+ let { __scopeDialog: n, ...r } = e, a = W(dt, n);
705
+ return /* @__PURE__ */ _(i.p, {
706
+ id: a.descriptionId,
707
+ ...r,
708
+ ref: t
709
+ });
710
+ });
711
+ ft.displayName = dt;
712
+ var pt = "DialogClose", mt = m.forwardRef((e, t) => {
713
+ let { __scopeDialog: n, ...r } = e, o = W(pt, n);
714
+ return /* @__PURE__ */ _(i.button, {
715
+ type: "button",
716
+ ...r,
717
+ ref: t,
718
+ onClick: a(e.onClick, () => o.onOpenChange(!1))
719
+ });
720
+ });
721
+ mt.displayName = pt;
722
+ function Y(e) {
723
+ return e ? "open" : "closed";
724
+ }
725
+ var ht = "DialogTitleWarning", [gt, _t] = o(ht, {
726
+ contentName: q,
727
+ titleName: J,
728
+ docsSlug: "dialog"
729
+ }), vt = ({ titleId: e }) => {
730
+ let t = _t(ht), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
731
+
732
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
733
+
734
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
735
+ return m.useEffect(() => {
736
+ e && (document.getElementById(e) || console.error(n));
737
+ }, [n, e]), null;
738
+ }, yt = "DialogDescriptionWarning", bt = ({ contentRef: e, descriptionId: t }) => {
739
+ let n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_t(yt).contentName}}.`;
740
+ return m.useEffect(() => {
741
+ let r = e.current?.getAttribute("aria-describedby");
742
+ t && r && (document.getElementById(t) || console.warn(n));
743
+ }, [
744
+ n,
745
+ e,
746
+ t
747
+ ]), null;
748
+ }, xt = Ze, St = $e, Ct = nt, wt = rt, Tt = ot, Et = ut, Dt = ft, X = mt, Ot = "AlertDialog", [kt, At] = s(Ot, [Ye]), Z = Ye(), jt = (e) => {
749
+ let { __scopeAlertDialog: t, ...n } = e;
750
+ return /* @__PURE__ */ _(xt, {
751
+ ...Z(t),
752
+ ...n,
753
+ modal: !0
754
+ });
755
+ };
756
+ jt.displayName = Ot;
757
+ var Mt = "AlertDialogTrigger", Nt = m.forwardRef((e, t) => {
758
+ let { __scopeAlertDialog: n, ...r } = e;
759
+ return /* @__PURE__ */ _(St, {
760
+ ...Z(n),
761
+ ...r,
762
+ ref: t
763
+ });
764
+ });
765
+ Nt.displayName = Mt;
766
+ var Pt = "AlertDialogPortal", Ft = (e) => {
767
+ let { __scopeAlertDialog: t, ...n } = e;
768
+ return /* @__PURE__ */ _(Ct, {
769
+ ...Z(t),
770
+ ...n
771
+ });
772
+ };
773
+ Ft.displayName = Pt;
774
+ var It = "AlertDialogOverlay", Lt = m.forwardRef((e, t) => {
775
+ let { __scopeAlertDialog: n, ...r } = e;
776
+ return /* @__PURE__ */ _(wt, {
777
+ ...Z(n),
778
+ ...r,
779
+ ref: t
780
+ });
781
+ });
782
+ Lt.displayName = It;
783
+ var Q = "AlertDialogContent", [Rt, zt] = kt(Q), Bt = /* @__PURE__ */ l("AlertDialogContent"), $ = m.forwardRef((e, t) => {
784
+ let { __scopeAlertDialog: n, children: r, ...i } = e, o = Z(n), s = m.useRef(null), c = u(t, s), l = m.useRef(null);
785
+ return /* @__PURE__ */ _(gt, {
786
+ contentName: Q,
787
+ titleName: Vt,
788
+ docsSlug: "alert-dialog",
789
+ children: /* @__PURE__ */ _(Rt, {
790
+ scope: n,
791
+ cancelRef: l,
792
+ children: /* @__PURE__ */ v(Tt, {
793
+ role: "alertdialog",
794
+ ...o,
795
+ ...i,
796
+ ref: c,
797
+ onOpenAutoFocus: a(i.onOpenAutoFocus, (e) => {
798
+ e.preventDefault(), l.current?.focus({ preventScroll: !0 });
799
+ }),
800
+ onPointerDownOutside: (e) => e.preventDefault(),
801
+ onInteractOutside: (e) => e.preventDefault(),
802
+ children: [/* @__PURE__ */ _(Bt, { children: r }), /* @__PURE__ */ _(Yt, { contentRef: s })]
803
+ })
804
+ })
805
+ });
806
+ });
807
+ $.displayName = Q;
808
+ var Vt = "AlertDialogTitle", Ht = m.forwardRef((e, t) => {
809
+ let { __scopeAlertDialog: n, ...r } = e;
810
+ return /* @__PURE__ */ _(Et, {
811
+ ...Z(n),
812
+ ...r,
813
+ ref: t
814
+ });
815
+ });
816
+ Ht.displayName = Vt;
817
+ var Ut = "AlertDialogDescription", Wt = m.forwardRef((e, t) => {
818
+ let { __scopeAlertDialog: n, ...r } = e;
819
+ return /* @__PURE__ */ _(Dt, {
820
+ ...Z(n),
821
+ ...r,
822
+ ref: t
823
+ });
824
+ });
825
+ Wt.displayName = Ut;
826
+ var Gt = "AlertDialogAction", Kt = m.forwardRef((e, t) => {
827
+ let { __scopeAlertDialog: n, ...r } = e;
828
+ return /* @__PURE__ */ _(X, {
829
+ ...Z(n),
830
+ ...r,
831
+ ref: t
832
+ });
833
+ });
834
+ Kt.displayName = Gt;
835
+ var qt = "AlertDialogCancel", Jt = m.forwardRef((e, t) => {
836
+ let { __scopeAlertDialog: n, ...r } = e, { cancelRef: i } = zt(qt, n), a = Z(n), o = u(t, i);
837
+ return /* @__PURE__ */ _(X, {
838
+ ...a,
839
+ ...r,
840
+ ref: o
841
+ });
842
+ });
843
+ Jt.displayName = qt;
844
+ var Yt = ({ contentRef: e }) => {
845
+ let t = `\`${Q}\` requires a description for the component to be accessible for screen reader users.
846
+
847
+ You can add a description to the \`${Q}\` by passing a \`${Ut}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
848
+
849
+ Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Q}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
850
+
851
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
852
+ return m.useEffect(() => {
853
+ document.getElementById(e.current?.getAttribute("aria-describedby")) || console.warn(t);
854
+ }, [t, e]), null;
855
+ }, Xt = jt, Zt = Nt, Qt = Ft, $t = Lt, en = $, tn = Kt, nn = Jt, rn = Ht, an = Wt;
856
+ //#endregion
857
+ export { tn as Action, nn as Cancel, X as Close, Tt as Content, en as Content2, Dt as Description, an as Description2, wt as Overlay, $t as Overlay2, Ct as Portal, Qt as Portal2, R as ReactRemoveScroll, xt as Root, Xt as Root2, Et as Title, rn as Title2, St as Trigger, Zt as Trigger2, qe as hideOthers };