@devalok/shilp-sutra 0.34.1 → 0.36.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 (439) hide show
  1. package/LICENSE +21 -21
  2. package/dist/_chunks/badge-group.js +95 -95
  3. package/dist/_chunks/badge-group.js.map +1 -0
  4. package/dist/_chunks/chat.js +7 -2
  5. package/dist/_chunks/chat.js.map +1 -0
  6. package/dist/_chunks/date-picker.js.map +1 -0
  7. package/dist/_chunks/document-preview.js.map +1 -0
  8. package/dist/_chunks/file-preview.js.map +1 -0
  9. package/dist/_chunks/framer.js +62 -62
  10. package/dist/_chunks/framer.js.map +1 -0
  11. package/dist/_chunks/image-preview.js +1 -1
  12. package/dist/_chunks/image-preview.js.map +1 -0
  13. package/dist/_chunks/keybinding.js.map +1 -0
  14. package/dist/_chunks/link-context.js.map +1 -0
  15. package/dist/_chunks/mention-suggestion.js.map +1 -0
  16. package/dist/_chunks/motion-provider.js.map +1 -0
  17. package/dist/_chunks/popover.js +32 -36
  18. package/dist/_chunks/popover.js.map +1 -0
  19. package/dist/_chunks/primitives.js +686 -686
  20. package/dist/_chunks/primitives.js.map +1 -0
  21. package/dist/_chunks/rich-chat-input.js +650 -649
  22. package/dist/_chunks/rich-chat-input.js.map +1 -0
  23. package/dist/_chunks/shared.js.map +1 -0
  24. package/dist/_chunks/sonner.js.map +1 -0
  25. package/dist/_chunks/stat-row.js +158 -158
  26. package/dist/_chunks/stat-row.js.map +1 -0
  27. package/dist/_chunks/tiptap.js +11 -11
  28. package/dist/_chunks/tiptap.js.map +1 -0
  29. package/dist/_chunks/tree-view.js +1 -1
  30. package/dist/_chunks/tree-view.js.map +1 -0
  31. package/dist/_chunks/use-calendar.js.map +1 -0
  32. package/dist/_chunks/vendor-client.js +1 -1
  33. package/dist/_chunks/vendor-client.js.map +1 -0
  34. package/dist/_chunks/vendor-utils.js.map +1 -0
  35. package/dist/ai/ai-command-provider.js.map +1 -0
  36. package/dist/ai/block-renderer.js.map +1 -0
  37. package/dist/ai/blocks/loading.d.ts.map +1 -1
  38. package/dist/ai/command-bar.js.map +1 -0
  39. package/dist/ai/conversation.js +76 -76
  40. package/dist/ai/conversation.js.map +1 -0
  41. package/dist/ai/devadoot-icon.d.ts.map +1 -1
  42. package/dist/ai/index.js.map +1 -0
  43. package/dist/composed/activity-feed.js.map +1 -0
  44. package/dist/composed/avatar-group.js +1 -1
  45. package/dist/composed/avatar-group.js.map +1 -0
  46. package/dist/composed/bulk-action-bar.js +13 -21
  47. package/dist/composed/bulk-action-bar.js.map +1 -0
  48. package/dist/composed/command-palette.js.map +1 -0
  49. package/dist/composed/confirm-dialog.js.map +1 -0
  50. package/dist/composed/content-card.js.map +1 -0
  51. package/dist/composed/deadline-indicator.js.map +1 -0
  52. package/dist/composed/emoji-picker.js.map +1 -0
  53. package/dist/composed/empty-state.d.ts.map +1 -1
  54. package/dist/composed/empty-state.js +30 -30
  55. package/dist/composed/empty-state.js.map +1 -0
  56. package/dist/composed/error-boundary.js.map +1 -0
  57. package/dist/composed/filter-bar.js.map +1 -0
  58. package/dist/composed/form-section.js.map +1 -0
  59. package/dist/composed/global-loading.js.map +1 -0
  60. package/dist/composed/inline-edit.js.map +1 -0
  61. package/dist/composed/lib/string-utils.js.map +1 -0
  62. package/dist/composed/loading-skeleton.js.map +1 -0
  63. package/dist/composed/markdown-viewer.js.map +1 -0
  64. package/dist/composed/master-detail.js.map +1 -0
  65. package/dist/composed/member-picker.js.map +1 -0
  66. package/dist/composed/multi-select-popover.d.ts.map +1 -1
  67. package/dist/composed/multi-select-popover.js +4 -0
  68. package/dist/composed/multi-select-popover.js.map +1 -0
  69. package/dist/composed/page-header.js.map +1 -0
  70. package/dist/composed/page-skeletons.js.map +1 -0
  71. package/dist/composed/priority-indicator.js.map +1 -0
  72. package/dist/composed/responsive-overlay.js.map +1 -0
  73. package/dist/composed/rich-chat-input/attachment-strip.d.ts.map +1 -1
  74. package/dist/composed/rich-chat-input/reply-banner.d.ts.map +1 -1
  75. package/dist/composed/rich-chat-input/schedule-send.d.ts.map +1 -1
  76. package/dist/composed/rich-chat-input.d.ts.map +1 -1
  77. package/dist/composed/rich-text-editor.js.map +1 -0
  78. package/dist/composed/schedule-view.js.map +1 -0
  79. package/dist/composed/simple-tooltip.js.map +1 -0
  80. package/dist/composed/status-badge.d.ts.map +1 -1
  81. package/dist/composed/status-badge.js.map +1 -0
  82. package/dist/hooks/use-color-mode.js.map +1 -0
  83. package/dist/hooks/use-mobile.js.map +1 -0
  84. package/dist/hooks/use-touch-device.js.map +1 -0
  85. package/dist/hooks/use-viewport-height.js.map +1 -0
  86. package/dist/motion/check-motion-provider.d.ts +3 -0
  87. package/dist/motion/check-motion-provider.d.ts.map +1 -0
  88. package/dist/motion/index.js +14 -0
  89. package/dist/motion/index.js.map +1 -0
  90. package/dist/motion/primitives-index.js.map +1 -0
  91. package/dist/primitives/react-accordion.d.ts +114 -114
  92. package/dist/primitives/react-alert-dialog.d.ts +51 -51
  93. package/dist/primitives/react-aspect-ratio.d.ts +11 -11
  94. package/dist/primitives/react-avatar.d.ts +24 -24
  95. package/dist/primitives/react-checkbox.d.ts +50 -50
  96. package/dist/primitives/react-collapsible.d.ts +33 -33
  97. package/dist/primitives/react-context-menu.d.ts +96 -96
  98. package/dist/primitives/react-dialog.d.ts +103 -103
  99. package/dist/primitives/react-dropdown-menu.d.ts +97 -97
  100. package/dist/primitives/react-hover-card.d.ts +79 -79
  101. package/dist/primitives/react-label.d.ts +10 -10
  102. package/dist/primitives/react-menu.d.ts +169 -169
  103. package/dist/primitives/react-menubar.d.ts +115 -115
  104. package/dist/primitives/react-navigation-menu.d.ts +126 -126
  105. package/dist/primitives/react-popover.d.ts +85 -85
  106. package/dist/primitives/react-progress.d.ts +19 -19
  107. package/dist/primitives/react-radio-group.d.ts +58 -58
  108. package/dist/primitives/react-roving-focus.d.ts +49 -49
  109. package/dist/primitives/react-select.d.ts +137 -137
  110. package/dist/primitives/react-separator.d.ts +21 -21
  111. package/dist/primitives/react-slider.d.ts +75 -75
  112. package/dist/primitives/react-switch.d.ts +21 -21
  113. package/dist/primitives/react-tabs.d.ts +56 -56
  114. package/dist/primitives/react-toast.d.ts +120 -120
  115. package/dist/primitives/react-toggle-group.d.ts +75 -75
  116. package/dist/primitives/react-toggle.d.ts +24 -24
  117. package/dist/primitives/react-tooltip.d.ts +101 -101
  118. package/dist/primitives/react-visually-hidden.d.ts +22 -22
  119. package/dist/shell/app-command-palette.d.ts +2 -0
  120. package/dist/shell/app-command-palette.d.ts.map +1 -1
  121. package/dist/shell/app-command-palette.js +42 -155
  122. package/dist/shell/app-command-palette.js.map +1 -0
  123. package/dist/shell/bottom-navbar.js +1 -1
  124. package/dist/shell/bottom-navbar.js.map +1 -0
  125. package/dist/shell/command-registry.js.map +1 -0
  126. package/dist/shell/notification-center.d.ts.map +1 -1
  127. package/dist/shell/notification-center.js +194 -169
  128. package/dist/shell/notification-center.js.map +1 -0
  129. package/dist/shell/notification-preferences.js.map +1 -0
  130. package/dist/shell/sidebar.js.map +1 -0
  131. package/dist/shell/top-bar.js +1 -1
  132. package/dist/shell/top-bar.js.map +1 -0
  133. package/dist/tailwind/index.cjs +48 -1
  134. package/dist/tailwind/preset.d.ts.map +1 -1
  135. package/dist/tailwind/preset.js +48 -1
  136. package/dist/tailwind/preset.js.map +1 -0
  137. package/dist/tokens/index.css +4 -4
  138. package/dist/tokens/primitives.css +442 -442
  139. package/dist/tokens/semantic.css +742 -547
  140. package/dist/tokens/typography-semantic.css +123 -100
  141. package/dist/tokens/typography.css +422 -422
  142. package/dist/ui/accordion.js +13 -13
  143. package/dist/ui/accordion.js.map +1 -0
  144. package/dist/ui/alert-dialog.d.ts +6 -2
  145. package/dist/ui/alert-dialog.d.ts.map +1 -1
  146. package/dist/ui/alert-dialog.js +43 -42
  147. package/dist/ui/alert-dialog.js.map +1 -0
  148. package/dist/ui/alert.d.ts +3 -2
  149. package/dist/ui/alert.d.ts.map +1 -1
  150. package/dist/ui/alert.js +31 -5
  151. package/dist/ui/alert.js.map +1 -0
  152. package/dist/ui/aspect-ratio.js +1 -1
  153. package/dist/ui/aspect-ratio.js.map +1 -0
  154. package/dist/ui/autocomplete.d.ts.map +1 -1
  155. package/dist/ui/autocomplete.js +92 -67
  156. package/dist/ui/autocomplete.js.map +1 -0
  157. package/dist/ui/avatar.js +9 -9
  158. package/dist/ui/avatar.js.map +1 -0
  159. package/dist/ui/badge-indicator.js.map +1 -0
  160. package/dist/ui/banner.js.map +1 -0
  161. package/dist/ui/breadcrumb.js +1 -1
  162. package/dist/ui/breadcrumb.js.map +1 -0
  163. package/dist/ui/button-group.js.map +1 -0
  164. package/dist/ui/button-processing.d.ts.map +1 -1
  165. package/dist/ui/button-processing.js +61 -40
  166. package/dist/ui/button-processing.js.map +1 -0
  167. package/dist/ui/button.js +8 -8
  168. package/dist/ui/button.js.map +1 -0
  169. package/dist/ui/card.js.map +1 -0
  170. package/dist/ui/charts/bar-chart.d.ts.map +1 -1
  171. package/dist/ui/charts/chart-container.d.ts +2 -0
  172. package/dist/ui/charts/chart-container.d.ts.map +1 -1
  173. package/dist/ui/charts/index.js +88 -65
  174. package/dist/ui/charts/index.js.map +1 -0
  175. package/dist/ui/charts/line-chart.d.ts.map +1 -1
  176. package/dist/ui/chat/message-input.d.ts.map +1 -1
  177. package/dist/ui/chat/message-list.d.ts +1 -1
  178. package/dist/ui/chat/message-list.d.ts.map +1 -1
  179. package/dist/ui/chat/message.d.ts.map +1 -1
  180. package/dist/ui/chat/system-message.d.ts.map +1 -1
  181. package/dist/ui/checkbox.d.ts.map +1 -1
  182. package/dist/ui/checkbox.js +33 -28
  183. package/dist/ui/checkbox.js.map +1 -0
  184. package/dist/ui/code.js.map +1 -0
  185. package/dist/ui/collapsible.js +1 -1
  186. package/dist/ui/collapsible.js.map +1 -0
  187. package/dist/ui/color-input.d.ts.map +1 -1
  188. package/dist/ui/color-input.js +165 -163
  189. package/dist/ui/color-input.js.map +1 -0
  190. package/dist/ui/color-swatch.js.map +1 -0
  191. package/dist/ui/combobox.d.ts +7 -0
  192. package/dist/ui/combobox.d.ts.map +1 -1
  193. package/dist/ui/combobox.js +147 -113
  194. package/dist/ui/combobox.js.map +1 -0
  195. package/dist/ui/container.js +1 -1
  196. package/dist/ui/container.js.map +1 -0
  197. package/dist/ui/context-menu.js.map +1 -0
  198. package/dist/ui/data-table-body.js.map +1 -0
  199. package/dist/ui/data-table-bulk-actions.js +1 -1
  200. package/dist/ui/data-table-bulk-actions.js.map +1 -0
  201. package/dist/ui/data-table-card.js.map +1 -0
  202. package/dist/ui/data-table-context.js.map +1 -0
  203. package/dist/ui/data-table-header.js.map +1 -0
  204. package/dist/ui/data-table-pagination.js.map +1 -0
  205. package/dist/ui/data-table-toolbar.js.map +1 -0
  206. package/dist/ui/data-table.js +34 -31
  207. package/dist/ui/data-table.js.map +1 -0
  208. package/dist/ui/devalok-grain.js.map +1 -0
  209. package/dist/ui/dialog.js +31 -35
  210. package/dist/ui/dialog.js.map +1 -0
  211. package/dist/ui/dropdown-menu.js.map +1 -0
  212. package/dist/ui/file-upload.js +120 -120
  213. package/dist/ui/file-upload.js.map +1 -0
  214. package/dist/ui/form.d.ts +8 -0
  215. package/dist/ui/form.d.ts.map +1 -1
  216. package/dist/ui/form.js +14 -12
  217. package/dist/ui/form.js.map +1 -0
  218. package/dist/ui/hover-card.js.map +1 -0
  219. package/dist/ui/icon-button.js.map +1 -0
  220. package/dist/ui/icon-context.js.map +1 -0
  221. package/dist/ui/icon-group.js.map +1 -0
  222. package/dist/ui/icon.js.map +1 -0
  223. package/dist/ui/index.d.ts +4 -4
  224. package/dist/ui/index.d.ts.map +1 -1
  225. package/dist/ui/index.js +82 -66
  226. package/dist/ui/index.js.map +1 -0
  227. package/dist/ui/input-otp.d.ts +12 -3
  228. package/dist/ui/input-otp.d.ts.map +1 -1
  229. package/dist/ui/input-otp.js +41 -27
  230. package/dist/ui/input-otp.js.map +1 -0
  231. package/dist/ui/input.d.ts.map +1 -1
  232. package/dist/ui/input.js +16 -15
  233. package/dist/ui/input.js.map +1 -0
  234. package/dist/ui/label.d.ts.map +1 -1
  235. package/dist/ui/label.js +19 -14
  236. package/dist/ui/label.js.map +1 -0
  237. package/dist/ui/lib/check-tokens.d.ts +3 -0
  238. package/dist/ui/lib/check-tokens.d.ts.map +1 -0
  239. package/dist/ui/lib/date-utils.js.map +1 -0
  240. package/dist/ui/lib/motion.d.ts +15 -4
  241. package/dist/ui/lib/motion.d.ts.map +1 -1
  242. package/dist/ui/lib/motion.js +18 -9
  243. package/dist/ui/lib/motion.js.map +1 -0
  244. package/dist/ui/lib/utils.js.map +1 -0
  245. package/dist/ui/link.js +2 -2
  246. package/dist/ui/link.js.map +1 -0
  247. package/dist/ui/menubar.js.map +1 -0
  248. package/dist/ui/navigation-menu.js.map +1 -0
  249. package/dist/ui/number-input.d.ts +16 -1
  250. package/dist/ui/number-input.d.ts.map +1 -1
  251. package/dist/ui/number-input.js +79 -49
  252. package/dist/ui/number-input.js.map +1 -0
  253. package/dist/ui/pagination.js +1 -1
  254. package/dist/ui/pagination.js.map +1 -0
  255. package/dist/ui/progress-ring.d.ts.map +1 -1
  256. package/dist/ui/progress-ring.js.map +1 -0
  257. package/dist/ui/progress.js.map +1 -0
  258. package/dist/ui/radio.d.ts.map +1 -1
  259. package/dist/ui/radio.js +27 -20
  260. package/dist/ui/radio.js.map +1 -0
  261. package/dist/ui/search-input.js.map +1 -0
  262. package/dist/ui/segmented-control.d.ts +1 -1
  263. package/dist/ui/segmented-control.d.ts.map +1 -1
  264. package/dist/ui/segmented-control.js +2 -0
  265. package/dist/ui/segmented-control.js.map +1 -0
  266. package/dist/ui/select.d.ts.map +1 -1
  267. package/dist/ui/select.js +54 -48
  268. package/dist/ui/select.js.map +1 -0
  269. package/dist/ui/separator.d.ts.map +1 -1
  270. package/dist/ui/separator.js +10 -7
  271. package/dist/ui/separator.js.map +1 -0
  272. package/dist/ui/sheet.js +29 -29
  273. package/dist/ui/sheet.js.map +1 -0
  274. package/dist/ui/sidebar.js +7 -7
  275. package/dist/ui/sidebar.js.map +1 -0
  276. package/dist/ui/skeleton.js.map +1 -0
  277. package/dist/ui/slider.d.ts +22 -3
  278. package/dist/ui/slider.d.ts.map +1 -1
  279. package/dist/ui/slider.js +57 -19
  280. package/dist/ui/slider.js.map +1 -0
  281. package/dist/ui/spinner.js.map +1 -0
  282. package/dist/ui/split-button.d.ts.map +1 -1
  283. package/dist/ui/split-button.js +77 -76
  284. package/dist/ui/split-button.js.map +1 -0
  285. package/dist/ui/stack.js.map +1 -0
  286. package/dist/ui/stat-card.js.map +1 -0
  287. package/dist/ui/status-dot.js.map +1 -0
  288. package/dist/ui/stepper.d.ts +10 -0
  289. package/dist/ui/stepper.d.ts.map +1 -1
  290. package/dist/ui/stepper.js +80 -75
  291. package/dist/ui/stepper.js.map +1 -0
  292. package/dist/ui/switch.d.ts.map +1 -1
  293. package/dist/ui/switch.js +26 -22
  294. package/dist/ui/switch.js.map +1 -0
  295. package/dist/ui/table.js.map +1 -0
  296. package/dist/ui/tabs.d.ts +3 -1
  297. package/dist/ui/tabs.d.ts.map +1 -1
  298. package/dist/ui/tabs.js +68 -48
  299. package/dist/ui/tabs.js.map +1 -0
  300. package/dist/ui/text.d.ts +1 -1
  301. package/dist/ui/text.d.ts.map +1 -1
  302. package/dist/ui/text.js +10 -2
  303. package/dist/ui/text.js.map +1 -0
  304. package/dist/ui/textarea.js +1 -1
  305. package/dist/ui/textarea.js.map +1 -0
  306. package/dist/ui/toast-registry.d.ts +8 -0
  307. package/dist/ui/toast-registry.d.ts.map +1 -0
  308. package/dist/ui/toast-registry.js +13 -0
  309. package/dist/ui/toast-registry.js.map +1 -0
  310. package/dist/ui/toast.d.ts.map +1 -1
  311. package/dist/ui/toast.js +141 -136
  312. package/dist/ui/toast.js.map +1 -0
  313. package/dist/ui/toaster.d.ts.map +1 -1
  314. package/dist/ui/toaster.js +15 -14
  315. package/dist/ui/toaster.js.map +1 -0
  316. package/dist/ui/toggle-group.d.ts +2 -0
  317. package/dist/ui/toggle-group.d.ts.map +1 -1
  318. package/dist/ui/toggle-group.js +23 -16
  319. package/dist/ui/toggle-group.js.map +1 -0
  320. package/dist/ui/toggle.d.ts +2 -0
  321. package/dist/ui/toggle.d.ts.map +1 -1
  322. package/dist/ui/toggle.js +14 -6
  323. package/dist/ui/toggle.js.map +1 -0
  324. package/dist/ui/tooltip.js.map +1 -0
  325. package/dist/ui/visually-hidden.js.map +1 -0
  326. package/docs/components/_header.md +85 -85
  327. package/docs/components/composed/activity-feed.md +62 -62
  328. package/docs/components/composed/avatar-group.md +65 -65
  329. package/docs/components/composed/bulk-action-bar.md +40 -40
  330. package/docs/components/composed/command-palette.md +40 -40
  331. package/docs/components/composed/confirm-dialog.md +46 -46
  332. package/docs/components/composed/content-card.md +36 -36
  333. package/docs/components/composed/date-picker.md +130 -130
  334. package/docs/components/composed/deadline-indicator.md +27 -27
  335. package/docs/components/composed/emoji-picker.md +52 -52
  336. package/docs/components/composed/empty-state.md +53 -53
  337. package/docs/components/composed/error-boundary.md +29 -29
  338. package/docs/components/composed/file-preview.md +40 -40
  339. package/docs/components/composed/filter-bar.md +57 -57
  340. package/docs/components/composed/form-section.md +31 -31
  341. package/docs/components/composed/global-loading.md +27 -27
  342. package/docs/components/composed/inline-edit.md +35 -35
  343. package/docs/components/composed/loading-skeleton.md +51 -51
  344. package/docs/components/composed/markdown-viewer.md +27 -27
  345. package/docs/components/composed/master-detail.md +48 -48
  346. package/docs/components/composed/member-picker.md +35 -35
  347. package/docs/components/composed/multi-select-popover.md +62 -62
  348. package/docs/components/composed/page-header.md +41 -41
  349. package/docs/components/composed/page-skeletons.md +32 -32
  350. package/docs/components/composed/priority-indicator.md +32 -32
  351. package/docs/components/composed/responsive-overlay.md +34 -34
  352. package/docs/components/composed/rich-text-editor.md +82 -82
  353. package/docs/components/composed/schedule-view.md +39 -39
  354. package/docs/components/composed/simple-tooltip.md +33 -33
  355. package/docs/components/composed/status-badge.md +55 -55
  356. package/docs/components/shell/app-command-palette.md +44 -44
  357. package/docs/components/shell/bottom-navbar.md +52 -52
  358. package/docs/components/shell/command-registry.md +48 -48
  359. package/docs/components/shell/link-context.md +41 -41
  360. package/docs/components/shell/notification-center.md +63 -63
  361. package/docs/components/shell/notification-preferences.md +42 -42
  362. package/docs/components/shell/sidebar.md +92 -92
  363. package/docs/components/shell/top-bar.md +143 -143
  364. package/docs/components/ui/accordion.md +51 -51
  365. package/docs/components/ui/alert-dialog.md +61 -61
  366. package/docs/components/ui/alert.md +46 -46
  367. package/docs/components/ui/aspect-ratio.md +25 -25
  368. package/docs/components/ui/autocomplete.md +48 -48
  369. package/docs/components/ui/avatar.md +56 -56
  370. package/docs/components/ui/badge.md +83 -82
  371. package/docs/components/ui/banner.md +42 -42
  372. package/docs/components/ui/breadcrumb.md +37 -37
  373. package/docs/components/ui/button-group.md +41 -41
  374. package/docs/components/ui/button.md +94 -93
  375. package/docs/components/ui/card.md +52 -52
  376. package/docs/components/ui/charts.md +43 -43
  377. package/docs/components/ui/checkbox.md +36 -36
  378. package/docs/components/ui/chip.md +47 -47
  379. package/docs/components/ui/code.md +28 -28
  380. package/docs/components/ui/collapsible.md +40 -40
  381. package/docs/components/ui/color-input.md +91 -91
  382. package/docs/components/ui/color-swatch.md +25 -25
  383. package/docs/components/ui/combobox.md +54 -54
  384. package/docs/components/ui/container.md +26 -26
  385. package/docs/components/ui/context-menu.md +43 -43
  386. package/docs/components/ui/data-table-body.md +1 -1
  387. package/docs/components/ui/data-table-bulk-actions.md +1 -1
  388. package/docs/components/ui/data-table-card.md +1 -1
  389. package/docs/components/ui/data-table-context.md +1 -1
  390. package/docs/components/ui/data-table-header.md +1 -1
  391. package/docs/components/ui/data-table-pagination.md +1 -1
  392. package/docs/components/ui/data-table-toolbar.md +44 -44
  393. package/docs/components/ui/data-table.md +94 -94
  394. package/docs/components/ui/dialog.md +54 -54
  395. package/docs/components/ui/dropdown-menu.md +48 -48
  396. package/docs/components/ui/file-upload.md +41 -41
  397. package/docs/components/ui/form.md +51 -51
  398. package/docs/components/ui/hover-card.md +32 -32
  399. package/docs/components/ui/icon-button.md +40 -40
  400. package/docs/components/ui/input-otp.md +44 -44
  401. package/docs/components/ui/input.md +74 -74
  402. package/docs/components/ui/label.md +25 -25
  403. package/docs/components/ui/link.md +29 -29
  404. package/docs/components/ui/menubar.md +44 -44
  405. package/docs/components/ui/navigation-menu.md +46 -46
  406. package/docs/components/ui/number-input.md +44 -44
  407. package/docs/components/ui/pagination.md +48 -48
  408. package/docs/components/ui/popover.md +30 -30
  409. package/docs/components/ui/progress-ring.md +41 -41
  410. package/docs/components/ui/progress.md +34 -34
  411. package/docs/components/ui/radio.md +34 -34
  412. package/docs/components/ui/search-input.md +43 -43
  413. package/docs/components/ui/segmented-control.md +50 -50
  414. package/docs/components/ui/select.md +53 -53
  415. package/docs/components/ui/separator.md +32 -32
  416. package/docs/components/ui/sheet.md +47 -47
  417. package/docs/components/ui/sidebar.md +72 -72
  418. package/docs/components/ui/skeleton.md +77 -77
  419. package/docs/components/ui/slider.md +29 -29
  420. package/docs/components/ui/spinner.md +54 -54
  421. package/docs/components/ui/stack.md +39 -39
  422. package/docs/components/ui/stat-card.md +61 -61
  423. package/docs/components/ui/status-dot.md +26 -26
  424. package/docs/components/ui/stepper.md +49 -49
  425. package/docs/components/ui/switch.md +47 -47
  426. package/docs/components/ui/table.md +47 -47
  427. package/docs/components/ui/tabs.md +60 -60
  428. package/docs/components/ui/text.md +37 -37
  429. package/docs/components/ui/textarea.md +39 -39
  430. package/docs/components/ui/toast.md +65 -65
  431. package/docs/components/ui/toaster.md +47 -47
  432. package/docs/components/ui/toggle-group.md +43 -43
  433. package/docs/components/ui/toggle.md +37 -37
  434. package/docs/components/ui/tooltip.md +38 -38
  435. package/docs/components/ui/tree-view.md +65 -65
  436. package/docs/components/ui/visually-hidden.md +21 -21
  437. package/llms-full.txt +5266 -5264
  438. package/llms.txt +624 -580
  439. package/package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AQ,EAAE,MAAM,aAAa,CAAA;AAGhH,OAAO,EACL,gBAAgB,EAChB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B,MAAM,qBAAqB,CAAA;AAG5B,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAG3F,OAAO,EACL,WAAW,EACX,KAAK,gBAAgB,EACrB,OAAO,EACP,iBAAiB,EACjB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,aAAa,EACb,KAAK,kBAAkB,EACvB,aAAa,EACb,KAAK,kBAAkB,EACvB,eAAe,EACf,KAAK,oBAAoB,EACzB,YAAY,EACZ,KAAK,iBAAiB,EACtB,eAAe,EACf,KAAK,oBAAoB,GAC1B,MAAM,QAAQ,CAAA;AAGf,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAA;AAG7C,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAC1E,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA"}
