@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
@@ -1,41 +1,41 @@
1
1
  "use client";
2
- import { Content$1 as e, Indicator as t, Item as n, Link as r, List$1 as i, Root2$1 as a, Trigger$1 as o, Viewport as s } from "../_chunks/primitives.js";
3
- import { springs as c, tweens as l } from "./lib/motion.js";
4
- import { cn as u } from "./lib/utils.js";
5
- import { Icon as d } from "./icon.js";
2
+ import { springs as e, tweens as t } from "./lib/motion.js";
3
+ import { cn as n } from "./lib/utils.js";
4
+ import { Icon as r } from "./icon.js";
5
+ import { Content as i, Indicator as a, Item as o, Link as s, List as c, Root2 as l, Trigger as u, Viewport as d } from "../_chunks/primitives/react-navigation-menu.js";
6
6
  import * as f from "react";
7
7
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
8
8
  import { IconChevronDown as h } from "@tabler/icons-react";
9
9
  import { motion as g } from "framer-motion";
10
10
  //#region src/ui/navigation-menu.tsx
11
- var _ = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(a, {
12
- ref: r,
13
- className: u("relative z-raised flex max-w-max flex-1 items-center justify-center", e),
14
- ...n,
11
+ var _ = f.forwardRef(({ className: e, children: t, ...r }, i) => /* @__PURE__ */ m(l, {
12
+ ref: i,
13
+ className: n("relative z-raised flex max-w-max flex-1 items-center justify-center", e),
14
+ ...r,
15
15
  children: [t, /* @__PURE__ */ p(w, {})]
16
16
  }));
17
- _.displayName = a.displayName;
18
- var v = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(i, {
19
- ref: n,
20
- className: u("group flex flex-1 list-none items-center justify-center space-x-ds-02", e),
17
+ _.displayName = l.displayName;
18
+ var v = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ p(c, {
19
+ ref: r,
20
+ className: n("group flex flex-1 list-none items-center justify-center space-x-ds-02", e),
21
21
  ...t
22
22
  }));
23
- v.displayName = i.displayName;
24
- var y = n, b = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(o, {
25
- ref: r,
26
- className: u("group inline-flex h-ds-sm-plus w-max items-center justify-center rounded-control bg-transparent px-ds-05 py-ds-03 text-body-md font-medium transition-colors hover:bg-surface-raised-hover focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 disabled:pointer-events-none disabled:opacity-action-disabled", e),
27
- ...n,
23
+ v.displayName = c.displayName;
24
+ var y = o, b = f.forwardRef(({ className: e, children: t, ...i }, a) => /* @__PURE__ */ m(u, {
25
+ ref: a,
26
+ className: n("group inline-flex h-ds-sm-plus w-max items-center justify-center rounded-control bg-transparent px-ds-05 py-ds-03 text-body-md font-medium transition-colors hover:bg-surface-raised-hover focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 disabled:pointer-events-none disabled:opacity-action-disabled", e),
27
+ ...i,
28
28
  children: [
29
29
  t,
30
30
  " ",
31
- /* @__PURE__ */ p(d, {
31
+ /* @__PURE__ */ p(r, {
32
32
  icon: h,
33
33
  size: "sm",
34
34
  className: "relative top-[1px] ml-ds-02 transition-transform duration-moderate-02 group-data-[state=open]:rotate-180"
35
35
  })
36
36
  ]
37
37
  }));
38
- b.displayName = o.displayName;
38
+ b.displayName = u.displayName;
39
39
  var x = {
40
40
  "from-start": {
41
41
  x: "-13rem",
@@ -57,19 +57,19 @@ var x = {
57
57
  x: 0,
58
58
  opacity: 1
59
59
  }
60
- }, S = f.forwardRef(({ className: t, ...n }, r) => {
61
- let i = f.useRef(null), a = f.useCallback((e) => {
62
- i.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
63
- }, [r]), [o, s] = f.useState(null);
60
+ }, S = f.forwardRef(({ className: r, ...a }, o) => {
61
+ let s = f.useRef(null), c = f.useCallback((e) => {
62
+ s.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
63
+ }, [o]), [l, u] = f.useState(null);
64
64
  f.useEffect(() => {
65
- let e = i.current;
65
+ let e = s.current;
66
66
  if (!e) return;
67
67
  let t = e.getAttribute("data-motion");
68
- t && s(t);
68
+ t && u(t);
69
69
  let n = new MutationObserver((t) => {
70
70
  for (let n of t) if (n.attributeName === "data-motion") {
71
71
  let t = e.getAttribute("data-motion");
72
- s(t);
72
+ u(t);
73
73
  }
74
74
  });
75
75
  return n.observe(e, {
@@ -77,54 +77,54 @@ var x = {
77
77
  attributeFilter: ["data-motion"]
78
78
  }), () => n.disconnect();
79
79
  }, []);
80
- let d = o && o.startsWith("from-") ? x[o] : o && o.startsWith("to-") ? x.center : {
80
+ let d = l && l.startsWith("from-") ? x[l] : l && l.startsWith("to-") ? x.center : {
81
81
  x: 0,
82
82
  opacity: 0
83
- }, m = o && o.startsWith("from-") ? x.center : o && o.startsWith("to-") ? x[o] : x.center;
84
- return /* @__PURE__ */ p(e, {
85
- ref: a,
86
- className: u("left-0 top-0 w-full md:absolute md:w-auto", t),
87
- ...n,
83
+ }, m = l && l.startsWith("from-") ? x.center : l && l.startsWith("to-") ? x[l] : x.center;
84
+ return /* @__PURE__ */ p(i, {
85
+ ref: c,
86
+ className: n("left-0 top-0 w-full md:absolute md:w-auto", r),
87
+ ...a,
88
88
  children: /* @__PURE__ */ p(g.div, {
89
89
  initial: d,
90
90
  animate: m,
91
91
  transition: {
92
- ...c.smooth,
93
- opacity: l.fade
92
+ ...e.smooth,
93
+ opacity: t.fade
94
94
  },
95
95
  className: "w-full",
96
- children: n.children
97
- }, o)
96
+ children: a.children
97
+ }, l)
98
98
  });
99
99
  });
100
- S.displayName = e.displayName;
101
- var C = r, w = f.forwardRef(({ className: e, ...t }, n) => {
102
- let r = f.useRef(null), i = f.useCallback((e) => {
103
- r.current = e, typeof n == "function" ? n(e) : n && (n.current = e);
104
- }, [n]), [a, o] = f.useState(!1);
100
+ S.displayName = i.displayName;
101
+ var C = s, w = f.forwardRef(({ className: r, ...i }, a) => {
102
+ let o = f.useRef(null), s = f.useCallback((e) => {
103
+ o.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
104
+ }, [a]), [c, l] = f.useState(!1);
105
105
  return f.useEffect(() => {
106
- let e = r.current;
106
+ let e = o.current;
107
107
  if (!e) return;
108
108
  let t = e.getAttribute("data-state");
109
- o(t === "open");
109
+ l(t === "open");
110
110
  let n = new MutationObserver((t) => {
111
- for (let n of t) n.attributeName === "data-state" && o(e.getAttribute("data-state") === "open");
111
+ for (let n of t) n.attributeName === "data-state" && l(e.getAttribute("data-state") === "open");
112
112
  });
113
113
  return n.observe(e, {
114
114
  attributes: !0,
115
115
  attributeFilter: ["data-state"]
116
116
  }), () => n.disconnect();
117
117
  }, []), /* @__PURE__ */ m("div", {
118
- className: u("absolute left-0 top-full flex justify-center"),
119
- children: [/* @__PURE__ */ p(s, {
120
- className: u("origin-top-center relative mt-ds-02b h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-overlay bg-surface-overlay shadow-floating md:w-[var(--radix-navigation-menu-viewport-width)]", e),
121
- ref: i,
122
- ...t
118
+ className: n("absolute left-0 top-full flex justify-center"),
119
+ children: [/* @__PURE__ */ p(d, {
120
+ className: n("origin-top-center relative mt-ds-02b h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-overlay bg-surface-overlay shadow-floating md:w-[var(--radix-navigation-menu-viewport-width)]", r),
121
+ ref: s,
122
+ ...i
123
123
  }), /* @__PURE__ */ p(g.div, {
124
124
  "aria-hidden": !0,
125
125
  className: "absolute inset-0 pointer-events-none",
126
126
  initial: !1,
127
- animate: a ? {
127
+ animate: c ? {
128
128
  opacity: 1,
129
129
  scale: 1
130
130
  } : {
@@ -132,42 +132,42 @@ var C = r, w = f.forwardRef(({ className: e, ...t }, n) => {
132
132
  scale: .95
133
133
  },
134
134
  transition: {
135
- ...c.smooth,
136
- opacity: l.fade
135
+ ...e.smooth,
136
+ opacity: t.fade
137
137
  }
138
138
  })]
139
139
  });
140
140
  });
141
- w.displayName = s.displayName;
142
- var T = f.forwardRef(({ className: e, ...n }, r) => {
143
- let i = f.useRef(null), a = f.useCallback((e) => {
144
- i.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
145
- }, [r]), [o, s] = f.useState(!1);
141
+ w.displayName = d.displayName;
142
+ var T = f.forwardRef(({ className: e, ...r }, i) => {
143
+ let o = f.useRef(null), s = f.useCallback((e) => {
144
+ o.current = e, typeof i == "function" ? i(e) : i && (i.current = e);
145
+ }, [i]), [c, l] = f.useState(!1);
146
146
  return f.useEffect(() => {
147
- let e = i.current;
147
+ let e = o.current;
148
148
  if (!e) return;
149
149
  let t = e.getAttribute("data-state");
150
- s(t === "visible");
150
+ l(t === "visible");
151
151
  let n = new MutationObserver((t) => {
152
- for (let n of t) n.attributeName === "data-state" && s(e.getAttribute("data-state") === "visible");
152
+ for (let n of t) n.attributeName === "data-state" && l(e.getAttribute("data-state") === "visible");
153
153
  });
154
154
  return n.observe(e, {
155
155
  attributes: !0,
156
156
  attributeFilter: ["data-state"]
157
157
  }), () => n.disconnect();
158
- }, []), /* @__PURE__ */ p(t, {
159
- ref: a,
160
- className: u("top-full z-base flex h-ds-02b items-end justify-center overflow-hidden", e),
161
- ...n,
158
+ }, []), /* @__PURE__ */ p(a, {
159
+ ref: s,
160
+ className: n("top-full z-base flex h-ds-02b items-end justify-center overflow-hidden", e),
161
+ ...r,
162
162
  children: /* @__PURE__ */ p(g.div, {
163
163
  layout: !0,
164
164
  initial: !1,
165
- animate: o ? { opacity: 1 } : { opacity: 0 },
166
- transition: l.fade,
165
+ animate: c ? { opacity: 1 } : { opacity: 0 },
166
+ transition: t.fade,
167
167
  className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-control-inner bg-surface-border shadow-raised-hover"
168
168
  })
169
169
  });
170
170
  });
171
- T.displayName = t.displayName;
171
+ T.displayName = a.displayName;
172
172
  //#endregion
173
173
  export { _ as NavigationMenu, S as NavigationMenuContent, T as NavigationMenuIndicator, y as NavigationMenuItem, C as NavigationMenuLink, v as NavigationMenuList, b as NavigationMenuTrigger, w as NavigationMenuViewport };
@@ -1,6 +1,5 @@
1
- "use client";
2
1
  import { VariantProps } from 'class-variance-authority';
3
- import { FieldState } from './lib/field-state';
2
+ import { FieldState } from './lib/field-state.js';
4
3
  import * as React from 'react';
5
4
  /** @deprecated Use `FieldState` — the shared control-state type. Kept as an alias. */
6
5
  export type NumberInputState = FieldState;
@@ -1,3 +1,2 @@
1
- "use client";
2
- export { getOAuthLabel, getOAuthName, OAuth, type OAuthAppearance, OAuthButton, type OAuthButtonProps, OAuthConnectionRow, type OAuthConnectionRowProps, OAuthDivider, type OAuthDividerProps, OAuthGlyph, type OAuthGlyphProps, OAuthGroup, type OAuthGroupProps, type OAuthIntent, type OAuthProvider, type OAuthVariant, } from './oauth-button';
1
+ export { getOAuthLabel, getOAuthName, OAuth, type OAuthAppearance, OAuthButton, type OAuthButtonProps, OAuthConnectionRow, type OAuthConnectionRowProps, OAuthDivider, type OAuthDividerProps, OAuthGlyph, type OAuthGlyphProps, OAuthGroup, type OAuthGroupProps, type OAuthIntent, type OAuthProvider, type OAuthVariant, } from './oauth-button.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,5 @@
1
- "use client";
2
- import { ButtonProps } from '../button';
3
- import { IconInput } from '../lib/icon-input';
1
+ import { ButtonProps } from '../button.js';
2
+ import { IconInput } from '../lib/icon-input.js';
4
3
  import * as React from 'react';
5
4
  export type OAuthProvider = 'google' | 'apple' | 'github' | 'microsoft' | 'x' | 'linkedin' | 'facebook' | 'discord' | 'slack' | 'gitlab' | 'sso' | 'email' | 'passkey';
6
5
  export type OAuthIntent = 'continue' | 'signin' | 'signup';
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  import * as React from 'react';
3
2
  declare const PaginationRoot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
4
3
  declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Slot as e } from "../_chunks/primitives.js";
2
+ import { Slot as e } from "../_chunks/primitives-internal.js";
3
3
  import { cn as t } from "./lib/utils.js";
4
4
  import { Icon as n } from "./icon.js";
5
5
  import * as r from "react";
@@ -1,5 +1,4 @@
1
- "use client";
2
- import * as PopoverPrimitive from '../primitives/react-popover';
1
+ import * as PopoverPrimitive from '../primitives/react-popover.js';
3
2
  import * as React from 'react';
4
3
  declare const Popover: React.FC<React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>>;
5
4
  declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  import * as React from 'react';
3
2
  /**
4
3
  * A circular progress indicator with optional label and animated fill.
@@ -1,6 +1,5 @@
1
- "use client";
2
1
  import { VariantProps } from 'class-variance-authority';
3
- import * as ProgressPrimitive from '../primitives/react-progress';
2
+ import * as ProgressPrimitive from '../primitives/react-progress.js';
4
3
  import * as React from 'react';
5
4
  export type ProgressSize = 'sm' | 'md' | 'lg';
6
5
  export type ProgressColor = 'accent' | 'success' | 'warning' | 'error';
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { Root as e } from "../_chunks/primitives.js";
3
- import { springs as t } from "./lib/motion.js";
4
- import { cva as n } from "../_chunks/vendor-utils.js";
5
- import { cn as r } from "./lib/utils.js";
2
+ import { springs as e } from "./lib/motion.js";
3
+ import { cva as t } from "../_chunks/vendor-utils.js";
4
+ import { cn as n } from "./lib/utils.js";
5
+ import { Root as r } from "../_chunks/primitives/react-progress.js";
6
6
  import * as i from "react";
7
7
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
8
8
  import { motion as s } from "framer-motion";
9
9
  //#region src/ui/progress.tsx
10
- var c = n("relative w-full overflow-hidden rounded-pill bg-surface-raised", {
10
+ var c = t("relative w-full overflow-hidden rounded-pill bg-surface-raised", {
11
11
  variants: { size: {
12
12
  sm: "h-1",
13
13
  md: "h-2",
@@ -19,7 +19,7 @@ var c = n("relative w-full overflow-hidden rounded-pill bg-surface-raised", {
19
19
  success: "bg-success-9",
20
20
  warning: "bg-warning-9",
21
21
  error: "bg-error-9"
22
- }, u = n("h-full transition-[width] duration-moderate-02 ease-expressive-standard", {
22
+ }, u = t("h-full transition-[width] duration-moderate-02 ease-expressive-standard", {
23
23
  variants: { color: l },
24
24
  defaultVariants: { color: "accent" }
25
25
  });
@@ -32,62 +32,62 @@ function m(e) {
32
32
  if (!t) throw Error(`<Progress.${e}> must be rendered inside <Progress.Root>.`);
33
33
  return t;
34
34
  }
35
- var h = i.forwardRef(({ value: e = null, max: t = 100, size: n = "md", className: o, children: s, ...c }, l) => {
35
+ var h = i.forwardRef(({ value: e = null, max: t = 100, size: r = "md", className: o, children: s, ...c }, l) => {
36
36
  let u = i.useMemo(() => ({
37
37
  value: e,
38
38
  max: t,
39
- size: n,
39
+ size: r,
40
40
  indeterminate: e == null
41
41
  }), [
42
42
  e,
43
43
  t,
44
- n
44
+ r
45
45
  ]);
46
46
  return /* @__PURE__ */ a(p.Provider, {
47
47
  value: u,
48
48
  children: /* @__PURE__ */ a("div", {
49
49
  ref: l,
50
- className: r("flex w-full items-center gap-ds-03", o),
50
+ className: n("flex w-full items-center gap-ds-03", o),
51
51
  ...c,
52
52
  children: s
53
53
  })
54
54
  });
55
55
  });
56
56
  h.displayName = "Progress.Root";
57
- var g = i.forwardRef(({ className: t, children: n, ...i }, o) => {
57
+ var g = i.forwardRef(({ className: e, children: t, ...i }, o) => {
58
58
  let { value: s, max: l, size: u, indeterminate: d } = m("Track");
59
- return /* @__PURE__ */ a(e, {
59
+ return /* @__PURE__ */ a(r, {
60
60
  ref: o,
61
61
  value: d ? null : s,
62
62
  max: l,
63
- className: r(c({ size: u }), "flex-1", t),
63
+ className: n(c({ size: u }), "flex-1", e),
64
64
  ...i,
65
- children: n
65
+ children: t
66
66
  });
67
67
  });
68
68
  g.displayName = "Progress.Track";
69
- var _ = i.forwardRef(({ color: e, autoColor: n, className: i, ...o }, c) => {
70
- let { value: l, max: p, indeterminate: h } = m("Indicator"), g = e ?? (n === !1 ? "accent" : d(l));
69
+ var _ = i.forwardRef(({ color: t, autoColor: r, className: i, ...o }, c) => {
70
+ let { value: l, max: p, indeterminate: h } = m("Indicator"), g = t ?? (r === !1 ? "accent" : d(l));
71
71
  return h ? /* @__PURE__ */ a("div", {
72
72
  ref: c,
73
- className: r(u({ color: g }), "w-2/5 animate-progress-indeterminate motion-reduce:animate-none", i),
73
+ className: n(u({ color: g }), "w-2/5 animate-progress-indeterminate motion-reduce:animate-none", i),
74
74
  ...o
75
75
  }) : /* @__PURE__ */ a(s.div, {
76
76
  ref: c,
77
- className: r(u({ color: g }), "transition-colors", i),
77
+ className: n(u({ color: g }), "transition-colors", i),
78
78
  initial: !1,
79
79
  animate: { width: `${f(l ?? 0, p)}%` },
80
- transition: t.smooth,
80
+ transition: e.smooth,
81
81
  ...o
82
82
  });
83
83
  });
84
84
  _.displayName = "Progress.Indicator";
85
- var v = i.forwardRef(({ value: e, color: t = "accent", className: n, style: i, ...o }, s) => {
85
+ var v = i.forwardRef(({ value: e, color: t = "accent", className: r, style: i, ...o }, s) => {
86
86
  let { max: c } = m("Segment");
87
87
  return /* @__PURE__ */ a("div", {
88
88
  ref: s,
89
89
  "aria-hidden": "true",
90
- className: r("h-full first:rounded-l-pill last:rounded-r-pill", l[t], n),
90
+ className: n("h-full first:rounded-l-pill last:rounded-r-pill", l[t], r),
91
91
  style: {
92
92
  width: `${f(e, c)}%`,
93
93
  ...i
@@ -96,29 +96,29 @@ var v = i.forwardRef(({ value: e, color: t = "accent", className: n, style: i, .
96
96
  });
97
97
  });
98
98
  v.displayName = "Progress.Segment";
99
- var y = i.forwardRef(({ className: e, ...t }, n) => (m("Label"), /* @__PURE__ */ a("span", {
100
- ref: n,
101
- className: r("shrink-0 text-body-sm font-medium text-surface-fg", e),
99
+ var y = i.forwardRef(({ className: e, ...t }, r) => (m("Label"), /* @__PURE__ */ a("span", {
100
+ ref: r,
101
+ className: n("shrink-0 text-body-sm font-medium text-surface-fg", e),
102
102
  ...t
103
103
  })));
104
104
  y.displayName = "Progress.Label";
105
- var b = i.forwardRef(({ className: e, format: t, children: n, ...i }, o) => {
105
+ var b = i.forwardRef(({ className: e, format: t, children: r, ...i }, o) => {
106
106
  let { value: s, max: c, indeterminate: l } = m("Value"), u = l ? 0 : f(s ?? 0, c);
107
107
  return /* @__PURE__ */ a("span", {
108
108
  ref: o,
109
- className: r("shrink-0 text-caption text-surface-fg-muted tabular-nums", e),
109
+ className: n("shrink-0 text-caption text-surface-fg-muted tabular-nums", e),
110
110
  ...i,
111
- children: n ?? (l ? "" : t ? t(u, s, c) : `${Math.round(u)}%`)
111
+ children: r ?? (l ? "" : t ? t(u, s, c) : `${Math.round(u)}%`)
112
112
  });
113
113
  });
114
114
  b.displayName = "Progress.Value";
115
- var x = i.forwardRef(({ value: e = null, max: t = 100, size: n, color: s, autoColor: c, label: l, showValue: u, segments: d, trackClassName: f, indicatorClassName: p, className: m, "aria-label": x, "aria-labelledby": S, ...C }, w) => {
115
+ var x = i.forwardRef(({ value: e = null, max: t = 100, size: r, color: s, autoColor: c, label: l, showValue: u, segments: d, trackClassName: f, indicatorClassName: p, className: m, "aria-label": x, "aria-labelledby": S, ...C }, w) => {
116
116
  let T = i.useId(), E = l != null;
117
117
  return /* @__PURE__ */ o(h, {
118
118
  ref: w,
119
119
  value: e,
120
120
  max: t,
121
- size: n ?? "md",
121
+ size: r ?? "md",
122
122
  className: m,
123
123
  ...C,
124
124
  children: [
@@ -129,7 +129,7 @@ var x = i.forwardRef(({ value: e = null, max: t = 100, size: n, color: s, autoCo
129
129
  /* @__PURE__ */ a(g, {
130
130
  "aria-label": x,
131
131
  "aria-labelledby": S ?? (E ? T : void 0),
132
- className: r(d && "flex", f),
132
+ className: n(d && "flex", f),
133
133
  children: d ? d.map((e, t) => /* @__PURE__ */ a(v, {
134
134
  value: e.value,
135
135
  color: e.color
@@ -1,6 +1,5 @@
1
- "use client";
2
- import { FieldState } from './lib/field-state';
3
- import * as RadioGroupPrimitive from '../primitives/react-radio-group';
1
+ import { FieldState } from './lib/field-state.js';
2
+ import * as RadioGroupPrimitive from '../primitives/react-radio-group.js';
4
3
  import * as React from 'react';
5
4
  export interface RadioGroupProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root> {
6
5
  /** Validation/feedback state for the whole group. `'error'` also sets `aria-invalid`. Inherited from `FormField` when omitted. */
package/dist/ui/radio.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { Indicator$1 as e, Item2$1 as t, Root2$4 as n } from "../_chunks/primitives.js";
3
- import { springs as r } from "./lib/motion.js";
4
- import { cn as i } from "./lib/utils.js";
5
- import { useFormField as a } from "./form.js";
6
- import { resolveFieldState as o } from "../_chunks/field-state.js";
2
+ import { springs as e } from "./lib/motion.js";
3
+ import { cn as t } from "./lib/utils.js";
4
+ import { useFormField as n } from "./form.js";
5
+ import { resolveFieldState as r } from "../_chunks/field-state.js";
6
+ import { Indicator as i, Item2 as a, Root2 as o } from "../_chunks/primitives/react-radio-group.js";
7
7
  import * as s from "react";
8
8
  import { jsx as c } from "react/jsx-runtime";
9
9
  import { IconCircle as l } from "@tabler/icons-react";
@@ -13,21 +13,21 @@ var d = s.createContext(void 0), f = {
13
13
  error: "border-error-7",
14
14
  warning: "border-warning-7",
15
15
  success: "border-success-7"
16
- }, p = s.forwardRef(({ className: e, state: t, ...r }, s) => {
17
- let l = a(), u = o(t, l.state), f = r["aria-describedby"] ?? l.helperTextId, p = r["aria-required"] ?? l.required;
16
+ }, p = s.forwardRef(({ className: e, state: i, ...a }, s) => {
17
+ let l = n(), u = r(i, l.state), f = a["aria-describedby"] ?? l.helperTextId, p = a["aria-required"] ?? l.required;
18
18
  return /* @__PURE__ */ c(d.Provider, {
19
19
  value: u,
20
- children: /* @__PURE__ */ c(n, {
21
- className: i("grid gap-ds-03", e),
20
+ children: /* @__PURE__ */ c(o, {
21
+ className: t("grid gap-ds-03", e),
22
22
  "aria-invalid": u === "error" || void 0,
23
23
  "aria-describedby": f,
24
24
  "aria-required": p || void 0,
25
- ...r,
25
+ ...a,
26
26
  ref: s
27
27
  })
28
28
  });
29
29
  });
30
- p.displayName = n.displayName;
30
+ p.displayName = o.displayName;
31
31
  var m = {
32
32
  sm: "h-5 w-5",
33
33
  md: "h-6 w-6",
@@ -36,25 +36,25 @@ var m = {
36
36
  sm: "h-1.5 w-1.5",
37
37
  md: "h-ds-03 w-ds-03",
38
38
  lg: "h-2.5 w-2.5"
39
- }, g = s.forwardRef(({ className: n, size: a = "md", ...o }, p) => {
39
+ }, g = s.forwardRef(({ className: n, size: r = "md", ...o }, p) => {
40
40
  let g = s.useContext(d);
41
- return /* @__PURE__ */ c(t, {
41
+ return /* @__PURE__ */ c(a, {
42
42
  ref: p,
43
- className: i("touch-target aspect-square rounded-pill", m[a], "border border-surface-border-strong bg-surface-raised-hover", "transition-colors duration-fast-01", "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2", "disabled:cursor-not-allowed disabled:opacity-action-disabled", "hover:border-accent-7 hover:bg-surface-raised-active", "data-[state=checked]:border-accent-7", g && f[g], n),
43
+ className: t("touch-target aspect-square rounded-pill", m[r], "border border-surface-border-strong bg-surface-raised-hover", "transition-colors duration-fast-01", "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2", "disabled:cursor-not-allowed disabled:opacity-action-disabled", "hover:border-accent-7 hover:bg-surface-raised-active", "data-[state=checked]:border-accent-7", g && f[g], n),
44
44
  ...o,
45
- children: /* @__PURE__ */ c(e, {
45
+ children: /* @__PURE__ */ c(i, {
46
46
  asChild: !0,
47
47
  className: "flex items-center justify-center",
48
48
  children: /* @__PURE__ */ c(u.span, {
49
49
  className: "flex items-center justify-center",
50
50
  initial: { scale: 0 },
51
51
  animate: { scale: 1 },
52
- transition: r.snappy,
53
- children: /* @__PURE__ */ c(l, { className: i(h[a], "fill-accent-9 text-accent-11") })
52
+ transition: e.snappy,
53
+ children: /* @__PURE__ */ c(l, { className: t(h[r], "fill-accent-9 text-accent-11") })
54
54
  })
55
55
  })
56
56
  });
57
57
  });
58
- g.displayName = t.displayName;
58
+ g.displayName = a.displayName;
59
59
  //#endregion
60
60
  export { p as RadioGroup, g as RadioGroupItem };
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  import * as React from 'react';
3
2
  type SearchInputSize = 'xs' | 'sm' | 'md' | 'lg';
4
3
  /**
@@ -1,5 +1,4 @@
1
- "use client";
2
- import { IconInput } from './lib/icon-input';
1
+ import { IconInput } from './lib/icon-input.js';
3
2
  import * as React from 'react';
4
3
  export type SegmentedControlSize = 'sm' | 'md' | 'lg';
5
4
  export type SegmentedControlVariant = 'soft' | 'solid';
@@ -1,6 +1,5 @@
1
- "use client";
2
1
  import { VariantProps } from 'class-variance-authority';
3
- import * as SelectPrimitive from '../primitives/react-select';
2
+ import * as SelectPrimitive from '../primitives/react-select.js';
4
3
  import * as React from 'react';
5
4
  /**
6
5
  * Select root — manages open/close state and selected value.