package/dist/ui/index.js CHANGED
@@ -1,13 +1,14 @@
1
1
  "use client";
2
- import { springs as e, stagger as t, tweens as n, withReducedMotion as r } from "./lib/motion.js";
3
- import { cn as i } from "./lib/utils.js";
4
- import { Spinner as a } from "./spinner.js";
5
- import { IconContext as o, IconProvider as s, useIconContext as c } from "./icon-context.js";
6
- import { Icon as l } from "./icon.js";
7
- import { Accordion as u, AccordionContent as d, AccordionItem as f, AccordionTrigger as p } from "./accordion.js";
8
- import { AlertDialog as m, AlertDialogAction as h, AlertDialogCancel as g, AlertDialogContent as _, AlertDialogDescription as v, AlertDialogFooter as y, AlertDialogHeader as b, AlertDialogOverlay as x, AlertDialogPortal as S, AlertDialogTitle as C, AlertDialogTrigger as w } from "./alert-dialog.js";
9
- import { Alert as T, alertVariants as E } from "./alert.js";
10
- import { AspectRatio as D } from "./aspect-ratio.js";
2
+ import { springs as ee, stagger as te, tweens as ne, withReducedMotion as e } from "./lib/motion.js";
3
+ import { cn as t } from "./lib/utils.js";
4
+ import { Spinner as n } from "./spinner.js";
5
+ import { IconContext as r, IconProvider as i, useIconContext as a } from "./icon-context.js";
6
+ import { Icon as o } from "./icon.js";
7
+ import { Accordion as s, AccordionContent as c, AccordionItem as l, AccordionTrigger as u } from "./accordion.js";
8
+ import { AlertDialog as d, AlertDialogAction as f, AlertDialogCancel as p, AlertDialogContent as m, AlertDialogDescription as h, AlertDialogFooter as g, AlertDialogHeader as _, AlertDialogOverlay as v, AlertDialogPortal as y, AlertDialogTitle as b, AlertDialogTrigger as x } from "./alert-dialog.js";
9
+ import { Alert as S, alertVariants as C } from "./alert.js";
10
+ import { AspectRatio as w } from "./aspect-ratio.js";
11
+ import { FormField as T, FormHelperText as E, useFormField as D } from "./form.js";
11
12
  import { Autocomplete as O } from "./autocomplete.js";
12
13
  import { Avatar as k, AvatarFallback as A, AvatarImage as j, avatarVariants as M } from "./avatar.js";
13
14
  import { BadgeIndicator as N } from "./badge-indicator.js";
@@ -16,60 +17,75 @@ import { Banner as L, bannerVariants as R } from "./banner.js";
16
17
  import { Breadcrumb as z, BreadcrumbEllipsis as B, BreadcrumbItem as V, BreadcrumbLink as H, BreadcrumbList as U, BreadcrumbPage as W, BreadcrumbSeparator as G } from "./breadcrumb.js";
17
18
  import { ButtonGroup as K, useButtonGroup as q } from "./button-group.js";
18
19
  import { Button as J, buttonVariants as Y } from "./button.js";
19
- import { Card as X, CardContent as Z, CardDescription as Q, CardFooter as $, CardHeader as ee, CardTitle as te, cardVariants as ne } from "./card.js";
20
- import { Checkbox as re } from "./checkbox.js";
21
- import { Code as ie } from "./code.js";
22
- import { Collapsible as ae, CollapsibleContent as oe, CollapsibleTrigger as se } from "./collapsible.js";
23
- import { i as ce, n as le, r as ue, t as de } from "../_chunks/popover.js";
24
- import { ColorInput as fe } from "./color-input.js";
25
- import { ColorSwatch as pe } from "./color-swatch.js";
26
- import { Combobox as me } from "./combobox.js";
27
- import { Container as he } from "./container.js";
28
- import { ContextMenu as ge, ContextMenuCheckboxItem as _e, ContextMenuContent as ve, ContextMenuGroup as ye, ContextMenuItem as be, ContextMenuLabel as xe, ContextMenuPortal as Se, ContextMenuRadioGroup as Ce, ContextMenuRadioItem as we, ContextMenuSeparator as Te, ContextMenuShortcut as Ee, ContextMenuSub as De, ContextMenuSubContent as Oe, ContextMenuSubTrigger as ke, ContextMenuTrigger as Ae } from "./context-menu.js";
29
- import { Table as je, TableBody as Me, TableCaption as Ne, TableCell as Pe, TableFooter as Fe, TableHead as Ie, TableHeader as Le, TableRow as Re } from "./table.js";
30
- import { Skeleton as ze, SkeletonAvatar as Be, SkeletonButton as Ve, SkeletonChart as He, SkeletonGroup as Ue, SkeletonImage as We, SkeletonInput as Ge, SkeletonText as Ke, skeletonVariants as qe } from "./skeleton.js";
31
- import { DropdownMenu as Je, DropdownMenuCheckboxItem as Ye, DropdownMenuContent as Xe, DropdownMenuGroup as Ze, DropdownMenuItem as Qe, DropdownMenuLabel as $e, DropdownMenuPortal as et, DropdownMenuRadioGroup as tt, DropdownMenuRadioItem as nt, DropdownMenuSeparator as rt, DropdownMenuShortcut as it, DropdownMenuSub as at, DropdownMenuSubContent as ot, DropdownMenuSubTrigger as st, DropdownMenuTrigger as ct } from "./dropdown-menu.js";
32
- import { DevalokGrain as lt } from "./devalok-grain.js";
33
- import { Dialog as ut, DialogClose as dt, DialogContent as ft, DialogContentRaw as pt, DialogDescription as mt, DialogFooter as ht, DialogHeader as gt, DialogOverlay as _t, DialogPortal as vt, DialogTitle as yt, DialogTrigger as bt } from "./dialog.js";
34
- import { FileUpload as xt } from "./file-upload.js";
35
- import { FormField as St, FormHelperText as Ct, useFormField as wt } from "./form.js";
36
- import { HoverCard as Tt, HoverCardContent as Et, HoverCardTrigger as Dt } from "./hover-card.js";
37
- import { IconButton as Ot } from "./icon-button.js";
38
- import { IconGroup as kt } from "./icon-group.js";
39
- import { SplitButton as At } from "./split-button.js";
40
- import { Input as jt, inputVariants as Mt } from "./input.js";
41
- import { Label as Nt } from "./label.js";
42
- import { Separator as Pt } from "./separator.js";
43
- import { VisuallyHidden as Ft } from "./visually-hidden.js";
44
- import { RadioGroup as It, RadioGroupItem as Lt } from "./radio.js";
45
- import { Switch as Rt } from "./switch.js";
46
- import { Select as zt, SelectContent as Bt, SelectGroup as Vt, SelectItem as Ht, SelectLabel as Ut, SelectScrollDownButton as Wt, SelectScrollUpButton as Gt, SelectSeparator as Kt, SelectTrigger as qt, SelectValue as Jt, selectTriggerVariants as Yt } from "./select.js";
47
- import { Textarea as Xt, textareaVariants as Zt } from "./textarea.js";
48
- import { NumberInput as Qt } from "./number-input.js";
49
- import { SearchInput as $t } from "./search-input.js";
50
- import { InputOTP as en, InputOTPGroup as tn, InputOTPSeparator as nn, InputOTPSlot as rn } from "./input-otp.js";
51
- import { Slider as an } from "./slider.js";
52
- import { Toggle as on, toggleVariants as sn } from "./toggle.js";
53
- import { ToggleGroup as cn, ToggleGroupItem as ln } from "./toggle-group.js";
54
- import { Sheet as un, SheetClose as dn, SheetContent as fn, SheetDescription as pn, SheetFooter as mn, SheetHeader as hn, SheetOverlay as gn, SheetPortal as _n, SheetTitle as vn, SheetTrigger as yn } from "./sheet.js";
55
- import { Progress as bn, progressIndicatorVariants as xn, progressTrackVariants as Sn } from "./progress.js";
56
- import { formatFileSize as Cn, toast as wn } from "./toast.js";
57
- import { Toaster as Tn } from "./toaster.js";
58
- import { Tooltip as En, TooltipContent as Dn, TooltipProvider as On, TooltipTrigger as kn } from "./tooltip.js";
59
- import { StatCard as An } from "./stat-card.js";
60
- import { StatusDot as jn } from "./status-dot.js";
61
- import { MultiProgressRing as Mn, ProgressRing as Nn } from "./progress-ring.js";
62
- import { Tabs as Pn, TabsContent as Fn, TabsList as In, TabsTrigger as Ln } from "./tabs.js";
63
- import { Menubar as Rn, MenubarCheckboxItem as zn, MenubarContent as Bn, MenubarGroup as Vn, MenubarItem as Hn, MenubarLabel as Un, MenubarMenu as Wn, MenubarPortal as Gn, MenubarRadioGroup as Kn, MenubarRadioItem as qn, MenubarSeparator as Jn, MenubarShortcut as Yn, MenubarSub as Xn, MenubarSubContent as Zn, MenubarSubTrigger as Qn, MenubarTrigger as $n } from "./menubar.js";
64
- import { PaginationContent as er, PaginationEllipsis as tr, PaginationItem as nr, PaginationLink as rr, PaginationNav as ir, PaginationNext as ar, PaginationPrevious as or, PaginationRoot as sr, generatePagination as cr } from "./pagination.js";
65
- import { NavigationMenu as lr, NavigationMenuContent as ur, NavigationMenuIndicator as dr, NavigationMenuItem as fr, NavigationMenuLink as pr, NavigationMenuList as mr, NavigationMenuTrigger as hr, NavigationMenuViewport as gr } from "./navigation-menu.js";
66
- import { Sidebar as _r, SidebarContent as vr, SidebarFooter as yr, SidebarGroup as br, SidebarGroupAction as xr, SidebarGroupContent as Sr, SidebarGroupLabel as Cr, SidebarHeader as wr, SidebarInput as Tr, SidebarInset as Er, SidebarMenu as Dr, SidebarMenuAction as Or, SidebarMenuBadge as kr, SidebarMenuButton as Ar, SidebarMenuItem as jr, SidebarMenuSkeleton as Mr, SidebarMenuSub as Nr, SidebarMenuSubButton as Pr, SidebarMenuSubItem as Fr, SidebarProvider as Ir, SidebarRail as Lr, SidebarSeparator as Rr, SidebarTrigger as zr, useSidebar as Br } from "./sidebar.js";
67
- import { Step as Vr, Stepper as Hr } from "./stepper.js";
68
- import { Text as Ur, textVariants as Wr } from "./text.js";
69
- import { Stack as Gr } from "./stack.js";
70
- import { n as Kr, r as qr, t as Jr } from "../_chunks/tree-view.js";
71
- import { SegmentedControl as Yr } from "./segmented-control.js";
72
- import { a as Xr, c as Zr, i as Qr, n as $r, o as ei, r as ti, s as ni, t as ri } from "../_chunks/chat.js";
73
- import { Link as ii } from "./link.js";
74
- import { formatRelativeTime as ai } from "./lib/date-utils.js";
75
- export { u as Accordion, d as AccordionContent, f as AccordionItem, p as AccordionTrigger, T as Alert, m as AlertDialog, h as AlertDialogAction, g as AlertDialogCancel, _ as AlertDialogContent, v as AlertDialogDescription, y as AlertDialogFooter, b as AlertDialogHeader, x as AlertDialogOverlay, S as AlertDialogPortal, C as AlertDialogTitle, w as AlertDialogTrigger, D as AspectRatio, O as Autocomplete, k as Avatar, A as AvatarFallback, j as AvatarImage, P as Badge, I as BadgeGroup, N as BadgeIndicator, L as Banner, z as Breadcrumb, B as BreadcrumbEllipsis, V as BreadcrumbItem, H as BreadcrumbLink, U as BreadcrumbList, W as BreadcrumbPage, G as BreadcrumbSeparator, J as Button, K as ButtonGroup, X as Card, Z as CardContent, Q as CardDescription, $ as CardFooter, ee as CardHeader, te as CardTitle, re as Checkbox, ie as Code, ae as Collapsible, oe as CollapsibleContent, se as CollapsibleTrigger, fe as ColorInput, pe as ColorSwatch, me as Combobox, he as Container, ge as ContextMenu, _e as ContextMenuCheckboxItem, ve as ContextMenuContent, ye as ContextMenuGroup, be as ContextMenuItem, xe as ContextMenuLabel, Se as ContextMenuPortal, Ce as ContextMenuRadioGroup, we as ContextMenuRadioItem, Te as ContextMenuSeparator, Ee as ContextMenuShortcut, De as ContextMenuSub, Oe as ContextMenuSubContent, ke as ContextMenuSubTrigger, Ae as ContextMenuTrigger, Qr as DateSeparator, lt as DevalokGrain, ut as Dialog, dt as DialogClose, ft as DialogContent, pt as DialogContentRaw, mt as DialogDescription, ht as DialogFooter, gt as DialogHeader, _t as DialogOverlay, vt as DialogPortal, yt as DialogTitle, bt as DialogTrigger, Je as DropdownMenu, Ye as DropdownMenuCheckboxItem, Xe as DropdownMenuContent, Ze as DropdownMenuGroup, Qe as DropdownMenuItem, $e as DropdownMenuLabel, et as DropdownMenuPortal, tt as DropdownMenuRadioGroup, nt as DropdownMenuRadioItem, rt as DropdownMenuSeparator, it as DropdownMenuShortcut, at as DropdownMenuSub, ot as DropdownMenuSubContent, st as DropdownMenuSubTrigger, ct as DropdownMenuTrigger, xt as FileUpload, St as FormField, Ct as FormHelperText, Tt as HoverCard, Et as HoverCardContent, Dt as HoverCardTrigger, l as Icon, Ot as IconButton, o as IconContext, kt as IconGroup, s as IconProvider, jt as Input, en as InputOTP, tn as InputOTPGroup, nn as InputOTPSeparator, rn as InputOTPSlot, Nt as Label, ii as Link, Rn as Menubar, zn as MenubarCheckboxItem, Bn as MenubarContent, Vn as MenubarGroup, Hn as MenubarItem, Un as MenubarLabel, Wn as MenubarMenu, Gn as MenubarPortal, Kn as MenubarRadioGroup, qn as MenubarRadioItem, Jn as MenubarSeparator, Yn as MenubarShortcut, Xn as MenubarSub, Zn as MenubarSubContent, Qn as MenubarSubTrigger, $n as MenubarTrigger, ei as Message, $r as MessageInput, Zr as MessageList, Mn as MultiProgressRing, lr as NavigationMenu, ur as NavigationMenuContent, dr as NavigationMenuIndicator, fr as NavigationMenuItem, pr as NavigationMenuLink, mr as NavigationMenuList, hr as NavigationMenuTrigger, gr as NavigationMenuViewport, Qt as NumberInput, er as PaginationContent, tr as PaginationEllipsis, nr as PaginationItem, rr as PaginationLink, ir as PaginationNav, ar as PaginationNext, or as PaginationPrevious, sr as PaginationRoot, de as Popover, le as PopoverAnchor, ue as PopoverContent, ce as PopoverTrigger, bn as Progress, Nn as ProgressRing, It as RadioGroup, Lt as RadioGroupItem, $t as SearchInput, Yr as SegmentedControl, zt as Select, Bt as SelectContent, Vt as SelectGroup, Ht as SelectItem, Ut as SelectLabel, Wt as SelectScrollDownButton, Gt as SelectScrollUpButton, Kt as SelectSeparator, qt as SelectTrigger, Jt as SelectValue, Pt as Separator, un as Sheet, dn as SheetClose, fn as SheetContent, pn as SheetDescription, mn as SheetFooter, hn as SheetHeader, gn as SheetOverlay, _n as SheetPortal, vn as SheetTitle, yn as SheetTrigger, _r as Sidebar, vr as SidebarContent, yr as SidebarFooter, br as SidebarGroup, xr as SidebarGroupAction, Sr as SidebarGroupContent, Cr as SidebarGroupLabel, wr as SidebarHeader, Tr as SidebarInput, Er as SidebarInset, Dr as SidebarMenu, Or as SidebarMenuAction, kr as SidebarMenuBadge, Ar as SidebarMenuButton, jr as SidebarMenuItem, Mr as SidebarMenuSkeleton, Nr as SidebarMenuSub, Pr as SidebarMenuSubButton, Fr as SidebarMenuSubItem, Ir as SidebarProvider, Lr as SidebarRail, Rr as SidebarSeparator, zr as SidebarTrigger, ze as Skeleton, Be as SkeletonAvatar, Ve as SkeletonButton, He as SkeletonChart, Ue as SkeletonGroup, We as SkeletonImage, Ge as SkeletonInput, Ke as SkeletonText, an as Slider, a as Spinner, At as SplitButton, Gr as Stack, An as StatCard, jn as StatusDot, Vr as Step, Hr as Stepper, Rt as Switch, Xr as SystemMessage, je as Table, Me as TableBody, Ne as TableCaption, Pe as TableCell, Fe as TableFooter, Ie as TableHead, Le as TableHeader, Re as TableRow, Pn as Tabs, Fn as TabsContent, In as TabsList, Ln as TabsTrigger, Ur as Text, Xt as Textarea, Tn as Toaster, on as Toggle, cn as ToggleGroup, ln as ToggleGroupItem, En as Tooltip, Dn as TooltipContent, On as TooltipProvider, kn as TooltipTrigger, Kr as TreeItem, Jr as TreeView, ri as TypingIndicator, ti as UnreadSeparator, Ft as VisuallyHidden, E as alertVariants, M as avatarVariants, F as badgeVariants, R as bannerVariants, Y as buttonVariants, ne as cardVariants, i as cn, Cn as formatFileSize, ai as formatRelativeTime, cr as generatePagination, Mt as inputVariants, xn as progressIndicatorVariants, Sn as progressTrackVariants, Yt as selectTriggerVariants, qe as skeletonVariants, e as springs, t as stagger, Wr as textVariants, Zt as textareaVariants, wn as toast, sn as toggleVariants, n as tweens, q as useButtonGroup, wt as useFormField, c as useIconContext, ni as useMessageContext, Br as useSidebar, qr as useTree, r as withReducedMotion };
20
+ import { Card as X, CardContent as Z, CardDescription as re, CardFooter as ie, CardHeader as ae, CardTitle as oe, cardVariants as se } from "./card.js";
21
+ import { Checkbox as ce } from "./checkbox.js";
22
+ import { Code as le } from "./code.js";
23
+ import { Collapsible as ue, CollapsibleContent as de, CollapsibleTrigger as fe } from "./collapsible.js";
24
+ import { i as pe, n as me, r as he, t as ge } from "../_chunks/popover.js";
25
+ import { ColorInput as _e } from "./color-input.js";
26
+ import { ColorSwatch as ve } from "./color-swatch.js";
27
+ import { Combobox as ye, comboboxTriggerVariants as be } from "./combobox.js";
28
+ import { Container as xe } from "./container.js";
29
+ import { ContextMenu as Se, ContextMenuCheckboxItem as Ce, ContextMenuContent as we, ContextMenuGroup as Te, ContextMenuItem as Ee, ContextMenuLabel as De, ContextMenuPortal as Oe, ContextMenuRadioGroup as ke, ContextMenuRadioItem as Ae, ContextMenuSeparator as je, ContextMenuShortcut as Me, ContextMenuSub as Ne, ContextMenuSubContent as Pe, ContextMenuSubTrigger as Fe, ContextMenuTrigger as Ie } from "./context-menu.js";
30
+ import { Table as Le, TableBody as Re, TableCaption as ze, TableCell as Be, TableFooter as Ve, TableHead as He, TableHeader as Ue, TableRow as We } from "./table.js";
31
+ import { Skeleton as Ge, SkeletonAvatar as Ke, SkeletonButton as qe, SkeletonChart as Je, SkeletonGroup as Ye, SkeletonImage as Xe, SkeletonInput as Ze, SkeletonText as Qe, skeletonVariants as $e } from "./skeleton.js";
32
+ import { DropdownMenu as et, DropdownMenuCheckboxItem as tt, DropdownMenuContent as nt, DropdownMenuGroup as rt, DropdownMenuItem as it, DropdownMenuLabel as at, DropdownMenuPortal as ot, DropdownMenuRadioGroup as st, DropdownMenuRadioItem as ct, DropdownMenuSeparator as lt, DropdownMenuShortcut as ut, DropdownMenuSub as dt, DropdownMenuSubContent as ft, DropdownMenuSubTrigger as pt, DropdownMenuTrigger as mt } from "./dropdown-menu.js";
33
+ import { DevalokGrain as ht } from "./devalok-grain.js";
34
+ import { Dialog as gt, DialogClose as _t, DialogContent as vt, DialogContentRaw as yt, DialogDescription as bt, DialogFooter as xt, DialogHeader as St, DialogOverlay as Ct, DialogPortal as wt, DialogTitle as Tt, DialogTrigger as Et } from "./dialog.js";
35
+ import { FileUpload as Dt } from "./file-upload.js";
36
+ import { HoverCard as Ot, HoverCardContent as kt, HoverCardTrigger as At } from "./hover-card.js";
37
+ import { IconButton as jt } from "./icon-button.js";
38
+ import { IconGroup as Mt } from "./icon-group.js";
39
+ import { SplitButton as Nt } from "./split-button.js";
40
+ import { Input as Pt, inputVariants as Ft } from "./input.js";
41
+ import { Label as It } from "./label.js";
42
+ import { Separator as Lt } from "./separator.js";
43
+ import { VisuallyHidden as Rt } from "./visually-hidden.js";
44
+ import { RadioGroup as zt, RadioGroupItem as Bt } from "./radio.js";
45
+ import { Switch as Vt } from "./switch.js";
46
+ import { Select as Ht, SelectContent as Ut, SelectGroup as Wt, SelectItem as Gt, SelectLabel as Kt, SelectScrollDownButton as qt, SelectScrollUpButton as Jt, SelectSeparator as Yt, SelectTrigger as Q, SelectValue as Xt, selectTriggerVariants as Zt } from "./select.js";
47
+ import { Textarea as Qt, textareaVariants as $t } from "./textarea.js";
48
+ import { NumberInput as en, numberInputWrapperVariants as tn } from "./number-input.js";
49
+ import { SearchInput as nn } from "./search-input.js";
50
+ import { InputOTP as rn, InputOTPGroup as an, InputOTPSeparator as on, InputOTPSlot as sn } from "./input-otp.js";
51
+ import { Slider as cn, sliderThumbVariants as ln, sliderTrackVariants as un } from "./slider.js";
52
+ import { Toggle as dn, toggleVariants as fn } from "./toggle.js";
53
+ import { ToggleGroup as pn, ToggleGroupItem as mn } from "./toggle-group.js";
54
+ import { Sheet as hn, SheetClose as gn, SheetContent as _n, SheetDescription as vn, SheetFooter as yn, SheetHeader as bn, SheetOverlay as xn, SheetPortal as Sn, SheetTitle as Cn, SheetTrigger as wn } from "./sheet.js";
55
+ import { Progress as Tn, progressIndicatorVariants as En, progressTrackVariants as Dn } from "./progress.js";
56
+ import { formatFileSize as On, toast as kn } from "./toast.js";
57
+ import { Toaster as An } from "./toaster.js";
58
+ import { Tooltip as jn, TooltipContent as Mn, TooltipProvider as Nn, TooltipTrigger as Pn } from "./tooltip.js";
59
+ import { StatCard as Fn } from "./stat-card.js";
60
+ import { StatusDot as In } from "./status-dot.js";
61
+ import { MultiProgressRing as Ln, ProgressRing as Rn } from "./progress-ring.js";
62
+ import { Tabs as zn, TabsContent as Bn, TabsList as Vn, TabsTrigger as Hn } from "./tabs.js";
63
+ import { Menubar as Un, MenubarCheckboxItem as Wn, MenubarContent as Gn, MenubarGroup as Kn, MenubarItem as qn, MenubarLabel as Jn, MenubarMenu as Yn, MenubarPortal as Xn, MenubarRadioGroup as Zn, MenubarRadioItem as Qn, MenubarSeparator as $n, MenubarShortcut as er, MenubarSub as tr, MenubarSubContent as nr, MenubarSubTrigger as rr, MenubarTrigger as ir } from "./menubar.js";
64
+ import { PaginationContent as ar, PaginationEllipsis as or, PaginationItem as sr, PaginationLink as cr, PaginationNav as lr, PaginationNext as ur, PaginationPrevious as dr, PaginationRoot as fr, generatePagination as pr } from "./pagination.js";
65
+ import { NavigationMenu as mr, NavigationMenuContent as hr, NavigationMenuIndicator as gr, NavigationMenuItem as _r, NavigationMenuLink as vr, NavigationMenuList as yr, NavigationMenuTrigger as br, NavigationMenuViewport as xr } from "./navigation-menu.js";
66
+ import { Sidebar as Sr, SidebarContent as Cr, SidebarFooter as wr, SidebarGroup as Tr, SidebarGroupAction as Er, SidebarGroupContent as Dr, SidebarGroupLabel as Or, SidebarHeader as kr, SidebarInput as Ar, SidebarInset as jr, SidebarMenu as Mr, SidebarMenuAction as Nr, SidebarMenuBadge as Pr, SidebarMenuButton as Fr, SidebarMenuItem as Ir, SidebarMenuSkeleton as Lr, SidebarMenuSub as Rr, SidebarMenuSubButton as zr, SidebarMenuSubItem as Br, SidebarProvider as Vr, SidebarRail as Hr, SidebarSeparator as Ur, SidebarTrigger as Wr, useSidebar as Gr } from "./sidebar.js";
67
+ import { Step as Kr, Stepper as qr } from "./stepper.js";
68
+ import { Text as Jr, textVariants as Yr } from "./text.js";
69
+ import { Stack as Xr } from "./stack.js";
70
+ import { n as Zr, r as Qr, t as $r } from "../_chunks/tree-view.js";
71
+ import { SegmentedControl as ei } from "./segmented-control.js";
72
+ import { a as ti, c as ni, i as ri, n as ii, o as ai, r as oi, s as si, t as ci } from "../_chunks/chat.js";
73
+ import { Link as li } from "./link.js";
74
+ import { formatRelativeTime as ui } from "./lib/date-utils.js";
75
+ //#region src/ui/lib/check-tokens.ts
76
+ var $ = !1;
77
+ function di() {
78
+ if (!$ && !(typeof window > "u")) {
79
+ try {
80
+ return;
81
+ } catch {}
82
+ $ = !0, requestAnimationFrame(() => {
83
+ getComputedStyle(document.documentElement).getPropertyValue("--color-accent-9").trim() || console.warn("[shilp-sutra] Design system tokens CSS not loaded. Add `import '@devalok/shilp-sutra/tokens'` to your root layout. Without it, components will render with missing colors, spacing, and typography.");
84
+ });
85
+ }
86
+ }
87
+ //#endregion
88
+ //#region src/ui/index.ts
89
+ di();
90
+ //#endregion
91
+ export { s as Accordion, c as AccordionContent, l as AccordionItem, u as AccordionTrigger, S as Alert, d as AlertDialog, f as AlertDialogAction, p as AlertDialogCancel, m as AlertDialogContent, h as AlertDialogDescription, g as AlertDialogFooter, _ as AlertDialogHeader, v as AlertDialogOverlay, y as AlertDialogPortal, b as AlertDialogTitle, x as AlertDialogTrigger, w as AspectRatio, O as Autocomplete, k as Avatar, A as AvatarFallback, j as AvatarImage, P as Badge, I as BadgeGroup, N as BadgeIndicator, L as Banner, z as Breadcrumb, B as BreadcrumbEllipsis, V as BreadcrumbItem, H as BreadcrumbLink, U as BreadcrumbList, W as BreadcrumbPage, G as BreadcrumbSeparator, J as Button, K as ButtonGroup, X as Card, Z as CardContent, re as CardDescription, ie as CardFooter, ae as CardHeader, oe as CardTitle, ce as Checkbox, le as Code, ue as Collapsible, de as CollapsibleContent, fe as CollapsibleTrigger, _e as ColorInput, ve as ColorSwatch, ye as Combobox, xe as Container, Se as ContextMenu, Ce as ContextMenuCheckboxItem, we as ContextMenuContent, Te as ContextMenuGroup, Ee as ContextMenuItem, De as ContextMenuLabel, Oe as ContextMenuPortal, ke as ContextMenuRadioGroup, Ae as ContextMenuRadioItem, je as ContextMenuSeparator, Me as ContextMenuShortcut, Ne as ContextMenuSub, Pe as ContextMenuSubContent, Fe as ContextMenuSubTrigger, Ie as ContextMenuTrigger, ri as DateSeparator, ht as DevalokGrain, gt as Dialog, _t as DialogClose, vt as DialogContent, yt as DialogContentRaw, bt as DialogDescription, xt as DialogFooter, St as DialogHeader, Ct as DialogOverlay, wt as DialogPortal, Tt as DialogTitle, Et as DialogTrigger, et as DropdownMenu, tt as DropdownMenuCheckboxItem, nt as DropdownMenuContent, rt as DropdownMenuGroup, it as DropdownMenuItem, at as DropdownMenuLabel, ot as DropdownMenuPortal, st as DropdownMenuRadioGroup, ct as DropdownMenuRadioItem, lt as DropdownMenuSeparator, ut as DropdownMenuShortcut, dt as DropdownMenuSub, ft as DropdownMenuSubContent, pt as DropdownMenuSubTrigger, mt as DropdownMenuTrigger, Dt as FileUpload, T as FormField, E as FormHelperText, Ot as HoverCard, kt as HoverCardContent, At as HoverCardTrigger, o as Icon, jt as IconButton, r as IconContext, Mt as IconGroup, i as IconProvider, Pt as Input, rn as InputOTP, an as InputOTPGroup, on as InputOTPSeparator, sn as InputOTPSlot, It as Label, li as Link, Un as Menubar, Wn as MenubarCheckboxItem, Gn as MenubarContent, Kn as MenubarGroup, qn as MenubarItem, Jn as MenubarLabel, Yn as MenubarMenu, Xn as MenubarPortal, Zn as MenubarRadioGroup, Qn as MenubarRadioItem, $n as MenubarSeparator, er as MenubarShortcut, tr as MenubarSub, nr as MenubarSubContent, rr as MenubarSubTrigger, ir as MenubarTrigger, ai as Message, ii as MessageInput, ni as MessageList, Ln as MultiProgressRing, mr as NavigationMenu, hr as NavigationMenuContent, gr as NavigationMenuIndicator, _r as NavigationMenuItem, vr as NavigationMenuLink, yr as NavigationMenuList, br as NavigationMenuTrigger, xr as NavigationMenuViewport, en as NumberInput, ar as PaginationContent, or as PaginationEllipsis, sr as PaginationItem, cr as PaginationLink, lr as PaginationNav, ur as PaginationNext, dr as PaginationPrevious, fr as PaginationRoot, ge as Popover, me as PopoverAnchor, he as PopoverContent, pe as PopoverTrigger, Tn as Progress, Rn as ProgressRing, zt as RadioGroup, Bt as RadioGroupItem, nn as SearchInput, ei as SegmentedControl, Ht as Select, Ut as SelectContent, Wt as SelectGroup, Gt as SelectItem, Kt as SelectLabel, qt as SelectScrollDownButton, Jt as SelectScrollUpButton, Yt as SelectSeparator, Q as SelectTrigger, Xt as SelectValue, Lt as Separator, hn as Sheet, gn as SheetClose, _n as SheetContent, vn as SheetDescription, yn as SheetFooter, bn as SheetHeader, xn as SheetOverlay, Sn as SheetPortal, Cn as SheetTitle, wn as SheetTrigger, Sr as Sidebar, Cr as SidebarContent, wr as SidebarFooter, Tr as SidebarGroup, Er as SidebarGroupAction, Dr as SidebarGroupContent, Or as SidebarGroupLabel, kr as SidebarHeader, Ar as SidebarInput, jr as SidebarInset, Mr as SidebarMenu, Nr as SidebarMenuAction, Pr as SidebarMenuBadge, Fr as SidebarMenuButton, Ir as SidebarMenuItem, Lr as SidebarMenuSkeleton, Rr as SidebarMenuSub, zr as SidebarMenuSubButton, Br as SidebarMenuSubItem, Vr as SidebarProvider, Hr as SidebarRail, Ur as SidebarSeparator, Wr as SidebarTrigger, Ge as Skeleton, Ke as SkeletonAvatar, qe as SkeletonButton, Je as SkeletonChart, Ye as SkeletonGroup, Xe as SkeletonImage, Ze as SkeletonInput, Qe as SkeletonText, cn as Slider, n as Spinner, Nt as SplitButton, Xr as Stack, Fn as StatCard, In as StatusDot, Kr as Step, qr as Stepper, Vt as Switch, ti as SystemMessage, Le as Table, Re as TableBody, ze as TableCaption, Be as TableCell, Ve as TableFooter, He as TableHead, Ue as TableHeader, We as TableRow, zn as Tabs, Bn as TabsContent, Vn as TabsList, Hn as TabsTrigger, Jr as Text, Qt as Textarea, An as Toaster, dn as Toggle, pn as ToggleGroup, mn as ToggleGroupItem, jn as Tooltip, Mn as TooltipContent, Nn as TooltipProvider, Pn as TooltipTrigger, Zr as TreeItem, $r as TreeView, ci as TypingIndicator, oi as UnreadSeparator, Rt as VisuallyHidden, C as alertVariants, M as avatarVariants, F as badgeVariants, R as bannerVariants, Y as buttonVariants, se as cardVariants, t as cn, be as comboboxTriggerVariants, On as formatFileSize, ui as formatRelativeTime, pr as generatePagination, Ft as inputVariants, tn as numberInputWrapperVariants, En as progressIndicatorVariants, Dn as progressTrackVariants, Zt as selectTriggerVariants, $e as skeletonVariants, ln as sliderThumbVariants, un as sliderTrackVariants, ee as springs, te as stagger, Yr as textVariants, $t as textareaVariants, kn as toast, fn as toggleVariants, ne as tweens, q as useButtonGroup, D as useFormField, a as useIconContext, si as useMessageContext, Gr as useSidebar, Qr as useTree, e as withReducedMotion };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/ui/lib/check-tokens.ts","../../src/ui/index.ts"],"sourcesContent":["/**\n * Dev-mode check for missing token CSS.\n *\n * If the consumer forgets `import '@devalok/shilp-sutra/tokens'`, all CSS\n * custom properties resolve to empty strings and components render with\n * transparent/broken backgrounds. This check detects that condition and\n * warns in the console.\n *\n * Only runs once, only in development, only in the browser.\n */\nlet checked = false\n\nexport function checkTokensLoaded(): void {\n if (checked) return\n if (typeof window === 'undefined') return\n\n // Skip in production — bundlers (Vite, Next.js, webpack) define import.meta.env or process.env\n try {\n // @ts-expect-error -- import.meta.env is Vite-specific, not in base TS lib\n if (import.meta.env?.PROD) return\n } catch { /* not in Vite */ }\n\n checked = true\n\n // Wait for stylesheets to load\n requestAnimationFrame(() => {\n const value = getComputedStyle(document.documentElement).getPropertyValue('--color-accent-9').trim()\n if (!value) {\n console.warn(\n '[shilp-sutra] Design system tokens CSS not loaded. ' +\n 'Add `import \\'@devalok/shilp-sutra/tokens\\'` to your root layout. ' +\n 'Without it, components will render with missing colors, spacing, and typography.'\n )\n }\n })\n}\n","/**\n * @module @devalok/shilp-sutra/ui\n *\n * Core UI primitives: buttons, inputs, dialogs, cards, tables, badges, navigation, and more.\n * Most components require client-side React (\"use client\").\n *\n * **Server-safe components** (import individually for Server Components):\n * `Text`, `Skeleton`, `Stack`, `Container`, `Table`, `Code`, `VisuallyHidden`\n *\n * @example\n * // Server Component — import individually:\n * import { Text } from '@devalok/shilp-sutra/ui/text'\n * import { Stack } from '@devalok/shilp-sutra/ui/stack'\n *\n * // Client Component — barrel import:\n * import { Button, Dialog } from '@devalok/shilp-sutra/ui'\n */\n\n// Dev-mode token presence check — runs once on first import\nimport { checkTokensLoaded } from './lib/check-tokens'\ncheckTokensLoaded()\n\n// Core\nexport { Icon, type IconProps } from './icon'\nexport { IconContext, IconProvider, useIconContext, type IconContextValue, type IconSize, type IconStroke } from './icon-context'\nexport { IconGroup, type IconGroupProps } from './icon-group'\nexport { Button, buttonVariants, type ButtonProps } from './button'\nexport { IconButton, type IconButtonProps } from './icon-button'\nexport { ButtonGroup, useButtonGroup, type ButtonGroupProps } from './button-group'\nexport { SplitButton, type SplitButtonProps } from './split-button'\nexport { Input, inputVariants, type InputProps, type InputState } from './input'\nexport { ColorInput, type ColorInputProps } from './color-input'\nexport { Label, type LabelProps } from './label'\nexport { Separator, type SeparatorProps } from './separator'\nexport { VisuallyHidden, type VisuallyHiddenProps } from './visually-hidden'\n\n// Autocomplete\nexport { Autocomplete, type AutocompleteProps, type AutocompleteOption } from './autocomplete'\n\n// Combobox\nexport { Combobox, comboboxTriggerVariants, type ComboboxProps, type ComboboxOption, type ComboboxSize } from './combobox'\n\n// FileUpload\nexport { FileUpload, type FileUploadProps } from './file-upload'\n\n// Form Controls\nexport { Checkbox, type CheckboxProps } from './checkbox'\nexport { RadioGroup, RadioGroupItem, type RadioGroupProps, type RadioGroupItemProps } from './radio'\nexport { Switch, type SwitchProps } from './switch'\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n SelectScrollUpButton,\n SelectScrollDownButton,\n type SelectTriggerProps,\n selectTriggerVariants,\n} from './select'\nexport { Textarea, textareaVariants, type TextareaProps } from './textarea'\nexport { NumberInput, numberInputWrapperVariants, type NumberInputProps, type NumberInputSize, type NumberInputState } from './number-input'\nexport { SearchInput, type SearchInputProps } from './search-input'\nexport { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator, type InputOTPProps } from './input-otp'\nexport { FormField, FormHelperText, useFormField, type FormFieldProps, type FormHelperState, type FormHelperTextProps } from './form'\nexport { Slider, sliderTrackVariants, sliderThumbVariants, type SliderProps, type SliderSize, type SliderColor } from './slider'\nexport { Toggle, toggleVariants, type ToggleProps } from './toggle'\nexport { ToggleGroup, ToggleGroupItem, type ToggleGroupProps, type ToggleGroupItemProps } from './toggle-group'\n\n// Feedback & Overlays\nexport {\n AlertDialog,\n AlertDialogPortal,\n AlertDialogOverlay,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogContentProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n} from './alert-dialog'\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogTrigger,\n DialogClose,\n DialogContent,\n DialogContentRaw,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n type DialogContentProps,\n type DialogTitleProps,\n} from './dialog'\nexport {\n Sheet,\n SheetPortal,\n SheetOverlay,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n type SheetContentProps,\n} from './sheet'\nexport {\n toast,\n formatFileSize,\n type ToastProps,\n type ToastOptions,\n type ToastType,\n type ToastActionOptions,\n type ToastUndoOptions,\n type ToastUploadOptions,\n type UploadFile,\n} from './toast'\nexport { Toaster, type ToasterProps } from './toaster'\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, type TooltipContentProps } from './tooltip'\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, type PopoverContentProps } from './popover'\nexport { HoverCard, HoverCardTrigger, HoverCardContent, type HoverCardContentProps } from './hover-card'\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent, type CollapsibleProps } from './collapsible'\n// ---------------------------------------------------------------------------\n// Notifications — pick the right one:\n// Alert — inline, static feedback within a form or page section (no user action needed to show)\n// Banner — persistent, page-level notice shown above main content (survives navigation)\n// Toast — imperative, transient, action-triggered (fires on user action, auto-dismisses)\n// Requires <Toaster /> mounted once at layout root. Use toast.success() etc. from anywhere.\n// ---------------------------------------------------------------------------\nexport { Alert, alertVariants, type AlertProps } from './alert'\nexport { Banner, bannerVariants, type BannerProps } from './banner'\nexport { Spinner, type SpinnerProps } from './spinner'\n\n// Data Display\nexport { Card, cardVariants, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, type CardProps } from './card'\nexport { Badge, badgeVariants, type BadgeProps } from './badge'\nexport { BadgeIndicator, type BadgeIndicatorProps } from './badge-indicator'\nexport { BadgeGroup, type BadgeGroupProps } from './badge-group'\nexport { Avatar, AvatarImage, AvatarFallback, avatarVariants, type AvatarProps, type AvatarFallbackProps, type AvatarStatus, type AvatarRing } from './avatar'\nexport { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, type TableProps, type TableRowProps, type TableCellProps } from './table'\nexport { Progress, progressTrackVariants, progressIndicatorVariants, type ProgressProps } from './progress'\nexport {\n Skeleton,\n skeletonVariants,\n type SkeletonProps,\n SkeletonAvatar,\n type SkeletonAvatarProps,\n SkeletonText,\n type SkeletonTextProps,\n SkeletonButton,\n type SkeletonButtonProps,\n SkeletonInput,\n type SkeletonInputProps,\n SkeletonChart,\n type SkeletonChartProps,\n SkeletonImage,\n type SkeletonImageProps,\n SkeletonGroup,\n type SkeletonGroupProps,\n} from './skeleton'\nexport { StatCard, type StatCardProps } from './stat-card'\nexport { ColorSwatch, type ColorSwatchProps } from './color-swatch'\nexport { StatusDot, type StatusDotProps, type StatusDotStatus } from './status-dot'\nexport { ProgressRing, MultiProgressRing, type ProgressRingProps, type MultiProgressRingProps } from './progress-ring'\nexport { Code, type CodeProps } from './code'\nexport { AspectRatio } from './aspect-ratio'\n\n// Navigation\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent, type AccordionItemProps, type AccordionTriggerProps, type AccordionContentProps } from './accordion'\nexport { Tabs, TabsList, TabsTrigger, TabsContent, type TabsProps, type TabsListProps, type TabsTriggerProps, type TabsContentProps, type TabsSize, type TabsColor, type TabsOrientation } from './tabs'\nexport {\n Breadcrumb,\n BreadcrumbList,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbPage,\n BreadcrumbSeparator,\n BreadcrumbEllipsis,\n type BreadcrumbProps,\n type BreadcrumbLinkProps,\n} from './breadcrumb'\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n type DropdownMenuContentProps,\n type DropdownMenuItemProps,\n} from './dropdown-menu'\nexport {\n ContextMenu,\n ContextMenuTrigger,\n ContextMenuContent,\n ContextMenuItem,\n ContextMenuCheckboxItem,\n ContextMenuRadioItem,\n ContextMenuLabel,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuGroup,\n ContextMenuPortal,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuRadioGroup,\n type ContextMenuContentProps,\n type ContextMenuItemProps,\n} from './context-menu'\nexport {\n Menubar,\n MenubarMenu,\n MenubarTrigger,\n MenubarContent,\n MenubarItem,\n MenubarSeparator,\n MenubarLabel,\n MenubarCheckboxItem,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarPortal,\n MenubarGroup,\n MenubarSub,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarShortcut,\n type MenubarContentProps,\n type MenubarItemProps,\n} from './menubar'\nexport {\n PaginationRoot,\n PaginationContent,\n PaginationItem,\n PaginationLink,\n PaginationPrevious,\n PaginationNext,\n PaginationEllipsis,\n PaginationNav,\n generatePagination,\n type PaginationLinkProps,\n type PaginationNavProps,\n} from './pagination'\nexport {\n NavigationMenu,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuContent,\n NavigationMenuTrigger,\n NavigationMenuLink,\n NavigationMenuIndicator,\n NavigationMenuViewport,\n type NavigationMenuProps,\n type NavigationMenuContentProps,\n} from './navigation-menu'\nexport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupAction,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarInput,\n SidebarInset,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSkeleton,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarProvider,\n SidebarRail,\n SidebarSeparator,\n SidebarTrigger,\n useSidebar,\n type SidebarProps,\n} from './sidebar'\n\n// Workflow\nexport { Stepper, Step, type StepperProps, type StepProps } from './stepper'\n\n\n// Typography\nexport { Text, textVariants, type TextProps, type TextVariant } from './text'\n\n// Layout\nexport { Stack, type StackProps, type SpacingToken } from './stack'\nexport { Container, type ContainerProps } from './container'\n\n// Tree View\nexport { TreeView, type TreeViewProps, TreeItem, type TreeItemProps, useTree, type TreeNode } from './tree-view'\n\n// Segmented Control\nexport {\n SegmentedControl,\n type SegmentedControlSize,\n type SegmentedControlVariant,\n type SegmentedControlOption,\n type SegmentedControlProps,\n} from './segmented-control'\n\n// Brand Texture\nexport { DevalokGrain, type DevalokGrainProps, type GrainIntensity } from './devalok-grain'\n\n// Chat primitives\nexport {\n MessageList,\n type MessageListProps,\n Message,\n useMessageContext,\n type MessageProps,\n type MessageContextValue,\n type MessageAvatarProps,\n type MessageContentProps,\n type MessageAuthorProps,\n type MessageBodyProps,\n type MessageEditableBodyProps,\n type MessageReactionsProps,\n type MessageActionsProps,\n type MessageActionProps,\n SystemMessage,\n type SystemMessageProps,\n DateSeparator,\n type DateSeparatorProps,\n UnreadSeparator,\n type UnreadSeparatorProps,\n MessageInput,\n type MessageInputProps,\n TypingIndicator,\n type TypingIndicatorProps,\n} from './chat'\n\n// Other\nexport { Link, type LinkProps } from './link'\n\n// Utilities\nexport { cn } from './lib/utils'\nexport { formatRelativeTime } from './lib/date-utils'\nexport { springs, tweens, stagger, withReducedMotion } from './lib/motion'\nexport type { SpringPreset, TweenPreset } from './lib/motion'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAI,IAAU;AAEd,SAAgB,KAA0B;AACpC,WACA,SAAO,SAAW,MAGtB;MAAI;AAEyB;UACrB;AAKR,EAHA,IAAU,IAGV,4BAA4B;AAE1B,GADc,iBAAiB,SAAS,gBAAgB,CAAC,iBAAiB,mBAAmB,CAAC,MAAM,IAElG,QAAQ,KACN,sMAGD;IAEH;;;;;ACdJ,IAAmB"}
@@ -1,7 +1,8 @@
1
1
  "use client";
2
2
  import { OTPInput } from 'input-otp';
3
3
  import * as React from 'react';
4
- declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
4
+ type InputOTPSize = 'sm' | 'md' | 'lg';
5
+ declare const InputOTP: React.ForwardRefExoticComponent<((Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
5
6
  value?: string;
6
7
  onChange?: (newValue: string) => unknown;
7
8
  maxLength: number;
@@ -27,12 +28,20 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
27
28
  } & {
28
29
  render?: never;
29
30
  children: React.ReactNode;
30
- } & React.RefAttributes<HTMLInputElement>, "ref">) & React.RefAttributes<HTMLInputElement>>;
31
+ } & React.RefAttributes<HTMLInputElement>, "ref">) & {
32
+ state?: "default" | "error";
33
+ /** Slot size. @default 'md' */
34
+ size?: InputOTPSize;
35
+ }) & React.RefAttributes<HTMLInputElement>>;
31
36
  declare const InputOTPGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
32
37
  declare const InputOTPSlot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
33
38
  index: number;
34
39
  } & React.RefAttributes<HTMLDivElement>>;
35
40
  declare const InputOTPSeparator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
36
- export type InputOTPProps = React.ComponentPropsWithoutRef<typeof OTPInput>;
41
+ export type InputOTPProps = React.ComponentPropsWithoutRef<typeof OTPInput> & {
42
+ state?: 'default' | 'error';
43
+ /** Slot size. @default 'md' */
44
+ size?: InputOTPSize;
45
+ };
37
46
  export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
38
47
  //# sourceMappingURL=input-otp.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-otp.d.ts","sourceRoot":"","sources":["../../src/ui/input-otp.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAmB,MAAM,WAAW,CAAA;AAMrD,QAAA,MAAM,QAAQ;;;;;kBAUV,GAAD;;;;;;;;;;;;;kBAAC,GAAD;;;;;;;;2FAGD,CAAA;AAGF,QAAA,MAAM,aAAa,mKAKjB,CAAA;AAGF,QAAA,MAAM,YAAY;WAEiC,MAAM;wCAuBvD,CAAA;AAGF,QAAA,MAAM,iBAAiB,mKAOrB,CAAA;AAGF,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,QAAQ,CAAC,CAAA;AAE3E,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAA"}
1
+ {"version":3,"file":"input-otp.d.ts","sourceRoot":"","sources":["../../src/ui/input-otp.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAmB,MAAM,WAAW,CAAA;AASrD,KAAK,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAYtC,QAAA,MAAM,QAAQ;;;;;kBANmB,GAAE;;;;;;;;;;;;;kBAAF,GAAE;;;;;;;;;YASvB,SAAS,GAAG,OAAO;IAC3B,+BAA+B;WACxB,YAAY;2CAwBrB,CAAA;AAGF,QAAA,MAAM,aAAa,mKAKjB,CAAA;AAGF,QAAA,MAAM,YAAY;WAEiC,MAAM;wCA0BvD,CAAA;AAGF,QAAA,MAAM,iBAAiB,mKAOrB,CAAA;AAGF,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,QAAQ,CAAC,GAAG;IAC5E,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC3B,+BAA+B;IAC/B,IAAI,CAAC,EAAE,YAAY,CAAA;CACpB,CAAA;AAED,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAA"}
@@ -1,46 +1,60 @@
1
1
  "use client";
2
2
  import { cn as e } from "./lib/utils.js";
3
3
  import { Icon as t } from "./icon.js";
4
- import * as n from "react";
5
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
6
- import { IconMinus as a } from "@tabler/icons-react";
7
- import { OTPInput as o, OTPInputContext as s } from "input-otp";
4
+ import { useFormField as n } from "./form.js";
5
+ import * as r from "react";
6
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
+ import { IconMinus as o } from "@tabler/icons-react";
8
+ import { OTPInput as s, OTPInputContext as c } from "input-otp";
8
9
  //#region src/ui/input-otp.tsx
9
- var c = n.forwardRef(({ className: t, containerClassName: n, ...i }, a) => /* @__PURE__ */ r(o, {
10
- ref: a,
11
- containerClassName: e("flex items-center gap-ds-03 has-[:disabled]:opacity-action-disabled", n),
12
- className: e("disabled:cursor-not-allowed", t),
13
- ...i
14
- }));
15
- c.displayName = "InputOTP";
16
- var l = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r("div", {
17
- ref: i,
10
+ var l = r.createContext("md"), u = {
11
+ sm: "h-ds-sm w-ds-sm text-ds-sm",
12
+ md: "h-ds-sm-plus w-ds-sm-plus text-ds-md",
13
+ lg: "h-ds-md w-ds-md text-ds-lg"
14
+ }, d = r.forwardRef(({ className: t, containerClassName: r, state: a, size: o, ...c }, u) => {
15
+ let d = n(), f = a === "error" || d?.state === "error", p = (typeof o == "string" ? o : void 0) ?? "md";
16
+ return /* @__PURE__ */ i(l.Provider, {
17
+ value: p,
18
+ children: /* @__PURE__ */ i(s, {
19
+ ref: u,
20
+ "aria-invalid": f || void 0,
21
+ "aria-describedby": d?.helperTextId,
22
+ "aria-required": d?.required || void 0,
23
+ containerClassName: e("group/otp flex items-center gap-ds-03 has-[:disabled]:opacity-action-disabled", f && "is-error", r),
24
+ className: e("disabled:cursor-not-allowed", t),
25
+ ...c
26
+ })
27
+ });
28
+ });
29
+ d.displayName = "InputOTP";
30
+ var f = r.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ i("div", {
31
+ ref: r,
18
32
  className: e("flex items-center", t),
19
33
  ...n
20
34
  }));
21
- l.displayName = "InputOTPGroup";
22
- var u = n.forwardRef(({ index: t, className: a, ...o }, c) => {
23
- let { char: l, hasFakeCaret: u, isActive: d } = n.useContext(s).slots[t];
24
- return /* @__PURE__ */ i("div", {
25
- ref: c,
26
- className: e("relative flex h-ds-sm-plus w-ds-sm-plus items-center justify-center border-y border-r border-surface-border-strong text-ds-md shadow-raised transition-[box-shadow] first:rounded-l-ds-md first:border-l last:rounded-r-ds-md", d && "z-raised ring-2 ring-accent-9", a),
35
+ f.displayName = "InputOTPGroup";
36
+ var p = r.forwardRef(({ index: t, className: n, ...o }, s) => {
37
+ let d = r.useContext(c), f = r.useContext(l), { char: p, hasFakeCaret: m, isActive: h } = d.slots[t];
38
+ return /* @__PURE__ */ a("div", {
39
+ ref: s,
40
+ className: e("relative flex items-center justify-center border-y border-r border-surface-border-strong shadow-raised transition-[box-shadow,border-color] first:rounded-l-ds-md first:border-l last:rounded-r-ds-md", u[f], "group-[.is-error]/otp:border-error-7", h && "z-raised ring-2 ring-accent-9", n),
27
41
  ...o,
28
- children: [l, u && /* @__PURE__ */ r("div", {
42
+ children: [p, m && /* @__PURE__ */ i("div", {
29
43
  className: "pointer-events-none absolute inset-0 flex items-center justify-center",
30
- children: /* @__PURE__ */ r("div", { className: "animate-caret-blink h-[16px] w-px bg-surface-fg duration-slow-02" })
44
+ children: /* @__PURE__ */ i("div", { className: "animate-caret-blink h-[16px] w-px bg-surface-fg duration-slow-02" })
31
45
  })]
32
46
  });
33
47
  });
34
- u.displayName = "InputOTPSlot";
35
- var d = n.forwardRef(({ ...e }, n) => /* @__PURE__ */ r("div", {
48
+ p.displayName = "InputOTPSlot";
49
+ var m = r.forwardRef(({ ...e }, n) => /* @__PURE__ */ i("div", {
36
50
  ref: n,
37
51
  role: "separator",
38
52
  ...e,
39
- children: /* @__PURE__ */ r(t, {
40
- icon: a,
53
+ children: /* @__PURE__ */ i(t, {
54
+ icon: o,
41
55
  size: "sm"
42
56
  })
43
57
  }));
44
- d.displayName = "InputOTPSeparator";
58
+ m.displayName = "InputOTPSeparator";
45
59
  //#endregion
46
- export { c as InputOTP, l as InputOTPGroup, d as InputOTPSeparator, u as InputOTPSlot };
60
+ export { d as InputOTP, f as InputOTPGroup, m as InputOTPSeparator, p as InputOTPSlot };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-otp.js","names":[],"sources":["../../src/ui/input-otp.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\nimport { OTPInput, OTPInputContext } from 'input-otp'\nimport { IconMinus } from '@tabler/icons-react'\n\nimport { cn } from './lib/utils'\nimport { Icon } from './icon'\nimport { useFormField } from './form'\n\n// ── Size context ────────────────────────────────────────────────────\n\ntype InputOTPSize = 'sm' | 'md' | 'lg'\n\nconst InputOTPSizeContext = React.createContext<InputOTPSize>('md')\n\nconst slotSizeClasses: Record<InputOTPSize, string> = {\n sm: 'h-ds-sm w-ds-sm text-ds-sm',\n md: 'h-ds-sm-plus w-ds-sm-plus text-ds-md',\n lg: 'h-ds-md w-ds-md text-ds-lg',\n}\n\n// ── InputOTP ────────────────────────────────────────────────────────\n\nconst InputOTP = React.forwardRef<\n React.ElementRef<typeof OTPInput>,\n React.ComponentPropsWithoutRef<typeof OTPInput> & {\n state?: 'default' | 'error'\n /** Slot size. @default 'md' */\n size?: InputOTPSize\n }\n>(({ className, containerClassName, state, size: sizeProp, ...props }, ref) => {\n const formField = useFormField()\n const isError = state === 'error' || formField?.state === 'error'\n const size: InputOTPSize = (typeof sizeProp === 'string' ? sizeProp : undefined) ?? 'md'\n\n return (\n <InputOTPSizeContext.Provider value={size}>\n <OTPInput\n ref={ref}\n aria-invalid={isError || undefined}\n aria-describedby={formField?.helperTextId}\n aria-required={formField?.required || undefined}\n containerClassName={cn(\n 'group/otp flex items-center gap-ds-03 has-[:disabled]:opacity-action-disabled',\n isError && 'is-error',\n containerClassName,\n )}\n className={cn('disabled:cursor-not-allowed', className)}\n {...props}\n />\n </InputOTPSizeContext.Provider>\n )\n})\nInputOTP.displayName = 'InputOTP'\n\nconst InputOTPGroup = React.forwardRef<\n React.ElementRef<'div'>,\n React.ComponentPropsWithoutRef<'div'>\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn('flex items-center', className)} {...props} />\n))\nInputOTPGroup.displayName = 'InputOTPGroup'\n\nconst InputOTPSlot = React.forwardRef<\n React.ElementRef<'div'>,\n React.ComponentPropsWithoutRef<'div'> & { index: number }\n>(({ index, className, ...props }, ref) => {\n const inputOTPContext = React.useContext(OTPInputContext)\n const size = React.useContext(InputOTPSizeContext)\n const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index]\n\n return (\n <div\n ref={ref}\n className={cn(\n 'relative flex items-center justify-center border-y border-r border-surface-border-strong shadow-raised transition-[box-shadow,border-color] first:rounded-l-ds-md first:border-l last:rounded-r-ds-md',\n slotSizeClasses[size],\n 'group-[.is-error]/otp:border-error-7',\n isActive && 'z-raised ring-2 ring-accent-9',\n className,\n )}\n {...props}\n >\n {char}\n {hasFakeCaret && (\n <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n <div className=\"animate-caret-blink h-[16px] w-px bg-surface-fg duration-slow-02\" />\n </div>\n )}\n </div>\n )\n})\nInputOTPSlot.displayName = 'InputOTPSlot'\n\nconst InputOTPSeparator = React.forwardRef<\n React.ElementRef<'div'>,\n React.ComponentPropsWithoutRef<'div'>\n>(({ ...props }, ref) => (\n <div ref={ref} role=\"separator\" {...props}>\n <Icon icon={IconMinus} size=\"sm\" />\n </div>\n))\nInputOTPSeparator.displayName = 'InputOTPSeparator'\n\nexport type InputOTPProps = React.ComponentPropsWithoutRef<typeof OTPInput> & {\n state?: 'default' | 'error'\n /** Slot size. @default 'md' */\n size?: InputOTPSize\n}\n\nexport { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator }\n"],"mappings":";;;;;;;;;AAcA,IAAM,IAAsB,EAAM,cAA4B,KAAK,EAE7D,IAAgD;CACpD,IAAI;CACJ,IAAI;CACJ,IAAI;CACL,EAIK,IAAW,EAAM,YAOpB,EAAE,cAAW,uBAAoB,UAAO,MAAM,GAAU,GAAG,KAAS,MAAQ;CAC7E,IAAM,IAAY,GAAc,EAC1B,IAAU,MAAU,WAAW,GAAW,UAAU,SACpD,KAAsB,OAAO,KAAa,WAAW,IAAW,KAAA,MAAc;AAEpF,QACE,kBAAC,EAAoB,UAArB;EAA8B,OAAO;YACnC,kBAAC,GAAD;GACO;GACL,gBAAc,KAAW,KAAA;GACzB,oBAAkB,GAAW;GAC7B,iBAAe,GAAW,YAAY,KAAA;GACtC,oBAAoB,EAClB,iFACA,KAAW,YACX,EACD;GACD,WAAW,EAAG,+BAA+B,EAAU;GACvD,GAAI;GACJ,CAAA;EAC2B,CAAA;EAEjC;AACF,EAAS,cAAc;AAEvB,IAAM,IAAgB,EAAM,YAGzB,EAAE,cAAW,GAAG,KAAS,MAC1B,kBAAC,OAAD;CAAU;CAAK,WAAW,EAAG,qBAAqB,EAAU;CAAE,GAAI;CAAS,CAAA,CAC3E;AACF,EAAc,cAAc;AAE5B,IAAM,IAAe,EAAM,YAGxB,EAAE,UAAO,cAAW,GAAG,KAAS,MAAQ;CACzC,IAAM,IAAkB,EAAM,WAAW,EAAgB,EACnD,IAAO,EAAM,WAAW,EAAoB,EAC5C,EAAE,SAAM,iBAAc,gBAAa,EAAgB,MAAM;AAE/D,QACE,kBAAC,OAAD;EACO;EACL,WAAW,EACT,yMACA,EAAgB,IAChB,wCACA,KAAY,iCACZ,EACD;EACD,GAAI;YATN,CAWG,GACA,KACC,kBAAC,OAAD;GAAK,WAAU;aACb,kBAAC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B;AAED,QAAA,MAAM,KAAK,qFA+JV,CAAA;AAGD,gGAAgG;AAChG,QAAA,MAAM,aAAa;;8EAAuB,CAAA;AAE1C,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,CAAA"}
package/dist/ui/input.js CHANGED
@@ -9,7 +9,7 @@ import { jsx as a, jsxs as o } from "react/jsx-runtime";
9
9
  var s = e([
10
10
  "relative flex items-center w-full font-sans",
11
11
  "bg-surface-raised-hover text-surface-fg",
12
- "border border-surface-border rounded-ds-md",
12
+ "border border-surface-border-strong rounded-ds-md",
13
13
  "hover:bg-surface-raised-active",
14
14
  "transition-[color,background-color,border-color,box-shadow] duration-fast-02 ease-productive-standard",
15
15
  "focus-within:outline-hidden focus-within:ring-2 focus-within:ring-accent-9 focus-within:ring-offset-2 focus-within:border-surface-border",
@@ -34,12 +34,12 @@ var s = e([
34
34
  md: "md",
35
35
  lg: "lg"
36
36
  }, u = i.forwardRef(({ className: e, type: i, state: u, size: d = "md", startSection: f, endSection: p, startSectionClickable: m, endSectionClickable: h, startSectionType: g, endSectionType: _, startIcon: v, endIcon: y, wrapperClassName: b, ...x }, S) => {
37
- let C = d ?? "md", w = r(), T = u ?? (w.state === "helper" ? void 0 : w.state), E = x["aria-describedby"] ?? w.helperTextId, D = x["aria-required"] ?? w.required, O = f ?? v, k = p ?? y, A = !!O, j = !!k, M = g ?? (typeof O == "string" ? "label" : "icon"), N = _ ?? (typeof k == "string" ? "label" : "icon"), P = {
37
+ let C = d ?? "md", w = r(), T = u ?? (w.state === "helper" ? void 0 : w.state), E = x["aria-describedby"] ?? w.helperTextId, D = x["aria-required"] ?? w.required, O = x.id ?? w.inputId, k = f ?? v, A = p ?? y, j = !!k, M = !!A, N = g ?? (typeof k == "string" ? "label" : "icon"), P = _ ?? (typeof A == "string" ? "label" : "icon"), F = {
38
38
  xs: "px-ds-02",
39
39
  sm: "px-ds-02",
40
40
  md: "px-ds-03",
41
41
  lg: "px-ds-03"
42
- }, F = {
42
+ }, I = {
43
43
  xs: "text-ds-sm",
44
44
  sm: "text-ds-sm",
45
45
  md: "text-ds-sm",
@@ -48,15 +48,15 @@ var s = e([
48
48
  return /* @__PURE__ */ o("div", {
49
49
  className: t(s({ size: C }), T === "error" && "border-error-7 focus-within:ring-error-7", T === "warning" && "border-warning-7 focus-within:ring-warning-7", T === "success" && "border-success-7 focus-within:ring-success-7", b),
50
50
  children: [
51
- A && M === "label" && /* @__PURE__ */ a("span", {
52
- className: t("flex items-center shrink-0 select-none self-stretch", "border-r border-surface-border", "bg-surface-raised text-surface-fg-muted", "rounded-l-[inherit]", P[C], F[C], !m && "pointer-events-none"),
53
- children: O
51
+ j && N === "label" && /* @__PURE__ */ a("span", {
52
+ className: t("flex items-center shrink-0 select-none self-stretch", "border-r border-surface-border", "bg-surface-raised text-surface-fg-muted", "rounded-l-[inherit]", F[C], I[C], !m && "pointer-events-none"),
53
+ children: k
54
54
  }),
55
- A && M === "icon" && /* @__PURE__ */ a(n, {
55
+ j && N === "icon" && /* @__PURE__ */ a(n, {
56
56
  size: l[C],
57
57
  children: /* @__PURE__ */ a("span", {
58
58
  className: t("flex items-center justify-center shrink-0 self-stretch text-surface-fg-muted", c[C], !m && "pointer-events-none"),
59
- children: O
59
+ children: k
60
60
  })
61
61
  }),
62
62
  /* @__PURE__ */ a("input", {
@@ -66,22 +66,23 @@ var s = e([
66
66
  sm: "px-ds-03",
67
67
  md: "px-ds-03",
68
68
  lg: "px-ds-04"
69
- }[C], A && M === "icon" && "pl-0", j && N === "icon" && "pr-0", e),
69
+ }[C], j && N === "icon" && "pl-0", M && P === "icon" && "pr-0", e),
70
70
  "aria-invalid": T === "error" || void 0,
71
71
  "aria-describedby": E,
72
72
  "aria-required": D || void 0,
73
73
  ref: S,
74
- ...x
74
+ ...x,
75
+ id: O
75
76
  }),
76
- j && N === "label" && /* @__PURE__ */ a("span", {
77
- className: t("flex items-center shrink-0 select-none self-stretch", "border-l border-surface-border", "bg-surface-raised text-surface-fg-muted", "rounded-r-[inherit]", P[C], F[C], !h && "pointer-events-none"),
78
- children: k
77
+ M && P === "label" && /* @__PURE__ */ a("span", {
78
+ className: t("flex items-center shrink-0 select-none self-stretch", "border-l border-surface-border", "bg-surface-raised text-surface-fg-muted", "rounded-r-[inherit]", F[C], I[C], !h && "pointer-events-none"),
79
+ children: A
79
80
  }),
80
- j && N === "icon" && /* @__PURE__ */ a(n, {
81
+ M && P === "icon" && /* @__PURE__ */ a(n, {
81
82
  size: l[C],
82
83
  children: /* @__PURE__ */ a("span", {
83
84
  className: t("flex items-center justify-center shrink-0 self-stretch text-surface-fg-muted", c[C], !h && "pointer-events-none"),
84
- children: k
85
+ children: A
85
86
  })
86
87
  })
87
88
  ]
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.js","names":[],"sources":["../../src/ui/input.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport { cn } from './lib/utils'\nimport { useFormField } from './form'\nimport { IconProvider, type IconSize } from './icon-context'\n\nexport type InputState = 'default' | 'error' | 'warning' | 'success'\n\nconst inputWrapperVariants = cva(\n [\n 'relative flex items-center w-full font-sans',\n 'bg-surface-raised-hover text-surface-fg',\n 'border border-surface-border-strong rounded-ds-md',\n 'hover:bg-surface-raised-active',\n 'transition-[color,background-color,border-color,box-shadow] duration-fast-02 ease-productive-standard',\n 'focus-within:outline-hidden focus-within:ring-2 focus-within:ring-accent-9 focus-within:ring-offset-2 focus-within:border-surface-border',\n 'has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-action-disabled',\n 'has-[:read-only]:bg-surface-raised has-[:read-only]:cursor-default',\n ],\n {\n variants: {\n size: {\n xs: 'h-ds-xs-plus text-ds-sm',\n sm: 'h-ds-sm text-ds-sm',\n md: 'h-ds-md text-ds-md',\n lg: 'h-ds-lg rounded-ds-lg text-ds-md',\n },\n },\n defaultVariants: { size: 'md' },\n },\n)\n\nconst sectionWidthMap: Record<string, string> = {\n xs: 'w-[26px]',\n sm: 'w-[30px]',\n md: 'w-[38px]',\n lg: 'w-[46px]',\n}\n\nconst iconSizeMap: Record<string, IconSize> = {\n xs: 'xs',\n sm: 'sm',\n md: 'md',\n lg: 'lg',\n}\n\n/**\n * Props for Input — a single-line text field with container-first architecture,\n * section-based icons with automatic padding, per-size scaling, and validation state coloring.\n *\n * **Sizes:** `xs` (28px) | `sm` (32px) | `md` (40px, default) | `lg` (48px)\n * HTML's native `size` attribute is excluded — use CSS width instead.\n *\n * **Validation states:** `state=\"error\"` colors the border red and sets `aria-invalid`.\n * Use with `<FormField>` to show helper text below the input.\n *\n * **Section-based icons:** `startSection` and `endSection` accept any React node.\n * Icons are auto-sized via `IconProvider`. Sections are `pointer-events-none` by default;\n * use `startSectionClickable`/`endSectionClickable` for interactive sections.\n *\n * **className** targets the `<input>` element (backward compatible).\n * **wrapperClassName** targets the wrapper div for border/bg/ring overrides.\n *\n * @example\n * // Basic email field with placeholder:\n * <Input type=\"email\" placeholder=\"you@example.com\" />\n *\n * @example\n * // Search input with a leading icon:\n * <Input size=\"md\" startSection={<IconSearch />} placeholder=\"Search projects...\" />\n *\n * @example\n * // Validated error state (pair with FormField for label + helper text):\n * <Input state=\"error\" value={email} onChange={handleChange} />\n *\n * @example\n * // Read-only field (shows a muted background, non-editable):\n * <Input readOnly value=\"https://devalok.com/api/key/abc123\" endSection={<IconCopy />} />\n */\nexport interface InputProps\n extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>,\n VariantProps<typeof inputWrapperVariants> {\n state?: InputState\n startSection?: React.ReactNode\n endSection?: React.ReactNode\n startSectionClickable?: boolean\n endSectionClickable?: boolean\n /** Section display type. `'icon'` = fixed-width centered cell (default for ReactElements).\n * `'label'` = tinted background with border separator (default for strings). */\n startSectionType?: 'icon' | 'label'\n /** Section display type. `'icon'` = fixed-width centered cell (default for ReactElements).\n * `'label'` = tinted background with border separator (default for strings). */\n endSectionType?: 'icon' | 'label'\n /** Classes for the wrapper div (border, bg, ring). */\n wrapperClassName?: string\n /** @deprecated Use startSection */\n startIcon?: React.ReactNode\n /** @deprecated Use endSection */\n endIcon?: React.ReactNode\n}\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n (\n {\n className,\n type,\n state: stateProp,\n size: sizeProp = 'md',\n startSection,\n endSection,\n startSectionClickable,\n endSectionClickable,\n startSectionType: startSectionTypeProp,\n endSectionType: endSectionTypeProp,\n startIcon,\n endIcon,\n wrapperClassName,\n ...props\n },\n ref,\n ) => {\n const size = sizeProp ?? 'md'\n const fieldCtx = useFormField()\n // Merge FormField context — explicit props always win\n const state =\n stateProp ??\n (fieldCtx.state === 'helper'\n ? undefined\n : (fieldCtx.state as InputState | undefined))\n const ariaDescribedBy = props['aria-describedby'] ?? fieldCtx.helperTextId\n const ariaRequired = props['aria-required'] ?? fieldCtx.required\n // Explicit id wins; otherwise adopt FormField's inputId so <Label htmlFor> resolves.\n const inputId = props.id ?? fieldCtx.inputId\n\n // Backward compat: map deprecated props\n const resolvedStart = startSection ?? startIcon\n const resolvedEnd = endSection ?? endIcon\n\n const hasStart = !!resolvedStart\n const hasEnd = !!resolvedEnd\n\n // Infer section type: string → label, ReactElement → icon\n const startType = startSectionTypeProp ?? (typeof resolvedStart === 'string' ? 'label' : 'icon')\n const endType = endSectionTypeProp ?? (typeof resolvedEnd === 'string' ? 'label' : 'icon')\n\n const labelPaddingMap: Record<string, string> = {\n xs: 'px-ds-02',\n sm: 'px-ds-02',\n md: 'px-ds-03',\n lg: 'px-ds-03',\n }\n\n const labelTextMap: Record<string, string> = {\n xs: 'text-ds-sm',\n sm: 'text-ds-sm',\n md: 'text-ds-sm',\n lg: 'text-ds-md',\n }\n\n const inputPadding: Record<string, string> = {\n xs: 'px-ds-02',\n sm: 'px-ds-03',\n md: 'px-ds-03',\n lg: 'px-ds-04',\n }\n\n return (\n <div\n className={cn(\n inputWrapperVariants({ size }),\n state === 'error' && 'border-error-7 focus-within:ring-error-7',\n state === 'warning' && 'border-warning-7 focus-within:ring-warning-7',\n state === 'success' && 'border-success-7 focus-within:ring-success-7',\n wrapperClassName,\n )}\n >\n {hasStart && startType === 'label' && (\n <span\n className={cn(\n 'flex items-center shrink-0 select-none self-stretch',\n 'border-r border-surface-border',\n 'bg-surface-raised text-surface-fg-muted',\n 'rounded-l-[inherit]',\n labelPaddingMap[size],\n labelTextMap[size],\n !startSectionClickable && 'pointer-events-none',\n )}\n >\n {resolvedStart}\n </span>\n )}\n\n {hasStart && startType === 'icon' && (\n <IconProvider size={iconSizeMap[size]}>\n <span\n className={cn(\n 'flex items-center justify-center shrink-0 self-stretch text-surface-fg-muted',\n sectionWidthMap[size],\n !startSectionClickable && 'pointer-events-none',\n )}\n >\n {resolvedStart}\n </span>\n </IconProvider>\n )}\n\n <input\n type={type}\n className={cn(\n 'flex-1 min-w-0 h-full bg-transparent outline-hidden font-sans',\n 'placeholder:text-surface-fg-subtle',\n 'disabled:cursor-not-allowed',\n 'read-only:cursor-default',\n inputPadding[size],\n // Remove left padding when start icon section is present (icon provides visual space)\n hasStart && startType === 'icon' && 'pl-0',\n // Remove right padding when end icon section is present\n hasEnd && endType === 'icon' && 'pr-0',\n className,\n )}\n aria-invalid={state === 'error' || undefined}\n aria-describedby={ariaDescribedBy}\n aria-required={ariaRequired || undefined}\n ref={ref}\n {...props}\n id={inputId}\n />\n\n {hasEnd && endType === 'label' && (\n <span\n className={cn(\n 'flex items-center shrink-0 select-none self-stretch',\n 'border-l border-surface-border',\n 'bg-surface-raised text-surface-fg-muted',\n 'rounded-r-[inherit]',\n labelPaddingMap[size],\n labelTextMap[size],\n !endSectionClickable && 'pointer-events-none',\n )}\n >\n {resolvedEnd}\n </span>\n )}\n\n {hasEnd && endType === 'icon' && (\n <IconProvider size={iconSizeMap[size]}>\n <span\n className={cn(\n 'flex items-center justify-center shrink-0 self-stretch text-surface-fg-muted',\n sectionWidthMap[size],\n !endSectionClickable && 'pointer-events-none',\n )}\n >\n {resolvedEnd}\n </span>\n </IconProvider>\n )}\n </div>\n )\n },\n)\nInput.displayName = 'Input'\n\n/** @deprecated Use inputWrapperVariants — semantics changed (now targets wrapper, not input) */\nconst inputVariants = inputWrapperVariants\n\nexport { Input, inputVariants, inputWrapperVariants }\n"],"mappings":";;;;;;;;AAUA,IAAM,IAAuB,EAC3B;CACE;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD,EACD;CACE,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACD,iBAAiB,EAAE,MAAM,MAAM;CAChC,CACF,EAEK,IAA0C;CAC9C,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACL,EAEK,IAAwC;CAC5C,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACL,EAyDK,IAAQ,EAAM,YAEhB,EACE,cACA,SACA,OAAO,GACP,MAAM,IAAW,MACjB,iBACA,eACA,0BACA,wBACA,kBAAkB,GAClB,gBAAgB,GAChB,cACA,YACA,qBACA,GAAG,KAEL,MACG;CACH,IAAM,IAAO,KAAY,MACnB,IAAW,GAAc,EAEzB,IACJ,MACC,EAAS,UAAU,WAChB,KAAA,IACC,EAAS,QACV,IAAkB,EAAM,uBAAuB,EAAS,cACxD,IAAe,EAAM,oBAAoB,EAAS,UAElD,IAAU,EAAM,MAAM,EAAS,SAG/B,IAAgB,KAAgB,GAChC,IAAc,KAAc,GAE5B,IAAW,CAAC,CAAC,GACb,IAAS,CAAC,CAAC,GAGX,IAAY,MAAyB,OAAO,KAAkB,WAAW,UAAU,SACnF,IAAU,MAAuB,OAAO,KAAgB,WAAW,UAAU,SAE7E,IAA0C;EAC9C,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EAEK,IAAuC;EAC3C,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL;AASD,QACE,kBAAC,OAAD;EACE,WAAW,EACT,EAAqB,EAAE,SAAM,CAAC,EAC9B,MAAU,WAAW,4CACrB,MAAU,aAAa,gDACvB,MAAU,aAAa,gDACvB,EACD;YAPH;GASG,KAAY,MAAc,WACzB,kBAAC,QAAD;IACE,WAAW,EACT,uDACA,kCACA,2CACA,uBACA,EAAgB,IAChB,EAAa,IACb,CAAC,KAAyB,sBAC3B;cAEA;IACI,CAAA;GAGR,KAAY,MAAc,UACzB,kBAAC,GAAD;IAAc,MAAM,EAAY;cAC9B,kBAAC,QAAD;KACE,WAAW,EACT,gFACA,EAAgB,IAChB,CAAC,KAAyB,sBAC3B;eAEA;KACI,CAAA;IACM,CAAA;GAGjB,kBAAC,SAAD;IACQ;IACN,WAAW,EACT,iEACA,sCACA,+BACA,4BArDqC;KAC3C,IAAI;KACJ,IAAI;KACJ,IAAI;KACJ,IAAI;KACL,CAiDoB,IAEb,KAAY,MAAc,UAAU,QAEpC,KAAU,MAAY,UAAU,QAChC,EACD;IACD,gBAAc,MAAU,WAAW,KAAA;IACnC,oBAAkB;IAClB,iBAAe,KAAgB,KAAA;IAC1B;IACL,GAAI;IACJ,IAAI;IACJ,CAAA;GAED,KAAU,MAAY,WACrB,kBAAC,QAAD;IACE,WAAW,EACT,uDACA,kCACA,2CACA,uBACA,EAAgB,IAChB,EAAa,IACb,CAAC,KAAuB,sBACzB;cAEA;IACI,CAAA;GAGR,KAAU,MAAY,UACrB,kBAAC,GAAD;IAAc,MAAM,EAAY;cAC9B,kBAAC,QAAD;KACE,WAAW,EACT,gFACA,EAAgB,IAChB,CAAC,KAAuB,sBACzB;eAEA;KACI,CAAA;IACM,CAAA;GAEb;;EAGX;AACD,EAAM,cAAc;AAGpB,IAAM,IAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../src/ui/label.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAA;AAIzD,MAAM,WAAW,UACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC;IAClE,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,QAAA,MAAM,KAAK,qFAiBT,CAAA;AAGF,OAAO,EAAE,KAAK,EAAE,CAAA"}
1
+ {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../src/ui/label.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAA;AAKzD,MAAM,WAAW,UACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC;IAClE,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,QAAA,MAAM,KAAK,qFAwBT,CAAA;AAGF,OAAO,EAAE,KAAK,EAAE,CAAA"}
package/dist/ui/label.js CHANGED
@@ -1,19 +1,24 @@
1
1
  "use client";
2
2
  import { ut as e } from "../_chunks/primitives.js";
3
3
  import { cn as t } from "./lib/utils.js";
4
- import * as n from "react";
5
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ import { useFormField as n } from "./form.js";
5
+ import * as r from "react";
6
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
7
  //#region src/ui/label.tsx
7
- var a = n.forwardRef(({ className: n, required: a, children: o, ...s }, c) => /* @__PURE__ */ i(e, {
8
- ref: c,
9
- className: t("font-sans text-ds-md font-medium text-surface-fg leading-none transition-opacity duration-fast-01 ease-productive-standard peer-disabled:opacity-action-disabled", n),
10
- ...s,
11
- children: [o, a && /* @__PURE__ */ r("span", {
12
- className: "text-error-11 ml-ds-01",
13
- "aria-hidden": "true",
14
- children: "*"
15
- })]
16
- }));
17
- a.displayName = e.displayName;
8
+ var o = r.forwardRef(({ className: r, required: o, children: s, htmlFor: c, ...l }, u) => {
9
+ let d = n(), f = c ?? d.inputId, p = o ?? d.required;
10
+ return /* @__PURE__ */ a(e, {
11
+ ref: u,
12
+ htmlFor: f,
13
+ className: t("font-sans text-ds-md font-medium text-surface-fg leading-none transition-opacity duration-fast-01 ease-productive-standard peer-disabled:opacity-action-disabled", r),
14
+ ...l,
15
+ children: [s, p && /* @__PURE__ */ i("span", {
16
+ className: "text-error-11 ml-ds-01",
17
+ "aria-hidden": "true",
18
+ children: "*"
19
+ })]
20
+ });
21
+ });
22
+ o.displayName = e.displayName;
18
23
  //#endregion
19
- export { a as Label };
24
+ export { o as Label };